HtmlToText
) /gi, mb=/^(?:select|textarea)/i,nb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ob=/^(?:get|head|delete)$/,na=/\[\]$/,t=/\=\?(&|$)/,ia=/\?/,pb=/([?&])_=[^&]*/,qb=/^(\w+:)?\/\/([^\/?#]+)/,rb=/%20/g,sb=/#.*$/,ea=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&ea)return ea.apply(this,arguments);else if(!this.length)return this;var e=a.indexof(" ");if(e =0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="get";if(b)if(c.isfunction(b)){d= b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxsettings.traditional);e="post"}var h=this;c.ajax({url:a,type:e,datatype:"html",data:b,complete:function(k,l){if(l==="success"||l==="notmodified")h.html(f?c(" ").append(k.responsetext.replace(lb,"")).find(f):k.responsetext);d&&h.each(d,[k.responsetext,l,k])}});return this},serialize:function(){return c.param(this.serializearray())},serializearray:function(){return this.map(function(){return this.elements?c.makearray(this.elements):this}).filter(function(){return this.name&& !this.disabled&&(this.checked||mb.test(this.nodename)||nb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isarray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxstart ajaxstop ajaxcomplete ajaxerror ajaxsuccess ajaxsend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isfunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"get",url:a,data:b,success:d,datatype:e})}, getscript:function(a,b){return c.get(a,null,b,"script")},getjson:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isfunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"post",url:a,data:b,success:d,datatype:e})},ajaxsetup:function(a){c.extend(c.ajaxsettings,a)},ajaxsettings:{url:location.href,global:true,type:"get",contenttype:"application/x-www-form-urlencoded",processdata:true,async:true,xhr:function(){return new e.xmlhttprequest},accepts:{xml:"application/xml, text/xml",html:"text/html", script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxsettings,a),d,e,f,h=b.type.touppercase(),k=ob.test(h);b.url=b.url.replace(sb,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processdata&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.datatype==="jsonp"){if(h==="get")t.test(b.url)||(b.url+=(ia.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| !t.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.datatype="json"}if(b.datatype==="json"&&(b.data&&t.test(b.data)||t.test(b.url))){d=b.jsonpcallback||"jsonp"+kb++;if(b.data)b.data=(b.data+"").replace(t,"="+d+"$1");b.url=b.url.replace(t,"="+d+"$1");b.datatype="script";var l=e[d];e[d]=function(m){f=m;c.handlesuccess(b,w,e,f);c.handlecomplete(b,w,e,f);if(c.isfunction(l))l(m);else{e[d]=a;try{delete e[d]}catch(p){}}v&&v.removechild(b)}}if(b.datatype==="script"&&b.cache===null)b.cache= false;if(b.cache===false&&h==="get"){var n=c.now(),s=b.url.replace(pb,"$1_="+n);b.url=s+(s===b.url?(ia.test(b.url)?"&":"?")+"_="+n:"")}if(b.data&&h==="get")b.url+=(ia.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxstart");n=(n=qb.exec(b.url))&&(n[1]&&n[1]!==location.protocol||n[2]!==location.host);if(b.datatype==="script"&&h==="get"&&n){var v=u.getelementsbytagname("head")[0]||u.documentelement,b=u.createelement("script");if(b.scriptcharset)b.charset=b.scriptcharset;b.src= b.url;if(!d){var d=false;b.onload=b.onreadystatechange=function(){if(!d&&(!this.readystate||this.readystate==="loaded"||this.readystate==="complete")){d=true;c.handlesuccess(b,w,e,f);c.handlecomplete(b,w,e,f);b.onload=b.onreadystatechange=null;v&&b.parentnode&&v.removechild(b)}}}v.insertbefore(b,v.firstchild);return a}var h=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!k||a&&a.contenttype)w.setrequestheader("content-type", b.contenttype);if(b.ifmodified){c.lastmodified[b.url]&&w.setrequestheader("if-modified-since",c.lastmodified[b.url]);c.etag[b.url]&&w.setrequestheader("if-none-match",c.etag[b.url])}n||w.setrequestheader("x-requested-with","xmlhttprequest");w.setrequestheader("accept",b.datatype&&b.accepts[b.datatype]?b.accepts[b.datatype]+", */*; q=0.01":b.accepts._default)}catch(g){}if(b.beforesend&&b.beforesend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxstop");w.abort();return false}b.global&& c.triggerglobal(b,"ajaxsend",[w,b]);var m=w.onreadystatechange=function(m){if(!w||w.readystate===0||m==="abort"){h||c.handlecomplete(b,w,e,f);h=true;if(w)w.onreadystatechange=c.noop}else if(!h&&w&&(w.readystate===4||m==="timeout")){h=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpsuccess(w)?"error":b.ifmodified&&c.httpnotmodified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpdata(w,b.datatype,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d|| c.handlesuccess(b,w,e,f);else c.handleerror(b,w,e,p);d||c.handlecomplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&g.call&&g.call(w);m("abort")}}catch(j){}b.async&&b.timeout 0&&settimeout(function(){w&&!h&&m("timeout")},b.timeout);try{w.send(k||b.data==null?null:b.data)}catch(o){c.handleerror(b,w,null,o);c.handlecomplete(b,w,e,f)}b.async||m();return w}},param:function(a,b){var d=[],e=function(h,k){k=c.isfunction(k)?k():k;d[d.length]=encodeuricomponent(h)+ "="+encodeuricomponent(k)};if(b===a)b=c.ajaxsettings.traditional;if(c.isarray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)ca(f,a[f],b,e);return d.join("&").replace(rb,"+")}});c.extend({active:0,lastmodified:{},etag:{},handleerror:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerglobal(a,"ajaxerror",[b,a,e])},handlesuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerglobal(a,"ajaxsuccess",[b,a])},handlecomplete:function(a, b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerglobal(a,"ajaxcomplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxstop")},triggerglobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpsuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status =200&&a.status =0;a=f?a.responsexml:a.responsetext;f&&a.documentelement.nodename==="parsererror"&&c.error("parsererror");if(d&&d.datafilter)a=d.datafilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexof("json") =0)a=c.parsejson(a);else if(b==="script"||!b&&e.indexof("javascript") =0)c.globaleval(a);return a}});if(e.activexobject)c.ajaxsettings.xhr= function(){if(e.location.protocol!=="file:")try{return new e.xmlhttprequest}catch(a){}try{return new e.activexobject("microsoft.xmlhttp")}catch(b){}};c.support.ajax=!!c.ajaxsettings.xhr();var da={},tb=/^(?:toggle|show|hide)$/,ub=/^([+\-]=)?([\d+.\-]+)(.*)$/,aa,na=[["height","margintop","marginbottom","paddingtop","paddingbottom"],["width","marginleft","marginright","paddingleft","paddingright"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(s("show",3),a,b,d);else{a= 0;for(b=this.length;a =0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slidedown:s("show",1),slideup:s("hide",1),slidetoggle:s("toggle",1),fadein:{opacity:"show"},fadeout:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b, d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isfunction(a)&&a,duration:a,easing:d&&b||b&&!c.isfunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=fu