diff --git a/appmanifest.json b/appmanifest.json new file mode 100644 index 0000000..645214d --- /dev/null +++ b/appmanifest.json @@ -0,0 +1,28 @@ +{ + "name": "New project", + "short_name": "New project", + "start_url": "index.html", + "display": "fullscreen", + "orientation": "any", + "icons": [{ + "src": "icon-16.png", + "sizes": "16x16", + "type": "image/png" + }, { + "src": "icon-32.png", + "sizes": "32x32", + "type": "image/png" + }, { + "src": "icon-128.png", + "sizes": "128x128", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "144x144", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "256x256", + "type": "image/png" + }] +} diff --git a/c2runtime.js b/c2runtime.js new file mode 100644 index 0000000..891f7d4 --- /dev/null +++ b/c2runtime.js @@ -0,0 +1,356 @@ +// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com +'use strict';var aa,ba,ca,v,da,ea,fa,K,ga,ia,ja,ka,la,O,ma,oa,T,pa,sa,ta,ua,U,va,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,X,Qb,Rb={},Sb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype}); +(function(){function d(a,b,g,c){this.set(a,b,g,c)}function q(){this.jb=this.ib=this.lb=this.kb=this.tb=this.sb=this.Xa=this.Wa=0}function h(a,b,g,c){ac?b:c):(w=ag?b:g):gc?a:c):(w=bg?a:g)}function p(){this.items=this.cd=null;this.Mg=0;P&&(this.cd=new Set);this.Yf=[];this.Vd=!0}function n(a){M[B++]=a}function r(){this.X=this.hj=this.y=this.Cj=0}function f(a){this.Ua=[];this.Ih=this.Kh=this.Lh=this.Jh=0;this.qh(a)}function b(a,b){this.Gj= +a;this.Fj=b;this.cells={}}function e(a,b){this.Gj=a;this.Fj=b;this.cells={}}function c(a,b,g){var c;return A.length?(c=A.pop(),c.kk=a,c.x=b,c.y=g,c):new aa(a,b,g)}function a(a,b,g){this.kk=a;this.x=b;this.y=g;this.Za=new ba}function g(a,b,g){var c;return x.length?(c=x.pop(),c.kk=a,c.x=b,c.y=g,c):new ca(a,b,g)}function l(a,b,g){this.kk=a;this.x=b;this.y=g;this.Za=[];this.Bf=!0;this.$c=new ba;this.eg=!1}function k(a,b){return a.Qc-b.Qc}v=function(a){window.console&&window.console.log&&window.console.log(a)}; +da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};K=function(a){return"string"===typeof a};ga=function(a){return 0b;b<<=1)a=a|a>>b;return a+1};ja=function(a){return 0>a?-a:a};ka=function(a,b){return am)return!1;bm)return!1;l=k-a+S-g;f=t-b+e-c;a=g-a;b=c-b;k=S-k;t=e-t;e=ja(b*k-t*a);return ja(k*f-t*l)>e?!1:ja(a*f-b*l)<=e};d.prototype.set=function(a,b,g,c){this.left=a;this.top=b;this.right=g;this.bottom=c};d.prototype.lg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height= +function(){return this.bottom-this.top};d.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.ks=function(a){return!(a.rightthis.right||a.top>this.bottom)};d.prototype.ls=function(a,b,g){return!(a.right+bthis.right||a.top+g>this.bottom)};d.prototype.Sb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};d.prototype.rg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};T=d;q.prototype.ph=function(a){this.Wa=a.left;this.Xa=a.top;this.sb=a.right;this.tb=a.top;this.kb=a.right;this.lb=a.bottom;this.ib=a.left;this.jb=a.bottom};q.prototype.to=function(a,b){if(0===b)this.ph(a);else{var g=Math.sin(b),c=Math.cos(b), +k=a.left*g,t=a.top*g,S=a.right*g,g=a.bottom*g,e=a.left*c,l=a.top*c,f=a.right*c,c=a.bottom*c;this.Wa=e-t;this.Xa=l+k;this.sb=f-t;this.tb=l+S;this.kb=f-g;this.lb=c+S;this.ib=e-g;this.jb=c+k}};q.prototype.offset=function(a,b){this.Wa+=a;this.Xa+=b;this.sb+=a;this.tb+=b;this.kb+=a;this.lb+=b;this.ib+=a;this.jb+=b;return this};var w=0,G=0;q.prototype.hm=function(a){h(this.Wa,this.sb,this.kb,this.ib);a.left=w;a.right=G;h(this.Xa,this.tb,this.lb,this.jb);a.top=w;a.bottom=G};q.prototype.Sb=function(a,b){var g= +this.Wa,c=this.Xa,k=this.sb-g,t=this.tb-c,S=this.kb-g,e=this.lb-c,l=a-g,f=b-c,m=k*k+t*t,d=k*S+t*e,t=k*l+t*f,w=S*S+e*e,u=S*l+e*f,n=1/(m*w-d*d),k=(w*t-d*u)*n,m=(m*u-d*t)*n;if(0<=k&&0k+m)return!0;k=this.ib-g;t=this.jb-c;m=k*k+t*t;d=k*S+t*e;t=k*l+t*f;n=1/(m*w-d*d);k=(w*t-d*u)*n;m=(m*u-d*t)*n;return 0<=k&&0k+m};q.prototype.Td=function(a,b){if(b)switch(a){case 0:return this.Wa;case 1:return this.sb;case 2:return this.kb;case 3:return this.ib;case 4:return this.Wa;default:return this.Wa}else switch(a){case 0:return this.Xa; +case 1:return this.tb;case 2:return this.lb;case 3:return this.jb;case 4:return this.Xa;default:return this.Xa}};q.prototype.Jn=function(){return(this.Wa+this.sb+this.kb+this.ib)/4};q.prototype.Kn=function(){return(this.Xa+this.tb+this.lb+this.jb)/4};q.prototype.Qm=function(a){var b=a.Jn(),g=a.Kn();if(this.Sb(b,g))return!0;b=this.Jn();g=this.Kn();if(a.Sb(b,g))return!0;var c,k,t,e,l,f,m,d;for(m=0;4>m;m++)for(d=0;4>d;d++)if(b=this.Td(m,!0),g=this.Td(m,!1),c=this.Td(m+1,!0),k=this.Td(m+1,!1),t=a.Td(d, +!0),e=a.Td(d,!1),l=a.Td(d+1,!0),f=a.Td(d+1,!1),oa(b,g,c,k,t,e,l,f))return!0;return!1};pa=q;sa=function(a,b){for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);return a};ta=function(a,b){var g,c;b=O(b);if(!(0>b||b>=a.length)){g=b;for(c=a.length-1;gg?g:a};V=function(a){return a/(180/la)};Ba=function(a){return 180/la*a};Ca=function(a){a%=360;0>a&&(a+=360);return a};Da=function(a){a%=2*la;0>a&&(a+=2*la);return a};Ea=function(a){return Ca(Ba(a))};Fa=function(a){return Da(V(a))};Ga=function(a,b,g,c){return Math.atan2(c-b,g-a)};Ha=function(a,b){if(a===b)return 0;var g=Math.sin(a),c=Math.cos(a),k=Math.sin(b),t=Math.cos(b),g=g*k+c*t;return 1<=g?0:-1>=g?la:Math.acos(g)}; +Ia=function(a,b,g){var c=Math.sin(a),k=Math.cos(a),t=Math.sin(b),e=Math.cos(b);return Math.acos(c*t+k*e)>g?0=c*k-g*t};Ka=function(a,b,g,c){a=g-a;b=c-b;return Math.sqrt(a*a+b*b)};La=function(a,b){return!a!==!b};Ma=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Na=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var z=+new Date;Oa=function(){if("undefined"!== +typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-z};var m=!1,u=m=!1,J=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),J=window.c2ejecta); +var P=!m&&!J&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.rd()?!1:P?this.cd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(P)this.cd.has(a)||(this.cd.add(a),this.Vd=!1);else{var b=a.toString(),g=this.items;g?g.hasOwnProperty(b)||(g[b]=a,this.Mg++,this.Vd=!1):(this.items={},this.items[b]=a,this.Mg=1,this.Vd=!1)}};p.prototype.remove=function(a){if(!this.rd())if(P)this.cd.has(a)&&(this.cd["delete"](a), +this.Vd=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Mg--,this.Vd=!1)}};p.prototype.clear=function(){this.rd()||(P?this.cd.clear():(this.items=null,this.Mg=0),U(this.Yf),this.Vd=!0)};p.prototype.rd=function(){return 0===this.count()};p.prototype.count=function(){return P?this.cd.size:this.Mg};var M=null,B=0;p.prototype.jt=function(){if(!this.Vd){if(P)U(this.Yf),M=this.Yf,B=0,this.cd.forEach(n),M=null,B=0;else{var a=this.Yf;U(a);var b,g=0,c=this.items; +if(c)for(b in c)c.hasOwnProperty(b)&&(a[g++]=c[b])}this.Vd=!0}};p.prototype.Ld=function(){this.jt();return this.Yf};ba=p;new ba;Pa=function(a,b){P?Qa(a,b.cd):Ra(a,b.Ld())};Qa=function(a,b){var g,c,k,t;c=g=0;for(k=a.length;gg&&(g=t),ek&&(k=e);this.Jh=b;this.Kh=g;this.Lh=c;this.Ih=k};f.prototype.ph=function(a,b,g){this.Ua.length= +8;this.Kc=4;var c=this.Ua;c[0]=a.left-b;c[1]=a.top-g;c[2]=a.right-b;c[3]=a.top-g;c[4]=a.right-b;c[5]=a.bottom-g;c[6]=a.left-b;c[7]=a.bottom-g;this.Oh=a.right-a.left;this.Nh=a.bottom-a.top;this.wa()};f.prototype.Sf=function(a,b,g,c,k){this.Ua.length=8;this.Kc=4;var t=this.Ua;t[0]=a.Wa-b;t[1]=a.Xa-g;t[2]=a.sb-b;t[3]=a.tb-g;t[4]=a.kb-b;t[5]=a.lb-g;t[6]=a.ib-b;t[7]=a.jb-g;this.Oh=c;this.Nh=k;this.wa()};f.prototype.so=function(a){this.Kc=a.Kc;va(this.Ua,a.Ua);this.Jh=a.Jh;this.Lh-a.Lh;this.Kh=a.Kh;this.Ih= +a.Ih};f.prototype.of=function(a,b,g){if(this.Oh!==a||this.Nh!==b||this.km!==g){this.Oh=a;this.Nh=b;this.km=g;var c,k,t,e,l,f=0,m=1,d=this.fo,w=this.Ua;0!==g&&(f=Math.sin(g),m=Math.cos(g));g=0;for(t=this.Kc;gA.length&&A.push(l),this.cells[c][t]=null);if(g)for(c=g.left,k=g.right;c<=k;++c)for(t=g.top,e=g.bottom;t<=e;++t)b&& +b.Sb(c,t)||this.ee(c,t,!0).pk(a)};b.prototype.Ui=function(a,b){var g,c,k,t,e,l;g=this.Ab(a.left);k=this.Bb(a.top);c=this.Ab(a.right);for(e=this.Bb(a.bottom);g<=c;++g)for(t=k;t<=e;++t)(l=this.ee(g,t,!1))&&l.dump(b)};Va=b;e.prototype.ee=function(a,b,c){var k;k=this.cells[a];return k?(k=k[b])?k:c?(k=g(this,a,b),this.cells[a][b]=k):null:c?(k=g(this,a,b),this.cells[a]={},this.cells[a][b]=k):null};e.prototype.Ab=function(a){return O(a/this.Gj)};e.prototype.Bb=function(a){return O(a/this.Fj)};e.prototype.update= +function(a,b,g){var c,k,t,e,l;if(b)for(c=b.left,k=b.right;c<=k;++c)for(t=b.top,e=b.bottom;t<=e;++t)if(!g||!g.Sb(c,t))if(l=this.ee(c,t,!1))l.remove(a),l.rd()&&(l.reset(),1E3>x.length&&x.push(l),this.cells[c][t]=null);if(g)for(c=g.left,k=g.right;c<=k;++c)for(t=g.top,e=g.bottom;t<=e;++t)b&&b.Sb(c,t)||this.ee(c,t,!0).pk(a)};e.prototype.Ui=function(a,b,g,c,k){var t,e;a=this.Ab(a);b=this.Bb(b);g=this.Ab(g);for(t=this.Bb(c);a<=g;++a)for(c=b;c<=t;++c)(e=this.ee(a,c,!1))&&e.dump(k)};e.prototype.As=function(a){var b, +g,c,k,t;b=a.left;c=a.top;g=a.right;for(k=a.bottom;b<=g;++b)for(a=c;a<=k;++a)if(t=this.ee(b,a,!1))t.Bf=!1};Xa=e;var A=[];a.prototype.rd=function(){return this.Za.rd()};a.prototype.pk=function(a){this.Za.add(a)};a.prototype.remove=function(a){this.Za.remove(a)};a.prototype.dump=function(a){xa(a,this.Za.Ld())};aa=a;var x=[];l.prototype.rd=function(){if(!this.Za.length)return!0;if(this.Za.length>this.$c.count())return!1;this.Yj();return!0};l.prototype.pk=function(a){this.$c.contains(a)?(this.$c.remove(a), +this.$c.rd()&&(this.eg=!1)):this.Za.length?(this.Za[this.Za.length-1].Wc()>a.Wc()&&(this.Bf=!1),this.Za.push(a)):(this.Za.push(a),this.Bf=!0)};l.prototype.remove=function(a){this.$c.add(a);this.eg=!0;30<=this.$c.count()&&this.Yj()};l.prototype.Yj=function(){this.eg&&(this.$c.count()===this.Za.length?this.reset():(Pa(this.Za,this.$c),this.$c.clear(),this.eg=!1))};l.prototype.Qq=function(){this.Bf||(this.Za.sort(k),this.Bf=!0)};l.prototype.reset=function(){U(this.Za);this.Bf=!0;this.$c.clear();this.eg= +!1};l.prototype.dump=function(a){this.Yj();this.Qq();this.Za.length&&a.push(this.Za)};ca=l;var E="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":E[a-1]};Za=function(a,b,g){if(g)switch(a.qb=g.ONE,a.nb=g.ONE_MINUS_SRC_ALPHA,b){case 1:a.qb=g.ONE;a.nb=g.ONE;break;case 3:a.qb=g.ONE;a.nb=g.ZERO;break;case 4:a.qb=g.ONE_MINUS_DST_ALPHA;a.nb=g.ONE;break;case 5:a.qb=g.DST_ALPHA;a.nb= +g.ZERO;break;case 6:a.qb=g.ZERO;a.nb=g.SRC_ALPHA;break;case 7:a.qb=g.ONE_MINUS_DST_ALPHA;a.nb=g.ZERO;break;case 8:a.qb=g.ZERO;a.nb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.qb=g.DST_ALPHA;a.nb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.qb=g.ONE_MINUS_DST_ALPHA,a.nb=g.SRC_ALPHA}};$a=function(a){return Math.round(1E6*a)/1E6};ab=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};bb=function(a){a=a.target;return!a||a===document||a=== +window||document&&document.body&&a===document.body||ab(a.tagName,"canvas")?!0:!1}})();var Tb="undefined"!==typeof Float32Array?Float32Array:Array;function Ub(d){var q=new Tb(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}function Vb(d){var q=new Tb(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q} +function Wb(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}function Xb(d,q){var h=q[0],p=q[1];q=q[2];d[0]*=h;d[1]*=h;d[2]*=h;d[3]*=h;d[4]*=p;d[5]*=p;d[6]*=p;d[7]*=p;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q} +function Yb(d,q,h,p){p||(p=Vb());var n,r,f,b,e,c,a,g,l=d[0],k=d[1];d=d[2];r=h[0];f=h[1];n=h[2];h=q[1];c=q[2];l===q[0]&&k===h&&d===c?(d=p,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(h=l-q[0],c=k-q[1],a=d-q[2],g=1/Math.sqrt(h*h+c*c+a*a),h*=g,c*=g,a*=g,q=f*a-n*c,n=n*h-r*a,r=r*c-f*h,(g=Math.sqrt(q*q+n*n+r*r))?(g=1/g,q*=g,n*=g,r*=g):r=n=q=0,f=c*r-a*n,b=a*q-h*r,e=h*n-c*q,(g=Math.sqrt(f*f+b*b+e*e))?(g=1/g,f*=g,b*=g,e*=g):e=b=f=0, +p[0]=q,p[1]=f,p[2]=h,p[3]=0,p[4]=n,p[5]=b,p[6]=c,p[7]=0,p[8]=r,p[9]=e,p[10]=a,p[11]=0,p[12]=-(q*l+n*k+r*d),p[13]=-(f*l+b*k+e*d),p[14]=-(h*l+c*k+a*d),p[15]=1)} +(function(){function d(b,e,c){this.sd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.la=!!c;this.oi=this.Fg=!1;this.Nj=0;this.tj=1;this.Pl=1E3;this.pt=(this.Pl-this.tj)/32768;this.Dj=Ub([0,0,100]);this.tn=Ub([0,0,0]);this.No=Ub([0,1,0]);this.Eh=Ub([1,1,1]);this.qm=!0;this.Ji=Vb();this.ic=Vb();this.Ck=Vb();this.Mj=Vb();this.C=b;this.Mm()}function q(b,e,c){this.C=b;this.rh=e;this.name=c;this.oc=b.getAttribLocation(e,"aPos");this.oe=b.getAttribLocation(e, +"aTex");this.rn=b.getUniformLocation(e,"matP");this.Fi=b.getUniformLocation(e,"matMV");this.If=b.getUniformLocation(e,"opacity");this.Jk=b.getUniformLocation(e,"colorFill");this.sn=b.getUniformLocation(e,"samplerFront");this.Wg=b.getUniformLocation(e,"samplerBack");this.Ve=b.getUniformLocation(e,"destStart");this.Ue=b.getUniformLocation(e,"destEnd");this.Yg=b.getUniformLocation(e,"seconds");this.Lk=b.getUniformLocation(e,"pixelWidth");this.Kk=b.getUniformLocation(e,"pixelHeight");this.Vg=b.getUniformLocation(e, +"layerScale");this.Ug=b.getUniformLocation(e,"layerAngle");this.Zg=b.getUniformLocation(e,"viewOrigin");this.Xg=b.getUniformLocation(e,"scrollPos");this.ds=!!(this.Lk||this.Kk||this.Yg||this.Wg||this.Ve||this.Ue||this.Vg||this.Ug||this.Zg||this.Xg);this.Bn=this.Cn=-999;this.Ii=1;this.xn=this.wn=0;this.zn=this.vn=this.un=1;this.Fn=this.En=this.Dn=this.Hn=this.Gn=this.yn=0;this.Bk=[];this.An=Vb();this.If&&b.uniform1f(this.If,1);this.Jk&&b.uniform4f(this.Jk,1,1,1,1);this.sn&&b.uniform1i(this.sn,0);this.Wg&& +b.uniform1i(this.Wg,1);this.Ve&&b.uniform2f(this.Ve,0,0);this.Ue&&b.uniform2f(this.Ue,1,1);this.Vg&&b.uniform1f(this.Vg,1);this.Ug&&b.uniform1f(this.Ug,0);this.Zg&&b.uniform2f(this.Zg,0,0);this.Xg&&b.uniform2f(this.Xg,0,0);this.Yg&&b.uniform1f(this.Yg,0);this.Je=!1}function h(b,e){return b[0]===e[0]&&b[1]===e[1]&&b[2]===e[2]&&b[3]===e[3]&&b[4]===e[4]&&b[5]===e[5]&&b[6]===e[6]&&b[7]===e[7]&&b[8]===e[8]&&b[9]===e[9]&&b[10]===e[10]&&b[11]===e[11]&&b[12]===e[12]&&b[13]===e[13]&&b[14]===e[14]&&b[15]=== +e[15]}function p(b,e){this.type=b;this.A=e;this.C=e.C;this.Xc=this.zb=this.Vn=0;this.O=this.tc=null;this.uo=[]}var n=Vb();d.prototype.Mm=function(){var b=this.C,e;this.gn=1;this.Re=this.ke=null;this.Uh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.la?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.jn=b.ONE;this.cn=b.ONE_MINUS_SRC_ALPHA; +this.rj=new Float32Array(8E3*(this.la?3:2));this.ij=new Float32Array(16E3);this.$n=new Float32Array(32E3);this.Vk=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Vk);b.bufferData(b.ARRAY_BUFFER,this.$n.byteLength,b.DYNAMIC_DRAW);this.Dh=Array(4);this.xh=Array(4);for(e=0;4>e;e++)this.Dh[e]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Dh[e]),b.bufferData(b.ARRAY_BUFFER,this.rj.byteLength,b.DYNAMIC_DRAW),this.xh[e]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.xh[e]),b.bufferData(b.ARRAY_BUFFER, +this.ij.byteLength,b.DYNAMIC_DRAW);this.jd=0;this.gs=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.gs);for(var c=new Uint16Array(12E3),a=e=0;12E3>e;)c[e++]=a,c[e++]=a+1,c[e++]=a+2,c[e++]=a,c[e++]=a+2,c[e++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,b.STATIC_DRAW);this.Wk=this.Vf=this.Md=0;this.Ea=[];e=this.la?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": +"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.mg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},e,"");this.Ea.push(c);c=this.mg({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, +"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Ea.push(c);c=this.mg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"");this.Ea.push(c);c=this.mg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +e,"");this.Ea.push(c);for(var g in Zb)Zb.hasOwnProperty(g)&&this.Ea.push(this.mg(Zb[g],e,g));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Ud=[];this.gd=0;this.ob=!1;this.om=this.Pg=-1;this.pf=null;this.Xj=b.createFramebuffer();this.Wh=this.Vi=null;this.fm=!1;this.la&&(this.Wh=b.createRenderbuffer());this.ue=Ub([0,0,0]);this.In=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048"===e.name&&b.vertexAttribPointer(e.oc,4,b.FLOAT,!1,0,0));if(0"!==e.name&&b.vertexAttribPointer(e.oc,this.la?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.xh[this.jd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.ij.subarray(0,this.Vf));e&&0<=e.oe&&""!==e.name&&b.vertexAttribPointer(e.oe,2, +b.FLOAT,!1,0,0)}for(var c,b=0,e=this.gd;bc||0>a)){var g=this.Yb();g.type=7;g.zb=1;g.O||(g.O=Vb());g.O[0]=b;g.O[1]=e;g.O[2]=c;g.O[3]=a;this.ob=!1}};d.prototype.po=function(b){if(this.la&&(b=!!b,this.Fg!==b)){var e=this.Yb();e.type=14;e.zb=b?1:0;this.ob=!1;this.Fg=b;this.Vi=null;this.Fg?this.Lb(2):this.Lb(0)}};d.prototype.oo=function(b){if(this.la){var e=this.Yb();e.type=13;e.zb=b?1:0;this.ob=!1}};d.prototype.xm=function(){Wb(this.Ck,n);this.qc();this.kc();var b=this.width/2,e=this.height/2;this.kh(-b,e,b,e,b,-e,-b,-e);Wb(n, +this.ic);this.kc()};d.prototype.no=function(b,e,c){this.Lb(3);var a=this.Yb();a.type=12;a.O||(a.O=Vb());a.O[0]=b;a.O[1]=e;a.O[2]=c;a.O[3]=1;this.ob=!1};d.prototype.bt=function(){this.Lb(0)};d.prototype.Ss=function(){this.Lb(2)};d.prototype.Ns=function(){this.ae();this.C.flush()};var r=[],f={};d.prototype.kq=function(){U(r);f={}};d.prototype.Di=function(b,e,c,a){e=!!e;c=!!c;var g=b.src+","+e+","+c+(e?",undefined":""),l=null;if("undefined"!==typeof b.src&&f.hasOwnProperty(g))return l=f[g],l.Mh++,l; +this.ae();var k=this.C,d=ga(b.width)&&ga(b.height),l=k.createTexture();k.bindTexture(k.TEXTURE_2D,l);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=k.RGBA,h=k.RGBA,m=k.UNSIGNED_BYTE;if(a&&!this.sd)switch(a){case 1:h=n=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=n=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(!d&&e){a=document.createElement("canvas");a.width=ia(b.width);a.height=ia(b.height);var u=a.getContext("2d");u.webkitImageSmoothingEnabled= +c;u.mozImageSmoothingEnabled=c;u.msImageSmoothingEnabled=c;u.imageSmoothingEnabled=c;u.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);k.texImage2D(k.TEXTURE_2D,0,n,h,m,a)}else k.texImage2D(k.TEXTURE_2D,0,n,h,m,b);e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER, +k.LINEAR),d&&this.qm?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.ke=null;l.Ae=b.width;l.ze=b.height;l.Mh=1;l.jm=g;r.push(l);return f[g]=l};d.prototype.ec=function(b,e,c,a){this.ae();var g=this.C;this.sd&&(a=!1);var l= +g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,b,e,0,g.RGBA,a?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,c?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,c?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.ke=null;l.Ae=b;l.ze=e;r.push(l);return l};d.prototype.nt= +function(b,e,c){this.ae();var a=this.C;this.sd&&(c=!1);a.bindTexture(a.TEXTURE_2D,e);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(g){console&&console.error&&console.error("Error updating WebGL texture: ",g)}a.bindTexture(a.TEXTURE_2D,null);this.ke=null};d.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Mh&&1=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function h(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})} +function n(a,b,g,c){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=p;k.onerror=c;k.onsuccess=function(k){k=k.target.result;k.onerror=c;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=g}}catch(e){c(e)}}function r(a,b,g){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=p;c.onerror=g;c.onsuccess=function(c){c=c.target.result;c.onerror=g;var k=c.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?b(k.result.data): +b(null)}}}catch(k){g(k)}}function f(){v("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1e?(e*=b,5===d?(f=e*g/this.Ta,1f&&(f=1/Math.ceil(1/f)),e=this.Ta*f/g,f=this.Sa*f/g,c=(a-e)/2,k=(b-f)/2,a=e,b=f):(c=(a-e)/2,a=e)):(f=a/e,5===d?(f=f*g/this.Sa,1f&&(f=1/Math.ceil(1/f)), +e=this.Ta*f/g,f=this.Sa*f/g,c=(a-e)/2,k=(b-f)/2,a=e):k=(b-f)/2,b=f),m&&!this.he&&(k=c=0)):this.he&&this.Ig&&0===this.ym&&(c=Math.floor((a-this.Ta)/2),k=Math.floor((b-this.Sa)/2),a=this.Ta,b=this.Sa),2>d&&(this.gg=g),this.ie&&this.$m&&1e&&(this.G=this.H/d)):3===d&&(e=this.Ta/this.Sa,d=this.Rg/this.Qg,d>e?this.H=this.G*d:d=m)m=5E4;a+=m;f.src&&(f.complete||f.loaded)&&!f.im?b+=m:k=!1}k&&this.Ls&&this.hg&&(l||(this.hg.Du(),l=!0),c=this.hg.xu(),b+=c,cthis.ne&&(this.Ec||500<=c&& +this.nn!=this.Jc)){b.clearRect(0,0,f,l);var c=f/2,l=l/2,f=0===this.ne&&this.me.Hi.complete,d=40*m,n=0,u=80*m,w;if(f){var h=this.me.Hi,u=h.width*m;w=h.height*m;d=u/2;n=w/2;b.drawImage(h,O(c-d),O(l-n),u,w)}1>=this.ne?(c=O(c-d)+.5,l=O(l+(n+(f?12*m:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(c,l,Math.floor(u*this.Jc),6*m),b.strokeStyle="black",b.strokeRect(c,l,u,6*m),b.strokeStyle="white",b.strokeRect(c-1*m,l-1*m,u+2*m,8*m)):2===this.ne&&(b.font=this.Fc?"12pt ArialMT":"12pt Arial",b.fillStyle= +a?"#f00":"#999",b.Eu="middle",m=Math.round(100*this.Jc)+"%",f=b.measureText?b.measureText(m):null,b.fillText(m,c-(f?f.width:0)/2,l));this.nn=this.Jc}else if(4===this.ne){this.Mq(b);e?e(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.Ec?10:100)}}};var w=-1,G="undefined"===typeof cr_is_preview?200:0,z=!0,m=!1,u=0,J=0,P="undefined"===typeof cr_is_preview?3E3:0,M=null,B=null,A=0;d.prototype.Mq=function(b){if(!k){for(var g=Math.ceil(this.width),c=Math.ceil(this.height), +e=this.me.Hi,f=this.me.Ks,l=this.me.ot,d=0;4>d;++d)if(!e[d].complete||!f[d].complete||!l[d].complete)return;0===A&&(w=Date.now());var d=Date.now(),n=!1,h=b,r,p;z||m?(b.clearRect(0,0,g,c),M&&M.width===g&&M.height===c||(M=document.createElement("canvas"),M.width=g,M.height=c,B=M.getContext("2d")),h=B,n=!0,z&&1===A&&(w=Date.now())):b.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,g,c);256=P&&!m&&1<=this.Jc&&(m=!0,J=d);if(m&&d-J>=300+G||"undefined"!==typeof cr_is_preview&&1<=this.Jc&&500>Date.now()-w)k=!0,m=z=!1,this.me=B=M=null;++A}};d.prototype.bs=function(){this.bb&&(this.canvas.parentNode.removeChild(this.bb),this.bb=this.Uk=null);this.fj=Date.now();this.Te=Oa();var a,b,g;if(this.Ml)for(a=0,b=this.u.length;aa||2===this.Tb&&bb&&(b=0),this.$d=b/1E3,.51/this.Ln&&(this.$d=1/this.Ln));this.ti=a;this.rf=this.$d*this.Wf;this.Hb.add(this.rf);this.sj.add(this.$d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ig)&&!this.ge;2<=this.Tb||a&&0b||2===c&&ga++;)this.pm(this.jg);a=0;for(b=this.ld.length;ab.Vh.length&&b.Vh.push(a)};var E=[];d.prototype.Be=function(a,b,g,c,k,f){var e,l,m,d;if(!a)return null;var n=this.u[a[1]], +u=n.Ja.je;if(this.Lg&&u&&!n.uk||u&&!this.A&&11===a[0][11])return null;var w=b;u||(b=null);var h;n.Vh.length?(h=n.Vh.pop(),h.Zb=!0,n.Ja.fa.call(h,n)):(h=new n.Ja.fa(n),h.Zb=!1);!g||f||this.xd.hasOwnProperty(a[2].toString())?h.uid=this.eh++:h.uid=a[2];this.xd[h.uid.toString()]=h;h.ho=this.On++;h.Ke=n.j.length;e=0;for(l=this.Ac.length;ea&&(a=0);a>=this.ca.M.length&&(a=this.ca.M.length-1);return this.ca.M[a]};d.prototype.Jj=function(a){var b,g;b=0;for(g=a.length;b=k;)e=1/k,k*=2,a.x+=b*e*(l?1:-1),a.y+=g*e*(l?1:-1),a.B(),this.jc(a,c)?e=l=!0:(e=l=!1, +f=a.x,m=a.y);e&&(a.x=f,a.y=m,a.B())};d.prototype.Qs=function(a,b){var g=ea(b)?100:b,c=0,k=a.x,e=a.y,l=0,f=0,m=0,d=this.rb(a);if(!d)return!0;for(;c<=g;){switch(l){case 0:f=0;m=-1;c++;break;case 1:f=1;m=-1;break;case 2:f=1;m=0;break;case 3:m=f=1;break;case 4:f=0;m=1;break;case 5:f=-1;m=1;break;case 6:f=-1;m=0;break;case 7:m=f=-1}l=(l+1)%8;a.x=O(k+f*c);a.y=O(e+m*c);a.B();if(!this.jc(a,d)&&(d=this.rb(a),!d))return!0}a.x=k;a.y=e;a.B();return!1};d.prototype.mh=function(a,b){a.hd&&b.hd&&this.gl.push([a, +b])};var L=-1;d.prototype.trigger=function(a,b,g){if(!this.ca)return!1;var c=this.ca.Ge;if(!c)return!1;var k=!1,e,l,f;L++;var m=c.Pj;l=0;for(f=m.length;l=this.Mk.length&&this.Mk.push([])};d.prototype.Is=function(){this.Gi--};d.prototype.Bm=function(){return this.Mk[this.Gi]}; +d.prototype.bl=function(a){this.Yh++;this.Yh>=this.Tj.length&&this.Tj.push(new Eb);var b=this.Eb();b.reset(a);return b};d.prototype.ao=function(){this.Yh--};d.prototype.Eb=function(){return this.Tj[this.Yh]};d.prototype.Cm=function(a,b){for(var g,c,k,e,l,f;b;){g=0;for(c=b.sc.length;ge||e>=a.Pa.length||(a.Pa[e]=k[c]));if(l.je){e=b.w;a.k.T!==e.l&&(k= +a.k,a.k=this.ca.ji(e.l),a.k?(k.Pf(a,!0),a.k.fg(a,!0),a.B(),a.k.oh(0)):(a.k=k,g||this.hf(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Qc=e.zi;a.n=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Fb=e.hasOwnProperty("hX")?e.hX:.5;a.Gb=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.hd=e.hasOwnProperty("ce")?e.ce:!0;a.dh=e.hasOwnProperty("mts")?e.mts:-1;a.hb=e.hasOwnProperty("bm")?e.bm:0;a.kg=Ya(a.hb);this.C&&Za(a,a.hb,this.C);a.B();if(e.hasOwnProperty("fx"))for(g= +0,k=e.fx.length;gl||(a.Qd[l]=e.fx[g].active,a.Ba[l]=e.fx[g].params);a.Pc()}if(f=b.behs)for(c in f)f.hasOwnProperty(c)&&(g=this.Br(a,parseInt(c,10)),0>g||a.I[g].xb(f[c]));b.data&&a.xb(b.data)};Gb=function(a){return new d(document.getElementById(a))};Hb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Gb;window.cr_createDCRuntime=Hb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas"); +a.zj=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})(); +window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var h=window.cr_getC2Runtime();h&&h.qq(d,q)};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var h=window.cr_getC2Runtime();h&&h.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)}; +(function(){function d(a,b){this.b=a;this.Ge=null;this.scrollX=this.b.Ta/2;this.scrollY=this.b.Sa/2;this.scale=1;this.n=0;this.vf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Mo=b[3];this.vo=b[4];this.T=b[5];var c=b[6],k,e;this.M=[];this.Dg=[];k=0;for(e=c.length;k=this.M.length&&(m=this.M.length-1);d.k=this.M[m];-1===d.k.j.indexOf(d)&&d.k.j.push(d);d.k.gf=!0}if(!f)for(a=0,c=this.M.length;ac?d.siblings.push(h.j[c]):h.Uc&&(e=this.b.Be(h.Uc,d.k,!0,d.x,d.y,!0),this.b.fb(),h.nj(),d.siblings.push(e),r.push(e)));a=0;for(c=this.Me.length;athis.width-b&&(a=this.width-b);athis.height-b&&(a=this.height-b);aD&&(D=0);0>F&&(F=0);H>Q&&(H=Q);N>L&&(N=L);0>W&&(W=0);0>y&&(y=0);qa>Q&&(qa=Q);ra>L&&(ra=L);Z.left=D/Q;Z.top=1-F/L;Z.right=H/Q;Z.bottom=1-N/L}else Z.left=C.left=0,Z.top=C.top=0,Z.right=C.right=1,Z.bottom=C.bottom=1;na=c&&(a.hh(f[0].Na)||0!==x||0!== +na||1!==c.opacity||c.type.Ja.Mn)||b&&!c&&1!==b.opacity;a.mo();if(na){p[I]||(p[I]=a.ec(Q,L,this.b.Q));if(p[I].Ae!==Q||p[I].ze!==L)a.deleteTexture(p[I]),p[I]=a.ec(Q,L,this.b.Q);a.Lb(0);a.rc(p[I]);R=ra-y;a.clearRect(W,L-y-R,qa-W,R);c?c.Db(a):(a.$b(this.b.Qa),a.$e(b.opacity),a.qc(),a.translate(-t,-S),a.kc(),a.ad(D,N,H,N,H,F,D,F,Z));C.left=C.top=0;C.right=C.bottom=1;c&&(E=Z.top,Z.top=Z.bottom,Z.bottom=E);I=1;ha=0}a.$e(1);x=f.length-1;var Wa=a.$k(f[x].Na)||!b&&!c&&!this.b.gc,wa=0;B=0;for(A=f.length;Bc||(b&&this.lc&&a.Kb&&a.Kb.right>=a.Kb.left&&(a.wa(),this.cb.update(a,a.Kb,null),a.Kb.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(ta(this.j,c),this.oh(c)),this.Mc=!0)};h.prototype.fg=function(a,b){a.Qc=this.j.length;this.j.push(a); +b&&this.lc&&a.Kb&&a.B();this.Mc=!0};h.prototype.Ms=function(a){this.j.unshift(a);this.oh(0)};h.prototype.Cs=function(a,b,c){var e=a.Wc();b=b.Wc();ta(this.j,e);ethis.za||c.top>this.ya||(b.globalCompositeOperation=a.kg,a.Bc(b))}};h.prototype.oj=function(){this.kd=!0;var a=this.Wd(!0),b=this.Wd(!1); +this.kd=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b));this.Wi(a,b,null)};h.prototype.Wi=function(a,b,c){var e=this.Vb();this.na=a;this.oa=b;this.za=a+1/e*this.b.H;this.ya=b+1/e*this.b.G;a=this.Ub();0!==a&&(c&&(c.translate(this.b.H/2,this.b.G/2),c.rotate(-a),c.translate(this.b.H/-2,this.b.G/-2)),this.Jd.set(this.na,this.oa,this.za,this.ya),this.Jd.offset((this.na+this.za)/-2,(this.oa+this.ya)/-2),this.Ho.to(this.Jd,a),this.Ho.hm(this.Jd),this.Jd.offset((this.na+this.za)/2,(this.oa+this.ya)/2),this.na= +this.Jd.left,this.oa=this.Jd.top,this.za=this.Jd.right,this.ya=this.Jd.bottom)};h.prototype.De=function(a){if(this.bd=this.fi){this.b.Qa||(this.b.Qa=a.ec(this.b.H,this.b.G,this.b.Q));if(this.b.Qa.Ae!==this.b.H||this.b.Qa.ze!==this.b.G)a.deleteTexture(this.b.Qa),this.b.Qa=a.ec(this.b.H,this.b.G,this.b.Q);a.rc(this.b.Qa)}this.kd=!0;var b=this.Wd(!0),c=this.Wd(!1);this.kd=!1;this.b.Hc&&(b=Math.round(b),c=Math.round(c));this.Wi(b,c,null);b=this.Vb();a.qc();a.scale(b,b);a.Xi(-this.Ub());a.translate((this.na+ +this.za)/-2,(this.oa+this.ya)/-2);a.kc();this.lc?(this.$a.left=this.cb.Ab(this.na),this.$a.top=this.cb.Bb(this.oa),this.$a.right=this.cb.Ab(this.za),this.$a.bottom=this.cb.Bb(this.ya),this.Mc||!this.$a.rg(this.Hf)?(n(this.vd),b=this.hk(),this.Mc=!1,this.Hf.lg(this.$a)):b=this.vd):b=this.j;for(var e,f=null,c=b.length-1;0<=c;--c)e=b[c],e!==f&&(this.Kq(b[c],a),f=e);this.lc&&(this.vd=b);this.Oc||(this.Kj=this.b.Ee++,a.Zi(this.Kj),a.no(1,1,1),a.xm(),a.Ss())};h.prototype.Db=function(a){var b=0,c=0;if(this.bd= +this.fi||1!==this.opacity||0this.za||c.top>this.ya||(b.Zi(a.Ee),a.Uo?this.Lq(a,b):(b.Lb(0),b.re(a.qb,a.nb),a.Db(b)))}};h.prototype.Kq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.wa();var c=a.Aa;c.rightthis.za||c.top>this.ya||(a.Ee=this.b.Ee++,0===a.hb&&1===a.opacity&&a.Fd&&a.De&&(b.Zi(a.Ee),a.De(b)))}};h.prototype.Lq=function(a, +b){var c=a.Y[0].Na,e=a.Y[0].index,f=this.Vb();if(1!==a.Y.length||b.$k(c)||b.Os(c)||(a.n||a.k.Ub())&&b.hh(c)||1!==a.opacity||a.type.Ja.Mn)this.Ra.hl(b,this,a,this.bd?this.b.Qa:this.Ra.wg()),b.qc(),b.scale(f,f),b.Xi(-this.Ub()),b.translate((this.na+this.za)/-2,(this.oa+this.ya)/-2),b.kc();else{b.Lb(c);b.re(a.qb,a.nb);b.Ti(c)&&(this.b.ea=!0);var d=0,h=0,m=0,n=0;b.hh(c)&&(c=a.Aa,d=this.ia(c.left,c.top,!0,!0),h=this.ia(c.left,c.top,!1,!0),m=this.ia(c.right,c.bottom,!0,!0),c=this.ia(c.right,c.bottom,!1, +!0),d=d/windowWidth,h=1-h/windowHeight,m=m/windowWidth,n=1-c/windowHeight);b.Rf(this.bd?this.b.Qa:this.Ra.wg(),1/a.width,1/a.height,d,h,m,n,f,this.Ub(),this.na,this.oa,(this.na+this.za)/2,(this.oa+this.ya)/2,this.b.Hb.X,a.Ba[e]);a.Db(b)}};h.prototype.Wd=function(a){var b=0,c=0,e=this.b.devicePixelRatio;this.b.ie&&(b*=e,c*=e);var e=this.b.Wn,f=this.b.Xn,e=(this.Ra.scrollX-e)*this.zd+e,f=(this.Ra.scrollY-f)*this.Ad+f,d,h,m=1/this.Vb(!1);d=e-this.b.H*m/2;h=f-this.b.G*m/2;d+=b*m;h+=c*m;c=this.Ub();0!== +c&&(d-=e,h-=f,b=Math.cos(c),c=Math.sin(c),m=d*b-h*c,h=h*b+d*c,d=m+e,h+=f);return a?d:h};h.prototype.ia=function(a,b,c,e){var f=this.b.Wn,d=this.b.Xn,h=(this.Ra.scrollX-f)*this.zd+f,m=(this.Ra.scrollY-d)*this.Ad+d,d=h,f=m,n=this.Ub();if(0!==n){a-=h;b-=m;var q=Math.cos(-n),n=Math.sin(-n),r=a*q-b*n;b=b*q+a*n;a=r+h;b+=m}h=1/this.Vb(!e);e?(d-=this.b.H*h/2,f-=this.b.G*h/2):(d-=this.b.width*h/2,f-=this.b.height*h/2);d=(a-d)/h;f=(b-f)/h;a=this.b.devicePixelRatio;this.b.ie&&!e&&(d/=a,f/=a);return c?d:f};h.prototype.eb= +function(){var a,b,c,e={s:this.scale,a:this.n,vl:this.na,vt:this.oa,vr:this.za,vb:this.ya,v:this.visible,bc:this.yc,t:this.Oc,px:this.zd,py:this.Ad,o:this.opacity,zr:this.Fh,fx:[],cg:this.ng,instances:[]};a=0;for(b=this.K.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);g=w[a.length];b=0;for(c=g.length;b=b.length&&(b.length=this.We+1),b[this.We]=a):this.data=a};g.prototype.xg= +function(){var a=this.b.Bm();return!this.parent||this.Kg||!a||this.ri?this.data:this.We>=a.length||"undefined"===typeof a[this.We]?this.ok:a[this.We]};g.prototype.Va=function(){!this.parent||this.Kg||this.ri||this.cf(this.ok)};Fb=g;l.prototype.toString=function(){return"include:"+this.Cg.toString()};l.prototype.Ka=function(){this.Cg=this.b.Uj[this.es];this.sheet.Lm.add(this);this.ua=h(this.ua);for(var a=this.parent;a;)a.group&&a.Rh.push(this),a=a.parent;this.Oo()};l.prototype.Va=function(){this.parent&& +this.b.jh(this.b.u);this.Cg.lk||this.Cg.Va(!0);this.parent&&this.b.Of(this.b.u)};l.prototype.Oo=function(){for(var a=this.parent;a;){if(a.group&&!a.zg){this.gb=!1;return}a=a.parent}this.gb=!0};Pb=l;k.prototype.reset=function(a){this.fc=a;this.Pb=this.Qb=0;U(this.Co);this.Rj=this.Se=!1};Eb=k})(); +(function(){function d(f,b){this.pc=f;this.b=f.b;this.type=b[0];this.get=[this.gr,this.cr,this.pr,this.sr,this.Rq,this.qr,this.kr,this.Zq,this.jr,this.or,this.Sq,this.nr,this.$q,this.lr,this.hr,this.ir,this.dr,this.er,this.Yq,this.rr,this.mr,this.fr,this.Xq,this.br][this.type];var e=null;this.wd=this.P=this.Ca=this.ab=this.kj=this.second=this.first=this.value=null;this.zc=-1;this.Dc=null;this.Vo=-1;this.He=this.Ch=null;this.Qf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first= +new Nb(f,b[1]);break;case 18:this.first=new Nb(f,b[1]);this.second=new Nb(f,b[2]);this.kj=new Nb(f,b[3]);break;case 19:this.ab=this.b.Pd(b[1]);this.ab!==Y.prototype.wb.random&&this.ab!==Y.prototype.wb.jq||this.pc.ro();this.Ca=[];this.P=[];3===b.length?(e=b[2],this.Ca.length=e.length+1):this.Ca.length=1;break;case 20:this.wd=this.b.u[b[1]];this.zc=-1;this.ab=this.b.Pd(b[2]);this.Qf=b[3];Rb.Function&&this.ab===Rb.Function.prototype.wb.yt&&this.pc.ro();b[4]?this.Dc=new Nb(f,b[4]):this.Dc=null;this.Ca= +[];this.P=[];6===b.length?(e=b[5],this.Ca.length=e.length+1):this.Ca.length=1;break;case 21:this.wd=this.b.u[b[1]];this.Qf=b[2];b[3]?this.Dc=new Nb(f,b[3]):this.Dc=null;this.Vo=b[4];break;case 22:this.wd=this.b.u[b[1]];this.wd.hi(b[2]);this.zc=this.wd.ck(b[2]);this.ab=this.b.Pd(b[3]);this.Qf=b[4];b[5]?this.Dc=new Nb(f,b[5]):this.Dc=null;this.Ca=[];this.P=[];7===b.length?(e=b[6],this.Ca.length=e.length+1):this.Ca.length=1;break;case 23:this.Ch=b[1],this.He=null}this.pc.Bs(this.wd);4<=this.type&&17>= +this.type&&(this.first=new Nb(f,b[1]),this.second=new Nb(f,b[2]));if(e){var c,a;c=0;for(a=e.length;c=b||d<=-b)d%=b;0>d&&(d+=b);g.apply(n[d],e)};d.prototype.Xq=function(f){var b=this.wd,e=this.Ca,c=this.P,a=this.Dc,g=this.zc,d=this.ab,k=this.pc.Gd,n=b.ma(),p=n.Cc();if(!p.length)if(n.U.length)p=n.U;else{this.Qf?f.ac(""):f.ka(0);return}e[0]=f;f.Ye=b;f=q();h(c,e,f);a&&(a.get(f),f.Ya()&&(k=f.data,p=b.j));--r;c=p.length;if(k>=c||k<=-c)k%=c;0>k&&(k+=c);k=p[k];p=0;b.J&&(p=k.type.uf[b.md]);d.apply(k.I[g+p],e)};d.prototype.fr=function(f){var b=this.Dc,e=this.wd,c=this.Vo,a=this.pc.Gd, +g=e.ma(),d=g.Cc();if(!d.length)if(g.U.length)d=g.U;else{this.Qf?f.ac(""):f.ka(0);return}if(b){g=q();b.get(g);if(g.Ya()){a=g.data;d=e.j;0!==d.length&&(a%=d.length,0>a&&(a+=d.length));a=e.gk(a);e=a.Pa[c];K(e)?f.ac(e):f.R(e);--r;return}--r}b=d.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=d[a];d=0;e.J&&(d=a.type.$h[e.md]);e=a.Pa[c+d];K(e)?f.ac(e):f.R(e)};d.prototype.gr=function(f){f.type=X.kf;f.data=this.value};d.prototype.cr=function(f){f.type=X.jf;f.data=this.value};d.prototype.pr=function(f){f.type=X.String; +f.data=this.value};d.prototype.sr=function(f){this.first.get(f);f.Ya()&&(f.data=-f.data)};d.prototype.Rq=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data+=b.data,b.Af()&&f.Jf());--r};d.prototype.qr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data-=b.data,b.Af()&&f.Jf());--r};d.prototype.kr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data*=b.data,b.Af()&&f.Jf());--r};d.prototype.Zq=function(f){this.first.get(f); +var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data/=b.data,f.Jf());--r};d.prototype.jr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data%=b.data,b.Af()&&f.Jf());--r};d.prototype.or=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data=Math.pow(f.data,b.data),b.Af()&&f.Jf());--r};d.prototype.Sq=function(f){this.first.get(f);var b=q();this.second.get(b);b.Cf()||f.Cf()?this.Uq(f,b):this.Tq(f,b);--r};d.prototype.Uq=function(f,b){f.Cf()&& +b.Cf()?this.Wq(f,b):this.Vq(f,b)};d.prototype.Wq=function(f,b){f.data+=b.data};d.prototype.Vq=function(f,b){f.Cf()?f.data+=(Math.round(1E10*b.data)/1E10).toString():f.ac(f.data.toString()+b.data)};d.prototype.Tq=function(f,b){f.ka(f.data&&b.data?1:0)};d.prototype.nr=function(f){this.first.get(f);var b=q();this.second.get(b);f.Ya()&&b.Ya()&&(f.data||b.data?f.ka(1):f.ka(0));--r};d.prototype.Yq=function(f){this.first.get(f);f.data?this.second.get(f):this.kj.get(f)};d.prototype.$q=function(f){this.first.get(f); +var b=q();this.second.get(b);f.ka(f.data===b.data?1:0);--r};d.prototype.lr=function(f){this.first.get(f);var b=q();this.second.get(b);f.ka(f.data!==b.data?1:0);--r};d.prototype.hr=function(f){this.first.get(f);var b=q();this.second.get(b);f.ka(f.datab.data?1:0);--r};d.prototype.er=function(f){this.first.get(f); +var b=q();this.second.get(b);f.ka(f.data>=b.data?1:0);--r};d.prototype.br=function(f){var b=this.He.xg();fa(b)?f.R(b):f.ac(b)};Nb=d;p.prototype.Af=function(){return this.type===X.jf};p.prototype.Ya=function(){return this.type===X.kf||this.type===X.jf};p.prototype.Cf=function(){return this.type===X.String};p.prototype.Jf=function(){this.Af()||(this.Cf()&&(this.data=parseFloat(this.data)),this.type=X.jf)};p.prototype.ka=function(f){this.type=X.kf;this.data=Math.floor(f)};p.prototype.R=function(f){this.type= +X.jf;this.data=f};p.prototype.ac=function(f){this.type=X.String;this.data=f};p.prototype.ct=function(f){fa(f)?(this.type=X.jf,this.data=f):K(f)?(this.type=X.String,this.data=f.toString()):(this.type=X.kf,this.data=0)};Mb=p;X={kf:0,jf:1,String:2}})();function Y(d){this.b=d;this.Ob=[]} +Y.prototype.eb=function(){var d={},q,h,p,n,r,f,b,e;d.waits=[];var c=d.waits,a;q=0;for(h=this.Ob.length;q=e+a)return b.L.Every_lastTime=e+a,c>=b.L.Every_lastTime+.04&&(b.L.Every_lastTime=c),b.L.Every_seconds=f,!0;cf)){var b,e,c,a=this.b.Eb(),g;n.length?g=n.pop():g={yb:{},ua:[]};g.Qj=!1;g.time=this.b.Hb.X+f;g.xo="";g.ul=!1;g.sf=a.fc;g.Pb=a.Pb+1;f=0;for(b=this.b.u.length;fa&&(b=a);f.R(b)};h.prototype.rf=function(f){f.R(this.b.rf)};h.prototype.Wf=function(f){f.R(this.b.Wf)};h.prototype.time=function(f){f.R(this.b.Hb.X)};h.prototype.Id=function(f){f.ka(this.b.Id)};h.prototype.Pi=function(f){f.ka(this.b.Pi)};h.prototype.Zj=function(f){f.ka(this.b.Zj)};h.prototype.n=function(f,b,e,c,a){f.R(Ba(Ga(b,e,c,a)))};h.prototype.xs=function(f){f.ka(this.b.ca.height)};h.prototype.left=function(f,b, +e){f.ac(K(b)?b.substr(0,e):"")};h.prototype.right=function(f,b,e){f.ac(K(b)?b.substr(b.length-e):"")};h.prototype.replace=function(f,b,e,c){K(b)&&K(e)&&K(c)?f.ac(b.replace(new RegExp(Ta(e),"gi"),c)):f.ac(K(b)?b:"")};h.prototype.trim=function(f,b){f.ac(K(b)?b.trim():"")};h.prototype.jq=function(f){var b=O(Math.random()*(arguments.length-1));f.ct(arguments[b+1])};h.prototype.Lj=function(f){f.R(this.b.Lj/1E3)};h.prototype.Ei=function(f){f.R(this.b.Ei)};p.wb=new h;p.Us=function(){var f,b,e,c,a,g,d=this.b.Eb(); +f=0;for(e=this.Ob.length;fthis.b.Hb.X)continue;d.fc=c.sf;d.Pb=c.Pb;d.Qb=0;for(b in c.yb)c.yb.hasOwnProperty(b)&&(a=this.b.u[parseInt(b,10)].ma(),g=c.yb[b],a.Da=g.Yi,va(a.j,g.qd),a=g,U(a.qd),r.push(a));c.sf.Ts();this.b.Jj(c.ua);c.Qj=!0}b=f=0;for(e=this.Ob.length;fa.za||b.top>a.ya)},a.Jt=function(){this.wa();var a=this.Aa,b=this.b.ca;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Vt=function(a,b,c){var e=this.ma(), +g=e.Cc();if(!g.length)return!1;var f=g[0],d=f,h=Ka(f.x,f.y,b,c),l,n,q;l=1;for(n=g.length;lh)h=q,d=f;e.fh(d);return!0},g.ku=function(a){this.x!==a&&(this.x=a,this.B())},g.lu=function(a){this.y!==a&&(this.y=a,this.B())},g.hu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.B()},g.Mp=function(a,b){var c=a.Kr(this);if(c){var e;c.fk?(e=c.fk(b,!0),c=c.fk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.B()}},g.Ot= +function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.B())},g.Nt=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.B())},l.pu=function(a){a.R(this.x)},l.qu=function(a){a.R(this.y)},l.rf=function(a){a.R(this.b.ug(this))});r&&(a.Bt=function(a,b){return Qb(this.width,a,b)},a.zt=function(a,b){return Qb(this.height,a,b)},g.Sp=function(a){this.width!==a&&(this.width=a,this.B())},g.fu=function(a){this.height!==a&&(this.height=a,this.B())},g.iu=function(a, +b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.B()},l.ou=function(a){a.R(this.width)},l.Ft=function(a){a.R(this.height)},l.ut=function(a){this.wa();a.R(this.Aa.left)},l.xt=function(a){this.wa();a.R(this.Aa.top)},l.wt=function(a){this.wa();a.R(this.Aa.right)},l.tt=function(a){this.wa();a.R(this.Aa.bottom)});f&&(a.$o=function(a,b){return Ha(this.n,V(b))<=V(a)},a.np=function(a){return Ja(this.n,V(a))},a.kp=function(a,b){var c=Fa(a),e=Fa(b),g=Da(this.n);return Ja(e,c)?Ja(g,c)&& +!Ja(g,e):!(!Ja(g,c)&&Ja(g,e))},g.cu=function(a){a=V(Ca(a));isNaN(a)||this.n===a||(this.n=a,this.B())},g.Zt=function(a){0===a||isNaN(a)||(this.n+=V(a),this.n=Da(this.n),this.B())},g.$t=function(a){0===a||isNaN(a)||(this.n-=V(a),this.n=Da(this.n),this.B())},g.au=function(a,b){var c=Ia(this.n,V(b),V(a));isNaN(c)||this.n===c||(this.n=c,this.B())},g.bu=function(a,b,c){a=Ia(this.n,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.n===a||(this.n=a,this.B())},g.ju=function(a,b){var c=Math.atan2(b-this.y, +a-this.x);isNaN(c)||this.n===c||(this.n=c,this.B())},l.qt=function(a){a.R(Ea(this.n))});p||(a.ep=function(a,b,c){return Qb(this.Pa[a],b,c)},a.lp=function(a){return this.Pa[a]},a.Wt=function(a,b){var c=this.ma(),e=c.Cc();if(!e.length)return!1;var g=e[0],f=g,d=g.Pa[b],h,l,n;h=1;for(l=e.length;hd)d=n,f=g;c.fh(f);return!0},a.Ut=function(a){var b,c,e,g,f;if(this.b.Am().rk){f=this.ma();if(f.Da)for(f.Da=!1,U(f.j),U(f.U),e=this.j,b=0,c=e.length;ba?a=0:1g.k.index||e.k.index===g.k.index&&e.Wc()>g.Wc())g=e}else if(e.k.indexc)){var e=1===a;this.Qd[c]!==e&&(this.Qd[c]=e,this.Pc(),this.b.ea=!0)}}},g.eu=function(a,b,c){if(this.b.A){var e=this.type.ek(a);0>e||(a=this.type.K[e],e=this.Ba[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.A.Nr(a.Na,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.gb&&(this.b.ea=!0))))}})};wb=function(){this.Ej=this.Aj=!0;this.type.Gh=!0;this.b.ea=!0;var d,h,p=this.Bj;d=0;for(h= +p.length;dp;case 5:return d>=p;default:return!1}}})();var Zb={};function dc(d){this.b=d} +(function(){function d(){}var q=dc.prototype;q.ra=function(d){this.Ja=d;this.b=d.b};q.ra.prototype.S=function(){};q.fa=function(d){this.type=d;this.b=d.b;this.Ff=Array(256);this.Ah=Array(256);this.Kd=0};var h=q.fa.prototype;h.S=function(){var d=this;this.b.Ha||(jQuery(document).keydown(function(h){d.Pk(h)}),jQuery(document).keyup(function(h){d.Qk(h)}))};var p=[32,33,34,35,36,37,38,39,40,44];h.Pk=function(d){var h=!1;window!=window.top&&-1d;++d)if(this.Ff[d]){this.Ff[d]=!1;this.Kd=d;this.b.trigger(dc.prototype.q.Rl,this);var h=this.b.trigger(dc.prototype.q.Vl,this),f=this.b.trigger(dc.prototype.q.Ul,this);if(h||f)this.Ah[d]=!0}};h.eb=function(){return{triggerKey:this.Kd}};h.xb=function(d){this.Kd=d.triggerKey};d.prototype.op=function(d){return this.Ff[d]};d.prototype.Tl=function(d){return d===this.Kd};d.prototype.vp=function(){return!0}; +d.prototype.Rl=function(){return!0};d.prototype.Vl=function(d){return d===this.Kd};d.prototype.Bp=function(d){return d===this.Kd};d.prototype.Ul=function(d){return d===this.Kd};q.q=new d;q.W=new function(){};q.wb=new function(){}})();function cc(d){this.b=d} +(function(){function d(){if(0===this.Oj.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Tf?a.drawImage(this.Z,this.Mf,this.Nf,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.Z,0,0,this.width,this.height);this.Oj=b.toDataURL("image/png")}return this.Oj}function q(){}function h(){}var p=cc.prototype;p.ra=function(b){this.Ja=b;this.b=b.b};var n=p.ra.prototype;n.S=function(){if(!this.J){var b,a,e,f,k,h,n,r,m;this.wc= +[];this.Bg=!1;b=0;for(a=this.Cb.length;bthis.D&&(this.D=0);this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1);var b=this.ta.frames[this.D];this.aa.qh(b.Si);this.Fb=b.Fb;this.Gb=b.Gb;this.pg=this.ta.speed;this.Zd=this.ta.jl;this.Zb?this.Sc.reset():this.Sc=new Sa;this.nd=this.Sc.X;this.we=!0;this.fd= +0;this.ve=!0;this.Ij=this.cm="";this.iq=0;this.Hj=-1;this.type.Ik();var a,e,f,d,h,n,r,b=0;for(a=this.type.Cb.length;bthis.D&&(this.D=0);this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1);this.pg=b.cas;this.nd=b.fs;this.fd=b.ar;this.Sc.reset();this.Sc.X=b.at;this.we=b.hasOwnProperty("ap")?b.ap:!0;this.ve=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.Zd=b.rt:this.Zd=this.ta.jl;this.mc=this.ta.frames[this.D]; +this.Th=this.mc.qa;this.aa.qh(this.mc.Si);this.Fb=this.mc.Fb;this.Gb=this.mc.Gb};f.yj=function(b){this.D=b?0:this.ta.frames.length-1;this.we=!1;this.cm=this.ta.name;this.b.trigger(cc.prototype.q.up,this);this.b.trigger(cc.prototype.q.tp,this);this.fd=0};f.zj=function(){return this.Sc.X};f.Mb=function(){this.Sc.add(this.b.ug(this));this.Ij.length&&this.rq();0<=this.Hj&&this.sq();var b=this.Sc.X,a=this.ta,e=a.frames[this.D],f=e.duration/this.pg;this.we&&b>=this.nd+f&&(this.ve?this.D++:this.D--,this.nd+= +f,this.D>=a.frames.length&&(a.Yn?(this.ve=!1,this.D=a.frames.length-2):a.loop?this.D=this.Zd:(this.fd++,this.fd>=a.il?this.yj(!1):this.D=this.Zd)),0>this.D&&(a.Yn?(this.D=1,this.ve=!0,a.loop||(this.fd++,this.fd>=a.il&&this.yj(!0))):a.loop?this.D=this.Zd:(this.fd++,this.fd>=a.il?this.yj(!0):this.D=this.Zd)),0>this.D?this.D=0:this.D>=a.frames.length&&(this.D=a.frames.length-1),b>this.nd+a.frames[this.D].duration/this.pg&&(this.nd=b),b=a.frames[this.D],this.lf(e,b),this.b.ea=!0)};f.zm=function(b){var a, +e,f;a=0;for(e=this.type.Cb.length;athis.D&&(this.D=0),this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1),1===this.iq&&(this.D=0),this.we=!0,this.nd=this.Sc.X, +this.ve=!0,this.lf(b,this.ta.frames[this.D]),this.b.ea=!0)};f.sq=function(){var b=this.ta.frames[this.D],a=this.D;this.D=O(this.Hj);0>this.D&&(this.D=0);this.D>=this.ta.frames.length&&(this.D=this.ta.frames.length-1);a!==this.D&&(this.lf(b,this.ta.frames[this.D]),this.nd=this.Sc.X,this.b.ea=!0);this.Hj=-1};f.lf=function(b,a){var e=b.width,f=b.height,d=a.width,h=a.height;e!=d&&(this.width*=d/e);f!=h&&(this.height*=h/f);this.Fb=a.Fb;this.Gb=a.Gb;this.aa.qh(a.Si);this.B();this.mc=a;this.Th=a.qa;e=0; +for(f=this.I.length;ed||d>=f.length)return a?this.x:this.y;var h=(f[d][1]-e.Fb)*this.width,f=f[d][2],f=(f-e.Gb)*this.height,e=Math.cos(this.n);d=Math.sin(this.n);var n=h*e-f*d,f=f*e+h*d,h=n+this.x,f=f+this.y;return a?h:f};var b=new ba,e=!1;new T(0,0,0,0);n.finish= +function(c){if(e){if(c){var a=this.b.Eb().fc.Zc;c=null.ma();var f=b.Ld(),d,h;if(c.Da){c.Da=!1;U(c.j);d=0;for(h=f.length;db.za||c.top>b.ya)this.b.A.deleteTexture(this.Xb),this.Yc=this.Xe=this.Xb=null}};r.yd=function(){this.Yc=this.Xe=null;this.b.A&& +this.Xb&&this.b.A.deleteTexture(this.Xb);this.Xb=null};r.zj=function(){this.font=this.ei+" "+this.ih.toString()+"pt "+this.tf;this.ff=!0;this.b.ea=!0};r.Bc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=this.k.Vb(),b.save(),b.scale(a,a));if(this.ff||this.width!==this.Dk)this.type.Ja.Yp(this.text,this.le,b,this.width,this.Ol),this.ff=!1,this.Dk=this.width;this.wa();var a=c?0:this.ub.Wa,f=c?0:this.ub.Xa;this.b.Hc&&(a=a+.5|0,f= +f+.5|0);0===this.n||c||(b.save(),b.translate(a,f),b.rotate(this.n),f=a=0);var d=f+this.height,h=this.dl,h=h+this.Fk,n,r;1===this.pj?f+=Math.max(this.height/2-this.le.length*h/2,0):2===this.pj&&(f+=Math.max(this.height-this.le.length*h-2,0));for(r=0;r=d-h);r++);(0!==this.n||c)&&b.restore();this.Sg=this.b.Id};r.Db=function(b){if(!(1>this.width|| +1>this.height)){var c=this.ff||this.Nn;this.Nn=!1;var a=this.k.Vb(),f=this.k.Ub(),d=this.qe,h=a*this.width,n=a*this.height,r=Math.ceil(h),p=Math.ceil(n),m=this.b.H/2,q=this.b.G/2;this.Xe||(this.Yc=document.createElement("canvas"),this.Yc.width=r,this.Yc.height=p,this.wi=r,this.vi=p,c=!0,this.Xe=this.Yc.getContext("2d"));if(r!==this.wi||p!==this.vi)this.Yc.width=r,this.Yc.height=p,this.Xb&&(b.deleteTexture(this.Xb),this.Xb=null),c=!0;c&&(this.Xe.clearRect(0,0,r,p),this.Bc(this.Xe,!0),this.Xb||(this.Xb= +b.ec(r,p,this.b.Q,this.b.Oe)),b.nt(this.Yc,this.Xb,this.b.Oe));this.wi=r;this.vi=p;b.$b(this.Xb);b.$e(this.opacity);b.qc();b.translate(-m,-q);b.kc();var J=this.ub,c=this.k.ia(J.Wa,J.Xa,!0,!0),m=this.k.ia(J.Wa,J.Xa,!1,!0),q=this.k.ia(J.sb,J.tb,!0,!0),P=this.k.ia(J.sb,J.tb,!1,!0),M=this.k.ia(J.kb,J.lb,!0,!0),B=this.k.ia(J.kb,J.lb,!1,!0),A=this.k.ia(J.ib,J.jb,!0,!0),J=this.k.ia(J.ib,J.jb,!1,!0);if(this.b.Hc||0===this.n&&0===f)var x=(c+.5|0)-c,E=(m+.5|0)-m,c=c+x,m=m+E,q=q+x,P=P+E,M=M+x,B=B+E,A=A+x,J= +J+E;0===this.n&&0===f?(q=c+r,P=m,M=q,B=m+p,A=c,J=B,d.right=1,d.bottom=1):(d.right=h/r,d.bottom=n/p);b.ad(c,m,q,P,M,B,A,J,d);b.qc();b.scale(a,a);b.Xi(-this.k.Ub());b.translate((this.k.na+this.k.za)/-2,(this.k.oa+this.k.ya)/-2);b.kc();this.Sg=this.b.Id}};var f=[];n.Vp=function(b){U(f);for(var c="",a,d=0;d=f)q(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var k=a.measureText(b).width;if(k<=f){q(c);c.push(d());c[0].text=b;c[0].width=k;return}}this.Zp(b,c,a,f,h)}else q(c)};n.Zp=function(e,c,a,g,n){n&&(this.Vp(e),e=f);var k="",r,p,q,m=0;for(q=0;q=c.length&&c.push(d()),k=h(k),p=c[m],p.text=k,p.width=a.measureText(k).width,m++,k=""):(r=k,k+=e[q],p=a.measureText(k).width, +p>=g&&(m>=c.length&&c.push(d()),r=h(r),p=c[m],p.text=r,p.width=a.measureText(r).width,m++,k=e[q],n||" "!==k||(k="")));k.length&&(m>=c.length&&c.push(d()),k=h(k),p=c[m],p.text=k,p.width=a.measureText(k).width,m++);for(q=m;qb&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.ff=!0,this.b.ea=!0)};n.W=new p;n.wb=new function(){}})();function fc(d){this.b=d} +(function(){var d=fc.prototype;d.ra=function(d){this.Ja=d;this.b=d.b};var q=d.ra.prototype;q.S=function(){this.J||(this.Z=new Image,this.Z.mm=this.zl,this.b.Wo(this.Z,this.yl),this.qa=this.pattern=null)};q.Qi=function(){this.J||(this.qa=null)};q.Sk=function(){if(!this.J&&this.j.length){this.qa||(this.qa=this.b.A.Di(this.Z,!0,this.b.Q,this.Al));var d,p;d=0;for(p=this.j.length;db&&(b+=this.Z.width);0>e&&(e+=this.Z.height);d.translate(p,n);d.rotate(this.n);d.translate(b,e);d.fillRect(r-b,f-e,this.width,this.height);d.restore()};q.De=function(d){this.Db(d)}; +q.Db=function(d){d.$b(this.qa);d.$e(this.opacity);var p=this.qe;p.right=this.width/this.Z.width;p.bottom=this.height/this.Z.height;var n=this.ub;if(this.b.Hc){var r=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;d.ad(n.Wa+r,n.Xa+f,n.sb+r,n.tb+f,n.kb+r,n.lb+f,n.ib+r,n.jb+f,p)}else d.ad(n.Wa,n.Xa,n.sb,n.tb,n.kb,n.lb,n.ib,n.jb,p)};d.q=new function(){};d.W=new function(){};d.wb=new function(){}})();function gc(d){this.b=d} +(function(){function d(){}function q(){}var h=gc.prototype;h.ra=function(d){this.Ja=d;this.b=d.b};h.ra.prototype.S=function(){};h.fa=function(d){this.type=d;this.b=d.b};var p=h.fa.prototype;p.S=function(){this.b.Ha?v("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.ja=document.createElement("progress"),this.value=this.F[0],this.max=this.F[1],0=b||0>=e||h>=c||f>=a?(this.Fe||jQuery(this.ja).hide(),this.Fe=!0):(1>h&&(h=1),1>f&&(f=1),b>=c&&(b=c-1),e>=a&&(e=a-1),c=window.innerWidth,a=window.innerHeight,d||this.dn!==h||this.kn!==f||this.hn!==b||this.bn!==e||this.mn!==c||this.ln!==a?(this.dn=h,this.kn=f,this.hn=b,this.bn=e,this.mn=c,this.ln=a,this.Fe&&(jQuery(this.ja).show(),this.Fe=!1),d=Math.round(h)+ +jQuery(this.b.canvas).offset().left,c=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.ja).css("position","absolute"),jQuery(this.ja).offset({left:d,top:c}),jQuery(this.ja).width(Math.round(b-h)),jQuery(this.ja).height(Math.round(e-f))):this.Fe&&(jQuery(this.ja).show(),this.Fe=!1))}};p.Bc=function(){};p.Db=function(){};d.prototype.xp=function(){return!0};h.q=new d;q.prototype.Rp=function(d){this.b.Ha||(this.visible=0!==d)};q.prototype.Np=function(d){this.b.Ha||(this.value=d,this.ja.max= +this.max,this.ja.value=this.value)};h.W=new q;h.wb=new function(){}})();function hc(d){this.b=d} +(function(){function d(){}function q(){}var h=hc.prototype;h.ra=function(d){this.behavior=d;this.b=d.b};h.ra.prototype.S=function(){};h.fa=function(d,h){this.type=d;this.behavior=d.behavior;this.e=h;this.b=d.b};var p=h.fa.prototype;p.S=function(){this.Ia=null;this.Ri=-1;this.mode=this.Gf=this.jj=this.Lf=this.Cd=this.gh=0;var d=this;this.Zb||(this.bh=function(h){d.Ok(h)});this.b.Zl(this.bh)};p.eb=function(){return{uid:this.Ia?this.Ia.uid:-1,pa:this.gh,pd:this.Cd,msa:this.Lf,tsa:this.jj,lka:this.Gf, +m:this.mode}};p.xb=function(d){this.Ri=d.uid;this.gh=d.pa;this.Cd=d.pd;this.Lf=d.msa;this.jj=d.tsa;this.Gf=d.lka;this.mode=d.m};p.Rc=function(){-1===this.Ri?this.Ia=null:this.Ia=this.b.vg(this.Ri);this.Ri=-1};p.Ok=function(d){this.Ia==d&&(this.Ia=null)};p.yd=function(){this.Ia=null;this.b.ko(this.bh)};p.Mb=function(){};p.yh=function(){if(this.Ia){this.Gf!==this.e.n&&(this.Lf=Da(this.Lf+(this.e.n-this.Gf)));var d=this.e.x,h=this.e.y;if(3===this.mode||4===this.mode){var f=Ka(this.e.x,this.e.y,this.Ia.x, +this.Ia.y);if(f>this.Cd||4===this.mode&&fthis.od&&(this.Fa*=-1,this.Ga*=-1,this.od=Math.abs(this.od))};p.S=function(){this.Kf=this.F[0];this.nf=this.F[1];this.qf=this.F[2];this.Ng=this.F[3];this.bk=this.od=this.F[4];this.Ki=this.F[5];this.Sj=0!==this.F[6];this.Ak=this.F[7]/1E3;this.oq=1===this.F[8];this.enabled=0!==this.F[9];this.ag=!1;this.bg=this.b.ed(this.e);this.Hk=-1;this.ef=0;this.wf=V(90); +this.Ro();var d=this;this.oq&&!this.b.Ha&&(jQuery(document).keydown(function(h){d.Pk(h)}),jQuery(document).keyup(function(h){d.Qk(h)}));this.Zb||(this.bh=function(h){d.Ok(h)});this.b.Zl(this.bh);this.e.L.isPlatformBehavior=!0};p.eb=function(){return{ii:this.mk,lfx:this.Pe,lfy:this.Qe,lfo:this.Ib?this.Ib.uid:-1,am:this.xc,en:this.enabled,fall:this.de,ft:this.ci,dx:this.N,dy:this.ba,ms:this.Kf,acc:this.nf,dec:this.qf,js:this.Ng,g:this.od,g1:this.bk,mf:this.Ki,wof:this.ag,woj:this.bg?this.bg.uid:-1, +ga:this.wf,edj:this.Sj,cdj:this.ig,dj:this.qg,sus:this.Ak}};p.xb=function(d){this.mk=d.ii;this.Pe=d.lfx;this.Qe=d.lfy;this.Gk=d.lfo;this.xc=d.am;this.enabled=d.en;this.de=d.fall;this.ci=d.ft;this.N=d.dx;this.ba=d.dy;this.Kf=d.ms;this.nf=d.acc;this.qf=d.dec;this.Ng=d.js;this.od=d.g;this.bk=d.g1;this.Ki=d.mf;this.ag=d.wof;this.Hk=d.woj;this.wf=d.ga;this.Sj=d.edj;this.ig=d.cdj;this.qg=d.dj;this.Ak=d.sus;this.uh=this.cj=this.bj=this.Df=this.Ef=this.nh=this.Tg=!1;this.ef=0;this.Ro()};p.Rc=function(){-1=== +this.Gk?this.Ib=null:this.Ib=this.b.vg(this.Gk);-1===this.Hk?this.bg=null:this.bg=this.b.vg(this.Hk)};p.Ok=function(d){this.Ib==d&&(this.Ib=null)};p.yd=function(){this.Ib=null;this.b.ko(this.bh)};p.Pk=function(d){switch(d.which){case 38:d.preventDefault();this.Ef=!0;break;case 37:d.preventDefault();this.Tg=!0;break;case 39:d.preventDefault(),this.nh=!0}};p.Qk=function(d){switch(d.which){case 38:d.preventDefault();this.Df=this.Ef=!1;break;case 37:d.preventDefault();this.Tg=!1;break;case 39:d.preventDefault(), +this.nh=!1}};p.Ze=function(){this.Ef=this.nh=this.Tg=!1};p.zj=function(){return 0>this.od?-1:1};p.Um=function(){var d=null,h=null,f,b;f=this.e.x;b=this.e.y;this.e.x+=this.Fa;this.e.y+=this.Ga;this.e.B();if(this.Ib&&this.b.jc(this.e,this.Ib))return this.e.x=f,this.e.y=b,this.e.B(),this.Ib;(d=this.b.rb(this.e))||0!==this.de||(h=this.b.ed(this.e,!0));this.e.x=f;this.e.y=b;this.e.B();if(d){if(this.b.jc(this.e,d))return null;this.di=!1;return d}if(h&&h.length){b=d=0;for(f=h.length;dthis.Ki&&(this.ba=this.Ki)),q&&(this.Df=!0));this.ag=!!z;p==b&&(0>this.N?(this.N+=this.qf*d,0this.N&&(this.N=0)));p&&!b&&(this.N=0this.N?this.N+(this.nf+this.qf)*d:this.N+this.nf*d);this.N>this.Kf?this.N=this.Kf:this.N<-this.Kf&&(this.N=-this.Kf);p=!1;0!==this.N&&(l=this.e.x,k=this.e.y,h=this.N*d*this.Dd,f=this.N*d*this.Ed,this.e.x+= +this.Dd*(1this.N?1:-1),this.Ed*(0>this.N?1: +-1),h,!1)?!z||e||this.di||(l=this.e.x,k=this.e.y,this.e.x+=this.Fa,this.e.y+=this.Ga,this.b.rb(this.e)?this.b.Lc(this.e,-this.Fa,-this.Ga,3,!1)||(this.e.x=l,this.e.y=k,this.e.B()):(this.e.x=l,this.e.y=k,this.e.B())):(this.e.x=l,this.e.y=k,this.e.B()),e||(this.N=0)):!c&&!q&&Math.abs(this.ba)this.ba?1:-1),this.Ga*(0>this.ba?1:-1),h,e,f)?(this.Ib=f,this.Pe=f.x,this.Qe=f.y,(this.di=e)&&(p=!0),this.ba=0):(this.e.x=l,this.e.y=k,this.e.B(),this.ag=!0,e||(this.ba=0)))}3!==this.xc&&0this.e.opacity?this.e.opacity=0:1=p.duration&&(p.jo?p.current.X-=p.duration:delete this.Nb[d]))};d.q=new function(){};d.W=new function(){};d.wb=new function(){}})();function bc(d){this.b=d} +(function(){var d=bc.prototype;d.ra=function(d){this.behavior=d;this.b=d.b};d.ra.prototype.S=function(){};d.fa=function(d,p){this.type=d;this.behavior=d.behavior;this.e=p;this.b=d.b};var q=d.fa.prototype;q.S=function(){this.e.L.jumpthruEnabled=0!==this.F[0]};q.Mb=function(){};d.q=new function(){};d.W=new function(){}})();function lc(d){this.b=d;this.sl=this.aj=this.sh=this.rl=0} +(function(){var d=lc.prototype;d.ra=function(d){this.behavior=d;this.b=d.b};d.ra.prototype.S=function(){};d.fa=function(d,p){this.type=d;this.behavior=d.behavior;this.e=p;this.b=d.b};var q=d.fa.prototype;q.S=function(){this.enabled=0!==this.F[0]};q.eb=function(){return{smg:this.behavior.rl,ss:this.behavior.sh,se:this.behavior.aj,smd:this.behavior.sl}};q.xb=function(d){this.behavior.rl=d.smg;this.behavior.sh=d.ss;this.behavior.aj=d.se;this.behavior.sl=d.smd};q.Mb=function(){};q.yh=function(){if(this.enabled){var d= +this.behavior.Mi.Ld(),p=0,n=0,q,f,b,e=0;q=0;for(f=d.length;q=this.behavior.sh&&f + + + + + New project + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + +

Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. What is a browser? +

Microsoft Internet Explorer
+ Mozilla Firefox
+ Google Chrome
+ Apple Safari
+ Google Chrome Frame for Internet Explorer

+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/jquery-2.1.1.min.js b/jquery-2.1.1.min.js new file mode 100644 index 0000000..e150866 --- /dev/null +++ b/jquery-2.1.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.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]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.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"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b) +},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("