var requirejs,require,define;require||(function(O){var K,S,F,E,P={},Q={},y={},B={},G=Object.prototype.hasOwnProperty,J=[].slice,H=/\.js$/;
function x(a,b){return G.call(a,b)}function D(e,l){var o,s,b,r,n,d,i,f,p,q,a,g,j=l&&l.split("/"),h=y.map,m=(h&&h["*"])||{};
if(e){e=e.split("/");n=e.length-1;if(y.nodeIdCompat&&H.test(e[n])){e[n]=e[n].replace(H,"")
}if(e[0].charAt(0)==="."&&j){g=j.slice(0,j.length-1);e=g.concat(e)}for(p=0;p<e.length;
p++){a=e[p];if(a==="."){e.splice(p,1);p-=1}else{if(a===".."){if(p===0||(p===1&&e[2]==="..")||e[p-1]===".."){continue
}else{if(p>0){e.splice(p-1,2);p-=2}}}}}e=e.join("/")}if((j||m)&&h){o=e.split("/");
for(p=o.length;p>0;p-=1){s=o.slice(0,p).join("/");if(j){for(q=j.length;q>0;q-=1){b=h[j.slice(0,q).join("/")];
if(b){b=b[s];if(b){r=b;d=p;break}}}}if(r){break}if(!i&&m&&m[s]){i=m[s];f=p}}if(!r&&i){r=i;
d=f}if(r){o.splice(0,d,r);e=o.join("/")}}return e}function z(a,b){return function(){var d=J.call(arguments,0);
if(typeof d[0]!=="string"&&d.length===1){d.push(null)}return S.apply(O,d.concat([a,b]))
}}function C(a){return function(b){return D(b,a)}}function M(a){return function(b){P[a]=b;
if(b){B[name]=undefined}}}function L(d,b){if(x(Q,d)){var a=Q[d].slice();a[5]=b;B[d]=true;
if(K.apply(O,a)){delete Q[d]}}if(!x(P,d)&&!x(B,d)){throw new Error("No "+d)}return P[d]
}function A(d){var b,a=d?d.indexOf("!"):-1;if(a>-1){b=d.substring(0,a);d=d.substring(a+1,d.length)
}return[b,d]}function I(a){return a?A(a):[]}F=function(b,a){var g,f=A(b),e=f[0],d=a[1];
b=f[1];if(e){e=D(e,d);g=L(e)}if(e){if(g&&g.normalize){b=g.normalize(b,C(d))}else{b=D(b,d)
}}else{b=D(b,d);f=A(b);e=f[0];b=f[1];if(e){g=L(e)}}return{f:e?e+"!"+b:b,n:b,pr:e,p:g}
};function R(a){return function(){return(y&&y.config&&y.config[a])||{}}}E={require:function(a){return z(a)
},exports:function(a){var b=P[a];if(typeof b!=="undefined"){return b}else{return(P[a]={})
}},module:function(a){return{id:a,uri:"",exports:P[a],config:R(a)}}};function N(a){return a||!document.readyState||document.readyState==="complete"
}K=function(h,g,i,l,f,o){var a,m,q,j,d,b,p=[],e=typeof i,n;l=l||h;b=I(l);f=f||1;if(e==="undefined"||e==="function"){g=!g.length&&i.length?["require","exports","module"]:g;
for(d=0;d<g.length;d+=1){j=F(g[d],b);m=j.f;if(m==="require"){p[d]=E.require(h)}else{if(m==="exports"){p[d]=E.exports(h);
n=true}else{if(m==="module"){a=p[d]=E.module(h)}else{if(x(P,m)||(N(o)&&(x(Q,m)||x(B,m)))){p[d]=L(m,o)
}else{if(j.p){j.p.load(j.n,z(l,true),M(m),{});p[d]=P[m]}else{if(f++<100&&(!N(o)||e==="function")){setTimeout(function(){K(O,g,i,l,f,o)
},100);return false}else{throw new Error(h+" missing "+m)}}}}}}}q=i?i.apply(P[h],p):undefined;
if(h){if(a&&a.exports!==O&&a.exports!==P[h]){P[h]=a.exports}else{if(q!==O||!n){P[h]=q
}}}}else{if(h){P[h]=i;B[h]=undefined}}return true};requirejs=require=S=function(b,f,a,e,d){if(typeof b==="string"){if(E[b]){return E[b](f)
}return L(F(b,I(f)).f,true)}else{if(!b.splice){y=b;if(y.deps){S(y.deps,y.callback)
}if(!f){return}if(f.splice){b=f;f=a;a=null}else{b=O}}}f=f||function(){};if(typeof a==="function"){a=e;
e=d}if(e){K(O,b,f,a)}else{setTimeout(function(){K(O,b,f,a)},4)}return S};S.config=function(a){return S(a)
};requirejs._defined=P;define=function(a,d,b){if(a.splice){return S(d,b)}if(typeof a!=="string"){throw new Error("See almond README: incorrect module build, no module name")
}if(!d.splice){b=d;d=[]}if(!x(P,a)&&!x(Q,a)){Q[a]=[a,d,b]}};define.amd={jQuery:true}
}());define("globals",function(d,e){e.g=window;e.window=window;e.navigator=window.navigator;
e.doc=function(){return window.document}});define("jsf",["globals"],function(g){var e=function(a){var b=a.adp;
if(b!=null){for(var d=0;d<b.length;d++){a.removeChild(b[d])}}};var h=function(b,i){var d=new Array();
b.adp=d;var m=0;for(k in i){var a=document.createElement("input");a.type="hidden";
a.name=k;a.value=i[k];b.appendChild(a);d[m++]=a}};var f=g.g.jsfcljs=function(b,d,j){h(b,d);
var a=b.target;if(j){b.target=j}b.submit();b.target=a;e(b)};return{jsfcljs:f}});require("jsf");
define("log",["globals"],function(f){var d=f.g;var e={};e.Level=function(b,a,g){this.name=b;
this.priority=a;if(g){this.color=g}};e.OFF=new e.Level("off",1000);e.FATAL=new e.Level("fatal",900,"red");
e.ERROR=new e.Level("error",800,"red");e.WARN=new e.Level("warn",500,"yellow");e.INFO=new e.Level("info",400,"blue");
e.DEBUG=new e.Level("debug",300,"darkblue");e.ALL=new e.Level("all",100);e.A4J_DEBUG=new e.Level("a4j_debug",0,"green");
e._window=null;e.transmitToServer=true;e.consoleDivId="logConsole";e.styles={a4j_debug:"green",debug:"darkblue",info:"blue",warn:"yellow",error:"red",fatal:"red"};
e.a4j_debug=function(a,b){e._log(a,e.A4J_DEBUG,b)};e.debug=function(a,b){e._log(a,e.DEBUG,b)
};e.info=function(a,b){e._log(a,e.INFO,b)};e.warn=function(a,b){e._log(a,e.WARN,b)
};e.error=function(a,b){e._log(a,e.ERROR,b)};e.fatal=function(a,b){e._log(a,e.FATAL,b)
};e.registerPopup=function(m,l,b,n,a){if(!e._onkeydown){e._onkeydown=d.document.onkeydown
}var j=m.toUpperCase();d.document.onkeydown=function(g){if(d.event){g=d.event}if(String.fromCharCode(g.keyCode)==j&g.shiftKey&g.ctrlKey){e.LEVEL=a;
e.openWindow(l,"width="+b+",height="+n+",toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,left = "+((screen.width-b)/2)+",top ="+((screen.height-n)/2))
}else{if(e._onkeydown){e._onkeydown(g)}}}};e.clear=function(){if(e._window&&e._window.document){consoleDiv=e._window.document.body
}else{consoleDiv=d.document.getElementById(e.consoleDivId)}consoleDiv.innerHTML='<button onclick="LOG.clear()">Clear</button><br />'
};e.openWindow=function(b,a){if(e._window){e._window.focus()}else{e._window=d.open("",b,a);
e._window.LOG=e;e.clear();var g=e;e._window.onunload=function(){g._window.LOG=null;
g._window=null;g.LEVEL=g.OFF;g=undefined}}};e._log=function(a,g,b){if(g.priority>=e.LEVEL.priority){e._logToConsole(a,g,b);
if(e.transmitToServer){e._logToServer(a,g)}}};e._time=function(){var b=new Date();
var l=b.getHours();var i=b.getMinutes();if(i<10){i="0"+i}var a=b.getSeconds();if(a<10){a="0"+a
}var j=b.getTime()%1000;if(j<100){j="0"+j}if(j<10){j="0"+j}return l+":"+i+":"+a+","+j
};e._logToConsole=function(q,r,o){var n;var m;if(e._window&&e._window.document){m=e._window.document;
n=e._window.document.body}else{m=d.document;n=d.document.getElementById(e.consoleDivId)
}if(n){var b=m.createElement("span");b.style.color=r.color;b.appendChild(m.createTextNode(r.name+"["+e._time()+"]: "));
var s=m.createElement("div");var a=m.createTextNode(q);s.appendChild(b);s.appendChild(a);
if(o){var p=m.createElement("span");a=m.createTextNode(o);p.appendChild(a);s.appendChild(p)
}n.appendChild(s)}else{if(d.console){console.log(r.name+"["+e._time()+"]: "+q)}}};
e._logToServer=function(a,g){var b=g.name.substring(0,1)+a};e._requestCallBack=function(){};
e.LEVEL=e.OFF;return{LOG:e}});define("sax",["require","exports"],function(d,e){(function(aa){aa.parser=function(g,f){return new ab(g,f)
};aa.SAXParser=ab;aa.SAXStream=aG;aa.createStream=aA;aa.MAX_BUFFER_LENGTH=64*1024;
var ak=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];
aa.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];
function ab(h,g){if(!(this instanceof ab)){return new ab(h,g)}var f=this;az(f);f.q=f.c="";
f.bufferCheckPosition=aa.MAX_BUFFER_LENGTH;f.opt=g||{};f.opt.lowercase=f.opt.lowercase||f.opt.lowercasetags;
f.looseCase=f.opt.lowercase?"toLowerCase":"toUpperCase";f.tags=[];f.closed=f.closedRoot=f.sawRoot=false;
f.tag=f.error=null;f.strict=!!h;f.noscript=!!(h||f.opt.noscript);f.state=aC.BEGIN;
f.strictEntities=f.opt.strictEntities;f.ENTITIES=f.strictEntities?Object.create(aa.XML_ENTITIES):Object.create(aa.ENTITIES);
f.attribList=[];if(f.opt.xmlns){f.ns=Object.create(av)}f.trackPosition=f.opt.position!==false;
if(f.trackPosition){f.position=f.line=f.column=0}aq(f,"onready")}if(!Object.create){Object.create=function(f){function g(){}g.prototype=f;
var h=new g();return h}}if(!Object.keys){Object.keys=function(f){var h=[];for(var g in f){if(f.hasOwnProperty(g)){h.push(g)
}}return h}}function ar(j){var l=Math.max(aa.MAX_BUFFER_LENGTH,10);var m=0;for(var f=0,g=ak.length;
f<g;f++){var h=j[ak[f]].length;if(h>l){switch(ak[f]){case"textNode":aI(j);break;case"cdata":aE(j,"oncdata",j.cdata);
j.cdata="";break;case"script":aE(j,"onscript",j.script);j.script="";break;default:ah(j,"Max buffer length exceeded: "+ak[f])
}}m=Math.max(m,h)}var i=aa.MAX_BUFFER_LENGTH-m;j.bufferCheckPosition=i+j.position
}function az(f){for(var g=0,h=ak.length;g<h;g++){f[ak[g]]=""}}function S(f){aI(f);
if(f.cdata!==""){aE(f,"oncdata",f.cdata);f.cdata=""}if(f.script!==""){aE(f,"onscript",f.script);
f.script=""}}ab.prototype={end:function(){ap(this)},write:ay,resume:function(){this.error=null;
return this},close:function(){return this.write(null)},flush:function(){S(this)}};
var am;try{am=d("stream").Stream}catch(Z){am=function(){}}var at=aa.EVENTS.filter(function(f){return f!=="error"&&f!=="end"
});function aA(g,f){return new aG(g,f)}function aG(h,g){if(!(this instanceof aG)){return new aG(h,g)
}am.apply(this);this._parser=new ab(h,g);this.writable=true;this.readable=true;var f=this;
this._parser.onend=function(){f.emit("end")};this._parser.onerror=function(i){f.emit("error",i);
f._parser.error=null};this._decoder=null;at.forEach(function(i){Object.defineProperty(f,"on"+i,{get:function(){return f._parser["on"+i]
},set:function(j){if(!j){f.removeAllListeners(i);f._parser["on"+i]=j;return j}f.on(i,j)
},enumerable:true,configurable:false})})}aG.prototype=Object.create(am.prototype,{constructor:{value:aG}});
aG.prototype.write=function(g){if(typeof Buffer==="function"&&typeof Buffer.isBuffer==="function"&&Buffer.isBuffer(g)){if(!this._decoder){var f=d("string_decoder").StringDecoder;
this._decoder=new f("utf8")}g=this._decoder.write(g)}this._parser.write(g.toString());
this.emit("data",g);return true};aG.prototype.end=function(f){if(f&&f.length){this.write(f)
}this._parser.end();return true};aG.prototype.on=function(f,h){var g=this;if(!g._parser["on"+f]&&at.indexOf(f)!==-1){g._parser["on"+f]=function(){var i=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);
i.splice(0,0,f);g.emit.apply(g,i)}}return am.prototype.on.call(g,f,h)};var a="[CDATA[";
var b="DOCTYPE";var aw="http://www.w3.org/XML/1998/namespace";var an="http://www.w3.org/2000/xmlns/";
var av={xml:aw,xmlns:an};var aD=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
var Y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
var ag=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
var au=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
function ac(f){return f===" "||f==="\n"||f==="\r"||f==="\t"}function ae(f){return f==='"'||f==="'"
}function ax(f){return f===">"||ac(f)}function ai(g,f){return g.test(f)}function af(g,f){return !ai(g,f)
}var aC=0;aa.STATE={BEGIN:aC++,BEGIN_WHITESPACE:aC++,TEXT:aC++,TEXT_ENTITY:aC++,OPEN_WAKA:aC++,SGML_DECL:aC++,SGML_DECL_QUOTED:aC++,DOCTYPE:aC++,DOCTYPE_QUOTED:aC++,DOCTYPE_DTD:aC++,DOCTYPE_DTD_QUOTED:aC++,COMMENT_STARTING:aC++,COMMENT:aC++,COMMENT_ENDING:aC++,COMMENT_ENDED:aC++,CDATA:aC++,CDATA_ENDING:aC++,CDATA_ENDING_2:aC++,PROC_INST:aC++,PROC_INST_BODY:aC++,PROC_INST_ENDING:aC++,OPEN_TAG:aC++,OPEN_TAG_SLASH:aC++,ATTRIB:aC++,ATTRIB_NAME:aC++,ATTRIB_NAME_SAW_WHITE:aC++,ATTRIB_VALUE:aC++,ATTRIB_VALUE_QUOTED:aC++,ATTRIB_VALUE_CLOSED:aC++,ATTRIB_VALUE_UNQUOTED:aC++,ATTRIB_VALUE_ENTITY_Q:aC++,ATTRIB_VALUE_ENTITY_U:aC++,CLOSE_TAG:aC++,CLOSE_TAG_SAW_WHITE:aC++,SCRIPT:aC++,SCRIPT_ENDING:aC++};
aa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};aa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};
Object.keys(aa.ENTITIES).forEach(function(h){var f=aa.ENTITIES[h];var g=typeof f==="number"?String.fromCharCode(f):f;
aa.ENTITIES[h]=g});for(var X in aa.STATE){aa.STATE[aa.STATE[X]]=X}aC=aa.STATE;function aq(f,h,g){f[h]&&f[h](g)
}function aE(f,h,g){if(f.textNode){aI(f)}aq(f,h,g)}function aI(f){f.textNode=aH(f.opt,f.textNode);
if(f.textNode){aq(f,"ontext",f.textNode)}f.textNode=""}function aH(g,f){if(g.trim){f=f.trim()
}if(g.normalize){f=f.replace(/\s+/g," ")}return f}function ah(f,g){aI(f);if(f.trackPosition){g+="\nLine: "+f.line+"\nColumn: "+f.column+"\nChar: "+f.c
}g=new Error(g);f.error=g;aq(f,"onerror",g);return f}function ap(f){if(f.sawRoot&&!f.closedRoot){s(f,"Unclosed root tag")
}if((f.state!==aC.BEGIN)&&(f.state!==aC.BEGIN_WHITESPACE)&&(f.state!==aC.TEXT)){ah(f,"Unexpected end")
}aI(f);f.c="";f.closed=true;aq(f,"onend");ab.call(f,f.strict,f.opt);return f}function s(f,g){if(typeof f!=="object"||!(f instanceof ab)){throw new Error("bad call to strictFail")
}if(f.strict){ah(f,g)}}function aj(f){if(!f.strict){f.tagName=f.tagName[f.looseCase]()
}var g=f.tags[f.tags.length-1]||f;var h=f.tag={name:f.tagName,attributes:{}};if(f.opt.xmlns){h.ns=g.ns
}f.attribList.length=0;aE(f,"onopentagstart",h)}function ao(i,l){var g=i.indexOf(":");
var f=g<0?["",i]:i.split(":");var j=f[0];var h=f[1];if(l&&i==="xmlns"){j="xmlns";
h=""}return{prefix:j,local:h}}function al(j){if(!j.strict){j.attribName=j.attribName[j.looseCase]()
}if(j.attribList.indexOf(j.attribName)!==-1||j.tag.attributes.hasOwnProperty(j.attribName)){j.attribName=j.attribValue="";
return}if(j.opt.xmlns){var f=ao(j.attribName,true);var l=f.prefix;var h=f.local;if(l==="xmlns"){if(h==="xml"&&j.attribValue!==aw){s(j,"xml: prefix must be bound to "+aw+"\nActual: "+j.attribValue)
}else{if(h==="xmlns"&&j.attribValue!==an){s(j,"xmlns: prefix must be bound to "+an+"\nActual: "+j.attribValue)
}else{var i=j.tag;var g=j.tags[j.tags.length-1]||j;if(i.ns===g.ns){i.ns=Object.create(g.ns)
}i.ns[h]=j.attribValue}}}j.attribList.push([j.attribName,j.attribValue])}else{j.tag.attributes[j.attribName]=j.attribValue;
aE(j,"onattribute",{name:j.attribName,value:j.attribValue})}j.attribName=j.attribValue=""
}function aB(m,f){if(m.opt.xmlns){var n=m.tag;var p=ao(m.tagName);n.prefix=p.prefix;
n.local=p.local;n.uri=n.ns[p.prefix]||"";if(n.prefix&&!n.uri){s(m,"Unbound namespace prefix: "+JSON.stringify(m.tagName));
n.uri=p.prefix}var q=m.tags[m.tags.length-1]||m;if(n.ns&&q.ns!==n.ns){Object.keys(n.ns).forEach(function(w){aE(m,"onopennamespace",{prefix:w,uri:n.ns[w]})
})}for(var i=0,j=m.attribList.length;i<j;i++){var g=m.attribList[i];var v=g[0];var r=g[1];
var o=ao(v,true);var h=o.prefix;var u=o.local;var l=h===""?"":(n.ns[h]||"");var t={name:v,value:r,prefix:h,local:u,uri:l};
if(h&&h!=="xmlns"&&!l){s(m,"Unbound namespace prefix: "+JSON.stringify(h));t.uri=h
}m.tag.attributes[v]=t;aE(m,"onattribute",t)}m.attribList.length=0}m.tag.isSelfClosing=!!f;
m.sawRoot=true;m.tags.push(m.tag);aE(m,"onopentag",m.tag);if(!f){if(!m.noscript&&m.tagName.toLowerCase()==="script"){m.state=aC.SCRIPT
}else{m.state=aC.TEXT}m.tag=null;m.tagName=""}m.attribName=m.attribValue="";m.attribList.length=0
}function V(m){if(!m.tagName){s(m,"Weird empty close tag.");m.textNode+="</>";m.state=aC.TEXT;
return}if(m.script){if(m.tagName!=="script"){m.script+="</"+m.tagName+">";m.tagName="";
m.state=aC.SCRIPT;return}aE(m,"onscript",m.script);m.script=""}var p=m.tags.length;
var j=m.tagName;if(!m.strict){j=j[m.looseCase]()}var l=j;while(p--){var f=m.tags[p];
if(f.name!==l){s(m,"Unexpected close tag")}else{break}}if(p<0){s(m,"Unmatched closing tag: "+m.tagName);
m.textNode+="</"+m.tagName+">";m.state=aC.TEXT;return}m.tagName=j;var o=m.tags.length;
while(o-->p){var n=m.tag=m.tags.pop();m.tagName=m.tag.name;aE(m,"onclosetag",m.tagName);
var h={};for(var i in n.ns){h[i]=n.ns[i]}var g=m.tags[m.tags.length-1]||m;if(m.opt.xmlns&&n.ns!==g.ns){Object.keys(n.ns).forEach(function(r){var q=n.ns[r];
aE(m,"onclosenamespace",{prefix:r,uri:q})})}}if(p===0){m.closedRoot=true}m.tagName=m.attribValue=m.attribName="";
m.attribList.length=0;m.state=aC.TEXT}function ad(j){var i=j.entity;var f=i.toLowerCase();
var h;var g="";if(j.ENTITIES[i]){return j.ENTITIES[i]}if(j.ENTITIES[f]){return j.ENTITIES[f]
}i=f;if(i.charAt(0)==="#"){if(i.charAt(1)==="x"){i=i.slice(2);h=parseInt(i,16);g=h.toString(16)
}else{i=i.slice(1);h=parseInt(i,10);g=h.toString(10)}}i=i.replace(/^0+/,"");if(isNaN(h)||g.toLowerCase()!==i){s(j,"Invalid character entity");
return"&"+j.entity+";"}return String.fromCodePoint(h)}function aF(f,g){if(g==="<"){f.state=aC.OPEN_WAKA;
f.startTagPosition=f.position}else{if(!ac(g)){s(f,"Non-whitespace before first tag.");
f.textNode=g;f.state=aC.TEXT}}}function W(g,f){var h="";if(f<g.length){h=g.charAt(f)
}return h}function ay(h){var l=this;if(this.error){throw this.error}if(l.closed){return ah(l,"Cannot write after close. Assign an onready handler.")
}if(h===null){return ap(l)}if(typeof h==="object"){h=h.toString()}var g=0;var j="";
while(true){j=W(h,g++);l.c=j;if(!j){break}if(l.trackPosition){l.position++;if(j==="\n"){l.line++;
l.column=0}else{l.column++}}switch(l.state){case aC.BEGIN:l.state=aC.BEGIN_WHITESPACE;
if(j==="\uFEFF"){continue}aF(l,j);continue;case aC.BEGIN_WHITESPACE:aF(l,j);continue;
case aC.TEXT:if(l.sawRoot&&!l.closedRoot){var n=g-1;while(j&&j!=="<"&&j!=="&"){j=W(h,g++);
if(j&&l.trackPosition){l.position++;if(j==="\n"){l.line++;l.column=0}else{l.column++
}}}l.textNode+=h.substring(n,g-1)}if(j==="<"&&!(l.sawRoot&&l.closedRoot&&!l.strict)){l.state=aC.OPEN_WAKA;
l.startTagPosition=l.position}else{if(!ac(j)&&(!l.sawRoot||l.closedRoot)){s(l,"Text data outside of root node.")
}if(j==="&"){l.state=aC.TEXT_ENTITY}else{l.textNode+=j}}continue;case aC.SCRIPT:if(j==="<"){l.state=aC.SCRIPT_ENDING
}else{l.script+=j}continue;case aC.SCRIPT_ENDING:if(j==="/"){l.state=aC.CLOSE_TAG
}else{l.script+="<"+j;l.state=aC.SCRIPT}continue;case aC.OPEN_WAKA:if(j==="!"){l.state=aC.SGML_DECL;
l.sgmlDecl=""}else{if(ac(j)){}else{if(ai(aD,j)){l.state=aC.OPEN_TAG;l.tagName=j}else{if(j==="/"){l.state=aC.CLOSE_TAG;
l.tagName=""}else{if(j==="?"){l.state=aC.PROC_INST;l.procInstName=l.procInstBody=""
}else{s(l,"Unencoded <");if(l.startTagPosition+1<l.position){var m=l.position-l.startTagPosition;
j=new Array(m).join(" ")+j}l.textNode+="<"+j;l.state=aC.TEXT}}}}}continue;case aC.SGML_DECL:if((l.sgmlDecl+j).toUpperCase()===a){aE(l,"onopencdata");
l.state=aC.CDATA;l.sgmlDecl="";l.cdata=""}else{if(l.sgmlDecl+j==="--"){l.state=aC.COMMENT;
l.comment="";l.sgmlDecl=""}else{if((l.sgmlDecl+j).toUpperCase()===b){l.state=aC.DOCTYPE;
if(l.doctype||l.sawRoot){s(l,"Inappropriately located doctype declaration")}l.doctype="";
l.sgmlDecl=""}else{if(j===">"){aE(l,"onsgmldeclaration",l.sgmlDecl);l.sgmlDecl="";
l.state=aC.TEXT}else{if(ae(j)){l.state=aC.SGML_DECL_QUOTED;l.sgmlDecl+=j}else{l.sgmlDecl+=j
}}}}}continue;case aC.SGML_DECL_QUOTED:if(j===l.q){l.state=aC.SGML_DECL;l.q=""}l.sgmlDecl+=j;
continue;case aC.DOCTYPE:if(j===">"){l.state=aC.TEXT;aE(l,"ondoctype",l.doctype);
l.doctype=true}else{l.doctype+=j;if(j==="["){l.state=aC.DOCTYPE_DTD}else{if(ae(j)){l.state=aC.DOCTYPE_QUOTED;
l.q=j}}}continue;case aC.DOCTYPE_QUOTED:l.doctype+=j;if(j===l.q){l.q="";l.state=aC.DOCTYPE
}continue;case aC.DOCTYPE_DTD:l.doctype+=j;if(j==="]"){l.state=aC.DOCTYPE}else{if(ae(j)){l.state=aC.DOCTYPE_DTD_QUOTED;
l.q=j}}continue;case aC.DOCTYPE_DTD_QUOTED:l.doctype+=j;if(j===l.q){l.state=aC.DOCTYPE_DTD;
l.q=""}continue;case aC.COMMENT:if(j==="-"){l.state=aC.COMMENT_ENDING}else{l.comment+=j
}continue;case aC.COMMENT_ENDING:if(j==="-"){l.state=aC.COMMENT_ENDED;l.comment=aH(l.opt,l.comment);
if(l.comment){aE(l,"oncomment",l.comment)}l.comment=""}else{l.comment+="-"+j;l.state=aC.COMMENT
}continue;case aC.COMMENT_ENDED:if(j!==">"){s(l,"Malformed comment");l.comment+="--"+j;
l.state=aC.COMMENT}else{l.state=aC.TEXT}continue;case aC.CDATA:if(j==="]"){l.state=aC.CDATA_ENDING
}else{l.cdata+=j}continue;case aC.CDATA_ENDING:if(j==="]"){l.state=aC.CDATA_ENDING_2
}else{l.cdata+="]"+j;l.state=aC.CDATA}continue;case aC.CDATA_ENDING_2:if(j===">"){if(l.cdata){aE(l,"oncdata",l.cdata)
}aE(l,"onclosecdata");l.cdata="";l.state=aC.TEXT}else{if(j==="]"){l.cdata+="]"}else{l.cdata+="]]"+j;
l.state=aC.CDATA}}continue;case aC.PROC_INST:if(j==="?"){l.state=aC.PROC_INST_ENDING
}else{if(ac(j)){l.state=aC.PROC_INST_BODY}else{l.procInstName+=j}}continue;case aC.PROC_INST_BODY:if(!l.procInstBody&&ac(j)){continue
}else{if(j==="?"){l.state=aC.PROC_INST_ENDING}else{l.procInstBody+=j}}continue;case aC.PROC_INST_ENDING:if(j===">"){aE(l,"onprocessinginstruction",{name:l.procInstName,body:l.procInstBody});
l.procInstName=l.procInstBody="";l.state=aC.TEXT}else{l.procInstBody+="?"+j;l.state=aC.PROC_INST_BODY
}continue;case aC.OPEN_TAG:if(ai(Y,j)){l.tagName+=j}else{aj(l);if(j===">"){aB(l)}else{if(j==="/"){l.state=aC.OPEN_TAG_SLASH
}else{if(!ac(j)){s(l,"Invalid character in tag name")}l.state=aC.ATTRIB}}}continue;
case aC.OPEN_TAG_SLASH:if(j===">"){aB(l,true);V(l)}else{s(l,"Forward-slash in opening tag not followed by >");
l.state=aC.ATTRIB}continue;case aC.ATTRIB:if(ac(j)){continue}else{if(j===">"){aB(l)
}else{if(j==="/"){l.state=aC.OPEN_TAG_SLASH}else{if(ai(aD,j)){l.attribName=j;l.attribValue="";
l.state=aC.ATTRIB_NAME}else{s(l,"Invalid attribute name")}}}}continue;case aC.ATTRIB_NAME:if(j==="="){l.state=aC.ATTRIB_VALUE
}else{if(j===">"){s(l,"Attribute without value");l.attribValue=l.attribName;al(l);
aB(l)}else{if(ac(j)){l.state=aC.ATTRIB_NAME_SAW_WHITE}else{if(ai(Y,j)){l.attribName+=j
}else{s(l,"Invalid attribute name")}}}}continue;case aC.ATTRIB_NAME_SAW_WHITE:if(j==="="){l.state=aC.ATTRIB_VALUE
}else{if(ac(j)){continue}else{s(l,"Attribute without value");l.tag.attributes[l.attribName]="";
l.attribValue="";aE(l,"onattribute",{name:l.attribName,value:""});l.attribName="";
if(j===">"){aB(l)}else{if(ai(aD,j)){l.attribName=j;l.state=aC.ATTRIB_NAME}else{s(l,"Invalid attribute name");
l.state=aC.ATTRIB}}}}continue;case aC.ATTRIB_VALUE:if(ac(j)){continue}else{if(ae(j)){l.q=j;
l.state=aC.ATTRIB_VALUE_QUOTED}else{s(l,"Unquoted attribute value");l.state=aC.ATTRIB_VALUE_UNQUOTED;
l.attribValue=j}}continue;case aC.ATTRIB_VALUE_QUOTED:if(j!==l.q){if(j==="&"){l.state=aC.ATTRIB_VALUE_ENTITY_Q
}else{l.attribValue+=j}continue}al(l);l.q="";l.state=aC.ATTRIB_VALUE_CLOSED;continue;
case aC.ATTRIB_VALUE_CLOSED:if(ac(j)){l.state=aC.ATTRIB}else{if(j===">"){aB(l)}else{if(j==="/"){l.state=aC.OPEN_TAG_SLASH
}else{if(ai(aD,j)){s(l,"No whitespace between attributes");l.attribName=j;l.attribValue="";
l.state=aC.ATTRIB_NAME}else{s(l,"Invalid attribute name")}}}}continue;case aC.ATTRIB_VALUE_UNQUOTED:if(!ax(j)){if(j==="&"){l.state=aC.ATTRIB_VALUE_ENTITY_U
}else{l.attribValue+=j}continue}al(l);if(j===">"){aB(l)}else{l.state=aC.ATTRIB}continue;
case aC.CLOSE_TAG:if(!l.tagName){if(ac(j)){continue}else{if(af(aD,j)){if(l.script){l.script+="</"+j;
l.state=aC.SCRIPT}else{s(l,"Invalid tagname in closing tag.")}}else{l.tagName=j}}}else{if(j===">"){V(l)
}else{if(ai(Y,j)){l.tagName+=j}else{if(l.script){l.script+="</"+l.tagName;l.tagName="";
l.state=aC.SCRIPT}else{if(!ac(j)){s(l,"Invalid tagname in closing tag")}l.state=aC.CLOSE_TAG_SAW_WHITE
}}}}continue;case aC.CLOSE_TAG_SAW_WHITE:if(ac(j)){continue}if(j===">"){V(l)}else{s(l,"Invalid characters in closing tag")
}continue;case aC.TEXT_ENTITY:case aC.ATTRIB_VALUE_ENTITY_Q:case aC.ATTRIB_VALUE_ENTITY_U:var f;
var i;switch(l.state){case aC.TEXT_ENTITY:f=aC.TEXT;i="textNode";break;case aC.ATTRIB_VALUE_ENTITY_Q:f=aC.ATTRIB_VALUE_QUOTED;
i="attribValue";break;case aC.ATTRIB_VALUE_ENTITY_U:f=aC.ATTRIB_VALUE_UNQUOTED;i="attribValue";
break}if(j===";"){l[i]+=ad(l);l.entity="";l.state=f}else{if(ai(l.entity.length?au:ag,j)){l.entity+=j
}else{s(l,"Invalid character in entity name");l[i]+="&"+l.entity+j;l.entity="";l.state=f
}}continue;default:throw new Error(l,"Unknown state: "+l.state)}}if(l.position>=l.bufferCheckPosition){ar(l)
}return l}if(!String.fromCodePoint){(function(){var f=String.fromCharCode;var g=Math.floor;
var h=function(){var j=16384;var o=[];var l;var m;var p=-1;var n=arguments.length;
if(!n){return""}var i="";while(++p<n){var q=Number(arguments[p]);if(!isFinite(q)||q<0||q>1114111||g(q)!==q){throw RangeError("Invalid code point: "+q)
}if(q<=65535){o.push(q)}else{q-=65536;l=(q>>10)+55296;m=(q%1024)+56320;o.push(l,m)
}if(p+1===n||o.length>j){i+=f.apply(null,o);o.length=0}}return i};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:h,configurable:true,writable:true})
}else{String.fromCodePoint=h}}())}})(typeof e==="undefined"?this.sax={}:e)});!function(d){if("object"==typeof exports&&"undefined"!=typeof module){module.exports=d()
}else{if("function"==typeof define&&define.amd){define("virtualdom",[],d)}else{var e;
"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.virtualDom=d()
}}}(function(){var h,e,g;return(function i(m,a,d){function f(o,s){if(!a[o]){if(!m[o]){var j=typeof require=="function"&&require;
if(!s&&j){return j(o,!0)}if(n){return n(o,!0)}var r=new Error("Cannot find module '"+o+"'");
throw r.code="MODULE_NOT_FOUND",r}var l=a[o]={exports:{}};m[o][0].call(l.exports,function(q){var p=m[o][1][q];
return f(p?p:q)},l,l.exports,i,m,a,d)}return a[o].exports}var n=typeof require=="function"&&require;
for(var b=0;b<d.length;b++){f(d[b])}return f})({1:[function(d,b,f){var a=d("./vdom/create-element.js");
b.exports=a},{"./vdom/create-element.js":15}],2:[function(d,b,f){var a=d("./vtree/diff.js");
b.exports=a},{"./vtree/diff.js":35}],3:[function(d,b,f){var a=d("./virtual-hyperscript/index.js");
b.exports=a},{"./virtual-hyperscript/index.js":22}],4:[function(q,s,p){var a=q("./diff.js");
var r=q("./patch.js");var f=q("./h.js");var d=q("./create-element.js");var t=q("./vnode/vnode.js");
var b=q("./vnode/vtext.js");s.exports={diff:a,patch:r,h:f,create:d,VNode:t,VText:b}
},{"./create-element.js":1,"./diff.js":2,"./h.js":3,"./patch.js":13,"./vnode/vnode.js":31,"./vnode/vtext.js":33}],5:[function(d,a,f){a.exports=(function b(p){var n=String.prototype.split,o=/()??/.exec("")[1]===p,q;
q=function(A,D,j){if(Object.prototype.toString.call(D)!=="[object RegExp]"){return n.call(A,D,j)
}var m=[],l=(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.extended?"x":"")+(D.sticky?"y":""),y=0,D=new RegExp(D.source,l+"g"),x,C,B,z;
A+="";if(!o){x=new RegExp("^"+D.source+"$(?!\\s)",l)}j=j===p?-1>>>0:j>>>0;while(C=D.exec(A)){B=C.index+C[0].length;
if(B>y){m.push(A.slice(y,C.index));if(!o&&C.length>1){C[0].replace(x,function(){for(var r=1;
r<arguments.length-2;r++){if(arguments[r]===p){C[r]=p}}})}if(C.length>1&&C.index<A.length){Array.prototype.push.apply(m,C.slice(1))
}z=C[0].length;y=B;if(m.length>=j){break}}if(D.lastIndex===C.index){D.lastIndex++
}}if(y===A.length){if(z||!D.test("")){m.push("")}}else{m.push(A.slice(y))}return m.length>j?m.slice(0,j):m
};return q})()},{}],6:[function(b,a,d){},{}],7:[function(m,f,n){var a=m("individual/one-version");
var b="7";a("ev-store",b);var d="__EV_STORE_KEY@"+b;f.exports=o;function o(j){var l=j[d];
if(!l){l=j[d]={}}return l}},{"individual/one-version":9}],8:[function(b,a,d){(function(l){var m=typeof window!=="undefined"?window:typeof l!=="undefined"?l:{};
a.exports=f;function f(n,j){if(n in m){return m[n]}m[n]=j;return j}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})
},{}],9:[function(f,d,l){var a=f("./index.js");d.exports=b;function b(t,j,q){var s="__INDIVIDUAL_ONE_VERSION_"+t;
var r=s+"_ENFORCE_SINGLETON";var u=a(r,j);if(u!==j){throw new Error("Can only have one copy of "+t+".\nYou already have version "+u+" installed.\nThis means you cannot install version "+j)
}return a(s,q)}},{"./index.js":8}],10:[function(b,a,d){(function(m){var o=typeof m!=="undefined"?m:typeof window!=="undefined"?window:{};
var f=b("min-document");if(typeof document!=="undefined"){a.exports=document}else{var n=o["__GLOBAL_DOCUMENT_CACHE@4"];
if(!n){n=o["__GLOBAL_DOCUMENT_CACHE@4"]=f}a.exports=n}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})
},{"min-document":6}],11:[function(b,a,d){a.exports=function f(l){return typeof l==="object"&&l!==null
}},{}],12:[function(f,d,l){var b=Array.isArray;var a=Object.prototype.toString;d.exports=b||m;
function m(j){return a.call(j)==="[object Array]"}},{}],13:[function(d,b,f){var a=d("./vdom/patch.js");
b.exports=a},{"./vdom/patch.js":18}],14:[function(q,r,f){var a=q("is-object");var p=q("../vnode/is-vhook.js");
r.exports=d;function d(m,t,n){for(var l in t){var j=t[l];if(j===undefined){s(m,l,j,n)
}else{if(p(j)){s(m,l,j,n);if(j.hook){j.hook(m,l,n?n[l]:undefined)}}else{if(a(j)){b(m,t,n,l,j)
}else{if(l==="class"){m.className=j}else{m[l]=j}}}}}}function s(n,m,l,w){if(w){var z=w[m];
var j=!!(n.dataset&&n.dataset.keepstyle);if(!p(z)){if(m==="attributes"){for(var x in z){n.removeAttribute(x)
}}else{if(m==="style"&&!j){for(var y in z){n.style[y]=""}}else{if(m==="class"){n.className=""
}else{if(typeof z==="string"){n[m]=""}else{n[m]=null}}}}}else{if(z.unhook){z.unhook(n,m,l)
}}}}function b(m,D,E,G,n){var l=E?E[G]:undefined;if(G==="attributes"){for(var C in n){var F=n[C];
if(F===undefined){m.removeAttribute(C)}else{m.setAttribute(C,F)}}return}if(l&&a(l)&&o(l)!==o(n)){m[G]=n;
return}if(!a(m[G])){m[G]={}}var B=!!(m.dataset&&m.dataset.keepstyle);var H=G==="style"?"":undefined;
for(var j in n){var A=n[j];if(A!==undefined){m[G][j]=A}else{if(G!=="style"||!B){m[G][j]=H
}}}}function o(j){if(Object.getPrototypeOf){return Object.getPrototypeOf(j)}else{if(j.__proto__){return j.__proto__
}else{if(j.constructor){return j.constructor.prototype}}}}},{"../vnode/is-vhook.js":26,"is-object":11}],15:[function(q,t,p){var d=q("global/document");
var f=q("./apply-properties");var r=q("../vnode/is-vnode.js");var a=q("../vnode/is-vtext.js");
var u=q("../vnode/is-widget.js");var b=q("../vnode/handle-thunk.js");t.exports=s;
function s(n,l){var o=l?l.document||d:d;var C=l?l.warn:null;if(n.htmlContent){var j=o.createElement("div");
j.innerHTML=n.htmlContent;if(j.children[0]){return j.children[0]}}else{if(n.domNode){try{var E=o.importNode(n.domNode,false);
if(n.children){var H=n.children;for(var F=0;F<H.length;F++){var m=s(H[F],l);if(m){E.appendChild(m)
}}}return E}catch(D){}}}n=b(n).a;if(u(n)){return n.init()}else{if(a(n)){return o.createTextNode(n.text)
}else{if(!r(n)){if(C){C("Item is not a valid virtual dom node",n)}return null}}}var G=(n.namespace===null)?o.createElement(n.tagName):o.createElementNS(n.namespace,n.tagName);
var B=n.properties;f(G,B);var H=n.children;for(var F=0;F<H.length;F++){var m=s(H[F],l);
if(m){G.appendChild(m)}}return G}},{"../vnode/handle-thunk.js":24,"../vnode/is-vnode.js":27,"../vnode/is-vtext.js":28,"../vnode/is-widget.js":29,"./apply-properties":14,"global/document":10}],16:[function(o,f,p){var a={};
f.exports=q;function q(l,r,j,m){if(!j||j.length===0){return{}}else{j.sort(d);return b(l,r,j,m,0)
}}function b(l,z,B,x,C){x=x||{};if(l){if(n(B,C,C)){x[C]=l}var y=z.children;if(y){var A=l.childNodes;
for(var j=0;j<z.children.length;j++){C+=1;var m=y[j]||a;var D=C+(m.count||0);if(n(B,C,D)){b(A[j],m,B,x,C)
}C=D}}}return x}function n(j,l,m){if(j.length===0){return false}var w=0;var u=j.length-1;
var x;var v;while(w<=u){x=((u+w)/2)>>0;v=j[x];if(w===u){return v>=l&&v<=m}else{if(v<l){w=x+1
}else{if(v>m){u=x-1}else{return true}}}}return false}function d(j,l){return j>l?1:-1
}},{}],17:[function(G,M,a){var A=G("global/document");var z=G("./apply-properties");
var y=G("../vnode/is-widget.js");var b=G("../vnode/vpatch.js");var B=G("./update-widget");
M.exports=H;function H(n,p,o){var j=n.type;var m=n.vNode;var l=n.patch;switch(j){case b.REMOVE:return d(p,m);
case b.INSERT:return J(p,l,o);case b.VTEXT:return f(p,m,l,o);case b.WIDGET:return F(p,m,l,o);
case b.VNODE:return D(p,m,l,o);case b.ORDER:I(p,l);return p;case b.PROPS:z(p,l,m.properties);
L(p,m);return p;case b.THUNK:return E(p,o.patch(p,l,o));default:return p}}function d(l,j){var m=l.parentNode;
if(m){m.removeChild(l)}K(l,j);C(l,j);L(l,j);return null}function J(o,n,m){var l=m?m.document||A:A;
var j=m.render(n,m);if(o){o.appendChild(j)}L(j,n);return o}function f(p,n,l,m){var j;
if(p.nodeType===3){p.replaceData(0,p.length,l.text);j=p}else{var o=p.parentNode;j=m.render(l,m);
if(o&&j!==p){o.replaceChild(j,p)}}return j}function F(o,l,m,n){var q=B(l,m);var j;
if(q){j=m.update(l,o)||o}else{j=n.render(m,n)}var p=o.parentNode;if(p&&j!==o){p.replaceChild(j,o)
}if(!q){K(o,l)}return j}function D(p,l,n,m){var o=p.parentNode;var j=m.render(n,m);
if(o&&j!==p){o.replaceChild(j,p)}return j}function K(j,l){if(typeof l.destroy==="function"&&y(l)){l.destroy(j)
}}function C(l,j){if(typeof j.cleanup==="function"){j.cleanup(l)}}function L(l,j){if(typeof j.setup==="function"){j.setup(l)
}}function I(m,p){var r=m.childNodes;var s={};var n;var t;var q;for(var j=0;j<p.removes.length;
j++){t=p.removes[j];n=r[t.from];if(t.key){s[t.key]=n}if(n){m.removeChild(n)}}var o=r.length;
for(var l=0;l<p.inserts.length;l++){q=p.inserts[l];n=s[q.key];if(n){m.insertBefore(n,q.to>=o++?null:r[q.to])
}}}function E(l,j){if(l&&j&&l!==j&&l.parentNode){l.parentNode.replaceChild(j,l)}return j
}},{"global/document":10,"../vnode/is-widget.js":29,"../vnode/vpatch.js":32,"./apply-properties":14,"./update-widget":19}],18:[function(s,u,r){var b=s("global/document");
var f=s("x-is-array");var w=s("./create-element");var x=s("./dom-index");var a=s("./patch-op");
u.exports=t;function t(l,j,m){m=m||{};m.patch=m.patch&&m.patch!==t?m.patch:d;m.render=m.render||w;
return m.patch(l,j,m)}function d(p,l,q){var j=v(l);if(j.length===0){return p}var n=x(p,l.a,j);
var o=p.ownerDocument;if(!q.document&&o!==b){q.document=o}for(var m=0;m<j.length;
m++){var z=j[m];p=y(p,n[z],l[z],q)}return p}function y(o,l,j,p){if(!l){return o}var m;
if(f(j)){for(var n=0;n<j.length;n++){m=a(j[n],l,p);if(l===o){o=m}}}else{m=a(j,l,p);
if(l===o){o=m}}return o}function v(l){var j=[];for(var m in l){if(m!=="a"){j.push(Number(m))
}}return j}},{"./create-element":15,"./dom-index":16,"./patch-op":17,"global/document":10,"x-is-array":12}],19:[function(f,b,l){var d=f("../vnode/is-widget.js");
b.exports=a;function a(j,m){if(d(j)&&d(m)){if("name" in j&&"name" in m){return j.id===m.id
}else{return j.init===m.init}}return false}},{"../vnode/is-widget.js":29}],20:[function(d,b,f){var l=d("ev-store");
b.exports=a;function a(j){if(!(this instanceof a)){return new a(j)}this.value=j}a.prototype.hook=function(o,p){var q=l(o);
var j=p.substr(3);q[j]=this.value};a.prototype.unhook=function(o,p){var q=l(o);var j=p.substr(3);
q[j]=undefined}},{"ev-store":7}],21:[function(b,a,d){a.exports=f;function f(l){if(!(this instanceof f)){return new f(l)
}this.value=l}f.prototype.hook=function(l,m){if(l.getAttribute(m)!==this.value){l.setAttribute(m,this.value)
}}},{}],22:[function(M,Q,b){var J=M("x-is-array");var a=M("../vnode/vnode.js");var B=M("../vnode/vtext.js");
var f=M("../vnode/is-vnode");var E=M("../vnode/is-vtext");var F=M("../vnode/is-widget");
var K=M("../vnode/is-vhook");var O=M("../vnode/is-thunk");var I=M("./parse-tag.js");
var P=M("./hooks/soft-set-hook.js");var D=M("./hooks/ev-hook.js");Q.exports=C;function C(o,p,q){var j=[];
var m,l,r,n;if(!q&&H(p)){q=p;l={}}l=l||p||{};m=I(o,l);if(l.hasOwnProperty("key")){r=l.key;
l.key=undefined}if(l.hasOwnProperty("namespace")){n=l.namespace;l.namespace=undefined
}if(m==="INPUT"&&!n&&l.hasOwnProperty("value")&&l.value!==undefined&&!K(l.value)){l.value=P(l.value)
}G(l);if(q!==undefined&&q!==null){N(q,j,m,l)}return new a(m,l,j,r,n)}function N(l,m,j,n){if(typeof l==="string"){m.push(new B(l))
}else{if(typeof l==="number"){m.push(new B(String(l)))}else{if(L(l)){m.push(l)}else{if(J(l)){for(var o=0;
o<l.length;o++){N(l[o],m,j,n)}}else{if(l===null||l===undefined){return}else{throw R({foreignObject:l,parentVnode:{tagName:j,properties:n}})
}}}}}}function G(j){for(var l in j){if(j.hasOwnProperty(l)){var m=j[l];if(K(m)){continue
}if(l.substr(0,3)==="ev-"){j[l]=D(m)}}}}function L(j){return f(j)||E(j)||F(j)||O(j)
}function H(j){return typeof j==="string"||J(j)||L(j)}function R(l){var j=new Error();
j.type="virtual-hyperscript.unexpected.virtual-element";j.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+d(l.foreignObject)+".\nThe parent vnode is:\n"+d(l.parentVnode);
"\nSuggested fix: change your `h(..., [ ... ])` callsite.";j.foreignObject=l.foreignObject;
j.parentVnode=l.parentVnode;return j}function d(l){try{return JSON.stringify(l,null,"    ")
}catch(j){return String(l)}}},{"../vnode/is-thunk":25,"../vnode/is-vhook":26,"../vnode/is-vnode":27,"../vnode/is-vtext":28,"../vnode/is-widget":29,"../vnode/vnode.js":31,"../vnode/vtext.js":33,"./hooks/ev-hook.js":20,"./hooks/soft-set-hook.js":21,"./parse-tag.js":23,"x-is-array":12}],23:[function(n,f,o){var m=n("browser-split");
var d=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/;var b=/^\.|#/;f.exports=a;function a(z,B){if(!z){return"DIV"
}var j=!(B.hasOwnProperty("id"));var l=m(z,d);var x=null;if(b.test(l[1])){x="DIV"
}var w,y,A,v;for(v=0;v<l.length;v++){y=l[v];if(!y){continue}A=y.charAt(0);if(!x){x=y
}else{if(A==="."){w=w||[];w.push(y.substring(1,y.length))}else{if(A==="#"&&j){B.id=y.substring(1,y.length)
}}}}if(w){if(B.className){w.push(B.className)}B.className=w.join(" ")}return B.namespace?x:x.toUpperCase()
}},{"browser-split":5}],24:[function(f,r,d){var o=f("./is-vnode");var a=f("./is-vtext");
var s=f("./is-widget");var p=f("./is-thunk");r.exports=b;function b(l,n){var j=l;
var m=n;if(p(n)){m=q(n,l)}if(p(l)){j=q(l,null)}return{a:j,b:m}}function q(j,l){var m=j.vnode;
if(!m){m=j.vnode=j.render(l)}if(!(o(m)||a(m)||s(m))){throw new Error("thunk did not return a valid node")
}return m}},{"./is-thunk":25,"./is-vnode":27,"./is-vtext":28,"./is-widget":29}],25:[function(d,b,f){b.exports=a;
function a(l){return l&&l.type==="Thunk"}},{}],26:[function(d,b,f){b.exports=a;function a(l){return l&&(typeof l.hook==="function"&&!l.hasOwnProperty("hook")||typeof l.unhook==="function"&&!l.hasOwnProperty("unhook"))
}},{}],27:[function(d,b,f){var l=d("./version");b.exports=a;function a(j){return j&&j.type==="VirtualNode"&&j.version===l
}},{"./version":30}],28:[function(d,b,f){var l=d("./version");b.exports=a;function a(j){return j&&j.type==="VirtualText"&&j.version===l
}},{"./version":30}],29:[function(d,a,f){a.exports=b;function b(l){return l&&l.type==="Widget"
}},{}],30:[function(b,a,d){a.exports="2"},{}],31:[function(r,v,q){var d=r("./version");
var s=r("./is-vnode");var w=r("./is-widget");var u=r("./is-thunk");var b=r("./is-vhook");
v.exports=f;var a={};var t=[];function f(N,p,l,j,K){this.tagName=N;this.properties=p||a;
this.children=l||t;this.key=j!=null?String(j):undefined;this.namespace=(typeof K==="string")?K:null;
var G=(l&&l.length)||0;var L=0;var H=false;var o=false;var F=false;var M;for(var I in p){if(p.hasOwnProperty(I)){var n=p[I];
if(b(n)&&n.unhook){if(!M){M={}}M[I]=n}}}for(var J=0;J<G;J++){var m=l[J];if(s(m)){L+=m.count||0;
if(!H&&m.hasWidgets){H=true}if(!o&&m.hasThunks){o=true}if(!F&&(m.hooks||m.descendantHooks)){F=true
}}else{if(!H&&w(m)){if(typeof m.destroy==="function"){H=true}}else{if(!o&&u(m)){o=true
}}}}this.count=G+L;this.hasWidgets=H;this.hasThunks=o;this.hooks=M;this.descendantHooks=F
}f.prototype.version=d;f.prototype.type="VirtualNode"},{"./is-thunk":25,"./is-vhook":26,"./is-vnode":27,"./is-widget":29,"./version":30}],32:[function(d,b,f){var l=d("./version");
a.NONE=0;a.VTEXT=1;a.VNODE=2;a.WIDGET=3;a.PROPS=4;a.ORDER=5;a.INSERT=6;a.REMOVE=7;
a.THUNK=8;b.exports=a;function a(o,n,j){this.type=Number(o);this.vNode=n;this.patch=j
}a.prototype.version=l;a.prototype.type="VirtualPatch"},{"./version":30}],33:[function(d,b,f){var l=d("./version");
b.exports=a;function a(j){this.text=String(j)}a.prototype.version=l;a.prototype.type="VirtualText"
},{"./version":30}],34:[function(d,b,m){var n=d("is-object");var a=d("../vnode/is-vhook");
b.exports=f;function f(z,j){var l;for(var u in z){if(!(u in j)){l=l||{};l[u]=undefined
}var v=z[u];var w=j[u];if(v===w){continue}else{if(n(v)&&n(w)){if(o(w)!==o(v)){l=l||{};
l[u]=w}else{if(a(w)){l=l||{};l[u]=w}else{var x=f(v,w);if(x){l=l||{};l[u]=x}}}}else{l=l||{};
l[u]=w}}}for(var y in j){if(!(y in z)){l=l||{};l[y]=j[y]}}return l}function o(j){if(Object.getPrototypeOf){return Object.getPrototypeOf(j)
}else{if(j.__proto__){return j.__proto__}else{if(j.constructor){return j.constructor.prototype
}}}}},{"../vnode/is-vhook":26,"is-object":11}],35:[function(S,V,I){var Q=S("x-is-array");
var a=S("../vnode/vpatch");var d=S("../vnode/is-vnode");var D=S("../vnode/is-vtext");
var E=S("../vnode/is-widget");var W=S("../vnode/is-thunk");var K=S("../vnode/handle-thunk");
var f=S("./diff-props");V.exports=O;function O(l,m){var j={a:l};b(l,m,j,0);return j
}function b(o,p,j,m){if(o===p){return}var n=j[m];var q=false;if(W(o)||W(p)){F(o,p,j,m)
}else{if(p==null){if(!E(o)){M(o,j,m);n=j[m]}n=R(n,new a(a.REMOVE,o,p))}else{if(d(p)){if(d(o)){if(o.tagName===p.tagName&&o.namespace===p.namespace&&o.key===p.key){var l=f(o.properties,p.properties);
if(l){if(o.tagName==="LINK"){n=R(n,new a(a.VNODE,o,p))}else{n=R(n,new a(a.PROPS,o,l))
}}n=L(o,p,j,n,m)}else{n=R(n,new a(a.VNODE,o,p));q=true}}else{n=R(n,new a(a.VNODE,o,p));
q=true}}else{if(D(p)){if(!D(o)){n=R(n,new a(a.VTEXT,o,p));q=true}else{if(o.text!==p.text){n=R(n,new a(a.VTEXT,o,p))
}}}else{if(E(p)){if(!E(o)){q=true}n=R(n,new a(a.WIDGET,o,p))}}}}}if(n){j[m]=n}if(q){M(o,j,m)
}}function L(n,p,v,l,q){var x=n.children;var o=U(x,p.children);var s=o.children;var u=x.length;
var j=s.length;var r=u>j?u:j;for(var t=0;t<r;t++){var w=x[t];var m=s[t];q+=1;if(!w){if(m){l=R(l,new a(a.INSERT,null,m))
}}else{b(w,m,v,q)}if(d(w)&&w.count){q+=w.count}}if(o.moves){l=R(l,new a(a.ORDER,n,o.moves))
}return l}function M(l,j,m){H(l,j,m);G(l,j,m)}function G(m,j,p){if(E(m)){if(typeof m.destroy==="function"){j[p]=R(j[p],new a(a.REMOVE,m,null))
}}else{if(d(m)&&(m.hasWidgets||m.hasThunks)){var n=m.children;var q=n.length;for(var o=0;
o<q;o++){var l=n[o];p+=1;G(l,j,p);if(d(l)&&l.count){p+=l.count}}}else{if(W(m)){F(m,null,j,p)
}}}}function F(o,p,j,l){var n=K(o,p);var m=O(n.a,n.b);if(N(m)){j[l]=new a(a.THUNK,null,m)
}}function N(j){for(var l in j){if(l!=="a"){return true}}return false}function H(m,j,p){if(d(m)){if(m.hooks){j[p]=R(j[p],new a(a.PROPS,m,P(m.hooks)))
}if(m.descendantHooks||m.hasThunks){var n=m.children;var q=n.length;for(var o=0;o<q;
o++){var l=n[o];p+=1;H(l,j,p);if(d(l)&&l.count){p+=l.count}}}}else{if(W(m)){F(m,null,j,p)
}}}function P(j){var m={};for(var l in j){m[l]=undefined}return m}function U(o,A){var af=T(A);
var ad=af.keys;var ae=af.free;if(ae.length===A.length){return{children:A,moves:null}
}var ah=T(o);var s=ah.keys;var u=ah.free;if(u.length===o.length){return{children:A,moves:null}
}var l=[];var z=0;var y=ae.length;var x=0;for(var p=0;p<o.length;p++){var ag=o[p];
var n;if(ag.key){if(ad.hasOwnProperty(ag.key)){n=ad[ag.key];l.push(A[n])}else{n=p-x++;
l.push(null)}}else{if(z<y){n=ae[z++];l.push(A[n])}else{n=p-x++;l.push(null)}}}var m=z>=ae.length?A.length:ae[z];
for(var q=0;q<A.length;q++){var C=A[q];if(C.key){if(!s.hasOwnProperty(C.key)){l.push(C)
}}else{if(q>=m){l.push(C)}}}var ac=l.slice();var v=0;var w=[];var B=[];var t;for(var r=0;
r<A.length;){var j=A[r];t=ac[v];while(t===null&&ac.length){w.push(J(ac,v,null));t=ac[v]
}if(!t||t.key!==j.key){if(j.key){if(t&&t.key){if(ad[t.key]!==r+1){w.push(J(ac,v,t.key));
t=ac[v];if(!t||t.key!==j.key){B.push({key:j.key,to:r})}else{v++}}else{B.push({key:j.key,to:r})
}}else{B.push({key:j.key,to:r})}r++}else{if(t&&t.key){w.push(J(ac,v,t.key))}}}else{v++;
r++}}while(v<ac.length){t=ac[v];w.push(J(ac,v,t&&t.key))}if(w.length===x&&!B.length){return{children:l,moves:null}
}return{children:l,moves:{removes:w,inserts:B}}}function J(m,l,j){m.splice(l,1);return{from:l,key:j}
}function T(o){var m={};var l=[];var n=o.length;for(var p=0;p<n;p++){var j=o[p];if(j.key){m[j.key]=p
}else{l.push(p)}}return{keys:m,free:l}}function R(l,j){if(l){if(Q(l)){l.push(j)}else{l=[l,j]
}return l}else{return j}}},{"../vnode/handle-thunk":24,"../vnode/is-thunk":25,"../vnode/is-vnode":27,"../vnode/is-vtext":28,"../vnode/is-widget":29,"../vnode/vpatch":32,"./diff-props":34,"x-is-array":12}]},{},[4])(4)
});define("virtualdom.utils",["virtualdom","richfaces.memory","sax"],function(s,u,w){var p=u.Memory;
var o=function(d){var b=0,f,e;if(d.length===0){return b}var a=/[/\s]*<!\[CDATA\[[\s]?(.*)[/\s]?]]>[\s]?/.exec(d);
if(a){d=a[1]}for(f=0;f<d.length;f++){e=d.charCodeAt(f);b=((b<<5)-b)+e;b|=0}return b
};var r=function(a,b){try{p.clean(a,true)}catch(d){}};var m=function(e,g,f,d){var i,a={tabindex:"0"};
for(var h=0;h<e.attributes.length;h++){var b=e.attributes[h];if(b.name==="id"||b.name==="value"){d[b.name]=b.value
}else{if(b.name==="tabindex"||b.name==="target"){if(b.value){a[b.name]=b.value}}else{if(b.name==="class"){a[b.name]=b.value?b.value.trim():""
}else{a[b.name]=b.value}}}}d.attributes=a;if(f){i="hash:"+o(f)}else{if(a["data-id"]){i=a["data-id"]
}else{if(d.id){i=d.id}else{if(g==="SCRIPT"&&a.src){i=a.src}else{if(g==="SCRIPT"&&e.textContent){i="hash:"+o(e.textContent)
}else{if(g==="SCRIPT"&&c.length==1&&vnode.children[0].text){i="hash:"+o(vnode.children[0].text)
}else{if(g==="STYLE"&&e.textContent){i="hash:"+o(e.textContent)}else{if(g==="LINK"&&a.href&&a.rel){i=a.rel+":"+a.href
}else{if(g==="TITLE"){i=g}else{if(g==="META"&&a["http-equiv"]){i=a["http-equiv"]}else{if(g==="META"&&a.name){i=a.name
}}}}}}}}}}}return i};var n=function(i,d,C,h,b,j){h=h||0;var e;if(d.nodeType==Node.ELEMENT_NODE){var l=[],g={};
var f=d.tagName.toUpperCase(),B;if(f==="SVG"){B=d.outerHTML||('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+d.getAttribute("width")+'" height="'+d.getAttribute("height")+'">'+d.innerHTML+"</svg>")
}else{for(var D=0;D<d.childNodes.length;D++){n(l,d.childNodes[D],f!=="SCRIPT"&&f!=="STYLE"&&f!=="TITLE"&&C,h+":"+D,b,d.component?d:j)
}}var a=m(d,f,B,g);e=new s.VNode(f.toLowerCase(),g,l,a,d.namespaceURI);e.cleanup=r;
e.htmlContent=B;if(j&&b){e.setup=function(y,x){b(y,x,j)}}if(f!=="SCRIPT"){e.domNode=d
}}else{if(d.nodeType==Node.TEXT_NODE){e=new s.VText(d.textContent);if(C){e.key="text:"+h
}}else{e=new s.VText("")}}if(i.splice){i.push(e);return i}else{if(i&&i.children){i.children.push(e);
return i.children}}};var t=function(b,g){g=g||{};var e=[];var a=b.documentElement;
for(var f in a.childNodes){if(a.childNodes.hasOwnProperty(f)){var d=a.childNodes[f];
if(d.tagName&&d.tagName.toUpperCase()==="HEAD"){n(e,d,true,f,g.componentSetup)}else{if(d.tagName&&d.tagName.toUpperCase()==="BODY"){n(e,d,false,0,g.componentSetup)
}}}}return e};var v=function(b,a){a=a||{};var d=[];n(d,b,false,0,a.componentSetup);
return d[0]};var q=function(f,a){a=a||{};var d=[];var b=w.parser(false);var e={name:"document",children:[]};
b.ontext=b.cdata=function(g){e.text=(e.text||"")+g};b.onopentag=function(h){var g={name:h.name,attributes:h.attributes,children:[],parent:e};
e.children.push(g);e=g};b.onclosetag=function(g){var h=e;if(g.toUpperCase()==="HEAD"){d.push(e)
}else{if(g.toUpperCase()==="BODY"){d.push(e)}}e=e.parent};b.write(f).close();return d
};return{parse:v,parseXml:q,parseDom:t}});define("eval.with",["globals","exports"],function(globals,exports){var window=globals.g;
exports.evalWith=function(template,object){var c=object||{},value;with(c){value=window["eval"](template)
}return value}});define("a4j",["log","sarissa"],function(h,g){var e=h.LOG;var f={_name:"a4j",_ver:1};
f.Query=function(d,a){var b=d||(f.AJAX&&f.AJAX.VIEW_ROOT_ID);this._query={AJAXREQUEST:b};
this._oldSubmit=null;this._form=a;this._containerId=b;this._actionUrl=(this._form&&this._form.action)?this._form.action:this._form
};f.Query.prototype={_form:null,_actionUrl:null,_ext:"",_query:{},_oldSubmit:null,_pageBase:window.location.protocol+"//"+window.location.host,hidden:function(a){this._value_query(a);
if((a.name.length>4)&&(a.name.lastIndexOf("_idcl")==(a.name.length-5))){a.value=""
}else{if((a.name.length>12)&&(a.name.lastIndexOf("_link_hidden_")==(a.name.length-13))){a.value=""
}}},text:function(a){this._value_query(a)},email:function(a){this._value_query(a)
},search:function(a){this._value_query(a)},url:function(a){this._value_query(a)},tel:function(a){this._value_query(a)
},textarea:function(a){this._value_query(a)},"select-one":function(a){if(a.selectedIndex!=-1){this._value_query(a)
}},password:function(a){this._value_query(a)},file:function(a){this._value_query(a)
},radio:function(a){this._radio_query(a)},checkbox:function(a){this._check_query(a)
},"select-multiple":function(a){var i=a.name;var l=a.options;for(var d=0;d<a.length;
d++){var b=l[d];this._addOption(i,b)}},_addOption:function(b,a){if(a.selected){if(!this._query[b]){this._query[b]=[]
}this._query[b][this._query[b].length]=a.value}},image:function(a,b){if(b){this._value_query(a)
}},button:function(a,b){if(b){this._value_query(a)}},submit:function(a,b){if(b){this._value_query(a)
}},link:function(a,b){if(b){this._value_query(a);if(a.parameters){this.appendParameters(a.parameters)
}}},input:function(a,b){if(b){this.link(a,b);if(a.control){this.appendControl(a.control,b)
}}},appendControl:function(a,b){if(this[a.type]){this[a.type](a,b)}else{this._appendById(a.id||a)
}},appendFormControls:function(b,n){try{var o=this._form.elements;if(o){var p=0;for(p=0;
p<o.length;p++){var d=o[p];if(d==n){continue}try{if(!b||d.type=="hidden"){this.appendControl(d,false)
}}catch(q){e.error("exception in building query ( append form control ) "+q)}}}}catch(a){e.warn("Error with append form controls to query "+a)
}if(n){this.appendControl(n,true)}},appendParameters:function(a){for(k in a){if(typeof Object.prototype[k]=="undefined"){e.debug("parameter "+k+" with value "+a[k]);
this.appendParameter(k,a[k])}}},setActionUrl:function(a){this._actionUrl=a},getActionUrl:function(d){var b=this._actionUrl;
var a=b.indexOf("?");if(b.substring(0,1)=="/"){b=this._pageBase+b}if(!d){d=this._ext
}if(a>=0){return b.substring(0,a)+d+b.substring(a)}else{return b+d}},getQueryString:function(){var n="";
var d;var a=[];var b;for(var l in this._query){if(typeof Object.prototype[l]=="undefined"){d=this._query[l];
b=this._encode(l);if(d instanceof Object){for(var m=0;m<d.length;m++){a.push(b);a.push("=");
a.push(this._encode(d[m]));a.push("&")}}else{a.push(b);a.push("=");a.push(this._encode(d));
a.push("&")}}}n=a.join("");e.debug("QueryString: "+n);return n},_appendById:function(a){this.appendParameter(this._form.id+"_link_hidden_",a)
},_value_query:function(a){if(a.name){e.debug("Append "+a.type+" control "+a.name+" with value ["+a.value+"] and value attribute ["+a.getAttribute("value")+"]");
if(null!=a.value){this.appendParameter(a.name,a.value)}}else{e.debug("Ignored "+a.type+" no-name control with value ["+a.value+"] and value attribute ["+a.getAttribute("value")+"]")
}},_check_query:function(a){if(a.checked){this.appendParameter(a.name,a.value?a.value:"on")
}},_radio_query:function(a){if(a.checked){this.appendParameter(a.name,a.value?a.value:"")
}},appendParameter:function(b,a){if(!this._query[b]){this._query[b]=a;return}else{if(!(this._query[b] instanceof Object)){this._query[b]=[this._query[b]]
}}this._query[b][this._query[b].length]=a},_encode:function(d){try{return encodeURIComponent(d)
}catch(b){var a=escape(d);return a.split("+").join("%2B")}}};return{Query:f.Query,A4J:f}
});define("a4j.ajax",["globals","log","richfacesjs","richfaces","a4j","sarissa.jquery","virtualdom","virtualdom.utils","eval.with","richfaces.memory","json.dom","jquery"],function(ae,W,L,ab,af,G,X,aa,O,K,I,Z){var T=ae.g,S=W.LOG,Y=L.Richfaces,J=ab.RichFaces,M=ae.doc,ag=af.A4J,ac=G.Sarissa,V=X,U=aa,H=O.evalWith,N=K.Memory;
var Q=[];if(!Z.fn.ready.a4j){var E=Z.fn.ready;Z.fn.ready=function(a){Q.push(a);return E(a)
}}var ad=T.JSON||{parse:function(a){return H("("+a+")")},stringify:(function(){var b=Object.prototype.toString;
var e=Array.isArray||function(h){return b.call(h)==="[object Array]"};var f={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};
var g=function(h){return f[h]||"\\u"+(h.charCodeAt(0)+65536).toString(16).substr(1)
};var d=/[\\"\u0000-\u001F\u2028\u2029]/g;return function a(j){if(j==null){return"null"
}else{if(typeof j==="number"){return isFinite(j)?j.toString():"null"}else{if(typeof j==="boolean"){return j.toString()
}else{if(typeof j==="object"){if(typeof j.toJSON==="function"){return a(j.toJSON())
}else{if(e(j)){var l="[";for(var m=0;m<j.length;m++){l+=(m?", ":"")+a(j[m])}return l+"]"
}else{if(b.call(j)==="[object Object]"){var h=[];for(var i in j){if(j.hasOwnProperty(i)){h.push(a(i)+": "+a(j[i]))
}}return"{"+h.join(", ")+"}"}}}}}}}return'"'+j.toString().replace(d,g)+'"'}})()};
var R=function(e,d){var a=d.createElementNS(e.namespaceURI,e.nodeName);for(var f=0,h=e.attributes.length;
f<h;++f){var g=e.attributes[f];a.setAttributeNS(g.namespaceURI,g.nodeName,g.nodeValue)
}for(var f=0,h=e.childNodes.length;f<h;++f){var b=e.childNodes[f];a.insertBefore(b.nodeType==1?R(b,d):b.nodeType==8?d.createComment(b.nodeValue):d.createTextNode(b.nodeValue),null)
}return a};var P=ag.AJAX={};P.VIEW_ROOT_ID="_viewRoot";P.Stub=function(){};P.isWebKit=navigator.userAgent.search(/( AppleWebKit\/)([^ ]+)/)!=-1;
var F=P.XMLHttpRequest=function(a){this._query=a;this._documentElement=M().documentElement
};F.prototype={_cleaner:function(a,b){N.clean(a,b)},_query:null,_timeout:0,_timeoutID:null,onready:null,_parsingStatus:ac.PARSED_EMPTY,_errorMessage:"XML Response object not set",_contentType:null,_onerror:function(a,d,b){if(d!=599&&a.getResponseText()){P.replacePage(a)
}},onfinish:null,options:{},domEvt:null,form:null,_request:null,_aborted:false,_documentElement:null,setRequestTimeout:function(a){this._timeout=a
},send:function(){this._request=new XMLHttpRequest();var a=this;this._request.onreadystatechange=function(){if(M().documentElement!=a._documentElement){S.warn("Page for current request have been unloaded - abort processing");
if(!a._status_stopped){P.status(a.containerId,a.options.status,false);a._status_stopped=true
}a.abort();return}S.debug("Request state : "+a._request.readyState);if(a._request.readyState==4){if(a._aborted){P.status(a.containerId,a.options.status,false);
P.popQueue(a);return}S.debug("Request end with state 4");if(a._timeoutID){T.clearTimeout(a._timeoutID)
}var e;var g;try{e=a._request.status;g=a._request.statusText}catch(f){S.error("request don't have status code - network problem, "+f.message);
e=599;g="Network error"}if(e==200){try{S.debug("Response  with content-type: "+a.getResponseHeader("Content-Type"));
S.debug("Full response content: ",a.getResponseText())}catch(f){}if(a._request.responseXML){a._parsingStatus=ac.getParseErrorText(a._request.responseXML);
if(a._parsingStatus==ac.PARSED_OK&&ac.setXpathNamespaces){ac.setXpathNamespaces(a._request.responseXML,"xmlns='http://www.w3.org/1999/xhtml'")
}}if(a.onready){a.onready(a)}}else{a._errorMessage="Request error, status : "+e+" "+g;
S.error(a._errorMessage);if(typeof(a._onerror)=="function"){a._onerror(a,e,a._errorMessage)
}if(a.onfinish){a.onfinish(a)}}a=undefined}};try{S.debug("Start XmlHttpRequest");
this._request.open("POST",this._query.getActionUrl(""),true);var b="application/x-www-form-urlencoded; charset=UTF-8";
this._request.setRequestHeader("Content-Type",b)}catch(d){S.debug("XmlHttpRequest not support setRequestHeader - use GET instead of POST");
this._request.open("GET",this._query.getActionUrl("")+"?"+this._query.getQueryString(),true)
}this._request.send(this._query.getQueryString());if(this._timeout>0){this._timeoutID=T.setTimeout(function(){S.warn("request stopped due to timeout");
if(!a._aborted){if(typeof(P.onAbort)=="function"){P.onAbort(a)}}a._aborted=true;a._request.onreadystatechange=P.Stub;
a._request.abort();if(a._onerror){a._errorMessage="Request timeout";a._onerror(a,500,a._errorMessage)
}if(a.onfinish){a.onfinish(a)}a._request=undefined;a=undefined},this._timeout)}},abort:function(){this._oncomplete_aborted=true;
if(!this._aborted){if(typeof(P.onAbort)=="function"){P.onAbort(this)}}this._aborted=true
},getResponseText:function(){try{return this._request.responseText}catch(a){return null
}},getError:function(){return this._errorMessage},getParserStatus:function(){return this._parsingStatus
},getContentType:function(){if(!this._contentType){var a=this.getResponseHeader("Content-Type");
if(a){var b=a.indexOf(";");if(b>=0){this._contentType=a.substring(0,b)}else{this._contentType=a
}}else{this._contentType="text/html"}}return this._contentType},getResponseHeader:function(f){var g;
try{g=this._request.getResponseHeader(f);if(g===""){g=undefined}}catch(b){S.debug("could not get "+f+" response header")
}if(!g){S.debug("Header "+f+" not found, search in <meta>");if(this._parsingStatus==ac.PARSED_OK){var a=this.getElementsByTagName("meta");
for(var e=0;e<a.length;e++){var d=a[e];S.debug("Find <meta name='"+d.getAttribute("name")+"' content='"+d.getAttribute("content")+"'>");
if(d.getAttribute("name")==f){g=d.getAttribute("content");break}}}}return g},getElementsByTagName:function(f,d){if(!d){d=this._request.responseXML
}S.debug("search for elements by name '"+f+"'  in element "+d.nodeName);var a;try{a=d.selectNodes('.//*[local-name()="'+f+'"]')
}catch(e){try{a=d.getElementsByTagName(f)}catch(b){S.debug("getElementsByTagName found no elements, "+b.Message)
}}return a},getElementById:function(a){var b=this._request.responseXML;if(b){if(typeof(b.getElementById)!="undefined"){S.debug("call getElementById for id= "+a);
return b.getElementById(a)}else{if(typeof(b.selectSingleNode)!="undefined"){S.debug("call selectSingleNode for id= "+a);
return b.selectSingleNode("//*[@id='"+a+"']")}else{if(typeof(b.nodeFromID)!="undefined"){S.debug("call nodeFromID for id= "+a);
return b.nodeFromID(a)}}}S.error("No functions for getElementById found ")}else{S.debug("No parsed XML document in response")
}return null},getJSON:function(a){var d;var e=this.getElementById(a);if(e){try{d=ac.getText(e,true).trim();
d=ad.parse(d)}catch(b){try{d=H("("+d+")",{e:I})}catch(b){S.error("Error on parsing JSON/JS data "+b.message,d)
}}}return d},_evaluateScript:function(b){var e=!P.isXhtmlScriptMode();var d=P.getText(b,e);
if(d===""){return}try{S.debug("Evaluate script replaced area in document: ",d);if(T.execScript){T.execScript(d)
}else{H(d)}S.debug("Script evaluation succeeded")}catch(a){S.error("ERROR Evaluate script: Error name: "+a.name+a.message?". Error message: "+a.message:"")
}},evaluateQueueScript:function(){var a=this.getElementById("org.ajax4jsf.queue_script");
if(a){this._evaluateScript(a)}},evalScripts:function(e,d){var a=this.getElementsByTagName("script",e);
S.debug("Scripts in updated part count : "+a.length);if(a.length>0){var b=this;T.setTimeout(function(){for(var f=0;
f<a.length;f++){b._evaluateScript(a[f])}a=null;if(d){b.doFinish()}b=undefined},0)
}else{if(d){this.doFinish()}}},updatePagePart:function(q,o){var l=this.getElementById(q);
if(!l){try{var r=this.getElementsByTagName("body")[0].children,h=false;for(var n=0;
n<r.length;n++){var g=r[n];if(g.id.startsWith(q)){this.updatePagePart(g.id,false);
h=true}}if(h){if(o){this.doFinish()}return}}catch(g){S.error("could not find "+q+" elements in response")
}S.error("New node for ID "+q+" is not present in response");if(o){this.doFinish()
}return}var b=M().getElementById(q);if(b){if(!(ac._SARISSA_IS_MOZ&&!ac._SARISSA_IS_IE)&&J.Memory){this._cleaner(b,true)
}if(ac._SARISSA_IS_MOZ&&!ac._SARISSA_IS_IE){S.debug("Replace content of node by patch");
var i=[];var a={};a.componentSetup=function(t,v,u){if(u&&i.indexOf(u)<0){i.push(u)
}};var d=U.parse(b,a),s=U.parse(l,a);var f=V.diff(d,s);try{V.patch(b,f)}catch(g){S.warn("Could not update page by patch "+f+" "+g.message)
}for(var n=0;n<i.length;n++){var e=i[n].component;if(e&&e.reInitialize){try{var q=i[n].id;
this._cleaner(i[n],true);e.reInitialize(q)}catch(g){S.error("Could not re-setup component "+e._componentType+" "+g.message)
}}}P._scriptEvaluated=true}else{if(!T.opera&&!P.isWebkitBreakingAmps()&&b.outerHTML&&!b.tagName.match(/(tbody|thead|tfoot|tr|th|td)/i)){S.debug("Replace content of node by outerHTML()");
if(!ac._SARISSA_IS_IE||b.tagName.toLowerCase()!="table"){try{b.innerHTML=""}catch(g){S.error("Error to clear node content by innerHTML "+g.message);
ac.clearChildNodes(b)}}b.outerHTML=new XMLSerializer().serializeToString(l)}else{var p=b.parentNode;
ac.clearChildNodes(b);if(P.isWebKit){try{l.normalize()}catch(g){S.error("Node normalization failed "+g.message)
}}var j=l;try{j=M().importNode(l,true)}catch(g){j=R(nodenode,M())}S.debug("Replace content of node by replaceChild()");
var m=null;P.TestReplacedGetElementByIdVisibility();if(!P._testReplacedGetElementByIdVisibility){S.debug("Temporarily substituting document.getElementById() to work around WebKit issue");
m=document.getElementById;document.getElementById=function(v){var t=m.apply(document,arguments);
if(!t){var v=arguments[0];S.debug("Element [@id='"+v+"'] was not found in document, trying to locate XPath match");
try{var u=j.ownerDocument.evaluate("//*[@id='"+v+"']",j,null,XPathResult.ANY_UNORDERED_NODE_TYPE);
if(u){t=u.singleNodeValue}S.debug("XPath located: "+t)}catch(w){S.error("Error locating [@id='"+v+"'] element: "+w.message)
}}return t}}try{p.replaceChild(j,b)}finally{if(m){S.debug("Restoring document.getElementById()");
document.getElementById=m}}}}if(!P._scriptEvaluated){this.evalScripts(l,o)}S.debug("Update part of page for Id: "+q+" successful")
}else{S.warn("Node for replace by response with id "+q+" not found in document");
if(!P._scriptEvaluated&&o){this.doFinish()}}if(P._scriptEvaluated&&o){this.doFinish()
}},doFinish:function(){if(this.onfinish){this.onfinish(this)}},appendNewHeadElements:function(a){var e=this._appendNewElements("script","src",null,null,["type","language","charset"]);
var b=this;e.concat(this._appendNewElements("link","href","class",["component","user"],["type","rev","media"],{"class":"className"},function(j,i){b._copyAttribute(j,i,"rel")
}));if(e.length==0){a();return}var h=P.headElementsCounter=e.length;var d=function(){this.onreadystatechange=null;
this.onload=null;var i=e.indexOf(this);if(i>=0){e.splice(i,1);if(e.length==0){a()
}}};var g=function(){if(this.readyState=="loaded"||this.readyState=="complete"){d()
}};for(var f=0;f<e.length;f++){e[f].onreadystatechange=g;e[f].onload=d}},_appendNewElements:function(z,g,y,j,o,w,u){var t=M().getElementsByTagName("head")[0]||M().documentElement;
var v=this.getElementsByTagName(z);var m=M().getElementsByTagName(z);var s=(w&&w[y])||y;
var l=[];var f={};if(j){var h=0;for(var i=0;i<m.length;i++){var r=m[i];var e=r[s];
for(;h<j.length&&j[h]!=e;h++){f[j[h]]=r}if(h==j.length){break}}}for(var h=0;h<v.length;
h++){var x=v[h];var q=x.getAttribute(g);var n;if(j){n=x.getAttribute(y)}if(q){var b=false;
S.debug("<"+z+"> in response with src="+q);for(var i=0;i<m.length;i++){if(this._noSessionHref(q)==this._noSessionHref(m[i].getAttribute(g))){S.debug("Such element exist in document");
if(y){var a=m[i][s];if((!n^!a)||(n&&a&&n!=a)){S.warn("Roles are different")}}b=true;
break}}if(!b){var d=M().createElement(z);d.setAttribute(g,q);for(var i=0;i<o.length;
i++){this._copyAttribute(x,d,o[i])}if(n){d[s]=n}S.debug("append element to document");
for(var i=0;i<P._headTransformers.length;i++){P._headTransformers[i](d)}var p=f[n];
if(p&&p.parentNode){p.parentNode.insertBefore(d,p)}else{t.appendChild(d)}if(u){u(x,d)
}if(z!="link"||d.type.toLowerCase()=="text/javascript"){l.push(d)}}}}return l},_noSessionHref:function(e){var d=e;
if(e){var b=e.lastIndexOf(";jsessionid=");if(b>0){d=e.substring(0,b);var a=e.lastIndexOf("?");
if(a>b){d=d+e.substring(a)}}}return d},_copyAttribute:function(b,a,e){var d=b.getAttribute(e);
if(d){a.setAttribute(e,d)}}};P.Listener=function(a){this.onafterajax=a};P.AjaxListener=function(b,a){this[b]=a
};P._listeners=[];P.AddListener=function(a){P._listeners.push(a)};P.removeListeners=function(a){P._listeners=[]
};P.removeListener=function(a){for(var b=P._listeners.length-1;b>=0;b--){if(P._listeners[b]==a){P._listeners.splice(b,1)
}}};P.runReady=function(){var a=Z.Deferred();for(var b=0;b<Q.length;b++){a.then(Q[b])
}a.resolveWith(M(),[Z])};P.HeadElementTransformer=function(a){this.elt=a};P._headTransformers=[];
P.AddHeadElementTransformer=function(a){P._headTransformers.push(a)};P.SetZeroRequestDelay=function(a){if(typeof a.requestDelay=="undefined"){a.requestDelay=0
}};P._pollers={};P.Poll=function(a,b){P.StopPoll(b.pollId);if(!b.onerror){b.onerror=function(d,f,e){if(typeof(P.onError)=="function"){P.onError(d,f,e)
}P.Poll(a,b)}}if(!b.onqueuerequestdrop){b.onqueuerequestdrop=function(){P.Poll(a,b)
}}P.SetZeroRequestDelay(b);P._pollers[b.pollId]=T.setTimeout(function(){P._pollers[b.pollId]=undefined;
if((typeof(b.onsubmit)=="function")&&(b.onsubmit()==false)){P.Poll(a,b)}else{P.Submit(a,null,b)
}},b.pollinterval)};P.StopPoll=function(a){if(P._pollers[a]){T.clearTimeout(P._pollers[a]);
P._pollers[a]=undefined}};P.Push=function(a,b){P.StopPush(b.pushId);b.onerror=function(){P.Push(a,b)
};b.onqueuerequestdrop=function(){S.debug("Push main request dropped from queue")
};P._pollers[b.pushId]=T.setTimeout(function(){var d=new XMLHttpRequest();d.onreadystatechange=function(){if(d.readyState==4){try{if(d.status==200){if(d.getResponseHeader("Ajax-Push-Status")=="READY"){P.SetZeroRequestDelay(b);
P.Submit(a||b.dummyForm,null,b)}}}catch(e){}d=null;P._pollers[b.pushId]=null;P.Push(a,b)
}};P.SendPush(d,b)},b.pushinterval)};P.SendPush=function(a,b){var d=b.pushUrl||b.actionUrl;
a.open("HEAD",d,true);a.setRequestHeader("Ajax-Push-Key",b.pushId);if(b.timeout){a.setRequestHeader("Timeout",b.timeout)
}a.send(null)};P.StopPush=function(a){if(P._pollers[a]){T.clearTimeout(P._pollers[a]);
P._pollers[a]=null}};P.CloneObject=function(b,d){var e={};for(var a in b){if(d&&typeof(evt[prop])=="function"){continue
}e[a]=b[a]}return e};P.SubmitForm=function(a,d){var b=P.CloneObject(d);if(ag._formInput){S.debug("Form submitted by button "+ag._formInput.id);
b.control=ag._formInput;ag._formInput=null;b.submitByForm=true}P.Submit(a,null,b)
};P.SubmiteventsQueue=function(a){a.submit()};P.CloneEvent=function(d){var b;d=d||T.event||null;
if(d){try{b=P.CloneObject(d,false)}catch(a){S.warn("Exception on clone event "+a.name+":"+a.message)
}S.debug("Have Event "+b+" with properties: target: "+b.target+", srcElement: "+b.srcElement+", type: "+b.type)
}return b};P.PrepareQuery=function(b,d,g){for(var i=0;i<P._listeners.length;i++){var e=P._listeners[i];
if(e.onbeforeajax){e.onbeforeajax(b,d,g)}}S.debug("Query preparation for form '"+b+"' requested");
var f=M().getElementById(b);if((!f||f.nodeName.toUpperCase()!="FORM")&&d){var h=d.target||d.srcElement||null;
if(h&&h!=T){f=P.locateForm(h)}else{return}}var a=new ag.Query(g.containerId,f);a.appendFormControls(g.single,g.control);
if(g.parameters){a.appendParameters(g.parameters)}if(g.actionUrl){a.setActionUrl(g.actionUrl)
}return a};P.SubmitQuery=function(b,h,d){var e=new F(b);var f=b._form;var i=b._containerId;
e.options=h;e.containerId=i;e.domEvt=d;e.form=f;if(h.timeout){e.setRequestTimeout(h.timeout)
}e.onready=P.processResponse;if(h.onerror){e._onerror=h.onerror}else{if(typeof(P.onError)=="function"){e._onerror=P.onError
}}var g=h.queueonerror;if(g){var a=e._onerror;if(a){e._onerror=function(){g.apply(this,arguments);
a.apply(this,arguments)}}else{e._onerror=g}}e.onfinish=P.finishRequest;S.debug("NEW AJAX REQUEST !!! with form: "+(f&&(f.id||f.name||f)));
P.status(i,h.status,true);e.send();return e};P.Submit=function(a,e,f){var b=P.CloneEvent(e);
var d=P.PrepareQuery(a,b,f);if(d&&d._actionUrl){var g=P.EventQueue.getOrCreateQueue(f,a);
if(g){g.push(d,f,b)}else{P.SubmitQuery(d,f,b)}}return false};P.SubmitRequest=function(a,e,f){var b=P.CloneEvent(e);
var d=P.PrepareQuery(a,b,f);if(d){P.SubmitQuery(d,f,b)}return false};P.processResponseAfterUpdateHeadElements=function(b,d){b.evaluateQueueScript();
for(var e=0;e<d.length;e++){var a=d[e];S.debug("Update page part from call parameter for ID "+a);
b.updatePagePart(a,e==d.length-1)}};P.headElementsCounter=0;P.processResponse=function(u){P.TestScriptEvaluation();
var q=u.options;var a=u.getResponseHeader("Ajax-Response");var d=u.getResponseHeader("Ajax-Expired");
if(d&&typeof(P.onExpired)=="function"){var m=P.onExpired(T.location,d);if(m){T.location=m;
return}}if(a!="true"){S.debug("No ajax response header ");var m=u.getResponseHeader("Location");
try{if(a=="redirect"&&m){T.location=m}else{if(a=="reload"){T.location.reload(true)
}else{P.replacePage(u)}}}catch(g){S.error("Error redirect to new location ")}}else{if(u.getParserStatus()==ac.PARSED_OK){if(q.onbeforedomupdate||q.queueonbeforedomupdate){var h=u.domEvt,b=u.getJSON("_ajax:data");
S.debug("Call local onbeforedomupdate function before replacing elemements");if(q.onbeforedomupdate){q.onbeforedomupdate(u,h,b)
}if(q.queueonbeforedomupdate){q.queueonbeforedomupdate(u,h,b)}}var i,t=u.getResponseHeader("Ajax-Update-Ids");
var o=function(){if(P.headElementsCounter!=0){S.debug("Script "+P.headElementsCounter+" was loaded");
--P.headElementsCounter}if(P.headElementsCounter==0){P.processResponseAfterUpdateHeadElements(u,i)
}};if(q.affected){i=q.affected;u.appendNewHeadElements(o)}else{if(t&&t!=""){S.debug("Update page by list of rendered areas from response "+t);
i=t.split(",");u.appendNewHeadElements(o)}else{S.warn("No information in response about elements to replace");
u.doFinish()}}var e=u.getElementById("ajax-view-state");if(e!=null){var l=q.parameters["org.ajax4jsf.portlet.NAMESPACE"];
S.debug("Namespace for hidden view-state input fields is "+l);var n=l?M().getElementById(l):M();
var s=n.getElementsByTagName("input");try{P.replaceViewState(s,u.getElementsByTagName("input",e))
}catch(g){S.warn("No elements 'input' in response")}try{P.replaceViewState(s,u.getElementsByTagName("INPUT",e))
}catch(g){S.warn("No elements 'INPUT' in response")}}for(var j=0;j<P._listeners.length;
j++){var p=P._listeners[j];if(p.onafterajax){p.onafterajax(u,u.domEvt,u.getJSON("_ajax:data"))
}}var f=u.getJSON("_AJAX.focus");if(f){S.debug("focus must be set to control "+f);
var r=false;if(u.form){r=u.form.elements[f]}if(!r){S.debug("No control element "+f+" in submitted form");
r=M().getElementById(f)}if(r){S.debug("Set focus to control");r.focus();if(r.select){r.select()
}}else{S.warn("Element for set focus not found")}}else{S.debug("No focus information in response")
}}else{S.error("Error parsing XML, Parse Error: "+u.getParserStatus())}}};P.replacePage=function(d){if(!d.getResponseText()){S.warn("No content in response for replace current page");
return}S.debug("replace all page content with response");if(T.history&&d._request.responseURL){T.history.pushState({url:d._request.responseURL},M().title,d._request.responseURL)
}var e=ac._SARISSA_IS_IE&&!ac._SARISSA_IS_IE11;var a=M().open;if(e){S.debug("setup custom document.open method");
M().open=function(h,j,i,l){a(h,j,i,l)}}var g=function(j,h){var i=false;try{var m=e?h.replace(/(<script(?!\s+src=))/igm,"$1 defer "):h;
M().open(j,"replace");S.debug("window.document has opened for writing");i=true;M().write(m);
S.debug("window.document has been writed");M().close();S.debug("window.document has been closed for writing");
if(e){T.location.reload(false)}return true}catch(l){S.debug("exception during write page content "+l.Message);
if(i){M().close()}}return false};var b=function(m,p,j){var i=(new DOMParser()).parseFromString(p,m),h=M();
if(ac.getParseErrorText(i)==ac.PARSED_OK){var n=U.parseDom(h),l=U.parseDom(i);var q=V.diff(n[0],l[0]),s=V.diff(n[1],l[1]);
var t=h.documentElement.childNodes;for(var o=0;o<t.length;o++){var r=t[o];if(r.tagName=="BODY"){V.patch(r,s)
}else{if(r.tagName=="HEAD"){V.patch(r,q)}}}return true}S.error("Error patching response",ac.getParseErrorText(i));
return false};var f=function(l,o,j){var i=(new DOMParser()).parseFromString(o,l),h=M();
if(ac.getParseErrorText(i)==ac.PARSED_OK){S.debug("response has parsed as DOM documnet.");
var s=h.documentElement.childNodes;for(var n=0;n<s.length;n++){var q=s[n];if(q.tagName=="BODY"){q.style="opacity:0;"
}}N.clean(h.documentElement,true);ac.clearChildNodes(h.documentElement);var p=i.documentElement.childNodes;
for(var n=0;n<p.length;n++){var r=p[n];if(r.nodeType==1){S.debug("append new node in document");
var q=r;try{q=h.importNode(q,true)}catch(m){q=R(q,h)}if(q.tagName=="BODY"){q.style="opacity:0;"
}h.documentElement.appendChild(q)}}T.setTimeout(function(){var u=h.documentElement.childNodes;
for(var t=0;t<u.length;t++){var v=u[t];if(v.tagName=="BODY"){v.style="opacity:1;"
}}},4);return true}S.error("Error parsing response",ac.getParseErrorText(i));return false
};if(ac._SARISSA_IS_MOZ&&!ac._SARISSA_IS_IE){if(!b("text/html",d.getResponseText(),d)){f("text/html",d.getResponseText(),d)
}}else{if(!f("text/xml",d.getResponseText(),d)){g(d.getContentType(),d.getResponseText())
}}M().open=a;S.debug("page content has been replaced");P.runReady();Z(T).trigger("pagereplaced")
};P.replaceViewState=function(g,b){S.debug("Replace value for inputs: "+g.length+" by new values: "+b.length);
if((b.length>0)&&(g.length>0)){for(var d=0;d<b.length;d++){var a=b[d];S.debug("Input in response: "+a.getAttribute("name"));
for(var e=0;e<g.length;e++){var f=g[e];if(f.name==a.getAttribute("name")){S.debug("Found same input on page with type: "+f.type);
f.setAttribute("autocomplete","off");f.value=a.getAttribute("value")}}}}};P.finishRequest=function(b){var d=b.options;
if(!b._oncomplete_aborted){var e;try{e=b.getElementById("org.ajax4jsf.oncomplete")
}catch(a){S.warn("Error reading oncomplete from request "+a.message)}if(e){S.debug("Call request oncomplete function after processing updates");
T.setTimeout(function(){var g=b.domEvt;var f;try{f=b.getJSON("_ajax:data")}catch(j){S.warn("Error reading data from request "+j.message)
}try{var l=null;if(g){l=g.target?g.target:g.srcElement}var h=ac.getText(e,true);var i=new Function("request","event","data",h);
i.call(l,b,g,f);if(d.queueoncomplete){d.queueoncomplete.call(l,b,g,f)}}catch(j){S.error("Error evaluate oncomplete function "+j.Message)
}P.status(b.containerId,d.status,false)},0)}else{if(d.oncomplete||d.queueoncomplete){S.debug("Call local oncomplete function after processing updates");
T.setTimeout(function(){var h=b.domEvt;var g;try{g=b.getJSON("_ajax:data")}catch(f){S.warn("Error reading data from request "+f.message)
}if(d.oncomplete){d.oncomplete(b,h,g)}if(d.queueoncomplete){d.queueoncomplete(b,h,g)
}P.status(b.containerId,d.status,false)},0)}else{S.debug("Processing updates finished, no oncomplete function to call");
T.setTimeout(function(){P.status(b.containerId,d.status,false)},0)}}}else{S.debug("Aborted request, won't call oncomplete at all");
T.setTimeout(function(){P.status(b.containerId,d.status,false)},0)}P.popQueue(b);
Z(T).trigger("requestfinished",b)};P.popQueue=function(a){if(a.shouldNotifyQueue&&a.queue){a.queue.pop()
}};P.getCursorPos=function(a){if(a.selectionEnd!=null){return a.selectionEnd}var b=M().selection.createRange();
if(b.compareEndPoints("StartToEnd",b)!=0){b.collapse(false)}return b.getBookmark().charCodeAt(2)-2
};P.locateForm=function(a){var b=a;while(b&&b.nodeName.toLowerCase()!="form"){b=b.parentNode
}return b};P.getElementById=function(a,e){var b=e["org.ajax4jsf.portlet.NAMESPACE"];
var f=b?M().getElementById(b):M();var d;if(f){d=f.getElementById(a)}else{S.error("No root element for portlet namespace "+b+" on page")
}return d};P._requestsCounts={};P.status=function(b,g,a){try{g=g||b+":status";P._requestsCounts[g]=(P._requestsCounts[g]||0)+(a?1:-1);
var e=M().getElementById(g+".start");var f=M().getElementById(g+".stop");if(P._requestsCounts[g]>0){if(f){f.style.display="none"
}if(e){e.style.display=""}}else{if(e){e.style.display="none"}if(f){f.style.display=""
}}if(a&&e){if(typeof(e.onstart)=="function"){e.onstart()}else{if(e.hasAttribute("onstart")){e.onstart=new Function(e.getAttribute("onstart"));
e.onstart()}}}else{if(!a&&f){if(typeof(f.onstop)=="function"){f.onstop()}else{if(f.hasAttribute("onstop")){f.onstop=new Function(f.getAttribute("onstop"));
f.onstop()}}}}}catch(d){S.error("Exception on status change: ")}};P.getText=function(a,f){var d="",g=a.childNodes;
for(var e=0;e<g.length;e++){var b=g[e],h=b.nodeType;if(h==Node.TEXT_NODE||h==Node.CDATA_SECTION_NODE||(f&&h==Node.COMMENT_NODE)){d+=b.data
}else{if(h==Node.ELEMENT_NODE||h==Node.DOCUMENT_NODE||h==Node.DOCUMENT_FRAGMENT_NODE){d+=arguments.callee(b,f)
}}}return d};P.isWebkitBreakingAmps=function(){if(!this._webkitBreakingAmps){var b=M().createElement("div");
b.innerHTML="<a href='#a=a&#38;b=b'>link</a>";var a=b.firstChild;if(a&&a.getAttribute&&/&#38;b=b$/.test(a.getAttribute("href"))){this._webkitBreakingAmps=2
}else{this._webkitBreakingAmps=1}}return this._webkitBreakingAmps>1};P.isXhtmlScriptMode=function(){if(!this._xhtmlScriptMode){var e=M().createElement("div");
e.innerHTML="<script type='text/javascript'><!--\r\n/**/\r\n//--><\/script>";var b=false,d=e.firstChild;
while(d){if(d.nodeType==Node.ELEMENT_NODE){var a=d.firstChild;while(a){if(a.nodeType==Node.COMMENT_NODE){b=true;
break}a=a.nextSibling}break}d=d.nextSibling}if(b){this._xhtmlScriptMode=2}else{this._xhtmlScriptMode=1
}}return this._xhtmlScriptMode>1};P._scriptEvaluated=false;P.TestScriptEvaluation=function(){if((!M().all||T.opera)&&!P._scriptTested){try{var g=M().createElement("span");
M().body.appendChild(g);var a="<html xmlns='http://www.w3.org/1999/xhtml'><script>require('a4j.ajax').AJAX._scriptEvaluated=true;<\/script></html>";
var e=(new DOMParser()).parseFromString(a,"text/xml");var f=e.getElementsByTagName("script")[0];
if(!T.opera&&!P.isWebkitBreakingAmps()&&g.outerHTML){g.outerHTML=new XMLSerializer().serializeToString(f)
}else{var b=M().importNode(f,true);M().body.replaceChild(b,g)}}catch(d){}}P._scriptTested=true
};P.TestReplacedGetElementByIdVisibility=function(){if(!P._replacedGetElementByIdVisibilityTested){P._replacedGetElementByIdVisibilityTested=true;
P._testReplacedGetElementByIdVisibility=true;P.TestScriptEvaluation();if(P._scriptEvaluated){try{var f=M().createElement("span");
M().body.appendChild(f);var a="<html xmlns='http://www.w3.org/1999/xhtml'><span id='_A4J_AJAX_TestReplacedGetElementByIdVisibility'><script>require('a4j.ajax').AJAX._testReplacedGetElementByIdVisibility = !!(document.getElementById('_A4J_AJAX_TestReplacedGetElementByIdVisibility'));<\/script></span></html>";
var e=(new DOMParser()).parseFromString(a,"text/xml");var g=e.getElementsByTagName("span")[0];
var b=M().importNode(g,true);M().body.replaceChild(b,f);M().body.removeChild(b)}catch(d){S.error("Error testing replaced elements getElementById() visibility: "+d.message)
}}}};P._eventQueues={};P.EventQueue=function(){var e="dropNew";var a="dropNext";var h="fireNew";
var d="fireNext";var b=function(j,l){for(var m in l){j[m]=l[m]}};var i=function(l){var j={};
for(var m in l){j[m]=l[m]}for(var m in this.requestOptions){if(typeof j[m]=="undefined"){j[m]=this.requestOptions[m]
}}return j};var g=function(){var j=function(o,l,n,m){this.queue=o;this.query=l;this.options=n;
this.event=m;this.similarityGroupingId=this.options.similarityGroupingId;this.eventsCount=1
};b(j.prototype,{isIgnoreDupResponses:function(){return this.options.ignoreDupResponses
},getSimilarityGroupingId:function(){return this.similarityGroupingId},setSimilarityGroupingId:function(l){this.similarityGroupingId=l
},submit:function(){this.query.appendParameter("AJAX:EVENTS_COUNT",this.eventsCount);
this.request=P.SubmitQuery(this.query,this.options,this.event);var l=this.queue;this.request.queue=l;
return this.request},abort:function(){if(this.request&&!this.aborted){this.aborted=true;
this.request.abort()}},ondrop:function(){var l=this.options.onqueuerequestdrop;if(l){l.call(this.queue,this.query,this.options,this.event)
}},onRequestDelayPassed:function(){this.readyToSubmit=true;this.queue.submitFirst()
},startTimer:function(){var m=this.options.requestDelay;S.debug("Queue will wait "+(m||0)+"ms before submit");
if(m){var l=this;this.timer=T.setTimeout(function(){try{l.onRequestDelayPassed()}finally{l.timer=undefined;
l=undefined}},m)}else{this.onRequestDelayPassed()}},stopTimer:function(){if(this.timer){clearTimeout(this.timer);
this.timer=undefined}},clearEntry:function(){this.stopTimer();if(this.request){this.request.shouldNotifyQueue=false;
this.request=undefined}},getEventsCount:function(){return this.eventsCount},setEventsCount:function(l){this.eventsCount=l
},getEventArguments:function(){return[this.query,this.options,this.event]}});return j
}();var f=function(l,j,m){this.items=new Array();this.name=l;this.queueOptions=j||{};
this.requestOptions=m||{}};b(f.prototype,{submitFirst:function(){if(this.items.length){while(this.items.length&&this.items[0].request&&this.items[0].request._request.readyState==4){this.items.shift().clearEntry()
}var j=this.items[0];if(j&&!j.request){if(j.readyToSubmit){S.debug("Queue '"+this.name+"' will submit request NOW");
var l=j.submit();l.shouldNotifyQueue=true;if(this.requestOptions.queueonsubmit){this.requestOptions.queueonsubmit.call(this,l)
}}else{S.debug("First item is not ready to be submitted yet")}}}else{S.debug("Queue is empty now")
}},getSize:function(){return this.items.length},getMaximumSize:function(){return this.queueOptions.size
},isFull:function(){return this.getSize()==this.getMaximumSize()},getSizeExceededBehavior:function(){var j=this.queueOptions.sizeExceededBehavior;
if(!j){j=a}return j},queue:function(j){this.items.push(j);if(this.queueOptions.onrequestqueue){S.debug("Call onrequestqueue handler");
this.queueOptions.onrequestqueue.apply(this,j.getEventArguments())}},dequeue:function(){var j=this.items.shift();
if(this.queueOptions.onrequestdequeue){S.debug("Call onrequestdequeue handler");this.queueOptions.onrequestdequeue.apply(this,j.getEventArguments())
}},push:function(r,v,u){var j=i.call(this,v);var m=new g(this,r,j,u);var s=m.getSimilarityGroupingId();
var n=this.items.length-1;var l=this.items[n];var t=false;if(l){if(l.getSimilarityGroupingId()==s){S.debug("Similar request currently in queue '"+this.name+"'");
if(l.request){S.debug("Request has already beeen sent to server");if(m.isIgnoreDupResponses()){S.debug("Duplicate responses ignore requested");
if(!this.isFull()){l.abort();S.debug("Response for the current request will be ignored")
}else{S.debug("Queue is full, cannot set to ignore response for the current request")
}}}else{S.debug("Combine similar requests and reset timer");t=true;l.stopTimer();
m.setEventsCount(l.getEventsCount()+1);this.items[n]=m;m.startTimer()}}else{S.debug("Last queue entry is not the last anymore. Stopping requestDelay timer and marking entry as ready for submission");
l.stopTimer();l.setSimilarityGroupingId(undefined);l.readyToSubmit=true}}if(!t){if(this.isFull()){S.debug("Queue '"+this.name+"' is currently full");
var o=this.getSizeExceededBehavior();var p=0;while(this.items[p]&&this.items[p].request){p++
}if(this.queueOptions.onsizeexceeded){this.queueOptions.onsizeexceeded.apply(this,m.getEventArguments())
}if(o==e){S.debug("Queue '"+this.name+"' is going to drop new item");m.ondrop();t=true
}else{if(o==a){S.debug("Queue '"+this.name+"' is going to drop ["+p+"] item that is the next one");
var q=this.items.splice(p,1)[0];if(q){S.debug("Item dropped from queue");q.stopTimer();
q.ondrop()}else{S.debug("There's no such item, will handle new request instead");
m.ondrop();t=true}}else{if(o==h){S.debug("Queue '"+this.name+"' will submit new request");
m.submit();t=true}else{if(o==d){S.debug("Queue '"+this.name+"' is going to drop and fire immediately ["+p+"] item that is the next one");
var q=this.items.splice(p,1)[0];if(q){S.debug("Item dropped from queue");q.stopTimer();
q.submit()}else{S.debug("There's no such item, will handle new request instead");
m.submit();t=true}}}}}}this.submitFirst()}if(!t){this.queue(m);S.debug("New request added to queue '"+this.name+"'. Queue similarityGroupingId changed to "+s);
m.startTimer()}},pop:function(){S.debug("After request: queue '"+this.name+"'");this.dequeue();
S.debug("There are "+this.items.length+" requests more in this queue");this.submitFirst()
},clear:function(){var j=this.items.length;for(var l=0;l<this.items.length;l++){this.items[l].clearEntry()
}this.items.splice(0,j)}});return f}();P.EventQueue.DEFAULT_QUEUE_NAME="org.richfaces.queue.global";
P.EventQueue.getQueue=function(a){return P._eventQueues[a]};P.EventQueue.getQueues=function(){return P._eventQueues
};P.EventQueue.addQueue=function(b){var a=b.name;if(P._eventQueues[a]){throw"Queue already registered"
}else{S.debug("Adding queue '"+a+"' to queues registry");P._eventQueues[a]=b}};P.EventQueue.removeQueue=function(a){var b=P._eventQueues[a];
if(b){b.clear()}delete P._eventQueues[a]};P.EventQueue.getOrCreateQueue=function(){var b=function(e,d){if(d){return d+":"+e
}return e};var a=function(e,d){if(d){return d+e}return e};return function(g,j){var d=g.eventsQueue;
var e=g.namespace;var h,f,l;if(d){S.debug("Look up queue with name '"+d+"'");h=b(d,j);
f=a(d,e);l=f}else{S.debug("Look up queue with default name");h=j;f=a(P.EventQueue.DEFAULT_QUEUE_NAME,e);
l=g.implicitEventsQueue}var i=P._eventQueues[h];if(!i){i=P._eventQueues[f];if(!i){if(l){i=P._eventQueues[l];
if(!i){S.debug("Creating new transient queue '"+l+"' with default settings");i=new P.EventQueue(l);
i._transient=true;P.EventQueue.addQueue(i)}else{S.debug("Found transient queue '"+l+"'")
}}}else{S.debug("Found view queue '"+f+"'")}}else{S.debug("Found form queue '"+h+"'")
}return i}}();(function(){var a=function(){var d=P.EventQueue.getQueues();for(var b in d){var e=d[b];
e.clear()}};if(T.addEventListener){T.addEventListener("unload",a,false)}else{T.attachEvent("onunload",a)
}})();return{VIEW_ROOT_ID:P.VIEW_ROOT_ID,Submit:P.Submit,SubmitForm:P.SubmitForm,Poll:P.Poll,StopPoll:P.StopPoll,Push:P.Push,EventQueue:P.EventQueue,AJAX:P}
});define("a4j.form",["globals","a4j"],function(m,o){var n=m.g,i=o.A4J;if(!i.findForm){var h=function(d,a,g,b){var u=(typeof a=="string"?document.getElementById(a):a);
if(u){var v=[];var f=u.target;if(g){u.target=g}if(b){for(var t in b){v.push(t);if(u.elements[t]){u.elements[t].value=b[t]
}else{var e=document.createElement("input");e.type="hidden";e.id=t;e.name=t;e.value=b[t];
if(t==="javax.faces.portletbridge.STATE_ID"&&u.firstChild){u.insertBefore(e,u.firstChild)
}else{u.appendChild(e)}}}}var s;if(u.fireEvent){s=u.fireEvent("onsubmit")}else{var w=document.createEvent("HTMLEvents");
w.initEvent("submit",true,true);s=u.dispatchEvent(w)}if(s){u.submit()}j(a,f,v)}else{alert("Form "+a+" not found in document")
}return false};function j(b,g,f){var a=(typeof b=="string"?document.getElementById(b):b);
if(a){if(g){a.target=g}else{a.target=""}if(f){for(var d=0;d<f.length;d++){if(a.elements){var p=a.elements[f[d]];
if(p){var e=p.parentNode;if(e){e.removeChild(p)}}}}}}}function l(b,a,d){j(b,a,d)}i.findForm=function(b){var a=b;
do{a=a.parentNode}while(a&&a.nodeName.toLowerCase()!="form");if(!a){a={reset:function(){},submit:function(){}}
}return a};i._formInput=null;i.setupForm=function(a){var b=(typeof a=="string"?n.document.getElementById(a):a);
var d="click";if(b.addEventListener){b.addEventListener(d,i._observer,false)}else{if(b.attachEvent){b.attachEvent("on"+d,i._observer)
}}};i._observer=function(b){var a=b.target||b.srcElement;if(a&&a.nodeName.toUpperCase()=="INPUT"&&a.type.toUpperCase()=="SUBMIT"){i._formInput=a
}else{i._formInput=null}}}return{findForm:i.findForm,setupForm:i.setupForm,JSFFormSubmit:h,clearJSFFormParameters:j}
});define("prototypejs",["exports","globals","jquery"],function(exports,globals,jQuery){var window=globals.g;
var Prototype={Version:"1.6.0.3",Browser:{IE:!!(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1),Opera:navigator.userAgent.indexOf("Opera")>-1,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")===-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement("div")["__proto__"]&&document.createElement("div")["__proto__"]!==document.createElement("form")["__proto__"]},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(x){return x
}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false
}var Class={create:function(){var parent=null,properties=$A(arguments);if(Object.isFunction(properties[0])){parent=properties.shift()
}function klass(){this.initialize.apply(this,arguments)}Object.extend(klass,Class.Methods);
klass.superclass=parent;klass.subclasses=[];if(parent){var subclass=function(){};
subclass.prototype=parent.prototype;klass.prototype=new subclass;parent.subclasses.push(klass)
}for(var i=0;i<properties.length;i++){klass.addMethods(properties[i])}if(!klass.prototype.initialize){klass.prototype.initialize=Prototype.emptyFunction
}klass.prototype.constructor=klass;return klass}};Class.Methods={addMethods:function(source){var ancestor=this.superclass&&this.superclass.prototype;
var properties=Object.keys(source);if(!Object.keys({toString:true}).length){properties.push("toString","valueOf")
}for(var i=0,length=properties.length;i<length;i++){var property=properties[i],value=source[property];
if(ancestor&&Object.isFunction(value)&&value.argumentNames().first()=="$super"){var method=value;
value=(function(m){return function(){return ancestor[m].apply(this,arguments)}})(property).wrap(method);
value.valueOf=method.valueOf.bind(method);value.toString=method.toString.bind(method)
}this.prototype[property]=value}return this}};var Abstract={};Object.extend=function(destination,source){for(var property in source){destination[property]=source[property]
}return destination};Object.extend(Object,{inspect:function(object){try{if(Object.isUndefined(object)){return"undefined"
}if(object===null){return"null"}return object.inspect?object.inspect():String(object)
}catch(e){if(e instanceof RangeError){return"..."}throw e}},toJSON:function(object){var type=typeof object;
switch(type){case"undefined":case"function":case"unknown":return;case"boolean":return object.toString()
}if(object===null){return"null"}if(object.toJSON){return object.toJSON()}if(Object.isElement(object)){return
}var results=[];for(var property in object){var value=Object.toJSON(object[property]);
if(!Object.isUndefined(value)){results.push(property.toJSON()+": "+value)}}return"{"+results.join(", ")+"}"
},toQueryString:function(object){return $H(object).toQueryString()},toHTML:function(object){return object&&object.toHTML?object.toHTML():String.interpret(object)
},keys:function(object){var keys=[];for(var property in object){keys.push(property)
}return keys},values:function(object){var values=[];for(var property in object){values.push(object[property])
}return values},clone:function(object){return Object.extend({},object)},isElement:function(object){return !!(object&&object.nodeType==1)
},isArray:function(object){return object!=null&&typeof object=="object"&&"splice" in object&&"join" in object
},isHash:function(object){return object instanceof Hash},isFunction:function(object){return typeof object=="function"
},isString:function(object){return typeof object=="string"},isNumber:function(object){return typeof object=="number"
},isUndefined:function(object){return typeof object=="undefined"}});Object.extend(Function.prototype,{argumentNames:function(){var names=this.toString().match(/^[\s\(]*function[^(]*\(([^\)]*)\)/)[1].replace(/\s+/g,"").split(",");
return names.length==1&&!names[0]?[]:names},bind:function(){if(arguments.length<2&&Object.isUndefined(arguments[0])){return this
}var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)))
}},bindAsEventListener:function(){var __method=this,args=$A(arguments),object=args.shift();
return function(event){return __method.apply(object,[event||window.event].concat(args))
}},curry:function(){if(!arguments.length){return this}var __method=this,args=$A(arguments);
return function(){return __method.apply(this,args.concat($A(arguments)))}},delay:function(){var __method=this,args=$A(arguments),timeout=args.shift()*1000;
return window.setTimeout(function(){return __method.apply(__method,args)},timeout)
},defer:function(){var args=[0.01].concat($A(arguments));return this.delay.apply(this,args)
},wrap:function(wrapper){var __method=this;return function(){return wrapper.apply(this,[__method.bind(this)].concat($A(arguments)))
}},methodize:function(){if(this._methodized){return this._methodized}var __method=this;
return this._methodized=function(){return __method.apply(null,[this].concat($A(arguments)))
}}});Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+"-"+(this.getUTCMonth()+1).toPaddedString(2)+"-"+this.getUTCDate().toPaddedString(2)+"T"+this.getUTCHours().toPaddedString(2)+":"+this.getUTCMinutes().toPaddedString(2)+":"+this.getUTCSeconds().toPaddedString(2)+'Z"'
};var Try={these:function(){var returnValue;for(var i=0,length=arguments.length;i<length;
i++){var lambda=arguments[i];try{returnValue=lambda();break}catch(e){}}return returnValue
}};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(str){return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")
};var PeriodicalExecuter=Class.create({initialize:function(callback,frequency){this.callback=callback;
this.frequency=frequency;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)
},execute:function(){this.callback(this)},stop:function(){if(!this.timer){return}clearInterval(this.timer);
this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;
this.execute()}finally{this.currentlyExecuting=false}}}});Object.extend(String,{interpret:function(value){return value==null?"":String(value)
},specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\"}});
Object.extend(String.prototype,{gsub:function(pattern,replacement){var result="",source=this,match;
replacement=arguments.callee.prepareReplacement(replacement);while(source.length>0){if(match=source.match(pattern)){result+=source.slice(0,match.index);
result+=String.interpret(replacement(match));source=source.slice(match.index+match[0].length)
}else{result+=source,source=""}}return result},sub:function(pattern,replacement,count){replacement=this.gsub.prepareReplacement(replacement);
count=Object.isUndefined(count)?1:count;return this.gsub(pattern,function(match){if(--count<0){return match[0]
}return replacement(match)})},scan:function(pattern,iterator){this.gsub(pattern,iterator);
return String(this)},truncate:function(length,truncation){length=length||30;truncation=Object.isUndefined(truncation)?"...":truncation;
return this.length>length?this.slice(0,length-truncation.length)+truncation:String(this)
},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")
},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")
},extractScripts:function(){var matchAll=new RegExp(Prototype.ScriptFragment,"img");
var matchOne=new RegExp(Prototype.ScriptFragment,"im");return(this.match(matchAll)||[]).map(function(scriptTag){var result=(scriptTag.match(matchOne)||["",""])[1];
result=result.replace(/</,"&lt;").replace(/\s*&lt;!--[^\r\n]*/,"");return result})
},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)
})},escapeHTML:function(){var self=arguments.callee;self.text.data=this;return self.div.innerHTML
},unescapeHTML:function(){var div=new Element("div");div.innerHTML=this.stripTags();
return div.childNodes[0]?(div.childNodes.length>1?$A(div.childNodes).inject("",function(memo,node){return memo+node.nodeValue
}):div.childNodes[0].nodeValue):""},toQueryParams:function(separator){var match=this.strip().match(/([^?#]*)(#.*)?$/);
if(!match){return{}}return match[1].split(separator||"&").inject({},function(hash,pair){if((pair=pair.split("="))[0]){var key=decodeURIComponent(pair.shift());
var value=pair.length>1?pair.join("="):pair[0];if(value!=undefined){value=decodeURIComponent(value)
}if(key in hash){if(!Object.isArray(hash[key])){hash[key]=[hash[key]]}hash[key].push(value)
}else{hash[key]=value}}return hash})},toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)
},times:function(count){return count<1?"":new Array(count+1).join(this)},camelize:function(){var parts=this.split("-"),len=parts.length;
if(len==1){return parts[0]}var camelized=this.charAt(0)=="-"?parts[0].charAt(0).toUpperCase()+parts[0].substring(1):parts[0];
for(var i=1;i<len;i++){camelized+=parts[i].charAt(0).toUpperCase()+parts[i].substring(1)
}return camelized},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()
},underscore:function(){return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase()
},dasherize:function(){return this.gsub(/_/,"-")},inspect:function(useDoubleQuotes){var escapedString=this.gsub(/[\x00-\x1f\\]/,function(match){var character=String.specialChar[match[0]];
return character?character:"\\u00"+match[0].charCodeAt().toPaddedString(2,16)});if(useDoubleQuotes){return'"'+escapedString.replace(/"/g,'\\"')+'"'
}return"'"+escapedString.replace(/'/g,"\\'")+"'"},toJSON:function(){return this.inspect(true)
},unfilterJSON:function(filter){return this.sub(filter||Prototype.JSONFilter,"#{1}")
},isJSON:function(){var str=this;if(str.blank()){return false}str=this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");
return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str)},evalJSON:function(sanitize){var json=this.unfilterJSON();
try{if(!sanitize||json.isJSON()){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect())
},include:function(pattern){return this.indexOf(pattern)>-1},startsWith:function(pattern){return this.indexOf(pattern)===0
},endsWith:function(pattern){var d=this.length-pattern.length;return d>=0&&this.lastIndexOf(pattern)===d
},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)},interpolate:function(object,pattern){return new Template(this,pattern).evaluate(object)
}});if(Prototype.Browser.WebKit||Prototype.Browser.IE){Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")
},unescapeHTML:function(){return this.stripTags().replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")
}})}String.prototype.gsub.prepareReplacement=function(replacement){if(Object.isFunction(replacement)){return replacement
}var template=new Template(replacement);return function(match){return template.evaluate(match)
}};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend(String.prototype.escapeHTML,{div:document.createElement("div"),text:document.createTextNode("")});
String.prototype.escapeHTML.div.appendChild(String.prototype.escapeHTML.text);var Template=Class.create({initialize:function(template,pattern){this.template=template.toString();
this.pattern=pattern||Template.Pattern},evaluate:function(object){if(Object.isFunction(object.toTemplateReplacements)){object=object.toTemplateReplacements()
}return this.template.gsub(this.pattern,function(match){if(object==null){return""
}var before=match[1]||"";if(before=="\\"){return match[2]}var ctx=object,expr=match[3];
var pattern=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;match=pattern.exec(expr);if(match==null){return before
}while(match!=null){var comp=match[1].startsWith("[")?match[2].gsub("\\\\]","]"):match[1];
ctx=ctx[comp];if(null==ctx||""==match[3]){break}expr=expr.substring("["==match[3]?match[1].length:match[0].length);
match=pattern.exec(expr)}return before+String.interpret(ctx)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;
var $break={};var Enumerable={each:function(iterator,context){var index=0;try{this._each(function(value){iterator.call(context,value,index++)
})}catch(e){if(e!=$break){throw e}}return this},eachSlice:function(number,iterator,context){var index=-number,slices=[],array=this.toArray();
if(number<1){return array}while((index+=number)<array.length){slices.push(array.slice(index,index+number))
}return slices.collect(iterator,context)},all:function(iterator,context){iterator=iterator||Prototype.K;
var result=true;this.each(function(value,index){result=result&&!!iterator.call(context,value,index);
if(!result){throw $break}});return result},any:function(iterator,context){iterator=iterator||Prototype.K;
var result=false;this.each(function(value,index){if(result=!!iterator.call(context,value,index)){throw $break
}});return result},collect:function(iterator,context){iterator=iterator||Prototype.K;
var results=[];this.each(function(value,index){results.push(iterator.call(context,value,index))
});return results},detect:function(iterator,context){var result;this.each(function(value,index){if(iterator.call(context,value,index)){result=value;
throw $break}});return result},findAll:function(iterator,context){var results=[];
this.each(function(value,index){if(iterator.call(context,value,index)){results.push(value)
}});return results},grep:function(filter,iterator,context){iterator=iterator||Prototype.K;
var results=[];if(Object.isString(filter)){filter=new RegExp(filter)}this.each(function(value,index){if(filter.match(value)){results.push(iterator.call(context,value,index))
}});return results},include:function(object){if(Object.isFunction(this.indexOf)){if(this.indexOf(object)!=-1){return true
}}var found=false;this.each(function(value){if(value==object){found=true;throw $break
}});return found},inGroupsOf:function(number,fillWith){fillWith=Object.isUndefined(fillWith)?null:fillWith;
return this.eachSlice(number,function(slice){while(slice.length<number){slice.push(fillWith)
}return slice})},inject:function(memo,iterator,context){this.each(function(value,index){memo=iterator.call(context,memo,value,index)
});return memo},invoke:function(method){var args=$A(arguments).slice(1);return this.map(function(value){return value[method].apply(value,args)
})},max:function(iterator,context){iterator=iterator||Prototype.K;var result;this.each(function(value,index){value=iterator.call(context,value,index);
if(result==null||value>=result){result=value}});return result},min:function(iterator,context){iterator=iterator||Prototype.K;
var result;this.each(function(value,index){value=iterator.call(context,value,index);
if(result==null||value<result){result=value}});return result},partition:function(iterator,context){iterator=iterator||Prototype.K;
var trues=[],falses=[];this.each(function(value,index){(iterator.call(context,value,index)?trues:falses).push(value)
});return[trues,falses]},pluck:function(property){var results=[];this.each(function(value){results.push(value[property])
});return results},reject:function(iterator,context){var results=[];this.each(function(value,index){if(!iterator.call(context,value,index)){results.push(value)
}});return results},sortBy:function(iterator,context){return this.map(function(value,index){return{value:value,criteria:iterator.call(context,value,index)}
}).sort(function(left,right){var a=left.criteria,b=right.criteria;return a<b?-1:a>b?1:0
}).pluck("value")},toArray:function(){return this.map()},zip:function(){var iterator=Prototype.K,args=$A(arguments);
if(Object.isFunction(args.last())){iterator=args.pop()}var collections=[this].concat(args).map($A);
return this.map(function(value,index){return iterator(collections.pluck(index))})
},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"
}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,some:Enumerable.any});
function $A(iterable){if(!iterable){return[]}if(iterable.toArray){return iterable.toArray()
}var length=iterable.length||0,results=new Array(length);while(length--){results[length]=iterable[length]
}return results}if(Prototype.Browser.WebKit){$A=function(iterable){if(!iterable){return[]
}if(!(typeof iterable==="function"&&typeof iterable.length==="number"&&typeof iterable.item==="function")&&iterable.toArray){return iterable.toArray()
}var length=iterable.length||0,results=new Array(length);while(length--){results[length]=iterable[length]
}return results}}Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse
}Object.extend(Array.prototype,{_each:function(iterator){for(var i=0,length=this.length;
i<length;i++){iterator(this[i])}},clear:function(){this.length=0;return this},first:function(){return this[0]
},last:function(){return this[this.length-1]},compact:function(){return this.select(function(value){return value!=null
})},flatten:function(){return this.inject([],function(array,value){return array.concat(Object.isArray(value)?value.flatten():[value])
})},without:function(){var values=$A(arguments);return this.select(function(value){return !values.include(value)
})},reverse:function(inline){return(inline!==false?this:this.toArray())._reverse()
},reduce:function(){return this.length>1?this:this[0]},uniq:function(sorted){return this.inject([],function(array,value,index){if(0==index||(sorted?array.last()!=value:!array.include(value))){array.push(value)
}return array})},intersect:function(array){return this.uniq().findAll(function(item){return array.detect(function(value){return item===value
})})},clone:function(){return[].concat(this)},size:function(){return this.length},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"
},toJSON:function(){var results=[];this.each(function(object){var value=Object.toJSON(object);
if(!Object.isUndefined(value)){results.push(value)}});return"["+results.join(", ")+"]"
}});if(Object.isFunction(Array.prototype.forEach)){Array.prototype._each=Array.prototype.forEach
}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(item,i){i||(i=0);var length=this.length;
if(i<0){i=length+i}for(;i<length;i++){if(this[i]===item){return i}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(item,i){i=isNaN(i)?this.length:(i<0?this.length+i:i)+1;
var n=this.slice(0,i).reverse().indexOf(item);return(n<0)?n:i-n-1}}Array.prototype.toArray=Array.prototype.clone;
function $w(string){if(!Object.isString(string)){return[]}string=string.strip();return string?string.split(/\s+/):[]
}if(Prototype.Browser.Opera){Array.prototype.concat=function(){var array=[];for(var i=0,length=this.length;
i<length;i++){array.push(this[i])}for(var i=0,length=arguments.length;i<length;i++){if(Object.isArray(arguments[i])){for(var j=0,arrayLength=arguments[i].length;
j<arrayLength;j++){array.push(arguments[i][j])}}else{array.push(arguments[i])}}return array
}}Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedString(2,16)
},succ:function(){return this+1},times:function(iterator,context){$R(0,this,true).each(iterator,context);
return this},toPaddedString:function(length,radix){var string=this.toString(radix||10);
return"0".times(length-string.length)+string},toJSON:function(){return isFinite(this)?this.toString():"null"
}});$w("abs round ceil floor").each(function(method){Number.prototype[method]=Math[method].methodize()
});function $H(object){return new Hash(object)}var Hash=Class.create(Enumerable,(function(){function toQueryPair(key,value){if(Object.isUndefined(value)){return key
}return key+"="+encodeURIComponent(String.interpret(value))}return{initialize:function(object){this._object=Object.isHash(object)?object.toObject():Object.clone(object)
},_each:function(iterator){for(var key in this._object){var value=this._object[key],pair=[key,value];
pair.key=key;pair.value=value;iterator(pair)}},set:function(key,value){return this._object[key]=value
},get:function(key){if(this._object[key]!==Object.prototype[key]){return this._object[key]
}},unset:function(key){var value=this._object[key];delete this._object[key];return value
},toObject:function(){return Object.clone(this._object)},keys:function(){return this.pluck("key")
},values:function(){return this.pluck("value")},index:function(value){var match=this.detect(function(pair){return pair.value===value
});return match&&match.key},merge:function(object){return this.clone().update(object)
},update:function(object){return new Hash(object).inject(this,function(result,pair){result.set(pair.key,pair.value);
return result})},toQueryString:function(){return this.inject([],function(results,pair){var key=encodeURIComponent(pair.key),values=pair.value;
if(values&&typeof values=="object"){if(Object.isArray(values)){return results.concat(values.map(toQueryPair.curry(key)))
}}else{results.push(toQueryPair(key,values))}return results}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(pair){return pair.map(Object.inspect).join(": ")
}).join(", ")+"}>"},toJSON:function(){return Object.toJSON(this.toObject())},clone:function(){return new Hash(this)
}}})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;
var ObjectRange=Class.create(Enumerable,{initialize:function(start,end,exclusive){this.start=start;
this.end=end;this.exclusive=exclusive},_each:function(iterator){var value=this.start;
while(this.include(value)){iterator(value);value=value.succ()}},include:function(value){if(value<this.start){return false
}if(this.exclusive){return value<this.end}return value<=this.end}});var $R=function(start,end,exclusive){return new ObjectRange(start,end,exclusive)
};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()
},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")
})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(iterator){this.responders._each(iterator)
},register:function(responder){if(!this.include(responder)){this.responders.push(responder)
}},unregister:function(responder){this.responders=this.responders.without(responder)
},dispatch:function(callback,request,transport,json){this.each(function(responder){if(Object.isFunction(responder[callback])){try{responder[callback].apply(responder,[request,transport,json])
}catch(e){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++
},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(options){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};
Object.extend(this.options,options||{});this.options.method=this.options.method.toLowerCase();
if(Object.isString(this.options.parameters)){this.options.parameters=this.options.parameters.toQueryParams()
}else{if(Object.isHash(this.options.parameters)){this.options.parameters=this.options.parameters.toObject()
}}}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,url,options){$super(options);
this.transport=Ajax.getTransport();this.request(url)},request:function(url){this.url=url;
this.method=this.options.method;var params=Object.clone(this.options.parameters);
if(!["get","post"].include(this.method)){params._method=this.method;this.method="post"
}this.parameters=params;if(params=Object.toQueryString(params)){if(this.method=="get"){this.url+=(this.url.include("?")?"&":"?")+params
}else{if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){params+="&_="}}}try{var response=new Ajax.Response(this);
if(this.options.onCreate){this.options.onCreate(response)}Ajax.Responders.dispatch("onCreate",this,response);
this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);
if(this.options.asynchronous){this.respondToReadyState.bind(this).defer(1)}this.transport.onreadystatechange=this.onStateChange.bind(this);
this.setRequestHeaders();this.body=this.method=="post"?(this.options.postBody||params):null;
this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()
}}catch(e){this.dispatchException(e)}},onStateChange:function(){var readyState=this.transport.readyState;
if(readyState>1&&!((readyState==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)
}},setRequestHeaders:function(){var headers={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};
if(this.method=="post"){headers["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");
if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){headers.Connection="close"
}}if(typeof this.options.requestHeaders=="object"){var extras=this.options.requestHeaders;
if(Object.isFunction(extras.push)){for(var i=0,length=extras.length;i<length;i+=2){headers[extras[i]]=extras[i+1]
}}else{$H(extras).each(function(pair){headers[pair.key]=pair.value})}}for(var name in headers){this.transport.setRequestHeader(name,headers[name])
}},success:function(){var status=this.getStatus();return !status||(status>=200&&status<300)
},getStatus:function(){try{return this.transport.status||0}catch(e){return 0}},respondToReadyState:function(readyState){var state=Ajax.Request.Events[readyState],response=new Ajax.Response(this);
if(state=="Complete"){try{this._complete=true;(this.options["on"+response.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(response,response.headerJSON)
}catch(e){this.dispatchException(e)}var contentType=response.getHeader("Content-type");
if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&contentType&&contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse()
}}try{(this.options["on"+state]||Prototype.emptyFunction)(response,response.headerJSON);
Ajax.Responders.dispatch("on"+state,this,response,response.headerJSON)}catch(e){this.dispatchException(e)
}if(state=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},isSameOrigin:function(){var m=this.url.match(/^\s*https?:\/\/[^\/]*/);
return !m||(m[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}))
},getHeader:function(name){try{return this.transport.getResponseHeader(name)||null
}catch(e){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())
}catch(e){this.dispatchException(e)}},dispatchException:function(exception){(this.options.onException||Prototype.emptyFunction)(this,exception);
Ajax.Responders.dispatch("onException",this,exception)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
Ajax.Response=Class.create({initialize:function(request){this.request=request;var transport=this.transport=request.transport,readyState=this.readyState=transport.readyState;
if((readyState>2&&!Prototype.Browser.IE)||readyState==4){this.status=this.getStatus();
this.statusText=this.getStatusText();this.responseText=String.interpret(transport.responseText);
this.headerJSON=this._getHeaderJSON()}if(readyState==4){var xml=transport.responseXML;
this.responseXML=Object.isUndefined(xml)?null:xml;this.responseJSON=this._getResponseJSON()
}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""
}catch(e){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()
}catch(e){return null}},getResponseHeader:function(name){return this.transport.getResponseHeader(name)
},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var json=this.getHeader("X-JSON");
if(!json){return null}json=decodeURIComponent(escape(json));try{return json.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin())
}catch(e){this.request.dispatchException(e)}},_getResponseJSON:function(){var options=this.request.options;
if(!options.evalJSON||(options.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null
}try{return this.responseText.evalJSON(options.sanitizeJSON||!this.request.isSameOrigin())
}catch(e){this.request.dispatchException(e)}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,container,url,options){this.container={success:(container.success||container),failure:(container.failure||(container.success?null:container))};
options=Object.clone(options);var onComplete=options.onComplete;options.onComplete=(function(response,json){this.updateContent(response.responseText);
if(Object.isFunction(onComplete)){onComplete(response,json)}}).bind(this);$super(url,options)
},updateContent:function(responseText){var receiver=this.container[this.success()?"success":"failure"],options=this.options;
if(!options.evalScripts){responseText=responseText.stripScripts()}if(receiver=$(receiver)){if(options.insertion){if(Object.isString(options.insertion)){var insertion={};
insertion[options.insertion]=responseText;receiver.insert(insertion)}else{options.insertion(receiver,responseText)
}}else{receiver.update(responseText)}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,container,url,options){$super(options);
this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);
this.decay=(this.options.decay||1);this.updater={};this.container=container;this.url=url;
this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);
this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);
(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(response){if(this.options.decay){this.decay=(response.responseText==this.lastText?this.decay*this.options.decay:1);
this.lastText=response.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)
},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)
}});function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;
i<length;i++){elements.push($(arguments[i]))}return elements}if(Object.isString(element)){element=document.getElementById(element)
}return Element.extend(element)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(expression,parentElement){var results=[];
var query=document.evaluate(expression,$(parentElement)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
for(var i=0,length=query.snapshotLength;i<length;i++){results.push(Element.extend(query.snapshotItem(i)))
}return results}}var Node={};if(window.Node){Node=window.Node}if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12})
}(function(){var element=this.Element;this.Element=function(tagName,attributes){attributes=attributes||{};
tagName=tagName.toLowerCase();var cache=Element.cache;if(Prototype.Browser.IE&&attributes.name){tagName="<"+tagName+' name="'+attributes.name+'">';
delete attributes.name;return Element.writeAttribute(document.createElement(tagName),attributes)
}if(!cache[tagName]){cache[tagName]=Element.extend(document.createElement(tagName))
}return Element.writeAttribute(cache[tagName].cloneNode(false),attributes)};Object.extend(this.Element,element||{});
if(element){this.Element.prototype=element.prototype}}).call(window);Element.cache={};
Element.Methods={visible:function(element){return $(element).style.display!="none"
},toggle:function(element){element=$(element);Element[Element.visible(element)?"hide":"show"](element);
return element},hide:function(element){element=$(element);element.style.display="none";
return element},show:function(element){element=$(element);element.style.display="";
return element},remove:function(element){element=$(element);element.parentNode.removeChild(element);
return element},update:function(element,content){element=$(element);if(content&&content.toElement){content=content.toElement()
}if(Object.isElement(content)){return element.update().insert(content)}content=Object.toHTML(content);
element.innerHTML=content.stripScripts();content.evalScripts.bind(content).defer();
return element},replace:function(element,content){element=$(element);if(content&&content.toElement){content=content.toElement()
}else{if(!Object.isElement(content)){content=Object.toHTML(content);var range=element.ownerDocument.createRange();
range.selectNode(element);content.evalScripts.bind(content).defer();content=range.createContextualFragment(content.stripScripts())
}}element.parentNode.replaceChild(content,element);return element},insert:function(element,insertions){element=$(element);
if(Object.isString(insertions)||Object.isNumber(insertions)||Object.isElement(insertions)||(insertions&&(insertions.toElement||insertions.toHTML))){insertions={bottom:insertions}
}var content,insert,tagName,childNodes;for(var position in insertions){content=insertions[position];
position=position.toLowerCase();insert=Element._insertionTranslations[position];if(content&&content.toElement){content=content.toElement()
}if(Object.isElement(content)){insert(element,content);continue}content=Object.toHTML(content);
tagName=((position=="before"||position=="after")?element.parentNode:element).tagName.toUpperCase();
childNodes=Element._getContentFromAnonymousElement(tagName,content.stripScripts());
if(position=="top"||position=="after"){childNodes.reverse()}childNodes.each(insert.curry(element));
content.evalScripts.bind(content).defer()}return element},wrap:function(element,wrapper,attributes){element=$(element);
if(Object.isElement(wrapper)){$(wrapper).writeAttribute(attributes||{})}else{if(Object.isString(wrapper)){wrapper=new Element(wrapper,attributes)
}else{wrapper=new Element("div",wrapper)}}if(element.parentNode){element.parentNode.replaceChild(wrapper,element)
}wrapper.appendChild(element);return wrapper},inspect:function(element){element=$(element);
var result="<"+element.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(pair){var property=pair.first(),attribute=pair.last();
var value=(element[property]||"").toString();if(value){result+=" "+attribute+"="+value.inspect(true)
}});return result+">"},recursivelyCollect:function(element,property){element=$(element);
var elements=[];while(element=element[property]){if(element.nodeType==1){elements.push(Element.extend(element))
}}return elements},ancestors:function(element){return $(element).recursivelyCollect("parentNode")
},descendants:function(element){return $(element).select("*")},firstDescendant:function(element){element=$(element).firstChild;
while(element&&element.nodeType!=1){element=element.nextSibling}return $(element)
},immediateDescendants:function(element){if(!(element=$(element).firstChild)){return[]
}while(element&&element.nodeType!=1){element=element.nextSibling}if(element){return[element].concat($(element).nextSiblings())
}return[]},previousSiblings:function(element){return $(element).recursivelyCollect("previousSibling")
},nextSiblings:function(element){return $(element).recursivelyCollect("nextSibling")
},siblings:function(element){element=$(element);return element.previousSiblings().reverse().concat(element.nextSiblings())
},match:function(element,selector){if(Object.isString(selector)){selector=new Selector(selector)
}return selector.match($(element))},up:function(element,expression,index){element=$(element);
if(arguments.length==1){return $(element.parentNode)}var ancestors=element.ancestors();
return Object.isNumber(expression)?ancestors[expression]:Selector.findElement(ancestors,expression,index)
},down:function(element,expression,index){element=$(element);if(arguments.length==1){return element.firstDescendant()
}return Object.isNumber(expression)?element.descendants()[expression]:Element.select(element,expression)[index||0]
},previous:function(element,expression,index){element=$(element);if(arguments.length==1){return $(Selector.handlers.previousElementSibling(element))
}var previousSiblings=element.previousSiblings();return Object.isNumber(expression)?previousSiblings[expression]:Selector.findElement(previousSiblings,expression,index)
},next:function(element,expression,index){element=$(element);if(arguments.length==1){return $(Selector.handlers.nextElementSibling(element))
}var nextSiblings=element.nextSiblings();return Object.isNumber(expression)?nextSiblings[expression]:Selector.findElement(nextSiblings,expression,index)
},select:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element,args)
},adjacent:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element.parentNode,args).without(element)
},identify:function(element){element=$(element);var id=element.readAttribute("id"),self=arguments.callee;
if(id){return id}do{id="anonymous_element_"+self.counter++}while($(id));element.writeAttribute("id",id);
return id},readAttribute:function(element,name){element=$(element);if(Prototype.Browser.IE){var t=Element._attributeTranslations.read;
if(t.values[name]){return t.values[name](element,name)}if(t.names[name]){name=t.names[name]
}if(name.include(":")){return(!element.attributes||!element.attributes[name])?null:element.attributes[name].value
}}return element.getAttribute(name)},writeAttribute:function(element,name,value){element=$(element);
var attributes={},t=Element._attributeTranslations.write;if(typeof name=="object"){attributes=name
}else{attributes[name]=Object.isUndefined(value)?true:value}for(var attr in attributes){name=t.names[attr]||attr;
value=attributes[attr];if(t.values[attr]){name=t.values[attr](element,value)}if(value===false||value===null){element.removeAttribute(name)
}else{if(value===true){element.setAttribute(name,name)}else{element.setAttribute(name,value)
}}}return element},getHeight:function(element){return $(element).getDimensions().height
},getWidth:function(element){return $(element).getDimensions().width},classNames:function(element){return new Element.ClassNames(element)
},hasClassName:function(element,className){if(!(element=$(element))){return}var elementClassName=element.className;
return(elementClassName.length>0&&(elementClassName==className||new RegExp("(^|\\s)"+className+"(\\s|$)").test(elementClassName)))
},addClassName:function(element,className){if(!(element=$(element))){return}if(!element.hasClassName(className)){element.className+=(element.className?" ":"")+className
}return element},removeClassName:function(element,className){if(!(element=$(element))){return
}element.className=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)")," ").strip();
return element},toggleClassName:function(element,className){if(!(element=$(element))){return
}return element[element.hasClassName(className)?"removeClassName":"addClassName"](className)
},cleanWhitespace:function(element){element=$(element);var node=element.firstChild;
while(node){var nextNode=node.nextSibling;if(node.nodeType==3&&!/\S/.test(node.nodeValue)){element.removeChild(node)
}node=nextNode}return element},empty:function(element){return $(element).innerHTML.blank()
},descendantOf:function(element,ancestor){element=$(element),ancestor=$(ancestor);
if(element.compareDocumentPosition){return(element.compareDocumentPosition(ancestor)&8)===8
}if(ancestor.contains){return ancestor.contains(element)&&ancestor!==element}while(element=element.parentNode){if(element==ancestor){return true
}}return false},scrollTo:function(element){element=$(element);var pos=element.cumulativeOffset();
window.scrollTo(pos[0],pos[1]);return element},getStyle:function(element,style){element=$(element);
style=style=="float"?"cssFloat":style.camelize();var value=element.style[style];if(!value||value=="auto"){var css=document.defaultView.getComputedStyle(element,null);
value=css?css[style]:null}if(style=="opacity"){return value?parseFloat(value):1}return value=="auto"?null:value
},getOpacity:function(element){return $(element).getStyle("opacity")},setStyle:function(element,styles){element=$(element);
var elementStyle=element.style,match;if(Object.isString(styles)){element.style.cssText+=";"+styles;
return styles.include("opacity")?element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]):element
}for(var property in styles){if(property=="opacity"){element.setOpacity(styles[property])
}else{elementStyle[(property=="float"||property=="cssFloat")?(Object.isUndefined(elementStyle.styleFloat)?"cssFloat":"styleFloat"):property]=styles[property]
}}return element},setOpacity:function(element,value){element=$(element);element.style.opacity=(value==1||value==="")?"":(value<0.00001)?0:value;
return element},getDimensions:function(element){element=$(element);var display=element.getStyle("display");
if(display!="none"&&display!=null){return{width:element.offsetWidth,height:element.offsetHeight}
}var els=element.style;var originalVisibility=els.visibility;var originalPosition=els.position;
var originalDisplay=els.display;els.visibility="hidden";els.position="absolute";els.display="block";
var originalWidth=element.clientWidth;var originalHeight=element.clientHeight;els.display=originalDisplay;
els.position=originalPosition;els.visibility=originalVisibility;return{width:originalWidth,height:originalHeight}
},makePositioned:function(element){element=$(element);var pos=Element.getStyle(element,"position");
if(pos=="static"||!pos){element._madePositioned=true;element.style.position="relative";
if(Prototype.Browser.Opera){element.style.top=0;element.style.left=0}}return element
},undoPositioned:function(element){element=$(element);if(element._madePositioned){element._madePositioned=undefined;
element.style.position=element.style.top=element.style.left=element.style.bottom=element.style.right=""
}return element},makeClipping:function(element){element=$(element);if(element._overflow){return element
}element._overflow=Element.getStyle(element,"overflow")||"auto";if(element._overflow!=="hidden"){element.style.overflow="hidden"
}return element},undoClipping:function(element){element=$(element);if(!element._overflow){return element
}element.style.overflow=element._overflow=="auto"?"":element._overflow;element._overflow=null;
return element},cumulativeOffset:function(element){var valueT=0,valueL=0;do{if($(element).getStyle("position")=="fixed"){var pageOffsets=document.viewport.getScrollOffsets();
valueT+=pageOffsets[1]+element.offsetTop;valueL+=pageOffsets[0]+element.offsetLeft;
break}else{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent
}}while(element);return Element._returnOffset(valueL,valueT)},positionedOffset:function(element){var valueT=0,valueL=0;
do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;
if(element){if(element.tagName.toUpperCase()=="BODY"){break}var p=Element.getStyle(element,"position");
if(p!=="static"){break}}}while(element);return Element._returnOffset(valueL,valueT)
},absolutize:function(element){element=$(element);if(element.getStyle("position")=="absolute"){return element
}var offsets=element.positionedOffset();var top=offsets[1];var left=offsets[0];var width=element.clientWidth;
var height=element.clientHeight;element._originalLeft=left-parseFloat(element.style.left||0);
element._originalTop=top-parseFloat(element.style.top||0);element._originalWidth=element.style.width;
element._originalHeight=element.style.height;element.style.position="absolute";element.style.top=top+"px";
element.style.left=left+"px";element.style.width=width+"px";element.style.height=height+"px";
return element},relativize:function(element){element=$(element);if(element.getStyle("position")=="relative"){return element
}element.style.position="relative";var top=parseFloat(element.style.top||0)-(element._originalTop||0);
var left=parseFloat(element.style.left||0)-(element._originalLeft||0);element.style.top=top+"px";
element.style.left=left+"px";element.style.height=element._originalHeight;element.style.width=element._originalWidth;
return element},cumulativeScrollOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.scrollTop||0;
valueL+=element.scrollLeft||0;element=element.parentNode}while(element);return Element._returnOffset(valueL,valueT)
},getOffsetParent:function(element){if(element.offsetParent){return $(element.offsetParent)
}if(element==document.body){return $(element)}while((element=element.parentNode)&&element!=document.body&&Object.isElement(element)){if(Element.getStyle(element,"position")!="static"){return $(element)
}}return $(document.body)},viewportOffset:function(forElement){var valueT=0,valueL=0;
var element=forElement;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;
if(element.offsetParent==document.body&&Element.getStyle(element,"position")=="absolute"){break
}}while(element=element.offsetParent);element=forElement;do{if(!Prototype.Browser.Opera||(element.tagName&&(element.tagName.toUpperCase()=="BODY"))){valueT-=element.scrollTop||0;
valueL-=element.scrollLeft||0;if(!Prototype.Browser.WebKit&&Element.getStyle(element,"position")=="fixed"){break
}}}while((element=element.parentNode)&&element.tagName);return Element._returnOffset(valueL,valueT)
},clonePosition:function(element,source){var options=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
source=$(source);var p=source.viewportOffset();element=$(element);var delta=[0,0];
var parent=null;if(Element.getStyle(element,"position")=="absolute"){parent=element.getOffsetParent();
delta=parent.viewportOffset()}if(parent==document.body){delta[0]-=document.body.offsetLeft;
delta[1]-=document.body.offsetTop}if(options.setLeft){element.style.left=(p[0]-delta[0]+options.offsetLeft)+"px"
}if(options.setTop){element.style.top=(p[1]-delta[1]+options.offsetTop)+"px"}if(options.setWidth){element.style.width=source.offsetWidth+"px"
}if(options.setHeight){element.style.height=source.offsetHeight+"px"}return element
}};Element.Methods.identify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});
Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};
if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(proceed,element,style){switch(style){case"left":case"top":case"right":case"bottom":if(proceed(element,"position")==="static"){return null
}case"height":case"width":if(!Element.visible(element)){return null}var dim=parseInt(proceed(element,style),10);
if(dim!==element["offset"+style.capitalize()]){return dim+"px"}var properties;if(style==="height"){properties=["border-top-width","padding-top","padding-bottom","border-bottom-width"]
}else{properties=["border-left-width","padding-left","padding-right","border-right-width"]
}return properties.inject(dim,function(memo,property){var val=proceed(element,property);
return val===null?memo:memo-parseInt(val,10)})+"px";default:return proceed(element,style)
}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(proceed,element,attribute){if(attribute==="title"){return element.title
}return proceed(element,attribute)})}else{if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(proceed,element){element=$(element);
try{element.offsetParent}catch(e){return $(document.body)}var position=element.getStyle("position");
if(position!=="static"){return proceed(element)}element.setStyle({position:"relative"});
var value=proceed(element);element.setStyle({position:position});return value});$w("positionedOffset viewportOffset").each(function(method){Element.Methods[method]=Element.Methods[method].wrap(function(proceed,element){element=$(element);
try{element.offsetParent}catch(e){return Element._returnOffset(0,0)}var position=element.getStyle("position");
if(position!=="static"){return proceed(element)}var offsetParent=element.getOffsetParent();
if(offsetParent&&offsetParent.getStyle("position")==="fixed"){offsetParent.setStyle({zoom:1})
}element.setStyle({position:"relative"});var value=proceed(element);element.setStyle({position:position});
return value})});Element.Methods.cumulativeOffset=Element.Methods.cumulativeOffset.wrap(function(proceed,element){try{element.offsetParent
}catch(e){return Element._returnOffset(0,0)}return proceed(element)});Element.Methods.getStyle=function(element,style){element=$(element);
style=(style=="float"||style=="cssFloat")?"styleFloat":style.camelize();var value=element.style[style];
if(!value&&element.currentStyle){value=element.currentStyle[style]}if(style=="opacity"){if(value=(element.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(value[1]){return parseFloat(value[1])/100
}}return 1}if(value=="auto"){if((style=="width"||style=="height")&&(element.getStyle("display")!="none")){return element["offset"+style.capitalize()]+"px"
}return null}return value};Element.Methods.setOpacity=function(element,value){function stripAlpha(filter){return filter.replace(/alpha\([^\)]*\)/gi,"")
}element=$(element);var currentStyle=element.currentStyle;if((currentStyle&&!currentStyle.hasLayout)||(!currentStyle&&element.style.zoom=="normal")){element.style.zoom=1
}var filter=element.getStyle("filter"),style=element.style;if(value==1||value===""){(filter=stripAlpha(filter))?style.filter=filter:style.removeAttribute("filter");
return element}else{if(value<0.00001){value=0}}style.filter=stripAlpha(filter)+"alpha(opacity="+(value*100)+")";
return element};Element._attributeTranslations={read:{names:{"class":"className","for":"htmlFor"},values:{_getAttr:function(element,attribute){return element.getAttribute(attribute,2)
},_getAttrNode:function(element,attribute){var node=element.getAttributeNode(attribute);
return node?node.value:""},_getEv:function(element,attribute){attribute=element.getAttribute(attribute);
return attribute?attribute.toString().slice(23,-2):null},_flag:function(element,attribute){return $(element).hasAttribute(attribute)?attribute:null
},style:function(element){return element.style.cssText.toLowerCase()},title:function(element){return element.title
}}}};Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(element,value){element.checked=!!value
},style:function(element,value){element.style.cssText=value?value:""}}};Element._attributeTranslations.has={};
$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(attr){Element._attributeTranslations.write.names[attr.toLowerCase()]=attr;
Element._attributeTranslations.has[attr.toLowerCase()]=attr});(function(v){Object.extend(v,{href:v._getAttr,src:v._getAttr,type:v._getAttr,action:v._getAttrNode,disabled:v._flag,checked:v._flag,readonly:v._flag,multiple:v._flag,onload:v._getEv,onunload:v._getEv,onclick:v._getEv,ondblclick:v._getEv,onmousedown:v._getEv,onmouseup:v._getEv,onmouseover:v._getEv,onmousemove:v._getEv,onmouseout:v._getEv,onfocus:v._getEv,onblur:v._getEv,onkeypress:v._getEv,onkeydown:v._getEv,onkeyup:v._getEv,onsubmit:v._getEv,onreset:v._getEv,onselect:v._getEv,onchange:v._getEv})
})(Element._attributeTranslations.read.values)}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(element,value){element=$(element);
element.style.opacity=(value==1)?0.999999:(value==="")?"":(value<0.00001)?0:value;
return element}}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(element,value){element=$(element);
element.style.opacity=(value==1||value==="")?"":(value<0.00001)?0:value;if(value==1){if(element.tagName.toUpperCase()=="IMG"&&element.width){element.width++;
element.width--}else{try{var n=document.createTextNode(" ");element.appendChild(n);
element.removeChild(n)}catch(e){}}}return element};Element.Methods.cumulativeOffset=function(element){var valueT=0,valueL=0;
do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;if(element.offsetParent==document.body){if(Element.getStyle(element,"position")=="absolute"){break
}}element=element.offsetParent}while(element);return Element._returnOffset(valueL,valueT)
}}}}}if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=function(element,content){element=$(element);
if(content&&content.toElement){content=content.toElement()}if(Object.isElement(content)){return element.update().insert(content)
}content=Object.toHTML(content);var tagName=element.tagName.toUpperCase();if(tagName in Element._insertionTranslations.tags){$A(element.childNodes).each(function(node){element.removeChild(node)
});Element._getContentFromAnonymousElement(tagName,content.stripScripts()).each(function(node){element.appendChild(node)
})}else{element.innerHTML=content.stripScripts()}content.evalScripts.bind(content).defer();
return element}}if("outerHTML" in document.createElement("div")){Element.Methods.replace=function(element,content){element=$(element);
if(content&&content.toElement){content=content.toElement()}if(Object.isElement(content)){element.parentNode.replaceChild(content,element);
return element}content=Object.toHTML(content);var parent=element.parentNode,tagName=parent.tagName.toUpperCase();
if(Element._insertionTranslations.tags[tagName]){var nextSibling=element.next();var fragments=Element._getContentFromAnonymousElement(tagName,content.stripScripts());
parent.removeChild(element);if(nextSibling){fragments.each(function(node){parent.insertBefore(node,nextSibling)
})}else{fragments.each(function(node){parent.appendChild(node)})}}else{element.outerHTML=content.stripScripts()
}content.evalScripts.bind(content).defer();return element}}Element._returnOffset=function(l,t){var result=[l,t];
result.left=l;result.top=t;return result};Element._getContentFromAnonymousElement=function(tagName,html){var div=new Element("div"),t=Element._insertionTranslations.tags[tagName];
if(t){div.innerHTML=t[0]+html+t[1];t[2].times(function(){div=div.firstChild})}else{div.innerHTML=html
}return $A(div.childNodes)};Element._insertionTranslations={before:function(element,node){element.parentNode.insertBefore(node,element)
},top:function(element,node){element.insertBefore(node,element.firstChild)},bottom:function(element,node){element.appendChild(node)
},after:function(element,node){element.parentNode.insertBefore(node,element.nextSibling)
},tags:{TABLE:["<table>","</table>",1],TBODY:["<table><tbody>","</tbody></table>",2],TR:["<table><tbody><tr>","</tr></tbody></table>",3],TD:["<table><tbody><tr><td>","</td></tr></tbody></table>",4],SELECT:["<select>","</select>",1]}};
(function(){Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD})
}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(element,attribute){attribute=Element._attributeTranslations.has[attribute]||attribute;
var node=$(element).getAttributeNode(attribute);return !!(node&&node.specified)}};
Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement("div")["__proto__"]){window.HTMLElement={};
window.HTMLElement.prototype=document.createElement("div")["__proto__"];Prototype.BrowserFeatures.ElementExtensions=true
}Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions){return Prototype.K
}var Methods={},ByTag=Element.Methods.ByTag;var extend=Object.extend(function(element){if(!element||element._extendedByPrototype||element.nodeType!=1||element==window){return element
}var methods=Object.clone(Methods),tagName=element.tagName.toUpperCase(),property,value;
if(ByTag[tagName]){Object.extend(methods,ByTag[tagName])}for(property in methods){value=methods[property];
if(Object.isFunction(value)&&!(property in element)){element[property]=value.methodize()
}}element._extendedByPrototype=Prototype.emptyFunction;return element},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(Methods,Element.Methods);
Object.extend(Methods,Element.Methods.Simulated)}}});extend.refresh();return extend
})();Element.hasAttribute=function(element,attribute){if(element.hasAttribute){return element.hasAttribute(attribute)
}return Element.Methods.Simulated.hasAttribute(element,attribute)};Element.addMethods=function(methods){var F=Prototype.BrowserFeatures,T=Element.Methods.ByTag;
if(!methods){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);
Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)})
}if(arguments.length==2){var tagName=methods;methods=arguments[1]}if(!tagName){Object.extend(Element.Methods,methods||{})
}else{if(Object.isArray(tagName)){tagName.each(extend)}else{extend(tagName)}}function extend(tagName){tagName=tagName.toUpperCase();
if(!Element.Methods.ByTag[tagName]){Element.Methods.ByTag[tagName]={}}Object.extend(Element.Methods.ByTag[tagName],methods)
}function copy(methods,destination,onlyIfAbsent){onlyIfAbsent=onlyIfAbsent||false;
for(var property in methods){var value=methods[property];if(!Object.isFunction(value)){continue
}if(!onlyIfAbsent||!(property in destination)){destination[property]=value.methodize()
}}}function findDOMClass(tagName){var klass;var trans={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};
if(trans[tagName]){klass="HTML"+trans[tagName]+"Element"}if(window[klass]){return window[klass]
}klass="HTML"+tagName+"Element";if(window[klass]){return window[klass]}klass="HTML"+tagName.capitalize()+"Element";
if(window[klass]){return window[klass]}window[klass]={};window[klass].prototype=document.createElement(tagName)["__proto__"];
return window[klass]}if(F.ElementExtensions){copy(Element.Methods,HTMLElement.prototype);
copy(Element.Methods.Simulated,HTMLElement.prototype,true)}if(F.SpecificElementExtensions){for(var tag in Element.Methods.ByTag){var klass=findDOMClass(tag);
if(Object.isUndefined(klass)){continue}copy(T[tag],klass.prototype)}}Object.extend(Element,Element.Methods);
delete Element.ByTag;if(Element.extend.refresh){Element.extend.refresh()}Element.cache={}
};document.viewport={getDimensions:function(){var dimensions={},B=Prototype.Browser;
$w("width height").each(function(d){var D=d.capitalize();if(B.WebKit&&!document.evaluate){dimensions[d]=self["inner"+D]
}else{if(B.Opera&&parseFloat(window.opera.version())<9.5){dimensions[d]=document.body["client"+D]
}else{dimensions[d]=document.documentElement["client"+D]}}});return dimensions},getWidth:function(){return this.getDimensions().width
},getHeight:function(){return this.getDimensions().height},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)
}};var Selector=Class.create({initialize:function(expression){this.expression=expression.strip();
if(this.shouldUseSelectorsAPI()){this.mode="selectorsAPI"}else{if(this.shouldUseXPath()){this.mode="xpath";
this.compileXPathMatcher()}else{this.mode="normal";this.compileMatcher()}}},shouldUseXPath:function(){if(!Prototype.BrowserFeatures.XPath){return false
}var e=this.expression;if(Prototype.Browser.WebKit&&(e.include("-of-type")||e.include(":empty"))){return false
}return !(/(\[[\w-]*?:|:checked)/).test(e)},shouldUseSelectorsAPI:function(){if(!Prototype.BrowserFeatures.SelectorsAPI){return false
}if(!Selector._div){Selector._div=new Element("div")}try{Selector._div.querySelector(this.expression)
}catch(e){return false}return true},compileMatcher:function(){var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m;
if(Selector._cache[e]){this.matcher=Selector._cache[e];return}this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];
while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Template(c[i]).evaluate(m));
e=e.replace(m[0],"");break}}}this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join("\n"));
Selector._cache[this.expression]=this.matcher},compileXPathMatcher:function(){var e=this.expression,ps=Selector.patterns,x=Selector.xpath,le,m;
if(Selector._cache[e]){this.xpath=Selector._cache[e];return}this.matcher=[".//*"];
while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){if(m=e.match(ps[i])){this.matcher.push(Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m));
e=e.replace(m[0],"");break}}}this.xpath=this.matcher.join("");Selector._cache[this.expression]=this.xpath
},findElements:function(root){root=root||document;var e=this.expression,results;switch(this.mode){case"selectorsAPI":if(root!==document){var oldId=root.id,id=$(root).identify();
e="#"+id.replace(/:/g,"\\:")+" "+e}results=$A(root.querySelectorAll(e)).map(Element.extend);
root.id=oldId;return results;case"xpath":return document._getElementsByXPath(this.xpath,root);
default:return this.matcher(root)}},match:function(element){this.tokens=[];var e=this.expression,ps=Selector.patterns,as=Selector.assertions;
var le,p,m;while(e&&le!==e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){if(as[i]){this.tokens.push([i,Object.clone(m)]);
e=e.replace(m[0],"")}else{return this.findElements(document).include(element)}}}}var match=true,name,matches;
for(var i=0,token;token=this.tokens[i];i++){name=token[0],matches=token[1];if(!Selector.assertions[name](element,matches)){match=false;
break}}return match},toString:function(){return this.expression},inspect:function(){return"#<Selector:"+this.expression.inspect()+">"
}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(m){if(m[1]=="*"){return""
}return"[local-name()='"+m[1].toLowerCase()+"' or local-name()='"+m[1].toUpperCase()+"']"
},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(m){m[1]=m[1].toLowerCase();
return new Template("[@#{1}]").evaluate(m)},attr:function(m){m[1]=m[1].toLowerCase();
m[3]=m[5]||m[6];return new Template(Selector.xpath.operators[m[2]]).evaluate(m)},pseudo:function(m){var h=Selector.xpath.pseudos[m[1]];
if(!h){return""}if(Object.isFunction(h)){return h(m)}return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m)
},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]",empty:"[count(*) = 0 and (count(text()) = 0)]",checked:"[@checked]",disabled:"[(@disabled) and (@type!='hidden')]",enabled:"[not(@disabled) and (@type!='hidden')]",not:function(m){var e=m[6],p=Selector.patterns,x=Selector.xpath,le,v;
var exclusion=[];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in p){if(m=e.match(p[i])){v=Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m);
exclusion.push("("+v.substring(1,v.length-1)+")");e=e.replace(m[0],"");break}}}return"[not("+exclusion.join(" and ")+")]"
},"nth-child":function(m){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",m)
},"nth-last-child":function(m){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",m)
},"nth-of-type":function(m){return Selector.xpath.pseudos.nth("position() ",m)},"nth-last-of-type":function(m){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",m)
},"first-of-type":function(m){m[6]="1";return Selector.xpath.pseudos["nth-of-type"](m)
},"last-of-type":function(m){m[6]="1";return Selector.xpath.pseudos["nth-last-of-type"](m)
},"only-of-type":function(m){var p=Selector.xpath.pseudos;return p["first-of-type"](m)+p["last-of-type"](m)
},nth:function(fragment,m){var mm,formula=m[6],predicate;if(formula=="even"){formula="2n+0"
}if(formula=="odd"){formula="2n+1"}if(mm=formula.match(/^(\d+)$/)){return"["+fragment+"= "+mm[1]+"]"
}if(mm=formula.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(mm[1]=="-"){mm[1]=-1}var a=mm[1]?Number(mm[1]):1;
var b=mm[2]?Number(mm[2]):0;predicate="[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]";
return new Template(predicate).evaluate({fragment:fragment,a:a,b:b})}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);      c = false;',className:'n = h.className(n, r, "#{1}", c);    c = false;',id:'n = h.id(n, r, "#{1}", c);           c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(m){m[3]=(m[5]||m[6]);
return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m)
},pseudo:function(m){if(m[6]){m[6]=m[6].replace(/"/g,'\\"')}return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m)
},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,attrPresence:/^\[((?:[\w]+:)?[\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(element,matches){return matches[1].toUpperCase()==element.tagName.toUpperCase()
},className:function(element,matches){return Element.hasClassName(element,matches[1])
},id:function(element,matches){return element.id===matches[1]},attrPresence:function(element,matches){return Element.hasAttribute(element,matches[1])
},attr:function(element,matches){var nodeValue=Element.readAttribute(element,matches[1]);
return nodeValue&&Selector.operators[matches[2]](nodeValue,matches[5]||matches[6])
}},handlers:{concat:function(a,b){for(var i=0,node;node=b[i];i++){a.push(node)}return a
},mark:function(nodes){var _true=Prototype.emptyFunction;for(var i=0,node;node=nodes[i];
i++){node._countedByPrototype=_true}return nodes},unmark:function(nodes){for(var i=0,node;
node=nodes[i];i++){node._countedByPrototype=undefined}return nodes},index:function(parentNode,reverse,ofType){parentNode._countedByPrototype=Prototype.emptyFunction;
if(reverse){for(var nodes=parentNode.childNodes,i=nodes.length-1,j=1;i>=0;i--){var node=nodes[i];
if(node.nodeType==1&&(!ofType||node._countedByPrototype)){node.nodeIndex=j++}}}else{for(var i=0,j=1,nodes=parentNode.childNodes;
node=nodes[i];i++){if(node.nodeType==1&&(!ofType||node._countedByPrototype)){node.nodeIndex=j++
}}}},unique:function(nodes){if(nodes.length==0){return nodes}var results=[],n;for(var i=0,l=nodes.length;
i<l;i++){if(!(n=nodes[i])._countedByPrototype){n._countedByPrototype=Prototype.emptyFunction;
results.push(Element.extend(n))}}return Selector.handlers.unmark(results)},descendant:function(nodes){var h=Selector.handlers;
for(var i=0,results=[],node;node=nodes[i];i++){h.concat(results,node.getElementsByTagName("*"))
}return results},child:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;
node=nodes[i];i++){for(var j=0,child;child=node.childNodes[j];j++){if(child.nodeType==1&&child.tagName!="!"){results.push(child)
}}}return results},adjacent:function(nodes){for(var i=0,results=[],node;node=nodes[i];
i++){var next=this.nextElementSibling(node);if(next){results.push(next)}}return results
},laterSibling:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;
node=nodes[i];i++){h.concat(results,Element.nextSiblings(node))}return results},nextElementSibling:function(node){while(node=node.nextSibling){if(node.nodeType==1){return node
}}return null},previousElementSibling:function(node){while(node=node.previousSibling){if(node.nodeType==1){return node
}}return null},tagName:function(nodes,root,tagName,combinator){var uTagName=tagName.toUpperCase();
var results=[],h=Selector.handlers;if(nodes){if(combinator){if(combinator=="descendant"){for(var i=0,node;
node=nodes[i];i++){h.concat(results,node.getElementsByTagName(tagName))}return results
}else{nodes=this[combinator](nodes)}if(tagName=="*"){return nodes}}for(var i=0,node;
node=nodes[i];i++){if(node.tagName.toUpperCase()===uTagName){results.push(node)}}return results
}else{return root.getElementsByTagName(tagName)}},id:function(nodes,root,id,combinator){var targetNode=$(id),h=Selector.handlers;
if(!targetNode){return[]}if(!nodes&&root==document){return[targetNode]}if(nodes){if(combinator){if(combinator=="child"){for(var i=0,node;
node=nodes[i];i++){if(targetNode.parentNode==node){return[targetNode]}}}else{if(combinator=="descendant"){for(var i=0,node;
node=nodes[i];i++){if(Element.descendantOf(targetNode,node)){return[targetNode]}}}else{if(combinator=="adjacent"){for(var i=0,node;
node=nodes[i];i++){if(Selector.handlers.previousElementSibling(targetNode)==node){return[targetNode]
}}}else{nodes=h[combinator](nodes)}}}}for(var i=0,node;node=nodes[i];i++){if(node==targetNode){return[targetNode]
}}return[]}return(targetNode&&Element.descendantOf(targetNode,root))?[targetNode]:[]
},className:function(nodes,root,className,combinator){if(nodes&&combinator){nodes=this[combinator](nodes)
}return Selector.handlers.byClassName(nodes,root,className)},byClassName:function(nodes,root,className){if(!nodes){nodes=Selector.handlers.descendant([root])
}var needle=" "+className+" ";for(var i=0,results=[],node,nodeClassName;node=nodes[i];
i++){nodeClassName=node.className;if(nodeClassName.length==0){continue}if(nodeClassName==className||(" "+nodeClassName+" ").include(needle)){results.push(node)
}}return results},attrPresence:function(nodes,root,attr,combinator){if(!nodes){nodes=root.getElementsByTagName("*")
}if(nodes&&combinator){nodes=this[combinator](nodes)}var results=[];for(var i=0,node;
node=nodes[i];i++){if(Element.hasAttribute(node,attr)){results.push(node)}}return results
},attr:function(nodes,root,attr,value,operator,combinator){if(!nodes){nodes=root.getElementsByTagName("*")
}if(nodes&&combinator){nodes=this[combinator](nodes)}var handler=Selector.operators[operator],results=[];
for(var i=0,node;node=nodes[i];i++){var nodeValue=Element.readAttribute(node,attr);
if(nodeValue===null){continue}if(handler(nodeValue,value)){results.push(node)}}return results
},pseudo:function(nodes,name,value,root,combinator){if(nodes&&combinator){nodes=this[combinator](nodes)
}if(!nodes){nodes=root.getElementsByTagName("*")}return Selector.pseudos[name](nodes,value,root)
}},pseudos:{"first-child":function(nodes,value,root){for(var i=0,results=[],node;
node=nodes[i];i++){if(Selector.handlers.previousElementSibling(node)){continue}results.push(node)
}return results},"last-child":function(nodes,value,root){for(var i=0,results=[],node;
node=nodes[i];i++){if(Selector.handlers.nextElementSibling(node)){continue}results.push(node)
}return results},"only-child":function(nodes,value,root){var h=Selector.handlers;
for(var i=0,results=[],node;node=nodes[i];i++){if(!h.previousElementSibling(node)&&!h.nextElementSibling(node)){results.push(node)
}}return results},"nth-child":function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root)
},"nth-last-child":function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,true)
},"nth-of-type":function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,false,true)
},"nth-last-of-type":function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,true,true)
},"first-of-type":function(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,false,true)
},"last-of-type":function(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,true,true)
},"only-of-type":function(nodes,formula,root){var p=Selector.pseudos;return p["last-of-type"](p["first-of-type"](nodes,formula,root),formula,root)
},getIndices:function(a,b,total){if(a==0){return b>0?[b]:[]}return $R(1,total).inject([],function(memo,i){if(0==(i-b)%a&&(i-b)/a>=0){memo.push(i)
}return memo})},nth:function(nodes,formula,root,reverse,ofType){if(nodes.length==0){return[]
}if(formula=="even"){formula="2n+0"}if(formula=="odd"){formula="2n+1"}var h=Selector.handlers,results=[],indexed=[],m;
h.mark(nodes);for(var i=0,node;node=nodes[i];i++){if(!node.parentNode._countedByPrototype){h.index(node.parentNode,reverse,ofType);
indexed.push(node.parentNode)}}if(formula.match(/^\d+$/)){formula=Number(formula);
for(var i=0,node;node=nodes[i];i++){if(node.nodeIndex==formula){results.push(node)
}}}else{if(m=formula.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(m[1]=="-"){m[1]=-1}var a=m[1]?Number(m[1]):1;
var b=m[2]?Number(m[2]):0;var indices=Selector.pseudos.getIndices(a,b,nodes.length);
for(var i=0,node,l=indices.length;node=nodes[i];i++){for(var j=0;j<l;j++){if(node.nodeIndex==indices[j]){results.push(node)
}}}}}h.unmark(nodes);h.unmark(indexed);return results},empty:function(nodes,value,root){for(var i=0,results=[],node;
node=nodes[i];i++){if(node.tagName=="!"||node.firstChild){continue}results.push(node)
}return results},not:function(nodes,selector,root){var h=Selector.handlers,selectorType,m;
var exclusions=new Selector(selector).findElements(root);h.mark(exclusions);for(var i=0,results=[],node;
node=nodes[i];i++){if(!node._countedByPrototype){results.push(node)}}h.unmark(exclusions);
return results},enabled:function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];
i++){if(!node.disabled&&(!node.type||node.type!=="hidden")){results.push(node)}}return results
},disabled:function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(node.disabled){results.push(node)
}}return results},checked:function(nodes,value,root){for(var i=0,results=[],node;
node=nodes[i];i++){if(node.checked){results.push(node)}}return results}},operators:{"=":function(nv,v){return nv==v
},"!=":function(nv,v){return nv!=v},"^=":function(nv,v){return nv==v||nv&&nv.startsWith(v)
},"$=":function(nv,v){return nv==v||nv&&nv.endsWith(v)},"*=":function(nv,v){return nv==v||nv&&nv.include(v)
},"$=":function(nv,v){return nv.endsWith(v)},"*=":function(nv,v){return nv.include(v)
},"~=":function(nv,v){return(" "+nv+" ").include(" "+v+" ")},"|=":function(nv,v){return("-"+(nv||"").toUpperCase()+"-").include("-"+(v||"").toUpperCase()+"-")
}},split:function(expression){var expressions=[];expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(m){expressions.push(m[1].strip())
});return expressions},matchElements:function(elements,expression){var matches=$$(expression),h=Selector.handlers;
h.mark(matches);for(var i=0,results=[],element;element=elements[i];i++){if(element._countedByPrototype){results.push(element)
}}h.unmark(matches);return results},findElement:function(elements,expression,index){if(Object.isNumber(expression)){index=expression;
expression=false}return Selector.matchElements(elements,expression||"*")[index||0]
},findChildElements:function(element,expressions){expressions=Selector.split(expressions.join(","));
var results=[],h=Selector.handlers;for(var i=0,l=expressions.length,selector;i<l;
i++){selector=new Selector(expressions[i].strip());h.concat(results,selector.findElements(element))
}return(l>1)?h.unique(results):results}});if(Prototype.Browser.IE){Object.extend(Selector.handlers,{concat:function(a,b){for(var i=0,node;
node=b[i];i++){if(node.tagName!=="!"){a.push(node)}}return a},unmark:function(nodes){for(var i=0,node;
node=nodes[i];i++){node.removeAttribute("_countedByPrototype")}return nodes}})}function $$(){return Selector.findChildElements(document,$A(arguments))
}var Form={reset:function(form){$(form).reset();return form},serializeElements:function(elements,options){if(typeof options!="object"){options={hash:!!options}
}else{if(Object.isUndefined(options.hash)){options.hash=true}}var key,value,submitted=false,submit=options.submit;
var data=elements.inject({},function(result,element){if(!element.disabled&&element.name){key=element.name;
value=$(element).getValue();if(value!=null&&element.type!="file"&&(element.type!="submit"||(!submitted&&submit!==false&&(!submit||key==submit)&&(submitted=true)))){if(key in result){if(!Object.isArray(result[key])){result[key]=[result[key]]
}result[key].push(value)}else{result[key]=value}}}return result});return options.hash?data:Object.toQueryString(data)
}};Form.Methods={serialize:function(form,options){return Form.serializeElements(Form.getElements(form),options)
},getElements:function(form){return $A($(form).getElementsByTagName("*")).inject([],function(elements,child){if(Form.Element.Serializers[child.tagName.toLowerCase()]){elements.push(Element.extend(child))
}return elements})},getInputs:function(form,typeName,name){form=$(form);var inputs=form.getElementsByTagName("input");
if(!typeName&&!name){return $A(inputs).map(Element.extend)}for(var i=0,matchingInputs=[],length=inputs.length;
i<length;i++){var input=inputs[i];if((typeName&&input.type!=typeName)||(name&&input.name!=name)){continue
}matchingInputs.push(Element.extend(input))}return matchingInputs},disable:function(form){form=$(form);
Form.getElements(form).invoke("disable");return form},enable:function(form){form=$(form);
Form.getElements(form).invoke("enable");return form},findFirstElement:function(form){var elements=$(form).getElements().findAll(function(element){return"hidden"!=element.type&&!element.disabled
});var firstByIndex=elements.findAll(function(element){return element.hasAttribute("tabIndex")&&element.tabIndex>=0
}).sortBy(function(element){return element.tabIndex}).first();return firstByIndex?firstByIndex:elements.find(function(element){return["input","select","textarea"].include(element.tagName.toLowerCase())
})},focusFirstElement:function(form){form=$(form);form.findFirstElement().activate();
return form},request:function(form,options){form=$(form),options=Object.clone(options||{});
var params=options.parameters,action=form.readAttribute("action")||"";if(action.blank()){action=window.location.href
}options.parameters=form.serialize(true);if(params){if(Object.isString(params)){params=params.toQueryParams()
}Object.extend(options.parameters,params)}if(form.hasAttribute("method")&&!options.method){options.method=form.method
}return new Ajax.Request(action,options)}};Form.Element={focus:function(element){$(element).focus();
return element},select:function(element){$(element).select();return element}};Form.Element.Methods={serialize:function(element){element=$(element);
if(!element.disabled&&element.name){var value=element.getValue();if(value!=undefined){var pair={};
pair[element.name]=value;return Object.toQueryString(pair)}}return""},getValue:function(element){element=$(element);
var method=element.tagName.toLowerCase();return Form.Element.Serializers[method](element)
},setValue:function(element,value){element=$(element);var method=element.tagName.toLowerCase();
Form.Element.Serializers[method](element,value);return element},clear:function(element){$(element).value="";
return element},present:function(element){return $(element).value!=""},activate:function(element){element=$(element);
try{element.focus();if(element.select&&(element.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(element.type))){element.select()
}}catch(e){}return element},disable:function(element){element=$(element);element.disabled=true;
return element},enable:function(element){element=$(element);element.disabled=false;
return element}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(element,value){switch(element.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(element,value);
default:return Form.Element.Serializers.textarea(element,value)}},inputSelector:function(element,value){if(Object.isUndefined(value)){return element.checked?element.value:null
}else{element.checked=!!value}},textarea:function(element,value){if(Object.isUndefined(value)){return element.value
}else{element.value=value}},select:function(element,value){if(Object.isUndefined(value)){return this[element.type=="select-one"?"selectOne":"selectMany"](element)
}else{var opt,currentValue,single=!Object.isArray(value);for(var i=0,length=element.length;
i<length;i++){opt=element.options[i];currentValue=this.optionValue(opt);if(single){if(currentValue==value){opt.selected=true;
return}}else{opt.selected=value.include(currentValue)}}}},selectOne:function(element){var index=element.selectedIndex;
return index>=0?this.optionValue(element.options[index]):null},selectMany:function(element){var values,length=element.length;
if(!length){return null}for(var i=0,values=[];i<length;i++){var opt=element.options[i];
if(opt.selected){values.push(this.optionValue(opt))}}return values},optionValue:function(opt){return Element.extend(opt).hasAttribute("value")?opt.value:opt.text
}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,element,frequency,callback){$super(callback,frequency);
this.element=$(element);this.lastValue=this.getValue()},execute:function(){var value=this.getValue();
if(Object.isString(this.lastValue)&&Object.isString(value)?this.lastValue!=value:String(this.lastValue)!=String(value)){this.callback(this.element,value);
this.lastValue=value}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element)
}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element)
}});Abstract.EventObserver=Class.create({initialize:function(element,callback){this.element=$(element);
this.callback=callback;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()
}else{this.registerCallback(this.element)}},onElementEvent:function(){var value=this.getValue();
if(this.lastValue!=value){this.callback(this.element,value);this.lastValue=value}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this)
},registerCallback:function(element){if(element.type){switch(element.type.toLowerCase()){case"checkbox":case"radio":Event.observe(element,"click",this.onElementEvent.bind(this));
break;default:Event.observe(element,"change",this.onElementEvent.bind(this));break
}}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element)
}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element)
}});var Event={};if(window.Event){Event=window.Event}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:function(event){var element;
switch(event.type){case"mouseover":element=event.fromElement;break;case"mouseout":element=event.toElement;
break;default:return null}return Element.extend(element)}});Event.Methods=(function(){var isButton;
if(Prototype.Browser.IE){var buttonMap={0:1,1:4,2:2};isButton=function(event,code){return event.button==buttonMap[code]
}}else{if(Prototype.Browser.WebKit){isButton=function(event,code){switch(code){case 0:return event.which==1&&!event.metaKey;
case 1:return event.which==1&&event.metaKey;default:return false}}}else{isButton=function(event,code){return event.which?(event.which===code+1):(event.button===code)
}}}return{isLeftClick:function(event){return isButton(event,0)},isMiddleClick:function(event){return isButton(event,1)
},isRightClick:function(event){return isButton(event,2)},element:function(event){event=Event.extend(event);
var node=event.target,type=event.type,currentTarget=event.currentTarget;if(currentTarget&&currentTarget.tagName){if(type==="load"||type==="error"||(type==="click"&&currentTarget.tagName.toLowerCase()==="input"&&currentTarget.type==="radio")){node=currentTarget
}}if(node.nodeType==Node.TEXT_NODE){node=node.parentNode}return Element.extend(node)
},findElement:function(event,expression){var element=Event.element(event);if(!expression){return element
}var elements=[element].concat(element.ancestors());return Selector.findElement(elements,expression,0)
},pointer:function(event){var docElement=document.documentElement,body=document.body||{scrollLeft:0,scrollTop:0};
return{x:event.pageX||(event.clientX+(docElement.scrollLeft||body.scrollLeft)-(docElement.clientLeft||0)),y:event.pageY||(event.clientY+(docElement.scrollTop||body.scrollTop)-(docElement.clientTop||0))}
},pointerX:function(event){return Event.pointer(event).x},pointerY:function(event){return Event.pointer(event).y
},stop:function(event){Event.extend(event);event.preventDefault();event.stopPropagation();
event.stopped=true}}})();Event.extend=(function(){var methods=Object.keys(Event.Methods).inject({},function(m,name){m[name]=Event.Methods[name].methodize();
return m});if(Prototype.Browser.IE){Object.extend(methods,{stopPropagation:function(){this.cancelBubble=true;
if(this._stopPropagation){this._stopPropagation()}},preventDefault:function(){this.returnValue=false;
if(this._preventDefault){this._preventDefault()}},inspect:function(){return"[object Event]"
}});return function(event){if(!event){return false}if(event._extendedByPrototype){return event
}event._extendedByPrototype=Prototype.emptyFunction;var pointer=Event.pointer(event);
Object.extend(event,{target:event.srcElement,relatedTarget:Event.relatedTarget(event),pageX:pointer.x,pageY:pointer.y});
event._stopPropagation=event.stopPropagation;event._preventDefault=event.preventDefault;
return Object.extend(event,methods)}}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents")["__proto__"];
Object.extend(Event.prototype,methods);return Prototype.K}})();Object.extend(Event,(function(){var cache=Event.cache;
function getEventID(element){if(element._prototypeEventID){return element._prototypeEventID[0]
}arguments.callee.id=arguments.callee.id||1;return element._prototypeEventID=[++arguments.callee.id]
}function getDOMEventName(eventName){if(eventName&&eventName.include(":")){return"dataavailable"
}return eventName}function getCacheForID(id){return cache[id]=cache[id]||{}}function getWrappersForEventName(id,eventName){var c=getCacheForID(id);
return c[eventName]=c[eventName]||[]}function createWrapper(element,eventName,handler){var id=getEventID(element);
var c=getWrappersForEventName(id,eventName);if(c.pluck("handler").include(handler)){return false
}var wrapper=function(event){if(!Event||!Event.extend||(event.eventName&&event.eventName!=eventName)){return false
}Event.extend(event);handler.call(element,event)};wrapper.handler=handler;c.push(wrapper);
return wrapper}function findWrapper(id,eventName,handler){var c=getWrappersForEventName(id,eventName);
return c.find(function(wrapper){return wrapper.handler==handler})}function destroyWrapper(id,eventName,handler){var c=getCacheForID(id);
if(!c[eventName]){return false}c[eventName]=c[eventName].without(findWrapper(id,eventName,handler))
}if(Prototype.Browser.WebKit){window.addEventListener("unload",Prototype.emptyFunction,false)
}return{getDOMEventName:getDOMEventName,observe:function(element,eventName,handler){element=$(element);
var name=getDOMEventName(eventName);var wrapper=createWrapper(element,eventName,handler);
if(!wrapper){return element}if(element.addEventListener){element.addEventListener(name,wrapper,false)
}else{if(element.attachEvent){element.attachEvent("on"+name,wrapper)}}return element
},stopObserving:function(element,eventName,handler){element=$(element);var id=getEventID(element),name=getDOMEventName(eventName);
if(!handler&&eventName){getWrappersForEventName(id,eventName).each(function(wrapper){element.stopObserving(eventName,wrapper.handler)
});return element}else{if(!eventName){Object.keys(getCacheForID(id)).each(function(eventName){element.stopObserving(eventName)
});return element}}var wrapper=findWrapper(id,eventName,handler);if(!wrapper){return element
}if(element.removeEventListener){element.removeEventListener(name,wrapper,false)}else{element.detachEvent("on"+name,wrapper)
}destroyWrapper(id,eventName,handler);return element},fire:function(element,eventName,memo){element=$(element);
if(element==document&&document.createEvent&&!element.dispatchEvent){element=document.documentElement
}var event;if(document.createEvent){event=document.createEvent("HTMLEvents");event.initEvent("dataavailable",true,true)
}else{event=document.createEventObject();event.eventType="ondataavailable"}event.eventName=eventName;
event.memo=memo||{};if(document.createEvent&&element.dispatchEvent){element.dispatchEvent(event)
}else{if(element.fireEvent){element.fireEvent(event.eventType,event)}}return Event.extend(event)
}}})());Object.extend(Event,Event.Methods);Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});
Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize(),loaded:false});
(function(){var timer;function fireContentLoadedEvent(){if(document.loaded){return
}if(timer){window.clearInterval(timer)}document.fire("dom:loaded");document.loaded=true
}if(document.addEventListener){if(Prototype.Browser.WebKit){timer=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)){fireContentLoadedEvent()
}},0);Event.observe(window,"load",fireContentLoadedEvent)}else{document.addEventListener("DOMContentLoaded",fireContentLoadedEvent,false)
}}else{if(document.loaded){return}if(document.readyState!="complete"){document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");
var contentLoadedScript=$("__onDOMContentLoaded");if(contentLoadedScript){contentLoadedScript.onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;
fireContentLoadedEvent()}}}}}})();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};
Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(element,content){return Element.insert(element,{before:content})
},Top:function(element,content){return Element.insert(element,{top:content})},Bottom:function(element,content){return Element.insert(element,{bottom:content})
},After:function(element,content){return Element.insert(element,{after:content})}};
var $continue=new Error('"throw $continue" is deprecated, use "return" instead');
var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0
},within:function(element,x,y){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(element,x,y)
}this.xcomp=x;this.ycomp=y;this.offset=Element.cumulativeOffset(element);return(y>=this.offset[1]&&y<this.offset[1]+element.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+element.offsetWidth)
},withinIncludingScrolloffsets:function(element,x,y){var offsetcache=Element.cumulativeScrollOffset(element);
this.xcomp=x+offsetcache[0]-this.deltaX;this.ycomp=y+offsetcache[1]-this.deltaY;this.offset=Element.cumulativeOffset(element);
return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+element.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+element.offsetWidth)
},overlap:function(mode,element){if(!mode){return 0}if(mode=="vertical"){return((this.offset[1]+element.offsetHeight)-this.ycomp)/element.offsetHeight
}if(mode=="horizontal"){return((this.offset[0]+element.offsetWidth)-this.xcomp)/element.offsetWidth
}},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(element){Position.prepare();
return Element.absolutize(element)},relativize:function(element){Position.prepare();
return Element.relativize(element)},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(source,target,options){options=options||{};
return Element.clonePosition(target,source,options)}};if(!document.getElementsByClassName){document.getElementsByClassName=function(instanceMethods){function iter(name){return name.blank()?null:"[contains(concat(' ', @class, ' '), ' "+name+" ')]"
}instanceMethods.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(element,className){className=className.toString().strip();
var cond=/\s/.test(className)?$w(className).map(iter).join(""):iter(className);return cond?document._getElementsByXPath(".//*"+cond,element):[]
}:function(element,className){className=className.toString().strip();var elements=[],classNames=(/\s/.test(className)?$w(className):null);
if(!classNames&&!className){return elements}var nodes=$(element).getElementsByTagName("*");
className=" "+className+" ";for(var i=0,child,cn;child=nodes[i];i++){if(child.className&&(cn=" "+child.className+" ")&&(cn.include(className)||(classNames&&classNames.all(function(name){return !name.toString().blank()&&cn.include(" "+name+" ")
})))){elements.push(Element.extend(child))}}return elements};return function(className,parentElement){return $(parentElement||document.body).getElementsByClassName(className)
}}(Element.Methods)}Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(element){this.element=$(element)
},_each:function(iterator){this.element.className.split(/\s+/).select(function(name){return name.length>0
})._each(iterator)},set:function(className){this.element.className=className},add:function(classNameToAdd){if(this.include(classNameToAdd)){return
}this.set($A(this).concat(classNameToAdd).join(" "))},remove:function(classNameToRemove){if(!this.include(classNameToRemove)){return
}this.set($A(this).without(classNameToRemove).join(" "))},toString:function(){return $A(this).join(" ")
}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();exports.Prototype=Prototype;
exports.Class=Class;exports.Abstract=Abstract;exports.Function=Function;exports.Try=Try;
exports.Node=Node;exports.PeriodicalExecuter=PeriodicalExecuter;exports.Template=Template;
exports.Enumerable=Enumerable;exports.Hash=Hash;exports.Object=Object;exports.ObjectRange=ObjectRange;
exports.Ajax=Ajax;exports.Node=Node;exports.Selector=Selector;exports.Form=Form;exports.Date=Date;
exports.Field=Field;exports.Event=Event;exports.Toggle=Toggle;exports.Insertion=Insertion;
exports.Position=Position;exports.Element=Element;exports.$=$;exports.$break=$break;
exports.$continue=$continue;exports.$A=$A;exports.$w=$w;exports.$H=$H;exports.$F=$F;
exports.$R=$R;exports.$$=$$;exports.apply=function(w){Object.extend(w,exports)}});
define("richfaces",function(h,e,g){var f={_name:"RichFaces",_ver:1};e.RichFaces=f
});define("richfacesjs",function(e,f,h){var g={_name:"Richfaces",_ver:1};f.Richfaces=g
});define("richfaces.memory",["richfaces"],function(d){var e=d.RichFaces;var f=e.Memory={nodeCleaners:{},componentCleaners:{},addCleaner:function(b,a){this.nodeCleaners[b]=a
},addComponentCleaner:function(b,a,g){this.componentCleaners[b]={cleaner:a,checker:g}
},applyCleaners:function(h,b,a){for(var i in this.nodeCleaners){this.nodeCleaners[i](h,b)
}for(var i in this.componentCleaners){if(this.componentCleaners[i].checker(h,b)){a.push(h)
}}},_clean:function(b,l,a){if(b){this.applyCleaners(b,l,a);var o=b.all;if(o){var p=0;
var m=o.length;for(var p=0;p<m;p++){this.applyCleaners(o[p],l,a)}}else{var n=b.firstChild;
while(n){this._clean(n,l,a);n=n.nextSibling}}}},_cleanComponentNodes:function(a,b){for(var j=0;
j<a.length;j++){var i=a[j];for(var l in this.componentCleaners){this.componentCleaners[l].cleaner(i,b)
}}},clean:function(b,g){var a=[];this._clean(b,g,a);this._cleanComponentNodes(a,g);
a=null}};f.addComponentCleaner("richfaces",function(b,a){var j=b.component;if(j){var i=j["rich:destructor"];
if(i){var l=j[i];if(l){l.call(j,a)}}}},function(b,a){return(b.component&&b.component["rich:destructor"])
});if(window.attachEvent){window.attachEvent("onunload",function(){f.clean(window.document);
f.clean(window)})}return{Memory:f}});define("richfaces.prototypejs",["richfaces.memory","prototypejs"],function(l,o){var m=l.Memory,p=o.Node,i=o.Event,j=o.Function,q=o.Element,n=o.$;
j.prototype.indexOf=function(){return -1};q.clearChildren=function(a){a=n(a);while(a.firstChild){a.removeChild(a.firstChild)
}return a};q.isChildOf=function(a,b){while(a&&b!=a){a=a.parentNode}return b==a};q.isUninitialized=function(a){if(a){if(a.nodeType==p.ELEMENT_NODE){if(!a.parentNode||a.document&&a.document.readyState=="uninitialized"){return true
}else{return !q.descendantOf(a,document.documentElement)}return false}}};m.addCleaner("prototype",function(a,g){var b=a._prototypeEventID?a._prototypeEventID[0]:undefined;
if(b){var e=i.cache[b];for(var f in e){var h=e[f];var d=i.getDOMEventName(f);h.each(function(r){if(a.removeEventListener){a.removeEventListener(d,r,false)
}else{a.detachEvent("on"+d,r)}});e[f]=null}delete i.cache[b]}})});define("richfaces.jquery",["richfaces","richfaces.memory","jquery"],function(f,h,j){var g=f.RichFaces,i=h.Memory;
if(!g.isJQueryWrapped){i.addCleaner("jquery",function(b,a){if(b&&b[j.expando]){j.event.remove(b);
j.removeData(b)}});g.isJQueryWrapped=true}return j});define("richfacesjs.smartposition",["richfacesjs","prototypejs"],function(n,l){var o=n.Richfaces;
var m=l.$,j=l.$H,i=l.Element;var h=o.SmartPosition={options:j({positionX:["right","left","center"],positionY:["bottom","top"],positionFloat:true}),getBase:function(){return(document.compatMode&&document.compatMode.toLowerCase()=="css1compat"&&!/Netscape|Opera/.test(navigator.userAgent))?document.documentElement:(document.body||null)
},screenOffset:function(d,s){d=m(d);var r=this.getBase();var q=/Opera/.test(navigator.userAgent);
var g=0,b=0;var a="";var f=d;do{a+="element: "+f.tagName+", offsetTop = "+f.offsetTop+", offsetLeft = "+f.offsetLeft+"\n";
g+=f.offsetTop||0;b+=f.offsetLeft||0;a+="valueT = "+g+", valueL = "+b+"\n";if(f.offsetParent==r&&i.getStyle(f,"position")=="absolute"){break
}}while(f=f.offsetParent);a+="\n\n";f=d;do{a+="element: "+f.tagName+", scrollTop = "+f.scrollTop+", scrollLeft = "+f.scrollLeft+"\n";
if(!q||(f.tagName!=undefined&&(f.tagName.toLowerCase()!="tr"&&f!=d&&f!=d.parentNode))){g-=f.scrollTop||0;
b-=f.scrollLeft||0}a+="valueT = "+g+", valueL = "+b+"\n";if(f==r){break}}while(f=f.parentNode);
var e=[b,g];if(arguments.length>1&&s){alert(a+"\n\noffset = "+e)}d=m(d);if(!q&&d.tagName.toLowerCase()=="input"){e[0]+=d.scrollLeft
}return e},getVSpaces:function(f){var d=this.getBase();if(this.isElement(f)){var a=this.screenOffset(f);
var e=i.getDimensions(f);var b=a[1];var g=d.clientHeight-a[1]-e.height}else{var b=f[1]-d.scrollTop;
var g=d.clientHeight-(f[1]-d.scrollTop)}return{top:b,bottom:g}},getHSpaces:function(f){var d=this.getBase();
if(this.isElement(f)){var a=this.screenOffset(f);var e=i.getDimensions(f);var b=a[0]+e.width;
var g=d.clientWidth-a[0]}else{var b=f[0]-d.scrollLeft;var g=d.clientWidth-(f[0]-d.scrollLeft)
}return{left:b,right:g}},getPosition:function(r,u,a){var t=this.getBase();var f=[m(u).offsetWidth,m(u).offsetHeight];
var s=this.getHSpaces(r);var e=this.getVSpaces(r);if(this.isElement(r)){var g=this.screenOffset(r);
var b={width:m(r).offsetWidth,height:m(r).offsetHeight};var d=[g[0],g[1]+b.height]
}else{var d=[r[0],r[1]]}if(s.right<f[0]&&s.left>=f[0]){if(this.isElement(r)){d[0]=g[0]+b.width-f[0]
}else{d[0]=r[0]-f[0]}}if(this.isElement(r)){d[0]+=t.scrollLeft}if(e.bottom<f[1]&&e.top>=f[1]){if(this.isElement(r)){d[1]=g[1]-f[1]
}else{d[1]=d[1]-f[1]}}if(this.isElement(r)){d[1]+=t.scrollTop}return d},getOption:function(a){if(a){return j(a)
}else{return this.options}},calcSizes:function(a){if(a.tagName.toLowerCase()=="table"){a.style.width="0px";
a.style.height="0px";return{width:a.offsetWidth,height:a.offsetHeight}}},isElement:function(a){return(a.length==undefined)
}};return{SmartPosition:h}});define("richfaces.browser",["globals","richfaces"],function(g,h){var e=g.navigator,f=h.RichFaces;
f.MSIE=0;f.FF=1;f.OPERA=2;f.NETSCAPE=3;f.SAFARI=4;f.KONQ=5;f.WEBKIT=6;f.EDGE=7;f.navigatorType=function(){var a=e.userAgent.toLowerCase();
if(a.indexOf("msie")>=0||a.indexOf("explorer")>=0){return f.MSIE}else{if(a.indexOf("firefox")>=0||a.indexOf("iceweasel")>=0){return f.FF
}else{if(a.indexOf("opera")>=0){return f.OPERA}else{if(a.indexOf("netscape")>=0){return f.NETSCAPE
}else{if(a.indexOf("safari")>=0){return f.SAFARI}else{if(a.indexOf("konqueror")>=0){return f.KONQ
}else{if(a.indexOf("webkit")>=0){return f.WEBKIT}else{if(a.indexOf("edge")>=0){return f.EDGE
}}}}}}}}return"OTHER"};f.getOperaVersion=function(){var a=e.userAgent.toLowerCase();
var b=a.indexOf("opera");if(b==-1){return}return parseFloat(a.substring(b+6))};f.getIEVersion=function(){var d="msie";
var b=e.userAgent.toLowerCase();var l=b.indexOf(d);if(l!=-1){var a=b.indexOf(";",l);
var j;if(a!=-1){j=b.substring(l+d.length,a)}else{j=b.substring(l+d.length)}return parseFloat(j)
}else{return undefined}};return{RichFaces:f,navigatorType:f.navigatorType}});
/*!
 * jQuery JavaScript Library v3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2017-03-20T19:00Z
 */
;
define("jquery",["globals"],function(f){var d=f.g,e={exports:{}};(function(a,b){if(typeof e==="object"&&typeof e.exports==="object"){e.exports=a.document?b(a,true):function(g){if(!g.document){throw new Error("jQuery requires a window with a document")
}return b(g)}}else{b(a)}})(typeof window!=="undefined"?window:this,function(cf,df){var cs=[];
var cZ=cf.document;var cT=Object.getPrototypeOf;var cD=cs.slice;var b3=cs.concat;
var bR=cs.push;var bC=cs.indexOf;var dH={};var dl=dH.toString;var dz=dH.hasOwnProperty;
var cG=dz.toString;var dm=cG.call(Object);var b9={};function c4(h,g){g=g||cZ;var i=g.createElement("script");
i.text=h;g.head.appendChild(i).parentNode.removeChild(i)}var cx="3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector",b0=function(h,g){return new b0.fn.init(h,g)
},cp=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,cM=/^-ms-/,de=/-([a-z])/g,bM=function(h,g){return g.toUpperCase()
};b0.fn=b0.prototype={jquery:cx,constructor:b0,length:0,toArray:function(){return cD.call(this)
},get:function(g){if(g==null){return cD.call(this)}return g<0?this[g+this.length]:this[g]
},pushStack:function(h){var g=b0.merge(this.constructor(),h);g.prevObject=this;return g
},each:function(g){return b0.each(this,g)},map:function(g){return this.pushStack(b0.map(this,function(h,i){return g.call(h,i,h)
}))},slice:function(){return this.pushStack(cD.apply(this,arguments))},first:function(){return this.eq(0)
},last:function(){return this.eq(-1)},eq:function(g){var i=this.length,h=+g+(g<0?i:0);
return this.pushStack(h>=0&&h<i?[this[h]]:[])},end:function(){return this.prevObject||this.constructor()
},push:bR,sort:cs.sort,splice:cs.splice};b0.extend=b0.fn.extend=function(){var h,p,g,q,l,j,m=arguments[0]||{},n=1,o=arguments.length,i=false;
if(typeof m==="boolean"){i=m;m=arguments[n]||{};n++}if(typeof m!=="object"&&!b0.isFunction(m)){m={}
}if(n===o){m=this;n--}for(;n<o;n++){if((h=arguments[n])!=null){for(p in h){g=m[p];
q=h[p];if(m===q){continue}if(i&&q&&(b0.isPlainObject(q)||(l=Array.isArray(q)))){if(l){l=false;
j=g&&Array.isArray(g)?g:[]}else{j=g&&b0.isPlainObject(g)?g:{}}m[p]=b0.extend(i,j,q)
}else{if(q!==undefined){m[p]=q}}}}}return m};b0.extend({expando:"jQuery"+(cx+Math.random()).replace(/\D/g,""),isReady:true,error:function(g){throw new Error(g)
},noop:function(){},isFunction:function(g){return b0.type(g)==="function"},isWindow:function(g){return g!=null&&g===g.window
},isNumeric:function(g){var h=b0.type(g);return(h==="number"||h==="string")&&!isNaN(g-parseFloat(g))
},isPlainObject:function(g){var h,i;if(!g||dl.call(g)!=="[object Object]"){return false
}h=cT(g);if(!h){return true}i=dz.call(h,"constructor")&&h.constructor;return typeof i==="function"&&cG.call(i)===dm
},isEmptyObject:function(g){var h;for(h in g){return false}return true},type:function(g){if(g==null){return g+""
}return typeof g==="object"||typeof g==="function"?dH[dl.call(g)]||"object":typeof g
},globalEval:function(g){c4(g)},camelCase:function(g){return g.replace(cM,"ms-").replace(de,bM)
},each:function(h,g){var i,j=0;if(a(h)){i=h.length;for(;j<i;j++){if(g.call(h[j],j,h[j])===false){break
}}}else{for(j in h){if(g.call(h[j],j,h[j])===false){break}}}return h},trim:function(g){return g==null?"":(g+"").replace(cp,"")
},makeArray:function(i,g){var h=g||[];if(i!=null){if(a(Object(i))){b0.merge(h,typeof i==="string"?[i]:i)
}else{bR.call(h,i)}}return h},inArray:function(g,i,h){return i==null?-1:bC.call(i,g,h)
},merge:function(g,i){var l=+i.length,j=0,h=g.length;for(;j<l;j++){g[h++]=i[j]}g.length=h;
return g},grep:function(o,g,j){var h,l=[],n=0,m=o.length,i=!j;for(;n<m;n++){h=!g(o[n],n);
if(h!==i){l.push(o[n])}}return l},map:function(m,g,n){var i,h,j=0,l=[];if(a(m)){i=m.length;
for(;j<i;j++){h=g(m[j],j,n);if(h!=null){l.push(h)}}}else{for(j in m){h=g(m[j],j,n);
if(h!=null){l.push(h)}}}return b3.apply([],l)},guid:1,proxy:function(g,h){var i,l,j;
if(typeof h==="string"){i=g[h];h=g;g=i}if(!b0.isFunction(g)){return undefined}l=cD.call(arguments,2);
j=function(){return g.apply(h||this,l.concat(cD.call(arguments)))};j.guid=g.guid=g.guid||b0.guid++;
return j},now:Date.now,support:b9});if(typeof Symbol==="function"){b0.fn[Symbol.iterator]=cs[Symbol.iterator]
}b0.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(g,h){dH["[object "+h+"]"]=h.toLowerCase()
});function a(g){var h=!!g&&"length" in g&&g.length,i=b0.type(g);if(i==="function"||b0.isWindow(g)){return false
}return i==="array"||h===0||typeof h==="number"&&h>0&&(h-1) in g}var c7=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
(function(Q){var aF,N,ah,D,A,am,q,O,H,C,p,n,aB,ag,W,i,P,aq,F,U="sizzle"+1*new Date(),B=Q.document,M=0,h=0,ax=aD(),V=aD(),E=aD(),G=function(aK,aL){if(aK===aL){p=true
}return 0},x=({}).hasOwnProperty,S=[],R=S.pop,y=S.push,az=S.push,ai=S.slice,ar=function(aK,aL){var aM=0,aN=aK.length;
for(;aM<aN;aM++){if(aK[aM]===aL){return aM}}return -1},ay="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",af="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",Z="\\["+af+"*("+z+")(?:"+af+"*([*^$|!~]?=)"+af+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+af+"*\\]",ak=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",aa=new RegExp(af+"+","g"),ad=new RegExp("^"+af+"+|((?:^|[^\\\\])(?:\\\\.)*)"+af+"+$","g"),aJ=new RegExp("^"+af+"*,"+af+"*"),aC=new RegExp("^"+af+"*([>+~]|"+af+")"+af+"*"),ab=new RegExp("="+af+"*([^\\]'\"]*?)"+af+"*\\]","g"),u=new RegExp(ak),s=new RegExp("^"+z+"$"),j={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+ak),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+af+"*(even|odd|(([+-]|)(\\d*)n|)"+af+"*(?:([+-]|)"+af+"*(\\d+)|))"+af+"*\\)|)","i"),bool:new RegExp("^(?:"+ay+")$","i"),needsContext:new RegExp("^"+af+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+af+"*((?:-\\d)?\\d*)"+af+"*\\)|)(?=[^-]|$)","i")},at=/^(?:input|select|textarea|button)$/i,aj=/^h\d$/i,w=/^[^{]+\{\s*\[native \w/,v=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,l=/[+~]/,ac=new RegExp("\\\\([\\da-f]{1,6}"+af+"?|("+af+")|.)","ig"),g=function(aN,aK,aM){var aL="0x"+aK-65536;
return aL!==aL||aM?aK:aL<0?String.fromCharCode(aL+65536):String.fromCharCode(aL>>10|55296,aL&1023|56320)
},Y=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,aI=function(aK,aL){if(aL){if(aK==="\0"){return"\uFFFD"
}return aK.slice(0,-1)+"\\"+aK.charCodeAt(aK.length-1).toString(16)+" "}return"\\"+aK
},I=function(){n()},L=ae(function(aK){return aK.disabled===true&&("form" in aK||"label" in aK)
},{dir:"parentNode",next:"legend"});try{az.apply((S=ai.call(B.childNodes)),B.childNodes);
S[B.childNodes.length].nodeType}catch(aA){az={apply:S.length?function(aK,aL){y.apply(aK,ai.call(aL))
}:function(aK,aL){var aN=aK.length,aM=0;while((aK[aN++]=aL[aM++])){}aK.length=aN-1
}}}function aH(aQ,aW,aN,aK){var aS,aM,aT,aX,aL,aU,aP,aV=aW&&aW.ownerDocument,aO=aW?aW.nodeType:9;
aN=aN||[];if(typeof aQ!=="string"||!aQ||aO!==1&&aO!==9&&aO!==11){return aN}if(!aK){if((aW?aW.ownerDocument||aW:B)!==aB){n(aW)
}aW=aW||aB;if(W){if(aO!==11&&(aL=v.exec(aQ))){if((aS=aL[1])){if(aO===9){if((aT=aW.getElementById(aS))){if(aT.id===aS){aN.push(aT);
return aN}}else{return aN}}else{if(aV&&(aT=aV.getElementById(aS))&&F(aW,aT)&&aT.id===aS){aN.push(aT);
return aN}}}else{if(aL[2]){az.apply(aN,aW.getElementsByTagName(aQ));return aN}else{if((aS=aL[3])&&N.getElementsByClassName&&aW.getElementsByClassName){az.apply(aN,aW.getElementsByClassName(aS));
return aN}}}}if(N.qsa&&!E[aQ+" "]&&(!i||!i.test(aQ))){if(aO!==1){aV=aW;aP=aQ}else{if(aW.nodeName.toLowerCase()!=="object"){if((aX=aW.getAttribute("id"))){aX=aX.replace(Y,aI)
}else{aW.setAttribute("id",(aX=U))}aU=am(aQ);aM=aU.length;while(aM--){aU[aM]="#"+aX+" "+an(aU[aM])
}aP=aU.join(",");aV=l.test(aQ)&&t(aW.parentNode)||aW}}if(aP){try{az.apply(aN,aV.querySelectorAll(aP));
return aN}catch(aR){}finally{if(aX===U){aW.removeAttribute("id")}}}}}}return O(aQ.replace(ad,"$1"),aW,aN,aK)
}function aD(){var aK=[];function aL(aN,aM){if(aK.push(aN+" ")>ah.cacheLength){delete aL[aK.shift()]
}return(aL[aN+" "]=aM)}return aL}function al(aK){aK[U]=true;return aK}function ap(aL){var aM=aB.createElement("fieldset");
try{return !!aL(aM)}catch(aK){return false}finally{if(aM.parentNode){aM.parentNode.removeChild(aM)
}aM=null}}function K(aM,aK){var aN=aM.split("|"),aL=aN.length;while(aL--){ah.attrHandle[aN[aL]]=aK
}}function aw(aM,aN){var aK=aN&&aM,aL=aK&&aM.nodeType===1&&aN.nodeType===1&&aM.sourceIndex-aN.sourceIndex;
if(aL){return aL}if(aK){while((aK=aK.nextSibling)){if(aK===aN){return -1}}}return aM?1:-1
}function aG(aK){return function(aL){var aM=aL.nodeName.toLowerCase();return aM==="input"&&aL.type===aK
}}function au(aK){return function(aL){var aM=aL.nodeName.toLowerCase();return(aM==="input"||aM==="button")&&aL.type===aK
}}function av(aK){return function(aL){if("form" in aL){if(aL.parentNode&&aL.disabled===false){if("label" in aL){if("label" in aL.parentNode){return aL.parentNode.disabled===aK
}else{return aL.disabled===aK}}return aL.isDisabled===aK||aL.isDisabled!==!aK&&L(aL)===aK
}return aL.disabled===aK}else{if("label" in aL){return aL.disabled===aK}}return false
}}function X(aK){return al(function(aL){aL=+aL;return al(function(aN,aO){var aQ,aM=aK([],aN.length,aL),aP=aM.length;
while(aP--){if(aN[(aQ=aM[aP])]){aN[aQ]=!(aO[aQ]=aN[aQ])}}})})}function t(aK){return aK&&typeof aK.getElementsByTagName!=="undefined"&&aK
}N=aH.support={};A=aH.isXML=function(aL){var aK=aL&&(aL.ownerDocument||aL).documentElement;
return aK?aK.nodeName!=="HTML":false};n=aH.setDocument=function(aL){var aN,aM,aK=aL?aL.ownerDocument||aL:B;
if(aK===aB||aK.nodeType!==9||!aK.documentElement){return aB}aB=aK;ag=aB.documentElement;
W=!A(aB);if(B!==aB&&(aM=aB.defaultView)&&aM.top!==aM){if(aM.addEventListener){aM.addEventListener("unload",I,false)
}else{if(aM.attachEvent){aM.attachEvent("onunload",I)}}}N.attributes=ap(function(aO){aO.className="i";
return !aO.getAttribute("className")});N.getElementsByTagName=ap(function(aO){aO.appendChild(aB.createComment(""));
return !aO.getElementsByTagName("*").length});N.getElementsByClassName=w.test(aB.getElementsByClassName);
N.getById=ap(function(aO){ag.appendChild(aO).id=U;return !aB.getElementsByName||!aB.getElementsByName(U).length
});if(N.getById){ah.filter.ID=function(aO){var aP=aO.replace(ac,g);return function(aQ){return aQ.getAttribute("id")===aP
}};ah.find.ID=function(aO,aQ){if(typeof aQ.getElementById!=="undefined"&&W){var aP=aQ.getElementById(aO);
return aP?[aP]:[]}}}else{ah.filter.ID=function(aO){var aP=aO.replace(ac,g);return function(aQ){var aR=typeof aQ.getAttributeNode!=="undefined"&&aQ.getAttributeNode("id");
return aR&&aR.value===aP}};ah.find.ID=function(aO,aR){if(typeof aR.getElementById!=="undefined"&&W){var aP,aS,aT,aQ=aR.getElementById(aO);
if(aQ){aP=aQ.getAttributeNode("id");if(aP&&aP.value===aO){return[aQ]}aT=aR.getElementsByName(aO);
aS=0;while((aQ=aT[aS++])){aP=aQ.getAttributeNode("id");if(aP&&aP.value===aO){return[aQ]
}}}return[]}}}ah.find.TAG=N.getElementsByTagName?function(aP,aO){if(typeof aO.getElementsByTagName!=="undefined"){return aO.getElementsByTagName(aP)
}else{if(N.qsa){return aO.querySelectorAll(aP)}}}:function(aT,aP){var aO,aQ=[],aR=0,aS=aP.getElementsByTagName(aT);
if(aT==="*"){while((aO=aS[aR++])){if(aO.nodeType===1){aQ.push(aO)}}return aQ}return aS
};ah.find.CLASS=N.getElementsByClassName&&function(aO,aP){if(typeof aP.getElementsByClassName!=="undefined"&&W){return aP.getElementsByClassName(aO)
}};P=[];i=[];if((N.qsa=w.test(aB.querySelectorAll))){ap(function(aO){ag.appendChild(aO).innerHTML="<a id='"+U+"'></a><select id='"+U+"-\r\\' msallowcapture=''><option selected=''></option></select>";
if(aO.querySelectorAll("[msallowcapture^='']").length){i.push("[*^$]="+af+"*(?:''|\"\")")
}if(!aO.querySelectorAll("[selected]").length){i.push("\\["+af+"*(?:value|"+ay+")")
}if(!aO.querySelectorAll("[id~="+U+"-]").length){i.push("~=")}if(!aO.querySelectorAll(":checked").length){i.push(":checked")
}if(!aO.querySelectorAll("a#"+U+"+*").length){i.push(".#.+[+~]")}});ap(function(aO){aO.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
var aP=aB.createElement("input");aP.setAttribute("type","hidden");aO.appendChild(aP).setAttribute("name","D");
if(aO.querySelectorAll("[name=d]").length){i.push("name"+af+"*[*^$|!~]?=")}if(aO.querySelectorAll(":enabled").length!==2){i.push(":enabled",":disabled")
}ag.appendChild(aO).disabled=true;if(aO.querySelectorAll(":disabled").length!==2){i.push(":enabled",":disabled")
}aO.querySelectorAll("*,:x");i.push(",.*:")})}if((N.matchesSelector=w.test((aq=ag.matches||ag.webkitMatchesSelector||ag.mozMatchesSelector||ag.oMatchesSelector||ag.msMatchesSelector)))){ap(function(aO){N.disconnectedMatch=aq.call(aO,"*");
aq.call(aO,"[s!='']:x");P.push("!=",ak)})}i=i.length&&new RegExp(i.join("|"));P=P.length&&new RegExp(P.join("|"));
aN=w.test(ag.compareDocumentPosition);F=aN||w.test(ag.contains)?function(aQ,aR){var aO=aQ.nodeType===9?aQ.documentElement:aQ,aP=aR&&aR.parentNode;
return aQ===aP||!!(aP&&aP.nodeType===1&&(aO.contains?aO.contains(aP):aQ.compareDocumentPosition&&aQ.compareDocumentPosition(aP)&16))
}:function(aO,aP){if(aP){while((aP=aP.parentNode)){if(aP===aO){return true}}}return false
};G=aN?function(aP,aQ){if(aP===aQ){p=true;return 0}var aO=!aP.compareDocumentPosition-!aQ.compareDocumentPosition;
if(aO){return aO}aO=(aP.ownerDocument||aP)===(aQ.ownerDocument||aQ)?aP.compareDocumentPosition(aQ):1;
if(aO&1||(!N.sortDetached&&aQ.compareDocumentPosition(aP)===aO)){if(aP===aB||aP.ownerDocument===B&&F(B,aP)){return -1
}if(aQ===aB||aQ.ownerDocument===B&&F(B,aQ)){return 1}return C?(ar(C,aP)-ar(C,aQ)):0
}return aO&4?-1:1}:function(aU,aV){if(aU===aV){p=true;return 0}var aO,aR=0,aP=aU.parentNode,aS=aV.parentNode,aT=[aU],aQ=[aV];
if(!aP||!aS){return aU===aB?-1:aV===aB?1:aP?-1:aS?1:C?(ar(C,aU)-ar(C,aV)):0}else{if(aP===aS){return aw(aU,aV)
}}aO=aU;while((aO=aO.parentNode)){aT.unshift(aO)}aO=aV;while((aO=aO.parentNode)){aQ.unshift(aO)
}while(aT[aR]===aQ[aR]){aR++}return aR?aw(aT[aR],aQ[aR]):aT[aR]===B?-1:aQ[aR]===B?1:0
};return aB};aH.matches=function(aK,aL){return aH(aK,null,null,aL)};aH.matchesSelector=function(aM,aK){if((aM.ownerDocument||aM)!==aB){n(aM)
}aK=aK.replace(ab,"='$1']");if(N.matchesSelector&&W&&!E[aK+" "]&&(!P||!P.test(aK))&&(!i||!i.test(aK))){try{var aN=aq.call(aM,aK);
if(aN||N.disconnectedMatch||aM.document&&aM.document.nodeType!==11){return aN}}catch(aL){}}return aH(aK,aB,null,[aM]).length>0
};aH.contains=function(aL,aK){if((aL.ownerDocument||aL)!==aB){n(aL)}return F(aL,aK)
};aH.attr=function(aL,aN){if((aL.ownerDocument||aL)!==aB){n(aL)}var aM=ah.attrHandle[aN.toLowerCase()],aK=aM&&x.call(ah.attrHandle,aN.toLowerCase())?aM(aL,aN,!W):undefined;
return aK!==undefined?aK:N.attributes||!W?aL.getAttribute(aN):(aK=aL.getAttributeNode(aN))&&aK.specified?aK.value:null
};aH.escape=function(aK){return(aK+"").replace(Y,aI)};aH.error=function(aK){throw new Error("Syntax error, unrecognized expression: "+aK)
};aH.uniqueSort=function(aL){var aK,aO=[],aN=0,aM=0;p=!N.detectDuplicates;C=!N.sortStable&&aL.slice(0);
aL.sort(G);if(p){while((aK=aL[aM++])){if(aK===aL[aM]){aN=aO.push(aM)}}while(aN--){aL.splice(aO[aN],1)
}}C=null;return aL};D=aH.getText=function(aO){var aK,aM="",aL=0,aN=aO.nodeType;if(!aN){while((aK=aO[aL++])){aM+=D(aK)
}}else{if(aN===1||aN===9||aN===11){if(typeof aO.textContent==="string"){return aO.textContent
}else{for(aO=aO.firstChild;aO;aO=aO.nextSibling){aM+=D(aO)}}}else{if(aN===3||aN===4){return aO.nodeValue
}}}return aM};ah=aH.selectors={cacheLength:50,createPseudo:al,match:j,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(aK){aK[1]=aK[1].replace(ac,g);
aK[3]=(aK[3]||aK[4]||aK[5]||"").replace(ac,g);if(aK[2]==="~="){aK[3]=" "+aK[3]+" "
}return aK.slice(0,4)},CHILD:function(aK){aK[1]=aK[1].toLowerCase();if(aK[1].slice(0,3)==="nth"){if(!aK[3]){aH.error(aK[0])
}aK[4]=+(aK[4]?aK[5]+(aK[6]||1):2*(aK[3]==="even"||aK[3]==="odd"));aK[5]=+((aK[7]+aK[8])||aK[3]==="odd")
}else{if(aK[3]){aH.error(aK[0])}}return aK},PSEUDO:function(aL){var aM,aK=!aL[6]&&aL[2];
if(j.CHILD.test(aL[0])){return null}if(aL[3]){aL[2]=aL[4]||aL[5]||""}else{if(aK&&u.test(aK)&&(aM=am(aK,true))&&(aM=aK.indexOf(")",aK.length-aM)-aK.length)){aL[0]=aL[0].slice(0,aM);
aL[2]=aK.slice(0,aM)}}return aL.slice(0,3)}},filter:{TAG:function(aK){var aL=aK.replace(ac,g).toLowerCase();
return aK==="*"?function(){return true}:function(aM){return aM.nodeName&&aM.nodeName.toLowerCase()===aL
}},CLASS:function(aL){var aK=ax[aL+" "];return aK||(aK=new RegExp("(^|"+af+")"+aL+"("+af+"|$)"))&&ax(aL,function(aM){return aK.test(typeof aM.className==="string"&&aM.className||typeof aM.getAttribute!=="undefined"&&aM.getAttribute("class")||"")
})},ATTR:function(aK,aL,aM){return function(aO){var aN=aH.attr(aO,aK);if(aN==null){return aL==="!="
}if(!aL){return true}aN+="";return aL==="="?aN===aM:aL==="!="?aN!==aM:aL==="^="?aM&&aN.indexOf(aM)===0:aL==="*="?aM&&aN.indexOf(aM)>-1:aL==="$="?aM&&aN.slice(-aM.length)===aM:aL==="~="?(" "+aN.replace(aa," ")+" ").indexOf(aM)>-1:aL==="|="?aN===aM||aN.slice(0,aM.length+1)===aM+"-":false
}},CHILD:function(aM,aR,aK,aQ,aL){var aO=aM.slice(0,3)!=="nth",aN=aM.slice(-4)!=="last",aP=aR==="of-type";
return aQ===1&&aL===0?function(aS){return !!aS.parentNode}:function(aT,aV,a5){var a1,aX,a2,aS,a6,aW,aU=aO!==aN?"nextSibling":"previousSibling",a3=aT.parentNode,aY=aP&&aT.nodeName.toLowerCase(),aZ=!a5&&!aP,a4=false;
if(a3){if(aO){while(aU){aS=aT;while((aS=aS[aU])){if(aP?aS.nodeName.toLowerCase()===aY:aS.nodeType===1){return false
}}aW=aU=aM==="only"&&!aW&&"nextSibling"}return true}aW=[aN?a3.firstChild:a3.lastChild];
if(aN&&aZ){aS=a3;a2=aS[U]||(aS[U]={});aX=a2[aS.uniqueID]||(a2[aS.uniqueID]={});a1=aX[aM]||[];
a6=a1[0]===M&&a1[1];a4=a6&&a1[2];aS=a6&&a3.childNodes[a6];while((aS=++a6&&aS&&aS[aU]||(a4=a6=0)||aW.pop())){if(aS.nodeType===1&&++a4&&aS===aT){aX[aM]=[M,a6,a4];
break}}}else{if(aZ){aS=aT;a2=aS[U]||(aS[U]={});aX=a2[aS.uniqueID]||(a2[aS.uniqueID]={});
a1=aX[aM]||[];a6=a1[0]===M&&a1[1];a4=a6}if(a4===false){while((aS=++a6&&aS&&aS[aU]||(a4=a6=0)||aW.pop())){if((aP?aS.nodeName.toLowerCase()===aY:aS.nodeType===1)&&++a4){if(aZ){a2=aS[U]||(aS[U]={});
aX=a2[aS.uniqueID]||(a2[aS.uniqueID]={});aX[aM]=[M,a4]}if(aS===aT){break}}}}}a4-=aL;
return a4===aQ||(a4%aQ===0&&a4/aQ>=0)}}},PSEUDO:function(aK,aL){var aN,aM=ah.pseudos[aK]||ah.setFilters[aK.toLowerCase()]||aH.error("unsupported pseudo: "+aK);
if(aM[U]){return aM(aL)}if(aM.length>1){aN=[aK,aK,"",aL];return ah.setFilters.hasOwnProperty(aK.toLowerCase())?al(function(aQ,aO){var aR,aS=aM(aQ,aL),aP=aS.length;
while(aP--){aR=ar(aQ,aS[aP]);aQ[aR]=!(aO[aR]=aS[aP])}}):function(aO){return aM(aO,0,aN)
}}return aM}},pseudos:{not:al(function(aN){var aM=[],aL=[],aK=q(aN.replace(ad,"$1"));
return aK[U]?al(function(aT,aO,aQ,aS){var aP,aU=aK(aT,null,aS,[]),aR=aT.length;while(aR--){if((aP=aU[aR])){aT[aR]=!(aO[aR]=aP)
}}}):function(aO,aP,aQ){aM[0]=aO;aK(aM,null,aQ,aL);aM[0]=null;return !aL.pop()}}),has:al(function(aK){return function(aL){return aH(aK,aL).length>0
}}),contains:al(function(aK){aK=aK.replace(ac,g);return function(aL){return(aL.textContent||aL.innerText||D(aL)).indexOf(aK)>-1
}}),lang:al(function(aK){if(!s.test(aK||"")){aH.error("unsupported lang: "+aK)}aK=aK.replace(ac,g).toLowerCase();
return function(aL){var aM;do{if((aM=W?aL.lang:aL.getAttribute("xml:lang")||aL.getAttribute("lang"))){aM=aM.toLowerCase();
return aM===aK||aM.indexOf(aK+"-")===0}}while((aL=aL.parentNode)&&aL.nodeType===1);
return false}}),target:function(aL){var aK=Q.location&&Q.location.hash;return aK&&aK.slice(1)===aL.id
},root:function(aK){return aK===ag},focus:function(aK){return aK===aB.activeElement&&(!aB.hasFocus||aB.hasFocus())&&!!(aK.type||aK.href||~aK.tabIndex)
},enabled:av(false),disabled:av(true),checked:function(aL){var aK=aL.nodeName.toLowerCase();
return(aK==="input"&&!!aL.checked)||(aK==="option"&&!!aL.selected)},selected:function(aK){if(aK.parentNode){aK.parentNode.selectedIndex
}return aK.selected===true},empty:function(aK){for(aK=aK.firstChild;aK;aK=aK.nextSibling){if(aK.nodeType<6){return false
}}return true},parent:function(aK){return !ah.pseudos.empty(aK)},header:function(aK){return aj.test(aK.nodeName)
},input:function(aK){return at.test(aK.nodeName)},button:function(aK){var aL=aK.nodeName.toLowerCase();
return aL==="input"&&aK.type==="button"||aL==="button"},text:function(aK){var aL;
return aK.nodeName.toLowerCase()==="input"&&aK.type==="text"&&((aL=aK.getAttribute("type"))==null||aL.toLowerCase()==="text")
},first:X(function(){return[0]}),last:X(function(aL,aK){return[aK-1]}),eq:X(function(aM,aK,aL){return[aL<0?aL+aK:aL]
}),even:X(function(aM,aK){var aL=0;for(;aL<aK;aL+=2){aM.push(aL)}return aM}),odd:X(function(aM,aK){var aL=1;
for(;aL<aK;aL+=2){aM.push(aL)}return aM}),lt:X(function(aN,aK,aL){var aM=aL<0?aL+aK:aL;
for(;--aM>=0;){aN.push(aM)}return aN}),gt:X(function(aN,aK,aL){var aM=aL<0?aL+aK:aL;
for(;++aM<aK;){aN.push(aM)}return aN})}};ah.pseudos.nth=ah.pseudos.eq;for(aF in {radio:true,checkbox:true,file:true,password:true,image:true}){ah.pseudos[aF]=aG(aF)
}for(aF in {submit:true,reset:true}){ah.pseudos[aF]=au(aF)}function r(){}r.prototype=ah.filters=ah.pseudos;
ah.setFilters=new r();am=aH.tokenize=function(aP,aK){var aS,aO,aM,aL,aN,aR,aT,aQ=V[aP+" "];
if(aQ){return aK?0:aQ.slice(0)}aN=aP;aR=[];aT=ah.preFilter;while(aN){if(!aS||(aO=aJ.exec(aN))){if(aO){aN=aN.slice(aO[0].length)||aN
}aR.push((aM=[]))}aS=false;if((aO=aC.exec(aN))){aS=aO.shift();aM.push({value:aS,type:aO[0].replace(ad," ")});
aN=aN.slice(aS.length)}for(aL in ah.filter){if((aO=j[aL].exec(aN))&&(!aT[aL]||(aO=aT[aL](aO)))){aS=aO.shift();
aM.push({value:aS,type:aL,matches:aO});aN=aN.slice(aS.length)}}if(!aS){break}}return aK?aN.length:aN?aH.error(aP):V(aP,aR).slice(0)
};function an(aK){var aL=0,aM=aK.length,aN="";for(;aL<aM;aL++){aN+=aK[aL].value}return aN
}function ae(aP,aR,aQ){var aN=aR.dir,aK=aR.next,aL=aK||aN,aO=aQ&&aL==="parentNode",aM=h++;
return aR.first?function(aS,aT,aU){while((aS=aS[aN])){if(aS.nodeType===1||aO){return aP(aS,aT,aU)
}}return false}:function(aS,aU,aV){var aY,aX,aT,aW=[M,aM];if(aV){while((aS=aS[aN])){if(aS.nodeType===1||aO){if(aP(aS,aU,aV)){return true
}}}}else{while((aS=aS[aN])){if(aS.nodeType===1||aO){aT=aS[U]||(aS[U]={});aX=aT[aS.uniqueID]||(aT[aS.uniqueID]={});
if(aK&&aK===aS.nodeName.toLowerCase()){aS=aS[aN]||aS}else{if((aY=aX[aL])&&aY[0]===M&&aY[1]===aM){return(aW[2]=aY[2])
}else{aX[aL]=aW;if((aW[2]=aP(aS,aU,aV))){return true}}}}}}return false}}function J(aK){return aK.length>1?function(aO,aL,aN){var aM=aK.length;
while(aM--){if(!aK[aM](aO,aL,aN)){return false}}return true}:aK[0]}function aE(aM,aO,aK){var aL=0,aN=aO.length;
for(;aL<aN;aL++){aH(aM,aO[aL],aK)}return aK}function m(aT,aS,aR,aQ,aN){var aP,aK=[],aO=0,aM=aT.length,aL=aS!=null;
for(;aO<aM;aO++){if((aP=aT[aO])){if(!aR||aR(aP,aQ,aN)){aK.push(aP);if(aL){aS.push(aO)
}}}}return aK}function ao(aL,aM,aP,aK,aO,aN){if(aK&&!aK[U]){aK=ao(aK)}if(aO&&!aO[U]){aO=ao(aO,aN)
}return al(function(aQ,aT,aY,aR){var a2,aS,aW,aX=[],a3=[],aZ=aT.length,a1=aQ||aE(aM||"*",aY.nodeType?[aY]:aY,[]),aV=aL&&(aQ||!aM)?m(a1,aX,aL,aY,aR):a1,aU=aP?aO||(aQ?aL:aZ||aK)?[]:aT:aV;
if(aP){aP(aV,aU,aY,aR)}if(aK){a2=m(aU,a3);aK(a2,[],aY,aR);aS=a2.length;while(aS--){if((aW=a2[aS])){aU[a3[aS]]=!(aV[a3[aS]]=aW)
}}}if(aQ){if(aO||aL){if(aO){a2=[];aS=aU.length;while(aS--){if((aW=aU[aS])){a2.push((aV[aS]=aW))
}}aO(null,(aU=[]),a2,aR)}aS=aU.length;while(aS--){if((aW=aU[aS])&&(a2=aO?ar(aQ,aW):aX[aS])>-1){aQ[a2]=!(aT[a2]=aW)
}}}}else{aU=m(aU===aT?aU.splice(aZ,aU.length):aU);if(aO){aO(null,aT,aU,aR)}else{az.apply(aT,aU)
}}})}function T(aO){var aT,aQ,aS,aP=aO.length,aL=ah.relative[aO[0].type],aK=aL||ah.relative[" "],aR=aL?1:0,aN=ae(function(aV){return aV===aT
},aK,true),aM=ae(function(aV){return ar(aT,aV)>-1},aK,true),aU=[function(aY,aV,aW){var aX=(!aL&&(aW||aV!==H))||((aT=aV).nodeType?aN(aY,aV,aW):aM(aY,aV,aW));
aT=null;return aX}];for(;aR<aP;aR++){if((aQ=ah.relative[aO[aR].type])){aU=[ae(J(aU),aQ)]
}else{aQ=ah.filter[aO[aR].type].apply(null,aO[aR].matches);if(aQ[U]){aS=++aR;for(;
aS<aP;aS++){if(ah.relative[aO[aS].type]){break}}return ao(aR>1&&J(aU),aR>1&&an(aO.slice(0,aR-1).concat({value:aO[aR-2].type===" "?"*":""})).replace(ad,"$1"),aQ,aR<aS&&T(aO.slice(aR,aS)),aS<aP&&T((aO=aO.slice(aS))),aS<aP&&an(aO))
}aU.push(aQ)}}return J(aU)}function o(aK,aL){var aN=aL.length>0,aO=aK.length>0,aM=function(aR,aX,aS,aT,a5){var aW,aV,aQ,a3=0,aU="0",a1=aR&&[],a2=[],a4=H,aY=aR||aO&&ah.find.TAG("*",a5),aZ=(M+=a4==null?1:Math.random()||0.1),aP=aY.length;
if(a5){H=aX===aB||aX||a5}for(;aU!==aP&&(aW=aY[aU])!=null;aU++){if(aO&&aW){aV=0;if(!aX&&aW.ownerDocument!==aB){n(aW);
aS=!W}while((aQ=aK[aV++])){if(aQ(aW,aX||aB,aS)){aT.push(aW);break}}if(a5){M=aZ}}if(aN){if((aW=!aQ&&aW)){a3--
}if(aR){a1.push(aW)}}}a3+=aU;if(aN&&aU!==a3){aV=0;while((aQ=aL[aV++])){aQ(a1,a2,aX,aS)
}if(aR){if(a3>0){while(aU--){if(!(a1[aU]||a2[aU])){a2[aU]=R.call(aT)}}}a2=m(a2)}az.apply(aT,a2);
if(a5&&!aR&&a2.length>0&&(a3+aL.length)>1){aH.uniqueSort(aT)}}if(a5){M=aZ;H=a4}return a1
};return aN?al(aM):aM}q=aH.compile=function(aN,aL){var aK,aM=[],aO=[],aP=E[aN+" "];
if(!aP){if(!aL){aL=am(aN)}aK=aL.length;while(aK--){aP=T(aL[aK]);if(aP[U]){aM.push(aP)
}else{aO.push(aP)}}aP=E(aN,o(aO,aM));aP.selector=aN}return aP};O=aH.select=function(aS,aU,aR,aO){var aQ,aL,aT,aK,aN,aM=typeof aS==="function"&&aS,aP=!aO&&am((aS=aM.selector||aS));
aR=aR||[];if(aP.length===1){aL=aP[0]=aP[0].slice(0);if(aL.length>2&&(aT=aL[0]).type==="ID"&&aU.nodeType===9&&W&&ah.relative[aL[1].type]){aU=(ah.find.ID(aT.matches[0].replace(ac,g),aU)||[])[0];
if(!aU){return aR}else{if(aM){aU=aU.parentNode}}aS=aS.slice(aL.shift().value.length)
}aQ=j.needsContext.test(aS)?0:aL.length;while(aQ--){aT=aL[aQ];if(ah.relative[(aK=aT.type)]){break
}if((aN=ah.find[aK])){if((aO=aN(aT.matches[0].replace(ac,g),l.test(aL[0].type)&&t(aU.parentNode)||aU))){aL.splice(aQ,1);
aS=aO.length&&an(aL);if(!aS){az.apply(aR,aO);return aR}break}}}}(aM||q(aS,aP))(aO,aU,!W,aR,!aU||l.test(aS)&&t(aU.parentNode)||aU);
return aR};N.sortStable=U.split("").sort(G).join("")===U;N.detectDuplicates=!!p;n();
N.sortDetached=ap(function(aK){return aK.compareDocumentPosition(aB.createElement("fieldset"))&1
});if(!ap(function(aK){aK.innerHTML="<a href='#'></a>";return aK.firstChild.getAttribute("href")==="#"
})){K("type|href|height|width",function(aL,aM,aK){if(!aK){return aL.getAttribute(aM,aM.toLowerCase()==="type"?1:2)
}})}if(!N.attributes||!ap(function(aK){aK.innerHTML="<input/>";aK.firstChild.setAttribute("value","");
return aK.firstChild.getAttribute("value")===""})){K("value",function(aL,aM,aK){if(!aK&&aL.nodeName.toLowerCase()==="input"){return aL.defaultValue
}})}if(!ap(function(aK){return aK.getAttribute("disabled")==null})){K(ay,function(aM,aN,aK){var aL;
if(!aK){return aM[aN]===true?aN.toLowerCase():(aL=aM.getAttributeNode(aN))&&aL.specified?aL.value:null
}})}return aH})(cf);b0.find=c7;b0.expr=c7.selectors;b0.expr[":"]=b0.expr.pseudos;
b0.uniqueSort=b0.unique=c7.uniqueSort;b0.text=c7.getText;b0.isXMLDoc=c7.isXML;b0.contains=c7.contains;
b0.escapeSelector=c7.escape;var cO=function(h,j,g){var l=[],i=g!==undefined;while((h=h[j])&&h.nodeType!==9){if(h.nodeType===1){if(i&&b0(h).is(g)){break
}l.push(h)}}return l};var dI=function(g,h){var i=[];for(;g;g=g.nextSibling){if(g.nodeType===1&&g!==h){i.push(g)
}}return i};var dh=b0.expr.match.needsContext;function ch(g,h){return g.nodeName&&g.nodeName.toLowerCase()===h.toLowerCase()
}var bW=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i);var c9=/^.[^:#\[\.,]*$/;
function cE(g,i,h){if(b0.isFunction(i)){return b0.grep(g,function(j,l){return !!i.call(j,l,j)!==h
})}if(i.nodeType){return b0.grep(g,function(j){return(j===i)!==h})}if(typeof i!=="string"){return b0.grep(g,function(j){return(bC.call(i,j)>-1)!==h
})}if(c9.test(i)){return b0.filter(i,g,h)}i=b0.filter(i,g);return b0.grep(g,function(j){return(bC.call(i,j)>-1)!==h&&j.nodeType===1
})}b0.filter=function(g,j,h){var i=j[0];if(h){g=":not("+g+")"}if(j.length===1&&i.nodeType===1){return b0.find.matchesSelector(i,g)?[i]:[]
}return b0.find.matches(g,b0.grep(j,function(l){return l.nodeType===1}))};b0.fn.extend({find:function(j){var g,h,l=this.length,i=this;
if(typeof j!=="string"){return this.pushStack(b0(j).filter(function(){for(g=0;g<l;
g++){if(b0.contains(i[g],this)){return true}}}))}h=this.pushStack([]);for(g=0;g<l;
g++){b0.find(j,i[g],h)}return l>1?b0.uniqueSort(h):h},filter:function(g){return this.pushStack(cE(this,g||[],false))
},not:function(g){return this.pushStack(cE(this,g||[],true))},is:function(g){return !!cE(this,typeof g==="string"&&dh.test(g)?b0(g):g||[],false).length
}});var c2,du=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,dr=b0.fn.init=function(l,h,j){var i,g;
if(!l){return this}j=j||c2;if(typeof l==="string"){if(l[0]==="<"&&l[l.length-1]===">"&&l.length>=3){i=[null,l,null]
}else{i=du.exec(l)}if(i&&(i[1]||!h)){if(i[1]){h=h instanceof b0?h[0]:h;b0.merge(this,b0.parseHTML(i[1],h&&h.nodeType?h.ownerDocument||h:cZ,true));
if(bW.test(i[1])&&b0.isPlainObject(h)){for(i in h){if(b0.isFunction(this[i])){this[i](h[i])
}else{this.attr(i,h[i])}}}return this}else{g=cZ.getElementById(i[2]);if(g){this[0]=g;
this.length=1}return this}}else{if(!h||h.jquery){return(h||j).find(l)}else{return this.constructor(h).find(l)
}}}else{if(l.nodeType){this[0]=l;this.length=1;return this}else{if(b0.isFunction(l)){return j.ready!==undefined?j.ready(l):l(b0)
}}}return b0.makeArray(l,this)};dr.prototype=b0.fn;c2=b0(cZ);var c1=/^(?:parents|prev(?:Until|All))/,cW={children:true,contents:true,next:true,prev:true};
b0.fn.extend({has:function(g){var h=b0(g,this),i=h.length;return this.filter(function(){var j=0;
for(;j<i;j++){if(b0.contains(this,h[j])){return true}}})},closest:function(h,i){var g,j=0,l=this.length,n=[],m=typeof h!=="string"&&b0(h);
if(!dh.test(h)){for(;j<l;j++){for(g=this[j];g&&g!==i;g=g.parentNode){if(g.nodeType<11&&(m?m.index(g)>-1:g.nodeType===1&&b0.find.matchesSelector(g,h))){n.push(g);
break}}}}return this.pushStack(n.length>1?b0.uniqueSort(n):n)},index:function(g){if(!g){return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1
}if(typeof g==="string"){return bC.call(b0(g),this[0])}return bC.call(this,g.jquery?g[0]:g)
},add:function(h,g){return this.pushStack(b0.uniqueSort(b0.merge(this.get(),b0(h,g))))
},addBack:function(g){return this.add(g==null?this.prevObject:this.prevObject.filter(g))
}});function dA(g,h){while((g=g[h])&&g.nodeType!==1){}return g}b0.each({parent:function(g){var h=g.parentNode;
return h&&h.nodeType!==11?h:null},parents:function(g){return cO(g,"parentNode")},parentsUntil:function(h,i,g){return cO(h,"parentNode",g)
},next:function(g){return dA(g,"nextSibling")},prev:function(g){return dA(g,"previousSibling")
},nextAll:function(g){return cO(g,"nextSibling")},prevAll:function(g){return cO(g,"previousSibling")
},nextUntil:function(h,i,g){return cO(h,"nextSibling",g)},prevUntil:function(h,i,g){return cO(h,"previousSibling",g)
},siblings:function(g){return dI((g.parentNode||{}).firstChild,g)},children:function(g){return dI(g.firstChild)
},contents:function(g){if(ch(g,"iframe")){return g.contentDocument}if(ch(g,"template")){g=g.content||g
}return b0.merge([],g.childNodes)}},function(h,g){b0.fn[h]=function(i,j){var l=b0.map(this,g,i);
if(h.slice(-5)!=="Until"){j=i}if(j&&typeof j==="string"){l=b0.filter(j,l)}if(this.length>1){if(!cW[h]){b0.uniqueSort(l)
}if(c1.test(h)){l.reverse()}}return this.pushStack(l)}});var dC=(/[^\x20\t\r\n\f]+/g);
function cR(g){var h={};b0.each(g.match(dC)||[],function(i,j){h[j]=true});return h
}b0.Callbacks=function(h){h=typeof h==="string"?cR(h):b0.extend({},h);var n,p,g,o,j=[],m=[],l=-1,q=function(){o=o||h.once;
g=n=true;for(;m.length;l=-1){p=m.shift();while(++l<j.length){if(j[l].apply(p[0],p[1])===false&&h.stopOnFalse){l=j.length;
p=false}}}if(!h.memory){p=false}n=false;if(o){if(p){j=[]}else{j=""}}},i={add:function(){if(j){if(p&&!n){l=j.length-1;
m.push(p)}(function r(s){b0.each(s,function(t,u){if(b0.isFunction(u)){if(!h.unique||!i.has(u)){j.push(u)
}}else{if(u&&u.length&&b0.type(u)!=="string"){r(u)}}})})(arguments);if(p&&!n){q()
}}return this},remove:function(){b0.each(arguments,function(r,t){var s;while((s=b0.inArray(t,j,s))>-1){j.splice(s,1);
if(s<=l){l--}}});return this},has:function(r){return r?b0.inArray(r,j)>-1:j.length>0
},empty:function(){if(j){j=[]}return this},disable:function(){o=m=[];j=p="";return this
},disabled:function(){return !j},lock:function(){o=m=[];if(!p&&!n){j=p=""}return this
},locked:function(){return !!o},fireWith:function(r,s){if(!o){s=s||[];s=[r,s.slice?s.slice():s];
m.push(s);if(!n){q()}}return this},fire:function(){i.fireWith(this,arguments);return this
},fired:function(){return !!g}};return i};function dy(g){return g}function cd(g){throw g
}function cI(h,i,j,l){var g;try{if(h&&b0.isFunction((g=h.promise))){g.call(h).done(i).fail(j)
}else{if(h&&b0.isFunction((g=h.then))){g.call(h,i,j)}else{i.apply(undefined,[h].slice(l))
}}}catch(h){j.apply(undefined,[h])}}b0.extend({Deferred:function(i){var j=[["notify","progress",b0.Callbacks("memory"),b0.Callbacks("memory"),2],["resolve","done",b0.Callbacks("once memory"),b0.Callbacks("once memory"),0,"resolved"],["reject","fail",b0.Callbacks("once memory"),b0.Callbacks("once memory"),1,"rejected"]],h="pending",g={state:function(){return h
},always:function(){l.done(arguments).fail(arguments);return this},"catch":function(m){return g.then(null,m)
},pipe:function(){var m=arguments;return b0.Deferred(function(n){b0.each(j,function(o,p){var q=b0.isFunction(m[p[4]])&&m[p[4]];
l[p[1]](function(){var r=q&&q.apply(this,arguments);if(r&&b0.isFunction(r.promise)){r.promise().progress(n.notify).done(n.resolve).fail(n.reject)
}else{n[p[0]+"With"](this,q?[r]:arguments)}})});m=null}).promise()},then:function(m,p,n){var q=0;
function o(r,u,s,t){return function(){var x=this,y=arguments,w=function(){var A,z;
if(r<q){return}A=s.apply(x,y);if(A===u.promise()){throw new TypeError("Thenable self-resolution")
}z=A&&(typeof A==="object"||typeof A==="function")&&A.then;if(b0.isFunction(z)){if(t){z.call(A,o(q,u,dy,t),o(q,u,cd,t))
}else{q++;z.call(A,o(q,u,dy,t),o(q,u,cd,t),o(q,u,dy,u.notifyWith))}}else{if(s!==dy){x=undefined;
y=[A]}(t||u.resolveWith)(x,y)}},v=t?w:function(){try{w()}catch(z){if(b0.Deferred.exceptionHook){b0.Deferred.exceptionHook(z,v.stackTrace)
}if(r+1>=q){if(s!==cd){x=undefined;y=[z]}u.rejectWith(x,y)}}};if(r){v()}else{if(b0.Deferred.getStackHook){v.stackTrace=b0.Deferred.getStackHook()
}cf.setTimeout(v)}}}return b0.Deferred(function(r){j[0][3].add(o(0,r,b0.isFunction(n)?n:dy,r.notifyWith));
j[1][3].add(o(0,r,b0.isFunction(m)?m:dy));j[2][3].add(o(0,r,b0.isFunction(p)?p:cd))
}).promise()},promise:function(m){return m!=null?b0.extend(m,g):g}},l={};b0.each(j,function(o,p){var m=p[2],n=p[5];
g[p[1]]=m.add;if(n){m.add(function(){h=n},j[3-o][2].disable,j[0][2].lock)}m.add(p[3].fire);
l[p[0]]=function(){l[p[0]+"With"](this===l?undefined:this,arguments);return this};
l[p[0]+"With"]=m.fireWith});g.promise(l);if(i){i.call(l,l)}return l},when:function(m){var i=arguments.length,l=i,j=Array(l),g=cD.call(arguments),h=b0.Deferred(),n=function(o){return function(p){j[o]=this;
g[o]=arguments.length>1?cD.call(arguments):p;if(!(--i)){h.resolveWith(j,g)}}};if(i<=1){cI(m,h.done(n(l)).resolve,h.reject,!i);
if(h.state()==="pending"||b0.isFunction(g[l]&&g[l].then)){return h.then()}}while(l--){cI(g[l],n(l),h.reject)
}return h.promise()}});var c6=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
b0.Deferred.exceptionHook=function(g,h){if(cf.console&&cf.console.warn&&g&&c6.test(g.name)){cf.console.warn("jQuery.Deferred exception: "+g.message,g.stack,h)
}};b0.readyException=function(g){cf.setTimeout(function(){throw g})};var cX=b0.Deferred();
b0.fn.ready=function(g){cX.then(g).catch(function(h){b0.readyException(h)});return this
};b0.extend({isReady:false,readyWait:1,ready:function(g){if(g===true?--b0.readyWait:b0.isReady){return
}b0.isReady=true;if(g!==true&&--b0.readyWait>0){return}cX.resolveWith(cZ,[b0])}});
b0.ready.then=cX.then;function b2(){cZ.removeEventListener("DOMContentLoaded",b2);
cf.removeEventListener("load",b2);b0.ready()}if(cZ.readyState==="complete"||(cZ.readyState!=="loading"&&!cZ.documentElement.doScroll)){cf.setTimeout(b0.ready)
}else{cZ.addEventListener("DOMContentLoaded",b2);cf.addEventListener("load",b2)}var dw=function(g,m,j,l,p,h,i){var q=0,o=g.length,n=j==null;
if(b0.type(j)==="object"){p=true;for(q in j){dw(g,m,q,j[q],true,h,i)}}else{if(l!==undefined){p=true;
if(!b0.isFunction(l)){i=true}if(n){if(i){m.call(g,l);m=null}else{n=m;m=function(s,t,r){return n.call(b0(s),r)
}}}if(m){for(;q<o;q++){m(g[q],j,i?l:l.call(g[q],q,m(g[q],j)))}}}}if(p){return g}if(n){return m.call(g)
}return o?m(g[0],j):h};var cj=function(g){return g.nodeType===1||g.nodeType===9||!(+g.nodeType)
};function cb(){this.expando=b0.expando+cb.uid++}cb.uid=1;cb.prototype={cache:function(h){var g=h[this.expando];
if(!g){g={};if(cj(h)){if(h.nodeType){h[this.expando]=g}else{Object.defineProperty(h,this.expando,{value:g,configurable:true})
}}}return g},set:function(l,h,i){var g,j=this.cache(l);if(typeof h==="string"){j[b0.camelCase(h)]=i
}else{for(g in h){j[b0.camelCase(g)]=h[g]}}return j},get:function(h,g){return g===undefined?this.cache(h):h[this.expando]&&h[this.expando][b0.camelCase(g)]
},access:function(i,h,g){if(h===undefined||((h&&typeof h==="string")&&g===undefined)){return this.get(i,h)
}this.set(i,h,g);return g!==undefined?g:h},remove:function(j,g){var h,i=j[this.expando];
if(i===undefined){return}if(g!==undefined){if(Array.isArray(g)){g=g.map(b0.camelCase)
}else{g=b0.camelCase(g);g=g in i?[g]:(g.match(dC)||[])}h=g.length;while(h--){delete i[g[h]]
}}if(g===undefined||b0.isEmptyObject(i)){if(j.nodeType){j[this.expando]=undefined
}else{delete j[this.expando]}}},hasData:function(h){var g=h[this.expando];return g!==undefined&&!b0.isEmptyObject(g)
}};var bP=new cb();var dD=new cb();var dq=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,cU=/[A-Z]/g;
function bS(g){if(g==="true"){return true}if(g==="false"){return false}if(g==="null"){return null
}if(g===+g+""){return +g}if(dq.test(g)){return JSON.parse(g)}return g}function cv(i,j,h){var l;
if(h===undefined&&i.nodeType===1){l="data-"+j.replace(cU,"-$&").toLowerCase();h=i.getAttribute(l);
if(typeof h==="string"){try{h=bS(h)}catch(g){}dD.set(i,j,h)}else{h=undefined}}return h
}b0.extend({hasData:function(g){return dD.hasData(g)||bP.hasData(g)},data:function(h,i,g){return dD.access(h,i,g)
},removeData:function(g,h){dD.remove(g,h)},_data:function(h,i,g){return bP.access(h,i,g)
},_removeData:function(g,h){bP.remove(g,h)}});b0.fn.extend({data:function(j,g){var l,m,h,i=this[0],n=i&&i.attributes;
if(j===undefined){if(this.length){h=dD.get(i);if(i.nodeType===1&&!bP.get(i,"hasDataAttrs")){l=n.length;
while(l--){if(n[l]){m=n[l].name;if(m.indexOf("data-")===0){m=b0.camelCase(m.slice(5));
cv(i,m,h[m])}}}bP.set(i,"hasDataAttrs",true)}}return h}if(typeof j==="object"){return this.each(function(){dD.set(this,j)
})}return dw(this,function(o){var p;if(i&&o===undefined){p=dD.get(i,j);if(p!==undefined){return p
}p=cv(i,j);if(p!==undefined){return p}return}this.each(function(){dD.set(this,j,o)
})},null,g,arguments.length>1,null,true)},removeData:function(g){return this.each(function(){dD.remove(this,g)
})}});b0.extend({queue:function(h,i,g){var j;if(h){i=(i||"fx")+"queue";j=bP.get(h,i);
if(g){if(!j||Array.isArray(g)){j=bP.access(h,i,b0.makeArray(g))}else{j.push(g)}}return j||[]
}},dequeue:function(h,i){i=i||"fx";var m=b0.queue(h,i),g=m.length,j=m.shift(),n=b0._queueHooks(h,i),l=function(){b0.dequeue(h,i)
};if(j==="inprogress"){j=m.shift();g--}if(j){if(i==="fx"){m.unshift("inprogress")
}delete n.stop;j.call(h,l,n)}if(!g&&n){n.empty.fire()}},_queueHooks:function(g,h){var i=h+"queueHooks";
return bP.get(g,i)||bP.access(g,i,{empty:b0.Callbacks("once memory").add(function(){bP.remove(g,[h+"queue",i])
})})}});b0.fn.extend({queue:function(i,h){var g=2;if(typeof i!=="string"){h=i;i="fx";
g--}if(arguments.length<g){return b0.queue(this[0],i)}return h===undefined?this:this.each(function(){var j=b0.queue(this,i,h);
b0._queueHooks(this,i);if(i==="fx"&&j[0]!=="inprogress"){b0.dequeue(this,i)}})},dequeue:function(g){return this.each(function(){b0.dequeue(this,g)
})},clearQueue:function(g){return this.queue(g||"fx",[])},promise:function(m,h){var n,l=1,g=b0.Deferred(),i=this,o=this.length,j=function(){if(!(--l)){g.resolveWith(i,[i])
}};if(typeof m!=="string"){h=m;m=undefined}m=m||"fx";while(o--){n=bP.get(i[o],m+"queueHooks");
if(n&&n.empty){l++;n.empty.add(j)}}j();return g.promise(h)}});var b8=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
var c8=new RegExp("^(?:([+-])=|)("+b8+")([a-z%]*)$","i");var cL=["Top","Right","Bottom","Left"];
var bI=function(g,h){g=h||g;return g.style.display==="none"||g.style.display===""&&b0.contains(g.ownerDocument,g)&&b0.css(g,"display")==="none"
};var b1=function(h,i,g,j){var l,m,n={};for(m in i){n[m]=h.style[m];h.style[m]=i[m]
}l=g.apply(h,j||[]);for(m in i){h.style[m]=n[m]}return l};function cm(r,g,o,i){var h,q=1,m=20,j=i?function(){return i.cur()
}:function(){return b0.css(r,g,"")},n=j(),l=o&&o[3]||(b0.cssNumber[g]?"":"px"),p=(b0.cssNumber[g]||l!=="px"&&+n)&&c8.exec(b0.css(r,g));
if(p&&p[3]!==l){l=l||p[3];o=o||[];p=+n||1;do{q=q||".5";p=p/q;b0.style(r,g,p+l)}while(q!==(q=j()/n)&&q!==1&&--m)
}if(o){p=+p||+n||0;h=o[1]?p+(o[1]+1)*o[2]:+o[2];if(i){i.unit=l;i.start=p;i.end=h}}return h
}var cl={};function a0(j){var l,h=j.ownerDocument,g=j.nodeName,i=cl[g];if(i){return i
}l=h.body.appendChild(h.createElement(g));i=b0.css(l,"display");l.parentNode.removeChild(l);
if(i==="none"){i="block"}cl[g]=i;return i}function co(h,n){var g,i,m=[],l=0,j=h.length;
for(;l<j;l++){i=h[l];if(!i.style){continue}g=i.style.display;if(n){if(g==="none"){m[l]=bP.get(i,"display")||null;
if(!m[l]){i.style.display=""}}if(i.style.display===""&&bI(i)){m[l]=a0(i)}}else{if(g!=="none"){m[l]="none";
bP.set(i,"display",g)}}}for(l=0;l<j;l++){if(m[l]!=null){h[l].style.display=m[l]}}return h
}b0.fn.extend({show:function(){return co(this,true)},hide:function(){return co(this)
},toggle:function(g){if(typeof g==="boolean"){return g?this.show():this.hide()}return this.each(function(){if(bI(this)){b0(this).show()
}else{b0(this).hide()}})}});var cn=(/^(?:checkbox|radio)$/i);var bY=(/<([a-z][^\/\0>\x20\t\r\n\f]+)/i);
var bU=(/^$|\/(?:java|ecma)script/i);var cY={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};
cY.optgroup=cY.option;cY.tbody=cY.tfoot=cY.colgroup=cY.caption=cY.thead;cY.th=cY.td;
function b5(g,i){var h;if(typeof g.getElementsByTagName!=="undefined"){h=g.getElementsByTagName(i||"*")
}else{if(typeof g.querySelectorAll!=="undefined"){h=g.querySelectorAll(i||"*")}else{h=[]
}}if(i===undefined||i&&ch(g,i)){return b0.merge([g],h)}return h}function dx(i,g){var h=0,j=i.length;
for(;h<j;h++){bP.set(i[h],"globalEval",!g||bP.get(g[h],"globalEval"))}}var ct=/<|&#?\w+;/;
function cz(v,t,o,i,r){var s,l,h,u,p,n,j=t.createDocumentFragment(),g=[],m=0,q=v.length;
for(;m<q;m++){s=v[m];if(s||s===0){if(b0.type(s)==="object"){b0.merge(g,s.nodeType?[s]:s)
}else{if(!ct.test(s)){g.push(t.createTextNode(s))}else{l=l||j.appendChild(t.createElement("div"));
h=(bY.exec(s)||["",""])[1].toLowerCase();u=cY[h]||cY._default;l.innerHTML=u[1]+b0.htmlPrefilter(s)+u[2];
n=u[0];while(n--){l=l.lastChild}b0.merge(g,l.childNodes);l=j.firstChild;l.textContent=""
}}}}j.textContent="";m=0;while((s=g[m++])){if(i&&b0.inArray(s,i)>-1){if(r){r.push(s)
}continue}p=b0.contains(s.ownerDocument,s);l=b5(j.appendChild(s),"script");if(p){dx(l)
}if(o){n=0;while((s=l[n++])){if(bU.test(s.type||"")){o.push(s)}}}}return j}(function(){var h=cZ.createDocumentFragment(),g=h.appendChild(cZ.createElement("div")),i=cZ.createElement("input");
i.setAttribute("type","radio");i.setAttribute("checked","checked");i.setAttribute("name","t");
g.appendChild(i);b9.checkClone=g.cloneNode(true).cloneNode(true).lastChild.checked;
g.innerHTML="<textarea>x</textarea>";b9.noCloneChecked=!!g.cloneNode(true).lastChild.defaultValue
})();var cK=cZ.documentElement;var ds=/^key/,b7=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bN=/^([^.]*)(?:\.(.+)|)/;
function bT(){return true}function bX(){return false}function bF(){try{return cZ.activeElement
}catch(g){}}function da(i,m,o,h,j,n){var g,l;if(typeof m==="object"){if(typeof o!=="string"){h=h||o;
o=undefined}for(l in m){da(i,l,o,h,m[l],n)}return i}if(h==null&&j==null){j=o;h=o=undefined
}else{if(j==null){if(typeof o==="string"){j=h;h=undefined}else{j=h;h=o;o=undefined
}}}if(j===false){j=bX}else{if(!j){return i}}if(n===1){g=j;j=function(p){b0().off(p);
return g.apply(this,arguments)};j.guid=g.guid||(g.guid=b0.guid++)}return i.each(function(){b0.event.add(this,m,j,h,o)
})}b0.event={global:{},add:function(u,p,h,s,t){var w,q,r,i,j,l,n,v,m,g,x,o=bP.get(u);
if(!o){return}if(h.handler){w=h;h=w.handler;t=w.selector}if(t){b0.find.matchesSelector(cK,t)
}if(!h.guid){h.guid=b0.guid++}if(!(i=o.events)){i=o.events={}}if(!(q=o.handle)){q=o.handle=function(y){return typeof b0!=="undefined"&&b0.event.triggered!==y.type?b0.event.dispatch.apply(u,arguments):undefined
}}p=(p||"").match(dC)||[""];j=p.length;while(j--){r=bN.exec(p[j])||[];m=x=r[1];g=(r[2]||"").split(".").sort();
if(!m){continue}n=b0.event.special[m]||{};m=(t?n.delegateType:n.bindType)||m;n=b0.event.special[m]||{};
l=b0.extend({type:m,origType:x,data:s,handler:h,guid:h.guid,selector:t,needsContext:t&&b0.expr.match.needsContext.test(t),namespace:g.join(".")},w);
if(!(v=i[m])){v=i[m]=[];v.delegateCount=0;if(!n.setup||n.setup.call(u,s,g,q)===false){if(u.addEventListener){u.addEventListener(m,q)
}}}if(n.add){n.add.call(u,l);if(!l.handler.guid){l.handler.guid=h.guid}}if(t){v.splice(v.delegateCount++,0,l)
}else{v.push(l)}b0.event.global[m]=true}},remove:function(v,p,h,u,q){var s,t,r,i,j,l,n,w,m,g,x,o=bP.hasData(v)&&bP.get(v);
if(!o||!(i=o.events)){return}p=(p||"").match(dC)||[""];j=p.length;while(j--){r=bN.exec(p[j])||[];
m=x=r[1];g=(r[2]||"").split(".").sort();if(!m){for(m in i){b0.event.remove(v,m+p[j],h,u,true)
}continue}n=b0.event.special[m]||{};m=(u?n.delegateType:n.bindType)||m;w=i[m]||[];
r=r[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)");t=s=w.length;while(s--){l=w[s];
if((q||x===l.origType)&&(!h||h.guid===l.guid)&&(!r||r.test(l.namespace))&&(!u||u===l.selector||u==="**"&&l.selector)){w.splice(s,1);
if(l.selector){w.delegateCount--}if(n.remove){n.remove.call(v,l)}}}if(t&&!w.length){if(!n.teardown||n.teardown.call(v,g,o.handle)===false){b0.removeEvent(v,m,o.handle)
}delete i[m]}}if(b0.isEmptyObject(i)){bP.remove(v,"handle events")}},dispatch:function(q){var g=b0.event.fix(q);
var n,o,m,r,h,i,j=new Array(arguments.length),p=(bP.get(this,"events")||{})[g.type]||[],l=b0.event.special[g.type]||{};
j[0]=g;for(n=1;n<arguments.length;n++){j[n]=arguments[n]}g.delegateTarget=this;if(l.preDispatch&&l.preDispatch.call(this,g)===false){return
}i=b0.event.handlers.call(this,g,p);n=0;while((r=i[n++])&&!g.isPropagationStopped()){g.currentTarget=r.elem;
o=0;while((h=r.handlers[o++])&&!g.isImmediatePropagationStopped()){if(!g.rnamespace||g.rnamespace.test(h.namespace)){g.handleObj=h;
g.data=h.data;m=((b0.event.special[h.origType]||{}).handle||h.handler).apply(r.elem,j);
if(m!==undefined){if((g.result=m)===false){g.preventDefault();g.stopPropagation()
}}}}}if(l.postDispatch){l.postDispatch.call(this,g)}return g.result},handlers:function(g,p){var l,i,q,o,n,j=[],m=p.delegateCount,h=g.target;
if(m&&h.nodeType&&!(g.type==="click"&&g.button>=1)){for(;h!==this;h=h.parentNode||this){if(h.nodeType===1&&!(g.type==="click"&&h.disabled===true)){o=[];
n={};for(l=0;l<m;l++){i=p[l];q=i.selector+" ";if(n[q]===undefined){n[q]=i.needsContext?b0(q,this).index(h)>-1:b0.find(q,this,null,[h]).length
}if(n[q]){o.push(i)}}if(o.length){j.push({elem:h,handlers:o})}}}}h=this;if(m<p.length){j.push({elem:h,handlers:p.slice(m)})
}return j},addProp:function(h,g){Object.defineProperty(b0.Event.prototype,h,{enumerable:true,configurable:true,get:b0.isFunction(g)?function(){if(this.originalEvent){return g(this.originalEvent)
}}:function(){if(this.originalEvent){return this.originalEvent[h]}},set:function(i){Object.defineProperty(this,h,{enumerable:true,configurable:true,writable:true,value:i})
}})},fix:function(g){return g[b0.expando]?g:new b0.Event(g)},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==bF()&&this.focus){this.focus();
return false}},delegateType:"focusin"},blur:{trigger:function(){if(this===bF()&&this.blur){this.blur();
return false}},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&ch(this,"input")){this.click();
return false}},_default:function(g){return ch(g.target,"a")}},beforeunload:{postDispatch:function(g){if(g.result!==undefined&&g.originalEvent){g.originalEvent.returnValue=g.result
}}}}};b0.removeEvent=function(h,i,g){if(h.removeEventListener){h.removeEventListener(i,g)
}};b0.Event=function(g,h){if(!(this instanceof b0.Event)){return new b0.Event(g,h)
}if(g&&g.type){this.originalEvent=g;this.type=g.type;this.isDefaultPrevented=g.defaultPrevented||g.defaultPrevented===undefined&&g.returnValue===false?bT:bX;
this.target=(g.target&&g.target.nodeType===3)?g.target.parentNode:g.target;this.currentTarget=g.currentTarget;
this.relatedTarget=g.relatedTarget}else{this.type=g}if(h){b0.extend(this,h)}this.timeStamp=g&&g.timeStamp||b0.now();
this[b0.expando]=true};b0.Event.prototype={constructor:b0.Event,isDefaultPrevented:bX,isPropagationStopped:bX,isImmediatePropagationStopped:bX,isSimulated:false,preventDefault:function(){var g=this.originalEvent;
this.isDefaultPrevented=bT;if(g&&!this.isSimulated){g.preventDefault()}},stopPropagation:function(){var g=this.originalEvent;
this.isPropagationStopped=bT;if(g&&!this.isSimulated){g.stopPropagation()}},stopImmediatePropagation:function(){var g=this.originalEvent;
this.isImmediatePropagationStopped=bT;if(g&&!this.isSimulated){g.stopImmediatePropagation()
}this.stopPropagation()}};b0.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,"char":true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:function(g){var h=g.button;
if(g.which==null&&ds.test(g.type)){return g.charCode!=null?g.charCode:g.keyCode}if(!g.which&&h!==undefined&&b7.test(g.type)){if(h&1){return 1
}if(h&2){return 3}if(h&4){return 2}return 0}return g.which}},b0.event.addProp);b0.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(g,h){b0.event.special[g]={delegateType:h,bindType:h,handle:function(l){var n,i=this,j=l.relatedTarget,m=l.handleObj;
if(!j||(j!==i&&!b0.contains(i,j))){l.type=m.origType;n=m.handler.apply(this,arguments);
l.type=h}return n}}});b0.fn.extend({on:function(i,j,g,h){return da(this,i,j,g,h)},one:function(i,j,g,h){return da(this,i,j,g,h,1)
},off:function(i,l,g){var j,h;if(i&&i.preventDefault&&i.handleObj){j=i.handleObj;
b0(i.delegateTarget).off(j.namespace?j.origType+"."+j.namespace:j.origType,j.selector,j.handler);
return this}if(typeof i==="object"){for(h in i){this.off(h,l,i[h])}return this}if(l===false||typeof l==="function"){g=l;
l=undefined}if(g===false){g=bX}return this.each(function(){b0.event.remove(this,i,g,l)
})}});var cC=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ce=/<script|<style|<link/i,bL=/checked\s*(?:[^=]|=\s*.checked.)/i,cu=/^true\/(.*)/,dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
function ck(g,h){if(ch(g,"table")&&ch(h.nodeType!==11?h:h.firstChild,"tr")){return b0(">tbody",g)[0]||g
}return g}function di(g){g.type=(g.getAttribute("type")!==null)+"/"+g.type;return g
}function cS(g){var h=cu.exec(g.type);if(h){g.type=h[1]}else{g.removeAttribute("type")
}return g}function bG(g,i){var o,q,m,l,p,j,n,h;if(i.nodeType!==1){return}if(bP.hasData(g)){l=bP.access(g);
p=bP.set(i,l);h=l.events;if(h){delete p.handle;p.events={};for(m in h){for(o=0,q=h[m].length;
o<q;o++){b0.event.add(i,m,h[m][o])}}}}if(dD.hasData(g)){j=dD.access(g);n=b0.extend({},j);
dD.set(i,n)}}function dv(h,i){var g=i.nodeName.toLowerCase();if(g==="input"&&cn.test(h.type)){i.checked=h.checked
}else{if(g==="input"||g==="textarea"){i.defaultValue=h.defaultValue}}}function dF(o,m,h,t){m=b3.apply([],m);
var n,p,r,g,u,j,q=0,s=o.length,i=s-1,l=m[0],v=b0.isFunction(l);if(v||(s>1&&typeof l==="string"&&!b9.checkClone&&bL.test(l))){return o.each(function(w){var x=o.eq(w);
if(v){m[0]=l.call(this,w,x.html())}dF(x,m,h,t)})}if(s){n=cz(m,o[0].ownerDocument,false,o,t);
p=n.firstChild;if(n.childNodes.length===1){n=p}if(p||t){r=b0.map(b5(n,"script"),di);
g=r.length;for(;q<s;q++){u=n;if(q!==i){u=b0.clone(u,true,true);if(g){b0.merge(r,b5(u,"script"))
}}h.call(o[q],u,q)}if(g){j=r[r.length-1].ownerDocument;b0.map(r,cS);for(q=0;q<g;q++){u=r[q];
if(bU.test(u.type||"")&&!bP.access(u,"globalEval")&&b0.contains(j,u)){if(u.src){if(b0._evalUrl){b0._evalUrl(u.src)
}}else{c4(u.textContent.replace(dt,""),j)}}}}}}return o}function c5(h,m,g){var i,l=m?b0.filter(m,h):h,j=0;
for(;(i=l[j])!=null;j++){if(!g&&i.nodeType===1){b0.cleanData(b5(i))}if(i.parentNode){if(g&&b0.contains(i.ownerDocument,i)){dx(b5(i,"script"))
}i.parentNode.removeChild(i)}}return h}b0.extend({htmlPrefilter:function(g){return g.replace(cC,"<$1></$2>")
},clone:function(p,n,g){var m,o,j,l,h=p.cloneNode(true),i=b0.contains(p.ownerDocument,p);
if(!b9.noCloneChecked&&(p.nodeType===1||p.nodeType===11)&&!b0.isXMLDoc(p)){l=b5(h);
j=b5(p);for(m=0,o=j.length;m<o;m++){dv(j[m],l[m])}}if(n){if(g){j=j||b5(p);l=l||b5(h);
for(m=0,o=j.length;m<o;m++){bG(j[m],l[m])}}else{bG(p,h)}}l=b5(h,"script");if(l.length>0){dx(l,!i&&b5(p,"script"))
}return h},cleanData:function(m){var g,h,i,l=b0.event.special,j=0;for(;(h=m[j])!==undefined;
j++){if(cj(h)){if((g=h[bP.expando])){if(g.events){for(i in g.events){if(l[i]){b0.event.remove(h,i)
}else{b0.removeEvent(h,i,g.handle)}}}h[bP.expando]=undefined}if(h[dD.expando]){h[dD.expando]=undefined
}}}}});b0.fn.extend({detach:function(g){return c5(this,g,true)},remove:function(g){return c5(this,g)
},text:function(g){return dw(this,function(h){return h===undefined?b0.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=h
}})},null,g,arguments.length)},append:function(){return dF(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var g=ck(this,h);
g.appendChild(h)}})},prepend:function(){return dF(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var g=ck(this,h);
g.insertBefore(h,g.firstChild)}})},before:function(){return dF(this,arguments,function(g){if(this.parentNode){this.parentNode.insertBefore(g,this)
}})},after:function(){return dF(this,arguments,function(g){if(this.parentNode){this.parentNode.insertBefore(g,this.nextSibling)
}})},empty:function(){var g,h=0;for(;(g=this[h])!=null;h++){if(g.nodeType===1){b0.cleanData(b5(g,false));
g.textContent=""}}return this},clone:function(g,h){g=g==null?false:g;h=h==null?g:h;
return this.map(function(){return b0.clone(this,g,h)})},html:function(g){return dw(this,function(i){var j=this[0]||{},l=0,m=this.length;
if(i===undefined&&j.nodeType===1){return j.innerHTML}if(typeof i==="string"&&!ce.test(i)&&!cY[(bY.exec(i)||["",""])[1].toLowerCase()]){i=b0.htmlPrefilter(i);
try{for(;l<m;l++){j=this[l]||{};if(j.nodeType===1){b0.cleanData(b5(j,false));j.innerHTML=i
}}j=0}catch(h){}}if(j){this.empty().append(i)}},null,g,arguments.length)},replaceWith:function(){var g=[];
return dF(this,arguments,function(h){var i=this.parentNode;if(b0.inArray(this,g)<0){b0.cleanData(b5(this));
if(i){i.replaceChild(h,this)}}},g)}});b0.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,g){b0.fn[h]=function(o){var n,m=[],i=b0(o),j=i.length-1,l=0;
for(;l<=j;l++){n=l===j?this:this.clone(true);b0(i[l])[g](n);bR.apply(m,n.get())}return this.pushStack(m)
}});var cJ=(/^margin/);var dc=new RegExp("^("+b8+")(?!px)[a-z%]+$","i");var cF=function(g){var h=g.ownerDocument.defaultView;
if(!h||!h.opener){h=cf}return h.getComputedStyle(g)};(function(){function j(){if(!h){return
}h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";
h.innerHTML="";cK.appendChild(m);var o=cf.getComputedStyle(h);g=o.top!=="1%";i=o.marginLeft==="2px";
l=o.width==="4px";h.style.marginRight="50%";n=o.marginRight==="4px";cK.removeChild(m);
h=null}var g,l,n,i,m=cZ.createElement("div"),h=cZ.createElement("div");if(!h.style){return
}h.style.backgroundClip="content-box";h.cloneNode(true).style.backgroundClip="";b9.clearCloneStyle=h.style.backgroundClip==="content-box";
m.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute";
m.appendChild(h);b0.extend(b9,{pixelPosition:function(){j();return g},boxSizingReliable:function(){j();
return l},pixelMarginRight:function(){j();return n},reliableMarginLeft:function(){j();
return i}})})();function cr(g,n,h){var j,l,i,o,m=g.style;h=h||cF(g);if(h){o=h.getPropertyValue(n)||h[n];
if(o===""&&!b0.contains(g.ownerDocument,g)){o=b0.style(g,n)}if(!b9.pixelMarginRight()&&dc.test(o)&&cJ.test(n)){j=m.width;
l=m.minWidth;i=m.maxWidth;m.minWidth=m.maxWidth=m.width=o;o=h.width;m.width=j;m.minWidth=l;
m.maxWidth=i}}return o!==undefined?o+"":o}function dg(h,g){return{get:function(){if(h()){delete this.get;
return}return(this.get=g).apply(this,arguments)}}}var c0=/^(none|table(?!-c[ea]).+)/,ca=/^--/,cq={position:"absolute",visibility:"hidden",display:"block"},dn={letterSpacing:"0",fontWeight:"400"},cy=["Webkit","Moz","ms"],cV=cZ.createElement("div").style;
function dG(i){if(i in cV){return i}var g=i[0].toUpperCase()+i.slice(1),h=cy.length;
while(h--){i=cy[h]+g;if(i in cV){return i}}}function dB(g){var h=b0.cssProps[g];if(!h){h=b0.cssProps[g]=dG(g)||g
}return h}function dj(j,h,g){var i=c8.exec(h);return i?Math.max(0,i[2]-(g||0))+(i[3]||"px"):h
}function dJ(i,m,n,g,j){var l,h=0;if(n===(g?"border":"content")){l=4}else{l=m==="width"?1:0
}for(;l<4;l+=2){if(n==="margin"){h+=b0.css(i,n+cL[l],true,j)}if(g){if(n==="content"){h-=b0.css(i,"padding"+cL[l],true,j)
}if(n!=="margin"){h-=b0.css(i,"border"+cL[l]+"Width",true,j)}}else{h+=b0.css(i,"padding"+cL[l],true,j);
if(n!=="padding"){h+=b0.css(i,"border"+cL[l]+"Width",true,j)}}}return h}function cc(i,m,n){var j,l=cF(i),h=cr(i,m,l),g=b0.css(i,"boxSizing",false,l)==="border-box";
if(dc.test(h)){return h}j=g&&(b9.boxSizingReliable()||h===i.style[m]);if(h==="auto"){h=i["offset"+m[0].toUpperCase()+m.slice(1)]
}h=parseFloat(h)||0;return(h+dJ(i,m,n||(g?"border":"content"),j,l))+"px"}b0.extend({cssHooks:{opacity:{get:function(g,h){if(h){var i=cr(g,"opacity");
return i===""?"1":i}}}},cssNumber:{animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":"cssFloat"},style:function(p,q,i,o){if(!p||p.nodeType===3||p.nodeType===8||!p.style){return
}var l,j,h,m=b0.camelCase(q),n=ca.test(q),g=p.style;if(!n){q=dB(m)}h=b0.cssHooks[q]||b0.cssHooks[m];
if(i!==undefined){j=typeof i;if(j==="string"&&(l=c8.exec(i))&&l[1]){i=cm(p,q,l);j="number"
}if(i==null||i!==i){return}if(j==="number"){i+=l&&l[3]||(b0.cssNumber[m]?"":"px")
}if(!b9.clearCloneStyle&&i===""&&q.indexOf("background")===0){g[q]="inherit"}if(!h||!("set" in h)||(i=h.set(p,i,o))!==undefined){if(n){g.setProperty(q,i)
}else{g[q]=i}}}else{if(h&&"get" in h&&(l=h.get(p,false,o))!==undefined){return l}return g[q]
}},css:function(o,g,n,h){var p,l,i,j=b0.camelCase(g),m=ca.test(g);if(!m){g=dB(j)}i=b0.cssHooks[g]||b0.cssHooks[j];
if(i&&"get" in i){p=i.get(o,true,n)}if(p===undefined){p=cr(o,g,h)}if(p==="normal"&&g in dn){p=dn[g]
}if(n===""||n){l=parseFloat(p);return n===true||isFinite(l)?l||0:p}return p}});b0.each(["height","width"],function(g,h){b0.cssHooks[h]={get:function(i,j,l){if(j){return c0.test(b0.css(i,"display"))&&(!i.getClientRects().length||!i.getBoundingClientRect().width)?b1(i,cq,function(){return cc(i,h,l)
}):cc(i,h,l)}},set:function(m,j,o){var l,n=o&&cF(m),i=o&&dJ(m,h,o,b0.css(m,"boxSizing",false,n)==="border-box",n);
if(i&&(l=c8.exec(j))&&(l[3]||"px")!=="px"){m.style[h]=j;j=b0.css(m,h)}return dj(m,j,i)
}}});b0.cssHooks.marginLeft=dg(b9.reliableMarginLeft,function(g,h){if(h){return(parseFloat(cr(g,"marginLeft"))||g.getBoundingClientRect().left-b1(g,{marginLeft:0},function(){return g.getBoundingClientRect().left
}))+"px"}});b0.each({margin:"",padding:"",border:"Width"},function(h,g){b0.cssHooks[h+g]={expand:function(j){var l=0,m={},i=typeof j==="string"?j.split(" "):[j];
for(;l<4;l++){m[h+cL[l]+g]=i[l]||i[l-2]||i[0]}return m}};if(!cJ.test(h)){b0.cssHooks[h+g].set=dj
}});b0.fn.extend({css:function(h,g){return dw(this,function(l,o,j){var m,p,i={},n=0;
if(Array.isArray(o)){m=cF(l);p=o.length;for(;n<p;n++){i[o[n]]=b0.css(l,o[n],false,m)
}return i}return j!==undefined?b0.style(l,o,j):b0.css(l,o)},h,g,arguments.length>1)
}});function bB(i,j,g,l,h){return new bB.prototype.init(i,j,g,l,h)}b0.Tween=bB;bB.prototype={constructor:bB,init:function(i,l,g,m,h,j){this.elem=i;
this.prop=g;this.easing=h||b0.easing._default;this.options=l;this.start=this.now=this.cur();
this.end=m;this.unit=j||(b0.cssNumber[g]?"":"px")},cur:function(){var g=bB.propHooks[this.prop];
return g&&g.get?g.get(this):bB.propHooks._default.get(this)},run:function(g){var h,i=bB.propHooks[this.prop];
if(this.options.duration){this.pos=h=b0.easing[this.easing](g,this.options.duration*g,0,1,this.options.duration)
}else{this.pos=h=g}this.now=(this.end-this.start)*h+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)
}if(i&&i.set){i.set(this)}else{bB.propHooks._default.set(this)}return this}};bB.prototype.init.prototype=bB.prototype;
bB.propHooks={_default:{get:function(g){var h;if(g.elem.nodeType!==1||g.elem[g.prop]!=null&&g.elem.style[g.prop]==null){return g.elem[g.prop]
}h=b0.css(g.elem,g.prop,"");return !h||h==="auto"?0:h},set:function(g){if(b0.fx.step[g.prop]){b0.fx.step[g.prop](g)
}else{if(g.elem.nodeType===1&&(g.elem.style[b0.cssProps[g.prop]]!=null||b0.cssHooks[g.prop])){b0.style(g.elem,g.prop,g.now+g.unit)
}else{g.elem[g.prop]=g.now}}}}};bB.propHooks.scrollTop=bB.propHooks.scrollLeft={set:function(g){if(g.elem.nodeType&&g.elem.parentNode){g.elem[g.prop]=g.now
}}};b0.easing={linear:function(g){return g},swing:function(g){return 0.5-Math.cos(g*Math.PI)/2
},_default:"swing"};b0.fx=bB.prototype.init;b0.fx.step={};var dE,cN,cQ=/^(?:toggle|show|hide)$/,cw=/queueHooks$/;
function bJ(){if(cN){if(cZ.hidden===false&&cf.requestAnimationFrame){cf.requestAnimationFrame(bJ)
}else{cf.setTimeout(bJ,b0.fx.interval)}b0.fx.tick()}}function b4(){cf.setTimeout(function(){dE=undefined
});return(dE=b0.now())}function dK(i,g){var h,j=0,l={height:i};g=g?1:0;for(;j<4;j+=2-g){h=cL[j];
l["margin"+h]=l["padding"+h]=i}if(g){l.opacity=l.width=i}return l}function cP(i,g,j){var m,h=(b6.tweeners[g]||[]).concat(b6.tweeners["*"]),n=0,l=h.length;
for(;n<l;n++){if((m=h[n].call(j,g,i))){return m}}}function bZ(u,n,g){var w,l,q,h,j,v,r,o,s="width" in n||"height" in n,t=this,m={},x=u.style,p=u.nodeType&&bI(u),i=bP.get(u,"fxshow");
if(!g.queue){h=b0._queueHooks(u,"fx");if(h.unqueued==null){h.unqueued=0;j=h.empty.fire;
h.empty.fire=function(){if(!h.unqueued){j()}}}h.unqueued++;t.always(function(){t.always(function(){h.unqueued--;
if(!b0.queue(u,"fx").length){h.empty.fire()}})})}for(w in n){l=n[w];if(cQ.test(l)){delete n[w];
q=q||l==="toggle";if(l===(p?"hide":"show")){if(l==="show"&&i&&i[w]!==undefined){p=true
}else{continue}}m[w]=i&&i[w]||b0.style(u,w)}}v=!b0.isEmptyObject(n);if(!v&&b0.isEmptyObject(m)){return
}if(s&&u.nodeType===1){g.overflow=[x.overflow,x.overflowX,x.overflowY];r=i&&i.display;
if(r==null){r=bP.get(u,"display")}o=b0.css(u,"display");if(o==="none"){if(r){o=r}else{co([u],true);
r=u.style.display||r;o=b0.css(u,"display");co([u])}}if(o==="inline"||o==="inline-block"&&r!=null){if(b0.css(u,"float")==="none"){if(!v){t.done(function(){x.display=r
});if(r==null){o=x.display;r=o==="none"?"":o}}x.display="inline-block"}}}if(g.overflow){x.overflow="hidden";
t.always(function(){x.overflow=g.overflow[0];x.overflowX=g.overflow[1];x.overflowY=g.overflow[2]
})}v=false;for(w in m){if(!v){if(i){if("hidden" in i){p=i.hidden}}else{i=bP.access(u,"fxshow",{display:r})
}if(q){i.hidden=!p}if(p){co([u],true)}t.done(function(){if(!p){co([u])}bP.remove(u,"fxshow");
for(w in m){b0.style(u,w,m[w])}})}v=cP(p?i[w]:0,w,t);if(!(w in i)){i[w]=v.start;if(p){v.end=v.start;
v.start=0}}}}function dL(j,h){var l,m,g,i,n;for(l in j){m=b0.camelCase(l);g=h[m];
i=j[l];if(Array.isArray(i)){g=i[1];i=j[l]=i[0]}if(l!==m){j[m]=i;delete j[l]}n=b0.cssHooks[m];
if(n&&"expand" in n){i=n.expand(i);delete j[m];for(l in i){if(!(l in j)){j[l]=i[l];
h[l]=g}}}else{h[m]=g}}}function b6(q,m,i){var h,g,n=0,r=b6.prefilters.length,j=b0.Deferred().always(function(){delete o.elem
}),o=function(){if(g){return false}var s=dE||b4(),v=Math.max(0,p.startTime+p.duration-s),x=v/p.duration||0,t=1-x,w=0,u=p.tweens.length;
for(;w<u;w++){p.tweens[w].run(t)}j.notifyWith(q,[p,t,v]);if(t<1&&u){return v}if(!u){j.notifyWith(q,[p,1,0])
}j.resolveWith(q,[p]);return false},p=j.promise({elem:q,props:b0.extend({},m),opts:b0.extend(true,{specialEasing:{},easing:b0.easing._default},i),originalProperties:m,originalOptions:i,startTime:dE||b4(),duration:i.duration,tweens:[],createTween:function(s,u){var t=b0.Tween(q,p.opts,s,u,p.opts.specialEasing[s]||p.opts.easing);
p.tweens.push(t);return t},stop:function(t){var u=0,s=t?p.tweens.length:0;if(g){return this
}g=true;for(;u<s;u++){p.tweens[u].run(1)}if(t){j.notifyWith(q,[p,1,0]);j.resolveWith(q,[p,t])
}else{j.rejectWith(q,[p,t])}return this}}),l=p.props;dL(l,p.opts.specialEasing);for(;
n<r;n++){h=b6.prefilters[n].call(p,q,l,p.opts);if(h){if(b0.isFunction(h.stop)){b0._queueHooks(p.elem,p.opts.queue).stop=b0.proxy(h.stop,h)
}return h}}b0.map(l,cP,p);if(b0.isFunction(p.opts.start)){p.opts.start.call(q,p)}p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always);
b0.fx.timer(b0.extend(o,{elem:q,anim:p,queue:p.opts.queue}));return p}b0.Animation=b0.extend(b6,{tweeners:{"*":[function(g,h){var i=this.createTween(g,h);
cm(i.elem,g,c8.exec(h),i);return i}]},tweener:function(j,g){if(b0.isFunction(j)){g=j;
j=["*"]}else{j=j.match(dC)}var h,l=0,i=j.length;for(;l<i;l++){h=j[l];b6.tweeners[h]=b6.tweeners[h]||[];
b6.tweeners[h].unshift(g)}},prefilters:[bZ],prefilter:function(g,h){if(h){b6.prefilters.unshift(g)
}else{b6.prefilters.push(g)}}});b0.speed=function(h,g,i){var j=h&&typeof h==="object"?b0.extend({},h):{complete:i||!i&&g||b0.isFunction(h)&&h,duration:h,easing:i&&g||g&&!b0.isFunction(g)&&g};
if(b0.fx.off){j.duration=0}else{if(typeof j.duration!=="number"){if(j.duration in b0.fx.speeds){j.duration=b0.fx.speeds[j.duration]
}else{j.duration=b0.fx.speeds._default}}}if(j.queue==null||j.queue===true){j.queue="fx"
}j.old=j.complete;j.complete=function(){if(b0.isFunction(j.old)){j.old.call(this)
}if(j.queue){b0.dequeue(this,j.queue)}};return j};b0.fn.extend({fadeTo:function(j,g,h,i){return this.filter(bI).css("opacity",0).show().end().animate({opacity:g},j,h,i)
},animate:function(g,j,h,i){var l=b0.isEmptyObject(g),n=b0.speed(j,h,i),m=function(){var o=b6(this,b0.extend({},g),n);
if(l||bP.get(this,"finish")){o.stop(true)}};m.finish=m;return l||n.queue===false?this.each(m):this.queue(n.queue,m)
},stop:function(h,i,j){var g=function(m){var l=m.stop;delete m.stop;l(j)};if(typeof h!=="string"){j=i;
i=h;h=undefined}if(i&&h!==false){this.queue(h||"fx",[])}return this.each(function(){var l=true,o=h!=null&&h+"queueHooks",m=b0.timers,n=bP.get(this);
if(o){if(n[o]&&n[o].stop){g(n[o])}}else{for(o in n){if(n[o]&&n[o].stop&&cw.test(o)){g(n[o])
}}}for(o=m.length;o--;){if(m[o].elem===this&&(h==null||m[o].queue===h)){m[o].anim.stop(j);
l=false;m.splice(o,1)}}if(l||!j){b0.dequeue(this,h)}})},finish:function(g){if(g!==false){g=g||"fx"
}return this.each(function(){var l,h=bP.get(this),m=h[g+"queue"],n=h[g+"queueHooks"],i=b0.timers,j=m?m.length:0;
h.finish=true;b0.queue(this,g,[]);if(n&&n.stop){n.stop.call(this,true)}for(l=i.length;
l--;){if(i[l].elem===this&&i[l].queue===g){i[l].anim.stop(true);i.splice(l,1)}}for(l=0;
l<j;l++){if(m[l]&&m[l].finish){m[l].finish.call(this)}}delete h.finish})}});b0.each(["toggle","show","hide"],function(h,i){var g=b0.fn[i];
b0.fn[i]=function(m,j,l){return m==null||typeof m==="boolean"?g.apply(this,arguments):this.animate(dK(i,true),m,j,l)
}});b0.each({slideDown:dK("show"),slideUp:dK("hide"),slideToggle:dK("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(h,g){b0.fn[h]=function(l,i,j){return this.animate(g,l,i,j)
}});b0.timers=[];b0.fx.tick=function(){var g,i=0,h=b0.timers;dE=b0.now();for(;i<h.length;
i++){g=h[i];if(!g()&&h[i]===g){h.splice(i--,1)}}if(!h.length){b0.fx.stop()}dE=undefined
};b0.fx.timer=function(g){b0.timers.push(g);b0.fx.start()};b0.fx.interval=13;b0.fx.start=function(){if(cN){return
}cN=true;bJ()};b0.fx.stop=function(){cN=null};b0.fx.speeds={slow:600,fast:200,_default:400};
b0.fn.delay=function(g,h){g=b0.fx?b0.fx.speeds[g]||g:g;h=h||"fx";return this.queue(h,function(j,l){var i=cf.setTimeout(j,g);
l.stop=function(){cf.clearTimeout(i)}})};(function(){var h=cZ.createElement("input"),i=cZ.createElement("select"),g=i.appendChild(cZ.createElement("option"));
h.type="checkbox";b9.checkOn=h.value!=="";b9.optSelected=g.selected;h=cZ.createElement("input");
h.value="t";h.type="radio";b9.radioValue=h.value==="t"})();var dd,bD=b0.expr.attrHandle;
b0.fn.extend({attr:function(h,g){return dw(this,b0.attr,h,g,arguments.length>1)},removeAttr:function(g){return this.each(function(){b0.removeAttr(this,g)
})}});b0.extend({attr:function(h,i,g){var j,m,l=h.nodeType;if(l===3||l===8||l===2){return
}if(typeof h.getAttribute==="undefined"){return b0.prop(h,i,g)}if(l!==1||!b0.isXMLDoc(h)){m=b0.attrHooks[i.toLowerCase()]||(b0.expr.match.bool.test(i)?dd:undefined)
}if(g!==undefined){if(g===null){b0.removeAttr(h,i);return}if(m&&"set" in m&&(j=m.set(h,g,i))!==undefined){return j
}h.setAttribute(i,g+"");return g}if(m&&"get" in m&&(j=m.get(h,i))!==null){return j
}j=b0.find.attr(h,i);return j==null?undefined:j},attrHooks:{type:{set:function(i,h){if(!b9.radioValue&&h==="radio"&&ch(i,"input")){var g=i.value;
i.setAttribute("type",h);if(g){i.value=g}return h}}}},removeAttr:function(i,h){var l,j=0,g=h&&h.match(dC);
if(g&&i.nodeType===1){while((l=g[j++])){i.removeAttribute(l)}}}});dd={set:function(h,g,i){if(g===false){b0.removeAttr(h,i)
}else{h.setAttribute(i,i)}return i}};b0.each(b0.expr.match.bool.source.match(/\w+/g),function(g,h){var i=bD[h]||b0.find.attr;
bD[h]=function(m,o,j){var p,l,n=o.toLowerCase();if(!j){l=bD[n];bD[n]=p;p=i(m,o,j)!=null?n:null;
bD[n]=l}return p}});var b=/^(?:input|select|textarea|button)$/i,bQ=/^(?:a|area)$/i;
b0.fn.extend({prop:function(h,g){return dw(this,b0.prop,h,g,arguments.length>1)},removeProp:function(g){return this.each(function(){delete this[b0.propFix[g]||g]
})}});b0.extend({prop:function(h,i,g){var j,m,l=h.nodeType;if(l===3||l===8||l===2){return
}if(l!==1||!b0.isXMLDoc(h)){i=b0.propFix[i]||i;m=b0.propHooks[i]}if(g!==undefined){if(m&&"set" in m&&(j=m.set(h,g,i))!==undefined){return j
}return(h[i]=g)}if(m&&"get" in m&&(j=m.get(h,i))!==null){return j}return h[i]},propHooks:{tabIndex:{get:function(g){var h=b0.find.attr(g,"tabindex");
if(h){return parseInt(h,10)}if(b.test(g.nodeName)||bQ.test(g.nodeName)&&g.href){return 0
}return -1}}},propFix:{"for":"htmlFor","class":"className"}});if(!b9.optSelected){b0.propHooks.selected={get:function(g){var h=g.parentNode;
if(h&&h.parentNode){h.parentNode.selectedIndex}return null},set:function(g){var h=g.parentNode;
if(h){h.selectedIndex;if(h.parentNode){h.parentNode.selectedIndex}}}}}b0.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b0.propFix[this.toLowerCase()]=this
});function dp(h){var g=h.match(dC)||[];return g.join(" ")}function bO(g){return g.getAttribute&&g.getAttribute("class")||""
}b0.fn.extend({addClass:function(i){var o,p,h,n,j,m,g,l=0;if(b0.isFunction(i)){return this.each(function(q){b0(this).addClass(i.call(this,q,bO(this)))
})}if(typeof i==="string"&&i){o=i.match(dC)||[];while((p=this[l++])){n=bO(p);h=p.nodeType===1&&(" "+dp(n)+" ");
if(h){m=0;while((j=o[m++])){if(h.indexOf(" "+j+" ")<0){h+=j+" "}}g=dp(h);if(n!==g){p.setAttribute("class",g)
}}}}return this},removeClass:function(i){var o,p,h,n,j,m,g,l=0;if(b0.isFunction(i)){return this.each(function(q){b0(this).removeClass(i.call(this,q,bO(this)))
})}if(!arguments.length){return this.attr("class","")}if(typeof i==="string"&&i){o=i.match(dC)||[];
while((p=this[l++])){n=bO(p);h=p.nodeType===1&&(" "+dp(n)+" ");if(h){m=0;while((j=o[m++])){while(h.indexOf(" "+j+" ")>-1){h=h.replace(" "+j+" "," ")
}}g=dp(h);if(n!==g){p.setAttribute("class",g)}}}}return this},toggleClass:function(g,i){var h=typeof g;
if(typeof i==="boolean"&&h==="string"){return i?this.addClass(g):this.removeClass(g)
}if(b0.isFunction(g)){return this.each(function(j){b0(this).toggleClass(g.call(this,j,bO(this),i),i)
})}return this.each(function(){var l,m,n,j;if(h==="string"){m=0;n=b0(this);j=g.match(dC)||[];
while((l=j[m++])){if(n.hasClass(l)){n.removeClass(l)}else{n.addClass(l)}}}else{if(g===undefined||h==="boolean"){l=bO(this);
if(l){bP.set(this,"__className__",l)}if(this.setAttribute){this.setAttribute("class",l||g===false?"":bP.get(this,"__className__")||"")
}}}})},hasClass:function(j){var h,g,i=0;h=" "+j+" ";while((g=this[i++])){if(g.nodeType===1&&(" "+dp(bO(g))+" ").indexOf(h)>-1){return true
}}return false}});var dk=/\r/g;b0.fn.extend({val:function(h){var l,j,g,i=this[0];
if(!arguments.length){if(i){l=b0.valHooks[i.type]||b0.valHooks[i.nodeName.toLowerCase()];
if(l&&"get" in l&&(j=l.get(i,"value"))!==undefined){return j}j=i.value;if(typeof j==="string"){return j.replace(dk,"")
}return j==null?"":j}return}g=b0.isFunction(h);return this.each(function(n){var m;
if(this.nodeType!==1){return}if(g){m=h.call(this,n,b0(this).val())}else{m=h}if(m==null){m=""
}else{if(typeof m==="number"){m+=""}else{if(Array.isArray(m)){m=b0.map(m,function(o){return o==null?"":o+""
})}}}l=b0.valHooks[this.type]||b0.valHooks[this.nodeName.toLowerCase()];if(!l||!("set" in l)||l.set(this,m,"value")===undefined){this.value=m
}})}});b0.extend({valHooks:{option:{get:function(h){var g=b0.find.attr(h,"value");
return g!=null?g:dp(b0.text(h))}},select:{get:function(g){var j,o,p,h=g.options,m=g.selectedIndex,n=g.type==="select-one",i=n?null:[],l=n?m+1:h.length;
if(m<0){p=l}else{p=n?m:0}for(;p<l;p++){o=h[p];if((o.selected||p===m)&&!o.disabled&&(!o.parentNode.disabled||!ch(o.parentNode,"optgroup"))){j=b0(o).val();
if(n){return j}i.push(j)}}return i},set:function(i,h){var g,j,m=i.options,n=b0.makeArray(h),l=m.length;
while(l--){j=m[l];if(j.selected=b0.inArray(b0.valHooks.option.get(j),n)>-1){g=true
}}if(!g){i.selectedIndex=-1}return n}}}});b0.each(["radio","checkbox"],function(){b0.valHooks[this]={set:function(h,g){if(Array.isArray(g)){return(h.checked=b0.inArray(b0(h).val(),g)>-1)
}}};if(!b9.checkOn){b0.valHooks[this].get=function(g){return g.getAttribute("value")===null?"on":g.value
}}});var cA=/^(?:focusinfocus|focusoutblur)$/;b0.extend(b0.event,{trigger:function(g,q,s,h){var p,j,o,i,t,n,m,r=[s||cZ],l=dz.call(g,"type")?g.type:g,u=dz.call(g,"namespace")?g.namespace.split("."):[];
j=o=s=s||cZ;if(s.nodeType===3||s.nodeType===8){return}if(cA.test(l+b0.event.triggered)){return
}if(l.indexOf(".")>-1){u=l.split(".");l=u.shift();u.sort()}t=l.indexOf(":")<0&&"on"+l;
g=g[b0.expando]?g:new b0.Event(l,typeof g==="object"&&g);g.isTrigger=h?2:3;g.namespace=u.join(".");
g.rnamespace=g.namespace?new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;
g.result=undefined;if(!g.target){g.target=s}q=q==null?[g]:b0.makeArray(q,[g]);m=b0.event.special[l]||{};
if(!h&&m.trigger&&m.trigger.apply(s,q)===false){return}if(!h&&!m.noBubble&&!b0.isWindow(s)){i=m.delegateType||l;
if(!cA.test(i+l)){j=j.parentNode}for(;j;j=j.parentNode){r.push(j);o=j}if(o===(s.ownerDocument||cZ)){r.push(o.defaultView||o.parentWindow||cf)
}}p=0;while((j=r[p++])&&!g.isPropagationStopped()){g.type=p>1?i:m.bindType||l;n=(bP.get(j,"events")||{})[g.type]&&bP.get(j,"handle");
if(n){n.apply(j,q)}n=t&&j[t];if(n&&n.apply&&cj(j)){g.result=n.apply(j,q);if(g.result===false){g.preventDefault()
}}}g.type=l;if(!h&&!g.isDefaultPrevented()){if((!m._default||m._default.apply(r.pop(),q)===false)&&cj(s)){if(t&&b0.isFunction(s[l])&&!b0.isWindow(s)){o=s[t];
if(o){s[t]=null}b0.event.triggered=l;s[l]();b0.event.triggered=undefined;if(o){s[t]=o
}}}}return g.result},simulate:function(j,h,i){var g=b0.extend(new b0.Event(),i,{type:j,isSimulated:true});
b0.event.trigger(g,null,h)}});b0.fn.extend({trigger:function(h,g){return this.each(function(){b0.event.trigger(h,g,this)
})},triggerHandler:function(i,g){var h=this[0];if(h){return b0.event.trigger(i,g,h,true)
}}});b0.each(("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu").split(" "),function(g,h){b0.fn[h]=function(i,j){return arguments.length>0?this.on(h,null,i,j):this.trigger(h)
}});b0.fn.extend({hover:function(h,g){return this.mouseenter(h).mouseleave(g||h)}});
b9.focusin="onfocusin" in cf;if(!b9.focusin){b0.each({focus:"focusin",blur:"focusout"},function(g,i){var h=function(j){b0.event.simulate(i,j.target,b0.event.fix(j))
};b0.event.special[i]={setup:function(){var j=this.ownerDocument||this,l=bP.access(j,i);
if(!l){j.addEventListener(g,h,true)}bP.access(j,i,(l||0)+1)},teardown:function(){var j=this.ownerDocument||this,l=bP.access(j,i)-1;
if(!l){j.removeEventListener(g,h,true);bP.remove(j,i)}else{bP.access(j,i,l)}}}})}var bV=cf.location;
var bH=b0.now();var cH=(/\?/);b0.parseXML=function(h){var i;if(!h||typeof h!=="string"){return null
}try{i=(new cf.DOMParser()).parseFromString(h,"text/xml")}catch(g){i=undefined}if(!i||i.getElementsByTagName("parsererror").length){b0.error("Invalid XML: "+h)
}return i};var c3=/\[\]$/,db=/\r?\n/g,ci=/^(?:submit|button|image|reset|file)$/i,cB=/^(?:input|select|textarea|keygen)/i;
function bE(i,g,j,h){var l;if(Array.isArray(g)){b0.each(g,function(m,n){if(j||c3.test(i)){h(i,n)
}else{bE(i+"["+(typeof n==="object"&&n!=null?m:"")+"]",n,j,h)}})}else{if(!j&&b0.type(g)==="object"){for(l in g){bE(i+"["+l+"]",g[l],j,h)
}}else{h(i,g)}}}b0.param=function(l,i){var h,j=[],g=function(o,m){var n=b0.isFunction(m)?m():m;
j[j.length]=encodeURIComponent(o)+"="+encodeURIComponent(n==null?"":n)};if(Array.isArray(l)||(l.jquery&&!b0.isPlainObject(l))){b0.each(l,function(){g(this.name,this.value)
})}else{for(h in l){bE(h,l[h],i,g)}}return j.join("&")};b0.fn.extend({serialize:function(){return b0.param(this.serializeArray())
},serializeArray:function(){return this.map(function(){var g=b0.prop(this,"elements");
return g?b0.makeArray(g):this}).filter(function(){var g=this.type;return this.name&&!b0(this).is(":disabled")&&cB.test(this.nodeName)&&!ci.test(g)&&(this.checked||!cn.test(g))
}).map(function(i,h){var g=b0(this).val();if(g==null){return null}if(Array.isArray(g)){return b0.map(g,function(j){return{name:h.name,value:j.replace(db,"\r\n")}
})}return{name:h.name,value:g.replace(db,"\r\n")}}).get()}});b0.fn.extend({wrapAll:function(h){var g;
if(this[0]){if(b0.isFunction(h)){h=h.call(this[0])}g=b0(h,this[0].ownerDocument).eq(0).clone(true);
if(this[0].parentNode){g.insertBefore(this[0])}g.map(function(){var i=this;while(i.firstElementChild){i=i.firstElementChild
}return i}).append(this)}return this},wrapInner:function(g){if(b0.isFunction(g)){return this.each(function(h){b0(this).wrapInner(g.call(this,h))
})}return this.each(function(){var i=b0(this),h=i.contents();if(h.length){h.wrapAll(g)
}else{i.append(g)}})},wrap:function(h){var g=b0.isFunction(h);return this.each(function(i){b0(this).wrapAll(g?h.call(this,i):h)
})},unwrap:function(g){this.parent(g).not("body").each(function(){b0(this).replaceWith(this.childNodes)
});return this}});b0.expr.pseudos.hidden=function(g){return !b0.expr.pseudos.visible(g)
};b0.expr.pseudos.visible=function(g){return !!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)
};b9.createHTMLDocument=(function(){var g=cZ.implementation.createHTMLDocument("").body;
g.innerHTML="<form></form><form></form>";return g.childNodes.length===2})();b0.parseHTML=function(g,j,i){if(typeof g!=="string"){return[]
}if(typeof j==="boolean"){i=j;j=false}var h,l,m;if(!j){if(b9.createHTMLDocument){j=cZ.implementation.createHTMLDocument("");
h=j.createElement("base");h.href=cZ.location.href;j.head.appendChild(h)}else{j=cZ
}}l=bW.exec(g);m=!i&&[];if(l){return[j.createElement(l[1])]}l=cz([g],j,m);if(m&&m.length){b0(m).remove()
}return b0.merge([],l.childNodes)};b0.offset={setOffset:function(s,h,o){var m,p,g,r,t,j,i,n=b0.css(s,"position"),q=b0(s),l={};
if(n==="static"){s.style.position="relative"}t=q.offset();g=b0.css(s,"top");j=b0.css(s,"left");
i=(n==="absolute"||n==="fixed")&&(g+j).indexOf("auto")>-1;if(i){m=q.position();r=m.top;
p=m.left}else{r=parseFloat(g)||0;p=parseFloat(j)||0}if(b0.isFunction(h)){h=h.call(s,o,b0.extend({},t))
}if(h.top!=null){l.top=(h.top-t.top)+r}if(h.left!=null){l.left=(h.left-t.left)+p}if("using" in h){h.using.call(s,l)
}else{q.css(l)}}};b0.fn.extend({offset:function(l){if(arguments.length){return l===undefined?this:this.each(function(n){b0.offset.setOffset(this,l,n)
})}var g,m,i,h,j=this[0];if(!j){return}if(!j.getClientRects().length){return{top:0,left:0}
}i=j.getBoundingClientRect();g=j.ownerDocument;m=g.documentElement;h=g.defaultView;
return{top:i.top+h.pageYOffset-m.clientTop,left:i.left+h.pageXOffset-m.clientLeft}
},position:function(){if(!this[0]){return}var h,g,i=this[0],j={top:0,left:0};if(b0.css(i,"position")==="fixed"){g=i.getBoundingClientRect()
}else{h=this.offsetParent();g=this.offset();if(!ch(h[0],"html")){j=h.offset()}j={top:j.top+b0.css(h[0],"borderTopWidth",true),left:j.left+b0.css(h[0],"borderLeftWidth",true)}
}return{top:g.top-j.top-b0.css(i,"marginTop",true),left:g.left-j.left-b0.css(i,"marginLeft",true)}
},offsetParent:function(){return this.map(function(){var g=this.offsetParent;while(g&&b0.css(g,"position")==="static"){g=g.offsetParent
}return g||cK})}});b0.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(g,h){var i="pageYOffset"===h;
b0.fn[g]=function(j){return dw(this,function(o,l,m){var n;if(b0.isWindow(o)){n=o}else{if(o.nodeType===9){n=o.defaultView
}}if(m===undefined){return n?n[h]:o[l]}if(n){n.scrollTo(!i?m:n.pageXOffset,i?m:n.pageYOffset)
}else{o[l]=m}},g,j,arguments.length)}});b0.each(["top","left"],function(h,g){b0.cssHooks[g]=dg(b9.pixelPosition,function(i,j){if(j){j=cr(i,g);
return dc.test(j)?b0(i).position()[g]+"px":j}})});b0.each({Height:"height",Width:"width"},function(h,g){b0.each({padding:"inner"+h,content:g,"":"outer"+h},function(j,i){b0.fn[i]=function(l,m){var n=arguments.length&&(j||typeof l!=="boolean"),o=j||(l===true||m===true?"margin":"border");
return dw(this,function(s,p,r){var q;if(b0.isWindow(s)){return i.indexOf("outer")===0?s["inner"+h]:s.document.documentElement["client"+h]
}if(s.nodeType===9){q=s.documentElement;return Math.max(s.body["scroll"+h],q["scroll"+h],s.body["offset"+h],q["offset"+h],q["client"+h])
}return r===undefined?b0.css(s,p,o):b0.style(s,p,r,o)},g,n?l:undefined,n)}})});b0.fn.extend({bind:function(i,g,h){return this.on(i,null,g,h)
},unbind:function(h,g){return this.off(h,null,g)},delegate:function(j,i,g,h){return this.on(i,j,g,h)
},undelegate:function(i,h,g){return arguments.length===1?this.off(i,"**"):this.off(h,i||"**",g)
}});b0.holdReady=function(g){if(g){b0.readyWait++}else{b0.ready(true)}};b0.isArray=Array.isArray;
b0.parseJSON=JSON.parse;b0.nodeName=ch;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return b0
})}var bK=cf.jQuery,cg=cf.$;b0.noConflict=function(g){if(cf.$===b0){cf.$=cg}if(g&&cf.jQuery===b0){cf.jQuery=bK
}return b0};if(!df){cf.jQuery=cf.$=b0}return b0});return e.exports});define("jquery.win",["globals","jquery","exports"],function(f,d,e){e=d(f.window);
return e});define("jquery.ready",["globals","jquery","exports"],function(f,d,e){e=d(f.window).ready;
return e});define("json.dom",[],function(p,i){var j=function(){};j.prototype={tag:null,attrs:{},childs:[],value:"",_symbols:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","\u00A0":"&nbsp;"},getInnerHTML:function(a){var b=[];
for(var d=0;d<this.childs.length;d++){b.push(this.childs[d].getContent(a))}return b.join("")
},xmlEscape:function(b){var a=b?b.toString():"";return a.escapeHTML()}};var o=function(a,d,b){this.tag=a;
if(d){this.attrs=d}if(b){this.childs=b}};o.prototype=new j();o.prototype.getContent=function(a){var b="<"+this.tag;
var e=this.getInnerHTML(a);this.isEmpty=e=="";for(var d in this.attrs){if(!this.attrs.hasOwnProperty(d)){continue
}var f=this.attrs[d];if(typeof f=="function"){f=f.call(this,a)}if(f){b+=" "+(d=="className"?"class":d)+'="'+this.xmlEscape(f)+'"'
}}b+=">"+e+"</"+this.tag+">";return b};var l=function(a){this.value=a};l.prototype.getContent=function(b){var a=this.value;
if(typeof a=="function"){a=a(b)}if(a&&a.getContent){a=a.getContent(b)}if(a){return a
}return""};var q=function(a){this.value=a};q.prototype=new j();q.prototype.getContent=function(b){var a=this.value;
if(typeof a=="function"){a=a(b)}if(a){return this.xmlEscape(a)}return""};var m=function(a){this.value=a
};m.prototype.getContent=function(a){return"<!--"+this.value+"-->"};var n=function(a){this.value=a
};n.prototype.getContent=function(a){return"<![CDATA["+this.value+"]]>"};i.JSNode=j;
i.E=o;i.ET=l;i.T=q;i.C=m;i.D=n});define("json.mini",[],function(require,exports){if(!String.prototype.parseJSON){String.prototype.parseJSON=function(hook){try{if(!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/("(\\.|[^"\\])*")|('(\\.|[^'\\])*')/g,""))){var j=eval("("+this+")");
if(typeof hook==="function"){function walk(v){if(v&&typeof v==="object"){for(var i in v){if(v.hasOwnProperty(i)){v[i]=walk(v[i])
}}}return hook(v)}return walk(j)}return j}}catch(e){}throw new SyntaxError("parseJSON")
}}var EventHandlersWalk=function(v){if(v&&typeof v=="object"){var names=new Array();
for(var i in v){if(v.hasOwnProperty(i)){if(i.length>2&&i.substring(0,2)=="on"){names.push(i)
}}}for(var i=0;i<names.length;i++){var name=names[i];var value=v[name];if(value&&typeof value!="function"){var f=eval("(["+v[name]+"])")[0];
if(typeof f=="function"){v[name]=f}}}}return v};exports.EventHandlersWalk=EventHandlersWalk
});define("richfacesjs.form",["prototypejs","richfacesjs"],function(p,m){var n=m.Richfaces,l=p.$,q=p.Object,i=p.Element,j=p.Class;
var o=n.jsFormSubmit=function(r,e,b,a){var d=document.getElementById(e);if(d){var f=d.target;
var g=new Array();if(a){for(var h in a){g.push(h)}}_JSFFormSubmit(r,e,b,a);_clearJSFFormParameters(e,f,g)
}};return{jsFormSubmit:o,Richfaces:n}});define("sarissa",function(w,v){var u=w("globals");
var q=u.g,p=u.doc(),e=u.navigator;var x=function(){};x.VERSION="0.9.9.7";x.PARSED_OK="Document contains no parsing errors";
x.PARSED_EMPTY="Document is empty";x.PARSED_UNKNOWN_ERROR="Not well-formed or other error";
x.IS_ENABLED_TRANSFORM_NODE=false;x.REMOTE_CALL_FLAG="gr.abiss.sarissa.REMOTE_CALL_FLAG";
x._lastUniqueSuffix=0;x._getUniqueSuffix=function(){return x._lastUniqueSuffix++};
x._SARISSA_IEPREFIX4XSLPARAM="";x._SARISSA_HAS_DOM_IMPLEMENTATION=p.implementation&&true;
x._SARISSA_HAS_DOM_CREATE_DOCUMENT=!!(x._SARISSA_HAS_DOM_IMPLEMENTATION&&p.implementation.createDocument);
x._SARISSA_HAS_DOM_FEATURE=!!(x._SARISSA_HAS_DOM_IMPLEMENTATION&&p.implementation.hasFeature);
x._SARISSA_IS_MOZ=!!(x._SARISSA_HAS_DOM_CREATE_DOCUMENT&&x._SARISSA_HAS_DOM_FEATURE);
x._SARISSA_IS_SAFARI=e.userAgent.toLowerCase().indexOf("safari")!=-1||e.userAgent.toLowerCase().indexOf("konqueror")!=-1;
x._SARISSA_IS_SAFARI_OLD=x._SARISSA_IS_SAFARI&&(parseInt((e.userAgent.match(/AppleWebKit\/(\d+)/)||{})[1],10)<420);
x._SARISSA_IS_IE=p.documentMode!=null;x._SARISSA_IS_IE7=x._SARISSA_IS_IE&&(e.appVersion.indexOf("MSIE 7.")!=-1);
x._SARISSA_IS_IE9=x._SARISSA_IS_IE&&p.documentMode>=9;x._SARISSA_IS_IE11=x._SARISSA_IS_IE&&e.userAgent.toLowerCase().indexOf("rv:11")>-1;
x._SARISSA_IS_EDGE=e.userAgent.toLowerCase().indexOf("edge")!=-1;x._SARISSA_IS_OPERA=e.userAgent.toLowerCase().indexOf("opera")!=-1;
if(!q.Node||!Node.ELEMENT_NODE){Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}
}if(x._SARISSA_IS_SAFARI_OLD){HTMLHtmlElement=p.createElement("html").constructor;
Node=HTMLElement={};HTMLElement.prototype=HTMLHtmlElement.__proto__.__proto__;HTMLDocument=Document=p.constructor;
var n=new DOMParser();XMLDocument=n.constructor;Element=n.parseFromString("<Single />","text/xml").documentElement.constructor;
n=null}if(typeof XMLDocument=="undefined"&&typeof Document!="undefined"){XMLDocument=Document
}if(x._SARISSA_IS_IE){x._SARISSA_IEPREFIX4XSLPARAM="xsl:";var o="";var s="";var t="";
x.pickRecentProgID=function(d){var f=false,a;var b;for(var h=0;h<d.length&&!f;h++){try{var i=new ActiveXObject(d[h]);
b=d[h];f=true}catch(g){a=g}}if(!f){throw"Could not retrieve a valid progID of Class: "+d[d.length-1]+". (original exception: "+a+")"
}d=null;return b};o=null;_SARISSA_THREADEDDOM_PROGID=null;_SARISSA_XSLTEMPLATE_PROGID=null;
s=null;if(!q.XMLHttpRequest||x._SARISSA_IS_IE9){XMLHttpRequest=function(){if(!s){s=x.pickRecentProgID(["Msxml2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"])
}return new ActiveXObject(s)}}x.getDomDocument=function(a,b){if(!o){try{o=x.pickRecentProgID(["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"])
}catch(d){o="noActiveX"}}var g=o=="noActiveX"?p.createElement("xml"):new ActiveXObject(o);
try{g.validateOnParse=false;g.resolveExternals="false";g.setProperty("ProhibitDTD",false)
}catch(d){}if(b){var f="";if(a){if(b.indexOf(":")>1){f=b.substring(0,b.indexOf(":"));
b=b.substring(b.indexOf(":")+1)}else{f="a"+x._getUniqueSuffix()}}if(a){g.loadXML("<"+f+":"+b+" xmlns:"+f+'="'+a+'" />')
}else{g.loadXML("<"+b+" />")}}return g};x.getParseErrorText=function(a){var b=x.PARSED_OK;
if(a&&a.parseError&&a.parseError.errorCode&&a.parseError.errorCode!=0){b="XML Parsing Error: "+a.parseError.reason+"\nLocation: "+a.parseError.url+"\nLine Number "+a.parseError.line+", Column "+a.parseError.linepos+":\n"+a.parseError.srcText+"\n";
for(var d=0;d<a.parseError.linepos;d++){b+="-"}b+="^\n"}else{if(a.documentElement===null){b=x.PARSED_EMPTY
}}return b};x.setXpathNamespaces=function(a,b){a.setProperty("SelectionLanguage","XPath");
a.setProperty("SelectionNamespaces",b)};XSLTProcessor=function(){if(!_SARISSA_XSLTEMPLATE_PROGID){_SARISSA_XSLTEMPLATE_PROGID=x.pickRecentProgID(["Msxml2.XSLTemplate.6.0","MSXML2.XSLTemplate.3.0"])
}this.template=new ActiveXObject(_SARISSA_XSLTEMPLATE_PROGID);this.processor=null
};XSLTProcessor.prototype.importStylesheet=function(a){if(!_SARISSA_THREADEDDOM_PROGID){_SARISSA_THREADEDDOM_PROGID=x.pickRecentProgID(["MSXML2.FreeThreadedDOMDocument.6.0","MSXML2.FreeThreadedDOMDocument.3.0"])
}a.setProperty("SelectionLanguage","XPath");a.setProperty("SelectionNamespaces","xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");
var b=new ActiveXObject(_SARISSA_THREADEDDOM_PROGID);try{b.resolveExternals=true;
b.setProperty("AllowDocumentFunction",true);b.setProperty("AllowXsltScript",true)
}catch(d){}if(a.url&&a.selectSingleNode("//xsl:*[local-name() = 'import' or local-name() = 'include']")!=null){b.async=false;
b.load(a.url)}else{b.loadXML(a.xml)}b.setProperty("SelectionNamespaces","xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");
var f=b.selectSingleNode("//xsl:output");if(f){this.outputMethod=f.getAttribute("method")
}else{delete this.outputMethod}this.template.stylesheet=b;this.processor=this.template.createProcessor();
this.paramsSet=[]};XSLTProcessor.prototype.transformToDocument=function(b){var d;
if(_SARISSA_THREADEDDOM_PROGID){this.processor.input=b;d=new ActiveXObject(o);this.processor.output=d;
this.processor.transform();return d}else{if(!t){t=x.pickRecentProgID(["Msxml2.MXXMLWriter.6.0","Msxml2.MXXMLWriter.3.0","MSXML2.MXXMLWriter","MSXML.MXXMLWriter","Microsoft.XMLDOM"])
}this.processor.input=b;d=new ActiveXObject(t);this.processor.output=d;this.processor.transform();
var a=new ActiveXObject(o);a.loadXML(d.output+"");return a}};XSLTProcessor.prototype.transformToFragment=function(a,g){this.processor.input=a;
this.processor.transform();var d=this.processor.output;var b=g.createDocumentFragment();
var i;if(this.outputMethod=="text"){b.appendChild(g.createTextNode(d))}else{if(g.body&&g.body.innerHTML){i=g.createElement("div");
if(d.substring(0,5)=="<?xml"){d=d.substring(d.indexOf("?>")+2)}i.innerHTML=d.replace(/\s+$/g,"");
while(i.hasChildNodes()){b.appendChild(i.firstChild)}}else{var f=new ActiveXObject(o);
if(d.substring(0,5)=="<?xml"){d=d.substring(d.indexOf("?>")+2)}var h="".concat("<my>",d,"</my>");
f.loadXML(h);i=f.documentElement;while(i.hasChildNodes()){b.appendChild(i.firstChild)
}}}return b};XSLTProcessor.prototype.setParameter=function(b,a,d){d=d?d:"";if(b){this.processor.addParameter(a,d,b)
}else{this.processor.addParameter(a,d)}b=""+(b||"");if(!this.paramsSet[b]){this.paramsSet[b]=[]
}this.paramsSet[b][a]=d};XSLTProcessor.prototype.getParameter=function(b,a){b=""+(b||"");
if(this.paramsSet[b]&&this.paramsSet[b][a]){return this.paramsSet[b][a]}else{return null
}};XSLTProcessor.prototype.clearParameters=function(){for(var b in this.paramsSet){for(var a in this.paramsSet[b]){if(b!=""){this.processor.addParameter(a,"",b)
}else{this.processor.addParameter(a,"")}}}this.paramsSet=[]}}else{if(x._SARISSA_HAS_DOM_CREATE_DOCUMENT){x.__handleLoad__=function(a){x.__setReadyState__(a,4)
};_sarissa_XMLDocument_onload=function(){x.__handleLoad__(this)};x.__setReadyState__=function(a,b){a.readyState=b;
a.readystate=b;if(a.onreadystatechange!=null&&typeof a.onreadystatechange=="function"){a.onreadystatechange()
}};x.getDomDocument=function(b,d){var a=p.implementation.createDocument(b?b:null,d?d:null,null);
if(!a.onreadystatechange){a.onreadystatechange=null}if(!a.readyState){a.readyState=0
}if(!a.load){a.load=function(g){var f=new XMLHttpRequest();f.onreadystatechange=a.onreadystatechange;
f.readyState=a.readyState;f.addEventListener("load",function(h){a.innerHtml=h.target.responseXML;
var i=p.createEvent("Event");i.initEvent("load",false,false);a.dispatchEvent(i)},false);
f.open("GET",g,a.async);f.send();return a.async?true:f.response}}a.addEventListener("load",_sarissa_XMLDocument_onload,false);
return a};if(q.XMLDocument){}else{if(x._SARISSA_HAS_DOM_FEATURE&&q.Document&&!Document.prototype.load&&p.implementation.hasFeature("LS","3.0")){x.getDomDocument=function(b,d){var a=p.implementation.createDocument(b?b:null,d?d:null,null);
return a}}else{x.getDomDocument=function(b,d){var a=p.implementation.createDocument(b?b:null,d?d:null,null);
if(a&&(b||d)&&!a.documentElement){a.appendChild(a.createElementNS(b,d))}return a}
}}}}if(!q.DOMParser||x._SARISSA_IS_IE9){if(x._SARISSA_IS_SAFARI){DOMParser=function(){};
DOMParser.prototype.parseFromString=function(d,b){var a=new XMLHttpRequest();a.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(d),false);
a.send(null);return a.responseXML}}else{if(x.getDomDocument&&x.getDomDocument()&&x.getDomDocument(null,"bar").xml){DOMParser=function(){};
DOMParser.prototype.parseFromString=function(f,a){var b=x.getDomDocument();try{b.validateOnParse=false;
b.setProperty("ProhibitDTD",false)}catch(d){}b.loadXML(f);return b}}}}if((typeof(p.importNode)=="undefined")&&x._SARISSA_IS_IE){try{p.importNode=function(b,d){var a;
if(b.nodeName=="#text"){return p.createTextNode(b.data)}else{if(b.nodeName=="tbody"||b.nodeName=="tr"){a=p.createElement("table")
}else{if(b.nodeName=="td"){a=p.createElement("tr")}else{if(b.nodeName=="option"){a=p.createElement("select")
}else{a=p.createElement("div")}}}if(d){a.innerHTML=b.xml?b.xml:b.outerHTML}else{a.innerHTML=b.xml?b.cloneNode(false).xml:b.cloneNode(false).outerHTML
}return a.getElementsByTagName("*")[0]}}}catch(r){}}if(!x.getParseErrorText){x.getParseErrorText=function(a){var b=x.PARSED_OK;
if((!a)||(!a.documentElement)){b=x.PARSED_EMPTY}else{if(a.documentElement.tagName=="parsererror"){b=a.documentElement.firstChild.data;
b+="\n"+a.documentElement.firstChild.nextSibling.firstChild.data}else{if(a.getElementsByTagName("parsererror").length>0){var d=a.getElementsByTagName("parsererror")[0];
b=x.getText(d,true)+"\n"}else{if(a.parseError&&a.parseError.errorCode!=0){b=x.PARSED_UNKNOWN_ERROR
}}}}return b}}x.getText=function(a,i){var d="";var h=a.childNodes;if(a.nodeType==Node.ATTRIBUTE_NODE&&h.length==0){return a.value
}for(var g=0;g<h.length;g++){var b=h[g];var f=b.nodeType;if(f==Node.TEXT_NODE||f==Node.CDATA_SECTION_NODE){d+=b.data
}else{if(i===true&&(f==Node.ELEMENT_NODE||f==Node.DOCUMENT_NODE||f==Node.DOCUMENT_FRAGMENT_NODE)){d+=x.getText(b,true)
}}}return d};if(!q.XMLSerializer&&x.getDomDocument&&x.getDomDocument("","foo",null).xml){XMLSerializer=function(){};
XMLSerializer.prototype.serializeToString=function(a){return a.xml}}else{if(x._SARISSA_IS_IE9&&q.XMLSerializer){IE9XMLSerializer=XMLSerializer;
XMLSerializer=function(){this._oldSerializer=new IE9XMLSerializer()};XMLSerializer.prototype.serializeToString=function(a){if(typeof(a)=="object"&&a!=null&&"xml" in a){return a.xml
}else{return this._oldSerializer.serializeToString(a)}}}}x.stripTags=function(a){return a?a.replace(/<[^>]+>/g,""):a
};x.clearChildNodes=function(a){while(a.firstChild){a.removeChild(a.firstChild)}};
v.Sarissa=x});(function(b){if(typeof define==="function"&&define.amd){define("sarissa.jquery",["jquery","sarissa"],b)
}else{if(typeof exports==="object"){module.exports=b(require("jquery","sarissa"))
}else{b(jQuery)}}}(function(h,e){var f=e.Sarissa;if(typeof f!="undefined"&&h.ajaxSetup){h.ajaxSetup({xhr:function(){if(f.originalXMLHttpRequest){return new f.originalXMLHttpRequest()
}else{if(typeof ActiveXObject!="undefined"){return new ActiveXObject("Microsoft.XMLHTTP")
}else{return new XMLHttpRequest()}}}});var g=h.ajaxSettings.xhr();h.support.cors=!!g&&("withCredentials" in g)
}return{Sarissa:f}}));(function(b){define("rp.a4j",["prototypejs","a4j","richfaces","richfacesjs","a4j.form","json.dom","richfaces.jquery","log","a4j.ajax","richfaces.prototypejs","richfaces.browser","richfacesjs.smartposition","richfacesjs.form"],function(a,n,o,p,m,j,l,q){a.apply(b);
b.A4J=n.A4J;b.RichFaces=o.RichFaces;b.Richfaces=p.Richfaces;b._clearJSFFormParameters=m.clearJSFFormParameters;
b._JSFFormSubmit=m.JSFFormSubmit;b.E=j.E;b.ET=j.ET;b.T=j.T;b.jQuery=l;q.LOG.LEVEL=q.LOG.WARN;
b.LOG=q.LOG;q.LOG.debug("a4j js loaded")});require("rp.a4j")})(window);