forked from RubyLouvre/mass-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mass_min.js
164 lines (164 loc) · 82.1 KB
/
mass_min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
!function(Q,w){function s(b,g){if("function"===typeof b&&b.call)return s.require(ha+",ready",b);s.fn||s.error("\u5fc5\u987b\u52a0\u8f7dnode\u6a21\u5757");return new s.fn.init(b,g)}function ia(b,g){var e=[].slice.call(arguments),h=1,p,r="boolean"===typeof e[e.length-1]?e.pop():!0;1===e.length&&(b=!this.window?this:{},h=0);for(;g=e[h++];)for(p in g)if(V.call(g,p)&&(r||!(p in b)))b[p]=g[p];return b}function pa(b,g,e){if(/^(mass|ready)$/.test(b))return[b,"js"];if(s.config.alias[b])e=s.config.alias[b];
else if(g=g.substr(0,g.lastIndexOf("/")),/^(\w+)(\d)?:.*/.test(b))e=b;else{var h=b.charAt(0);if("."!==h&&"/"!==h)e=U+b;else if("./"===b.slice(0,2))e=g+b.slice(1);else if(".."===b.slice(0,2)){var p=g.replace(/\/$/,"").split("/"),h=b.replace(/\.\.\//g,function(){p.pop();return""});e=p.join("/")+"/"+h}else"/"===h?e=g+b:s.error("\u4e0d\u7b26\u5408\u6a21\u5757\u6807\u8bc6\u89c4\u5219: "+b)}b="js";h=e.replace(/[?#].*/,"");/\.(css|js)$/.test(h)&&(b=RegExp.$1);"css"!==b&&(h===e&&!/\.js$/.test(e))&&(e+=".js");
return[e,b]}function qa(){if(w.currentScript)return w.currentScript.src;var b;try{a.b.c()}catch(g){b=g.stack,!b&&window.opera&&(b=(String(g).match(/of linked script \S+/g)||[]).join(" "))}if(b)return b=b.split(/[@ ]/g).pop(),b="("===b[0]?b.slice(1,-1):b,b.replace(/(:\d+)?:\d+$/i,"");b=T.getElementsByTagName("script");for(var e=0,h;h=b[e++];)if(h.className===ja&&"interactive"===h.readyState)return h.className=h.src}function ka(b,g){for(var e in b)if("\u53f8\u5f92\u6b63\u7f8e"===b[e]&&2!==F[e].state&&
(e===g||ka(F[e].deps,g)))return!0}function Z(){var b=X.length,g;a:for(;g=X[--b];){g=F[g];var e=g.deps,h;for(h in e)if(V.call(e,h)&&2!==F[h].state)continue a;2!==g.state&&(X.splice(b,1),la(g.id,g.args,g.factory),Z())}}function ma(b,g){var e=b.src;b.onload=b.onreadystatechange=b.onerror=null;if(g||!F[e].state)setTimeout(function(){T.removeChild(b)}),s.log("\u52a0\u8f7d "+e+" \u5931\u8d25"+g+" "+!F[e].state,7);else return!0}function ra(b){var g=w.createElement("script");g.className=ja;g[R?"onload":"onreadystatechange"]=
function(){if(R||/loaded|complete/i.test(g.readyState)){var b=$.pop();b&&b.delay(g.src);ma(g)&&s.log("\u5df2\u6210\u529f\u52a0\u8f7d "+g.src,7)}};g.onerror=function(){ma(g,!0)};g.src=b;T.insertBefore(g,T.firstChild);s.log("\u6b63\u51c6\u5907\u52a0\u8f7d "+g.src,7)}function la(b,g,e){for(var h=0,p=[],r;r=g[h++];)p.push(F[r].exports);g=Object(F[b]);e=e.apply(Q,p);g.state=2;void 0!==e&&(F[b].exports=e);return e}function Y(){F.ready.state=2;Z();aa&&s.unbind(w,na,aa);Y=s.noop}function ba(){try{ca.doScroll("left"),
Y()}catch(b){setTimeout(ba)}}var da=Q.$,ea=/(#.+|\W)/g,fa=w.URL.replace(ea,""),P=Q[fa],R=w.dispatchEvent,ca=w.documentElement,T=w.head||w.getElementsByTagName("head")[0],X=[],$=[],J="",sa=1E5,ha="mass,lang,class,flow,data,support,query,node,attr,css,event,ajax,fx",ja="mass"+(new Date-0),V=Object.prototype.hasOwnProperty,ga={"[object HTMLDocument]":"Document","[object HTMLCollection]":"NodeList","[object StaticNodeList]":"NodeList","[object IXMLDOMNodeList]":"NodeList","[object DOMWindow]":"Window",
"[object global]":"Window","null":"Null",NaN:"NaN",undefined:"Undefined"},oa=ga.toString,U;"function"!==typeof P&&(P=s,P.uuid=1);if(1!==P.mass){P[1]=s;if(P.mass||da&&null==da.mass)J="1".replace(/\D/g,"");ia(s,{html:ca,head:T,mix:ia,rword:/[^, ]+/g,rmapper:/(\w+)_(\w+)/g,mass:1,hasOwn:function(b,g){return V.call(b,g)},"@bind":R?"addEventListener":"attachEvent",slice:R?function(b,g,e){return $.slice.call(b,g,e)}:function(b,g,e){var h=[],p=b.length;if(void 0===e||"number"===typeof e&&isFinite(e)){g=
parseInt(g,10)||0;e=void 0==e?p:parseInt(e,10);0>g&&(g+=p);e>p&&(e=p);0>e&&(e+=p);for(p=g;p<e;++p)h[p-g]=b[p]}return h},getUid:R?function(b){return b.uniqueNumber||(b.uniqueNumber=P.uuid++)}:function(b){if(1!==b.nodeType)return b.uniqueNumber||(b.uniqueNumber=P.uuid++);var g=b.getAttribute("uniqueNumber");g||(g=P.uuid++,b.setAttribute("uniqueNumber",g));return+g},bind:R?function(b,g,e,h){b.addEventListener(g,e,!!h);return e}:function(b,g,e){b.attachEvent&&b.attachEvent("on"+g,e);return e},unbind:R?
function(b,g,e,h){b.removeEventListener(g,e||s.noop,!!h)}:function(b,g,e){b.detachEvent&&b.detachEvent("on"+g,e||s.noop)},type:function(b,g){var e=ga[null==b||b!==b?b:oa.call(b)]||b.nodeName||"#";"#"===e.charAt(0)&&(e=b==b.document&&b.document!=b?"Window":9===b.nodeType?"Document":b.callee?"Arguments":isFinite(b.length)&&b.item?"NodeList":oa.call(b).slice(8,-1));return g?g===e:e},log:function(b,g,e){for(var h=1,p=!0;h<arguments.length;h++)e=arguments[h],"number"===typeof e?p=e<=s.config.level:!0===
e&&(g=!0);p&&(!0===g?s.require("ready",function(){var e=w.createElement("pre");e.className="mass_sys_log";e.innerHTML=b+"";w.body.appendChild(e)}):Q.console&&console.log(b));return b},oneObject:function(b,g){"string"===typeof b&&(b=b.match(s.rword)||[]);for(var e={},h=void 0!==g?g:1,p=0,r=b.length;p<r;p++)e[b[p]]=h;return e},config:function(b){var g=s.config,e;for(e in b)if(V.call(b,e)){var h=g[e],p=b[e];if(h&&"alias"===e)for(var r in p){if(V.call(p,r)){var q=p[r];h[r]&&h!==p&&s.error(r+"\u4e0d\u80fd\u91cd\u547d\u540d");
h[r]=q}}else g[e]=p}return this},exports:function(b){Q.$=da;b=b||s.config.nick;s.config.nick=b;Q[fa]=P;return Q[b]=this},noop:function(){},error:function(b,g){throw new (g||Error)(b);}});(function(b){b=b[b.length-1];var g=(b.hasAttribute?b.src:b.getAttribute("src",4)).replace(/[?#].*/,""),e=s.config;U=e.base=g.slice(0,g.lastIndexOf("/")+1);e.nick=b.getAttribute("nick")||"$";e.alias={};e.level=9})(w.getElementsByTagName("script"));"Boolean,Number,String,Function,Array,Date,RegExp,Window,Document,Arguments,NodeList,Error".replace(s.rword,
function(b){ga["[object "+b+"]"]=b});var F=s.modules={ready:{exports:s},mass:{state:2,exports:s}};window.require=s.require=function(b,g,e){var h={},p=[],r=0,q=0,f=e||"cb"+(sa++).toString(32);e=e||U;String(b).replace(s.rword,function(b){var c=pa(b,e);b=c[0];if("js"===c[1])r++,F[b]?2===F[b].state&&q++:(F[b]={id:b,parent:e,exports:{}},ra(b)),h[b]||(p.push(b),h[b]="\u53f8\u5f92\u6b63\u7f8e");else if("css"===c[1]&&(c=b.replace(ea,""),!w.getElementById(c))){var d=w.createElement("link");d.rel="stylesheet";
d.href=b;d.id=c;T.insertBefore(d,T.firstChild)}});F[f]={id:f,factory:g,deps:h,args:p,state:1};if(r===q)return la(f,p,g),Z();X.unshift(f)};window.define=s.define=function(b,g,e){var h=s.slice(arguments);if("string"===typeof b)var p=h.shift();if("boolean"===typeof h[0]){if(h[0])return;h.shift()}"function"===typeof h[0]&&h.unshift([]);b=F[b]&&1<=F[b].state?p:qa();e=h[1];e.id=p;e.delay=function(b){h.push(b);ka(F[b].deps,b)&&s.error(b+"\u6a21\u5757\u4e0e\u4e4b\u524d\u7684\u67d0\u4e9b\u6a21\u5757\u5b58\u5728\u5faa\u73af\u4f9d\u8d56");
delete e.delay;require.apply(null,h)};b?e.delay(b,h):$.push(e)};s.require.amd=F;ha.replace(s.rword,function(b){s.config.alias["$"+b]=U+b+".js"});var aa,na=R?"DOMContentLoaded":"readystatechange";if(!w.readyState)var ta=w.readyState="loading";if("complete"===w.readyState)Y();else if(s.bind(w,na,aa=function(){if(R||"complete"===w.readyState)Y(),ta&&(w.readyState="complete")}),ca.doScroll)try{self.eval===parent.eval&&ba()}catch(wa){ba()}Q.VBArray&&"abbr,article,aside,audio,base,bdi,canvas,data,datalist,details,figcaption,figure,footer,header,hgroup,m,mark,meter,nav,output,progress,section,summary,time,video".replace(s.rword,
function(b){w.createElement(b)});s.bind(Q,"popstate",function(){fa=w.URL.replace(ea,"");s.exports()});s.exports(s.config.nick+J);J=function(b){for(var g=[U+b+".js"],e=1;e<arguments.length;e++){var h=arguments[e];"string"!==typeof h&&g.push(h)}return s.define.apply(s,g)};"lang,class,flow,data,query,support,css,attr,node,event,fx,ajax".replace(s.rword,function(b){F[U+b+".js"]={state:1}});J("lang",Array.isArray?["mass"]:["lang_fix"],function(b){function g(b,c,d){b[c]||n(b,c,{configurable:!0,enumerable:!1,
writable:!0,value:d})}function e(l){var c=b.type(l);switch(c){case "Array":case "Object":return b[c].clone(l);default:return l}}function h(l,c,d){b.isPlainObject(l[c])?b.Object.merge(l[c],d):l[c]=e(d);return l}var p=this,r=p.execScript?"execScript":"eval",q=/\\?\#{([^{}]+)\}/gm,f=(p.open+"").replace(/open/g,""),n=Object.defineProperty;try{n({},"a",{get:function(){}})}catch(c){g=function(b,c,d){b[c]||(b[c]=d)}}b.mix({isPlainObject:function(l){if(!b.type(l,"Object")||b.isNative("reload",l))return!1;
try{for(var c in l)if(!Object.prototype.hasOwnProperty.call(l,c))return!1}catch(d){return!1}return!0},isNative:function(b,c){var d=c?c[b]:!1,e=RegExp(b,"g");return!(!d||!("string"!=typeof d&&f===(d+"").replace(e,"")))},isEmptyObject:function(b){for(var c in b)return!1;return!0},isArrayLike:function(l,c){var d=b.type(l);return"Array"===d||"Arguments"===d||"NodeList"===d||c&&"String"===d?!0:"Object"===d?(d=l.length,0<=d&&parseInt(d)===d):!1},each:function(l,c,d,f){var e,n=0,h=[];if(b.isArrayLike(l))for(var g=
l.length;n<g&&!(e=c.call(d||l[n],l[n],n),h.push(e),!f&&!1===e);n++);else for(n in l)if(e=c.call(d||l[n],l[n],n),h.push(e),!f&&!1===e)break;return f?h:l},map:function(l,c,d){return b.each(l,c,d,!0)},filter:function(b,c,d){for(var f=0,e=b.length,n=[];f<e;f++)if(c.call(d||b[f],b[f],f))n[n.length]=b[f];return n},format:function(l,c){var d=b.slice(arguments,1);return l.replace(q,function(b,l){if("\\"===b.charAt(0))return b.slice(1);var f=Number(l);return 0<=f?d[f]:c&&void 0!==c[l]?c[l]:""})},range:function(b,
c,d){d||(d=1);null==c&&(c=b||0,b=0);var f=-1;c=Math.max(0,Math.ceil((c-b)/d));for(var e=Array(c);++f<c;)e[f]=b,b+=d;return e},quote:String.quote||JSON.stringify,dump:function(l){var c=b.isNative("parse",window.JSON)?4:"\r\t";return JSON.stringify(l,function(b,l){return"function"===typeof l?l+"":l},c)},parseJS:function(b){if(b&&/\S/.test(b))try{p[r](b)}catch(c){}},parseJSON:function(l){try{return p.JSON.parse(l.trim())}catch(c){b.error("Invalid JSON: "+l,TypeError)}},parseXML:function(l,c,d){try{var f=
document.documentMode;p.DOMParser&&(!f||8<f)?(d=new DOMParser,c=d.parseFromString(l,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(l))}catch(e){c=void 0}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+l,TypeError);return c}},!1);"Array,Function".replace(b.rword,function(l){b["is"+l]=function(b){return b&&{}.toString.call(b)==="[object "+l+"]"}});Array.isArray&&(b.isArray=Array.isArray);(function(b,c){for(var d in c)g(b,
d,c[d])})(String.prototype,{repeat:function(b){for(var c="",d=this;0<b;)b&1&&(c+=d),d+=d,b>>=1;return c},startsWith:function(b){return 0===this.indexOf(b)},endsWith:function(b){return this.lastIndexOf(b)===this.length-b.length},contains:function(b,c){return-1!=="".indexOf.call(this,b,c>>0)}});"String,Array,Number,Object".replace(b.rword,function(c){b[c]=function(d){var f="string"==typeof d;(f?d.match(b.rword):Object.keys(d)).forEach(function(e){b[c][e]=f?function(c){return c[e].apply(c,b.slice(arguments,
1))}:d[e]})}});b.String({byteLen:function(b){return b.replace(/[^\x00-\xff]/g,"ci").length},truncate:function(b,c,d){c=c||30;d=void 0===d?"...":d;return b.length>c?b.slice(0,c-d.length)+d:String(b)},camelize:function(b){return 0>b.indexOf("-")&&0>b.indexOf("_")?b:b.replace(/[-_][^-_]/g,function(b){return b.charAt(1).toUpperCase()})},underscored:function(b){return b.replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/\-/g,"_").toLowerCase()},capitalize:function(b){return b.charAt(0).toUpperCase()+b.substring(1).toLowerCase()},
stripTags:function(b){return b.replace(/<[^>]+>/g,"")},stripScripts:function(b){return b.replace(/<script[^>]*>([\S\s]*?)<\/script>/img,"")},escapeHTML:function(b){return b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},unescapeHTML:function(b){return b.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/&#([\d]+);/g,function(b,c){return String.fromCharCode(parseInt(c,10))})},escapeRegExp:function(b){return(b+
"").replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},pad:function(b,c,d,f,e){b=b.toString(e||10);for(d=d||"0";b.length<c;)b=f?b+d:d+b;return b},wbr:function(b){return String(b).replace(/(?:<[^>]+>)|(?:&#?[0-9a-z]{2,6};)|(.{1})/gi,"$&<wbr>").replace(/><wbr>/g,">")}});b.String("charAt,charCodeAt,concat,indexOf,lastIndexOf,localeCompare,match,contains,endsWith,startsWith,repeat,","replace,search,slice,split,substring,toLowerCase,toLocaleLowerCase,toUpperCase,trim,toJSON");b.Array({contains:function(b,c){return!!~b.indexOf(c)},
removeAt:function(b,c){return!!b.splice(c,1).length},remove:function(c,d){var f=c.indexOf(d);return~f?b.Array.removeAt(c,f):!1},shuffle:function(b){var c=[],d=b.length,f;for(b=b.slice(0);0<=--d;)f=Math.floor(Math.random()*d),c[c.length]=b[f],b[f]=b[d];return c},random:function(c){return b.Array.shuffle(c.concat())[0]},flatten:function(c){var d=[],f=b.Array.flatten;c.forEach(function(b){Array.isArray(b)?d=d.concat(f(b)):d.push(b)});return d},compact:function(b){return b.filter(function(b){return null!=
b})},sortBy:function(c,d,f){c=c.map(function(b,c){return{el:b,re:d.call(f,b,c)}}).sort(function(b,c){var d=b.re,l=c.re;return d<l?-1:d>l?1:0});return b.Array.pluck(c,"el")},groupBy:function(c,d){var f={},e=b.isFunction(d)?d:function(b){return b[d]};c.forEach(function(b,c){var d=e(b,c);(f[d]||(f[d]=[])).push(b)});return f},pluck:function(b,c){var d=[],f;b.forEach(function(b){f=b[c];null!=f&&d.push(f)});return d},unique:function(b){var c=[],d=b.length,f,e;for(f=0;f<d;f++){for(e=f+1;e<d;e++)b[f]===b[e]&&
(e=++f);c.push(b[f])}return c},merge:function(b,c){for(var d=~~b.length,f=0,e=c.length;f<e;f++)b[d++]=c[f];b.length=d;return b},union:function(c,d){return b.Array.unique(b.Array.merge(c,d))},intersect:function(b,c){return b.filter(function(b){return~c.indexOf(b)})},diff:function(b,c){for(var d=b.slice(),f=0;f<d.length;f++)for(var e=0;e<c.length;e++)if(d[f]===c[e]){d.splice(f,1);f--;break}return d},min:function(b){return Math.min.apply(0,b)},max:function(b){return Math.max.apply(0,b)},clone:function(b){for(var c=
b.length,d=[];c--;)d[c]=e(b[c]);return d},ensure:function(b,c){~b.indexOf(c)||b.push(c);return b},inGroupsOf:function(b,c,d){var f=b.length,e=Math.ceil(f/c),n=void 0!==d,h=[],g,p,q;for(g=0;g<e;g++){h[g]=[];for(p=0;p<c;p++)q=g*c+p,q===f?n&&(h[g][p]=d):h[g][p]=b[q]}return h},forEach:b.each,map:b.map});b.Array("concat,join,pop,push,shift,slice,sort,reverse,splice,unshift,indexOf,lastIndexOf,every,some,filter,reduce,reduceRight");var d={limit:function(b,c,d){c=[c,d].sort();b<c[0]&&(b=c[0]);b>c[1]&&(b=
c[1]);return b},nearer:function(b,c,d){var f=Math.abs(b-c);b=Math.abs(b-d);return f<b?c:d},round:function(b,c){return c?(c=Math.pow(10,c),Math.round(b*c)/c):Math.round(b)}};"abs,acos,asin,atan,atan2,ceil,cos,exp,floor,log,pow,sin,sqrt,tan".replace(b.rword,function(b){d[b]=Math[b]});b.Number(d);b.Number("toFixed,toExponential,toPrecision,toJSON");b.Object({subset:function(b,c){var d={};c.forEach(function(c){d[c]=b[c]});return d},forEach:b.each,map:b.map,clone:function(b){var c={},d;for(d in b)c[d]=
e(b[d]);return c},merge:function(b,c,d){var f,e;if("string"===typeof c)return h(b,c,d);for(var n=1,g=arguments.length;n<g;n++)for(e in f=arguments[n],f)void 0!==f[e]&&h(b,e,f[e]);return b},without:function(b,c){var d={},f;for(f in b)~c.indexOf(f)||(d[f]=b[f]);return d}});b.Object("hasOwnerProperty,isPrototypeOf,propertyIsEnumerable");return b});J("class",["lang"],function(b){function g(){}function e(e){return b.factory(this,e)}var h=/mass/.test(function(){1})?/\b_super|_superApply\b/:/.*/,p={inherit:function(e,
h){if("function"==typeof e){for(var f in e)this[f]=e[f];g.prototype=e.prototype;this.prototype=new g;this._super=e;this.__init__||(this.__init__=[e])}this.__init__=(this.__init__||[]).concat();h&&this.__init__.push(h);this.toString=function(){return(h||g)+""};f=this.fn=this.prototype;f.extend=p.extend;f.setOptions=function(){var f=arguments[0];"string"===typeof f?(f=this[f]||(this[f]={}),[].splice.call(arguments,0,1,f)):[].unshift.call(arguments,this);b.Object.merge.apply(null,arguments);return this};
return f.constructor=this},extend:function(b){var e=this;Object.keys(b).forEach(function(f){var n=e[f],c=b[f];if("funciton"===typeof n&&"function"===typeof c&&h.test(c)){var d=function(){return n.apply(this,arguments)},l=function(b){return n.apply(this,b)};e[f]=function(){var b=this._super,f=this._superApply;this._super=d;this._superApply=l;var e=c.apply(this,arguments);this._super=b;this._superApply=f;return e}}else e[f]=c});return this}};b.factory=function(h,g){1===arguments.length&&(g=h,h=null);
var f=g.statics,n=g.init;delete g.init;delete g.statics;var c=function(){for(var b=0,d;d=c.__init__[b++];)d.apply(this,arguments)};p.inherit.call(c,h,n);var n=c.fn,d=c.__init__;b.mix(c,f);c.prototype=c.fn=n;c.__init__=d;c.fn.extend(g);c.mix=b.mix;c.extend=e;return c};b.mix(b.factory,p);return b});J("flow",["class"],function(b){b.Observer=b.factory({init:function(b){this._events={};this._target=b||this},bind:function(b,e){var g=this._events[b];g?g.push(e):this._events[b]=[e];return this},once:function(b,
e){var g=this,q=function(){e.apply(g,arguments);g.unbind(b,q)};this.bind(b,q);return this},unbind:function(b,e){var g=arguments.length;if(0===g)this._events={};else if(1==g)this._events[b]=[];else for(var g=this._events[b]||[],q=g.length;-1<--q;)if(g[q]===e)return g.splice(q,1);return this},fire:function(e){var g=(this._events[e]||[]).concat();if(g.length){var r=this._target,q=b.slice(arguments);q[0]={type:e,target:r};for(var f=0,n;n=g[f++];)n.apply(r,q)}}});b.Flow=b.Observer.extend({init:function(b){this._fired=
{};"number"==typeof b&&(this.timeout=b)},fire:function(e,p){for(var r=this._events,q=2,f,n;q--;)if(n=q?e:g,(f=r[n])&&f.length){p=b.slice(arguments,1);q&&(this._events[n]&&(this._fired[n]=p.concat()),p.unshift({type:e,target:this._target}));n=0;for(var c;c=f[n++];)c.apply(this,p)}else break;return this},refresh:function(){Array.prototype.push.call(arguments,!1);e.apply(this,arguments);return this},reload:function(){Array.prototype.push.call(arguments,!0);e.apply(this,arguments);return this},order:function(b){if(this._events[b]){var e=
this._queue.shift();this.timestamp||(this.timestamp=new Date-0);var g=!0;this.timeout&&new Date-this.timestamp>this.timeout&&(g=!1);b==e&&g?this.fire.apply(this,arguments):(this._queue=this._order.concat(),this._fired={},delete this.timestamp)}},repeat:function(e,g,r){var q=g,f=[];this.bind(e,function(){f.push.apply(f,b.slice(arguments,1));0===--g&&(r.apply(this._target,f),g=q,f=[])});return this},done:function(e){var g=this;return function(r,q){if(r)return g.fire("error",r);if("string"===typeof e)return g.fire(e,
q);if(2>=arguments.length)return e(q);var f=b.slice(arguments,1);e.apply(null,f)}},fail:function(b){var e=this;e.once("error",function(g){e.unbind();b(g)});return this}});b.Flow.create=function(e,g,r){var q=new b.Flow;e=e.match(b.rword)||[];"function"===typeof r&&q.fail(r);e.push(g);q.refresh.apply(q,e);return q};var g="$"+Date.now(),e=function(e,p,r){function q(b){f.bind(b,function(){c[b]||(c[b]=!0,n++)})}var f=this,n=0,c={},d=e.match(b.rword),l=d.length;if(!d.length)return this;this._queue=d.concat();
this._order=d;for(e=0;e<l;e++)q(d[e]);f.bind(g,function(){if(!(n<l)){for(var b=[],e=0;e<l;e++)b.push.apply(b,f._fired[d[e]]);r&&(c={},n=0);p.apply(f,b)}})};b.Twitter=b.factory({init:function(){this.followers=[]},tweet:function(b){for(var e=0;e<this.followers.length;e++){var g=this.followers[e];g.handler&&g.handler.call(g.target,b)}},follow:function(b,e){b.followers.push({target:this,handler:e})}});return b});J("data",["lang"],function(b){function g(e,f,g,c){var d=h.indexOf(e);-1===d?(d=h.push(e),
d=p[d-1]={data:{}}):d=p[d];var l="string"===typeof f,H=d;c||(d=d.data);f&&"object"===typeof f?b.mix(d,f):l&&void 0!==g&&(d[f]=g);if(l){if(f in d)return d[f];if(!c&&e&&1==e.nodeType)return b.parseData(e,f,H)}else return d}function e(b,f,e){b=h.indexOf(b);if(-1<b){var c="string"===typeof f,d=p[b],g=d,H=1;if(c){e||(d=d.data);d&&(c=d[f],delete d[f]);for(var I in g)if("data"===I)for(var t in g.data){H=0;break}else{H=0;break}H&&(h.splice(b,1),p.splice(b,1))}return c}}var h=[],p=[],r=/^(?:null|false|true|NaN|\{.*\}|\[.*\])$/;
b.mix({hasData:function(b){return-1<h.indexOf(b)},data:function(b,e,n){return g(b,e,n)},_data:function(b,e,n){return g(b,e,n,!0)},removeData:function(b,f){return e(b,f)},_removeData:function(b,f){return e(b,f,!0)},parseData:function(e,f,g,c){var d,l,h=b.String.camelize(f);if(g&&h in g)return g[h];if(4!==arguments.length){var p="data-"+f.replace(/([A-Z])/g,"-$1").toLowerCase();c=e.getAttribute(p)}if("string"===typeof c){if(r.test(c)||+c+""===c)l=!0;try{d=l?eval("0,"+c):c}catch(t){d=c}g&&(g[h]=d)}return d},
mergeData:function(e,f){if(b.hasData(e)){var g=b._data(f),c=b._data(e),d=g.events;b.Object.merge(c,g);if(d){c.events=[];for(g=0;c=d[g++];)b.event.bind(e,c)}}}});return b});J("support",["mass"],function(b){var g=document,e=g.createElement("div");e.setAttribute("className","t");e.innerHTML=' <link/><a href="/nasami" style="float:left;opacity:.25;">d</a><object><param/></object><table></table><input type="checkbox" checked/>';var h=e.getElementsByTagName("a")[0],p=h.style,r=g.createElement("select"),
q=e.getElementsByTagName("input")[0],f=r.appendChild(g.createElement("option")),n=b.support={insertTbody:!e.getElementsByTagName("tbody").length,checkOn:"on"===q.value,optSelected:!!f.selected,attrInnateHref:"/nasami"===h.getAttribute("href"),attrInnateStyle:h.getAttribute("style")!==p,attrInnateName:"t"!==e.className,attrInnateValue:""==q.getAttribute("checked"),cssOpacity:"0.25"==p.opacity,cssFloat:!!p.cssFloat,traverseAll:!!e.getElementsByTagName("param").length,noscope:!e.getElementsByTagName("link").length,
cloneHTML5:"<:nav></:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,focusin:"attachEvent"===b["@bind"],innerHTML:!1,insertAdjacentHTML:!1,fastFragment:!1,inlineBlock:!0,pixelPosition:!0,transition:!1};q.checked=!0;n.cloneChecked=!0===q.cloneNode(!0).checked;n.appendChecked=q.checked;r.disabled=!0;n.optDisabled=!f.disabled;e.style.backgroundClip="content-box";e.cloneNode(!0).style.backgroundClip="";n.cloneBackgroundStyle="content-box"===e.style.backgroundClip;h=e.getElementsByTagName("table")[0];
try{h.innerHTML="<tr><td>1</td></tr>",n.innerHTML=!0,h.insertAdjacentHTML("afterBegin","<tr><td>2</td></tr>"),n.insertAdjacentHTML=!0}catch(c){}h=r=h=f=p=null;b.require("ready",function(){var c=g.body;if(c){try{var f=g.createRange();f.selectNodeContents(c);n.fastFragment=!!f.createContextualFragment("<a>");b.cachedRange=f}catch(h){}e.style.cssText="position:absolute;top:-1000px;left:-1000px;";c.insertBefore(e,c.firstChild);f='<div style="height:20px;display:inline-block"></div>';e.innerHTML=f+f;n.inlineBlock=
40>e.offsetHeight;window.getComputedStyle&&(e.style.top="1%",f=window.getComputedStyle(e,null)||{},n.pixelPosition="1%"!==f.top);e.innerHTML="<a href='#'></a>";n.focusin||(f=e.firstChild,f.addEventListener("focusin",function(){n.focusin=!0},!1),f.focus());e.style.width=e.style.paddingLeft="10px";n.boxModel=20===e.offsetWidth;c.removeChild(e);e=null}});return b});J("query",["mass"],function(b){function g(b,c){return b===c?(g.hasDuplicate=!0,0):!b.compareDocumentPosition||!c.compareDocumentPosition?
b.compareDocumentPosition?-1:1:b.compareDocumentPosition(c)&4?-1:1}function e(b,c){return String.fromCharCode(parseInt(c,16))}function h(b){var c=b;b=b.replace(/^\+|\s*/g,"");b=("even"===b&&"2n"||"odd"===b&&"2n+1"||!/\D/.test(b)&&"0n+"+b||b).match(/(-?)(\d*)n([-+]?\d*)/);return h[c]={a:b[1]+(b[2]||1)-0,b:b[3]-0}}function p(c,m,d){var k="getElementsByTagName",e=[],f={},u;d&&(0<c.indexOf(":")&&m.length&&m[0].lookupNamespaceURI)&&(c=c.split(":"),u=c[0],c=c[1],k="getElementsByTagNameNS",u=m[0].lookupNamespaceURI(u));
switch(m.length){case 0:return e;case 1:m=u?m[0][k](u,c):m[0][k](c);for(var A=d=0,C;C=m[d++];)1===C.nodeType&&(e[A++]=C);return e;default:for(A=d=0;C=m[d++];){C=u?C[k](u,c):C[k](c);for(var D=0,g;g=C[D++];){var l=b.getUid(g);f[l]||(f[l]=e[A++]=g)}}return e}}function r(b,c,m){var d=[];try{if(n.DOMParser)for(var k=m.evaluate(b,c,null,7,null),e=0,f=k.snapshotLength;e<f;e++)d[e]=k.snapshotItem(e);else{k=c.selectNodes(b);e=0;for(f=k.length;e<f;e++)d[e]=k[e]}}catch(u){return!1}return d}function q(b,c,m){c=
c?"nextSibling":"previousSibling";var d={type:[" tagName = el.nodeName;",c,"nodeName","tagName"],child:["",c,"nodeType","1"]}[b];return{exec:new Function("flags","lastResult",("var result = [], flag_not = flags.not, node, el, tagName, i = 0, ri = 0, found = 0; for (; node = el = lastResult[i++];found = 0) {{0} while (!found && (node=node.{1})) { (node.{2} === {3}) && ++found; }"+(m?" node = el;while (!found && (node = node.previousSibling)) { node.{2} === {3} && ++found; }":"")+"!found ^ flag_not && (result[ri++] = el); } return result").replace(/{(\d)}/g,
function(b,c){return d[c]}))}}function f(b,c){return{exec:function(m,d){for(var k=[],e=c?m.not:!m.not,f=0,u=0,A;A=d[f++];)A[b]^e&&(k[u++]=A);return k}}}var n=this,c=n.document;b.mix({isXML:function(b){return"p"===(b.ownerDocument||b).createElement("p").nodeName},contains:function(b,c,m){if(b===c)return!!m;if(9===b.nodeType)return!0;if(b.contains)return b.contains(c);if(b.compareDocumentPosition)return!!(b.compareDocumentPosition(c)&16);for(;c=c.parentNode;)if(b===c)return!0;return!1},getText:function(){return function ua(b){for(var c=
0,m="",d;d=b[c++];)3===d.nodeType||4===d.nodeType?m+=d.nodeValue:8!==d.nodeType&&(m+=ua(d.childNodes));return m}}(),unique:function(b){if(2>b.length)return b;var c=[],m=[],d={},k=b[0],e,f=0;e="number"===typeof k.sourceIndex;var u="function"==typeof k.compareDocumentPosition;if(!e&&!u){u=(k.ownerDocument||k).getElementsByTagName("*");for(e=0;k=u[e];e++)k.setAttribute("sourceIndex",e);e=!0}if(e){for(var u=0,A=b.length;u<A;u++)k=b[u],e=(k.sourceIndex||k.getAttribute("sourceIndex"))+1E8,d[e]||((m[f++]=
new String(e))._=k,d[e]=1);for(m.sort();f;)c[--f]=m[f]._;return c}b.sort(g);if(g.hasDuplicate)for(u=1;u<b.length;u++)b[u]===b[u-1]&&b.splice(u--,1);g.hasDuplicate=!1;return b}});var d=/^\s*([>+~,\s])\s*(\*|(?:[-\w*]|[^\x00-\xa0]|\\.)*)/,l=/^\s+/,H=/\s+$/,I=/^(^|[#.])((?:[-\w]|[^\x00-\xa0]|\\.)+)$/,t=/^\s*,\s*/,B=/^([#\.:]|\[\s*)((?:[-\w]|[^\x00-\xa0]|\\.)+)/,v=/^\(\s*("([^"]*)"|'([^']*)'|[^\(\)]*(\([^\(\)]*\))?)\s*\)/,S=/^\s*(?:(\S?=)\s*(?:(['"])(.*?)\2|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
s=/\\([0-9a-fA-F]{2,2})/g,E=/^(title|id|name|class|for|href|src)$/,y=/\\/g,w=/^((?:[-\w\*]|[^\x00-\xa0]|\\.)+)/,u={"=":1,"!=":2,"|=":3,"~=":4,"^=":5,"$=":6,"*=":7};l.test("\u00a0")&&(l=/^[\s\xA0]+/,H=/[\s\xA0]+$/);var D=Array.prototype.slice,N=function(c,m,d){c=D.call(c,0);m?m.push.apply(m,c):m=c;return d?b.unique(m):m};try{D.call(b.html.childNodes,0)[0].nodeType}catch(x){N=function(c,m,d){m=m||[];for(var k=m.length,e=0,f;f=c[e++];)m[k++]=f;return d?b.unique(m):m}}var k=b.oneObject("action,cite,codebase,data,href,longdesc,lowsrc,src,usemap",
2),m=b.oneObject("autofocus,autoplay,async,checked,controls,declare,disabled,defer,defaultchecked,contenteditable,ismap,loop,multiple,noshade,open,noresize,readonly,selected"),A,C,L,O,K=new Function("els","return els[0]."+(b.html.textContent?"textContent":"innerText"));new function(){var m=c.createElement("select"),d=m.appendChild(c.createElement("option"));d.setAttribute("selected","selected");d.className="x";A="x"!==d.getAttribute("class");m.appendChild(c.createComment(""));O=2===m.getElementsByTagName("*").length;
for(var k=c.getElementsByTagName("*"),e,f,u=[],D=0,g=0;e=k[D++];)f=e.nodeType,1===f?b.getUid(e):8===f?u.push(e):0;for(;e=u[g++];)e.parentNode.removeChild(e);C=m.hasAttribute?!d.hasAttribute("selected"):!0;m=c.createElement("div");d="fixId"+(new Date).getTime();k=b.html;m.innerHTML="<a name='"+d+"'/>";k.insertBefore(m,k.firstChild);L=!!c.getElementById(d);k.removeChild(m)};var M=b.query=function(m,k,e,f,u,A,C){e=e||[];k=k||c;var D=N;if(k.nodeType)k=[k];else if(k=D(k),!k.length)return e;f=k[0];var g=
f.ownerDocument||f,n,x,h,B,q,K;m=m.replace(l,"").replace(H,"");if((u=void 0!==u?u:b.isXML(g))&&"body"===m&&f.body)return D([f.body],e,A);if(!u&&g.querySelectorAll){x=m;if(2<k.length||8==g.documentMode&&1==f.nodeType){2<k.length&&(f=g);x=".fix_icarus_sqa "+x;for(var v=0,z;z=k[v++];)1===z.nodeType&&(z.className="fix_icarus_sqa "+z.className)}if(8!==g.documentMode||"object"!==f.nodeName.toLowerCase())try{return D(f.querySelectorAll(x),e,A)}catch(W){}finally{if(0===x.indexOf(".fix_icarus_sqa"))for(v=
0;z=k[v++];)1===z.nodeType&&(z.className=z.className.replace("fix_icarus_sqa ",""))}}if(z=m.match(I))if(v=z[2].replace(y,""),z=z[1],""==z?n=p(v,k,u):"."===z&&1===k.length?u?n=r("//*[@class='"+v+"']",f,g):f.getElementsByClassName&&(n=f.getElementsByClassName(v)):"#"===z&&1===k.length&&(u?n=r("//*[@id='"+v+"']",f,g):9==f.nodeType&&(z=g.getElementById(v),n=!z?[]:!L?[z]:z.getAttributeNode("id").nodeValue===v?[z]:!1)),n)return D(n,e,A);f=k;if(f.length)a:for(;m&&void 0!==m;){C=!1;h=null;x={};if(z=m.match(d))switch(m=
RegExp.rightContext,h=[],B=(u?z[2]:z[2].toUpperCase()).replace(y,"")||"*",q=v=0,n="*"===B,z[1]){case " ":if(m.length||z[2])h=p(B,f,u);else{h=f;break a}break;case ">":for(;z=f[v++];)for(z=z.firstChild;z;z=z.nextSibling)if(1===z.nodeType&&(n||B===z.nodeName))h[q++]=z;break;case "+":for(;z=f[v++];)for(;z=z.nextSibling;)if(1===z.nodeType){if(n||B===z.nodeName)h[q++]=z;break}break;case "~":for(;z=f[v++];)for(;z=z.nextSibling;)if(1===z.nodeType&&(n||B===z.nodeName))if(K=b.getUid(z),x[K])break;else x[K]=
h[q++]=z;h=b.unique(h)}else if(z=m.match(w))m=RegExp.rightContext,h=p(z[1].replace(y,""),f,u);if(m){h=M.filter(m,h,f,g,u);m=h[0];h=h[1];h||(C=!0,h=p("*",f,u));if(m.match(t))return m=RegExp.rightContext,D(h,e),M(m,k,e,[],u,!0,C);f=h}}if(A){if(h.length)return D(h,e,A)}else if(c!==g||O&&C){e=[];for(v=q=0;z=h[v++];)1===z.nodeType&&(e[q++]=z);return e}return h},va=b.oneObject("eq,gt,lt,first,last,even,odd");b.mix(M,{getAttribute:!A?function(b,c){return b.getAttribute(c)||""}:function(b,c,d){if(d)return b.getAttribute(c)||
"";c=c.toLowerCase();if(k[c])return b.getAttribute(c,2)||"";if("style"===c)return b.style.cssText.toLowerCase();if("INPUT"===b.tagName&&"type"==c)return b.getAttribute("type")||b.type;d=m[c]?b.getAttribute(c)?c:"":(b=b.getAttributeNode(c))&&b.value||"";return E.test(c)?d:d.toLowerCase()},hasAttribute:!C?function(b,c,m){return m?!!b.getAttribute(c):b.hasAttribute(c)}:function(b,c){c=c.toLowerCase();b=b.getAttributeNode(c);return!(!b||!b.specified&&!b.nodeValue)},filter:function(c,m,d,k,f,A){for(var C=
N,D=h,g,n,l;g=c.match(B);){c=RegExp.rightContext;n=(g[2]||"").replace(y,"");if(!m){if(1===d.length&&d[0]===k)switch(g[1]){case "#":if(!f){l=k.getElementById(n);if(!l){m=[];continue}if(L?l.id===n:l.getAttributeNode("id").nodeValue===n){m=[l];continue}}break;case ":":switch(n){case "root":m=[k.documentElement];continue;case "link":m=C(k.links||[]);continue}}m=p("*",d,f)}var x=0,O=!1,t;switch(g[1]){case "#":x=["id","=",n];break;case ".":x=["class","~=",n];break;case ":":l=M.pseudoHooks[n];if(g=c.match(v))c=
RegExp.rightContext,t=~n.indexOf("nth")?D[g[1]]||D(g[1]):g[3]||g[2]||g[1];if(l)x=l;else if("not"===n)if(O=!0,"*"===t)m=[];else if(w.test(t)){l=[];g=f?t:t.toUpperCase();for(var q=0,H=0,I;I=m[q++];)g!==I.nodeName&&(l[H++]=I);m=l}else l=M.filter(t,m,d,k,f,!0),x=l.filter,t=l.args;else b.error('An invalid or illegal string was specified : "'+n+'"!');break;default:if(x=[n.toLowerCase()],g=c.match(S))c=RegExp.rightContext,g[1]&&(x[1]=g[1],x[2]=g[3]||g[4],x[2]=x[2]?x[2].replace(s,e).replace(y,""):"")}if(A)return{filter:x,
args:t};if(m.length&&x){l=[];H=q=0;if("function"===typeof x)if(va[n])for(t=void 0===t?m.length-1:~~t;I=m[q];)x(q++,t)^O&&(l[H++]=I);else for(;I=m[q++];)!!x(I,t)^O&&(l[H++]=I);else if("function"===typeof x.exec)l=x.exec({not:O,xml:f},m,t,k);else{n=x[0];g=u[x[1]];var x=x[2]||"",K,r;if(!f&&"class"===n&&4===g)for(x=" "+x+" ";I=m[q++];)n=I.className,!!(n&&-1<(" "+n+" ").indexOf(x))^O&&(l[H++]=I);else{!f&&(g&&x&&!E.test(n))&&(x=x.toLowerCase());for(4===g&&(x=" "+x+" ");I=m[q++];){if(g)if(""===x&&3<g)K=
!1;else switch(r=M.getAttribute(I,n,f),g){case 1:K=r===x;break;case 2:K=r!==x;break;case 3:K=r===x||r.substr(0,x.length+1)===x+"-";break;case 4:K=r&&0<=(" "+r+" ").indexOf(x);break;case 5:K=r&&0===r.indexOf(x);break;case 6:K=r&&r.substr(r.length-x.length)===x;break;case 7:K=r&&0<=r.indexOf(x)}else K=M.hasAttribute(I,n,f);K^O&&(l[H++]=I)}}}m=l}}return[c,m]}});var W=function(c,m,k){return{exec:function(d,e,f){var u=[];d=d.not;var A={},g={},C=f.a;f=f.b;var D=0,x=0,n,l;if(!k&&1===C&&0===f)return d?[]:
e;for(var N=k?"nodeName":"nodeType";n=e[D++];){var L=n.parentNode,h=b.getUid(L);if(!g[h]){l=g[h]=1;for(var O=k?n.nodeName:1,L=L[c];L;L=L[m])L[N]===O&&(h=b.getUid(L),A[h]=l++)}l=A[b.getUid(n)]-f;l=0===C?0===l:0===l%C&&0<=l/C;l^d&&(u[x++]=n)}return u}}};M.pseudoHooks={root:function(b){return b===(b.ownerDocument||b.document).documentElement},target:{exec:function(b,c,m,k){m=[];b=b.not;k=(k.defaultView||k.parentWindow).location.hash.slice(1);for(var d=0,f=0,e;e=c[d++];)if((e.id||e.name)===k^b)m[f++]=
e;return m}},"first-child":q("child",!1,!1),"last-child":q("child",!0,!1),"only-child":q("child",!0,!0),"first-of-type":q("type",!1,!1),"last-of-type":q("type",!0,!1),"only-of-type":q("type",!0,!0),"nth-child":W("firstChild","nextSibling",!1),"nth-last-child":W("lastChild","previousSibling",!1),"nth-of-type":W("firstChild","nextSibling",!0),"nth-last-of-type":W("lastChild","previousSibling",!0),empty:function(b){for(b=b.firstChild;b;b=b.nextSibling)if("@"<b.nodeName||3===b.nodeType||4===b.nodeType)return!1;
return!0},link:{exec:function(c,m){var k=(m[0].ownerDocument||m[0].document).links;if(!k)return[];for(var d=[],e={},f=c.not,u=0,A=0,g;g=k[u++];)e[b.getUid(g)]=1;for(u=0;g=m[u++];)e[b.getUid(g)]^f&&(d[A++]=g);return d}},lang:{exec:function(b,c,m){var k=[];m=RegExp("^"+m,"i");b=b.not;for(var d=0,e=0,f;f=c[d++];){for(var u=f;u&&!u.getAttribute("lang");)u=u.parentNode;u=!(!u||!m.test(u.getAttribute("lang")));u^b&&(k[e++]=f)}return k}},active:function(b){return b===b.ownerDocument.activeElement},focus:function(b){return(b.type||
b.href)&&b===b.ownerDocument.activeElement},indeterminate:function(b){return!0===b.indeterminate&&"checkbox"===b.type},enabled:f("disabled",!1),disabled:f("disabled",!0),checked:f("checked",!0),contains:{exec:function(c,m,k){var d=[],f=c.xml?b.getText:K;c=c.not;for(var e=0,u=0,A;A=m[e++];)!!~f([A]).indexOf(k)^c&&(d[u++]=A);return d}},selected:function(b){b.parentNode&&b.parentNode.selectedIndex;return!0===b.selected},header:function(b){return/h\d/i.test(b.nodeName)},button:function(b){return"button"===
b.type||"BUTTON"===b.nodeName},input:function(b){return/input|select|textarea|button/i.test(b.nodeName)},parent:function(b){return!!b.firstChild},has:function(c,m){return!!b.query(m,[c]).length},first:function(b){return 0===b},last:function(b,c){return b===c},even:function(b){return 0===b%2},odd:function(b){return 1===b%2},lt:function(b,c){return b<c},gt:function(b,c){return b>c},eq:function(b,c){return b===c},hidden:function(b){return 0>=b.offsetWidth||0>=b.offsetHeight||"none"==(b.currentStyle||
{}).display}};M.pseudoHooks.visible=function(b){return!M.pseudoHooks.hidden(b)};"text,radio,checkbox,file,password,submit,image,reset".replace(b.rword,function(b){M.pseudoHooks[b]=function(c){return(c.getAttribute("type")||c.type)===b}});return M});J("css",this.getComputedStyle?["node"]:["css_fix"],function(b){function g(b,c){if(b&&1===b.nodeType&&0>=b.offsetWidth){if("none"===t(b,"display")){var d={node:b},f;for(f in H)d[f]=b.style[f],b.style[f]=H[f];c.push(d)}g(b.parentNode,c)}}function e(b,c,d,
f){c=l[c];var k=I(b);c.forEach(function(c){1>f&&(d-=parseFloat(k["padding"+c])||0);2>f&&(d-=parseFloat(k["border"+c+"Width"])||0);3===f&&(d+=parseFloat(t(b,"margin"+c,k))||0);"padding-box"===f&&(d+=parseFloat(k["padding"+c])||0);"border-box"===f&&(d+=parseFloat(k["padding"+c])||0,d+=parseFloat(k["border"+c+"Width"])||0)});return d}function h(b,c,d){var f=[];g(b,f);d=e(b,c,b["offset"+c],d);for(var k=0,m;m=f[k++];)for(c in b=m.node,m)"string"===typeof m[c]&&(b.style[c]=m[c]);return d}function p(c,d){for(var f,
e=[],k=[],m=0,A=c.length;m<A;m++)f=c[m],f.style&&(e[m]=b._data(f,"olddisplay"),k[m]=b.isHidden(f),e[m]||(e[m]=k[m]?b.parseDisplay(f.nodeName):t(f,"display"),b._data(f,"olddisplay",e[m])));for(m=0;m<A;m++)f=c[m],f.style&&(d=-1===d?!k[m]:d,f.style.display=d?e[m]:"none");return c}function r(c){return b.type(c,"Window")?c:9===c.nodeType?c.defaultView||c.parentWindow:!1}var q=b.cssHooks||(b.cssHooks={}),f=/^([\-+])=([\-+.\de]+)/,n=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,c=b.cssName("transform"),d=b.cssName("box-sizing"),
l={Width:["Left","Right"],Height:["Top","Bottom"]},H={position:"absolute",visibility:"hidden",display:"block"};b.cssNumber=b.oneObject("columnCount,fillOpacity,fontSizeAdjust,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom,rotate");window.getComputedStyle&&(b.getStyles=function(b){return window.getComputedStyle(b,null)},q["_default:get"]=function(c,d,f){var e,k;if(f=f||I(c)){e="filter"===d?f.getPropertyValue(d):f[d];var m=c.style;""===e&&!b.contains(c.ownerDocument,c)&&(e=m[d]);/^margin/.test(d)&&
n.test(e)&&(c=m.width,d=m.minWidth,k=m.maxWidth,m.minWidth=m.maxWidth=m.width=e,e=f.width,m.width=c,m.minWidth=d,m.maxWidth=k)}return e});var I=b.getStyles,t=q["_default:get"];delete b.getStyles;q["_default:set"]=function(b,c,d){b.style[c]=d};q["zIndex:get"]=function(b){for(;9!==b.nodeType;){if("static"!==(t(b,"position")||"static")){var c=parseInt(t(b,"zIndex"),10);if(!isNaN(c)&&0!==c)return c}b=b.parentNode}return 0};q["rotate:get"]=function(c){return b._data(c,"rotate")||0};c&&(q["rotate:set"]=
function(d,f,e){b._data(d,"rotate",e);d.style[c]="rotate("+e*Math.PI/180+"rad)"});q["boxSizing:get"]=function(b,c){return d?t(b,c):"BackCompat"===document.compatMode?"border-box":"content-box"};b.css=function(c,d,e,g){if(c.style){var k=/\_/.test(d)?b.String.camelize(d):d;d=b.cssName(k)||k;g=g||I(c);if(void 0===e)return(q[k+":get"]||t)(c,d,g);var m=typeof e,A;if("string"===m&&(A=f.exec(e)))e=+(A[1]+1)*+A[2]+parseFloat(b.css(c,d,void 0,g)),m="number";if("number"!==m||isFinite(e+""))"number"===m&&!b.cssNumber[k]&&
(e+="px"),""===e&&(!b.support.cloneBackgroundStyle&&0===d.indexOf("background"))&&(c.style[d]="inherit"),(q[k+":set"]||q["_default:set"])(c,d,e,g)}};b.fn.css=function(c,d){return b.access(this,b.css,c,arguments)};"Height,Width".replace(b.rword,function(c){var d=c.toLowerCase(),f="client"+c,g="scroll"+c,k="offset"+c;b.cssHooks[d+":get"]=function(b){return h(b,c,0)+"px"};b.cssHooks[d+":set"]=function(m,d,f){var k=b.css(m,"box-sizing");m.style[d]="content-box"===k?f:e(m,c,parseFloat(f),k)+"px"};"inner_1,b_0,outer_2".replace(b.rmapper,
function(m,e,C){b.fn["b"===e?d:e+c]=function(m){C="outer"===e&&!0===m?3:Number(C);m="boolean"===typeof m?void 0:m;if(void 0===m){var l=this[0];return b.type(l,"Window")?l["inner"+c]||l.document.documentElement[f]:9===l.nodeType?(m=l.documentElement,Math.max(l.body[g],m[g],l.body[k],m[k],m[f])):h(l,c,C)}for(var n=0;l=this[n++];)b.css(l,d,m);return this}})});var B=b.oneObject("a,abbr,b,span,strong,em,font,i,kbd","inline"),v=b.oneObject("div,h1,h2,h3,h4,h5,h6,section,p","block"),s,G,E,y,w;b.applyShadowDOM=
function(c){s||(window.WebKitShadowRoot?(s=new WebKitShadowRoot(b.html),E=document.createElement("div"),s.appendChild(E)):s=document.createElement("iframe"),(E||s).style.cssText="width:0px;height:0px;border:0 none;");1===s.nodeType?(b.html.appendChild(s),w||(G=s.contentDocument||s.contentWindow.document,y=G.defaultView||G.parentWindow,G.write("<!doctype html><html><body>"),G.close(),w=window.VBArray||window.opera),c(y,G,G.body),b.html.removeChild(s)):(c(window,document,E),E.innerHTML="")};b.mix(B,
v);b.parseDisplay=function(c){c=c.toLowerCase();B[c]||b.applyShadowDOM(function(b,d,f,k){d=d.createElement(c);f.appendChild(d);k=b.getComputedStyle?b.getComputedStyle(d,null).display:d.currentStyle.display;B[c]=k});return B[c]};b.isHidden=function(c){return 0===c.sourceIndex||"none"===t(c,"display")||!b.contains(c.ownerDocument,c)};b.fn.show=function(){return p(this,1)};b.fn.hide=function(){return p(this,0)};b.fn.toggle=function(b){return p(this,"boolean"===typeof b?b:-1)};b.fn.offset=function(c){if(arguments.length)return!c||
!isFinite(c.top)&&!isFinite(c.left)?this:this.each(function(){if(this&&1===this.nodeType){var m=t(this,"position");"static"===m&&(this.style.position="relative");var d=b(this),f=d.offset(),k=t(this,"top"),e=t(this,"left"),A={},g={};("absolute"===m||"fixed"===m)&&-1<[k,e].indexOf("auto")?(g=d.position(),m=g.top,e=g.left):(m=parseFloat(k)||0,e=parseFloat(e)||0);parseFloat(c.top)&&(A.top=c.top-f.top+m);parseFloat(c.left)&&(A.left=c.left-f.left+e);d.css(A)}});var d=this[0],f=d&&d.ownerDocument,e={left:0,
top:0};if(!f)return e;var d=d.getBoundingClientRect(),k=r(f),f=navigator.vendor||"BackCompat"===f.compatMode?f.body:f.documentElement,m=f.clientLeft>>0,A=k.pageXOffset||f.scrollLeft;e.top=d.top+(k.pageYOffset||f.scrollTop)-(f.clientTop>>0);e.left=d.left+A-m;return e};b.fn.position=function(){var b,c=this[0],d={top:0,left:0};if(c&&1===c.nodeType){if("fixed"===t(c,"position"))b=c.getBoundingClientRect();else{b=this.offset();var f=this.offsetParent();"HTML"!==f[0].tagName&&(d=f.offset());f=I(f[0]);d.top+=
parseFloat(f.borderTopWidth)||0;d.left+=parseFloat(f.borderLeftWidth)||0}return{top:b.top-d.top-parseFloat(t(c,"marginTop",f))||0,left:b.left-d.left-parseFloat(t(c,"marginLeft",f))||0}}};b.fn.offsetParent=function(){return this.map(function(){for(var b=this.offsetParent;b&&9!==b.parentNode.nodeType&&"static"===t(b,"position");)b=b.offsetParent;return b||document.documentElement})};b.fn.scrollParent=function(){var c,d=t(this[0],"position");c=window.VBArray&&/(static|relative)/.test(d)||/absolute/.test(d)?
this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t(this,"position"))&&/(auto|scroll)/.test(t(this,"overflow")+b.css(this,"overflow-y")+b.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t(this,"overflow")+b.css(this,"overflow-y")+b.css(this,"overflow-x"))}).eq(0);return/fixed/.test(d)||!c.length?b(document):c};"scrollLeft_pageXOffset,scrollTop_pageYOffset".replace(b.rmapper,function(c,d,f){b.fn[d]=function(c){var k,m,e="scrollTop"===
d;return void 0===c?(k=this[0],!k?null:(m=r(k))?f in m?m[f]:m.document.documentElement[d]:k[d]):this.each(function(){(m=r(this))?m.scrollTo(!e?c:b(m).scrollLeft(),e?c:b(m).scrollTop()):this[d]=c})}});return b});J("attr",this.getComputedStyle?["node"]:["attr_fix"],function(b){function g(b,d){var e=b.tagName+":"+d;return e in f?f[e]:f[e]=document.createElement(b.tagName)[d]}function e(b){var d=b.tagName.toLowerCase();return"input"===d&&/checkbox|radio/.test(b.type)?"checked":d}var h=/\r/g,p=/^(a|area|button|input|object|select|textarea)$/i,
r=/\S+/g,q=b.support,f={};b.fn.extend({addClass:function(b){if("string"==typeof b)for(var d=0,f;f=this[d++];)if(1===f.nodeType)if(f.className){var e=(f.className+" "+b).match(r);e.sort();for(var g=e.length-1;0<g;--g)e[g]===e[g-1]&&e.splice(g,1);f.className=e.join(" ")}else f.className=b;return this},removeClass:function(b){if(b&&"string"===typeof b||void 0===b)for(var d=(b||"").match(r),f=d.length,e=0,g;g=this[e++];)if(1===g.nodeType&&g.className)if(b){for(var n=" "+g.className.match(r).join(" ")+
" ",h=0;h<f;h++)n=n.replace(" "+d[h]+" "," ");g.className=n.slice(1,n.length-1)}else g.className="";return this},hasClass:function(c,d){var f=RegExp("(\\s|^)"+c+"(\\s|$)");return b.slice(this)[!0===d?"every":"some"](function(b){return(b.className||"").match(f)})},toggleClass:function(c,d){var f=typeof c,e="string"===f&&c.match(r)||[],g,n,h="boolean"===typeof d;return this.each(function(p){n=0;if(1===p.nodeType){var q=b(p),r=d;if("string"===f)for(;g=e[n++];)r=h?r:!q.hasClass(g),q[r?"addClass":"removeClass"](g);
else if("undefined"===f||"boolean"===f)p.className&&b._data(p,"__className__",p.className),p.className=p.className||!1===c?"":b._data(p,"__className__")||""}})},replaceClass:function(b,d){for(var f=0,e;e=this[f++];)if(1===e.nodeType&&e.className){for(var g=e.className.match(r),n=[],h=0;h<g.length;h++)n.push(g[h]===b?d:g[h]);e.className=n.join(" ")}return this},val:function(c){var d=n["option:get"];arguments.length&&(c=Array.isArray(c)?c.map(function(b){return null==b?"":b+""}):isFinite(c)?c+"":c||
"");return b.access(this,function(f){if(this===b)return f=(n[e(f)+":get"]||b.propHooks["@default:get"])(f,"value",d),"string"===typeof f?f.replace(h,""):null==f?"":f;1===f.nodeType&&(n[e(f)+":set"]||b.propHooks["@default:set"])(f,"value",c,d)},0,arguments)}});b.mix({fixDefault:b.noop,propMap:{"accept-charset":"acceptCharset","char":"ch",charoff:"chOff","class":"className","for":"htmlFor","http-equiv":"httpEquiv"},prop:function(c,d,f){if(b["@bind"]in c){1===c.nodeType&&!b.isXML(c)&&(d=b.propMap[d.toLowerCase()]||
d);var e=void 0===f?"get":"set";return(b.propHooks[d+":"+e]||b.propHooks["@default:"+e])(c,d,f)}},attr:function(c,d,f){if(b["@bind"]in c){if("undefined"===typeof c.getAttribute)return b.prop(c,d,f);var e=!b.isXML(c),n="@w3c";if(e){d=d.toLowerCase();var h=b.propMap[d]||d;q.attrInnateName||(n="@ie");var p="boolean"===typeof c[h]&&"boolean"===typeof g(c,h)}if(e){if(null===f||!1===f&&p)return b.removeAttr(c,d)}else if(null===f)return c.removeAttribute(d);var r=void 0===f?"get":"set";p&&(n="@bool",d=h);
return(e&&b.attrHooks[d+":"+r]||b.attrHooks[n+":"+r])(c,d,f)}},removeProp:function(c,d){1===c.nodeType?(q.attrInnateName||(d=b.propMap[d.toLowerCase()]||d),c[d]=g(c,d)):c[d]=void 0},removeAttr:function(c,d){d&&1===c.nodeType&&(d=d.toLowerCase(),q.attrInnateName||(d=b.propMap[d]||d),"boolean"!==typeof c[d]&&c.setAttribute(d,""),c.removeAttribute(d),!0===c[d]&&(c[d]=!1,b.fixDefault(c,d,!1)))},propHooks:{"@default:get":function(b,d){return b[d]},"@default:set":function(b,d,f){b[d]=f},"tabIndex:get":function(b){var d=
b.tabIndex;0===d&&(d=p.test(b.nodeName)?0:-1);return d}},attrHooks:{"@w3c:get":function(b,d){var f=b.getAttribute(d);return null==f?void 0:f},"@w3c:set":function(b,d,f){b.setAttribute(d,""+f)},"@bool:get":function(b,d){return b[d]?d.toLowerCase():void 0},"@bool:set":function(c,d){c.setAttribute(d,d.toLowerCase());c[d]=!0;b.fixDefault(c,d,!0)}}});"Attr,Prop".replace(b.rword,function(c){b.fn[c.toLowerCase()]=function(d,f){return b.access(this,b[c.toLowerCase()],d,arguments)};b.fn["remove"+c]=function(d){return this.each(function(){b["remove"+
c](this,d)})}});"accessKey,allowTransparency,bgColor,cellPadding,cellSpacing,codeBase,codeType,colSpan,contentEditable,dateTime,defaultChecked,defaultSelected,defaultValue,frameBorder,isMap,longDesc,maxLength,marginWidth,marginHeight,noHref,noResize,noShade,readOnly,rowSpan,tabIndex,useMap,vSpace,valueType,vAlign".replace(b.rword,function(c){b.propMap[c.toLowerCase()]=c});q.optSelected||(b.propHooks["selected:get"]=function(b){for(var d=b;"number"!==typeof d.selectedIndex;d=d.parentNode);return b.selected});
var n={"option:get":function(b){var d=b.attributes.value;return!d||d.specified?b.value:b.text},"select:get":function(b,d,f){for(var e=b.options,g=b.selectedIndex,n=(b="select-one"===b.type||0>g)?null:[],h=b?g+1:e.length,p=0>g?h:b?g:0;p<h;p++)if(d=e[p],(d.selected||p===g)&&!(q.optDisabled?d.disabled:/ disabled=/.test(d.outerHTML.replace(d.innerHTML,"")))){d=f(d);if(b)return d;n.push(d)}return n},"select:set":function(b,d,f,e){f=[].concat(f);d=0;for(var g;g=b.options[d++];)g.selected=!!~f.indexOf(e(g));
f.length||(b.selectedIndex=-1)}};q.checkOn||(n["checked:get"]=function(b){return null===b.getAttribute("value")?"on":b.value});n["checked:set"]=function(b,d,f){if(Array.isArray(f))return b.checked=!!~f.indexOf(b.value)};"function"===typeof b.fixIEAttr&&b.fixIEAttr(n,b.attrHooks);return b});J("event",window.dispatchEvent?["node"]:["event_fix"],function(b){function g(f,e){if(!(this instanceof b.Event))return new g(f,e);this.originalEvent={};f&&f.type?(this.originalEvent=f,this.type=f.type):this.type=
f;this.defaultPrevented=!1;e&&b.mix(this,e);this.timeStamp=new Date-0}var e=b.event||(b.event={special:{},fixMouse:function(b,e){if("mousewheel"===b.type)if("wheelDelta"in e){var c=e.wheelDelta;window.opera&&10>opera.version()&&(c=-c);b.wheelDelta=Math.round(c)}else"detail"in e&&(b.wheelDelta=40*-e.detail)}}),h=e.special,p=/^(?:focusinfocus|focusoutblur)$/,r=/^([^.]*)(?:\.(.+)|)$/;b.eventMap=b.oneObject("contextmenu,click,dblclick,mouseout,mouseover,mouseenter,mouseleave,mousemove,mousedown,mouseup,mousewheel,",
"Mouse");b.eventSupport=function(f,e){e=e||b.html;f="on"+f;var c=f in e;e.setAttribute&&!c&&(e.setAttribute(f,""),c="function"===typeof e[f],e.removeAttribute(f));return c};g.prototype={toString:function(){return"[object Event]"},preventDefault:function(){this.defaultPrevented=!0;var b=this.originalEvent;b&&b.preventDefault&&b.preventDefault();b.returnValue=!1;return this},stopPropagation:function(){var b=this.originalEvent;b&&b.stopPropagation&&b.stopPropagation();b.cancelBubble=this.propagationStopped=
!0;return this},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=!0;this.stopPropagation();return this}};b.Event=g;b.mix(h,{load:{noBubble:!0},click:{trigger:function(){if("INPUT"===this.nodeName&&"checkbox"===this.type&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==document.activeElement&&this.focus)try{return this.focus(),!1}catch(b){}},delegateType:"focusin"},blur:{trigger:function(){if(this===document.activeElement&&this.blur)return this.blur(),
!1},delegateType:"focusout"},beforeunload:{postDispatch:function(b){void 0!==b.result&&(b.originalEvent.returnValue=b.result)}}});b.mix(e,{add:function(f,g){var c=b._data(f),d=g.type,l=g.selector,p=g.handler;if(!(3===f.nodeType||8===f.nodeType||!d||!p)){g.uniqueNumber=b.getUid(p);var q=c.events||(c.events=[]),t=c.handle;t||(c.handle=t=function(c){return"undefined"!==typeof b&&(!c||e.triggered!==c.type)?e.dispatch.apply(t.elem,arguments):void 0},t.elem=f);d.replace(b.rword,function(c){var d=r.exec(c)||
[];c=d[1];var p=(d[2]||"").split(".").sort(),s=h[c]||{};c=(l?s.delegateType:s.bindType)||c;var s=h[c]||{},d=b.mix({},g,{type:c,origType:d[1],namespace:p.join(".")}),H=q[c];H||(H=q[c]=[],H.delegateCount=0,(!s.setup||!1===s.setup.call(f,p,t))&&b["@bind"]in f&&b.bind(f,c,t));s.add&&s.add.call(f,d);l?H.splice(H.delegateCount++,0,d):H.push(d);e.global[c]=!0});f=null}},global:{},remove:function(f,g){var c=b._data(f),d,l;if(d=c.events){var p=g.selector,q=g.handler;(g.type||"").replace(b.rword,function(t){var s=
r.exec(t)||[],v=l=s[1],s=s[2];if(v){t=h[v]||{};for(var v=(p?t.delegateType:t.bindType)||v,S=d[v]||[],w=S.length,s=s?RegExp("(^|\\.)"+s.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,E=0,y;E<S.length;E++)if(y=S[E],l===y.origType&&(!q||q.uniqueNumber===y.uniqueNumber)&&(!s||s.test(y.namespace))&&(!p||p===y.selector||"**"===p&&y.selector))S.splice(E--,1),y.selector&&S.delegateCount--,t.remove&&t.remove.call(f,y);0===S.length&&w!==S.length&&((!t.teardown||!1===t.teardown.call(f,s,c.handle))&&
b["@bind"]in f&&b.unbind(f,v,c.handle),delete d[v])}else for(v in d)e.unbind(f,b.mix({},g,{type:v+t}))});b.isEmptyObject(d)&&(delete c.handle,b._removeData(f,"events"))}},trigger:function(f){if(!this||!(3===this.nodeType||8===this.nodeType)){var g=b.hasOwn(f,"type")?f.type:f,c=b.hasOwn(f,"namespace")?f.namespace.split("."):[],d,l,q,r;if(!p.test(g+e.triggered)&&(0<=g.indexOf(".")&&(c=g.split("."),g=c.shift(),c.sort()),this||e.global[g])){f="object"===typeof f?f.originalEvent?f:new b.Event(g,f):new b.Event(g);
f.type=g;f.isTrigger=!0;f.namespace=c.join(".");f.namespace_re=f.namespace?RegExp("(^|\\.)"+c.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;l=0>g.indexOf(":")?"on"+g:"";f.result=void 0;f.target||(f.target=this);var t=b.slice(arguments);t[0]=f;var s=h[g]||{};if(!(s.trigger&&!1===s.trigger.apply(this,t))){r=[[this,s.bindType||g]];if(!s.noBubble&&!b.type(this,"Window")){q=s.delegateType||g;c=p.test(q+g)?this:this.parentNode;for(d=this;c;c=c.parentNode)r.push([c,q]),d=c;if(d===(this.ownerDocument||document))r.push([d.defaultView||
d.parentWindow||window,q])}for(d=0;d<r.length&&!f.propagationStopped;d++)c=r[d][0],f.type=r[d][1],(q=(b._data(c,"events")||{})[f.type]&&b._data(c,"handle"))&&q.apply(c,t),(q=l&&c[l])&&(q.apply&&!1===q.apply(c,t))&&f.preventDefault();f.type=g;if(!f.defaultPrevented&&(!s._default||!1===s._default.apply(this.ownerDocument,t))&&!("click"===g&&"A"==this.nodeName)&&l&&b.isFunction(this[g])&&this.nodeType){(d=this[l])&&(this[l]=null);e.triggered=g;try{this[g]()}catch(v){}delete e.triggered;d&&(this[l]=d)}return f.result}}}},
dispatch:function(f){var g=f.type,c=(b._data(this,"events")||{})[g]||[];if(c.length){var d=b.event.fix(f),l=c.delegateCount,p=b.slice(arguments),q=h[g]||{},r=[],s,v,w,G;p[0]=d;d.delegateTarget=this;if(!(q.preDispatch&&!1===q.preDispatch.call(this,d))){if(l&&!(d.button&&"click"===g))for(var E=d.target;E!=this;E=E.parentNode||this)if(!0!==E.disabled||"click"!==g){s={};v=[];for(var y=0;y<l;y++)w=c[y],G=w.selector+" ",void 0===s[G]&&(s[G]=0<=b(G,this).index(E)),s[G]&&v.push(w);v.length&&r.push({elem:E,
matches:v})}c.length>l&&r.push({elem:this,matches:c.slice(l)});for(y=0;y<r.length&&!d.propagationStopped;y++){c=r[y];d.currentTarget=c.elem;for(l=0;l<c.matches.length&&!d.isImmediatePropagationStopped;l++)if(w=c.matches[l],!d.namespace||d.namespace_re&&d.namespace_re.test(w.namespace))d.handleObj=w,g=((h[w.origType]||{}).handle||w.handler).apply(c.elem,p),w.times--,0===w.times&&e.unbind(c.elem,w),void 0!==g&&(d.result=g,!1===g&&(d.preventDefault(),d.stopPropagation()))}q.postDispatch&&q.postDispatch.call(this,
d);return d.result}}},fix:function(f){if(!f.originalEvent){var g=f;f=b.Event(g);for(var c in g)c in f||(f[c]=g[c]);f.target||(f.target=f.srcElement||document);3===f.target.nodeType&&(f.target=f.target.parentNode);f.metaKey=!!f.ctrlKey;c=e["fix"+b.eventMap[f.type]];"function"==typeof c&&c(f,g)}return f}});e.bind=e.add;e.unbind=e.remove;b.fn.extend({hover:function(b,e){return this.mouseenter(b).mouseleave(e||b)},delegate:function(b,e,c,d){return this.on(e,b,c,d)},live:function(f,e,c){b.log("$.fn.live() is deprecated");
b(this.ownerDocument).on(f,this.selector,e,c);return this},one:function(b,e){return this.on(b,e,1)},undelegate:function(b,e,c){return 1==arguments.length?this.off(b,"**"):this.off(e,c,b)},die:function(e,g){b.log("$.fn.die() is deprecated");b(this.ownerDocument).off(e,g,this.selector||"**",g);return this},fire:function(){var b=arguments;return this.each(function(){e.trigger.apply(this,b)})}});b.fn.trigger=b.fn.fire;"on_bind,off_unbind".replace(b.rmapper,function(f,g,c){b.fn[g]=function(d,f,h){if("object"===
typeof d){for(var p in d)b.fn[g](this,p,f,d[p],h);return this}var q={};for(p=0;p<arguments.length;p++){var r=arguments[p];switch(typeof r){case "number":q.times=r;break;case "function":q.handler=r;break;case "object":b.mix(q,r,!1);break;case "string":"type"in q?q.selector=r.trim():q.type=r.trim()}}q.type||b.error("\u5fc5\u987b\u6307\u660e\u4e8b\u4ef6\u7c7b\u578b");"on"===g&&!q.handler&&b.error("\u5fc5\u987b\u6307\u660e\u4e8b\u4ef6\u56de\u8c03");q.times=0<q.times?q.times:Infinity;return this.each(function(){e[c](this,
q)})};b.fn[c]=function(){return b.fn[g].apply(this,arguments)}});"contextmenu,click,dblclick,mouseout,mouseover,mouseenter,mouseleave,mousemove,mousedown,mouseup,mousewheel,,keypress,keydown,keyup,blur,focus,focusin,focusout,abort,error,load,unload,resize,scroll,change,input,select,reset,submit".replace(b.rword,function(e){b.eventMap[e]=b.eventMap[e]||(/key/.test(e)?"Keyboard":"HTML");b.fn[e]=function(b){return b?this.bind(e,b):this.fire(e)}});(!+"\v1"||!b.eventSupport("mouseenter"))&&"mouseenter_mouseover,mouseleave_mouseout".replace(b.rmapper,
function(e,g,c){h[g]={delegateType:c,bindType:c,handle:function(d){var e,f=d.relatedTarget,g=d.handleObj;if(!f||f!==this&&!b.contains(this,f))d.type=g.origType,e=g.handler.apply(this,arguments),d.type=c;return e}}});b.support.focusin||"focusin_focus,focusout_blur".replace(b.rmapper,function(f,g,c){var d=0,l=function(c){c=e.fix(c);b.mix(c,{type:g,isSimulated:!0});e.trigger.call(c.target,c)};h[g]={setup:function(){0===d++&&document.addEventListener(c,l,!0)},teardown:function(){0===--d&&document.removeEventListener(c,
l,!0)}}});try{document.createEvent("MouseScrollEvents"),h.mousewheel={bindType:"DOMMouseScroll",delegateType:"DOMMouseScroll"},b.eventSupport("mousewheel")&&delete h.mousewheel}catch(q){}return b});J("fx",["css"],function(b){function g(c){if(c.queue){for(var d=1,f=B.length,h;h=B[--f];)if(h.node===c.node){h.positive.push(c);d=0;break}d&&B.unshift(c)}else B.push(c);null===g.id&&(g.id=setInterval(e,1E3/b.fps))}function e(){for(var c=B.length;0<=--c;){var d;if(d=B[c].node)a:{d=B[c];var e=c,h=d.node,k=
+new Date;if(d.startTime){for(var k=(k-d.startTime)/d.duration,m=d.gotoEnd||1<=k,A=v.updateHooks,C=0,l=void 0;l=d.props[C++];)(A[l.type]||A._default)(h,k,m,l);if(m){if("hide"===d.method)for(C in d.orig)b.css(h,C,d.orig[C]);n(d,h,"after");n(d,h,"complete");d.revert&&d.negative.length&&(Array.prototype.unshift.apply(d.positive,d.negative.reverse()),d.negative=[]);h=d.positive.shift();if(!h){d=!1;break a}B[e]=h;h.positive=d.positive;h.negative=d.negative}else n(d,h,"step")}else n(d,h,"before"),d.props&&
f(d.node,d,e),d.props=d.props||[],F[d.method].call(h,h,d),d.startTime=k;d=!0}d||B.splice(c,1)}B.length||(clearInterval(g.id),g.id=null)}function h(c,d){switch(b.type(d)){case "Object":delete d.props;b.mix(c,d);break;case "Number":c.duration=d;break;case "String":c.easing=d;break;case "Function":c.complete=d}}function p(b){if(isFinite(b))return{duration:b};for(var c={props:b},d=1;d<arguments.length;d++)h(c,arguments[d]);c.duration="number"===typeof c.duration?c.duration:400;c.queue=!!(null==c.queue||
c.queue);c.specialEasing=c.specialEasing||{};return c}function r(c,d,e){for(var f={},k=1;k<e.length;k++)h(f,e[k]);"before,after".replace(b.rword,function(b){f[b]=d[b];delete d[b]});return c.fx(d,f)}function q(c,d){if(!(d in c.style)&&d in c)return c[d];var e=b.css(c,d);return!e||"auto"===e?0:e}function f(c,d,e){var f,k,m,g=[],C=[],h={},l=b.isHidden(c),n=d.specialEasing,p=d.props,r=d.easing;if(!p.length){for(var v in p)if(p.hasOwnProperty(v)){f=p[v];var w=F.type(v),y=q(c,v);if("show"===f||"toggle"===
f&&l)f=b._data(c,"old"+v)||y,d.method="show",y=0,b.css(c,v,0);else if("hide"===f||"toggle"===f)h[v]=b._data(c,"old"+v,y),d.method="hide",f=0;if("color"===w)k=[s(y),s(f)];else if(y=parseFloat(y),k=t.exec(f)){f=parseFloat(k[2]);m=b.cssNumber[v]?0:k[3]||"px";if(k[1]){k=k[1].charAt(0);if(m&&"px"!==m&&("+"===k||"-"===k))b.css(c,v,(f||1)+m),y*=(f||1)/parseFloat(b.css(c,v)),b.css(c,v,y+m);k&&(f=eval(y+k+f))}k=[y,f]}else k=[0,0];y=k[0];f=k[1];y+""!==f+""&&(w={name:v,from:y,to:f,type:w,easing:b.easing[String(n[v]||
r).toLowerCase()]||b.easing.swing,unit:m},g.push(w),C.push(b.mix({},w,{to:y,from:f})))}d.props=g;d.revertProps=C;d.orig=h}if(p.record||p.revert){d.revert=p.revert;c={};for(v in d)c[v]=d[v];c.props=d.revertProps.concat();c.revertProps=d.props.concat();b.timeline[e].negative.push(c)}}function n(b,c,d){b[d]&&b[d].call(c,c,b)}function c(b,c){var d={};G.concat.apply([],G.slice(0,c)).forEach(function(c){d[c]=b;~c.indexOf("margin")&&(v.updateHooks[c]=function(b,d,e,f){d=e?f.to:f.from+f.easing(d)*(f.to-f.from);
b.style[c]=Math.max(d,0)+f.unit})});return d}function d(c,d){var e=b.css(c,"position"),f=b.css(c,"width"),k=b.css(c,"height"),m=b.css(c,"left"),g=b.css(c,"top"),C=b.css(c,"opacity");c.style.position="relative";b.mix(d.props,{width:"*=1.5",height:"*=1.5",opacity:"hide",left:"-="+0.25*parseInt(f),top:"-="+0.25*parseInt(k)});d.after=function(){c.style.position=e;c.style.width=f;c.style.height=k;c.style.left=m;c.style.top=g;b.css(c,"opacity",C)}}function l(c){var d;b.applyShadowDOM(function(b,e,f){b=
f.createTextRange();f.style.color=c;d=b.queryCommandValue("ForeColor")});return[d&255,(d&65280)>>8,(d&16711680)>>16]}function s(b){b=b.toLowerCase();var c=[];if(y[b])return y[b];if(0===b.indexOf("rgb")){var d=b.match(/(\d+%?)/g),e=-1!==d[0].indexOf("%")?2.55:1;return y[b]=[parseInt(d[0])*e,parseInt(d[1])*e,parseInt(d[2])*e]}return"#"===b.charAt(0)?(4===b.length&&(b=b.replace(/([^#])/g,"$1$1")),b.replace(/\w{2}/g,function(b){c.push(parseInt(b,16))}),y[b]=c):window.VBArray?y[b]=l(b):y.white}var w={color:/background$|color/i,
scroll:/scroll/i},t=/^([+\-/*]=)?([\d+.\-]+)([a-z%]*)$/i,B=b.timeline=[];b.easing={linear:function(b){return b},swing:function(b){return-Math.cos(b*Math.PI)/2+0.5}};b.fps=30;g.id=null;var v=b.fn.animate=b.fn.fx=function(c){var d=p.apply(null,arguments);if(c=d.props){var e=d.specialEasing,f,k;for(k in c)f=b.cssName(k)||k,k!==f&&(c[f]=c[k],e[f]=e[k],delete e[k],delete c[k])}for(e=0;f=this[e++];)g(b.mix({positive:[],negative:[],method:"noop",node:f},d,!1));return this};v.updateHooks={_default:function(c,
d,e,f){b.css(c,f.name,(e?f.to:f.from+f.easing(d)*(f.to-f.from))+f.unit)},color:function(b,c,d,e){var f=e.easing(c);c=d?e.to:e.from.map(function(b,c){return Math.max(Math.min(parseInt(b+(e.to[c]-b)*f,10),255),0)});b.style[e.name]="rgb("+c+")"},scroll:function(b,c,d,e){b[e.name]=d?e.to:e.from+e.easing(c)*(e.to-e.from)}};var F={noop:function(){},type:function(b){for(var c in w)if(w[c].test(b))return c;return"_default"},show:function(c,d){if(1===c.nodeType&&b.isHidden(c)){var e=b._data(c,"olddisplay");
if(!e||"none"===e)e=b.parseDisplay(c.nodeName),b._data(c,"olddisplay",e);c.style.display=e;if(("width"in d.props||"height"in d.props)&&"inline"===e&&"none"===b.css(c,"float"))b.support.inlineBlockNeedsLayout?"inline"===e?c.style.display="inline-block":(c.style.display="inline",c.style.zoom=1):c.style.display="inline-block"}},hide:function(c,d){if(1===c.nodeType&&!b.isHidden(c)){var e=b.css(c,"display"),f=c.style;"none"!==e&&!b._data(c,"olddisplay")&&b._data(c,"olddisplay",e);if("width"in d.props||
"height"in d.props)d.overflow=[f.overflow,f.overflowX,f.overflowY],f.overflow="hidden";var k=d.after||b.noop;d.after=function(b,c){k(b,c);c.overflow&&["","X","Y"].forEach(function(b,d){f["overflow"+b]=c.overflow[d]})}}},toggle:function(c){b[b.isHidden(c)?"show":"hide"](c)}};b.fn.delay=function(b){return this.fx(b)};b.fn.stop=function(c,d){var e=parseInt((c?"1":"")+(d?"1":"0"),2);return this.each(function(c){for(var d=0,f;f=B[d];d++)if(f.node===c)switch(e){case 0:f.update=f.step=b.noop;f.revert&&f.negative.shift();
f.gotoEnd=!0;break;case 1:f.gotoEnd=!0;break;case 2:delete f.node;break;case 3:Array.prototype.unshift.apply(f.positive,f.negative.reverse());f.negative=[];for(var g=0;f=f.positive[g++];)f.before=f.after=f.step=b.noop,f.gotoEnd=!0}})};var G=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],E={slideDown:c("show",1),slideUp:c("hide",1),slideToggle:c("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},
fadeToggle:{opacity:"toggle"}};b.each(E,function(c,d){b.fn[d]=function(){return r(this,c,arguments)}});["toggle","show","hide"].forEach(function(d,e){var f=b.fn[d];b.fn[d]=function(b){return!arguments.length||"boolean"===typeof b?f.apply(this,arguments):r(this,c(d,3),arguments)}});b.fn.puff=function(){return r(this,{before:d},arguments)};var y={black:[0,0,0],gray:[128,128,128],white:[255,255,255],orange:[255,165,0],red:[255,0,0],green:[0,128,0],yellow:[255,255,0],blue:[0,0,255]};b.parseColor=s;try{b.query.pseudoHooks.animated=
function(b){for(var c=0,d;d=B[c++];)if(b===d.node)return!0}}catch(J){}return b});J("ajax",["mass","flow"],function(b){function g(c){c=b.Object.merge({},J,c);if(null==c.crossDomain){var d=t.exec(c.url.toLowerCase());c.crossDomain=!(!d||!(d[1]!==B[1]||d[2]!==B[2]||(d[3]||("http:"===d[1]?80:443))!=(B[3]||("http:"===B[1]?80:443))))}c.data&&"string"!==c.data&&(c.data=b.param(c.data));c.url=c.url.replace(/#.*$/,"").replace(/^\/\//,B[1]+"//");c.type=c.type.toUpperCase();c.hasContent=!s.test(c.type);c.hasContent||
(c.data&&(c.url+=(w.test(c.url)?"&":"?")+c.data),!1===c.cache&&(c.url+=(w.test(c.url)?"&":"?")+"_time="+Date.now()));return c}function e(b){var c=typeof b;return null==b||"object"!==c&&"function"!==c}function h(c,d){var e="iframe-upload-"+c.uniqueID,e=b.parseHTML("<iframe id='"+e+"' name='"+e+"' style='position:absolute;left:-9999px;top:-9999px;/>").firstChild;e.transport=d;return(q.body||q.documentElement).insertBefore(e,null)}function p(c,d,e){c=b.unparam(c);var f=[],k,g,h,l,n;for(k in c){h=(g=
Array.isArray(c[k]))?c[k]:[c[k]];for(l=0;l<h.length;l++)n=q.createElement("input"),n.type="hidden",n.name=k+(g&&e?"[]":""),n.value=h[l],d.appendChild(n),f.push(n)}return f}var r=this,q=r.document,f=/%20/g,n=/\r?\n/g,c=encodeURIComponent,d=decodeURIComponent,l=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,s=/^(?:GET|HEAD)$/,w=/\?/,t=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,B=t.exec(q.URL.toLowerCase())||[],v=["XMLHttpRequest","ActiveXObject('Msxml2.XMLHTTP.6.0')","ActiveXObject('Msxml2.XMLHTTP.3.0')","ActiveXObject('Msxml2.XMLHTTP')",
"ActiveXObject('Microsoft.XMLHTTP')"];+"\v1"||(v[0]=8==q.documentMode?"XDomainRequest":"file:"===location.protocol?"!":v[0]);for(var F=0,G;G=v[F++];)try{if(eval("new "+G)){b.xhr=new Function("return new "+G);break}}catch(E){}var y={xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript","*":["*/"]+["*"]},J={type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",
async:!0,jsonp:"callback"};"get,post".replace(b.rword,function(c){b[c]=function(d,e,f,k){b.isFunction(e)&&(k=k||f,f=e,e=void 0);return b.ajax({type:c,url:d,data:e,success:f,dataType:k})}});b.mix(b,{getScript:function(c,d){return b.get(c,null,d,"script")},getJSON:function(c,d,e){return b.get(c,d,e,"jsonp")},upload:function(c,d,e,f,k){b.isFunction(e)&&(k=f,f=e,e=void 0);return b.ajax({url:c,type:"post",dataType:k,form:d,data:e,success:f})},param:function(d,k){if(!b.isPlainObject(d))return"";k="boolean"==
typeof serializeArray?k:!0;var g=[],h,l;for(h in d)if(d.hasOwnProperty(h))if(l=d[h],h=c(h),e(l))g.push(h,"=",c(l+""),"&");else if(Array.isArray(l)&&l.length)for(var n=0,p=l.length;n<p;n++)e(l[n])&&g.push(h,k?c("[]"):"","=",c(l[n]+""),"&");g.pop();return g.join("").replace(f,"+")},unparam:function(c,e){var f={};if(!c||!b.type(c,"String"))return f;c=c.replace(/^[^?=]*\?/ig,"").split("#")[0];for(var k=c.split("&"),g,h,l,n=0,p=k.length;n<p;++n){g=k[n].split("=");h=d(g[0]);try{l=d(g[1]||"")}catch(q){b.log(q+
"decodeURIComponent error : "+g[1],3),l=g[1]||""}h=h.replace(/\[\]$/,"");g=f[h];void 0===g?f[h]=l:Array.isArray(g)?g.push(l):f[h]=[g,l]}return e?f[e]:f},serialize:function(c){var d={};b.filter(c||[],function(b){return b.name&&!b.disabled&&(!0===b.checked||/radio|checkbox/.test(b.type))}).forEach(function(c){var e=b(c).val(),e=Array.isArray(e)?e:[e],e=e.map(function(b){return b.replace(n,"\r\n")});c=d[c.name]||(d[c.name]=[]);c.push.apply(c,e)});return b.param(d,!1)}});var u=new b.Flow,D={},N={text:function(b,
c,d){return void 0!=c?c:"xml"in d?d.xml:(new XMLSerializer).serializeToString(d)},xml:function(c,d,e){return void 0!=e?e:b.parseXML(d)},html:function(c,d,e){return b.parseHTML(d)},json:function(c,d,e){return b.parseJSON(d)},script:function(c,d,e){b.parseJS(d)}},x=b.ajax=function(c){(!c||!c.url)&&b.error("\u53c2\u6570\u5fc5\u987b\u4e3aObject\u5e76\u4e14\u62e5\u6709url\u5c5e\u6027");c=g(c);var d=new b.XHR(c),e=c.dataType;c.form&&1===c.form.nodeType?e="iframe":"jsonp"==e&&(c.crossDomain?(b.log("\u4f7f\u7528script\u53d1\u51faJSONP\u8bf7\u6c42"),
u.fire("start",d,c.url,c.jsonp,c.jsonpCallback),e="script"):e=d.options.dataType="json");var f=new (D[e]||D._default);f.dummyXHR=d;d.transport=f;c.contentType&&d.setRequestHeader("Content-Type",c.contentType);d.setRequestHeader("Accept",y[e]?y[e]+", */*; q=0.01":y["*"]);for(var k in c.headers)d.setRequestHeader(k,c.headers[k]);"complete success error".replace(b.rword,function(b){"function"===typeof c[b]&&(d.addEventListener(b,c[b]),delete c[b])});d.readyState=1;c.async&&0<c.timeout&&(d.timeoutID=
setTimeout(function(){d.abort("timeout")},c.timeout));try{d.state=1,f.request()}catch(h){2>d.status?d.dispatch(-1,h):b.log(h)}return d};x.isLocal=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(B[1]);b.XHR=b.factory({inherit:b.Flow,init:function(c){b.mix(this,{responseData:null,timeoutID:null,responseText:null,responseXML:null,statusText:null,transport:null,responseHeadersString:"",responseHeaders:{},requestHeaders:{},readyState:0,state:0,status:0});this.setOptions("options",c)},
setRequestHeader:function(b,c){this.requestHeaders[b]=c;return this},getAllResponseHeaders:function(){return 2===this.state?this.responseHeadersString:null},getResponseHeader:function(b,c){if(2===this.state){for(;c=l.exec(this.responseHeadersString);)this.responseHeaders[c[1]]=c[2];c=this.responseHeaders[b]}return void 0===c?null:c},overrideMimeType:function(b){this.state||(this.mimeType=b);return this},toString:function(){return"[object XMLHttpRequest]"},abort:function(b){b=b||"abort";this.transport&&
this.transport.respond(0,1);this.dispatch(0,b);return this},dispatch:function(c,d){if(2!=this.state){this.state=2;this.readyState=4;var e="error";if(200<=c&&300>c||304==c)if(304==c)d="notmodified",e="success";else try{var f=this.options.dataType||this.options.mimeType||this.nativeXHR&&this.nativeXHR.responseType;f||(f=this.getResponseHeader("Content-Type")||"",f=f.match(/json|xml|script|html/)||["text"],f=f[0]);this.responseData=N[f](this,this.responseText,this.responseXML);e=d="success";b.log("dummyXHR.dispatch success")}catch(k){b.log("dummyXHR.dispatch parsererror"),
d="parsererror : "+k}else 0>c&&(c=0);this.status=c;this.statusText=d;this.timeoutID&&(clearTimeout(this.timeoutID),delete this.timeoutID);this.fire(e,this.responseData,d);u.fire(e);this.fire("complete",this.responseData,d);u.fire("complete");delete this.transport}}});if(b.xhr){var k=!1;"withCredentials"in new b.xhr&&(k=!0);D._default=b.factory({request:function(){var c=this.dummyXHR,d=c.options,e;b.log("XhrTransport.sending.....");d.crossDomain&&!k&&b.error("\u672c\u6d4f\u89c8\u5668\u4e0d\u652f\u6301crossdomain xhr");
var f=this.nativeXHR=new b.xhr,g=this;d.username?f.open(d.type,d.url,d.async,d.username,d.password):f.open(d.type,d.url,d.async);c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);!d.crossDomain&&!c.requestHeaders["X-Requested-With"]&&(c.requestHeaders["X-Requested-With"]="XMLHttpRequest");try{for(e in c.requestHeaders)f.setRequestHeader(e,c.requestHeaders[e])}catch(h){b.log(" nativeXHR setRequestHeader occur error ")}f.send(d.hasContent&&d.data||null);!d.async||4==f.readyState?this.respond():
null===f.onerror?f.onload=f.onerror=function(b){this.readyState=4;this.status="load"===b.type?200:500;g.respond()}:f.onreadystatechange=function(){g.respond()}},respond:function(c,d){var e=this.nativeXHR,f=this.dummyXHR,k=!1;try{if(d||4==e.readyState)if(k=!0,d)4!==e.readyState&&e.abort();else{var g=e.status,h=e.responseXML;f.responseHeadersString=e.getAllResponseHeaders();h&&h.documentElement&&(f.responseXML=h);f.responseText=e.responseText;try{var l=e.statusText}catch(n){b.log("xhr statustext error : "+
n,3),l=""}!g&&x.isLocal&&!f.options.crossDomain?g=f.responseText?200:404:1223===g&&(g=204);f.dispatch(g,l)}}catch(p){k=!0,b.log(p),d||f.dispatch(-1,p+"")}finally{k&&(e.onerror=e.onload=e.onreadystatechange=b.noop)}}})}D.script=b.factory({request:function(){var c=this,d=c.dummyXHR.options,e=b.head,f=c.script=q.createElement("script");b.log("ScriptTransport.sending.....");d.charset&&(f.charset=d.charset);f.onerror=f[f.uniqueID?"onreadystatechange":"onload"]=function(b){b=b||event;c.respond((b.type||
"error").toLowerCase())};f.src=d.url;e.insertBefore(f,e.firstChild)},respond:function(b,c){var d=this.script,e=this.dummyXHR;if(d&&(c||/loaded|complete|undefined/i.test(d.readyState)||"error"==b)){d.onerror=d.onload=d.onreadystatechange=null;var f=d.parentNode;f&&1===f.nodeType&&(f.removeChild(d),delete this.script);!c&&"error"!=b?e.dispatch(200,"success"):"error"==b&&e.dispatch(500,"scripterror")}}});N.jsonp=function(c){var d=b[c.jsonp];delete b[c.jsonp];return d};u.bind("start",function(c,d,e,f,
k){b.log("jsonp start...");c=q.URL.replace(/(#.+|\W)/g,"");k=d.jsonp=k||"jsonp"+d.uuid().replace(/-/g,"");d.options.url=e+(w.test(e)?"&":"?")+f+"="+c+"."+k;d.options.dataType="jsonp";r[c][k]=function(c){b[k]=c}});D.iframe=b.factory({request:function(){var c=this.dummyXHR,d=c.options,e=d.form;this.backups={target:e.target||"",action:e.action||"",enctype:e.enctype,method:e.method};var f=h(c,this);e.target="iframe-upload-"+c.uniqueID;e.action=d.url;e.method="POST";e.enctype="multipart/form-data";this.fields=
d.data?p(d.data,e):[];this.form=e;b.log("iframe transport...");setTimeout(function(){b(f).bind("load error",this.respond);e.submit()})},respond:function(c){var d=this,e=d.transport;if(e){b.log("transports.iframe respond");var f=e.form,k=c.type;c=e.dummyXHR;d.transport=void 0;if("load"==k){var k=d.contentDocument?d.contentDocument:window.frames[d.id].document,g=d.contentWindow.document;k.XMLDocument?c.responseXML=k.XMLDocument:k.body?(c.responseText=k.body.innerHTML,c.responseXML=g,k.body.firstChild&&
"PRE"==k.body.firstChild.nodeName.toUpperCase()&&(c.responseText=k.body.firstChild.firstChild.nodeValue)):c.responseXML=k;c.dispatch(200,"success")}else"error"==k&&c.dispatch(500,"error");for(var h in e.backups)f[h]=e.backups[h];e.fields.forEach(function(b){b.parentNode.removeChild(b)});b(d).unbind("load",e.respond).unbind("error",e.respond);d.clearAttributes&&d.clearAttributes();setTimeout(function(){d.parentNode.removeChild(d);b.log("iframe.parentNode.removeChild(iframe)")})}}});return b});J("node",
["support","class","query","data"].concat(this.dispatchEvent?[]:"node_fix"),function(b){function g(){for(var b=0,c;b<arguments.length;b++)if(c=arguments[b]){if(c.nodeType)return 9===c.nodeType?c:c.ownerDocument;if(c.setTimeout)return c.document}return document}function e(c,d,e){if(J[c])return J[c];d=d||b.html.style;for(var f=0,g=y.length;f<g;f++)if(e=b.String.camelize(y[f]+c),e in d)return J[c]=e;return null}function h(b,c,d){for(var e=0,f;f=b[e];e++)d(f,e?n(c,!0,!0):c)}function p(b,c,d,e){for(var f=
0,g;g=b[f++];)c.nodeType?e(g,c.cloneNode(!0)):d(g,c)}function r(b,c,d,e){d=d.createDocumentFragment();for(var f=0,g;g=b[f++];){for(var h=e,l=c,p=1<f,q=d.cloneNode(!1),r=!l.item,s=0,t=void 0;t=l[s];r&&s++)q.appendChild(p&&n(t,!0,!0)||t);h(g,q)}}function q(c,d,e,f){var g=b.filter(c,function(b){return 1===b.nodeType}),l=N[d];e.nodeType?h(g,e,l):"string"===typeof e?("replace"!==d&&b.support[G]&&!F.test(e)||(e=b.parseHTML(e,f)),p(g,e,N[d+"2"],l)):e.length&&r(g,e,f,l);return c}function f(c){b._removeData(c);
c.clearAttributes&&c.clearAttributes()}function n(c,d,e){if(1===c.nodeType){var f=b.fixCloneNode(c);if(d&&(b.mergeData(f,c),e)){c=c[E]("*");d=f[E]("*");for(e=0;c[e];e++)b.mergeData(d[e],c[e])}return f}return c.cloneNode(!0)}function c(b){switch(b.nodeType+""){case "1":case "9":return"xml"in b?b.xml:(new XMLSerializer).serializeToString(b);case "3":case "4":return b.nodeValue;default:return""}}function d(c,d,e,f){var g=[];f=!!f;if("string"===typeof d)var h=b.query(d,e),g=b.filter(c,function(b){if(1===
b.nodeType)return-1!==h.indexOf(b)^f});else{if(b.type(d,"Function"))return b.filter(c,function(b,c){return!!d.call(b,b,c)^f});if(d.nodeType)return b.filter(c,function(b){return b===d^f})}return g}function l(c,d,e){for(var f=[],g=0;c=c[d];)if(c&&1===c.nodeType)if(f[g++]=c,!0===e)break;else if("string"===typeof e&&b.match(c,e)){f.pop();break}return f}var s=/^[a-zA-Z]+$/,w=/<([\w:]+)/,t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,B=b.support.noscope?/(<(?:script|link|style|meta|noscript))/ig:
/[^\d\D]/,v=b.oneObject("text/javascript","text/ecmascript","application/ecmascript","application/javascript","text/vbscript"),F=/<(?:tb|td|tf|th|tr|col|opt|leg|cap|area)/,G="insertAdjacentHTML",E="getElementsByTagName";b.fixCloneNode=b.fixCloneNode||function(b){return b.cloneNode(!0)};b.fixParseHTML=b.fixParseHTML||b.noop;b.fn=b.prototype;b.fn.extend=b.factory.extend;b.extend=b.mix;b.fn.extend({init:function(c,d){if(!c)return this;var e;if(b.isArrayLike(d))return b(d).find(c);if(c.nodeType)return this.ownerDocument=
9===c.nodeType?c:c.ownerDocument,b.Array.merge(this,[c]);this.selector=c+"";if("string"===typeof c){e=this.ownerDocument=!d?document:g(d,d[0]);var f=d||e;c=c.trim();"<"===c.charAt(0)&&">"===c.charAt(c.length-1)&&3<=c.length?(e=b.parseHTML(c,e),e=e.childNodes):e=s.test(c)?f[E](c):b.query(c,f);return b.Array.merge(this,e)}this.ownerDocument=g(c[0]);b.Array.merge(this,b.isArrayLike(c)?c:[c]);delete this.selector},mass:b.mass,length:0,valueOf:function(){return Array.prototype.slice.call(this)},size:function(){return this.length},
toString:function(){for(var c=this.length,d=[],e=b.type;c--;)d[c]=e(this[c]);return d.join(", ")},labor:function(c){var d=new b;d.context=this.context;d.selector=this.selector;d.ownerDocument=this.ownerDocument;return b.Array.merge(d,c||[])},slice:function(c,d){return this.labor(b.slice(this,c,d))},get:function(b){return!arguments.length?this.valueOf():this[0>b?this.length+b:b]},eq:function(b){return-1===b?this.slice(b):this.slice(b,+b+1)},gt:function(b){return this.slice(b+1,this.length)},lt:function(b){return this.slice(0,
b)},first:function(){return this.slice(0,1)},last:function(){return this.slice(-1)},even:function(){return this.labor(b.filter(this,function(b,c){return 0===c%2}))},odd:function(){return this.labor(b.filter(this,function(b,c){return 1===c%2}))},each:function(c){return b.each(this,c)},map:function(c){return this.labor(b.map(this,c))},clone:function(b,c){b=null==b?!1:b;c=null==c?b:c;return this.map(function(){return n(this,b,c)})},html:function(d){return b.access(this,function(e,g){if(this===b){var h;
if("innerHTML"in e)h=e.innerHTML;else{h=e;for(var l=0,n,p=[];n=h.childNodes[l++];)p.push(c(n));h=p.join("")}return h}g=null==d?"":d+"";if(b.support.innerHTML&&!B.test(g)&&!F.test(g))try{for(h=0;e=this[h++];)1===e.nodeType&&(b.each(e[E]("*"),f),e.innerHTML=g);return}catch(q){}this.empty().append(g)},null,arguments)},text:function(c){return b.access(this,function(d){if(this===b)return"SCRIPT"===d.tagName?d.text:d.textContent||d.innerText||b.getText([d]);this.empty().append(this.ownerDocument.createTextNode(c))},
null,arguments)},outerHTML:function(d){return b.access(this,function(e){if(this===b)return"outerHTML"in e?e.outerHTML:c(e);this.empty().replace(d)},null,arguments)}});b.fn.init.prototype=b.fn;"push,unshift,pop,shift,splice,sort,reverse".replace(b.rword,function(c){b.fn[c]=function(){Array.prototype[c].apply(this,arguments);return this}});"remove,empty,detach".replace(b.rword,function(c){b.fn[c]=function(){for(var d="empty"!==c,e=0,g;g=this[e++];){if(1===g.nodeType){var h=b.slice(g[E]("*")).concat(d?
g:[]);"detach"!==c&&h.forEach(f)}if(d)g.parentNode&&g.parentNode.removeChild(g);else for(;g.firstChild;)g.removeChild(g.firstChild)}return this}});"append,prepend,before,after,replace".replace(b.rword,function(c){b.fn[c]=function(b){return q(this,c,b,this.ownerDocument)};b.fn[c+"To"]=function(d){b(d,this.ownerDocument)[c](this);return this}});b.fn.insertAfter=function(c){b.log("insertAfter is deprecated, instead of afterTo");return this.afterTo(c)};b.fn.insertBefore=function(c){b.log("insertBefore is deprecated, instead of beforeTo");
return this.beforeTo(c)};var y=" -webkit- -o- -moz- -ms- WebKit- moz- webkit- ms- -khtml-".split(" "),J={"float":b.support.cssFloat?"cssFloat":"styleFloat",background:"backgroundColor"},u=e("matchesSelector",b.html);b.mix({cssName:e,match:function(c,d){try{return c[u](d)}catch(e){return c.parentNode?-1!==b.query(d,c.ownerDocument).indexOf(c):!1}},access:function(c,d,e,f){var g=c.length,h=f[0],l=f[1];if(0===f.length||1===f.length&&"string"===typeof e)return(c=c[0])&&1===c.nodeType?d.call(b,c,h):void 0;
if(null===e)d.call(c,f);else if("object"===typeof h)for(var n in h)for(e=0;e<g;e++)d.call(c,c[e],n,h[n]);else for(e=0;e<g;e++)d.call(c,c[e],h,l);return c},parseHTML:function(c,d){d=d||9===this.nodeType&&this||document;c=c.replace(t,"<$1></$2>").trim();if(b.cachedRange&&d===document&&!B.test(c)&&!F.test(c))return b.cachedRange.createContextualFragment(c);b.support.noscope&&(c=c.replace(B,"<br class=fix_noscope>$1"));var e=(w.exec(c)||["",""])[1].toLowerCase(),f=D[e]||D._default,e=d.createDocumentFragment(),
g=d.createElement("div");g.innerHTML=f[1]+c+(f[2]||"");var h=g[E]("script");if(h.length)for(var l=d.createElement("script"),n,p=0,q;q=h[p++];)if(!q.type||v[q.type]){n=l.cloneNode(!1);for(var r=0,s;s=q.attributes[r++];)s.specified&&(n[s.name]=[s.value]);n.text=q.text;q.parentNode.replaceChild(n,q)}for(p=f[0];p--;g=g.lastChild);for(b.fixParseHTML(g,c);f=g.firstChild;)e.appendChild(f);return e}});var D={area:[1,"<map>"],param:[1,"<object>"],col:[2,"<table><tbody></tbody><colgroup>","</table>"],legend:[1,
"<fieldset>"],option:[1,"<select multiple='multiple'>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>"],td:[3,"<table><tbody><tr>"],_default:b.support.noscope?[1,"X<div>"]:[0,""]},N={prepend:function(b,c){b.insertBefore(c,b.firstChild)},append:function(b,c){b.appendChild(c)},before:function(b,c){b.parentNode.insertBefore(c,b)},after:function(b,c){b.parentNode.insertBefore(c,b.nextSibling)},replace:function(b,c){b.parentNode.replaceChild(c,b)},prepend2:function(b,c){b[G]("afterBegin",c)},append2:function(b,
c){b[G]("beforeEnd",c)},before2:function(b,c){b[G]("beforeBegin",c)},after2:function(b,c){b[G]("afterEnd",c)}};D.optgroup=D.option;D.tbody=D.tfoot=D.colgroup=D.caption=D.thead;D.th=D.td;b.fn.extend({data:function(c,d){if(void 0===c){if(this.length){var e=this[0],f=b.data(e);if(1===e.nodeType&&!b._data(e,"parsedAttrs")){for(var g=0,h=e.attributes,l;l=h[g++];){var n=l.name;n.indexOf("data-")||b.parseData(e,n.slice(5),f,l.value)}b._data(e,"parsedAttrs",!0)}}return f}return b.access(this,function(e,f){if(/^[^238]$/.test(e.nodeType))return b.data(e,
c,d)},c,arguments)},removeData:function(c){return this.each(function(){b.removeData(this,c)})}});b.fn.extend({find:function(c){return this.labor(b.query(c,this))},filter:function(b){return this.labor(d(this,b,this.ownerDocument,!1))},not:function(b){return this.labor(d(this,b,this.ownerDocument,!0))},has:function(c){var d=b(c,this.ownerDocument);c=b.filter(this,function(c){for(var e=0;e=d[e++];)return b.contains(c,e)});return this.labor(c)},closest:function(c,d){for(var e=b(c,d||this.ownerDocument).valueOf(),
f=0,g=[],h;h=this[f++];)for(;h;)if(~e.indexOf(h)){g.push(h);break}else if(h=h.parentNode,!h||!h.ownerDocument||h===d||11===h.nodeType)break;g=1<g.length?b.unique(g):g;return this.labor(g)},is:function(c){c=b.query(c,this.ownerDocument);for(var d={},e,f=0;e=c[f++];)e=b.getUid(e),d[e]=1;return this.valueOf().some(function(c){return d[b.getUid(c)]})},index:function(c){var d=this[0];return!c?d&&d.parentNode?this.first().prevAll().length:-1:"string"===typeof c?b(c).index(d):this.valueOf().indexOf(c.mass?
c[0]:c)}});var x=b.oneObject("children","contents","next","prev");b.each({parent:function(b){return(b=b.parentNode)&&11!==b.nodeType?b:[]},parents:function(b){return l(b,"parentNode").reverse()},parentsUntil:function(b,c){return l(b,"parentNode",c).reverse()},next:function(b){return l(b,"nextSibling",!0)},nextAll:function(b){return l(b,"nextSibling")},nextUntil:function(b,c){return l(b,"nextSibling",c)},prev:function(b){return l(b,"previousSibling",!0)},prevAll:function(b){return l(b,"previousSibling").reverse()},
prevUntil:function(b,c){return l(b,"previousSibling",c).reverse()},children:function(c){return b.filter(c.childNodes,function(b){return 1===b.nodeType})},siblings:function(b){return l(b,"previousSibling").reverse().concat(l(b,"nextSibling"))},contents:function(c){return"IFRAME"===c.tagName?c.contentDocument||c.contentWindow.document:b.slice(c.childNodes)}},function(c,d){b.fn[d]=function(e){for(var f=[],g=0,h;h=this[g++];){var l=h.nodeType;if(1===l||11===l||9===l)f=f.concat(c(h,e))}/Until/.test(d)&&
(e=0);f=1<this.length&&!x[d]?b.unique(f):f;f=this.labor(f);return e?f.filter(e):f}});return b})}}(self,self.document);