Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
(function(c,j){function i(a){var b=a.length,h=d.type(a);return d.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===h||"function"!==h&&(0===b||"number"===typeof b&&0<b&&b-1 in a)}function r(a){var b=Ra[a]={};d.each(a.match(aa)||[],function(a,d){b[d]=!0});return b}function q(a,b,h,o){if(d.acceptData(a)){var p=d.expando,f="string"===typeof b,e=a.nodeType,l=e?d.cache:a,c=e?a[p]:a[p]&&p;if(c&&l[c]&&(o||l[c].data)||!(f&&h===j)){c||(e?a[p]=c=ha.pop()||d.guid++:c=p);l[c]||(l[c]={},e||(l[c].toJSON=d.noop));if("object"===
typeof b||"function"===typeof b)o?l[c]=d.extend(l[c],b):l[c].data=d.extend(l[c].data,b);a=l[c];o||(a.data||(a.data={}),a=a.data);h!==j&&(a[d.camelCase(b)]=h);f?(h=a[b],null==h&&(h=a[d.camelCase(b)])):h=a;return h}}}function u(a,b,h){if(d.acceptData(a)){var o,p,f,e=a.nodeType,l=e?d.cache:a,c=e?a[d.expando]:d.expando;if(l[c]){if(b&&(o=h?l[c]:l[c].data)){d.isArray(b)?b=b.concat(d.map(b,d.camelCase)):b in o?b=[b]:(b=d.camelCase(b),b=b in o?[b]:b.split(" "));for(p=0,f=b.length;p<f;p++)delete o[b[p]];if(!(h?
n:d.isEmptyObject)(o))return}if(!h&&(delete l[c].data,!n(l[c])))return;e?d.cleanData([a],!0):d.support.deleteExpando||l!=l.window?delete l[c]:l[c]=null}}}function g(a,b,h){if(h===j&&1===a.nodeType)if(h="data-"+b.replace(qb,"-$1").toLowerCase(),h=a.getAttribute(h),"string"===typeof h){try{h="true"===h?!0:"false"===h?!1:"null"===h?null:+h+""===h?+h:rb.test(h)?d.parseJSON(h):h}catch(o){}d.data(a,b,h)}else h=j;return h}function n(a){for(var b in a)if(!("data"===b&&d.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
return!0}function z(){return!0}function J(){return!1}function y(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function E(a,b,h){b=b||0;if(d.isFunction(b))return d.grep(a,function(a,d){return!!b.call(a,d,a)===h});if(b.nodeType)return d.grep(a,function(a){return a===b===h});if("string"===typeof b){var o=d.grep(a,function(a){return 1===a.nodeType});if(sb.test(b))return d.filter(b,o,!h);b=d.filter(b,o)}return d.grep(a,function(a){return 0<=d.inArray(a,b)===h})}function K(a){var b=Ta.split("|"),a=a.createDocumentFragment();
if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function F(a){var b=a.getAttributeNode("type");a.type=(b&&b.specified)+"/"+a.type;return a}function T(a){var b=tb.exec(a.type);b?a.type=b[1]:a.removeAttribute("type");return a}function Z(a,b){for(var h,o=0;null!=(h=a[o]);o++)d._data(h,"globalEval",!b||d._data(b[o],"globalEval"))}function I(a,b){if(1===b.nodeType&&d.hasData(a)){var h,o,p;o=d._data(a);var f=d._data(b,o),e=o.events;if(e)for(h in delete f.handle,f.events={},e)for(o=0,
p=e[h].length;o<p;o++)d.event.add(b,h,e[h][o]);f.data&&(f.data=d.extend({},f.data))}}function x(a,b){var h,o,p=0,f="undefined"!==typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll(b||"*"):j;if(!f)for(f=[],h=a.childNodes||a;null!=(o=h[p]);p++)!b||d.nodeName(o,b)?f.push(o):d.merge(f,x(o,b));return b===j||b&&d.nodeName(a,b)?d.merge([a],f):f}function G(a){Ca.test(a.type)&&(a.defaultChecked=a.checked)}function O(a,b){if(b in a)return b;
for(var d=b.charAt(0).toUpperCase()+b.slice(1),o=b,p=Ua.length;p--;)if(b=Ua[p]+d,b in a)return b;return o}function H(a,b){a=b||a;return"none"===d.css(a,"display")||!d.contains(a.ownerDocument,a)}function m(a,b){for(var h,o=[],p=0,f=a.length;p<f;p++)h=a[p],h.style&&(o[p]=d._data(h,"olddisplay"),b?(!o[p]&&"none"===h.style.display&&(h.style.display=""),""===h.style.display&&H(h)&&(o[p]=d._data(h,"olddisplay",P(h.nodeName)))):!o[p]&&!H(h)&&d._data(h,"olddisplay",d.css(h,"display")));for(p=0;p<f;p++)if(h=
a[p],h.style&&(!b||"none"===h.style.display||""===h.style.display))h.style.display=b?o[p]||"":"none";return a}function w(a,b,d){return(a=ub.exec(b))?Math.max(0,a[1]-(d||0))+(a[2]||"px"):b}function V(a,b,h,o,p){for(var b=h===(o?"border":"content")?4:"width"===b?1:0,f=0;4>b;b+=2)"margin"===h&&(f+=d.css(a,h+ia[b],!0,p)),o?("content"===h&&(f-=d.css(a,"padding"+ia[b],!0,p)),"margin"!==h&&(f-=d.css(a,"border"+ia[b]+"Width",!0,p))):(f+=d.css(a,"padding"+ia[b],!0,p),"padding"!==h&&(f+=d.css(a,"border"+ia[b]+
"Width",!0,p)));return f}function W(a,b,h){var o=!0,p="width"===b?a.offsetWidth:a.offsetHeight,f=X(a),e=d.support.boxSizing&&"border-box"===d.css(a,"boxSizing",!1,f);if(0>=p||null==p){p=Y(a,b,f);if(0>p||null==p)p=a.style[b];if(ta.test(p))return p;o=e&&(d.support.boxSizingReliable||p===a.style[b]);p=parseFloat(p)||0}return p+V(a,b,h||(e?"border":"content"),o,f)+"px"}function P(a){var b=v,h=Va[a];if(!h){h=$(a,b);if("none"===h||!h)ra=(ra||d("<iframe frameborder='0' width='0' height='0'/>").css("cssText",
"display:block !important")).appendTo(b.documentElement),b=(ra[0].contentWindow||ra[0].contentDocument).document,b.write("<!doctype html><html><body>"),b.close(),h=$(a,b),ra.detach();Va[a]=h}return h}function $(a,b){var h=d(b.createElement(a)).appendTo(b.body),o=d.css(h[0],"display");h.remove();return o}function M(a,b,h,o){var p;if(d.isArray(b))d.each(b,function(b,d){h||vb.test(a)?o(a,d):M(a+"["+("object"===typeof d?b:"")+"]",d,h,o)});else if(!h&&"object"===d.type(b))for(p in b)M(a+"["+p+"]",b[p],
h,o);else o(a,b)}function e(a){return function(b,h){"string"!==typeof b&&(h=b,b="*");var o,p=0,f=b.toLowerCase().match(aa)||[];if(d.isFunction(h))for(;o=f[p++];)"+"===o[0]?(o=o.slice(1)||"*",(a[o]=a[o]||[]).unshift(h)):(a[o]=a[o]||[]).push(h)}}function k(a,b,h,o){function p(l){var c;f[l]=!0;d.each(a[l]||[],function(a,d){var l=d(b,h,o);if("string"===typeof l&&!e&&!f[l])return b.dataTypes.unshift(l),p(l),!1;if(e)return!(c=l)});return c}var f={},e=a===Da;return p(b.dataTypes[0])||!f["*"]&&p("*")}function t(a,
b){var h,o,p=d.ajaxSettings.flatOptions||{};for(h in b)b[h]!==j&&((p[h]?a:o||(o={}))[h]=b[h]);o&&d.extend(!0,a,o);return a}function R(){try{return new c.XMLHttpRequest}catch(a){}}function C(){setTimeout(function(){ka=j});return ka=d.now()}function ea(a,b){d.each(b,function(b,d){for(var p=(fa[b]||[]).concat(fa["*"]),f=0,e=p.length;f<e&&!p[f].call(a,b,d);f++);})}function Q(a,b,h){var o,p=0,e=ua.length,l=d.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var b=ka||C(),b=Math.max(0,
k.startTime+k.duration-b),d=1-(b/k.duration||0),h=0,p=k.tweens.length;h<p;h++)k.tweens[h].run(d);l.notifyWith(a,[k,d,b]);if(1>d&&p)return b;l.resolveWith(a,[k]);return!1},k=l.promise({elem:a,props:d.extend({},b),opts:d.extend(!0,{specialEasing:{}},h),originalProperties:b,originalOptions:h,startTime:ka||C(),duration:h.duration,tweens:[],createTween:function(b,h){var o=d.Tween(a,k.opts,b,h,k.opts.specialEasing[b]||k.opts.easing);k.tweens.push(o);return o},stop:function(b){var d=0,h=b?k.tweens.length:
0;if(o)return this;for(o=!0;d<h;d++)k.tweens[d].run(1);b?l.resolveWith(a,[k,b]):l.rejectWith(a,[k,b]);return this}}),h=k.props;for(f(h,k.opts.specialEasing);p<e;p++)if(b=ua[p].call(k,a,h,k.opts))return b;ea(k,h);d.isFunction(k.opts.start)&&k.opts.start.call(a,k);d.fx.timer(d.extend(c,{elem:a,anim:k,queue:k.opts.queue}));return k.progress(k.opts.progress).done(k.opts.done,k.opts.complete).fail(k.opts.fail).always(k.opts.always)}function f(a,b){var h,o,p,f,e;for(h in a)if(o=d.camelCase(h),p=b[o],f=
a[h],d.isArray(f)&&(p=f[1],f=a[h]=f[0]),h!==o&&(a[o]=f,delete a[h]),(e=d.cssHooks[o])&&"expand"in e)for(h in f=e.expand(f),delete a[o],f)h in a||(a[h]=f[h],b[h]=p);else b[o]=p}function l(a,b,d,o,p){return new l.prototype.init(a,b,d,o,p)}function s(a,b){for(var d,o={height:a},p=0,b=b?1:0;4>p;p+=2-b)d=ia[p],o["margin"+d]=o["padding"+d]=a;b&&(o.opacity=o.width=a);return o}function B(a){return d.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var S,A,v=c.document,ba=c.location,la=c.jQuery,
Aa=c.$,ma={},ha=[],va=ha.concat,ya=ha.push,ga=ha.slice,Wa=ha.indexOf,wb=ma.toString,Ea=ma.hasOwnProperty,Fa="1.9.0".trim,d=function(a,b){return new d.fn.init(a,b,S)},wa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,aa=/\S+/g,xb=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yb=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,Xa=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,zb=/^[\],:{}\s]*$/,Ab=/(?:^|:|,)(?:\s*\[)+/g,Bb=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,Cb=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,Db=/^-ms-/,Eb=
/-([\da-z])/gi,Fb=function(a,b){return b.toUpperCase()},xa=function(){v.addEventListener?(v.removeEventListener("DOMContentLoaded",xa,!1),d.ready()):"complete"===v.readyState&&(v.detachEvent("onreadystatechange",xa),d.ready())};d.fn=d.prototype={jquery:"1.9.0",constructor:d,init:function(a,b,h){var o;if(!a)return this;if("string"===typeof a){if((o="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:yb.exec(a))&&(o[1]||!b)){if(o[1]){if(b=b instanceof d?b[0]:b,d.merge(this,d.parseHTML(o[1],
b&&b.nodeType?b.ownerDocument||b:v,!0)),Xa.test(o[1])&&d.isPlainObject(b))for(o in b)if(d.isFunction(this[o]))this[o](b[o]);else this.attr(o,b[o])}else{if((b=v.getElementById(o[2]))&&b.parentNode){if(b.id!==o[2])return h.find(a);this.length=1;this[0]=b}this.context=v;this.selector=a}return this}return!b||b.jquery?(b||h).find(a):this.constructor(b).find(a)}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(d.isFunction(a))return h.ready(a);a.selector!==j&&(this.selector=a.selector,this.context=
a.context);return d.makeArray(a,this)},selector:"",length:0,size:function(){return this.length},toArray:function(){return ga.call(this)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;return a},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.ready.promise().done(a);return this},slice:function(){return this.pushStack(ga.apply(this,arguments))},first:function(){return this.eq(0)},
last:function(){return this.eq(-1)},eq:function(a){var b=this.length,a=+a+(0>a?b:0);return this.pushStack(0<=a&&a<b?[this[a]]:[])},map:function(a){return this.pushStack(d.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ya,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,b,h,o,p,f=arguments[0]||{},e=1,l=arguments.length,k=!1;"boolean"===typeof f&&(k=f,f=arguments[1]||{},e=2);"object"!==
typeof f&&!d.isFunction(f)&&(f={});l===e&&(f=this,--e);for(;e<l;e++)if(null!=(a=arguments[e]))for(b in a)h=f[b],o=a[b],f!==o&&(k&&o&&(d.isPlainObject(o)||(p=d.isArray(o)))?(p?(p=!1,h=h&&d.isArray(h)?h:[]):h=h&&d.isPlainObject(h)?h:{},f[b]=d.extend(k,h,o)):o!==j&&(f[b]=o));return f};d.extend({noConflict:function(a){c.$===d&&(c.$=Aa);a&&c.jQuery===d&&(c.jQuery=la);return d},isReady:!1,readyWait:1,holdReady:function(a){a?d.readyWait++:d.ready(!0)},ready:function(a){if(!(!0===a?--d.readyWait:d.isReady)){if(!v.body)return setTimeout(d.ready);
d.isReady=!0;!0!==a&&0<--d.readyWait||(A.resolveWith(v,[d]),d.fn.trigger&&d(v).trigger("ready").off("ready"))}},isFunction:function(a){return"function"===d.type(a)},isArray:Array.isArray||function(a){return"array"===d.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?""+a:"object"===typeof a||"function"===typeof a?ma[wb.call(a)]||"object":typeof a},isPlainObject:function(a){if(!a||"object"!==d.type(a)||
a.nodeType||d.isWindow(a))return!1;try{if(a.constructor&&!Ea.call(a,"constructor")&&!Ea.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(var h in a);return h===j||Ea.call(a,h)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw Error(a);},parseHTML:function(a,b,h){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(h=b,b=!1);var b=b||v,o=Xa.exec(a),h=!h&&[];if(o)return[b.createElement(o[1])];o=d.buildFragment([a],b,h);h&&d(h).remove();
return d.merge([],o.childNodes)},parseJSON:function(a){if(c.JSON&&c.JSON.parse)return c.JSON.parse(a);if(null===a)return a;if("string"===typeof a&&(a=d.trim(a))&&zb.test(a.replace(Bb,"@").replace(Cb,"]").replace(Ab,"")))return(new Function("return "+a))();d.error("Invalid JSON: "+a)},parseXML:function(a){var b,h;if(!a||"string"!==typeof a)return null;try{c.DOMParser?(h=new DOMParser,b=h.parseFromString(a,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(o){b=
j}(!b||!b.documentElement||b.getElementsByTagName("parsererror").length)&&d.error("Invalid XML: "+a);return b},noop:function(){},globalEval:function(a){a&&d.trim(a)&&(c.execScript||function(a){c.eval.call(c,a)})(a)},camelCase:function(a){return a.replace(Db,"ms-").replace(Eb,Fb)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var o,p=0,f=a.length;o=i(a);if(d)if(o)for(;p<f&&!(o=b.apply(a[p],d),!1===o);p++);else for(p in a){if(o=b.apply(a[p],
d),!1===o)break}else if(o)for(;p<f&&!(o=b.call(a[p],p,a[p]),!1===o);p++);else for(p in a)if(o=b.call(a[p],p,a[p]),!1===o)break;return a},trim:Fa&&!Fa.call("\ufeff\u00a0")?function(a){return null==a?"":Fa.call(a)}:function(a){return null==a?"":(a+"").replace(xb,"")},makeArray:function(a,b){var h=b||[];null!=a&&(i(Object(a))?d.merge(h,"string"===typeof a?[a]:a):ya.call(h,a));return h},inArray:function(a,b,d){var o;if(b){if(Wa)return Wa.call(b,a,d);o=b.length;for(d=d?0>d?Math.max(0,o+d):d:0;d<o;d++)if(d in
b&&b[d]===a)return d}return-1},merge:function(a,b){var d=b.length,o=a.length,p=0;if("number"===typeof d)for(;p<d;p++)a[o++]=b[p];else for(;b[p]!==j;)a[o++]=b[p++];a.length=o;return a},grep:function(a,b,d){for(var o,p=[],f=0,e=a.length,d=!!d;f<e;f++)o=!!b(a[f],f),d!==o&&p.push(a[f]);return p},map:function(a,b,d){var o,p=0,f=a.length,e=[];if(i(a))for(;p<f;p++)o=b(a[p],p,d),null!=o&&(e[e.length]=o);else for(p in a)o=b(a[p],p,d),null!=o&&(e[e.length]=o);return va.apply([],e)},guid:1,proxy:function(a,
b){var h,o;"string"===typeof b&&(h=a[b],b=a,a=h);if(!d.isFunction(a))return j;o=ga.call(arguments,2);h=function(){return a.apply(b||this,o.concat(ga.call(arguments)))};h.guid=a.guid=a.guid||d.guid++;return h},access:function(a,b,h,o,p,f,e){var l=0,k=a.length,c=null==h;if("object"===d.type(h))for(l in p=!0,h)d.access(a,b,l,h[l],!0,f,e);else if(o!==j&&(p=!0,d.isFunction(o)||(e=!0),c&&(e?(b.call(a,o),b=null):(c=b,b=function(a,b,h){return c.call(d(a),h)})),b))for(;l<k;l++)b(a[l],h,e?o:o.call(a[l],l,b(a[l],
h)));return p?a:c?b.call(a):k?b(a[0],h):f},now:function(){return(new Date).getTime()}});d.ready.promise=function(a){if(!A)if(A=d.Deferred(),"complete"===v.readyState)setTimeout(d.ready);else if(v.addEventListener)v.addEventListener("DOMContentLoaded",xa,!1),c.addEventListener("load",d.ready,!1);else{v.attachEvent("onreadystatechange",xa);c.attachEvent("onload",d.ready);var b=!1;try{b=null==c.frameElement&&v.documentElement}catch(h){}b&&b.doScroll&&function p(){if(!d.isReady){try{b.doScroll("left")}catch(a){return setTimeout(p,
50)}d.ready()}}()}return A.promise(a)};d.each("Boolean,Number,String,Function,Array,Date,RegExp,Object,Error".split(","),function(a,b){ma["[object "+b+"]"]=b.toLowerCase()});S=d(v);var Ra={};d.Callbacks=function(a){var a="string"===typeof a?Ra[a]||r(a):d.extend({},a),b,h,o,p,f,e,l=[],k=!a.once&&[],c=function(d){b=a.memory&&d;h=!0;e=p||0;p=0;f=l.length;for(o=!0;l&&e<f;e++)if(!1===l[e].apply(d[0],d[1])&&a.stopOnFalse){b=!1;break}o=!1;l&&(k?k.length&&c(k.shift()):b?l=[]:m.disable())},m={add:function(){if(l){var h=
l.length;(function Gb(b){d.each(b,function(b,h){var o=d.type(h);"function"===o?(!a.unique||!m.has(h))&&l.push(h):h&&h.length&&"string"!==o&&Gb(h)})})(arguments);o?f=l.length:b&&(p=h,c(b))}return this},remove:function(){l&&d.each(arguments,function(a,b){for(var h;-1<(h=d.inArray(b,l,h));)l.splice(h,1),o&&(h<=f&&f--,h<=e&&e--)});return this},has:function(a){return-1<d.inArray(a,l)},empty:function(){l=[];return this},disable:function(){l=k=b=j;return this},disabled:function(){return!l},lock:function(){k=
j;b||m.disable();return this},locked:function(){return!k},fireWith:function(a,b){b=b||[];b=[a,b.slice?b.slice():b];if(l&&(!h||k))o?k.push(b):c(b);return this},fire:function(){m.fireWith(this,arguments);return this},fired:function(){return!!h}};return m};d.extend({Deferred:function(a){var b=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],h="pending",o={state:function(){return h},always:function(){p.done(arguments).fail(arguments);
return this},then:function(){var a=arguments;return d.Deferred(function(h){d.each(b,function(b,f){var e=f[0],l=d.isFunction(a[b])&&a[b];p[f[1]](function(){var a=l&&l.apply(this,arguments);if(a&&d.isFunction(a.promise))a.promise().done(h.resolve).fail(h.reject).progress(h.notify);else h[e+"With"](this===o?h.promise():this,l?[a]:arguments)})});a=null}).promise()},promise:function(a){return null!=a?d.extend(a,o):o}},p={};o.pipe=o.then;d.each(b,function(a,d){var f=d[2],e=d[3];o[d[1]]=f.add;e&&f.add(function(){h=
e},b[a^1][2].disable,b[2][2].lock);p[d[0]]=function(){p[d[0]+"With"](this===p?o:this,arguments);return this};p[d[0]+"With"]=f.fireWith});o.promise(p);a&&a.call(p,p);return p},when:function(a){var b=0,h=ga.call(arguments),o=h.length,f=1!==o||a&&d.isFunction(a.promise)?o:0,e=1===f?a:d.Deferred(),l=function(a,b,d){return function(h){b[a]=this;d[a]=1<arguments.length?ga.call(arguments):h;d===k?e.notifyWith(b,d):--f||e.resolveWith(b,d)}},k,c,m;if(1<o){k=Array(o);c=Array(o);for(m=Array(o);b<o;b++)h[b]&&
d.isFunction(h[b].promise)?h[b].promise().done(l(b,m,h)).fail(e.reject).progress(l(b,c,k)):--f}f||e.resolveWith(m,h);return e.promise()}});d.support=function(){var a,b,h,o,f,e,l,k=v.createElement("div");k.setAttribute("className","t");k.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";b=k.getElementsByTagName("*");h=k.getElementsByTagName("a")[0];if(!b||!h||!b.length)return{};o=v.createElement("select");f=o.appendChild(v.createElement("option"));b=k.getElementsByTagName("input")[0];
h.style.cssText="top:1px;float:left;opacity:.5";a={getSetAttribute:"t"!==k.className,leadingWhitespace:3===k.firstChild.nodeType,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/top/.test(h.getAttribute("style")),hrefNormalized:"/a"===h.getAttribute("href"),opacity:/^0.5/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:!!b.value,optSelected:f.selected,enctype:!!v.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==v.createElement("nav").cloneNode(!0).outerHTML,
boxModel:"CSS1Compat"===v.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1};b.checked=!0;a.noCloneChecked=b.cloneNode(!0).checked;o.disabled=!0;a.optDisabled=!f.disabled;try{delete k.test}catch(m){a.deleteExpando=!1}b=v.createElement("input");b.setAttribute("value","");a.input=""===b.getAttribute("value");b.value="t";b.setAttribute("type","radio");a.radioValue="t"===b.value;b.setAttribute("checked",
"t");b.setAttribute("name","t");h=v.createDocumentFragment();h.appendChild(b);a.appendChecked=b.checked;a.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked;k.attachEvent&&(k.attachEvent("onclick",function(){a.noCloneEvent=!1}),k.cloneNode(!0).click());for(l in{submit:!0,change:!0,focusin:!0})k.setAttribute(h="on"+l,"t"),a[l+"Bubbles"]=h in c||!1===k.attributes[h].expando;k.style.backgroundClip="content-box";k.cloneNode(!0).style.backgroundClip="";a.clearCloneStyle="content-box"===k.style.backgroundClip;
d(function(){var b,d,h=v.getElementsByTagName("body")[0];h&&(b=v.createElement("div"),b.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",h.appendChild(b).appendChild(k),k.innerHTML="<table><tr><td></td><td>t</td></tr></table>",d=k.getElementsByTagName("td"),d[0].style.cssText="padding:0;margin:0;border:0;display:none",e=0===d[0].offsetHeight,d[0].style.display="",d[1].style.display="none",a.reliableHiddenOffsets=e&&0===d[0].offsetHeight,k.innerHTML="",
k.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%;",a.boxSizing=4===k.offsetWidth,a.doesNotIncludeMarginInBodyOffset=1!==h.offsetTop,c.getComputedStyle&&(a.pixelPosition="1%"!==(c.getComputedStyle(k,null)||{}).top,a.boxSizingReliable="4px"===(c.getComputedStyle(k,null)||{width:"4px"}).width,d=k.appendChild(v.createElement("div")),d.style.cssText=k.style.cssText="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
d.style.marginRight=d.style.width="0",k.style.width="1px",a.reliableMarginRight=!parseFloat((c.getComputedStyle(d,null)||{}).marginRight)),"undefined"!==typeof k.style.zoom&&(k.innerHTML="",k.style.cssText="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;width:1px;padding:1px;display:inline;zoom:1",a.inlineBlockNeedsLayout=3===k.offsetWidth,k.style.display="block",k.innerHTML="<div></div>",k.firstChild.style.width="5px",a.shrinkWrapBlocks=
3!==k.offsetWidth,h.style.zoom=1),h.removeChild(b),k=null)});b=o=h=f=h=b=null;return a}();var rb=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,qb=/([A-Z])/g;d.extend({cache:{},expando:"jQuery"+("1.9.0"+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!n(a)},data:function(a,b,d){return q(a,b,d,!1)},removeData:function(a,b){return u(a,b,!1)},_data:function(a,b,d){return q(a,
b,d,!0)},_removeData:function(a,b){return u(a,b,!0)},acceptData:function(a){var b=a.nodeName&&d.noData[a.nodeName.toLowerCase()];return!b||!0!==b&&a.getAttribute("classid")===b}});d.fn.extend({data:function(a,b){var h,o,f=this[0],e=0,l=null;if(a===j){if(this.length&&(l=d.data(f),1===f.nodeType&&!d._data(f,"parsedAttrs"))){for(h=f.attributes;e<h.length;e++)o=h[e].name,o.indexOf("data-")||(o=d.camelCase(o.substring(5)),g(f,o,l[o]));d._data(f,"parsedAttrs",!0)}return l}return"object"===typeof a?this.each(function(){d.data(this,
a)}):d.access(this,function(b){if(b===j)return f?g(f,a,d.data(f,a)):null;this.each(function(){d.data(this,a,b)})},null,b,1<arguments.length,null,!0)},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,b,h){var o;if(a)return b=(b||"fx")+"queue",o=d._data(a,b),h&&(!o||d.isArray(h)?o=d._data(a,b,d.makeArray(h)):o.push(h)),o||[]},dequeue:function(a,b){var b=b||"fx",h=d.queue(a,b),o=h.length,f=h.shift(),e=d._queueHooks(a,b),l=function(){d.dequeue(a,
b)};"inprogress"===f&&(f=h.shift(),o--);if(e.cur=f)"fx"===b&&h.unshift("inprogress"),delete e.stop,f.call(a,l,e);!o&&e&&e.empty.fire()},_queueHooks:function(a,b){var h=b+"queueHooks";return d._data(a,h)||d._data(a,h,{empty:d.Callbacks("once memory").add(function(){d._removeData(a,b+"queue");d._removeData(a,h)})})}});d.fn.extend({queue:function(a,b){var h=2;"string"!==typeof a&&(b=a,a="fx",h--);return arguments.length<h?d.queue(this[0],a):b===j?this:this.each(function(){var h=d.queue(this,a,b);d._queueHooks(this,
a);"fx"===a&&"inprogress"!==h[0]&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,d){var f=setTimeout(b,a);d.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var h,o=1,f=d.Deferred(),e=this,l=this.length,k=function(){--o||f.resolveWith(e,[e])};"string"!==typeof a&&(b=a,a=j);for(a=a||"fx";l--;)if((h=d._data(e[l],
a+"queueHooks"))&&h.empty)o++,h.empty.add(k);k();return f.promise(b)}});var na,Ya,Ga=/[\t\r\n]/g,Hb=/\r/g,Ib=/^(?:input|select|textarea|button|object)$/i,Jb=/^(?:a|area)$/i,Za=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,Ha=/^(?:checked|selected)$/i,da=d.support.getSetAttribute,Ia=d.support.input;d.fn.extend({attr:function(a,b){return d.access(this,d.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,
a)})},prop:function(a,b){return d.access(this,d.prop,a,b,1<arguments.length)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=j,delete this[a]}catch(b){}})},addClass:function(a){var b,h,o,f,e,l=0,k=this.length;b="string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).addClass(a.call(this,b,this.className))});if(b)for(b=(a||"").match(aa)||[];l<k;l++)if(h=this[l],o=1===h.nodeType&&(h.className?(" "+h.className+" ").replace(Ga," "):" ")){for(e=
0;f=b[e++];)0>o.indexOf(" "+f+" ")&&(o+=f+" ");h.className=d.trim(o)}return this},removeClass:function(a){var b,h,o,f,e,l=0,k=this.length;b=0===arguments.length||"string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,b,this.className))});if(b)for(b=(a||"").match(aa)||[];l<k;l++)if(h=this[l],o=1===h.nodeType&&(h.className?(" "+h.className+" ").replace(Ga," "):"")){for(e=0;f=b[e++];)for(;0<=o.indexOf(" "+f+" ");)o=o.replace(" "+f+" "," ");h.className=
a?d.trim(o):""}return this},toggleClass:function(a,b){var h=typeof a,o="boolean"===typeof b;return d.isFunction(a)?this.each(function(h){d(this).toggleClass(a.call(this,h,this.className,b),b)}):this.each(function(){if("string"===h)for(var f,e=0,l=d(this),k=b,c=a.match(aa)||[];f=c[e++];)k=o?k:!l.hasClass(f),l[k?"addClass":"removeClass"](f);else if("undefined"===h||"boolean"===h)this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===a?"":d._data(this,"__className__")||
""})},hasClass:function(a){for(var a=" "+a+" ",b=0,d=this.length;b<d;b++)if(1===this[b].nodeType&&0<=(" "+this[b].className+" ").replace(Ga," ").indexOf(a))return!0;return!1},val:function(a){var b,h,o,f=this[0];if(arguments.length)return o=d.isFunction(a),this.each(function(h){var f=d(this);if(1===this.nodeType&&(h=o?a.call(this,h,f.val()):a,null==h?h="":"number"===typeof h?h+="":d.isArray(h)&&(h=d.map(h,function(a){return null==a?"":a+""})),b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],
!b||!("set"in b)||b.set(this,h,"value")===j))this.value=h});if(f){if((b=d.valHooks[f.type]||d.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&(h=b.get(f,"value"))!==j)return h;h=f.value;return"string"===typeof h?h.replace(Hb,""):null==h?"":h}}});d.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){for(var b,h=a.options,o=a.selectedIndex,f=(a="select-one"===a.type||0>o)?null:[],e=a?o+1:h.length,l=0>o?e:a?o:0;l<e;l++)if(b=
h[l],(b.selected||l===o)&&(d.support.optDisabled?!b.disabled:null===b.getAttribute("disabled"))&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup"))){b=d(b).val();if(a)return b;f.push(b)}return f},set:function(a,b){var h=d.makeArray(b);d(a).find("option").each(function(){this.selected=0<=d.inArray(d(this).val(),h)});h.length||(a.selectedIndex=-1);return h}}},attr:function(a,b,h){var o,f,e;e=a.nodeType;if(a&&!(3===e||8===e||2===e)){if("undefined"===typeof a.getAttribute)return d.prop(a,
b,h);if(e=1!==e||!d.isXMLDoc(a))b=b.toLowerCase(),f=d.attrHooks[b]||(Za.test(b)?Ya:na);if(h!==j)if(null===h)d.removeAttr(a,b);else{if(f&&e&&"set"in f&&(o=f.set(a,h,b))!==j)return o;a.setAttribute(b,h+"");return h}else{if(f&&e&&"get"in f&&null!==(o=f.get(a,b)))return o;"undefined"!==typeof a.getAttribute&&(o=a.getAttribute(b));return null==o?j:o}}},removeAttr:function(a,b){var h,o,f=0,e=b&&b.match(aa);if(e&&1===a.nodeType)for(;h=e[f++];)o=d.propFix[h]||h,Za.test(h)?!da&&Ha.test(h)?a[d.camelCase("default-"+
h)]=a[o]=!1:a[o]=!1:d.attr(a,h,""),a.removeAttribute(da?h:o)},attrHooks:{type:{set:function(a,b){if(!d.support.radioValue&&"radio"===b&&d.nodeName(a,"input")){var h=a.value;a.setAttribute("type",b);h&&(a.value=h);return b}}}},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,
b,h){var o,f,e=a.nodeType;if(a&&!(3===e||8===e||2===e)){if(1!==e||!d.isXMLDoc(a))b=d.propFix[b]||b,f=d.propHooks[b];return h!==j?f&&"set"in f&&(o=f.set(a,h,b))!==j?o:a[b]=h:f&&"get"in f&&null!==(o=f.get(a,b))?o:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Ib.test(a.nodeName)||Jb.test(a.nodeName)&&a.href?0:j}}}});Ya={get:function(a,b){var h=d.prop(a,b),f="boolean"===typeof h&&a.getAttribute(b);return(h="boolean"===typeof h?
Ia&&da?null!=f:Ha.test(b)?a[d.camelCase("default-"+b)]:!!f:a.getAttributeNode(b))&&!1!==h.value?b.toLowerCase():j},set:function(a,b,h){!1===b?d.removeAttr(a,h):Ia&&da||!Ha.test(h)?a.setAttribute(!da&&d.propFix[h]||h,h):a[d.camelCase("default-"+h)]=a[h]=!0;return h}};if(!Ia||!da)d.attrHooks.value={get:function(a,b){var h=a.getAttributeNode(b);return d.nodeName(a,"input")?a.defaultValue:h&&h.specified?h.value:j},set:function(a,b,h){if(d.nodeName(a,"input"))a.defaultValue=b;else return na&&na.set(a,
b,h)}};da||(na=d.valHooks.button={get:function(a,b){var d=a.getAttributeNode(b);return d&&("id"===b||"name"===b||"coords"===b?""!==d.value:d.specified)?d.value:j},set:function(a,b,d){var f=a.getAttributeNode(d);f||a.setAttributeNode(f=a.ownerDocument.createAttribute(d));f.value=b+="";return"value"===d||b===a.getAttribute(d)?b:j}},d.attrHooks.contenteditable={get:na.get,set:function(a,b,d){na.set(a,""===b?!1:b,d)}},d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{set:function(a,
d){if(""===d)return a.setAttribute(b,"auto"),d}})}));d.support.hrefNormalized||(d.each(["href","src","width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return null==a?j:a}})}),d.each(["href","src"],function(a,b){d.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}));d.support.style||(d.attrHooks.style={get:function(a){return a.style.cssText||j},set:function(a,b){return a.style.cssText=b+""}});d.support.optSelected||(d.propHooks.selected=
d.extend(d.propHooks.selected,{get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}}));d.support.enctype||(d.propFix.enctype="encoding");d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=0<=d.inArray(d(a).val(),b)}})});
var Ja=/^(?:input|select|textarea)$/i,Kb=/^key/,Lb=/^(?:mouse|contextmenu)|click/,$a=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;d.event={global:{},add:function(a,b,h,f,e){var l,k,c,m,s,g,n,t,i;if(s=3!==a.nodeType&&8!==a.nodeType&&d._data(a)){h.handler&&(l=h,h=l.handler,e=l.selector);h.guid||(h.guid=d.guid++);if(!(m=s.events))m=s.events={};if(!(k=s.handle))k=s.handle=function(a){return"undefined"!==typeof d&&(!a||d.event.triggered!==a.type)?d.event.dispatch.apply(k.elem,arguments):
j},k.elem=a;b=(b||"").match(aa)||[""];for(s=b.length;s--;){c=ab.exec(b[s])||[];t=g=c[1];i=(c[2]||"").split(".").sort();c=d.event.special[t]||{};t=(e?c.delegateType:c.bindType)||t;c=d.event.special[t]||{};g=d.extend({type:t,origType:g,data:f,handler:h,guid:h.guid,selector:e,needsContext:e&&d.expr.match.needsContext.test(e),namespace:i.join(".")},l);if(!(n=m[t]))if(n=m[t]=[],n.delegateCount=0,!c.setup||!1===c.setup.call(a,f,i,k))a.addEventListener?a.addEventListener(t,k,!1):a.attachEvent&&a.attachEvent("on"+
t,k);c.add&&(c.add.call(a,g),g.handler.guid||(g.handler.guid=h.guid));e?n.splice(n.delegateCount++,0,g):n.push(g);d.event.global[t]=!0}a=null}},remove:function(a,b,h,f,e){var l,k,c,m,s,g,n,t,j,i,B,u=d.hasData(a)&&d._data(a);if(u&&(m=u.events)){b=(b||"").match(aa)||[""];for(s=b.length;s--;)if(c=ab.exec(b[s])||[],j=B=c[1],i=(c[2]||"").split(".").sort(),j){n=d.event.special[j]||{};j=(f?n.delegateType:n.bindType)||j;t=m[j]||[];c=c[2]&&RegExp("(^|\\.)"+i.join("\\.(?:.*\\.|)")+"(\\.|$)");for(k=l=t.length;l--;)if(g=
t[l],(e||B===g.origType)&&(!h||h.guid===g.guid)&&(!c||c.test(g.namespace))&&(!f||f===g.selector||"**"===f&&g.selector))t.splice(l,1),g.selector&&t.delegateCount--,n.remove&&n.remove.call(a,g);k&&!t.length&&((!n.teardown||!1===n.teardown.call(a,i,u.handle))&&d.removeEvent(a,j,u.handle),delete m[j])}else for(j in m)d.event.remove(a,j+b[s],h,f,!0);d.isEmptyObject(m)&&(delete u.handle,d._removeData(a,"events"))}},trigger:function(a,b,h,f){var e,l,k,m,g,s,n=[h||v],t=a.type||a;s=a.namespace?a.namespace.split("."):
[];l=e=h=h||v;if(!(3===h.nodeType||8===h.nodeType)&&!$a.test(t+d.event.triggered))if(0<=t.indexOf(".")&&(s=t.split("."),t=s.shift(),s.sort()),m=0>t.indexOf(":")&&"on"+t,a=a[d.expando]?a:new d.Event(t,"object"===typeof a&&a),a.isTrigger=!0,a.namespace=s.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+s.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=j,a.target||(a.target=h),b=null==b?[a]:d.makeArray(b,[a]),s=d.event.special[t]||{},f||!(s.trigger&&!1===s.trigger.apply(h,b))){if(!f&&!s.noBubble&&
!d.isWindow(h)){k=s.delegateType||t;$a.test(k+t)||(l=l.parentNode);for(;l;l=l.parentNode)n.push(l),e=l;if(e===(h.ownerDocument||v))n.push(e.defaultView||e.parentWindow||c)}for(e=0;(l=n[e++])&&!a.isPropagationStopped();)a.type=1<e?k:s.bindType||t,(g=(d._data(l,"events")||{})[a.type]&&d._data(l,"handle"))&&g.apply(l,b),(g=m&&l[m])&&d.acceptData(l)&&g.apply&&!1===g.apply(l,b)&&a.preventDefault();a.type=t;if(!f&&!a.isDefaultPrevented()&&(!s._default||!1===s._default.apply(h.ownerDocument,b))&&!("click"===
t&&d.nodeName(h,"a"))&&d.acceptData(h)&&m&&h[t]&&!d.isWindow(h)){(e=h[m])&&(h[m]=null);d.event.triggered=t;try{h[t]()}catch(i){}d.event.triggered=j;e&&(h[m]=e)}return a.result}},dispatch:function(a){var a=d.event.fix(a),b,h,f,e,l=[],k=ga.call(arguments);b=(d._data(this,"events")||{})[a.type]||[];var c=d.event.special[a.type]||{};k[0]=a;a.delegateTarget=this;if(!(c.preDispatch&&!1===c.preDispatch.call(this,a))){l=d.event.handlers.call(this,a,b);for(b=0;(e=l[b++])&&!a.isPropagationStopped();){a.currentTarget=
e.elem;for(h=0;(f=e.handlers[h++])&&!a.isImmediatePropagationStopped();)if(!a.namespace_re||a.namespace_re.test(f.namespace))if(a.handleObj=f,a.data=f.data,f=((d.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,k),f!==j&&!1===(a.result=f))a.preventDefault(),a.stopPropagation()}c.postDispatch&&c.postDispatch.call(this,a);return a.result}},handlers:function(a,b){var h,f,e,l,k=[],c=b.delegateCount,m=a.target;if(c&&m.nodeType&&(!a.button||"click"!==a.type))for(;m!=this;m=m.parentNode||this)if(!0!==
m.disabled||"click"!==a.type){f=[];for(h=0;h<c;h++)l=b[h],e=l.selector+" ",f[e]===j&&(f[e]=l.needsContext?0<=d(e,this).index(m):d.find(e,this,null,[m]).length),f[e]&&f.push(l);f.length&&k.push({elem:m,handlers:f})}c<b.length&&k.push({elem:this,handlers:b.slice(c)});return k},fix:function(a){if(a[d.expando])return a;var b,h,f=a,e=d.event.fixHooks[a.type]||{},l=e.props?this.props.concat(e.props):this.props,a=new d.Event(f);for(b=l.length;b--;)h=l[b],a[h]=f[h];a.target||(a.target=f.srcElement||v);3===
a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey=!!a.metaKey;return e.filter?e.filter(a,f):a},props:"altKey,bubbles,cancelable,ctrlKey,currentTarget,eventPhase,metaKey,relatedTarget,shiftKey,target,timeStamp,view,which".split(","),fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,b){null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button,buttons,clientX,clientY,fromElement,offsetX,offsetY,pageX,pageY,screenX,screenY,toElement".split(","),
filter:function(a,b){var d,f,e=b.button,l=b.fromElement;null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||v,f=d.documentElement,d=d.body,a.pageX=b.clientX+(f&&f.scrollLeft||d&&d.scrollLeft||0)-(f&&f.clientLeft||d&&d.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||d&&d.scrollTop||0)-(f&&f.clientTop||d&&d.clientTop||0));!a.relatedTarget&&l&&(a.relatedTarget=l===a.target?b.toElement:l);!a.which&&e!==j&&(a.which=e&1?1:e&2?3:e&4?2:0);return a}},special:{load:{noBubble:!0},click:{trigger:function(){if(d.nodeName(this,
"input")&&"checkbox"===this.type&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==v.activeElement&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===v.activeElement&&this.blur)return this.blur(),!1},delegateType:"focusout"},beforeunload:{postDispatch:function(a){a.result!==j&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,h,f){a=d.extend(new d.Event,h,{type:a,isSimulated:!0,originalEvent:{}});f?d.event.trigger(a,
null,b):d.event.dispatch.call(b,a);a.isDefaultPrevented()&&h.preventDefault()}};d.removeEvent=v.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,!1)}:function(a,b,d){b="on"+b;a.detachEvent&&("undefined"===typeof a[b]&&(a[b]=null),a.detachEvent(b,d))};d.Event=function(a,b){if(!(this instanceof d.Event))return new d.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?
z:J):this.type=a;b&&d.extend(this,b);this.timeStamp=a&&a.timeStamp||d.now();this[d.expando]=!0};d.Event.prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=z;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=z;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
z;this.stopPropagation()}};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={delegateType:b,bindType:b,handle:function(a){var f,e=a.relatedTarget,l=a.handleObj;if(!e||e!==this&&!d.contains(this,e))a.type=l.origType,f=l.handler.apply(this,arguments),a.type=b;return f}}});d.support.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,
"input")||d.nodeName(a,"button")?a.form:j)&&!d._data(a,"submitBubbles"))d.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),d._data(a,"submitBubbles",!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}});d.support.changeBubbles||(d.event.special.change={setup:function(){if(Ja.test(this.nodeName)){if("checkbox"===
this.type||"radio"===this.type)d.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),d.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);d.event.simulate("change",this,a,!0)});return!1}d.event.add(this,"beforeactivate._change",function(a){a=a.target;Ja.test(a.nodeName)&&!d._data(a,"changeBubbles")&&(d.event.add(a,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&
d.event.simulate("change",this.parentNode,a,!0)}),d._data(a,"changeBubbles",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return!Ja.test(this.nodeName)}});d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,b){var h=0,f=function(a){d.event.simulate(b,a.target,d.event.fix(a),!0)};d.event.special[b]=
{setup:function(){0===h++&&v.addEventListener(a,f,!0)},teardown:function(){0===--h&&v.removeEventListener(a,f,!0)}}});d.fn.extend({on:function(a,b,h,f,e){var l,k;if("object"===typeof a){"string"!==typeof b&&(h=h||b,b=j);for(k in a)this.on(k,b,h,a[k],e);return this}null==h&&null==f?(f=b,h=b=j):null==f&&("string"===typeof b?(f=h,h=j):(f=h,h=b,b=j));if(!1===f)f=J;else if(!f)return this;1===e&&(l=f,f=function(a){d().off(a);return l.apply(this,arguments)},f.guid=l.guid||(l.guid=d.guid++));return this.each(function(){d.event.add(this,
a,f,h,b)})},one:function(a,b,d,f){return this.on(a,b,d,f,1)},off:function(a,b,h){var f;if(a&&a.preventDefault&&a.handleObj)return f=a.handleObj,d(a.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"===typeof a){for(f in a)this.off(f,b,a[f]);return this}if(!1===b||"function"===typeof b)h=b,b=j;!1===h&&(h=J);return this.each(function(){d.event.remove(this,a,h,b)})},bind:function(a,b,d){return this.on(a,null,b,d)},unbind:function(a,b){return this.off(a,
null,b)},delegate:function(a,b,d,f){return this.on(b,a,d,f)},undelegate:function(a,b,d){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",d)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){var h=this[0];if(h)return d.event.trigger(a,b,h,!0)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});d.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,b){d.fn[b]=function(a,d){return 0<arguments.length?this.on(b,null,a,d):this.trigger(b)};Kb.test(b)&&(d.event.fixHooks[b]=d.event.keyHooks);Lb.test(b)&&(d.event.fixHooks[b]=d.event.mouseHooks)});(function(a,b){var h,f,e,l,k,c,m,s,g;function t(a){return ya.test(a+"")}function n(){var a,b=[];return a=function(d,h){b.push(d+=" ")>D.cacheLength&&delete a[b.shift()];return a[d]=h}}function j(a){a[N]=!0;return a}function i(a){var b=w.createElement("div");try{return a(b)}catch(d){return!1}finally{}}
function B(a,b,d,e){var l,k,p,c,m;(b?b.ownerDocument||b:P)!==w&&O(b);b=b||w;d=d||[];if(!a||"string"!==typeof a)return d;if(1!==(c=b.nodeType)&&9!==c)return[];if(!M&&!e){if(l=sa.exec(a))if(p=l[1])if(9===c)if((k=b.getElementById(p))&&k.parentNode){if(k.id===p)return d.push(k),d}else return d;else{if(b.ownerDocument&&(k=b.ownerDocument.getElementById(p))&&V(b,k)&&k.id===p)return d.push(k),d}else{if(l[2])return X.apply(d,Y.call(b.getElementsByTagName(a),0)),d;if((p=l[3])&&h&&b.getElementsByClassName)return X.apply(d,
Y.call(b.getElementsByClassName(p),0)),d}if(f&&!ba.test(a)){l=!0;k=N;p=b;m=9===c&&a;if(1===c&&"object"!==b.nodeName.toLowerCase()){c=z(a);(l=b.getAttribute("id"))?k=l.replace(wa,"\\$&"):b.setAttribute("id",k);k="[id='"+k+"'] ";for(p=c.length;p--;)c[p]=k+C(c[p]);p=va.test(a)&&b.parentNode||b;m=c.join(",")}if(m)try{return X.apply(d,Y.call(p.querySelectorAll(m),0)),d}catch(s){}finally{l||b.removeAttribute("id")}}}var g;a:{a=a.replace(ca,"$1");k=z(a);if(!e&&1===k.length){l=k[0]=k[0].slice(0);if(2<l.length&&
"ID"===(g=l[0]).type&&9===b.nodeType&&!M&&D.relative[l[1].type]){b=D.find.ID(g.matches[0].replace(oa,pa),b)[0];if(!b){g=d;break a}a=a.slice(l.shift().value.length)}for(c=fa.needsContext.test(a)?-1:l.length-1;0<=c;c--){g=l[c];if(D.relative[p=g.type])break;if(p=D.find[p])if(e=p(g.matches[0].replace(oa,pa),va.test(l[0].type)&&b.parentNode||b)){l.splice(c,1);a=e.length&&C(l);if(!a){X.apply(d,Y.call(e,0));g=d;break a}break}}}H(a,k)(e,b,M,d,va.test(a));g=d}return g}function u(a,b){for(var d=a&&b&&a.nextSibling;d;d=
d.nextSibling)if(d===b)return-1;return a?1:-1}function R(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function Z(a){return function(b){var d=b.nodeName.toLowerCase();return("input"===d||"button"===d)&&b.type===a}}function r(a){return j(function(b){b=+b;return j(function(d,h){for(var f,e=a([],d.length,b),l=e.length;l--;)if(d[f=e[l]])d[f]=!(h[f]=d[f])})})}function z(a,b){var d,h,f,e,l,o,k;if(l=ha[a+" "])return b?0:l.slice(0);l=a;o=[];for(k=D.preFilter;l;){if(!d||(h=ka.exec(l)))h&&
(l=l.slice(h[0].length)||l),o.push(f=[]);d=!1;if(h=na.exec(l))d=h.shift(),f.push({value:d,type:h[0].replace(ca," ")}),l=l.slice(d.length);for(e in D.filter)if((h=fa[e].exec(l))&&(!k[e]||(h=k[e](h))))d=h.shift(),f.push({value:d,type:e,matches:h}),l=l.slice(d.length);if(!d)break}return b?l.length:l?B.error(a):ha(a,o).slice(0)}function C(a){for(var b=0,d=a.length,h="";b<d;b++)h+=a[b].value;return h}function S(a,b,d){var h=b.dir,f=d&&"parentNode"===b.dir,e=$++;return b.first?function(b,d,e){for(;b=b[h];)if(1===
b.nodeType||f)return a(b,d,e)}:function(b,d,l){var o,k,p,c=L+" "+e;if(l)for(;b=b[h];){if((1===b.nodeType||f)&&a(b,d,l))return!0}else for(;b=b[h];)if(1===b.nodeType||f)if(p=b[N]||(b[N]={}),(k=p[h])&&k[0]===c){if(!0===(o=k[1])||o===y)return!0===o}else if(k=p[h]=[c],k[1]=a(b,d,l)||y,!0===k[1])return!0}}function v(a){return 1<a.length?function(b,d,h){for(var f=a.length;f--;)if(!a[f](b,d,h))return!1;return!0}:a[0]}function A(a,b,d,h,f){for(var e,l=[],o=0,k=a.length,p=null!=b;o<k;o++)if(e=a[o])if(!d||d(e,
h,f))l.push(e),p&&b.push(o);return l}function x(a,b,d,h,f,e){h&&!h[N]&&(h=x(h));f&&!f[N]&&(f=x(f,e));return j(function(e,l,o,k){var p,c,m=[],g=[],s=l.length,t;if(!(t=e)){t=b||"*";for(var n=o.nodeType?[o]:o,j=[],i=0,Ba=n.length;i<Ba;i++)B(t,n[i],j);t=j}t=a&&(e||!b)?A(t,m,a,o,k):t;n=d?f||(e?a:s||h)?[]:l:t;d&&d(t,n,o,k);if(h){p=A(n,g);h(p,[],o,k);for(o=p.length;o--;)if(c=p[o])n[g[o]]=!(t[g[o]]=c)}if(e){if(f||a){if(f){p=[];for(o=n.length;o--;)if(c=n[o])p.push(t[o]=c);f(null,n=[],p,k)}for(o=n.length;o--;)if((c=
n[o])&&-1<(p=f?ma.call(e,c):m[o]))e[p]=!(l[p]=c)}}else n=A(n===l?n.splice(s,n.length):n),f?f(null,l,n,k):X.apply(l,n)})}function I(a){var b,d,h,f=a.length,e=D.relative[a[0].type];d=e||D.relative[" "];for(var l=e?1:0,o=S(function(a){return a===b},d,!0),k=S(function(a){return-1<ma.call(b,a)},d,!0),p=[function(a,d,h){return!e&&(h||d!==E)||((b=d).nodeType?o(a,d,h):k(a,d,h))}];l<f;l++)if(d=D.relative[a[l].type])p=[S(v(p),d)];else{d=D.filter[a[l].type].apply(null,a[l].matches);if(d[N]){for(h=++l;h<f&&!D.relative[a[h].type];h++);
return x(1<l&&v(p),1<l&&C(a.slice(0,l-1)).replace(ca,"$1"),d,l<h&&I(a.slice(l,h)),h<f&&I(a=a.slice(h)),h<f&&C(a))}p.push(d)}return v(p)}function J(a,b){var d=0,h=0<b.length,f=0<a.length,e=function(e,l,o,k,p){var c,m,g=[],s=0,t="0",n=e&&[],j=null!=p,i=E,Ba=e||f&&D.find.TAG("*",p&&l.parentNode||l),u=L+=null==i?1:Math.E;j&&(E=l!==w&&l,y=d);for(;null!=(p=Ba[t]);t++){if(f&&p){for(c=0;m=a[c];c++)if(m(p,l,o)){k.push(p);break}j&&(L=u,y=++d)}h&&((p=!m&&p)&&s--,e&&n.push(p))}s+=t;if(h&&t!==s){for(c=0;m=b[c];c++)m(n,
g,l,o);if(e){if(0<s)for(;t--;)!n[t]&&!g[t]&&(g[t]=ia.call(k));g=A(g)}X.apply(k,g);j&&!e&&0<g.length&&1<s+b.length&&B.uniqueSort(k)}j&&(L=u,E=i);return n};return h?j(e):e}function G(){}var q,y,D,ea,K,H,F,E,O,w,Q,M,ba,la,T,V,W,N="sizzle"+-new Date,P=a.document;h=void 0;f=void 0;e=void 0;l=void 0;k=void 0;c=void 0;m=void 0;s=void 0;g=void 0;var L=0,$=0,aa=n(),ha=n(),Aa=n(),ja=typeof b,U=[],ia=U.pop,X=U.push,Y=U.slice,ma=U.indexOf||function(a){for(var b=0,d=this.length;b<d;b++)if(this[b]===a)return b;
return-1},U="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),ga="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+U+")|)|)[\\x20\\t\\r\\n\\f]*\\]",da=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ga.replace(3,8)+")*)|.*)\\)|)",ca=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),ka=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,
na=/^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,qa=RegExp(da),ra=RegExp("^"+U+"$"),fa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[\w-]|[^\x00-\xa0])+)['"]?\]/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+ga),PSEUDO:RegExp("^"+da),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\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:RegExp("^[\\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")},va=/[\x20\t\r\n\f]*[+~]/,ya=/\{\s*\[native code\]\s*\}/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/^(?:input|select|textarea|button)$/i,ua=/^h\d$/i,wa=/'|\\/g,xa=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,oa=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,pa=function(a,b){var d="0x"+b-65536;return d!==d?b:0>d?String.fromCharCode(d+
65536):String.fromCharCode(d>>10|55296,d&1023|56320)};try{Y.call(Q.childNodes,0)[0].nodeType}catch(za){Y=function(a){for(var b,d=[];b=this[a];a++)d.push(b);return d}}K=B.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};O=B.setDocument=function(a){var d=a?a.ownerDocument||a:P;if(d===w||9!==d.nodeType||!d.documentElement)return w;w=d;Q=d.documentElement;M=K(d);e=i(function(a){a.appendChild(d.createComment(""));return!a.getElementsByTagName("*").length});l=
i(function(a){a.innerHTML="<select></select>";a=typeof a.lastChild.getAttribute("multiple");return"boolean"!==a&&"string"!==a});h=i(function(a){a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!a.getElementsByClassName||!a.getElementsByClassName("e").length)return!1;a.lastChild.className="e";return 2===a.getElementsByClassName("e").length});k=i(function(a){a.id=N+0;a.innerHTML="<a name='"+N+"'></a><div name='"+N+"'></div>";Q.insertBefore(a,Q.firstChild);var b=d.getElementsByName&&
d.getElementsByName(N).length===2+d.getElementsByName(N+0).length;c=!d.getElementById(N);Q.removeChild(a);return b});D.attrHandle=i(function(a){a.innerHTML="<a href='#'></a>";return a.firstChild&&typeof a.firstChild.getAttribute!==ja&&"#"===a.firstChild.getAttribute("href")})?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}};c?(D.find.ID=function(a,b){if(typeof b.getElementById!==ja&&!M){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}},
D.filter.ID=function(a){var b=a.replace(oa,pa);return function(a){return a.getAttribute("id")===b}}):(D.find.ID=function(a,d){if(typeof d.getElementById!==ja&&!M){var h=d.getElementById(a);return h?h.id===a||typeof h.getAttributeNode!==ja&&h.getAttributeNode("id").value===a?[h]:b:[]}},D.filter.ID=function(a){var b=a.replace(oa,pa);return function(a){return(a=typeof a.getAttributeNode!==ja&&a.getAttributeNode("id"))&&a.value===b}});D.find.TAG=e?function(a,b){if(typeof b.getElementsByTagName!==ja)return b.getElementsByTagName(a)}:
function(a,b){var d,h=[],f=0,e=b.getElementsByTagName(a);if("*"===a){for(;d=e[f];f++)1===d.nodeType&&h.push(d);return h}return e};D.find.NAME=k&&function(a,b){if(typeof b.getElementsByName!==ja)return b.getElementsByName(name)};D.find.CLASS=h&&function(a,b){if(typeof b.getElementsByClassName!==ja&&!M)return b.getElementsByClassName(a)};la=[];ba=[":focus"];if(f=t(d.querySelectorAll))i(function(a){a.innerHTML="<select><option selected=''></option></select>";a.querySelectorAll("[selected]").length||
ba.push("\\[[\\x20\\t\\r\\n\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)");a.querySelectorAll(":checked").length||ba.push(":checked")}),i(function(a){a.innerHTML="<input type='hidden' i=''/>";a.querySelectorAll("[i^='']").length&&ba.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:\"\"|'')");a.querySelectorAll(":enabled").length||ba.push(":enabled",":disabled");a.querySelectorAll("*,:x");ba.push(",.*:")});(m=t(T=Q.matchesSelector||Q.mozMatchesSelector||Q.webkitMatchesSelector||Q.oMatchesSelector||
Q.msMatchesSelector))&&i(function(a){s=T.call(a,"div");T.call(a,"[s!='']:x");la.push("!=",da)});ba=RegExp(ba.join("|"));la=RegExp(la.join("|"));V=t(Q.contains)||Q.compareDocumentPosition?function(a,b){var d=9===a.nodeType?a.documentElement:a,h=b&&b.parentNode;return a===h||!(!h||!(1===h.nodeType&&(d.contains?d.contains(h):a.compareDocumentPosition&&a.compareDocumentPosition(h)&16)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};W=Q.compareDocumentPosition?function(a,b){var h;
return a===b?(F=!0,0):(h=b.compareDocumentPosition&&a.compareDocumentPosition&&a.compareDocumentPosition(b))?h&1||a.parentNode&&11===a.parentNode.nodeType?a===d||V(P,a)?-1:b===d||V(P,b)?1:0:h&4?-1:1:a.compareDocumentPosition?-1:1}:function(a,b){var h,f=0;h=a.parentNode;var e=b.parentNode,l=[a],o=[b];if(a===b)return F=!0,0;if(a.sourceIndex&&b.sourceIndex)return(~b.sourceIndex||-2147483648)-(V(P,a)&&~a.sourceIndex||-2147483648);if(!h||!e)return a===d?-1:b===d?1:h?-1:e?1:0;if(h===e)return u(a,b);for(h=
a;h=h.parentNode;)l.unshift(h);for(h=b;h=h.parentNode;)o.unshift(h);for(;l[f]===o[f];)f++;return f?u(l[f],o[f]):l[f]===P?-1:o[f]===P?1:0};F=!1;[0,0].sort(W);g=F;return w};B.matches=function(a,b){return B(a,null,null,b)};B.matchesSelector=function(a,b){(a.ownerDocument||a)!==w&&O(a);b=b.replace(xa,"='$1']");if(m&&!M&&(!la||!la.test(b))&&!ba.test(b))try{var d=T.call(a,b);if(d||s||a.document&&11!==a.document.nodeType)return d}catch(h){}return 0<B(b,w,null,[a]).length};B.contains=function(a,b){(a.ownerDocument||
a)!==w&&O(a);return V(a,b)};B.attr=function(a,b){var d;(a.ownerDocument||a)!==w&&O(a);M||(b=b.toLowerCase());return(d=D.attrHandle[b])?d(a):M||l?a.getAttribute(b):((d=a.getAttributeNode(b))||a.getAttribute(b))&&!0===a[b]?b:d&&d.specified?d.value:null};B.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};B.uniqueSort=function(a){var b,d=[],h=1,f=0;F=!g;a.sort(W);if(F){for(;b=a[h];h++)b===a[h-1]&&(f=d.push(h));for(;f--;)a.splice(d[f],1)}return a};ea=B.getText=function(a){var b,
d="",h=0;if(b=a.nodeType)if(1===b||9===b||11===b){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)d+=ea(a)}else{if(3===b||4===b)return a.nodeValue}else for(;b=a[h];h++)d+=ea(b);return d};D=B.selectors={cacheLength:50,createPseudo:j,match:fa,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(oa,pa);a[3]=(a[4]||a[5]||"").replace(oa,
pa);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||B.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&B.error(a[0]);return a},PSEUDO:function(a){var b,d=!a[5]&&a[2];if(fa.CHILD.test(a[0]))return null;if(a[4])a[2]=a[4];else if(d&&qa.test(d)&&(b=z(d,!0))&&(b=d.indexOf(")",d.length-b)-d.length))a[0]=a[0].slice(0,b),a[2]=d.slice(0,b);return a.slice(0,3)}},filter:{TAG:function(a){if("*"===
a)return function(){return!0};a=a.replace(oa,pa).toLowerCase();return function(b){return b.nodeName&&b.nodeName.toLowerCase()===a}},CLASS:function(a){var b=aa[a+" "];return b||(b=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&aa(a,function(a){return b.test(a.className||typeof a.getAttribute!==ja&&a.getAttribute("class")||"")})},ATTR:function(a,b,d){return function(h){h=B.attr(h,a);if(null==h)return"!="===b;if(!b)return!0;h+="";return"="===b?h===d:"!="===b?h!==d:"^="===b?d&&0===h.indexOf(d):
"*="===b?d&&-1<h.indexOf(d):"$="===b?d&&h.substr(h.length-d.length)===d:"~="===b?-1<(" "+h+" ").indexOf(d):"|="===b?h===d||h.substr(0,d.length+1)===d+"-":!1}},CHILD:function(a,b,d,h,f){var e="nth"!==a.slice(0,3),l="last"!==a.slice(-4),o="of-type"===b;return 1===h&&0===f?function(a){return!!a.parentNode}:function(b,d,k){var p,c,m,g,s,d=e!==l?"nextSibling":"previousSibling",t=b.parentNode,n=o&&b.nodeName.toLowerCase(),k=!k&&!o;if(t){if(e){for(;d;){for(c=b;c=c[d];)if(o?c.nodeName.toLowerCase()===n:1===
c.nodeType)return!1;s=d="only"===a&&!s&&"nextSibling"}return!0}s=[l?t.firstChild:t.lastChild];if(l&&k){k=t[N]||(t[N]={});p=k[a]||[];g=p[0]===L&&p[1];m=p[0]===L&&p[2];for(c=g&&t.childNodes[g];c=++g&&c&&c[d]||(m=g=0)||s.pop();)if(1===c.nodeType&&++m&&c===b){k[a]=[L,g,m];break}}else if(k&&(p=(b[N]||(b[N]={}))[a])&&p[0]===L)m=p[1];else for(;c=++g&&c&&c[d]||(m=g=0)||s.pop();)if((o?c.nodeName.toLowerCase()===n:1===c.nodeType)&&++m)if(k&&((c[N]||(c[N]={}))[a]=[L,m]),c===b)break;m-=f;return m===h||0===m%
h&&0<=m/h}}},PSEUDO:function(a,b){var d,h=D.pseudos[a]||D.setFilters[a.toLowerCase()]||B.error("unsupported pseudo: "+a);if(h[N])return h(b);return 1<h.length?(d=[a,a,"",b],D.setFilters.hasOwnProperty(a.toLowerCase())?j(function(a,d){for(var f,e=h(a,b),l=e.length;l--;)f=ma.call(a,e[l]),a[f]=!(d[f]=e[l])}):function(a){return h(a,0,d)}):h}},pseudos:{not:j(function(a){var b=[],d=[],h=H(a.replace(ca,"$1"));return h[N]?j(function(a,b,d,f){for(var f=h(a,null,f,[]),e=a.length;e--;)if(d=f[e])a[e]=!(b[e]=
d)}):function(a,f,e){b[0]=a;h(b,null,e,d);return!d.pop()}}),has:j(function(a){return function(b){return 0<B(a,b).length}}),contains:j(function(a){return function(b){return-1<(b.textContent||b.innerText||ea(b)).indexOf(a)}}),lang:j(function(a){ra.test(a||"")||B.error("unsupported lang: "+a);a=a.replace(oa,pa).toLowerCase();return function(b){var d;do if(d=M?b.getAttribute("xml:lang")||b.getAttribute("lang"):b.lang)return d=d.toLowerCase(),d===a||0===d.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);
return!1}}),target:function(b){var d=a.location&&a.location.hash;return d&&d.slice(1)===b.id},root:function(a){return a===Q},focus:function(a){return a===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!(!a.type&&!a.href&&!~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===
a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if("@"<a.nodeName||3===a.nodeType||4===a.nodeType)return!1;return!0},parent:function(a){return!D.pseudos.empty(a)},header:function(a){return ua.test(a.nodeName)},input:function(a){return ta.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||b.toLowerCase()===
a.type)},first:r(function(){return[0]}),last:r(function(a,b){return[b-1]}),eq:r(function(a,b,d){return[0>d?d+b:d]}),even:r(function(a,b){for(var d=0;d<b;d+=2)a.push(d);return a}),odd:r(function(a,b){for(var d=1;d<b;d+=2)a.push(d);return a}),lt:r(function(a,b,d){for(b=0>d?d+b:d;0<=--b;)a.push(b);return a}),gt:r(function(a,b,d){for(d=0>d?d+b:d;++d<b;)a.push(d);return a})}};for(q in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})D.pseudos[q]=R(q);for(q in{submit:!0,reset:!0})D.pseudos[q]=Z(q);H=
B.compile=function(a,b){var d,h=[],f=[],e=Aa[a+" "];if(!e){b||(b=z(a));for(d=b.length;d--;)e=I(b[d]),e[N]?h.push(e):f.push(e);e=Aa(a,J(f,h))}return e};D.pseudos.nth=D.pseudos.eq;D.filters=G.prototype=D.pseudos;D.setFilters=new G;O();B.attr=d.attr;d.find=B;d.expr=B.selectors;d.expr[":"]=d.expr.pseudos;d.unique=B.uniqueSort;d.text=B.getText;d.isXMLDoc=B.isXML;d.contains=B.contains})(c);var Mb=/Until$/,Nb=/^(?:parents|prev(?:Until|All))/,sb=/^.[^:#\[\.,]*$/,bb=d.expr.match.needsContext,Ob={children:!0,
contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b,h,f;if("string"!==typeof a)return f=this,this.pushStack(d(a).filter(function(){for(b=0;b<f.length;b++)if(d.contains(f[b],this))return!0}));h=[];for(b=0;b<this.length;b++)d.find(a,this[b],h);h=this.pushStack(d.unique(h));h.selector=(this.selector?this.selector+" ":"")+a;return h},has:function(a){var b,h=d(a,this),f=h.length;return this.filter(function(){for(b=0;b<f;b++)if(d.contains(this,h[b]))return!0})},not:function(a){return this.pushStack(E(this,
a,!1))},filter:function(a){return this.pushStack(E(this,a,!0))},is:function(a){return!!a&&("string"===typeof a?bb.test(a)?0<=d(a,this.context).index(this[0]):0<d.filter(a,this).length:0<this.filter(a).length)},closest:function(a,b){for(var h,f=0,e=this.length,l=[],k=bb.test(a)||"string"!==typeof a?d(a,b||this.context):0;f<e;f++)for(h=this[f];h&&h.ownerDocument&&h!==b&&11!==h.nodeType;){if(k?-1<k.index(h):d.find.matchesSelector(h,a)){l.push(h);break}h=h.parentNode}return this.pushStack(1<l.length?
d.unique(l):l)},index:function(a){return!a?this[0]&&this[0].parentNode?this.first().prevAll().length:-1:"string"===typeof a?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var h="string"===typeof a?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),h=d.merge(this.get(),h);return this.pushStack(d.unique(h))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});d.fn.andSelf=d.fn.addBack;d.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?
a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,h){return d.dir(a,"parentNode",h)},next:function(a){return y(a,"nextSibling")},prev:function(a){return y(a,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,h){return d.dir(a,"nextSibling",h)},prevUntil:function(a,b,h){return d.dir(a,"previousSibling",h)},siblings:function(a){return d.sibling((a.parentNode||{}).firstChild,
a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.merge([],a.childNodes)}},function(a,b){d.fn[a]=function(h,f){var e=d.map(this,b,h);Mb.test(a)||(f=h);f&&"string"===typeof f&&(e=d.filter(f,e));e=1<this.length&&!Ob[a]?d.unique(e):e;1<this.length&&Nb.test(a)&&(e=e.reverse());return this.pushStack(e)}});d.extend({filter:function(a,b,h){h&&(a=":not("+a+")");return 1===b.length?d.find.matchesSelector(b[0],
a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,h){for(var f=[],a=a[b];a&&9!==a.nodeType&&(h===j||1!==a.nodeType||!d(a).is(h));)1===a.nodeType&&f.push(a),a=a[b];return f},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&d.push(a);return d}});var Ta="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Pb=/ jQuery\d+="(?:null|\d+)"/g,cb=RegExp("<(?:"+Ta+")[\\s/>]","i"),
Ka=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,eb=/<([\w:]+)/,fb=/<tbody/i,Qb=/<|&#?\w+;/,Rb=/<(?:script|style|link)/i,Ca=/^(?:checkbox|radio)$/i,Sb=/checked\s*(?:[^=]|=\s*.checked.)/i,gb=/^$|\/(?:java|ecma)script/i,tb=/^true\/(.*)/,Tb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,L={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],
tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:d.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},La=K(v).appendChild(v.createElement("div"));L.optgroup=L.option;L.tbody=L.tfoot=L.colgroup=L.caption=L.thead;L.th=L.td;d.fn.extend({text:function(a){return d.access(this,function(a){return a===j?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(a))},
null,a,arguments.length)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.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 d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),h=b.contents();
h.length?h.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(h){d(this).wrapAll(b?a.call(this,h):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(1===this.nodeType||
11===this.nodeType||9===this.nodeType)&&this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,!1,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var h,f=0;null!=(h=this[f]);f++)if(!a||0<d.filter(a,[h]).length)!b&&1===h.nodeType&&d.cleanData(x(h)),h.parentNode&&(b&&d.contains(h.ownerDocument,
h)&&Z(x(h,"script")),h.parentNode.removeChild(h));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for(1===a.nodeType&&d.cleanData(x(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&d.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){return d.access(this,function(a){var h=this[0]||{},f=0,e=this.length;if(a===j)return 1===h.nodeType?h.innerHTML.replace(Pb,
""):j;if("string"===typeof a&&!Rb.test(a)&&(d.support.htmlSerialize||!cb.test(a))&&(d.support.leadingWhitespace||!Ka.test(a))&&!L[(eb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(db,"<$1></$2>");try{for(;f<e;f++)h=this[f]||{},1===h.nodeType&&(d.cleanData(x(h,!1)),h.innerHTML=a);h=0}catch(l){}}h&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){!d.isFunction(a)&&"string"!==typeof a&&(a=d(a).not(this).detach());return this.domManip([a],!0,function(a){var h=this.nextSibling,
f=this.parentNode;if(f&&1===this.nodeType||11===this.nodeType)d(this).remove(),h?h.parentNode.insertBefore(a,h):f.appendChild(a)})},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,h){var a=va.apply([],a),f,e,l,k,c=0,m=this.length,g=this,s=m-1,t=a[0],n=d.isFunction(t);if(n||!(1>=m||"string"!==typeof t||d.support.checkClone||!Sb.test(t)))return this.each(function(d){var f=g.eq(d);n&&(a[0]=t.call(this,d,b?f.html():j));f.domManip(a,b,h)});if(m&&(f=d.buildFragment(a,this[0].ownerDocument,
!1,this),e=f.firstChild,1===f.childNodes.length&&(f=e),e)){b=b&&d.nodeName(e,"tr");e=d.map(x(f,"script"),F);for(l=e.length;c<m;c++)k=f,c!==s&&(k=d.clone(k,!0,!0),l&&d.merge(e,x(k,"script"))),h.call(b&&d.nodeName(this[c],"table")?this[c].getElementsByTagName("tbody")[0]||this[c].appendChild(this[c].ownerDocument.createElement("tbody")):this[c],k,c);if(l){f=e[e.length-1].ownerDocument;d.map(e,T);for(c=0;c<l;c++)if(k=e[c],gb.test(k.type||"")&&!d._data(k,"globalEval")&&d.contains(f,k))k.src?d.ajax({url:k.src,
type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):d.globalEval((k.text||k.textContent||k.innerHTML||"").replace(Tb,""))}f=e=null}return this}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(a){for(var f=0,e=[],l=d(a),k=l.length-1;f<=k;f++)a=f===k?this:this.clone(!0),d(l[f])[b](a),ya.apply(e,a.get());return this.pushStack(e)}});d.extend({clone:function(a,b,h){var f,e,l,k,c,m=d.contains(a.ownerDocument,
a);d.support.html5Clone||d.isXMLDoc(a)||!cb.test("<"+a.nodeName+">")?c=a.cloneNode(!0):(La.innerHTML=a.outerHTML,La.removeChild(c=La.firstChild));if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!d.isXMLDoc(a)){f=x(c);e=x(a);for(k=0;null!=(l=e[k]);++k)if(f[k]){var g=f[k],s=void 0,t=void 0,n=void 0;if(1===g.nodeType){s=g.nodeName.toLowerCase();if(!d.support.noCloneEvent&&g[d.expando]){t=d._data(g);for(n in t.events)d.removeEvent(g,n,t.handle);g.removeAttribute(d.expando)}if("script"===
s&&g.text!==l.text)F(g).text=l.text,T(g);else if("object"===s)g.parentNode&&(g.outerHTML=l.outerHTML),d.support.html5Clone&&l.innerHTML&&!d.trim(g.innerHTML)&&(g.innerHTML=l.innerHTML);else if("input"===s&&Ca.test(l.type))g.defaultChecked=g.checked=l.checked,g.value!==l.value&&(g.value=l.value);else if("option"===s)g.defaultSelected=g.selected=l.defaultSelected;else if("input"===s||"textarea"===s)g.defaultValue=l.defaultValue}}}if(b)if(h){e=e||x(a);f=f||x(c);for(k=0;null!=(l=e[k]);k++)I(l,f[k])}else I(a,
c);f=x(c,"script");0<f.length&&Z(f,!m&&x(a,"script"));return c},buildFragment:function(a,b,h,f){for(var e,l,k,c,m,g,s=a.length,t=K(b),n=[],j=0;j<s;j++)if((e=a[j])||0===e)if("object"===d.type(e))d.merge(n,e.nodeType?[e]:e);else if(Qb.test(e)){k=k||t.appendChild(b.createElement("div"));l=(eb.exec(e)||["",""])[1].toLowerCase();c=L[l]||L._default;k.innerHTML=c[1]+e.replace(db,"<$1></$2>")+c[2];for(g=c[0];g--;)k=k.lastChild;!d.support.leadingWhitespace&&Ka.test(e)&&n.push(b.createTextNode(Ka.exec(e)[0]));
if(!d.support.tbody)for(g=(e="table"===l&&!fb.test(e)?k.firstChild:"<table>"===c[1]&&!fb.test(e)?k:0)&&e.childNodes.length;g--;)d.nodeName(m=e.childNodes[g],"tbody")&&!m.childNodes.length&&e.removeChild(m);d.merge(n,k.childNodes);for(k.textContent="";k.firstChild;)k.removeChild(k.firstChild);k=t.lastChild}else n.push(b.createTextNode(e));k&&t.removeChild(k);d.support.appendChecked||d.grep(x(n,"input"),G);for(j=0;e=n[j++];)if(!(f&&-1!==d.inArray(e,f))&&(a=d.contains(e.ownerDocument,e),k=x(t.appendChild(e),
"script"),a&&Z(k),h))for(g=0;e=k[g++];)gb.test(e.type||"")&&h.push(e);return t},cleanData:function(a,b){for(var h,f,e,l,k=0,c=d.expando,g=d.cache,m=d.support.deleteExpando,s=d.event.special;null!=(e=a[k]);k++)if(b||d.acceptData(e))if(h=(f=e[c])&&g[f]){if(h.events)for(l in h.events)s[l]?d.event.remove(e,l):d.removeEvent(e,l,h.handle);g[f]&&(delete g[f],m?delete e[c]:"undefined"!==typeof e.removeAttribute?e.removeAttribute(c):e[c]=null,ha.push(f))}}});var Y,X,ra,Ma=/alpha\([^)]*\)/i,Ub=/opacity\s*=\s*([^)]*)/,
Vb=/^(top|right|bottom|left)$/,Wb=/^(none|table(?!-c[ea]).+)/,hb=/^margin/,ub=RegExp("^("+wa+")(.*)$","i"),ta=RegExp("^("+wa+")(?!px)[a-z%]+$","i"),Xb=RegExp("^([+-])=("+wa+")","i"),Va={BODY:"block"},Yb={position:"absolute",visibility:"hidden",display:"block"},ib={letterSpacing:0,fontWeight:400},ia=["Top","Right","Bottom","Left"],Ua=["Webkit","O","Moz","ms"];d.fn.extend({css:function(a,b){return d.access(this,function(a,b,f){var e,l={},k=0;if(d.isArray(b)){f=X(a);for(e=b.length;k<e;k++)l[b[k]]=d.css(a,
b[k],!1,f);return l}return f!==j?d.style(a,b,f):d.css(a,b)},a,b,1<arguments.length)},show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(a){var b="boolean"===typeof a;return this.each(function(){(b?a:H(this))?d(this).show():d(this).hide()})}});d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=Y(a,"opacity");return""===d?"1":d}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":d.support.cssFloat?
"cssFloat":"styleFloat"},style:function(a,b,h,f){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var e,l,k,c=d.camelCase(b),g=a.style,b=d.cssProps[c]||(d.cssProps[c]=O(g,c));k=d.cssHooks[b]||d.cssHooks[c];if(h!==j){l=typeof h;if("string"===l&&(e=Xb.exec(h)))h=(e[1]+1)*e[2]+parseFloat(d.css(a,b)),l="number";if(!(null==h||"number"===l&&isNaN(h)))if("number"===l&&!d.cssNumber[c]&&(h+="px"),!d.support.clearCloneStyle&&""===h&&0===b.indexOf("background")&&(g[b]="inherit"),!k||!("set"in k)||(h=k.set(a,
h,f))!==j)try{g[b]=h}catch(m){}}else return k&&"get"in k&&(e=k.get(a,!1,f))!==j?e:g[b]}},css:function(a,b,h,f){var e,l;l=d.camelCase(b);b=d.cssProps[l]||(d.cssProps[l]=O(a.style,l));(l=d.cssHooks[b]||d.cssHooks[l])&&"get"in l&&(e=l.get(a,!0,h));e===j&&(e=Y(a,b,f));"normal"===e&&b in ib&&(e=ib[b]);return h?(a=parseFloat(e),!0===h||d.isNumeric(a)?a||0:e):e},swap:function(a,b,d,f){var e,l={};for(e in b)l[e]=a.style[e],a.style[e]=b[e];d=d.apply(a,f||[]);for(e in b)a.style[e]=l[e];return d}});c.getComputedStyle?
(X=function(a){return c.getComputedStyle(a,null)},Y=function(a,b,h){var f,e=(h=h||X(a))?h.getPropertyValue(b)||h[b]:j,l=a.style;h&&(""===e&&!d.contains(a.ownerDocument,a)&&(e=d.style(a,b)),ta.test(e)&&hb.test(b)&&(a=l.width,b=l.minWidth,f=l.maxWidth,l.minWidth=l.maxWidth=l.width=e,e=h.width,l.width=a,l.minWidth=b,l.maxWidth=f));return e}):v.documentElement.currentStyle&&(X=function(a){return a.currentStyle},Y=function(a,b,d){var f,e,l=(d=d||X(a))?d[b]:j,k=a.style;null==l&&k&&k[b]&&(l=k[b]);if(ta.test(l)&&
!Vb.test(b)){d=k.left;if(e=(f=a.runtimeStyle)&&f.left)f.left=a.currentStyle.left;k.left="fontSize"===b?"1em":l;l=k.pixelLeft+"px";k.left=d;e&&(f.left=e)}return""===l?"auto":l});d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,f,e){if(f)return 0===a.offsetWidth&&Wb.test(d.css(a,"display"))?d.swap(a,Yb,function(){return W(a,b,e)}):W(a,b,e)},set:function(a,f,e){var l=e&&X(a);return w(a,f,e?V(a,b,e,d.support.boxSizing&&"border-box"===d.css(a,"boxSizing",!1,l),l):0)}}});d.support.opacity||
(d.cssHooks.opacity={get:function(a,b){return Ub.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var f=a.style,e=a.currentStyle,l=d.isNumeric(b)?"alpha(opacity="+100*b+")":"",k=e&&e.filter||f.filter||"";f.zoom=1;if((1<=b||""===b)&&""===d.trim(k.replace(Ma,""))&&f.removeAttribute)if(f.removeAttribute("filter"),""===b||e&&!e.filter)return;f.filter=Ma.test(k)?k.replace(Ma,l):k+" "+l}});d(function(){d.support.reliableMarginRight||
(d.cssHooks.marginRight={get:function(a,b){if(b)return d.swap(a,{display:"inline-block"},Y,[a,"marginRight"])}});!d.support.pixelPosition&&d.fn.position&&d.each(["top","left"],function(a,b){d.cssHooks[b]={get:function(a,f){if(f)return f=Y(a,b),ta.test(f)?d(a).position()[b]+"px":f}}})});d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){return 0===a.offsetWidth&&0===a.offsetHeight||!d.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||d.css(a,"display"))},d.expr.filters.visible=
function(a){return!d.expr.filters.hidden(a)});d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(d){for(var f=0,e={},d="string"===typeof d?d.split(" "):[d];4>f;f++)e[a+ia[f]+b]=d[f]||d[f-2]||d[0];return e}};hb.test(a)||(d.cssHooks[a+b].set=w)});var Zb=/%20/g,vb=/\[\]$/,jb=/\r?\n/g,$b=/^(?:submit|button|image|reset)$/i,ac=/^(?:input|select|textarea|keygen)/i;d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=
d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&ac.test(this.nodeName)&&!$b.test(a)&&(this.checked||!Ca.test(a))}).map(function(a,b){var f=d(this).val();return null==f?null:d.isArray(f)?d.map(f,function(a){return{name:b.name,value:a.replace(jb,"\r\n")}}):{name:b.name,value:f.replace(jb,"\r\n")}}).get()}});d.param=function(a,b){var f,e=[],l=function(a,b){b=d.isFunction(b)?b():null==b?"":b;e[e.length]=encodeURIComponent(a)+
"="+encodeURIComponent(b)};b===j&&(b=d.ajaxSettings&&d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){l(this.name,this.value)});else for(f in a)M(f,a[f],b,l);return e.join("&").replace(Zb,"+")};var ca,U,Na=d.now(),Oa=/\?/,bc=/#.*$/,kb=/([?&])_=[^&]*/,cc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dc=/^(?:GET|HEAD)$/,ec=/^\/\//,lb=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,mb=d.fn.load,nb={},Da={},ob="*/".concat("*");try{U=ba.href}catch(jc){U=v.createElement("a"),
U.href="",U=U.href}ca=lb.exec(U.toLowerCase())||[];d.fn.load=function(a,b,f){if("string"!==typeof a&&mb)return mb.apply(this,arguments);var e,l,k,c=this,g=a.indexOf(" ");0<=g&&(e=a.slice(g,a.length),a=a.slice(0,g));d.isFunction(b)?(f=b,b=j):b&&"object"===typeof b&&(l="POST");0<c.length&&d.ajax({url:a,type:l,dataType:"html",data:b}).done(function(a){k=arguments;c.html(e?d("<div>").append(d.parseHTML(a)).find(e):a)}).complete(f&&function(a,b){c.each(f,k||[a.responseText,b,a])});return this};d.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),
function(a,b){d.fn[b]=function(a){return this.on(b,a)}});d.each(["get","post"],function(a,b){d[b]=function(a,f,e,l){d.isFunction(f)&&(l=l||e,e=f,f=j);return d.ajax({url:a,type:b,dataType:l,data:f,success:e})}});d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:U,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ca[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ob,text:"text/plain",html:"text/html",
xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":c.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?t(t(a,d.ajaxSettings),b):t(d.ajaxSettings,a)},ajaxPrefilter:e(nb),ajaxTransport:e(Da),ajax:function(a,b){function f(a,b,h,k){var g,s,n,z,C=b;if(2!==S){S=2;m&&clearTimeout(m);
e=j;c=k||"";A.readyState=0<a?4:0;if(h){z=i;var k=A,v,x,I,J,G=z.contents,q=z.dataTypes,Sa=z.responseFields;for(x in Sa)x in h&&(k[Sa[x]]=h[x]);for(;"*"===q[0];)q.shift(),v===j&&(v=z.mimeType||k.getResponseHeader("Content-Type"));if(v)for(x in G)if(G[x]&&G[x].test(v)){q.unshift(x);break}if(q[0]in h)I=q[0];else{for(x in h){if(!q[0]||z.converters[x+" "+q[0]]){I=x;break}J||(J=x)}I=I||J}I?(I!==q[0]&&q.unshift(I),z=h[I]):z=void 0}if(200<=a&&300>a||304===a)if(i.ifModified&&((h=A.getResponseHeader("Last-Modified"))&&
(d.lastModified[l]=h),(h=A.getResponseHeader("etag"))&&(d.etag[l]=h)),304===a)g=!0,C="notmodified";else{a:{s=i;n=z;var w,y,C={};v=0;x=s.dataTypes.slice();I=x[0];s.dataFilter&&(n=s.dataFilter(n,s.dataType));if(x[1])for(w in s.converters)C[w.toLowerCase()]=s.converters[w];for(;h=x[++v];)if("*"!==h){if("*"!==I&&I!==h){w=C[I+" "+h]||C["* "+h];if(!w)for(y in C)if(g=y.split(" "),g[1]===h&&(w=C[I+" "+g[0]]||C["* "+g[0]])){!0===w?w=C[y]:!0!==C[y]&&(h=g[0],x.splice(v--,0,h));break}if(!0!==w)if(w&&s["throws"])n=
w(n);else try{n=w(n)}catch(ea){g={state:"parsererror",error:w?ea:"No conversion from "+I+" to "+h};break a}}I=h}g={state:"success",data:n}}C=g.state;s=g.data;n=g.error;g=!n}else if(n=C,a||!C)C="error",0>a&&(a=0);A.status=a;A.statusText=(b||C)+"";g?R.resolveWith(B,[s,C,A]):R.rejectWith(B,[A,C,n]);A.statusCode(r);r=j;t&&u.trigger(g?"ajaxSuccess":"ajaxError",[A,i,g?s:n]);Z.fireWith(B,[A,C]);t&&(u.trigger("ajaxComplete",[A,i]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=j);var b=
b||{},e,l,c,g,m,s,t,n,i=d.ajaxSetup({},b),B=i.context||i,u=i.context&&(B.nodeType||B.jquery)?d(B):d.event,R=d.Deferred(),Z=d.Callbacks("once memory"),r=i.statusCode||{},z={},C={},S=0,v="canceled",A={readyState:0,getResponseHeader:function(a){var b;if(2===S){if(!g)for(g={};b=cc.exec(c);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===S?c:null},setRequestHeader:function(a,b){var d=a.toLowerCase();S||(a=C[d]=C[d]||a,z[a]=b);return this},
overrideMimeType:function(a){S||(i.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>S)for(b in a)r[b]=[r[b],a[b]];else A.always(a[A.status]);return this},abort:function(a){a=a||v;e&&e.abort(a);f(0,a);return this}};R.promise(A).complete=Z.add;A.success=A.done;A.error=A.fail;i.url=((a||i.url||U)+"").replace(bc,"").replace(ec,ca[1]+"//");i.type=b.method||b.type||i.method||i.type;i.dataTypes=d.trim(i.dataType||"*").toLowerCase().match(aa)||[""];null==i.crossDomain&&(s=lb.exec(i.url.toLowerCase()),
i.crossDomain=!(!s||!(s[1]!==ca[1]||s[2]!==ca[2]||(s[3]||("http:"===s[1]?80:443))!=(ca[3]||("http:"===ca[1]?80:443)))));i.data&&i.processData&&"string"!==typeof i.data&&(i.data=d.param(i.data,i.traditional));k(nb,i,b,A);if(2===S)return A;(t=i.global)&&0===d.active++&&d.event.trigger("ajaxStart");i.type=i.type.toUpperCase();i.hasContent=!dc.test(i.type);l=i.url;i.hasContent||(i.data&&(l=i.url+=(Oa.test(l)?"&":"?")+i.data,delete i.data),!1===i.cache&&(i.url=kb.test(l)?l.replace(kb,"$1_="+Na++):l+(Oa.test(l)?
"&":"?")+"_="+Na++));i.ifModified&&(d.lastModified[l]&&A.setRequestHeader("If-Modified-Since",d.lastModified[l]),d.etag[l]&&A.setRequestHeader("If-None-Match",d.etag[l]));(i.data&&i.hasContent&&!1!==i.contentType||b.contentType)&&A.setRequestHeader("Content-Type",i.contentType);A.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+("*"!==i.dataTypes[0]?", "+ob+"; q=0.01":""):i.accepts["*"]);for(n in i.headers)A.setRequestHeader(n,i.headers[n]);if(i.beforeSend&&
(!1===i.beforeSend.call(B,A,i)||2===S))return A.abort();v="abort";for(n in{success:1,error:1,complete:1})A[n](i[n]);if(e=k(Da,i,b,A)){A.readyState=1;t&&u.trigger("ajaxSend",[A,i]);i.async&&0<i.timeout&&(m=setTimeout(function(){A.abort("timeout")},i.timeout));try{S=1,e.send(z,f)}catch(x){if(2>S)f(-1,x);else throw x;}}else f(-1,"No Transport");return A},getScript:function(a,b){return d.get(a,j,b,"script")},getJSON:function(a,b,f){return d.get(a,b,f,"json")}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){a.cache===j&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,f=v.head||d("head")[0]||v.documentElement;return{send:function(d,e){b=v.createElement("script");b.async=!0;a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,d){if(d||!b.readyState||
/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,d||e(200,"success")};f.insertBefore(b,f.firstChild)},abort:function(){if(b)b.onload(j,!0)}}}});var pb=[],Pa=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=pb.pop()||d.expando+"_"+Na++;this[a]=!0;return a}});d.ajaxPrefilter("json jsonp",function(a,b,f){var e,l,k,g=!1!==a.jsonp&&(Pa.test(a.url)?"url":"string"===typeof a.data&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&
Pa.test(a.data)&&"data");if(g||"jsonp"===a.dataTypes[0])return e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g?a[g]=a[g].replace(Pa,"$1"+e):!1!==a.jsonp&&(a.url+=(Oa.test(a.url)?"&":"?")+a.jsonp+"="+e),a.converters["script json"]=function(){k||d.error(e+" was not called");return k[0]},a.dataTypes[0]="json",l=c[e],c[e]=function(){k=arguments},f.always(function(){c[e]=l;a[e]&&(a.jsonpCallback=b.jsonpCallback,pb.push(e));k&&d.isFunction(l)&&l(k[0]);k=l=j}),"script"});
var qa,sa,fc=0,Qa=c.ActiveXObject&&function(){for(var a in qa)qa[a](j,!0)};d.ajaxSettings.xhr=c.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&R()))a:{try{a=new c.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:R;sa=d.ajaxSettings.xhr();d.support.cors=!!sa&&"withCredentials"in sa;(sa=d.support.ajax=!!sa)&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var b;return{send:function(f,e){var l,k,g=a.xhr();a.username?g.open(a.type,a.url,a.async,a.username,a.password):
g.open(a.type,a.url,a.async);if(a.xhrFields)for(k in a.xhrFields)g[k]=a.xhrFields[k];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType);!a.crossDomain&&!f["X-Requested-With"]&&(f["X-Requested-With"]="XMLHttpRequest");try{for(k in f)g.setRequestHeader(k,f[k])}catch(m){}g.send(a.hasContent&&a.data||null);b=function(f,h){var k,c,m,s,n;try{if(b&&(h||4===g.readyState))if(b=j,l&&(g.onreadystatechange=d.noop,Qa&&delete qa[l]),h)4!==g.readyState&&g.abort();else{s={};k=g.status;n=g.responseXML;
m=g.getAllResponseHeaders();n&&n.documentElement&&(s.xml=n);"string"===typeof g.responseText&&(s.text=g.responseText);try{c=g.statusText}catch(t){c=""}!k&&a.isLocal&&!a.crossDomain?k=s.text?200:404:1223===k&&(k=204)}}catch(i){h||e(-1,i)}s&&e(k,c,s,m)};a.async?4===g.readyState?setTimeout(b):(l=++fc,Qa&&(qa||(qa={},d(c).unload(Qa)),qa[l]=b),g.onreadystatechange=b):b()},abort:function(){b&&b(j,!0)}}}});var ka,za,gc=/^(?:toggle|show|hide)$/,hc=RegExp("^(?:([+-])=|)("+wa+")([a-z%]*)$","i"),ic=/queueHooks$/,
ua=[function(a,b,f){var e,l,k,c,g,m,s=this,n=a.style,t={},i=[],j=a.nodeType&&H(a);f.queue||(g=d._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,m=g.empty.fire,g.empty.fire=function(){g.unqueued||m()}),g.unqueued++,s.always(function(){s.always(function(){g.unqueued--;d.queue(a,"fx").length||g.empty.fire()})}));if(1===a.nodeType&&("height"in b||"width"in b))f.overflow=[n.overflow,n.overflowX,n.overflowY],"inline"===d.css(a,"display")&&"none"===d.css(a,"float")&&(!d.support.inlineBlockNeedsLayout||
"inline"===P(a.nodeName)?n.display="inline-block":n.zoom=1);f.overflow&&(n.overflow="hidden",d.support.shrinkWrapBlocks||s.done(function(){n.overflow=f.overflow[0];n.overflowX=f.overflow[1];n.overflowY=f.overflow[2]}));for(e in b)k=b[e],gc.exec(k)&&(delete b[e],l=l||"toggle"===k,k!==(j?"hide":"show")&&i.push(e));if(b=i.length){k=d._data(a,"fxshow")||d._data(a,"fxshow",{});"hidden"in k&&(j=k.hidden);l&&(k.hidden=!j);j?d(a).show():s.done(function(){d(a).hide()});s.done(function(){var b;d._removeData(a,
"fxshow");for(b in t)d.style(a,b,t[b])});for(e=0;e<b;e++)l=i[e],c=s.createTween(l,j?k[l]:0),t[l]=k[l]||d.style(a,l),l in k||(k[l]=c.start,j&&(c.end=c.start,c.start="width"===l||"height"===l?1:0))}}],fa={"*":[function(a,b){var f,e,l=this.createTween(a,b),k=hc.exec(b),c=l.cur(),g=+c||0,m=1,s=20;if(k){f=+k[2];e=k[3]||(d.cssNumber[a]?"":"px");if("px"!==e&&g){g=d.css(l.elem,a,!0)||f||1;do m=m||".5",g/=m,d.style(l.elem,a,g+e);while(m!==(m=l.cur()/c)&&1!==m&&--s)}l.unit=e;l.start=g;l.end=k[1]?g+(k[1]+1)*
f:f}return l}]};d.Animation=d.extend(Q,{tweener:function(a,b){d.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var f,e=0,l=a.length;e<l;e++)f=a[e],fa[f]=fa[f]||[],fa[f].unshift(b)},prefilter:function(a,b){b?ua.unshift(a):ua.push(a)}});d.Tween=l;l.prototype={constructor:l,init:function(a,b,f,e,l,k){this.elem=a;this.prop=f;this.easing=l||"swing";this.options=b;this.start=this.now=this.cur();this.end=e;this.unit=k||(d.cssNumber[f]?"":"px")},cur:function(){var a=l.propHooks[this.prop];return a&&a.get?
a.get(this):l.propHooks._default.get(this)},run:function(a){var b,f=l.propHooks[this.prop];this.pos=this.options.duration?b=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);f&&f.set?f.set(this):l.propHooks._default.set(this);return this}};l.prototype.init.prototype=l.prototype;l.propHooks={_default:{get:function(a){if(null!=a.elem[a.prop]&&(!a.elem.style||null==
a.elem.style[a.prop]))return a.elem[a.prop];a=d.css(a.elem,a.prop,"auto");return!a||"auto"===a?0:a},set:function(a){if(d.fx.step[a.prop])d.fx.step[a.prop](a);else a.elem.style&&(null!=a.elem.style[d.cssProps[a.prop]]||d.cssHooks[a.prop])?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};l.propHooks.scrollTop=l.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};d.each(["toggle","show","hide"],function(a,b){var f=d.fn[b];d.fn[b]=function(a,d,
e){return null==a||"boolean"===typeof a?f.apply(this,arguments):this.animate(s(b,!0),a,d,e)}});d.fn.extend({fadeTo:function(a,b,d,f){return this.filter(H).css("opacity",0).show().end().animate({opacity:b},a,d,f)},animate:function(a,b,f,e){var l=d.isEmptyObject(a),k=d.speed(b,f,e),c=function(){var b=Q(this,d.extend({},a),k);c.finish=function(){b.stop(!0)};(l||d._data(this,"finish"))&&b.stop(!0)};c.finish=c;return l||!1===k.queue?this.each(c):this.queue(k.queue,c)},stop:function(a,b,f){var e=function(a){var b=
a.stop;delete a.stop;b(f)};"string"!==typeof a&&(f=b,b=a,a=j);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b=!0,l=null!=a&&a+"queueHooks",k=d.timers,c=d._data(this);if(l)c[l]&&c[l].stop&&e(c[l]);else for(l in c)c[l]&&c[l].stop&&ic.test(l)&&e(c[l]);for(l=k.length;l--;)if(k[l].elem===this&&(null==a||k[l].queue===a))k[l].anim.stop(f),b=!1,k.splice(l,1);(b||!f)&&d.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var b,f=d._data(this),e=f[a+"queue"];
b=f[a+"queueHooks"];var l=d.timers,k=e?e.length:0;f.finish=!0;d.queue(this,a,[]);b&&b.cur&&b.cur.finish&&b.cur.finish.call(this);for(b=l.length;b--;)l[b].elem===this&&l[b].queue===a&&(l[b].anim.stop(!0),l.splice(b,1));for(b=0;b<k;b++)e[b]&&e[b].finish&&e[b].finish.call(this);delete f.finish})}});d.each({slideDown:s("show"),slideUp:s("hide"),slideToggle:s("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,d,f){return this.animate(b,
a,d,f)}});d.speed=function(a,b,f){var e=a&&"object"===typeof a?d.extend({},a):{complete:f||!f&&b||d.isFunction(a)&&a,duration:a,easing:f&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:"number"===typeof e.duration?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default;if(null==e.queue||!0===e.queue)e.queue="fx";e.old=e.complete;e.complete=function(){d.isFunction(e.old)&&e.old.call(this);e.queue&&d.dequeue(this,e.queue)};return e};d.easing={linear:function(a){return a},
swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};d.timers=[];d.fx=l.prototype.init;d.fx.tick=function(){var a,b=d.timers,f=0;for(ka=d.now();f<b.length;f++)a=b[f],!a()&&b[f]===a&&b.splice(f--,1);b.length||d.fx.stop();ka=j};d.fx.timer=function(a){a()&&d.timers.push(a)&&d.fx.start()};d.fx.interval=13;d.fx.start=function(){za||(za=setInterval(d.fx.tick,d.fx.interval))};d.fx.stop=function(){clearInterval(za);za=null};d.fx.speeds={slow:600,fast:200,_default:400};d.fx.step={};d.expr&&d.expr.filters&&
(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});d.fn.offset=function(a){if(arguments.length)return a===j?this:this.each(function(b){d.offset.setOffset(this,a,b)});var b,f,e={top:0,left:0},l=(f=this[0])&&f.ownerDocument;if(l){b=l.documentElement;if(!d.contains(b,f))return e;"undefined"!==typeof f.getBoundingClientRect&&(e=f.getBoundingClientRect());f=B(l);return{top:e.top+(f.pageYOffset||b.scrollTop)-(b.clientTop||0),left:e.left+(f.pageXOffset||
b.scrollLeft)-(b.clientLeft||0)}}};d.offset={setOffset:function(a,b,f){var e=d.css(a,"position");"static"===e&&(a.style.position="relative");var l=d(a),k=l.offset(),c=d.css(a,"top"),g=d.css(a,"left"),m={},s={};("absolute"===e||"fixed"===e)&&-1<d.inArray("auto",[c,g])?(s=l.position(),e=s.top,g=s.left):(e=parseFloat(c)||0,g=parseFloat(g)||0);d.isFunction(b)&&(b=b.call(a,f,k));null!=b.top&&(m.top=b.top-k.top+e);null!=b.left&&(m.left=b.left-k.left+g);"using"in b?b.using.call(a,m):l.css(m)}};d.fn.extend({position:function(){if(this[0]){var a,
b,f={top:0,left:0},e=this[0];"fixed"===d.css(e,"position")?b=e.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),d.nodeName(a[0],"html")||(f=a.offset()),f.top+=d.css(a[0],"borderTopWidth",!0),f.left+=d.css(a[0],"borderLeftWidth",!0));return{top:b.top-f.top-d.css(e,"marginTop",!0),left:b.left-f.left-d.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||v.documentElement;a&&!d.nodeName(a,"html")&&"static"===d.css(a,"position");)a=a.offsetParent;
return a||v.documentElement})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var f=/Y/.test(b);d.fn[a]=function(e){return d.access(this,function(a,e,l){var k=B(a);if(l===j)return k?b in k?k[b]:k.document.documentElement[e]:a[e];k?k.scrollTo(!f?l:d(k).scrollLeft(),f?l:d(k).scrollTop()):a[e]=l},a,e,arguments.length,null)}});d.each({Height:"height",Width:"width"},function(a,b){d.each({padding:"inner"+a,content:b,"":"outer"+a},function(f,e){d.fn[e]=function(e,l){var k=arguments.length&&
(f||"boolean"!==typeof e),c=f||(!0===e||!0===l?"margin":"border");return d.access(this,function(b,f,e){if(d.isWindow(b))return b.document.documentElement["client"+a];return 9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):e===j?d.css(b,f,c):d.style(b,f,e,c)},b,k?e:j,k,null)}})});c.jQuery=c.$=d;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window);
(function(c,j){function i(g,n){var i,j;i=g.nodeName.toLowerCase();if("area"===i){i=g.parentNode;j=i.name;if(!g.href||!j||"map"!==i.nodeName.toLowerCase())return!1;i=c("img[usemap=#"+j+"]")[0];return!!i&&r(i)}return(/input|select|textarea|button|object/.test(i)?!g.disabled:"a"===i?g.href||n:n)&&r(g)}function r(g){return c.expr.filters.visible(g)&&!c(g).parents().addBack().filter(function(){return"hidden"===c.css(this,"visibility")}).length}var q=0,u=/^ui-id-\d+$/;c.ui=c.ui||{};c.ui.version||(c.extend(c.ui,
{version:"1.10.0",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}}),c.fn.extend({_focus:c.fn.focus,focus:function(g,n){return"number"===typeof g?this.each(function(){var i=this;setTimeout(function(){c(i).focus();n&&n.call(i)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;
g=c.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.css(this,"position"))&&/(auto|scroll)/.test(c.css(this,"overflow")+c.css(this,"overflow-y")+c.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.css(this,"overflow")+c.css(this,"overflow-y")+c.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?c(document):
g},zIndex:function(g){if(g!==j)return this.css("zIndex",g);if(this.length)for(var g=c(this[0]),n;g.length&&g[0]!==document;){n=g.css("position");if("absolute"===n||"relative"===n||"fixed"===n)if(n=parseInt(g.css("zIndex"),10),!isNaN(n)&&0!==n)return n;g=g.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++q)})},removeUniqueId:function(){return this.each(function(){u.test(this.id)&&c(this).removeAttr("id")})}}),c.extend(c.expr[":"],{data:c.expr.createPseudo?
c.expr.createPseudo(function(g){return function(n){return!!c.data(n,g)}}):function(g,n,i){return!!c.data(g,i[3])},focusable:function(g){return i(g,!isNaN(c.attr(g,"tabindex")))},tabbable:function(g){var n=c.attr(g,"tabindex"),j=isNaN(n);return(j||0<=n)&&i(g,!j)}}),c("<a>").outerWidth(1).jquery||c.each(["Width","Height"],function(g,n){function i(g,n,j,r){c.each(u,function(){n-=parseFloat(c.css(g,"padding"+this))||0;j&&(n-=parseFloat(c.css(g,"border"+this+"Width"))||0);r&&(n-=parseFloat(c.css(g,"margin"+
this))||0)});return n}var u="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),q={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+n]=function(g){return g===j?q["inner"+n].call(this):this.each(function(){c(this).css(r,i(this,g)+"px")})};c.fn["outer"+n]=function(g,j){return"number"!==typeof g?q["outer"+n].call(this,g):this.each(function(){c(this).css(r,i(this,g,!0,j)+"px")})}}),c.fn.addBack||(c.fn.addBack=function(c){return this.add(null==
c?this.prevObject:this.prevObject.filter(c))}),c("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(c.fn.removeData=function(g){return function(n){return arguments.length?g.call(this,c.camelCase(n)):g.call(this)}}(c.fn.removeData)),c.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),c.support.selectstart="onselectstart"in document.createElement("div"),c.fn.extend({disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),c.extend(c.ui,{plugin:{add:function(g,n,i){var j,g=c.ui[g].prototype;for(j in i)g.plugins[j]=g.plugins[j]||[],g.plugins[j].push([n,i[j]])},call:function(c,n,i){var j=c.plugins[n];if(j&&c.element[0].parentNode&&11!==c.element[0].parentNode.nodeType)for(n=0;n<j.length;n++)c.options[j[n][0]]&&j[n][1].apply(c.element,i)}},hasScroll:function(g,n){if("hidden"===c(g).css("overflow"))return!1;var i=
n&&"left"===n?"scrollLeft":"scrollTop",j=!1;if(0<g[i])return!0;g[i]=1;j=0<g[i];g[i]=0;return j}}))})(jQuery);
(function(c,j){var i=0,r=Array.prototype.slice,q=c.cleanData;c.cleanData=function(i){for(var g=0,n;null!=(n=i[g]);g++)try{c(n).triggerHandler("remove")}catch(j){}q(i)};c.widget=function(i,g,n){var j,r,q,E,K={},F=i.split(".")[0],i=i.split(".")[1];j=F+"-"+i;n||(n=g,g=c.Widget);c.expr[":"][j.toLowerCase()]=function(g){return!!c.data(g,j)};c[F]=c[F]||{};r=c[F][i];q=c[F][i]=function(c,g){if(!this._createWidget)return new q(c,g);arguments.length&&this._createWidget(c,g)};c.extend(q,r,{version:n.version,
_proto:c.extend({},n),_childConstructors:[]});E=new g;E.options=c.widget.extend({},E.options);c.each(n,function(i,n){K[i]=c.isFunction(n)?function(){var c=function(){return g.prototype[i].apply(this,arguments)},j=function(c){return g.prototype[i].apply(this,c)};return function(){var g=this._super,i=this._superApply,u;this._super=c;this._superApply=j;u=n.apply(this,arguments);this._super=g;this._superApply=i;return u}}():n});q.prototype=c.widget.extend(E,{widgetEventPrefix:r?E.widgetEventPrefix:i},
K,{constructor:q,namespace:F,widgetName:i,widgetFullName:j});r?(c.each(r._childConstructors,function(g,i){var n=i.prototype;c.widget(n.namespace+"."+n.widgetName,q,i._proto)}),delete r._childConstructors):g._childConstructors.push(q);c.widget.bridge(i,q)};c.widget.extend=function(i){for(var g=r.call(arguments,1),n=0,z=g.length,q,y;n<z;n++)for(q in g[n])y=g[n][q],g[n].hasOwnProperty(q)&&y!==j&&(i[q]=c.isPlainObject(y)?c.isPlainObject(i[q])?c.widget.extend({},i[q],y):c.widget.extend({},y):y);return i};
c.widget.bridge=function(i,g){var n=g.prototype.widgetFullName||i;c.fn[i]=function(q){var J="string"===typeof q,y=r.call(arguments,1),E=this,q=!J&&y.length?c.widget.extend.apply(null,[q].concat(y)):q;J?this.each(function(){var g,r=c.data(this,n);if(!r)return c.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+q+"'");if(!c.isFunction(r[q])||"_"===q.charAt(0))return c.error("no such method '"+q+"' for "+i+" widget instance");g=r[q].apply(r,y);if(g!==r&&g!==j)return E=
g&&g.jquery?E.pushStack(g.get()):g,!1}):this.each(function(){var i=c.data(this,n);i?i.option(q||{})._init():c.data(this,n,new g(q,this))});return E}};c.Widget=function(){};c.Widget._childConstructors=[];c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(j,g){g=c(g||this.defaultElement||this)[0];this.element=c(g);this.uuid=i++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=c.widget.extend({},this.options,
this._getCreateOptions(),j);this.bindings=c();this.hoverable=c();this.focusable=c();g!==this&&(c.data(g,this.widgetFullName,this),this._on(!0,this.element,{remove:function(c){c.target===g&&this.destroy()}}),this.document=c(g.style?g.ownerDocument:g.document||g),this.window=c(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:c.noop,_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,
destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(c.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:c.noop,widget:function(){return this.element},
option:function(i,g){var n=i,r,q,y;if(0===arguments.length)return c.widget.extend({},this.options);if("string"===typeof i)if(n={},r=i.split("."),i=r.shift(),r.length){q=n[i]=c.widget.extend({},this.options[i]);for(y=0;y<r.length-1;y++)q[r[y]]=q[r[y]]||{},q=q[r[y]];i=r.pop();if(g===j)return q[i]===j?null:q[i];q[i]=g}else{if(g===j)return this.options[i]===j?null:this.options[i];n[i]=g}this._setOptions(n);return this},_setOptions:function(c){for(var g in c)this._setOption(g,c[g]);return this},_setOption:function(c,
g){this.options[c]=g;"disabled"===c&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!g).attr("aria-disabled",g),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(i,g,n){var j,r=this;"boolean"!==typeof i&&(n=g,g=i,i=!1);n?(g=j=c(g),this.bindings=this.bindings.add(g)):(n=g,g=this.element,j=
this.widget());c.each(n,function(n,q){function K(){return!i&&(!0===r.options.disabled||c(this).hasClass("ui-state-disabled"))?void 0:("string"===typeof q?r[q]:q).apply(r,arguments)}"string"!==typeof q&&(K.guid=q.guid=q.guid||K.guid||c.guid++);var F=n.match(/^(\w+)\s*(.*)$/),T=F[1]+r.eventNamespace;(F=F[2])?j.delegate(F,T,K):g.bind(T,K)})},_off:function(c,g){g=(g||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;c.unbind(g).undelegate(g)},_delay:function(c,g){var i=this;return setTimeout(function(){return("string"===
typeof c?i[c]:c).apply(i,arguments)},g||0)},_hoverable:function(i){this.hoverable=this.hoverable.add(i);this._on(i,{mouseenter:function(g){c(g.currentTarget).addClass("ui-state-hover")},mouseleave:function(g){c(g.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(i){this.focusable=this.focusable.add(i);this._on(i,{focusin:function(g){c(g.currentTarget).addClass("ui-state-focus")},focusout:function(g){c(g.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(i,g,n){var j,
r=this.options[i],n=n||{},g=c.Event(g);g.type=(i===this.widgetEventPrefix?i:this.widgetEventPrefix+i).toLowerCase();g.target=this.element[0];if(i=g.originalEvent)for(j in i)j in g||(g[j]=i[j]);this.element.trigger(g,n);return!(c.isFunction(r)&&!1===r.apply(this.element[0],[g].concat(n))||g.isDefaultPrevented())}};c.each({show:"fadeIn",hide:"fadeOut"},function(i,g){c.Widget.prototype["_"+i]=function(n,j,r){"string"===typeof j&&(j={effect:j});var q,E=!j?i:!0===j||"number"===typeof j?g:j.effect||g,j=
j||{};"number"===typeof j&&(j={duration:j});q=!c.isEmptyObject(j);j.complete=r;j.delay&&n.delay(j.delay);if(q&&c.effects&&c.effects.effect[E])n[i](j);else if(E!==i&&n[E])n[E](j.duration,j.easing,r);else n.queue(function(g){c(this)[i]();r&&r.call(n[0]);g()})}})})(jQuery);
(function(c,j){function i(c,g,i){return[parseInt(c[0],10)*(F.test(c[0])?g/100:1),parseInt(c[1],10)*(F.test(c[1])?i/100:1)]}function r(g,i){return parseInt(c.css(g,i),10)||0}function q(g){var i=g[0];return 9===i.nodeType?{width:g.width(),height:g.height(),offset:{top:0,left:0}}:c.isWindow(i)?{width:g.width(),height:g.height(),offset:{top:g.scrollTop(),left:g.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:g.outerWidth(),height:g.outerHeight(),offset:g.offset()}}
c.ui=c.ui||{};var u,g=Math.max,n=Math.abs,z=Math.round,J=/left|center|right/,y=/top|center|bottom/,E=/[\+\-]\d+%?/,K=/^\w+/,F=/%$/,T=c.fn.position;c.position={scrollbarWidth:function(){if(u!==j)return u;var g,i,n=c("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");i=n.children()[0];c("body").append(n);g=i.offsetWidth;n.css("overflow","scroll");i=i.offsetWidth;g===i&&(i=n[0].clientWidth);n.remove();return u=g-i},getScrollInfo:function(g){var i=
g.isWindow?"":g.element.css("overflow-x"),n=g.isWindow?"":g.element.css("overflow-y"),n="scroll"===n||"auto"===n&&g.height<g.element[0].scrollHeight;return{width:"scroll"===i||"auto"===i&&g.width<g.element[0].scrollWidth?c.position.scrollbarWidth():0,height:n?c.position.scrollbarWidth():0}},getWithinInfo:function(g){var g=c(g||window),i=c.isWindow(g[0]);return{element:g,isWindow:i,offset:g.offset()||{left:0,top:0},scrollLeft:g.scrollLeft(),scrollTop:g.scrollTop(),width:i?g.width():g.outerWidth(),
height:i?g.height():g.outerHeight()}}};c.fn.position=function(j){if(!j||!j.of)return T.apply(this,arguments);var j=c.extend({},j),u,x,G,O,H,m,w=c(j.of),F=c.position.getWithinInfo(j.within),W=c.position.getScrollInfo(F),P=(j.collision||"flip").split(" "),$={};m=q(w);w[0].preventDefault&&(j.at="left top");x=m.width;G=m.height;O=m.offset;H=c.extend({},O);c.each(["my","at"],function(){var c=(j[this]||"").split(" "),e,k;1===c.length&&(c=J.test(c[0])?c.concat(["center"]):y.test(c[0])?["center"].concat(c):
["center","center"]);c[0]=J.test(c[0])?c[0]:"center";c[1]=y.test(c[1])?c[1]:"center";e=E.exec(c[0]);k=E.exec(c[1]);$[this]=[e?e[0]:0,k?k[0]:0];j[this]=[K.exec(c[0])[0],K.exec(c[1])[0]]});1===P.length&&(P[1]=P[0]);"right"===j.at[0]?H.left+=x:"center"===j.at[0]&&(H.left+=x/2);"bottom"===j.at[1]?H.top+=G:"center"===j.at[1]&&(H.top+=G/2);u=i($.at,x,G);H.left+=u[0];H.top+=u[1];return this.each(function(){var m,e,k=c(this),t=k.outerWidth(),R=k.outerHeight(),C=r(this,"marginLeft"),q=r(this,"marginTop"),
Q=t+C+r(this,"marginRight")+W.width,f=R+q+r(this,"marginBottom")+W.height,l=c.extend({},H),s=i($.my,k.outerWidth(),k.outerHeight());"right"===j.my[0]?l.left-=t:"center"===j.my[0]&&(l.left-=t/2);"bottom"===j.my[1]?l.top-=R:"center"===j.my[1]&&(l.top-=R/2);l.left+=s[0];l.top+=s[1];c.support.offsetFractions||(l.left=z(l.left),l.top=z(l.top));m={marginLeft:C,marginTop:q};c.each(["left","top"],function(e,g){if(c.ui.position[P[e]])c.ui.position[P[e]][g](l,{targetWidth:x,targetHeight:G,elemWidth:t,elemHeight:R,
collisionPosition:m,collisionWidth:Q,collisionHeight:f,offset:[u[0]+s[0],u[1]+s[1]],my:j.my,at:j.at,within:F,elem:k})});j.using&&(e=function(f){var e=O.left-l.left,c=e+x-t,i=O.top-l.top,m=i+G-R,s={target:{element:w,left:O.left,top:O.top,width:x,height:G},element:{element:k,left:l.left,top:l.top,width:t,height:R},horizontal:0>c?"left":0<e?"right":"center",vertical:0>m?"top":0<i?"bottom":"middle"};x<t&&n(e+c)<x&&(s.horizontal="center");G<R&&n(i+m)<G&&(s.vertical="middle");s.important=g(n(e),n(c))>g(n(i),
n(m))?"horizontal":"vertical";j.using.call(this,f,s)});k.offset(c.extend(l,{using:e}))})};c.ui.position={fit:{left:function(c,i){var j=i.within,n=j.isWindow?j.scrollLeft:j.offset.left,r=j.width,q=c.left-i.collisionPosition.marginLeft,j=n-q,m=q+i.collisionWidth-r-n;i.collisionWidth>r?0<j&&0>=m?(n=c.left+j+i.collisionWidth-r-n,c.left+=j-n):c.left=0<m&&0>=j?n:j>m?n+r-i.collisionWidth:n:c.left=0<j?c.left+j:0<m?c.left-m:g(c.left-q,c.left)},top:function(c,i){var j=i.within,n=j.isWindow?j.scrollTop:j.offset.top,
r=i.within.height,q=c.top-i.collisionPosition.marginTop,j=n-q,m=q+i.collisionHeight-r-n;i.collisionHeight>r?0<j&&0>=m?(n=c.top+j+i.collisionHeight-r-n,c.top+=j-n):c.top=0<m&&0>=j?n:j>m?n+r-i.collisionHeight:n:c.top=0<j?c.top+j:0<m?c.top-m:g(c.top-q,c.top)}},flip:{left:function(c,g){var i=g.within,j=i.offset.left+i.scrollLeft,r=i.width,q=i.isWindow?i.scrollLeft:i.offset.left,m=c.left-g.collisionPosition.marginLeft,i=m-q,u=m+g.collisionWidth-r-q,m="left"===g.my[0]?-g.elemWidth:"right"===g.my[0]?g.elemWidth:
0,z="left"===g.at[0]?g.targetWidth:"right"===g.at[0]?-g.targetWidth:0,y=-2*g.offset[0];if(0>i){if(j=c.left+m+z+y+g.collisionWidth-r-j,0>j||j<n(i))c.left+=m+z+y}else if(0<u&&(j=c.left-g.collisionPosition.marginLeft+m+z+y-q,0<j||n(j)<u))c.left+=m+z+y},top:function(c,g){var i=g.within,j=i.offset.top+i.scrollTop,r=i.height,q=i.isWindow?i.scrollTop:i.offset.top,m=c.top-g.collisionPosition.marginTop,i=m-q,u=m+g.collisionHeight-r-q,m="top"===g.my[1]?-g.elemHeight:"bottom"===g.my[1]?g.elemHeight:0,z="top"===
g.at[1]?g.targetHeight:"bottom"===g.at[1]?-g.targetHeight:0,y=-2*g.offset[1];if(0>i){if(j=c.top+m+z+y+g.collisionHeight-r-j,c.top+m+z+y>i&&(0>j||j<n(i)))c.top+=m+z+y}else if(0<u&&(j=c.top-g.collisionPosition.marginTop+m+z+y-q,c.top+m+z+y>u&&(0<j||n(j)<u)))c.top+=m+z+y}},flipfit:{left:function(){c.ui.position.flip.left.apply(this,arguments);c.ui.position.fit.left.apply(this,arguments)},top:function(){c.ui.position.flip.top.apply(this,arguments);c.ui.position.fit.top.apply(this,arguments)}}};(function(){var g,
i,j,n,r=document.getElementsByTagName("body")[0];j=document.createElement("div");g=document.createElement(r?"div":"body");i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};r&&c.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"});for(n in i)g.style[n]=i[n];g.appendChild(j);i=r||document.documentElement;i.insertBefore(g,i.firstChild);j.style.cssText="position: absolute; left: 10.7432222px;";j=c(j).offset().left;c.support.offsetFractions=10<j&&11>j;g.innerHTML="";
i.removeChild(g)})()})(jQuery);
(function(c){var j=0;c.widget("ui.autocomplete",{version:"1.10.0",defaultElement:"<input>",options:{appendTo:null,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 i,j,q;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(u){if(this.element.prop("readOnly"))j=q=i=!0;else{j=q=i=!1;var g=c.ui.keyCode;switch(u.keyCode){case g.PAGE_UP:i=!0;this._move("previousPage",u);break;case g.PAGE_DOWN:i=!0;this._move("nextPage",u);break;case g.UP:i=!0;this._keyEvent("previous",u);break;case g.DOWN:i=!0;this._keyEvent("next",u);break;case g.ENTER:case g.NUMPAD_ENTER:this.menu.active&&(i=!0,u.preventDefault(),this.menu.select(u));break;case g.TAB:this.menu.active&&this.menu.select(u);
break;case g.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(u),u.preventDefault());break;default:j=!0,this._searchTimeout(u)}}},keypress:function(q){if(i)i=!1,q.preventDefault();else if(!j){var g=c.ui.keyCode;switch(q.keyCode){case g.PAGE_UP:this._move("previousPage",q);break;case g.PAGE_DOWN:this._move("nextPage",q);break;case g.UP:this._keyEvent("previous",q);break;case g.DOWN:this._keyEvent("next",q)}}},input:function(c){q?(q=!1,c.preventDefault()):this._searchTimeout(c)},
focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(c){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(c),this._change(c))}});this._initSource();this.menu=c("<ul>").addClass("ui-autocomplete").appendTo(this._appendTo()).menu({input:c(),role:null}).zIndex(this.element.zIndex()+1).hide().data("ui-menu");this._on(this.menu.element,{mousedown:function(i){i.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur});
var g=this.menu.element[0];c(i.target).closest(".ui-menu-item").length||this._delay(function(){var i=this;this.document.one("mousedown",function(j){j.target!==i.element[0]&&j.target!==g&&!c.contains(g,j.target)&&i.close()})})},menufocus:function(i,g){if(this.isNewMenu&&(this.isNewMenu=!1,i.originalEvent&&/^mouse/.test(i.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){c(i.target).trigger(i.originalEvent)});return}var j=g.item.data("ui-autocomplete-item");!1!==this._trigger("focus",
i,{item:j})?i.originalEvent&&/^key/.test(i.originalEvent.type)&&this._value(j.value):this.liveRegion.text(j.value)},menuselect:function(c,g){var i=g.item.data("ui-autocomplete-item"),j=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=j,this._delay(function(){this.previous=j;this.selectedItem=i}));!1!==this._trigger("select",c,{item:i})&&this._value(i.value);this.term=this._value();this.close(c);this.selectedItem=i}});this.liveRegion=c("<span>",{role:"status",
"aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element);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(c,j){this._super(c,j);"source"===c&&this._initSource();"appendTo"===c&&this.menu.element.appendTo(this._appendTo());"disabled"===
c&&j&&this.xhr&&this.xhr.abort()},_appendTo:function(){var i=this.options.appendTo;i&&(i=i.jquery||i.nodeType?c(i):this.document.find(i).eq(0));i||(i=this.element.closest(".ui-front"));i.length||(i=this.document[0].body);return i},_isMultiLine:function(){return this.element.is("textarea")?!0:this.element.is("input")?!1:this.element.prop("isContentEditable")},_initSource:function(){var i,j,q=this;c.isArray(this.options.source)?(i=this.options.source,this.source=function(j,g){g(c.ui.autocomplete.filter(i,
j.term))}):"string"===typeof this.options.source?(j=this.options.source,this.source=function(i,g){q.xhr&&q.xhr.abort();q.xhr=c.ajax({url:j,data:i,dataType:"json",success:function(c){g(c)},error:function(){g([])}})}):this.source=this.options.source},_searchTimeout:function(c){clearTimeout(this.searching);this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,c))},this.options.delay)},search:function(c,j){c=null!=c?c:this._value();this.term=this._value();
return c.length<this.options.minLength?this.close(j):!1===this._trigger("search",j)?void 0:this._search(c)},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:c},this._response())},_response:function(){var c=this,r=++j;return function(q){r===j&&c.__response(q);c.pending--;c.pending||c.element.removeClass("ui-autocomplete-loading")}},__response:function(c){c&&(c=this._normalize(c));this._trigger("response",null,{content:c});!this.options.disabled&&
c&&c.length&&!this.cancelSearch?(this._suggest(c),this._trigger("open")):this._close()},close:function(c){this.cancelSearch=!0;this._close(c)},_close:function(c){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",c))},_change:function(c){this.previous!==this._value()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(i){return i.length&&i[0].label&&i[0].value?i:c.map(i,function(i){return"string"===typeof i?{label:i,
value:i}:c.extend({label:i.label||i.value,value:i.value||i.label},i)})},_suggest:function(i){var j=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(j,i);this.menu.refresh();j.show();this._resizeMenu();j.position(c.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,j){var q=this;c.each(j,
function(c,g){q._renderItemData(i,g)})},_renderItemData:function(c,j){return this._renderItem(c,j).data("ui-autocomplete-item",j)},_renderItem:function(i,j){return c("<li>").append(c("<a>").text(j.label)).appendTo(i)},_move:function(c,j){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(c)||this.menu.isLastItem()&&/^next/.test(c))this._value(this.term),this.menu.blur();else this.menu[c](j);else this.search(null,j)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,
arguments)},_keyEvent:function(c,j){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(c,j),j.preventDefault()}});c.extend(c.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(i,j){var q=RegExp(c.ui.autocomplete.escapeRegex(j),"i");return c.grep(i,function(c){return q.test(c.label||c.value||c)})}});c.widget("ui.autocomplete",c.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(c){return c+
(1<c?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(c){this._superApply(arguments);!this.options.disabled&&!this.cancelSearch&&this.liveRegion.text(c&&c.length?this.options.messages.results(c.length):this.options.messages.noResults)}})})(jQuery);
(function(c){c.widget("ui.menu",{version:"1.10.0",defaultElement:"<ul>",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.mouseHandled=!1;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,c.proxy(function(c){this.options.disabled&&c.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(c){c.preventDefault()},"click .ui-state-disabled > a":function(c){c.preventDefault()},"click .ui-menu-item:has(a)":function(j){var i=c(j.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(j),i.has(".ui-menu").length?
this.expand(j):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(j){var i=c(j.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(j,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(c,i){var r=this.active||this.element.children(".ui-menu-item").eq(0);i||this.focus(c,r)},blur:function(j){this._delay(function(){c.contains(this.element[0],
this.document[0].activeElement)||this.collapseAll(j)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(j){c(j.target).closest(".ui-menu").length||this.collapseAll(j);this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().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 j=c(this);j.data("ui-menu-submenu-carat")&&j.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(j){function i(c){return c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var r,q,u,g,n=!0;switch(j.keyCode){case c.ui.keyCode.PAGE_UP:this.previousPage(j);break;case c.ui.keyCode.PAGE_DOWN:this.nextPage(j);break;case c.ui.keyCode.HOME:this._move("first","first",j);break;case c.ui.keyCode.END:this._move("last","last",j);break;case c.ui.keyCode.UP:this.previous(j);break;case c.ui.keyCode.DOWN:this.next(j);break;case c.ui.keyCode.LEFT:this.collapse(j);break;case c.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(j);break;case c.ui.keyCode.ENTER:case c.ui.keyCode.SPACE:this._activate(j);
break;case c.ui.keyCode.ESCAPE:this.collapse(j);break;default:n=!1,r=this.previousFilter||"",q=String.fromCharCode(j.keyCode),u=!1,clearTimeout(this.filterTimer),q===r?u=!0:q=r+q,g=RegExp("^"+i(q),"i"),r=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(c(this).children("a").text())}),r=u&&-1!==r.index(this.active.next())?this.active.nextAll(".ui-menu-item"):r,r.length||(q=String.fromCharCode(j.keyCode),g=RegExp("^"+i(q),"i"),r=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(c(this).children("a").text())})),
r.length?(this.focus(j,r),1<r.length?(this.previousFilter=q,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}n&&j.preventDefault()},_activate:function(c){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(c):this.select(c))},refresh:function(){var j,i=this.options.icons.submenu;j=this.element.find(this.options.menus);j.filter(":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"}).each(function(){var j=c(this),q=j.prev("a"),u=c("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);q.attr("aria-haspopup","true").prepend(u);j.attr("aria-labelledby",q.attr("id"))});j=j.add(this.element);j.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()});j.children(":not(.ui-menu-item)").each(function(){var i=
c(this);/[^\-\u2014\u2013\s]/.test(i.text())||i.addClass("ui-widget-content ui-menu-divider")});j.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!c.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(c,i){"icons"===c&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(i.submenu);this._super(c,i)},focus:function(c,i){var r;this.blur(c,c&&
"focus"===c.type);this._scrollIntoView(i);this.active=i.first();r=this.active.children("a").addClass("ui-state-focus");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");c&&"keydown"===c.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);r=i.children(".ui-menu");r.length&&/^mouse/.test(c.type)&&this._startOpening(r);this.activeMenu=i.parent();this._trigger("focus",
c,{item:i})},_scrollIntoView:function(j){var i,r,q;this._hasScroll()&&(i=parseFloat(c.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(c.css(this.activeMenu[0],"paddingTop"))||0,i=j.offset().top-this.activeMenu.offset().top-i-r,r=this.activeMenu.scrollTop(),q=this.activeMenu.height(),j=j.height(),0>i?this.activeMenu.scrollTop(r+i):i+j>q&&this.activeMenu.scrollTop(r+i-q+j))},blur:function(c,i){i||clearTimeout(this.timer);this.active&&(this.active.children("a").removeClass("ui-state-focus"),
this.active=null,this._trigger("blur",c,{item:this.active}))},_startOpening:function(c){clearTimeout(this.timer);"true"===c.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close();this._open(c)},this.delay))},_open:function(j){var i=c.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(j.parents(".ui-menu")).hide().attr("aria-hidden","true");j.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(j,
i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:c(j&&j.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(j);this.activeMenu=r},this.delay)},_close:function(c){c||(c=this.active?this.active.parent():this.element);c.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(c){var i=this.active&&this.active.parent().closest(".ui-menu-item",
this.element);i&&i.length&&(this._close(),this.focus(c,i))},expand:function(c){var i=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();i&&i.length&&(this._open(i.parent()),this._delay(function(){this.focus(c,i)}))},next:function(c){this._move("next","first",c)},previous:function(c){this._move("prev","last",c)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},
_move:function(c,i,r){var q;this.active&&(q="first"===c||"last"===c?this.active["first"===c?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[c+"All"](".ui-menu-item").eq(0));if(!q||!q.length||!this.active)q=this.activeMenu.children(".ui-menu-item")[i]();this.focus(r,q)},nextPage:function(j){var i,r,q;this.active?this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,q=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){i=c(this);return 0>i.offset().top-r-
q}),this.focus(j,i)):this.focus(j,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())):this.next(j)},previousPage:function(j){var i,r,q;this.active?this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,q=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){i=c(this);return 0<i.offset().top-r+q}),this.focus(j,i)):this.focus(j,this.activeMenu.children(".ui-menu-item").first())):this.next(j)},_hasScroll:function(){return this.element.outerHeight()<
this.element.prop("scrollHeight")},select:function(j){this.active=this.active||c(j.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(j,!0);this._trigger("select",j,i)}})})(jQuery);
(function(){var c=this,j=c._,i={},r=Array.prototype,q=Object.prototype,u=r.push,g=r.slice,n=r.concat,z=q.toString,J=q.hasOwnProperty,y=r.forEach,E=r.map,K=r.reduce,F=r.reduceRight,T=r.filter,Z=r.every,I=r.some,x=r.indexOf,G=r.lastIndexOf,q=Array.isArray,O=Object.keys,H=Function.prototype.bind,m=function(f){if(f instanceof m)return f;if(!(this instanceof m))return new m(f);this._wrapped=f};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=m),exports._=
m):c._=m;m.VERSION="1.4.3";var w=m.each=m.forEach=function(f,e,c){if(null!=f)if(y&&f.forEach===y)f.forEach(e,c);else if(f.length===+f.length)for(var k=0,g=f.length;k<g&&!(e.call(c,f[k],k,f)===i);k++);else for(k in f)if(m.has(f,k)&&e.call(c,f[k],k,f)===i)break};m.map=m.collect=function(f,e,c){var k=[];if(null==f)return k;if(E&&f.map===E)return f.map(e,c);w(f,function(f,g,i){k[k.length]=e.call(c,f,g,i)});return k};m.reduce=m.foldl=m.inject=function(f,e,c,k){var g=2<arguments.length;null==f&&(f=[]);
if(K&&f.reduce===K)return k&&(e=m.bind(e,k)),g?f.reduce(e,c):f.reduce(e);w(f,function(f,i,j){g?c=e.call(k,c,f,i,j):(c=f,g=!0)});if(!g)throw new TypeError("Reduce of empty array with no initial value");return c};m.reduceRight=m.foldr=function(f,e,c,k){var g=2<arguments.length;null==f&&(f=[]);if(F&&f.reduceRight===F)return k&&(e=m.bind(e,k)),g?f.reduceRight(e,c):f.reduceRight(e);var i=f.length;if(i!==+i)var j=m.keys(f),i=j.length;w(f,function(m,n,t){n=j?j[--i]:--i;g?c=e.call(k,c,f[n],n,t):(c=f[n],g=
!0)});if(!g)throw new TypeError("Reduce of empty array with no initial value");return c};m.find=m.detect=function(f,e,c){var k;V(f,function(f,g,i){if(e.call(c,f,g,i))return k=f,!0});return k};m.filter=m.select=function(f,e,c){var k=[];if(null==f)return k;if(T&&f.filter===T)return f.filter(e,c);w(f,function(f,g,i){e.call(c,f,g,i)&&(k[k.length]=f)});return k};m.reject=function(f,e,c){return m.filter(f,function(f,k,g){return!e.call(c,f,k,g)},c)};m.every=m.all=function(f,e,c){e||(e=m.identity);var k=
!0;if(null==f)return k;if(Z&&f.every===Z)return f.every(e,c);w(f,function(f,g,j){if(!(k=k&&e.call(c,f,g,j)))return i});return!!k};var V=m.some=m.any=function(f,e,c){e||(e=m.identity);var k=!1;if(null==f)return k;if(I&&f.some===I)return f.some(e,c);w(f,function(f,g,j){if(k||(k=e.call(c,f,g,j)))return i});return!!k};m.contains=m.include=function(f,e){return null==f?!1:x&&f.indexOf===x?-1!=f.indexOf(e):V(f,function(f){return f===e})};m.invoke=function(f,e){var c=g.call(arguments,2);return m.map(f,function(f){return(m.isFunction(e)?
e:f[e]).apply(f,c)})};m.pluck=function(f,e){return m.map(f,function(f){return f[e]})};m.where=function(f,e){return m.isEmpty(e)?[]:m.filter(f,function(f){for(var c in e)if(e[c]!==f[c])return!1;return!0})};m.max=function(f,e,c){if(!e&&m.isArray(f)&&f[0]===+f[0]&&65535>f.length)return Math.max.apply(Math,f);if(!e&&m.isEmpty(f))return-Infinity;var k={computed:-Infinity,value:-Infinity};w(f,function(f,g,i){g=e?e.call(c,f,g,i):f;g>=k.computed&&(k={value:f,computed:g})});return k.value};m.min=function(f,
e,c){if(!e&&m.isArray(f)&&f[0]===+f[0]&&65535>f.length)return Math.min.apply(Math,f);if(!e&&m.isEmpty(f))return Infinity;var k={computed:Infinity,value:Infinity};w(f,function(f,g,i){g=e?e.call(c,f,g,i):f;g<k.computed&&(k={value:f,computed:g})});return k.value};m.shuffle=function(f){var e,c=0,k=[];w(f,function(f){e=m.random(c++);k[c-1]=k[e];k[e]=f});return k};var W=function(f){return m.isFunction(f)?f:function(e){return e[f]}};m.sortBy=function(f,e,c){var k=W(e);return m.pluck(m.map(f,function(f,e,
l){return{value:f,index:e,criteria:k.call(c,f,e,l)}}).sort(function(f,e){var c=f.criteria,k=e.criteria;if(c!==k){if(c>k||void 0===c)return 1;if(c<k||void 0===k)return-1}return f.index<e.index?-1:1}),"value")};var P=function(f,e,c,k){var g={},i=W(e||m.identity);w(f,function(e,l){var j=i.call(c,e,l,f);k(g,j,e)});return g};m.groupBy=function(f,e,c){return P(f,e,c,function(f,e,c){(m.has(f,e)?f[e]:f[e]=[]).push(c)})};m.countBy=function(f,e,c){return P(f,e,c,function(f,e){m.has(f,e)||(f[e]=0);f[e]++})};
m.sortedIndex=function(f,e,c,k){for(var c=null==c?m.identity:W(c),e=c.call(k,e),g=0,i=f.length;g<i;){var j=g+i>>>1;c.call(k,f[j])<e?g=j+1:i=j}return g};m.toArray=function(f){return!f?[]:m.isArray(f)?g.call(f):f.length===+f.length?m.map(f,m.identity):m.values(f)};m.size=function(f){return null==f?0:f.length===+f.length?f.length:m.keys(f).length};m.first=m.head=m.take=function(f,e,c){return null==f?void 0:null!=e&&!c?g.call(f,0,e):f[0]};m.initial=function(f,e,c){return g.call(f,0,f.length-(null==e||
c?1:e))};m.last=function(f,e,c){return null==f?void 0:null!=e&&!c?g.call(f,Math.max(f.length-e,0)):f[f.length-1]};m.rest=m.tail=m.drop=function(f,e,c){return g.call(f,null==e||c?1:e)};m.compact=function(f){return m.filter(f,m.identity)};var $=function(f,e,c){w(f,function(f){m.isArray(f)?e?u.apply(c,f):$(f,e,c):c.push(f)});return c};m.flatten=function(f,e){return $(f,e,[])};m.without=function(f){return m.difference(f,g.call(arguments,1))};m.uniq=m.unique=function(f,e,c,k){m.isFunction(e)&&(k=c,c=e,
e=!1);var c=c?m.map(f,c,k):f,g=[],i=[];w(c,function(c,k){if(e?!k||i[i.length-1]!==c:!m.contains(i,c))i.push(c),g.push(f[k])});return g};m.union=function(){return m.uniq(n.apply(r,arguments))};m.intersection=function(f){var e=g.call(arguments,1);return m.filter(m.uniq(f),function(f){return m.every(e,function(e){return 0<=m.indexOf(e,f)})})};m.difference=function(f){var e=n.apply(r,g.call(arguments,1));return m.filter(f,function(f){return!m.contains(e,f)})};m.zip=function(){for(var f=g.call(arguments),
e=m.max(m.pluck(f,"length")),c=Array(e),k=0;k<e;k++)c[k]=m.pluck(f,""+k);return c};m.object=function(f,e){if(null==f)return{};for(var c={},k=0,g=f.length;k<g;k++)e?c[f[k]]=e[k]:c[f[k][0]]=f[k][1];return c};m.indexOf=function(f,e,c){if(null==f)return-1;var k=0,g=f.length;if(c)if("number"==typeof c)k=0>c?Math.max(0,g+c):c;else return k=m.sortedIndex(f,e),f[k]===e?k:-1;if(x&&f.indexOf===x)return f.indexOf(e,c);for(;k<g;k++)if(f[k]===e)return k;return-1};m.lastIndexOf=function(f,e,c){if(null==f)return-1;
var k=null!=c;if(G&&f.lastIndexOf===G)return k?f.lastIndexOf(e,c):f.lastIndexOf(e);for(c=k?c:f.length;c--;)if(f[c]===e)return c;return-1};m.range=function(f,e,c){1>=arguments.length&&(e=f||0,f=0);for(var c=arguments[2]||1,k=Math.max(Math.ceil((e-f)/c),0),g=0,i=Array(k);g<k;)i[g++]=f,f+=c;return i};var M=function(){};m.bind=function(f,e){var c,k;if(f.bind===H&&H)return H.apply(f,g.call(arguments,1));if(!m.isFunction(f))throw new TypeError;c=g.call(arguments,2);return k=function(){if(!(this instanceof
k))return f.apply(e,c.concat(g.call(arguments)));M.prototype=f.prototype;var i=new M;M.prototype=null;var j=f.apply(i,c.concat(g.call(arguments)));return Object(j)===j?j:i}};m.bindAll=function(f){var e=g.call(arguments,1);0==e.length&&(e=m.functions(f));w(e,function(e){f[e]=m.bind(f[e],f)});return f};m.memoize=function(f,e){var c={};e||(e=m.identity);return function(){var k=e.apply(this,arguments);return m.has(c,k)?c[k]:c[k]=f.apply(this,arguments)}};m.delay=function(f,e){var c=g.call(arguments,2);
return setTimeout(function(){return f.apply(null,c)},e)};m.defer=function(f){return m.delay.apply(m,[f,1].concat(g.call(arguments,1)))};m.throttle=function(f,e){var c,k,g,i,j=0,m=function(){j=new Date;g=null;i=f.apply(c,k)};return function(){var n=new Date,t=e-(n-j);c=this;k=arguments;0>=t?(clearTimeout(g),g=null,j=n,i=f.apply(c,k)):g||(g=setTimeout(m,t));return i}};m.debounce=function(f,e,c){var k,g;return function(){var i=this,j=arguments,m=c&&!k;clearTimeout(k);k=setTimeout(function(){k=null;c||
(g=f.apply(i,j))},e);m&&(g=f.apply(i,j));return g}};m.once=function(f){var e=!1,c;return function(){if(e)return c;e=!0;c=f.apply(this,arguments);f=null;return c}};m.wrap=function(f,e){return function(){var c=[f];u.apply(c,arguments);return e.apply(this,c)}};m.compose=function(){var f=arguments;return function(){for(var e=arguments,c=f.length-1;0<=c;c--)e=[f[c].apply(this,e)];return e[0]}};m.after=function(f,e){return 0>=f?e():function(){if(1>--f)return e.apply(this,arguments)}};m.keys=O||function(f){if(f!==
Object(f))throw new TypeError("Invalid object");var e=[],c;for(c in f)m.has(f,c)&&(e[e.length]=c);return e};m.values=function(f){var e=[],c;for(c in f)m.has(f,c)&&e.push(f[c]);return e};m.pairs=function(f){var e=[],c;for(c in f)m.has(f,c)&&e.push([c,f[c]]);return e};m.invert=function(f){var e={},c;for(c in f)m.has(f,c)&&(e[f[c]]=c);return e};m.functions=m.methods=function(f){var e=[],c;for(c in f)m.isFunction(f[c])&&e.push(c);return e.sort()};m.extend=function(e){w(g.call(arguments,1),function(c){if(c)for(var k in c)e[k]=
c[k]});return e};m.pick=function(e){var c={},k=n.apply(r,g.call(arguments,1));w(k,function(k){k in e&&(c[k]=e[k])});return c};m.omit=function(e){var c={},k=n.apply(r,g.call(arguments,1)),i;for(i in e)m.contains(k,i)||(c[i]=e[i]);return c};m.defaults=function(e){w(g.call(arguments,1),function(c){if(c)for(var k in c)null==e[k]&&(e[k]=c[k])});return e};m.clone=function(e){return!m.isObject(e)?e:m.isArray(e)?e.slice():m.extend({},e)};m.tap=function(e,c){c(e);return e};var e=function(f,c,k,g){if(f===c)return 0!==
f||1/f==1/c;if(null==f||null==c)return f===c;f instanceof m&&(f=f._wrapped);c instanceof m&&(c=c._wrapped);var i=z.call(f);if(i!=z.call(c))return!1;switch(i){case "[object String]":return f==""+c;case "[object Number]":return f!=+f?c!=+c:0==f?1/f==1/c:f==+c;case "[object Date]":case "[object Boolean]":return+f==+c;case "[object RegExp]":return f.source==c.source&&f.global==c.global&&f.multiline==c.multiline&&f.ignoreCase==c.ignoreCase}if("object"!=typeof f||"object"!=typeof c)return!1;for(var j=k.length;j--;)if(k[j]==
f)return g[j]==c;k.push(f);g.push(c);var j=0,n=!0;if("[object Array]"==i){if(j=f.length,n=j==c.length)for(;j--&&(n=e(f[j],c[j],k,g)););}else{var i=f.constructor,t=c.constructor;if(i!==t&&(!m.isFunction(i)||!(i instanceof i&&m.isFunction(t)&&t instanceof t)))return!1;for(var q in f)if(m.has(f,q)&&(j++,!(n=m.has(c,q)&&e(f[q],c[q],k,g))))break;if(n){for(q in c)if(m.has(c,q)&&!j--)break;n=!j}}k.pop();g.pop();return n};m.isEqual=function(f,c){return e(f,c,[],[])};m.isEmpty=function(e){if(null==e)return!0;
if(m.isArray(e)||m.isString(e))return 0===e.length;for(var c in e)if(m.has(e,c))return!1;return!0};m.isElement=function(e){return!!(e&&1===e.nodeType)};m.isArray=q||function(e){return"[object Array]"==z.call(e)};m.isObject=function(e){return e===Object(e)};w("Arguments,Function,String,Number,Date,RegExp".split(","),function(e){m["is"+e]=function(c){return z.call(c)=="[object "+e+"]"}});m.isArguments(arguments)||(m.isArguments=function(e){return!(!e||!m.has(e,"callee"))});"function"!==typeof/./&&(m.isFunction=
function(e){return"function"===typeof e});m.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))};m.isNaN=function(e){return m.isNumber(e)&&e!=+e};m.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==z.call(e)};m.isNull=function(e){return null===e};m.isUndefined=function(e){return void 0===e};m.has=function(e,c){return J.call(e,c)};m.noConflict=function(){c._=j;return this};m.identity=function(e){return e};m.times=function(e,c,k){for(var g=Array(e),i=0;i<e;i++)g[i]=c.call(k,
i);return g};m.random=function(e,c){null==c&&(c=e,e=0);return e+(0|Math.random()*(c-e+1))};var k={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};k.unescape=m.invert(k.escape);var t={escape:RegExp("["+m.keys(k.escape).join("")+"]","g"),unescape:RegExp("("+m.keys(k.unescape).join("|")+")","g")};m.each(["escape","unescape"],function(e){m[e]=function(c){return null==c?"":(""+c).replace(t[e],function(c){return k[e][c]})}});m.result=function(e,c){if(null==e)return null;
var k=e[c];return m.isFunction(k)?k.call(e):k};m.mixin=function(e){w(m.functions(e),function(c){var k=m[c]=e[c];m.prototype[c]=function(){var e=[this._wrapped];u.apply(e,arguments);e=k.apply(m,e);return this._chain?m(e).chain():e}})};var R=0;m.uniqueId=function(e){var c=""+ ++R;return e?e+c:c};m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var C=/(.)^/,ea={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\t|\u2028|\u2029/g;
m.template=function(e,c,k){var k=m.defaults({},k,m.templateSettings),g=RegExp([(k.escape||C).source,(k.interpolate||C).source,(k.evaluate||C).source].join("|")+"|$","g"),i=0,j="__p+='";e.replace(g,function(c,k,g,l,m){j+=e.slice(i,m).replace(Q,function(e){return"\\"+ea[e]});k&&(j+="'+\n((__t=("+k+"))==null?'':_.escape(__t))+\n'");g&&(j+="'+\n((__t=("+g+"))==null?'':__t)+\n'");l&&(j+="';\n"+l+"\n__p+='");i=m+c.length;return c});j+="';\n";k.variable||(j="with(obj||{}){\n"+j+"}\n");j="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+
j+"return __p;\n";try{var n=new Function(k.variable||"obj","_",j)}catch(t){throw t.source=j,t;}if(c)return n(c,m);c=function(e){return n.call(this,e,m)};c.source="function("+(k.variable||"obj")+"){\n"+j+"}";return c};m.chain=function(e){return m(e).chain()};m.mixin(m);w("pop,push,reverse,shift,sort,splice,unshift".split(","),function(e){var c=r[e];m.prototype[e]=function(){var k=this._wrapped;c.apply(k,arguments);("shift"==e||"splice"==e)&&0===k.length&&delete k[0];return this._chain?m(k).chain():
k}});w(["concat","join","slice"],function(e){var c=r[e];m.prototype[e]=function(){var e=c.apply(this._wrapped,arguments);return this._chain?m(e).chain():e}});m.extend(m.prototype,{chain:function(){this._chain=!0;return this},value:function(){return this._wrapped}})}).call(this);
(function(){var c=this,j=c.Backbone,i=[],r=i.push,q=i.slice,u=i.splice,g;g="undefined"!==typeof exports?exports:c.Backbone={};g.VERSION="0.9.10";var n=c._;!n&&"undefined"!==typeof require&&(n=require("underscore"));g.$=c.jQuery||c.Zepto||c.ender;g.noConflict=function(){c.Backbone=j;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var z=/\s+/,J=function(e,c,g,i){if(!g)return!0;if("object"===typeof g)for(var j in g)e[c].apply(e,[j,g[j]].concat(i));else if(z.test(g)){g=g.split(z);j=0;for(var m=g.length;j<
m;j++)e[c].apply(e,[g[j]].concat(i))}else return!0},y=function(e,c){var g,i=-1,j=e.length;switch(c.length){case 0:for(;++i<j;)(g=e[i]).callback.call(g.ctx);break;case 1:for(;++i<j;)(g=e[i]).callback.call(g.ctx,c[0]);break;case 2:for(;++i<j;)(g=e[i]).callback.call(g.ctx,c[0],c[1]);break;case 3:for(;++i<j;)(g=e[i]).callback.call(g.ctx,c[0],c[1],c[2]);break;default:for(;++i<j;)(g=e[i]).callback.apply(g.ctx,c)}},i=g.Events={on:function(e,c,g){if(!J(this,"on",e,[c,g])||!c)return this;this._events||(this._events=
{});(this._events[e]||(this._events[e]=[])).push({callback:c,context:g,ctx:g||this});return this},once:function(e,c,g){if(!J(this,"once",e,[c,g])||!c)return this;var i=this,j=n.once(function(){i.off(e,j);c.apply(this,arguments)});j._callback=c;this.on(e,j,g);return this},off:function(e,c,g){var i,j,m,q,f,l,r,u;if(!this._events||!J(this,"off",e,[c,g]))return this;if(!e&&!c&&!g)return this._events={},this;q=e?[e]:n.keys(this._events);for(f=0,l=q.length;f<l;f++)if(e=q[f],i=this._events[e]){m=[];if(c||
g)for(r=0,u=i.length;r<u;r++)j=i[r],(c&&c!==j.callback&&c!==j.callback._callback||g&&g!==j.context)&&m.push(j);this._events[e]=m}return this},trigger:function(e){if(!this._events)return this;var c=q.call(arguments,1);if(!J(this,"trigger",e,c))return this;var g=this._events[e],i=this._events.all;g&&y(g,c);i&&y(i,arguments);return this},listenTo:function(e,c,g){var i=this._listeners||(this._listeners={}),j=e._listenerId||(e._listenerId=n.uniqueId("l"));i[j]=e;e.on(c,"object"===typeof c?this:g,this);
return this},stopListening:function(e,c,g){var i=this._listeners;if(i){if(e)e.off(c,"object"===typeof c?this:g,this),!c&&!g&&delete i[e._listenerId];else{"object"===typeof c&&(g=this);for(var j in i)i[j].off(c,g,this);this._listeners={}}return this}}};i.bind=i.on;i.unbind=i.off;n.extend(g,i);var E=g.Model=function(e,c){var g,i=e||{};this.cid=n.uniqueId("c");this.attributes={};c&&c.collection&&(this.collection=c.collection);c&&c.parse&&(i=this.parse(i,c)||{});if(g=n.result(this,"defaults"))i=n.defaults({},
i,g);this.set(i,c);this.changed={};this.initialize.apply(this,arguments)};n.extend(E.prototype,i,{changed:null,idAttribute:"id",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return g.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,c,g){var i,j,m,q,f,l,r;if(null==e)return this;"object"===typeof e?(j=e,g=c):(j={})[e]=c;g||(g={});
if(!this._validate(j,g))return!1;m=g.unset;q=g.silent;e=[];f=this._changing;this._changing=!0;f||(this._previousAttributes=n.clone(this.attributes),this.changed={});r=this.attributes;l=this._previousAttributes;this.idAttribute in j&&(this.id=j[this.idAttribute]);for(i in j)c=j[i],n.isEqual(r[i],c)||e.push(i),n.isEqual(l[i],c)?delete this.changed[i]:this.changed[i]=c,m?delete r[i]:r[i]=c;if(!q){e.length&&(this._pending=!0);c=0;for(i=e.length;c<i;c++)this.trigger("change:"+e[c],this,r[e[c]],g)}if(f)return this;
if(!q)for(;this._pending;)this._pending=!1,this.trigger("change",this,g);this._changing=this._pending=!1;return this},unset:function(e,c){return this.set(e,void 0,n.extend({},c,{unset:!0}))},clear:function(e){var c={},g;for(g in this.attributes)c[g]=void 0;return this.set(c,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?n.clone(this.changed):!1;var c,g=!1,i=this._changing?
this._previousAttributes:this.attributes,j;for(j in e)if(!n.isEqual(i[j],c=e[j]))(g||(g={}))[j]=c;return g},previous:function(e){return null==e||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=e?n.clone(e):{};void 0===e.parse&&(e.parse=!0);var c=e.success;e.success=function(e,g,i){if(!e.set(e.parse(g,i),i))return!1;c&&c(e,g,i)};return this.sync("read",this,e)},save:function(e,c,g){var i,j,m=this.attributes;
null==e||"object"===typeof e?(i=e,g=c):(i={})[e]=c;if(i&&(!g||!g.wait)&&!this.set(i,g))return!1;g=n.extend({validate:!0},g);if(!this._validate(i,g))return!1;i&&g.wait&&(this.attributes=n.extend({},m,i));void 0===g.parse&&(g.parse=!0);j=g.success;g.success=function(e,c,k){e.attributes=m;var g=e.parse(c,k);k.wait&&(g=n.extend(i||{},g));if(n.isObject(g)&&!e.set(g,k))return!1;j&&j(e,c,k)};e=this.isNew()?"create":g.patch?"patch":"update";"patch"===e&&(g.attrs=i);e=this.sync(e,this,g);i&&g.wait&&(this.attributes=
m);return e},destroy:function(e){var e=e?n.clone(e):{},c=this,g=e.success,i=function(){c.trigger("destroy",c,c.collection,e)};e.success=function(e,c,f){(f.wait||e.isNew())&&i();g&&g(e,c,f)};if(this.isNew())return e.success(this,null,e),!1;var j=this.sync("delete",this,e);e.wait||i();return j},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||M();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e){return e},clone:function(){return new this.constructor(this.attributes)},
isNew:function(){return null==this.id},isValid:function(e){return!this.validate||!this.validate(this.attributes,e)},_validate:function(e,c){if(!c.validate||!this.validate)return!0;var e=n.extend({},this.attributes,e),g=this.validationError=this.validate(e,c)||null;if(!g)return!0;this.trigger("invalid",this,g,c||{});return!1}});var K=g.Collection=function(e,c){c||(c={});c.model&&(this.model=c.model);void 0!==c.comparator&&(this.comparator=c.comparator);this.models=[];this._reset();this.initialize.apply(this,
arguments);e&&this.reset(e,n.extend({silent:!0},c))};n.extend(K.prototype,i,{model:E,initialize:function(){},toJSON:function(e){return this.map(function(c){return c.toJSON(e)})},sync:function(){return g.sync.apply(this,arguments)},add:function(e,c){e=n.isArray(e)?e.slice():[e];c||(c={});var g,i,j,m,q,f,l,s,w,x;l=[];s=c.at;w=this.comparator&&null==s&&!1!=c.sort;x=n.isString(this.comparator)?this.comparator:null;for(g=0,i=e.length;g<i;g++)(j=this._prepareModel(m=e[g],c))?(q=this.get(j))?c.merge&&(q.set(m===
j?j.attributes:m,c),w&&!f&&q.hasChanged(x)&&(f=!0)):(l.push(j),j.on("all",this._onModelEvent,this),this._byId[j.cid]=j,null!=j.id&&(this._byId[j.id]=j)):this.trigger("invalid",this,m,c);l.length&&(w&&(f=!0),this.length+=l.length,null!=s?u.apply(this.models,[s,0].concat(l)):r.apply(this.models,l));f&&this.sort({silent:!0});if(c.silent)return this;for(g=0,i=l.length;g<i;g++)(j=l[g]).trigger("add",j,this,c);f&&this.trigger("sort",this,c);return this},remove:function(e,c){e=n.isArray(e)?e.slice():[e];
c||(c={});var g,i,j,m;for(g=0,i=e.length;g<i;g++)if(m=this.get(e[g]))delete this._byId[m.id],delete this._byId[m.cid],j=this.indexOf(m),this.models.splice(j,1),this.length--,c.silent||(c.index=j,m.trigger("remove",m,this,c)),this._removeReference(m);return this},push:function(e,c){e=this._prepareModel(e,c);this.add(e,n.extend({at:this.length},c));return e},pop:function(e){var c=this.at(this.length-1);this.remove(c,e);return c},unshift:function(e,c){e=this._prepareModel(e,c);this.add(e,n.extend({at:0},
c));return e},shift:function(e){var c=this.at(0);this.remove(c,e);return c},slice:function(e,c){return this.models.slice(e,c)},get:function(e){if(null!=e)return this._idAttr||(this._idAttr=this.model.prototype.idAttribute),this._byId[e.id||e.cid||e[this._idAttr]||e]},at:function(e){return this.models[e]},where:function(e){return n.isEmpty(e)?[]:this.filter(function(c){for(var g in e)if(e[g]!==c.get(g))return!1;return!0})},sort:function(e){if(!this.comparator)throw Error("Cannot sort a set without a comparator");
e||(e={});n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this));e.silent||this.trigger("sort",this,e);return this},pluck:function(e){return n.invoke(this.models,"get",e)},update:function(e,c){c=n.extend({add:!0,merge:!0,remove:!0},c);c.parse&&(e=this.parse(e,c));var g,i,j,m,q=[],f=[],l={};n.isArray(e)||(e=e?[e]:[]);if(c.add&&!c.remove)return this.add(e,c);for(i=0,j=e.length;i<j;i++)g=e[i],m=this.get(g),
c.remove&&m&&(l[m.cid]=!0),(c.add&&!m||c.merge&&m)&&q.push(g);if(c.remove)for(i=0,j=this.models.length;i<j;i++)g=this.models[i],l[g.cid]||f.push(g);f.length&&this.remove(f,c);q.length&&this.add(q,c);return this},reset:function(e,c){c||(c={});c.parse&&(e=this.parse(e,c));for(var g=0,i=this.models.length;g<i;g++)this._removeReference(this.models[g]);c.previousModels=this.models.slice();this._reset();e&&this.add(e,n.extend({silent:!0},c));c.silent||this.trigger("reset",this,c);return this},fetch:function(e){e=
e?n.clone(e):{};void 0===e.parse&&(e.parse=!0);var c=e.success;e.success=function(e,g,i){e[i.update?"update":"reset"](g,i);c&&c(e,g,i)};return this.sync("read",this,e)},create:function(e,c){c=c?n.clone(c):{};if(!(e=this._prepareModel(e,c)))return!1;c.wait||this.add(e,c);var g=this,i=c.success;c.success=function(e,c,k){k.wait&&g.add(e,k);i&&i(e,c,k)};e.save(null,c);return e},parse:function(e){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models.length=
0;this._byId={}},_prepareModel:function(e,c){if(e instanceof E)return e.collection||(e.collection=this),e;c||(c={});c.collection=this;var g=new this.model(e,c);return!g._validate(e,c)?!1:g},_removeReference:function(e){this===e.collection&&delete e.collection;e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,c,g,i){("add"===e||"remove"===e)&&g!==this||("destroy"===e&&this.remove(c,i),c&&e==="change:"+c.idAttribute&&(delete this._byId[c.previous(c.idAttribute)],null!=c.id&&(this._byId[c.id]=
c)),this.trigger.apply(this,arguments))},sortedIndex:function(e,c,g){c||(c=this.comparator);var i=n.isFunction(c)?c:function(e){return e.get(c)};return n.sortedIndex(this.models,e,i,g)}});n.each("forEach,each,map,collect,reduce,foldl,inject,reduceRight,foldr,find,detect,filter,select,reject,every,all,some,any,include,contains,invoke,max,min,toArray,size,first,head,take,initial,rest,tail,drop,last,without,indexOf,shuffle,lastIndexOf,isEmpty,chain".split(","),function(e){K.prototype[e]=function(){var c=
q.call(arguments);c.unshift(this.models);return n[e].apply(n,c)}});n.each(["groupBy","countBy","sortBy"],function(e){K.prototype[e]=function(c,g){var i=n.isFunction(c)?c:function(e){return e.get(c)};return n[e](this.models,i,g)}});var F=g.Router=function(e){e||(e={});e.routes&&(this.routes=e.routes);this._bindRoutes();this.initialize.apply(this,arguments)},T=/\((.*?)\)/g,Z=/(\(\?)?:\w+/g,I=/\*\w+/g,x=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(F.prototype,i,{initialize:function(){},route:function(e,c,i){n.isRegExp(e)||
(e=this._routeToRegExp(e));i||(i=this[c]);g.history.route(e,n.bind(function(j){j=this._extractParameters(e,j);i&&i.apply(this,j);this.trigger.apply(this,["route:"+c].concat(j));this.trigger("route",c,j);g.history.trigger("route",this,c,j)},this));return this},navigate:function(c,i){g.history.navigate(c,i);return this},_bindRoutes:function(){if(this.routes)for(var c,g=n.keys(this.routes);null!=(c=g.pop());)this.route(c,this.routes[c])},_routeToRegExp:function(c){c=c.replace(x,"\\$&").replace(T,"(?:$1)?").replace(Z,
function(c,e){return e?c:"([^/]+)"}).replace(I,"(.*?)");return RegExp("^"+c+"$")},_extractParameters:function(c,g){return c.exec(g).slice(1)}});var G=g.History=function(){this.handlers=[];n.bindAll(this,"checkUrl");"undefined"!==typeof window&&(this.location=window.location,this.history=window.history)},O=/^[#\/]|\s+$/g,H=/^\/+|\/+$/g,m=/msie [\w.]+/,w=/\/$/;G.started=!1;n.extend(G.prototype,i,{interval:50,getHash:function(c){return(c=(c||this).location.href.match(/#(.*)$/))?c[1]:""},getFragment:function(c,
g){if(null==c)if(this._hasPushState||!this._wantsHashChange||g){var c=this.location.pathname,i=this.root.replace(w,"");c.indexOf(i)||(c=c.substr(i.length))}else c=this.getHash();return c.replace(O,"")},start:function(c){if(G.started)throw Error("Backbone.history has already been started");G.started=!0;this.options=n.extend({},{root:"/"},this.options,c);this.root=this.options.root;this._wantsHashChange=!1!==this.options.hashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||
!this.history||!this.history.pushState);var c=this.getFragment(),i=document.documentMode,i=m.exec(navigator.userAgent.toLowerCase())&&(!i||7>=i);this.root=("/"+this.root+"/").replace(H,"/");i&&this._wantsHashChange&&(this.iframe=g.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(c));if(this._hasPushState)g.$(window).on("popstate",this.checkUrl);else if(this._wantsHashChange&&"onhashchange"in window&&!i)g.$(window).on("hashchange",this.checkUrl);
else this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));this.fragment=c;c=this.location;i=c.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!i)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._wantsPushState&&this._hasPushState&&i&&c.hash&&(this.fragment=this.getHash().replace(O,""),this.history.replaceState({},document.title,
this.root+this.fragment+c.search));if(!this.options.silent)return this.loadUrl()},stop:function(){g.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);G.started=!1},route:function(c,g){this.handlers.unshift({route:c,callback:g})},checkUrl:function(){var c=this.getFragment();c===this.fragment&&this.iframe&&(c=this.getFragment(this.getHash(this.iframe)));if(c===this.fragment)return!1;this.iframe&&this.navigate(c);this.loadUrl()||this.loadUrl(this.getHash())},
loadUrl:function(c){var g=this.fragment=this.getFragment(c);return n.any(this.handlers,function(c){if(c.route.test(g))return c.callback(g),!0})},navigate:function(c,g){if(!G.started)return!1;if(!g||!0===g)g={trigger:g};c=this.getFragment(c||"");if(this.fragment!==c){this.fragment=c;var i=this.root+c;if(this._hasPushState)this.history[g.replace?"replaceState":"pushState"]({},document.title,i);else if(this._wantsHashChange)this._updateHash(this.location,c,g.replace),this.iframe&&c!==this.getFragment(this.getHash(this.iframe))&&
(g.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,c,g.replace));else return this.location.assign(i);g.trigger&&this.loadUrl(c)}},_updateHash:function(c,g,i){i?(i=c.href.replace(/(javascript:|#).*$/,""),c.replace(i+"#"+g)):c.hash="#"+g}});g.history=new G;var V=g.View=function(c){this.cid=n.uniqueId("view");this._configure(c||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},W=/^(\S+)\s*(.*)$/,P="model,collection,el,id,attributes,className,tagName,events".split(",");
n.extend(V.prototype,i,{tagName:"div",$:function(c){return this.$el.find(c)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(c,i){this.$el&&this.undelegateEvents();this.$el=c instanceof g.$?c:g.$(c);this.el=this.$el[0];!1!==i&&this.delegateEvents();return this},delegateEvents:function(c){if(c||(c=n.result(this,"events"))){this.undelegateEvents();for(var g in c){var i=c[g];n.isFunction(i)||(i=this[c[g]]);
if(!i)throw Error('Method "'+c[g]+'" does not exist');var j=g.match(W),m=j[1],j=j[2],i=n.bind(i,this),m=m+(".delegateEvents"+this.cid);if(""===j)this.$el.on(m,i);else this.$el.on(m,j,i)}}},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid)},_configure:function(c){this.options&&(c=n.extend({},n.result(this,"options"),c));n.extend(this,n.pick(c,P));this.options=c},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var c=n.extend({},n.result(this,"attributes"));
this.id&&(c.id=n.result(this,"id"));this.className&&(c["class"]=n.result(this,"className"));this.setElement(g.$("<"+n.result(this,"tagName")+">").attr(c),!1)}}});var $={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};g.sync=function(c,i,j){var m=$[c];n.defaults(j||(j={}),{emulateHTTP:g.emulateHTTP,emulateJSON:g.emulateJSON});var q={type:m,dataType:"json"};j.url||(q.url=n.result(i,"url")||M());if(null==j.data&&i&&("create"===c||"update"===c||"patch"===c))q.contentType="application/json",
q.data=JSON.stringify(j.attrs||i.toJSON(j));j.emulateJSON&&(q.contentType="application/x-www-form-urlencoded",q.data=q.data?{model:q.data}:{});if(j.emulateHTTP&&("PUT"===m||"DELETE"===m||"PATCH"===m)){q.type="POST";j.emulateJSON&&(q.data._method=m);var r=j.beforeSend;j.beforeSend=function(c){c.setRequestHeader("X-HTTP-Method-Override",m);if(r)return r.apply(this,arguments)}}"GET"!==q.type&&!j.emulateJSON&&(q.processData=!1);var u=j.success;j.success=function(c){u&&u(i,c,j);i.trigger("sync",i,c,j)};
var f=j.error;j.error=function(c){f&&f(i,c,j);i.trigger("error",i,c,j)};c=j.xhr=g.ajax(n.extend(q,j));i.trigger("request",i,c,j);return c};g.ajax=function(){return g.$.ajax.apply(g.$,arguments)};E.extend=K.extend=F.extend=V.extend=G.extend=function(c,g){var i=this,j;j=c&&n.has(c,"constructor")?c.constructor:function(){return i.apply(this,arguments)};n.extend(j,i,g);var m=function(){this.constructor=j};m.prototype=i.prototype;j.prototype=new m;c&&n.extend(j.prototype,c);j.__super__=i.prototype;return j};
var M=function(){throw Error('A "url" property or function must be specified');}}).call(this);
New to GrepCode? Check out our FAQ X