From 510819920dd754f7cafe1e63a55bced09482cabd Mon Sep 17 00:00:00 2001 From: LEGALISE_PIRACY Date: Tue, 30 Jan 2024 01:09:00 +0000 Subject: [PATCH] Upload files to "flappyduck" --- flappyduck/c2runtime.js | 394 +++++++++++++++++++++++++++++++++ flappyduck/index.html | 113 ++++++++++ flappyduck/jquery-2.0.0.min.js | 5 + flappyduck/loading-logo.png | Bin 0 -> 9375 bytes 4 files changed, 512 insertions(+) create mode 100644 flappyduck/c2runtime.js create mode 100644 flappyduck/index.html create mode 100644 flappyduck/jquery-2.0.0.min.js create mode 100644 flappyduck/loading-logo.png diff --git a/flappyduck/c2runtime.js b/flappyduck/c2runtime.js new file mode 100644 index 00000000..242334df --- /dev/null +++ b/flappyduck/c2runtime.js @@ -0,0 +1,394 @@ +// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com +'use strict';function z(){return function(){}}function B(b){return function(){return this[b]}}function G(b){return function(){return b}}var aa,ba,L,ca,fa,P,ga,ha,ia,ja,ka,la,ma,T,na,oa,pa,qa,ra,sa,ta,xa,ya,U,za,Aa,Ba,Ca,Da,Ea,Ga,Ha,Ia,Ma,Na,Oa,Pa,Qa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb={}; +"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype}); +(function(){function b(n,c,k,m){this.set(n,c,k,m)}function l(){this.qb=this.pb=this.sb=this.rb=this.xb=this.wb=this.Ha=this.Ga=0}function a(n,c,k,m){nm?c:m):(t=nk?c:k):km?n:m):(t=ck?n:k)}function q(){this.ed=this.ld=null;this.Dg=0;s?this.ld=new Set:this.ed={};this.cf=[];this.xe=!0}function e(n){u[c++]=n}function d(){this.Sa=this.hj=this.y=this.Mj=0}function f(n){this.Wa=[];this.Bh=this.Dh=this.Eh=this.Ch=0;this.jh(n)}function r(n,c){this.Fq= +n;this.Eq=c;this.cells={}}function h(n,c,m){var d;return k.length?(d=k.pop(),d.os=n,d.x=c,d.y=m,d):new aa(n,c,m)}function g(n,c,k){this.os=n;this.x=c;this.y=k;this.Wg=new ba}L=function(n){window.console&&window.console.log&&window.console.log(n)};ca=function(n){return"undefined"===typeof n};fa=function(n){return"number"===typeof n};P=function(n){return"string"===typeof n};ga=function(n){return 0c;c<<=1)n|=n>>c;return n+1};ia=function(n){return 0> +n?-n:n};ja=function(n,c){return n>c?n:c};ka=function(n,c){return ng)return!1;cg)return!1;r=d-n+e-k;h=f-c+a-m;n=k-n;c=m-c;d=e-d;f=a-f;a=ia(c*d-f*n);return ia(d*h-f*r)>a?!1:ia(n*h-c*r)<=a};b.prototype.set=function(n, +c,k,m){this.left=n;this.top=c;this.right=k;this.bottom=m};b.prototype.copy=function(n){this.left=n.left;this.top=n.top;this.right=n.right;this.bottom=n.bottom};b.prototype.width=function(){return this.right-this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(n,c){this.left+=n;this.top+=c;this.right+=n;this.bottom+=c;return this};b.prototype.normalize=function(){var n=0;this.left>this.right&&(n=this.left,this.left=this.right,this.right=n);this.top>this.bottom&& +(n=this.top,this.top=this.bottom,this.bottom=n)};b.prototype.ws=function(n){return!(n.rightthis.right||n.top>this.bottom)};b.prototype.xs=function(n,c,k){return!(n.right+cthis.right||n.top+k>this.bottom)};b.prototype.Ob=function(n,c){return n>=this.left&&n<=this.right&&c>=this.top&&c<=this.bottom};b.prototype.fr=function(n){return this.left===n.left&&this.top===n.top&&this.right===n.right&&this.bottom===n.bottom};pa=b; +l.prototype.ih=function(n){this.Ga=n.left;this.Ha=n.top;this.wb=n.right;this.xb=n.top;this.rb=n.right;this.sb=n.bottom;this.pb=n.left;this.qb=n.bottom};l.prototype.Ko=function(n,c){if(0===c)this.ih(n);else{var k=Math.sin(c),m=Math.cos(c),d=n.left*k,f=n.top*k,e=n.right*k,k=n.bottom*k,a=n.left*m,r=n.top*m,h=n.right*m,m=n.bottom*m;this.Ga=a-f;this.Ha=r+d;this.wb=h-f;this.xb=r+e;this.rb=h-k;this.sb=m+e;this.pb=a-k;this.qb=m+d}};l.prototype.offset=function(n,c){this.Ga+=n;this.Ha+=c;this.wb+=n;this.xb+= +c;this.rb+=n;this.sb+=c;this.pb+=n;this.qb+=c;return this};var t=0,p=0;l.prototype.Am=function(n){a(this.Ga,this.wb,this.rb,this.pb);n.left=t;n.right=p;a(this.Ha,this.xb,this.sb,this.qb);n.top=t;n.bottom=p};l.prototype.Ob=function(n,c){var k=this.wb-this.Ga,m=this.xb-this.Ha,d=this.rb-this.Ga,f=this.sb-this.Ha,e=n-this.Ga,a=c-this.Ha,r=k*k+m*m,h=k*d+m*f,m=k*e+m*a,g=d*d+f*f,b=d*e+f*a,p=1/(r*g-h*h),k=(g*m-h*b)*p,r=(r*b-h*m)*p;if(0<=k&&0k+r)return!0;k=this.pb-this.Ga;m=this.qb-this.Ha;r=k*k+m* +m;h=k*d+m*f;m=k*e+m*a;p=1/(r*g-h*h);k=(g*m-h*b)*p;r=(r*b-h*m)*p;return 0<=k&&0k+r};l.prototype.Pd=function(n,c){if(c)switch(n){case 0:return this.Ga;case 1:return this.wb;case 2:return this.rb;case 3:return this.pb;case 4:return this.Ga;default:return this.Ga}else switch(n){case 0:return this.Ha;case 1:return this.xb;case 2:return this.sb;case 3:return this.qb;case 4:return this.Ha;default:return this.Ha}};l.prototype.Sn=function(){return(this.Ga+this.wb+this.rb+this.pb)/4};l.prototype.Tn=function(){return(this.Ha+ +this.xb+this.sb+this.qb)/4};l.prototype.on=function(n){var c=n.Sn(),k=n.Tn();if(this.Ob(c,k))return!0;c=this.Sn();k=this.Tn();if(n.Ob(c,k))return!0;var m,d,f,e,a,r,h,g;for(h=0;4>h;h++)for(g=0;4>g;g++)if(c=this.Pd(h,!0),k=this.Pd(h,!1),m=this.Pd(h+1,!0),d=this.Pd(h+1,!1),f=n.Pd(g,!0),e=n.Pd(g,!1),a=n.Pd(g+1,!0),r=n.Pd(g+1,!1),oa(c,k,m,d,f,e,a,r))return!0;return!1};qa=l;ra=function(n,c){for(var k in c)c.hasOwnProperty(k)&&(n[k]=c[k]);return n};sa=function(n,c){var k,m;c=T(c);if(!(0>c||c>=n.length))if(0=== +c)n.shift();else if(c===n.length-1)n.pop();else{k=c;for(m=n.length-1;kn&&(n+=360);return n};Ba=function(n){n%=2*la;0>n&&(n+=2*la);return n};Ca=function(n){return Aa(za(n))};Da=function(n){return Ba(U(n))};Ea= +function(n,c,k,m){return Math.atan2(m-c,k-n)};Ga=function(n,c){if(n===c)return 0;var k=Math.sin(n),m=Math.cos(n),d=Math.sin(c),f=Math.cos(c),k=k*d+m*f;return 1<=k?0:-1>=k?la:Math.acos(k)};Ha=function(n,c,k){var m=Math.sin(n),d=Math.cos(n),f=Math.sin(c),e=Math.cos(c);return Math.acos(m*f+d*e)>k?0=m*d-k*f};Ma=function(n,c,k,m,d,f){if(0===k)return f?n:c;var e=Math.sin(k);k=Math.cos(k); +n-=m;c-=d;var a=n*e;n=n*k-c*e;c=c*k+a;return f?n+m:c+d};Na=function(n,c,k,m){n=k-n;c=m-c;return Math.sqrt(n*n+c*c)};Oa=function(n,c){return!n!==!c};Pa=function(n){for(var c in n)if(n.hasOwnProperty(c))return!0;return!1};Qa=function(n){for(var c in n)n.hasOwnProperty(c)&&delete n[c]};var v=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var c=window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!== +typeof c.mozNow)return c.mozNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()-v};var s="undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(c){return s?this.ld.has(c):this.ed.hasOwnProperty(c.toString())};q.prototype.add=function(c){if(s)this.ld.has(c)||(this.ld.add(c),this.xe=!1);else{var k=c.toString();this.ed.hasOwnProperty(k)||(this.ed[k]=c,this.Dg++,this.xe=!1)}return this};q.prototype.remove=function(c){s?this.ld.has(c)&&(this.ld["delete"](c), +this.xe=!1):(c=c.toString(),this.ed.hasOwnProperty(c)&&(delete this.ed[c],this.Dg--,this.xe=!1));return this};q.prototype.clear=function(){s?this.ld.clear():(this.ed={},this.Dg=0);this.cf.length=0;this.xe=!0;return this};q.prototype.Xd=function(){return s?0===this.ld.size:0===this.Dg};var u=null,c=0;q.prototype.Mt=function(){if(!this.xe){if(s)this.cf.length=this.ld.size,u=this.cf,c=0,this.ld.forEach(e),u=null,c=0;else{this.cf.length=this.Dg;var n,k=0;for(n in this.ed)this.ed.hasOwnProperty(n)&&(this.cf[k++]= +this.ed[n])}this.xe=!0}};q.prototype.Vf=function(){this.Mt();return this.cf};ba=q;d.prototype.add=function(c){this.y=c-this.Mj;this.hj=this.Sa+this.y;this.Mj=this.hj-this.Sa-this.y;this.Sa=this.hj};d.prototype.reset=function(){this.Sa=this.hj=this.y=this.Mj=0};Va=d;Wa=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.jh=function(c){this.xo=c;this.Sc=c.length/2;this.Wa.length=c.length;this.Gh=this.Hh=-1;this.Cm=0};f.prototype.vf=function(){return!this.xo.length};f.prototype.Ca= +function(){for(var c=this.Wa,k=c[0],m=k,d=c[1],f=d,e,a,r=1,h=this.Sc;rm&&(m=e),af&&(f=a);this.Ch=k;this.Dh=m;this.Eh=d;this.Bh=f};f.prototype.ih=function(c,k,m){this.Wa.length=8;this.Sc=4;var d=this.Wa;d[0]=c.left-k;d[1]=c.top-m;d[2]=c.right-k;d[3]=c.top-m;d[4]=c.right-k;d[5]=c.bottom-m;d[6]=c.left-k;d[7]=c.bottom-m;this.Hh=c.right-c.left;this.Gh=c.bottom-c.top;this.Ca()};f.prototype.Of=function(c,k,m,d,f){this.Wa.length=8;this.Sc=4;var e=this.Wa; +e[0]=c.Ga-k;e[1]=c.Ha-m;e[2]=c.wb-k;e[3]=c.xb-m;e[4]=c.rb-k;e[5]=c.sb-m;e[6]=c.pb-k;e[7]=c.qb-m;this.Hh=d;this.Gh=f;this.Ca()};f.prototype.Jo=function(c){this.Sc=c.Sc;ta(this.Wa,c.Wa);this.Ch=c.Ch;this.Eh-c.Eh;this.Dh=c.Dh;this.Bh=c.Bh};f.prototype.jf=function(c,k,m){if(this.Hh!==c||this.Gh!==k||this.Cm!==m){this.Hh=c;this.Gh=k;this.Cm=m;var d,f,e,a,r,h=0,g=1,b=this.xo,p=this.Wa;0!==m&&(h=Math.sin(m),g=Math.cos(m));m=0;for(e=this.Sc;mk.length&&k.push(h),this.cells[f][a]=null);if(d)for(f=d.left,e=d.right;f<=e;++f)for(a=d.top,r=d.bottom;a<=r;++a)m&&m.Ob(f,a)||this.jk(f,a,!0).vs(c)};r.prototype.Ao=function(c,k){var m,d,f,e,a,r;m=this.wh(c.left);f=this.xh(c.top);d=this.wh(c.right);for(a=this.xh(c.bottom);m<=d;++m)for(e=f;e<=a;++e)(r=this.jk(m,e,!1))&&r.br(k)};Ya=r;var k=[];g.prototype.Xd=function(){return this.Wg.Xd()}; +g.prototype.vs=function(c){this.Wg.add(c)};g.prototype.remove=function(c){this.Wg.remove(c)};g.prototype.br=function(c){xa(c,this.Wg.Vf())};aa=g;var m="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(c){return 0>=c||11<=c?"source-over":m[c-1]};$a=function(c,k,m){if(m)switch(c.ub=m.ONE,c.tb=m.ONE_MINUS_SRC_ALPHA,k){case 1:c.ub=m.ONE;c.tb=m.ONE;break;case 3:c.ub=m.ONE;c.tb=m.ZERO;break;case 4:c.ub=m.ONE_MINUS_DST_ALPHA; +c.tb=m.ONE;break;case 5:c.ub=m.DST_ALPHA;c.tb=m.ZERO;break;case 6:c.ub=m.ZERO;c.tb=m.SRC_ALPHA;break;case 7:c.ub=m.ONE_MINUS_DST_ALPHA;c.tb=m.ZERO;break;case 8:c.ub=m.ZERO;c.tb=m.ONE_MINUS_SRC_ALPHA;break;case 9:c.ub=m.DST_ALPHA;c.tb=m.ONE_MINUS_SRC_ALPHA;break;case 10:c.ub=m.ONE_MINUS_DST_ALPHA,c.tb=m.SRC_ALPHA}};ab=function(c){return ma(1E6*c)/1E6};bb=function(c,k){return"string"!==typeof c||"string"!==typeof k||c.length!==k.length?!1:c===k?!0:c.toLowerCase()===k.toLowerCase()}})(); +var Xb="undefined"!==typeof Float32Array?Float32Array:Array;function Yb(b){var l=new Xb(3);b&&(l[0]=b[0],l[1]=b[1],l[2]=b[2]);return l}function Zb(b){var l=new Xb(16);b&&(l[0]=b[0],l[1]=b[1],l[2]=b[2],l[3]=b[3],l[4]=b[4],l[5]=b[5],l[6]=b[6],l[7]=b[7],l[8]=b[8],l[9]=b[9],l[10]=b[10],l[11]=b[11],l[12]=b[12],l[13]=b[13],l[14]=b[14],l[15]=b[15]);return l} +function $b(b,l){l[0]=b[0];l[1]=b[1];l[2]=b[2];l[3]=b[3];l[4]=b[4];l[5]=b[5];l[6]=b[6];l[7]=b[7];l[8]=b[8];l[9]=b[9];l[10]=b[10];l[11]=b[11];l[12]=b[12];l[13]=b[13];l[14]=b[14];l[15]=b[15]}function ac(b,l){var a=l[0],q=l[1];l=l[2];b[0]*=a;b[1]*=a;b[2]*=a;b[3]*=a;b[4]*=q;b[5]*=q;b[6]*=q;b[7]*=q;b[8]*=l;b[9]*=l;b[10]*=l;b[11]*=l} +function bc(b,l,a,q){q||(q=Zb());var e,d,f,r,h,g,t,p,v=b[0],s=b[1];b=b[2];d=a[0];f=a[1];e=a[2];a=l[1];g=l[2];v===l[0]&&s===a&&b===g?(b=q,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(a=v-l[0],g=s-l[1],t=b-l[2],p=1/Math.sqrt(a*a+g*g+t*t),a*=p,g*=p,t*=p,l=f*t-e*g,e=e*a-d*t,d=d*g-f*a,(p=Math.sqrt(l*l+e*e+d*d))?(p=1/p,l*=p,e*=p,d*=p):d=e=l=0,f=g*d-t*e,r=t*l-a*d,h=a*e-g*l,(p=Math.sqrt(f*f+r*r+h*h))?(p=1/p,f*=p,r*=p,h*=p):h=r=f=0, +q[0]=l,q[1]=f,q[2]=a,q[3]=0,q[4]=e,q[5]=r,q[6]=g,q[7]=0,q[8]=d,q[9]=h,q[10]=t,q[11]=0,q[12]=-(l*v+e*s+d*b),q[13]=-(f*v+r*s+h*b),q[14]=-(a*v+g*s+t*b),q[15]=1)} +(function(){function b(d){this.pi=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Dm=Yb([0,0,100]);this.Qn=Yb([0,0,0]);this.ep=Yb([0,1,0]);this.$l=Yb([1,1,1]);this.Uk=Zb();this.Ac=Zb();this.En=Zb();this.Wj=Zb();this.q=d;this.kn()}function l(d,f,e){this.q=d;this.kh=f;this.name=e;this.zc=d.getAttribLocation(f,"aPos");this.fe=d.getAttribLocation(f,"aTex");this.On=d.getUniformLocation(f,"matP");this.Cf=d.getUniformLocation(f,"matMV");this.Df=d.getUniformLocation(f, +"opacity");this.Pn=d.getUniformLocation(f,"samplerFront");this.Pg=d.getUniformLocation(f,"samplerBack");this.Qe=d.getUniformLocation(f,"destStart");this.Pe=d.getUniformLocation(f,"destEnd");this.Rk=d.getUniformLocation(f,"seconds");this.Qk=d.getUniformLocation(f,"pixelWidth");this.Pk=d.getUniformLocation(f,"pixelHeight");this.Og=d.getUniformLocation(f,"layerScale");this.Ng=d.getUniformLocation(f,"layerAngle");this.Qg=d.getUniformLocation(f,"viewOrigin");this.ss=!!(this.Qk||this.Pk||this.Rk||this.Pg|| +this.Qe||this.Pe||this.Og||this.Ng||this.Qg);this.Df&&d.uniform1f(this.Df,1);this.Pn&&d.uniform1i(this.Pn,0);this.Pg&&d.uniform1i(this.Pg,1);this.Qe&&d.uniform2f(this.Qe,0,0);this.Pe&&d.uniform2f(this.Pe,1,1);this.Og&&d.uniform1f(this.Og,1);this.Ng&&d.uniform1f(this.Ng,0);this.Qg&&d.uniform2f(this.Qg,0,0);this.Fe=!1}function a(d,f){this.type=d;this.B=f;this.q=f.q;this.dd=this.Ec=this.jo=0;this.fa=this.Xc=null;this.Lo=[]}b.prototype.kn=function(){var d=this.q,f;this.Fn=1;this.Ne=this.ae=null;this.Im= +1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.DEPTH_TEST);this.Hn=d.ONE;this.Cn=d.ONE_MINUS_SRC_ALPHA;this.kl=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.kl);this.qh=Array(4);this.nh=Array(4);for(f=0;4>f;f++)this.qh[f]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.qh[f]),this.nh[f]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.nh[f]);this.yd=0;this.us=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, +this.us);this.Yl=new Float32Array(16E3);this.Ml=new Float32Array(16E3);this.bt=new Float32Array(32E3);for(var e=new Uint16Array(12E3),a=f=0;12E3>f;)e[f++]=a,e[f++]=a+1,e[f++]=a+2,e[f++]=a,e[f++]=a+2,e[f++]=a+3,a+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER,e,d.STATIC_DRAW);this.ll=this.sd=0;this.Ya=[];f=this.Tj({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}"}, +"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}","");this.Ya.push(f);f=this.Tj({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.Ya.push(f);for(var g in cc)cc.hasOwnProperty(g)&&this.Ya.push(this.Tj(cc[g],"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}",g));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,null);this.Rd=[];this.vd=0;this.Rb=!1;this.Jm=this.Gg=-1;this.hg=null;this.Gr=d.createFramebuffer();this.Co= +null;this.re=Yb([0,0,0]);this.od(0)};b.prototype.Tj=function(d,f,e){var a=this.q,g=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(g,d.src);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(g),null;var b=a.createShader(a.VERTEX_SHADER);a.shaderSource(b,f);a.compileShader(b);if(!a.getShaderParameter(b,a.COMPILE_STATUS))return a.deleteShader(g),a.deleteShader(b),null;f=a.createProgram();a.attachShader(f,g);a.attachShader(f,b);a.linkProgram(f);if(!a.getProgramParameter(f, +a.LINK_STATUS))return a.deleteShader(g),a.deleteShader(b),a.deleteProgram(f),null;a.useProgram(f);a.deleteShader(g);a.deleteShader(b);e=new l(a,f,e);e.ak=d.ak||0;e.bk=d.bk||0;e.Hm=!!d.Hm;e.xm=!!d.xm;e.G=d.G||[];d=0;for(g=e.G.length;de;e++)if(this.En[e]!==this.Ac[e]){d=!0;break}d&&(d=this.Tc(),d.type=5,d.fa?$b(this.Ac,d.fa):d.fa=Zb(this.Ac),$b(this.Ac,this.En),this.Rb=!1)};a.prototype.Yq=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Xc)};a.prototype.Zq=function(){var d=this.q;d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,this.Xc);d.activeTexture(d.TEXTURE0)};a.prototype.Vq=function(){var d=this.jo,e=this.B;e.Im=d;e=e.hg;e.Df&& +this.q.uniform1f(e.Df,d)};a.prototype.Sq=function(){this.q.drawElements(this.q.TRIANGLES,this.dd,this.q.UNSIGNED_SHORT,2*this.Ec)};a.prototype.Uq=function(){this.q.blendFunc(this.Ec,this.dd)};a.prototype.$q=function(){var d,e,a,h=this.B.Ya,g=this.B.Jm;d=0;for(e=h.length;d"===e.name&&d.vertexAttribPointer(e.zc,4,d.FLOAT,!1,0,0)); +if(0"!==e.name&&d.vertexAttribPointer(e.zc,2,d.FLOAT,!1,0,0);d.bindBuffer(d.ARRAY_BUFFER,this.nh[this.yd]);d.bufferData(d.ARRAY_BUFFER,this.Ml.subarray(0,this.sd),d.STREAM_DRAW);e&&0<=e.fe&&""!==e.name&&d.vertexAttribPointer(e.fe,2,d.FLOAT,!1,0,0)}for(var a,d=0,e=this.vd;dm?(a=k*m,5===h?(d=a/this.cb,1d&&(d=1/Math.ceil(1/d)),a=this.cb*d,d*=this.bb, +n=(c-a)/2,e=(k-d)/2,c=a,k=d):(n=(c-a)/2,c=a)):(d=c/m,5===h?(d/=this.bb,1d&&(d=1/Math.ceil(1/d)),a=this.cb*d,d*=this.bb,n=(c-a)/2,e=(k-d)/2,c=a):e=(k-d)/2,k=d),b&&!this.Zd&&(e=n=0),n=Math.floor(n),e=Math.floor(e),c=Math.floor(c),k=Math.floor(k)):this.Zd&&this.yg&&0===this.Tm&&(n=Math.floor((c-this.cb)/2),e=Math.floor((k-this.bb)/2),c=this.cb,k=this.bb),2>h&&(this.bg=this.devicePixelRatio),this.Ke&&this.yn&&1m&&(this.R=this.S/h)):3===h&&(m=this.cb/this.bb,h=this.Ig/this.Hg,h>m?this.S=this.R*h:h=d)d=5E4;c+=d;this.Ld[e].complete||this.Ld[e].loaded?k+=d:m=!1}this.We=0==c?0:k/c;return m};b.prototype.go=function(){if(this.ka|| +this.B){var c=this.ka||this.il;this.jb&&this.uo();this.We=0;this.Ln=-1;if(this.ym())this.ns();else{var k=Date.now()-this.gj;if(c){var m=this.width,e=this.height,a=this.devicePixelRatio;this.jb&&(m=this.Nh,e=this.Mh,a=1);if(3!==this.Mg&&500<=k&&this.Ln!=this.We){c.clearRect(0,0,m,e);var k=m/2,e=e/2,m=0===this.Mg&&this.Af.complete,d=40*a,f=0,g=80*a,h;m&&(g=this.Af.width*a,h=this.Af.height*a,d=g/2,f=h/2,c.drawImage(this.Af,T(k-d),T(e-f),g,h));1>=this.Mg?(k=T(k-d)+0.5,e=T(e+(f+(m?12*a:0)))+0.5,c.fillStyle= +"DodgerBlue",c.fillRect(k,e,Math.floor(g*this.We),6*a),c.strokeStyle="black",c.strokeRect(k,e,g,6*a),c.strokeStyle="white",c.strokeRect(k-1*a,e-1*a,g+2*a,8*a)):2===this.Mg&&(c.font="12pt Arial",c.fillStyle="#999",c.iv="middle",a=Math.round(100*this.We)+"%",m=c.measureText?c.measureText(a):null,c.fillText(a,k-(m?m.width:0)/2,e))}this.Ln=this.We}setTimeout(function(c){return function(){c.go()}}(this),100)}}};b.prototype.ns=function(){this.jb&&(this.canvas.parentNode.removeChild(this.jb),this.jb=this.il= +null);this.gj=Date.now();this.Jg=Ua();var c,k,m;if(this.Wl)for(c=0,k=this.u.length;cc||2===this.Pb&&kc-this.Jk)this.rl=!1,this.Jk=c,r?this.Yi=r(this.jj,this.canvas):this.lj=setTimeout(this.jj,this.Yd?1:16);else{this.rl=!0;this.Jk=c;var k=this.Pb, +m=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement;(m||this.yg)&&0k||2===e&&mc++;)this.Lm(this.eg);c=0;for(k=this.Ce.length;ck.Qh.length&&k.Qh.push(c);k.Qf=!0}this.ad.Xd()||(this.ja=!0);this.ad.clear();this.Ck=!1};b.prototype.Gm=function(c,k,m,e){if(c.I){var a=T(Math.random()*c.Gf.length); +return this.Gm(c.Gf[a],k,m,e)}return c.rc?this.Sd(c.rc,k,!1,m,e,!1):null};var h=[];b.prototype.Sd=function(c,k,m,e,a,d){var f,g,b,r;if(!c)return null;var p=this.u[c[1]],q=p.wa.$d;if(this.Cg&&q&&!p.Dk||q&&!this.B&&11===c[0][11])return null;var s=k;q||(k=null);var l;p.Qh.length?(l=p.Qh.pop(),l.mc=!0,p.wa.ra.call(l,p)):(l=new p.wa.ra(p),l.mc=!1);l.uid=m&&!d?c[2]:this.Vg++;this.Te[l.uid.toString()]=l;l.yo=this.Xn++;l.Ge=p.i.length;f=0;for(g=this.Hb.length;fc&&(c=0);c>=this.ma.X.length&&(c=this.ma.X.length-1);return this.ma.X[c]};b.prototype.Qj=function(c){var k,m;k=0;for(m=c.length;k=d;)f=1/d,d*=2,c.x+=k*f*(g?1:-1),c.y+=e*f*(g?1:-1),c.D(),this.Yb(c,a)?f=g=!0:(f=g=!1,h=c.x,b=c.y);f&&(c.x=h,c.y=b,c.D())};b.prototype.zo=function(c,k){var e=ca(k)?100:k,a=0,d=c.x,f=c.y,g=0,h=0,b=0,p=this.lb(c);if(!p)return!0; +for(;a<=e;){switch(g){case 0:h=0;b=-1;a++;break;case 1:h=1;b=-1;break;case 2:h=1;b=0;break;case 3:b=h=1;break;case 4:h=0;b=1;break;case 5:h=-1;b=1;break;case 6:h=-1;b=0;break;case 7:b=h=-1}g=(g+1)%8;c.x=T(d+h*a);c.y=T(f+b*a);c.D();if(!this.Yb(c,p)&&(p=this.lb(c),!p))return!0}c.x=d;c.y=f;c.D();return!1};b.prototype.Lf=function(c,k){c.wd&&k.wd&&this.Zi.push([c,k])};b.prototype.Hq=function(c,k){var e,a,d;e=0;for(a=this.Zi.length;ep;p++)if(r=g-p*s,c.x=k+Math.cos(r)*f,c.y=e+Math.sin(r)*f,c.D(),!this.Yb(c,b)&&(b=this.lb(c),!b)){l=r;break}36===p&&(l=Ba(g+la));b=h;for(p=1;36>p;p++)if(r=g+p*s,c.x=k+Math.cos(r)*f,c.y=e+Math.sin(r)*f,c.D(),!this.Yb(c,b)&&(b=this.lb(c),!b)){q=r;break}36===p&&(q=Ba(g+la));c.x=a;c.y=d;c.D();if(q===l)return q;c=Ga(q,l)/2;c=Ia(q,l)?Ba(l+c+la):Ba(q+c);l= +Math.cos(g);g=Math.sin(g);q=Math.cos(c);c=Math.sin(c);k=l*q+g*c;return Ea(0,0,l-2*k*q,g-2*k*c)};var s=[],u=-1;b.prototype.trigger=function(c,k,e){if(!this.ma)return!1;var a=this.ma.Uh;if(!a)return!1;u++;u===s.length?s.push(new ba):s[u].clear();c=this.Yo(c,k,a,e);u--;return c};b.prototype.Yo=function(c,k,e,a){var d=s[u];if(d.contains(e))return!1;d.add(e);var d=e.jn.Vf(),f=!1,g,b,h;g=0;for(b=d.length;g=this.Sk.length&&this.Sk.push([])};b.prototype.ct=function(){this.Ii--};b.prototype.Xm=function(){return this.Sk[this.Ii]};b.prototype.Wi=function(c){this.Vh++;this.Vh>=this.Zj.length&&this.Zj.push(new Ib);var e=this.zb();e.reset(c);return e};b.prototype.Ri=function(){this.Vh--};b.prototype.zb=function(){return this.Zj[this.Vh]};b.prototype.Ym=function(c,e){for(var a,d,f,g,h,b;e;){a=0;for(d=e.Gc.length;ae||e>=c.Va.length||(c.Va[e]=f[d]));if(g.$d){g=a.w;c.k.V!==g.l&&(e=c.k,c.k=this.ma.gi(g.l),c.k?(c.k.i.push(c),c.k.cc=!0,ya(e.i,c),e.cc=!0):(c.k=e,this.te(c)));c.x= +g.x;c.y=g.y;c.width=g.w;c.height=g.h;c.df=g.zi;c.m=g.hasOwnProperty("a")?g.a:0;c.opacity=g.hasOwnProperty("o")?g.o:1;c.Jb=g.hasOwnProperty("hX")?g.hX:0.5;c.Kb=g.hasOwnProperty("hY")?g.hY:0.5;c.visible=g.hasOwnProperty("v")?g.v:!0;c.wd=g.hasOwnProperty("ce")?g.ce:!0;c.Ug=g.hasOwnProperty("mts")?g.mts:-1;c.Fb=g.hasOwnProperty("bm")?g.bm:0;c.fg=Za(c.Fb);this.q&&$a(c,c.Fb,this.q);c.D();if(g.hasOwnProperty("fx"))for(e=0,f=g.fx.length;eb||(c.Nd[b]=g.fx[e].active,c.Fa[b]=g.fx[e].params); +c.Kd()}if(h=a.behs)for(d in h)h.hasOwnProperty(d)&&(g=this.Mr(c,parseInt(d,10)),0>g||c.O[g].lc(h[d]));a.data&&c.lc(a.data)};Kb=function(c){return new b(document.getElementById(c))};Lb=function(c,e){return new b({dc:!0,width:c,height:e})};window.cr_createRuntime=Kb;window.cr_createDCRuntime=Lb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var c=document.createElement("screencanvas")||document.createElement("canvas");c.hv=!0;document.body.appendChild(c);c=new b(c);window.c2runtime=c; +window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(b,l){if(0!==b&&0!==l){var a=window.cr_getC2Runtime();a&&a.setSize(b,l)}}; +window.cr_setSuspended=function(b){var l=window.cr_getC2Runtime();l&&l.setSuspended(b)}; +(function(){function b(e,a){this.b=e;this.Uh=null;this.scrollX=this.b.cb/2;this.scrollY=this.b.bb/2;this.scale=1;this.m=0;this.lg=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.dp=a[3];this.Mo=a[4];this.V=a[5];var f=a[6],b,h;this.X=[];this.ug=[];b=0;for(h=f.length;b=this.X.length&&(p=this.X.length-1);g.k=this.X[p];g.k.i.push(g);g.k.cc=!0}q.length=0;this.Aq();e=0;for(f=this.X.length;ef?g.siblings.push(l.i[f]):l.rc&&(h=this.b.Sd(l.rc,g.k,!0,g.x, +g.y,!0),this.b.ob(),l.pj(),g.siblings.push(h),q.push(h)));e=0;for(f=this.He.length;ethis.width-d&&(a=this.width-d);a< +d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.ja=!0)};b.prototype.Go=function(a){if(!this.dp){var d=this.b.R*(1/this.an())/2;a>this.height-d&&(a=this.height-d);aO&&(O=0);0>D&&(D=0);I>H&&(I=H);F>J&&(F=J);0>K&&(K=0);0>A&&(A=0);Q>H&&(Q=H);y>J&&(y=J);w.left=O/H;w.top=1-D/J;w.right=I/H;w.bottom=1-F/J}else w.left=M.left=0,w.top=M.top=0,w.right=M.right=1,w.bottom=M.bottom=1;Y=f&&((f.m||N)&&a.bh(h[0].kb)||0!==k||0!==Y||1!==f.opacity||f.type.wa.Un)||d&&!f&&1!==d.opacity;a.Ho();if(Y){s[n]||(s[n]=a.xd(H,J,this.b.aa));if(s[n].dg!==H||s[n].cg!== +J)a.deleteTexture(s[n]),s[n]=a.xd(H,J,this.b.aa);a.od(0);a.md(s[n]);C=y-A;a.clearRect(K,J-A-C,Q-K,C);f?f.fc(a):(a.Wb(this.b.kc),a.Ze(d.opacity),a.kd(),a.translate(-da,-R),a.rd(),a.jd(O,F,I,F,I,D,O,D,w));M.left=M.top=0;M.right=M.bottom=1;f&&(m=w.top,w.top=w.bottom,w.bottom=m);n=1;E=0}a.Ze(1);k=h.length-1;var N=a.ol(h[k].kb)||!d&&!f&&!this.b.tc,ea=0;u=0;for(c=h.length;uthis.$b||l.top>this.Zb||(f.globalCompositeOperation=g.fg,g.Mc(f)));f.restore();this.ie&&(a.globalCompositeOperation=this.fg,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};l.prototype.wl=function(a,d,f){var b= +this.Ib();this.mb=a;this.nb=d;this.$b=a+this.b.S*(1/b);this.Zb=d+this.b.R*(1/b);a=this.Pa();0!==a&&(f&&(f.translate(this.b.S/2,this.b.R/2),f.rotate(-a),f.translate(this.b.S/-2,this.b.R/-2)),this.Jd.set(this.mb,this.nb,this.$b,this.Zb),this.Jd.offset((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2),this.Xo.Ko(this.Jd,a),this.Xo.Am(this.Jd),this.Jd.offset((this.mb+this.$b)/2,(this.nb+this.Zb)/2),this.mb=this.Jd.left,this.nb=this.Jd.top,this.$b=this.Jd.right,this.Zb=this.Jd.bottom)};l.prototype.fc=function(a){var d= +this.b.S,f=this.b.R,b=0,h=0;if(this.ie=this.ck||1!==this.opacity||0this.$b||b.top>this.Zb)))if(q.lp)if(b=q.$[0].kb,h=q.$[0].index,1!==q.$.length||a.ol(b)||a.gt(b)||(q.m||q.k.Pa())&&a.bh(b)||1!==q.opacity||q.type.wa.Un)this.qa.tl(a,this,q,this.ie?this.b.kc:this.qa.pg()),a.kd(),a.scale(g,g),a.xl(-this.Pa()), +a.translate((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2),a.rd();else{a.od(b);a.je(q.ub,q.tb);a.Ui(b)&&(this.b.ja=!0);var s=0,u=0,c=0,k=0;a.bh(b)&&(b=q.Ia,s=this.na(b.left,b.top,!0,!0),u=this.na(b.left,b.top,!1,!0),c=this.na(b.right,b.bottom,!0,!0),b=this.na(b.right,b.bottom,!1,!0),s/=d,u=1-u/f,c/=d,k=1-b/f);a.Mf(this.ie?this.b.kc:this.qa.pg(),1/q.width,1/q.height,s,u,c,k,this.Ib(),this.Pa(),this.mb,this.nb,q.Fa[h]);q.fc(a)}else a.od(0),a.je(q.ub,q.tb),q.fc(a);this.ie&&(b=this.$.length?this.$[0].kb: +0,h=this.$.length?this.$[0].index:0,0===this.$.length||1===this.$.length&&!a.ol(b)&&1===this.opacity?(1===this.$.length?(a.od(b),a.Mf(this.qa.pg(),1/this.b.S,1/this.b.R,0,0,1,1,this.Ib(),this.Pa(),this.mb,this.nb,this.Fa[h]),a.Ui(b)&&(this.b.ja=!0)):a.od(0),a.md(this.qa.pg()),a.Ze(this.opacity),a.Wb(this.b.kc),a.je(this.ub,this.tb),a.kd(),a.rd(),d=this.b.S/2,f=this.b.R/2,a.Xi(-d,f,d,f,d,-f,-d,-f),a.Wb(null)):this.qa.tl(a,this,null,this.qa.pg()))};l.prototype.Nb=function(a,d,f,b){var h=this.b.devicePixelRatio; +this.b.Ke&&(a*=h,d*=h);var h=this.b.qo,g=this.b.ro,h=(this.qa.scrollX-h)*this.Bc+h,g=(this.qa.scrollY-g)*this.Cc+g,l=1/this.Ib(!b);b?(h-=this.b.S*l/2,g-=this.b.R*l/2):(h-=this.b.width*l/2,g-=this.b.height*l/2);h+=a*l;g+=d*l;d=this.Pa();0!==d&&(h-=this.qa.scrollX,g-=this.qa.scrollY,a=Math.cos(d),d=Math.sin(d),b=h*a-g*d,g=g*a+h*d,h=b+this.qa.scrollX,g+=this.qa.scrollY);return f?h:g};l.prototype.na=function(a,d,f,b){var h=this.Pa();if(0!==h){a-=this.qa.scrollX;d-=this.qa.scrollY;var g=Math.cos(-h),h= +Math.sin(-h),l=a*g-d*h;d=d*g+a*h;a=l+this.qa.scrollX;d+=this.qa.scrollY}g=this.b.qo;h=this.b.ro;g=(this.qa.scrollX-g)*this.Bc+g;h=(this.qa.scrollY-h)*this.Cc+h;l=1/this.Ib(!b);b?(g-=this.b.S*l/2,h-=this.b.R*l/2):(g-=this.b.width*l/2,h-=this.b.height*l/2);g=(a-g)/l;h=(d-h)/l;a=this.b.devicePixelRatio;this.b.Ke&&(g/=a,h/=a);return f?g:h};l.prototype.Lb=function(){var a,d,f,b={s:this.scale,a:this.m,vl:this.mb,vt:this.nb,vr:this.$b,vb:this.Zb,v:this.visible,bc:this.Qd,t:this.bf,px:this.Bc,py:this.Cc, +o:this.opacity,zr:this.Yc,fx:[],instances:[]};a=0;for(d=this.M.length;aa[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2=s.length&&(s.length=a.length+1);s[a.length]||(s[a.length]=[]);e=s[a.length];c=0;for(d=e.length;c=c.length&&(c.length=this.Re+1),c[this.Re]=a):this.data=a};t.prototype.ji=function(){var a=this.b.Xm();return!this.parent||this.Bg||!a||this.qi?this.data:this.Re>=a.length||"undefined"===typeof a[this.Re]?this.yk:a[this.Re]};t.prototype.Ra=function(){!this.parent||this.Bg||this.qi||this.$e(this.yk)}; +Jb=t;p.prototype.toString=function(){return"include:"+this.tg.toString()};p.prototype.La=function(){this.tg=this.b.$j[this.ts];this.sheet.jn.add(this);this.Ba=a(this.Ba)};p.prototype.Ra=function(){this.parent&&this.b.eh(this.b.u);this.tg.uk||this.tg.Ra(!0);this.parent&&this.b.Ve(this.b.u)};p.prototype.ys=function(){for(var a=this.parent;a;){if(a.group&&!this.b.ff[a.rg.toLowerCase()])return!1;a=a.parent}return!0};Sb=p;v.prototype.reset=function(a){this.qc=a;this.nc=this.Ta=0;this.So.length=0;this.Yj= +this.Oe=!1};Ib=v})(); +(function(){function b(a,b){this.H=a;this.b=a.b;this.type=b[0];this.get=[this.qr,this.mr,this.Br,this.Er,this.gr,this.Cr,this.ur,this.jr,this.tr,this.Ar,this.hr,this.yr,this.kr,this.xr,this.rr,this.sr,this.nr,this.or,this.ir,this.Dr,this.Mm,this.pr,this.Mm,this.lr][this.type];var e=null;this.Ub=this.G=this.N=this.Oa=this.ij=this.fb=this.first=this.value=null;this.gb=-1;this.Dd=null;this.Xl=-1;this.De=this.ph=null;this.fh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first= +new Qb(a,b[1]);break;case 18:this.first=new Qb(a,b[1]);this.fb=new Qb(a,b[2]);this.ij=new Qb(a,b[3]);break;case 19:this.Oa=b[1];this.N=[];this.G=[];3===b.length?(e=b[2],this.N.length=e.length+1):this.N.length=1;break;case 20:this.Ub=this.b.u[b[1]];this.gb=-1;this.Oa=b[2];this.fh=b[3];this.Dd=b[4]?new Qb(a,b[4]):null;this.N=[];this.G=[];6===b.length?(e=b[5],this.N.length=e.length+1):this.N.length=1;break;case 21:this.Ub=this.b.u[b[1]];this.fh=b[2];this.Dd=b[3]?new Qb(a,b[3]):null;this.Xl=b[4];break; +case 22:this.Ub=this.b.u[b[1]];this.Ub.ei(b[2]);this.gb=this.Ub.ik(b[2]);this.Oa=b[3];this.fh=b[4];this.Dd=b[5]?new Qb(a,b[5]):null;this.N=[];this.G=[];7===b.length?(e=b[6],this.N.length=e.length+1):this.N.length=1;break;case 23:this.ph=b[1],this.De=null}4<=this.type&&17>=this.type&&(this.first=new Qb(a,b[1]),this.fb=new Qb(a,b[2]));if(e){var d,f;d=0;for(f=e.length;db&&(b+=e.length);e=e[b];-1b&&(b+=e.length);e=e[b].Va[this.Xl];P(e)?a.Dc(e):a.K(e);this.H.Qa();return}this.H.Qa()}b%=e.length;0>b&&(b+=e.length);e=e[b];b=0;this.Ub.I&&(b=e.type.Yh[this.Ub.cd]);e=e.Va[this.Xl+b];P(e)?a.Dc(e):a.K(e)};b.prototype.qr=function(a){a.type=Ub.$f;a.data=this.value};b.prototype.mr=function(a){a.type=Ub.Zf;a.data=this.value};b.prototype.Br=function(a){a.type=Ub.Gj;a.data=this.value};b.prototype.Er= +function(a){this.first.get(a);a.ab()&&(a.data=-a.data)};b.prototype.gr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data+=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.Cr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data-=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.ur=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data*=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.jr=function(a){this.first.get(a); +var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data/=b.data,a.Ef());this.H.Qa()};b.prototype.tr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data%=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.Ar=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data=Math.pow(a.data,b.data),b.wf()&&a.Ef());this.H.Qa()};b.prototype.hr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()?b.si()?a.Dc(a.data.toString()+b.data): +a.data&&b.data?a.ua(1):a.ua(0):a.si()&&(a.data=b.si()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());this.H.Qa()};b.prototype.yr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data||b.data?a.ua(1):a.ua(0));this.H.Qa()};b.prototype.ir=function(a){this.first.get(a);a.data?this.fb.get(a):this.ij.get(a)};b.prototype.kr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data===b.data?1:0);this.H.Qa()};b.prototype.xr=function(a){this.first.get(a); +var b=this.H.Xa();this.fb.get(b);a.ua(a.data!==b.data?1:0);this.H.Qa()};b.prototype.rr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.datab.data?1:0);this.H.Qa()};b.prototype.or=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data>= +b.data?1:0);this.H.Qa()};b.prototype.lr=function(a){var b=this.De.ji();fa(b)?a.K(b):a.Dc(b)};Qb=b;l.prototype.wf=function(){return this.type===Ub.Zf};l.prototype.ab=function(){return this.type===Ub.$f||this.type===Ub.Zf};l.prototype.si=function(){return this.type===Ub.Gj};l.prototype.Ef=function(){this.wf()||(this.si()&&(this.data=parseFloat(this.data)),this.type=Ub.Zf)};l.prototype.ua=function(a){this.type=Ub.$f;this.data=Math.floor(a)};l.prototype.K=function(a){this.type=Ub.Zf;this.data=a};l.prototype.Dc= +function(a){this.type=Ub.Gj;this.data=a};Tb=l;Ub={$f:0,Zf:1,Gj:2}})();function V(b){this.b=b;this.ac=[]} +V.prototype.Lb=function(){var b={},l,a,q,e,d,f,r,h;b.waits=[];var g=b.waits,t;l=0;for(a=this.ac.length;l=b+l?(d.P.vj=b+l,e>=d.P.vj+0.04&&(d.P.vj=e),d.P.wj=a,!0):!1};b.prototype.ue=function(a){return this.b.ff[a.toLowerCase()]};b.prototype.pp=function(){var a=this.b.zb();return a.Yj?!1:!a.Oe};b.prototype.gm=G(!0);b.prototype.Bp=G(!0);b.prototype.Cj= +G(!0);b.prototype.Up=G(!0);b.prototype.Bj=G(!0);q.j=new b;l.prototype.xj=function(a){this.b.Cg||this.b.eg||(this.b.eg=a)};l.prototype.dm=function(a,d,b,e){if(d&&a&&(d=this.b.Gm(a,d,b,e))){this.b.Nc++;var l;this.b.trigger(Object.getPrototypeOf(a.wa).j.zj,d);if(d.ic)for(b=0,e=d.siblings.length;barguments[b]&&(d=arguments[b]); +a.K(d)};a.prototype.Ae=function(a){a.K(this.b.Ae)};a.prototype.Sf=function(a){a.K(this.b.Sf)};a.prototype.time=function(a){a.K(this.b.yc.Sa)};a.prototype.qd=function(a){a.ua(this.b.qd)};a.prototype.Li=function(a){a.ua(this.b.Li)};a.prototype.dk=function(a){a.ua(this.b.dk)};a.prototype.m=function(a,d,b,e,l){a.K(za(Ea(d,b,e,l)))};a.prototype.left=function(a,d,b){a.Dc(P(d)?d.substr(0,b):"")};a.prototype.right=function(a,d,b){a.Dc(P(d)?d.substr(d.length-b):"")};a.prototype.replace=function(a,d,b,e){P(d)&& +P(b)&&P(e)?a.Dc(d.replace(RegExp(Wa(b),"gi"),e)):a.Dc(P(d)?d:"")};a.prototype.Sj=function(a){a.K(this.b.Sj/1E3)};a.prototype.Bf=function(a){a.K(this.b.Bf)};q.Ua=new a;q.mt=function(){var a,b,h,g,l,p,q=this.b.zb();a=0;for(h=this.ac.length;athis.b.yc.Sa)){q.qc=g.ig;q.nc=g.nc;q.Ta=0;for(b in g.Xb)g.Xb.hasOwnProperty(b)&&(l=this.b.u[parseInt(b,10)].ca(),p=g.Xb[b],l.pa=p.Eo,ta(l.i,p.Ie),l=p,l.Ie.length=0,d.push(l));g.ig.kt();this.b.Qj(g.Ba);g.Km=!0}b=a=0;for(h=this.ac.length;a< +h;a++)g=this.ac[a],this.ac[b]=g,g.Km?(Qa(g.Xb),g.Ba.length=0,e.push(g)):b++;this.ac.length=b}})(); +(function(){fb=function(b){var a=b[0].prototype,q=b[1],e=b[3],d=b[4],f=b[5],r=b[6],h=b[7];b=b[8];a.j||(a.j={});a.n||(a.n={});a.Ua||(a.Ua={});var g=a.j,t=a.n,a=a.Ua;e&&(g.Yf=function(a,d){return Vb(this.x,a,d)},g.bu=function(a,d){return Vb(this.y,a,d)},g.iu=function(){var a=this.k;this.Ca();var d=this.Ia;return!(d.righta.$b||d.top>a.Zb)},g.vp=function(){this.Ca();var a=this.Ia,d=this.b.ma;return 0>a.right||0>a.bottom||a.left>d.width||a.top>d.height},g.tu=function(a,d,b){var e= +this.ca(),c=e.uc();if(!c.length)return!1;var f=c[0],g=f,h=Na(f.x,f.y,d,b),l,q,r;l=1;for(q=c.length;lh)h=r,g=f;e.ah(g);return!0},t.Md=function(a){this.x!==a&&(this.x=a,this.D())},t.Ju=function(a){this.y!==a&&(this.y=a,this.D())},t.Fu=function(a,d){if(this.x!==a||this.y!==d)this.x=a,this.y=d,this.D()},t.Gu=function(a,d){var b=a.Tr(this);if(b){var e;b.nk?(e=b.nk(d,!0),b=b.nk(d,!1)):(e=b.x,b=b.y);if(this.x!==e||this.y!==b)this.x=e,this.y=b,this.D()}}, +t.nu=function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.D())},t.mu=function(a,d){0!==d&&(this.x+=Math.cos(U(a))*d,this.y+=Math.sin(U(a))*d,this.D())},a.ef=function(a){a.K(this.x)},a.om=function(a){a.K(this.y)},a.Ae=function(a){a.K(this.b.fi(this))});d&&(g.au=function(a,d){return Vb(this.width,a,d)},g.Yt=function(a,d){return Vb(this.height,a,d)},t.lq=function(a){this.width!==a&&(this.width=a,this.D())},t.Cu=function(a){this.height!==a&&(this.height=a,this.D())},t.Hu=function(a, +d){if(this.width!==a||this.height!==d)this.width=a,this.height=d,this.D()},a.Nu=function(a){a.K(this.width)},a.du=function(a){a.K(this.height)},a.Vt=function(a){this.Ca();a.K(this.Ia.left)},a.Xt=function(a){this.Ca();a.K(this.Ia.top)},a.Wt=function(a){this.Ca();a.K(this.Ia.right)},a.Ut=function(a){this.Ca();a.K(this.Ia.bottom)});f&&(g.Tt=function(a,d){return Ga(this.m,U(d))<=U(a)},g.gu=function(a){return Ia(this.m,U(a))},g.fu=function(a,d){var b=Da(a),e=Da(d),c=Ba(this.m);return Ia(e,b)?Ia(c,b)&& +!Ia(c,e):!(!Ia(c,b)&&Ia(c,e))},t.gq=function(a){a=U(Aa(a));isNaN(a)||this.m===a||(this.m=a,this.D())},t.xu=function(a){0===a||isNaN(a)||(this.m+=U(a),this.m=Ba(this.m),this.D())},t.yu=function(a){0===a||isNaN(a)||(this.m-=U(a),this.m=Ba(this.m),this.D())},t.uh=function(a,d){var b=Ha(this.m,U(d),U(a));isNaN(b)||this.m===b||(this.m=b,this.D())},t.zu=function(a,d,b){a=Ha(this.m,Math.atan2(b-this.y,d-this.x),U(a));isNaN(a)||this.m===a||(this.m=a,this.D())},t.Iu=function(a,d){var b=Math.atan2(d-this.y, +a-this.x);isNaN(b)||this.m===b||(this.m=b,this.D())},a.St=function(a){a.K(Ca(this.m))});q||(g.Zt=function(a,d,b){return Vb(this.Va[a],d,b)},g.sp=function(a){return this.Va[a]},g.uu=function(a,d){var b=this.ca(),e=b.uc();if(!e.length)return!1;var c=e[0],f=c,g=c.Va[d],h,l,q;h=1;for(l=e.length;hg)g=q,f=c;b.ah(f);return!0},g.su=function(a){var d,b,e,c,f;if(this.b.kk().wg){f=this.ca();if(f.pa)for(f.pa=!1,f.i.length=0,f.ea.length=0,e=this.i,d=0,b=e.length;d< +b;d++)c=e[d],c.uid===a?f.ea.push(c):f.i.push(c);else{e=d=0;for(b=f.i.length;da?a=0:1c.k.index||e.k.index===c.k.index&&e.hc()>c.hc())c=e}else if(e.k.indexb)){var e=1===a;this.Nd[b]!==e&&(this.Nd[b]=e,this.Kd(),this.b.ja=!0)}}},t.Bu=function(a,d,b){if(this.b.B){var e=this.type.mk(a);0>e||(a=this.type.M[e],e=this.Fa[e],d=Math.floor(d), +0>d||d>=e.length||(1===this.b.B.Wr(a.kb,d)&&(b/=100),e[d]!==b&&(e[d]=b,a.td&&(this.b.ja=!0))))}})};Bb=function(){this.Nj=this.Kj=!0;this.type.yh=!0;this.b.ja=!0;var b,a,q=this.Lj;b=0;for(a=q.length;bq;case 5:return b>=q;default:return!1}}})();var cc={};function fc(b){this.b=b} +(function(){function b(a){0>a&&(a=0);1a&&(a=0.01);this.Ti.gain.value=a;this.Si.gain.value=Math.pow(1/a,0.6)*c};c.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=af;++f)e=f/32768,e=this.shape(e,b,d),this.Ph[32768+f]=e,this.Ph[32768-f-1]=-e};c.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};c.prototype.remove=function(){this.W.disconnect();this.Ti.disconnect();this.uj.disconnect();this.Si.disconnect();this.L.disconnect();this.J.disconnect()};c.prototype.gc=B("W");k.prototype.oc=function(a){this.Y.disconnect(); +this.Y.connect(a)};k.prototype.remove=function(){this.Y.disconnect()};k.prototype.gc=B("Y");m.prototype.Za=function(){this.Y.getFloatFrequencyData(this.Ir);this.Y.getByteTimeDomainData(this.No);for(var a=this.Y.fftSize,c=0,d=this.$g=0,e=0;ce&&(e=-e),this.$gthis.ne.length||this.ne.shift(),this.ne.push(a),this.ti=this.T.x,this.vi=this.T.y)};n.prototype.bn=function(){if(!this.ne.length)return 0;var a,c,b=0;a=0;for(c=this.ne.length;athis.buffer.ya.duration:this.p.ended;case I:return this.jl;case Q:!0}return!0};C.prototype.Dq=function(){return this.Wd||this.Fc?!0:this.sg()};C.prototype.El=function(a){F===A&&(!this.gd&&a?this.$a&&(this.Ka||(this.Ka=y.createPanner(),this.Ka.panningModel="number"===typeof this.Ka.panningModel?sb:["equalpower","HRTF","soundfield"][sb],this.Ka.distanceModel="number"===typeof this.Ka.distanceModel?tb: +["linear","inverse","exponential"][tb],this.Ka.refDistance=lc,this.Ka.maxDistance=mc,this.Ka.rolloffFactor=nc),this.$a.disconnect(),this.$a.connect(this.Ka),this.Ka.connect(l(this.oe)),this.gd=!0):this.gd&&!a&&this.$a&&(this.Ka.disconnect(),this.$a.disconnect(),this.$a.connect(l(this.oe)),this.gd=!1))};C.prototype.Dl=function(a,c,b,d,e,f){this.gd&&F===A&&(this.Ka.setPosition(a,c,0),this.Ka.setOrientation(Math.cos(U(b)),Math.sin(U(b)),0),this.Ka.coneInnerAngle=d,this.Ka.coneOuterAngle=e,this.Ka.coneOuterGain= +f,this.oo=a,this.po=c,this.ko=b,this.lo=d,this.mo=e,this.no=f)};C.prototype.hh=function(a){this.gd&&F===A&&(this.Ja||(this.Ja=new n),this.Ja.hh(a))};C.prototype.Za=function(a){if(this.gd&&F===A&&this.Ja&&this.Ja.mi()&&this.uf()){this.Ja.Za(a);a=this.Ja.T;var c=Ma(a.x,a.y,-a.k.Pa(),Ka,La,!0),b=Ma(a.x,a.y,-a.k.Pa(),Ka,La,!1);this.Ka.setPosition(c,b,0);c=0;"undefined"!==typeof this.Ja.T.m&&(c=a.m-a.k.Pa(),this.Ka.setOrientation(Math.cos(c),Math.sin(c),0));c=Ma(this.Ja.rk(),this.Ja.sk(),-a.k.Pa(),0,0, +!0);b=Ma(this.Ja.rk(),this.Ja.sk(),-a.k.Pa(),0,0,!1);this.Ka.setVelocity(c,b,0)}};C.prototype.play=function(a,c,b){var f=this.p;this.Gd=a;this.volume=c;b=b||0;switch(this.la){case D:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*va&&(f.volume=c*va);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==b)try{f.currentTime=b}catch(g){}this.Oc&&Ra&&!w.xc?Sa.push(this):this.p.play();break;case A:this.muted=!1;this.Tg=1;if(this.buffer.la===A)this.Wd||(this.p=y.createBufferSource(),this.p.buffer= +this.buffer.ya,this.p.connect(this.$a)),this.p.loop=a,this.$a.gain.value=c*va,0===b?e(this.p):d(this.p,b,this.qf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);this.$a.gain.value=c*va;if(f.currentTime!==b)try{f.currentTime=b}catch(h){}this.Oc&&Ra&&!w.xc?Sa.push(this):f.play()}break;case I:(!this.Wd&&this.Fc||0!==b)&&f.seekTo(b);f.play();this.jl=!1;break;case Q:w.Ab?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime= +w.yc.Sa-b;this.Ed=this.Fc=this.Wd=!1};C.prototype.stop=function(){switch(this.la){case D:this.p.paused||this.p.pause();break;case A:this.buffer.la===A?f(this.p):this.p.paused||this.p.pause();break;case I:this.p.stop();break;case Q:w.Ab&&AppMobi.context.stopSound(this.src)}this.Fc=!0;this.Ed=!1};C.prototype.pause=function(){if(!(this.Wd||this.Fc||this.sg()||this.Ed)){switch(this.la){case D:this.p.paused||this.p.pause();break;case A:this.buffer.la===A?(this.Vc=this.pk(),this.Gd&&(this.Vc%=this.qf()), +f(this.p)):this.p.paused||this.p.pause();break;case I:this.p.pause();break;case Q:w.Ab&&AppMobi.context.stopSound(this.src)}this.Ed=!0}};C.prototype.it=function(a){this.la===A&&(this.gd?(this.Ka.disconnect(),this.Ka.connect(a)):(this.$a.disconnect(),this.$a.connect(a)))};C.prototype.qf=function(){switch(this.la){case D:if("undefined"!==typeof this.p.duration)return this.p.duration;break;case A:return this.buffer.ya.duration;case I:return this.p.getDuration();case Q:if(w.Ab)return AppMobi.context.getDurationSound(this.src)}return 0}; +C.prototype.pk=function(){var a=this.qf(),c=0;switch(this.la){case D:"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case A:if(this.buffer.la===A){if(this.Ed)return this.Vc;c=w.yc.Sa-this.startTime}else"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case Q:w.Ab&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Gd&&c>a&&(c=a);return c};C.prototype.uf=function(){return!this.Ed&&!this.Wd&&!this.Fc&&!this.sg()};C.prototype.Kt=function(){var a=this.volume* +va;switch(this.la){case D:this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case A:this.$a.gain.value=a*this.Tg}};C.prototype.Th=function(a){switch(this.la){case D:this.p.muted!==!!a&&(this.p.muted=!!a);break;case A:this.Tg=a?0:1,this.$a.gain.value=va*this.volume*this.Tg}};C.prototype.wt=function(){this.xf=!0;this.Th(this.xf||this.Ag)};C.prototype.Io=function(a){this.Ag=!!a;this.Th(this.xf||this.Ag)};C.prototype.ip=function(){var a=this.playbackRate;if(1===eb&&!this.Oc||2===eb)a*=w.Sf;switch(this.la){case D:this.p.playbackRate!== +a&&(this.p.playbackRate=a);break;case A:this.buffer.la===A?this.p.playbackRate.value!==a&&(this.p.playbackRate.value=a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};C.prototype.xt=function(a){switch(this.la){case D:a?this.uf()?(this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.p.play();break;case A:a?this.uf()?(this.buffer.la===A?(this.Vc=this.pk(),this.Gd&&(this.Vc%=this.qf()),f(this.p)):this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(this.buffer.la===A?(this.p=y.createBufferSource(),this.p.buffer= +this.buffer.ya,this.p.connect(this.$a),this.p.loop=this.Gd,this.$a.gain.value=va*this.volume*this.Tg,this.startTime=w.yc.Sa-this.Vc,d(this.p,this.Vc,this.qf())):this.p.play());break;case I:a?this.uf()?(this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.p.play()}};R.ra=function(a){this.type=a;w=this.b=a.b;M=this;this.Bb=null;this.Lg=-600;!(this.b.Gk||this.b.oi&&(this.b.xg||this.b.pn))||this.b.Bk||this.b.Aa||(Ra=!0);y=null;"undefined"!==typeof AudioContext?(F=A,y=new AudioContext):"undefined"!==typeof webkitAudioContext&& +(F=A,y=new webkitAudioContext);(this.b.Gk&&F===A||Ra)&&document.addEventListener("touchstart",function(){var a,c,b;!oc&&y&&(a=y.createBuffer(1,1,22050),c=y.createBufferSource(),c.buffer=a,c.connect(y.destination),e(c),oc=!0);if(Ra){if(!ua)for(a=0,c=Sa.length;a"!==c&&(a.Pi=c,a.Tk=d,a.Zl=e),null;h=new C(a,c);N.push(h);return h};var Ja=[];J.prototype.Aj=function(a){return bb(O,a)};R.j=new J;da.prototype.Play=function(a,c,b,d){!ua&&(b=Math.pow(10,b/20),0>b&& +(b=0),1=l||0>=h||b>=this.b.width||f>=this.b.height)this.Be||jQuery(this.da).hide(),this.Be=!0;else{1>b&&(b=1);1>f&&(f=1);l>=this.b.width&&(l=this.b.width-1);h>=this.b.height&&(h=this.b.height-1);var g=window.innerWidth,q=window.innerHeight;a||this.Dn!==b||this.In!==f||this.Gn!==l||this.Bn!==h||this.Kn!==g|| +this.Jn!==q?(this.Dn=b,this.In=f,this.Gn=l,this.Bn=h,this.Kn=g,this.Jn=q,this.Be&&(jQuery(this.da).show(),this.Be=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,g=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.da).css("position","absolute"),jQuery(this.da).offset({left:a,top:g}),jQuery(this.da).width(Math.round(l-b)),jQuery(this.da).height(Math.round(h-f)),this.wq&&jQuery(this.da).css("font-size",this.k.Ib()/this.b.devicePixelRatio-0.2+"em")):this.Be&&(jQuery(this.da).show(), +this.Be=!1)}}};q.Mc=z();q.fc=z();b.prototype.sh=G(!0);a.j=new b;l.prototype.Ej=function(a){this.b.Aa||(this.tf?this.Fg.nodeValue=a:this.da.value=a)};l.prototype.jq=function(a){this.b.Aa||(this.visible=0!==a)};a.n=new l;a.Ua=new (z())})();function X(b){this.b=b} +(function(){function b(){}var l=X.prototype;l.Da=function(a){this.wa=a;this.b=a.b};l.Da.prototype.Z=z();l.ra=function(a){this.type=a;this.b=a.b};l.ra.prototype.Z=function(){this.tn=this.Ds=!1;this.Tf="";this.nd=null;this.Dt=this.b.wc&&"undefined"!==typeof CocoonJS.Store.nativeExtensionObjectAvailable;this.Bt=1!==this.A[0];this.Ct=0!==this.A[1];this.co="";var a=this;this.b.wc&&(CocoonJS.App.onTextDialogFinished.addEventListener(function(){a.b.trigger(X.prototype.j.Rp,a)}),CocoonJS.App.onTextDialogCancelled.addEventListener(function(){a.b.trigger(X.prototype.j.Qp, +a)}),CocoonJS.Ad.onBannerShown.addEventListener(function(){a.Ds=!0;a.b.trigger(X.prototype.j.Ap,a)}),CocoonJS.Ad.onBannerReady.addEventListener(function(){CocoonJS.Ad.setBannerLayout(0);CocoonJS.Ad.showBanner()}),CocoonJS.Ad.onFullScreenShown.addEventListener(function(){a.tn=!0;a.b.trigger(X.prototype.j.Fp,a)}),CocoonJS.Ad.onFullScreenHidden.addEventListener(function(){a.tn=!1;a.b.trigger(X.prototype.j.Ep,a)}),CocoonJS.Ad.onFullScreenReady.addEventListener(function(){preloadFullScreen||CocoonJS.Ad.showFullScreen()}), +this.Dt&&(CocoonJS.Store.onProductPurchaseCompleted.addEventListener(function(b){a.Tf=b.productId;a.b.trigger(X.prototype.j.$p,a);CocoonJS.Store.addPurchase(b);CocoonJS.Store.consumePurchase(b.transactionId,b.productId);CocoonJS.Store.finishPurchase(b.transactionId)}),CocoonJS.Store.onConsumePurchaseFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Ms,a)}),CocoonJS.Store.onConsumePurchaseCompleted.addEventListener(function(b){this.co=b;a.b.trigger(X.prototype.j.co,a)}),CocoonJS.Store.onProductPurchaseFailed.addEventListener(function(b){a.Tf= +b;a.b.trigger(X.prototype.j.aq,a)}),CocoonJS.Store.onProductPurchaseStarted.addEventListener(function(b){a.Tf=b.productId;a.b.trigger(X.prototype.j.bq,a)}),CocoonJS.Store.onProductsFetchStarted.addEventListener(function(){a.b.trigger(X.prototype.j.Ws,a)}),CocoonJS.Store.onProductsFetchFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Vs,a)}),CocoonJS.Store.onProductsFetchCompleted.addEventListener(function(){a.b.trigger(X.prototype.j.Us,a)}),CocoonJS.Store.requestInitialization({managed:this.Bt, +sandbox:this.Ct}),CocoonJS.Store.start()),this.nd=CocoonJS.SocialGaming.GameCenter,this.nd.onRequestLoginSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Jp,a)}),this.nd.onRequestLoginFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Ip,a)}),this.nd.onLogout.addEventListener(function(){a.b.trigger(X.prototype.j.Kp,a)}),this.nd.onRequestUserScoreSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Lp,a)}),this.nd.onRequestUserScoreFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Op, +a)}),this.nd.onSubmitUserScoreSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Np,a)}),this.nd.onSubmitUserScoreFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Mp,a)}),this.nd.onLeaderboardViewSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Hp,a)}),this.nd.onLeaderboardViewClosed.addEventListener(function(){a.b.trigger(X.prototype.j.Gp,a)}))};b.prototype.Ap=G(!0);b.prototype.Fp=G(!0);b.prototype.Ep=G(!0);b.prototype.bq=function(a){return this.Tf===a};b.prototype.$p= +function(a){return this.Tf===a};b.prototype.aq=function(a){return this.Tf===a};b.prototype.Ws=G(!0);b.prototype.Ms=G(!0);b.prototype.Us=G(!0);b.prototype.Vs=G(!0);b.prototype.Qp=G(!0);b.prototype.Rp=G(!0);b.prototype.Jp=G(!0);b.prototype.Ip=G(!0);b.prototype.Kp=G(!0);b.prototype.Lp=G(!0);b.prototype.Op=G(!0);b.prototype.Np=G(!0);b.prototype.Mp=G(!0);b.prototype.Hp=G(!0);b.prototype.Gp=G(!0);l.j=new b;l.n=new (z());l.Ua=new (z())})();function Z(b){this.b=b} +(function(){function b(){if(0===this.Xj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.Pf?c.drawImage(this.U,this.If,this.Jf,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.U,0,0,this.width,this.height);this.Xj=a.toDataURL("image/png")}return this.Xj}function l(){}function a(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function q(a,c){return athis.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);var a=this.Ea.frames[this.F];this.ba.jh(a.Qi);this.Jb=a.Jb;this.Kb=a.Kb;this.gg=this.Ea.speed;this.mc?this.$c.reset():this.$c=new Va;this.Cd=this.$c.Sa;this.Od=!0;this.ud=0;this.ve=!0;this.Pj=this.wm="";this.Gq=0;this.Oj=-1;this.type.Ok();var c,b,d,e,f,g,h,a=0;for(c=this.type.Mb.length;athis.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);this.gg=a.cas;this.Cd=a.fs;this.ud=a.ar;this.$c.reset();this.$c.Sa=a.at;this.Od=a.hasOwnProperty("ap")?a.ap:!0;this.ve=a.hasOwnProperty("af")?a.af:!0;this.pc=this.Ea.frames[this.F];this.Oh=this.pc.xa;this.ba.jh(this.pc.Qi);this.Jb=this.pc.Jb;this.Kb=this.pc.Kb};p.Jj=function(a){this.F=a?0:this.Ea.frames.length-1;this.Od=!1;this.wm=this.Ea.name;this.b.trigger(Z.prototype.j.zp, +this);this.b.trigger(Z.prototype.j.yp,this);this.ud=0};p.Yu=function(){return this.$c.Sa};p.Za=function(){this.$c.add(this.b.fi(this));this.Pj.length&&this.Oq();0<=this.Oj&&this.Pq();var a=this.$c.Sa,c=this.Ea,b=c.frames[this.F],d=b.duration/this.gg;this.Od&&a>=this.Cd+d&&(this.ve?this.F++:this.F--,this.Cd+=d,this.F>=c.frames.length&&(c.so?(this.ve=!1,this.F=c.frames.length-2):c.loop?this.F=c.$i:(this.ud++,this.ud>=c.ul?this.Jj(!1):this.F=c.$i)),0>this.F&&(c.so?(this.F=1,this.ve=!0,c.loop||(this.ud++, +this.ud>=c.ul&&this.Jj(!0))):c.loop?this.F=c.$i:(this.ud++,this.ud>=c.ul?this.Jj(!0):this.F=c.$i)),0>this.F?this.F=0:this.F>=c.frames.length&&(this.F=c.frames.length-1),a>this.Cd+c.frames[this.F].duration/this.gg&&(this.Cd=a),a=c.frames[this.F],this.ag(b,a),this.b.ja=!0)};p.Um=function(a){var c,b,d;c=0;for(b=this.type.Mb.length;cthis.F&&(this.F=0),this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1),1===this.Gq&&(this.F=0),this.Od=!0,this.Cd=this.$c.Sa,this.ve=!0,this.ag(a,this.Ea.frames[this.F]),this.b.ja=!0)};p.Pq=function(){var a=this.Ea.frames[this.F],c=this.F;this.F=T(this.Oj);0>this.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);c!==this.F&& +(this.ag(a,this.Ea.frames[this.F]),this.Cd=this.$c.Sa,this.b.ja=!0);this.Oj=-1};p.ag=function(a,c){var b=a.width,d=a.height,e=c.width,f=c.height;b!=e&&(this.width*=e/b);d!=f&&(this.height*=f/d);this.Jb=c.Jb;this.Kb=c.Kb;this.ba.jh(c.Qi);this.D();this.pc=c;this.Oh=c.xa;b=0;for(d=this.O.length;be||e>=d.length)return c?this.x:this.y; +var f=(d[e][1]-b.Jb)*this.width,d=d[e][2],d=(d-b.Kb)*this.height,b=Math.cos(this.m);e=Math.sin(this.m);var g=f*b-d*e,d=d*b+f*e,f=g+this.x,d=d+this.y;return c?f:d};var v=[],s=-2,u=[];l.prototype.yj=function(c){if(!c)return!1;var b=this.b,g=b.kk(),h=g.type;g.P.Rj||(g.P.Rj={},b.Hj(function(c){return function(b){b=b.uid;var d,e;for(d in c)c.hasOwnProperty(d)&&(e=c[d],e[0]===b||e[1]===b)&&(a(c[d]),delete c[d])}}(g.P.Rj)));var g=g.P.Rj,k=h.ca(),l=c.ca(),k=k.uc(),p,q,r,t,v,K,D,A=this.b.qd,I=A-1,Q=b.zb().qc; +for(q=0;qa.$b||b.top>a.Zb)this.b.B.deleteTexture(this.Tb),this.fd=this.Se=this.Tb=null}};e.Ue=function(){this.fd=this.Se=null;this.b.B&&this.Tb&&this.b.B.deleteTexture(this.Tb);this.Tb=null}; +e.gp=function(){this.font=this.ci+" "+this.dh.toString()+"pt "+this.Bd;this.qe=!0;this.b.ja=!0};e.Mc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.k.Ib(),a.save(),a.scale(d,d));if(this.qe||this.width!==this.Kk)this.type.wa.nq(this.text,this.ee,a,this.width,this.cm),this.qe=!1,this.Kk=this.width;this.Ca();var d=b?0:this.yb.Ga,e=b?0:this.yb.Ha;this.b.hd&&(d=d+0.5|0,e=e+0.5|0);0===this.m||b||(a.save(),a.translate(d,e),a.rotate(this.m), +e=d=0);var f=e+this.height,l=this.ql,l=l+this.Mk,q,c;1===this.qj?e+=Math.max(this.height/2-this.ee.length*l/2,0):2===this.qj&&(e+=Math.max(this.height-this.ee.length*l-2,0));for(c=0;c=f-l);c++);(0!==this.m||b)&&a.restore();this.Kg=this.b.qd};e.fc=function(a){if(!(1>this.width||1>this.height)){var b=this.qe||this.Wn;this.Wn=!1;var d=this.k.Ib(), +e=this.k.Pa(),f=this.he,l=d*this.width,q=d*this.height,c=Math.ceil(l),k=Math.ceil(q),m=this.b.S/2,n=this.b.R/2;this.Se||(this.fd=document.createElement("canvas"),this.fd.width=c,this.fd.height=k,this.Ai=c,this.xi=k,b=!0,this.Se=this.fd.getContext("2d"));if(c!==this.Ai||k!==this.xi)this.fd.width=c,this.fd.height=k,this.Tb&&(a.deleteTexture(this.Tb),this.Tb=null),b=!0;b&&(this.Se.clearRect(0,0,c,k),this.Mc(this.Se,!0),this.Tb||(this.Tb=a.xd(c,k,this.b.aa,this.b.Yd)),a.Qt(this.fd,this.Tb,this.b.Yd)); +this.Ai=c;this.xi=k;a.Wb(this.Tb);a.Ze(this.opacity);a.kd();a.translate(-m,-n);a.rd();var r=this.yb,C=this.b.devicePixelRatio;this.b.devicePixelRatio=1;var b=this.k.na(r.Ga,r.Ha,!0,!0),m=this.k.na(r.Ga,r.Ha,!1,!0),n=this.k.na(r.wb,r.xb,!0,!0),H=this.k.na(r.wb,r.xb,!1,!0),J=this.k.na(r.rb,r.sb,!0,!0),da=this.k.na(r.rb,r.sb,!1,!0),R=this.k.na(r.pb,r.qb,!0,!0),r=this.k.na(r.pb,r.qb,!1,!0);this.b.devicePixelRatio=C;if(this.b.hd||0===this.m&&0===e)var C=(b+0.5|0)-b,w=(m+0.5|0)-m,b=b+C,m=m+w,n=n+C,H=H+ +w,J=J+C,da=da+w,R=R+C,r=r+w;0===this.m&&0===e?(n=b+c,H=m,J=n,da=m+k,R=b,r=da,f.right=1,f.bottom=1):(f.right=l/c,f.bottom=q/k);a.jd(b,m,n,H,J,da,R,r,f);a.kd();a.scale(d,d);a.xl(-this.k.Pa());a.translate((this.k.mb+this.k.$b)/-2,(this.k.nb+this.k.Zb)/-2);a.rd();this.Kg=this.b.qd}};var f=[];q.mq=function(a){f.length=0;for(var b="",d,e=0;e=f)l(d);else{if(100>=a.length&&-1===a.indexOf("\n")){var r=e.measureText(a).width;if(r<=f){l(d);d.push(b());d[0].text=a;d[0].width=r;return}}this.oq(a,d,e,f,q)}else l(d)};q.oq=function(a,d,e,l,q){q&&(this.mq(a),a=f);var s="",u,c,k,m=0;for(k=0;k=d.length&&d.push(b()),c=d[m],c.text=s,c.width=e.measureText(s).width,m++,s= +""):(u=s,s+=a[k],c=e.measureText(s).width,c>=l&&(m>=d.length&&d.push(b()),c=d[m],c.text=u,c.width=e.measureText(u).width,m++,s=a[k],q||" "!==s||(s="")));s.length&&(m>=d.length&&d.push(b()),c=d[m],c.text=s,c.width=e.measureText(s).width,m++);for(k=m;ka&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.qe=!0,this.b.ja=!0)};a.prototype.kq=function(a,b){if(this.b.Aa)L("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored"); +else{var e=this,f=function(){e.b.ja=!0;e.qe=!0};if(d.hasOwnProperty(b)){var l="'"+a+"'";if(this.Bd!==l)for(this.Bd=l,this.gp(),l=1;10>l;l++)setTimeout(f,100*l),setTimeout(f,1E3*l)}else for(l=document.createElement("link"),l.href=b,l.rel="stylesheet",l.type="text/css",l.onload=f,document.getElementsByTagName("head")[0].appendChild(l),d[b]=!0,this.Bd="'"+a+"'",this.gp(),l=1;10>l;l++)setTimeout(f,100*l),setTimeout(f,1E3*l)}};q.n=new a;q.Ua=new (z())})();function ic(b){this.b=b} +(function(){var b=ic.prototype;b.Da=function(a){this.wa=a;this.b=a.b};var l=b.Da.prototype;l.Z=function(){this.I||(this.U=new Image,this.U.idtkLoadDisposed=!0,this.U.src=this.Nl,this.U.Fm=this.Ol,this.b.Ld.push(this.U),this.xa=this.pattern=null)};l.Mi=function(){this.I||(this.xa=null)};l.el=function(){if(!this.I&&this.i.length){this.xa||(this.xa=this.b.B.Gi(this.U,!0,this.b.aa,this.Pl));var a,b;a=0;for(b=this.i.length;al&&(l+=this.U.width);0>h&&(h+=this.U.height);a.translate(b,e);a.rotate(this.m);a.translate(l,h);a.fillRect(d-l,f-h,this.width,this.height); +a.restore()};l.fc=function(a){a.Wb(this.xa);a.Ze(this.opacity);var b=this.he;b.right=this.width/this.U.width;b.bottom=this.height/this.U.height;var e=this.yb;if(this.b.hd){var d=(this.x+0.5|0)-this.x,f=(this.y+0.5|0)-this.y;a.jd(e.Ga+d,e.Ha+f,e.wb+d,e.xb+f,e.rb+d,e.sb+f,e.pb+d,e.qb+f,b)}else a.jd(e.Ga,e.Ha,e.wb,e.xb,e.rb,e.sb,e.pb,e.qb,b)};b.j=new (z());b.n=new (z());b.Ua=new (z())})();function jc(b){this.b=b} +(function(){function b(a){r=a.x;h=a.y;g=a.z}function l(a){t=a.x;p=a.y;v=a.z}function a(){}function q(){}var e=jc.prototype;e.Da=function(a){this.wa=a;this.b=a.b};e.Da.prototype.Z=z();e.ra=function(a){this.type=a;this.b=a.b;this.touches=[];this.Wk=!1};var d=e.ra.prototype,f={left:0,top:0};d.kg=function(a){var b,c;b=0;for(c=this.touches.length;bc-b.time||(b.yi=b.time,b.be=b.x,b.de=b.y,b.time=c,b.x=a.pageX-d.left,b.y=a.pageY-d.top)}}};d.fo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.b.Aa?f:jQuery(this.b.canvas).offset(),c=a.pageX- +b.left,b=a.pageY-b.top,d=Ua();this.se=this.touches.length;this.touches.push({time:d,x:c,y:b,yi:d,be:c,de:b,id:a.pointerId,Kl:this.se});this.b.xc=!0;this.b.trigger(jc.prototype.j.jm,this);this.b.trigger(jc.prototype.j.Dj,this);this.Uj=c;this.Vj=b;this.b.trigger(jc.prototype.j.lm,this);this.b.xc=!1}};d.Ni=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),a=this.kg(a.pointerId),this.se=0<=a?this.touches[a].Kl:-1,this.b.xc=!0,this.b.trigger(jc.prototype.j.im, +this),this.b.trigger(jc.prototype.j.km,this),this.b.xc=!1,0<=a&&this.touches.splice(a,1))};d.ho=function(a){a.preventDefault&&a.preventDefault();var b=Ua(),c,d,e,g;c=0;for(d=a.changedTouches.length;cb-g.time||(g.yi=g.time,g.be=g.x,g.de=g.y,g.time=b,g.x=e.pageX-h.left,g.y=e.pageY-h.top)}};d.io=function(a){a.preventDefault&&a.preventDefault();var b=this.b.Aa?f:jQuery(this.b.canvas).offset(), +c=Ua();this.b.xc=!0;var d,e,g,h;d=0;for(e=a.changedTouches.length;db&&(b=0),this.r= +Math.cos(e)*b,this.C=Math.sin(e)*b);0!==this.Qb&&(this.C+=this.Qb*a);this.be=this.d.x;this.de=this.d.y;if(0!==this.r||0!==this.C)if(this.d.x+=this.r*a,this.d.y+=this.C*a,this.nj+=Na(0,0,this.r*a,this.C*a),this.Cl&&(this.d.m=Ea(0,0,this.r,this.C),this.d.D(),this.zf=this.d.m),this.d.D(),this.zq&&(b=this.b.lb(this.d)))this.b.Lf(this.d,b),b=Na(0,0,this.r,this.C),e=this.b.Cq(this.d,this.be,this.de),this.r=Math.cos(e)*b,this.C=Math.sin(e)*b,this.d.x+=this.r*a,this.d.y+=this.C*a,this.d.D(),this.Cl&&(this.zf= +this.d.m=e,this.d.D()),this.b.Uc(this.d,this.r/b,this.C/b,Math.max(2.5*b*a,30))||this.b.zo(this.d,100)}};b.j=new (z());b.n=new (z());b.Ua=new (z())})();function pc(b){this.b=b} +(function(){function b(){}function l(){}var a=pc.prototype;a.Da=function(a){this.Eb=a;this.b=a.b};a.Da.prototype.Z=z();a.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b;this.ej=this.Hl=this.Gl=this.wk=this.yf=this.Eg=this.aj=this.Di=!1;this.jc=null;this.Nk=-1;this.Me=this.Le=0;this.bi=!1;this.nf=this.Kc=0;this.ai=!0;this.C=this.r=0};var q=a.ra.prototype;q.hp=function(){this.hb=Math.cos(this.pf);this.ib=Math.sin(this.pf);this.Xe=Math.cos(this.pf-Math.PI/2);this.Ye=Math.sin(this.pf-Math.PI/ +2);this.hb=ab(this.hb);this.ib=ab(this.ib);this.Xe=ab(this.Xe);this.Ye=ab(this.Ye);this.gk=this.Qb;0>this.Qb&&(this.hb*=-1,this.ib*=-1,this.Qb=Math.abs(this.Qb))};q.Z=function(){this.Ff=this.A[0];this.Hc=this.A[1];this.lf=this.A[2];this.Ik=this.A[3];this.gk=this.Qb=this.A[4];this.Ji=this.A[5];this.Mq=1===this.A[6];this.enabled=0!==this.A[7];this.Xf=!1;this.tj=this.b.pe(this.d);this.pf=U(90);this.hp();var a=this;this.Mq&&!this.b.Aa&&(jQuery(document).keydown(function(b){a.Ps(b)}),jQuery(document).keyup(function(b){a.Qs(b)})); +this.mc||(this.Vn=function(b){a.cl(b)});this.b.Hj(this.Vn)};q.Lb=function(){return{ii:this.wk,lfx:this.Le,lfy:this.Me,lfo:this.jc?this.jc.uid:-1,am:this.Kc,en:this.enabled,fall:this.nf,ft:this.ai,dx:this.r,dy:this.C,ms:this.Ff,acc:this.Hc,dec:this.lf,js:this.Ik,g:this.Qb,g1:this.gk,mf:this.Ji,wof:this.Xf,woj:this.tj,ga:this.pf}};q.lc=function(a){this.wk=a.ii;this.Le=a.lfx;this.Me=a.lfy;this.Nk=a.lfo;this.Kc=a.am;this.enabled=a.en;this.nf=a.fall;this.ai=a.ft;this.r=a.dx;this.C=a.dy;this.Ff=a.ms;this.Hc= +a.acc;this.lf=a.dec;this.Ik=a.js;this.Qb=a.g;this.gk=a.g1;this.Ji=a.mf;this.Xf=a.wof;this.tj=a.woj;this.pf=a.ga;this.ej=this.Hl=this.Gl=this.yf=this.Eg=this.aj=this.Di=!1;this.hp()};q.Zc=function(){this.jc=-1===this.Nk?null:this.b.ng(this.Nk)};q.cl=function(a){this.jc==a&&(this.jc=null)};q.Ue=function(){this.jc=null;this.b.jt(this.Vn)};q.Ps=function(a){switch(a.which){case 38:a.preventDefault();this.Eg=!0;break;case 37:a.preventDefault();this.Di=!0;break;case 39:a.preventDefault(),this.aj=!0}};q.Qs= +function(a){switch(a.which){case 38:a.preventDefault();this.yf=this.Eg=!1;break;case 37:a.preventDefault();this.Di=!1;break;case 39:a.preventDefault(),this.aj=!1}};q.Wu=function(){return 0>this.Qb?-1:1};q.rn=function(){var a=null,b=null,f,l;f=this.d.x;l=this.d.y;this.d.x+=this.hb;this.d.y+=this.ib;this.d.D();if(this.jc&&this.b.Yb(this.d,this.jc))return this.d.x=f,this.d.y=l,this.d.D(),this.jc;(a=this.b.lb(this.d))||0!==this.nf||(b=this.b.pe(this.d,!0));this.d.x=f;this.d.y=l;this.d.D();if(a){if(this.b.Yb(this.d, +a))return null;this.bi=!1;return a}if(b&&b.length){l=a=0;for(f=b.length;athis.Ji&&(this.C=this.Ji),c&&(this.yf=!0));this.Xf=!!k;u==l&&(0>this.r?(this.r+=this.lf* +a,0this.r&&(this.r=0)));u&&!l&&(this.r=0this.r?this.r+(this.Hc+this.lf)*a:this.r+this.Hc*a);this.r>this.Ff?this.r=this.Ff:this.r<-this.Ff&&(this.r=-this.Ff);u=!1;0!==this.r&&(v=this.d.x,s=this.d.y,b=this.r*a*this.Xe,f=this.r*a*this.Ye,this.d.x+=this.Xe*(1this.r?1:-1),this.Ye*(0>this.r?1:-1),b,!1)?!k||h||this.bi||(v=this.d.x,s=this.d.y,this.d.x+=this.hb,this.d.y+=this.ib,this.b.lb(this.d)?this.b.Uc(this.d,-this.hb,-this.ib, +3,!1)||(this.d.x=v,this.d.y=s,this.d.D()):(this.d.x=v,this.d.y=s,this.d.D())):(this.d.x=v,this.d.y=s,this.d.D()),h||(this.r=0)):!g&&15>Math.abs(this.C)&&(this.C=0,k||(u=!0)):(v=this.rn(),k&&!v?(f=Math.ceil(Math.abs(this.r*a))+2,v=this.d.x,s=this.d.y,this.d.x+=this.hb*f,this.d.y+=this.ib*f,this.d.D(),this.b.lb(this.d)||this.b.pe(this.d)?this.b.Uc(this.d,-this.hb,-this.ib,f+2,!0):(this.d.x=v,this.d.y=s,this.d.D())):v&&0===this.C&&this.b.pl(this.d,-this.hb,-this.ib,v)));if(0!==this.C){v=this.d.x;s=this.d.y; +this.d.x+=this.C*a*this.hb;this.d.y+=this.C*a*this.ib;b=this.d.x;l=this.d.y;this.d.D();f=this.b.lb(this.d);h=!1;if(!f&&0this.C?1: +-1),this.ib*(0>this.C?1:-1),b,h,f)?(this.jc=f,this.Le=f.x,this.Me=f.y,(this.bi=h)&&(u=!0),this.C=0):(this.d.x=v,this.d.y=s,this.d.D(),this.Xf=!0,h||(this.C=0)))}3!==this.Kc&&0this.C};b.prototype.Pp=G(!0);b.prototype.Dp=G(!0);b.prototype.fq=G(!0);b.prototype.Vp=G(!0);b.prototype.Sp=G(!0);a.j=new b;l.prototype.iq=function(a){this.C=a};a.n=new l;a.Ua=new (z())})();function ec(b){this.b=b} +(function(){var b=ec.prototype;b.Da=function(a){this.Eb=a;this.b=a.b};b.Da.prototype.Z=z();b.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b};var l=b.ra.prototype;l.Z=function(){this.d.P.yt=0!==this.A[0]};l.Za=z();b.j=new (z());b.n=new (z())})(); +function dc(){return[null,null,[[Z,!1,!0,!0,!0,!0,!0,!0,!0,!1],[hc,!1,!0,!0,!0,!0,!0,!0,!0,!1],[ic,!1,!0,!0,!0,!0,!0,!0,!0,!0],[jc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[W,!0,!1,!1,!1,!1,!1,!1,!1,!1],[fc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[gc,!1,!0,!0,!0,!1,!1,!1,!1,!1],[X,!0,!1,!1,!1,!1,!1,!1,!1,!1]],[["t0",Z,!1,[],2,0,null,[["Default",12,!0,1,0,!1,0x9cf3de55b74d,[["images/bird-sheet0.png",297,0,0,60,42,1,0.5,0.5,[],[-0.300000011920929,-0.2142859995365143,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143, +0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0],["images/bird-sheet1.png",296,0,0,60,42,1,0.5,0.5,[],[-0.300000011920929,-0.2142859995365143,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0],["images/bird-sheet2.png",292,0,0,60,42,1,0.5,0.5,[],[-0.3499999940395355, +-0.2857140004634857,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0]]]],[["Platform",pc,5178987554423825],["Bullet",kc,5915136554423096]],!1,!1,7655953109634694,[],null],["t1",gc,!1,[],0,0,null,null,[],!1,!1,0x978a934282253,[],null],["t2",ic,!1,[],0,0,["images/tiledbackground.png",110,2],null,[],!1,!1,7074001819537027,[],null],["t3",ic,!1,[],1,0, +["images/tiledbackground2.png",244,1],null,[["Solid",ec,7647064555855058]],!1,!1,0x911491cebc40b,[],null],["t4",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,5403016070098888,[["images/background-sheet0.png",1091,0,0,360,640,1,0.5,0.5,[],[],1]]]],[],!1,!1,953656317085853,[],null],["t5",Z,!1,[594544762936064],1,0,null,[["Default",5,!1,1,0,!1,7052596752156929,[["images/bottompipe-sheet0.png",326,0,0,72,405,1,0.5,0.5012345910072327,[],[],1]]]],[["Solid",ec,6722651798794236]],!1,!1,9618256118790168,[],null], +["t6",Z,!1,[],1,0,null,[["Default",5,!1,1,0,!1,290853698256507,[["images/toppipe-sheet0.png",330,0,0,72,405,1,0.5,0.5012345910072327,[],[],1]]]],[["Solid",ec,6282154193180226]],!1,!1,0xa8aa3754ecd2a,[],null],["t7",hc,!1,[],0,0,null,null,[],!1,!1,8463788785676717,[],null],["t8",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,8147977195382181,[["images/background-sheet0.png",1091,0,0,360,640,1,0.5,0.5,[],[],1]]]],[],!1,!1,0xc449578cad692,[],null],["t9",gc,!1,[],0,0,null,null,[],!1,!1,9906374471482008,[],null], +["t10",W,!1,[],0,0,null,null,[],!1,!1,669069303560179,[],null,[]],["t11",jc,!1,[],0,0,null,null,[],!1,!1,486488503983799,[],null,[1]],["t12",fc,!1,[],0,0,null,null,[],!1,!1,4927060136278973,[],null,[0,0,1,1,600,600,1E4,1,5E3,1]],["t13",gc,!1,[],0,0,null,null,[],!1,!1,9879998339594612,[],null],["t14",X,!1,[],0,0,null,null,[],!1,!1,318978452288943,[],null,[0,1]]],[],[["Start",400,600,!1,"Start events",5642885501120438,[["Layer 0",0,0x59e1be0fcd8a5,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[199,267,0,403, +664,0,0,1,0.5,0.5,0,0,[]],8,8,[],[],[0,"Default",0,1]],[[163,236,0,72,24,0,0,1,0,0,0,0,[]],1,1,[],[],[0,"Play!","",1,1,1,"",0]],[[503,447,0,128,24,0,0,1,0,0,0,0,[]],9,10,[],[],[0,"View tutorial!","",1,1,1,"",0]]],[]]],[],[]],["Game",400,600,!1,"Game events",6198708927320934,[["Layer 0",0,355627206710923,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[447,-117,0,72,405,0,0,1,0.5,0.5012345910072327,0,0,[]],6,7,[],[[1]],[0,"Default",0,1]],[[450,630,0,72,405,0,0,1,0.5,0.5012345910072327,0,0,[]],5,6,[[0]],[[1]], +[0,"Default",0,1]],[[200,246,0,397.9865112304688,707.5315551757812,0,0,1,0.5,0.5,0,0,[]],4,5,[],[],[0,"Default",0,1]],[[75,205,0,60,42,0,-0.003806045977398753,1,0.5,0.5,0,0,[]],0,0,[],[[0,300,1500,0,1800,2500,1,1],[0,0,0,1,1,1]],[0,"Default",0,1]],[[-76,627,0,1118,28,0,0,1,0,0,0,0,[]],2,3,[],[],[0,0]],[[181,50,0,169,114,0,0,1,0,0,0,0,[]],7,9,[],[],["0",0,"26pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]],["Pipes",1,6282195705710062,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[0,474,0,1007,130,0,0,1,0,0,0, +0,[]],3,4,[],[[1]],[0,0]]],[]],["Restart",3,8827971525510233,!1,[255,255,255],!0,1,1,1,!1,1,0,0,[[[158,243,0,72,24,0,0,1,0,0,0,0,[]],13,13,[],[],[0,"Restart","",1,1,1,"",0]]],[]]],[],[]]],[["Game events",[[1,"SECONDSPEROBSTACLE",0,1,!1,!0,0x5bf010b64db3c,!1],[1,"JUMPSTRENGTH",0,550,!1,!0,6706328064360653,!1],[1,"SCROLLSPEED",0,300,!1,!0,0xc6a8ff77fc51,!1],[1,"Score",0,0,!1,!1,0x5c248b788c4f5,!1],[0,[!0,"Start"],!1,null,0x79b2493328c60,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x79b2493328c60,!1,[[1,[2, +"Start"]]]]],[],[[0,null,!1,null,0x7fb9c20c1c4f4,[[-1,V.prototype.j.fm,null,1,!1,!1,!1,7552674298305292,!1]],[[7,hc.prototype.n.Ej,null,7981695657209981,!1,[[7,[0,0]]]],[7,hc.prototype.n.kq,null,8858143142522444,!1,[[1,[2,"Press Start 2P"]],[1,[2,"http://fonts.googleapis.com/css?family=Press+Start+2P"]]]],[3,ic.prototype.n.Md,null,8531867926373433,!1,[[0,[0,0]]]],[2,ic.prototype.n.Md,null,7883271464586618,!1,[[0,[0,0]]]],[-1,V.prototype.n.hq,null,5362289503657037,!1,[[11,"Score"],[7,[0,0]]]],[6,Z.prototype.n.rh, +null,5327330446513932,!1],[5,Z.prototype.n.rh,null,0x9036ad38b539f,!1],[0,Z.prototype.n.gq,null,0xe22a4311bdaf7,!1,[[0,[0,320]]]],[-1,V.prototype.n.Db,null,9201979701102372,!1,[[1,[2,"Movement"]],[3,1]]],[-1,V.prototype.n.Db,null,6267526365805088,!1,[[1,[2,"Background"]],[3,1]]],[-1,V.prototype.n.Db,null,6363178502281003,!1,[[1,[2,"Obstacle"]],[3,1]]],[-1,V.prototype.n.vh,null,7674229181990306,!1,[[5,[0,2]],[3,0]]],[-1,V.prototype.n.Db,null,0xa1db8f09e258a,!1,[[1,[2,"Collisions"]],[3,1]]]]]]],[0, +[!0,"Movement"],!1,null,0x4fa414ac0c414,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x4fa414ac0c414,!1,[[1,[2,"Movement"]]]]],[],[[0,null,!1,null,9923654974799748,[[11,jc.prototype.j.Dj,null,1,!1,!1,!1,8630474439530806,!1]],[[0,pc.prototype.n.iq,"Platform",8776672419371477,!1,[[0,[3,[23,"JUMPSTRENGTH"]]]]]]],[0,null,!1,null,0xb5e14d8b40f2,[[0,pc.prototype.j.up,"Platform",0,!1,!1,!1,7423593987601416,!1]],[[0,Z.prototype.n.uh,null,5698124432107209,!1,[[0,[0,2]],[0,[0,90]]]]]],[0,null,!1,null,0xb651ab18f194, +[[0,pc.prototype.j.tp,"Platform",0,!1,!1,!1,0x6d1b94a801b48,!1]],[[0,Z.prototype.n.uh,null,0x4d69f084f2723,!1,[[0,[0,9]],[0,[0,-25]]]]]]]],[0,[!0,"Collisions"],!1,null,9558025647412416,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,9558025647412416,!1,[[1,[2,"Collisions"]]]]],[],[[0,null,!1,null,0x9b4a6aa23552,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,6202042408238202,!1,[[4,3]]]],[[-1,V.prototype.n.Db,null,650488141588384,!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,9640112226732188,!1],[-1,V.prototype.n.Db, +null,9001322535240395,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,5328022455235355,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,5576810530230529,!1,[[5,[0,2]],[3,1]]]]],[0,null,!1,null,0xb1f259f4e4c41,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,7033929425378829,!1,[[4,6]]]],[[-1,V.prototype.n.Db,null,9710898490746992,!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,0x8ec9a2780e9eb,!1],[0,Z.prototype.n.uh,null,0xd7c039cfd925b,!1,[[0,[0,20]],[0,[0,90]]]],[-1,V.prototype.n.Db, +null,0x405bed6588248,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,0x991dc2b3e3eca,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,6311384745069453,!1,[[5,[0,2]],[3,1]]],[12,fc.prototype.n.Play,null,0xd6a2727cfedd2,!1,[[2,["nabrak",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.n.Db,null,0xb785784a3a3e8,!1,[[1,[2,"Collisions"]],[3,0]]]]],[0,null,!1,null,6661993072735907,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,0xc2dec64614c99,!1,[[4,5]]]],[[-1,V.prototype.n.Db,null,9831981707608296, +!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,6699772369267079,!1],[0,Z.prototype.n.uh,null,0xe07711ad5bfc6,!1,[[0,[0,20]],[0,[0,90]]]],[-1,V.prototype.n.Db,null,0x6c48eba096648,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,4555980905622123,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,4975109804000668,!1,[[5,[0,2]],[3,1]]],[12,fc.prototype.n.Play,null,88902804884405,!1,[[2,["nabrak",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.n.Db,null,0xf54f38f6ed393,!1,[[1, +[2,"Collisions"]],[3,0]]]]],[0,null,!1,null,9569398275688900,[[0,Z.prototype.j.vp,null,0,!1,!1,!1,0xd2a15c96ebb43,!1]],[[-1,V.prototype.n.xj,null,8628296172319708,!1,[[6,"Start"]]]]]]],[0,[!0,"Scoring"],!1,null,0xf2791f34175d,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0xf2791f34175d,!1,[[1,[2,"Scoring"]]]]],[],[[0,null,!1,null,0xa10b4746e5408,[[5,Z.prototype.j.Yf,null,0,!1,!1,!1,7198601104534188,!1,[[8,3],[0,[20,0,Z.prototype.Ua.ef,!1,null]]]],[5,Z.prototype.j.sp,null,0,!1,!0,!1,9504905685329224,!1,[[10, +0]]]],[[-1,V.prototype.n.np,null,0xd77c4ecfee059,!1,[[11,"Score"],[7,[0,1]]]],[7,hc.prototype.n.Ej,null,0x777f548914531,!1,[[7,[23,"Score"]]]],[5,Z.prototype.n.nm,null,0x5b14e2f44299b,!1,[[10,0],[3,1]]],[12,fc.prototype.n.Play,null,6520842869629358,!1,[[2,["lewatpipa2",!1]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],[0,[!0,"Background"],!1,null,0x7e0fe3c8497b1,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x7e0fe3c8497b1,!1,[[1,[2,"Background"]]]]],[],[[0,null,!1,null,0x7519a4ef02af6,[[2,ic.prototype.j.Yf,null,0,!1, +!1,!1,6540219589020234,!1,[[8,3],[0,[0,-560]]]]],[[2,ic.prototype.n.Md,null,9755675412106924,!1,[[0,[0,0]]]]]],[0,null,!1,null,30454140128404,[[3,ic.prototype.j.Yf,null,0,!1,!1,!1,0x446d5cd3f1cb7,!1,[[8,3],[0,[0,-410]]]]],[[3,ic.prototype.n.Md,null,0x4065c9db3bcc0,!1,[[0,[0,0]]]]]],[0,null,!1,null,0x4ec47142457bc,[[-1,V.prototype.j.rp,null,0,!1,!1,!1,0x41d2c7ea9c5ed,!1]],[[5,Z.prototype.n.Md,null,7511133595224626,!1,[[0,[5,[20,5,Z.prototype.Ua.ef,!1,null],[1,3.5]]]]],[6,Z.prototype.n.Md,null,8323998578270259, +!1,[[0,[5,[20,6,Z.prototype.Ua.ef,!1,null],[1,3.5]]]]],[3,ic.prototype.n.Md,null,0x7cd9cc810ba65,!1,[[0,[5,[20,3,ic.prototype.Ua.ef,!1,null],[1,3.5]]]]],[2,ic.prototype.n.Md,null,9315588896493164,!1,[[0,[5,[20,2,ic.prototype.Ua.ef,!1,null],[1,3.5]]]]]]],[0,null,!1,null,6231531170117115,[[6,Z.prototype.j.Yf,null,0,!1,!1,!1,0x63245c7a81a0,!1,[[8,2],[0,[0,-50]]]]],[[6,Z.prototype.n.rh,null,0xc247696ca04de,!1]]],[0,null,!1,null,7423873857133321,[[5,Z.prototype.j.Yf,null,0,!1,!1,!1,0xf3e91a606514c,!1, +[[8,2],[0,[0,-50]]]]],[[5,Z.prototype.n.rh,null,0x68ad1304ed94d,!1]]]]],[0,[!0,"Obstacle"],!1,null,9794049253184592,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,9794049253184592,!1,[[1,[2,"Obstacle"]]]]],[],[[0,null,!1,null,6640649658259165,[[-1,V.prototype.j.qp,null,0,!1,!1,!1,4811019573960773,!1,[[0,[1,1.2]]]]],[[-1,V.prototype.n.dm,null,0x62e328b22527a,!1,[[4,6],[5,[0,0]],[0,[0,440]],[0,[19,V.prototype.Ua.random,[[0,50],[0,-250]]]]]],[-1,V.prototype.n.dm,null,0x8fa93e5db4a1f,!1,[[4,5],[5,[0,0]],[0,[0, +440]],[0,[4,[20,6,Z.prototype.Ua.om,!1,null],[0,550]]]]],[7,hc.prototype.n.xp,null,0xab94651d81946,!1],[5,Z.prototype.n.nm,null,0xb87d687994a6e,!1,[[10,0],[3,0]]]]]]],[0,[!0,"Restart"],!1,null,5247221245270953,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,5247221245270953,!1,[[1,[2,"Restart"]]]]],[]],[0,null,!1,null,8181246724427678,[[13,gc.prototype.j.sh,null,1,!1,!1,!1,290332944059829,!1]],[[-1,V.prototype.n.xj,null,5086158505023414,!1,[[6,"Game"]]]]]]],["Start events",[[0,null,!1,null,8450924142424696, +[[1,gc.prototype.j.sh,null,1,!1,!1,!1,8769507891639029,!1]],[[-1,V.prototype.n.xj,null,0x4b1acbd660d14,!1,[[6,"Game"]]]]],[0,null,!1,null,8396635392973638,[[9,gc.prototype.j.sh,null,1,!1,!1,!1,8649054085373641,!1]],[]]]]],"media/",!1,400,600,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,15,!1,!0,[]]}; diff --git a/flappyduck/index.html b/flappyduck/index.html new file mode 100644 index 00000000..30145b04 --- /dev/null +++ b/flappyduck/index.html @@ -0,0 +1,113 @@ + + + + + + FlappyDuck + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + +

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

