(function(a,h){function b(a){var c=Ja[a]={};l.each(a.split(Z),function(a,ma){c[ma]=!0});return c}function e(a,c,d){if(d===h&&1===a.nodeType)if(d="data-"+c.replace(Gb,"-$1").toLowerCase(),d=a.getAttribute(d),"string"===typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:Hb.test(d)?l.parseJSON(d):d}catch(b){}l.data(a,c,d)}else d=h;return d}function g(a){for(var c in a)if(("data"!==c||!l.isEmptyObject(a[c]))&&"toJSON"!==c)return!1;return!0}function k(){return!1}function d(){return!0}
function c(a){return!a||!a.parentNode||11===a.parentNode.nodeType}function f(a,c){do a=a[c];while(a&&1!==a.nodeType);return a}function m(a,c,d){c=c||0;if(l.isFunction(c))return l.grep(a,function(a,ma){return!!c.call(a,ma,a)===d});if(c.nodeType)return l.grep(a,function(a,ma){return a===c===d});if("string"===typeof c){var b=l.grep(a,function(a){return 1===a.nodeType});if(Ib.test(c))return l.filter(c,b,!d);c=l.filter(c,b)}return l.grep(a,function(a,ma){return 0<=l.inArray(a,c)===d})}function p(a){var c=
qb.split("|");a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function t(a,c){return a.getElementsByTagName(c)[0]||a.appendChild(a.ownerDocument.createElement(c))}function A(a,c){if(1===c.nodeType&&l.hasData(a)){var d,b,f;b=l._data(a);var s=l._data(c,b),g=b.events;if(g)for(d in delete s.handle,s.events={},g)for(b=0,f=g[d].length;b<f;b++)l.event.add(c,d,g[d][b]);s.data&&(s.data=l.extend({},s.data))}}function q(a,c){var d;1===c.nodeType&&(c.clearAttributes&&
c.clearAttributes(),c.mergeAttributes&&c.mergeAttributes(a),d=c.nodeName.toLowerCase(),"object"===d?(c.parentNode&&(c.outerHTML=a.outerHTML),l.support.html5Clone&&a.innerHTML&&!l.trim(c.innerHTML)&&(c.innerHTML=a.innerHTML)):"input"===d&&Ta.test(a.type)?(c.defaultChecked=c.checked=a.checked,c.value!==a.value&&(c.value=a.value)):"option"===d?c.selected=a.defaultSelected:"input"===d||"textarea"===d?c.defaultValue=a.defaultValue:"script"===d&&c.text!==a.text&&(c.text=a.text),c.removeAttribute(l.expando))}
function n(a){return"undefined"!==typeof a.getElementsByTagName?a.getElementsByTagName("*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll("*"):[]}function r(a){Ta.test(a.type)&&(a.defaultChecked=a.checked)}function u(a,c){if(c in a)return c;for(var d=c.charAt(0).toUpperCase()+c.slice(1),b=c,f=cb.length;f--;)if(c=cb[f]+d,c in a)return c;return b}function x(a,c){a=c||a;return"none"===l.css(a,"display")||!l.contains(a.ownerDocument,a)}function B(a,c){for(var d,b,f=[],s=0,g=a.length;s<g;s++)d=
a[s],d.style&&(f[s]=l._data(d,"olddisplay"),c?(f[s]||"none"!==d.style.display||(d.style.display=""),""===d.style.display&&x(d)&&(f[s]=l._data(d,"olddisplay",F(d.nodeName)))):(b=oa(d,"display"),f[s]||"none"===b||l._data(d,"olddisplay",b)));for(s=0;s<g;s++)d=a[s],!d.style||c&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=c?f[s]||"":"none");return a}function y(a,c,d){return(a=ca.exec(c))?Math.max(0,a[1]-(d||0))+(a[2]||"px"):c}function w(a,c,d,b){c=d===(b?"border":"content")?4:"width"===
c?1:0;for(var f=0;4>c;c+=2)"margin"===d&&(f+=l.css(a,d+qa[c],!0)),b?("content"===d&&(f-=parseFloat(oa(a,"padding"+qa[c]))||0),"margin"!==d&&(f-=parseFloat(oa(a,"border"+qa[c]+"Width"))||0)):(f+=parseFloat(oa(a,"padding"+qa[c]))||0,"padding"!==d&&(f+=parseFloat(oa(a,"border"+qa[c]+"Width"))||0));return f}function G(a,c,d){var b="width"===c?a.offsetWidth:a.offsetHeight,f=!0,s=l.support.boxSizing&&"border-box"===l.css(a,"boxSizing");if(0>=b||null==b){b=oa(a,c);if(0>b||null==b)b=a.style[c];if(U.test(b))return b;
f=s&&(l.support.boxSizingReliable||b===a.style[c]);b=parseFloat(b)||0}return b+w(a,c,d||(s?"border":"content"),f)+"px"}function F(a){if(Aa[a])return Aa[a];var c=l("\x3c"+a+"\x3e").appendTo(H.body),d=c.css("display");c.remove();if("none"===d||""===d)Ba=H.body.appendChild(Ba||l.extend(H.createElement("iframe"),{frameBorder:0,width:0,height:0})),va&&Ba.createElement||(va=(Ba.contentWindow||Ba.contentDocument).document,va.write("\x3c!doctype html\x3e\x3chtml\x3e\x3cbody\x3e"),va.close()),c=va.body.appendChild(va.createElement(a)),
d=oa(c,"display"),H.body.removeChild(Ba);return Aa[a]=d}function E(a,c,d,b){var f;if(l.isArray(c))l.each(c,function(c,f){d||Tb.test(a)?b(a,f):E(a+"['"+("object"===typeof f?c:"")+"']",f,d,b)});else if(d||"object"!==l.type(c))b(a,c);else for(f in c)E(a+"['"+f+"']",c[f],d,b)}function C(a){return function(c,d){"string"!==typeof c&&(d=c,c="*");var b,f,s=c.toLowerCase().split(Z),g=0,e=s.length;if(l.isFunction(d))for(;g<e;g++)b=s[g],(f=/^\+/.test(b))&&(b=b.substr(1)||"*"),b=a[b]=a[b]||[],b[f?"unshift":"push"](d)}}
function v(a,c,d,b,f,s){f=f||c.dataTypes[0];s=s||{};s[f]=!0;var g;f=a[f];for(var e=0,l=f?f.length:0,m=a===pa;e<l&&(m||!g);e++)g=f[e](c,d,b),"string"===typeof g&&(!m||s[g]?g=h:(c.dataTypes.unshift(g),g=v(a,c,d,b,g,s)));!m&&g||s["*"]||(g=v(a,c,d,b,"*",s));return g}function P(a,c){var d,b,f=l.ajaxSettings.flatOptions||{};for(d in c)c[d]!==h&&((f[d]?a:b||(b={}))[d]=c[d]);b&&l.extend(!0,a,b)}function L(){try{return new a.XMLHttpRequest}catch(c){}}function M(){setTimeout(function(){Ua=h},0);return Ua=l.now()}
function K(a,c){l.each(c,function(c,d){for(var b=(db[c]||[]).concat(db["*"]),f=0,s=b.length;f<s&&!b[f].call(a,c,d);f++);})}function ba(a,c,d){var b=0,f=rb.length,s=l.Deferred().always(function(){delete g.elem}),g=function(){for(var c=Ua||M(),c=Math.max(0,e.startTime+e.duration-c),d=1-(c/e.duration||0),b=0,f=e.tweens.length;b<f;b++)e.tweens[b].run(d);s.notifyWith(a,[e,d,c]);if(1>d&&f)return c;s.resolveWith(a,[e]);return!1},e=s.promise({elem:a,props:l.extend({},c),opts:l.extend(!0,{specialEasing:{}},
d),originalProperties:c,originalOptions:d,startTime:Ua||M(),duration:d.duration,tweens:[],createTween:function(c,d,b){c=l.Tween(a,e.opts,c,d,e.opts.specialEasing[c]||e.opts.easing);e.tweens.push(c);return c},stop:function(c){for(var d=0,b=c?e.tweens.length:0;d<b;d++)e.tweens[d].run(1);c?s.resolveWith(a,[e,c]):s.rejectWith(a,[e,c]);return this}});d=e.props;for(I(d,e.opts.specialEasing);b<f;b++)if(c=rb[b].call(e,a,d,e.opts))return c;K(e,d);l.isFunction(e.opts.start)&&e.opts.start.call(a,e);l.fx.timer(l.extend(g,
{anim:e,queue:e.opts.queue,elem:a}));return e.progress(e.opts.progress).done(e.opts.done,e.opts.complete).fail(e.opts.fail).always(e.opts.always)}function I(a,c){var d,b,f,s,e;for(d in a)if(b=l.camelCase(d),f=c[b],s=a[d],l.isArray(s)&&(f=s[1],s=a[d]=s[0]),d!==b&&(a[b]=s,delete a[d]),(e=l.cssHooks[b])&&"expand"in e)for(d in s=e.expand(s),delete a[b],s)d in a||(a[d]=s[d],c[d]=f);else c[b]=f}function Q(a,c,d,b,f){return new Q.prototype.init(a,c,d,b,f)}function R(a,c){var d,b={height:a},f=0;for(c=c?1:
0;4>f;f+=2-c)d=qa[f],b["margin"+d]=b["padding"+d]=a;c&&(b.opacity=b.width=a);return b}function N(a){return l.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var O,J,H=a.document,S=a.location,ka=a.navigator,z=a.jQuery,ga=a.$,ha=Array.prototype.push,da=Array.prototype.slice,V=Array.prototype.indexOf,ea=Object.prototype.toString,W=Object.prototype.hasOwnProperty,sa=String.prototype.trim,l=function(a,c){return new l.fn.init(a,c,O)},ta=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,wa=/\S/,
Z=/\s+/,xa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Va=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ga=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Ca=/^[\],:{}\s]*$/,Jb=/(?:^|:|,)(?:\s*\[)+/g,Kb=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,Wa=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,sb=/^-ms-/,Xa=/-([\da-z])/gi,eb=function(a,c){return(c+"").toUpperCase()},Ha=function(){H.addEventListener?(H.removeEventListener("DOMContentLoaded",Ha,!1),l.ready()):"complete"===H.readyState&&(H.detachEvent("onreadystatechange",
Ha),l.ready())},Ka={};l.fn=l.prototype={constructor:l,init:function(a,c,d){var b;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("string"===typeof a){b="\x3c"===a.charAt(0)&&"\x3e"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:Va.exec(a);if(!b||!b[1]&&c)return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a);if(b[1])return a=(c=c instanceof l?c[0]:c)&&c.nodeType?c.ownerDocument||c:H,a=l.parseHTML(b[1],a,!0),Ga.test(b[1])&&l.isPlainObject(c)&&this.attr.call(a,
c,!0),l.merge(this,a);if((c=H.getElementById(b[2]))&&c.parentNode){if(c.id!==b[2])return d.find(a);this.length=1;this[0]=c}this.context=H;this.selector=a;return this}if(l.isFunction(a))return d.ready(a);a.selector!==h&&(this.selector=a.selector,this.context=a.context);return l.makeArray(a,this)},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return da.call(this)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,
c,d){a=l.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;"find"===c?a.selector=this.selector+(this.selector?" ":"")+d:c&&(a.selector=this.selector+"."+c+"("+d+")");return a},each:function(a,c){return l.each(this,a,c)},ready:function(a){l.ready.promise().done(a);return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(da.apply(this,arguments),"slice",
da.call(arguments).join(","))},map:function(a){return this.pushStack(l.map(this,function(c,d){return a.call(c,d,c)}))},end:function(){return this.prevObject||this.constructor(null)},push:ha,sort:[].sort,splice:[].splice};l.fn.init.prototype=l.fn;l.extend=l.fn.extend=function(){var a,c,d,b,f,s=arguments[0]||{},e=1,g=arguments.length,m=!1;"boolean"===typeof s&&(m=s,s=arguments[1]||{},e=2);"object"===typeof s||l.isFunction(s)||(s={});g===e&&(s=this,--e);for(;e<g;e++)if(null!=(a=arguments[e]))for(c in a)d=
s[c],b=a[c],s!==b&&(m&&b&&(l.isPlainObject(b)||(f=l.isArray(b)))?(f?(f=!1,d=d&&l.isArray(d)?d:[]):d=d&&l.isPlainObject(d)?d:{},s[c]=l.extend(m,d,b)):b!==h&&(s[c]=b));return s};l.extend({noConflict:function(c){a.$===l&&(a.$=ga);c&&a.jQuery===l&&(a.jQuery=z);return l},isReady:!1,readyWait:1,holdReady:function(a){a?l.readyWait++:l.ready(!0)},ready:function(a){if(!0===a?!--l.readyWait:!l.isReady){if(!H.body)return setTimeout(l.ready,1);l.isReady=!0;!0!==a&&0<--l.readyWait||(J.resolveWith(H,[l]),l.fn.trigger&&
l(H).trigger("ready").off("ready"))}},isFunction:function(a){return"function"===l.type(a)},isArray:Array.isArray||function(a){return"array"===l.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return null==a?String(a):Ka[ea.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==l.type(a)||a.nodeType||l.isWindow(a))return!1;try{if(a.constructor&&!W.call(a,"constructor")&&!W.call(a.constructor.prototype,
"isPrototypeOf"))return!1}catch(c){return!1}for(var d in a);return d===h||W.call(a,d)},isEmptyObject:function(a){for(var c in a)return!1;return!0},error:function(a){throw Error(a);},parseHTML:function(a,c,d){var b;if(!a||"string"!==typeof a)return null;"boolean"===typeof c&&(d=c,c=0);c=c||H;if(b=Ga.exec(a))return[c.createElement(b[1])];b=l.buildFragment([a],c,d?null:[]);return l.merge([],(b.cacheable?l.clone(b.fragment):b.fragment).childNodes)},parseJSON:function(c){if(!c||"string"!==typeof c)return null;
c=l.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(Ca.test(c.replace(Kb,"@").replace(Wa,"]").replace(Jb,"")))return(new Function("return "+c))();l.error("Invalid JSON: "+c)},parseXML:function(c){var d,b;if(!c||"string"!==typeof c)return null;try{a.DOMParser?(b=new DOMParser,d=b.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=h}d&&d.documentElement&&!d.getElementsByTagName("parsererror").length||l.error("Invalid XML: "+c);
return d},noop:function(){},globalEval:function(c){c&&wa.test(c)&&(a.execScript||function(c){a.eval.call(a,c)})(c)},camelCase:function(a){return a.replace(sb,"ms-").replace(Xa,eb)},nodeName:function(a,c){return a.nodeName&&a.nodeName.toLowerCase()===c.toLowerCase()},each:function(a,c,d){var b,f=0,s=a.length,e=s===h||l.isFunction(a);if(d)if(e)for(b in a){if(!1===c.apply(a[b],d))break}else for(;f<s&&!1!==c.apply(a[f++],d););else if(e)for(b in a){if(!1===c.call(a[b],b,a[b]))break}else for(;f<s&&!1!==
c.call(a[f],f,a[f++]););return a},trim:sa&&!sa.call("﻿ ")?function(a){return null==a?"":sa.call(a)}:function(a){return null==a?"":(a+"").replace(xa,"")},makeArray:function(a,c){var d,b=c||[];null!=a&&(d=l.type(a),null==a.length||"string"===d||"function"===d||"regexp"===d||l.isWindow(a)?ha.call(b,a):l.merge(b,a));return b},inArray:function(a,c,d){var b;if(c){if(V)return V.call(c,a,d);b=c.length;for(d=d?0>d?Math.max(0,b+d):d:0;d<b;d++)if(d in c&&c[d]===a)return d}return-1},merge:function(a,c){var d=
c.length,b=a.length,f=0;if("number"===typeof d)for(;f<d;f++)a[b++]=c[f];else for(;c[f]!==h;)a[b++]=c[f++];a.length=b;return a},grep:function(a,c,d){var b,f=[],s=0,e=a.length;for(d=!!d;s<e;s++)b=!!c(a[s],s),d!==b&&f.push(a[s]);return f},map:function(a,c,d){var b,f,s=[],e=0,g=a.length;if(a instanceof l||g!==h&&"number"===typeof g&&(0<g&&a[0]&&a[g-1]||0===g||l.isArray(a)))for(;e<g;e++)b=c(a[e],e,d),null!=b&&(s[s.length]=b);else for(f in a)b=c(a[f],f,d),null!=b&&(s[s.length]=b);return s.concat.apply([],
s)},guid:1,proxy:function(a,c){var d,b;"string"===typeof c&&(d=a[c],c=a,a=d);if(!l.isFunction(a))return h;b=da.call(arguments,2);d=function(){return a.apply(c,b.concat(da.call(arguments)))};d.guid=a.guid=a.guid||l.guid++;return d},access:function(a,c,d,b,f,s,e){var g,m=null==d,k=0,q=a.length;if(d&&"object"===typeof d){for(k in d)l.access(a,c,k,d[k],1,s,b);f=1}else if(b!==h){g=e===h&&l.isFunction(b);m&&(g?(g=c,c=function(a,c,d){return g.call(l(a),d)}):(c.call(a,b),c=null));if(c)for(;k<q;k++)c(a[k],
d,g?b.call(a[k],k,c(a[k],d)):b,e);f=1}return f?a:m?c.call(a):q?c(a[0],d):s},now:function(){return(new Date).getTime()}});l.ready.promise=function(c){if(!J)if(J=l.Deferred(),"complete"===H.readyState)setTimeout(l.ready,1);else if(H.addEventListener)H.addEventListener("DOMContentLoaded",Ha,!1),a.addEventListener("load",l.ready,!1);else{H.attachEvent("onreadystatechange",Ha);a.attachEvent("onload",l.ready);var d=!1;try{d=null==a.frameElement&&H.documentElement}catch(b){}d&&d.doScroll&&function Sb(){if(!l.isReady){try{d.doScroll("left")}catch(a){return setTimeout(Sb,
50)}l.ready()}}()}return J.promise(c)};l.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,c){Ka["[object "+c+"]"]=c.toLowerCase()});O=l(H);var Ja={};l.Callbacks=function(a){a="string"===typeof a?Ja[a]||b(a):l.extend({},a);var c,d,f,s,e,g,m=[],k=!a.once&&[],q=function(b){c=a.memory&&b;d=!0;g=s||0;s=0;e=m.length;for(f=!0;m&&g<e;g++)if(!1===m[g].apply(b[0],b[1])&&a.stopOnFalse){c=!1;break}f=!1;m&&(k?k.length&&q(k.shift()):c?m=[]:D.disable())},D={add:function(){if(m){var d=
m.length;(function Ub(c){l.each(c,function(c,d){var b=l.type(d);"function"===b?a.unique&&D.has(d)||m.push(d):d&&d.length&&"string"!==b&&Ub(d)})})(arguments);f?e=m.length:c&&(s=d,q(c))}return this},remove:function(){m&&l.each(arguments,function(a,c){for(var d;-1<(d=l.inArray(c,m,d));)m.splice(d,1),f&&(d<=e&&e--,d<=g&&g--)});return this},has:function(a){return-1<l.inArray(a,m)},empty:function(){m=[];return this},disable:function(){m=k=c=h;return this},disabled:function(){return!m},lock:function(){k=
h;c||D.disable();return this},locked:function(){return!k},fireWith:function(a,c){c=c||[];c=[a,c.slice?c.slice():c];!m||d&&!k||(f?k.push(c):q(c));return this},fire:function(){D.fireWith(this,arguments);return this},fired:function(){return!!d}};return D};l.extend({Deferred:function(a){var c=[["resolve","done",l.Callbacks("once memory"),"resolved"],["reject","fail",l.Callbacks("once memory"),"rejected"],["notify","progress",l.Callbacks("memory")]],d="pending",b={state:function(){return d},always:function(){f.done(arguments).fail(arguments);
return this},then:function(){var a=arguments;return l.Deferred(function(d){l.each(c,function(c,b){var s=b[0],ma=a[c];f[b[1]](l.isFunction(ma)?function(){var a=ma.apply(this,arguments);if(a&&l.isFunction(a.promise))a.promise().done(d.resolve).fail(d.reject).progress(d.notify);else d[s+"With"](this===f?d:this,[a])}:d[s])});a=null}).promise()},promise:function(a){return null!=a?l.extend(a,b):b}},f={};b.pipe=b.then;l.each(c,function(a,s){var ma=s[2],e=s[3];b[s[1]]=ma.add;e&&ma.add(function(){d=e},c[a^
1][2].disable,c[2][2].lock);f[s[0]]=ma.fire;f[s[0]+"With"]=ma.fireWith});b.promise(f);a&&a.call(f,f);return f},when:function(a){var c=0,d=da.call(arguments),b=d.length,f=1!==b||a&&l.isFunction(a.promise)?b:0,s=1===f?a:l.Deferred(),e=function(a,c,d){return function(b){c[a]=this;d[a]=1<arguments.length?da.call(arguments):b;d===g?s.notifyWith(c,d):--f||s.resolveWith(c,d)}},g,m,k;if(1<b)for(g=Array(b),m=Array(b),k=Array(b);c<b;c++)d[c]&&l.isFunction(d[c].promise)?d[c].promise().done(e(c,k,d)).fail(s.reject).progress(e(c,
m,g)):--f;f||s.resolveWith(k,d);return s.promise()}});l.support=function(){var c,d,b,f,s,e,g,m=H.createElement("div");m.setAttribute("className","t");m.innerHTML="  \x3clink/\x3e\x3ctable\x3e\x3c/table\x3e\x3ca href\x3d'/a'\x3ea\x3c/a\x3e\x3cinput type\x3d'checkbox'/\x3e";d=m.getElementsByTagName("*");b=m.getElementsByTagName("a")[0];if(!d||!b||!d.length)return{};f=H.createElement("select");s=f.appendChild(H.createElement("option"));d=m.getElementsByTagName("input")[0];b.style.cssText="top:1px;float:left;opacity:.5";
c={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(b.getAttribute("style")),hrefNormalized:"/a"===b.getAttribute("href"),opacity:/^0.5/.test(b.style.opacity),cssFloat:!!b.style.cssFloat,checkOn:"on"===d.value,optSelected:s.selected,getSetAttribute:"t"!==m.className,enctype:!!H.createElement("form").enctype,html5Clone:"\x3c:nav\x3e\x3c/:nav\x3e"!==H.createElement("nav").cloneNode(!0).outerHTML,
boxModel:"CSS1Compat"===H.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1};d.checked=!0;c.noCloneChecked=d.cloneNode(!0).checked;f.disabled=!0;c.optDisabled=!s.disabled;try{delete m.test}catch(k){c.deleteExpando=!1}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",b=function(){c.noCloneEvent=!1}),m.cloneNode(!0).fireEvent("onclick"),
m.detachEvent("onclick",b));d=H.createElement("input");d.value="t";d.setAttribute("type","radio");c.radioValue="t"===d.value;d.setAttribute("checked","checked");d.setAttribute("name","t");m.appendChild(d);b=H.createDocumentFragment();b.appendChild(m.lastChild);c.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked;c.appendChecked=d.checked;b.removeChild(d);b.appendChild(m);if(m.attachEvent)for(e in{submit:!0,change:!0,focusin:!0})d="on"+e,g=d in m,g||(m.setAttribute(d,"return;"),g="function"===
typeof m[d]),c[e+"Bubbles"]=g;l(function(){var d,b,f,s=H.getElementsByTagName("body")[0];s&&(d=H.createElement("div"),d.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",s.insertBefore(d,s.firstChild),b=H.createElement("div"),d.appendChild(b),b.innerHTML="\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3et\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",f=b.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",g=0===f[0].offsetHeight,
f[0].style.display="",f[1].style.display="none",c.reliableHiddenOffsets=g&&0===f[0].offsetHeight,b.innerHTML="",b.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",c.boxSizing=4===b.offsetWidth,c.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,a.getComputedStyle&&(c.pixelPosition="1%"!==(a.getComputedStyle(b,null)||{}).top,c.boxSizingReliable="4px"===(a.getComputedStyle(b,
null)||{width:"4px"}).width,f=H.createElement("div"),f.style.cssText=b.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;",f.style.marginRight=f.style.width="0",b.style.width="1px",b.appendChild(f),c.reliableMarginRight=!parseFloat((a.getComputedStyle(f,null)||{}).marginRight)),"undefined"!==typeof b.style.zoom&&(b.innerHTML="",b.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;width:1px;padding:1px;display:inline;zoom:1",c.inlineBlockNeedsLayout=3===
b.offsetWidth,b.style.display="block",b.style.overflow="visible",b.innerHTML="\x3cdiv\x3e\x3c/div\x3e",b.firstChild.style.width="5px",c.shrinkWrapBlocks=3!==b.offsetWidth,d.style.zoom=1),s.removeChild(d))});b.removeChild(m);d=b=f=s=d=b=m=null;return c}();var Hb=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Gb=/([A-Z])/g;l.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(l.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=
a.nodeType?l.cache[a[l.expando]]:a[l.expando];return!!a&&!g(a)},data:function(a,c,d,b){if(l.acceptData(a)){var f=l.expando,s="string"===typeof c,e=a.nodeType,g=e?l.cache:a,m=e?a[f]:a[f]&&f;if(m&&g[m]&&(b||g[m].data)||!s||d!==h){m||(e?a[f]=m=l.deletedIds.pop()||l.guid++:m=f);g[m]||(g[m]={},e||(g[m].toJSON=l.noop));if("object"===typeof c||"function"===typeof c)b?g[m]=l.extend(g[m],c):g[m].data=l.extend(g[m].data,c);a=g[m];b||(a.data||(a.data={}),a=a.data);d!==h&&(a[l.camelCase(c)]=d);s?(d=a[c],null==
d&&(d=a[l.camelCase(c)])):d=a;return d}}},removeData:function(a,c,d){if(l.acceptData(a)){var b,f,s,e=a.nodeType,m=e?l.cache:a,k=e?a[l.expando]:l.expando;if(m[k]){if(c&&(b=d?m[k]:m[k].data)){l.isArray(c)||(c in b?c=[c]:(c=l.camelCase(c),c=c in b?[c]:c.split(" ")));f=0;for(s=c.length;f<s;f++)delete b[c[f]];if(!(d?g:l.isEmptyObject)(b))return}if(!d&&(delete m[k].data,!g(m[k])))return;e?l.cleanData([a],!0):l.support.deleteExpando||m!=m.window?delete m[k]:m[k]=null}}},_data:function(a,c,d){return l.data(a,
c,d,!0)},acceptData:function(a){var c=a.nodeName&&l.noData[a.nodeName.toLowerCase()];return!c||!0!==c&&a.getAttribute("classid")===c}});l.fn.extend({data:function(a,c){var d,b,f,s,g,m=this[0],k=0,q=null;if(a===h){if(this.length&&(q=l.data(m),1===m.nodeType&&!l._data(m,"parsedAttrs"))){f=m.attributes;for(g=f.length;k<g;k++)s=f[k].name,s.indexOf("data-")||(s=l.camelCase(s.substring(5)),e(m,s,q[s]));l._data(m,"parsedAttrs",!0)}return q}if("object"===typeof a)return this.each(function(){l.data(this,a)});
d=a.split(".",2);d[1]=d[1]?"."+d[1]:"";b=d[1]+"!";return l.access(this,function(c){if(c===h)return q=this.triggerHandler("getData"+b,[d[0]]),q===h&&m&&(q=l.data(m,a),q=e(m,a,q)),q===h&&d[1]?this.data(d[0]):q;d[1]=c;this.each(function(){var f=l(this);f.triggerHandler("setData"+b,d);l.data(this,a,c);f.triggerHandler("changeData"+b,d)})},null,c,1<arguments.length,null,!1)},removeData:function(a){return this.each(function(){l.removeData(this,a)})}});l.extend({queue:function(a,c,d){var b;if(a)return c=
(c||"fx")+"queue",b=l._data(a,c),d&&(!b||l.isArray(d)?b=l._data(a,c,l.makeArray(d)):b.push(d)),b||[]},dequeue:function(a,c){c=c||"fx";var d=l.queue(a,c),b=d.length,f=d.shift(),s=l._queueHooks(a,c),e=function(){l.dequeue(a,c)};"inprogress"===f&&(f=d.shift(),b--);f&&("fx"===c&&d.unshift("inprogress"),delete s.stop,f.call(a,e,s));!b&&s&&s.empty.fire()},_queueHooks:function(a,c){var d=c+"queueHooks";return l._data(a,d)||l._data(a,d,{empty:l.Callbacks("once memory").add(function(){l.removeData(a,c+"queue",
!0);l.removeData(a,d,!0)})})}});l.fn.extend({queue:function(a,c){var d=2;"string"!==typeof a&&(c=a,a="fx",d--);return arguments.length<d?l.queue(this[0],a):c===h?this:this.each(function(){var d=l.queue(this,a,c);l._queueHooks(this,a);"fx"===a&&"inprogress"!==d[0]&&l.dequeue(this,a)})},dequeue:function(a){return this.each(function(){l.dequeue(this,a)})},delay:function(a,c){a=l.fx?l.fx.speeds[a]||a:a;return this.queue(c||"fx",function(c,d){var b=setTimeout(c,a);d.stop=function(){clearTimeout(b)}})},
clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,b=1,f=l.Deferred(),s=this,e=this.length,g=function(){--b||f.resolveWith(s,[s])};"string"!==typeof a&&(c=a,a=h);for(a=a||"fx";e--;)(d=l._data(s[e],a+"queueHooks"))&&d.empty&&(b++,d.empty.add(g));g();return f.promise(c)}});var ya,fb,gb,Da=/[\t\r\n]/g,hb=/\r/g,ua=/^(?:button|input)$/i,Lb=/^(?:button|input|object|select|textarea)$/i,tb=/^a(?:rea|)$/i,La=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
ib=l.support.getSetAttribute;l.fn.extend({attr:function(a,c){return l.access(this,l.attr,a,c,1<arguments.length)},removeAttr:function(a){return this.each(function(){l.removeAttr(this,a)})},prop:function(a,c){return l.access(this,l.prop,a,c,1<arguments.length)},removeProp:function(a){a=l.propFix[a]||a;return this.each(function(){try{this[a]=h,delete this[a]}catch(c){}})},addClass:function(a){var c,d,b,f,s,e,g;if(l.isFunction(a))return this.each(function(c){l(this).addClass(a.call(this,c,this.className))});
if(a&&"string"===typeof a)for(c=a.split(Z),d=0,b=this.length;d<b;d++)if(f=this[d],1===f.nodeType)if(f.className||1!==c.length){s=" "+f.className+" ";e=0;for(g=c.length;e<g;e++)0>s.indexOf(" "+c[e]+" ")&&(s+=c[e]+" ");f.className=l.trim(s)}else f.className=a;return this},removeClass:function(a){var c,d,b,f,s,e,g;if(l.isFunction(a))return this.each(function(c){l(this).removeClass(a.call(this,c,this.className))});if(a&&"string"===typeof a||a===h)for(c=(a||"").split(Z),e=0,g=this.length;e<g;e++)if(b=
this[e],1===b.nodeType&&b.className){d=(" "+b.className+" ").replace(Da," ");f=0;for(s=c.length;f<s;f++)for(;0<=d.indexOf(" "+c[f]+" ");)d=d.replace(" "+c[f]+" "," ");b.className=a?l.trim(d):""}return this},toggleClass:function(a,c){var d=typeof a,b="boolean"===typeof c;return l.isFunction(a)?this.each(function(d){l(this).toggleClass(a.call(this,d,this.className,c),c)}):this.each(function(){if("string"===d)for(var f,s=0,e=l(this),g=c,m=a.split(Z);f=m[s++];)g=b?g:!e.hasClass(f),e[g?"addClass":"removeClass"](f);
else if("undefined"===d||"boolean"===d)this.className&&l._data(this,"__className__",this.className),this.className=this.className||!1===a?"":l._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if(1===this[c].nodeType&&0<=(" "+this[c].className+" ").replace(Da," ").indexOf(a))return!0;return!1},val:function(a){var c,d,b,f=this[0];if(arguments.length)return b=l.isFunction(a),this.each(function(d){var f=l(this);1===this.nodeType&&(d=b?a.call(this,d,
f.val()):a,null==d?d="":"number"===typeof d?d+="":l.isArray(d)&&(d=l.map(d,function(a){return null==a?"":a+""})),c=l.valHooks[this.type]||l.valHooks[this.nodeName.toLowerCase()],c&&"set"in c&&c.set(this,d,"value")!==h||(this.value=d))});if(f){if((c=l.valHooks[f.type]||l.valHooks[f.nodeName.toLowerCase()])&&"get"in c&&(d=c.get(f,"value"))!==h)return d;d=f.value;return"string"===typeof d?d.replace(hb,""):null==d?"":d}}});l.extend({valHooks:{option:{get:function(a){var c=a.attributes.value;return!c||
c.specified?a.value:a.text}},select:{get:function(a){for(var c,d=a.options,b=a.selectedIndex,f=(a="select-one"===a.type||0>b)?null:[],s=a?b+1:d.length,e=0>b?s:a?b:0;e<s;e++)if(c=d[e],!(!c.selected&&e!==b||(l.support.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&l.nodeName(c.parentNode,"optgroup"))){c=l(c).val();if(a)return c;f.push(c)}return f},set:function(a,c){var d=l.makeArray(c);l(a).find("option").each(function(){this.selected=0<=l.inArray(l(this).val(),d)});
d.length||(a.selectedIndex=-1);return d}}},attrFn:{},attr:function(a,c,d,b){var f,s,e=a.nodeType;if(a&&3!==e&&8!==e&&2!==e){if(b&&l.isFunction(l.fn[c]))return l(a)[c](d);if("undefined"===typeof a.getAttribute)return l.prop(a,c,d);if(b=1!==e||!l.isXMLDoc(a))c=c.toLowerCase(),s=l.attrHooks[c]||(La.test(c)?fb:ya);if(d!==h)if(null===d)l.removeAttr(a,c);else{if(s&&"set"in s&&b&&(f=s.set(a,d,c))!==h)return f;a.setAttribute(c,d+"");return d}else{if(s&&"get"in s&&b&&null!==(f=s.get(a,c)))return f;f=a.getAttribute(c);
return null===f?h:f}}},removeAttr:function(a,c){var d,b,f,s,e=0;if(c&&1===a.nodeType)for(b=c.split(Z);e<b.length;e++)if(f=b[e])d=l.propFix[f]||f,(s=La.test(f))||l.attr(a,f,""),a.removeAttribute(ib?f:d),s&&d in a&&(a[d]=!1)},attrHooks:{type:{set:function(a,c){if(ua.test(a.nodeName)&&a.parentNode)l.error("type property can't be changed");else if(!l.support.radioValue&&"radio"===c&&l.nodeName(a,"input")){var d=a.value;a.setAttribute("type",c);d&&(a.value=d);return c}}},value:{get:function(a,c){return ya&&
l.nodeName(a,"button")?ya.get(a,c):c in a?a.value:null},set:function(a,c,d){if(ya&&l.nodeName(a,"button"))return ya.set(a,c,d);a.value=c}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var b,f,s;s=a.nodeType;if(a&&3!==s&&8!==s&&2!==s){if(s=1!==s||!l.isXMLDoc(a))c=
l.propFix[c]||c,f=l.propHooks[c];return d!==h?f&&"set"in f&&(b=f.set(a,d,c))!==h?b:a[c]=d:f&&"get"in f&&null!==(b=f.get(a,c))?b:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):Lb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:h}}}});fb={get:function(a,c){var d,b=l.prop(a,c);return!0===b||"boolean"!==typeof b&&(d=a.getAttributeNode(c))&&!1!==d.nodeValue?c.toLowerCase():h},set:function(a,c,d){!1===c?l.removeAttr(a,d):(c=l.propFix[d]||
d,c in a&&(a[c]=!0),a.setAttribute(d,d.toLowerCase()));return d}};ib||(gb={name:!0,id:!0,coords:!0},ya=l.valHooks.button={get:function(a,c){var d;return(d=a.getAttributeNode(c))&&(gb[c]?""!==d.value:d.specified)?d.value:h},set:function(a,c,d){var b=a.getAttributeNode(d);b||(b=H.createAttribute(d),a.setAttributeNode(b));return b.value=c+""}},l.each(["width","height"],function(a,c){l.attrHooks[c]=l.extend(l.attrHooks[c],{set:function(a,d){if(""===d)return a.setAttribute(c,"auto"),d}})}),l.attrHooks.contenteditable=
{get:ya.get,set:function(a,c,d){""===c&&(c="false");ya.set(a,c,d)}});l.support.hrefNormalized||l.each(["href","src","width","height"],function(a,c){l.attrHooks[c]=l.extend(l.attrHooks[c],{get:function(a){a=a.getAttribute(c,2);return null===a?h:a}})});l.support.style||(l.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||h},set:function(a,c){return a.style.cssText=c+""}});l.support.optSelected||(l.propHooks.selected=l.extend(l.propHooks.selected,{get:function(a){if(a=a.parentNode)a.selectedIndex,
a.parentNode&&a.parentNode.selectedIndex;return null}}));l.support.enctype||(l.propFix.enctype="encoding");l.support.checkOn||l.each(["radio","checkbox"],function(){l.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}});l.each(["radio","checkbox"],function(){l.valHooks[this]=l.extend(l.valHooks[this],{set:function(a,c){if(l.isArray(c))return a.checked=0<=l.inArray(l(a).val(),c)}})});var Ya=/^(?:textarea|input|select)$/i,Ma=/^([^\.]*|)(?:\.(.+)|)$/,ub=/(?:^|\s)hover(\.\S+|)\b/,
Na=/^key/,Za=/^(?:mouse|contextmenu)|click/,vb=/^(?:focusinfocus|focusoutblur)$/,jb=function(a){return l.event.special.hover?a:a.replace(ub,"mouseenter$1 mouseleave$1")};l.event={add:function(a,c,d,b,f){var s,e,g,m,k,q,D,p,n;if(3!==a.nodeType&&8!==a.nodeType&&c&&d&&(s=l._data(a))){d.handler&&(D=d,d=D.handler,f=D.selector);d.guid||(d.guid=l.guid++);g=s.events;g||(s.events=g={});e=s.handle;e||(s.handle=e=function(a){return"undefined"===typeof l||a&&l.event.triggered===a.type?h:l.event.dispatch.apply(e.elem,
arguments)},e.elem=a);c=l.trim(jb(c)).split(" ");for(s=0;s<c.length;s++)m=Ma.exec(c[s])||[],k=m[1],q=(m[2]||"").split(".").sort(),n=l.event.special[k]||{},k=(f?n.delegateType:n.bindType)||k,n=l.event.special[k]||{},m=l.extend({type:k,origType:m[1],data:b,handler:d,guid:d.guid,selector:f,needsContext:f&&l.expr.match.needsContext.test(f),namespace:q.join(".")},D),p=g[k],p||(p=g[k]=[],p.delegateCount=0,n.setup&&!1!==n.setup.call(a,b,q,e)||(a.addEventListener?a.addEventListener(k,e,!1):a.attachEvent&&
a.attachEvent("on"+k,e))),n.add&&(n.add.call(a,m),m.handler.guid||(m.handler.guid=d.guid)),f?p.splice(p.delegateCount++,0,m):p.push(m),l.event.global[k]=!0;a=null}},global:{},remove:function(a,c,d,b,f){var s,e,g,m,k,h,q,D,p,n,Y=l.hasData(a)&&l._data(a);if(Y&&(q=Y.events)){c=l.trim(jb(c||"")).split(" ");for(s=0;s<c.length;s++)if(e=Ma.exec(c[s])||[],g=m=e[1],e=e[2],g){D=l.event.special[g]||{};g=(b?D.delegateType:D.bindType)||g;p=q[g]||[];k=p.length;e=e?new RegExp("(^|\\.)"+e.split(".").sort().join("\\.(?:.*\\.|)")+
"(\\.|$)"):null;for(h=0;h<p.length;h++)n=p[h],!f&&m!==n.origType||d&&d.guid!==n.guid||e&&!e.test(n.namespace)||b&&b!==n.selector&&("**"!==b||!n.selector)||(p.splice(h--,1),n.selector&&p.delegateCount--,D.remove&&D.remove.call(a,n));0===p.length&&k!==p.length&&(D.teardown&&!1!==D.teardown.call(a,e,Y.handle)||l.removeEvent(a,g,Y.handle),delete q[g])}else for(g in q)l.event.remove(a,g+c[s],d,b,!0);l.isEmptyObject(q)&&(delete Y.handle,l.removeData(a,"events",!0))}},customEvent:{getData:!0,setData:!0,
changeData:!0},trigger:function(c,d,b,f){if(!b||3!==b.nodeType&&8!==b.nodeType){var s,e,g,m,k,q,D=c.type||c;g=[];if(!vb.test(D+l.event.triggered)&&(0<=D.indexOf("!")&&(D=D.slice(0,-1),s=!0),0<=D.indexOf(".")&&(g=D.split("."),D=g.shift(),g.sort()),b&&!l.event.customEvent[D]||l.event.global[D]))if(c="object"===typeof c?c[l.expando]?c:new l.Event(D,c):new l.Event(D),c.type=D,c.isTrigger=!0,c.exclusive=s,c.namespace=g.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):
null,g=0>D.indexOf(":")?"on"+D:"",b){if(c.result=h,c.target||(c.target=b),d=null!=d?l.makeArray(d):[],d.unshift(c),m=l.event.special[D]||{},!m.trigger||!1!==m.trigger.apply(b,d)){q=[[b,m.bindType||D]];if(!f&&!m.noBubble&&!l.isWindow(b)){k=m.delegateType||D;s=vb.test(k+D)?b:b.parentNode;for(e=b;s;s=s.parentNode)q.push([s,k]),e=s;e===(b.ownerDocument||H)&&q.push([e.defaultView||e.parentWindow||a,k])}for(e=0;e<q.length&&!c.isPropagationStopped();e++)s=q[e][0],c.type=q[e][1],(k=(l._data(s,"events")||
{})[c.type]&&l._data(s,"handle"))&&k.apply(s,d),(k=g&&s[g])&&l.acceptData(s)&&k.apply&&!1===k.apply(s,d)&&c.preventDefault();c.type=D;f||c.isDefaultPrevented()||m._default&&!1!==m._default.apply(b.ownerDocument,d)||"click"===D&&l.nodeName(b,"a")||!l.acceptData(b)||!g||!b[D]||("focus"===D||"blur"===D)&&0===c.target.offsetWidth||l.isWindow(b)||((e=b[g])&&(b[g]=null),l.event.triggered=D,b[D](),l.event.triggered=h,e&&(b[g]=e));return c.result}}else for(e in b=l.cache,b)b[e].events&&b[e].events[D]&&l.event.trigger(c,
d,b[e].handle.elem,!0)}},dispatch:function(c){c=l.event.fix(c||a.event);var d,b,f,s,e,g,m=(l._data(this,"events")||{})[c.type]||[],k=m.delegateCount,q=da.call(arguments),D=!c.exclusive&&!c.namespace,p=l.event.special[c.type]||{},n=[];q[0]=c;c.delegateTarget=this;if(!p.preDispatch||!1!==p.preDispatch.call(this,c)){if(k&&(!c.button||"click"!==c.type))for(b=c.target;b!=this;b=b.parentNode||this)if(!0!==b.disabled||"click"!==c.type){s={};e=[];for(d=0;d<k;d++)f=m[d],g=f.selector,s[g]===h&&(s[g]=f.needsContext?
0<=l(g,this).index(b):l.find(g,this,null,[b]).length),s[g]&&e.push(f);e.length&&n.push({elem:b,matches:e})}m.length>k&&n.push({elem:this,matches:m.slice(k)});for(d=0;d<n.length&&!c.isPropagationStopped();d++)for(s=n[d],c.currentTarget=s.elem,b=0;b<s.matches.length&&!c.isImmediatePropagationStopped();b++)if(f=s.matches[b],D||!c.namespace&&!f.namespace||c.namespace_re&&c.namespace_re.test(f.namespace))c.data=f.data,c.handleObj=f,f=((l.event.special[f.origType]||{}).handle||f.handler).apply(s.elem,q),
f!==h&&(c.result=f,!1===f&&(c.preventDefault(),c.stopPropagation()));p.postDispatch&&p.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,c){null==a.which&&(a.which=null!=c.charCode?c.charCode:c.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter:function(a,c){var d,b,f=c.button,s=c.fromElement;null==a.pageX&&null!=c.clientX&&(d=a.target.ownerDocument||H,b=d.documentElement,d=d.body,a.pageX=c.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0),a.pageY=c.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0));!a.relatedTarget&&s&&(a.relatedTarget=s===a.target?c.toElement:s);a.which||f===h||(a.which=f&1?1:f&2?3:f&4?2:0);return a}},fix:function(a){if(a[l.expando])return a;var c,
d,b=a,f=l.event.fixHooks[a.type]||{},s=f.props?this.props.concat(f.props):this.props;a=l.Event(b);for(c=s.length;c;)d=s[--c],a[d]=b[d];a.target||(a.target=b.srcElement||H);3===a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey=!!a.metaKey;return f.filter?f.filter(a,b):a},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,c,d){l.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,c){this.onbeforeunload===c&&(this.onbeforeunload=
null)}}},simulate:function(a,c,d,b){a=l.extend(new l.Event,d,{type:a,isSimulated:!0,originalEvent:{}});b?l.event.trigger(a,null,c):l.event.dispatch.call(c,a);a.isDefaultPrevented()&&d.preventDefault()}};l.event.handle=l.event.dispatch;l.removeEvent=H.removeEventListener?function(a,c,d){a.removeEventListener&&a.removeEventListener(c,d,!1)}:function(a,c,d){c="on"+c;a.detachEvent&&("undefined"===typeof a[c]&&(a[c]=null),a.detachEvent(c,d))};l.Event=function(a,c){if(!(this instanceof l.Event))return new l.Event(a,
c);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?d:k):this.type=a;c&&l.extend(this,c);this.timeStamp=a&&a.timeStamp||l.now();this[l.expando]=!0};l.Event.prototype={preventDefault:function(){this.isDefaultPrevented=d;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=d;var a=this.originalEvent;a&&(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=d;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};l.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,c){l.event.special[a]={delegateType:c,bindType:c,handle:function(a){var d,b=a.relatedTarget,f=a.handleObj;if(!b||b!==this&&!l.contains(this,b))a.type=f.origType,d=f.handler.apply(this,arguments),a.type=c;return d}}});l.support.submitBubbles||
(l.event.special.submit={setup:function(){if(l.nodeName(this,"form"))return!1;l.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=l.nodeName(a,"input")||l.nodeName(a,"button")?a.form:h)&&!l._data(a,"_submit_attached")&&(l.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),l._data(a,"_submit_attached",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&l.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(l.nodeName(this,
"form"))return!1;l.event.remove(this,"._submit")}});l.support.changeBubbles||(l.event.special.change={setup:function(){if(Ya.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)l.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),l.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);l.event.simulate("change",this,a,!0)});return!1}l.event.add(this,"beforeactivate._change",
function(a){a=a.target;Ya.test(a.nodeName)&&!l._data(a,"_change_attached")&&(l.event.add(a,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||l.event.simulate("change",this.parentNode,a,!0)}),l._data(a,"_change_attached",!0))})},handle:function(a){var c=a.target;if(this!==c||a.isSimulated||a.isTrigger||"radio"!==c.type&&"checkbox"!==c.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){l.event.remove(this,"._change");return!Ya.test(this.nodeName)}});
l.support.focusinBubbles||l.each({focus:"focusin",blur:"focusout"},function(a,c){var d=0,b=function(a){l.event.simulate(c,a.target,l.event.fix(a),!0)};l.event.special[c]={setup:function(){0===d++&&H.addEventListener(a,b,!0)},teardown:function(){0===--d&&H.removeEventListener(a,b,!0)}}});l.fn.extend({on:function(a,c,d,b,f){var s,e;if("object"===typeof a){"string"!==typeof c&&(d=d||c,c=h);for(e in a)this.on(e,c,d,a[e],f);return this}null==d&&null==b?(b=c,d=c=h):null==b&&("string"===typeof c?(b=d,d=
h):(b=d,d=c,c=h));if(!1===b)b=k;else if(!b)return this;1===f&&(s=b,b=function(a){l().off(a);return s.apply(this,arguments)},b.guid=s.guid||(s.guid=l.guid++));return this.each(function(){l.event.add(this,a,b,d,c)})},one:function(a,c,d,b){return this.on(a,c,d,b,1)},off:function(a,c,d){var b;if(a&&a.preventDefault&&a.handleObj)return b=a.handleObj,l(a.delegateTarget).off(b.namespace?b.origType+"."+b.namespace:b.origType,b.selector,b.handler),this;if("object"===typeof a){for(b in a)this.off(b,c,a[b]);
return this}if(!1===c||"function"===typeof c)d=c,c=h;!1===d&&(d=k);return this.each(function(){l.event.remove(this,a,d,c)})},bind:function(a,c,d){return this.on(a,null,c,d)},unbind:function(a,c){return this.off(a,null,c)},live:function(a,c,d){l(this.context).on(a,this.selector,c,d);return this},die:function(a,c){l(this.context).off(a,this.selector||"**",c);return this},delegate:function(a,c,d,b){return this.on(c,a,d,b)},undelegate:function(a,c,d){return 1===arguments.length?this.off(a,"**"):this.off(c,
a||"**",d)},trigger:function(a,c){return this.each(function(){l.event.trigger(a,c,this)})},triggerHandler:function(a,c){if(this[0])return l.event.trigger(a,c,this[0],!0)},toggle:function(a){var c=arguments,d=a.guid||l.guid++,b=0,f=function(d){var f=(l._data(this,"lastToggle"+a.guid)||0)%b;l._data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return c[f].apply(this,arguments)||!1};for(f.guid=d;b<c.length;)c[b++].guid=d;return this.click(f)},hover:function(a,c){return this.mouseenter(a).mouseleave(c||
a)}});l.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,c){l.fn[c]=function(a,d){null==d&&(d=a,a=null);return 0<arguments.length?this.on(c,null,a,d):this.trigger(c)};Na.test(c)&&(l.event.fixHooks[c]=l.event.keyHooks);Za.test(c)&&(l.event.fixHooks[c]=l.event.mouseHooks)});(function(a,c){function d(a,c,b,f){b=b||[];c=c||
u;var s,e,g,m,k=c.nodeType;if(!a||"string"!==typeof a)return b;if(1!==k&&9!==k)return[];g=E(c);if(!g&&!f&&(s=H.exec(a)))if(m=s[1])if(9===k)if((e=c.getElementById(m))&&e.parentNode){if(e.id===m)return b.push(e),b}else return b;else{if(c.ownerDocument&&(e=c.ownerDocument.getElementById(m))&&la(c,e)&&e.id===m)return b.push(e),b}else{if(s[2])return L.apply(b,Aa.call(c.getElementsByTagName(a),0)),b;if((m=s[3])&&cb&&c.getElementsByClassName)return L.apply(b,Aa.call(c.getElementsByClassName(m),0)),b}return n(a.replace(B,
"$1"),c,b,f,g)}function b(a){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===a}}function f(a){return function(c){var d=c.nodeName.toLowerCase();return("input"===d||"button"===d)&&c.type===a}}function s(a){return y(function(c){c=+c;return y(function(d,b){for(var f,s=a([],d.length,c),e=s.length;e--;)d[f=s[e]]&&(d[f]=!(b[f]=d[f]))})})}function e(a,c,d){if(a===c)return d;for(a=a.nextSibling;a;){if(a===c)return-1;a=a.nextSibling}return 1}function g(a,c){var b,f,s,e,m,k,l;if(m=Cb[v][a+
" "])return c?0:m.slice(0);m=a;k=[];for(l=r.preFilter;m;){if(!b||(f=ra.exec(m)))f&&(m=m.slice(f[0].length)||m),k.push(s=[]);b=!1;if(f=Fa.exec(m))s.push(b=new C(f.shift())),m=m.slice(b.length),b.type=f[0].replace(B," ");for(e in r.filter)!(f=G[e].exec(m))||l[e]&&!(f=l[e](f))||(s.push(b=new C(f.shift())),m=m.slice(b.length),b.type=e,b.matches=f);if(!b)break}return c?m.length:m?d.error(a):Cb(a,k).slice(0)}function m(a,c,d){var b=c.dir,f=d&&"parentNode"===c.dir,s=w++;return c.first?function(c,d,s){for(;c=
c[b];)if(f||1===c.nodeType)return a(c,d,s)}:function(c,d,e){if(!e)for(var g,m=M+" "+s+" ",k=m+A;c=c[b];){if(f||1===c.nodeType){if((g=c[v])===k)return c.sizset;if("string"===typeof g&&0===g.indexOf(m)){if(c.sizset)return c}else{c[v]=k;if(a(c,d,e))return c.sizset=!0,c;c.sizset=!1}}}else for(;c=c[b];)if((f||1===c.nodeType)&&a(c,d,e))return c}}function k(a){return 1<a.length?function(c,d,b){for(var f=a.length;f--;)if(!a[f](c,d,b))return!1;return!0}:a[0]}function h(a,c,d,b,f){for(var s,e=[],g=0,m=a.length,
k=null!=c;g<m;g++)if(s=a[g])if(!d||d(s,b,f))e.push(s),k&&c.push(g);return e}function q(a,c,b,f,s,e){f&&!f[v]&&(f=q(f));s&&!s[v]&&(s=q(s,e));return y(function(e,g,m,k){var l,q,D=[],p=[],n=g.length,Y;if(!(Y=e)){Y=c||"*";for(var A=m.nodeType?[m]:m,r=[],ca=0,ma=A.length;ca<ma;ca++)d(Y,A[ca],r);Y=r}Y=!a||!e&&c?Y:h(Y,D,a,m,k);A=b?s||(e?a:n||f)?[]:g:Y;b&&b(Y,A,m,k);if(f)for(l=h(A,p),f(l,[],m,k),m=l.length;m--;)if(q=l[m])A[p[m]]=!(Y[p[m]]=q);if(e){if(s||a){if(s){l=[];for(m=A.length;m--;)(q=A[m])&&l.push(Y[m]=
q);s(null,A=[],l,k)}for(m=A.length;m--;)(q=A[m])&&-1<(l=s?I.call(e,q):D[m])&&(e[l]=!(g[l]=q))}}else A=h(A===g?A.splice(n,A.length):A),s?s(null,g,A,k):L.apply(g,A)})}function D(a){var c,d,b,f=a.length,s=r.relative[a[0].type];d=s||r.relative[" "];for(var e=s?1:0,g=m(function(a){return a===c},d,!0),l=m(function(a){return-1<I.call(c,a)},d,!0),h=[function(a,d,b){return!s&&(b||d!==x)||((c=d).nodeType?g(a,d,b):l(a,d,b))}];e<f;e++)if(d=r.relative[a[e].type])h=[m(k(h),d)];else{d=r.filter[a[e].type].apply(null,
a[e].matches);if(d[v]){for(b=++e;b<f&&!r.relative[a[b].type];b++);return q(1<e&&k(h),1<e&&a.slice(0,e-1).join("").replace(B,"$1"),d,e<b&&D(a.slice(e,b)),b<f&&D(a=a.slice(b)),b<f&&a.join(""))}h.push(d)}return k(h)}function p(a,c){var b=0<c.length,f=0<a.length,s=function(e,g,m,k,l){var q,D,p=[],n=0,Y="0",ca=e&&[],ma=null!=l,t=x,E=e||f&&r.find.TAG("*",l&&g.parentNode||g),la=M+=null==t?1:Math.E;ma&&(x=g!==u&&g,A=s.el);for(;null!=(l=E[Y]);Y++){if(f&&l){for(q=0;D=a[q];q++)if(D(l,g,m)){k.push(l);break}ma&&
(M=la,A=++s.el)}b&&((l=!D&&l)&&n--,e&&ca.push(l))}n+=Y;if(b&&Y!==n){for(q=0;D=c[q];q++)D(ca,p,g,m);if(e){if(0<n)for(;Y--;)ca[Y]||p[Y]||(p[Y]=Ra.call(k));p=h(p)}L.apply(k,p);ma&&!e&&0<p.length&&1<n+c.length&&d.uniqueSort(k)}ma&&(M=la,x=t);return ca};s.el=0;return b?y(s):s}function n(a,c,d,b,f){var s,e,m,k,l=g(a);if(!b&&1===l.length){e=l[0]=l[0].slice(0);if(2<e.length&&"ID"===(m=e[0]).type&&9===c.nodeType&&!f&&r.relative[e[1].type]){c=r.find.ID(m.matches[0].replace(J,""),c,f)[0];if(!c)return d;a=a.slice(e.shift().length)}for(s=
G.POS.test(a)?-1:e.length-1;0<=s;s--){m=e[s];if(r.relative[k=m.type])break;if(k=r.find[k])if(b=k(m.matches[0].replace(J,""),R.test(e[0].type)&&c.parentNode||c,f)){e.splice(s,1);a=b.length&&e.join("");if(!a)return L.apply(d,Aa.call(b,0)),d;break}}}ia(a,l)(b,c,f,d,R.test(a));return d}function Y(){}var A,ca,r,t,E,la,ia,U,T,x,z=!0,v=("sizcache"+Math.random()).replace(".",""),C=String,u=a.document,P=u.documentElement,M=0,w=0,Ra=[].pop,L=[].push,Aa=[].slice,I=[].indexOf||function(a){for(var c=0,d=this.length;c<
d;c++)if(this[c]===a)return c;return-1},y=function(a,c){a[v]=null==c||c;return a},Ea=function(){var a={},c=[];return y(function(d,b){c.push(d)>r.cacheLength&&delete a[c.shift()];return a[d+" "]=b},a)},K=Ea(),Cb=Ea(),F=Ea(),Ea="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w#")+")|)|)[\\x20\\t\\r\\n\\f]*\\]",pa=":((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+
Ea+")|[^:]|\\\\.)*|.*))\\)|)",B=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),ra=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Fa=/^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,ba=new RegExp(pa),H=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,R=/[\x20\t\r\n\f]*[+~]/,Q=/h\d/i,Bb=/input|select|textarea|button/i,J=/\\(?!\\)/g,G={ID:/^#((?:\\.|[-\w]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[-\w]|[^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[-\w]|[^\x00-\xa0])+)['"]?\]/,TAG:new RegExp("^("+
"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:new RegExp("^"+Ea),PSEUDO:new RegExp("^"+pa),POS:/:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i,CHILD:/^:(only|nth|first|last)-child(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},
qa=function(a){var c=u.createElement("div");try{return a(c)}catch(d){return!1}finally{}},Ea=qa(function(a){a.appendChild(u.createComment(""));return!a.getElementsByTagName("*").length}),S=qa(function(a){a.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";return a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"===a.firstChild.getAttribute("href")}),ga=qa(function(a){a.innerHTML="\x3cselect\x3e\x3c/select\x3e";a=typeof a.lastChild.getAttribute("multiple");return"boolean"!==a&&"string"!==a}),
cb=qa(function(a){a.innerHTML="\x3cdiv class\x3d'hidden e'\x3e\x3c/div\x3e\x3cdiv class\x3d'hidden'\x3e\x3c/div\x3e";if(!a.getElementsByClassName||!a.getElementsByClassName("e").length)return!1;a.lastChild.className="e";return 2===a.getElementsByClassName("e").length}),V=qa(function(a){a.id=v+0;a.innerHTML="\x3ca name\x3d'"+v+"'\x3e\x3c/a\x3e\x3cdiv name\x3d'"+v+"'\x3e\x3c/div\x3e";P.insertBefore(a,P.firstChild);var c=u.getElementsByName&&u.getElementsByName(v).length===2+u.getElementsByName(v+0).length;
ca=!u.getElementById(v);P.removeChild(a);return c});try{Aa.call(P.childNodes,0)[0].nodeType}catch(O){Aa=function(a){for(var c,d=[];c=this[a];a++)d.push(c);return d}}d.matches=function(a,c){return d(a,null,null,c)};d.matchesSelector=function(a,c){return 0<d(c,null,null,[a]).length};t=d.getText=function(a){var c,d="",b=0;if(c=a.nodeType)if(1===c||9===c||11===c){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)d+=t(a)}else{if(3===c||4===c)return a.nodeValue}else for(;c=
a[b];b++)d+=t(c);return d};E=d.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};la=d.contains=P.contains?function(a,c){var d=9===a.nodeType?a.documentElement:a,b=c&&c.parentNode;return a===b||!!(b&&1===b.nodeType&&d.contains&&d.contains(b))}:P.compareDocumentPosition?function(a,c){return c&&!!(a.compareDocumentPosition(c)&16)}:function(a,c){for(;c=c.parentNode;)if(c===a)return!0;return!1};d.attr=function(a,c){var d,b=E(a);b||(c=c.toLowerCase());return(d=
r.attrHandle[c])?d(a):b||ga?a.getAttribute(c):(d=a.getAttributeNode(c))?"boolean"===typeof a[c]?a[c]?c:null:d.specified?d.value:null:null};r=d.selectors={cacheLength:50,createPseudo:y,match:G,attrHandle:S?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:ca?function(a,c,d){if("undefined"!==typeof c.getElementById&&!d)return(a=c.getElementById(a))&&a.parentNode?[a]:[]}:function(a,d,b){if("undefined"!==typeof d.getElementById&&!b)return(d=
d.getElementById(a))?d.id===a||"undefined"!==typeof d.getAttributeNode&&d.getAttributeNode("id").value===a?[d]:c:[]},TAG:Ea?function(a,c){if("undefined"!==typeof c.getElementsByTagName)return c.getElementsByTagName(a)}:function(a,c){var d=c.getElementsByTagName(a);if("*"===a){for(var b,f=[],s=0;b=d[s];s++)1===b.nodeType&&f.push(b);return f}return d},NAME:V&&function(a,c){if("undefined"!==typeof c.getElementsByName)return c.getElementsByName(name)},CLASS:cb&&function(a,c,d){if("undefined"!==typeof c.getElementsByClassName&&
!d)return c.getElementsByClassName(a)}},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(J,"");a[3]=(a[4]||a[5]||"").replace(J,"");"~\x3d"===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1]?(a[2]||d.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*("even"===a[2]||"odd"===a[2])),a[4]=+(a[6]+a[7]||"odd"===a[2])):a[2]&&d.error(a[0]);
return a},PSEUDO:function(a){var c,d;if(G.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(c=a[4])ba.test(c)&&(d=g(c,!0))&&(d=c.indexOf(")",c.length-d)-c.length)&&(c=c.slice(0,d),a[0]=a[0].slice(0,d)),a[2]=c;return a.slice(0,3)}},filter:{ID:ca?function(a){a=a.replace(J,"");return function(c){return c.getAttribute("id")===a}}:function(a){a=a.replace(J,"");return function(c){return(c="undefined"!==typeof c.getAttributeNode&&c.getAttributeNode("id"))&&c.value===a}},TAG:function(a){if("*"===a)return function(){return!0};
a=a.replace(J,"").toLowerCase();return function(c){return c.nodeName&&c.nodeName.toLowerCase()===a}},CLASS:function(a){var c=K[v][a+" "];return c||(c=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&K(a,function(a){return c.test(a.className||"undefined"!==typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,b){return function(f,s){var e=d.attr(f,a);if(null==e)return"!\x3d"===c;if(!c)return!0;e+="";return"\x3d"===c?e===b:"!\x3d"===c?e!==b:"^\x3d"===c?b&&0===e.indexOf(b):
"*\x3d"===c?b&&-1<e.indexOf(b):"$\x3d"===c?b&&e.substr(e.length-b.length)===b:"~\x3d"===c?-1<(" "+e+" ").indexOf(b):"|\x3d"===c?e===b||e.substr(0,b.length+1)===b+"-":!1}},CHILD:function(a,c,d,b){return"nth"===a?function(a){var c,f;c=a.parentNode;if(1===d&&0===b)return!0;if(c)for(f=0,c=c.firstChild;c&&(1!==c.nodeType||(f++,a!==c));c=c.nextSibling);f-=b;return f===d||0===f%d&&0<=f/d}:function(c){var d=c;switch(a){case "only":case "first":for(;d=d.previousSibling;)if(1===d.nodeType)return!1;if("first"===
a)return!0;d=c;case "last":for(;d=d.nextSibling;)if(1===d.nodeType)return!1;return!0}}},PSEUDO:function(a,c){var b,f=r.pseudos[a]||r.setFilters[a.toLowerCase()]||d.error("unsupported pseudo: "+a);return f[v]?f(c):1<f.length?(b=[a,a,"",c],r.setFilters.hasOwnProperty(a.toLowerCase())?y(function(a,d){for(var b,s=f(a,c),e=s.length;e--;)b=I.call(a,s[e]),a[b]=!(d[b]=s[e])}):function(a){return f(a,0,b)}):f}},pseudos:{not:y(function(a){var c=[],d=[],b=ia(a.replace(B,"$1"));return b[v]?y(function(a,c,d,f){f=
b(a,null,f,[]);for(var s=a.length;s--;)if(d=f[s])a[s]=!(c[s]=d)}):function(a,f,s){c[0]=a;b(c,null,s,d);return!d.pop()}}),has:y(function(a){return function(c){return 0<d(a,c).length}}),contains:y(function(a){return function(c){return-1<(c.textContent||c.innerText||t(c)).indexOf(a)}}),enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var c=a.nodeName.toLowerCase();return"input"===c&&!!a.checked||"option"===c&&!!a.selected},selected:function(a){a.parentNode&&
a.parentNode.selectedIndex;return!0===a.selected},parent:function(a){return!r.pseudos.empty(a)},empty:function(a){var c;for(a=a.firstChild;a;){if("@"<a.nodeName||3===(c=a.nodeType)||4===c)return!1;a=a.nextSibling}return!0},header:function(a){return Q.test(a.nodeName)},text:function(a){var c,d;return"input"===a.nodeName.toLowerCase()&&"text"===(c=a.type)&&(null==(d=a.getAttribute("type"))||d.toLowerCase()===c)},radio:b("radio"),checkbox:b("checkbox"),file:b("file"),password:b("password"),image:b("image"),
submit:f("submit"),reset:f("reset"),button:function(a){var c=a.nodeName.toLowerCase();return"input"===c&&"button"===a.type||"button"===c},input:function(a){return Bb.test(a.nodeName)},focus:function(a){var c=a.ownerDocument;return a===c.activeElement&&(!c.hasFocus||c.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},active:function(a){return a===a.ownerDocument.activeElement},first:s(function(){return[0]}),last:s(function(a,c){return[c-1]}),eq:s(function(a,c,d){return[0>d?d+c:d]}),even:s(function(a,c){for(var d=
0;d<c;d+=2)a.push(d);return a}),odd:s(function(a,c){for(var d=1;d<c;d+=2)a.push(d);return a}),lt:s(function(a,c,d){for(c=0>d?d+c:d;0<=--c;)a.push(c);return a}),gt:s(function(a,c,d){for(d=0>d?d+c:d;++d<c;)a.push(d);return a})}};U=P.compareDocumentPosition?function(a,c){return a===c?(T=!0,0):(a.compareDocumentPosition&&c.compareDocumentPosition?a.compareDocumentPosition(c)&4:a.compareDocumentPosition)?-1:1}:function(a,c){if(a===c)return T=!0,0;if(a.sourceIndex&&c.sourceIndex)return a.sourceIndex-c.sourceIndex;
var d,b,f=[],s=[];d=a.parentNode;b=c.parentNode;var g=d;if(d===b)return e(a,c);if(!d)return-1;if(!b)return 1;for(;g;)f.unshift(g),g=g.parentNode;for(g=b;g;)s.unshift(g),g=g.parentNode;d=f.length;b=s.length;for(g=0;g<d&&g<b;g++)if(f[g]!==s[g])return e(f[g],s[g]);return g===d?e(a,s[g],-1):e(f[g],c,1)};[0,0].sort(U);z=!T;d.uniqueSort=function(a){var c,d=[],b=1,f=0;T=z;a.sort(U);if(T){for(;c=a[b];b++)c===a[b-1]&&(f=d.push(b));for(;f--;)a.splice(d[f],1)}return a};d.error=function(a){throw Error("Syntax error, unrecognized expression: "+
a);};ia=d.compile=function(a,c){var d,b=[],f=[],s=F[v][a+" "];if(!s){c||(c=g(a));for(d=c.length;d--;)s=D(c[d]),s[v]?b.push(s):f.push(s);s=F(a,p(f,b))}return s};u.querySelectorAll&&function(){var a,c=n,b=/'|\\/g,f=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,s=[":focus"],e=[":active"],m=P.matchesSelector||P.mozMatchesSelector||P.webkitMatchesSelector||P.oMatchesSelector||P.msMatchesSelector;qa(function(a){a.innerHTML="\x3cselect\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";a.querySelectorAll("[selected]").length||
s.push("\\[[\\x20\\t\\r\\n\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)");a.querySelectorAll(":checked").length||s.push(":checked")});qa(function(a){a.innerHTML="\x3cp test\x3d''\x3e\x3c/p\x3e";a.querySelectorAll("[test^\x3d'']").length&&s.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:\"\"|'')");a.innerHTML="\x3cinput type\x3d'hidden'/\x3e";a.querySelectorAll(":enabled").length||s.push(":enabled",":disabled")});s=new RegExp(s.join("|"));n=function(a,d,f,e,m){if(!e&&!m&&!s.test(a)){var k,
l,h=!0,q=v;l=d;k=9===d.nodeType&&a;if(1===d.nodeType&&"object"!==d.nodeName.toLowerCase()){k=g(a);(h=d.getAttribute("id"))?q=h.replace(b,"\\$\x26"):d.setAttribute("id",q);q="[id\x3d'"+q+"'] ";for(l=k.length;l--;)k[l]=q+k[l].join("");l=R.test(a)&&d.parentNode||d;k=k.join(",")}if(k)try{return L.apply(f,Aa.call(l.querySelectorAll(k),0)),f}catch(D){}finally{h||d.removeAttribute("id")}}return c(a,d,f,e,m)};m&&(qa(function(c){a=m.call(c,"div");try{m.call(c,"[test!\x3d'']:sizzle"),e.push("!\x3d",pa)}catch(d){}}),
e=new RegExp(e.join("|")),d.matchesSelector=function(c,b){b=b.replace(f,"\x3d'$1']");if(!E(c)&&!e.test(b)&&!s.test(b))try{var g=m.call(c,b);if(g||a||c.document&&11!==c.document.nodeType)return g}catch(k){}return 0<d(b,null,null,[c]).length})}();r.pseudos.nth=r.pseudos.eq;r.filters=Y.prototype=r.pseudos;r.setFilters=new Y;d.attr=l.attr;l.find=d;l.expr=d.selectors;l.expr[":"]=l.expr.pseudos;l.unique=d.uniqueSort;l.text=d.getText;l.isXMLDoc=d.isXML;l.contains=d.contains})(a);var wb=/Until$/,Mb=/^(?:parents|prev(?:Until|All))/,
Ib=/^.[^:#\[\.,]*$/,xb=l.expr.match.needsContext,Nb={children:!0,contents:!0,next:!0,prev:!0};l.fn.extend({find:function(a){var c,d,b,f,s,e,g=this;if("string"!==typeof a)return l(a).filter(function(){c=0;for(d=g.length;c<d;c++)if(l.contains(g[c],this))return!0});e=this.pushStack("","find",a);c=0;for(d=this.length;c<d;c++)if(b=e.length,l.find(a,this[c],e),0<c)for(f=b;f<e.length;f++)for(s=0;s<b;s++)if(e[s]===e[f]){e.splice(f--,1);break}return e},has:function(a){var c,d=l(a,this),b=d.length;return this.filter(function(){for(c=
0;c<b;c++)if(l.contains(this,d[c]))return!0})},not:function(a){return this.pushStack(m(this,a,!1),"not",a)},filter:function(a){return this.pushStack(m(this,a,!0),"filter",a)},is:function(a){return!!a&&("string"===typeof a?xb.test(a)?0<=l(a,this.context).index(this[0]):0<l.filter(a,this).length:0<this.filter(a).length)},closest:function(a,c){for(var d,b=0,f=this.length,s=[],e=xb.test(a)||"string"!==typeof a?l(a,c||this.context):0;b<f;b++)for(d=this[b];d&&d.ownerDocument&&d!==c&&11!==d.nodeType;){if(e?
-1<e.index(d):l.find.matchesSelector(d,a)){s.push(d);break}d=d.parentNode}s=1<s.length?l.unique(s):s;return this.pushStack(s,"closest",a)},index:function(a){return a?"string"===typeof a?l.inArray(this[0],l(a)):l.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,d){var b="string"===typeof a?l(a,d):l.makeArray(a&&a.nodeType?[a]:a),f=l.merge(this.get(),b);return this.pushStack(c(b[0])||c(f[0])?f:l.unique(f))},addBack:function(a){return this.add(null==
a?this.prevObject:this.prevObject.filter(a))}});l.fn.andSelf=l.fn.addBack;l.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return l.dir(a,"parentNode")},parentsUntil:function(a,c,d){return l.dir(a,"parentNode",d)},next:function(a){return f(a,"nextSibling")},prev:function(a){return f(a,"previousSibling")},nextAll:function(a){return l.dir(a,"nextSibling")},prevAll:function(a){return l.dir(a,"previousSibling")},nextUntil:function(a,c,d){return l.dir(a,"nextSibling",
d)},prevUntil:function(a,c,d){return l.dir(a,"previousSibling",d)},siblings:function(a){return l.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return l.sibling(a.firstChild)},contents:function(a){return l.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:l.merge([],a.childNodes)}},function(a,c){l.fn[a]=function(d,b){var f=l.map(this,c,d);wb.test(a)||(b=d);b&&"string"===typeof b&&(f=l.filter(b,f));f=1<this.length&&!Nb[a]?l.unique(f):f;1<this.length&&Mb.test(a)&&(f=f.reverse());
return this.pushStack(f,a,da.call(arguments).join(","))}});l.extend({filter:function(a,c,d){d&&(a=":not("+a+")");return 1===c.length?l.find.matchesSelector(c[0],a)?[c[0]]:[]:l.find.matches(a,c)},dir:function(a,c,d){var b=[];for(a=a[c];a&&9!==a.nodeType&&(d===h||1!==a.nodeType||!l(a).is(d));)1===a.nodeType&&b.push(a),a=a[c];return b},sibling:function(a,c){for(var d=[];a;a=a.nextSibling)1===a.nodeType&&a!==c&&d.push(a);return d}});var qb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
yb=/ jQuery\d+="(?:null|\d+)"/g,kb=/^\s+/,za=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$a=/<([\w:]+)/,lb=/<tbody/i,aa=/<|&#?\w+;/,zb=/<(?:script|style|link)/i,Ia=/<(?:script|object|embed|option|style)/i,Oa=new RegExp("\x3c(?:"+qb+")[\\s/\x3e]","i"),Ta=/^(?:checkbox|radio)$/,mb=/checked\s*(?:[^=]|=\s*.checked.)/i,Ab=/\/(java|ecma)script/i,nb=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,fa={option:[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"],legend:[1,
"\x3cfieldset\x3e","\x3c/fieldset\x3e"],thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ctbody\x3e\x3c/tbody\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],area:[1,"\x3cmap\x3e","\x3c/map\x3e"],_default:[0,"",""]},X=p(H),ab=X.appendChild(H.createElement("div"));fa.optgroup=fa.option;fa.tbody=fa.tfoot=fa.colgroup=fa.caption=
fa.thead;fa.th=fa.td;l.support.htmlSerialize||(fa._default=[1,"X\x3cdiv\x3e","\x3c/div\x3e"]);l.fn.extend({text:function(a){return l.access(this,function(a){return a===h?l.text(this):this.empty().append((this[0]&&this[0].ownerDocument||H).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(l.isFunction(a))return this.each(function(c){l(this).wrapAll(a.call(this,c))});if(this[0]){var c=l(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var a=
this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return l.isFunction(a)?this.each(function(c){l(this).wrapInner(a.call(this,c))}):this.each(function(){var c=l(this),d=c.contents();d.length?d.wrapAll(a):c.append(a)})},wrap:function(a){var c=l.isFunction(a);return this.each(function(d){l(this).wrapAll(c?a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){l.nodeName(this,"body")||l(this).replaceWith(this.childNodes)}).end()},
append:function(){return this.domManip(arguments,!0,function(a){1!==this.nodeType&&11!==this.nodeType||this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1!==this.nodeType&&11!==this.nodeType||this.insertBefore(a,this.firstChild)})},before:function(){if(!c(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=l.clean(arguments);return this.pushStack(l.merge(a,this),"before",this.selector)}},after:function(){if(!c(this[0]))return this.domManip(arguments,
!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=l.clean(arguments);return this.pushStack(l.merge(this,a),"after",this.selector)}},remove:function(a,c){for(var d,b=0;null!=(d=this[b]);b++)if(!a||l.filter(a,[d]).length)c||1!==d.nodeType||(l.cleanData(d.getElementsByTagName("*")),l.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a,c=0;null!=(a=this[c]);c++)for(1===a.nodeType&&l.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);
return this},clone:function(a,c){a=null==a?!1:a;c=null==c?a:c;return this.map(function(){return l.clone(this,a,c)})},html:function(a){return l.access(this,function(a){var c=this[0]||{},d=0,b=this.length;if(a===h)return 1===c.nodeType?c.innerHTML.replace(yb,""):h;if(!("string"!==typeof a||zb.test(a)||!l.support.htmlSerialize&&Oa.test(a)||!l.support.leadingWhitespace&&kb.test(a)||fa[($a.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(za,"\x3c$1\x3e\x3c/$2\x3e");try{for(;d<b;d++)c=this[d]||{},1===
c.nodeType&&(l.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(!c(this[0])){if(l.isFunction(a))return this.each(function(c){var d=l(this),b=d.html();d.replaceWith(a.call(this,c,b))});"string"!==typeof a&&(a=l(a).detach());return this.each(function(){var c=this.nextSibling,d=this.parentNode;l(this).remove();c?l(c).before(a):l(d).append(a)})}return this.length?this.pushStack(l(l.isFunction(a)?a():a),
"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var b,f,s,e=0,g=a[0],m=[],k=this.length;if(!l.support.checkClone&&1<k&&"string"===typeof g&&mb.test(g))return this.each(function(){l(this).domManip(a,c,d)});if(l.isFunction(g))return this.each(function(b){var f=l(this);a[0]=g.call(this,b,c?f.html():h);f.domManip(a,c,d)});if(this[0]){b=l.buildFragment(a,this,m);s=b.fragment;f=s.firstChild;1===s.childNodes.length&&(s=f);if(f)for(c=c&&
l.nodeName(f,"tr"),b=b.cacheable||k-1;e<k;e++)d.call(c&&l.nodeName(this[e],"table")?t(this[e],"tbody"):this[e],e===b?s:l.clone(s,!0,!0));s=f=null;m.length&&l.each(m,function(a,c){c.src?l.ajax?l.ajax({url:c.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):l.error("no ajax"):l.globalEval((c.text||c.textContent||c.innerHTML||"").replace(nb,""));c.parentNode&&c.parentNode.removeChild(c)})}return this}});l.buildFragment=function(a,c,d){var b,f,s,e=a[0];c=c||H;c=!c.nodeType&&c[0]||c;c=
c.ownerDocument||c;!(1===a.length&&"string"===typeof e&&512>e.length&&c===H&&"\x3c"===e.charAt(0))||Ia.test(e)||!l.support.checkClone&&mb.test(e)||!l.support.html5Clone&&Oa.test(e)||(f=!0,b=l.fragments[e],s=b!==h);b||(b=c.createDocumentFragment(),l.clean(a,c,b,d),f&&(l.fragments[e]=s&&b));return{fragment:b,cacheable:f}};l.fragments={};l.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){l.fn[a]=function(d){var b,f=0,s=[];d=
l(d);var e=d.length;b=1===this.length&&this[0].parentNode;if((null==b||b&&11===b.nodeType&&1===b.childNodes.length)&&1===e)return d[c](this[0]),this;for(;f<e;f++)b=(0<f?this.clone(!0):this).get(),l(d[f])[c](b),s=s.concat(b);return this.pushStack(s,a,d.selector)}});l.extend({clone:function(a,c,d){var b,f,s,e;l.support.html5Clone||l.isXMLDoc(a)||!Oa.test("\x3c"+a.nodeName+"\x3e")?e=a.cloneNode(!0):(ab.innerHTML=a.outerHTML,ab.removeChild(e=ab.firstChild));if(!(l.support.noCloneEvent&&l.support.noCloneChecked||
1!==a.nodeType&&11!==a.nodeType||l.isXMLDoc(a)))for(q(a,e),b=n(a),f=n(e),s=0;b[s];++s)f[s]&&q(b[s],f[s]);if(c&&(A(a,e),d))for(b=n(a),f=n(e),s=0;b[s];++s)A(b[s],f[s]);return e},clean:function(a,c,d,b){var f,s,e,g,m,k,h=c===H&&X,q=[];c&&"undefined"!==typeof c.createDocumentFragment||(c=H);for(f=0;null!=(e=a[f]);f++)if("number"===typeof e&&(e+=""),e){if("string"===typeof e)if(aa.test(e)){h=h||p(c);k=c.createElement("div");h.appendChild(k);e=e.replace(za,"\x3c$1\x3e\x3c/$2\x3e");s=($a.exec(e)||["",""])[1].toLowerCase();
g=fa[s]||fa._default;m=g[0];for(k.innerHTML=g[1]+e+g[2];m--;)k=k.lastChild;if(!l.support.tbody)for(m=lb.test(e),g="table"!==s||m?"\x3ctable\x3e"!==g[1]||m?[]:k.childNodes:k.firstChild&&k.firstChild.childNodes,s=g.length-1;0<=s;--s)l.nodeName(g[s],"tbody")&&!g[s].childNodes.length&&g[s].parentNode.removeChild(g[s]);!l.support.leadingWhitespace&&kb.test(e)&&k.insertBefore(c.createTextNode(kb.exec(e)[0]),k.firstChild);e=k.childNodes;k.parentNode.removeChild(k)}else e=c.createTextNode(e);e.nodeType?q.push(e):
l.merge(q,e)}k&&(e=k=h=null);if(!l.support.appendChecked)for(f=0;null!=(e=q[f]);f++)l.nodeName(e,"input")?r(e):"undefined"!==typeof e.getElementsByTagName&&l.grep(e.getElementsByTagName("input"),r);if(d)for(a=function(a){if(!a.type||Ab.test(a.type))return b?b.push(a.parentNode?a.parentNode.removeChild(a):a):d.appendChild(a)},f=0;null!=(e=q[f]);f++)l.nodeName(e,"script")&&a(e)||(d.appendChild(e),"undefined"!==typeof e.getElementsByTagName&&(e=l.grep(l.merge([],e.getElementsByTagName("script")),a),
q.splice.apply(q,[f+1,0].concat(e)),f+=e.length));return q},cleanData:function(a,c){for(var d,b,f,s,e=0,g=l.expando,m=l.cache,k=l.support.deleteExpando,h=l.event.special;null!=(f=a[e]);e++)if(c||l.acceptData(f))if(d=(b=f[g])&&m[b]){if(d.events)for(s in d.events)h[s]?l.event.remove(f,s):l.removeEvent(f,s,d.handle);m[b]&&(delete m[b],k?delete f[g]:f.removeAttribute?f.removeAttribute(g):f[g]=null,l.deletedIds.push(b))}}});(function(){var a,c;l.uaMatch=function(a){a=a.toLowerCase();a=/(chrome)[ \/]([\w.]+)/.exec(a)||
/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||0>a.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};a=l.uaMatch(ka.userAgent);c={};a.browser&&(c[a.browser]=!0,c.version=a.version);c.chrome?c.webkit=!0:c.webkit&&(c.safari=!0);l.browser=c;l.sub=function(){function a(c,d){return new a.fn.init(c,d)}l.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=
this.sub;a.fn.init=function(d,b){b&&b instanceof l&&!(b instanceof a)&&(b=a(b));return l.fn.init.call(this,d,b,c)};a.fn.init.prototype=a.fn;var c=a(H);return a}})();var oa,Ba,va,na=/alpha\([^)]*\)/i,ob=/opacity=([^)]*)/,s=/^(top|right|bottom|left)$/,D=/^(none|table(?!-c[ea]).+)/,Y=/^margin/,ca=new RegExp("^("+ta+")(.*)$","i"),U=new RegExp("^("+ta+")(?!px)[a-z%]+$","i"),ia=new RegExp("^([-+])\x3d("+ta+")","i"),Aa={BODY:"block"},Ea={position:"absolute",visibility:"hidden",display:"block"},Bb={letterSpacing:0,
fontWeight:400},qa=["Top","Right","Bottom","Left"],cb=["Webkit","O","Moz","ms"],Cb=l.fn.toggle;l.fn.extend({css:function(a,c){return l.access(this,function(a,c,d){return d!==h?l.style(a,c,d):l.css(a,c)},a,c,1<arguments.length)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(a,c){var d="boolean"===typeof a;return l.isFunction(a)&&l.isFunction(c)?Cb.apply(this,arguments):this.each(function(){(d?a:x(this))?l(this).show():l(this).hide()})}});l.extend({cssHooks:{opacity:{get:function(a,
c){if(c){var d=oa(a,"opacity");return""===d?"1":d}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,b){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,s,e,g=l.camelCase(c),m=a.style;c=l.cssProps[g]||(l.cssProps[g]=u(m,g));e=l.cssHooks[c]||l.cssHooks[g];if(d!==h){if(s=typeof d,"string"===s&&(f=ia.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(l.css(a,c)),s="number"),
!(null==d||"number"===s&&isNaN(d)||("number"!==s||l.cssNumber[g]||(d+="px"),e&&"set"in e&&(d=e.set(a,d,b))===h)))try{m[c]=d}catch(k){}}else return e&&"get"in e&&(f=e.get(a,!1,b))!==h?f:m[c]}},css:function(a,c,d,b){var f,s;s=l.camelCase(c);c=l.cssProps[s]||(l.cssProps[s]=u(a.style,s));(s=l.cssHooks[c]||l.cssHooks[s])&&"get"in s&&(f=s.get(a,!0,b));f===h&&(f=oa(a,c));"normal"===f&&c in Bb&&(f=Bb[c]);return d||b!==h?(a=parseFloat(f),d||l.isNumeric(a)?a||0:f):f},swap:function(a,c,d){var b,f={};for(b in c)f[b]=
a.style[b],a.style[b]=c[b];d=d.call(a);for(b in c)a.style[b]=f[b];return d}});a.getComputedStyle?oa=function(c,d){var b,f,s,e,g=a.getComputedStyle(c,null),m=c.style;g&&(b=g.getPropertyValue(d)||g[d],""!==b||l.contains(c.ownerDocument,c)||(b=l.style(c,d)),U.test(b)&&Y.test(d)&&(f=m.width,s=m.minWidth,e=m.maxWidth,m.minWidth=m.maxWidth=m.width=b,b=g.width,m.width=f,m.minWidth=s,m.maxWidth=e));return b}:H.documentElement.currentStyle&&(oa=function(a,c){var d,b,f=a.currentStyle&&a.currentStyle[c],e=a.style;
null==f&&e&&e[c]&&(f=e[c]);if(U.test(f)&&!s.test(c)){d=e.left;if(b=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;e.left="fontSize"===c?"1em":f;f=e.pixelLeft+"px";e.left=d;b&&(a.runtimeStyle.left=b)}return""===f?"auto":f});l.each(["height","width"],function(a,c){l.cssHooks[c]={get:function(a,d,b){if(d)return 0===a.offsetWidth&&D.test(oa(a,"display"))?l.swap(a,Ea,function(){return G(a,c,b)}):G(a,c,b)},set:function(a,d,b){return y(a,d,b?w(a,c,b,l.support.boxSizing&&"border-box"===
l.css(a,"boxSizing")):0)}}});l.support.opacity||(l.cssHooks.opacity={get:function(a,c){return ob.test((c&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":c?"1":""},set:function(a,c){var d=a.style,b=a.currentStyle,f=l.isNumeric(c)?"alpha(opacity\x3d"+100*c+")":"",s=b&&b.filter||d.filter||"";d.zoom=1;if(1<=c&&""===l.trim(s.replace(na,""))&&d.removeAttribute&&(d.removeAttribute("filter"),b&&!b.filter))return;d.filter=na.test(s)?s.replace(na,f):s+" "+f}});l(function(){l.support.reliableMarginRight||
(l.cssHooks.marginRight={get:function(a,c){return l.swap(a,{display:"inline-block"},function(){if(c)return oa(a,"marginRight")})}});!l.support.pixelPosition&&l.fn.position&&l.each(["top","left"],function(a,c){l.cssHooks[c]={get:function(a,d){if(d){var b=oa(a,c);return U.test(b)?l(a).position()[c]+"px":b}}}})});l.expr&&l.expr.filters&&(l.expr.filters.hidden=function(a){return 0===a.offsetWidth&&0===a.offsetHeight||!l.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||oa(a,"display"))},
l.expr.filters.visible=function(a){return!l.expr.filters.hidden(a)});l.each({margin:"",padding:"",border:"Width"},function(a,c){l.cssHooks[a+c]={expand:function(d){var b="string"===typeof d?d.split(" "):[d],f={};for(d=0;4>d;d++)f[a+qa[d]+c]=b[d]||b[d-2]||b[0];return f}};Y.test(a)||(l.cssHooks[a+c].set=y)});var Vb=/%20/g,Tb=/\[\]$/,Pb=/\r?\n/g,Wb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Xb=/^(?:select|textarea)/i;l.fn.extend({serialize:function(){return l.param(this.serializeArray())},
serializeArray:function(){return this.map(function(){return this.elements?l.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Xb.test(this.nodeName)||Wb.test(this.type))}).map(function(a,c){var d=l(this).val();return null==d?null:l.isArray(d)?l.map(d,function(a,d){return{name:c.name,value:a.replace(Pb,"\r\n")}}):{name:c.name,value:d.replace(Pb,"\r\n")}}).get()}});l.param=function(a,c){var d,b=[],f=function(a,c){c=l.isFunction(c)?c():null==c?"":c;b[b.length]=
encodeURIComponent(a)+"\x3d"+encodeURIComponent(c)};c===h&&(c=l.ajaxSettings&&l.ajaxSettings.traditional);if(l.isArray(a)||a.jquery&&!l.isPlainObject(a))l.each(a,function(){f(this.name,this.value)});else for(d in a)E(d,a[d],c,f);return b.join("\x26").replace(Vb,"+")};var Pa,Qa,Yb=/#.*$/,Zb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,$b=/^(?:GET|HEAD)$/,ac=/^\/\//,Qb=/\?/,Ra=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Db=/([?&])_=[^&]*/,la=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,T=l.fn.load,
pa={},ra={},Fa=["*/"]+["*"];try{Qa=S.href}catch(pb){Qa=H.createElement("a"),Qa.href="",Qa=Qa.href}Pa=la.exec(Qa.toLowerCase())||[];l.fn.load=function(a,c,d){if("string"!==typeof a&&T)return T.apply(this,arguments);if(!this.length)return this;var b,f,s,e=this,g=a.indexOf(" ");0<=g&&(b=a.slice(g,a.length),a=a.slice(0,g));l.isFunction(c)?(d=c,c=h):c&&"object"===typeof c&&(f="POST");l.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,c){d&&e.each(d,s||[a.responseText,c,a])}}).done(function(a){s=
arguments;e.html(b?l("\x3cdiv\x3e").append(a.replace(Ra,"")).find(b):a)});return this};l.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){l.fn[c]=function(a){return this.on(c,a)}});l.each(["get","post"],function(a,c){l[c]=function(a,d,b,f){l.isFunction(d)&&(f=f||b,b=d,d=h);return l.ajax({type:c,url:a,data:d,success:b,dataType:f})}});l.extend({getScript:function(a,c){return l.get(a,h,c,"script")},getJSON:function(a,c,d){return l.get(a,c,d,"json")},ajaxSetup:function(a,
c){c?P(a,l.ajaxSettings):(c=a,a=l.ajaxSettings);P(a,c);return a},ajaxSettings:{url:Qa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Pa[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Fa},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},
converters:{"* text":a.String,"text html":!0,"text json":l.parseJSON,"text xml":l.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:C(pa),ajaxTransport:C(ra),ajax:function(a,c){function d(a,c,s,m){var q,ca,t,la,ia=c;if(2!==E){E=2;g&&clearTimeout(g);e=h;f=m||"";U.readyState=0<a?4:0;if(s){la=D;m=U;var v,T,x,u,z=la.contents,C=la.dataTypes,P=la.responseFields;for(T in P)T in s&&(m[P[T]]=s[T]);for(;"*"===C[0];)C.shift(),v===h&&(v=la.mimeType||m.getResponseHeader("content-type"));if(v)for(T in z)if(z[T]&&
z[T].test(v)){C.unshift(T);break}if(C[0]in s)x=C[0];else{for(T in s){if(!C[0]||la.converters[T+" "+C[0]]){x=T;break}u||(u=T)}x=x||u}x?(x!==C[0]&&C.unshift(x),la=s[x]):la=void 0}if(200<=a&&300>a||304===a)if(D.ifModified&&((s=U.getResponseHeader("Last-Modified"))&&(l.lastModified[b]=s),(s=U.getResponseHeader("Etag"))&&(l.etag[b]=s)),304===a)ia="notmodified",q=!0;else{a:{ca=D;t=la;var M,w,ia=ca.dataTypes.slice();v=ia[0];T={};x=0;ca.dataFilter&&(t=ca.dataFilter(t,ca.dataType));if(ia[1])for(M in ca.converters)T[M.toLowerCase()]=
ca.converters[M];for(;s=ia[++x];)if("*"!==s){if("*"!==v&&v!==s){M=T[v+" "+s]||T["* "+s];if(!M)for(w in T)if(q=w.split(" "),q[1]===s&&(M=T[v+" "+q[0]]||T["* "+q[0]])){!0===M?M=T[w]:!0!==T[w]&&(s=q[0],ia.splice(x--,0,s));break}if(!0!==M)if(M&&ca["throws"])t=M(t);else try{t=M(t)}catch(L){q={state:"parsererror",error:M?L:"No conversion from "+v+" to "+s};break a}}v=s}q={state:"success",data:t}}ia=q.state;ca=q.data;t=q.error;q=!t}else if(t=ia,!ia||a)ia="error",0>a&&(a=0);U.status=a;U.statusText=(c||ia)+
"";q?Y.resolveWith(p,[ca,ia,U]):Y.rejectWith(p,[U,ia,t]);U.statusCode(r);r=h;k&&n.trigger("ajax"+(q?"Success":"Error"),[U,D,q?ca:t]);A.fireWith(p,[U,ia]);k&&(n.trigger("ajaxComplete",[U,D]),--l.active||l.event.trigger("ajaxStop"))}}"object"===typeof a&&(c=a,a=h);c=c||{};var b,f,s,e,g,m,k,q,D=l.ajaxSetup({},c),p=D.context||D,n=p!==D&&(p.nodeType||p instanceof l)?l(p):l.event,Y=l.Deferred(),A=l.Callbacks("once memory"),r=D.statusCode||{},ca={},t={},E=0,ia="canceled",U={readyState:0,setRequestHeader:function(a,
c){if(!E){var d=a.toLowerCase();a=t[d]=t[d]||a;ca[a]=c}return this},getAllResponseHeaders:function(){return 2===E?f:null},getResponseHeader:function(a){var c;if(2===E){if(!s)for(s={};c=Zb.exec(f);)s[c[1].toLowerCase()]=c[2];c=s[a.toLowerCase()]}return c===h?null:c},overrideMimeType:function(a){E||(D.mimeType=a);return this},abort:function(a){a=a||ia;e&&e.abort(a);d(0,a);return this}};Y.promise(U);U.success=U.done;U.error=U.fail;U.complete=A.add;U.statusCode=function(a){if(a){var c;if(2>E)for(c in a)r[c]=
[r[c],a[c]];else c=a[U.status],U.always(c)}return this};D.url=((a||D.url)+"").replace(Yb,"").replace(ac,Pa[1]+"//");D.dataTypes=l.trim(D.dataType||"*").toLowerCase().split(Z);null==D.crossDomain&&(m=la.exec(D.url.toLowerCase()),D.crossDomain=!(!m||m[1]===Pa[1]&&m[2]===Pa[2]&&(m[3]||("http:"===m[1]?80:443))==(Pa[3]||("http:"===Pa[1]?80:443))));D.data&&D.processData&&"string"!==typeof D.data&&(D.data=l.param(D.data,D.traditional));v(pa,D,c,U);if(2===E)return U;k=D.global;D.type=D.type.toUpperCase();
D.hasContent=!$b.test(D.type);k&&0===l.active++&&l.event.trigger("ajaxStart");if(!D.hasContent&&(D.data&&(D.url+=(Qb.test(D.url)?"\x26":"?")+D.data,delete D.data),b=D.url,!1===D.cache)){m=l.now();var T=D.url.replace(Db,"$1_\x3d"+m);D.url=T+(T===D.url?(Qb.test(D.url)?"\x26":"?")+"_\x3d"+m:"")}(D.data&&D.hasContent&&!1!==D.contentType||c.contentType)&&U.setRequestHeader("Content-Type",D.contentType);D.ifModified&&(b=b||D.url,l.lastModified[b]&&U.setRequestHeader("If-Modified-Since",l.lastModified[b]),
l.etag[b]&&U.setRequestHeader("If-None-Match",l.etag[b]));U.setRequestHeader("Accept",D.dataTypes[0]&&D.accepts[D.dataTypes[0]]?D.accepts[D.dataTypes[0]]+("*"!==D.dataTypes[0]?", "+Fa+"; q\x3d0.01":""):D.accepts["*"]);for(q in D.headers)U.setRequestHeader(q,D.headers[q]);if(D.beforeSend&&(!1===D.beforeSend.call(p,U,D)||2===E))return U.abort();ia="abort";for(q in{success:1,error:1,complete:1})U[q](D[q]);if(e=v(ra,D,c,U)){U.readyState=1;k&&n.trigger("ajaxSend",[U,D]);D.async&&0<D.timeout&&(g=setTimeout(function(){U.abort("timeout")},
D.timeout));try{E=1,e.send(ca,d)}catch(x){if(2>E)d(-1,x);else throw x;}}else d(-1,"No Transport");return U},active:0,lastModified:{},etag:{}});var Sa=[],ja=/\?/,Eb=/(=)\?(?=&|$)|\?\?/,bc=l.now();l.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Sa.pop()||l.expando+"_"+bc++;this[a]=!0;return a}});l.ajaxPrefilter("json jsonp",function(c,d,b){var f,s,e,g=c.data,m=c.url,k=!1!==c.jsonp,D=k&&Eb.test(m),q=k&&!D&&"string"===typeof g&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&
Eb.test(g);if("jsonp"===c.dataTypes[0]||D||q)return f=c.jsonpCallback=l.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,s=a[f],D?c.url=m.replace(Eb,"$1"+f):q?c.data=g.replace(Eb,"$1"+f):k&&(c.url+=(ja.test(m)?"\x26":"?")+c.jsonp+"\x3d"+f),c.converters["script json"]=function(){e||l.error(f+" was not called");return e[0]},c.dataTypes[0]="json",a[f]=function(){e=arguments},b.always(function(){a[f]=s;c[f]&&(c.jsonpCallback=d.jsonpCallback,Sa.push(f));e&&l.isFunction(s)&&s(e[0]);e=s=h}),
"script"});l.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){l.globalEval(a);return a}}});l.ajaxPrefilter("script",function(a){a.cache===h&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});l.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=H.head||H.getElementsByTagName("head")[0]||H.documentElement;return{send:function(b,f){c=
H.createElement("script");c.async="async";a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(a,b){if(b||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=h,b||f(200,"success")};d.insertBefore(c,d.firstChild)},abort:function(){if(c)c.onload(0,1)}}}});var bb,Ob=a.ActiveXObject?function(){for(var a in bb)bb[a](0,1)}:!1,cc=0;l.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&
L()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}c=void 0}return c}:L;(function(a){l.extend(l.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(l.ajaxSettings.xhr());l.support.ajax&&l.ajaxTransport(function(c){if(!c.crossDomain||l.support.cors){var d;return{send:function(b,f){var s,e,g=c.xhr();c.username?g.open(c.type,c.url,c.async,c.username,c.password):g.open(c.type,c.url,c.async);if(c.xhrFields)for(e in c.xhrFields)g[e]=c.xhrFields[e];c.mimeType&&g.overrideMimeType&&
g.overrideMimeType(c.mimeType);c.crossDomain||b["X-Requested-With"]||(b["X-Requested-With"]="XMLHttpRequest");try{for(e in b)g.setRequestHeader(e,b[e])}catch(m){}g.send(c.hasContent&&c.data||null);d=function(a,b){var e,m,k,D,q;try{if(d&&(b||4===g.readyState))if(d=h,s&&(g.onreadystatechange=l.noop,Ob&&delete bb[s]),b)4!==g.readyState&&g.abort();else{e=g.status;k=g.getAllResponseHeaders();D={};(q=g.responseXML)&&q.documentElement&&(D.xml=q);try{D.text=g.responseText}catch(p){}try{m=g.statusText}catch(n){m=
""}e||!c.isLocal||c.crossDomain?1223===e&&(e=204):e=D.text?200:404}}catch(Y){b||f(-1,Y)}D&&f(e,m,D,k)};c.async?4===g.readyState?setTimeout(d,0):(s=++cc,Ob&&(bb||(bb={},l(a).unload(Ob)),bb[s]=d),g.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var Ua,Fb,dc=/^(?:toggle|show|hide)$/,ec=new RegExp("^(?:([-+])\x3d|)("+ta+")([a-z%]*)$","i"),fc=/queueHooks$/,rb=[function(a,c,d){var b,f,s,e,g,m,k=this,D=a.style,q={},h=[],p=a.nodeType&&x(a);d.queue||(g=l._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=
0,m=g.empty.fire,g.empty.fire=function(){g.unqueued||m()}),g.unqueued++,k.always(function(){k.always(function(){g.unqueued--;l.queue(a,"fx").length||g.empty.fire()})}));1===a.nodeType&&("height"in c||"width"in c)&&(d.overflow=[D.overflow,D.overflowX,D.overflowY],"inline"===l.css(a,"display")&&"none"===l.css(a,"float")&&(l.support.inlineBlockNeedsLayout&&"inline"!==F(a.nodeName)?D.zoom=1:D.display="inline-block"));d.overflow&&(D.overflow="hidden",l.support.shrinkWrapBlocks||k.done(function(){D.overflow=
d.overflow[0];D.overflowX=d.overflow[1];D.overflowY=d.overflow[2]}));for(b in c)s=c[b],dc.exec(s)&&(delete c[b],f=f||"toggle"===s,s!==(p?"hide":"show")&&h.push(b));if(c=h.length)for(s=l._data(a,"fxshow")||l._data(a,"fxshow",{}),("hidden"in s)&&(p=s.hidden),f&&(s.hidden=!p),p?l(a).show():k.done(function(){l(a).hide()}),k.done(function(){var c;l.removeData(a,"fxshow",!0);for(c in q)l.style(a,c,q[c])}),b=0;b<c;b++)f=h[b],e=k.createTween(f,p?s[f]:0),q[f]=s[f]||l.style(a,f),f in s||(s[f]=e.start,p&&(e.end=
e.start,e.start="width"===f||"height"===f?1:0))}],db={"*":[function(a,c){var d,b,f=this.createTween(a,c),s=ec.exec(c),e=f.cur(),g=+e||0,m=1,k=20;if(s){d=+s[2];b=s[3]||(l.cssNumber[a]?"":"px");if("px"!==b&&g){g=l.css(f.elem,a,!0)||d||1;do m=m||".5",g/=m,l.style(f.elem,a,g+b);while(m!==(m=f.cur()/e)&&1!==m&&--k)}f.unit=b;f.start=g;f.end=s[1]?g+(s[1]+1)*d:d}return f}]};l.Animation=l.extend(ba,{tweener:function(a,c){l.isFunction(a)?(c=a,a=["*"]):a=a.split(" ");for(var d,b=0,f=a.length;b<f;b++)d=a[b],
db[d]=db[d]||[],db[d].unshift(c)},prefilter:function(a,c){c?rb.unshift(a):rb.push(a)}});l.Tween=Q;Q.prototype={constructor:Q,init:function(a,c,d,b,f,s){this.elem=a;this.prop=d;this.easing=f||"swing";this.options=c;this.start=this.now=this.cur();this.end=b;this.unit=s||(l.cssNumber[d]?"":"px")},cur:function(){var a=Q.propHooks[this.prop];return a&&a.get?a.get(this):Q.propHooks._default.get(this)},run:function(a){var c,d=Q.propHooks[this.prop];this.pos=this.options.duration?c=l.easing[this.easing](a,
this.options.duration*a,0,1,this.options.duration):c=a;this.now=(this.end-this.start)*c+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);d&&d.set?d.set(this):Q.propHooks._default.set(this);return this}};Q.prototype.init.prototype=Q.prototype;Q.propHooks={_default:{get:function(a){return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(a=l.css(a.elem,a.prop,!1,""))&&"auto"!==a?a:0:a.elem[a.prop]},set:function(a){if(l.fx.step[a.prop])l.fx.step[a.prop](a);
else a.elem.style&&(null!=a.elem.style[l.cssProps[a.prop]]||l.cssHooks[a.prop])?l.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};Q.propHooks.scrollTop=Q.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};l.each(["toggle","show","hide"],function(a,c){var d=l.fn[c];l.fn[c]=function(b,f,s){return null==b||"boolean"===typeof b||!a&&l.isFunction(b)&&l.isFunction(f)?d.apply(this,arguments):this.animate(R(c,!0),b,f,s)}});l.fn.extend({fadeTo:function(a,
c,d,b){return this.filter(x).css("opacity",0).show().end().animate({opacity:c},a,d,b)},animate:function(a,c,d,b){var f=l.isEmptyObject(a),s=l.speed(c,d,b);c=function(){var c=ba(this,l.extend({},a),s);f&&c.stop(!0)};return f||!1===s.queue?this.each(c):this.queue(s.queue,c)},stop:function(a,c,d){var b=function(a){var c=a.stop;delete a.stop;c(d)};"string"!==typeof a&&(d=c,c=a,a=h);c&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var c=!0,f=null!=a&&a+"queueHooks",s=l.timers,e=l._data(this);
if(f)e[f]&&e[f].stop&&b(e[f]);else for(f in e)e[f]&&e[f].stop&&fc.test(f)&&b(e[f]);for(f=s.length;f--;)s[f].elem!==this||null!=a&&s[f].queue!==a||(s[f].anim.stop(d),c=!1,s.splice(f,1));!c&&d||l.dequeue(this,a)})}});l.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,c){l.fn[a]=function(a,d,b){return this.animate(c,a,d,b)}});l.speed=function(a,c,d){var b=a&&"object"===typeof a?l.extend({},a):
{complete:d||!d&&c||l.isFunction(a)&&a,duration:a,easing:d&&c||c&&!l.isFunction(c)&&c};b.duration=l.fx.off?0:"number"===typeof b.duration?b.duration:b.duration in l.fx.speeds?l.fx.speeds[b.duration]:l.fx.speeds._default;if(null==b.queue||!0===b.queue)b.queue="fx";b.old=b.complete;b.complete=function(){l.isFunction(b.old)&&b.old.call(this);b.queue&&l.dequeue(this,b.queue)};return b};l.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}};l.timers=[];l.fx=Q.prototype.init;
l.fx.tick=function(){var a,c=l.timers,d=0;for(Ua=l.now();d<c.length;d++)a=c[d],a()||c[d]!==a||c.splice(d--,1);c.length||l.fx.stop();Ua=h};l.fx.timer=function(a){a()&&l.timers.push(a)&&!Fb&&(Fb=setInterval(l.fx.tick,l.fx.interval))};l.fx.interval=13;l.fx.stop=function(){clearInterval(Fb);Fb=null};l.fx.speeds={slow:600,fast:200,_default:400};l.fx.step={};l.expr&&l.expr.filters&&(l.expr.filters.animated=function(a){return l.grep(l.timers,function(c){return a===c.elem}).length});var Rb=/^(?:body|html)$/i;
l.fn.offset=function(a){if(arguments.length)return a===h?this:this.each(function(c){l.offset.setOffset(this,a,c)});var c,d,b,f,s,e={top:0,left:0};if(b=(f=this[0])&&f.ownerDocument){if((d=b.body)===f)return l.offset.bodyOffset(f);c=b.documentElement;if(!l.contains(c,f))return e;"undefined"!==typeof f.getBoundingClientRect&&(e=f.getBoundingClientRect());b=N(b);f=c.clientTop||d.clientTop||0;d=c.clientLeft||d.clientLeft||0;s=b.pageYOffset||c.scrollTop;c=b.pageXOffset||c.scrollLeft;return{top:e.top+s-
f,left:e.left+c-d}}};l.offset={bodyOffset:function(a){var c=a.offsetTop,d=a.offsetLeft;l.support.doesNotIncludeMarginInBodyOffset&&(c+=parseFloat(l.css(a,"marginTop"))||0,d+=parseFloat(l.css(a,"marginLeft"))||0);return{top:c,left:d}},setOffset:function(a,c,d){var b=l.css(a,"position");"static"===b&&(a.style.position="relative");var f=l(a),s=f.offset(),e=l.css(a,"top"),g=l.css(a,"left"),m={},k={};("absolute"===b||"fixed"===b)&&-1<l.inArray("auto",[e,g])?(k=f.position(),b=k.top,g=k.left):(b=parseFloat(e)||
0,g=parseFloat(g)||0);l.isFunction(c)&&(c=c.call(a,d,s));null!=c.top&&(m.top=c.top-s.top+b);null!=c.left&&(m.left=c.left-s.left+g);"using"in c?c.using.call(a,m):f.css(m)}};l.fn.extend({position:function(){if(this[0]){var a=this[0],c=this.offsetParent(),d=this.offset(),b=Rb.test(c[0].nodeName)?{top:0,left:0}:c.offset();d.top-=parseFloat(l.css(a,"marginTop"))||0;d.left-=parseFloat(l.css(a,"marginLeft"))||0;b.top+=parseFloat(l.css(c[0],"borderTopWidth"))||0;b.left+=parseFloat(l.css(c[0],"borderLeftWidth"))||
0;return{top:d.top-b.top,left:d.left-b.left}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||H.body;a&&!Rb.test(a.nodeName)&&"static"===l.css(a,"position");)a=a.offsetParent;return a||H.body})}});l.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);l.fn[a]=function(b){return l.access(this,function(a,b,f){var s=N(a);if(f===h)return s?c in s?s[c]:s.document.documentElement[b]:a[b];s?s.scrollTo(d?l(s).scrollLeft():f,d?f:l(s).scrollTop()):
a[b]=f},a,b,arguments.length,null)}});l.each({Height:"height",Width:"width"},function(a,c){l.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,b){l.fn[b]=function(b,f){var s=arguments.length&&(d||"boolean"!==typeof b),e=d||(!0===b||!0===f?"margin":"border");return l.access(this,function(c,d,b){return l.isWindow(c)?c.document.documentElement["client"+a]:9===c.nodeType?(d=c.documentElement,Math.max(c.body["scroll"+a],d["scroll"+a],c.body["offset"+a],d["offset"+a],d["client"+a])):b===h?l.css(c,
d,b,e):l.style(c,d,b,e)},c,s?b:h,s,null)}})});a.jQuery=a.$=l;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return l})})(window);(function(a,h,b){"function"===typeof define&&define.amd?define(["jquery"],function(e){b(e,a,h);return e.mobile}):b(a.jQuery,a,h)})(this,document,function(a,h,b,e){(function(a,b,d,c){function f(a){for(;a&&"undefined"!==typeof a.originalEvent;)a=a.originalEvent;return a}function e(c){for(var d={},b,f;c;){b=a.data(c,"virtualMouseBindings");for(f in b)b[f]&&(d[f]=d.hasVirtualBinding=!0);c=c.parentNode}return d}function h(){E&&(clearTimeout(E),E=0);E=setTimeout(function(){R=E=0;L.length=0;M=!1;K=!0},a.vmouse.resetTimerDuration)}
function t(d,b,e){var m,k;if(!(k=e&&e[d])){if(e=!e)a:{for(e=b.target;e;){if((k=a.data(e,"virtualMouseBindings"))&&(!d||k[d]))break a;e=e.parentNode}e=null}k=e}if(k){m=b;e=m.type;var q,h;m=a.Event(m);m.type=d;d=m.originalEvent;k=a.event.props;-1<e.search(/^(mouse|click)/)&&(k=G);if(d)for(h=k.length,q;h;)q=k[--h],m[q]=d[q];-1<e.search(/mouse(down|up)|click/)&&!m.which&&(m.which=1);if(-1!==e.search(/^touch/)&&(q=f(d),e=q.touches,q=q.changedTouches,d=e&&e.length?e[0]:q&&q.length?q[0]:c))for(e=0,k=w.length;e<
k;e++)q=w[e],m[q]=d[q];a(b.target).trigger(m)}return m}function A(c){var d=a.data(c.target,"virtualTouchID");M||R&&R===d||!(d=t("v"+c.type,c))||(d.isDefaultPrevented()&&c.preventDefault(),d.isPropagationStopped()&&c.stopPropagation(),d.isImmediatePropagationStopped()&&c.stopImmediatePropagation())}function q(c){var d=f(c).touches,b;d&&1===d.length&&(b=c.target,d=e(b),d.hasVirtualBinding&&(R=Q++,a.data(b,"virtualTouchID",R),E&&(clearTimeout(E),E=0),P=K=!1,b=f(c).touches[0],C=b.pageX,v=b.pageY,t("vmouseover",
c,d),t("vmousedown",c,d)))}function n(a){K||(P||t("vmousecancel",a,e(a.target)),P=!0,h())}function r(c){if(!K){var d=f(c).touches[0],b=P,k=a.vmouse.moveDistanceThreshold,q=e(c.target);(P=P||Math.abs(d.pageX-C)>k||Math.abs(d.pageY-v)>k)&&!b&&t("vmousecancel",c,q);t("vmousemove",c,q);h()}}function u(a){if(!K){K=!0;var c=e(a.target),d;t("vmouseup",a,c);P||(d=t("vclick",a,c))&&d.isDefaultPrevented()&&(d=f(a).changedTouches[0],L.push({touchID:R,x:d.clientX,y:d.clientY}),M=!0);t("vmouseout",a,c);P=!1;h()}}
function x(c){c=a.data(c,"virtualMouseBindings");var d;if(c)for(d in c)if(c[d])return!0;return!1}function B(){}function y(c){var d=c.substr(1);return{setup:function(){x(this)||a.data(this,"virtualMouseBindings",{});a.data(this,"virtualMouseBindings")[c]=!0;F[c]=(F[c]||0)+1;1===F[c]&&I.bind(d,A);a(this).bind(d,B);ba&&(F.touchstart=(F.touchstart||0)+1,1===F.touchstart&&I.bind("touchstart",q).bind("touchend",u).bind("touchmove",r).bind("scroll",n))},teardown:function(){--F[c];F[c]||I.unbind(d,A);ba&&
(--F.touchstart,F.touchstart||I.unbind("touchstart",q).unbind("touchmove",r).unbind("touchend",u).unbind("scroll",n));var b=a(this),f=a.data(this,"virtualMouseBindings");f&&(f[c]=!1);b.unbind(d,B);x(this)||b.removeData("virtualMouseBindings")}}}b="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" ");var w="clientX clientY pageX pageY screenX screenY".split(" "),G=a.event.props.concat(a.event.mouseHooks?a.event.mouseHooks.props:[]),F={},E=0,C=0,v=0,P=!1,L=[],M=!1,K=!1,
ba="addEventListener"in d,I=a(d),Q=1,R=0,N,O;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(O=0;O<b.length;O++)a.event.special[b[O]]=y(b[O]);ba&&d.addEventListener("click",function(c){var d=L.length,b=c.target,f,e,m,k,q;if(d)for(f=c.clientX,e=c.clientY,N=a.vmouse.clickDistanceThreshold,m=b;m;){for(k=0;k<d;k++)if(q=L[k],m===b&&Math.abs(q.x-f)<N&&Math.abs(q.y-e)<N||a.data(m,"virtualTouchID")===q.touchID){c.preventDefault();c.stopPropagation();return}m=m.parentNode}},
!0)})(a,h,b);a.mobile={};(function(a,e){var d={touch:"ontouchend"in b};a.mobile.support=a.mobile.support||{};a.extend(a.support,d);a.extend(a.mobile.support,d)})(a);(function(a,e,d){function c(c,b,f,e){var m=f.type;f.type=b;e?a.event.trigger(f,d,c):a.event.dispatch.call(c,f);f.type=m}var f=a(b),m=a.mobile.support.touch,h=m?"touchstart":"mousedown",t=m?"touchend":"mouseup",A=m?"touchmove":"mousemove";a.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),
function(c,d){a.fn[d]=function(a){return a?this.bind(d,a):this.trigger(d)};a.attrFn&&(a.attrFn[d]=!0)});a.event.special.scrollstart={enabled:!0,setup:function(){function d(a,e){f=e;c(b,f?"scrollstart":"scrollstop",a)}var b=this,f,e;a(b).bind("touchmove scroll",function(c){a.event.special.scrollstart.enabled&&(f||d(c,!0),clearTimeout(e),e=setTimeout(function(){d(c,!1)},50))})},teardown:function(){a(this).unbind("touchmove scroll")}};a.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var d=
this,b=a(d),e=!1;b.bind("vmousedown",function(m){function k(){clearTimeout(t)}function h(){k();b.unbind("vclick",p).unbind("vmouseup",k);f.unbind("vmousecancel",h)}function p(a){h();e||A!==a.target?e&&a.preventDefault():c(d,"tap",a)}e=!1;if(m.which&&1!==m.which)return!1;var A=m.target,t;b.bind("vmouseup",k).bind("vclick",p);f.bind("vmousecancel",h);t=setTimeout(function(){a.event.special.tap.emitTapOnTaphold||(e=!0);c(d,"taphold",a.Event("taphold",{target:A}))},a.event.special.tap.tapholdThreshold)})},
teardown:function(){a(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup");f.unbind("vmousecancel")}};a.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1E3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(a){var c=e.pageXOffset,d=e.pageYOffset,b=a.clientX,f=a.clientY;if(0===a.pageY&&Math.floor(f)>Math.floor(a.pageY)||0===a.pageX&&Math.floor(b)>Math.floor(a.pageX))b-=c,f-=d;else if(f<a.pageY-d||b<a.pageX-c)b=a.pageX-c,f=a.pageY-d;return{x:b,
y:f}},start:function(c){var d=a.event.special.swipe.getLocation(c.originalEvent.touches?c.originalEvent.touches[0]:c);return{time:(new Date).getTime(),coords:[d.x,d.y],origin:a(c.target)}},stop:function(c){c=a.event.special.swipe.getLocation(c.originalEvent.touches?c.originalEvent.touches[0]:c);return{time:(new Date).getTime(),coords:[c.x,c.y]}},handleSwipe:function(d,b,f,e){if(b.time-d.time<a.event.special.swipe.durationThreshold&&Math.abs(d.coords[0]-b.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&
Math.abs(d.coords[1]-b.coords[1])<a.event.special.swipe.verticalDistanceThreshold){var m=d.coords[0]>b.coords[0]?"swipeleft":"swiperight";c(f,"swipe",a.Event("swipe",{target:e,swipestart:d,swipestop:b}),!0);c(f,m,a.Event(m,{target:e,swipestart:d,swipestop:b}),!0);return!0}return!1},eventInProgress:!1,setup:function(){var c,d=this,b=a(d),e={};c=a.data(this,"mobile-events");c||(c={length:0},a.data(this,"mobile-events",c));c.length++;c.swipe=e;e.start=function(c){if(!a.event.special.swipe.eventInProgress){a.event.special.swipe.eventInProgress=
!0;var b,m=a.event.special.swipe.start(c),k=c.target,h=!1;e.move=function(c){m&&!c.isDefaultPrevented()&&(b=a.event.special.swipe.stop(c),!h&&(h=a.event.special.swipe.handleSwipe(m,b,d,k))&&(a.event.special.swipe.eventInProgress=!1),Math.abs(m.coords[0]-b.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&c.preventDefault())};e.stop=function(){h=!0;a.event.special.swipe.eventInProgress=!1;f.off(A,e.move);e.move=null};f.on(A,e.move).one(t,e.stop)}};b.on(h,e.start)},teardown:function(){var c,
d;if(c=a.data(this,"mobile-events"))d=c.swipe,delete c.swipe,c.length--,0===c.length&&a.removeData(this,"mobile-events");d&&(d.start&&a(this).off(h,d.start),d.move&&f.off(A,d.move),d.stop&&f.off(t,d.stop))}};a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(c,d){a.event.special[c]={setup:function(){a(this).bind(d,a.noop)},teardown:function(){a(this).unbind(d)}}})})(a,this)});(function(a,h){function b(d,c){var b,m;b=d.nodeName.toLowerCase();if("area"===b){b=d.parentNode;m=b.name;if(!d.href||!m||"map"!==b.nodeName.toLowerCase())return!1;b=a("img[usemap\x3d#"+m+"]")[0];return!!b&&e(b)}return(/input|select|textarea|button|object/.test(b)?!d.disabled:"a"===b?d.href||c:c)&&e(d)}function e(d){return a.expr.filters.visible(d)&&!a(d).parents().andSelf().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var g=0,k=/^ui-id-\d+$/;a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,
{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({_focus:a.fn.focus,focus:function(d,c){return"number"===typeof d?this.each(function(){var b=this;setTimeout(function(){a(b).focus();c&&c.call(b)},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;
d=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!d.length?a(document):
d},zIndex:function(d){if(d!==h)return this.css("zIndex",d);if(this.length){d=a(this[0]);for(var c;d.length&&d[0]!==document;){c=d.css("position");if("absolute"===c||"relative"===c||"fixed"===c)if(c=parseInt(d.css("zIndex"),10),!isNaN(c)&&0!==c)return c;d=d.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++g)})},removeUniqueId:function(){return this.each(function(){k.test(this.id)&&a(this).removeAttr("id")})},refresh:function(){return this.each(function(){var d=
a(this).data(),c;for(c in d)d[c]instanceof a.Widget&&"function"===typeof d[c].refresh&&d[c].refresh()}).trigger("refresh")}}),a("\x3ca\x3e").outerWidth(1).jquery||a.each(["Width","Height"],function(d,c){function b(c,d,f,g){a.each(e,function(){d-=parseFloat(a.css(c,"padding"+this))||0;f&&(d-=parseFloat(a.css(c,"border"+this+"Width"))||0);g&&(d-=parseFloat(a.css(c,"margin"+this))||0)});return d}var e="Width"===c?["Left","Right"]:["Top","Bottom"],g=c.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,
outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(d){return d===h?k["inner"+c].call(this):this.each(function(){a(this).css(g,b(this,d)+"px")})};a.fn["outer"+c]=function(d,e){return"number"!==typeof d?k["outer"+c].call(this,d):this.each(function(){a(this).css(g,b(this,d,!0,e)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(d){return function(c){return!!a.data(c,d)}}):function(d,c,b){return!!a.data(d,b[3])},focusable:function(d){return b(d,
!isNaN(a.attr(d,"tabindex")))},tabbable:function(d){var c=a.attr(d,"tabindex"),f=isNaN(c);return(f||0<=c)&&b(d,!f)}}),a(function(){var d=document.body,c=d.appendChild(c=document.createElement("div"));c.offsetHeight;a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=100===c.offsetHeight;a.support.selectstart="onselectstart"in c;d.removeChild(c).style.display="none"}),function(){var d=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];a.ui.ie=d.length?
!0:!1;a.ui.ie6=6===parseFloat(d[1],10)}(),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(d,c,b){var e;d=a.ui[d].prototype;for(e in b)d.plugins[e]=d.plugins[e]||[],d.plugins[e].push([c,b[e]])},call:function(a,c,b){var e=a.plugins[c];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(c=
0;c<e.length;c++)a.options[e[c][0]]&&e[c][1].apply(a.element,b)}},contains:a.contains,hasScroll:function(d,c){if("hidden"===a(d).css("overflow"))return!1;var b=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;if(0<d[b])return!0;d[b]=1;e=0<d[b];d[b]=0;return e},isOverAxis:function(a,c,b){return a>c&&a<c+b},isOver:function(d,c,b,e,g,k){return a.ui.isOverAxis(d,b,g)&&a.ui.isOverAxis(c,e,k)}}))})(jQuery);(function(a,h){var b=0,e=Array.prototype.slice,g=a.cleanData;a.cleanData=function(b){for(var d=0,c;null!=(c=b[d]);d++)try{a(c).triggerHandler("remove")}catch(f){}g(b)};a.widget=function(b,d,c){var f,e,g,h,A=b.split(".")[0];b=b.split(".")[1];f=A+"-"+b;c||(c=d,d=a.Widget);a.expr[":"][f.toLowerCase()]=function(c){return!!a.data(c,f)};a[A]=a[A]||{};e=a[A][b];g=a[A][b]=function(a,c){if(!this._createWidget)return new g(a,c);arguments.length&&this._createWidget(a,c)};a.extend(g,e,{version:c.version,_proto:a.extend({},
c),_childConstructors:[]});h=new d;h.options=a.widget.extend({},h.options);a.each(c,function(b,f){a.isFunction(f)&&(c[b]=function(){var a=function(){return d.prototype[b].apply(this,arguments)},c=function(a){return d.prototype[b].apply(this,a)};return function(){var d=this._super,b=this._superApply,e;this._super=a;this._superApply=c;e=f.apply(this,arguments);this._super=d;this._superApply=b;return e}}())});g.prototype=a.widget.extend(h,{widgetEventPrefix:h.widgetEventPrefix||b},c,{constructor:g,namespace:A,
widgetName:b,widgetBaseClass:f,widgetFullName:f});e?(a.each(e._childConstructors,function(c,d){var b=d.prototype;a.widget(b.namespace+"."+b.widgetName,g,d._proto)}),delete e._childConstructors):d._childConstructors.push(g);a.widget.bridge(b,g)};a.widget.extend=function(b){for(var d=e.call(arguments,1),c=0,f=d.length,g,p;c<f;c++)for(g in d[c])p=d[c][g],d[c].hasOwnProperty(g)&&p!==h&&(a.isPlainObject(p)?b[g]=a.isPlainObject(b[g])?a.widget.extend({},b[g],p):a.widget.extend({},p):b[g]=p);return b};a.widget.bridge=
function(b,d){var c=d.prototype.widgetFullName;a.fn[b]=function(f){var g="string"===typeof f,p=e.call(arguments,1),t=this;f=!g&&p.length?a.widget.extend.apply(null,[f].concat(p)):f;g?this.each(function(){var d,e=a.data(this,c);if(!e)return a.error("cannot call methods on "+b+" prior to initialization; attempted to call method '"+f+"'");if(!a.isFunction(e[f])||"_"===f.charAt(0))return a.error("no such method '"+f+"' for "+b+" widget instance");d=e[f].apply(e,p);if(d!==e&&d!==h)return t=d&&d.jquery?
t.pushStack(d.get()):d,!1}):this.each(function(){var b=a.data(this,c);b?b.option(f||{})._init():new d(f,this)});return t}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"\x3cdiv\x3e",options:{disabled:!1,create:null},_createWidget:function(e,d){d=a(d||this.defaultElement||this)[0];this.element=a(d);this.uuid=b++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=a.widget.extend({},this.options,this._getCreateOptions(),
e);this.bindings=a();this.hoverable=a();this.focusable=a();d!==this&&(a.data(d,this.widgetFullName,this),this._on(this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy();
this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(b,d){var c=b,f,e,g;
if(0===arguments.length)return a.widget.extend({},this.options);if("string"===typeof b)if(c={},f=b.split("."),b=f.shift(),f.length){e=c[b]=a.widget.extend({},this.options[b]);for(g=0;g<f.length-1;g++)e[f[g]]=e[f[g]]||{},e=e[f[g]];b=f.pop();if(d===h)return e[b]===h?null:e[b];e[b]=d}else{if(d===h)return this.options[b]===h?null:this.options[b];c[b]=d}this._setOptions(c);return this},_setOptions:function(a){for(var d in a)this._setOption(d,a[d]);return this},_setOption:function(a,d){this.options[a]=
d;"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!d).attr("aria-disabled",d),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"));return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,d){var c,f=this;d?(b=c=a(b),this.bindings=this.bindings.add(b)):(d=b,b=this.element,c=this.widget());a.each(d,function(d,e){function g(){if(!0!==
f.options.disabled&&!a(this).hasClass("ui-state-disabled"))return("string"===typeof e?f[e]:e).apply(f,arguments)}"string"!==typeof e&&(g.guid=e.guid=e.guid||g.guid||a.guid++);var h=d.match(/^(\w+)\s*(.*)$/),q=h[1]+f.eventNamespace;(h=h[2])?c.delegate(h,q,g):b.bind(q,g)})},_off:function(a,d){d=(d||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(d).undelegate(d)},_delay:function(a,d){var c=this;return setTimeout(function(){return("string"===typeof a?c[a]:a).apply(c,arguments)},
d||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b);this._on(b,{mouseenter:function(d){a(d.currentTarget).addClass("ui-state-hover")},mouseleave:function(d){a(d.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b);this._on(b,{focusin:function(d){a(d.currentTarget).addClass("ui-state-focus")},focusout:function(d){a(d.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,d,c){var f,e=this.options[b];c=c||{};d=a.Event(d);
d.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d.target=this.element[0];if(b=d.originalEvent)for(f in b)f in d||(d[f]=b[f]);this.element.trigger(d,c);return!(a.isFunction(e)&&!1===e.apply(this.element[0],[d].concat(c))||d.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(b,d){a.Widget.prototype["_"+b]=function(c,f,e){"string"===typeof f&&(f={effect:f});var g,h=f?!0===f||"number"===typeof f?d:f.effect||d:b;f=f||{};"number"===typeof f&&(f={duration:f});
g=!a.isEmptyObject(f);f.complete=e;f.delay&&c.delay(f.delay);if(g&&a.effects&&(a.effects.effect[h]||!1!==a.uiBackCompat&&a.effects[h]))c[b](f);else if(h!==b&&c[h])c[h](f.duration,f.easing,e);else c.queue(function(d){a(this)[b]();e&&e.call(c[0]);d()})}});!1!==a.uiBackCompat&&(a.Widget.prototype._getCreateOptions=function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})})(jQuery);(function(a,h){function b(a,c,d){return[parseInt(a[0],10)*(t.test(a[0])?c/100:1),parseInt(a[1],10)*(t.test(a[1])?d/100:1)]}a.ui=a.ui||{};var e,g=Math.max,k=Math.abs,d=Math.round,c=/left|center|right/,f=/top|center|bottom/,m=/[\+\-]\d+%?/,p=/^\w+/,t=/%$/,A=a.fn.position;a.position={scrollbarWidth:function(){if(e!==h)return e;var c,d,b=a("\x3cdiv style\x3d'display:block;width:50px;height:50px;overflow:hidden;'\x3e\x3cdiv style\x3d'height:100px;width:auto;'\x3e\x3c/div\x3e\x3c/div\x3e");d=b.children()[0];
a("body").append(b);c=d.offsetWidth;b.css("overflow","scroll");d=d.offsetWidth;c===d&&(d=b[0].clientWidth);b.remove();return e=c-d},getScrollInfo:function(c){var d=c.isWindow?"":c.element.css("overflow-x"),b=c.isWindow?"":c.element.css("overflow-y"),b="scroll"===b||"auto"===b&&c.height<c.element[0].scrollHeight;return{width:"scroll"===d||"auto"===d&&c.width<c.element[0].scrollWidth?a.position.scrollbarWidth():0,height:b?a.position.scrollbarWidth():0}},getWithinInfo:function(c){c=a(c||window);var d=
a.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}};a.fn.position=function(e){if(!e||!e.of)return A.apply(this,arguments);e=a.extend({},e);var h,r,t,x,B,y=a(e.of),w=a.position.getWithinInfo(e.within),G=a.position.getScrollInfo(w),F=y[0],E=(e.collision||"flip").split(" "),C={};9===F.nodeType?(r=y.width(),t=y.height(),x={top:0,left:0}):a.isWindow(F)?(r=
y.width(),t=y.height(),x={top:y.scrollTop(),left:y.scrollLeft()}):F.preventDefault?(e.at="left top",r=t=0,x={top:F.pageY,left:F.pageX}):(r=y.outerWidth(),t=y.outerHeight(),x=y.offset());B=a.extend({},x);a.each(["my","at"],function(){var a=(e[this]||"").split(" "),d,b;1===a.length&&(a=c.test(a[0])?a.concat(["center"]):f.test(a[0])?["center"].concat(a):["center","center"]);a[0]=c.test(a[0])?a[0]:"center";a[1]=f.test(a[1])?a[1]:"center";d=m.exec(a[0]);b=m.exec(a[1]);C[this]=[d?d[0]:0,b?b[0]:0];e[this]=
[p.exec(a[0])[0],p.exec(a[1])[0]]});1===E.length&&(E[1]=E[0]);"right"===e.at[0]?B.left+=r:"center"===e.at[0]&&(B.left+=r/2);"bottom"===e.at[1]?B.top+=t:"center"===e.at[1]&&(B.top+=t/2);h=b(C.at,r,t);B.left+=h[0];B.top+=h[1];return this.each(function(){var c,f,m=a(this),p=m.outerWidth(),A=m.outerHeight(),F=parseInt(a.css(this,"marginLeft"),10)||0,I=parseInt(a.css(this,"marginTop"),10)||0,Q=p+F+(parseInt(a.css(this,"marginRight"),10)||0)+G.width,R=A+I+(parseInt(a.css(this,"marginBottom"),10)||0)+G.height,
N=a.extend({},B),O=b(C.my,m.outerWidth(),m.outerHeight());"right"===e.my[0]?N.left-=p:"center"===e.my[0]&&(N.left-=p/2);"bottom"===e.my[1]?N.top-=A:"center"===e.my[1]&&(N.top-=A/2);N.left+=O[0];N.top+=O[1];a.support.offsetFractions||(N.left=d(N.left),N.top=d(N.top));c={marginLeft:F,marginTop:I};a.each(["left","top"],function(d,b){if(a.ui.position[E[d]])a.ui.position[E[d]][b](N,{targetWidth:r,targetHeight:t,elemWidth:p,elemHeight:A,collisionPosition:c,collisionWidth:Q,collisionHeight:R,offset:[h[0]+
O[0],h[1]+O[1]],my:e.my,at:e.at,within:w,elem:m})});a.fn.bgiframe&&m.bgiframe();e.using&&(f=function(a){var c=x.left-N.left,d=c+r-p,b=x.top-N.top,f=b+t-A,h={target:{element:y,left:x.left,top:x.top,width:r,height:t},element:{element:m,left:N.left,top:N.top,width:p,height:A},horizontal:0>d?"left":0<c?"right":"center",vertical:0>f?"top":0<b?"bottom":"middle"};r<p&&k(c+d)<r&&(h.horizontal="center");t<A&&k(b+f)<t&&(h.vertical="middle");g(k(c),k(d))>g(k(b),k(f))?h.important="horizontal":h.important="vertical";
e.using.call(this,a,h)});m.offset(a.extend(N,{using:f}))})};a.ui.position={fit:{left:function(a,c){var d=c.within,b=d.isWindow?d.scrollLeft:d.offset.left,f=d.width,e=a.left-c.collisionPosition.marginLeft,d=b-e,m=e+c.collisionWidth-f-b;c.collisionWidth>f?0<d&&0>=m?(b=a.left+d+c.collisionWidth-f-b,a.left+=d-b):a.left=0<m&&0>=d?b:d>m?b+f-c.collisionWidth:b:a.left=0<d?a.left+d:0<m?a.left-m:g(a.left-e,a.left)},top:function(a,c){var d=c.within,b=d.isWindow?d.scrollTop:d.offset.top,f=c.within.height,e=a.top-
c.collisionPosition.marginTop,d=b-e,m=e+c.collisionHeight-f-b;c.collisionHeight>f?0<d&&0>=m?(b=a.top+d+c.collisionHeight-f-b,a.top+=d-b):a.top=0<m&&0>=d?b:d>m?b+f-c.collisionHeight:b:a.top=0<d?a.top+d:0<m?a.top-m:g(a.top-e,a.top)}},flip:{left:function(a,c){var d=c.within,b=d.offset.left+d.scrollLeft,f=d.width,e=d.isWindow?d.scrollLeft:d.offset.left,g=a.left-c.collisionPosition.marginLeft,d=g-e,m=g+c.collisionWidth-f-e,g="left"===c.my[0]?-c.elemWidth:"right"===c.my[0]?c.elemWidth:0,h="left"===c.at[0]?
c.targetWidth:"right"===c.at[0]?-c.targetWidth:0,p=-2*c.offset[0];if(0>d){if(b=a.left+g+h+p+c.collisionWidth-f-b,0>b||b<k(d))a.left+=g+h+p}else 0<m&&(b=a.left-c.collisionPosition.marginLeft+g+h+p-e,0<b||k(b)<m)&&(a.left+=g+h+p)},top:function(a,c){var d=c.within,b=d.offset.top+d.scrollTop,f=d.height,e=d.isWindow?d.scrollTop:d.offset.top,g=a.top-c.collisionPosition.marginTop,d=g-e,m=g+c.collisionHeight-f-e,g="top"===c.my[1]?-c.elemHeight:"bottom"===c.my[1]?c.elemHeight:0,h="top"===c.at[1]?c.targetHeight:
"bottom"===c.at[1]?-c.targetHeight:0,p=-2*c.offset[1];0>d?(b=a.top+g+h+p+c.collisionHeight-f-b,a.top+g+h+p>d&&(0>b||b<k(d))&&(a.top+=g+h+p)):0<m&&(b=a.top-c.collisionPosition.marginTop+g+h+p-e,a.top+g+h+p>m&&(0<b||k(b)<m)&&(a.top+=g+h+p))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments);a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments);a.ui.position.fit.top.apply(this,arguments)}}};(function(){var c,d,b,f,e=document.getElementsByTagName("body")[0];
b=document.createElement("div");c=document.createElement(e?"div":"body");d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};e&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)c.style[f]=d[f];c.appendChild(b);d=e||document.documentElement;d.insertBefore(c,d.firstChild);b.style.cssText="position: absolute; left: 10.7432222px;";b=a(b).offset().left;a.support.offsetFractions=10<b&&11>b;c.innerHTML="";d.removeChild(c)})();!1!==a.uiBackCompat&&function(a){var c=
a.fn.position;a.fn.position=function(d){if(!d||!d.offset)return c.call(this,d);var b=d.offset.split(" "),f=d.at.split(" ");1===b.length&&(b[1]=b[0]);/^\d/.test(b[0])&&(b[0]="+"+b[0]);/^\d/.test(b[1])&&(b[1]="+"+b[1]);1===f.length&&(/left|center|right/.test(f[0])?f[1]="center":(f[1]=f[0],f[0]="center"));return c.call(this,a.extend(d,{at:f[0]+b[0]+" "+f[1]+b[1],offset:h}))}}(jQuery)})(jQuery);(function(a,h){var b=!1;a(document).mouseup(function(a){b=!1});a.widget("ui.mouse",{version:"1.9.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(g){if(!0===a.data(g.target,b.widgetName+".preventClickEvent"))return a.removeData(g.target,b.widgetName+".preventClickEvent"),g.stopImmediatePropagation(),!1});this.started=
!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!b){this._mouseStarted&&this._mouseUp(e);this._mouseDownEvent=e;var g=this,k=1===e.which,d="string"===typeof this.options.cancel&&e.target.nodeName?a(e.target).closest(this.options.cancel).length:!1;if(!k||d||!this._mouseCapture(e))return!0;this.mouseDelayMet=
!this.options.delay;this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted))return e.preventDefault(),!0;!0===a.data(e.target,this.widgetName+".preventClickEvent")&&a.removeData(e.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return g._mouseMove(a)};this._mouseUpDelegate=function(a){return g._mouseUp(a)};
a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);e.preventDefault();return b=!0}},_mouseMove:function(b){if(a.ui.ie&&!(9<=document.documentMode)&&!b.button)return this._mouseUp(b);if(this._mouseStarted)return this._mouseDrag(b),b.preventDefault();this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&((this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,b))?this._mouseDrag(b):this._mouseUp(b));return!this._mouseStarted},
_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},
_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);(function(a,h){var b=!1;a.widget("ui.menu",{version:"1.9.1",defaultElement:"\x3cul\x3e",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,
a.proxy(function(a){this.options.disabled&&a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item \x3e a":function(a){a.preventDefault()},"click .ui-state-disabled \x3e a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(e){var g=a(e.target).closest(".ui-menu-item");!b&&g.not(".ui-state-disabled").length&&(b=!0,this.select(e),g.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||
(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var g=a(b.currentTarget);g.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(b,g)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var k=this.active||this.element.children(".ui-menu-item:visible").eq(0);b||this.focus(a,k)},blur:function(b){this._delay(function(){a.contains(this.element[0],
this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(e){a(e.target).closest(".ui-menu").length||this.collapseAll(e);b=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function g(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$\x26")}var k,d,c,f,m=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);
break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:m=!1,k=this.previousFilter||"",d=String.fromCharCode(b.keyCode),c=!1,clearTimeout(this.filterTimer),d===k?c=!0:d=k+d,f=new RegExp("^"+g(d),"i"),k=this.activeMenu.children(".ui-menu-item:visible").filter(function(){return f.test(a(this).children("a").text())}),k=c&&-1!==k.index(this.active.next())?this.active.nextAll(".ui-menu-item:visible"):k,k.length||(d=String.fromCharCode(b.keyCode),f=new RegExp("^"+g(d),"i"),k=this.activeMenu.children(".ui-menu-item:visible").filter(function(){return f.test(a(this).children("a").text())})),
k.length?(this.focus(b,k),1<k.length?(this.previousFilter=d,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}m&&b.preventDefault()},_activate:function(a){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("a[aria-haspopup\x3d'true']").length?this.expand(a):this.select(a))},refresh:function(){var b,g=this.options.icons.submenu,k=this.element.find(this.options.menus+":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
"aria-hidden":"true","aria-expanded":"false"});b=k.add(this.element);b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});b.children(":not(.ui-menu-item)").each(function(){var d=a(this);/[^\-—–\s]/.test(d.text())||d.addClass("ui-widget-content ui-menu-divider")});b.children(".ui-state-disabled").attr("aria-disabled","true");k.each(function(){var d=a(this),c=d.prev("a"),
b=a("\x3cspan\x3e").addClass("ui-menu-icon ui-icon "+g).data("ui-menu-submenu-carat",!0);c.attr("aria-haspopup","true").prepend(b);d.attr("aria-labelledby",c.attr("id"))});this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,b){var k;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(b);this.active=b.first();k=this.active.children("a").addClass("ui-state-focus");this.options.role&&
this.element.attr("aria-activedescendant",k.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);k=b.children(".ui-menu");k.length&&/^mouse/.test(a.type)&&this._startOpening(k);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var g,k,d;this._hasScroll()&&(g=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||
0,k=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,g=b.offset().top-this.activeMenu.offset().top-g-k,k=this.activeMenu.scrollTop(),d=this.activeMenu.height(),b=b.height(),0>g?this.activeMenu.scrollTop(k+g):g+b>d&&this.activeMenu.scrollTop(k+g-d+b))},blur:function(a,b){b||clearTimeout(this.timer);this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer);"true"===a.attr("aria-hidden")&&
(this.timer=this._delay(function(){this._close();this._open(a)},this.delay))},_open:function(b){var g=a.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true");b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(g)},collapseAll:function(b,g){clearTimeout(this.timer);this.timer=this._delay(function(){var k=g?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));
k.length||(k=this.element);this._close(k);this.blur(b);this.activeMenu=k},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item:visible",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item:visible").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item:visible").length},_move:function(a,b,k){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item:visible").eq(-1):
this.active[a+"All"](".ui-menu-item:visible").eq(0));d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item:visible")[b]());this.focus(k,d)},nextPage:function(b){var g,k,d;this.active?this.isLastItem()||(this._hasScroll()?(k=this.active.offset().top,d=this.element.height(),this.active.nextAll(".ui-menu-item:visible").each(function(){g=a(this);return 0>g.offset().top-k-d}),this.focus(b,g)):this.focus(b,this.activeMenu.children(".ui-menu-item:visible")[this.active?"last":"first"]())):
this.next(b)},previousPage:function(b){var g,k,d;this.active?this.isFirstItem()||(this._hasScroll()?(k=this.active.offset().top,d=this.element.height(),this.active.prevAll(".ui-menu-item:visible").each(function(){g=a(this);return 0<g.offset().top-k+d}),this.focus(b,g)):this.focus(b,this.activeMenu.children(".ui-menu-item:visible").first())):this.next(b)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item:visible");
var g={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0);this._trigger("select",b,g)}})})(jQuery);(function(a,h){var b=0;a.widget("ui.autocomplete",{version:"1.9.1",defaultElement:"\x3cinput\x3e",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var b,g,k;this.isMultiLine=this._isMultiLine();this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"];this.isNewMenu=!0;this.element.addClass("ui-autocomplete-input").attr("autocomplete",
"off");this._on(this.element,{keydown:function(d){if(this.element.prop("readOnly"))g=k=b=!0;else{g=k=b=!1;var c=a.ui.keyCode;switch(d.keyCode){case c.PAGE_UP:b=!0;this._move("previousPage",d);break;case c.PAGE_DOWN:b=!0;this._move("nextPage",d);break;case c.UP:b=!0;this._keyEvent("previous",d);break;case c.DOWN:b=!0;this._keyEvent("next",d);break;case c.ENTER:case c.NUMPAD_ENTER:this.menu.active&&(b=!0,d.preventDefault(),this.menu.select(d));break;case c.TAB:this.menu.active&&this.menu.select(d);
break;case c.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(d),d.preventDefault());break;default:g=!0,this._searchTimeout(d)}}},keypress:function(d){if(b)b=!1,d.preventDefault();else if(!g){var c=a.ui.keyCode;switch(d.keyCode){case c.PAGE_UP:this._move("previousPage",d);break;case c.PAGE_DOWN:this._move("nextPage",d);break;case c.UP:this._keyEvent("previous",d);break;case c.DOWN:this._keyEvent("next",d)}}},input:function(a){k?(k=!1,a.preventDefault()):this._searchTimeout(a)},
focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(a){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),this._change(a))}});this._initSource();this.menu=a("\x3cul\x3e").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:a(),role:null}).zIndex(this.element.zIndex()+1).hide().data("ui-menu");this._on(this.menu.element,{mousedown:function(d){d.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur});
var c=this.menu.element[0];a(d.target).closest(".ui-menu-item").length||this._delay(function(){var d=this;this.document.one("mousedown",function(b){b.target===d.element[0]||b.target===c||a.contains(c,b.target)||d.close()})})},menufocus:function(d,c){if(this.isNewMenu&&(this.isNewMenu=!1,d.originalEvent&&/^mouse/.test(d.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){a(d.target).trigger(d.originalEvent)});return}var b=c.item.data("ui-autocomplete-item")||c.item.data("item.autocomplete");
!1!==this._trigger("focus",d,{item:b})?d.originalEvent&&/^key/.test(d.originalEvent.type)&&this._value(b.value):this.liveRegion.text(b.value)},menuselect:function(a,c){var b=c.item.data("ui-autocomplete-item")||c.item.data("item.autocomplete"),e=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=e,this._delay(function(){this.previous=e;this.selectedItem=b}));!1!==this._trigger("select",a,{item:b})&&this._value(b.value);this.term=this._value();this.close(a);
this.selectedItem=b}});this.liveRegion=a("\x3cspan\x3e",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element);a.fn.bgiframe&&this.menu.element.bgiframe();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(a,b){this._super(a,
b);"source"===a&&this._initSource();"appendTo"===a&&this.menu.element.appendTo(this.document.find(b||"body")[0]);"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return this.element.is("textarea")?!0:this.element.is("input")?!1:this.element.prop("isContentEditable")},_initSource:function(){var b,g,k=this;a.isArray(this.options.source)?(b=this.options.source,this.source=function(d,c){c(a.ui.autocomplete.filter(b,d.term))}):"string"===typeof this.options.source?(g=this.options.source,
this.source=function(d,c){k.xhr&&k.xhr.abort();k.xhr=a.ajax({url:g,data:d,dataType:"json",success:function(a){c(a)},error:function(){c([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching);this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){a=null!=a?a:this._value();this.term=this._value();if(a.length<this.options.minLength)return this.close(b);if(!1!==this._trigger("search",
b))return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:a},this._response())},_response:function(){var a=this,g=++b;return function(k){g===b&&a.__response(k);a.pending--;a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a));this._trigger("response",null,{content:a});!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):
this._close()},close:function(a){this.cancelSearch=!0;this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return"string"===typeof b?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},
_suggest:function(b){var g=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(g,b);this.menu.refresh();g.show();this._resizeMenu();g.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,g){var k=this;a.each(g,function(a,c){k._renderItemData(b,c)})},_renderItemData:function(a,b){return this._renderItem(a,
b).data("ui-autocomplete-item",b)},_renderItem:function(b,g){return a("\x3cli\x3e").append(a("\x3ca\x3e").text(g.label)).appendTo(b)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a))this._value(this.term),this.menu.blur();else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,
b){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(a,b),b.preventDefault()}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$\x26")},filter:function(b,g){var k=new RegExp(a.ui.autocomplete.escapeRegex(g),"i");return a.grep(b,function(a){return k.test(a.label||a.value||a)})}});a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(1<a?" results are":" result is")+
" available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments);this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})})(jQuery);(function(a,h){var b,e,g,k,d=function(){var c=a(this).find(":ui-button");setTimeout(function(){c.button("refresh")},1)},c=function(c){var d=c.name,b=c.form,e=a([]);d&&(d=d.replace(/['[\\\]]/g,"\\\\$\x26"),e=b?a(b).find("[name\x3d'"+d+"']"):a("[name\x3d'"+d+"']",c.ownerDocument).filter(function(){return!this.form}));return e};a.widget("ui.button",{version:"1.9.1",defaultElement:"\x3cbutton\x3e",options:{disabled:null,text:!0,label:null,type:!0,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+
this.eventNamespace).bind("reset"+this.eventNamespace,d);"boolean"!==typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var f=this,m=this.options,h="checkbox"===this.type||"radio"===this.type,t="ui-state-hover"+(h?"":" ui-state-active");null===m.label&&(m.label="input"===this.type?this.buttonElement.val():this.buttonElement.html());this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role",
"button").bind("mouseenter"+this.eventNamespace,function(){m.disabled||(a(this).addClass("ui-state-hover"),this===b&&a(this).addClass("ui-state-active"))}).bind("mouseleave"+this.eventNamespace,function(){m.disabled||a(this).removeClass(t)}).bind("click"+this.eventNamespace,function(a){m.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus"+this.eventNamespace,function(){f.buttonElement.addClass("ui-state-focus")}).bind("blur"+this.eventNamespace,function(){f.buttonElement.removeClass("ui-state-focus")});
h&&(this.element.bind("change"+this.eventNamespace,function(){k||f.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){m.disabled||(k=!1,e=a.pageX,g=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){m.disabled||e===a.pageX&&g===a.pageY||(k=!0)}));"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(m.disabled||k)return!1;a(this).toggleClass("ui-state-active");f.buttonElement.attr("aria-pressed",f.element[0].checked)}):"radio"===
this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(m.disabled||k)return!1;a(this).addClass("ui-state-active");f.buttonElement.attr("aria-pressed","true");var d=f.element[0];c(d).not(d).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(m.disabled)return!1;a(this).addClass("ui-state-active");b=this;f.document.one("mouseup",function(){b=null})}).bind("mouseup"+
this.eventNamespace,function(){if(m.disabled)return!1;a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(c){if(m.disabled)return!1;c.keyCode!==a.ui.keyCode.SPACE&&c.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(c){c.keyCode===a.ui.keyCode.SPACE&&a(this).click()}));this._setOption("disabled",m.disabled);
this._resetButton()},_determineButtonType:function(){var a,c;this.element.is("[type\x3dcheckbox]")?this.type="checkbox":this.element.is("[type\x3dradio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";"checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),c="label[for\x3d'"+this.element.attr("id")+"']",this.buttonElement=a.find(c),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(c),this.buttonElement.length||
(this.buttonElement=a.find(c))),this.element.addClass("ui-helper-hidden-accessible"),(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",a)):this.buttonElement=this.element;this.options.type&&this.buttonElement.addClass("ui-button-"+this.type)},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,c){this._super(a,c);"disabled"===a?c?this.element.prop("disabled",!0):this.element.prop("disabled",!1):this._resetButton()},refresh:function(){var d=this.element.is(":disabled")||this.element.hasClass("ui-button-disabled");d!==this.options.disabled&&this._setOption("disabled",d);"radio"===this.type?c(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)this.options.label&&this.element.val(this.options.label);else{var c=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
d=a("\x3cspan\x3e\x3c/span\x3e",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(c.empty()).text(),b=this.options.icons,e=b.primary&&b.secondary,g=[];d||c.empty();b.primary||b.secondary?(this.options.text&&g.push("ui-button-text-icon"+(e?"s":b.primary?"-primary":"-secondary")),b.primary&&c.prepend("\x3cspan class\x3d'ui-button-icon-primary ui-icon "+b.primary+"'\x3e\x3c/span\x3e"),b.secondary&&c.append("\x3cspan class\x3d'ui-button-icon-secondary ui-icon "+b.secondary+
"'\x3e\x3c/span\x3e"),this.options.text||(g.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||c.attr("title",a.trim(d)))):g.push("ui-button-text-only");c.addClass(g.join(" "))}}});a.widget("ui.buttonset",{version:"1.9.1",options:{items:"button, input[type\x3dbutton], input[type\x3dsubmit], input[type\x3dreset], input[type\x3dcheckbox], input[type\x3dradio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,
c){"disabled"===a&&this.buttons.button("option",a,c);this._super(a,c)},refresh:function(){var c="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button(this.options).end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(c?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(c?"ui-corner-left":
"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery);(function(a,h){function b(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:"January February March April May June July August September October November December".split(" "),monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesMin:"Su Mo Tu We Th Fr Sa".split(" "),
weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,
beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};a.extend(this._defaults,this.regional[""]);this.dpDiv=e(a('\x3cdiv id\x3d"'+this._mainDivId+'" class\x3d"ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"\x3e\x3c/div\x3e'))}function e(c){return c.delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",
"mouseout",function(){a(this).removeClass("ui-state-hover");-1!=this.className.indexOf("ui-datepicker-prev")&&a(this).removeClass("ui-datepicker-prev-hover");-1!=this.className.indexOf("ui-datepicker-next")&&a(this).removeClass("ui-datepicker-next-hover")}).delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseover",function(){a.datepicker._isDisabledDatepicker(d.inline?c.parent()[0]:d.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),
a(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&a(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&a(this).addClass("ui-datepicker-next-hover"))})}function g(c,d){a.extend(c,d);for(var b in d)if(null==d[b]||d[b]==h)c[b]=d[b];return c}a.extend(a.ui,{datepicker:{version:"1.9.1"}});var k=(new Date).getTime(),d;a.extend(b.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",
arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){g(this._defaults,a||{});return this},_attachDatepicker:function(c,d){var b=null,e;for(e in this._defaults){var g=c.getAttribute("date:"+e);if(g){b=b||{};try{b[e]=eval(g)}catch(k){b[e]=g}}}e=c.nodeName.toLowerCase();g="div"==e||"span"==e;c.id||(this.uuid+=1,c.id="dp"+this.uuid);var h=this._newInst(a(c),g);h.settings=a.extend({},d||{},b||{});"input"==e?this._connectDatepicker(c,h):g&&this._inlineDatepicker(c,h)},_newInst:function(c,
d){return{id:c[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:d,dpDiv:d?e(a('\x3cdiv class\x3d"'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"\x3e\x3c/div\x3e')):this.dpDiv}},_connectDatepicker:function(c,d){var b=a(c);d.append=a([]);d.trigger=a([]);b.hasClass(this.markerClassName)||(this._attachments(b,d),b.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
function(a,c,b){d.settings[c]=b}).bind("getData.datepicker",function(a,c){return this._get(d,c)}),this._autoSize(d),a.data(c,"datepicker",d),d.settings.disabled&&this._disableDatepicker(c))},_attachments:function(c,d){var b=this._get(d,"appendText"),e=this._get(d,"isRTL");d.append&&d.append.remove();b&&(d.append=a('\x3cspan class\x3d"'+this._appendClass+'"\x3e'+b+"\x3c/span\x3e"),c[e?"before":"after"](d.append));c.unbind("focus",this._showDatepicker);d.trigger&&d.trigger.remove();b=this._get(d,"showOn");
"focus"!=b&&"both"!=b||c.focus(this._showDatepicker);if("button"==b||"both"==b){var b=this._get(d,"buttonText"),g=this._get(d,"buttonImage");d.trigger=a(this._get(d,"buttonImageOnly")?a("\x3cimg/\x3e").addClass(this._triggerClass).attr({src:g,alt:b,title:b}):a('\x3cbutton type\x3d"button"\x3e\x3c/button\x3e').addClass(this._triggerClass).html(""==g?b:a("\x3cimg/\x3e").attr({src:g,alt:b,title:b})));c[e?"before":"after"](d.trigger);d.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==
c[0]?a.datepicker._hideDatepicker():(a.datepicker._datepickerShowing&&a.datepicker._lastInput!=c[0]&&a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(c[0]));return!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var d=new Date(2009,11,20),b=this._get(a,"dateFormat");if(b.match(/[DM]/)){var e=function(a){for(var c=0,d=0,b=0;b<a.length;b++)a[b].length>c&&(c=a[b].length,d=b);return d};d.setMonth(e(this._get(a,b.match(/MM/)?"monthNames":"monthNamesShort")));d.setDate(e(this._get(a,
b.match(/DD/)?"dayNames":"dayNamesShort"))+20-d.getDay())}a.input.attr("size",this._formatDate(a,d).length)}},_inlineDatepicker:function(c,d){var b=a(c);b.hasClass(this.markerClassName)||(b.addClass(this.markerClassName).append(d.dpDiv).bind("setData.datepicker",function(a,c,b){d.settings[c]=b}).bind("getData.datepicker",function(a,c){return this._get(d,c)}),a.data(c,"datepicker",d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&
this._disableDatepicker(c),d.dpDiv.css("display","block"))},_dialogDatepicker:function(c,d,b,e,k){c=this._dialogInst;c||(this.uuid+=1,this._dialogInput=a('\x3cinput type\x3d"text" id\x3d"dp'+this.uuid+'" style\x3d"position: absolute; top: -100px; width: 0px;"/\x3e'),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},a.data(this._dialogInput[0],"datepicker",c));g(c.settings,e||{});d=d&&d.constructor==Date?
this._formatDate(c,d):d;this._dialogInput.val(d);this._pos=k?k.length?k:[k.pageX,k.pageY]:null;this._pos||(this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]);this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");c.settings.onSelect=b;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",c);return this},_destroyDatepicker:function(c){var d=a(c),b=a.data(c,"datepicker");if(d.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();a.removeData(c,"datepicker");"input"==e?(b.append.remove(),b.trigger.remove(),d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=e&&"span"!=e||d.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(c){var d=a(c),b=a.data(c,"datepicker");if(d.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();if("input"==e)c.disabled=!1,b.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==e||"span"==e)d=d.children("."+this._inlineClass),d.children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1);this._disabledInputs=a.map(this._disabledInputs,
function(a){return a==c?null:a})}},_disableDatepicker:function(c){var d=a(c),b=a.data(c,"datepicker");if(d.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();if("input"==e)c.disabled=!0,b.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==e||"span"==e)d=d.children("."+this._inlineClass),d.children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",
!0);this._disabledInputs=a.map(this._disabledInputs,function(a){return a==c?null:a});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var d=0;d<this._disabledInputs.length;d++)if(this._disabledInputs[d]==a)return!0;return!1},_getInst:function(c){try{return a.data(c,"datepicker")}catch(d){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(c,d,b){var e=this._getInst(c);if(2==arguments.length&&"string"==typeof d)return"defaults"==
d?a.extend({},a.datepicker._defaults):e?"all"==d?a.extend({},e.settings):this._get(e,d):null;var k=d||{};"string"==typeof d&&(k={},k[d]=b);if(e){this._curInst==e&&this._hideDatepicker();var A=this._getDateDatepicker(c,!0),q=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max");g(e.settings,k);null!==q&&k.dateFormat!==h&&k.minDate===h&&(e.settings.minDate=this._formatDate(e,q));null!==n&&k.dateFormat!==h&&k.maxDate===h&&(e.settings.maxDate=this._formatDate(e,n));this._attachments(a(c),e);this._autoSize(e);
this._setDate(e,A);this._updateAlternate(e);this._updateDatepicker(e)}},_changeDatepicker:function(a,d,b){this._optionDatepicker(a,d,b)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,d){var b=this._getInst(a);b&&(this._setDate(b,d),this._updateDatepicker(b),this._updateAlternate(b))},_getDateDatepicker:function(a,d){var b=this._getInst(a);b&&!b.inline&&this._setDateFromField(b,d);return b?this._getDate(b):null},_doKeyDown:function(c){var d=
a.datepicker._getInst(c.target),b=!0,e=d.dpDiv.is(".ui-datepicker-rtl");d._keyEvent=!0;if(a.datepicker._datepickerShowing)switch(c.keyCode){case 9:a.datepicker._hideDatepicker();b=!1;break;case 13:return b=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",d.dpDiv),b[0]&&a.datepicker._selectDay(c.target,d.selectedMonth,d.selectedYear,b[0]),(c=a.datepicker._get(d,"onSelect"))?(b=a.datepicker._formatDate(d),c.apply(d.input?d.input[0]:null,[b,d])):a.datepicker._hideDatepicker(),
!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(d,"stepBigMonths"):-a.datepicker._get(d,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(c.target,c.ctrlKey?+a.datepicker._get(d,"stepBigMonths"):+a.datepicker._get(d,"stepMonths"),"M");break;case 35:(c.ctrlKey||c.metaKey)&&a.datepicker._clearDate(c.target);b=c.ctrlKey||c.metaKey;break;case 36:(c.ctrlKey||c.metaKey)&&a.datepicker._gotoToday(c.target);b=c.ctrlKey||c.metaKey;
break;case 37:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,e?1:-1,"D");b=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(d,"stepBigMonths"):-a.datepicker._get(d,"stepMonths"),"M");break;case 38:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,-7,"D");b=c.ctrlKey||c.metaKey;break;case 39:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,e?-1:1,"D");b=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&a.datepicker._adjustDate(c.target,
c.ctrlKey?+a.datepicker._get(d,"stepBigMonths"):+a.datepicker._get(d,"stepMonths"),"M");break;case 40:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,7,"D");b=c.ctrlKey||c.metaKey;break;default:b=!1}else 36==c.keyCode&&c.ctrlKey?a.datepicker._showDatepicker(this):b=!1;b&&(c.preventDefault(),c.stopPropagation())},_doKeyPress:function(c){var d=a.datepicker._getInst(c.target);if(a.datepicker._get(d,"constrainInput")){var d=a.datepicker._possibleChars(a.datepicker._get(d,"dateFormat")),b=String.fromCharCode(c.charCode==
h?c.keyCode:c.charCode);return c.ctrlKey||c.metaKey||" ">b||!d||-1<d.indexOf(b)}},_doKeyUp:function(c){c=a.datepicker._getInst(c.target);if(c.input.val()!=c.lastVal)try{a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),c.input?c.input.val():null,a.datepicker._getFormatConfig(c))?(a.datepicker._setDateFromField(c),a.datepicker._updateAlternate(c),a.datepicker._updateDatepicker(c)):a(a.datepicker._get(c,"altField")).val("")}catch(d){a(a.datepicker._get(c,"altField")).val(""),a.datepicker.log(d)}return!0},
_showDatepicker:function(c){c=c.target||c;"input"!=c.nodeName.toLowerCase()&&(c=a("input",c.parentNode)[0]);if(!a.datepicker._isDisabledDatepicker(c)&&a.datepicker._lastInput!=c){var d=a.datepicker._getInst(c);a.datepicker._curInst&&a.datepicker._curInst!=d&&(a.datepicker._curInst.dpDiv.stop(!0,!0),d&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0]));var b=a.datepicker._get(d,"beforeShow"),b=b?b.apply(c,[c,d]):{};if(!1!==b){g(d.settings,b);d.lastVal=null;
a.datepicker._lastInput=c;a.datepicker._setDateFromField(d);a.datepicker._inDialog&&(c.value="");a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(c),a.datepicker._pos[1]+=c.offsetHeight);var e=!1;a(c).parents().each(function(){e|="fixed"==a(this).css("position");return!e});b={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;d.dpDiv.empty();d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(d);b=a.datepicker._checkOffset(d,
b,e);d.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":e?"fixed":"absolute",display:"none",left:b.left+"px",top:b.top+"px"});if(!d.inline){var b=a.datepicker._get(d,"showAnim"),k=a.datepicker._get(d,"duration"),h=function(){var c=d.dpDiv.find("iframe.ui-datepicker-cover");if(c.length){var b=a.datepicker._getBorders(d.dpDiv);c.css({left:-b[0],top:-b[1],width:d.dpDiv.outerWidth(),height:d.dpDiv.outerHeight()})}};d.dpDiv.zIndex(a(c).zIndex()+1);a.datepicker._datepickerShowing=!0;if(a.effects&&
(a.effects.effect[b]||a.effects[b]))d.dpDiv.show(b,a.datepicker._get(d,"showOptions"),k,h);else d.dpDiv[b||"show"](b?k:null,h);b&&k||h();d.input.is(":visible")&&!d.input.is(":disabled")&&d.input.focus();a.datepicker._curInst=d}}}},_updateDatepicker:function(c){this.maxRows=4;var b=a.datepicker._getBorders(c.dpDiv);d=c;c.dpDiv.empty().append(this._generateHTML(c));this._attachHandlers(c);var e=c.dpDiv.find("iframe.ui-datepicker-cover");e.length&&e.css({left:-b[0],top:-b[1],width:c.dpDiv.outerWidth(),
height:c.dpDiv.outerHeight()});c.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(c);e=b[1];c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");1<e&&c.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em");c.dpDiv[(1!=b[0]||1!=b[1]?"add":"remove")+"Class"]("ui-datepicker-multi");c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");c==a.datepicker._curInst&&a.datepicker._datepickerShowing&&c.input&&
c.input.is(":visible")&&!c.input.is(":disabled")&&c.input[0]!=document.activeElement&&c.input.focus();if(c.yearshtml){var g=c.yearshtml;setTimeout(function(){g===c.yearshtml&&c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year:first").replaceWith(c.yearshtml);g=c.yearshtml=null},0)}},_getBorders:function(a){var d=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(d(a.css("border-left-width"))),parseFloat(d(a.css("border-top-width")))]},_checkOffset:function(c,d,b){var e=c.dpDiv.outerWidth(),
g=c.dpDiv.outerHeight(),k=c.input?c.input.outerWidth():0,h=c.input?c.input.outerHeight():0,n=document.documentElement.clientWidth+(b?0:a(document).scrollLeft()),r=document.documentElement.clientHeight+(b?0:a(document).scrollTop());d.left-=this._get(c,"isRTL")?e-k:0;d.left-=b&&d.left==c.input.offset().left?a(document).scrollLeft():0;d.top-=b&&d.top==c.input.offset().top+h?a(document).scrollTop():0;d.left-=Math.min(d.left,d.left+e>n&&n>e?Math.abs(d.left+e-n):0);d.top-=Math.min(d.top,d.top+g>r&&r>g?
Math.abs(g+h):0);return d},_findPos:function(c){for(var d=this._getInst(c),d=this._get(d,"isRTL");c&&("hidden"==c.type||1!=c.nodeType||a.expr.filters.hidden(c));)c=c[d?"previousSibling":"nextSibling"];c=a(c).offset();return[c.left,c.top]},_hideDatepicker:function(c){var d=this._curInst;if(d&&(!c||d==a.data(c,"datepicker"))&&this._datepickerShowing){c=this._get(d,"showAnim");var b=this._get(d,"duration"),e=function(){a.datepicker._tidyDialog(d)};if(a.effects&&(a.effects.effect[c]||a.effects[c]))d.dpDiv.hide(c,
a.datepicker._get(d,"showOptions"),b,e);else d.dpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?b:null,e);c||e();this._datepickerShowing=!1;(c=this._get(d,"onClose"))&&c.apply(d.input?d.input[0]:null,[d.input?d.input.val():"",d]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(c){if(a.datepicker._curInst){c=a(c.target);var d=a.datepicker._getInst(c[0]);(!(c[0].id==a.datepicker._mainDivId||0!=c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)||c.hasClass(a.datepicker.markerClassName)&&a.datepicker._curInst!=d)&&a.datepicker._hideDatepicker()}},_adjustDate:function(c,d,b){c=a(c);var e=this._getInst(c[0]);
this._isDisabledDatepicker(c[0])||(this._adjustInstDate(e,d+("M"==b?this._get(e,"showCurrentAtPos"):0),b),this._updateDatepicker(e))},_gotoToday:function(c){c=a(c);var d=this._getInst(c[0]);if(this._get(d,"gotoCurrent")&&d.currentDay)d.selectedDay=d.currentDay,d.drawMonth=d.selectedMonth=d.currentMonth,d.drawYear=d.selectedYear=d.currentYear;else{var b=new Date;d.selectedDay=b.getDate();d.drawMonth=d.selectedMonth=b.getMonth();d.drawYear=d.selectedYear=b.getFullYear()}this._notifyChange(d);this._adjustDate(c)},
_selectMonthYear:function(c,d,b){c=a(c);var e=this._getInst(c[0]);e["selected"+("M"==b?"Month":"Year")]=e["draw"+("M"==b?"Month":"Year")]=parseInt(d.options[d.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(c)},_selectDay:function(c,d,b,e){var g=a(c);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(g=this._getInst(g[0]),g.selectedDay=g.currentDay=a("a",e).html(),g.selectedMonth=g.currentMonth=d,g.selectedYear=g.currentYear=b,this._selectDate(c,this._formatDate(g,
g.currentDay,g.currentMonth,g.currentYear)))},_clearDate:function(c){c=a(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,d){var b=a(c),b=this._getInst(b[0]);d=null!=d?d:this._formatDate(b);b.input&&b.input.val(d);this._updateAlternate(b);var e=this._get(b,"onSelect");e?e.apply(b.input?b.input[0]:null,[d,b]):b.input&&b.input.trigger("change");b.inline?this._updateDatepicker(b):(this._hideDatepicker(),this._lastInput=b.input[0],"object"!=typeof b.input[0]&&b.input.focus(),this._lastInput=
null)},_updateAlternate:function(c){var d=this._get(c,"altField");if(d){var b=this._get(c,"altFormat")||this._get(c,"dateFormat"),e=this._getDate(c),g=this.formatDate(b,e,this._getFormatConfig(c));a(d).each(function(){a(this).val(g)})}},noWeekends:function(a){a=a.getDay();return[0<a&&6>a,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var d=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((d-a)/864E5)/7)+1},parseDate:function(c,d,b){if(null==
c||null==d)throw"Invalid arguments";d="object"==typeof d?d.toString():d+"";if(""==d)return null;for(var e=(b?b.shortYearCutoff:null)||this._defaults.shortYearCutoff,e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),g=(b?b.dayNamesShort:null)||this._defaults.dayNamesShort,k=(b?b.dayNames:null)||this._defaults.dayNames,h=(b?b.monthNamesShort:null)||this._defaults.monthNamesShort,n=(b?b.monthNames:null)||this._defaults.monthNames,r=b=-1,u=-1,x=-1,B=!1,y=function(a){(a=C+1<c.length&&
c.charAt(C+1)==a)&&C++;return a},w=function(a){var c=y(a);a=new RegExp("^\\d{1,"+("@"==a?14:"!"==a?20:"y"==a&&c?4:"o"==a?3:2)+"}");a=d.substring(E).match(a);if(!a)throw"Missing number at position "+E;E+=a[0].length;return parseInt(a[0],10)},G=function(c,b,e){c=a.map(y(c)?e:b,function(a,c){return[[c,a]]}).sort(function(a,c){return-(a[1].length-c[1].length)});var g=-1;a.each(c,function(a,c){var b=c[1];if(d.substr(E,b.length).toLowerCase()==b.toLowerCase())return g=c[0],E+=b.length,!1});if(-1!=g)return g+
1;throw"Unknown name at position "+E;},F=function(){if(d.charAt(E)!=c.charAt(C))throw"Unexpected literal at position "+E;E++},E=0,C=0;C<c.length;C++)if(B)"'"!=c.charAt(C)||y("'")?F():B=!1;else switch(c.charAt(C)){case "d":u=w("d");break;case "D":G("D",g,k);break;case "o":x=w("o");break;case "m":r=w("m");break;case "M":r=G("M",h,n);break;case "y":b=w("y");break;case "@":var v=new Date(w("@"));b=v.getFullYear();r=v.getMonth()+1;u=v.getDate();break;case "!":v=new Date((w("!")-this._ticksTo1970)/1E4);
b=v.getFullYear();r=v.getMonth()+1;u=v.getDate();break;case "'":y("'")?F():B=!0;break;default:F()}if(E<d.length&&(g=d.substr(E),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;-1==b?b=(new Date).getFullYear():100>b&&(b+=(new Date).getFullYear()-(new Date).getFullYear()%100+(b<=e?0:-100));if(-1<x){r=1;u=x;do{e=this._getDaysInMonth(b,r-1);if(u<=e)break;r++;u-=e}while(1)}v=this._daylightSavingAdjust(new Date(b,r-1,u));if(v.getFullYear()!=b||v.getMonth()+1!=r||v.getDate()!=u)throw"Invalid date";
return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864E9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(a,d,b){if(!d)return"";var e=(b?b.dayNamesShort:null)||this._defaults.dayNamesShort,g=(b?b.dayNames:null)||this._defaults.dayNames,k=(b?b.monthNamesShort:null)||this._defaults.monthNamesShort;
b=(b?b.monthNames:null)||this._defaults.monthNames;var h=function(d){(d=B+1<a.length&&a.charAt(B+1)==d)&&B++;return d},n=function(a,c,d){c=""+c;if(h(a))for(;c.length<d;)c="0"+c;return c},r=function(a,c,d,b){return h(a)?b[c]:d[c]},u="",x=!1;if(d)for(var B=0;B<a.length;B++)if(x)"'"!=a.charAt(B)||h("'")?u+=a.charAt(B):x=!1;else switch(a.charAt(B)){case "d":u+=n("d",d.getDate(),2);break;case "D":u+=r("D",d.getDay(),e,g);break;case "o":u+=n("o",Math.round(((new Date(d.getFullYear(),d.getMonth(),d.getDate())).getTime()-
(new Date(d.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":u+=n("m",d.getMonth()+1,2);break;case "M":u+=r("M",d.getMonth(),k,b);break;case "y":u+=h("y")?d.getFullYear():(10>d.getYear()%100?"0":"")+d.getYear()%100;break;case "@":u+=d.getTime();break;case "!":u+=1E4*d.getTime()+this._ticksTo1970;break;case "'":h("'")?u+="'":x=!0;break;default:u+=a.charAt(B)}return u},_possibleChars:function(a){for(var d="",b=!1,e=function(d){(d=g+1<a.length&&a.charAt(g+1)==d)&&g++;return d},g=0;g<a.length;g++)if(b)"'"!=
a.charAt(g)||e("'")?d+=a.charAt(g):b=!1;else switch(a.charAt(g)){case "d":case "m":case "y":case "@":d+="0123456789";break;case "D":case "M":return null;case "'":e("'")?d+="'":b=!0;break;default:d+=a.charAt(g)}return d},_get:function(a,d){return a.settings[d]!==h?a.settings[d]:this._defaults[d]},_setDateFromField:function(a,d){if(a.input.val()!=a.lastVal){var b=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,g,k;g=k=this._getDefaultDate(a);var h=this._getFormatConfig(a);try{g=this.parseDate(b,
e,h)||k}catch(n){this.log(n),e=d?"":e}a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();a.currentDay=e?g.getDate():0;a.currentMonth=e?g.getMonth():0;a.currentYear=e?g.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(c,d,b){var e=function(a){var c=new Date;c.setDate(c.getDate()+a);return c},g=function(d){try{return a.datepicker.parseDate(a.datepicker._get(c,
"dateFormat"),d,a.datepicker._getFormatConfig(c))}catch(b){}for(var e=(d.toLowerCase().match(/^c/)?a.datepicker._getDate(c):null)||new Date,f=e.getFullYear(),g=e.getMonth(),e=e.getDate(),k=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=k.exec(d);h;){switch(h[2]||"d"){case "d":case "D":e+=parseInt(h[1],10);break;case "w":case "W":e+=7*parseInt(h[1],10);break;case "m":case "M":g+=parseInt(h[1],10);e=Math.min(e,a.datepicker._getDaysInMonth(f,g));break;case "y":case "Y":f+=parseInt(h[1],10),e=Math.min(e,a.datepicker._getDaysInMonth(f,
g))}h=k.exec(d)}return new Date(f,g,e)};if(d=(d=null==d||""===d?b:"string"==typeof d?g(d):"number"==typeof d?isNaN(d)?b:e(d):new Date(d.getTime()))&&"Invalid Date"==d.toString()?b:d)d.setHours(0),d.setMinutes(0),d.setSeconds(0),d.setMilliseconds(0);return this._daylightSavingAdjust(d)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(12<a.getHours()?a.getHours()+2:0);return a},_setDate:function(a,d,b){var e=!d,g=a.selectedMonth,k=a.selectedYear;d=this._restrictMinMax(a,this._determineDate(a,
d,new Date));a.selectedDay=a.currentDay=d.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=d.getMonth();a.drawYear=a.selectedYear=a.currentYear=d.getFullYear();g==a.selectedMonth&&k==a.selectedYear||b||this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&""==a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_attachHandlers:function(c){var d=this._get(c,
"stepMonths"),b="#"+c.id.replace(/\\\\/g,"\\");c.dpDiv.find("[data-handler]").map(function(){a(this).bind(this.getAttribute("data-event"),{prev:function(){window["DP_jQuery_"+k].datepicker._adjustDate(b,-d,"M")},next:function(){window["DP_jQuery_"+k].datepicker._adjustDate(b,+d,"M")},hide:function(){window["DP_jQuery_"+k].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+k].datepicker._gotoToday(b)},selectDay:function(){window["DP_jQuery_"+k].datepicker._selectDay(b,+this.getAttribute("data-month"),
+this.getAttribute("data-year"),this);return!1},selectMonth:function(){window["DP_jQuery_"+k].datepicker._selectMonthYear(b,this,"M");return!1},selectYear:function(){window["DP_jQuery_"+k].datepicker._selectMonthYear(b,this,"Y");return!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(c){var d=new Date,d=this._daylightSavingAdjust(new Date(d.getFullYear(),d.getMonth(),d.getDate())),b=this._get(c,"isRTL"),e=this._get(c,"showButtonPanel"),g=this._get(c,"hideIfNoPrevNext"),k=this._get(c,
"navigationAsDateFormat"),h=this._getNumberOfMonths(c),n=this._get(c,"showCurrentAtPos"),r=this._get(c,"stepMonths"),u=1!=h[0]||1!=h[1],x=this._daylightSavingAdjust(c.currentDay?new Date(c.currentYear,c.currentMonth,c.currentDay):new Date(9999,9,9)),B=this._getMinMaxDate(c,"min"),y=this._getMinMaxDate(c,"max"),n=c.drawMonth-n,w=c.drawYear;0>n&&(n+=12,w--);if(y)for(var G=this._daylightSavingAdjust(new Date(y.getFullYear(),y.getMonth()-h[0]*h[1]+1,y.getDate())),G=B&&G<B?B:G;this._daylightSavingAdjust(new Date(w,
n,1))>G;)n--,0>n&&(n=11,w--);c.drawMonth=n;c.drawYear=w;var G=this._get(c,"prevText"),G=k?this.formatDate(G,this._daylightSavingAdjust(new Date(w,n-r,1)),this._getFormatConfig(c)):G,G=this._canAdjustMonth(c,-1,w,n)?'\x3ca class\x3d"ui-datepicker-prev ui-corner-all" data-handler\x3d"prev" data-event\x3d"click" title\x3d"'+G+'"\x3e\x3cspan class\x3d"ui-icon ui-icon-circle-triangle-'+(b?"e":"w")+'"\x3e'+G+"\x3c/span\x3e\x3c/a\x3e":g?"":'\x3ca class\x3d"ui-datepicker-prev ui-corner-all ui-state-disabled" title\x3d"'+
G+'"\x3e\x3cspan class\x3d"ui-icon ui-icon-circle-triangle-'+(b?"e":"w")+'"\x3e'+G+"\x3c/span\x3e\x3c/a\x3e",F=this._get(c,"nextText"),F=k?this.formatDate(F,this._daylightSavingAdjust(new Date(w,n+r,1)),this._getFormatConfig(c)):F,g=this._canAdjustMonth(c,1,w,n)?'\x3ca class\x3d"ui-datepicker-next ui-corner-all" data-handler\x3d"next" data-event\x3d"click" title\x3d"'+F+'"\x3e\x3cspan class\x3d"ui-icon ui-icon-circle-triangle-'+(b?"w":"e")+'"\x3e'+F+"\x3c/span\x3e\x3c/a\x3e":g?"":'\x3ca class\x3d"ui-datepicker-next ui-corner-all ui-state-disabled" title\x3d"'+
F+'"\x3e\x3cspan class\x3d"ui-icon ui-icon-circle-triangle-'+(b?"w":"e")+'"\x3e'+F+"\x3c/span\x3e\x3c/a\x3e",r=this._get(c,"currentText"),F=this._get(c,"gotoCurrent")&&c.currentDay?x:d,r=k?this.formatDate(r,F,this._getFormatConfig(c)):r,k=c.inline?"":'\x3cbutton type\x3d"button" class\x3d"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler\x3d"hide" data-event\x3d"click"\x3e'+this._get(c,"closeText")+"\x3c/button\x3e",e=e?'\x3cdiv class\x3d"ui-datepicker-buttonpane ui-widget-content"\x3e'+
(b?k:"")+(this._isInRange(c,F)?'\x3cbutton type\x3d"button" class\x3d"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler\x3d"today" data-event\x3d"click"\x3e'+r+"\x3c/button\x3e":"")+(b?"":k)+"\x3c/div\x3e":"",k=parseInt(this._get(c,"firstDay"),10),k=isNaN(k)?0:k,r=this._get(c,"showWeek"),F=this._get(c,"dayNames");this._get(c,"dayNamesShort");var E=this._get(c,"dayNamesMin"),C=this._get(c,"monthNames"),v=this._get(c,"monthNamesShort"),P=this._get(c,"beforeShowDay"),
L=this._get(c,"showOtherMonths"),M=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var K=this._getDefaultDate(c),ba="",I=0;I<h[0];I++){var Q="";this.maxRows=4;for(var R=0;R<h[1];R++){var N=this._daylightSavingAdjust(new Date(w,n,c.selectedDay)),O=" ui-corner-all",J="";if(u){J+='\x3cdiv class\x3d"ui-datepicker-group';if(1<h[1])switch(R){case 0:J+=" ui-datepicker-group-first";O=" ui-corner-"+(b?"right":"left");break;case h[1]-1:J+=" ui-datepicker-group-last";O=" ui-corner-"+(b?"left":
"right");break;default:J+=" ui-datepicker-group-middle",O=""}J+='"\x3e'}for(var J=J+('\x3cdiv class\x3d"ui-datepicker-header ui-widget-header ui-helper-clearfix'+O+'"\x3e'+(/all|left/.test(O)&&0==I?b?g:G:"")+(/all|right/.test(O)&&0==I?b?G:g:"")+this._generateMonthYearHeader(c,n,w,B,y,0<I||0<R,C,v)+'\x3c/div\x3e\x3ctable class\x3d"ui-datepicker-calendar"\x3e\x3cthead\x3e\x3ctr\x3e'),H=r?'\x3cth class\x3d"ui-datepicker-week-col"\x3e'+this._get(c,"weekHeader")+"\x3c/th\x3e":"",O=0;7>O;O++)var S=(O+k)%
7,H=H+("\x3cth"+(5<=(O+k+6)%7?' class\x3d"ui-datepicker-week-end"':"")+'\x3e\x3cspan title\x3d"'+F[S]+'"\x3e'+E[S]+"\x3c/span\x3e\x3c/th\x3e");J+=H+"\x3c/tr\x3e\x3c/thead\x3e\x3ctbody\x3e";H=this._getDaysInMonth(w,n);w==c.selectedYear&&n==c.selectedMonth&&(c.selectedDay=Math.min(c.selectedDay,H));O=(this._getFirstDayOfMonth(w,n)-k+7)%7;H=Math.ceil((O+H)/7);this.maxRows=H=u?this.maxRows>H?this.maxRows:H:H;for(var S=this._daylightSavingAdjust(new Date(w,n,1-O)),ka=0;ka<H;ka++){for(var J=J+"\x3ctr\x3e",
z=r?'\x3ctd class\x3d"ui-datepicker-week-col"\x3e'+this._get(c,"calculateWeek")(S)+"\x3c/td\x3e":"",O=0;7>O;O++){var ga=P?P.apply(c.input?c.input[0]:null,[S]):[!0,""],ha=S.getMonth()!=n,da=ha&&!M||!ga[0]||B&&S<B||y&&S>y,z=z+('\x3ctd class\x3d"'+(5<=(O+k+6)%7?" ui-datepicker-week-end":"")+(ha?" ui-datepicker-other-month":"")+(S.getTime()==N.getTime()&&n==c.selectedMonth&&c._keyEvent||K.getTime()==S.getTime()&&K.getTime()==N.getTime()?" "+this._dayOverClass:"")+(da?" "+this._unselectableClass+" ui-state-disabled":
"")+(ha&&!L?"":" "+ga[1]+(S.getTime()==x.getTime()?" "+this._currentClass:"")+(S.getTime()==d.getTime()?" ui-datepicker-today":""))+'"'+(ha&&!L||!ga[2]?"":' title\x3d"'+ga[2]+'"')+(da?"":' data-handler\x3d"selectDay" data-event\x3d"click" data-month\x3d"'+S.getMonth()+'" data-year\x3d"'+S.getFullYear()+'"')+"\x3e"+(ha&&!L?"\x26#xa0;":da?'\x3cspan class\x3d"ui-state-default"\x3e'+S.getDate()+"\x3c/span\x3e":'\x3ca class\x3d"ui-state-default'+(S.getTime()==d.getTime()?" ui-state-highlight":"")+(S.getTime()==
x.getTime()?" ui-state-active":"")+(ha?" ui-priority-secondary":"")+'" href\x3d"#"\x3e'+S.getDate()+"\x3c/a\x3e")+"\x3c/td\x3e");S.setDate(S.getDate()+1);S=this._daylightSavingAdjust(S)}J+=z+"\x3c/tr\x3e"}n++;11<n&&(n=0,w++);J+="\x3c/tbody\x3e\x3c/table\x3e"+(u?"\x3c/div\x3e"+(0<h[0]&&R==h[1]-1?'\x3cdiv class\x3d"ui-datepicker-row-break"\x3e\x3c/div\x3e':""):"");Q+=J}ba+=Q}ba+=e+(a.ui.ie6&&!c.inline?'\x3ciframe src\x3d"javascript:false;" class\x3d"ui-datepicker-cover" frameborder\x3d"0"\x3e\x3c/iframe\x3e':
"");c._keyEvent=!1;return ba},_generateMonthYearHeader:function(a,d,b,e,g,k,h,n){var r=this._get(a,"changeMonth"),u=this._get(a,"changeYear"),x=this._get(a,"showMonthAfterYear"),B='\x3cdiv class\x3d"ui-datepicker-title"\x3e',y="";if(k||!r)y+='\x3cspan class\x3d"ui-datepicker-month"\x3e'+h[d]+"\x3c/span\x3e";else{h=e&&e.getFullYear()==b;for(var w=g&&g.getFullYear()==b,y=y+'\x3cselect class\x3d"ui-datepicker-month" data-handler\x3d"selectMonth" data-event\x3d"change"\x3e',G=0;12>G;G++)(!h||G>=e.getMonth())&&
(!w||G<=g.getMonth())&&(y+='\x3coption value\x3d"'+G+'"'+(G==d?' selected\x3d"selected"':"")+"\x3e"+n[G]+"\x3c/option\x3e");y+="\x3c/select\x3e"}x||(B+=y+(!k&&r&&u?"":"\x26#xa0;"));if(!a.yearshtml)if(a.yearshtml="",k||!u)B+='\x3cspan class\x3d"ui-datepicker-year"\x3e'+b+"\x3c/span\x3e";else{n=this._get(a,"yearRange").split(":");var F=(new Date).getFullYear();h=function(a){a=a.match(/c[+-].*/)?b+parseInt(a.substring(1),10):a.match(/[+-].*/)?F+parseInt(a,10):parseInt(a,10);return isNaN(a)?F:a};d=h(n[0]);
n=Math.max(d,h(n[1]||""));d=e?Math.max(d,e.getFullYear()):d;n=g?Math.min(n,g.getFullYear()):n;for(a.yearshtml+='\x3cselect class\x3d"ui-datepicker-year" data-handler\x3d"selectYear" data-event\x3d"change"\x3e';d<=n;d++)a.yearshtml+='\x3coption value\x3d"'+d+'"'+(d==b?' selected\x3d"selected"':"")+"\x3e"+d+"\x3c/option\x3e";a.yearshtml+="\x3c/select\x3e";B+=a.yearshtml;a.yearshtml=null}B+=this._get(a,"yearSuffix");x&&(B+=(!k&&r&&u?"":"\x26#xa0;")+y);return B+"\x3c/div\x3e"},_adjustInstDate:function(a,
d,b){var e=a.drawYear+("Y"==b?d:0),g=a.drawMonth+("M"==b?d:0);d=Math.min(a.selectedDay,this._getDaysInMonth(e,g))+("D"==b?d:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,g,d)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();"M"!=b&&"Y"!=b||this._notifyChange(a)},_restrictMinMax:function(a,d){var b=this._getMinMaxDate(a,"min"),e=this._getMinMaxDate(a,"max"),b=b&&d<b?b:d;return e&&b>e?e:b},_notifyChange:function(a){var d=
this._get(a,"onChangeMonthYear");d&&d.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return null==a?[1,1]:"number"==typeof a?[1,a]:a},_getMinMaxDate:function(a,d){return this._determineDate(a,this._get(a,d+"Date"),null)},_getDaysInMonth:function(a,d){return 32-this._daylightSavingAdjust(new Date(a,d,32)).getDate()},_getFirstDayOfMonth:function(a,d){return(new Date(a,d,1)).getDay()},_canAdjustMonth:function(a,d,b,
e){var g=this._getNumberOfMonths(a);b=this._daylightSavingAdjust(new Date(b,e+(0>d?d:g[0]*g[1]),1));0>d&&b.setDate(this._getDaysInMonth(b.getFullYear(),b.getMonth()));return this._isInRange(a,b)},_isInRange:function(a,d){var b=this._getMinMaxDate(a,"min"),e=this._getMinMaxDate(a,"max");return(!b||d.getTime()>=b.getTime())&&(!e||d.getTime()<=e.getTime())},_getFormatConfig:function(a){var d=this._get(a,"shortYearCutoff"),d="string"!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10);return{shortYearCutoff:d,
dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,d,b,e){d||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);d=d?"object"==typeof d?d:this._daylightSavingAdjust(new Date(e,b,d)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),d,this._getFormatConfig(a))}});
a.fn.datepicker=function(c){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick).find(document.body).append(a.datepicker.dpDiv),a.datepicker.initialized=!0);var d=Array.prototype.slice.call(arguments,1);return"string"==typeof c&&("isDisabled"==c||"getDate"==c||"widget"==c)||"option"==c&&2==arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this[0]].concat(d)):this.each(function(){"string"==
typeof c?a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this].concat(d)):a.datepicker._attachDatepicker(this,c)})};a.datepicker=new b;a.datepicker.initialized=!1;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.9.1";window["DP_jQuery_"+k]=a})(jQuery);(function(a,h){var b={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},e={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.9.1",options:{autoOpen:!0,buttons:{},closeEnabled:!0,closeOnEscape:!0,closeText:"close",dialogClass:"",overlayClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var e=a(this).css(b).offset().top;
0>e&&a(this).css("top",b.top-e)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");"string"!==typeof this.originalTitle&&(this.originalTitle="");this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.options.title=this.options.title||this.originalTitle;var b=this,e=this.options,d=e.title||"\x26#160;",c,f,h,p;c=(this.uiDialog=a("\x3cdiv\x3e")).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
e.dialogClass).css({display:"none",outline:0,zIndex:e.zIndex}).attr("tabIndex",-1).keydown(function(c){e.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}).mousedown(function(a){b.moveToTop(!1,a)}).appendTo("body");this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(c);f=(this.uiDialogTitlebar=a("\x3cdiv\x3e")).addClass("ui-dialog-titlebar  ui-widget-header  ui-corner-all  ui-helper-clearfix").bind("mousedown",
function(){c.focus()}).prependTo(c);h=a("\x3ca href\x3d'#'\x3e\x3c/a\x3e").addClass("ui-dialog-titlebar-close  ui-corner-all").attr("role","button").click(function(a){a.preventDefault();b.close(a)}).appendTo(f);(this.uiDialogTitlebarCloseText=a("\x3cspan\x3e")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(h);d=a("\x3cspan\x3e").uniqueId().addClass("ui-dialog-title").html(d).prependTo(f);p=(this.uiDialogButtonPane=a("\x3cdiv\x3e")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");
(this.uiButtonSet=a("\x3cdiv\x3e")).addClass("ui-dialog-buttonset").appendTo(p);c.attr({role:"dialog","aria-labelledby":d.attr("id")});f.find("*").add(f).disableSelection();this._hoverable(h);this._focusable(h);e.draggable&&a.fn.draggable&&this._makeDraggable();e.resizable&&a.fn.resizable&&this._makeResizable();e.closeEnabled||h.remove();this._createButtons(e.buttons);this._isOpen=!1;a.fn.bgiframe&&c.bgiframe();this._on(c,{keydown:function(d){if(e.modal&&d.keyCode===a.ui.keyCode.TAB){var b=a(":tabbable",
c),f=b.filter(":first"),b=b.filter(":last");if(d.target===b[0]&&!d.shiftKey)return f.focus(1),!1;if(d.target===f[0]&&d.shiftKey)return b.focus(1),!1}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var a,b=this.oldPosition;this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);a=b.parent.children().eq(b.index);
a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(b){var e=this,d,c;if(this._isOpen&&!1!==this._trigger("beforeClose",b))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",b)}):(this.uiDialog.hide(),this._trigger("close",b)),a.ui.dialog.overlay.resize(),this.options.modal&&(d=0,a(".ui-dialog").each(function(){this!==
e.uiDialog[0]&&(c=a(this).css("z-index"),isNaN(c)||(d=Math.max(d,c)))}),a.ui.dialog.maxZ=d),this},isOpen:function(){return this._isOpen},moveToTop:function(b,e){var d=this.options;if(d.modal&&!b||!d.stack&&!d.modal)return this._trigger("focus",e);d.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=d.zIndex);this.overlay&&(a.ui.dialog.maxZ+=1,a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ));d={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};
a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e);return this},open:function(){if(!this._isOpen){var b;b=this.options;var e=this.uiDialog;this._size();this._position(b.position);e.show(b.show);this.overlay=b.modal?new a.ui.dialog.overlay(this):null;this.moveToTop(!0);b=this.element.find(":tabbable");b.length||(b=this.uiDialogButtonPane.find(":tabbable"),b.length||(b=e));b.eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},
_createButtons:function(b){var e=this,d=!1;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();"object"===typeof b&&null!==b&&a.each(b,function(){return!(d=!0)});d?(a.each(b,function(c,d){d=a.isFunction(d)?{click:d,text:c}:d;var b=a("\x3cbutton type\x3d'button'\x3e\x3c/button\x3e").attr(d,!0).unbind("click").click(function(){d.click.apply(e.element[0],arguments)}).appendTo(e.uiButtonSet);a.fn.button&&b.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):
this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function b(a){return{position:a.position,offset:a.offset}}var e=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,d){a(this).addClass("ui-dialog-dragging");e._trigger("dragStart",c,b(d))},drag:function(a,d){e._trigger("drag",a,b(d))},stop:function(c,f){d.position=[f.position.left-e.document.scrollLeft(),f.position.top-
e.document.scrollTop()];a(this).removeClass("ui-dialog-dragging");e._trigger("dragStop",c,b(f));a.ui.dialog.overlay.resize()}})},_makeResizable:function(b){function e(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}b=b===h?this.options.resizable:b;var d=this,c=this.options,f=this.uiDialog.css("position");b="string"===typeof b?b:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,
maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:b,start:function(c,b){a(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",c,e(b))},resize:function(a,c){d._trigger("resize",a,e(c))},stop:function(b,f){a(this).removeClass("ui-dialog-resizing");c.height=a(this).height();c.width=a(this).width();d._trigger("resizeStop",b,e(f));a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},
_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var e=[],d=[0,0],c;if(b){if("string"===typeof b||"object"===typeof b&&"0"in b)e=b.split?b.split(" "):[b[0],b[1]],1===e.length&&(e[1]=e[0]),a.each(["left","top"],function(a,c){+e[a]===e[a]&&(d[a]=e[a],e[a]=c)}),b={my:e[0]+(0>d[0]?d[0]:"+"+d[0])+" "+e[1]+(0>d[1]?d[1]:"+"+d[1]),at:e.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;
(c=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.position(b);c||this.uiDialog.hide()},_setOptions:function(g){var k=this,d={},c=!1;a.each(g,function(a,g){k._setOption(a,g);a in b&&(c=!0);a in e&&(d[a]=g)});c&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(b,e){var d,c=this.uiDialog;switch(b){case "buttons":this._createButtons(e);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+e);break;case "dialogClass":c.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
e);break;case "disabled":e?c.addClass("ui-dialog-disabled"):c.removeClass("ui-dialog-disabled");break;case "draggable":(d=c.is(":data(draggable)"))&&!e&&c.draggable("destroy");!d&&e&&this._makeDraggable();break;case "position":this._position(e);break;case "resizable":(d=c.is(":data(resizable)"))&&!e&&c.resizable("destroy");d&&"string"===typeof e&&c.resizable("option","handles",e);d||!1===e||this._makeResizable(e);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||"\x26#160;"))}this._super(b,
e)},_size:function(){var b,e,d=this.options,c=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});d.minWidth>d.width&&(d.width=d.minWidth);b=this.uiDialog.css({height:"auto",width:d.width}).outerHeight();e=Math.max(0,d.minHeight-b);"auto"===d.height?a.support.minHeight?this.element.css({minHeight:e,height:"auto"}):(this.uiDialog.show(),b=this.element.css("height","auto").height(),c||this.uiDialog.hide(),this.element.height(Math.max(b,e))):this.element.height(Math.max(d.height-
b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");a||(a=this.uuid+=1);return"ui-dialog-title-"+a},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus mousedown mouseup keydown keypress click".split(" "),function(a){return a+".dialog-overlay"}).join(" "),create:function(b){0===
this.instances.length&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(d){if(a(d.target).zIndex()<a.ui.dialog.overlay.maxZ)return!1})},1),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var e=(this.oldInstances.pop()||a("\x3cdiv\x3e")).removeClass().addClass("ui-widget-overlay").addClass(b.options.overlayClass);a(document).bind("keydown.dialog-overlay",function(d){var c=a.ui.dialog.overlay.instances;0!==c.length&&
c[c.length-1]===e&&b.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===a.ui.keyCode.ESCAPE&&(b.close(d),d.preventDefault())});e.appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&e.bgiframe();this.instances.push(e);return e},destroy:function(b){var e=a.inArray(b,this.instances),d=0;-1!==e&&this.oldInstances.push(this.instances.splice(e,1)[0]);0===this.instances.length&&a([document,window]).unbind(".dialog-overlay");b.height(0).width(0).remove();
a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var b,e;return a.ui.ie?(b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),b<e?a(window).height()+"px":b+"px"):a(document).height()+"px"},width:function(){var b,e;return a.ui.ie?(b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),e=Math.max(document.documentElement.offsetWidth,
document.body.offsetWidth),b<e?a(window).width()+"px":b+"px"):a(document).width()+"px"},resize:function(){var b=a([]);a.each(a.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a,h){var b=a.ui.keyCode;a.widget("ui.mask",{version:"@VERSION",defaultElement:"\x3cinput\x3e",options:{clearEmpty:!0,definitions:{d:/[0-9]/,w:/[A-Za-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]/,a:/[A-Za-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]/,"*":/[A-Za-z0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]/,hh:function(a){a=parseInt(a,10);return 0<=a&&24>=a?(10>a?"0":"")+a:!1},mm:function(a){a=parseInt(a,10);return 0<=a&&59>=a?(10>a?"0":"")+a:!1},ss:function(a){a=parseInt(a,10);return 0<=a&&59>=
a?(10>a?"0":"")+a:!1}},mask:null,placeholder:" "},_create:function(){this.maxLength=this.element.attr("maxlength");this.element.removeAttr("maxlength");this._parseMask();this.refresh();this.element.addClass("ui-mask");this._on(this._events)},_destroy:function(){this.maxLength&&this.element.attr("maxlength",this.maxLength);this.element.removeClass("ui-mask")},refresh:function(){this._parseValue();this._paint()},valid:function(){this._getValue();return this.isValid},value:function(a){if(a!==h)this.element.val(a),
this.refresh();else return this._getValue(!0)},masked:function(){return this._getValue().replace(new RegExp("["+this.options.placeholder+"]+$"),"")},_setOption:function(a,b){this._super(a,b);"mask"===a&&(this._parseMask(),this._parseValue())},_setOptions:function(a){this._super(a);this._paint()},_caret:function(a,b){var k;k=this.element[0];if(a!==h)k.scrollLeft=k.scrollWidth,b=b===h?a:b,k.setSelectionRange?k.setSelectionRange(a,b):k.createTextRange&&(k=k.createTextRange(),k.collapse(!0),k.moveEnd("character",
b),k.moveStart("character",a),k.select());else return k.setSelectionRange?(a=k.selectionStart,b=k.selectionEnd):document.selection&&document.selection.createRange&&(k=document.selection.createRange(),a=0-k.duplicate().moveStart("character",-1E5),b=a+k.text.length),{begin:a,end:b}},_caretSelect:function(a){var b=this.buffer[a];b&&1<b.length?this._caret(b.start,b.start+b.length):this._caret(a)},_getValue:function(a,b){var h,d,c,f=this.buffer.length,m="",p=0;this.isEmpty=this.isValid=!0;for(h=0;h<f;h+=
d.length)if(d=this.buffer[h],d.literal)!a&&(h<this.optionalPosition||this.isValid)&&(m+=d.literal);else if(d.value)for(p=d.start+d.length,this.isEmpty=!1,m+=d.value,c=d.value.length;c<d.length;c++)m+=this.options.placeholder;else{if(!a)for(c=d.length;c;c--)m+=this.options.placeholder;h<this.optionalPosition&&(this.isValid=!1)}if(this.options.clearEmpty&&this.isEmpty&&!1===b)return"";!(p<=this.optionalPosition)||this.isValid&&b||(m=m.substr(0,this.optionalPosition));return m},_events:{focus:function(){this.element.attr("readonly")||
(this.lastUnsavedValue=this.element.val(),this._paint(!0),this.isValid||this._caretSelect(this._seekRight(this._parseValue())),this._justFocused=!0)},click:function(){!this.element.attr("readonly")&&this._justFocused&&(this.isValid||this._caretSelect(this._seekRight(this._parseValue())),this._justFocused=!1)},blur:function(){this.element.attr("readonly")||(this._justFocused=!1,this._parseValue(),this._paint(!1),this.element.val()!==this.lastUnsavedValue&&this.element.change())},keydown:function(a){if(!this.element.attr("readonly")){var g,
h=a.keyCode,d=this._caret();if(!(a.shiftKey||a.metaKey||a.altKey||a.ctrlKey))switch(h){case b.ESCAPE:this.element.val(this.lastUnsavedValue);this._caretSelect(0,this._parseValue());a.preventDefault();break;case b.BACKSPACE:case b.DELETE:a.preventDefault();if(d.begin===d.end||this._isEmpty(d.begin,d.end))if(d.begin=h===b.DELETE?d.end=this._seekRight(d.begin-1):d.end=this._seekLeft(d.begin),0>d.begin){this._caret(this._seekRight(-1));break}this._removeValues(d.begin,d.end);this._paint();this._caretSelect(d.begin);
break;case b.LEFT:case b.RIGHT:(g=this.buffer[d.begin])&&1<g.length&&(g.value=this._validValue(g,g.value),this._paint(),a.preventDefault()),d=h===b.LEFT?this._seekLeft(g?g.start:d.begin):this._seekRight(g?g.start+g.length-1:d.end),this._caretSelect(d),a.preventDefault()}}},keypress:function(a){if(!this.element.attr("readonly")){var b,h;b=a.which;var d=this._caret(),c=this._seekRight(d.begin-1),f=this.buffer[c];a.metaKey||a.altKey||a.ctrlKey||32>b||(d.begin!==d.end&&this._removeValues(d.begin,d.end),
f&&(b=String.fromCharCode(b),1<f.length&&f.value&&(b=f.value.substr(0,c-f.start)+b+f.value.substr(c-f.start+1),b=b.substr(0,f.length)),h=this._validValue(f,b))&&(this._shiftRight(d.begin),f.value=b,d=this._seekRight(c),d<=f.start+f.length?(this._paint(),this._caret(d)):(f.value=h,this._paint(),this._caretSelect(d))),a.preventDefault())}},paste:"_paste",input:"_paste"},_isEmpty:function(a,b){var k;a===h?(a=0,b=this.buffer.length-1):b===h&&(b=a);for(k=a;k<=b;k++)if(this.buffer[k]&&this.buffer[k].value)return!1;
return!0},_paste:function(){this._delay(function(){var a=this._parseValue();this._paint();this._caret(this._seekRight(a))},0)},_paint:function(a){a===h&&(a=this.element[0]===document.activeElement);this.element.val(this._getValue(!1,a))},_addBuffer:function(a){var b,k=a.start,d=a.start+a.length;for(b=k;b<d;b++)if(this.buffer[b]!==h)return!1;for(b=k;b<d;b++)this.buffer[b]=a;return!0},_removeCharacter:function(a,b){var k,d;for(k=b;k<a.length-1;k++)d=this.buffer[k+1],this.buffer[k]=d,d!==h&&(d.start-=
1,k+=d.length-1);this.buffer.splice(k,1);this.optionalPosition>b&&this.optionalPosition--;return a.substring(0,b)+a.substring(b+1)},_parseMask:function(){var b,g,k;k=-1;var d=this.options,c=d.mask;g="a9*?\x3c\x3e\\".split("");this.buffer=[];if(c){for(k=0;k<c.length-1;k++)"\\"===c.charAt(k)&&-1!==a.inArray(c.charAt(k+1),g)&&(c=c.substring(0,k)+c.substring(k+1),this._addBuffer({start:k,literal:c.charAt(k),length:1}));k=-1;for(this.optionalPosition=h;-1<(k=c.indexOf("?",k+1));)this.buffer[k]===h&&(this.optionalPosition===
h&&(this.optionalPosition=k),c=this._removeCharacter(c,k));this.optionalPosition===h&&(this.optionalPosition=c.length);for(g=0;g<c.length;g++)if("\x3c"===c.charAt(g))for(k=g;g<c.length;g++)if("\x3e"===c.charAt(g)){b=c.substring(k+1,g);if(d.definitions[b]!==h&&this._addBuffer({start:k+1,length:b.length,valid:d.definitions[b]}))for(c=this._removeCharacter(c,g),c=this._removeCharacter(c,k),g=k;g<k+b.length;g++)c[g]=" ";break}k=-1;for(b in d.definitions)for(;-1<(k=c.indexOf(b,k+1));)this._addBuffer({start:k,
length:b.length,valid:d.definitions[b]});for(k=0;k<c.length;k++)this._addBuffer({start:k,literal:c.charAt(k),length:1})}},_parseValue:function(){var a,b,h,d=0,c=-1,f=this.element.val(),m=this.buffer.length;this._removeValues(0,m);for(a=0;a<m;a+=b.length){for(b=this.buffer[a];d<f.length;){h=f.substr(d,b.length);if(b.literal){this._validValue(b,h)&&d++;break}d++;if(h=this._validValue(b,h)){b.value=h;c=a+b.length-1;d+=b.length-1;break}}!b.value&&(h=this._validValue(b,""))&&(b.value=h)}return c},_removeValues:function(a,
b){var h,d;for(h=a;h<=b;h++)(d=this.buffer[h])&&d.value&&delete d.value;this._shiftLeft(a,b+1);return this},_seekLeft:function(a){for(;0<=--a;)if(this.buffer[a]&&!this.buffer[a].literal)return a;return-1},_seekRight:function(a){for(var b=this.buffer.length;++a<b;)if(this.buffer[a]&&!this.buffer[a].literal)return a;return b},_shiftLeft:function(a,b){var h,d,c,f,m=this.buffer.length;c=a;for(h=this._seekRight(b-1);c<m;c+=f.length)if(f=this.buffer[c],d=this.buffer[h],f.valid&&1===f.length&&h<m)if(this._validValue(f,
d.value))f.value=d.value,delete d.value,h=this._seekRight(h);else break},_shiftRight:function(a){var b,h,d=!1,c=this.buffer.length;for(a--;(a=this._seekRight(a))<c;)if(b=this.buffer[a],!1===d)d=b.value;else if(1===b.length&&this._validValue(b,d))h=b.value,b.value=d,d=h;else break},_validValue:function(b,g){return b.valid?a.isFunction(b.valid)?b.valid(g||"")||!1:b.valid.test(g)&&g:b.literal===g&&g}})})(jQuery);(function(a,h){a.widget("ui.selectmenu",{version:"@VERSION",widgetEventPrefix:"",defaultElement:"\x3cselect\x3e",options:{dropdown:!0,placeholder:!1,filtered:{enable:!1,placeholder:""},sorted:{enable:!1,direction:"asc"},appendTo:"body",position:{my:"left top",at:"left bottom",collision:"none"},open:null,focus:null,select:null,close:null,change:null},_create:function(){var b=this.element.uniqueId().attr("id");this.ids={id:b,button:b+"-button",menu:b+"-menu"};this._on({click:function(a){this.button.focus();
a.preventDefault()}});this._drawButton();this._on(this.button,this._buttonEvents);this._hoverable(this.button);this._focusable(this.button);this._drawMenu();this._on(document,{click:function(b){this.isOpen&&!a(b.target).closest("li.ui-state-disabled, li.ui-selectmenu-optgroup, li.ui-selectmenu-filter, #"+this.ids.button).length&&this.close(b)}});this.options.disabled&&this.disable();this.isOpen=!1;this.refresh()},_drawButton:function(){var b=this.element.attr("tabindex");this.element.hide();this.button=
a("\x3ca /\x3e",{"class":"ui-button ui-widget ui-state-default ui-corner-all",href:"#",tabindex:b?b:this.options.disabled?-1:0,id:this.ids.button,width:this.element.outerWidth(),role:"combobox","aria-expanded":!1,"aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":!0});this.button.prepend(a('\x3cspan class\x3d"ui-icon '+(this.options.dropdown?"ui-icon-triangle-1-s":"ui-icon-triangle-2-n-s")+'"/\x3e'));this.buttonText=a("\x3cspan /\x3e",{"class":"ui-selectmenu-text",text:this.element.find("option:selected").text()||
" "}).appendTo(this.button);this.buttonWrap=a("\x3cspan /\x3e",{"class":"ui-selectmenu-button"}).append(this.button).insertAfter(this.element)},_drawMenu:function(){var b,e=this;this.menu=a("\x3cul /\x3e",{"aria-hidden":!0,"aria-labelledby":this.ids.button,id:this.ids.menu});this.menu.addClass(this.element.attr("class"));this.menuWrap=a("\x3cdiv /\x3e",{"class":"ui-selectmenu-menu",width:this.options.dropdown?this.button.outerWidth():this.buttonText.width()+parseFloat(this.buttonText.css("padding-left"))||
0+parseFloat(this.buttonText.css("margin-left"))||0}).append(this.menu).appendTo(this.options.appendTo).addClass(this.element.attr("class")?this.element.attr("class")+"-menu":"");b=this.menu.menu({select:function(a,b){var d=b.item.data("item.selectmenu");d!==h&&(e._select(d,a),e.isOpen&&(a.preventDefault(),e.close(a)))},focus:function(a,b){var d=b.item.data("item.selectmenu");d!==h&&(e.focus!==h&&d.index!==e.focus&&(e._trigger("focus",a,{item:d}),e.isOpen||e._select(d,a)),e.focus=d.index)},role:"listbox"}).data("ui-menu");
this.options.dropdown&&this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all");b._off(this.menu,"mouseleave")},refresh:function(){this.menu.empty();var a;a=this.element.find("option");a.length&&(this._readOptions(a),this._renderMenu(this.menu,this.items),this.button.width(this.element.outerWidth()),this.menuWrap.width(this.options.dropdown?this.button.outerWidth():this.buttonText.width()+parseFloat(this.buttonText.css("padding-left"))||0+parseFloat(this.buttonText.css("margin-left"))||
0),this.menu.menu("refresh"),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup, .ui-selectmenu-filter"),this.options.placeholder&&this.menuItems.eq(0).css("height",0).css("overflow","hidden"),a=this._getSelectedItem(),this.menu.menu("focus",null,a),this._setSelected(a.data("item.selectmenu")),this._setOption("disabled",this._getCreateOptions().disabled),this._toggleAttr())},open:function(b){if(!this.options.disabled){this.isOpen===h&&this.button.trigger("focus");this.isOpen=!0;this._toggleAttr();
this._menuHeight();if(this.items&&!this.options.dropdown){var e=this._getSelectedItem();this.menu.outerHeight()<this.menu.prop("scrollHeight")&&(this.menuWrap.css("left",-1E4),this.menu.scrollTop(this.menu.scrollTop()+e.position().top-this.menu.outerHeight()/2+e.outerHeight()/2),this.menuWrap.css("left","auto"));a.extend(this.options.position,{my:"left top",at:"left top",offset:"0 "+(this.menu.offset().top-e.offset().top+(this.button.outerHeight()-e.outerHeight())/2)})}this.options.position.of=this.button;
this.menuWrap.position(this.options.position);this.options.filtered.enable&&this.filter.focus();this._trigger("open",b)}},close:function(a){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this._trigger("close",a))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(b,e){var g=this,h="";if(this.options.filtered.enable){var d=a("\x3cli\x3e",{"class":"ui-selectmenu-filter"}).data("item.selectmenu",{element:null,index:-1});this.filter=a("\x3cinput\x3e",
{"class":"ui-selectmenu-filter-input",type:"text",value:this.filter?this.filter.val():"",placeholder:this.options.filtered.placeholder});this._on(this.filter,this._filterEvents);d.append(this.filter);d.appendTo(b)}if(this.options.sorted.enabled){d=null;this.options.placeholder&&(d=this.items.shift());var c=this.options.sorted.direction,f=e[this.selectedIndex];this.items.sort(function(b,d){var e=a.trim(b.element.text()).toUpperCase(),f=a.trim(d.element.text()).toUpperCase();return e==f?0:("asc"==c?
e>f:f>e)?1:-1});this.selectedIndex=this.items.indexOf(f);d&&this.items.unshift(d)}a.each(e,function(c,d){!1!==d.optgroup&&d.optgroup!==h&&(a("\x3cli /\x3e",{"class":"ui-selectmenu-optgroup"+(d.element.parent("optgroup").attr("disabled")?" ui-state-disabled":"")+" "+d.element.parent("optgroup").attr("class"),text:d.optgroup}).appendTo(b),h=d.optgroup);g._renderItem(b,d)})},_renderItem:function(b,e){var g=a("\x3cli /\x3e").data("item.selectmenu",e);e.disabled&&g.addClass("ui-state-disabled");g.addClass(e["class"]);
e.id&&g.attr("id",e.id);e.hidden&&g.hide();g.append(a("\x3ca /\x3e",{text:e.label,href:"#"}));return g.appendTo(b)},_move:function(a,e){"first"===a||"last"===a?this.menu.menu("focus",e,this.menuItems[a]()):this.menu.menu(a,e)},_getSelectedItem:function(){return this.menuItems.eq(0>this.selectedIndex?0:this.selectedIndex)},_toggle:function(a){this.isOpen?this.close(a):this.open(a)},_buttonEvents:{focus:function(a){this.refresh();this._off(this.button,"focus")},click:function(a){this._toggle(a);a.preventDefault()},
keydown:function(b){var e=!0;switch(b.keyCode){case a.ui.keyCode.TAB:case a.ui.keyCode.ESCAPE:this.isOpen&&this.close(b);e=!1;break;case a.ui.keyCode.ENTER:this.isOpen&&this.menu.menu("select",b);break;case a.ui.keyCode.UP:b.altKey?this._toggle(b):this._move("previous",b);break;case a.ui.keyCode.DOWN:b.altKey?this._toggle(b):this._move("next",b);break;case a.ui.keyCode.LEFT:this._move("previous",b);break;case a.ui.keyCode.RIGHT:this._move("next",b);break;case a.ui.keyCode.HOME:case a.ui.keyCode.PAGE_UP:this._move("first",
b);break;case a.ui.keyCode.END:case a.ui.keyCode.PAGE_DOWN:this._move("last",b);break;default:this.menu.trigger(b),e=!1}e&&b.preventDefault()}},_filterEvents:{keydown:function(b){switch(b.keyCode){case a.ui.keyCode.UP:case a.ui.keyCode.DOWN:case a.ui.keyCode.ENTER:break;default:b.stopPropagation()}this._filter(this.filter.val())},change:function(a){a.stopPropagation();this._filter(this.filter.val())},paste:function(a){a.stopPropagation();this._filter(this.filter.val())},input:function(a){a.stopPropagation();
this._filter(this.filter.val())}},_filter:function(b){clearTimeout(this._filterDelay);b=a.trim(b);this._filterValue!=b&&(this._filterDelay=this._delay(function(){var e=this;this._filterValue=b;a.each(this.items,function(g,h){var d=null!=a.trim(h.label).match(new RegExp(b,"i"));e.menuItems.eq(g).toggle(d);a(h.element).toggle(d)});this._menuHeight()},500))},_select:function(a,e){var g=this.selectedIndex;this.selectedIndex=this.element[0].selectedIndex=a.index;this._setSelected(a);this._trigger("select",
e,{item:a});a.index!==g&&this._trigger("change",e,{item:a})},_setSelected:function(a){this.buttonText.text(a.label);this.menuItems.find("a").attr("aria-selected",!1);this._getSelectedItem().find("a").attr("aria-selected",!0)},_setOption:function(b,e){this._super(b,e);"appendTo"===b&&this.menuWrap.appendTo(a(e||"body",this.element[0].ownerDocument)[0]);"disabled"===b&&(this.menu.menu("option","disabled",e),e?(this.element.attr("disabled","disabled"),this.button.attr("tabindex",-1),this.close()):(this.element.removeAttr("disabled"),
this.button.attr("tabindex",0)))},_toggleAttr:function(){if(this.options.dropdown){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen);var b=[];this.menuItems.each(function(){b=a.merge(b,a(this).attr("class").split(" "))});for(var b=a.unique(b),e=0;e<b.length;e++)this.button.removeClass(b[e]);this.isOpen||this.button.addClass(this._getSelectedItem().attr("class")).removeClass("ui-menu-item")}this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen);this.menu.attr("aria-hidden",
!this.isOpen);this.button.attr("aria-expanded",this.isOpen)},_menuHeight:function(){this.menuWrap.css("max-height","");this.menuWrap.css("overflow-y","");this.options.maxHeight&&this.options.maxHeight<this.menuWrap.height()&&(this.menuWrap.css("max-height",this.options.maxHeight),this.menuWrap.css("overflow-y","scroll"))},_getCreateOptions:function(){return{disabled:!!this.element.attr("disabled")}},_readOptions:function(b){var e=[];a.each(b,function(b,h){var d=a(h),c=d.parent("optgroup");e.push({element:d,
index:b,value:d.attr("value"),label:d.text()||"\x26nbsp;",optgroup:c.attr("label")||"",disabled:c.attr("disabled")||d.attr("disabled"),id:d.attr("id"),"class":d.attr("class"),hidden:"none"==d.css("display")})});this.items=e;this.selectedIndex=this.element[0].selectedIndex},_destroy:function(){this.menuWrap.remove();this.buttonWrap.remove();this.element.show()}})})(jQuery);jQuery.effects||function(a,h){var b=!1!==a.uiBackCompat;a.effects={effect:{}};(function(b,g){function h(a,c,b){var d=A[c.type]||{};if(null==a)return b||!c.def?null:c.def;a=d.floor?~~a:parseFloat(a);return isNaN(a)?c.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a}function d(a){var c=p(),d=c._rgba=[];a=a.toLowerCase();u(m,function(b,e){var f,g=e.re.exec(a);f=g&&e.parse(g);g=e.space||"rgba";if(f)return f=c[g](f),c[t[g].cache]=f[t[g].cache],d=c._rgba=f._rgba,!1});return d.length?("0,0,0,0"===d.join()&&
b.extend(d,r.transparent),c):r[a]}function c(a,c,b){b=(b+1)%1;return 1>6*b?a+(c-a)*b*6:1>2*b?c:2>3*b?a+(c-a)*(2/3-b)*6:a}var f=/^([\-+])=\s*(\d+\.?\d*)/,m=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],p=b.Color=function(a,c,d,f){return new b.Color.fn.parse(a,c,d,f)},t={rgba:{props:{red:{idx:0,type:"byte"},
green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},A={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},q=p.support={},n=b("\x3cp\x3e")[0],r,u=b.each;n.style.cssText="background-color:rgba(1,1,1,.5)";q.rgba=-1<n.style.backgroundColor.indexOf("rgba");u(t,function(a,c){c.cache="_"+a;c.props.alpha={idx:3,type:"percent",def:1}});p.fn=b.extend(p.prototype,{parse:function(c,
f,m,q){if(c===g)return this._rgba=[null,null,null,null],this;if(c.jquery||c.nodeType)c=b(c).css(f),f=g;var n=this,A=b.type(c),E=this._rgba=[];f!==g&&(c=[c,f,m,q],A="array");if("string"===A)return this.parse(d(c)||r._default);if("array"===A)return u(t.rgba.props,function(a,b){E[b.idx]=h(c[b.idx],b)}),this;if("object"===A)return c instanceof p?u(t,function(a,b){c[b.cache]&&(n[b.cache]=c[b.cache].slice())}):u(t,function(b,d){var e=d.cache;u(d.props,function(a,b){if(!n[e]&&d.to){if("alpha"===a||null==
c[a])return;n[e]=d.to(n._rgba)}n[e][b.idx]=h(c[a],b,!0)});n[e]&&0>a.inArray(null,n[e].slice(0,3))&&(n[e][3]=1,d.from&&(n._rgba=d.from(n[e])))}),this},is:function(a){var c=p(a),b=!0,d=this;u(t,function(a,e){var f,g=c[e.cache];g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],u(e.props,function(a,c){if(null!=g[c.idx])return b=g[c.idx]===f[c.idx]}));return b});return b},_space:function(){var a=[],c=this;u(t,function(b,d){c[d.cache]&&a.push(b)});return a.pop()},transition:function(a,c){var b=p(a),d=b._space(),
e=t[d],f=0===this.alpha()?p("transparent"):this,g=f[e.cache]||e.to(f._rgba),m=g.slice(),b=b[e.cache];u(e.props,function(a,d){var e=d.idx,f=g[e],q=b[e],n=A[d.type]||{};null!==q&&(null===f?m[e]=q:(n.mod&&(q-f>n.mod/2?f+=n.mod:f-q>n.mod/2&&(f-=n.mod)),m[e]=h((q-f)*c+f,d)))});return this[d](m)},blend:function(a){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),f=p(a)._rgba;return p(b.map(c,function(a,c){return(1-d)*f[c]+d*a}))},toRgbaString:function(){var a="rgba(",c=b.map(this._rgba,
function(a,c){return null==a?2<c?1:0:a});1===c[3]&&(c.pop(),a="rgb(");return a+c.join()+")"},toHslaString:function(){var a="hsla(",c=b.map(this.hsla(),function(a,c){null==a&&(a=2<c?1:0);c&&3>c&&(a=Math.round(100*a)+"%");return a});1===c[3]&&(c.pop(),a="hsl(");return a+c.join()+")"},toHexString:function(a){var c=this._rgba.slice(),d=c.pop();a&&c.push(~~(255*d));return"#"+b.map(c,function(a){a=(a||0).toString(16);return 1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":
this.toRgbaString()}});p.fn.parse.prototype=p.fn;t.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var c=a[0]/255,b=a[1]/255,d=a[2]/255;a=a[3];var e=Math.max(c,b,d),f=Math.min(c,b,d),g=e-f,h=e+f,k=.5*h,h=0===k||1===k?k:.5>=k?g/h:g/(2-h);return[Math.round(f===e?0:c===e?60*(b-d)/g+360:b===e?60*(d-c)/g+120:60*(c-b)/g+240)%360,h,k,null==a?1:a]};t.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,d=a[1],e=a[2];a=
a[3];d=.5>=e?e*(1+d):e+d-e*d;e=2*e-d;return[Math.round(255*c(e,d,b+1/3)),Math.round(255*c(e,d,b)),Math.round(255*c(e,d,b-1/3)),a]};u(t,function(a,c){var d=c.props,m=c.cache,q=c.to,n=c.from;p.fn[a]=function(a){q&&!this[m]&&(this[m]=q(this._rgba));if(a===g)return this[m].slice();var c,f=b.type(a),A="array"===f||"object"===f?a:arguments,r=this[m].slice();u(d,function(a,c){var b=A["object"===f?a:c.idx];null==b&&(b=r[c.idx]);r[c.idx]=h(b,c)});return n?(c=p(n(r)),c[m]=r,c):p(r)};u(d,function(c,d){p.fn[c]||
(p.fn[c]=function(g){var h=b.type(g),k="alpha"===c?this._hsla?"hsla":"rgba":a,m=this[k](),q=m[d.idx];if("undefined"===h)return q;"function"===h&&(g=g.call(this,q),h=b.type(g));if(null==g&&d.empty)return this;"string"===h&&(h=f.exec(g))&&(g=q+parseFloat(h[2])*("+"===h[1]?1:-1));m[d.idx]=g;return this[k](m)})})});u("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),function(a,c){b.cssHooks[c]=
{set:function(a,f){var g,h="";if("string"!==b.type(f)||(g=d(f))){f=p(g||f);if(!q.rgba&&1!==f._rgba[3]){for(g="backgroundColor"===c?a.parentNode:a;(""===h||"transparent"===h)&&g&&g.style;)try{h=b.css(g,"backgroundColor"),g=g.parentNode}catch(k){}f=f.blend(h&&"transparent"!==h?h:"_default")}f=f.toRgbaString()}try{a.style[c]=f}catch(m){}}};b.fx.step[c]=function(a){a.colorInit||(a.start=p(a.elem,c),a.end=p(a.end),a.colorInit=!0);b.cssHooks[c].set(a.elem,a.start.transition(a.end,a.pos))}});b.cssHooks.borderColor=
{expand:function(a){var c={};u(["Top","Right","Bottom","Left"],function(b,d){c["border"+d+"Color"]=a});return c}};r=b.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){function b(){var d=this.ownerDocument.defaultView?
this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,c={},e,g;if(d&&d.length&&d[0]&&d[d[0]])for(g=d.length;g--;)e=d[g],"string"===typeof d[e]&&(c[a.camelCase(e)]=d[e]);else for(e in d)"string"===typeof d[e]&&(c[e]=d[e]);return c}var g=["add","remove","toggle"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=
function(a){if("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)jQuery.style(a.elem,c,a.end),a.setAttr=!0}});a.effects.animateClass=function(d,c,f,h){var p=a.speed(c,f,h);return this.queue(function(){var c=a(this),f=c.attr("class")||"",h,m=p.children?c.find("*").andSelf():c,m=m.map(function(){return{el:a(this),start:b.call(this)}});h=function(){a.each(g,function(a,b){if(d[b])c[b+"Class"](d[b])})};h();m=m.map(function(){this.end=b.call(this.el[0]);var c=this.start,d=this.end,f={},g,h;for(g in d)h=
d[g],c[g]===h||k[g]||!a.fx.step[g]&&isNaN(parseFloat(h))||(f[g]=h);this.diff=f;return this});c.attr("class",f);m=m.map(function(){var c=this,b=a.Deferred(),d=jQuery.extend({},p,{queue:!1,complete:function(){b.resolve(c)}});this.el.animate(this.diff,d);return b.promise()});a.when.apply(a,m.get()).done(function(){h();a.each(arguments,function(){var c=this.el;a.each(this.diff,function(a){c.css(a,"")})});p.complete.call(c[0])})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,e,g){return c?
a.effects.animateClass.call(this,{add:b},c,e,g):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,e,g){return c?a.effects.animateClass.call(this,{remove:b},c,e,g):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(b,c,e,g,k){return"boolean"===typeof c||c===h?e?a.effects.animateClass.call(this,c?{add:b}:{remove:b},e,g,k):this._toggleClass(b,c):a.effects.animateClass.call(this,{toggle:b},c,e,g)},switchClass:function(b,c,e,g,h){return a.effects.animateClass.call(this,
{add:c,remove:b},e,g,h)}})})();(function(){function e(b,d,c,e){a.isPlainObject(b)&&(d=b,b=b.effect);b={effect:b};null==d&&(d={});a.isFunction(d)&&(e=d,c=null,d={});if("number"===typeof d||a.fx.speeds[d])e=c,c=d,d={};a.isFunction(c)&&(e=c,c=null);d&&a.extend(b,d);c=c||d.duration;b.duration=a.fx.off?0:"number"===typeof c?c:c in a.fx.speeds?a.fx.speeds[c]:a.fx.speeds._default;b.complete=e||d.complete;return b}function g(e){return!e||"number"===typeof e||a.fx.speeds[e]?!0:"string"!==typeof e||a.effects.effect[e]?
!1:b&&a.effects[e]?!1:!0}a.extend(a.effects,{version:"1.9.1",save:function(a,b){for(var c=0;c<b.length;c++)null!==b[c]&&a.data("ui-effects-"+b[c],a[0].style[b[c]])},restore:function(a,b){var c,e;for(e=0;e<b.length;e++)null!==b[e]&&(c=a.data("ui-effects-"+b[e]),c===h&&(c=""),a.css(b[e],c))},setMode:function(a,b){"toggle"===b&&(b=a.is(":hidden")?"show":"hide");return b},getBaseline:function(a,b){var c,e;switch(a[0]){case "top":c=0;break;case "middle":c=.5;break;case "bottom":c=1;break;default:c=a[0]/
b.height}switch(a[1]){case "left":e=0;break;case "center":e=.5;break;case "right":e=1;break;default:e=a[1]/b.width}return{x:e,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var d={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},c=a("\x3cdiv\x3e\x3c/div\x3e").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},g=document.activeElement;
try{g.id}catch(h){g=document.body}b.wrap(c);(b[0]===g||a.contains(b[0],g))&&a(g).focus();c=b.parent();"static"===b.css("position")?(c.css({position:"relative"}),b.css({position:"relative"})):(a.extend(d,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,c){d[c]=b.css(c);isNaN(parseInt(d[c],10))&&(d[c]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));b.css(e);return c.css(d).show()},removeWrapper:function(b){var d=
document.activeElement;b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus());return b},setTransition:function(b,d,c,e){e=e||{};a.each(d,function(a,d){var g=b.cssUnit(d);0<g[0]&&(e[d]=g[0]*c+g[1])});return e}});a.fn.extend({effect:function(){function g(c){function b(){a.isFunction(f)&&f.call(e[0]);a.isFunction(c)&&c()}var e=a(this),f=d.complete,k=d.mode;(e.is(":hidden")?"hide"===k:"show"===k)?b():h.call(e[0],d,b)}var d=e.apply(this,arguments),
c=d.mode,f=d.queue,h=a.effects.effect[d.effect],p=!h&&b&&a.effects[d.effect];return a.fx.off||!h&&!p?c?this[c](d.duration,d.complete):this.each(function(){d.complete&&d.complete.call(this)}):h?!1===f?this.each(g):this.queue(f||"fx",g):p.call(this,{options:d,duration:d.duration,callback:d.complete,mode:d.mode})},_show:a.fn.show,show:function(a){if(g(a))return this._show.apply(this,arguments);var b=e.apply(this,arguments);b.mode="show";return this.effect.call(this,b)},_hide:a.fn.hide,hide:function(a){if(g(a))return this._hide.apply(this,
arguments);var b=e.apply(this,arguments);b.mode="hide";return this.effect.call(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(g(b)||"boolean"===typeof b||a.isFunction(b))return this.__toggle.apply(this,arguments);var d=e.apply(this,arguments);d.mode="toggle";return this.effect.call(this,d)},cssUnit:function(b){var d=this.css(b),c=[];a.each(["em","px","%","pt"],function(a,b){0<d.indexOf(b)&&(c=[parseFloat(d),b])});return c}})})();(function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],
function(a,h){b[h]=function(b){return Math.pow(b,a+2)}});a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,d=4;a<((b=Math.pow(2,--d))-1)/11;);return 1/Math.pow(4,3-d)-7.5625*Math.pow((3*b-2)/22-a,2)}});a.each(b,function(b,e){a.easing["easeIn"+b]=e;a.easing["easeOut"+b]=function(a){return 1-
e(1-a)};a.easing["easeInOut"+b]=function(a){return.5>a?e(2*a)/2:1-e(-2*a+2)/2}})})()}(jQuery);(function(a,h){var b=/up|down|vertical/,e=/up|left|vertical|horizontal/;a.effects.effect.blind=function(g,h){var d=a(this),c="position top bottom left right height width".split(" "),f=a.effects.setMode(d,g.mode||"hide"),m=g.direction||"up",p=b.test(m),t=p?"height":"width",A=p?"top":"left",m=e.test(m),q={},n="show"===f,r,u,x;d.parent().is(".ui-effects-wrapper")?a.effects.save(d.parent(),c):a.effects.save(d,c);d.show();r=a.effects.createWrapper(d).css({overflow:"hidden"});u=r[t]();x=parseFloat(r.css(A))||
0;q[t]=n?u:0;m||(d.css(p?"bottom":"right",0).css(p?"top":"left","auto").css({position:"absolute"}),q[A]=n?x:u+x);n&&(r.css(t,0),m||r.css(A,x+u));r.animate(q,{duration:g.duration,easing:g.easing,queue:!1,complete:function(){"hide"===f&&d.hide();a.effects.restore(d,c);a.effects.removeWrapper(d);h()}})}})(jQuery);(function(a,h){a.effects.effect.bounce=function(b,e){var g=a(this),h="position top bottom left right height width".split(" "),d=a.effects.setMode(g,b.mode||"effect"),c="hide"===d,f="show"===d,m=b.direction||"up",d=b.distance,p=b.times||5,t=2*p+(f||c?1:0),A=b.duration/t,q=b.easing,n="up"===m||"down"===m?"top":"left",m="up"===m||"left"===m,r,u,x=g.queue(),B=x.length;(f||c)&&h.push("opacity");a.effects.save(g,h);g.show();a.effects.createWrapper(g);d||(d=g["top"===n?"outerHeight":"outerWidth"]()/3);f&&
(u={opacity:1},u[n]=0,g.css("opacity",0).css(n,m?2*-d:2*d).animate(u,A,q));c&&(d/=Math.pow(2,p-1));u={};for(f=u[n]=0;f<p;f++)r={},r[n]=(m?"-\x3d":"+\x3d")+d,g.animate(r,A,q).animate(u,A,q),d=c?2*d:d/2;c&&(r={opacity:0},r[n]=(m?"-\x3d":"+\x3d")+d,g.animate(r,A,q));g.queue(function(){c&&g.hide();a.effects.restore(g,h);a.effects.removeWrapper(g);e()});1<B&&x.splice.apply(x,[1,0].concat(x.splice(B,t+1)));g.dequeue()}})(jQuery);(function(a,h){a.effects.effect.clip=function(b,e){var g=a(this),h="position top bottom left right height width".split(" "),d="show"===a.effects.setMode(g,b.mode||"hide"),c="vertical"===(b.direction||"vertical"),f=c?"height":"width",c=c?"top":"left",m={},p,t;a.effects.save(g,h);g.show();p=a.effects.createWrapper(g).css({overflow:"hidden"});p="IMG"===g[0].tagName?p:g;t=p[f]();d&&(p.css(f,0),p.css(c,t/2));m[f]=d?t:0;m[c]=d?0:t/2;p.animate(m,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){d||
g.hide();a.effects.restore(g,h);a.effects.removeWrapper(g);e()}})}})(jQuery);(function(a,h){a.effects.effect.drop=function(b,e){var g=a(this),h="position top bottom left right opacity height width".split(" "),d=a.effects.setMode(g,b.mode||"hide"),c="show"===d,f=b.direction||"left",m="up"===f||"down"===f?"top":"left",f="up"===f||"left"===f?"pos":"neg",p={opacity:c?1:0},t;a.effects.save(g,h);g.show();a.effects.createWrapper(g);t=b.distance||g["top"===m?"outerHeight":"outerWidth"](!0)/2;c&&g.css("opacity",0).css(m,"pos"===f?-t:t);p[m]=(c?"pos"===f?"+\x3d":"-\x3d":"pos"===f?"-\x3d":
"+\x3d")+t;g.animate(p,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===d&&g.hide();a.effects.restore(g,h);a.effects.removeWrapper(g);e()}})}})(jQuery);(function(a,h){a.effects.effect.explode=function(b,e){function g(){A.push(this);A.length===h*d&&(c.css({visibility:"visible"}),a(A).remove(),f||c.hide(),e())}var h=b.pieces?Math.round(Math.sqrt(b.pieces)):3,d=h,c=a(this),f="show"===a.effects.setMode(c,b.mode||"hide"),m=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/d),t=Math.ceil(c.outerHeight()/h),A=[],q,n,r,u,x,B;for(q=0;q<h;q++)for(u=m.top+q*t,B=q-(h-1)/2,n=0;n<d;n++)r=m.left+n*p,x=n-(d-1)/2,c.clone().appendTo("body").wrap("\x3cdiv\x3e\x3c/div\x3e").css({position:"absolute",
visibility:"visible",left:-n*p,top:-q*t}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:t,left:r+(f?x*p:0),top:u+(f?B*t:0),opacity:f?0:1}).animate({left:r+(f?0:x*p),top:u+(f?0:B*t),opacity:f?1:0},b.duration||500,b.easing,g)}})(jQuery);(function(a,h){a.effects.effect.fade=function(b,e){var g=a(this),h=a.effects.setMode(g,b.mode||"toggle");g.animate({opacity:h},{queue:!1,duration:b.duration,easing:b.easing,complete:e})}})(jQuery);(function(a,h){a.effects.effect.fold=function(b,e){var g=a(this),h="position top bottom left right height width".split(" "),d=a.effects.setMode(g,b.mode||"hide"),c="show"===d,f="hide"===d,d=b.size||15,m=/([0-9]+)%/.exec(d),p=!!b.horizFirst,t=c!==p,A=t?["width","height"]:["height","width"],q=b.duration/2,n,r={},u={};a.effects.save(g,h);g.show();n=a.effects.createWrapper(g).css({overflow:"hidden"});t=t?[n.width(),n.height()]:[n.height(),n.width()];m&&(d=parseInt(m[1],10)/100*t[f?0:1]);c&&n.css(p?{height:0,
width:d}:{height:d,width:0});r[A[0]]=c?t[0]:d;u[A[1]]=c?t[1]:0;n.animate(r,q,b.easing).animate(u,q,b.easing,function(){f&&g.hide();a.effects.restore(g,h);a.effects.removeWrapper(g);e()})}})(jQuery);(function(a,h){a.effects.effect.highlight=function(b,e){var g=a(this),h=["backgroundImage","backgroundColor","opacity"],d=a.effects.setMode(g,b.mode||"show"),c={backgroundColor:g.css("backgroundColor")};"hide"===d&&(c.opacity=0);a.effects.save(g,h);g.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(c,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===d&&g.hide();a.effects.restore(g,h);e()}})}})(jQuery);(function(a,h){a.effects.effect.pulsate=function(b,e){var g=a(this),h=a.effects.setMode(g,b.mode||"show"),d="show"===h,c="hide"===h,h=2*(b.times||5)+(d||"hide"===h?1:0),f=b.duration/h,m=0,p=g.queue(),t=p.length;if(d||!g.is(":visible"))g.css("opacity",0).show(),m=1;for(d=1;d<h;d++)g.animate({opacity:m},f,b.easing),m=1-m;g.animate({opacity:m},f,b.easing);g.queue(function(){c&&g.hide();e()});1<t&&p.splice.apply(p,[1,0].concat(p.splice(t,h+1)));g.dequeue()}})(jQuery);(function(a,h){a.effects.effect.puff=function(b,e){var g=a(this),h=a.effects.setMode(g,b.mode||"hide"),d="hide"===h,c=parseInt(b.percent,10)||150,f=c/100,m={height:g.height(),width:g.width()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:h,complete:e,percent:d?c:100,from:d?m:{height:m.height*f,width:m.width*f}});g.effect(b)};a.effects.effect.scale=function(b,e){var g=a(this),h=a.extend(!0,{},b),d=a.effects.setMode(g,b.mode||"effect"),c=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===
d?0:100),f=b.direction||"both",m=b.origin,p={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},t="horizontal"!==f?c/100:1,c="vertical"!==f?c/100:1;h.effect="size";h.queue=!1;h.complete=e;"effect"!==d&&(h.origin=m||["middle","center"],h.restore=!0);h.from=b.from||("show"===d?{height:0,width:0}:p);h.to={height:p.height*t,width:p.width*c,outerHeight:p.outerHeight*t,outerWidth:p.outerWidth*c};h.fade&&("show"===d&&(h.from.opacity=0,h.to.opacity=1),"hide"===d&&(h.from.opacity=
1,h.to.opacity=0));g.effect(h)};a.effects.effect.size=function(b,e){var g,h,d,c,f,m,p=a(this),t="position top bottom left right width height overflow opacity".split(" ");f="position top bottom left right overflow opacity".split(" ");var A=["width","height","overflow"],q=["fontSize"],n=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=a.effects.setMode(p,b.mode||"effect"),x=b.restore||"effect"!==u,B=b.scale||
"both";m=b.origin||["middle","center"];var y=p.css("position"),w=x?t:f,G={height:0,width:0};"show"===u&&p.show();f={height:p.height(),width:p.width(),outerHeight:p.outerHeight(),outerWidth:p.outerWidth()};"toggle"===b.mode&&"show"===u?(p.from=b.to||G,p.to=b.from||f):(p.from=b.from||("show"===u?G:f),p.to=b.to||("hide"===u?G:f));d=p.from.height/f.height;c=p.from.width/f.width;g=p.to.height/f.height;h=p.to.width/f.width;if("box"===B||"both"===B)d!==g&&(w=w.concat(n),p.from=a.effects.setTransition(p,
n,d,p.from),p.to=a.effects.setTransition(p,n,g,p.to)),c!==h&&(w=w.concat(r),p.from=a.effects.setTransition(p,r,c,p.from),p.to=a.effects.setTransition(p,r,h,p.to));"content"!==B&&"both"!==B||d===g||(w=w.concat(q).concat(A),p.from=a.effects.setTransition(p,q,d,p.from),p.to=a.effects.setTransition(p,q,g,p.to));a.effects.save(p,w);p.show();a.effects.createWrapper(p);p.css("overflow","hidden").css(p.from);m&&(m=a.effects.getBaseline(m,f),p.from.top=(f.outerHeight-p.outerHeight())*m.y,p.from.left=(f.outerWidth-
p.outerWidth())*m.x,p.to.top=(f.outerHeight-p.to.outerHeight)*m.y,p.to.left=(f.outerWidth-p.to.outerWidth)*m.x);p.css(p.from);if("content"===B||"both"===B)n=n.concat(["marginTop","marginBottom"]).concat(q),r=r.concat(["marginLeft","marginRight"]),A=t.concat(n).concat(r),p.find("*[width]").each(function(){var e=a(this),f=e.height(),m=e.width();x&&a.effects.save(e,A);e.from={height:f*d,width:m*c};e.to={height:f*g,width:m*h};d!==g&&(e.from=a.effects.setTransition(e,n,d,e.from),e.to=a.effects.setTransition(e,
n,g,e.to));c!==h&&(e.from=a.effects.setTransition(e,r,c,e.from),e.to=a.effects.setTransition(e,r,h,e.to));e.css(e.from);e.animate(e.to,b.duration,b.easing,function(){x&&a.effects.restore(e,A)})});p.animate(p.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===p.to.opacity&&p.css("opacity",p.from.opacity);"hide"===u&&p.hide();a.effects.restore(p,w);x||("static"===y?p.css({position:"relative",top:p.to.top,left:p.to.left}):a.each(["top","left"],function(a,c){p.css(c,function(c,b){var d=
parseInt(b,10),e=a?p.to.left:p.to.top;return"auto"===b?e+"px":d+e+"px"})}));a.effects.removeWrapper(p);e()}})}})(jQuery);(function(a,h){a.effects.effect.shake=function(b,e){var g=a(this),h="position top bottom left right height width".split(" "),d=a.effects.setMode(g,b.mode||"effect"),c=b.direction||"left",f=b.distance||20,m=b.times||3,p=2*m+1,t=Math.round(b.duration/p),A="up"===c||"down"===c?"top":"left",q="up"===c||"left"===c,c={},n={},r={},u=g.queue(),x=u.length;a.effects.save(g,h);g.show();a.effects.createWrapper(g);c[A]=(q?"-\x3d":"+\x3d")+f;n[A]=(q?"+\x3d":"-\x3d")+2*f;r[A]=(q?"-\x3d":"+\x3d")+2*f;g.animate(c,
t,b.easing);for(f=1;f<m;f++)g.animate(n,t,b.easing).animate(r,t,b.easing);g.animate(n,t,b.easing).animate(c,t/2,b.easing).queue(function(){"hide"===d&&g.hide();a.effects.restore(g,h);a.effects.removeWrapper(g);e()});1<x&&u.splice.apply(u,[1,0].concat(u.splice(x,p+1)));g.dequeue()}})(jQuery);(function(a,h){a.effects.effect.slide=function(b,e){var h=a(this),k="position top bottom left right width height".split(" "),d=a.effects.setMode(h,b.mode||"show"),c="show"===d,f=b.direction||"left",m="up"===f||"down"===f?"top":"left",f="up"===f||"left"===f,p,t={};a.effects.save(h,k);h.show();p=b.distance||h["top"===m?"outerHeight":"outerWidth"](!0);a.effects.createWrapper(h).css({overflow:"hidden"});c&&h.css(m,f?isNaN(p)?"-"+p:-p:p);t[m]=(c?f?"+\x3d":"-\x3d":f?"-\x3d":"+\x3d")+p;h.animate(t,{queue:!1,
duration:b.duration,easing:b.easing,complete:function(){"hide"===d&&h.hide();a.effects.restore(h,k);a.effects.removeWrapper(h);e()}})}})(jQuery);(function(a,h){a.effects.effect.transfer=function(b,e){var h=a(this),k=a(b.to),d="fixed"===k.css("position"),c=a("body"),f=d?c.scrollTop():0,c=d?c.scrollLeft():0,m=k.offset(),k={top:m.top-f,left:m.left-c,height:k.innerHeight(),width:k.innerWidth()},m=h.offset(),p=a('\x3cdiv class\x3d"ui-effects-transfer"\x3e\x3c/div\x3e').appendTo(document.body).addClass(b.className).css({top:m.top-f,left:m.left-c,height:h.innerHeight(),width:h.innerWidth(),position:d?"fixed":"absolute"}).animate(k,b.duration,b.easing,
function(){p.remove();e()})}})(jQuery);(function(a){function h(a){a=g.json?JSON.stringify(a):String(a);return g.raw?a:encodeURIComponent(a)}function b(b,d){var c;if(g.raw)c=b;else a:{var f=b;0===f.indexOf('"')&&(f=f.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{f=decodeURIComponent(f.replace(e," "));c=g.json?JSON.parse(f):f;break a}catch(h){}c=void 0}return a.isFunction(d)?d(c):c}var e=/\+/g,g=a.cookie=function(e,d,c){if(null===d){if(void 0===a.cookie(e))return!1;a.cookie(e,"",a.extend({},c,{expires:-1}));return!a.cookie(e)}if(void 0!==
d&&!a.isFunction(d)){c=a.extend({},g.defaults,c);if("number"===typeof c.expires){var f=c.expires,m=c.expires=new Date;m.setDate(m.getDate()+f)}return document.cookie=[g.raw?e:encodeURIComponent(e),"\x3d",h(d),c.expires?"; expires\x3d"+c.expires.toUTCString():"",c.path?"; path\x3d"+c.path:"",c.domain?"; domain\x3d"+c.domain:"",c.secure?"; secure":""].join("")}c=e?void 0:{};for(var f=document.cookie?document.cookie.split("; "):[],m=0,p=f.length;m<p;m++){var t=f[m].split("\x3d"),A;A=t.shift();A=g.raw?
A:decodeURIComponent(A);t=t.join("\x3d");if(e&&e===A){c=b(t,d);break}e||void 0===(t=b(t))||(c[A]=t)}return c};g.defaults={}})(jQuery);(function(a){a.fn.bindspace=function(h,b,e,g){if("object"==typeof b){for(var k in b)this.bindspace(h,k,e,b[k]);return this}if(3===arguments.length||!1===e)g=e,e=void 0;"object"==typeof h&&(g=a.proxy(g,h),h=a.isFunction(h.getNamespace)?h.getNamespace():"");b=b.split(/\s+/);for(k=0;k<b.length;k++)b[k]=b[k].split("."),1==b[k].length&&b[k].push("common"),b[k]=b[k].join(".")+h;b=b.join(" ");return this.unbind(b).bind(b,e,g)};a.fn.unbindspace=function(h,b){"object"==typeof h&&(h=a.isFunction(h.getNamespace)?
h.getNamespace():"");b=b.split(/\s+/);for(var e=0;e<b.length;e++)b[e]=b[e].split("."),1==b[e].length&&b[e].push("common"),b[e]=b[e].join(".")+h;b=b.join(" ");return this.unbind(b)}})(jQuery);$.deparam=function(a,h){var b={},e={"true":!0,"false":!1,"null":null};$.each(a.replace(/\+/g," ").split("\x26"),function(a,k){var d=k.split("\x3d"),c=decodeURIComponent(d[0]),f=b,m=0,p=c.split("]["),t=p.length-1;/\[/.test(p[0])&&/\]$/.test(p[t])?(p[t]=p[t].replace(/\]$/,""),p=p.shift().split("[").concat(p),t=p.length-1):t=0;if(2===d.length)if(d=decodeURIComponent(d[1]),h&&(d=d&&!isNaN(d)?+d:"undefined"===d?void 0:void 0!==e[d]?e[d]:d),t)for(;m<=t;m++)c=""===p[m]?f.length:p[m],f=f[c]=m<t?f[c]||(p[m+
1]&&isNaN(p[m+1])?{}:[]):d;else $.isArray(b[c])?b[c].push(d):b[c]=void 0!==b[c]?[b[c],d]:d;else c&&(b[c]=h?void 0:"")});return b};(function(a){a.fn.disabled=function(h){return"undefined"==typeof h?(h=!1,this.each(function(){h=h||a(this).is("[disabled]")}),h):this.each(function(){h?a(this).attr("disabled","disabled"):a(this).removeAttr("disabled")})}})(jQuery);(function(a){a.fn.expand=function(h){h=a.extend(!0,{},a.fn.expand.defaults,h||{});return this.each(function(){var b=a(this),e=a(h.headClass,b),g=a(h.textClass,b);e.click(function(){var b=a(this),d=g.eq(e.index(b));d.stop().slideToggle();g.not(d).stop().slideUp();b.toggleClass(h.expandedClass);e.not(b).removeClass(h.expandedClass);d.toggleClass(h.expandedClass);g.not(d).removeClass(h.expandedClass)});e.filter(function(b,d){var c=a(d);return c.attr("id")==h.hash||c.attr("name")==h.hash}).click()})};
a.fn.expand.defaults={headClass:".head",textClass:".text",expandedClass:"active"}})(jQuery);(function(a){"function"===typeof define&&define.amd?define(["jquery"],a):a("undefined"!=typeof jQuery?jQuery:window.Zepto)})(function(a){function h(b){var c=b.data;b.isDefaultPrevented()||(b.preventDefault(),a(b.target).ajaxSubmit(c))}function b(b){var c=b.target,e=a(c);if(!e.is("[type\x3dsubmit],[type\x3dimage]")){c=e.closest("[type\x3dsubmit]");if(0===c.length)return;c=c[0]}var h=this;h.clk=c;"image"==c.type&&(void 0!==b.offsetX?(h.clk_x=b.offsetX,h.clk_y=b.offsetY):"function"==typeof a.fn.offset?
(e=e.offset(),h.clk_x=b.pageX-e.left,h.clk_y=b.pageY-e.top):(h.clk_x=b.pageX-c.offsetLeft,h.clk_y=b.pageY-c.offsetTop));setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)}var e,g;e=void 0!==a("\x3cinput type\x3d'file'/\x3e").get(0).files;g=void 0!==window.FormData;var k=!!a.fn.prop;a.fn.attr2=function(){if(!k)return this.attr.apply(this,arguments);var a=this.prop.apply(this,arguments);return a&&a.jquery||"string"===typeof a?a:this.attr.apply(this,arguments)};a.fn.ajaxSubmit=function(b){function c(c){c=
a.param(c,b.traditional).split("\x26");var e=c.length,f=[],h,g;for(h=0;h<e;h++)c[h]=c[h].replace(/\+/g," "),g=c[h].split("\x3d"),f.push([decodeURIComponent(g[0]),decodeURIComponent(g[1])]);return f}function f(e){for(var f=new FormData,h=0;h<e.length;h++)f.append(e[h].name,e[h].value);if(b.extraData)for(e=c(b.extraData),h=0;h<e.length;h++)e[h]&&f.append(e[h][0],e[h][1]);b.data=null;h=a.extend(!0,{},a.ajaxSettings,b,{contentType:!1,processData:!1,cache:!1,type:p||"POST"});b.uploadProgress&&(h.xhr=function(){var c=
a.ajaxSettings.xhr();c.upload&&c.upload.addEventListener("progress",function(a){var c=0,e=a.loaded||a.position,f=a.total;a.lengthComputable&&(c=Math.ceil(e/f*100));b.uploadProgress(a,e,f,c)},!1);return c});h.data=null;var g=h.beforeSend;h.beforeSend=function(a,c){c.data=b.formData?b.formData:f;g&&g.call(this,a,c)};return a.ajax(h)}function h(c){function e(a){var b=null;try{a.contentWindow&&(b=a.contentWindow.document)}catch(c){}if(b)return b;try{b=a.contentDocument?a.contentDocument:a.document}catch(d){b=
a.document}return b}function f(){function b(){try{var a=e(w).readyState;a&&"uninitialized"==a.toLowerCase()&&setTimeout(b,50)}catch(c){g(2),B&&clearTimeout(B),B=void 0}}var c=A.attr2("target"),d=A.attr2("action");m.setAttribute("target",u);p&&!/post/i.test(p)||m.setAttribute("method","POST");d!=r.url&&m.setAttribute("action",r.url);r.skipEncodingOverride||p&&!/post/i.test(p)||A.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});r.timeout&&(B=setTimeout(function(){y=!0;g(1)},r.timeout));
var h=[];try{if(r.extraData)for(var l in r.extraData)r.extraData.hasOwnProperty(l)&&(a.isPlainObject(r.extraData[l])&&r.extraData[l].hasOwnProperty("name")&&r.extraData[l].hasOwnProperty("value")?h.push(a('\x3cinput type\x3d"hidden" name\x3d"'+r.extraData[l].name+'"\x3e').val(r.extraData[l].value).appendTo(m)[0]):h.push(a('\x3cinput type\x3d"hidden" name\x3d"'+l+'"\x3e').val(r.extraData[l]).appendTo(m)[0]));r.iframeTarget||I.appendTo("body");w.attachEvent?w.attachEvent("onload",g):w.addEventListener("load",
g,!1);setTimeout(b,15);try{m.submit()}catch(k){document.createElement("form").submit.apply(m)}}finally{m.setAttribute("action",d),c?m.setAttribute("target",c):A.removeAttr("target"),a(h).remove()}}function g(b){if(!x.aborted&&!z)if((G=e(w))||(b=2),1===b&&x)x.abort("timeout"),J.reject(x,"timeout");else if(2==b&&x)x.abort("server abort"),J.reject(x,"error","server abort");else if(G&&G.location.href!=r.iframeSrc||y){w.detachEvent?w.detachEvent("onload",g):w.removeEventListener("load",g,!1);b="success";
var c;try{if(y)throw"timeout";var d="xml"==r.dataType||G.XMLDocument||a.isXMLDoc(G);if(!d&&window.opera&&(null===G.body||!G.body.innerHTML)&&--ka){setTimeout(g,250);return}var f=G.body?G.body:G.documentElement;x.responseText=f?f.innerHTML:null;x.responseXML=G.XMLDocument?G.XMLDocument:G;d&&(r.dataType="xml");x.getResponseHeader=function(a){return{"content-type":r.dataType}[a.toLowerCase()]};f&&(x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText);
var h=(r.dataType||"").toLowerCase(),m=/(json|script|text)/.test(h);if(m||r.textarea){var k=G.getElementsByTagName("textarea")[0];if(k)x.responseText=k.value,x.status=Number(k.getAttribute("status"))||x.status,x.statusText=k.getAttribute("statusText")||x.statusText;else if(m){var q=G.getElementsByTagName("pre")[0],n=G.getElementsByTagName("body")[0];q?x.responseText=q.textContent?q.textContent:q.innerText:n&&(x.responseText=n.textContent?n.textContent:n.innerText)}}else"xml"==h&&!x.responseXML&&x.responseText&&
(x.responseXML=ga(x.responseText));try{H=da(x,h,r)}catch(A){b="parsererror",x.error=c=A||b}}catch(p){b="error",x.error=c=p||b}x.aborted&&(b=null);x.status&&(b=200<=x.status&&300>x.status||304===x.status?"success":"error");"success"===b?(r.success&&r.success.call(r.context,H,"success",x),J.resolve(x.responseText,"success",x),t&&a.event.trigger("ajaxSuccess",[x,r])):b&&(void 0===c&&(c=x.statusText),r.error&&r.error.call(r.context,x,b,c),J.reject(x,"error",c),t&&a.event.trigger("ajaxError",[x,r,c]));
t&&a.event.trigger("ajaxComplete",[x,r]);t&&!--a.active&&a.event.trigger("ajaxStop");r.complete&&r.complete.call(r.context,x,b);z=!0;r.timeout&&clearTimeout(B);setTimeout(function(){r.iframeTarget?I.attr("src",r.iframeSrc):I.remove();x.responseXML=null},100)}}var m=A[0],q,r,t,u,I,w,x,y,B,J=a.Deferred();J.abort=function(a){x.abort(a)};if(c)for(q=0;q<n.length;q++)c=a(n[q]),k?c.prop("disabled",!1):c.removeAttr("disabled");r=a.extend(!0,{},a.ajaxSettings,b);r.context=r.context||r;u="jqFormIO"+(new Date).getTime();
r.iframeTarget?(I=a(r.iframeTarget),(q=I.attr2("name"))?u=q:I.attr2("name",u)):(I=a('\x3ciframe name\x3d"'+u+'" src\x3d"'+r.iframeSrc+'" /\x3e'),I.css({position:"absolute",top:"-1000px",left:"-1000px"}));w=I[0];x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(a){a="timeout"===a?"timeout":"aborted";this.aborted=1;try{w.contentWindow.document.execCommand&&w.contentWindow.document.execCommand("Stop")}catch(b){}I.attr("src",
r.iframeSrc);x.error=a}};(t=r.global)&&0===a.active++&&a.event.trigger("ajaxStart");t&&a.event.trigger("ajaxSend",[x,r]);if(r.beforeSend&&!1===r.beforeSend.call(r.context,x,r))return r.global&&a.active--,J.reject(),J;if(x.aborted)return J.reject(),J;(c=m.clk)&&(q=c.name)&&!c.disabled&&(r.extraData=r.extraData||{},r.extraData[q]=c.value,"image"==c.type&&(r.extraData[q+".x"]=m.clk_x,r.extraData[q+".y"]=m.clk_y));c=a("meta[name\x3dcsrf-token]").attr("content");(q=a("meta[name\x3dcsrf-param]").attr("content"))&&
c&&(r.extraData=r.extraData||{},r.extraData[q]=c);r.forceSync?f():setTimeout(f,10);var H,G,ka=50,z,ga=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&"parsererror"!=b.documentElement.nodeName?b:null},ha=a.parseJSON||function(a){return window.eval("("+a+")")},da=function(b,c,d){var e=b.getResponseHeader("content-type")||"",f="xml"===c||!c&&0<=e.indexOf("xml");
b=f?b.responseXML:b.responseText;f&&"parsererror"===b.documentElement.nodeName&&a.error&&a.error("parsererror");d&&d.dataFilter&&(b=d.dataFilter(b,c));"string"===typeof b&&("json"===c||!c&&0<=e.indexOf("json")?b=ha(b):("script"===c||!c&&0<=e.indexOf("javascript"))&&a.globalEval(b));return b};return J}if(!this.length)return this;var p,t,A=this;"function"==typeof b?b={success:b}:void 0===b&&(b={});p=b.type||this.attr2("method");t=b.url||this.attr2("action");(t=(t="string"===typeof t?a.trim(t):"")||
window.location.href||"")&&(t=(t.match(/^([^#]+)/)||[])[1]);b=a.extend(!0,{url:t,success:a.ajaxSettings.success,type:p||a.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},b);t={};this.trigger("form-pre-serialize",[this,b,t]);if(t.veto||b.beforeSerialize&&!1===b.beforeSerialize(this,b))return this;var q=b.traditional;void 0===q&&(q=a.ajaxSettings.traditional);var n=[],r,u=this.formToArray(b.semantic,n);b.data&&(b.extraData=b.data,r=a.param(b.data,
q));if(b.beforeSubmit&&!1===b.beforeSubmit(u,this,b))return this;this.trigger("form-submit-validate",[u,this,b,t]);if(t.veto)return this;t=a.param(u,q);r&&(t=t?t+"\x26"+r:r);"GET"==b.type.toUpperCase()?(b.url+=(0<=b.url.indexOf("?")?"\x26":"?")+t,b.data=null):b.data=t;var x=[];b.resetForm&&x.push(function(){A.resetForm()});b.clearForm&&x.push(function(){A.clearForm(b.includeHidden)});if(!b.dataType&&b.target){var B=b.success||function(){};x.push(function(c){var e=b.replaceTarget?"replaceWith":"html";
a(b.target)[e](c).each(B,arguments)})}else b.success&&x.push(b.success);b.success=function(a,c,e){for(var f=b.context||this,h=0,g=x.length;h<g;h++)x[h].apply(f,[a,c,e||A,A])};if(b.error){var y=b.error;b.error=function(a,c,e){y.apply(b.context||this,[a,c,e,A])}}if(b.complete){var w=b.complete;b.complete=function(a,c){w.apply(b.context||this,[a,c,A])}}r=0<a("input[type\x3dfile]:enabled",this).filter(function(){return""!==a(this).val()}).length;t="multipart/form-data"==A.attr("enctype")||"multipart/form-data"==
A.attr("encoding");var q=e&&g,G;!1!==b.iframe&&(b.iframe||(r||t)&&!q)?b.closeKeepAlive?a.get(b.closeKeepAlive,function(){G=h(u)}):G=h(u):G=(r||t)&&q?f(u):a.ajax(b);A.removeData("jqxhr").data("jqxhr",G);for(r=0;r<n.length;r++)n[r]=null;this.trigger("form-submit-notify",[this,b]);return this};a.fn.ajaxForm=function(d){d=d||{};d.delegation=d.delegation&&a.isFunction(a.fn.on);if(!d.delegation&&0===this.length){var c=this.selector,e=this.context;!a.isReady&&c&&a(function(){a(c,e).ajaxForm(d)});return this}return d.delegation?
(a(document).off("submit.form-plugin",this.selector,h).off("click.form-plugin",this.selector,b).on("submit.form-plugin",this.selector,d,h).on("click.form-plugin",this.selector,d,b),this):this.ajaxFormUnbind().bind("submit.form-plugin",d,h).bind("click.form-plugin",d,b)};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(b,c){var f=[];if(0===this.length)return f;var h=this[0],g=b?h.getElementsByTagName("*"):h.elements;if(!g)return f;
var k,A,q,n,r,u;k=0;for(u=g.length;k<u;k++)if(r=g[k],(q=r.name)&&!r.disabled)if(b&&h.clk&&"image"==r.type)h.clk==r&&(f.push({name:q,value:a(r).val(),type:r.type}),f.push({name:q+".x",value:h.clk_x},{name:q+".y",value:h.clk_y}));else if((n=a.fieldValue(r,!0))&&n.constructor==Array)for(c&&c.push(r),A=0,r=n.length;A<r;A++)f.push({name:q,value:n[A]});else if(e&&"file"==r.type)if(c&&c.push(r),n=r.files,n.length)for(A=0;A<n.length;A++)f.push({name:q,value:n[A],type:r.type});else f.push({name:q,value:"",
type:r.type});else null!==n&&"undefined"!=typeof n&&(c&&c.push(r),f.push({name:q,value:n,type:r.type,required:r.required}));!b&&h.clk&&(g=a(h.clk),k=g[0],(q=k.name)&&!k.disabled&&"image"==k.type&&(f.push({name:q,value:g.val()}),f.push({name:q+".x",value:h.clk_x},{name:q+".y",value:h.clk_y})));return f};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var e=this.name;if(e){var h=a.fieldValue(this,b);if(h&&h.constructor==
Array)for(var g=0,k=h.length;g<k;g++)c.push({name:e,value:h[g]});else null!==h&&"undefined"!=typeof h&&c.push({name:this.name,value:h})}});return a.param(c)};a.fn.fieldValue=function(b){for(var c=[],e=0,h=this.length;e<h;e++){var g=a.fieldValue(this[e],b);null===g||"undefined"==typeof g||g.constructor==Array&&!g.length||(g.constructor==Array?a.merge(c,g):c.push(g))}return c};a.fieldValue=function(b,c){var e=b.name,h=b.type,g=b.tagName.toLowerCase();void 0===c&&(c=!0);if(c&&(!e||b.disabled||"reset"==
h||"button"==h||("checkbox"==h||"radio"==h)&&!b.checked||("submit"==h||"image"==h)&&b.form&&b.form.clk!=b||"select"==g&&-1==b.selectedIndex))return null;if("select"==g){var k=b.selectedIndex;if(0>k)return null;for(var e=[],g=b.options,A=(h="select-one"==h)?k+1:g.length,k=h?k:0;k<A;k++){var q=g[k];if(q.selected){var n=q.value;n||(n=q.attributes&&q.attributes.value&&!q.attributes.value.specified?q.text:q.value);if(h)return n;e.push(n)}}return e}return a(b).val()};a.fn.clearForm=function(b){return this.each(function(){a("input,select,textarea",
this).clearFields(b)})};a.fn.clearFields=a.fn.clearInputs=function(b){var c=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,h=this.tagName.toLowerCase();c.test(e)||"textarea"==h?this.value="":"checkbox"==e||"radio"==e?this.checked=!1:"select"==h?this.selectedIndex=-1:"file"==e?/MSIE/.test(navigator.userAgent)?a(this).replaceWith(a(this).clone(!0)):a(this).val(""):b&&(!0===b&&/hidden/.test(e)||"string"==typeof b&&
a(this).is(b))&&(this.value="")})};a.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){void 0===a&&(a=!0);return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){void 0===b&&(b=!0);return this.each(function(){var c=this.type;"checkbox"==c||"radio"==c?this.checked=b:"option"==this.tagName.toLowerCase()&&(c=a(this).parent("select"),b&&c[0]&&"select-one"==c[0].type&&
c.find("option").selected(!1),this.selected=b)})};a.fn.populate=function(b,c){function e(a,b){b=b||"";if(void 0!=a)if(a.constructor==Object)for(var d in a){var h=b+(""==b?d:"["+d+"]");e(a[d],h)}else if(a.constructor==Array)for(d=0;d<a.length;d++)h=c.useIndices?d:"",h=c.phpNaming?"["+h+"]":h,h=b+h,e(a[d],h);else void 0==k[b]?k[b]=a:k[b].constructor!=Array?k[b]=[k[b],a]:k[b].push(a)}function h(b,d,e){b=a("id"==c.identifier?"#"+d:"["+c.identifier+'\x3d"'+d+'"]',b);e=e.toString();b.html("null"==e?"":
e)}function g(b,d,e){var f=d;c.phpNaming||(f=f.replace(/\[\]$/,""));d=f;f=b[d];if(void 0==f)return(f=a("#"+d,b))?(f.html(e),!0):!1;b=void 0==f.type&&f.length?f:[f];for(d=0;d<b.length;d++)if((f=b[d])&&"undefined"!=typeof f&&"function"!=typeof f)switch(f.type||f.tagName){case "radio":f.checked=!1,f.checked=""!=f.value&&e.toString()==f.value;case "checkbox":var h=e.constructor==Array?e:[e];f.checked=!1;for(var m=0;m<h.length;m++)f.checked|=f.value==h[m];break;case "select-multiple":for(var h=e.constructor==
Array?e:[e],k=0;k<f.options.length;k++)for(m=0;m<h.length;m++)f.options[k].selected|=f.options[k].value==h[m];break;case "select":case "select-one":f.value=e.toString()||e;break;default:e=null==e?"":e,f.value=e}}if(void 0===b)return this;c=a.extend({phpNaming:!1,phpIndices:!1,resetForm:!1,identifier:"id"},c);c.phpIndices&&(c.phpNaming=!0);var k=[];e(b);this.each(function(){var a=this.tagName.toLowerCase(),b="form"==a?g:h;"form"==a&&c.resetForm&&this.reset();for(var d in k)b(this,d,k[d])});return this}});(function(a,h){a.ajaxPrefilter(function(a,e,h){if(a.iframe)return a.originalURL=a.url,"iframe"});a.ajaxTransport("iframe",function(b,e,h){function k(){m.prop("disabled",!1);d.remove();c.one("load",function(){c.remove()});c.attr("src","javascript:false;")}var d=null,c=null,f="iframe-"+a.now();h=a(b.files).filter(":file:enabled");var m=null,p=null;b.dataTypes.shift();b.data=e.data;if(h.length)return d=a("\x3cform enctype\x3d'multipart/form-data' method\x3d'post'\x3e\x3c/form\x3e").hide().attr({action:b.originalURL,
target:f}),"string"===typeof b.data&&0<b.data.length&&a.error("data must not be serialized"),a.each(b.data||{},function(b,c){a.isPlainObject(c)&&(b=c.name,c=c.value);a("\x3cinput type\x3d'hidden' /\x3e").attr({name:b,value:c}).appendTo(d)}),a("\x3cinput type\x3d'hidden' value\x3d'IFrame' name\x3d'X-Requested-With' /\x3e").appendTo(d),p=b.dataTypes[0]&&b.accepts[b.dataTypes[0]]?b.accepts[b.dataTypes[0]]+("*"!==b.dataTypes[0]?", */*; q\x3d0.01":""):b.accepts["*"],a("\x3cinput type\x3d'hidden' name\x3d'X-HTTP-Accept'\x3e").attr("value",
p).appendTo(d),m=h.after(function(b){return a(this).clone().prop("disabled",!0)}).next(),h.appendTo(d),{send:function(b,e){c=a("\x3ciframe src\x3d'javascript:false;' name\x3d'"+f+"' id\x3d'"+f+"' style\x3d'display:none'\x3e\x3c/iframe\x3e");c.one("load",function(){c.one("load",function(){var a=this.contentWindow?this.contentWindow.document:this.contentDocument?this.contentDocument:this.document,b=a.documentElement?a.documentElement:a.body,c=b.getElementsByTagName("textarea")[0],a=c&&c.getAttribute("data-type")||
null,d=c&&c.getAttribute("data-status")||200,f=c&&c.getAttribute("data-statusText")||"OK",b={html:b.innerHTML,text:a?c.value:b?b.textContent||b.innerText:null};k();e(d,f,b,a?"Content-Type: "+a:null)});d[0].submit()});a("body").append(d,c)},abort:function(){null!==c&&(c.unbind("load").attr("src","javascript:false;"),k())}}})})(jQuery);(function(a){"function"===typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(a){a.fn.inputfit=function(h){var b=a.extend({minSize:10,maxSize:20},h);this.each(function(){var e=a(this);if(e.is(":input")){e.off("keyup.infputfit keydown.inputfit");var h=parseFloat(b.maxSize||e.css("font-size"),10),k=parseFloat(b.minSize||h,10);e.on("keyup.inputfit keydown.inputfit refresh.inpufit",function(){var b=a(this),c=b.width(),f=a("\x3cdiv\x3e\x3c/div\x3e",{css:{fontSize:h,fontFamily:e.css("font-family"),
fontStyle:e.css("font-style"),fontWeight:e.css("font-weight"),fontVariant:e.css("font-variant"),position:"absolute",left:"-9999px",visibility:"hidden"}}).appendTo(document.body);f.text(b.val());c=Math.floor(h*c/(f.width()||1));f.remove();c>h&&(c=h);c<k&&(c=k);b.css("font-size",c)}).triggerHandler("keyup.inputfit")}});return this}});jQuery.isString=function(a){return"object"==typeof a&&null!==a?"string"===typeof a.valueOf():"string"===typeof a};jQuery.isNumber=function(a){return"object"==typeof a&&null!==a?"number"===typeof a.valueOf():"number"===typeof a};jQuery.isBoolean=function(a){return"object"==typeof a&&null!==a?"boolean"===typeof a.valueOf():"boolean"===typeof a};jQuery.isRegExp=function(a){return"regexp"===jQuery.type(a)};jQuery.isNull=function(a){return null===a};jQuery.isUndefined=function(a){return"undefined"===typeof a};
jQuery.isNullOrUndefined=function(a){return jQuery.isNull(a)||jQuery.isUndefined(a)};jQuery.isSimple=function(a){return jQuery.isString(a)||jQuery.isNumber(a)||jQuery.isBoolean(a)};jQuery.isInstanceOf=function(a,h){return a instanceof h};(function(a){a.fn.ishas=function(h){return this.filter(function(b,e){return a(e).is(h)||a(e).has(h).size()})}})(jQuery);(function(a){var h={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},b=function(b){b=b.keyCode||b.charCode;return a.browser.safari?h[b]||b:b},e=function(b){if(a.isPlainObject(b))return e(b.mask);if(a.isFunction(b))return function(a){return b(a)};if(a.isRegExp(b))return function(a){return b.test(a)};if(a.fn.keyfilter.defaults.masks[b])return e(a.fn.keyfilter.defaults.masks[b]);b=new RegExp("["+b+"]");return function(a){return b.test(a)}};a.fn.keyfilter=function(g){var k=
e(g);this.bind("keydown.keyfilter",function(d){if(!d.ctrlKey&&!d.altKey){var c=b(d);a.isPlainObject(g)&&g.autotab&&8==c&&g.autotab.empty&&!a(this).val()&&(a(this)[g.autotab.direction](":input:not([readonly]):not([disabled])").focus().select(),d.preventDefault())}});this.bind("keypress.keyfilter",function(d){if(!d.ctrlKey&&!d.altKey){var c=b(d),e;if(e=a.browser.mozilla)e=d.keyCode,e=a.browser.safari?h[e]||e:e,e=33<=e&&40>=e||13==e||9==e||27==e||8==c||46==c&&0==d.charCode;if(!e){c=String.fromCharCode(d.charCode||
d.keyCode||d.which);if(e=!a.browser.mozilla)e=d.keyCode,e=9==e||13==e||40==e&&(!a.browser.opera||!d.shiftKey)||27==e||16==e||17==e||18<=e&&20>=e||a.browser.opera&&!d.shiftKey&&(8==e||33<=e&&35>=e||36<=e&&39>=e||44<=e&&45>=e)||!c;e||(a.isPlainObject(g)&&g.autotab&&-1!=a.inArray(c,g.autotab.chars)&&(a(this)[g.autotab.direction](":input:not([readonly]):not([disabled])").focus().select(),d.preventDefault()),k(c)||d.preventDefault())}}});this.bind("paste.keyfilter input.keyfilter",function(b){var c=a(this),
e=c.attr("maxlength");c.removeAttr("maxlength");arguments.callee.timeout=setTimeout(function(){c.attr("maxlength",e);var b=c.val(),d=b.replace(",",".");parseFloat(d)==d&&(d=d.split("."),d[1]&&1==d[1].length&&"0"!=d[1][0]&&(d[1]+="0"),b=d.join("."));for(var b=b.split(""),h=0,d=0;d<b.length;d+=1)k(b[d])||(a.isPlainObject(g)&&g.autotab&&-1!=a.inArray(b[d],g.autotab.chars)?(h=b.slice(h,d).join(""),e&&(h=h.substr(0,e)),c.readonly()||c.disabled()||c.val(h),h=d+1,c=c.next(":input"),e=c.attr("maxlength")):
b[d]="");h=b.slice(h).join("");e&&(h=h.substr(0,e));c.readonly()||c.disabled()||c.val(h)},0)});return this};a.extend(a.fn.keyfilter,{defaults:{masks:{pint:/[\d]/,"int":/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}},version:1.7})})(jQuery);(function(a){"object"===typeof exports?module.exports=a(require("jquery")):"function"===typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(a){var h,b,e,g=Math.max,k=Math.min;h={};h.d=a(document);h.t=function(a){return a.originalEvent.touches.length-1};b=function(){var b=this;this.cv=this.v=this.g=this.i=this.$=this.o=null;this.h=this.w=this.y=this.x=0;this.c=this.$c=null;this.t=0;this.isInit=!1;this.rH=this.eH=this.cH=this.dH=this.pColor=this.fgColor=null;this.scale=1;this.relativeHeight=
this.relativeWidth=this.relative=!1;this.$div=null;this.run=function(){var c=function(a,c){for(var e in c)b.o[e]=c[e];b._carve().init();b._configure()._draw()};if(!this.$.data("kontroled")){this.$.data("kontroled",!0);this.extend();this.o=a.extend({min:void 0!==this.$.data("min")?this.$.data("min"):0,max:void 0!==this.$.data("max")?this.$.data("max"):100,stopper:!0,readOnly:this.$.data("readonly")||"readonly"===this.$.attr("readonly"),cursor:!0===this.$.data("cursor")&&30||this.$.data("cursor")||
0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:null==this.$.data("displayinput")||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:!1,step:this.$.data("step")||
1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(a){return a},parse:function(a){return parseFloat(a)}},this.o);this.o.flip="anticlockwise"===this.o.rotation||"acw"===this.o.rotation;this.o.inputColor||(this.o.inputColor=this.o.fgColor);this.$.is("fieldset")?(this.v={},this.i=this.$.find("input"),this.i.each(function(c){var e=a(this);b.i[c]=e;b.v[c]=b.o.parse(e.val());e.bind("change blur",function(){var a={};a[c]=e.val();b.val(b._validate(a))})}),this.$.find("legend").remove()):
(this.i=this.$,this.v=this.o.parse(this.$.val()),""===this.v&&(this.v=this.o.min),this.$.bind("change blur",function(){b.val(b._validate(b.o.parse(b.$.val())))}));!this.o.displayInput&&this.$.hide();this.$c=a(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height});this.$div=a('\x3cdiv style\x3d"'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+'px;"\x3e\x3c/div\x3e');this.$.wrap(this.$div).before(this.$c);this.$div=this.$.parent();"undefined"!==
typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]);this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null;if(!this.c)throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}};this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||
1);this.relativeWidth=0!==this.o.width%1&&this.o.width.indexOf("%");this.relativeHeight=0!==this.o.height%1&&this.o.height.indexOf("%");this.relative=this.relativeWidth||this.relativeHeight;this._carve();this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v;this.$.bind("configure",c).parent().bind("configure",c);this._listen()._configure()._xy().init();this.isInit=!0;this.$.val(this.o.format(this.v));this._draw();return this}};this._carve=function(){if(this.relative){var a=
this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),b=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(a,b)}else this.w=this.o.width,this.h=this.o.height;this.$div.css({width:this.w+"px",height:this.h+"px"});this.$c.attr({width:this.w,height:this.h});1!==this.scale&&(this.$c[0].width*=this.scale,this.$c[0].height*=this.scale,this.$c.width(this.w),this.$c.height(this.h));return this};
this._draw=function(){var a=!0;b.g=b.c;b.clear();b.dH&&(a=b.dH());!1!==a&&b.draw()};this._touch=function(a){var e=function(a){a=b.xy2val(a.originalEvent.touches[b.t].pageX,a.originalEvent.touches[b.t].pageY);a==b.cv||b.cH&&!1===b.cH(a)||(b.change(b._validate(a)),b._draw())};this.t=h.t(a);e(a);h.d.bind("touchmove.k",e).bind("touchend.k",function(){h.d.unbind("touchmove.k touchend.k");b.val(b.cv)});return this};this._mouse=function(a){var e=function(a){a=b.xy2val(a.pageX,a.pageY);a==b.cv||b.cH&&!1===
b.cH(a)||(b.change(b._validate(a)),b._draw())};e(a);h.d.bind("mousemove.k",e).bind("keyup.k",function(a){27===a.keyCode&&(h.d.unbind("mouseup.k mousemove.k keyup.k"),b.eH&&!1===b.eH()||b.cancel())}).bind("mouseup.k",function(a){h.d.unbind("mousemove.k mouseup.k keyup.k");b.val(b.cv)});return this};this._xy=function(){var a=this.$c.offset();this.x=a.left;this.y=a.top;return this};this._listen=function(){this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",function(a){a.preventDefault();
b._xy()._mouse(a)}).bind("touchstart",function(a){a.preventDefault();b._xy()._touch(a)}),this.listen());this.relative&&a(window).resize(function(){b._carve().init();b._draw()});return this};this._configure=function(){this.o.draw&&(this.dH=this.o.draw);this.o.change&&(this.cH=this.o.change);this.o.cancel&&(this.eH=this.o.cancel);this.o.release&&(this.rH=this.o.release);this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=
this.o.fgColor;return this};this._clear=function(){this.$c[0].width=this.$c[0].width};this._validate=function(a){return Math.round(~~((0>a?-.5:.5)+a/this.o.step)*this.o.step*100)/100};this.listen=function(){};this.extend=function(){};this.init=function(){};this.change=function(a){};this.val=function(a){};this.xy2val=function(a,b){};this.draw=function(){};this.clear=function(){this._clear()};this.h2rgba=function(a,b){var d;a=a.substring(1,7);d=[parseInt(a.substring(0,2),16),parseInt(a.substring(2,
4),16),parseInt(a.substring(4,6),16)];return"rgba("+d[0]+","+d[1]+","+d[2]+","+b+")"};this.copy=function(a,b){for(var d in a)b[d]=a[d]}};e=function(){b.call(this);this.w2=this.cursorExt=this.lineWidth=this.radius=this.xy=this.startAngle=null;this.PI2=2*Math.PI;this.extend=function(){this.o=a.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)};this.val=function(a,b){if(null!=a)a=this.o.parse(a),!1!==b&&
a!=this.v&&this.rH&&!1===this.rH(a)||(this.v=this.cv=this.o.stopper?g(k(a,this.o.max),this.o.min):a,this.$.val(this.o.format(this.v)),this._draw());else return this.v};this.xy2val=function(a,b){var e;e=Math.atan2(a-(this.x+this.w2),-(b-this.y-this.w2))-this.angleOffset;this.o.flip&&(e=this.angleArc-e-this.PI2);this.angleArc!=this.PI2&&0>e&&-.5<e?e=0:0>e&&(e+=this.PI2);e=e*(this.o.max-this.o.min)/this.angleArc+this.o.min;this.o.stopper&&(e=g(k(e,this.o.max),this.o.min));return e};this.listen=function(){var b=
this,c,e,h=function(a){a.preventDefault();var h=a.originalEvent;a=h.detail||h.wheelDeltaX;var h=h.detail||h.wheelDeltaY,m=b._validate(b.o.parse(b.$.val()))+(0<a||0<h?b.o.step:0>a||0>h?-b.o.step:0),m=g(k(m,b.o.max),b.o.min);b.val(m,!1);b.rH&&(clearTimeout(c),c=setTimeout(function(){b.rH(m);c=null},100),e||(e=setTimeout(function(){c&&b.rH(m);e=null},200)))},p,t,A=1,q={37:-b.o.step,38:b.o.step,39:b.o.step,40:-b.o.step};this.$.bind("keydown",function(c){var e=c.keyCode;96<=e&&105>=e&&(e=c.keyCode=e-48);
p=parseInt(String.fromCharCode(e));isNaN(p)&&(13!==e&&8!==e&&9!==e&&189!==e&&(190!==e||b.$.val().match(/\./))&&c.preventDefault(),-1<a.inArray(e,[37,38,39,40])&&(c.preventDefault(),c=b.o.parse(b.$.val())+q[e]*A,b.o.stopper&&(c=g(k(c,b.o.max),b.o.min)),b.change(b._validate(c)),b._draw(),t=window.setTimeout(function(){A*=2},30)))}).bind("keyup",function(a){isNaN(p)?t&&(window.clearTimeout(t),t=null,A=1,b.val(b.$.val())):b.$.val()>b.o.max&&b.$.val(b.o.max)||b.$.val()<b.o.min&&b.$.val(b.o.min)});this.$c.bind("mousewheel DOMMouseScroll",
h);this.$.bind("mousewheel DOMMouseScroll",h)};this.init=function(){if(this.v<this.o.min||this.v>this.o.max)this.v=this.o.min;this.$.val(this.v);this.w2=this.w/2;this.cursorExt=this.o.cursor/100;this.xy=this.w2*this.scale;this.lineWidth=this.xy*this.o.thickness;this.lineCap=this.o.lineCap;this.radius=this.xy-this.lineWidth/2;this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset);this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc);this.angleOffset=
this.o.angleOffset*Math.PI/180;this.angleArc=this.o.angleArc*Math.PI/180;this.startAngle=1.5*Math.PI+this.angleOffset;this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var a=g(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+
" "+(this.w/a>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})};this.change=function(a){this.cv=a;this.$.val(this.o.format(a))};this.angle=function(a){return(a-this.o.min)*this.angleArc/(this.o.max-this.o.min)};this.arc=function(a){var b;a=this.angle(a);this.o.flip?(b=this.endAngle+1E-5,a=b-a-1E-5):(b=this.startAngle-1E-5,a=b+a+1E-5);this.o.cursor&&(b=a-this.cursorExt)&&(a+=
this.cursorExt);return{s:b,e:a,d:this.o.flip&&!this.o.cursor}};this.draw=function(){var a=this.g,b=this.arc(this.cv),e;e=1;a.lineWidth=this.lineWidth;a.lineCap=this.lineCap;"none"!==this.o.bgColor&&(a.beginPath(),a.strokeStyle=this.o.bgColor,a.arc(this.xy,this.xy,this.radius,this.endAngle-1E-5,this.startAngle+1E-5,!0),a.stroke());this.o.displayPrevious&&(e=this.arc(this.v),a.beginPath(),a.strokeStyle=this.pColor,a.arc(this.xy,this.xy,this.radius,e.s,e.e,e.d),a.stroke(),e=this.cv==this.v);a.beginPath();
a.strokeStyle=e?this.o.fgColor:this.fgColor;a.arc(this.xy,this.xy,this.radius,b.s,b.e,b.d);a.stroke()};this.cancel=function(){this.val(this.v)}};a.fn.dial=a.fn.knob=function(b){return this.each(function(){var c=new e;c.o=b;c.$=a(this);c.run()}).parent()}});(function(a,h,b){function e(b){var c=h.console;k[b]||(k[b]=!0,a.migrateWarnings.push(b),c&&c.warn&&!a.migrateMute&&(c.warn("JQMIGRATE: "+b),a.migrateTrace&&c.trace&&c.trace()))}function g(b,c,d,h){if(Object.defineProperty)try{Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){e(h);return d},set:function(a){e(h);d=a}});return}catch(f){}a._definePropertyBroken=!0;b[c]=d}var k={};a.migrateWarnings=[];a.migrateMute=!0;!a.migrateMute&&h.console&&h.console.log&&h.console.log("JQMIGRATE: Logging is active");
a.migrateTrace===b&&(a.migrateTrace=!0);a.migrateReset=function(){k={};a.migrateWarnings.length=0};"BackCompat"===document.compatMode&&e("jQuery is not compatible with Quirks Mode");var d=a("\x3cinput/\x3e",{size:1}).attr("size")&&a.attrFn,c=a.attr,f=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},m=a.attrHooks.value&&a.attrHooks.value.set||function(){return b},p=/^(?:input|button)$/i,t=/^[238]$/,A=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
q=/^(?:checked|selected)$/i;g(a,"attrFn",d||{},"jQuery.attrFn is deprecated");a.attr=function(h,f,g,m){var k=f.toLowerCase(),n=h&&h.nodeType;if(m&&(4>c.length&&e("jQuery.fn.attr( props, pass ) is deprecated"),h&&!t.test(n)&&(d?f in d:a.isFunction(a.fn[f]))))return a(h)[f](g);"type"===f&&g!==b&&p.test(h.nodeName)&&h.parentNode&&e("Can't change the 'type' of an input or button in IE 6/7/8");!a.attrHooks[k]&&A.test(k)&&(a.attrHooks[k]={get:function(c,d){var e,h=a.prop(c,d);return!0===h||"boolean"!==
typeof h&&(e=c.getAttributeNode(d))&&!1!==e.nodeValue?d.toLowerCase():b},set:function(b,c,d){!1===c?a.removeAttr(b,d):(c=a.propFix[d]||d,c in b&&(b[c]=!0),b.setAttribute(d,d.toLowerCase()));return d}},q.test(k)&&e("jQuery.fn.attr('"+k+"') may use property instead of attribute"));return c.call(a,h,f,g)};a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();if("button"===c)return f.apply(this,arguments);"input"!==c&&"option"!==c&&e("jQuery.fn.attr('value') no longer gets properties");
return b in a?a.value:null},set:function(a,b){var c=(a.nodeName||"").toLowerCase();if("button"===c)return m.apply(this,arguments);"input"!==c&&"option"!==c&&e("jQuery.fn.attr('value', val) no longer sets properties");a.value=b}};var n,r,u=a.fn.init,x=a.parseJSON,B=/^([^<]*)(<[\w\W]+>)([^>]*)$/;a.fn.init=function(b,c,d){var h;return b&&"string"===typeof b&&!a.isPlainObject(c)&&(h=B.exec(a.trim(b)))&&h[0]&&("\x3c"!==b.charAt(0)&&e("$(html) HTML strings must start with '\x3c' character"),h[3]&&e("$(html) HTML text after last tag is ignored"),
"#"===h[0].charAt(0)&&(e("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),c&&c.context&&(c=c.context),a.parseHTML)?u.call(this,a.parseHTML(h[2],c,!0),c,d):u.apply(this,arguments)};a.fn.init.prototype=a.fn;a.parseJSON=function(a){return a||null===a?x.apply(this,arguments):(e("jQuery.parseJSON requires a valid JSON string"),null)};a.uaMatch=function(a){a=a.toLowerCase();a=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||
/(msie) ([\w.]+)/.exec(a)||0>a.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};a.browser||(n=a.uaMatch(navigator.userAgent),r={},n.browser&&(r[n.browser]=!0,r.version=n.version),r.chrome?r.webkit=!0:r.webkit&&(r.safari=!0),a.browser=r);g(a,"browser",a.browser,"jQuery.browser is deprecated");a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this);b.superclass=this;b.fn=b.prototype=this();b.fn.constructor=b;b.sub=
this.sub;b.fn.init=function(d,e){e&&e instanceof a&&!(e instanceof b)&&(e=b(e));return a.fn.init.call(this,d,e,c)};b.fn.init.prototype=b.fn;var c=b(document);e("jQuery.sub() is deprecated");return b};a.ajaxSetup({converters:{"text json":a.parseJSON}});var y=a.fn.data;a.fn.data=function(c){var d,h;return!(h=this[0])||"events"!==c||1!==arguments.length||(d=a.data(h,c),h=a._data(h,c),d!==b&&d!==h||h===b)?y.apply(this,arguments):(e("Use of jQuery.fn.data('events') is deprecated"),h)};var w=/\/(java|ecma)script/i,
G=a.fn.andSelf||a.fn.addBack;a.fn.andSelf=function(){e("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");return G.apply(this,arguments)};a.clean||(a.clean=function(b,c,d,h){c=c||document;c=!c.nodeType&&c[0]||c;c=c.ownerDocument||c;e("jQuery.clean() is deprecated");var f,g=[];a.merge(g,a.buildFragment(b,c).childNodes);if(d)for(c=function(a){if(!a.type||w.test(a.type))return h?h.push(a.parentNode?a.parentNode.removeChild(a):a):d.appendChild(a)},b=0;null!=(f=g[b]);b++)a.nodeName(f,"script")&&c(f)||
(d.appendChild(f),"undefined"!==typeof f.getElementsByTagName&&(f=a.grep(a.merge([],f.getElementsByTagName("script")),c),g.splice.apply(g,[b+1,0].concat(f)),b+=f.length));return g});var F=a.event.add,E=a.event.remove,C=a.event.trigger,v=a.fn.toggle,P=a.fn.live,L=a.fn.die,M=/\b(?:ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess)\b/,K=/(?:^|\s)hover(\.\S+|)\b/,ba=function(b){if("string"!==typeof b||a.event.special.hover)return b;K.test(b)&&e("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'");
return b&&b.replace(K,"mouseenter$1 mouseleave$1")};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement");a.event.dispatch&&g(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated");a.event.add=function(a,b,c,d,h){a!==document&&M.test(b)&&e("AJAX events should be attached to document: "+b);F.call(this,a,ba(b||""),c,d,h)};a.event.remove=function(a,b,c,d,e){E.call(this,a,ba(b)||"",c,d,e)};a.fn.error=
function(){var a=Array.prototype.slice.call(arguments,0);e("jQuery.fn.error() is deprecated");a.splice(0,0,"error");if(arguments.length)return this.bind.apply(this,a);this.triggerHandler.apply(this,a);return this};a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return v.apply(this,arguments);e("jQuery.fn.toggle(handler, handler...) is deprecated");var d=arguments,h=b.guid||a.guid++,f=0,g=function(c){var e=(a._data(this,"lastToggle"+b.guid)||0)%f;a._data(this,"lastToggle"+b.guid,e+
1);c.preventDefault();return d[e].apply(this,arguments)||!1};for(g.guid=h;f<d.length;)d[f++].guid=h;return this.click(g)};a.fn.live=function(b,c,d){e("jQuery.fn.live() is deprecated");if(P)return P.apply(this,arguments);a(this.context).on(b,this.selector,c,d);return this};a.fn.die=function(b,c){e("jQuery.fn.die() is deprecated");if(L)return L.apply(this,arguments);a(this.context).off(b,this.selector||"**",c);return this};a.event.trigger=function(a,b,c,d){c||M.test(a)||e("Global events are undocumented and deprecated");
return C.call(this,a,b,c||document,d)};a.each("ajaxStart ajaxStop ajaxSend ajaxComplete ajaxError ajaxSuccess".split(" "),function(b,c){a.event.special[c]={setup:function(){var b=this;b!==document&&(a.event.add(document,c+"."+a.guid,function(){a.event.trigger(c,null,b,!0)}),a._data(this,c,a.guid++));return!1},teardown:function(){this!==document&&a.event.remove(document,c+"."+a._data(this,c));return!1}}})})(jQuery,window);(function(a){a.fn.phone=function(h){h=a.extend({},a.fn.phone.defaults,h||{});return this.each(function(){function b(){var a=m.val(),b=[];if(q!=a){(a=a.replace(/[^\d]/g,""))&&(a="+"+a);var c=Number.MAX_VALUE,d;for(d in B)if(y[d]&&(a.length>B[d].length?a.substr(0,B[d].length)==B[d]:B[d].substr(0,a.length)==a)){var e=!0,h;for(h in B)if(d!=h&&a.substr(0,B[h].length)==B[h]&&!y[h]){var e=!1,f;for(f in B)if(h!=f&&B[f].substr(0,B[h].length)==B[h]&&!y[h]){e=!0;break}}e&&(b.push(d),B[d].length<c||a.substr(0,
B[d].length)==B[d])&&(c=B[d].length,p.removeClass("region"+r),r=d,n=B[r],a&&p.addClass("region"+r))}if(0==b.length)return m.val(q),!1;q=a;"+"==a&&(p.removeClass("region"+r),r=u,n=B[r],p.addClass("region"+r));m.val(a);m.rules("remove","maxlength");w[r]&&(m.rules("add",{maxlength:w[r]}),m.val(a.substring(0,w[r])));m.rules("remove","minlength");G[r]&&m.rules("add",{minlength:G[r]});m.data("params",x[r]);1==b.length&&k()}}function e(){t.hide().slideDown(function(){var b=a(document).scrollTop(),c=a(window).height(),
d=t.offset().top,e=t.height();d+e>b+c&&(t.height(b+c-d-10),t.css("overflow","auto"))})}function g(){t.stop(!0).slideUp(function(){t.css("height","auto");t.css("overflow","auto")})}function k(){if(!F.active||!E[r]||"+"==m.val())return!1;a("\x3cdiv\x3e\x3c/div\x3e").html(F.text).dialog({modal:!0,title:F.title,buttons:{Ok:function(){a(this).dialog("close").remove();window.location.href=E[r];return!1},Cancel:function(){a(this).dialog("close").remove();q="+";m.val(q);return!1}},close:function(){q="+";
m.val(q);return!1}});return!0}function d(){if(!C.active||!C.url)return!1;a.ajax({url:C.url,type:"post",data:{country:r,random:Math.random()},beforeSend:function(a,b){p.request(a)},success:function(a,b,c){window.location.reload();return!1}})}var c=a(this),f=a.meta?a.extend({},h,c.data()):h,m=null,p=null,t=null,A=null,q="",n="",r="",u="",x={},B={},y={},w={},G={},F={},E={},C={},m=a(f.input,c),p=a(f.country,c),t=a(f.countries,c),A=a(f.items,c),F=f.redirect,C=f.language;A.each(function(){var b=a(this).data("params");
x[b.code]=b;B[b.code]="+"+b.phoneFormat.code;w[b.code]=b.phoneFormat.maxLength?b.phoneFormat.maxLength+1:null;G[b.code]=(b.phoneFormat.minLength>b.phoneFormat.code.length?b.phoneFormat.minLength:b.phoneFormat.code.length+1)+1;y[b.code]=!a(this).hasClass("disabled");b.redirectUrl&&(E[b.code]=b.redirectUrl);p.hasClass("region"+b.code)&&(u=r=b.code,p.removeClass("region"+u))});!m.val().replace(/[^\d]/g,"")&&m.rules().required&&m.focus().val(B[r]).blur();q="";b();m.is("[readonly]")||(a(document).bind("mousedown",
function(a){t.filter(a.target).size()||t.has(a.target).size()||g()}),m.bind("input paste keyup keydown change",b),p.bind("click",function(){t.is(":hidden")?e():g()}),A.bind("click",function(){var b=a(this).attr("class").substr(7,2),c=m.val();n&&c.substr(0,n.length)==n?m.val(B[b]+c.substr(n.length)):m.val(B[b]);c=m.val();p.removeClass("region"+r);r=b;n=B[r];p.addClass("region"+r);m.rules("remove","maxlength");w[r]&&(m.rules("add",{maxlength:w[r]}),m.val(c.substring(0,w[r])));m.rules("remove","minlength");
G[r]&&m.rules("add",{minlength:G[r]});m.data("params",x[r]);g();k()||d()||m.focus().change()}))})};a.fn.phone.defaults={input:"input[type\x3dtext]",country:"div.activeCountry",countries:"ul.countriesList",items:"ul.countriesList li",item:{code:"div.itemCode",flag:"div.itemFlag"}}})(jQuery);var IN_GLOBAL_SCOPE=!0;window.PR_SHOULD_USE_CONTINUATION=!0;var prettyPrintOne,prettyPrint;
(function(){function a(a){function b(a){var c=a.charCodeAt(0);if(92!==c)return c;var d=a.charAt(1);return(c=n[d])?c:"0"<=d&&"7">=d?parseInt(a.substring(1),8):"u"===d||"x"===d?parseInt(a.substring(2),16):a.charCodeAt(1)}function c(a){if(32>a)return(16>a?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);return"\\"===a||"-"===a||"]"===a||"^"===a?"\\"+a:a}function d(a){var e=a.substring(1,a.length-1).match(RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));
a=[];var h="^"===e[0],f=["["];h&&f.push("^");for(var h=h?1:0,g=e.length;h<g;++h){var m=e[h];if(/\\[bdsw]/i.test(m))f.push(m);else{var m=b(m),k;h+2<g&&"-"===e[h+1]?(k=b(e[h+2]),h+=2):k=m;a.push([m,k]);65>k||122<m||(65>k||90<m||a.push([Math.max(65,m)|32,Math.min(k,90)|32]),97>k||122<m||a.push([Math.max(97,m)&-33,Math.min(k,122)&-33]))}}a.sort(function(a,b){return a[0]-b[0]||b[1]-a[1]});e=[];g=[];for(h=0;h<a.length;++h)m=a[h],m[0]<=g[1]+1?g[1]=Math.max(g[1],m[1]):e.push(g=m);for(h=0;h<e.length;++h)m=
e[h],f.push(c(m[0])),m[1]>m[0]&&(m[1]+1>m[0]&&f.push("-"),f.push(c(m[1])));f.push("]");return f.join("")}function e(a){for(var b=a.source.match(RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!\x3d]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),g=b.length,m=[],k=0,q=0;k<g;++k){var n=b[k];"("===n?++q:"\\"===n.charAt(0)&&(n=+n.substring(1))&&(n<=q?m[n]=-1:b[k]=c(n))}for(k=1;k<m.length;++k)-1===m[k]&&(m[k]=++h);for(q=k=0;k<g;++k)n=
b[k],"("===n?(++q,m[q]||(b[k]="(?:")):"\\"===n.charAt(0)&&(n=+n.substring(1))&&n<=q&&(b[k]="\\"+m[n]);for(k=0;k<g;++k)"^"===b[k]&&"^"!==b[k+1]&&(b[k]="");if(a.ignoreCase&&f)for(k=0;k<g;++k)n=b[k],a=n.charAt(0),2<=n.length&&"["===a?b[k]=d(n):"\\"!==a&&(b[k]=n.replace(/[a-zA-Z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return b.join("")}for(var h=0,f=!1,g=!1,m=0,k=a.length;m<k;++m){var q=a[m];if(q.ignoreCase)g=!0;else if(/[a-z]/i.test(q.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,
""))){f=!0;g=!1;break}}for(var n={b:8,t:9,n:10,v:11,f:12,r:13},A=[],m=0,k=a.length;m<k;++m){q=a[m];if(q.global||q.multiline)throw Error(""+q);A.push("(?:"+e(q)+")")}return new RegExp(A.join("|"),g?"gi":"g")}function h(a,b){function c(a){var k=a.nodeType;if(1==k){if(!d.test(a.className)){for(k=a.firstChild;k;k=k.nextSibling)c(k);k=a.nodeName.toLowerCase();if("br"===k||"li"===k)e[g]="\n",f[g<<1]=h++,f[g++<<1|1]=a}}else if(3==k||4==k)k=a.nodeValue,k.length&&(k=b?k.replace(/\r\n?/g,"\n"):k.replace(/[ \t\r\n]+/g,
" "),e[g]=k,f[g<<1]=h,h+=k.length,f[g++<<1|1]=a)}var d=/(?:^|\s)nocode(?:\s|$)/,e=[],h=0,f=[],g=0;c(a);return{sourceCode:e.join("").replace(/\n$/,""),spans:f}}function b(a,b,c,d){b&&(a={sourceCode:b,basePos:a},c(a),d.push.apply(d,a.decorations))}function e(a){for(var b=void 0,c=a.firstChild;c;c=c.nextSibling)var d=c.nodeType,b=1===d?b?a:c:3===d?F.test(c.nodeValue)?a:b:b;return b===a?void 0:b}function g(c,d){var e={},h;(function(){for(var b=c.concat(d),f=[],g={},k=0,m=b.length;k<m;++k){var q=b[k],
n=q[3];if(n)for(var A=n.length;0<=--A;)e[n.charAt(A)]=q;q=q[1];n=""+q;g.hasOwnProperty(n)||(f.push(q),g[n]=null)}f.push(/[\0-\uffff]/);h=a(f)})();var g=d.length,k=function(a){for(var c=a.basePos,m=[c,"pln"],q=0,n=a.sourceCode.match(h)||[],A={},r=0,E=n.length;r<E;++r){var p=n[r],C=A[p],t=void 0,v;if("string"===typeof C)v=!1;else{var u=e[p.charAt(0)];if(u)t=p.match(u[1]),C=u[0];else{for(v=0;v<g;++v)if(u=d[v],t=p.match(u[1])){C=u[0];break}t||(C="pln")}!(v=5<=C.length&&"lang-"===C.substring(0,5))||t&&
"string"===typeof t[1]||(v=!1,C="src");v||(A[p]=C)}u=q;q+=p.length;if(v){v=t[1];var x=p.indexOf(v),w=x+v.length;t[2]&&(w=p.length-t[2].length,x=w-v.length);C=C.substring(5);b(c+u,p.substring(0,x),k,m);b(c+u+x,v,f(C,v),m);b(c+u+w,p.substring(w),k,m)}else m.push(c+u,C)}a.decorations=m};return k}function k(a){var b=[],c=[];a.tripleQuotedStrings?b.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,
null,"'\""]):a.multiLineStrings?b.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):b.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]);a.verbatimStrings&&c.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var d=a.hashComments;d&&(a.cStyleComments?(1<d?b.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):b.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,
null,"#"]),c.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):b.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(c.push(["com",/^\/\/[^\r\n]*/,null]),c.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(d=a.regexLiterals){var e=(d=1<d?"":"\n\r")?".":"[\\S\\s]";c.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!\x3d]\x3d?\x3d?|\\#|%\x3d?|\x26\x26?\x3d?|\\(|\\*\x3d?|[+\\-]\x3d|-\x3e|\\/\x3d?|::?|\x3c\x3c?\x3d?|\x3e\x3e?\x3e?\x3d?|,|;|\\?|@|\\[|~|{|\\^\\^?\x3d?|\\|\\|?\x3d?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+
("/(?\x3d[^/*"+d+"])(?:[^/\\x5B\\x5C"+d+"]|\\x5C"+e+"|\\x5B(?:[^\\x5C\\x5D"+d+"]|\\x5C"+e+")*(?:\\x5D|$))+/")+")")])}(d=a.types)&&c.push(["typ",d]);d=(""+a.keywords).replace(/^ | $/g,"");d.length&&c.push(["kwd",new RegExp("^(?:"+d.replace(/[\s,]+/g,"|")+")\\b"),null]);b.push(["pln",/^\s+/,null," \r\n\t "]);d="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(d+="(?!s*/)");c.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i,
null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(d),null]);return g(b,c)}function d(a,b,c){function d(a){var b=a.nodeType;if(1==b&&!h.test(a.className))if("br"===a.nodeName)e(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)d(a);else if((3==b||4==b)&&c){var k=a.nodeValue,m=k.match(f);m&&(b=k.substring(0,m.index),a.nodeValue=b,(k=k.substring(m.index+m[0].length))&&
a.parentNode.insertBefore(g.createTextNode(k),a.nextSibling),e(a),b||a.parentNode.removeChild(a))}}function e(a){function b(a,c){var d=c?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=b(e,1),h=a.nextSibling;e.appendChild(d);for(var f=h;f;f=h)h=f.nextSibling,e.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var c;(c=a.parentNode)&&1===c.nodeType;)a=c;m.push(a)}for(var h=/(?:^|\s)nocode(?:\s|$)/,f=/\r\n?|\n/,g=a.ownerDocument,k=g.createElement("li");a.firstChild;)k.appendChild(a.firstChild);
for(var m=[k],q=0;q<m.length;++q)d(m[q]);b===(b|0)&&m[0].setAttribute("value",b);var n=g.createElement("ol");n.className="linenums";b=Math.max(0,b-1|0)||0;for(var q=0,A=m.length;q<A;++q)k=m[q],k.className="L"+(q+b)%10,k.firstChild||k.appendChild(g.createTextNode(" ")),n.appendChild(k);a.appendChild(n)}function c(a,b){for(var c=b.length;0<=--c;){var d=b[c];C.hasOwnProperty(d)?A.console&&console.warn("cannot override language handler %s",d):C[d]=a}}function f(a,b){a&&C.hasOwnProperty(a)||(a=/^\s*</.test(b)?
"default-markup":"default-code");return C[a]}function m(a){var b=a.langExtension;try{var c=h(a.sourceNode,a.pre),d=c.sourceCode;a.sourceCode=d;a.spans=c.spans;a.basePos=0;f(b,d)(a);var e=/\bMSIE\s(\d+)/.exec(navigator.userAgent),e=e&&8>=+e[1],b=/\n/g,g=a.sourceCode,k=g.length,c=0,m=a.spans,q=m.length,d=0,n=a.decorations,r=n.length,p=0;n[r]=k;var E,C;for(C=E=0;C<r;)n[C]!==n[C+2]?(n[E++]=n[C++],n[E++]=n[C++]):C+=2;r=E;for(C=E=0;C<r;){for(var t=n[C],v=n[C+1],u=C+2;u+2<=r&&n[u+1]===v;)u+=2;n[E++]=t;n[E++]=
v;C=u}n.length=E;var x=a.sourceNode,w;x&&(w=x.style.display,x.style.display="none");try{for(;d<q;){var y=m[d+2]||k,F=n[p+2]||k,u=Math.min(y,F),B=m[d+1],l;if(1!==B.nodeType&&(l=g.substring(c,u))){e&&(l=l.replace(b,"\r"));B.nodeValue=l;var G=B.ownerDocument,wa=G.createElement("span");wa.className=n[p+1];var Z=B.parentNode;Z.replaceChild(wa,B);wa.appendChild(B);c<y&&(m[d+1]=B=G.createTextNode(g.substring(u,y)),Z.insertBefore(B,wa.nextSibling))}c=u;c>=y&&(d+=2);c>=F&&(p+=2)}}finally{x&&(x.style.display=
w)}}catch(xa){A.console&&console.log(xa&&xa.stack||xa)}}function p(a,b,c){var e=document.createElement("div");e.innerHTML="\x3cpre\x3e"+a+"\x3c/pre\x3e";e=e.firstChild;c&&d(e,c,!0);m({langExtension:b,numberLines:c,sourceNode:e,pre:1});return e.innerHTML}function t(a,b){function c(){for(var b=A.PR_SHOULD_USE_CONTINUATION?r.now()+250:Infinity;E<g.length&&r.now()<b;E++){for(var h=g[E],k=w,l=h;l=l.previousSibling;){var q=l.nodeType,n=(7===q||8===q)&&l.nodeValue;if(n?!/^\??prettify\b/.test(n):3!==q||/\S/.test(l.nodeValue))break;
if(n){k={};n.replace(/\b(\w+)=([\w:.%+-]+)/g,function(a,b,c){k[b]=c});break}}l=h.className;if((k!==w||t.test(l))&&!z.test(l)){q=!1;for(n=h.parentNode;n;n=n.parentNode)if(x.test(n.tagName)&&n.className&&t.test(n.className)){q=!0;break}if(!q){h.className+=" prettyprinted";q=k.lang;if(!q){var q=l.match(C),L;!q&&(L=e(h))&&u.test(L.tagName)&&(q=L.className.match(C));q&&(q=q[1])}if(v.test(h.tagName))n=1;else var n=h.currentStyle,y=f.defaultView,n=(n=n?n.whiteSpace:y&&y.getComputedStyle?y.getComputedStyle(h,
null).getPropertyValue("white-space"):0)&&"pre"===n.substring(0,3);y=k.linenums;(y="true"===y||+y)||(y=(y=l.match(/\blinenums\b(?::(\d+))?/))?y[1]&&y[1].length?+y[1]:!0:!1);y&&d(h,y,n);p={langExtension:q,sourceNode:h,numberLines:y,pre:n};m(p)}}}E<g.length?setTimeout(c,250):"function"===typeof a&&a()}for(var h=b||document.body,f=h.ownerDocument||document,h=[h.getElementsByTagName("pre"),h.getElementsByTagName("code"),h.getElementsByTagName("xmp")],g=[],k=0;k<h.length;++k)for(var q=0,n=h[k].length;q<
n;++q)g.push(h[k][q]);var h=null,r=Date;r.now||(r={now:function(){return+new Date}});var E=0,p,C=/\blang(?:uage)?-([\w.]+)(?!\S)/,t=/\bprettyprint\b/,z=/\bprettyprinted\b/,v=/pre|xmp/i,u=/^code$/i,x=/^(?:pre|code|xmp)$/i,w={};c()}var A=window,q=["break,continue,do,else,for,if,return,while"],n=[[q,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],
r=[n,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],u=[n,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],x=[n,"abstract,as,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],
n=[n,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],B=[q,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],y=[q,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],w=[q,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],
q=[q,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],G=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,F=/\S/,E=k({keywords:[r,x,n,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",B,y,q],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),C={};c(E,["default-code"]);c(g([],
[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));c(g([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,
null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[["atv",/^[\s\S]+/]]),["uq.val"]);c(k({keywords:r,
hashComments:!0,cStyleComments:!0,types:G}),"c cc cpp cxx cyc m".split(" "));c(k({keywords:"null,true,false"}),["json"]);c(k({keywords:x,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:G}),["cs"]);c(k({keywords:u,cStyleComments:!0}),["java"]);c(k({keywords:q,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);c(k({keywords:B,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);c(k({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",
hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);c(k({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);c(k({keywords:n,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);c(k({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),
["coffee"]);c(k({keywords:w,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]);c(g([],[["str",/^[\s\S]+/]]),["regex"]);var v=A.PR={createSimpleLexer:g,registerLangHandler:c,sourceDecorator:k,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:IN_GLOBAL_SCOPE?A.prettyPrintOne=p:prettyPrintOne=p,prettyPrint:prettyPrint=
IN_GLOBAL_SCOPE?A.prettyPrint=t:prettyPrint=t};"function"===typeof define&&define.amd&&define("google-code-prettify",[],function(){return v})})();(function(a){a.fn.readonly=function(h){return"undefined"==typeof h?(h=!1,this.each(function(){h=h||a(this).is("[readonly]")}),h):this.each(function(){h?a(this).attr("readonly","readonly"):a(this).removeAttr("readonly")})}})(jQuery);(function(a){a.fn.request=function(h,b){b=a.extend(!0,{},a.fn.request.defaults,b||{});return h?(this.request(!1),this.each(function(){var e=a(this),g=a("\x3cdiv\x3e"),k="none"!=e.css("display");g.addClass(b.className).addClass(e.attr("class")).append(a("\x3cspan\x3e").addClass(b.textClassName).text(b.message)).append(a("\x3cspan\x3e").addClass(b.iconClassName));for(var d=0;d<b.cloneCss.length;d++)g.css(b.cloneCss[d],e.css(b.cloneCss[d]));e.after(g);g.hide();k&&g.show();e.hide();e.data("xhr",h);e.data("request",
g);e.data("visible",k)})):this.each(function(){var b=a(this),h=b.data("xhr"),k=b.data("request"),d=b.data("visible");b.removeData("visible");k&&(k.constructor===jQuery&&(d&&b.show(),k.remove()),b.removeData("request"));h&&(a.isFunction(h.abort)&&h.abort(),b.removeData("xhr"))})};a.fn.request.defaults={className:"request",iconClassName:"fa fa-refresh fa-spin",textClassName:"request_text",cloneCss:["width","height","display"],message:"Loading..."}})(jQuery);/*
	Dual licensed under MIT license and GPL.
@author		Jan Paepke - e-mail@janpaepke.de

@todo: enhancement: remove dependencies and move to plugins -> 2.0
@todo: bug: when cascading pins (pinning one element multiple times) and later removing them without reset, positioning errors occur.
@todo: bug: having multiple scroll directions with cascaded pins doesn't work (one scroll vertical, one horizontal)
@todo: feature: optimize performance on debug plugin (huge drawbacks, when using many scenes)
*/
(function(a,h){if("function"===typeof define&&define.amd)define(["jquery","TweenMax","TimelineMax"],h);else{var b=h(a.jQuery,a.TweenMax,a.TimelineMax);a.ScrollMagic=b.Controller;a.ScrollScene=b.Scene}})(this,function(a,h,b){var e=function(b){var c={container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100},e=this,h=a.extend({},c,b),n=[],r=!1,u=0,x="PAUSED",B=!0,y=0,w=!0,G,F,E=function(){return h.vertical?h.container.scrollTop():h.container.scrollLeft()},C=function(a){h.vertical?
h.container.scrollTop(a):h.container.scrollLeft(a)},v=function(){G=f(v);if(w&&r){var b=a.isArray(r)?r:n.slice(0),c=u;u=e.scrollPos();c=u-c;x=0===c?"PAUSED":0<c?"FORWARD":"REVERSE";0>c&&b.reverse();a.each(b,function(a,c){M(3,"updating Scene "+(a+1)+"/"+b.length+" ("+n.length+" total)");c.update(!0)});0===b.length&&3<=h.loglevel&&M(3,"updating 0 Scenes (nothing added to controller)");r=!1}},P=function(a){"resize"==a.type&&(y=h.vertical?h.container.height():h.container.width());r=!0},L=function(){B||
y!=(h.vertical?h.container.height():h.container.width())&&h.container.trigger("resize");a.each(n,function(a,b){b.refresh()})},M=function(a,b){if(h.loglevel>=a){var c=Array.prototype.splice.call(arguments,1);c.unshift(a,"(ScrollMagic) -\x3e");k.apply(window,c)}},K=function(a){if(1>=a.length)return a;a=a.slice(0);a.sort(function(a,b){return a.scrollOffset()>b.scrollOffset()?1:-1});return a};this.addScene=function(b){a.isArray(b)?a.each(b,function(a,b){e.addScene(b)}):b instanceof g?b.parent()!=e?b.addTo(e):
0>a.inArray(b,n)&&(n.push(b),n=K(n),b.on("shift.ScrollMagic_sort",function(){n=K(n)}),a.each(h.globalSceneOptions,function(a,c){b[a]&&b[a].call(b,c)}),M(3,"added Scene ("+n.length+" total)")):M(1,"ERROR: invalid argument supplied for '.addScene()'");return e};this.removeScene=function(b){if(a.isArray(b))a.each(b,function(a,b){e.removeScene(b)});else{var c=a.inArray(b,n);-1<c&&(b.off("shift.ScrollMagic_sort"),n.splice(c,1),b.remove(),M(3,"removed Scene ("+n.length+" total)"))}return e};this.updateScene=
function(b,c){a.isArray(b)?a.each(b,function(a,b){e.updateScene(b,c)}):c?b.update(!0):(a.isArray(r)||(r=[]),-1==a.inArray(b,r)&&r.push(b),r=K(r));return e};this.update=function(a){P({type:"resize"});a&&v();return e};this.scrollTo=function(b){if(b instanceof g)b.parent()===e?e.scrollTo(b.scrollOffset()):M(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",b);else if("string"===a.type(b)||("object"===typeof HTMLElement?b instanceof HTMLElement:b&&"object"===typeof b&&
null!==b&&1===b.nodeType&&"string"===typeof b.nodeName)||b instanceof a){var c=a(b).first();if(c[0]){b=h.vertical?"top":"left";var f=d(h.container),c=d(c);B||(f[b]-=e.scrollPos());e.scrollTo(c[b]-f[b])}else M(2,"scrollTo(): The supplied element could not be found. Scroll cancelled.",b)}else a.isFunction(b)?C=b:C.call(h.container[0],b);return e};this.scrollPos=function(b){if(arguments.length)a.isFunction(b)?E=b:M(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'.");
else return E.call(e);return e};this.info=function(a){var b={size:y,vertical:h.vertical,scrollPos:u,scrollDirection:x,container:h.container,isDocument:B};if(arguments.length){if(void 0!==b[a])return b[a];M(1,'ERROR: option "'+a+'" is not available')}else return b};this.loglevel=function(a){if(!arguments.length)return h.loglevel;h.loglevel!=a&&(h.loglevel=a);return e};this.enabled=function(a){if(!arguments.length)return w;w!=a&&(w=!!a,e.updateScene(n,!0));return e};this.destroy=function(a){window.clearTimeout(F);
for(var b=n.length;b--;)n[b].destroy(a);h.container.off("scroll resize",P);m(G);M(3,"destroyed ScrollMagic (reset: "+(a?"true":"false")+")");return null};(function(){e.version=e.constructor.version;a.each(h,function(a,b){c.hasOwnProperty(a)||(M(2,'WARNING: Unknown option "'+a+'"'),delete h[a])});h.container=a(h.container).first();if(0===h.container.length)throw M(1,"ERROR creating object ScrollMagic: No valid scroll container supplied"),"ScrollMagic init failed.";B=!a.contains(document,h.container.get(0));
if(!B)h.container.on("resize",function(a){a.stopPropagation()});y=h.vertical?h.container.height():h.container.width();h.container.on("scroll resize",P);h.refreshInterval=parseInt(h.refreshInterval);0<h.refreshInterval&&(F=window.setInterval(L,h.refreshInterval));G=f(v);M(3,"added new ScrollMagic controller (v"+e.version+")")})();return e};e.version="1.3.0";var g=function(h){var f={onCenter:.5,onEnter:1,onLeave:0},g={duration:0,offset:0,triggerElement:null,triggerHook:"onCenter",reverse:!0,tweenChanges:!1,
loglevel:2},m=this,n=a.extend({},g,h),r="BEFORE",u=0,x=0,B=0,y=0,w=!0,G,F,E,C,v,P,L,M={unknownOptionSupplied:function(){a.each(n,function(a,b){g.hasOwnProperty(a)||(K(2,'WARNING: Unknown option "'+a+'"'),delete n[a])})},duration:function(){if(a.isFunction(n.duration)){G=n.duration;try{n.duration=parseFloat(G())}catch(b){K(1,'ERROR: Invalid return value of supplied function for option "duration":',n.duration),G=void 0,n.duration=g.duration}}else if(n.duration=parseFloat(n.duration),!a.isNumeric(n.duration)||
0>n.duration)K(1,'ERROR: Invalid value for option "duration":',n.duration),n.duration=g.duration},offset:function(){n.offset=parseFloat(n.offset);a.isNumeric(n.offset)||(K(1,'ERROR: Invalid value for option "offset":',n.offset),n.offset=g.offset)},triggerElement:function(){null!==n.triggerElement&&0===a(n.triggerElement).length&&(K(1,'ERROR: Element defined in option "triggerElement" was not found:',n.triggerElement),n.triggerElement=g.triggerElement)},triggerHook:function(){n.triggerHook in f||(a.isNumeric(n.triggerHook)?
n.triggerHook=Math.max(0,Math.min(parseFloat(n.triggerHook),1)):(K(1,'ERROR: Invalid value for option "triggerHook": ',n.triggerHook),n.triggerHook=g.triggerHook))},reverse:function(){n.reverse=!!n.reverse},tweenChanges:function(){n.tweenChanges=!!n.tweenChanges},loglevel:function(){n.loglevel=parseInt(n.loglevel);if(!a.isNumeric(n.loglevel)||0>n.loglevel||3<n.loglevel){var b=n.loglevel;n.loglevel=g.loglevel;K(1,'ERROR: Invalid value for option "loglevel":',b)}}},K=function(a,b){if(n.loglevel>=a){var c=
Array.prototype.splice.call(arguments,1);c.unshift(a,"(ScrollScene) -\x3e");k.apply(window,c)}},ba=function(b){if(arguments.length)a.isArray(b)||(b=[b]);else{b=[];for(var c in M)b.push(c)}a.each(b,function(a,b){if(M[b])M[b]()})},I=function(a,b){var c=!1,d=n[a];n[a]!=b&&(n[a]=b,ba(a),c=d!=n[a]);return c},Q=function(){x=y+n.offset;B=void 0;F&&n.triggerElement&&(x-=F.info("size")*m.triggerHook());B=x+n.duration},R=function(a){G&&I("duration",G.call(m))&&!a&&(m.trigger("change",{what:"duration",newval:n.duration}),
m.trigger("shift",{reason:"duration"}))},N=function(b){var c=0;if(F&&n.triggerElement){for(var e=a(n.triggerElement).first(),c=F.info(),h=d(c.container),f=c.vertical?"top":"left";e.parent().data("ScrollMagicPinSpacer");)e=e.parent();e=d(e);c.isDocument||(h[f]-=F.scrollPos());c=e[f]-h[f]}h=c!=y;y=c;h&&!b&&m.trigger("shift",{reason:"triggerElementPosition"})},O=function(a){if(E){a=0<=a&&1>=a?a:u;if(-1===E.repeat())if("DURING"===r&&E.paused())E.play();else{if("DURING"===r||E.paused())return!1;E.pause()}else if(a!=
E.progress())0===n.duration?"DURING"===r?E.play():E.reverse():n.tweenChanges?E.tweenTo(a*E.duration()):E.progress(a).pause();else return!1;return!0}return!1},J=function(a){if(C&&F){var b=F.info();if(a||"DURING"!==r){a={position:v.inFlow?"relative":"absolute",top:0,left:0};var c=C.css("position")!=a.position;v.pushFollowers?0<n.duration&&("AFTER"===r&&0===parseFloat(v.spacer.css("padding-top"))?c=!0:"BEFORE"===r&&0===parseFloat(v.spacer.css("padding-bottom"))&&(c=!0)):a[b.vertical?"top":"left"]=n.duration*
u;C.css(a);c&&(C.removeClass(v.pinnedClass),H())}else"fixed"!=C.css("position")&&(C.css("position","fixed"),H(),C.addClass(v.pinnedClass)),a=d(v.spacer,!0),c=n.reverse||0===n.duration?b.scrollPos-x:Math.round(u*n.duration*10)/10,a.top-=parseFloat(v.spacer.css("margin-top")),a[b.vertical?"top":"left"]+=c,C.css({top:a.top,left:a.left})}},H=function(){if(C&&F&&v.inFlow){var b="AFTER"===r,d="BEFORE"===r,e="DURING"===r,h="fixed"==C.css("position"),f=F.info("vertical"),g=v.spacer.children().first(),m=c(v.spacer.css("display")),
k={};m?(k["margin-top"]=d||e&&h?C.css("margin-top"):"auto",k["margin-bottom"]=b||e&&h?C.css("margin-bottom"):"auto"):k["margin-top"]=k["margin-bottom"]="auto";v.relSize.width||v.relSize.autoFullWidth?h?a(window).width()==v.spacer.parent().width()?C.css("width",v.relSize.autoFullWidth?"100%":"inherit"):C.css("width",v.spacer.width()):C.css("width","100%"):(k["min-width"]=g.outerWidth(!g.is(C)),k.width=h?k["min-width"]:"auto");v.relSize.height?h?a(window).height()==v.spacer.parent().height()?C.css("height",
"inherit"):C.css("height",v.spacer.height()):C.css("height","100%"):(k["min-height"]=g.outerHeight(!m),k.height=h?k["min-height"]:"auto");v.pushFollowers&&(k["padding"+(f?"Top":"Left")]=n.duration*u,k["padding"+(f?"Bottom":"Right")]=n.duration*(1-u));v.spacer.css(k)}},S=function(){F&&C&&"DURING"===r&&!F.info("isDocument")&&J()},ka=function(a){F&&C&&"DURING"===r&&!F.info("isDocument")&&(a.preventDefault(),F.scrollTo(F.info("scrollPos")-(a.originalEvent.wheelDelta/3||30*-a.originalEvent.detail)))};
this.parent=function(){return F};this.duration=function(b){if(arguments.length)a.isFunction(b)||(G=void 0),I("duration",b)&&(m.trigger("change",{what:"duration",newval:n.duration}),m.trigger("shift",{reason:"duration"}));else return n.duration;return m};this.offset=function(a){if(!arguments.length)return n.offset;I("offset",a)&&(m.trigger("change",{what:"offset",newval:n.offset}),m.trigger("shift",{reason:"offset"}));return m};this.triggerElement=function(a){if(arguments.length)I("triggerElement",
a)&&m.trigger("change",{what:"triggerElement",newval:n.triggerElement});else return n.triggerElement;return m};this.triggerHook=function(b){if(!arguments.length)return a.isNumeric(n.triggerHook)?n.triggerHook:f[n.triggerHook];I("triggerHook",b)&&(m.trigger("change",{what:"triggerHook",newval:n.triggerHook}),m.trigger("shift",{reason:"triggerHook"}));return m};this.reverse=function(a){if(arguments.length)I("reverse",a)&&m.trigger("change",{what:"reverse",newval:n.reverse});else return n.reverse;return m};
this.tweenChanges=function(a){if(arguments.length)I("tweenChanges",a)&&m.trigger("change",{what:"tweenChanges",newval:n.tweenChanges});else return n.tweenChanges;return m};this.loglevel=function(a){if(arguments.length)I("loglevel",a)&&m.trigger("change",{what:"loglevel",newval:n.loglevel});else return n.loglevel;return m};this.state=function(){return r};this.triggerPosition=function(){var a=n.offset;F&&(a=n.triggerElement?a+y:a+F.info("size")*m.triggerHook());return a};this.triggerOffset=function(){return m.triggerPosition()};
this.scrollOffset=function(){return x};this.update=function(a){if(F)if(a)if(F.enabled()&&w){a=F.info("scrollPos");var b;b=0<n.duration?(a-x)/(B-x):a>=x?1:0;m.trigger("update",{startPos:x,endPos:B,scrollPos:a});m.progress(b)}else C&&"DURING"===r&&J(!0);else F.updateScene(m,!1);return m};this.refresh=function(){R();N();return m};this.progress=function(a){if(arguments.length){var b=!1,c=r,d=F?F.info("scrollDirection"):"PAUSED",e=n.reverse||a>=u;0===n.duration?(b=u!=a,u=1>a&&e?0:1,r=0===u?"BEFORE":"DURING"):
0>=a&&"BEFORE"!==r&&e?(u=0,r="BEFORE",b=!0):0<a&&1>a&&e?(u=a,r="DURING",b=!0):1<=a&&"AFTER"!==r?(u=1,r="AFTER",b=!0):"DURING"!==r||e||J();if(b){var h={progress:u,state:r,scrollDirection:d},b=r!=c,d=function(a){m.trigger(a,h)};b&&"DURING"!==c&&(d("enter"),d("BEFORE"===c?"start":"end"));d("progress");b&&"DURING"!==r&&(d("BEFORE"===r?"start":"end"),d("leave"))}return m}return u};this.setTween=function(c){if(!b)return K(1,"ERROR: TimelineMax wasn't found. Please make sure GSAP is loaded before ScrollMagic or use asynchronous loading."),
m;E&&m.removeTween();try{E=(new b({smoothChildTiming:!0})).add(c).pause()}catch(d){K(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject")}finally{c.repeat&&-1===c.repeat()&&(E.repeat(-1),E.yoyo(c.yoyo()))}if(E&&F&&n.triggerElement&&2<=n.loglevel){c=E.getTweensOf(a(n.triggerElement));var e=F.info("vertical");a.each(c,function(a,b){var c=b.vars.css||b.vars;if(e?void 0!==c.top||void 0!==c.bottom:void 0!==c.left||void 0!==c.right)return K(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),
!1})}if(1.14<=parseFloat(TweenLite.version)){c=E.getChildren(!0,!0,!1);for(var h=function(){K(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},f=0,g,k;f<c.length;f++)g=c[f],k!==h&&(k=g.vars.onOverwrite,g.vars.onOverwrite=function(){k&&k.apply(this,arguments);h.apply(this,arguments)})}K(3,"added tween");O();return m};this.removeTween=function(a){E&&(a&&O(0),E.kill(),E=
void 0,K(3,"removed tween (reset: "+(a?"true":"false")+")"));return m};this.setPin=function(b,d){d=a.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer",pinnedClass:""},d);b=a(b).first();if(0===b.length)return K(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),m;if("fixed"==b.css("position"))return K(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),m;if(C){if(C===b)return m;m.removePin()}C=b;C.parent().hide();var e=
"absolute"!=C.css("position"),h=C.css(["display","top","left","bottom","right"]),f=C.css(["width","height"]);C.parent().show();"0px"===f.width&&e&&c(h.display);!e&&d.pushFollowers&&(K(2,"WARNING: If the pinned element is positioned absolutely pushFollowers is disabled."),d.pushFollowers=!1);var g=a("\x3cdiv\x3e\x3c/div\x3e").addClass(d.spacerClass).css(h).data("ScrollMagicPinSpacer",!0).css({position:e?"relative":"absolute","margin-left":"auto","margin-right":"auto","box-sizing":"content-box"}),k=
C[0].style;v={spacer:g,relSize:{width:"%"===f.width.slice(-1),height:"%"===f.height.slice(-1),autoFullWidth:"0px"===f.width&&e&&c(h.display)},pushFollowers:d.pushFollowers,inFlow:e,origStyle:{width:k.width||"",position:k.position||"",top:k.top||"",left:k.left||"",bottom:k.bottom||"",right:k.right||"","box-sizing":k["box-sizing"]||"","-moz-box-sizing":k["-moz-box-sizing"]||"","-webkit-box-sizing":k["-webkit-box-sizing"]||""},pinnedClass:d.pinnedClass};v.relSize.width&&g.css("width",f.width);v.relSize.height&&
g.css("height",f.height);C.before(g).appendTo(g).css({position:e?"relative":"absolute",top:"auto",left:"auto",bottom:"auto",right:"auto"});(v.relSize.width||v.relSize.autoFullWidth)&&C.css("box-sizing","border-box");a(window).on("scroll.ScrollScene_pin resize.ScrollScene_pin",S);C.on("mousewheel DOMMouseScroll",ka);K(3,"added pin");J();return m};this.removePin=function(b){C&&(b||!F?(C.insertBefore(v.spacer).css(v.origStyle),v.spacer.remove()):"DURING"===r&&J(!0),a(window).off("scroll.ScrollScene_pin resize.ScrollScene_pin"),
C.off("mousewheel DOMMouseScroll",ka),C=void 0,K(3,"removed pin (reset: "+(b?"true":"false")+")"));return m};this.setClassToggle=function(b,c){var d=a(b);if(0===d.length||"string"!==a.type(c))return K(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===d.length?"element":"classes")+" supplied."),m;P=c;L=d;m.on("enter.internal_class leave.internal_class",function(a){L.toggleClass(P,"enter"===a.type)});return m};this.removeClassToggle=function(a){L&&a&&L.removeClass(P);m.off("start.internal_class end.internal_class");
L=P=void 0;return m};this.addTo=function(b){b instanceof e?F!=b&&(F&&F.removeScene(m),F=b,ba(),R(!0),N(!0),Q(),H(),F.info("container").on("resize.ScrollScene",function(){F&&C&&"DURING"===r&&((v.relSize.width||v.relSize.autoFullWidth)&&a(window).width()!=v.spacer.parent().width()||v.relSize.height&&a(window).height()!=v.spacer.parent().height())&&H();0<m.triggerHook()&&m.trigger("shift",{reason:"containerSize"})}),K(3,"added ScrollScene to controller"),b.addScene(m),m.update()):K(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic controller");
return m};this.enabled=function(a){if(!arguments.length)return w;w!=a&&(w=!!a,m.update(!0));return m};this.remove=function(){if(F){F.info("container").off("resize.ScrollScene");var a=F;F=void 0;K(3,"removed ScrollScene from controller");a.removeScene(m)}return m};this.destroy=function(a){m.removeTween(a);m.removePin(a);m.removeClassToggle(a);m.trigger("destroy",{reset:a});m.remove();m.off("start end enter leave progress change update shift destroy shift.internal change.internal progress.internal");
K(3,"destroyed ScrollScene (reset: "+(a?"true":"false")+")");return null};this.on=function(b,c){if(a.isFunction(c)){var d=a.trim(b).toLowerCase().replace(/(\w+)\.(\w+)/g,"$1.ScrollScene_$2").replace(/( |^)(\w+)(?= |$)/g,"$1$2.ScrollScene");a(m).on(d,c)}else K(1,"ERROR calling method 'on()': Supplied argument is not a valid callback!");return m};this.off=function(b,c){var d=a.trim(b).toLowerCase().replace(/(\w+)\.(\w+)/g,"$1.ScrollScene_$2").replace(/( |^)(\w+)(?= |$)/g,"$1$2.ScrollScene$3");a(m).off(d,
c);return m};this.trigger=function(b,c){K(3,"event fired:",b,"-\x3e",c);var d=a.Event(a.trim(b).toLowerCase(),c);a(m).trigger(d);return m};(function(){ba();m.on("change.internal",function(a){"loglevel"!==a.what&&"tweenChanges"!==a.what&&("triggerElement"===a.what?N():"reverse"===a.what&&m.update())}).on("shift.internal",function(a){Q();m.update();("AFTER"===r&&"duration"===a.reason||"DURING"===r&&0===n.duration)&&J()}).on("progress.internal",function(a){O();J()}).on("destroy",function(a){a.preventDefault()})})();
return m},k=function(a){var b=["error","warn","log"];a.log||(a.log=function(){});for(var c=0,d;c<b.length;c++)d=b[c],a[d]||(a[d]=a.log);return function(c){if(c>b.length||0>=c)c=b.length;var d=new Date,d=("0"+d.getHours()).slice(-2)+":"+("0"+d.getMinutes()).slice(-2)+":"+("0"+d.getSeconds()).slice(-2)+":"+("00"+d.getMilliseconds()).slice(-3),e=b[c-1],h=Array.prototype.splice.call(arguments,1),e=Function.prototype.bind.call(a[e],a);h.unshift(d);e.apply(a,h)}}(window.console=window.console||{}),d=function(a,
b){var c={top:0,left:0};if((a=a[0])&&a.getBoundingClientRect){var d=a.getBoundingClientRect();c.top=d.top;c.left=d.left;b||(c.top+=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||0),c.left+=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0))}return c},c=function(a){return-1<["block","flex","list-item","table","-webkit-box"].indexOf(a)},f=window.requestAnimationFrame,m=window.cancelAnimationFrame;(function(a){var b=0,c=["ms","moz","webkit","o"],d;for(d=0;!f&&d<c.length;++d)f=
a[c[d]+"RequestAnimationFrame"],m=a[c[d]+"CancelAnimationFrame"]||a[c[d]+"CancelRequestAnimationFrame"];f||(f=function(c){var d=(new Date).getTime(),e=Math.max(0,16-(d-b)),h=a.setTimeout(function(){c(d+e)},e);b=d+e;return h});m||(m=function(b){a.clearTimeout(b)})})(window);return{Controller:e,Scene:g}});jQuery.sprintf=function(){var a=arguments,h=0,b=function(a,b,c,e){c||(c=" ");b=a.length>=b?"":Array(1+b-a.length>>>0).join(c);return e?a+b:b+a},e=function(a,d,c,e,h,g){var t=e-a.length;0<t&&(a=c||!h?b(a,e,g,c):a.slice(0,d.length)+b("",t,"0",!0)+a.slice(d.length));return a},g=function(a,d,c,h,g,p,t){a>>>=0;c=c&&a&&{2:"0b",8:"0",16:"0x"}[d]||"";a=c+b(a.toString(d),p||0,"0",!1);return e(a,c,h,g,t)};return a[h++].replace(/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,
function(k,d,c,f,m,p,t){var A,q;if("%%"==k)return"%";var n=!1;q="";var r=m=!1;A=" ";for(var u=c.length,x=0;c&&x<u;x++)switch(c.charAt(x)){case " ":q=" ";break;case "+":q="+";break;case "-":n=!0;break;case "'":A=c.charAt(x+1);break;case "0":m=!0;break;case "#":r=!0}f=f?"*"==f?+a[h++]:"*"==f.charAt(0)?+a[f.slice(1,-1)]:+f:0;0>f&&(f=-f,n=!0);if(!isFinite(f))throw Error("sprintf: (minimum-)width must be finite");p=p?"*"==p?+a[h++]:"*"==p.charAt(0)?+a[p.slice(1,-1)]:+p:-1<"fFeE".indexOf(t)?6:"d"==t?0:
void 0;d=d?a[d.slice(0,-1)]:a[h++];switch(t){case "s":return t=String(d),null!=p&&(t=t.slice(0,p)),e(t,"",n,f,m,A);case "c":return t=String.fromCharCode(+d),null!=p&&(t=t.slice(0,p)),e(t,"",n,f,m,void 0);case "b":return g(d,2,r,n,f,p,m);case "o":return g(d,8,r,n,f,p,m);case "x":return g(d,16,r,n,f,p,m);case "X":return g(d,16,r,n,f,p,m).toUpperCase();case "u":return g(d,10,r,n,f,p,m);case "i":case "d":return A=+d|0,k=0>A?"-":q,d=k+b(String(Math.abs(A)),p,"0",!1),e(d,k,n,f,m);case "e":case "E":case "f":case "F":case "g":case "G":return A=
+d,k=0>A?"-":q,q=["toExponential","toFixed","toPrecision"]["efg".indexOf(t.toLowerCase())],t=["toString","toUpperCase"]["eEfFgG".indexOf(t)%2],d=k+Math.abs(A)[q](p),e(d,k,n,f,m)[t]();default:return k}})};(function(a,h,b){function e(b,c,d){b=h.createElement(b);c&&(b.id="cbox"+c);d&&(b.style.cssText=d);return a(b)}function g(){return b.innerHeight?b.innerHeight:a(b).height()}function k(b,c){c!==Object(c)&&(c={});this.cache={};this.el=b;this.value=function(b){var d;void 0===this.cache[b]&&(d=a(this.el).attr("data-cbox-"+b),void 0!==d?this.cache[b]=d:void 0!==c[b]?this.cache[b]=c[b]:void 0!==B[b]&&(this.cache[b]=B[b]));return this.cache[b]};this.get=function(b){b=this.value(b);return a.isFunction(b)?
b.call(this.el,this):b}}function d(a){var b=L.length;a=(ea+a)%b;return 0>a?b+a:a}function c(a,b){return Math.round((/%/.test(a)?("x"===b?M.width():g())/100:1)*parseInt(a,10))}function f(a,b){return a.get("photo")||a.get("photoRegex").test(b)}function m(a,c){return a.get("retinaUrl")&&1<b.devicePixelRatio?c.replace(a.get("photoRegex"),a.get("retinaSuffix")):c}function p(a){"contains"in w[0]&&!w[0].contains(a.target)&&a.target!==y[0]&&(a.stopPropagation(),w.focus())}function t(a){t.str!==a&&(w.add(y).removeClass(t.str).addClass(a),
t.str=a)}function A(){ea=0;rel&&"nofollow"!==rel?(L=a(".cboxElement").filter(function(){var b=a.data(this,"colorbox");return(new k(this,b)).get("rel")===rel}),ea=L.index(z.el),-1===ea&&(L=L.add(z.el),ea=L.length-1)):L=a(z.el)}function q(b){a(h).trigger(b);ka.triggerHandler(b)}function n(b){var d;if(!ta){d=a(b).data("colorbox");z=new k(b,d);rel=z.get("rel");A();if(!sa&&(sa=l=!0,t(z.get("className")),w.css({visibility:"hidden",display:"block"}),K=e("div","LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),
F.css({width:"",height:""}).append(K),ga=E.height()+P.height()+F.outerHeight(!0)-F.height(),ha=C.width()+v.width()+F.outerWidth(!0)-F.width(),da=K.outerHeight(!0),V=K.outerWidth(!0),z.w=c(z.get("initialWidth"),"x"),z.h=c(z.get("initialHeight"),"y"),K.css({width:"",height:z.h}),Z.position(),q("cbox_open"),z.get("onOpen"),S.add(Q).hide(),w.focus(),z.get("trapFocus")&&h.addEventListener&&(h.addEventListener("focus",p,!0),ka.one("cbox_closed",function(){h.removeEventListener("focus",p,!0)})),z.get("returnFocus")))ka.one("cbox_closed",
function(){a(z.el).focus()});y.css({opacity:parseFloat(z.get("opacity")),cursor:z.get("overlayClose")?"pointer":"auto",visibility:"visible"}).show();z.get("closeButton")?H.html(z.get("close")).appendTo(F):H.appendTo("\x3cdiv/\x3e");x()}}function r(){!w&&h.body&&(Ga=!1,M=a(b),w=e("div").attr({id:"colorbox","class":!1===a.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),y=e("div","Overlay").hide(),I=a([e("div","LoadingOverlay")[0],e("div","LoadingGraphic")[0]]),G=e("div","Wrapper"),
F=e("div","Content").append(Q=e("div","Title"),R=e("div","Current"),J=a("\x3cdiv/\x3e").attr({id:"cboxPrevious"}),O=a("\x3cdiv/\x3e").attr({id:"cboxNext"}),N=e("div","Slideshow"),I),H=a("\x3cdiv/\x3e").attr({id:"cboxClose"}),G.append(e("div").append(e("div","TopLeft"),E=e("div","TopCenter"),e("div","TopRight")),e("div",!1,"clear:left").append(C=e("div","MiddleLeft"),F,v=e("div","MiddleRight")),e("div",!1,"clear:left").append(e("div","BottomLeft"),P=e("div","BottomCenter"),e("div","BottomRight"))).find("div div").css({"float":"left"}),
ba=e("div",!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),S=O.add(J).add(R).add(N),a(h.body).append(y,w.append(G,ba)))}function u(){function b(a){1<a.which||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||(a.preventDefault(),n(this))}if(w){if(!Ga)if(Ga=!0,O.click(function(){Z.next()}),J.click(function(){Z.prev()}),H.click(function(){Z.close()}),y.click(function(){z.get("overlayClose")&&Z.close()}),a(h).bind("keydown.cbox",function(a){var b=a.keyCode;sa&&z.get("escKey")&&
27===b&&(a.preventDefault(),Z.close());sa&&z.get("arrowKey")&&L[1]&&!a.altKey&&(37===b?(a.preventDefault(),J.click()):39===b&&(a.preventDefault(),O.click()))}),a.isFunction(a.fn.on))a(h).on("click.cbox",".cboxElement",b);else a(".cboxElement").live("click.cbox",b);return!0}return!1}function x(){var d,g,k=Z.prep,n,E=++xa;l=!0;W=!1;q("cbox_purge");q("cbox_load");z.get("onLoad");z.h=z.get("height")?c(z.get("height"),"y")-da-ga:z.get("innerHeight")&&c(z.get("innerHeight"),"y");z.w=z.get("width")?c(z.get("width"),
"x")-V-ha:z.get("innerWidth")&&c(z.get("innerWidth"),"x");z.mw=z.w;z.mh=z.h;z.get("maxWidth")&&(z.mw=c(z.get("maxWidth"),"x")-V-ha,z.mw=z.w&&z.w<z.mw?z.w:z.mw);z.get("maxHeight")&&(z.mh=c(z.get("maxHeight"),"y")-da-ga,z.mh=z.h&&z.h<z.mh?z.h:z.mh);d=z.get("href");wa=setTimeout(function(){I.show()},100);z.get("inline")?(n=e("div").hide().insertBefore(a(d)[0]),ka.one("cbox_purge",function(){n.replaceWith(K.children())}),k(a(d))):z.get("iframe")?k(" "):z.get("html")?k(z.get("html")):f(z,d)?(d=m(z,d),
W=h.createElement("img"),a(W).addClass("cboxPhoto").bind("error",function(){k(e("div","Error").html(z.get("imgError")))}).one("load",function(){var c;E===xa&&(a.each(["alt","longdesc","aria-describedby"],function(b,c){var d=a(z.el).attr(c)||a(z.el).attr("data-"+c);d&&W.setAttribute(c,d)}),z.get("retinaImage")&&1<b.devicePixelRatio&&(W.height/=b.devicePixelRatio,W.width/=b.devicePixelRatio),z.get("scalePhotos")&&(g=function(){W.height-=W.height*c;W.width-=W.width*c},z.mw&&W.width>z.mw&&(c=(W.width-
z.mw)/W.width,g()),z.mh&&W.height>z.mh&&(c=(W.height-z.mh)/W.height,g())),z.h&&(W.style.marginTop=Math.max(z.mh-W.height,0)/2+"px"),L[1]&&(z.get("loop")||L[ea+1])&&(W.style.cursor="pointer",W.onclick=function(){Z.next()}),W.style.width=W.width+"px",W.style.height=W.height+"px",setTimeout(function(){k(W)},1))}),setTimeout(function(){W.src=d},1)):d&&ba.load(d,z.get("data"),function(b,c){E===xa&&k("error"===c?e("div","Error").html(z.get("xhrError")):a(this).contents())})}var B={html:!1,photo:!1,iframe:!1,
inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.7,preloading:!0,className:!1,overlayClose:!1,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!0,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,
retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"",previous:"",next:"",close:"",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,patterns:{youtube:{index:"youtube.com",id:"v\x3d",src:"//www.youtube.com/embed/%id%?autoplay\x3d1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay\x3d1"}},rel:function(){return this.rel},href:function(){return a(this).attr("href")},
title:function(){return this.title}},y,w,G,F,E,C,v,P,L,M,K,ba,I,Q,R,N,O,J,H,S,ka=a("\x3ca/\x3e"),z,ga,ha,da,V,ea,W,sa,l,ta,wa,Z,xa=0,Va={},Ga,Ca=function(){function a(){clearTimeout(f)}function b(){if(z.get("loop")||L[ea+1])a(),f=setTimeout(Z.next,z.get("slideshowSpeed"))}function c(){N.html(z.get("slideshowStop")).unbind("click.cbox").one("click.cbox",d);ka.bind("cbox_complete",b).bind("cbox_load",a);w.removeClass("cboxSlideshow_off").addClass("cboxSlideshow_on")}function d(){a();ka.unbind("cbox_complete",
b).unbind("cbox_load",a);N.html(z.get("slideshowStart")).unbind("click.cbox").one("click.cbox",function(){Z.next();c()});w.removeClass("cboxSlideshow_on").addClass("cboxSlideshow_off")}function e(){h=!1;N.hide();a();ka.unbind("cbox_complete",b).unbind("cbox_load",a);w.removeClass("cboxSlideshow_off cboxSlideshow_on")}var h,f;return function(){h?z.get("slideshow")||(ka.unbind("cbox_cleanup",e),e()):z.get("slideshow")&&L[1]&&(h=!0,ka.one("cbox_cleanup",e),z.get("slideshowAuto")?c():d(),N.show())}}();
a.colorbox||(a(r),Z=a.fn.colorbox=a.colorbox=function(b,c){var d,e=this;b=b||{};if(a.isFunction(e))e=a("\x3ca/\x3e"),b.open=!0;else if(!e[0])return e;if(!e[0])return e;r();u()&&(c&&(b.onComplete=c),e.each(function(){var c=a.data(this,"colorbox")||{};a.data(this,"colorbox",a.extend(c,b))}).addClass("cboxElement"),d=new k(e[0],b),d.get("open")&&n(e[0]));return e},Z.position=function(b,d){function e(){E[0].style.width=P[0].style.width=F[0].style.width=parseInt(w[0].style.width,10)-ha+"px";F[0].style.height=
C[0].style.height=v[0].style.height=parseInt(w[0].style.height,10)-ga+"px"}var h,f=0,m=0,k=w.offset(),n,q;M.unbind("resize.cbox");w.css({top:-9E4,left:-9E4});n=M.scrollTop();q=M.scrollLeft();z.get("fixed")?(k.top-=n,k.left-=q,w.css({position:"fixed"})):(f=n,m=q,w.css({position:"absolute"}));m=!1!==z.get("right")?m+Math.max(M.width()-z.w-V-ha-c(z.get("right"),"x"),0):!1!==z.get("left")?m+c(z.get("left"),"x"):m+Math.round(Math.max(M.width()-z.w-V-ha,0)/2);f=!1!==z.get("bottom")?f+Math.max(g()-z.h-da-
ga-c(z.get("bottom"),"y"),0):!1!==z.get("top")?f+c(z.get("top"),"y"):f+Math.round(Math.max(g()-z.h-da-ga,0)/2);w.css({top:k.top,left:k.left,visibility:"visible"});G[0].style.width=G[0].style.height="9999px";h={width:z.w+V+ha,height:z.h+da+ga,top:f,left:m};if(b){var r=0;a.each(h,function(a){h[a]!==Va[a]&&(r=b)});b=r}Va=h;b||w.css(h);w.dequeue().animate(h,{duration:b||0,complete:function(){e();l=!1;G[0].style.width=z.w+V+ha+"px";G[0].style.height=z.h+da+ga+"px";z.get("reposition")&&setTimeout(function(){M.bind("resize.cbox",
Z.position)},1);d&&d()},step:e})},Z.resize=function(a){var b;sa&&(a=a||{},a.width&&(z.w=c(a.width,"x")-V-ha),a.innerWidth&&(z.w=c(a.innerWidth,"x")),K.css({width:z.w}),a.height&&(z.h=c(a.height,"y")-da-ga),a.innerHeight&&(z.h=c(a.innerHeight,"y")),a.innerHeight||a.height||(b=K.scrollTop(),K.css({height:"auto"}),z.h=K.height()),K.css({height:z.h}),b&&K.scrollTop(b),Z.position("none"===z.get("transition")?0:z.get("speed")))},Z.prep=function(b){function c(){z.w=z.w||K.width();z.w=z.mw&&z.mw<z.w?z.mw:
z.w;return z.w}function g(){z.h=z.h||K.height();z.h=z.mh&&z.mh<z.h?z.mh:z.h;return z.h}if(sa){var l,n="none"===z.get("transition")?0:z.get("speed");K.remove();K=e("div","LoadedContent").append(b);K.hide().appendTo(ba.show()).css({width:c(),overflow:z.get("scrolling")?"auto":"hidden"}).css({height:g()}).prependTo(F);ba.hide();a(W).css({"float":"none"});t(z.get("className"));l=function(){function b(){!1===a.support.opacity&&w[0].style.removeAttribute("filter")}var c=L.length,e,g;if(sa){g=function(){clearTimeout(wa);
I.hide();q("cbox_complete");z.get("onComplete")};Q.html(z.get("title")).show();K.show();1<c?("string"===typeof z.get("current")&&R.html(z.get("current").replace("{current}",ea+1).replace("{total}",c)).show(),O[z.get("loop")||ea<c-1?"show":"hide"]().html(z.get("next")),J[z.get("loop")||ea?"show":"hide"]().html(z.get("previous")),Ca(),z.get("preloading")&&a.each([d(-1),d(1)],function(){var b,c=L[this];b=new k(c,a.data(c,"colorbox"));(c=b.get("href"))&&f(b,c)&&(c=m(b,c),b=h.createElement("img"),b.src=
c)})):S.hide();if(z.get("iframe")){e=h.createElement("iframe");"frameBorder"in e&&(e.frameBorder=0);"allowTransparency"in e&&(e.allowTransparency="true");z.get("scrolling")||(e.scrolling="no");var l=z.get("href");a.each(z.get("patterns"),function(){if(-1<l.indexOf(this.index))return this.id&&(l="string"===typeof this.id?l.substr(l.lastIndexOf(this.id)+this.id.length,l.length):this.id.call(this,l)),l=this.src.replace("%id%",l),!1});a(e).attr({src:l,name:(new Date).getTime(),"class":"cboxIframe",allowFullScreen:!0}).one("load",
g).appendTo(K);ka.one("cbox_purge",function(){e.src="//about:blank"});z.get("fastIframe")&&a(e).trigger("load")}else g();"fade"===z.get("transition")?w.fadeTo(n,1,b):b()}};"fade"===z.get("transition")?w.fadeTo(n,0,function(){Z.position(0,l)}):Z.position(n,l)}},Z.next=function(){!l&&L[1]&&(z.get("loop")||L[ea+1])&&(ea=d(1),n(L[ea]))},Z.prev=function(){!l&&L[1]&&(z.get("loop")||ea)&&(ea=d(-1),n(L[ea]))},Z.close=function(){sa&&!ta&&(ta=!0,sa=!1,q("cbox_cleanup"),z.get("onCleanup"),M.unbind(".cbox"),
y.fadeTo(z.get("fadeOut")||0,0),w.stop().fadeTo(z.get("fadeOut")||0,0,function(){w.add(y).css({opacity:1,cursor:"auto"}).hide();q("cbox_purge");K.remove();setTimeout(function(){ta=!1;q("cbox_closed");z.get("onClosed")},1)}))},Z.remove=function(){w&&(w.stop(),a.colorbox.close(),w.stop().remove(),y.remove(),ta=!1,w=null,a(".cboxElement").removeData("colorbox").removeClass("cboxElement"),a(h).unbind("click.cbox"))},Z.element=function(){return a(z.el)},Z.settings=B)})(jQuery,document,window);(function(a){a.extend(a.fn,{validate:function(h){if(this.length){var b=a.data(this[0],"validator");if(b)return b;this.attr("novalidate","novalidate");b=new a.validator(h,this[0]);a.data(this[0],"validator",b);b.settings.onsubmit&&(h=this.find("input, button"),h.filter(".cancel").click(function(){b.cancelSubmit=!0}),b.settings.submitHandler&&h.filter(":submit").click(function(){b.submitButton=this}),this.submit(function(e){function h(){if(b.settings.submitHandler){if(b.submitButton)var e=a("\x3cinput type\x3d'hidden'/\x3e").attr("name",
b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&e.remove();return!1}return!0}if(b.cancelSubmit)return b.cancelSubmit=!1,h();if(b.form())return b.pendingRequest?(b.formSubmitted=!0,!1):h();b.focusInvalid();return!1}));return b}},valid:function(){if(!a(this).size())return!0;if(a(this[0]).is("form"))return this.validate().form();var h=!0,b=a(this[0].form).validate();this.each(function(){h&=b.element(this)});return h},
removeAttrs:function(h){var b={},e=this;a.each(h.split(/\s/),function(a,h){b[h]=e.attr(h);e.removeAttr(h)});return b},rules:function(h,b){var e=this[0];if(!e)return null;if(h){var g=a.data(e.form,"validator").settings,k=g.rules,d=a.validator.staticRules(e);switch(h){case "add":a.extend(d,a.validator.normalizeRule(b));k[e.name]=d;b.messages&&(g.messages[e.name]=a.extend(g.messages[e.name],b.messages));break;case "remove":if(!b)return delete k[e.name],d;var c={};a.each(b.split(/\s/),function(a,b){c[b]=
d[b];delete d[b]});return c}}e=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(e),a.validator.classRules(e),a.validator.attributeRules(e),a.validator.staticRules(e)),e);e.required&&(g=e.required,delete e.required,e=a.extend({required:g},e));return e}});a.extend(a.expr[":"],{blank:function(h){return!a.trim(""+h.value)},filled:function(h){return!!a.trim(""+h.value)},unchecked:function(a){return!a.checked}});a.validator=function(h,b){this.settings=a.extend(!0,{},a.validator.defaults,
h);this.currentForm=b.form?b.form:b;this.init()};a.validator.format=function(h,b){if(1==arguments.length)return function(){var b=a.makeArray(arguments);b.unshift(h);return a.validator.format.apply(this,b)};2<arguments.length&&b.constructor!=Array&&(b=a.makeArray(arguments).slice(1));b.constructor!=Array&&(b=[b]);a.each(b,function(a,b){h=h.replace(new RegExp("\\{"+a+"\\}","g"),b)});return h};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",
focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden :input",ignoreTitle:!0,onfocusin:function(a,b){this.lastActive=a;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(a)).hide())},onfocusout:function(a,b){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a,b){(a.name in
this.submitted||a==this.lastElement)&&this.element(a)},onclick:function(a,b){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(h,b,e){"radio"===h.type?this.findByName(h.name).addClass(b).removeClass(e):a(h).addClass(b).removeClass(e)},unhighlight:function(h,b,e){"radio"===h.type?this.findByName(h.name).removeClass(b).addClass(e):a(h).removeClass(b).addClass(e)}},setDefaults:function(h){a.extend(a.validator.defaults,h)},messages:{required:"This field is required.",
remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),
rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function h(b){var e=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,"");e.settings[d]&&e.settings[d].call(e,this[0],b)}this.labelContainer=
a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};a.each(this.settings.groups,function(e,h){a.each(h.split(/\s/),function(a,c){b[c]=e})});var e=this.settings.rules;a.each(e,function(b,h){e[b]=a.validator.normalizeRule(h)});
a(this.currentForm).validateDelegate("[type\x3d'hidden'], [type\x3d'text'], [type\x3d'password'], [type\x3d'file'], select, textarea, [type\x3d'number'], [type\x3d'search'] ,[type\x3d'tel'], [type\x3d'url'], [type\x3d'email'], [type\x3d'datetime'], [type\x3d'date'], [type\x3d'month'], [type\x3d'week'], [type\x3d'time'], [type\x3d'datetime-local'], [type\x3d'range'], [type\x3d'color'] ","focusin focusout keyup",h).validateDelegate("[type\x3d'radio'], [type\x3d'checkbox'], select, option","click",h);
this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(h){this.lastElement=
h=this.validationTargetFor(this.clean(h));this.prepareElement(h);this.currentElements=a(h);var b=this.check(h);b?delete this.invalid[h.name]:this.invalid[h.name]=!0;this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers));this.showErrors();return b},showErrors:function(h){if(h){a.extend(this.errorMap,h);this.errorList=[];for(var b in h){var e=this.findByName(b)[0];e&&this.errorList.push({message:h[b],element:e})}this.successList=a.grep(this.successList,function(a){return!(a.name in
h)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(h){!h&&a.fn.resetForm&&a(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,e;for(e in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},
valid:function(){return 0==this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(h){}},findLastActive:function(){var h=this.lastActive;return h&&1==a.grep(this.errorList,function(a){return a.element.name==h.name}).length&&h},elements:function(){var h=this,b={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image").not(this.settings.ignore).filter(function(){return this.name in
b||!h.objectLength(a(this).rules())?!1:b[this.name]=!0})},clean:function(h){return a(h)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(h,
b){h=this.validationTargetFor(this.clean(h));if(!h)return!0;var e=a(h).rules(),g=!1,k;for(k in e){var d={method:k,parameters:e[k]};try{var c=a.validator.methods[k].call(this,h.value.replace(/\r/g,""),h,d.parameters);if("dependency-mismatch"==c)g=!0;else{g=!1;if("pending"==c){this.toHide=this.toHide.not(this.errorsFor(h));return}if(!c)return b||this.formatAndAdd(h,d),!1}}catch(f){throw f;}}if(!g)return this.objectLength(e)&&this.successList.push(h),!0},customMetaMessage:function(h,b){if(a.metadata){var e=
this.settings.meta?a(h).metadata()[this.settings.meta]:a(h).metadata();return e&&e.messages&&e.messages[b]}},customMessage:function(a,b){var e=this.settings.messages[a];return e&&(e.constructor==String?e:e[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(h,b){return this.findDefined(this.customMessage(h.name,b),this.customMetaMessage(h,b),!this.settings.ignoreTitle&&h.title||void 0,a.validator.messages[b],"\x3cstrong\x3eWarning: No message defined for "+
h.name+"\x3c/strong\x3e")},formatAndAdd:function(a,b){var e=this.defaultMessage(a,b.method),g=/\$?\{(\d+)\}/g;"function"==typeof e?e=e.call(this,b.parameters,a):g.test(e)&&(e=jQuery.format(e.replace(g,"{$1}"),b.parameters));this.errorList.push({message:e,element:a});this.errorMap[a.name]=e;this.submitted[a.name]=e},addWrapper:function(a){this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper)));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];
this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}this.errorList.length&&(this.toShow=this.toShow.add(this.containers));if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);
this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(h,b){var e=this.errorsFor(h);e.length?(e.removeClass(this.settings.validClass).addClass(this.settings.errorClass),e.attr("generated")&&e.html(b)):(e=a("\x3c"+this.settings.errorElement+"/\x3e").attr({"for":this.idOrName(h),generated:!0}).addClass(this.settings.errorClass).html(b||
""),this.settings.wrapper&&(e=e.hide().show().wrap("\x3c"+this.settings.wrapper+"/\x3e").parent()),this.labelContainer.append(e).length||(this.settings.errorPlacement?this.settings.errorPlacement(e,a(h)):e.insertAfter(h)));!b&&this.settings.success&&(e.text(""),"string"==typeof this.settings.success?e.addClass(this.settings.success):this.settings.success(e));this.toShow=this.toShow.add(e)},errorsFor:function(h){var b=this.idOrName(h);return this.errors().filter(function(){return a(this).attr("for")==
b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){this.checkable(a)&&(a=this.findByName(a.name).not(this.settings.ignore)[0]);return a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(h){var b=this.currentForm;return a(document.getElementsByName(h)).map(function(a,g){return g.form==b&&g.name==h&&g||null})},getLength:function(h,b){switch(b.nodeName.toLowerCase()){case "select":return a("option:selected",
b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return h.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a,b){return a},string:function(h,b){return!!a(h,b.form).length},"function":function(a,b){return a(b)}},optional:function(h){return!a.validator.methods.required.call(this,a.trim(h.value),h)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||
(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(h,b){this.pendingRequest--;0>this.pendingRequest&&(this.pendingRequest=0);delete this.pending[h.name];b&&0==this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!b&&0==this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(h){return a.data(h,"previousValue")||a.data(h,"previousValue",{old:null,
valid:!0,message:this.defaultMessage(h,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(h,b){h.constructor==String?this.classRuleSettings[h]=b:a.extend(this.classRuleSettings,h)},classRules:function(h){var b={};(h=a(h).attr("class"))&&a.each(h.split(" "),function(){this in a.validator.classRuleSettings&&
a.extend(b,a.validator.classRuleSettings[this])});return b},attributeRules:function(h){var b={};h=a(h);for(var e in a.validator.methods){var g;(g="required"===e&&"function"===typeof a.fn.prop?h.prop(e):h.attr(e))?b[e]=g:h[0].getAttribute("type")===e&&(b[e]=!0)}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(h){if(!a.metadata)return{};var b=a.data(h.form,"validator").settings.meta;return b?a(h).metadata()[b]:a(h).metadata()},staticRules:function(h){var b=
{},e=a.data(h.form,"validator");e.settings.rules&&(b=a.validator.normalizeRule(e.settings.rules[h.name])||{});return b},normalizeRules:function(h,b){a.each(h,function(e,g){if(!1===g)delete h[e];else if(g.param||g.depends){var k=!0;switch(typeof g.depends){case "string":k=!!a(g.depends,b.form).length;break;case "function":k=g.depends.call(b,b)}k?h[e]=void 0!==g.param?g.param:!0:delete h[e]}});a.each(h,function(e,g){h[e]=a.isFunction(g)?g(b):g});a.each(["minlength","maxlength","min","max"],function(){h[this]&&
(h[this]=Number(h[this]))});a.each(["rangelength","range"],function(){h[this]&&(h[this]=[Number(h[this][0]),Number(h[this][1])])});a.validator.autoCreateRanges&&(h.min&&h.max&&(h.range=[h.min,h.max],delete h.min,delete h.max),h.minlength&&h.maxlength&&(h.rangelength=[h.minlength,h.maxlength],delete h.minlength,delete h.maxlength));h.messages&&delete h.messages;return h},normalizeRule:function(h){if("string"==typeof h){var b={};a.each(h.split(/\s/),function(){b[this]=!0});h=b}return h},addMethod:function(h,
b,e){a.validator.methods[h]=b;a.validator.messages[h]=void 0!=e?e:a.validator.messages[h];3>b.length&&a.validator.addClassRules(h,a.validator.normalizeRule(h))},methods:{required:function(h,b,e){if(!this.depend(e,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(h=a(b).val())&&0<h.length;case "input":if(this.checkable(b))return 0<this.getLength(h,b);default:return 0<a.trim(h).length}},remote:function(h,b,e){if(this.optional(b))return"dependency-mismatch";var g=this.previousValue(b);
this.settings.messages[b.name]||(this.settings.messages[b.name]={});g.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=g.message;e="string"==typeof e&&{url:e}||e;if(this.pending[b.name])return"pending";if(g.old===h)return g.valid;g.old=h;var k=this;this.startRequest(b);var d={};d[b.name]=h;a.ajax(a.extend(!0,{url:e,mode:"abort",port:"validate"+b.name,dataType:"json",data:d,success:function(c){k.settings.messages[b.name].remote=g.originalMessage;var d=!0===
c;if(d){var e=k.formSubmitted;k.prepareElement(b);k.formSubmitted=e;k.successList.push(b);k.showErrors()}else e={},c=c||k.defaultMessage(b,"remote"),e[b.name]=g.message=a.isFunction(c)?c(h):c,k.showErrors(e);g.valid=d;k.stopRequest(b,d)}},e));return"pending"},minlength:function(h,b,e){return this.optional(b)||this.getLength(a.trim(h),b)>=e},maxlength:function(h,b,e){return this.optional(b)||this.getLength(a.trim(h),b)<=e},rangelength:function(h,b,e){h=this.getLength(a.trim(h),b);return this.optional(b)||
h>=e[0]&&h<=e[1]},min:function(a,b,e){return this.optional(b)||a>=e},max:function(a,b,e){return this.optional(b)||a<=e},range:function(a,b,e){return this.optional(b)||a>=e[0]&&a<=e[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a)},
url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},
date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 -]+/.test(a))return!1;var e=0,g=0,k=!1;a=a.replace(/\D/g,"");for(var d=a.length-1;0<=d;d--)g=
a.charAt(d),g=parseInt(g,10),k&&9<(g*=2)&&(g-=9),e+=g,k=!k;return 0==e%10},accept:function(a,b,e){e="string"==typeof e?e.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(new RegExp(".("+e+")$","i"))},equalTo:function(h,b,e){e=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()});return h==e.val()}}});a.format=a.validator.format})(jQuery);
(function(a){var h={};if(a.ajaxPrefilter)a.ajaxPrefilter(function(a,b,k){b=a.port;"abort"==a.mode&&(h[b]&&h[b].abort(),h[b]=k)});else{var b=a.ajax;a.ajax=function(e){var g=("port"in e?e:a.ajaxSettings).port;return"abort"==("mode"in e?e:a.ajaxSettings).mode?(h[g]&&h[g].abort(),h[g]=b.apply(this,arguments)):b.apply(this,arguments)}}})(jQuery);
(function(a){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||a.each({focus:"focusin",blur:"focusout"},function(h,b){function e(e){e=a.event.fix(e);e.type=b;return a.event.handle.call(this,e)}a.event.special[b]={setup:function(){this.addEventListener(h,e,!0)},teardown:function(){this.removeEventListener(h,e,!0)},handler:function(e){arguments[0]=a.event.fix(e);arguments[0].type=b;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{validateDelegate:function(h,
b,e){return this.bind(b,function(b){var k=a(b.target);if(k.is(h))return e.apply(k,arguments)})}})})(jQuery);(function(a){var h=" qwertyuiopasdfghjklzxcvbnm QWERTYUIOPASDFGHJKLZXCVBNM абвгдеёжзийклмнопрстуфхцчшщъыьэюя АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ 0123456789".split(" "),b={rate:0,rates:[],indicator:null,status:null};a.validator.addMethod("complexity",function(e,g,k){k=a.extend(!0,{},b,k||{});var d,c;if(0==e.length)e=0;else if(/[А-я]/.test(e)||!/(?=[-_a-zA-Z0-9]*?[a-zA-Z])(?=[-_a-zA-Z0-9]*?[0-9])/.test(e))e=0;else{d=100-(100-100*e.length/8);if(e==e.toUpperCase()||e==e.toLowerCase())d-=10;c=e.split("");
var f=[],m,p;for(m=0;m<c.length;m+=1){for(p=m+1;p<c.length;p+=1)c[m]===c[p]&&(p=++m);f.push(c[m])}d-=120/f.length;c=e.split("");e=[];for(f=0;f<h.length;f++)e[f]=0;for(f=0;f<c.length;f++){p=!1;for(m=0;m<h.length;m++){if(-1!=h[m].indexOf(c[f])){e[m]+=1;break}p=!0}p&&(e[0]+=1)}for(c=0;c<e.length;c++)0==e[c]&&(d-=3);f=c=!1;for(m=0;m<e.length;m++)0!=e[m]&&h[m]&&(0<h[m].indexOf("1")?c=!0:f=!0);d-=40*(c?f||0<e[0]?0:1:0);e=d=Math.round(Math.min(100,Math.max(0,d)))}d=k.indicator?a(k.indicator,g.form):a();
g=k.status?a(k.status,g.form):a();d.width(e+"%");for(c=0;c<k.rates.length;c++)d.removeClass(k.rates[c].className),g.removeClass(k.rates[c].className);f=null;for(c=0;c<k.rates.length;c++)e>k.rates[c].value||null!=f&&k.rates[c].value>=k.rates[f].value||(f=c);null!=f&&(d.addClass(k.rates[f].className),g.addClass(k.rates[f].className),k.rates[f].status&&g.html(k.rates[f].status));return e>k.rate},"Please enter a more complex value.")})(jQuery);(function(a){a.validator.addMethod("error",function(a,b,e){return this.optional(b)?!0:!e},"Error.")})(jQuery);(function(a){a.validator.addMethod("notequals",function(h,b,e){return this.optional(b)||-1==a.inArray(parseFloat(h),e)},"Please enter a valid value.")})(jQuery);(function(a){a.validator.addMethod("passworded",function(a,b,e){return this.optional(b)||/(?=[-_a-zA-Z0-9]*?[A-Z])(?=[-_a-zA-Z0-9]*?[a-z])(?=[-_a-zA-Z0-9]*?[0-9])/.test(a)},"Please enter a value witch contains at least one upper-case letter, one lower-case and one number.")})(jQuery);(function(a){a.validator.addMethod("regexp",function(a,b,e){return this.optional(b)||(new RegExp(e)).test(a)},"Please enter a valid value.")})(jQuery);(function(a){a.validator.addMethod("registered",function(h,b,e){clearTimeout(arguments.callee.timeout);if(this.optional(b)||!e.check)return!0;var g=this.previousValue(b);if(g.old===h)return g.valid;g.valid=!1;arguments.callee.timeout=setTimeout(function(){var k={};k[e.name]=h;a.ajax({url:e.url,type:"post",mode:"abort",port:"validate"+b.name,dataType:"json",data:k,success:function(d){if(!a.isPlainObject(d)||a.isNullOrUndefined(d.data))window.location.href=window.location.href;g.old=h;g.valid=d.data;
a(b).valid()}})},e.timeout||500);return g.valid},"Account is not registered.")})(jQuery);(function(a){a.validator.addMethod("inn",function(a,b,e){if(this.optional(b))return!0;a=a.replace(/[^\d]/g,"").split("");for(b=0;b<a.length;b+=1)a[b]=parseInt(a[b],10);e=[2,4,10,3,5,9,4,6,8];if(10==a.length){var g=0;for(b=0;b<e.length;b+=1)g+=a[b]*e[b];return a[9]==g%11%10}if(12==a.length){e.unshift(7);for(b=g=0;b<e.length;b+=1)g+=a[b]*e[b];e.unshift(3);var k=0;for(b=0;b<e.length;b+=1)k+=a[b]*e[b];return a[10]==g%11%10&&a[11]==k%11%10}return!1},"Please enter a valid value.")})(jQuery);(function(a){a.validator.addMethod("snils",function(a,b,e){if(this.optional(b))return!0;a=a.replace(/[^\d]/g,"").split("");if(11!=a.length)return!1;for(b=0;b<a.length;b+=1)a[b]=parseInt(a[b],10);e=a.slice(-2).join("");var g=0;for(b=0;9>b;b+=1)g+=a[b]*(9-b);return 100>g&&g==e||(100==g||101==g)&&0==e||101<g&&(g%101==e||100==g%101&&0==e)?!0:!1},"Please enter a valid value.")})(jQuery);(function(a){a.validator.addMethod("passport",function(a,b,e){if(this.optional(b))return!0;a=a.replace(/[^\d]/g,"").split("");for(b=0;b<a.length;b+=1)a[b]=parseInt(a[b],10);for(var g=e=b=1;b<a.length;b+=1,e+=1,g+=1){if(6==e||6==g)return!1;a[b]!=a[b-1]+1&&(e=0);a[b]!=a[b-1]&&(g=0)}return!0},"Please enter a valid value.")})(jQuery);(function(a){a.validator.addMethod("agerange",function(h,b,e){if(this.optional(b))return!0;h=a(b).next().datepicker("getDate");if(null==h)return!1;h=(new Date-h)/1E3/60/60/24/365.25;return h<e[0]||h>e[1]?!1:!0},"Please enter a valid value.")})(jQuery);window.Modernizr=function(a,h,b){function e(a,c){for(var d in a){var e=a[d];if(!~(""+e).indexOf("-")&&f[e]!==b)return"pfx"==c?e:!0}return!1}function g(a,c,d){var f=a.charAt(0).toUpperCase()+a.slice(1),h=(a+" "+p.join(f+" ")+f).split(" ");if("string"===typeof c||"undefined"===typeof c)return e(h,c);h=(a+" "+t.join(f+" ")+f).split(" ");a:{a=h;for(var g in a)if(f=c[a[g]],f!==b){c=!1===d?a[g]:"function"===typeof f?f.bind(d||c):f;break a}c=!1}return c}var k={},d=h.documentElement,c=h.createElement("modernizr"),
f=c.style,m=" -webkit- -moz- -o- -ms- ".split(" "),p=["Webkit","Moz","O","ms"],t=["webkit","moz","o","ms"],c={},A=["js"],q=A.slice,n,r=function(a,b,c,e){var f,g,m=h.createElement("div"),k=h.body,n=k||h.createElement("body");if(parseInt(c,10))for(;c--;)f=h.createElement("div"),f.id=e?e[c]:"modernizr"+(c+1),m.appendChild(f);c=['\x26#173;\x3cstyle id\x3d"smodernizr"\x3e',a,"\x3c/style\x3e"].join("");m.id="modernizr";(k?m:n).innerHTML+=c;n.appendChild(m);k||(n.style.background="",n.style.overflow="hidden",
g=d.style.overflow,d.style.overflow="hidden",d.appendChild(n));a=b(m,a);k?m.parentNode.removeChild(m):(n.parentNode.removeChild(n),d.style.overflow=g);return!!a},u=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(c,d){d=d||h.createElement(a[c]||"div");c="on"+c;var e=c in d;e||(d.setAttribute||(d=h.createElement("div")),d.setAttribute&&d.removeAttribute&&(d.setAttribute(c,""),e="function"===typeof d[c],"undefined"!==typeof d[c]&&
(d[c]=b),d.removeAttribute(c)));return e}}(),x={}.hasOwnProperty,B;B="undefined"!==typeof x&&"undefined"!==typeof x.call?function(a,b){return x.call(a,b)}:function(a,b){return b in a&&"undefined"===typeof a.constructor.prototype[b]};Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=q.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var e=new e,f=b.apply(e,c.concat(q.call(arguments)));
return Object(f)===f?f:e}return b.apply(a,c.concat(q.call(arguments)))};return d});n=function(){for(var a=3,b=h.createElement("b"),c=b.all||[];b.innerHTML="\x3c!--[if gt IE "+ ++a+"]\x3e\x3ci\x3e\x3c![endif]--\x3e",c[0];);return 4<a?a:h.documentMode}();"undefined"!==typeof n&&(c.ie=function(){return!0},c["ie"+n]=function(){return!0});c.touch=function(){var b;"ontouchstart"in a||a.DocumentTouch&&h instanceof DocumentTouch?b=!0:r(["@media (",m.join("touch-enabled),("),"modernizr){#modernizr{top:9px;position:absolute}}"].join(""),
function(a){b=9===a.offsetTop});return b};for(var y in c)B(c,y)&&(n=y.toLowerCase(),k[n]=c[y](),A.push((k[n]?"":"no-")+n));k.addTest=function(a,c){if("object"==typeof a)for(var e in a)B(a,e)&&k.addTest(e,a[e]);else{a=a.toLowerCase();if(k[a]!==b)return k;c="function"==typeof c?c():c;d.className+=" "+(c?"":"no-")+a;k[a]=c}return k};f.cssText="";c=null;k._version="2.8.3";k._prefixes=m;k._domPrefixes=t;k._cssomPrefixes=p;k.hasEvent=u;k.testProp=function(a){return e([a])};k.testAllProps=g;k.testStyles=
r;k.prefixed=function(a,b,c){return b?g(a,b,c):g(a,"pfx")};d.className=d.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+A.join(" ");return k}(this,this.document);(function(a){function h(a,d){var g,k,r,p;if(!(this instanceof h))return new h(a,d);if(a instanceof h)if(y=0,d!==g)a+="";else{this.s=a.s;this.e=a.e;this.c=(a=a.c)?a.slice():a;return}"string"!=typeof a&&(a=(r="number"==typeof a||"[object Number]"==Object.prototype.toString.call(a))&&0===a&&0>1/a?"-0":a+"");p=a;if(d===g&&w.test(a))this.s="-"==a.charAt(0)?(a=a.slice(1),-1):1;else{if(10==d)return c(a,f,m);a=G.call(a).replace(/^\+(?!-)/,"");this.s="-"==a.charAt(0)?(a=a.replace(/^-(?!-)/,""),-1):1;null!=
d?d!=(d|0)&&n||(B=!(2<=d&&65>d))?(b(d,2),g=w.test(a)):(g="["+x.slice(0,d|=0)+"]+",a=a.replace(/\.$/,"").replace(/^\./,"0."),(g=(new RegExp("^"+g+"(?:\\."+g+")?$",37>d?"i":"")).test(a))?(r&&(15<a.replace(/^0\.0*|\./,"").length&&b(p,0),r=!r),a=e(a,10,d,this.s)):"Infinity"!=a&&"NaN"!=a&&(b(p,1,d),a="NaN")):g=w.test(a);if(!g){this.c=this.e=null;"Infinity"!=a&&("NaN"!=a&&b(p,3),this.s=null);y=0;return}}-1<(g=a.indexOf("."))&&(a=a.replace(".",""));0<(k=a.search(/e/i))?(0>g&&(g=k),g+=+a.slice(k+1),a=a.substring(0,
k)):0>g&&(g=a.length);for(k=0;"0"==a.charAt(k);k++);d=a.length;r&&15<d&&15<a.slice(k).length&&b(p,0);y=0;if((g-=k+1)>q)this.c=this.e=null;else if(k==d||g<A)this.c=[this.e=0];else{for(;"0"==a.charAt(--d););this.e=g;this.c=[];for(g=0;k<=d;this.c[g++]=+a.charAt(k++));}}function b(a,b,c,d,e,f){if(n){var h="new BigNumber;cmp;div;eq;gt;gte;lt;lte;minus;mod;plus;times;toFr".split(";")[y?0>y?-y:y:0>1/y?1:0]+"()";e=B?" out of range":" not a"+(e?" non-zero":"n")+" integer";e=([h+" number type has more than 15 significant digits",
h+" not a base "+c+" number",h+" base"+e,h+" not a number"][b]||c+"() "+b+(f?" not a boolean or binary digit":e+(d?" or not ["+(B?" negative, positive":" integer, integer")+" ]":"")))+": "+a;B=y=0;a=Error(e);a.name="BigNumber Error";throw a;}}function e(a,b,c,d){function e(a,d){var f,h=0,g=a.length,m,k=[0];for(d=d||c;h<g;h++){m=k.length;for(f=0;f<m;k[f]*=d,f++);k[0]+=x.indexOf(a.charAt(h));for(f=0;f<k.length;f++)k[f]>b-1&&(null==k[f+1]&&(k[f+1]=0),k[f+1]+=k[f]/b^0,k[f]%=b)}return k.reverse()}function f(a){for(var b=
0,c=a.length,d="";b<c;d+=x.charAt(a[b++]));return d}var m,k;37>c&&(a=a.toLowerCase());if(-1<(m=a.indexOf(".")))if(m=a.length-m-1,m=e((new h(c)).pow(m).toF(),10),a=a.split("."),k=e(a[1]),a=e(a[0]),m=g(k,m,k.length-m.length,d,b,a[a.length-1]&1),d=m.c,m=m.e){for(;++m;d.unshift(0));a=f(a)+"."+f(d)}else d[0]?a[m=a.length-1]<b-1?(++a[m],a=f(a)):a=(new h(f(a),b)).plus(F).toS(b):a=f(a);else a=f(e(a));return a}function g(a,b,c,e,g,m){var k,n,r,p,t=b.slice(),u=k=b.length,x=a.length,w=a.slice(0,k),y=w.length,
B=new h(F),G=B.c=[],z=0,ga=f+(B.e=c)+1;B.s=e;for(e=0>ga?0:ga;y++<k;w.push(0));t.unshift(0);do{for(n=0;n<g;n++){if(k!=(y=w.length))r=k>y?1:-1;else for(p=-1,r=0;++p<k;)if(b[p]!=w[p]){r=b[p]>w[p]?1:-1;break}if(0>r){for(c=y==k?b:t;y;){if(w[--y]<c[y]){for(p=y;p&&!w[--p];w[p]=g-1);--w[p];w[y]+=g}w[y]-=c[y]}for(;!w[0];w.shift());}else break}G[z++]=r?n:++n;w[0]&&r?w[y]=a[u]||0:w=[a[u]]}while((u++<x||null!=w[0])&&e--);G[0]||1==z||(--B.e,G.shift());z>ga&&d(B,f,g,m,null!=w[0]);B.e>q?B.c=B.e=null:B.e<A&&(B.c=
[B.e=0]);return B}function k(a,b,c){var e=b-(a=new h(a)).e,f=a.c;if(!f)return a.toS();f.length>++b&&d(a,e,10);for(e=0==f[0]?e+1:c?b:a.e+e+1;f.length<e;f.push(0));e=a.e;return 1==c||2==c&&(--b<e||e<=p)?(0>a.s&&f[0]?"-":"")+(1<f.length?(f.splice(1,0,"."),f.join("")):f[0])+(0>e?"e":"e+")+e:a.toS()}function d(a,b,c,d,e){var f=a.c,h=0>a.s,g=c/2,k=a.e+b+1,n=f[k];e=e||0>k||null!=f[k+1];e=4>m?(null!=n||e)&&(0==m||2==m&&!h||3==m&&h):n>g||n==g&&(4==m||e||6==m&&(f[k-1]&1||!b&&d)||7==m&&!h||8==m&&h);if(1>k||
!f[0])return f.length=0,f.push(0),e?(f[0]=1,a.e=-b):a.e=0,a;f.length=k--;if(e)for(--c;++f[k]>c;)f[k]=0,k--||(++a.e,f.unshift(1));for(k=f.length;!f[--k];f.pop());return a}function c(a,b,c){var e=m;m=c;a=new h(a);a.c&&d(a,b,10);m=e;return a}var f=20,m=4,p=-7,t=21,A=-1E9,q=1E9,n=!0,r=parseInt,u=h.prototype,x="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",B,y=0,w=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,G=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},F=h(1);
h.ROUND_UP=0;h.ROUND_DOWN=1;h.ROUND_CEIL=2;h.ROUND_FLOOR=3;h.ROUND_HALF_UP=4;h.ROUND_HALF_DOWN=5;h.ROUND_HALF_EVEN=6;h.ROUND_HALF_CEIL=7;h.ROUND_HALF_FLOOR=8;h.config=function(){var a,c,d=0,e={},h=arguments,g=h[0],k=function(a,b,c){return!((B=a<b||a>c)||r(a)!=a&&0!==a)},u=g&&"object"==typeof g?function(){if(g.hasOwnProperty(c))return null!=(a=g[c])}:function(){if(h.length>d)return null!=(a=h[d++])};u(c="DECIMAL_PLACES")&&(k(a,0,1E9)?f=a|0:b(a,c,"config"));e[c]=f;u(c="ROUNDING_MODE")&&(k(a,0,8)?m=
a|0:b(a,c,"config"));e[c]=m;u(c="EXPONENTIAL_AT")&&(k(a,-1E9,1E9)?p=-(t=~~(0>a?-a:+a)):!B&&a&&k(a[0],-1E9,0)&&k(a[1],0,1E9)?(p=~~a[0],t=~~a[1]):b(a,c,"config",1));e[c]=[p,t];u(c="RANGE")&&(k(a,-1E9,1E9)&&~~a?A=-(q=~~(0>a?-a:+a)):!B&&a&&k(a[0],-1E9,-1)&&k(a[1],1,1E9)?(A=~~a[0],q=~~a[1]):b(a,c,"config",1,1));e[c]=[A,q];u(c="ERRORS")&&(a===!!a||1===a||0===a?r=(B=y=0,n=!!a)?parseInt:parseFloat:b(a,c,"config",0,0,1));e[c]=n;return e};u.abs=u.absoluteValue=function(){var a=new h(this);0>a.s&&(a.s=1);return a};
u.ceil=function(){return c(this,0,2)};u.comparedTo=u.cmp=function(a,b){var c,d=this.c,e=(y=-y,a=new h(a,b)).c,f=this.s,g=a.s,k=this.e,m=a.e;if(!f||!g)return null;c=d&&!d[0];b=e&&!e[0];if(c||b)return c?b?0:-g:f;if(f!=g)return f;if(c=0>f,b=k==m,!d||!e)return b?0:!d^c?1:-1;if(!b)return k>m^c?1:-1;f=-1;for(g=(k=d.length)<(m=e.length)?k:m;++f<g;)if(d[f]!=e[f])return d[f]>e[f]^c?1:-1;return k==m?0:k>m^c?1:-1};u.decimalPlaces=u.dp=function(){var a;return this.c?(a=this.c.length-this.e-1,0>a?0:a):null};u.dividedBy=
u.div=function(a,b){var c=this.c,d=this.e,e=this.s,f=(y=2,a=new h(a,b)).c,k=a.e,m=a.s,n=e==m?1:-1;return(d||c&&c[0])&&(k||f&&f[0])?g(c,f,d-k,n,10):new h(e&&m&&(c?!f||c[0]!=f[0]:f)?c&&0==c[0]||!f?0*n:n/0:NaN)};u.equals=u.eq=function(a,b){y=3;return 0===this.cmp(a,b)};u.floor=function(){return c(this,0,3)};u.greaterThan=u.gt=function(a,b){y=4;return 0<this.cmp(a,b)};u.greaterThanOrEqualTo=u.gte=function(a,b){y=5;return 1==(b=this.cmp(a,b))||0===b};u.isFinite=u.isF=function(){return!!this.c};u.isNaN=
function(){return!this.s};u.isNegative=u.isNeg=function(){return 0>this.s};u.isZero=u.isZ=function(){return!!this.c&&0==this.c[0]};u.lessThan=u.lt=function(a,b){y=6;return 0>this.cmp(a,b)};u.lessThanOrEqualTo=u.lte=function(a,b){y=7;return-1==(b=this.cmp(a,b))||0===b};u.minus=function(a,b){var c,d,e=this.s;b=(y=8,a=new h(a,b)).s;if(!e||!b)return new h(NaN);if(e!=b)return a.s=-b,this.plus(a);var f=this.c;c=this.e;var g=a.c,k=a.e;if(!c||!k){if(!f||!g)return f?(a.s=-b,a):new h(g?this:NaN);if(!f[0]||
!g[0])return g[0]?(a.s=-b,a):new h(f[0]?this:3==m?-0:0)}if(f=f.slice(),e=c-k){c=(d=0>e)?(e=-e,f):(k=c,g);c.reverse();for(b=e;b--;c.push(0));c.reverse()}else for(c=((d=f.length<g.length)?f:g).length,e=b=0;b<c;b++)if(f[b]!=g[b]){d=f[b]<g[b];break}d&&(c=f,f=g,g=c,a.s=-a.s);if(0<(b=-((c=f.length)-g.length)))for(;b--;f[c++]=0);for(b=g.length;b>e;){if(f[--b]<g[b]){for(d=b;d&&!f[--d];f[d]=9);--f[d];f[b]+=10}f[b]-=g[b]}for(;0==f[--c];f.pop());for(;0==f[0];f.shift(),--k);if(k<A||!f[0])f[0]||(a.s=3==m?-1:1),
f=[k=0];return a.c=f,a.e=k,a};u.modulo=u.mod=function(a,b){var c=this,d=c.c,e=(y=9,a=new h(a,b)).c,g=c.s,k=a.s;if((b=!g||!k||e&&!e[0])||d&&!d[0])return new h(b?NaN:c);c.s=a.s=1;b=1==a.cmp(c);c.s=g;a.s=k;return b?new h(c):(g=f,k=m,f=0,m=1,c=c.div(a),f=g,m=k,this.minus(c.times(a)))};u.negated=u.neg=function(){var a=new h(this);return a.s=-a.s||null,a};u.plus=function(a,b){var c,d=this.s;b=(y=10,a=new h(a,b)).s;if(!d||!b)return new h(NaN);if(d!=b)return a.s=-b,this.minus(a);c=this.e;var e=this.c,f=a.e,
g=a.c;if(!c||!f){if(!e||!g)return new h(d/0);if(!e[0]||!g[0])return g[0]?a:new h(e[0]?this:0*d)}if(e=e.slice(),d=c-f){c=0<d?(f=c,g):(d=-d,e);for(c.reverse();d--;c.push(0));c.reverse()}0>e.length-g.length&&(c=g,g=e,e=c);d=g.length;for(b=0;d;b=(e[--d]=e[d]+g[d]+b)/10^0,e[d]%=10);b&&(e.unshift(b),++f>q&&(e=f=null));for(d=e.length;0==e[--d];e.pop());return a.c=e,a.e=f,a};u.toPower=u.pow=function(a){var c=0==0*a?a|0:a,d=new h(this),e=new h(F);if(((B=-1E6>a||1E6<a)&&(c=1*a/0)||r(a)!=a&&0!==a&&!(c=NaN))&&
!b(a,"exponent","pow")||!c)return new h(Math.pow(d.toS(),c));for(c=0>c?-c:c;;){c&1&&(e=e.times(d));c>>=1;if(!c)break;d=d.times(d)}return 0>a?F.div(e):e};u.round=function(a,d){a=null==a||((B=0>a||1E9<a)||r(a)!=a)&&!b(a,"decimal places","round")?0:a|0;d=null==d||((B=0>d||8<d)||r(d)!=d&&0!==d)&&!b(d,"mode","round")?m:d|0;return c(this,a,d)};u.squareRoot=u.sqrt=function(){var a,b,c,e;e=this.c;var g=this.s,k=this.e,n=f,q=m,r=new h("0.5");if(1!==g||!e||!e[0])return new h(!g||0>g&&(!e||e[0])?NaN:e?this:
1/0);g=Math.sqrt(this.toS());m=1;0==g||g==1/0?(a=e.join(""),a.length+k&1||(a+="0"),b=new h(Math.sqrt(a)+""),b.c||(b.c=[1]),b.e=((k+1)/2|0)-(0>k||k&1)):b=new h(a=g.toString());c=b.e;g=c+(f+=4);3>g&&(g=0);for(k=g;;)if(e=b,b=r.times(e.plus(this.div(e))),e.c.slice(0,g).join("")===b.c.slice(0,g).join(""))if(e=b.c,g-=a&&b.e<c,9==e[g]&&9==e[g-1]&&9==e[g-2]&&(9==e[g-3]||a&&4==e[g-3])){if(a&&9==e[g-3]&&(e=b.round(n,0),e.times(e).eq(this)))return m=q,f=n,e;f+=4;g+=4;a=""}else{if(!(e[k]||e[k-1]||e[k-2]||e[k-
3]&&5!=e[k-3]||(e.length>k-2&&(e.length=k-2),b.times(b).eq(this)))){for(;e.length<k-3;)e.push(0);e[k-3]++}m=q;d(b,f=n,10);return b}};u.times=function(a,b){var c,d=this.c,e=(y=11,a=new h(a,b)).c,f=this.e,g=a.e,k=this.s;a.s=k==(b=a.s)?1:-1;if(!(f||d&&d[0])||!(g||e&&e[0]))return new h(!k||!b||d&&!d[0]&&!e||e&&!e[0]&&!d?NaN:d&&e?0*a.s:a.s/0);a.e=f+g;(k=d.length)<(b=e.length)&&(c=d,d=e,e=c,g=k,k=b,b=g);g=k+b;for(c=[];g--;c.push(0));for(f=b-1;-1<f;f--){b=0;for(g=k+f;g>f;b=c[g]+e[f]*d[g-f-1]+b,c[g--]=b%
10|0,b=b/10|0);b&&(c[g]=(c[g]+b)%10)}b&&++a.e;!c[0]&&c.shift();for(g=c.length;!c[--g];c.pop());a.c=a.e>q?a.e=null:a.e<A?[a.e=0]:c;return a};u.toExponential=u.toE=function(a){return k(this,(null==a||((B=0>a||1E9<a)||r(a)!=a&&0!==a)&&!b(a,"decimal places","toE"))&&this.c?this.c.length-1:a|0,1)};u.toFixed=u.toF=function(a){var c,d,e;null==a||((B=0>a||1E9<a)||r(a)!=a&&0!==a)&&!b(a,"decimal places","toF")||(e=this.e+(a|0));c=p;a=t;p=-(t=1/0);e==d?d=this.toS():(d=k(this,e),0>this.s&&this.c&&(this.c[0]?
0>d.indexOf("-")&&(d="-"+d):d=d.replace(/^-/,"")));p=c;t=a;return d};u.toFraction=u.toFr=function(a){var c,d,e,g,k,r,p=e=new h(F),A=d=new h("0");c=this.c;var t=q,u=f,x=m,w=new h(F);if(!c)return this.toS();r=w.e=c.length-this.e-1;if(null==a||(!(y=12,k=new h(a)).s||(B=0>k.cmp(p)||!k.c)||n&&k.e<k.c.length-1)&&!b(a,"max denominator","toFr")||0<(a=k).cmp(w))a=0<r?w:p;q=1/0;k=new h(c.join(""));f=0;for(m=1;;){c=k.div(w);g=e.plus(c.times(A));if(1==g.cmp(a))break;e=A;A=g;p=d.plus(c.times(g=p));d=g;w=k.minus(c.times(g=
w));k=g}g=a.minus(e).div(A);d=d.plus(g.times(p));e=e.plus(g.times(A));d.s=p.s=this.s;f=2*r;m=x;a=1>p.div(A).minus(this).abs().cmp(d.div(e).minus(this).abs())?[p.toS(),A.toS()]:[d.toS(),e.toS()];return q=t,f=u,a};u.toPrecision=u.toP=function(a){return null==a||((B=1>a||1E9<a)||r(a)!=a)&&!b(a,"precision","toP")?this.toS():k(this,--a|0,2)};u.toString=u.toS=function(a){var c,d,f,h=this.e;if(null===h)d=this.s?"Infinity":"NaN";else{if(a===c&&(h<=p||h>=t))return k(this,this.c.length-1,1);d=this.c.join("");
if(0>h){for(;++h;d="0"+d);d="0."+d}else if(f=d.length,0<h)if(++h>f)for(h-=f;h--;d+="0");else h<f&&(d=d.slice(0,h)+"."+d.slice(h));else if(c=d.charAt(0),1<f)d=c+"."+d.slice(1);else if("0"==c)return c;if(null!=a)if((B=!(2<=a&&65>a))||a!=(a|0)&&n)b(a,"base","toS");else if(d=e(d,a|0,10,this.s),"0"==d)return d}return 0>this.s?"-"+d:d};u.toNumber=u.toN=function(){return+this||(this.s?0*this.s:NaN)};u.valueOf=u.toJSON=function(){return this.toS()};"undefined"!==typeof module&&module.exports?module.exports=
h:"function"==typeof define&&define.amd?define(function(){return h}):a.BigNumber=h})(this);(function(){function a(a){this.tokens=[];this.tokens.links={};this.options=a||m.defaults;this.rules=p.normal;this.options.gfm&&(this.rules=this.options.tables?p.tables:p.gfm)}function h(a,c){this.options=c||m.defaults;this.links=a;this.rules=t.normal;this.renderer=this.options.renderer||new b;this.renderer.options=this.options;if(!this.links)throw Error("Tokens array requires a `links` property.");this.options.gfm?this.rules=this.options.breaks?t.breaks:t.gfm:this.options.pedantic&&(this.rules=t.pedantic)}
function b(a){this.options=a||{}}function e(a){this.tokens=[];this.token=null;this.options=a||m.defaults;this.options.renderer=this.options.renderer||new b;this.renderer=this.options.renderer;this.renderer.options=this.options}function g(a,b){return a.replace(b?/&/g:/&(?!#?\w+;)/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#39;")}function k(a){return a.replace(/&([#\w]+);/g,function(a,b){b=b.toLowerCase();return"colon"===b?":":"#"===b.charAt(0)?
"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}function d(a,b){a=a.source;b=b||"";return function r(c,d){if(!c)return new RegExp(a,b);d=d.source||d;d=d.replace(/(^|[^\[])\^/g,"$1");a=a.replace(c,d);return r}}function c(){}function f(a){for(var b=1,c,d;b<arguments.length;b++)for(d in c=arguments[b],c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a}function m(b,c,d){if(d||"function"===typeof c){d||(d=c,c=null);c=f({},m.defaults,
c||{});var h=c.highlight,k,p,t=0;try{k=a.lex(b,c)}catch(y){return d(y)}p=k.length;var w=function(a){if(a)return c.highlight=h,d(a);var b;try{b=e.parse(k,c)}catch(f){a=f}c.highlight=h;return a?d(a):d(null,b)};if(!h||3>h.length)return w();delete c.highlight;if(!p)return w();for(;t<k.length;t++)(function(a){return"code"!==a.type?--p||w():h(a.text,a.lang,function(b,c){if(b)return w(b);if(null==c||c===a.text)return--p||w();a.text=c;a.escaped=!0;--p||w()})})(k[t])}else try{return c&&(c=f({},m.defaults,
c)),e.parse(a.lex(b,c),c)}catch(G){G.message+="\nPlease report this to https://github.com/chjj/marked.";if((c||m.defaults).silent)return"\x3cp\x3eAn error occured:\x3c/p\x3e\x3cpre\x3e"+g(G.message+"",!0)+"\x3c/pre\x3e";throw G;}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:c,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:c,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:c,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};p.item=d(p.item,"gm")(/bull/g,p.bullet)();p.list=d(p.list)(/bull/g,p.bullet)("hr","\\n+(?\x3d\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?\x3d"+p.def.source+")")();p.blockquote=
d(p.blockquote)("def",p.def)();p._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";p.html=d(p.html)("comment",/\x3c!--[\s\S]*?--\x3e/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,p._tag)();p.paragraph=d(p.paragraph)("hr",p.hr)("heading",p.heading)("lheading",p.lheading)("blockquote",p.blockquote)("tag","\x3c"+p._tag)("def",p.def)();p.normal=
f({},p);p.gfm=f({},p.normal,{fences:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/});p.gfm.paragraph=d(p.paragraph)("(?!","(?!"+p.gfm.fences.source.replace("\\1","\\2")+"|"+p.list.source.replace("\\1","\\3")+"|")();p.tables=f({},p.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});a.rules=p;a.lex=function(b,c){return(new a(c)).lex(b)};a.prototype.lex=function(a){a=a.replace(/\r\n|\r/g,
"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(a,!0)};a.prototype.token=function(a,b,c){a=a.replace(/^ +$/gm,"");for(var d,e,f,h,g,k,m;a;){if(f=this.rules.newline.exec(a))a=a.substring(f[0].length),1<f[0].length&&this.tokens.push({type:"space"});if(f=this.rules.code.exec(a))a=a.substring(f[0].length),f=f[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?f:f.replace(/\n+$/,"")});else if(f=this.rules.fences.exec(a))a=a.substring(f[0].length),
this.tokens.push({type:"code",lang:f[2],text:f[3]});else if(f=this.rules.heading.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"heading",depth:f[1].length,text:f[2]});else if(b&&(f=this.rules.nptable.exec(a))){a=a.substring(f[0].length);g={type:"table",header:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/\n$/,"").split("\n")};for(k=0;k<g.align.length;k++)/^ *-+: *$/.test(g.align[k])?g.align[k]="right":/^ *:-+: *$/.test(g.align[k])?
g.align[k]="center":/^ *:-+ *$/.test(g.align[k])?g.align[k]="left":g.align[k]=null;for(k=0;k<g.cells.length;k++)g.cells[k]=g.cells[k].split(/ *\| */);this.tokens.push(g)}else if(f=this.rules.lheading.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"heading",depth:"\x3d"===f[2]?1:2,text:f[1]});else if(f=this.rules.hr.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"hr"});else if(f=this.rules.blockquote.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"blockquote_start"}),
f=f[0].replace(/^ *> ?/gm,""),this.token(f,b,!0),this.tokens.push({type:"blockquote_end"});else if(f=this.rules.list.exec(a)){a=a.substring(f[0].length);h=f[2];this.tokens.push({type:"list_start",ordered:1<h.length});f=f[0].match(this.rules.item);d=!1;m=f.length;for(k=0;k<m;k++)g=f[k],e=g.length,g=g.replace(/^ *([*+-]|\d+\.) +/,""),~g.indexOf("\n ")&&(e-=g.length,g=this.options.pedantic?g.replace(/^ {1,4}/gm,""):g.replace(new RegExp("^ {1,"+e+"}","gm"),"")),this.options.smartLists&&k!==m-1&&(e=p.bullet.exec(f[k+
1])[0],h===e||1<h.length&&1<e.length||(a=f.slice(k+1).join("\n")+a,k=m-1)),e=d||/\n\n(?!\s*$)/.test(g),k!==m-1&&(d="\n"===g.charAt(g.length-1),e||(e=d)),this.tokens.push({type:e?"loose_item_start":"list_item_start"}),this.token(g,!1,c),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(f=this.rules.html.exec(a))a=a.substring(f[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:"pre"===f[1]||"script"===f[1]||"style"===f[1],text:f[0]});else if(!c&&
b&&(f=this.rules.def.exec(a)))a=a.substring(f[0].length),this.tokens.links[f[1].toLowerCase()]={href:f[2],title:f[3]};else if(b&&(f=this.rules.table.exec(a))){a=a.substring(f[0].length);g={type:"table",header:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(k=0;k<g.align.length;k++)/^ *-+: *$/.test(g.align[k])?g.align[k]="right":/^ *:-+: *$/.test(g.align[k])?g.align[k]="center":/^ *:-+ *$/.test(g.align[k])?
g.align[k]="left":g.align[k]=null;for(k=0;k<g.cells.length;k++)g.cells[k]=g.cells[k].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(g)}else if(b&&(f=this.rules.paragraph.exec(a)))a=a.substring(f[0].length),this.tokens.push({type:"paragraph",text:"\n"===f[1].charAt(f[1].length-1)?f[1].slice(0,-1):f[1]});else if(f=this.rules.text.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"text",text:f[0]});else if(a)throw Error("Infinite loop on byte: "+a.charCodeAt(0));}return this.tokens};
var t={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:c,tag:/^\x3c!--[\s\S]*?--\x3e|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:c,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/,_inside:/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,
_href:/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/};t.link=d(t.link)("inside",t._inside)("href",t._href)();t.reflink=d(t.reflink)("inside",t._inside)();t.normal=f({},t);t.pedantic=f({},t.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});t.gfm=f({},t.normal,{escape:d(t.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:d(t.text)("]|","~]|")("|","|https?://|")()});
t.breaks=f({},t.gfm,{br:d(t.br)("{2,}","*")(),text:d(t.gfm.text)("{2,}","*")()});h.rules=t;h.output=function(a,b,c){return(new h(b,c)).output(a)};h.prototype.output=function(a){for(var b="",c,d;a;)if(d=this.rules.escape.exec(a))a=a.substring(d[0].length),b+=d[1];else if(d=this.rules.autolink.exec(a))a=a.substring(d[0].length),"@"===d[2]?(c=":"===d[1].charAt(6)?this.mangle(d[1].substring(7)):this.mangle(d[1]),d=this.mangle("mailto:")+c):d=c=g(d[1]),b+=this.renderer.link(d,null,c);else if(!this.inLink&&
(d=this.rules.url.exec(a)))a=a.substring(d[0].length),d=c=g(d[1]),b+=this.renderer.link(d,null,c);else if(d=this.rules.tag.exec(a))!this.inLink&&/^<a /i.test(d[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(d[0])&&(this.inLink=!1),a=a.substring(d[0].length),b+=this.options.sanitize?g(d[0]):d[0];else if(d=this.rules.link.exec(a))a=a.substring(d[0].length),this.inLink=!0,b+=this.outputLink(d,{href:d[2],title:d[3]}),this.inLink=!1;else if((d=this.rules.reflink.exec(a))||(d=this.rules.nolink.exec(a)))a=
a.substring(d[0].length),c=(d[2]||d[1]).replace(/\s+/g," "),(c=this.links[c.toLowerCase()])&&c.href?(this.inLink=!0,b+=this.outputLink(d,c),this.inLink=!1):(b+=d[0].charAt(0),a=d[0].substring(1)+a);else if(d=this.rules.strong.exec(a))a=a.substring(d[0].length),b+=this.renderer.strong(this.output(d[2]||d[1]));else if(d=this.rules.em.exec(a))a=a.substring(d[0].length),b+=this.renderer.em(this.output(d[2]||d[1]));else if(d=this.rules.code.exec(a))a=a.substring(d[0].length),b+=this.renderer.codespan(g(d[2],
!0));else if(d=this.rules.br.exec(a))a=a.substring(d[0].length),b+=this.renderer.br();else if(d=this.rules.del.exec(a))a=a.substring(d[0].length),b+=this.renderer.del(this.output(d[1]));else if(d=this.rules.text.exec(a))a=a.substring(d[0].length),b+=g(this.smartypants(d[0]));else if(a)throw Error("Infinite loop on byte: "+a.charCodeAt(0));return b};h.prototype.outputLink=function(a,b){var c=g(b.href),d=b.title?g(b.title):null;return"!"!==a[0].charAt(0)?this.renderer.link(c,d,this.output(a[1])):this.renderer.image(c,
d,g(a[1]))};h.prototype.smartypants=function(a){return this.options.smartypants?a.replace(/--/g,"—").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):a};h.prototype.mangle=function(a){for(var b="",c=a.length,d=0,e;d<c;d++)e=a.charCodeAt(d),.5<Math.random()&&(e="x"+e.toString(16)),b+="\x26#"+e+";";return b};b.prototype.code=function(a,b,c){if(this.options.highlight){var d=this.options.highlight(a,b);null!=
d&&d!==a&&(c=!0,a=d)}return b?'\x3cpre\x3e\x3ccode class\x3d"'+this.options.langPrefix+g(b,!0)+'"\x3e'+(c?a:g(a,!0))+"\n\x3c/code\x3e\x3c/pre\x3e\n":"\x3cpre\x3e\x3ccode\x3e"+(c?a:g(a,!0))+"\n\x3c/code\x3e\x3c/pre\x3e"};b.prototype.blockquote=function(a){return"\x3cblockquote\x3e\n"+a+"\x3c/blockquote\x3e\n"};b.prototype.html=function(a){return a};b.prototype.heading=function(a,b,c){return"\x3ch"+b+' id\x3d"'+this.options.headerPrefix+c.toLowerCase().replace(/[^\w]+/g,"-")+'"\x3e'+a+"\x3c/h"+b+"\x3e\n"};
b.prototype.hr=function(){return this.options.xhtml?"\x3chr/\x3e\n":"\x3chr\x3e\n"};b.prototype.list=function(a,b){var c=b?"ol":"ul";return"\x3c"+c+"\x3e\n"+a+"\x3c/"+c+"\x3e\n"};b.prototype.listitem=function(a){return"\x3cli\x3e"+a+"\x3c/li\x3e\n"};b.prototype.paragraph=function(a){return"\x3cp\x3e"+a+"\x3c/p\x3e\n"};b.prototype.table=function(a,b){return"\x3ctable\x3e\n\x3cthead\x3e\n"+a+"\x3c/thead\x3e\n\x3ctbody\x3e\n"+b+"\x3c/tbody\x3e\n\x3c/table\x3e\n"};b.prototype.tablerow=function(a){return"\x3ctr\x3e\n"+
a+"\x3c/tr\x3e\n"};b.prototype.tablecell=function(a,b){var c=b.header?"th":"td";return(b.align?"\x3c"+c+' style\x3d"text-align:'+b.align+'"\x3e':"\x3c"+c+"\x3e")+a+"\x3c/"+c+"\x3e\n"};b.prototype.strong=function(a){return"\x3cstrong\x3e"+a+"\x3c/strong\x3e"};b.prototype.em=function(a){return"\x3cem\x3e"+a+"\x3c/em\x3e"};b.prototype.codespan=function(a){return"\x3ccode\x3e"+a+"\x3c/code\x3e"};b.prototype.br=function(){return this.options.xhtml?"\x3cbr/\x3e":"\x3cbr\x3e"};b.prototype.del=function(a){return"\x3cdel\x3e"+
a+"\x3c/del\x3e"};b.prototype.link=function(a,b,c){if(this.options.sanitize){try{var d=decodeURIComponent(k(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===d.indexOf("javascript:")||0===d.indexOf("vbscript:"))return""}a='\x3ca href\x3d"'+a+'"';b&&(a+=' title\x3d"'+b+'"');return a+("\x3e"+c+"\x3c/a\x3e")};b.prototype.image=function(a,b,c){a='\x3cimg src\x3d"'+a+'" alt\x3d"'+c+'"';b&&(a+=' title\x3d"'+b+'"');return a+=this.options.xhtml?"/\x3e":"\x3e"};e.parse=function(a,b,c){return(new e(b,
c)).parse(a)};e.prototype.parse=function(a){this.inline=new h(a.links,this.options,this.renderer);this.tokens=a.reverse();for(a="";this.next();)a+=this.tok();return a};e.prototype.next=function(){return this.token=this.tokens.pop()};e.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};e.prototype.parseText=function(){for(var a=this.token.text;"text"===this.peek().type;)a+="\n"+this.next().text;return this.inline.output(a)};e.prototype.tok=function(){switch(this.token.type){case "space":return"";
case "hr":return this.renderer.hr();case "heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case "code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case "table":var a="",b="",c,d,e,f;e="";for(c=0;c<this.token.header.length;c++)e+=this.renderer.tablecell(this.inline.output(this.token.header[c]),{header:!0,align:this.token.align[c]});a+=this.renderer.tablerow(e);for(c=0;c<this.token.cells.length;c++){d=this.token.cells[c];
e="";for(f=0;f<d.length;f++)e+=this.renderer.tablecell(this.inline.output(d[f]),{header:!1,align:this.token.align[f]});b+=this.renderer.tablerow(e)}return this.renderer.table(a,b);case "blockquote_start":for(b="";"blockquote_end"!==this.next().type;)b+=this.tok();return this.renderer.blockquote(b);case "list_start":b="";for(a=this.token.ordered;"list_end"!==this.next().type;)b+=this.tok();return this.renderer.list(b,a);case "list_item_start":for(b="";"list_item_end"!==this.next().type;)b+="text"===
this.token.type?this.parseText():this.tok();return this.renderer.listitem(b);case "loose_item_start":for(b="";"list_item_end"!==this.next().type;)b+=this.tok();return this.renderer.listitem(b);case "html":return b=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text),this.renderer.html(b);case "paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case "text":return this.renderer.paragraph(this.parseText())}};c.exec=c;m.options=m.setOptions=
function(a){f(m.defaults,a);return m};m.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new b,xhtml:!1};m.Parser=e;m.parser=e.parse;m.Renderer=b;m.Lexer=a;m.lexer=a.lex;m.InlineLexer=h;m.inlineLexer=h.output;m.parse=m;"undefined"!==typeof module&&"object"===typeof exports?module.exports=m:"function"===typeof define&&define.amd?define(function(){return m}):this.marked=m}).call(function(){return this||
("undefined"!==typeof window?window:global)}());(function(a){var h=/[\.\/]/,b=function(){},e=function(a,b){return a-b},g,k,d={n:{}},c=function(a,b){a=String(a);var d=k,h=Array.prototype.slice.call(arguments,2),A=c.listeners(a),q=0,n,r=[],u={},x=[],B=g;g=a;for(var y=k=0,w=A.length;y<w;y++)"zIndex"in A[y]&&(r.push(A[y].zIndex),0>A[y].zIndex&&(u[A[y].zIndex]=A[y]));for(r.sort(e);0>r[q];)if(n=u[r[q++]],x.push(n.apply(b,h)),k)return k=d,x;for(y=0;y<w;y++)if(n=A[y],"zIndex"in n)if(n.zIndex==r[q]){x.push(n.apply(b,h));if(k)break;do if(q++,(n=u[r[q]])&&
x.push(n.apply(b,h)),k)break;while(n)}else u[n.zIndex]=n;else if(x.push(n.apply(b,h)),k)break;k=d;g=B;return x.length?x:null};c._events=d;c.listeners=function(a){a=a.split(h);var b=d,c,e,g,k,n,r,u,x=[b],B=[];g=0;for(k=a.length;g<k;g++){u=[];n=0;for(r=x.length;n<r;n++)for(b=x[n].n,c=[b[a[g]],b["*"]],e=2;e--;)if(b=c[e])u.push(b),B=B.concat(b.f||[]);x=u}return B};c.on=function(a,c){a=String(a);if("function"!=typeof c)return function(){};for(var e=a.split(h),g=d,k=0,q=e.length;k<q;k++)g=g.n,g=g.hasOwnProperty(e[k])&&
g[e[k]]||(g[e[k]]={n:{}});g.f=g.f||[];k=0;for(q=g.f.length;k<q;k++)if(g.f[k]==c)return b;g.f.push(c);return function(a){+a==+a&&(c.zIndex=+a)}};c.f=function(a){var b=[].slice.call(arguments,1);return function(){c.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}};c.stop=function(){k=1};c.nt=function(a){return a?(new RegExp("(?:\\.|\\/|^)"+a+"(?:\\.|\\/|$)")).test(g):g};c.nts=function(){return g.split(h)};c.off=c.unbind=function(a,b){if(a){var e=a.split(h),g,k,q,n,r,u,x=[d];n=0;for(r=
e.length;n<r;n++)for(u=0;u<x.length;u+=q.length-2){q=[u,1];g=x[u].n;if("*"!=e[n])g[e[n]]&&q.push(g[e[n]]);else for(k in g)g.hasOwnProperty(k)&&q.push(g[k]);x.splice.apply(x,q)}n=0;for(r=x.length;n<r;n++)for(g=x[n];g.n;){if(b){if(g.f){u=0;for(e=g.f.length;u<e;u++)if(g.f[u]==b){g.f.splice(u,1);break}!g.f.length&&delete g.f}for(k in g.n)if(g.n.hasOwnProperty(k)&&g.n[k].f){q=g.n[k].f;u=0;for(e=q.length;u<e;u++)if(q[u]==b){q.splice(u,1);break}!q.length&&delete g.n[k].f}}else for(k in delete g.f,g.n)g.n.hasOwnProperty(k)&&
g.n[k].f&&delete g.n[k].f;g=g.n}}else c._events=d={n:{}}};c.once=function(a,b){var d=function(){c.unbind(a,d);return b.apply(this,arguments)};return c.on(a,d)};c.version="0.4.2";c.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&&module.exports?module.exports=c:"undefined"!=typeof define?define("eve",[],function(){return c}):a.eve=c})(this);
(function(a,h){"function"===typeof define&&define.amd?define(["eve"],function(b){return h(a,b)}):h(a,a.eve||"function"==typeof require&&require("eve"))})(this,function(a,h){function b(a){if(b.is(a,"function"))return u?a():h.on("raphael.DOMload",a);if(b.is(a,S))return b._engine.create[v](b,a.splice(0,3+b.is(a[0],H))).add(a);var c=Array.prototype.slice.call(arguments,0);if(b.is(c[c.length-1],"function")){var d=c.pop();return u?d.call(b._engine.create[v](b,c)):h.on("raphael.DOMload",function(){d.call(b._engine.create[v](b,
c))})}return b._engine.create[v](b,arguments)}function e(a){if("function"==typeof a||Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)a.hasOwnProperty(c)&&(b[c]=e(a[c]));return b}function g(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("␀"),g=d.cache=d.cache||{},h=d.count=d.count||[];if(g.hasOwnProperty(f)){a:for(var e=h,h=f,k=0,l=e.length;k<l;k++)if(e[k]===h){e.push(e.splice(k,1)[0]);break a}return c?c(g[f]):g[f]}1E3<=h.length&&delete g[h.shift()];h.push(f);
g[f]=a[v](b,e);return c?c(g[f]):g[f]}return d}function k(){return this.hex}function d(a,b){for(var c=[],d=0,e=a.length;e-2*!b>d;d+=2){var f=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?e-4==d?f[3]={x:+a[0],y:+a[1]}:e-2==d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[e-2],y:+a[e-1]}:e-4==d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]});c.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-
f[3].y)/6,f[2].x,f[2].y])}return c}function c(a,b,c,d,e,f,g,h,k){null==k&&(k=1);k=(1<k?1:0>k?0:k)/2;for(var l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],n=0,p=0;12>p;p++)var r=k*l[p]+k,q=r*(r*(-3*a+9*c-9*e+3*g)+6*a-12*c+6*e)-3*a+3*c,r=r*(r*(-3*b+9*d-9*f+3*h)+6*b-12*d+6*f)-3*b+3*d,n=n+m[p]*I.sqrt(q*q+r*r);return k*n}function f(a,b,d,e,f,g,h,k,l){if(!(0>l||c(a,b,d,e,f,g,h,k)<l)){var m=.5,
n=1-m,p;for(p=c(a,b,d,e,f,g,h,k,n);.01<N(p-l);)m/=2,n+=(p<l?1:-1)*m,p=c(a,b,d,e,f,g,h,k,n);return n}}function m(a,d,e){a=b._path2curve(a);d=b._path2curve(d);for(var f,g,h,k,l,m,n,p,r,q,t=e?0:[],u=0,w=a.length;u<w;u++)if(r=a[u],"M"==r[0])f=l=r[1],g=m=r[2];else{"C"==r[0]?(r=[f,g].concat(r.slice(1)),f=r[6],g=r[7]):(r=[f,g,f,g,l,m,l,m],f=l,g=m);for(var x=0,A=d.length;x<A;x++)if(q=d[x],"M"==q[0])h=n=q[1],k=p=q[2];else{"C"==q[0]?(q=[h,k].concat(q.slice(1)),h=q[6],k=q[7]):(q=[h,k,h,k,n,p,n,p],h=n,k=p);var z;
var B=r,y=q;z=e;var C=b.bezierBBox(B),v=b.bezierBBox(y);if(b.isBBoxIntersect(C,v)){for(var C=c.apply(0,B),v=c.apply(0,y),C=Q(~~(C/5),1),v=Q(~~(v/5),1),F=[],Ra=[],Db={},la=z?0:[],T=0;T<C+1;T++){var pa=b.findDotsAtSegment.apply(b,B.concat(T/C));F.push({x:pa.x,y:pa.y,t:T/C})}for(T=0;T<v+1;T++)pa=b.findDotsAtSegment.apply(b,y.concat(T/v)),Ra.push({x:pa.x,y:pa.y,t:T/v});for(T=0;T<C;T++)for(B=0;B<v;B++){var ra=F[T],Fa=F[T+1],y=Ra[B],pa=Ra[B+1],pb=.001>N(Fa.x-ra.x)?"y":"x",Sa=.001>N(pa.x-y.x)?"y":"x",ja;
ja=ra.x;var E=ra.y,G=Fa.x,H=Fa.y,I=y.x,J=y.y,K=pa.x,L=pa.y;if(Q(ja,G)<R(I,K)||R(ja,G)>Q(I,K)||Q(E,H)<R(J,L)||R(E,H)>Q(J,L))ja=void 0;else{var M=(ja*H-E*G)*(I-K)-(ja-G)*(I*L-J*K),O=(ja*H-E*G)*(J-L)-(E-H)*(I*L-J*K),P=(ja-G)*(J-L)-(E-H)*(I-K);if(P){var M=M/P,O=O/P,P=+M.toFixed(2),S=+O.toFixed(2);ja=P<+R(ja,G).toFixed(2)||P>+Q(ja,G).toFixed(2)||P<+R(I,K).toFixed(2)||P>+Q(I,K).toFixed(2)||S<+R(E,H).toFixed(2)||S>+Q(E,H).toFixed(2)||S<+R(J,L).toFixed(2)||S>+Q(J,L).toFixed(2)?void 0:{x:M,y:O}}else ja=void 0}ja&&
Db[ja.x.toFixed(4)]!=ja.y.toFixed(4)&&(Db[ja.x.toFixed(4)]=ja.y.toFixed(4),ra=ra.t+N((ja[pb]-ra[pb])/(Fa[pb]-ra[pb]))*(Fa.t-ra.t),y=y.t+N((ja[Sa]-y[Sa])/(pa[Sa]-y[Sa]))*(pa.t-y.t),0<=ra&&1.001>=ra&&0<=y&&1.001>=y&&(z?la++:la.push({x:ja.x,y:ja.y,t1:R(ra,1),t2:R(y,1)})))}z=la}else z=z?0:[];if(e)t+=z;else{C=0;for(v=z.length;C<v;C++)z[C].segment1=u,z[C].segment2=x,z[C].bez1=r,z[C].bez2=q;t=t.concat(z)}}}return t}function p(a,b,c,d,e,f){null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=
+f):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function t(){return this.x+" "+this.y+" "+this.width+" × "+this.height}function A(a,b,c,d,e,f){function g(a,b){var c,d,e,f;e=a;for(d=0;8>d;d++){f=((l*e+k)*e+h)*e-a;if(N(f)<b)return e;c=(3*l*e+2*k)*e+h;if(1E-6>N(c))break;e-=f/c}c=0;d=1;e=a;if(e<c)return c;if(e>d)return d;for(;c<d;){f=((l*e+k)*e+h)*e;if(N(f-a)<b)break;a>f?c=e:d=e;e=(d-c)/2+c}return e}var h=3*b,k=3*(d-b)-h,l=1-h-k,m=3*c,n=3*(e-c)-m,p=1-m-n;return function(a,b){var c=g(a,b);return((p*
c+n)*c+m)*c}(a,1/(200*f))}function q(a,b){var c=[],d={};this.ms=b;this.times=1;if(a){for(var e in a)a.hasOwnProperty(e)&&(d[V(e)]=a[e],c.push(V(e)));c.sort(Jb)}this.anim=d;this.top=c[c.length-1];this.percents=c}function n(a,c,d,e,f,g){d=V(d);var k,m,n,r,q,t,u=a.ms,w={},z={},y={};if(e)for(t=0,C=X.length;t<C;t++){var B=X[t];if(B.el.id==c.id&&B.anim==a){B.percent!=d?(X.splice(t,1),n=1):m=B;c.attr(B.totalOrigin);break}}else e=+z;t=0;for(var C=a.percents.length;t<C;t++)if(a.percents[t]==d||a.percents[t]>
e*a.top){d=a.percents[t];q=a.percents[t-1]||0;u=u/a.top*(d-q);r=a.percents[t+1];k=a.anim[d];break}else e&&c.attr(a.anim[a.percents[t]]);if(k){if(m)m.initstatus=e,m.start=new Date-m.ms*e;else{for(var v in k)if(k.hasOwnProperty(v)&&(l.hasOwnProperty(v)||c.paper.customAttributes.hasOwnProperty(v)))switch(w[v]=c.attr(v),null==w[v]&&(w[v]=sa[v]),z[v]=k[v],l[v]){case H:y[v]=(z[v]-w[v])/u;break;case "colour":w[v]=b.getRGB(w[v]);t=b.getRGB(z[v]);y[v]={r:(t.r-w[v].r)/u,g:(t.g-w[v].g)/u,b:(t.b-w[v].b)/u};break;
case "path":t=Na(w[v],z[v]);B=t[1];w[v]=t[0];y[v]=[];t=0;for(C=w[v].length;t<C;t++){y[v][t]=[0];for(var E=1,F=w[v][t].length;E<F;E++)y[v][t][E]=(B[t][E]-w[v][t][E])/u}break;case "transform":t=c._;if(C=Mb(t[v],z[v]))for(w[v]=C.from,z[v]=C.to,y[v]=[],y[v].real=!0,t=0,C=w[v].length;t<C;t++)for(y[v][t]=[w[v][t][0]],E=1,F=w[v][t].length;E<F;E++)y[v][t][E]=(z[v][t][E]-w[v][t][E])/u;else C=c.matrix||new p,t={_:{transform:t.transform},getBBox:function(){return c.getBBox(1)}},w[v]=[C.a,C.b,C.c,C.d,C.e,C.f],
jb(t,z[v]),z[v]=t._.transform,y[v]=[(t.matrix.a-C.a)/u,(t.matrix.b-C.b)/u,(t.matrix.c-C.c)/u,(t.matrix.d-C.d)/u,(t.matrix.e-C.e)/u,(t.matrix.f-C.f)/u];break;case "csv":C=L(k[v]).split(x);B=L(w[v]).split(x);if("clip-rect"==v)for(w[v]=B,y[v]=[],t=B.length;t--;)y[v][t]=(C[t]-w[v][t])/u;z[v]=C;break;default:for(C=[].concat(k[v]),B=[].concat(w[v]),y[v]=[],t=c.paper.customAttributes[v].length;t--;)y[v][t]=((C[t]||0)-(B[t]||0))/u}t=k.easing;v=b.easing_formulas[t];if(!v)if((v=L(t).match(ha))&&5==v.length){var G=
v;v=function(a){return A(a,+G[1],+G[2],+G[3],+G[4],u)}}else v=Kb;t=k.start||a.start||+new Date;B={anim:a,percent:d,timestamp:t,start:t+(a.del||0),status:0,initstatus:e||0,stop:!1,ms:u,easing:v,from:w,diff:y,to:z,el:c,callback:k.callback,prev:q,next:r,repeat:g||a.times,origin:c.attr(),totalOrigin:f};X.push(B);if(e&&!m&&!n&&(B.stop=!0,B.start=new Date-u*e,1==X.length))return oa();n&&(B.start=new Date-B.ms*e);1==X.length&&ab(oa)}h("raphael.anim.start."+c.id,c,a)}}function r(a){for(var b=0;b<X.length;b++)X[b].el.paper==
a&&X.splice(b--,1)}b.version="2.1.2";b.eve=h;var u,x=/[, ]+/,B={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},y=/\{(\d+)\}/g,w={doc:document,win:a},G=Object.prototype.hasOwnProperty.call(w.win,"Raphael"),F=w.win.Raphael,E=function(){this.ca=this.customAttributes={}},C,v="apply",P="ontouchstart"in w.win||w.win.DocumentTouch&&w.doc instanceof DocumentTouch,L=String,M="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel".split(" "),K={mousedown:"touchstart",
mousemove:"touchmove",mouseup:"touchend"},ba=L.prototype.toLowerCase,I=Math,Q=I.max,R=I.min,N=I.abs,O=I.pow,J=I.PI,H="number",S="array",ka=Object.prototype.toString;b._ISURL=/^url\(['"]?(.+?)['"]?\)$/i;var z=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,
ga={NaN:1,Infinity:1,"-Infinity":1},ha=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,da=I.round,V=parseFloat,ea=parseInt,W=L.prototype.toUpperCase,sa=b._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,
rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},l=b._availableAnimAttrs={blur:H,"clip-rect":"csv",cx:H,cy:H,fill:"colour","fill-opacity":H,"font-size":H,height:H,opacity:H,path:"path",r:H,rx:H,ry:H,stroke:"colour","stroke-opacity":H,"stroke-width":H,transform:"transform",width:H,x:H,y:H},ta=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,
wa={hs:1,rg:1},Z=/,?([achlmqrstvxz]),?/gi,xa=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
Va=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,Ga=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
b._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/;var Ca={},Jb=function(a,b){return V(a)-V(b)},Kb=function(a){return a},Wa=b._rectPath=function(a,b,c,d,e){return e?[["M",a+e,b],["l",c-2*e,0],["a",e,e,0,0,1,e,e],["l",0,d-2*
e],["a",e,e,0,0,1,-e,e],["l",2*e-c,0],["a",e,e,0,0,1,-e,-e],["l",0,2*e-d],["a",e,e,0,0,1,e,-e],["z"]]:[["M",a,b],["l",c,0],["l",0,d],["l",-c,0],["z"]]},sb=function(a,b,c,d){null==d&&(d=c);return[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]]},Xa=b._getPath={path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return sb(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return sb(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return Wa(a.x,a.y,a.width,a.height,
a.r)},image:function(a){a=a.attrs;return Wa(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return Wa(a.x,a.y,a.width,a.height)},set:function(a){a=a._getBBox();return Wa(a.x,a.y,a.width,a.height)}},eb=b.mapPath=function(a,b){if(!b)return a;var c,d,e,f,g,h,k;a=Na(a);e=0;for(g=a.length;e<g;e++)for(k=a[e],f=1,h=k.length;f<h;f+=2)c=b.x(k[f],k[f+1]),d=b.y(k[f],k[f+1]),k[f]=c,k[f+1]=d;return a};b._g=w;b.type=w.win.SVGAngle||w.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure",
"1.1")?"SVG":"VML";if("VML"==b.type){var Ha=w.doc.createElement("div"),Ka;Ha.innerHTML='\x3cv:shape adj\x3d"1"/\x3e';Ka=Ha.firstChild;Ka.style.behavior="url(#default#VML)";if(!Ka||"object"!=typeof Ka.adj)return b.type="";Ha=null}b.svg=!(b.vml="VML"==b.type);b._Paper=E;b.fn=C=E.prototype=b.prototype;b._id=0;b._oid=0;b.is=function(a,b){b=ba.call(b);return"finite"==b?!ga.hasOwnProperty(+a):"array"==b?a instanceof Array:"null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||"array"==
b&&Array.isArray&&Array.isArray(a)||ka.call(a).slice(8,-1).toLowerCase()==b};b.angle=function(a,c,d,e,f,g){return null==f?(a-=d,c-=e,a||c?(180*I.atan2(-c,-a)/J+540)%360:0):b.angle(a,c,f,g)-b.angle(d,e,f,g)};b.rad=function(a){return a%360*J/180};b.deg=function(a){return Math.round(180*a/J%360*1E3)/1E3};b.snapTo=function(a,c,d){d=b.is(d,"finite")?d:10;if(b.is(a,S))for(var e=a.length;e--;){if(N(a[e]-c)<=d)return a[e]}else{a=+a;e=c%a;if(e<d)return c-e;if(e>a-d)return c-e+a}return c};b.createUUID=function(a,
b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=16*I.random()|0;return("x"==a?b:b&3|8).toString(16)});b.setWindow=function(a){h("raphael.setWindow",b,w.win,a);w.win=a;w.doc=w.win.document;b._engine.initWin&&b._engine.initWin(w.win)};var Ja=function(a){if(b.vml){var c=/^\s+|\s+$/g,d;try{var e=new ActiveXObject("htmlfile");e.write("\x3cbody\x3e");e.close();d=e.body}catch(f){d=createPopup().document.body}var h=d.createTextRange();
Ja=g(function(a){try{d.style.color=L(a).replace(c,"");var b=h.queryCommandValue("ForeColor");return"#"+("000000"+((b&255)<<16|b&65280|(b&16711680)>>>16).toString(16)).slice(-6)}catch(e){return"none"}})}else{var k=w.doc.createElement("i");k.title="Raphaël Colour Picker";k.style.display="none";w.doc.body.appendChild(k);Ja=g(function(a){k.style.color=a;return w.doc.defaultView.getComputedStyle(k,"").getPropertyValue("color")})}return Ja(a)},Hb=function(){return"hsb("+[this.h,this.s,this.b]+")"},Gb=function(){return"hsl("+
[this.h,this.s,this.l]+")"},ya=function(){return this.hex},fb=function(a,c,d){null==c&&b.is(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(d=a.b,c=a.g,a=a.r);null==c&&b.is(a,"string")&&(d=b.getRGB(a),a=d.r,c=d.g,d=d.b);if(1<a||1<c||1<d)a/=255,c/=255,d/=255;return[a,c,d]},gb=function(a,c,d,e){a*=255;c*=255;d*=255;a={r:a,g:c,b:d,hex:b.rgb(a,c,d),toString:ya};b.is(e,"finite")&&(a.opacity=e);return a};b.color=function(a){var c;b.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(c=b.hsb2rgb(a),a.r=c.r,a.g=c.g,a.b=
c.b,a.hex=c.hex):b.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(c=b.hsl2rgb(a),a.r=c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):(b.is(a,"string")&&(a=b.getRGB(a)),b.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(c=b.rgb2hsl(a),a.h=c.h,a.s=c.s,a.l=c.l,c=b.rgb2hsb(a),a.v=c.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=ya;return a};b.hsb2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,d=a.o,a=a.h);var e,f,g;a=360*a%360/60;g=c*b;b=g*(1-N(a%2-1));c=e=f=c-g;a=~~a;c+=[g,
b,0,0,b,g][a];e+=[b,g,g,b,0,0][a];f+=[0,0,b,g,g,b][a];return gb(c,e,f,d)};b.hsl2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h);if(1<a||1<b||1<c)a/=360,b/=100,c/=100;var e,f,g;a=360*a%360/60;g=2*b*(.5>c?c:1-c);b=g*(1-N(a%2-1));c=e=f=c-g/2;a=~~a;c+=[g,b,0,0,b,g][a];e+=[b,g,g,b,0,0][a];f+=[0,0,b,g,g,b][a];return gb(c,e,f,d)};b.rgb2hsb=function(a,b,c){c=fb(a,b,c);a=c[0];b=c[1];c=c[2];var d,e;d=Q(a,b,c);e=d-R(a,b,c);a=((0==e?0:d==a?(b-c)/e:d==b?(c-a)/e+2:(a-b)/
e+4)+360)%6*60/360;return{h:a,s:0==e?0:e/d,b:d,toString:Hb}};b.rgb2hsl=function(a,b,c){c=fb(a,b,c);a=c[0];b=c[1];c=c[2];var d,e,f;d=Q(a,b,c);e=R(a,b,c);f=d-e;a=((0==f?0:d==a?(b-c)/f:d==b?(c-a)/f+2:(a-b)/f+4)+360)%6*60/360;d=(d+e)/2;return{h:a,s:0==f?0:.5>d?f/(2*d):f/(2-2*d),l:d,toString:Gb}};b._path2string=function(){return this.join(",").replace(Z,"$1")};b._preload=function(a,b){var c=w.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);
this.onload=null;w.doc.body.removeChild(this)};c.onerror=function(){w.doc.body.removeChild(this)};w.doc.body.appendChild(c);c.src=a};b.getRGB=g(function(a){if(!a||(a=L(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:k};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:k};!wa.hasOwnProperty(a.toLowerCase().substring(0,2))&&"#"!=a.charAt()&&(a=Ja(a));var c,d,e,f,g;if(a=a.match(z)){a[2]&&(e=ea(a[2].substring(5),16),d=ea(a[2].substring(3,5),16),c=ea(a[2].substring(1,3),16));
a[3]&&(e=ea((g=a[3].charAt(3))+g,16),d=ea((g=a[3].charAt(2))+g,16),c=ea((g=a[3].charAt(1))+g,16));a[4]&&(g=a[4].split(ta),c=V(g[0]),"%"==g[0].slice(-1)&&(c*=2.55),d=V(g[1]),"%"==g[1].slice(-1)&&(d*=2.55),e=V(g[2]),"%"==g[2].slice(-1)&&(e*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(f=V(g[3])),g[3]&&"%"==g[3].slice(-1)&&(f/=100));if(a[5])return g=a[5].split(ta),c=V(g[0]),"%"==g[0].slice(-1)&&(c*=2.55),d=V(g[1]),"%"==g[1].slice(-1)&&(d*=2.55),e=V(g[2]),"%"==g[2].slice(-1)&&(e*=2.55),"deg"!=g[0].slice(-3)&&
"°"!=g[0].slice(-1)||(c/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(f=V(g[3])),g[3]&&"%"==g[3].slice(-1)&&(f/=100),b.hsb2rgb(c,d,e,f);if(a[6])return g=a[6].split(ta),c=V(g[0]),"%"==g[0].slice(-1)&&(c*=2.55),d=V(g[1]),"%"==g[1].slice(-1)&&(d*=2.55),e=V(g[2]),"%"==g[2].slice(-1)&&(e*=2.55),"deg"!=g[0].slice(-3)&&"°"!=g[0].slice(-1)||(c/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(f=V(g[3])),g[3]&&"%"==g[3].slice(-1)&&(f/=100),b.hsl2rgb(c,d,e,f);a={r:c,g:d,b:e,toString:k};a.hex="#"+(16777216|e|d<<
8|c<<16).toString(16).slice(1);b.is(f,"finite")&&(a.opacity=f);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:k}},b);b.hsb=g(function(a,c,d){return b.hsb2rgb(a,c,d).hex});b.hsl=g(function(a,c,d){return b.hsl2rgb(a,c,d).hex});b.rgb=g(function(a,b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});b.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75};var b=this.hsb2rgb(a.h,a.s,a.b);a.h+=.075;1<a.h&&(a.h=0,a.s-=.2,0>=a.s&&(this.getColor.start={h:0,
s:1,b:a.b}));return b.hex};b.getColor.reset=function(){delete this.start};b.parsePathString=function(a){if(!a)return null;var c=Da(a);if(c.arr)return ua(c.arr);var d={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},e=[];b.is(a,S)&&b.is(a[0],S)&&(e=ua(a));e.length||L(a).replace(xa,function(a,b,c){var f=[];a=b.toLowerCase();c.replace(Ga,function(a,b){b&&f.push(+b)});"m"==a&&2<f.length&&(e.push([b].concat(f.splice(0,2))),a="l",b="m"==b?"l":"L");if("r"==a)e.push([b].concat(f));else for(;f.length>=d[a]&&
(e.push([b].concat(f.splice(0,d[a]))),d[a]););});e.toString=b._path2string;c.arr=ua(e);return e};b.parseTransformString=g(function(a){if(!a)return null;var c=[];b.is(a,S)&&b.is(a[0],S)&&(c=ua(a));c.length||L(a).replace(Va,function(a,b,d){var e=[];ba.call(b);d.replace(Ga,function(a,b){b&&e.push(+b)});c.push([b].concat(e))});c.toString=b._path2string;return c});var Da=function(a){var b=Da.ps=Da.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b.hasOwnProperty(c)&&c!=
a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};b.findDotsAtSegment=function(a,b,c,d,e,f,g,h,k){var l=1-k,m=O(l,3),n=O(l,2),p=k*k,r=p*k,q=m*a+3*n*k*c+3*l*k*k*e+r*g,m=m*b+3*n*k*d+3*l*k*k*f+r*h,n=a+2*k*(c-a)+p*(e-2*c+a),r=b+2*k*(d-b)+p*(f-2*d+b),t=c+2*k*(e-c)+p*(g-2*e+c),p=d+2*k*(f-d)+p*(h-2*f+d);a=l*a+k*c;b=l*b+k*d;e=l*e+k*g;f=l*f+k*h;h=90-180*I.atan2(n-t,r-p)/J;(n>t||r<p)&&(h+=180);return{x:q,y:m,m:{x:n,y:r},n:{x:t,y:p},start:{x:a,y:b},end:{x:e,y:f},alpha:h}};b.bezierBBox=function(a,c,d,
e,f,g,h,k){b.is(a,"array")||(a=[a,c,d,e,f,g,h,k]);a=ub.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};b.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};b.isBBoxIntersect=function(a,c){var d=b.isPointInsideBBox;return d(c,a.x,a.y)||d(c,a.x2,a.y)||d(c,a.x,a.y2)||d(c,a.x2,a.y2)||d(a,c.x,c.y)||d(a,c.x2,c.y)||d(a,c.x,c.y2)||d(a,c.x2,c.y2)||(a.x<c.x2&&a.x>c.x||c.x<a.x2&&c.x>a.x)&&(a.y<c.y2&&a.y>c.y||c.y<a.y2&&c.y>
a.y)};b.pathIntersection=function(a,b){return m(a,b)};b.pathIntersectionNumber=function(a,b){return m(a,b,1)};b.isPointInsidePath=function(a,c,d){var e=b.pathBBox(a);return b.isPointInsideBBox(e,c,d)&&1==m(a,[["M",c,d],["H",e.x2+10]],1)%2};b._removedFactory=function(a){return function(){h("raphael.log",null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var hb=b.pathBBox=function(a){var b=Da(a);if(b.bbox)return e(b.bbox);if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=Na(a);
for(var c=0,d=0,f=[],g=[],h,k=0,l=a.length;k<l;k++)h=a[k],"M"==h[0]?(c=h[1],d=h[2],f.push(c),g.push(d)):(c=ub(c,d,h[1],h[2],h[3],h[4],h[5],h[6]),f=f.concat(c.min.x,c.max.x),g=g.concat(c.min.y,c.max.y),c=h[5],d=h[6]);a=R[v](0,f);h=R[v](0,g);f=Q[v](0,f);g=Q[v](0,g);k=f-a;l=g-h;g={x:a,y:h,x2:f,y2:g,width:k,height:l,cx:a+k/2,cy:h+l/2};b.bbox=e(g);return g},ua=function(a){a=e(a);a.toString=b._path2string;return a},Lb=b._pathToRelative=function(a){var c=Da(a);if(c.rel)return ua(c.rel);b.is(a,S)&&b.is(a&&
a[0],S)||(a=b.parsePathString(a));var d=[],e=0,f=0,g=0,h=0,k=0;"M"==a[0][0]&&(e=a[0][1],f=a[0][2],g=e,h=f,k++,d.push(["M",e,f]));for(var l=a.length;k<l;k++){var m=d[k]=[],n=a[k];if(n[0]!=ba.call(n[0]))switch(m[0]=ba.call(n[0]),m[0]){case "a":m[1]=n[1];m[2]=n[2];m[3]=n[3];m[4]=n[4];m[5]=n[5];m[6]=+(n[6]-e).toFixed(3);m[7]=+(n[7]-f).toFixed(3);break;case "v":m[1]=+(n[1]-f).toFixed(3);break;case "m":g=n[1],h=n[2];default:for(var p=1,r=n.length;p<r;p++)m[p]=+(n[p]-(p%2?e:f)).toFixed(3)}else for(d[k]=
[],"m"==n[0]&&(g=n[1]+e,h=n[2]+f),m=0,p=n.length;m<p;m++)d[k][m]=n[m];n=d[k].length;switch(d[k][0]){case "z":e=g;f=h;break;case "h":e+=+d[k][n-1];break;case "v":f+=+d[k][n-1];break;default:e+=+d[k][n-2],f+=+d[k][n-1]}}d.toString=b._path2string;c.rel=ua(d);return d},tb=b._pathToAbsolute=function(a){var c=Da(a);if(c.abs)return ua(c.abs);b.is(a,S)&&b.is(a&&a[0],S)||(a=b.parsePathString(a));if(!a||!a.length)return[["M",0,0]];var e=[],f=0,g=0,h=0,k=0,l=0;"M"==a[0][0]&&(f=+a[0][1],g=+a[0][2],h=f,k=g,l++,
e[0]=["M",f,g]);for(var m=3==a.length&&"M"==a[0][0]&&"R"==a[1][0].toUpperCase()&&"Z"==a[2][0].toUpperCase(),n,p=l,r=a.length;p<r;p++){e.push(l=[]);n=a[p];if(n[0]!=W.call(n[0]))switch(l[0]=W.call(n[0]),l[0]){case "A":l[1]=n[1];l[2]=n[2];l[3]=n[3];l[4]=n[4];l[5]=n[5];l[6]=+(n[6]+f);l[7]=+(n[7]+g);break;case "V":l[1]=+n[1]+g;break;case "H":l[1]=+n[1]+f;break;case "R":for(var q=[f,g].concat(n.slice(1)),t=2,u=q.length;t<u;t++)q[t]=+q[t]+f,q[++t]=+q[t]+g;e.pop();e=e.concat(d(q,m));break;case "M":h=+n[1]+
f,k=+n[2]+g;default:for(t=1,u=n.length;t<u;t++)l[t]=+n[t]+(t%2?f:g)}else if("R"==n[0])q=[f,g].concat(n.slice(1)),e.pop(),e=e.concat(d(q,m)),l=["R"].concat(n.slice(-2));else for(q=0,t=n.length;q<t;q++)l[q]=n[q];switch(l[0]){case "Z":f=h;g=k;break;case "H":f=l[1];break;case "V":g=l[1];break;case "M":h=l[l.length-2],k=l[l.length-1];default:f=l[l.length-2],g=l[l.length-1]}}e.toString=b._path2string;c.abs=ua(e);return e},La=function(a,b,c,d){return[a,b,c,d,c,d]},ib=function(a,b,c,d,e,f){var g=1/3,h=2/
3;return[g*a+h*c,g*b+h*d,g*e+h*c,g*f+h*d,e,f]},Ya=function(a,b,c,d,e,f,h,k,l,m){var n=120*J/180,p=J/180*(+e||0),r=[],q,t=g(function(a,b,c){var d=a*I.cos(c)-b*I.sin(c);a=a*I.sin(c)+b*I.cos(c);return{x:d,y:a}});if(m)v=m[0],q=m[1],f=m[2],u=m[3];else{q=t(a,b,-p);a=q.x;b=q.y;q=t(k,l,-p);k=q.x;l=q.y;I.cos(J/180*e);I.sin(J/180*e);q=(a-k)/2;v=(b-l)/2;u=q*q/(c*c)+v*v/(d*d);1<u&&(u=I.sqrt(u),c*=u,d*=u);var u=c*c,w=d*d,u=(f==h?-1:1)*I.sqrt(N((u*w-u*v*v-w*q*q)/(u*v*v+w*q*q)));f=u*c*v/d+(a+k)/2;var u=u*-d*q/c+
(b+l)/2,v=I.asin(((b-u)/d).toFixed(9));q=I.asin(((l-u)/d).toFixed(9));v=a<f?J-v:v;q=k<f?J-q:q;0>v&&(v=2*J+v);0>q&&(q=2*J+q);h&&v>q&&(v-=2*J);!h&&q>v&&(q-=2*J)}if(N(q-v)>n){var r=q,w=k,x=l;q=v+n*(h&&q>v?1:-1);k=f+c*I.cos(q);l=u+d*I.sin(q);r=Ya(k,l,c,d,e,0,h,w,x,[q,r,f,u])}f=q-v;e=I.cos(v);n=I.sin(v);h=I.cos(q);q=I.sin(q);f=I.tan(f/4);c=4/3*c*f;f*=4/3*d;d=[a,b];a=[a+c*n,b-f*e];b=[k+c*q,l-f*h];k=[k,l];a[0]=2*d[0]-a[0];a[1]=2*d[1]-a[1];if(m)return[a,b,k].concat(r);r=[a,b,k].concat(r).join().split(",");
m=[];k=0;for(l=r.length;k<l;k++)m[k]=k%2?t(r[k-1],r[k],p).y:t(r[k],r[k+1],p).x;return m},Ma=function(a,b,c,d,e,f,g,h,k){var l=1-k;return{x:O(l,3)*a+3*O(l,2)*k*c+3*l*k*k*e+O(k,3)*g,y:O(l,3)*b+3*O(l,2)*k*d+3*l*k*k*f+O(k,3)*h}},ub=g(function(a,b,c,d,e,f,g,h){var k=e-2*c+a-(g-2*e+c),l=2*(c-a)-2*(e-c),m=a-c,n=(-l+I.sqrt(l*l-4*k*m))/2/k,k=(-l-I.sqrt(l*l-4*k*m))/2/k,p=[b,h],q=[a,g];"1e12"<N(n)&&(n=.5);"1e12"<N(k)&&(k=.5);0<n&&1>n&&(n=Ma(a,b,c,d,e,f,g,h,n),q.push(n.x),p.push(n.y));0<k&&1>k&&(n=Ma(a,b,c,d,
e,f,g,h,k),q.push(n.x),p.push(n.y));k=f-2*d+b-(h-2*f+d);l=2*(d-b)-2*(f-d);m=b-d;n=(-l+I.sqrt(l*l-4*k*m))/2/k;k=(-l-I.sqrt(l*l-4*k*m))/2/k;"1e12"<N(n)&&(n=.5);"1e12"<N(k)&&(k=.5);0<n&&1>n&&(n=Ma(a,b,c,d,e,f,g,h,n),q.push(n.x),p.push(n.y));0<k&&1>k&&(n=Ma(a,b,c,d,e,f,g,h,k),q.push(n.x),p.push(n.y));return{min:{x:R[v](0,q),y:R[v](0,p)},max:{x:Q[v](0,q),y:Q[v](0,p)}}}),Na=b._path2curve=g(function(a,b){var c=!b&&Da(a);if(!b&&c.curve)return ua(c.curve);var d=tb(a),e=b&&tb(b),f={x:0,y:0,bx:0,by:0,X:0,Y:0,
qx:null,qy:null},g={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=function(a,b,c){if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];a[0]in{T:1,Q:1}||(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"].concat(Ya[v](0,[b.x,b.y].concat(a.slice(1))));break;case "S":"C"==c||"S"==c?(c=2*b.x-b.bx,b=2*b.y-b.by):(c=b.x,b=b.y);a=["C",c,b].concat(a.slice(1));break;case "T":"Q"==c||"T"==c?(b.qx=2*b.x-b.qx,b.qy=2*b.y-b.qy):(b.qx=b.x,b.qy=b.y);a=["C"].concat(ib(b.x,b.y,b.qx,b.qy,a[1],a[2]));
break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"].concat(ib(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat(La(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat(La(b.x,b.y,a[1],b.y));break;case "V":a=["C"].concat(La(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat(La(b.x,b.y,b.X,b.Y))}return a},k=function(a,b){if(7<a[b].length){a[b].shift();for(var c=a[b];c.length;)m[b]="A",e&&(n[b]="A"),a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1);t=Q(d.length,e&&e.length||0)}},l=function(a,b,c,
f,g){a&&b&&"M"==a[g][0]&&"M"!=b[g][0]&&(b.splice(g,0,["M",f.x,f.y]),c.bx=0,c.by=0,c.x=a[g][1],c.y=a[g][2],t=Q(d.length,e&&e.length||0))},m=[],n=[],p="",q="",r=0,t=Q(d.length,e&&e.length||0);for(;r<t;r++){d[r]&&(p=d[r][0]);"C"!=p&&(m[r]=p,r&&(q=m[r-1]));d[r]=h(d[r],f,q);"A"!=m[r]&&"C"==p&&(m[r]="C");k(d,r);e&&(e[r]&&(p=e[r][0]),"C"!=p&&(n[r]=p,r&&(q=n[r-1])),e[r]=h(e[r],g,q),"A"!=n[r]&&"C"==p&&(n[r]="C"),k(e,r));l(d,e,f,g,r);l(e,d,g,f,r);var u=d[r],w=e&&e[r],x=u.length,z=e&&w.length;f.x=u[x-2];f.y=
u[x-1];f.bx=V(u[x-4])||f.x;f.by=V(u[x-3])||f.y;g.bx=e&&(V(w[z-4])||g.x);g.by=e&&(V(w[z-3])||g.y);g.x=e&&w[z-2];g.y=e&&w[z-1]}e||(c.curve=ua(d));return e?[d,e]:d},null,ua);b._parseDots=g(function(a){for(var c=[],d=0,e=a.length;d<e;d++){var f={},g=a[d].match(/^([^:]*):?([\d\.]*)/);f.color=b.getRGB(g[1]);if(f.color.error)return null;f.color=f.color.hex;g[2]&&(f.offset=g[2]+"%");c.push(f)}d=1;for(e=c.length-1;d<e;d++)if(!c[d].offset){a=V(c[d-1].offset||0);g=0;for(f=d+1;f<e;f++)if(c[f].offset){g=c[f].offset;
break}g||(g=100,f=e);g=V(g);for(g=(g-a)/(f-d+1);d<f;d++)a+=g,c[d].offset=a+"%"}return c});var Za=b._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};b._tofront=function(a,b){b.top!==a&&(Za(a,b),a.next=null,a.prev=b.top,b.top.next=a,b.top=a)};b._toback=function(a,b){b.bottom!==a&&(Za(a,b),a.next=b.bottom,a.prev=null,b.bottom.prev=a,b.bottom=a)};b._insertafter=function(a,b,c){Za(a,c);b==c.top&&(c.top=a);b.next&&(b.next.prev=
a);a.next=b.next;a.prev=b;b.next=a};b._insertbefore=function(a,b,c){Za(a,c);b==c.bottom&&(c.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var vb=b.toMatrix=function(a,b){var c=hb(a),d={_:{transform:""},getBBox:function(){return c}};jb(d,b);return d.matrix};b.transformPath=function(a,b){return eb(a,vb(a,b))};var jb=b._extractTransform=function(a,c){if(null==c)return a._.transform;c=L(c).replace(/\.{3}|\u2026/g,a._.transform||"");var d=b.parseTransformString(c),e=0,f=0,g=0,h=1,
k=1,l=a._,g=new p;l.transform=d||[];if(d)for(var f=0,m=d.length;f<m;f++){var n=d[f],q=n.length,r=L(n[0]).toLowerCase(),t=n[0]!=r,u=t?g.invert():0,w;"t"==r&&3==q?t?(q=u.x(0,0),r=u.y(0,0),t=u.x(n[1],n[2]),u=u.y(n[1],n[2]),g.translate(t-q,u-r)):g.translate(n[1],n[2]):"r"==r?2==q?(w=w||a.getBBox(1),g.rotate(n[1],w.x+w.width/2,w.y+w.height/2),e+=n[1]):4==q&&(t?(t=u.x(n[2],n[3]),u=u.y(n[2],n[3]),g.rotate(n[1],t,u)):g.rotate(n[1],n[2],n[3]),e+=n[1]):"s"==r?2==q||3==q?(w=w||a.getBBox(1),g.scale(n[1],n[q-
1],w.x+w.width/2,w.y+w.height/2),h*=n[1],k*=n[q-1]):5==q&&(t?(t=u.x(n[3],n[4]),u=u.y(n[3],n[4]),g.scale(n[1],n[2],t,u)):g.scale(n[1],n[2],n[3],n[4]),h*=n[1],k*=n[2]):"m"==r&&7==q&&g.add(n[1],n[2],n[3],n[4],n[5],n[6]);l.dirtyT=1;a.matrix=g}a.matrix=g;l.sx=h;l.sy=k;l.deg=e;l.dx=f=g.e;l.dy=g=g.f;1==h&&1==k&&!e&&l.bbox?(l.bbox.x+=+f,l.bbox.y+=+g):l.dirtyT=1},wb=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],a[3]]:
[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}},Mb=b._equaliseTransform=function(a,c){c=L(c).replace(/\.{3}|\u2026/g,a);a=b.parseTransformString(a)||[];c=b.parseTransformString(c)||[];for(var d=Q(a.length,c.length),e=[],f=[],g=0,h,k,l,m;g<d;g++){l=a[g]||wb(c[g]);m=c[g]||wb(l);if(l[0]!=m[0]||"r"==l[0].toLowerCase()&&(l[2]!=m[2]||l[3]!=m[3])||"s"==l[0].toLowerCase()&&(l[3]!=m[3]||l[4]!=m[4]))return;e[g]=[];f[g]=[];h=0;for(k=Q(l.length,m.length);h<k;h++)h in l&&(e[g][h]=
l[h]),h in m&&(f[g][h]=m[h])}return{from:e,to:f}};b._getContainer=function(a,c,d,e){var f;f=null!=e||b.is(a,"object")?a:w.doc.getElementById(a);if(null!=f)return f.tagName?null==c?{container:f,width:f.style.pixelWidth||f.offsetWidth,height:f.style.pixelHeight||f.offsetHeight}:{container:f,width:c,height:d}:{container:1,x:a,y:c,width:d,height:e}};b.pathToRelative=Lb;b._engine={};b.path2curve=Na;b.matrix=function(a,b,c,d,e,f){return new p(a,b,c,d,e,f)};(function(a){function c(a){return a[0]*a[0]+a[1]*
a[1]}function d(a){var b=I.sqrt(c(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}a.add=function(a,b,c,d,e,f){var g=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];b=[[a,c,e],[b,d,f],[0,0,1]];a&&a instanceof p&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(c=0;3>c;c++){for(d=e=0;3>d;d++)e+=h[a][d]*b[d][c];g[a][c]=e}this.a=g[0][0];this.b=g[1][0];this.c=g[0][1];this.d=g[1][1];this.e=g[0][2];this.f=g[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new p(this.d/
a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,0,1,a,b)};a.scale=function(a,b,c,d){null==b&&(b=a);(c||d)&&this.add(1,0,0,1,c,d);this.add(a,0,0,b,0,0);(c||d)&&this.add(1,0,0,1,-c,-d)};a.rotate=function(a,c,d){a=b.rad(a);c=c||0;d=d||0;var e=+I.cos(a).toFixed(9);a=+I.sin(a).toFixed(9);this.add(e,a,-a,e,c,d);this.add(1,0,0,1,-c,-d)};a.x=function(a,
b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[L.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return b.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+this.get(0)+", M12\x3d"+this.get(2)+", M21\x3d"+this.get(1)+", M22\x3d"+this.get(3)+
", Dx\x3d"+this.get(4)+", Dy\x3d"+this.get(5)+", sizingmethod\x3d'auto expand')"};a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var e=[[this.a,this.c],[this.b,this.d]];a.scalex=I.sqrt(c(e[0]));d(e[0]);a.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1];e[1]=[e[1][0]-e[0][0]*a.shear,e[1][1]-e[0][1]*a.shear];a.scaley=I.sqrt(c(e[1]));d(e[1]);a.shear/=a.scaley;var f=-e[0][1],e=e[1][1];0>e?(a.rotate=b.deg(I.acos(e)),0>f&&(a.rotate=360-a.rotate)):
a.rotate=b.deg(I.asin(f));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this.split();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:
"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(p.prototype);for(var Ib=function(){this.returnValue=!1},xb=function(){return this.originalEvent.preventDefault()},Nb=function(){this.cancelBubble=!0},qb=function(){return this.originalEvent.stopPropagation()},yb=function(a){return{x:a.clientX+(w.doc.documentElement.scrollLeft||w.doc.body.scrollLeft),y:a.clientY+(w.doc.documentElement.scrollTop||w.doc.body.scrollTop)}},kb=function(){if(w.doc.addEventListener)return function(a,
b,c,d){var e=function(a){var b=yb(a);return c.call(d,a,b.x,b.y)};a.addEventListener(b,e,!1);if(P&&K[b]){var f=function(b){for(var e=yb(b),f=b,g=0,h=b.targetTouches&&b.targetTouches.length;g<h;g++)if(b.targetTouches[g].target==a){b=b.targetTouches[g];b.originalEvent=f;b.preventDefault=xb;b.stopPropagation=qb;break}return c.call(d,b,e.x,e.y)};a.addEventListener(K[b],f,!1)}return function(){a.removeEventListener(b,e,!1);P&&K[b]&&a.removeEventListener(K[b],f,!1);return!0}};if(w.doc.attachEvent)return function(a,
b,c,d){var e=function(a){a=a||w.win.event;var b=a.clientX+(w.doc.documentElement.scrollLeft||w.doc.body.scrollLeft),e=a.clientY+(w.doc.documentElement.scrollTop||w.doc.body.scrollTop);a.preventDefault=a.preventDefault||Ib;a.stopPropagation=a.stopPropagation||Nb;return c.call(d,a,b,e)};a.attachEvent("on"+b,e);return function(){a.detachEvent("on"+b,e);return!0}}}(),za=[],$a=function(a){for(var b=a.clientX,c=a.clientY,d=w.doc.documentElement.scrollTop||w.doc.body.scrollTop,e=w.doc.documentElement.scrollLeft||
w.doc.body.scrollLeft,f,g=za.length;g--;){f=za[g];if(P&&a.touches)for(var k=a.touches.length,l;k--;){if(l=a.touches[k],l.identifier==f.el._drag.id){b=l.clientX;c=l.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();var k=f.el.node,m=k.nextSibling,n=k.parentNode,p=k.style.display;w.win.opera&&n.removeChild(k);k.style.display="none";l=f.el.paper.getElementByPoint(b,c);k.style.display=p;w.win.opera&&(m?n.insertBefore(k,m):n.appendChild(k));l&&h("raphael.drag.over."+
f.el.id,f.el,l);b+=e;c+=d;h("raphael.drag.move."+f.el.id,f.move_scope||f.el,b-f.el._drag.x,c-f.el._drag.y,b,c,a)}},lb=function(a){b.unmousemove($a).unmouseup(lb);for(var c=za.length,d;c--;)d=za[c],d.el._drag={},h("raphael.drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,a);za=[]},aa=b.el={},zb=M.length;zb--;)(function(a){b[a]=aa[a]=function(c,d){b.is(c,"function")&&(this.events=this.events||[],this.events.push({name:a,f:c,unbind:kb(this.shape||this.node||w.doc,a,c,d||this)}));return this};
b["un"+a]=aa["un"+a]=function(c){for(var d=this.events||[],e=d.length;e--;)d[e].name!=a||!b.is(c,"undefined")&&d[e].f!=c||(d[e].unbind(),d.splice(e,1),!d.length&&delete this.events);return this}})(M[zb]);aa.data=function(a,c){var d=Ca[this.id]=Ca[this.id]||{};if(0==arguments.length)return d;if(1==arguments.length){if(b.is(a,"object")){for(var e in a)a.hasOwnProperty(e)&&this.data(e,a[e]);return this}h("raphael.data.get."+this.id,this,d[a],a);return d[a]}d[a]=c;h("raphael.data.set."+this.id,this,c,
a);return this};aa.removeData=function(a){null==a?Ca[this.id]={}:Ca[this.id]&&delete Ca[this.id][a];return this};aa.getData=function(){return e(Ca[this.id]||{})};aa.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)};aa.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Ia=[];aa.drag=function(a,c,d,e,f,g){function k(l){(l.originalEvent||l).preventDefault();var m=l.clientX,n=l.clientY,p=w.doc.documentElement.scrollTop||w.doc.body.scrollTop,q=w.doc.documentElement.scrollLeft||
w.doc.body.scrollLeft;this._drag.id=l.identifier;if(P&&l.touches)for(var r=l.touches.length,t;r--;)if(t=l.touches[r],this._drag.id=t.identifier,t.identifier==this._drag.id){m=t.clientX;n=t.clientY;break}this._drag.x=m+q;this._drag.y=n+p;!za.length&&b.mousemove($a).mouseup(lb);za.push({el:this,move_scope:e,start_scope:f,end_scope:g});c&&h.on("raphael.drag.start."+this.id,c);a&&h.on("raphael.drag.move."+this.id,a);d&&h.on("raphael.drag.end."+this.id,d);h("raphael.drag.start."+this.id,f||e||this,l.clientX+
q,l.clientY+p,l)}this._drag={};Ia.push({el:this,start:k});this.mousedown(k);return this};aa.onDragOver=function(a){a?h.on("raphael.drag.over."+this.id,a):h.unbind("raphael.drag.over."+this.id)};aa.undrag=function(){for(var a=Ia.length;a--;)Ia[a].el==this&&(this.unmousedown(Ia[a].start),Ia.splice(a,1),h.unbind("raphael.drag.*."+this.id));!Ia.length&&b.unmousemove($a).unmouseup(lb);za=[]};C.circle=function(a,c,d){a=b._engine.circle(this,a||0,c||0,d||0);this.__set__&&this.__set__.push(a);return a};C.rect=
function(a,c,d,e,f){a=b._engine.rect(this,a||0,c||0,d||0,e||0,f||0);this.__set__&&this.__set__.push(a);return a};C.ellipse=function(a,c,d,e){a=b._engine.ellipse(this,a||0,c||0,d||0,e||0);this.__set__&&this.__set__.push(a);return a};C.path=function(a){a&&!b.is(a,"string")&&!b.is(a[0],S)&&(a+="");var c=b._engine.path(b.format[v](b,arguments),this);this.__set__&&this.__set__.push(c);return c};C.image=function(a,c,d,e,f){a=b._engine.image(this,a||"about:blank",c||0,d||0,e||0,f||0);this.__set__&&this.__set__.push(a);
return a};C.text=function(a,c,d){a=b._engine.text(this,a||0,c||0,L(d));this.__set__&&this.__set__.push(a);return a};C.set=function(a){!b.is(a,"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var c=new va(a);this.__set__&&this.__set__.push(c);c.paper=this;c.type="set";return c};C.setStart=function(a){this.__set__=a||this.set()};C.setFinish=function(a){a=this.__set__;delete this.__set__;return a};C.getSize=function(){var a=this.canvas.parentNode;return{width:a.offsetWidth,height:a.offsetHeight}};
C.setSize=function(a,c){return b._engine.setSize.call(this,a,c)};C.setViewBox=function(a,c,d,e,f){return b._engine.setViewBox.call(this,a,c,d,e,f)};C.top=C.bottom=null;C.raphael=b;C.getElementByPoint=function(a,b){var c,d,e=this.canvas,f=w.doc.elementFromPoint(a,b);if(w.win.opera&&"svg"==f.tagName){d=e.getBoundingClientRect();c=e.ownerDocument;var g=c.body,h=c.documentElement;c=d.top+(w.win.pageYOffset||h.scrollTop||g.scrollTop)-(h.clientTop||g.clientTop||0);d=d.left+(w.win.pageXOffset||h.scrollLeft||
g.scrollLeft)-(h.clientLeft||g.clientLeft||0);g=e.createSVGRect();g.x=a-d;g.y=b-c;g.width=g.height=1;c=e.getIntersectionList(g,null);c.length&&(f=c[c.length-1])}if(!f)return null;for(;f.parentNode&&f!=e.parentNode&&!f.raphael;)f=f.parentNode;f==this.canvas.parentNode&&(f=e);return f=f&&f.raphael?this.getById(f.raphaelid):null};C.getElementsByBBox=function(a){var c=this.set();this.forEach(function(d){b.isBBoxIntersect(d.getBBox(),a)&&c.push(d)});return c};C.getById=function(a){for(var b=this.bottom;b;){if(b.id==
a)return b;b=b.next}return null};C.forEach=function(a,b){for(var c=this.bottom;c&&!1!==a.call(b,c);)c=c.next;return this};C.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(d){d.isPointInside(a,b)&&c.push(d)});return c};aa.isPointInside=function(a,c){var d=this.realPath=Xa[this.type](this);this.attr("transform")&&this.attr("transform").length&&(d=b.transformPath(d,this.attr("transform")));return b.isPointInsidePath(d,a,c)};aa.getBBox=function(a){if(this.removed)return{};var b=
this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=Xa[this.type](this),b.bboxwt=hb(this.realPath),b.bboxwt.toString=t,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=Xa[this.type](this);b.bbox=hb(eb(this.realPath,this.matrix));b.bbox.toString=t;b.dirty=b.dirtyT=0}return b.bbox};aa.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};aa.glow=function(a){if("text"==
this.type)return null;a=a||{};var b=(a.width||10)+(+this.attr("stroke-width")||1),c=a.fill||!1,d=a.opacity||.5,e=a.offsetx||0,f=a.offsety||0;a=a.color||"#000";for(var g=b/2,h=this.paper,k=h.set(),l=this.realPath||Xa[this.type](this),l=this.matrix?eb(l,this.matrix):l,m=1;m<g+1;m++)k.push(h.path(l).attr({stroke:a,fill:c?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b/g*m).toFixed(3),opacity:+(d/g).toFixed(3)}));return k.insertBefore(this).translate(e,f)};var Oa=function(a,
d,e,g,h,k,l,m,n){return null==n?c(a,d,e,g,h,k,l,m):b.findDotsAtSegment(a,d,e,g,h,k,l,m,f(a,d,e,g,h,k,l,m,n))},Ta=function(a,c){return function(d,e,f){d=Na(d);for(var g,h,k,l,m="",n={},p=0,q=0,r=d.length;q<r;q++){k=d[q];if("M"==k[0])g=+k[1],h=+k[2];else{l=Oa(g,h,k[1],k[2],k[3],k[4],k[5],k[6]);if(p+l>e){if(c&&!n.start){g=Oa(g,h,k[1],k[2],k[3],k[4],k[5],k[6],e-p);m+=["C"+g.start.x,g.start.y,g.m.x,g.m.y,g.x,g.y];if(f)return m;n.start=m;m=["M"+g.x,g.y+"C"+g.n.x,g.n.y,g.end.x,g.end.y,k[5],k[6]].join();
p+=l;g=+k[5];h=+k[6];continue}if(!a&&!c)return g=Oa(g,h,k[1],k[2],k[3],k[4],k[5],k[6],e-p),{x:g.x,y:g.y,alpha:g.alpha}}p+=l;g=+k[5];h=+k[6]}m+=k.shift()+k}n.end=m;g=a?p:c?n:b.findDotsAtSegment(g,h,k[0],k[1],k[2],k[3],k[4],k[5],1);g.alpha&&(g={x:g.x,y:g.y,alpha:g.alpha});return g}},mb=Ta(1),Ab=Ta(),nb=Ta(0,1);b.getTotalLength=mb;b.getPointAtLength=Ab;b.getSubpath=function(a,b,c){if(1E-6>this.getTotalLength(a)-c)return nb(a,b).end;a=nb(a,c,1);return b?nb(a,b).end:a};aa.getTotalLength=function(){var a=
this.getPath();if(a)return this.node.getTotalLength?this.node.getTotalLength():mb(a)};aa.getPointAtLength=function(a){var b=this.getPath();if(b)return Ab(b,a)};aa.getPath=function(){var a,c=b._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return c&&(a=c(this)),a};aa.getSubpath=function(a,c){var d=this.getPath();if(d)return b.getSubpath(d,a,c)};var fa=b.easing_formulas={linear:function(a){return a},"\x3c":function(a){return O(a,1.7)},"\x3e":function(a){return O(a,.48)},"\x3c\x3e":function(a){var b=
.48-a/1.04,c=I.sqrt(.1734+b*b);a=c-b;a=O(N(a),1/3)*(0>a?-1:1);b=-c-b;b=O(N(b),1/3)*(0>b?-1:1);a=a+b+.5;return 3*(1-a)*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){return a==!!a?a:O(2,-10*a)*I.sin(2*(a-.075)*J/.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+.9375):(a-=2.625/2.75,a=7.5625*a*a+.984375);return a}};fa.easeIn=fa["ease-in"]=
fa["\x3c"];fa.easeOut=fa["ease-out"]=fa["\x3e"];fa.easeInOut=fa["ease-in-out"]=fa["\x3c\x3e"];fa["back-in"]=fa.backIn;fa["back-out"]=fa.backOut;var X=[],ab=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(a){setTimeout(a,16)},oa=function(){for(var a=+new Date,c=0;c<X.length;c++){var d=X[c];if(!d.el.removed&&!d.paused){var e=a-d.start,f=d.ms,g=d.easing,k=d.from,m=d.diff,p=d.to,q=d.el,r={},t,u={},w;d.initstatus?
(e=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*f,d.status=d.initstatus,delete d.initstatus,d.stop&&X.splice(c--,1)):d.status=(d.prev+e/f*(d.percent-d.prev))/d.anim.top;if(!(0>e))if(e<f){var v=g(e/f),x;for(x in k)if(k.hasOwnProperty(x)){switch(l[x]){case H:t=+k[x]+v*f*m[x];break;case "colour":t="rgb("+[Ba(da(k[x].r+v*f*m[x].r)),Ba(da(k[x].g+v*f*m[x].g)),Ba(da(k[x].b+v*f*m[x].b))].join()+")";break;case "path":t=[];e=0;for(g=k[x].length;e<g;e++){t[e]=[k[x][e][0]];p=1;for(u=k[x][e].length;p<u;p++)t[e][p]=
+k[x][e][p]+v*f*m[x][e][p];t[e]=t[e].join(" ")}t=t.join(" ");break;case "transform":if(m[x].real)for(t=[],e=0,g=k[x].length;e<g;e++)for(t[e]=[k[x][e][0]],p=1,u=k[x][e].length;p<u;p++)t[e][p]=k[x][e][p]+v*f*m[x][e][p];else t=function(a){return+k[x][a]+v*f*m[x][a]},t=[["m",t(0),t(1),t(2),t(3),t(4),t(5)]];break;case "csv":if("clip-rect"==x)for(t=[],e=4;e--;)t[e]=+k[x][e]+v*f*m[x][e];break;default:for(g=[].concat(k[x]),t=[],e=q.paper.customAttributes[x].length;e--;)t[e]=+g[e]+v*f*m[x][e]}r[x]=t}q.attr(r);
(function(a,b,c){setTimeout(function(){h("raphael.anim.frame."+a,b,c)})})(q.id,q,d.anim)}else{(function(a,c,d){setTimeout(function(){h("raphael.anim.frame."+c.id,c,d);h("raphael.anim.finish."+c.id,c,d);b.is(a,"function")&&a.call(c)})})(d.callback,q,d.anim);q.attr(p);X.splice(c--,1);if(1<d.repeat&&!d.next){for(w in p)p.hasOwnProperty(w)&&(u[w]=d.totalOrigin[w]);d.el.attr(u);n(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&n(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}}X.length&&
ab(oa)},Ba=function(a){return 255<a?255:0>a?0:a};aa.animateWith=function(a,c,d,e,f,g){if(this.removed)return g&&g.call(this),this;d=d instanceof q?d:b.animation(d,e,f,g);n(d,this,d.percents[0],null,this.attr());d=0;for(e=X.length;d<e;d++)if(X[d].anim==c&&X[d].el==a){X[e-1].start=X[d].start;break}return this};aa.onAnimation=function(a){a?h.on("raphael.anim.frame."+this.id,a):h.unbind("raphael.anim.frame."+this.id);return this};q.prototype.delay=function(a){var b=new q(this.anim,this.ms);b.times=this.times;
b.del=+a||0;return b};q.prototype.repeat=function(a){var b=new q(this.anim,this.ms);b.del=this.del;b.times=I.floor(Q(a,0))||1;return b};b.animation=function(a,c,d,e){if(a instanceof q)return a;if(b.is(d,"function")||!d)e=e||d||null,d=null;a=Object(a);c=+c||0;var f={},g,h;for(h in a)a.hasOwnProperty(h)&&V(h)!=h&&V(h)+"%"!=h&&(g=!0,f[h]=a[h]);if(g)return d&&(f.easing=d),e&&(f.callback=e),new q({100:f},c);if(e){d=0;for(var k in a)f=ea(k),a.hasOwnProperty(k)&&f>d&&(d=f);d+="%";!a[d].callback&&(a[d].callback=
e)}return new q(a,c)};aa.animate=function(a,c,d,e){if(this.removed)return e&&e.call(this),this;a=a instanceof q?a:b.animation(a,c,d,e);n(a,this,a.percents[0],null,this.attr());return this};aa.setTime=function(a,b){a&&null!=b&&this.status(a,R(b,a.ms)/a.ms);return this};aa.status=function(a,b){var c=[],d=0,e,f;if(null!=b)return n(a,this,-1,R(b,1)),this;for(e=X.length;d<e;d++)if(f=X[d],f.el.id==this.id&&(!a||f.anim==a)){if(a)return f.status;c.push({anim:f.anim,status:f.status})}return a?0:c};aa.pause=
function(a){for(var b=0;b<X.length;b++)X[b].el.id!=this.id||a&&X[b].anim!=a||!1===h("raphael.anim.pause."+this.id,this,X[b].anim)||(X[b].paused=!0);return this};aa.resume=function(a){for(var b=0;b<X.length;b++)if(X[b].el.id==this.id&&(!a||X[b].anim==a)){var c=X[b];!1!==h("raphael.anim.resume."+this.id,this,c.anim)&&(delete c.paused,this.status(c.anim,c.status))}return this};aa.stop=function(a){for(var b=0;b<X.length;b++)X[b].el.id!=this.id||a&&X[b].anim!=a||!1!==h("raphael.anim.stop."+this.id,this,
X[b].anim)&&X.splice(b--,1);return this};h.on("raphael.remove",r);h.on("raphael.clear",r);aa.toString=function(){return"Raphaël’s object"};var va=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)!a[b]||a[b].constructor!=aa.constructor&&a[b].constructor!=va||(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},na=va.prototype;na.push=function(){for(var a,b,c=0,d=arguments.length;c<d;c++)!(a=arguments[c])||a.constructor!=aa.constructor&&
a.constructor!=va||(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this};na.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};na.forEach=function(a,b){for(var c=0,d=this.items.length;c<d&&!1!==a.call(b,this.items[c],c);c++);return this};for(var ob in aa)aa.hasOwnProperty(ob)&&(na[ob]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][v](c,b)})}}(ob));na.attr=function(a,c){if(a&&b.is(a,S)&&b.is(a[0],"object"))for(var d=
0,e=a.length;d<e;d++)this.items[d].attr(a[d]);else for(d=0,e=this.items.length;d<e;d++)this.items[d].attr(a,c);return this};na.clear=function(){for(;this.length;)this.pop()};na.splice=function(a,b,c){a=0>a?Q(this.length+a,0):a;b=Q(0,R(this.length-a,b));var d=[],e=[],f=[],g;for(g=2;g<arguments.length;g++)f.push(arguments[g]);for(g=0;g<b;g++)e.push(this[a+g]);for(;g<this.length-a;g++)d.push(this[a+g]);var h=f.length;for(g=0;g<h+d.length;g++)this.items[a+g]=this[a+g]=g<h?f[g]:d[g-h];for(g=this.items.length=
this.length-=b-h;this[g];)delete this[g++];return new va(e)};na.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};na.animate=function(a,c,d,e){!b.is(d,"function")&&d||(e=d||null);var f=this.items.length,g=f,h=this,k;if(!f)return this;e&&(k=function(){!--f&&e.call(h)});d=b.is(d,"string")?d:k;c=b.animation(a,c,d,k);for(a=this.items[--g].animate(c);g--;)this.items[g]&&!this.items[g].removed&&this.items[g].animateWith(a,c,c),this.items[g]&&!this.items[g].removed||
f--;return this};na.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};na.getBBox=function(){for(var a=[],b=[],c=[],d=[],e=this.items.length;e--;)if(!this.items[e].removed){var f=this.items[e].getBBox();a.push(f.x);b.push(f.y);c.push(f.x+f.width);d.push(f.y+f.height)}a=R[v](0,a);b=R[v](0,b);c=Q[v](0,c);d=Q[v](0,d);return{x:a,y:b,x2:c,y2:d,width:c-a,height:d-b}};na.clone=function(a){a=this.paper.set();for(var b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());
return a};na.toString=function(){return"Raphaël‘s set"};na.glow=function(a){var b=this.paper.set();this.forEach(function(c,d){var e=c.glow(a);null!=e&&e.forEach(function(a,c){b.push(a)})});return b};na.isPointInside=function(a,b){var c=!1;this.forEach(function(d){if(d.isPointInside(a,b))return c=!0,!1});return c};b.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],d;for(d in a.face)a.face.hasOwnProperty(d)&&(b.face[d]=a.face[d]);
this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=ea(a.face["units-per-em"],10);for(var e in a.glyphs)if(a.glyphs.hasOwnProperty(e)&&(c=a.glyphs[e],b.glyphs[e]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var f in c.k)c.hasOwnProperty(f)&&(b.glyphs[e].k[f]=c.k[f])}return a};C.getFont=function(a,c,d,e){e=e||"normal";d=d||"normal";c=+c||{normal:400,bold:700,lighter:300,bolder:800}[c]||
400;if(b.fonts){var f=b.fonts[a];if(!f){a=new RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i");for(var g in b.fonts)if(b.fonts.hasOwnProperty(g)&&a.test(g)){f=b.fonts[g];break}}var h;if(f)for(g=0,a=f.length;g<a&&(h=f[g],h.face["font-weight"]!=c||h.face["font-style"]!=d&&h.face["font-style"]||h.face["font-stretch"]!=e);g++);return h}};C.print=function(a,c,d,e,f,g,h,k){g=g||"middle";h=Q(R(h||0,1),-1);k=Q(R(k||1,3),1);d=L(d).split("");var l=0,m=0,n="";b.is(e,"string")&&(e=this.getFont(e));
if(e){f=(f||16)/e.face["units-per-em"];var p=e.face.bbox.split(x),q=+p[0],r=p[3]-p[1],t=0;g=+p[1]+("baseline"==g?r+ +e.face.descent:r/2);for(var p=0,u=d.length;p<u;p++){if("\n"==d[p])m=v=l=0,t+=r*k;else var w=m&&e.glyphs[d[p-1]]||{},v=e.glyphs[d[p]],l=l+(m?(w.w||e.w)+(w.k&&w.k[d[p]]||0)+e.w*h:0),m=1;v&&v.d&&(n+=b.transformPath(v.d,["t",l*f,t*f,"s",f,f,q,g,"t",(a-q)/f,(c-g)/f]))}}return this.path(n).attr({fill:"#000",stroke:"none"})};C.add=function(a){if(b.is(a,"array"))for(var c=this.set(),d=0,e=
a.length,f;d<e;d++)f=a[d]||{},B.hasOwnProperty(f.type)&&c.push(this[f.type]().attr(f));return c};b.format=function(a,c){var d=b.is(c,S)?[0].concat(c):arguments;a&&b.is(a,"string")&&d.length-1&&(a=a.replace(y,function(a,b){return null==d[++b]?"":d[b]}));return a||""};b.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,d){var e=d;c.replace(b,function(a,b,c,d,f){b=b||d;e&&(b in e&&(e=e[b]),"function"==typeof e&&f&&(e=e()))});return e=
(null==e||e==d?a:e)+""};return function(b,d){return String(b).replace(a,function(a,b){return c(a,b,d)})}}();b.ninja=function(){G?w.win.Raphael=F:delete Raphael;return b};b.st=na;h.on("raphael.DOMload",function(){u=!0});(function(a,c,d){function e(){/in/.test(a.readyState)?setTimeout(e,9):b.eve("raphael.DOMload")}null==a.readyState&&a.addEventListener&&(a.addEventListener(c,d=function(){a.removeEventListener(c,d,!1);a.readyState="complete"},!1),a.readyState="loading");e()})(document,"DOMContentLoaded");
(function(){if(b.svg){var a=String,c=parseFloat,d=parseInt,e=Math,f=e.max,g=e.abs,h=e.pow,k=/[, ]+/,l=b.eve,m={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},n={};b.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var p=function(c,d){if(d){"string"==typeof c&&(c=p(c));for(var e in d)d.hasOwnProperty(e)&&("xlink:"==e.substring(0,
6)?c.setAttributeNS("http://www.w3.org/1999/xlink",e.substring(6),a(d[e])):c.setAttribute(e,a(d[e])))}else c=b._g.doc.createElementNS("http://www.w3.org/2000/svg",c),c.style&&(c.style.webkitTapHighlightColor="rgba(0,0,0,0)");return c},q=function(d,k){var l="linear",m=d.id+k,n=.5,q=.5,r=d.node,t=d.paper,u=r.style,w=b._g.doc.getElementById(m);if(!w){k=a(k).replace(b._radial_gradient,function(a,b,d){l="radial";b&&d&&(n=c(b),q=c(d),a=2*(.5<q)-1,.25<h(n-.5,2)+h(q-.5,2)&&(q=e.sqrt(.25-h(n-.5,2))*a+.5)&&
.5!=q&&(q=q.toFixed(5)-1E-5*a));return""});k=k.split(/\s*\-\s*/);if("linear"==l){w=k.shift();w=-c(w);if(isNaN(w))return null;var v=[0,0,e.cos(b.rad(w)),e.sin(b.rad(w))],w=1/(f(g(v[2]),g(v[3]))||1);v[2]*=w;v[3]*=w;0>v[2]&&(v[0]=-v[2],v[2]=0);0>v[3]&&(v[1]=-v[3],v[3]=0)}var x=b._parseDots(k);if(!x)return null;m=m.replace(/[\(\)\s,\xb0#]/g,"_");d.gradient&&m!=d.gradient.id&&(t.defs.removeChild(d.gradient),delete d.gradient);if(!d.gradient)for(w=p(l+"Gradient",{id:m}),d.gradient=w,p(w,"radial"==l?{fx:n,
fy:q}:{x1:v[0],y1:v[1],x2:v[2],y2:v[3],gradientTransform:d.matrix.invert()}),t.defs.appendChild(w),t=0,v=x.length;t<v;t++)w.appendChild(p("stop",{offset:x[t].offset?x[t].offset:t?"100%":"0%","stop-color":x[t].color||"#fff"}))}p(r,{fill:"url('"+document.location+"#"+m+"')",opacity:1,"fill-opacity":1});u.fill="";u.opacity=1;return u.fillOpacity=1},r=function(a){var b=a.getBBox(1);p(a.pattern,{patternTransform:a.matrix.invert()+" translate("+b.x+","+b.y+")"})},t=function(c,d,e){if("path"==c.type){for(var f=
a(d).toLowerCase().split("-"),g=c.paper,h=e?"end":"start",k=c.node,l=c.attrs,q=l["stroke-width"],r=f.length,t="classic",u,w,v=3,x=3,y=5;r--;)switch(f[r]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":t=f[r];break;case "wide":x=5;break;case "narrow":x=2;break;case "long":v=5;break;case "short":v=2}"open"==t?(v+=2,x+=2,y+=2,u=1,w=e?4:1,f={fill:"none",stroke:l.stroke}):(w=u=v/2,f={fill:l.stroke,stroke:"none"});c._.arrows?e?(c._.arrows.endPath&&n[c._.arrows.endPath]--,
c._.arrows.endMarker&&n[c._.arrows.endMarker]--):(c._.arrows.startPath&&n[c._.arrows.startPath]--,c._.arrows.startMarker&&n[c._.arrows.startMarker]--):c._.arrows={};if("none"!=t){var r="raphael-marker-"+t,z="raphael-marker-"+h+t+v+x+"-obj"+c.id;b._g.doc.getElementById(r)?n[r]++:(g.defs.appendChild(p(p("path"),{"stroke-linecap":"round",d:m[t],id:r})),n[r]=1);var B=b._g.doc.getElementById(z);B?(n[z]++,v=B.getElementsByTagName("use")[0]):(B=p(p("marker"),{id:z,markerHeight:x,markerWidth:v,orient:"auto",
refX:w,refY:x/2}),v=p(p("use"),{"xlink:href":"#"+r,transform:(e?"rotate(180 "+v/2+" "+x/2+") ":"")+"scale("+v/y+","+x/y+")","stroke-width":(1/((v/y+x/y)/2)).toFixed(4)}),B.appendChild(v),g.defs.appendChild(B),n[z]=1);p(v,f);g=u*("diamond"!=t&&"oval"!=t);e?(e=c._.arrows.startdx*q||0,q=b.getTotalLength(l.path)-g*q):(e=g*q,q=b.getTotalLength(l.path)-(c._.arrows.enddx*q||0));f={};f["marker-"+h]="url(#"+z+")";if(q||e)f.d=b.getSubpath(l.path,e,q);p(k,f);c._.arrows[h+"Path"]=r;c._.arrows[h+"Marker"]=z;c._.arrows[h+
"dx"]=g;c._.arrows[h+"Type"]=t;c._.arrows[h+"String"]=d}else e?(e=c._.arrows.startdx*q||0,q=b.getTotalLength(l.path)-e):(e=0,q=b.getTotalLength(l.path)-(c._.arrows.enddx*q||0)),c._.arrows[h+"Path"]&&p(k,{d:b.getSubpath(l.path,e,q)}),delete c._.arrows[h+"Path"],delete c._.arrows[h+"Marker"],delete c._.arrows[h+"dx"],delete c._.arrows[h+"Type"],delete c._.arrows[h+"String"];for(f in n)n.hasOwnProperty(f)&&!n[f]&&(c=b._g.doc.getElementById(f))&&c.parentNode.removeChild(c)}},u={"-":[3,1],".":[1,1],"-.":[3,
1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},w=function(b,c,d){if(c=u[a(c).toLowerCase()]){var e=b.attrs["stroke-width"]||"1";d={round:e,square:e,butt:0}[b.attrs["stroke-linecap"]||d["stroke-linecap"]]||0;for(var f=[],g=c.length;g--;)f[g]=c[g]*e+(g%2?1:-1)*d;p(b.node,{"stroke-dasharray":f.join(",")})}else p(b.node,{"stroke-dasharray":"none"})},v=function(c,e){var h=c.node,l=c.attrs,m=h.style.visibility;h.style.visibility="hidden";
for(var n in e)if(e.hasOwnProperty(n)&&b._availableAttrs.hasOwnProperty(n)){var u=e[n];l[n]=u;switch(n){case "blur":c.blur(u);break;case "title":var v=h.getElementsByTagName("title");v.length&&(v=v[0])?v.firstChild.nodeValue=u:(v=p("title"),u=b._g.doc.createTextNode(u),v.appendChild(u),h.appendChild(v));break;case "href":case "target":v=h.parentNode;if("a"!=v.tagName.toLowerCase()){var y=p("a");v.insertBefore(y,h);y.appendChild(h);v=y}"target"==n?v.setAttributeNS("http://www.w3.org/1999/xlink","show",
"blank"==u?"new":u):v.setAttributeNS("http://www.w3.org/1999/xlink",n,u);break;case "cursor":h.style.cursor=u;break;case "transform":c.transform(u);break;case "arrow-start":t(c,u);break;case "arrow-end":t(c,u,1);break;case "clip-rect":v=a(u).split(k);if(4==v.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var y=p("clipPath"),z=p("rect");y.id=b.createUUID();p(z,{x:v[0],y:v[1],width:v[2],height:v[3]});y.appendChild(z);c.paper.defs.appendChild(y);p(h,{"clip-path":"url(#"+
y.id+")"});c.clip=z}!u&&(u=h.getAttribute("clip-path"))&&((u=b._g.doc.getElementById(u.replace(/(^url\(#|\)$)/g,"")))&&u.parentNode.removeChild(u),p(h,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(p(h,{d:u?l.path=b._pathToAbsolute(u):"M0,0"}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&t(c,c._.arrows.startString),"endString"in c._.arrows&&t(c,c._.arrows.endString,1)));break;case "width":if(h.setAttribute(n,u),c._.dirty=1,l.fx)n="x",u=l.x;else break;case "x":l.fx&&(u=
-l.x-(l.width||0));case "rx":if("rx"==n&&"rect"==c.type)break;case "cx":h.setAttribute(n,u);c.pattern&&r(c);c._.dirty=1;break;case "height":if(h.setAttribute(n,u),c._.dirty=1,l.fy)n="y",u=l.y;else break;case "y":l.fy&&(u=-l.y-(l.height||0));case "ry":if("ry"==n&&"rect"==c.type)break;case "cy":h.setAttribute(n,u);c.pattern&&r(c);c._.dirty=1;break;case "r":"rect"==c.type?p(h,{rx:u,ry:u}):h.setAttribute(n,u);c._.dirty=1;break;case "src":"image"==c.type&&h.setAttributeNS("http://www.w3.org/1999/xlink",
"href",u);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)u/=f(g(c._.sx),g(c._.sy))||1;h.setAttribute(n,u);l["stroke-dasharray"]&&w(c,l["stroke-dasharray"],e);c._.arrows&&("startString"in c._.arrows&&t(c,c._.arrows.startString),"endString"in c._.arrows&&t(c,c._.arrows.endString,1));break;case "stroke-dasharray":w(c,u,e);break;case "fill":var B=a(u).match(b._ISURL);if(B){var y=p("pattern"),A=p("image");y.id=b.createUUID();p(y,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});p(A,{x:0,y:0,
"xlink:href":B[1]});y.appendChild(A);(function(a){b._preload(B[1],function(){var b=this.offsetWidth,c=this.offsetHeight;p(a,{width:b,height:c});p(A,{width:b,height:c})})})(y);c.paper.defs.appendChild(y);p(h,{fill:"url(#"+y.id+")"});c.pattern=y;c.pattern&&r(c);break}v=b.getRGB(u);if(!v.error)delete e.gradient,delete l.gradient,!b.is(l.opacity,"undefined")&&b.is(e.opacity,"undefined")&&p(h,{opacity:l.opacity}),!b.is(l["fill-opacity"],"undefined")&&b.is(e["fill-opacity"],"undefined")&&p(h,{"fill-opacity":l["fill-opacity"]});
else if(("circle"==c.type||"ellipse"==c.type||"r"!=a(u).charAt())&&q(c,u)){if("opacity"in l||"fill-opacity"in l)if(v=b._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,"")))v=v.getElementsByTagName("stop"),p(v[v.length-1],{"stop-opacity":("opacity"in l?l.opacity:1)*("fill-opacity"in l?l["fill-opacity"]:1)});l.gradient=u;l.fill="none";break}v.hasOwnProperty("opacity")&&p(h,{"fill-opacity":1<v.opacity?v.opacity/100:v.opacity});case "stroke":v=b.getRGB(u);h.setAttribute(n,v.hex);"stroke"==
n&&v.hasOwnProperty("opacity")&&p(h,{"stroke-opacity":1<v.opacity?v.opacity/100:v.opacity});"stroke"==n&&c._.arrows&&("startString"in c._.arrows&&t(c,c._.arrows.startString),"endString"in c._.arrows&&t(c,c._.arrows.endString,1));break;case "gradient":"circle"!=c.type&&"ellipse"!=c.type&&"r"==a(u).charAt()||q(c,u);break;case "opacity":l.gradient&&!l.hasOwnProperty("stroke-opacity")&&p(h,{"stroke-opacity":1<u?u/100:u});case "fill-opacity":if(l.gradient){if(v=b._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,
"")))v=v.getElementsByTagName("stop"),p(v[v.length-1],{"stop-opacity":u});break}default:"font-size"==n&&(u=d(u,10)+"px"),v=n.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),h.style[v]=u,c._.dirty=1,h.setAttribute(n,u)}}x(c,e);h.style.visibility=m},x=function(c,e){if("text"==c.type&&(e.hasOwnProperty("text")||e.hasOwnProperty("font")||e.hasOwnProperty("font-size")||e.hasOwnProperty("x")||e.hasOwnProperty("y"))){var f=c.attrs,g=c.node,h=g.firstChild?d(b._g.doc.defaultView.getComputedStyle(g.firstChild,
"").getPropertyValue("font-size"),10):10;if(e.hasOwnProperty("text")){for(f.text=e.text;g.firstChild;)g.removeChild(g.firstChild);for(var k=a(e.text).split("\n"),l=[],m,n=0,q=k.length;n<q;n++)m=p("tspan"),n&&p(m,{dy:1.2*h,x:f.x}),m.appendChild(b._g.doc.createTextNode(k[n])),g.appendChild(m),l[n]=m}else for(l=g.getElementsByTagName("tspan"),n=0,q=l.length;n<q;n++)n?p(l[n],{dy:1.2*h,x:f.x}):p(l[0],{dy:0});p(g,{x:f.x,y:f.y});c._.dirty=1;g=c._getBBox();(f=f.y-(g.y+g.height/2))&&b.is(f,"finite")&&p(l[0],
{dy:f})}},z=function(a){return a.parentNode&&"a"===a.parentNode.tagName.toLowerCase()?a.parentNode:a},B=function(a,c){this[0]=this.node=a;a.raphael=!0;this.id=b._oid++;a.raphaelid=this.id;this.matrix=b.matrix();this.realPath=null;this.paper=c;this.attrs=this.attrs||{};this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null},y=b.el;B.prototype=y;y.constructor=B;b._engine.path=function(a,b){var c=p("path");b.canvas&&
b.canvas.appendChild(c);c=new B(c,b);c.type="path";v(c,{fill:"none",stroke:"#000",path:a});return c};y.rotate=function(b,d,e){if(this.removed)return this;b=a(b).split(k);b.length-1&&(d=c(b[1]),e=c(b[2]));b=c(b[0]);null==e&&(d=e);if(null==d||null==e)e=this.getBBox(1),d=e.x+e.width/2,e=e.y+e.height/2;this.transform(this._.transform.concat([["r",b,d,e]]));return this};y.scale=function(b,d,e,f){if(this.removed)return this;b=a(b).split(k);b.length-1&&(d=c(b[1]),e=c(b[2]),f=c(b[3]));b=c(b[0]);null==d&&
(d=b);null==f&&(e=f);if(null==e||null==f)var g=this.getBBox(1);e=null==e?g.x+g.width/2:e;f=null==f?g.y+g.height/2:f;this.transform(this._.transform.concat([["s",b,d,e,f]]));return this};y.translate=function(b,d){if(this.removed)return this;b=a(b).split(k);b.length-1&&(d=c(b[1]));b=c(b[0])||0;this.transform(this._.transform.concat([["t",b,+d||0]]));return this};y.transform=function(a){var c=this._;if(null==a)return c.transform;b._extractTransform(this,a);this.clip&&p(this.clip,{transform:this.matrix.invert()});
this.pattern&&r(this);this.node&&p(this.node,{transform:this.matrix});if(1!=c.sx||1!=c.sy)a=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};y.hide=function(){this.removed||(this.node.style.display="none");return this};y.show=function(){this.removed||(this.node.style.display="");return this};y.remove=function(){var a=z(this.node);if(!this.removed&&a.parentNode){var c=this.paper;c.__set__&&c.__set__.exclude(this);l.unbind("raphael.*.*."+
this.id);this.gradient&&c.defs.removeChild(this.gradient);b._tear(this,c);a.parentNode.removeChild(a);this.removeData();for(var d in this)this[d]="function"==typeof this[d]?b._removedFactory(d):null;this.removed=!0}};y._getBBox=function(){if("none"==this.node.style.display){this.show();var a=!0}var b=!1,c;this.paper.canvas.parentElement?c=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(c=this.paper.canvas.parentNode.style);c&&"none"==c.display&&(b=!0,c.display="");var d={};try{d=
this.node.getBBox()}catch(e){d={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{d=d||{},b&&(c.display="none")}a&&this.hide();return d};y.attr=function(a,c){if(this.removed)return this;if(null==a){var d={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(d[e]=this.attrs[e]);d.gradient&&"none"==d.fill&&(d.fill=d.gradient)&&delete d.gradient;d.transform=this._.transform;return d}if(null==c&&b.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&
this.attrs.gradient)return this.attrs.gradient;if("transform"==a)return this._.transform;e=a.split(k);for(var d={},f=0,g=e.length;f<g;f++)a=e[f],a in this.attrs?d[a]=this.attrs[a]:b.is(this.paper.customAttributes[a],"function")?d[a]=this.paper.customAttributes[a].def:d[a]=b._availableAttrs[a];return g-1?d:d[e[0]]}if(null==c&&b.is(a,"array")){d={};f=0;for(g=a.length;f<g;f++)d[a[f]]=this.attr(a[f]);return d}null!=c?(d={},d[a]=c):null!=a&&b.is(a,"object")&&(d=a);for(f in d)l("raphael.attr."+f+"."+this.id,
this,d[f]);for(f in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(f)&&d.hasOwnProperty(f)&&b.is(this.paper.customAttributes[f],"function"))for(g in e=this.paper.customAttributes[f].apply(this,[].concat(d[f])),this.attrs[f]=d[f],e)e.hasOwnProperty(g)&&(d[g]=e[g]);v(this,d);return this};y.toFront=function(){if(this.removed)return this;var a=z(this.node);a.parentNode.appendChild(a);a=this.paper;a.top!=this&&b._tofront(this,a);return this};y.toBack=function(){if(this.removed)return this;
var a=z(this.node),c=a.parentNode;c.insertBefore(a,c.firstChild);b._toback(this,this.paper);return this};y.insertAfter=function(a){if(this.removed||!a)return this;var c=z(this.node),d=z(a.node||a[a.length-1].node);d.nextSibling?d.parentNode.insertBefore(c,d.nextSibling):d.parentNode.appendChild(c);b._insertafter(this,a,this.paper);return this};y.insertBefore=function(a){if(this.removed||!a)return this;var c=z(this.node),d=z(a.node||a[0].node);d.parentNode.insertBefore(c,d);b._insertbefore(this,a,
this.paper);return this};y.blur=function(a){if(0!==+a){var c=p("filter"),d=p("feGaussianBlur");this.attrs.blur=a;c.id=b.createUUID();p(d,{stdDeviation:+a||1.5});c.appendChild(d);this.paper.defs.appendChild(c);this._blur=c;p(this.node,{filter:"url(#"+c.id+")"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter");return this};b._engine.circle=function(a,b,c,d){var e=p("circle");a.canvas&&a.canvas.appendChild(e);
a=new B(e,a);a.attrs={cx:b,cy:c,r:d,fill:"none",stroke:"#000"};a.type="circle";p(e,a.attrs);return a};b._engine.rect=function(a,b,c,d,e,f){var g=p("rect");a.canvas&&a.canvas.appendChild(g);a=new B(g,a);a.attrs={x:b,y:c,width:d,height:e,rx:f||0,ry:f||0,fill:"none",stroke:"#000"};a.type="rect";p(g,a.attrs);return a};b._engine.ellipse=function(a,b,c,d,e){var f=p("ellipse");a.canvas&&a.canvas.appendChild(f);a=new B(f,a);a.attrs={cx:b,cy:c,rx:d,ry:e,fill:"none",stroke:"#000"};a.type="ellipse";p(f,a.attrs);
return a};b._engine.image=function(a,b,c,d,e,f){var g=p("image");p(g,{x:c,y:d,width:e,height:f,preserveAspectRatio:"none"});g.setAttributeNS("http://www.w3.org/1999/xlink","href",b);a.canvas&&a.canvas.appendChild(g);a=new B(g,a);a.attrs={x:c,y:d,width:e,height:f,src:b};a.type="image";return a};b._engine.text=function(a,c,d,e){var f=p("text");a.canvas&&a.canvas.appendChild(f);a=new B(f,a);a.attrs={x:c,y:d,"text-anchor":"middle",text:e,"font-family":b._availableAttrs["font-family"],"font-size":b._availableAttrs["font-size"],
stroke:"none",fill:"#000"};a.type="text";v(a,a.attrs);return a};b._engine.setSize=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};b._engine.create=function(){var a=b._getContainer.apply(0,arguments),c=a&&a.container,d=a.x,e=a.y,f=a.width,a=a.height;if(!c)throw Error("SVG container not found.");var g=p("svg"),h,d=d||0,e=
e||0,f=f||512,a=a||342;p(g,{height:a,version:1.1,width:f,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"});1==c?(g.style.cssText="overflow:hidden;position:absolute;left:"+d+"px;top:"+e+"px",b._g.doc.body.appendChild(g),h=1):(g.style.cssText="overflow:hidden;position:relative",c.firstChild?c.insertBefore(g,c.firstChild):c.appendChild(g));c=new b._Paper;c.width=f;c.height=a;c.canvas=g;c.clear();c._left=c._top=0;h&&(c.renderfix=function(){});c.renderfix();return c};b._engine.setViewBox=
function(a,b,c,d,e){l("raphael.setViewBox",this,this._viewBox,[a,b,c,d,e]);var g=this.getSize(),g=f(c/g.width,d/g.height),h=this.top,k=e?"xMidYMid meet":"xMinYMin",m;null==a?(this._vbSize&&(g=1),delete this._vbSize,m="0 0 "+this.width+" "+this.height):(this._vbSize=g,m=a+" "+b+" "+c+" "+d);for(p(this.canvas,{viewBox:m,preserveAspectRatio:k});g&&h;)k="stroke-width"in h.attrs?h.attrs["stroke-width"]:1,h.attr({"stroke-width":k}),h._.dirty=1,h._.dirtyT=1,h=h.prev;this._viewBox=[a,b,c,d,!!e];return this};
b.prototype.renderfix=function(){var a=this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(d){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c)a&&(this._left=(this._left+a)%1,b.left=this._left+"px"),c&&(this._top=(this._top+c)%1,b.top=this._top+"px")};b.prototype.clear=function(){b.eve("raphael.clear",this);for(var a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;(this.desc=p("desc")).appendChild(b._g.doc.createTextNode("Created with Raphaël "+
b.version));a.appendChild(this.desc);a.appendChild(this.defs=p("defs"))};b.prototype.remove=function(){l("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null};var A=b.st,C;for(C in y)y.hasOwnProperty(C)&&!A.hasOwnProperty(C)&&(A[C]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(C))}})();(function(){if(b.vml){var a=String,c=parseFloat,
d=Math,e=d.round,f=d.max,g=d.min,h=d.abs,k=/[, ]+/,l=b.eve,m={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},n=/([clmz]),?([^clmz]*)/gi,p=/ progid:\S+Blur\([^\)]+\)/g,q=/-?[^,\s-]+/g,r={path:1,rect:1,image:1},t={circle:1,ellipse:1},u=function(c){var d=/[ahqstv]/ig,f=b._pathToAbsolute;a(c).match(d)&&(f=b._path2curve);d=/[clmz]/g;if(f==b._pathToAbsolute&&!a(c).match(d))return c=a(c).replace(n,function(a,b,c){var d=[],f="m"==b.toLowerCase(),g=m[b];c.replace(q,function(a){f&&2==d.length&&(g+=d+m["m"==
b?"l":"L"],d=[]);d.push(e(21600*a))});return g+d});var d=f(c),g;c=[];for(var h=0,k=d.length;h<k;h++){f=d[h];g=d[h][0].toLowerCase();"z"==g&&(g="x");for(var l=1,p=f.length;l<p;l++)g+=e(21600*f[l])+(l!=p-1?",":"");c.push(g)}return c.join(" ")},v=function(a,c,d){var e=b.matrix();e.rotate(-a,.5,.5);return{dx:e.x(c,d),dy:e.y(c,d)}},w=function(a,b,c,d,e,f){var g=a._,k=a.matrix,l=g.fillpos;a=a.node;var m=a.style,n=1,p="",q=21600/b,r=21600/c;m.visibility="hidden";if(b&&c){a.coordsize=h(q)+" "+h(r);m.rotation=
f*(0>b*c?-1:1);f&&(e=v(f,d,e),d=e.dx,e=e.dy);0>b&&(p+="x");0>c&&(p+=" y")&&(n=-1);m.flip=p;a.coordorigin=d*-q+" "+e*-r;if(l||g.fillsize)d=(d=a.getElementsByTagName("fill"))&&d[0],a.removeChild(d),l&&(e=v(f,k.x(l[0],l[1]),k.y(l[0],l[1])),d.position=e.dx*n+" "+e.dy*n),g.fillsize&&(d.size=g.fillsize[0]*h(b)+" "+g.fillsize[1]*h(c)),a.appendChild(d);m.visibility="visible"}};b.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var x=
function(b,c,d){c=a(c).toLowerCase().split("-");d=d?"end":"start";for(var e=c.length,f="classic",g="medium",h="medium";e--;)switch(c[e]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":f=c[e];break;case "wide":case "narrow":h=c[e];break;case "long":case "short":g=c[e]}b=b.node.getElementsByTagName("stroke")[0];b[d+"arrow"]=f;b[d+"arrowlength"]=g;b[d+"arrowwidth"]=h},y=function(d,h){d.attrs=d.attrs||{};var l=d.node,m=d.attrs,n=l.style,p=r[d.type]&&(h.x!=m.x||h.y!=m.y||
h.width!=m.width||h.height!=m.height||h.cx!=m.cx||h.cy!=m.cy||h.rx!=m.rx||h.ry!=m.ry||h.r!=m.r),q=t[d.type]&&(m.cx!=h.cx||m.cy!=h.cy||m.r!=h.r||m.rx!=h.rx||m.ry!=h.ry),v;for(v in h)h.hasOwnProperty(v)&&(m[v]=h[v]);p&&(m.path=b._getPath[d.type](d),d._.dirty=1);h.href&&(l.href=h.href);h.title&&(l.title=h.title);h.target&&(l.target=h.target);h.cursor&&(n.cursor=h.cursor);"blur"in h&&d.blur(h.blur);if(h.path&&"path"==d.type||p)l.path=u(~a(m.path).toLowerCase().indexOf("r")?b._pathToAbsolute(m.path):m.path),
d._.dirty=1,"image"==d.type&&(d._.fillpos=[m.x,m.y],d._.fillsize=[m.width,m.height],w(d,1,1,0,0,0));"transform"in h&&d.transform(h.transform);q&&(n=+m.cx,p=+m.cy,q=+m.rx||+m.r||0,v=+m.ry||+m.r||0,l.path=b.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",e(21600*(n-q)),e(21600*(p-v)),e(21600*(n+q)),e(21600*(p+v)),e(21600*n)),d._.dirty=1);"clip-rect"in h&&(n=a(h["clip-rect"]).split(k),4==n.length&&(n[2]=+n[2]+ +n[0],n[3]=+n[3]+ +n[1],p=l.clipRect||b._g.doc.createElement("div"),q=p.style,q.clip=b.format("rect({1}px {2}px {3}px {0}px)",
n),l.clipRect||(q.position="absolute",q.top=0,q.left=0,q.width=d.paper.width+"px",q.height=d.paper.height+"px",l.parentNode.insertBefore(p,l),p.appendChild(l),l.clipRect=p)),h["clip-rect"]||l.clipRect&&(l.clipRect.style.clip="auto"));d.textpath&&(n=d.textpath.style,h.font&&(n.font=h.font),h["font-family"]&&(n.fontFamily='"'+h["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),h["font-size"]&&(n.fontSize=h["font-size"]),h["font-weight"]&&(n.fontWeight=h["font-weight"]),h["font-style"]&&
(n.fontStyle=h["font-style"]));"arrow-start"in h&&x(d,h["arrow-start"]);"arrow-end"in h&&x(d,h["arrow-end"],1);if(null!=h.opacity||null!=h["stroke-width"]||null!=h.fill||null!=h.src||null!=h.stroke||null!=h["stroke-width"]||null!=h["stroke-opacity"]||null!=h["fill-opacity"]||null!=h["stroke-dasharray"]||null!=h["stroke-miterlimit"]||null!=h["stroke-linejoin"]||null!=h["stroke-linecap"]){n=(n=l.getElementsByTagName("fill"))&&n[0];!n&&(n=C("fill"));"image"==d.type&&h.src&&(n.src=h.src);h.fill&&(n.on=
!0);if(null==n.on||"none"==h.fill||null===h.fill)n.on=!1;n.on&&h.fill&&((p=a(h.fill).match(b._ISURL))?(n.parentNode==l&&l.removeChild(n),n.rotate=!0,n.src=p[1],n.type="tile",q=d.getBBox(1),n.position=q.x+" "+q.y,d._.fillpos=[q.x,q.y],b._preload(p[1],function(){d._.fillsize=[this.offsetWidth,this.offsetHeight]})):(n.color=b.getRGB(h.fill).hex,n.src="",n.type="solid",b.getRGB(h.fill).error&&(d.type in{circle:1,ellipse:1}||"r"!=a(h.fill).charAt())&&z(d,h.fill,n)&&(m.fill="none",m.gradient=h.fill,n.rotate=
!1)));if("fill-opacity"in h||"opacity"in h)q=((+m["fill-opacity"]+1||2)-1)*((+m.opacity+1||2)-1)*((+b.getRGB(h.fill).o+1||2)-1),q=g(f(q,0),1),n.opacity=q,n.src&&(n.color="none");l.appendChild(n);n=l.getElementsByTagName("stroke")&&l.getElementsByTagName("stroke")[0];p=!1;!n&&(p=n=C("stroke"));if(h.stroke&&"none"!=h.stroke||h["stroke-width"]||null!=h["stroke-opacity"]||h["stroke-dasharray"]||h["stroke-miterlimit"]||h["stroke-linejoin"]||h["stroke-linecap"])n.on=!0;"none"!=h.stroke&&null!==h.stroke&&
null!=n.on&&0!=h.stroke&&0!=h["stroke-width"]||(n.on=!1);q=b.getRGB(h.stroke);n.on&&h.stroke&&(n.color=q.hex);q=((+m["stroke-opacity"]+1||2)-1)*((+m.opacity+1||2)-1)*((+q.o+1||2)-1);v=.75*(c(h["stroke-width"])||1);q=g(f(q,0),1);null==h["stroke-width"]&&(v=m["stroke-width"]);h["stroke-width"]&&(n.weight=v);v&&1>v&&(q*=v)&&(n.weight=1);n.opacity=q;h["stroke-linejoin"]&&(n.joinstyle=h["stroke-linejoin"]||"miter");n.miterlimit=h["stroke-miterlimit"]||8;h["stroke-linecap"]&&(n.endcap="butt"==h["stroke-linecap"]?
"flat":"square"==h["stroke-linecap"]?"square":"round");"stroke-dasharray"in h&&(q={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},n.dashstyle=q.hasOwnProperty(h["stroke-dasharray"])?q[h["stroke-dasharray"]]:"");p&&l.appendChild(n)}if("text"==d.type){d.paper.canvas.style.display="";l=d.paper.span;p=m.font&&m.font.match(/\d+(?:\.\d*)?(?=px)/);n=l.style;m.font&&(n.font=m.font);
m["font-family"]&&(n.fontFamily=m["font-family"]);m["font-weight"]&&(n.fontWeight=m["font-weight"]);m["font-style"]&&(n.fontStyle=m["font-style"]);p=c(m["font-size"]||p&&p[0])||10;n.fontSize=100*p+"px";d.textpath.string&&(l.innerHTML=a(d.textpath.string).replace(/</g,"\x26#60;").replace(/&/g,"\x26#38;").replace(/\n/g,"\x3cbr\x3e"));l=l.getBoundingClientRect();d.W=m.w=(l.right-l.left)/100;d.H=m.h=(l.bottom-l.top)/100;d.X=m.x;d.Y=m.y+d.H/2;("x"in h||"y"in h)&&(d.path.v=b.format("m{0},{1}l{2},{1}",e(21600*
m.x),e(21600*m.y),e(21600*m.x)+1));l="x y text font font-family font-weight font-style font-size".split(" ");n=0;for(p=l.length;n<p;n++)if(l[n]in h){d._.dirty=1;break}switch(m["text-anchor"]){case "start":d.textpath.style["v-text-align"]="left";d.bbx=d.W/2;break;case "end":d.textpath.style["v-text-align"]="right";d.bbx=-d.W/2;break;default:d.textpath.style["v-text-align"]="center",d.bbx=0}d.textpath.style["v-text-kern"]=!0}},z=function(e,f,g){e.attrs=e.attrs||{};var h=Math.pow,k="linear",l=".5 .5";
e.attrs.gradient=f;f=a(f).replace(b._radial_gradient,function(a,b,e){k="radial";b&&e&&(b=c(b),e=c(e),.25<h(b-.5,2)+h(e-.5,2)&&(e=d.sqrt(.25-h(b-.5,2))*(2*(.5<e)-1)+.5),l=b+" "+e);return""});f=f.split(/\s*\-\s*/);if("linear"==k){var m=f.shift(),m=-c(m);if(isNaN(m))return null}f=b._parseDots(f);if(!f)return null;e=e.shape||e.node;if(f.length){e.removeChild(g);g.on=!0;g.method="none";g.color=f[0].color;g.color2=f[f.length-1].color;for(var n=[],p=0,q=f.length;p<q;p++)f[p].offset&&n.push(f[p].offset+" "+
f[p].color);g.colors=n.length?n.join():"0% "+g.color;"radial"==k?(g.type="gradientTitle",g.focus="100%",g.focussize="0 0",g.focusposition=l,g.angle=0):(g.type="gradient",g.angle=(270-m)%360);e.appendChild(g)}return 1},B=function(a,c){this[0]=this.node=a;a.raphael=!0;this.id=b._oid++;a.raphaelid=this.id;this.Y=this.X=0;this.attrs={};this.paper=c;this.matrix=b.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=
this;this.next=null},A=b.el;B.prototype=A;A.constructor=B;A.transform=function(c){if(null==c)return this._.transform;var d=this.paper._viewBoxShift,e=d?"s"+[d.scale,d.scale]+"-1-1t"+[d.dx,d.dy]:"",f;d&&(f=c=a(c).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,e+c);var d=this.matrix.clone(),g=this.skew;c=this.node;var e=~a(this.attrs.fill).indexOf("-"),h=!a(this.attrs.fill).indexOf("url(");d.translate(1,1);h||e||"image"==this.type?(g.matrix="1 0 0 1",g.offset="0 0",g=d.split(),
e&&g.noRotation||!g.isSimple?(c.style.filter=d.toFilter(),e=this.getBBox(),g=this.getBBox(1),d=e.x-g.x,e=e.y-g.y,c.coordorigin=-21600*d+" "+-21600*e,w(this,1,1,d,e,0)):(c.style.filter="",w(this,g.scalex,g.scaley,g.dx,g.dy,g.rotate))):(c.style.filter="",g.matrix=a(d),g.offset=d.offset());null!==f&&(this._.transform=f,b._extractTransform(this,f));return this};A.rotate=function(b,d,e){if(this.removed)return this;if(null!=b){b=a(b).split(k);b.length-1&&(d=c(b[1]),e=c(b[2]));b=c(b[0]);null==e&&(d=e);if(null==
d||null==e)e=this.getBBox(1),d=e.x+e.width/2,e=e.y+e.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,d,e]]));return this}};A.translate=function(b,d){if(this.removed)return this;b=a(b).split(k);b.length-1&&(d=c(b[1]));b=c(b[0])||0;d=+d||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=d);this.transform(this._.transform.concat([["t",b,d]]));return this};A.scale=function(b,d,e,f){if(this.removed)return this;b=a(b).split(k);b.length-1&&(d=c(b[1]),e=c(b[2]),f=c(b[3]),isNaN(e)&&(e=
null),isNaN(f)&&(f=null));b=c(b[0]);null==d&&(d=b);null==f&&(e=f);if(null==e||null==f)var g=this.getBBox(1);e=null==e?g.x+g.width/2:e;f=null==f?g.y+g.height/2:f;this.transform(this._.transform.concat([["s",b,d,e,f]]));this._.dirtyT=1;return this};A.hide=function(){!this.removed&&(this.node.style.display="none");return this};A.show=function(){!this.removed&&(this.node.style.display="");return this};A.auxGetBBox=b.el.getBBox;A.getBBox=function(){var a=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var b=
{},c=1/this.paper._viewBoxShift.scale;b.x=a.x-this.paper._viewBoxShift.dx;b.x*=c;b.y=a.y-this.paper._viewBoxShift.dy;b.y*=c;b.width=a.width*c;b.height=a.height*c;b.x2=b.x+b.width;b.y2=b.y+b.height;return b}return a};A._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};A.remove=function(){if(!this.removed&&this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this);b.eve.unbind("raphael.*.*."+this.id);b._tear(this,
this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null;this.removed=!0}};A.attr=function(a,c){if(this.removed)return this;if(null==a){var d={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(d[e]=this.attrs[e]);d.gradient&&"none"==d.fill&&(d.fill=d.gradient)&&delete d.gradient;d.transform=this._.transform;return d}if(null==c&&b.is(a,"string")){if("fill"==a&&
"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;e=a.split(k);for(var d={},f=0,g=e.length;f<g;f++)a=e[f],a in this.attrs?d[a]=this.attrs[a]:b.is(this.paper.customAttributes[a],"function")?d[a]=this.paper.customAttributes[a].def:d[a]=b._availableAttrs[a];return g-1?d:d[e[0]]}if(this.attrs&&null==c&&b.is(a,"array")){d={};f=0;for(g=a.length;f<g;f++)d[a[f]]=this.attr(a[f]);return d}null!=c&&(d={},d[a]=c);null==c&&b.is(a,"object")&&(d=a);for(f in d)l("raphael.attr."+f+"."+this.id,
this,d[f]);if(d){for(f in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(f)&&d.hasOwnProperty(f)&&b.is(this.paper.customAttributes[f],"function"))for(g in e=this.paper.customAttributes[f].apply(this,[].concat(d[f])),this.attrs[f]=d[f],e)e.hasOwnProperty(g)&&(d[g]=e[g]);d.text&&"text"==this.type&&(this.textpath.string=d.text);y(this,d)}return this};A.toFront=function(){!this.removed&&this.node.parentNode.appendChild(this.node);this.paper&&this.paper.top!=this&&b._tofront(this,
this.paper);return this};A.toBack=function(){if(this.removed)return this;this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),b._toback(this,this.paper));return this};A.insertAfter=function(a){if(this.removed)return this;a.constructor==b.st.constructor&&(a=a[a.length-1]);a.node.nextSibling?a.node.parentNode.insertBefore(this.node,a.node.nextSibling):a.node.parentNode.appendChild(this.node);b._insertafter(this,a,this.paper);return this};
A.insertBefore=function(a){if(this.removed)return this;a.constructor==b.st.constructor&&(a=a[0]);a.node.parentNode.insertBefore(this.node,a.node);b._insertbefore(this,a,this.paper);return this};A.blur=function(a){var c=this.node.runtimeStyle,d=c.filter,d=d.replace(p,"");0!==+a?(this.attrs.blur=a,c.filter=d+"  progid:DXImageTransform.Microsoft.Blur(pixelradius\x3d"+(+a||1.5)+")",c.margin=b.format("-{0}px 0 0 -{0}px",e(+a||1.5))):(c.filter=d,c.margin=0,delete this.attrs.blur);return this};b._engine.path=
function(a,b){var c=C("shape");c.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)";c.coordsize="21600 21600";c.coordorigin=b.coordorigin;var d=new B(c,b),e={fill:"none",stroke:"#000"};a&&(e.path=a);d.type="path";d.path=[];d.Path="";y(d,e);b.canvas.appendChild(c);e=C("skew");e.on=!0;c.appendChild(e);d.skew=e;d.transform("");return d};b._engine.rect=function(a,c,d,e,f,g){var h=b._rectPath(c,d,e,f,g);a=a.path(h);var k=a.attrs;a.X=k.x=c;a.Y=k.y=d;a.W=k.width=
e;a.H=k.height=f;k.r=g;k.path=h;a.type="rect";return a};b._engine.ellipse=function(a,b,c,d,e){a=a.path();a.X=b-d;a.Y=c-e;a.W=2*d;a.H=2*e;a.type="ellipse";y(a,{cx:b,cy:c,rx:d,ry:e});return a};b._engine.circle=function(a,b,c,d){a=a.path();a.X=b-d;a.Y=c-d;a.W=a.H=2*d;a.type="circle";y(a,{cx:b,cy:c,r:d});return a};b._engine.image=function(a,c,d,e,f,g){var h=b._rectPath(d,e,f,g);a=a.path(h).attr({stroke:"none"});var k=a.attrs,l=a.node,m=l.getElementsByTagName("fill")[0];k.src=c;a.X=k.x=d;a.Y=k.y=e;a.W=
k.width=f;a.H=k.height=g;k.path=h;a.type="image";m.parentNode==l&&l.removeChild(m);m.rotate=!0;m.src=c;m.type="tile";a._.fillpos=[d,e];a._.fillsize=[f,g];l.appendChild(m);w(a,1,1,0,0,0);return a};b._engine.text=function(c,d,f,g){var h=C("shape"),k=C("path"),l=C("textpath");d=d||0;f=f||0;g=g||"";k.v=b.format("m{0},{1}l{2},{1}",e(21600*d),e(21600*f),e(21600*d)+1);k.textpathok=!0;l.string=a(g);l.on=!0;h.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)";h.coordsize=
"21600 21600";h.coordorigin="0 0";var m=new B(h,c),n={fill:"#000",stroke:"none",font:b._availableAttrs.font,text:g};m.shape=h;m.path=k;m.textpath=l;m.type="text";m.attrs.text=a(g);m.attrs.x=d;m.attrs.y=f;m.attrs.w=1;m.attrs.h=1;y(m,n);h.appendChild(l);h.appendChild(k);c.canvas.appendChild(h);c=C("skew");c.on=!0;h.appendChild(c);m.skew=c;m.transform("");return m};b._engine.setSize=function(a,c){var d=this.canvas.style;this.width=a;this.height=c;a==+a&&(a+="px");c==+c&&(c+="px");d.width=a;d.height=
c;d.clip="rect(0 "+a+" "+c+" 0)";this._viewBox&&b._engine.setViewBox.apply(this,this._viewBox);return this};b._engine.setViewBox=function(a,c,d,e,f){b.eve("raphael.setViewBox",this,this._viewBox,[a,c,d,e,f]);var g=this.getSize(),h=g.width,k=g.height,l,m;f&&(l=k/e,m=h/d,d*l<h&&(a-=(h-d*l)/2/l),e*m<k&&(c-=(k-e*m)/2/m));this._viewBox=[a,c,d,e,!!f];this._viewBoxShift={dx:-a,dy:-c,scale:g};this.forEach(function(a){a.transform("...")});return this};var C;b._engine.initWin=function(a){var b=a.document;31>
b.styleSheets.length?b.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):b.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!b.namespaces.rvml&&b.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),C=function(a){return b.createElement("\x3crvml:"+a+' class\x3d"rvml"\x3e')}}catch(c){C=function(a){return b.createElement("\x3c"+a+' xmlns\x3d"urn:schemas-microsoft.com:vml" class\x3d"rvml"\x3e')}}};b._engine.initWin(b._g.win);b._engine.create=function(){var a=b._getContainer.apply(0,
arguments),c=a.container,d=a.height,e=a.width,f=a.x,a=a.y;if(!c)throw Error("VML container not found.");var g=new b._Paper,h=g.canvas=b._g.doc.createElement("div"),k=h.style,f=f||0,a=a||0,e=e||512,d=d||342;g.width=e;g.height=d;e==+e&&(e+="px");d==+d&&(d+="px");g.coordsize="21600000 21600000";g.coordorigin="0 0";g.span=b._g.doc.createElement("span");g.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";h.appendChild(g.span);k.cssText=b.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",
e,d);1==c?(b._g.doc.body.appendChild(h),k.left=f+"px",k.top=a+"px",k.position="absolute"):c.firstChild?c.insertBefore(h,c.firstChild):c.appendChild(h);g.renderfix=function(){};return g};b.prototype.clear=function(){b.eve("raphael.clear",this);this.canvas.innerHTML="";this.span=b._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};b.prototype.remove=
function(){b.eve("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null;return!0};var E=b.st,F;for(F in A)A.hasOwnProperty(F)&&!E.hasOwnProperty(F)&&(E[F]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(F))}})();G?w.win.Raphael=b:Raphael=b;"object"==typeof exports&&(module.exports=b);return b});