+
+ +
+ + + + + + + + + + + + + + diff --git a/flappyduck/jquery-2.0.0.min.js b/flappyduck/jquery-2.0.0.min.js new file mode 100644 index 00000000..90b6db29 --- /dev/null +++ b/flappyduck/jquery-2.0.0.min.js @@ -0,0 +1,5 @@ +/*! jQuery v2.0.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license +*/ +(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],f="2.0.0",p=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=f.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return p.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,f,p,h,d,g,m,y="sizzle"+-new Date,v=e.document,b={},w=0,T=0,C=ot(),k=ot(),N=ot(),E=!1,S=function(){return 0},j=typeof undefined,D=1<<31,A=[],L=A.pop,q=A.push,H=A.push,O=A.slice,F=A.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=M.replace("w","w#"),$="\\["+R+"*("+M+")"+R+"*(?:([*^$|!~]?=)"+R+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+R+"*\\]",B=":("+M+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",I=RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),z=RegExp("^"+R+"*,"+R+"*"),_=RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),X=RegExp(R+"*[+~]"),U=RegExp("="+R+"*([^\\]'\"]*)"+R+"*\\]","g"),Y=RegExp(B),V=RegExp("^"+W+"$"),G={ID:RegExp("^#("+M+")"),CLASS:RegExp("^\\.("+M+")"),TAG:RegExp("^("+M.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+B),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),"boolean":RegExp("^(?:"+P+")$","i"),needsContext:RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,et=/'|\\/g,tt=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,nt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{H.apply(A=O.call(v.childNodes),v.childNodes),A[v.childNodes.length].nodeType}catch(rt){H={apply:A.length?function(e,t){q.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function it(e){return J.test(e+"")}function ot(){var e,t=[];return e=function(n,i){return t.push(n+=" ")>r.cacheLength&&delete e[t.shift()],e[n]=i}}function st(e){return e[y]=!0,e}function at(e){var t=c.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ut(e,t,n,r){var i,o,s,a,u,f,d,g,x,w;if((t?t.ownerDocument||t:v)!==c&&l(t),t=t||c,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(p&&!r){if(i=Q.exec(e))if(s=i[1]){if(9===a){if(o=t.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(s))&&m(t,o)&&o.id===s)return n.push(o),n}else{if(i[2])return H.apply(n,t.getElementsByTagName(e)),n;if((s=i[3])&&b.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(s)),n}if(b.qsa&&(!h||!h.test(e))){if(g=d=y,x=t,w=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(d=t.getAttribute("id"))?g=d.replace(et,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=f.length;while(u--)f[u]=g+mt(f[u]);x=X.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return H.apply(n,x.querySelectorAll(w)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(I,"$1"),t,n,r)}o=ut.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},l=ut.setDocument=function(e){var t=e?e.ownerDocument||e:v;return t!==c&&9===t.nodeType&&t.documentElement?(c=t,f=t.documentElement,p=!o(t),b.getElementsByTagName=at(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),b.attributes=at(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByClassName=at(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),b.sortDetached=at(function(e){return 1&e.compareDocumentPosition(c.createElement("div"))}),b.getById=at(function(e){return f.appendChild(e).id=y,!t.getElementsByName||!t.getElementsByName(y).length}),b.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==j&&p){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){return e.getAttribute("id")===t}}):(r.find.ID=function(e,t){if(typeof t.getElementById!==j&&p){var n=t.getElementById(e);return n?n.id===e||typeof n.getAttributeNode!==j&&n.getAttributeNode("id").value===e?[n]:undefined:[]}},r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=b.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=b.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&p?t.getElementsByClassName(e):undefined},d=[],h=[],(b.qsa=it(t.querySelectorAll))&&(at(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){var t=c.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&h.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(b.matchesSelector=it(g=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){b.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),d.push("!=",B)}),h=h.length&&RegExp(h.join("|")),d=d.length&&RegExp(d.join("|")),m=it(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,n){if(e===n)return E=!0,0;var r=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);return r?1&r||!b.sortDetached&&n.compareDocumentPosition(e)===r?e===t||m(v,e)?-1:n===t||m(v,n)?1:u?F.call(u,e)-F.call(u,n):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],l=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:u?F.call(u,e)-F.call(u,n):0;if(o===s)return lt(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)l.unshift(r);while(a[i]===l[i])i++;return i?lt(a[i],l[i]):a[i]===v?-1:l[i]===v?1:0},c):c},ut.matches=function(e,t){return ut(e,null,null,t)},ut.matchesSelector=function(e,t){if((e.ownerDocument||e)!==c&&l(e),t=t.replace(U,"='$1']"),!(!b.matchesSelector||!p||d&&d.test(t)||h&&h.test(t)))try{var n=g.call(e,t);if(n||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return ut(t,c,null,[e]).length>0},ut.contains=function(e,t){return(e.ownerDocument||e)!==c&&l(e),m(e,t)},ut.attr=function(e,t){(e.ownerDocument||e)!==c&&l(e);var n=r.attrHandle[t.toLowerCase()],i=n&&n(e,t,!p);return i===undefined?b.attributes||!p?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null:i},ut.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ut.uniqueSort=function(e){var t,n=[],r=0,i=0;if(E=!b.detectDuplicates,u=!b.sortStable&&e.slice(0),e.sort(S),E){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return e};function lt(e,t){var n=t&&e,r=n&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}function ft(e,t,n){var r;return n?undefined:r=e.getAttribute(t,"type"===t.toLowerCase()?1:2)}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function dt(e){return st(function(t){return t=+t,st(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}i=ut.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r];r++)n+=i(t);return n},r=ut.selectors={cacheLength:50,createPseudo:st,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(tt,nt),e[3]=(e[4]||e[5]||"").replace(tt,nt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ut.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ut.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&Y.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(tt,nt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ut.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){f=t;while(f=f[g])if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[y]||(m[y]={}),l=c[e]||[],h=l[0]===w&&l[1],p=l[0]===w&&l[2],f=h&&m.childNodes[h];while(f=++h&&f&&f[g]||(p=h=0)||d.pop())if(1===f.nodeType&&++p&&f===t){c[e]=[w,h,p];break}}else if(x&&(l=(t[y]||(t[y]={}))[e])&&l[0]===w)p=l[1];else while(f=++h&&f&&f[g]||(p=h=0)||d.pop())if((a?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++p&&(x&&((f[y]||(f[y]={}))[e]=[w,p]),f===t))break;return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ut.error("unsupported pseudo: "+e);return i[y]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?st(function(e,n){var r,o=i(e,t),s=o.length;while(s--)r=F.call(e,o[s]),e[r]=!(n[r]=o[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:st(function(e){var t=[],n=[],r=s(e.replace(I,"$1"));return r[y]?st(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:st(function(e){return function(t){return ut(e,t).length>0}}),contains:st(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:st(function(e){return V.test(e||"")||ut.error("unsupported lang: "+e),e=e.replace(tt,nt).toLowerCase(),function(t){var n;do if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===c.activeElement&&(!c.hasFocus||c.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[0>n?n+t:n]}),even:dt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:dt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:dt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);function gt(e,t){var n,i,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=r.preFilter;while(a){(!n||(i=z.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),n=!1,(i=_.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(I," ")}),a=a.slice(n.length));for(s in r.filter)!(i=G[s].exec(a))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ut.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,r){var i=t.dir,o=r&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,r,a){var u,l,c,f=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,r,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[y]||(t[y]={}),(l=c[i])&&l[0]===f){if((u=l[1])===!0||u===n)return u===!0}else if(l=c[i]=[f],l[1]=e(t,r,a)||n,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[y]&&(r=bt(r)),i&&!i[y]&&(i=bt(i,o)),st(function(o,s,a,u){var l,c,f,p=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,p,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(f=l[c])&&(y[h[c]]=!(m[h[c]]=f))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(f=y[c])&&l.push(m[c]=f);i(null,y=[],l,u)}c=y.length;while(c--)(f=y[c])&&(l=i?F.call(o,f):p[c])>-1&&(o[l]=!(s[l]=f))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):H.apply(s,y)})}function wt(e){var t,n,i,o=e.length,s=r.relative[e[0].type],u=s||r.relative[" "],l=s?1:0,c=yt(function(e){return e===t},u,!0),f=yt(function(e){return F.call(t,e)>-1},u,!0),p=[function(e,n,r){return!s&&(r||n!==a)||((t=n).nodeType?c(e,n,r):f(e,n,r))}];for(;o>l;l++)if(n=r.relative[e[l].type])p=[yt(vt(p),n)];else{if(n=r.filter[e[l].type].apply(null,e[l].matches),n[y]){for(i=++l;o>i;i++)if(r.relative[e[i].type])break;return bt(l>1&&vt(p),l>1&&mt(e.slice(0,l-1)).replace(I,"$1"),n,i>l&&wt(e.slice(l,i)),o>i&&wt(e=e.slice(i)),o>i&&mt(e))}p.push(n)}return vt(p)}function Tt(e,t){var i=0,o=t.length>0,s=e.length>0,u=function(u,l,f,p,h){var d,g,m,y=[],v=0,x="0",b=u&&[],T=null!=h,C=a,k=u||s&&r.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(a=l!==c&&l,n=i);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,f)){p.push(d);break}T&&(w=N,n=++i)}o&&((d=!m&&d)&&v--,u&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,f);if(u){if(v>0)while(x--)b[x]||y[x]||(y[x]=L.call(p));y=xt(y)}H.apply(p,y),T&&!u&&y.length>0&&v+t.length>1&&ut.uniqueSort(p)}return T&&(w=N,a=C),b};return o?st(u):u}s=ut.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[y]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ut(e,t[r],n);return n}function kt(e,t,n,i){var o,a,u,l,c,f=gt(e);if(!i&&1===f.length){if(a=f[0]=f[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&p&&r.relative[a[1].type]){if(t=(r.find.ID(u.matches[0].replace(tt,nt),t)||[])[0],!t)return n;e=e.slice(a.shift().value.length)}o=G.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],r.relative[l=u.type])break;if((c=r.find[l])&&(i=c(u.matches[0].replace(tt,nt),X.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=i.length&&mt(a),!e)return H.apply(n,i),n;break}}}return s(e,f)(i,t,!p,n,X.test(e)),n}r.pseudos.nth=r.pseudos.eq;function Nt(){}Nt.prototype=r.filters=r.pseudos,r.setFilters=new Nt,b.sortStable=y.split("").sort(S).join("")===y,l(),[0,0].sort(S),b.detectDuplicates=E,at(function(e){if(e.innerHTML="","#"!==e.firstChild.getAttribute("href")){var t="type|href|height|width".split("|"),n=t.length;while(n--)r.attrHandle[t[n]]=ft}}),at(function(e){if(null!=e.getAttribute("disabled")){var t=P.split("|"),n=t.length;while(n--)r.attrHandle[t[n]]=ct}}),x.find=ut,x.expr=ut.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ut.uniqueSort,x.text=ut.getText,x.isXMLDoc=ut.isXML,x.contains=ut.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(f){for(t=e.memory&&f,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(f[0],f[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!a||n&&!u||(r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))this.cache[i]=t;else for(r in t)o[r]=t[r]},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i=this.key(e),o=this.cache[i];if(t===undefined)this.cache[i]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):t in o?r=[t]:(r=x.camelCase(t),r=r in o?[r]:r.match(w)||[]),n=r.length;while(n--)delete o[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){delete this.cache[this.key(e)]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.substring(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t); +x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,s=0,a=x(this),u=t,l=e.match(w)||[];while(o=l[s++])u=i?u:!a.hasClass(o),a[u?"addClass":"removeClass"](o)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i,o=x(this);1===this.nodeType&&(i=r?e.call(this,n,o.val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.boolean.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.boolean.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.boolean.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,f,p,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(p=x.event.special[d]||{},d=(o?p.delegateType:p.bindType)||d,p=x.event.special[d]||{},f=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,p.setup&&p.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),p.add&&(p.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,f):h.push(f),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){f=x.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&f.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,f,p,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),p=x.event.special[d]||{},i||!p.trigger||p.trigger.apply(r,n)!==!1)){if(!i&&!p.noBubble&&!x.isWindow(r)){for(l=p.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:p.bindType||d,f=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),f&&f.apply(a,n),f=c&&a[c],f&&x.acceptData(a)&&f.apply&&f.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||p._default&&p._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return 3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=x.expr.match.needsContext,Q={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return t=this,this.pushStack(x(e).filter(function(){for(r=0;i>r;r++)if(x.contains(t[r],this))return!0}));for(n=[],r=0;i>r;r++)x.find(e,this[r],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(Z(this,e||[],!0))},filter:function(e){return this.pushStack(Z(this,e||[],!1))},is:function(e){return!!e&&("string"==typeof e?J.test(e)?x(e,this.context).index(this[0])>=0:x.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],s=J.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function K(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return K(e,"nextSibling")},prev:function(e){return K(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(Q[e]||x.unique(i),"p"===e[0]&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function Z(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var et=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tt=/<([\w:]+)/,nt=/<|&#?\w+;/,rt=/<(?:script|style|link)/i,it=/^(?:checkbox|radio)$/i,ot=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^$|\/(?:java|ecma)script/i,at=/^true\/(.*)/,ut=/^\s*\s*$/g,lt={option:[1,""],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};lt.optgroup=lt.option,lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.col=lt.thead,lt.th=lt.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ct(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ct(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(gt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&ht(gt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(gt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!rt.test(e)&&!lt[(tt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(et,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(gt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=p.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,f=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&ot.test(d))return this.each(function(r){var i=f.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(gt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,gt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,pt),l=0;s>l;l++)a=o[l],st.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(ut,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=gt(a),o=gt(e),r=0,i=o.length;i>r;r++)mt(o[r],s[r]);if(t)if(n)for(o=o||gt(e),s=s||gt(a),r=0,i=o.length;i>r;r++)dt(o[r],s[r]);else dt(e,a);return s=gt(a,"script"),s.length>0&&ht(s,!u&>(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,f=e.length,p=t.createDocumentFragment(),h=[];for(;f>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(nt.test(i)){o=o||p.appendChild(t.createElement("div")),s=(tt.exec(i)||["",""])[1].toLowerCase(),a=lt[s]||lt._default,o.innerHTML=a[1]+i.replace(et,"<$1>")+a[2],l=a[0];while(l--)o=o.firstChild;x.merge(h,o.childNodes),o=p.firstChild,o.textContent=""}else h.push(t.createTextNode(i));p.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=gt(p.appendChild(i),"script"),u&&ht(o),n)){l=0;while(i=o[l++])st.test(i.type||"")&&n.push(i)}return p},cleanData:function(e){var t,n,r,i=e.length,o=0,s=x.event.special;for(;i>o;o++){if(n=e[o],x.acceptData(n)&&(t=q.access(n)))for(r in t.events)s[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);L.discard(n),q.discard(n)}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"text",async:!1,global:!1,success:x.globalEval})}});function ct(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function pt(e){var t=at.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ht(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function dt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=x.extend({},o),l=o.events,q.set(t,s),l)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function gt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function mt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&it.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var yt,vt,xt=/^(none|table(?!-c[ea]).+)/,bt=/^margin/,wt=RegExp("^("+b+")(.*)$","i"),Tt=RegExp("^("+b+")(?!px)[a-z%]+$","i"),Ct=RegExp("^([+-])=("+b+")","i"),kt={BODY:"block"},Nt={position:"absolute",visibility:"hidden",display:"block"},Et={letterSpacing:0,fontWeight:400},St=["Top","Right","Bottom","Left"],jt=["Webkit","O","Moz","ms"];function Dt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=jt.length;while(i--)if(t=jt[i]+n,t in e)return t;return r}function At(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function Lt(t){return e.getComputedStyle(t,null)}function qt(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&At(r)&&(o[s]=q.access(r,"olddisplay",Pt(r.nodeName)))):o[s]||(i=At(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=Lt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return qt(this,!0)},hide:function(){return qt(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:At(this))?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=yt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=Dt(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=Ct.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=Dt(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=yt(e,t,r)),"normal"===i&&t in Et&&(i=Et[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),yt=function(e,t,n){var r,i,o,s=n||Lt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Tt.test(a)&&bt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ht(e,t,n){var r=wt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ot(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+St[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+St[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+St[o]+"Width",!0,i))):(s+=x.css(e,"padding"+St[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+St[o]+"Width",!0,i)));return s}function Ft(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Lt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=yt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Tt.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ot(e,t,n||(s?"border":"content"),r,o)+"px"}function Pt(e){var t=o,n=kt[e];return n||(n=Rt(e,t),"none"!==n&&n||(vt=(vt||x("