=this.U.length&&(l=this.U.length-1);k.j=this.U[l];-1===k.j.e.indexOf(k)&&k.j.e.push(k);k.j.sg=!0}if(!b)for(a=0,c=this.U.length;ac?k.siblings.push(p.e[c]):p.zd&&(q=this.b.Ef(p.zd,k.j,!0,k.x,k.y,!0),this.b.Lb(),p.ul(),k.siblings.push(q),t.push(q)));a=0;for(c= this.Ve.length;a this.width-b&&(a=this.width-b);athis.height-b&&(a=this.height-b);ax&&(x=0);0>P&&(P=0);T>J&&(T=J);U>M&&(U=M);0>E&&(E=0);0>Q&&(Q=0);aa>J&&(aa=J);fa>M&&(fa=M);u.left=x/J;u.top=1-P/M;u.right=T/J;u.bottom=1-U/M}else u.left=z.left=0,u.top=z.top=0,u.right=z.right=1,u.bottom=z.bottom=1;ga=c&&(a.Ji(k[0].lb)||0!==v||0!== ga||1!==c.opacity||c.type.za.dq)||b&&!c&&1!==b.opacity;a.Mq();if(ga){A[S]||(A[S]=a.Ac(J,M,this.b.Ca));if(A[S].Bf!==J||A[S].Af!==M)a.deleteTexture(A[S]),A[S]=a.Ac(J,M,this.b.Ca);a.ic(0);a.Uc(A[S]);D=fa-Q;a.clearRect(E,M-Q-D,aa-E,D);c?c.Fb(a):(a.gc(this.b.qb),a.sf(b.opacity),a.Tc(),a.translate(-F,-I),a.Lc(),a.od(x,U,T,U,T,P,x,P,u));z.left=z.top=0;z.right=z.bottom=1;c&&(G=u.top,u.top=u.bottom,u.bottom=G);S=1;R=0}a.sf(1);v=k.length-1;var xa=a.Bn(k[v].lb)||!b&&!c&&!this.b.Bc;n=G=0;for(t=k.length;n c||(b&&this.Mc&&a.ec&&a.ec.right>=a.ec.left&&(a.Da(),this.Kb.update(a,a.ec,null),a.ec.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(wa(this.e,c),this.Ri(c)),this.pd=!0)}; m.prototype.Ah=function(a,b){a.ud=this.e.length;this.e.push(a);b&&this.Mc&&a.ec&&a.D();this.pd=!0};m.prototype.Nv=function(a){this.e.unshift(a);this.Ri(0)};m.prototype.zv=function(a,b,c){var f=a.Cd();b=b.Cd();wa(this.e,f);fthis.Ba||c.top>this.Aa||(b.globalCompositeOperation=a.Dh,a.qc(b))}};m.prototype.xl=function(){this.Ud=!0;var a=this.Je(!0),b=this.Je(!1);this.Ud=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b)); this.Zk(a,b,null)};m.prototype.Zk=function(a,b,c){var f=this.Tb();this.qa=a;this.ra=b;this.Ba=a+1/f*this.b.L;this.Aa=b+1/f*this.b.K;this.qa>this.Ba&&(a=this.qa,this.qa=this.Ba,this.Ba=a);this.ra>this.Aa&&(a=this.ra,this.ra=this.Aa,this.Aa=a);a=this.nb();0!==a&&(c&&(c.translate(this.b.L/2,this.b.K/2),c.rotate(-a),c.translate(this.b.L/-2,this.b.K/-2)),this.ue.set(this.qa,this.ra,this.Ba,this.Aa),this.ue.offset((this.qa+this.Ba)/-2,(this.ra+this.Aa)/-2),this.jr.Uq(this.ue,a),this.jr.Io(this.ue),this.ue.offset((this.qa+ this.Ba)/2,(this.ra+this.Aa)/2),this.qa=this.ue.left,this.ra=this.ue.top,this.Ba=this.ue.right,this.Aa=this.ue.bottom)};m.prototype.Hf=function(a){if(this.Kd=this.$j){this.b.qb||(this.b.qb=a.Ac(this.b.L,this.b.K,this.b.Ca));if(this.b.qb.Bf!==this.b.L||this.b.qb.Af!==this.b.K)a.deleteTexture(this.b.qb),this.b.qb=a.Ac(this.b.L,this.b.K,this.b.Ca);a.Uc(this.b.qb)}this.Ud=!0;var b=this.Je(!0),c=this.Je(!1);this.Ud=!1;this.b.Hc&&(b=Math.round(b),c=Math.round(c));this.Zk(b,c,null);b=this.Tb();a.Tc();a.scale(b, b);a.$k(-this.nb());a.translate((this.qa+this.Ba)/-2,(this.ra+this.Aa)/-2);a.Lc();this.Mc?(this.Eb.left=this.Kb.$b(this.qa),this.Eb.top=this.Kb.ac(this.ra),this.Eb.right=this.Kb.$b(this.Ba),this.Eb.bottom=this.Kb.ac(this.Aa),this.pd||!this.Eb.Jh(this.$g)?(p(this.fe),b=this.wm(),this.pd=!1,this.$g.Eh(this.Eb)):b=this.fe):b=this.e;for(var f,k=null,c=b.length-1;0<=c;--c)f=b[c],f!==k&&(this.Ft(b[c],a),k=f);this.Mc&&(this.fe=b);this.sd||(this.Yl=this.b.Kf++,a.fl(this.Yl),a.Nq(1,1,1),a.$o(),a.Yv())};m.prototype.Fb= function(a){var b=0,c=0;if(this.Kd=this.$j||1!==this.opacity||0 this.Ba||c.top>this.Aa||(b.fl(a.Kf),a.tr?this.Gt(a,b):(b.ic(0),b.rf(a.Sb,a.Pb),a.Fb(b)))}};m.prototype.Ft=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.La;c.right this.Ba||c.top>this.Aa||(a.Kf=this.b.Kf++,0===a.Nb&&1===a.opacity&&a.me&& a.Hf&&(b.fl(a.Kf),a.Hf(b)))}};m.prototype.Gt=function(a,b){var c=a.na[0].lb,f=a.na[0].index,k=this.Tb();if(1!==a.na.length||b.Bn(c)||b.Pv(c)||(a.u||a.j.nb())&&b.Ji(c)||1!==a.opacity||a.type.za.dq)this.hb.Gn(b,this,a,this.Kd?this.b.qb:this.hb.Rh()),b.Tc(),b.scale(k,k),b.$k(-this.nb()),b.translate((this.qa+this.Ba)/-2,(this.ra+this.Aa)/-2),b.Lc();else{b.ic(c);b.rf(a.Sb,a.Pb);b.Tk(c)&&(this.b.ma=!0);var h=0,p=0,l=0,r=0;b.Ji(c)&&(r=a.La,h=this.Z(r.left,r.top,!0,!0),p=this.Z(r.left,r.top,!1,!0),l=this.Z(r.right, r.bottom,!0,!0),r=this.Z(r.right,r.bottom,!1,!0),h=h/windowWidth,p=1-p/windowHeight,l=l/windowWidth,r=1-r/windowHeight);var m;a.fb&&a.fb.G?(m=a.fb.G,c=1/m.width,m=1/m.height):(c=1/a.width,m=1/a.height);b.mh(this.Kd?this.b.qb:this.hb.Rh(),c,m,h,p,l,r,k,this.nb(),this.qa,this.ra,(this.qa+this.Ba)/2,(this.ra+this.Aa)/2,this.b.Ab.da,a.Qa[f]);a.Fb(b)}};m.prototype.Je=function(a){var b=0,c=0,f=this.b.devicePixelRatio;this.b.Uf&&(b*=f,c*=f);var f=this.b.zq,k=this.b.Aq,f=(this.hb.scrollX-f)*this.ie+f,k=(this.hb.scrollY- k)*this.je+k,h,p,l=1/this.Tb(!1);h=f-this.b.L*l/2;p=k-this.b.K*l/2;h+=b*l;p+=c*l;c=this.nb();0!==c&&(h-=f,p-=k,b=Math.cos(c),c=Math.sin(c),l=h*b-p*c,p=p*b+h*c,h=l+f,p+=k);return a?h:p};m.prototype.Z=function(a,b,c,f){var k=this.b.zq,h=this.b.Aq,p=(this.hb.scrollX-k)*this.ie+k,l=(this.hb.scrollY-h)*this.je+h,h=p,k=l,r=this.nb();if(0!==r){a-=p;b-=l;var m=Math.cos(-r),r=Math.sin(-r),n=a*m-b*r;b=b*m+a*r;a=n+p;b+=l}p=1/this.Tb(!f);f?(h-=this.b.L*p/2,k-=this.b.K*p/2):(h-=this.b.width*p/2,k-=this.b.height* p/2);h=(a-h)/p;k=(b-k)/p;a=this.b.devicePixelRatio;this.b.Uf&&!f&&(h/=a,k/=a);return c?h:k};m.prototype.bb=function(){var a,b,c,f={s:this.scale,a:this.u,vl:this.qa,vt:this.ra,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.ad,t:this.sd,px:this.ie,py:this.je,o:this.opacity,zr:this.jj,fx:[],cg:this.Gh,instances:[]};a=0;for(b=this.S.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2 =q.length&&(q.length=a.length+1);q[a.length]||(q[a.length]=[]);e=q[a.length];b=0;for(d=e.length;b =b.length&&(b.length=this.dg+1),b[this.dg]=a):this.data=a};e.prototype.Lu=function(){var a=this.b.fp();return!this.parent||this.hi||!a||this.pk?this.data:this.dg>=a.length||"undefined"===typeof a[this.dg]?this.Em:a[this.dg]};e.prototype.kb=function(){!this.parent||this.hi||this.pk||this.pw(this.Em)};Qb=e;g.prototype.toString=function(){return"include:"+this.Wh.toString()};g.prototype.ab=function(){this.Wh= this.b.hm[this.cv];this.sheet.op.add(this);this.Fa=m(this.Fa);for(var a=this.parent;a;)a.group&&a.Fj.push(this),a=a.parent;this.pr()};g.prototype.kb=function(){this.parent&&this.b.Li(this.b.B);this.Wh.Am||this.Wh.kb(!0);this.parent&&this.b.jg(this.b.B)};g.prototype.pr=function(){for(var a=this.parent;a;){if(a.group&&!a.Th){this.Mb=!1;return}a=a.parent}this.Mb=!0};$b=g;f.prototype.reset=function(a){this.pc=a;this.lc=this.xb=0;W(this.fr);this.fm=this.Xf=!1};Pb=f})(); (function(){function c(b,a){this.Sc=b;this.b=b.b;this.type=a[0];this.get=[this.bu,this.Yt,this.ku,this.nu,this.Nt,this.lu,this.fu,this.Vt,this.eu,this.ju,this.Ot,this.iu,this.Wt,this.gu,this.cu,this.du,this.Zt,this.$t,this.Ut,this.mu,this.hu,this.au,this.Tt,this.Xt][this.type];var c=null;this.ge=this.V=this.Ta=this.Gb=this.ql=this.second=this.first=this.value=null;this.bd=-1;this.dd=null;this.ur=-1;this.Mf=this.fj=null;this.kh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= new Yb(b,a[1]);break;case 18:this.first=new Yb(b,a[1]);this.second=new Yb(b,a[2]);this.ql=new Yb(b,a[3]);break;case 19:this.Gb=this.b.Ce(a[1]);this.Gb!==Z.prototype.Sa.random&&this.Gb!==Z.prototype.Sa.Zs||this.Sc.Sq();this.Ta=[];this.V=[];3===a.length?(c=a[2],this.Ta.length=c.length+1):this.Ta.length=1;break;case 20:this.ge=this.b.B[a[1]];this.bd=-1;this.Gb=this.b.Ce(a[2]);this.kh=a[3];cc.Function&&this.Gb===cc.Function.prototype.Sa.Pw&&this.Sc.Sq();a[4]?this.dd=new Yb(b,a[4]):this.dd=null;this.Ta= [];this.V=[];6===a.length?(c=a[5],this.Ta.length=c.length+1):this.Ta.length=1;break;case 21:this.ge=this.b.B[a[1]];this.kh=a[2];a[3]?this.dd=new Yb(b,a[3]):this.dd=null;this.ur=a[4];break;case 22:this.ge=this.b.B[a[1]];this.ge.ck(a[2]);this.bd=this.ge.om(a[2]);this.Gb=this.b.Ce(a[3]);this.kh=a[4];a[5]?this.dd=new Yb(b,a[5]):this.dd=null;this.Ta=[];this.V=[];7===a.length?(c=a[6],this.Ta.length=c.length+1):this.Ta.length=1;break;case 23:this.fj=a[1],this.Mf=null}this.Sc.yv(this.ge);4<=this.type&&17>= this.type&&(this.first=new Yb(b,a[1]),this.second=new Yb(b,a[2]));if(c){var h,d;h=0;for(d=c.length;h =a||g<=-a)g%=a;0>g&&(g+=a);e.apply(q[g],c)};c.prototype.Tt=function(b){var a=this.ge,c=this.Ta,p=this.V,d=this.dd,e=this.bd,g=this.Gb,f=this.Sc.ne,q=a.ya(),n=q.Dc();if(!n.length)if(q.pa.length)n=q.pa;else{this.kh?b.Db(""):b.Ea(0);return}c[0]=b;b.fg=a;b=h();m(p,c,b);d&&(d.get(b),b.zb()&&(f=b.data,n=a.e));--t;p=n.length;if(f>=p||f<=-p)f%=p;0>f&&(f+=p);f=n[f];n=0;a.J&&(n=f.type.Gg[a.Wd]);g.apply(f.N[e+n],c)};c.prototype.au=function(b){var a=this.dd,c=this.ge,p=this.ur,d=this.Sc.ne, e=c.ya(),g=e.Dc();if(!g.length)if(e.pa.length)g=e.pa;else{this.kh?b.Db(""):b.Ea(0);return}if(a){e=h();a.get(e);if(e.zb()){d=e.data;g=c.e;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=c.um(d);c=d.pb[p];V(c)?b.Db(c):b.ba(c);--t;return}--t}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;c.J&&(g=d.type.Uj[c.Wd]);c=d.pb[p+g];V(c)?b.Db(c):b.ba(c)};c.prototype.bu=function(b){b.type=ac.ug;b.data=this.value};c.prototype.Yt=function(b){b.type=ac.tg;b.data=this.value};c.prototype.ku=function(b){b.type= ac.String;b.data=this.value};c.prototype.nu=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};c.prototype.Nt=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data+=a.data,a.Pg()&&b.bh());--t};c.prototype.lu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data-=a.data,a.Pg()&&b.bh());--t};c.prototype.fu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data*=a.data,a.Pg()&&b.bh());--t};c.prototype.Vt=function(b){this.first.get(b); var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data/=a.data,b.bh());--t};c.prototype.eu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data%=a.data,a.Pg()&&b.bh());--t};c.prototype.ju=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data=Math.pow(b.data,a.data),a.Pg()&&b.bh());--t};c.prototype.Ot=function(b){this.first.get(b);var a=h();this.second.get(a);a.Sg()||b.Sg()?this.Qt(b,a):this.Pt(b,a);--t};c.prototype.Qt=function(b,a){b.Sg()&& a.Sg()?this.St(b,a):this.Rt(b,a)};c.prototype.St=function(b,a){b.data+=a.data};c.prototype.Rt=function(b,a){b.Sg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Db(b.data.toString()+a.data)};c.prototype.Pt=function(b,a){b.Ea(b.data&&a.data?1:0)};c.prototype.iu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data||a.data?b.Ea(1):b.Ea(0));--t};c.prototype.Ut=function(b){this.first.get(b);b.data?this.second.get(b):this.ql.get(b)};c.prototype.Wt=function(b){this.first.get(b); var a=h();this.second.get(a);b.Ea(b.data===a.data?1:0);--t};c.prototype.gu=function(b){this.first.get(b);var a=h();this.second.get(a);b.Ea(b.data!==a.data?1:0);--t};c.prototype.cu=function(b){this.first.get(b);var a=h();this.second.get(a);b.Ea(b.data a.data?1:0);--t};c.prototype.$t=function(b){this.first.get(b); var a=h();this.second.get(a);b.Ea(b.data>=a.data?1:0);--t};c.prototype.Xt=function(b){var a=this.Mf.Lu();ia(a)?b.ba(a):b.Db(a)};Yb=c;n.prototype.Pg=function(){return this.type===ac.tg};n.prototype.zb=function(){return this.type===ac.ug||this.type===ac.tg};n.prototype.Sg=function(){return this.type===ac.String};n.prototype.bh=function(){this.Pg()||(this.Sg()&&(this.data=parseFloat(this.data)),this.type=ac.tg)};n.prototype.Ea=function(b){this.type=ac.ug;this.data=Math.floor(b)};n.prototype.ba=function(b){this.type= ac.tg;this.data=b};n.prototype.Db=function(b){this.type=ac.String;this.data=b};n.prototype.qw=function(b){ia(b)?(this.type=ac.tg,this.data=b):V(b)?(this.type=ac.String,this.data=b.toString()):(this.type=ac.ug,this.data=0)};Xb=n;ac={ug:0,tg:1,String:2}})();function Z(c){this.b=c;this.kc=[]} Z.prototype.bb=function(){var c={},h,m,n,p,t,b,a,k;c.waits=[];var v=c.waits,d;h=0;for(m=this.kc.length;h b)){var a,c,h,d=this.b.Qb(),e;p.length?e=p.pop():e={Yb:{},Fa:[]};e.em=!1;e.time=this.b.Ab.da+b;e.Zq="";e.Tn=!1;e.Eg=d.pc;e.lc=d.lc+1;b=0;for(a=this.b.B.length;bd&&(a=d);b.ba(a)};m.prototype.If=function(b){b.ba(this.b.If)};m.prototype.rg=function(b){b.ba(this.b.rg)};m.prototype.time=function(b){b.ba(this.b.Ab.da)};m.prototype.Od=function(b){b.Ea(this.b.Od)};m.prototype.Kk=function(b){b.Ea(this.b.Kk)};m.prototype.lm=function(b){b.Ea(this.b.lm)};m.prototype.u=function(b,a,c,h,d){b.ba(Fa(La(a,c,h,d)))};m.prototype.uv=function(b){b.Ea(this.b.xa.height)};m.prototype.left=function(b,a,c){b.Db(V(a)?a.substr(0,c):"")};m.prototype.right=function(b, a,c){b.Db(V(a)?a.substr(a.length-c):"")};m.prototype.replace=function(b,a,c,h){V(a)&&V(c)&&V(h)?b.Db(a.replace(new RegExp(ab(c),"gi"),h)):b.Db(V(a)?a:"")};m.prototype.trim=function(b,a){b.Db(V(a)?a.trim():"")};m.prototype.Zs=function(b){var a=qa(Math.random()*(arguments.length-1));b.qw(arguments[a+1])};m.prototype.Zl=function(b){b.ba(this.b.Zl/1E3)};m.prototype.Ak=function(b){b.ba(this.b.Ak)};n.Sa=new m;n.bw=function(){var b,a,c,h,d,e,g=this.b.Qb();b=0;for(c=this.kc.length;b this.b.Ab.da)continue;g.pc=h.Eg;g.lc=h.lc;g.xb=0;for(a in h.Yb)h.Yb.hasOwnProperty(a)&&(d=this.b.B[parseInt(a,10)].ya(),e=h.Yb[a],d.Ia=e.bl,za(d.e,e.$d),d=e,W(d.$d),t.push(d));h.Eg.$v();this.b.Xl(h.Fa);h.em=!0}a=b=0;for(c=this.kc.length;b a.Ba||b.top>a.Aa)},d.bx=function(){this.Da();var a=this.La,b=this.b.xa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.ox=function(a,b,d){var c=this.ya(), e=c.Dc();if(!e.length)return!1;var g=e[0],k=g,h=Qa(g.x,g.y,b,d),p,m,n;p=1;for(m=e.length;p h)h=n,k=g;c.Ii(k);return!0},e.Ix=function(a){this.x!==a&&(this.x=a,this.D())},e.Jx=function(a){this.y!==a&&(this.y=a,this.D())},e.Ex=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},e.Fx=function(a,b){var d=a.Fu(this);if(d){var c;d.tm?(c=d.tm(b,!0),d=d.tm(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.D()}},e.jx= function(a){0!==a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.D())},e.ix=function(a,b){0!==b&&(this.x+=Math.cos(Y(a))*b,this.y+=Math.sin(Y(a))*b,this.D())},g.Ox=function(a){a.ba(this.x)},g.Px=function(a){a.ba(this.y)},g.If=function(a){a.ba(this.b.Qh(this))});t&&(d.Tw=function(a,b){return bc(this.width,a,b)},d.Qw=function(a,b){return bc(this.height,a,b)},e.Hs=function(a){this.width!==a&&(this.width=a,this.D())},e.Bx=function(a){this.height!==a&&(this.height=a,this.D())},e.Gx=function(a, b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.D()},g.Nx=function(a){a.ba(this.width)},g.Xw=function(a){a.ba(this.height)},g.Mw=function(a){this.Da();a.ba(this.La.left)},g.Ow=function(a){this.Da();a.ba(this.La.top)},g.Nw=function(a){this.Da();a.ba(this.La.right)},g.Lw=function(a){this.Da();a.ba(this.La.bottom)});b&&(d.Br=function(a,b){return Ma(this.u,Y(b))<=Y(a)},d.Nr=function(a){return Oa(this.u,Y(a))},d.Lr=function(a,b){var d=Ka(a),c=Ka(b),e=Ha(this.u);return Oa(c,d)?Oa(e, d)&&!Oa(e,c):!(!Oa(e,d)&&Oa(e,c))},e.yx=function(a){a=Y(Ga(a));isNaN(a)||this.u===a||(this.u=a,this.D())},e.ux=function(a){0===a||isNaN(a)||(this.u+=Y(a),this.u=Ha(this.u),this.D())},e.vx=function(a){0===a||isNaN(a)||(this.u-=Y(a),this.u=Ha(this.u),this.D())},e.wx=function(a,b){var d=Na(this.u,Y(b),Y(a));isNaN(d)||this.u===d||(this.u=d,this.D())},e.xx=function(a,b,d){a=Na(this.u,Math.atan2(d-this.y,b-this.x),Y(a));isNaN(a)||this.u===a||(this.u=a,this.D())},e.Hx=function(a,b){var d=Math.atan2(b-this.y, a-this.x);isNaN(d)||this.u===d||(this.u=d,this.D())},g.Kw=function(a){a.ba(Ia(this.u))});n||(d.Rw=function(a,b,d){return bc(this.pb[a],b,d)},d.Zw=function(a){return this.pb[a]},d.qx=function(a,b){var d=this.ya(),c=d.Dc();if(!c.length)return!1;var e=c[0],g=e,k=e.pb[b],h,p,m;h=1;for(p=c.length;h k)k=m,g=e;d.Ii(g);return!0},d.nx=function(a){var b,d,c,e,g;if(this.b.ep().Hm){g=this.ya();if(g.Ia)for(g.Ia=!1,W(g.e),W(g.pa),c=this.e,b=0,d=c.length;b
a?a=0:1e.j.index||c.j.index===e.j.index&&c.Cd()>e.Cd())e=c}else if(c.j.index d)){var c=1===a;this.De[d]!==c&&(this.De[d]=c,this.td(),this.b.ma=!0)}}},e.Ax=function(a,b,d){if(this.b.A){var c=this.type.rm(a);0>c||(a=this.type.S[c],c=this.Qa[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.A.Ju(a.lb,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.Mb&&(this.b.ma=!0))))}})};Hb=function(){this.Sl=this.Ol=!0;this.type.rj=!0;this.b.ma=!0;var c,m,n=this.Pl;c=0;for(m= n.length;c n;case 5:return c>=n;default:return!1}}})(); var kc={exclusion:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nfront.rgb = 1.0 - (((1.0 - back.rgb * front.a) * (1.0 - front.rgb)) + (back.rgb * front.a * front.rgb));\ngl_FragColor = front;\n}",Mh:0,Nh:0,Hj:!0,Ic:!1,qj:!1,V:[]},hardlight:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nif (front.r * 0.299 + front.g * 0.587 + front.b * 0.114 <= 0.5)\n{\nfront *= back * 2.0;\n}\nelse\n{\nfront.rgb = 1.0 - ((1.0 - (2.0 * front.rgb - 1.0)) * (1.0 - back.rgb * front.a));\n}\ngl_FragColor = front;\n}", Mh:0,Nh:0,Hj:!0,Ic:!1,qj:!1,V:[]}};function pc(c){this.b=c} (function(){function c(a){-1===lb.indexOf(a)&&lb.push(a)}function h(a){var b=a.n,d;try{d=b.play()}catch(e){c(a);return}d?d.catch(function(){c(a)}):Fc&&!D.gd&&c(a)}function m(){var a,b,d,e;Gc||ga||!u||(n(),"running"===u.state&&(Gc=!0));var f=lb.slice(0);W(lb);if(!T)for(a=0,b=f.length;aa&&(a=0);1a&&(a=.01);this.Rk.gain.value=a;this.Qk.gain.value=Math.pow(1/a,.6)*b};y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=af;++f)e=f/32768,e=this.shape(e,c,d),this.Kj[32768+f]=e,this.Kj[32768-f-1]=-e};y.prototype.Nc=function(a){this.P.disconnect();this.P.connect(a);this.O.disconnect();this.O.connect(a)};y.prototype.remove=function(){this.fa.disconnect();this.Rk.disconnect();this.zl.disconnect();this.Qk.disconnect();this.P.disconnect();this.O.disconnect()};y.prototype.Cc=function(){return this.fa};H.prototype.Nc=function(a){this.la.disconnect();this.la.connect(a)};H.prototype.remove= function(){this.la.disconnect()};H.prototype.Cc=function(){return this.la};A.prototype.Ga=function(){this.la.getFloatFrequencyData(this.su);this.la.getByteTimeDomainData(this.Xq);for(var a=this.la.fftSize,b=0,c=this.Hi=0,d=0;bd&&(d=-d),this.Hi b&&(c=b);return c};w.prototype.di=function(){return!this.sc&&!this.Bd&&!this.hc&&!this.Qf()};w.prototype.rw=function(){return!this.Bd&&!this.hc&&!this.Qf()};w.prototype.Bw= function(){var a=this.volume*aa;isFinite(a)||(a=0);switch(this.aa){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.aa?this.mb.gain.value=a*this.gh:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};w.prototype.Qj=function(a){switch(this.aa){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.aa?(this.gh=a?0:1,this.mb.gain.value=aa*this.volume*this.gh):this.n.muted!==!!a&&(this.n.muted=!!a)}}; w.prototype.kw=function(){this.Qg=!0;this.Qj(this.Qg||this.gi)};w.prototype.Rq=function(a){this.gi=!!a;this.Qj(this.Qg||this.gi)};w.prototype.wl=function(){var a=this.playbackRate;this.Ng&&(a*=D.rg);switch(this.aa){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.aa?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};w.prototype.mw=function(a){switch(this.aa){case 0:a?this.di()?(this.Jc=!0,this.n.pause()): this.Jc=!1:this.Jc&&(this.n.play(),this.Jc=!1);break;case 1:a?this.di()?(this.Jc=!0,1===this.buffer.aa?(this.fc=this.vm(!0),this.Fd&&(this.fc=this.fc%this.Of()),d(this.n)):this.n.pause()):this.Jc=!1:this.Jc&&(1===this.buffer.aa?(this.n=u.createBufferSource(),this.n.buffer=this.buffer.ka,this.n.connect(this.mb),this.n.onended=this.sn,this.oj=this.n,this.n.loop=this.Fd,this.mb.gain.value=aa*this.volume*this.gh,this.wl(),this.startTime=(this.Ng?D.Ab.da:D.ze.da)-this.fc/(this.playbackRate||.001),v(this.n, this.fc,this.Of())):this.n.play(),this.Jc=!1);break;case 2:a?this.di()?(this.n.pause(),this.Jc=!0):this.Jc=!1:this.Jc&&(this.Jc=!1,this.n.play())}};K.M=function(a){this.type=a;D=this.b=a.b;J=this;this.uc=null;this.oi=-600;this.b.ok&&(mb=!0);!(this.b.Tg||this.b.Mg&&(this.b.Jm||this.b.kk))||this.b.$h||this.b.ja||this.b.jk||mb||(Fc=!0);u=null;"undefined"!==typeof AudioContext?(I=1,u=new AudioContext):"undefined"!==typeof webkitAudioContext&&(I=1,u=new webkitAudioContext);this.b.Tg&&u&&(u.close&&u.close(), "undefined"!==typeof AudioContext?u=new AudioContext:"undefined"!==typeof webkitAudioContext&&(u=new webkitAudioContext));1!==I&&(this.b.ed&&"undefined"!==typeof window.Media?I=2:this.b.up&&(I=3));2===I&&(F=location.href,a=F.lastIndexOf("/"),-1"!==b&&(a.Nk=b,a.gn=d,a.lo=e),null;g=new w(a,b);x.push(g);return g};var Ja=[];S.prototype.mj=function(a){return hb(M,a)};K.m=new S;R.prototype.Play= function(a,b,c,d){!T&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1 =a||0>=k||h>=m||b>=d?(this.Ra||jQuery(this.k).hide(),this.Ra=!0):(1>h&&(h=1),1>b&&(b=1),a>=m&&(a=m-1),k>=d&&(k=d-1),m=window.innerWidth,d=window.innerHeight, c||this.$e!==h||this.df!==b||this.bf!==a||this.Xe!==k||this.ff!==m||this.ef!==d?(this.$e=h,this.df=b,this.bf=a,this.Xe=k,this.ff=m,this.ef=d,this.Ra&&(jQuery(this.k).show(),this.Ra=!1),c=Math.round(h)+jQuery(this.b.canvas).offset().left,m=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:c,top:m}),jQuery(this.k).width(Math.round(a-h)),jQuery(this.k).height(Math.round(k-b)),this.Nl&&jQuery(this.k).css("font-size",this.j.Tb(!0)/this.b.devicePixelRatio- .2+"em")):this.Ra&&(jQuery(this.k).show(),this.Ra=!1))}};n.qc=function(){};n.Fb=function(){};c.prototype.lj=function(){return!0};m.m=new c;h.prototype.Fl=function(c){this.b.ja||(this.visible=0!==c)};h.prototype.El=function(c,h){this.b.ja||jQuery(this.k).css(c,h)};m.R=new h;m.Sa=new function(){}})();function sc(c){this.b=c} (function(){function c(){}function h(){}function m(){}var n=sc.prototype;n.T=function(c){this.za=c;this.b=c.b};n.T.prototype.F=function(){};n.M=function(c){this.type=c;this.b=c.b};var p=n.M.prototype;p.F=function(){this.Gf={}};p.bb=function(){return this.Gf};p.rb=function(c){this.Gf=c;for(var b in this.Gf);};c.prototype.Kr=function(c){return this.Gf.hasOwnProperty(c)};n.m=new c;h.prototype.Ar=function(c,b){this.Gf[c]=b};h.prototype.Cr=function(){Va(this.Gf)};n.R=new h;m.prototype.qo=function(c){c.Db(JSON.stringify({c2dictionary:!0, data:this.Gf}))};n.Sa=new m})();function tc(c){this.b=c} (function(){function c(){}var h=tc.prototype;h.T=function(c){this.za=c;this.b=c.b};h.T.prototype.F=function(){};h.M=function(c){this.type=c;this.b=c.b;this.Xg=Array(256);this.cj=Array(256);this.ve=0};var m=h.M.prototype;m.F=function(){var c=this;this.b.ja||(jQuery(document).keydown(function(h){c.qn(h)}),jQuery(document).keyup(function(h){c.rn(h)}))};var n=[32,33,34,35,36,37,38,39,40,44];m.qn=function(c){var h=!1;window!=window.top&&-1 c;++c)if(this.Xg[c]){this.Xg[c]=!1;this.ve=c;this.b.trigger(tc.prototype.m.so,this);var h=this.b.trigger(tc.prototype.m.xo,this),b=this.b.trigger(tc.prototype.m.wo,this);if(h||b)this.cj[c]=!0}};m.bb=function(){return{triggerKey:this.ve}};m.rb=function(c){this.ve=c.triggerKey};c.prototype.Or=function(c){return this.Xg[c]};c.prototype.vo=function(c){return c===this.ve};c.prototype.Xr=function(){return!0}; c.prototype.so=function(){return!0};c.prototype.xo=function(c){return c===this.ve};c.prototype.hs=function(c){return c===this.ve};c.prototype.wo=function(c){return c===this.ve};h.m=new c;h.R=new function(){};h.Sa=new function(){}})();function oc(c){this.b=c} (function(){function c(){if(0===this.Lj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.mg?b.drawImage(this.G,this.gg,this.hg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.G,0,0,this.width,this.height);this.Lj=a.toDataURL("image/png")}return this.Lj}function h(){}function m(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function n(a,b){return athis.I&&(this.I=0);this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1);var a=this.Na.frames[this.I];this.ta.Ti(a.Ok);this.Ub=a.Ub;this.Vb=a.Vb;this.Bg=this.Na.speed;this.Qe=this.Na.In;1===this.type.mc.length&&1===this.type.mc[0].frames.length||0===this.Bg||this.b.qg(this);this.yc?this.wd.reset():this.wd=new $a;this.Xd=this.wd.da;this.yf=!0;this.Pd=0;this.xf=!0;this.Wl=this.Eo="";this.Xs=0;this.Vl=-1;this.type.$m();var b,c,d,e,f,g,k,a=0;for(b=this.type.mc.length;athis.I&&(this.I=0);this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1);this.Bg=a.cas;this.Xd=a.fs;this.Pd=a.ar;this.wd.reset();this.wd.da=a.at;this.yf=a.hasOwnProperty("ap")?a.ap:!0;this.xf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Qe=a.rt:this.Qe=this.Na.In;this.fb=this.Na.frames[this.I];this.Ag=this.fb.H;this.ta.Ti(this.fb.Ok);this.Ub=this.fb.Ub;this.Vb=this.fb.Vb};e.Ml=function(a){this.I= a?0:this.Na.frames.length-1;this.yf=!1;this.Eo=this.Na.name;this.b.trigger(oc.prototype.m.Wr,this);this.b.trigger(oc.prototype.m.Vr,this);this.Pd=0};e.tj=function(){return this.wd.da};e.Ga=function(){this.wd.add(this.b.Qh(this));this.Wl.length&&this.it();0<=this.Vl&&this.jt();var a=this.wd.da,b=this.Na,c=b.frames[this.I],d=c.duration/this.Bg;this.yf&&a>=this.Xd+d&&(this.xf?this.I++:this.I--,this.Xd+=d,this.I>=b.frames.length&&(b.Bq?(this.xf=!1,this.I=b.frames.length-2):b.loop?this.I=this.Qe:(this.Pd++, this.Pd>=b.Hn?this.Ml(!1):this.I=this.Qe)),0>this.I&&(b.Bq?(this.I=1,this.xf=!0,b.loop||(this.Pd++,this.Pd>=b.Hn&&this.Ml(!0))):b.loop?this.I=this.Qe:(this.Pd++,this.Pd>=b.Hn?this.Ml(!0):this.I=this.Qe)),0>this.I?this.I=0:this.I>=b.frames.length&&(this.I=b.frames.length-1),a>this.Xd+b.frames[this.I].duration/this.Bg&&(this.Xd=a),a=b.frames[this.I],this.vg(c,a),this.b.ma=!0)};e.bp=function(a){var b,c,d;b=0;for(c=this.type.mc.length;b this.I&&(this.I=0),this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1),1===this.Xs&&(this.I=0),this.yf=!0,this.Xd=this.wd.da,this.xf=!0,this.vg(a,this.Na.frames[this.I]),this.b.ma=!0)};e.jt=function(){var a=this.Na.frames[this.I], b=this.I;this.I=qa(this.Vl);0>this.I&&(this.I=0);this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1);b!==this.I&&(this.vg(a,this.Na.frames[this.I]),this.Xd=this.wd.da,this.b.ma=!0);this.Vl=-1};e.vg=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Ub=b.Ub;this.Vb=b.Vb;this.ta.Ti(b.Ok);this.D();this.fb=b;this.Ag=b.H;c=0;for(d=this.N.length;c e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ub)*this.width,d=d[e][2],d=(d-c.Vb)*this.height,c=Math.cos(this.u);e=Math.sin(this.u);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var g=[],f=-2,q=[];h.prototype.Zr=function(a){if(!a)return!1;var c=this.b,d=c.ep(),e=d.type,g=null;d.X.collmemory?g=d.X.collmemory:(g={},d.X.collmemory=g); d.X.spriteCreatedDestroyCallback||(d.X.spriteCreatedDestroyCallback=!0,c.Kl(function(a){var b=d.X.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(m(b[c]),delete b[c])}));var k=e.ya(),h=a.ya(),k=k.Dc(),n,v,B,N,K,D,J,M=this.b.Od,F=M-1,I=c.Qb().pc;for(v=0;v =k.length&&k.push(c(b,Object));d=k[d];d.text=f;d.width=a.jn(f);a.re=na(a.re,d.width)}var n=uc.prototype;n.F=function(){};n.T=function(a){this.za=a;this.b=a.b};var p=n.T.prototype;p.F=function(){this.J|| (this.G=new Image,this.b.mo(this.G,this.pl),this.H=null)};p.Gi=function(){this.J||(this.H=null)};p.Lk=function(){if(!this.J&&this.e.length){this.H||(this.H=this.b.A.gf(this.G,!1,this.b.Ca,this.bj));var a,b;a=0;for(b=this.e.length;a=d*f);n++){var t=n%d,v=Math.floor(n/d),A=l.charAt(n);if(this.b.A){var L=this.Dj,O=t*m,w=v*p,t=(t+1)*m,v=(v+1)*p;void 0===L[A]&&(L[A]=c(k,ta));L[A].left=O;L[A].top=w;L[A].right=t;L[A].bottom=v}else L=this.Cj,t=t*b,v=v*h,O=b,w=h,void 0===L[A]&&(L[A]=c(a,Object)),L[A].x=t,L[A].y=v,L[A].xr=O,L[A].kp=w}};var v= [];n.Gl=function(a){W(v);for(var b="",c,d=0;d =k)h(b,f,!0);else{var m=a.Me,p=a.zg;if(d.length*(a.Bj*m+p)-p<=k&&-1===d.indexOf("\n")&&(p=a.jn(d),p<=k)){h(b,f,!0);f.push(c(b, Object));f[0].text=d;f[0].width=p;a.re=p;a.Nd=a.Le*m+a.lineHeight;return}this.Il(a);a.Nd=f.length*(a.Le*m+a.lineHeight)}}else h(b,f,!0)};n.Il=function(a){var c=a.ij,d=a.text,k=a.Xb,h=a.width;c&&(this.Gl(d),d=v);var p="",l,n,y,H=0,A=!1;for(y=0;y h&&(""===l?(m(a,H,p),p="",A=!0):(m(a,H,l),p=d[y]),H++,c||" "!==p||(p="")));p.replace(/\s\s*$/,"").length&&(m(a,H,p),H++);for(y=H;y this.width+1E-5)break;void 0!==u&&(D=K,J=R,0===m&&1===n&&(D=Math.round(D),J=Math.round(J)),a.drawImage(this.G,u.x,u.y,u.xr,u.kp,D,J,u.xr*n,u.kp*n));K+=G*n+O;if(0===m&&b+K>h)break}}R+=t;if(0===m&&(R+t+v>this.height||c+R>l))break}}a.restore()}};var d=new ua;p.Fb=function(a){a.gc(this.H);a.sf(this.opacity);if(this.text&&(this.Iq(),!(this.height this.width+1E-5)break;if(void 0!== z){var x=this.Bj*L,E=this.Le*L;F=M;I=v;0===n&&1===L&&(F=Math.round(F),I=Math.round(I));d.Ja=F;d.Ka=I;d.cb=F+x;d.eb=I;d.Va=F;d.Wa=I+E;d.Xa=F+x;d.Ya=I+E;0!==n&&(F=d,I=D,x=J,E=void 0,E=F.Ja*I-F.Ka*x,F.Ka=F.Ka*I+F.Ja*x,F.Ja=E,E=F.cb*I-F.eb*x,F.eb=F.eb*I+F.cb*x,F.cb=E,E=F.Va*I-F.Wa*x,F.Wa=F.Wa*I+F.Va*x,F.Va=E,E=F.Xa*I-F.Ya*x,F.Ya=F.Ya*I+F.Xa*x,F.Xa=E);d.offset(c,b);a.od(d.Ja,d.Ka,d.cb,d.eb,d.Xa,d.Ya,d.Va,d.Wa,z)}M+=K*L+G;if(0===n&&c+M>l)break}}v+=O;if(0===n&&(v+O+w>this.height||b+v>p))break}}};n.m=new function(){}; p.tj=function(a,b){var c=parseInt(b,10);this.Ne[a]!==c&&(this.Ne[a]=c,this.rd=!0,this.b.ma=!0)};n.R=new function(){};n.Sa=new function(){}})();function vc(c){this.b=c} (function(){function c(){return b.length?b.pop():{}}function h(a){var c,h;c=0;for(h=a.length;c a.Ba||b.top>a.Aa)this.b.A.deleteTexture(this.vc),this.Gd=this.eg=this.vc=null}};p.Hd=function(){this.Gd=this.eg=null;this.b.A&&this.vc&&this.b.A.deleteTexture(this.vc); this.vc=null};p.tj=function(){this.font=this.Zj+" "+this.Ki.toString()+"pt "+this.Fg;this.rd=!0;this.b.ma=!0};p.qc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.j.Tb()),a.save(),a.scale(c,c));if(this.rd||this.width!==this.$f)this.type.za.Hl(this.text,this.Xb,a,this.width,this.ij),this.rd=!1,this.$f=this.width;this.Da();var c=b?0:this.Ob.Ja,d=b?0:this.Ob.Ka;this.b.Hc&&(c=c+.5|0,d=d+.5|0);0===this.u||b||(a.save(), a.translate(c,d),a.rotate(this.u),d=c=0);var e=d+this.height,g=this.Dn,g=g+this.Xm,f,h;1===this.we?d+=Math.max(this.height/2-this.Xb.length*g/2,0):2===this.we&&(d+=Math.max(this.height-this.Xb.length*g-2,0));for(h=0;h =e-g);h++);(0!==this.u||b)&&a.restore();this.Zf=this.b.Od};p.Fb=function(a){if(!(1>this.width||1>this.height)){var b=this.rd|| this.gq;this.gq=!1;var c=this.j.Tb(),d=this.j.nb(),e=this.nf,g=c*this.width,f=c*this.height,h=Math.ceil(g),m=Math.ceil(f),p=Math.abs(h),l=Math.abs(m),n=this.b.L/2,t=this.b.K/2;this.eg||(this.Gd=document.createElement("canvas"),this.Gd.width=p,this.Gd.height=l,this.vk=p,this.uk=l,b=!0,this.eg=this.Gd.getContext("2d"));if(p!==this.vk||l!==this.uk)this.Gd.width=p,this.Gd.height=l,this.vc&&(a.deleteTexture(this.vc),this.vc=null),b=!0;b&&(this.eg.clearRect(0,0,p,l),this.qc(this.eg,!0),this.vc||(this.vc= a.Ac(p,l,this.b.Ca,this.b.Tf)),a.Gw(this.Gd,this.vc,this.b.Tf));this.vk=p;this.uk=l;a.gc(this.vc);a.sf(this.opacity);a.Tc();a.translate(-n,-t);a.Lc();var H=this.Ob,b=this.j.Z(H.Ja,H.Ka,!0,!0),p=this.j.Z(H.Ja,H.Ka,!1,!0),l=this.j.Z(H.cb,H.eb,!0,!0),n=this.j.Z(H.cb,H.eb,!1,!0),t=this.j.Z(H.Xa,H.Ya,!0,!0),A=this.j.Z(H.Xa,H.Ya,!1,!0),L=this.j.Z(H.Va,H.Wa,!0,!0),H=this.j.Z(H.Va,H.Wa,!1,!0);if(this.b.Hc||0===this.u&&0===d)var O=(b+.5|0)-b,w=(p+.5|0)-p,b=b+O,p=p+w,l=l+O,n=n+w,t=t+O,A=A+w,L=L+O,H=H+w;0=== this.u&&0===d?(l=b+h,n=p,t=l,A=p+m,L=b,H=A,e.right=1,e.bottom=1):(e.right=g/h,e.bottom=f/m);a.od(b,p,l,n,t,A,L,H,e);a.Tc();a.scale(c,c);a.$k(-this.j.nb());a.translate((this.j.qa+this.j.Ba)/-2,(this.j.ra+this.j.Aa)/-2);a.Lc();this.Zf=this.b.Od}};var t=[];n.Gl=function(a){W(t);for(var b="",c,d=0;d =d)h(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=m.measureText(a).width;if(g<=d){h(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.Il(a,b,m,d,e)}else h(b)};n.Il=function(a,k,h,d,e){e&&(this.Gl(a),a=t);var g="",f,p,n,B=0;for(n=0;n =k.length&&k.push(c()),g=m(g),p=k[B],p.text=g,p.width=h.measureText(g).width,B++,g=""):(f=g,g+=a[n],p=h.measureText(g).width, p>=d&&(B>=k.length&&k.push(c()),f=m(f),p=k[B],p.text=f,p.width=h.measureText(f).width,B++,g=a[n],e||" "!==g||(g="")));g.length&&(B>=k.length&&k.push(c()),g=m(g),p=k[B],p.text=g,p.width=h.measureText(g).width,B++);for(n=B;n =k||0>=h||b>=d||a>=e?(this.Ra||jQuery(this.k).hide(),this.Ra=!0):(1>b&&(b=1),1>a&&(a=1),k>=d&&(k=d-1),h>=e&&(h=e-1),d=window.innerWidth,e=window.innerHeight,c||this.$e!==b||this.df!==a||this.bf!==k||this.Xe!==h||this.ff!==d||this.ef!==e?(this.$e=b,this.df=a,this.bf=k,this.Xe=h,this.ff=d,this.ef=e,this.Ra&&(jQuery(this.k).show(),this.Ra=!1),c=Math.round(b)+jQuery(this.b.canvas).offset().left, d=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:c,top:d}),jQuery(this.k).width(Math.round(k-b)),jQuery(this.k).height(Math.round(h-a)),this.Nl&&jQuery(this.k).css("font-size",this.j.Tb(!0)/this.b.devicePixelRatio-.2+"em")):this.Ra&&(jQuery(this.k).show(),this.Ra=!1))}};n.qc=function(){};n.Fb=function(){};c.prototype.As=function(){return!0};c.prototype.lj=function(){return!0};c.prototype.as=function(){return!0};m.m=new c;h.prototype.Fl= function(c){this.b.ja||(this.visible=0!==c)};h.prototype.El=function(c,b){this.b.ja||jQuery(this.k).css(c,b)};m.R=new h;m.Sa=new function(){}})();function xc(c){this.b=c} (function(){function c(){}function h(){}var m=xc.prototype;m.T=function(c){this.za=c;this.b=c.b};var n=m.T.prototype;n.F=function(){this.J||(this.G=new Image,this.G.Oo=this.Wn,this.b.mo(this.G,this.pl),this.H=this.pattern=null)};n.Gi=function(){this.J||(this.H=null)};n.Lk=function(){if(!this.J&&this.e.length){this.H||(this.H=this.b.A.gf(this.G,!0,this.b.Ca,this.bj));var c,h;c=0;for(h=this.e.length;c m&&(m+=this.G.width);0>d&&(d+=this.G.height);c.translate(h,b);c.rotate(this.u);c.translate(m,d);c.fillRect(a-m,k-d,this.width,this.height);c.restore()};n.Hf=function(c){this.Fb(c)}; n.Fb=function(c){c.gc(this.H);c.sf(this.opacity);var h=this.nf;h.right=this.width/this.G.width;h.bottom=this.height/this.G.height;var b=this.Ob;if(this.b.Hc){var a=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;c.od(b.Ja+a,b.Ka+k,b.cb+a,b.eb+k,b.Xa+a,b.Ya+k,b.Va+a,b.Wa+k,h)}else c.od(b.Ja,b.Ka,b.cb,b.eb,b.Xa,b.Ya,b.Va,b.Wa,h)};c.prototype.Cl=function(){return!0};m.m=new c;h.prototype.ro=function(c,h){var b=new Image,a=this;b.onload=function(){a.G=b;a.b.A?(a.hk&&a.H&&a.b.A.deleteTexture(a.H), a.H=a.b.A.gf(b,!0,a.b.Ca)):a.pattern=a.b.Ma.createPattern(b,"repeat");a.hk=!0;a.b.ma=!0;a.b.trigger(xc.prototype.m.Cl,a)};"data:"!==c.substr(0,5)&&0===h&&(b.crossOrigin="anonymous");this.b.gl(b,c)};m.R=new h;m.Sa=new function(){}})();function yc(c){this.b=c} (function(){function c(){}function h(){}function m(){}var n=yc.prototype;n.T=function(b){this.za=b;this.b=b.b};n.T.prototype.F=function(){};n.M=function(b){this.type=b;this.b=b.b};var p=n.M.prototype,t=window.URL||window.webkitURL||window.mozURL||window.msURL;p.F=function(){if(this.b.ja)C("[Construct 2] File Chooser plugin not supported on this platform - the object will not be created");else{this.k=document.createElement("input");this.k.type="file";this.k.setAttribute("accept",this.q[0]);0!==this.q[1]&& this.k.setAttribute("multiple","");this.k.id=this.q[3];jQuery(this.k).appendTo(this.b.Ke?this.b.Ke:"body");this.Ra=!1;0===this.q[2]&&(jQuery(this.k).hide(),this.visible=!1,this.Ra=!0);var b=this;this.k.onchange=function(){b.b.trigger(yc.prototype.m.to,b)};this.ef=this.ff=this.Xe=this.bf=this.df=this.$e=0;this.vf(!0);this.b.qg(this)}};p.Hd=function(){this.b.ja||(jQuery(this.k).remove(),this.k=null)};p.Ga=function(){this.vf()};p.vf=function(b){if(!this.b.ja){var a=this.j.Z(this.x,this.y,!0),c=this.j.Z(this.x, this.y,!1),h=this.j.Z(this.x+this.width,this.y+this.height,!0),d=this.j.Z(this.x+this.width,this.y+this.height,!1),e=this.b.width/this.b.devicePixelRatio,g=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=h||0>=d||a>=e||c>=g?(this.Ra||jQuery(this.k).hide(),this.Ra=!0):(1>a&&(a=1),1>c&&(c=1),h>=e&&(h=e-1),d>=g&&(d=g-1),e=window.innerWidth,g=window.innerHeight,b||this.$e!==a||this.df!==c||this.bf!==h||this.Xe!==d||this.ff!==e||this.ef!==g?(this.$e=a,this.df=c,this.bf=h,this.Xe= d,this.ff=e,this.ef=g,this.Ra&&(jQuery(this.k).show(),this.Ra=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,e=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:b,top:e}),jQuery(this.k).width(Math.round(h-a)),jQuery(this.k).height(Math.round(d-c))):this.Ra&&(jQuery(this.k).show(),this.Ra=!1))}};p.qc=function(){};p.Fb=function(){};c.prototype.to=function(){return!0};n.m=new c;h.prototype.Fl=function(b){this.b.ja||(this.visible= 0!==b)};h.prototype.El=function(b,a){this.b.ja||jQuery(this.k).css(b,a)};n.R=new h;m.prototype.Ir=function(b,a){var c;if(this.b.ja)c=null;else{c=this.k.files;var h=a;c?(h=Math.floor(h),c=0>h||h>=c.length?null:c[h]):c=null}c?c.c2url?b.Db(c.c2url):t&&t.createObjectURL?(c.c2url=t.createObjectURL(c),b.Db(c.c2url)):b.Db(""):b.Db("")};n.Sa=new m})();function zc(c){this.b=c} (function(){function c(a){var b;if(!d[a])for(d[a]=Array(20),b=0;20>b;++b)d[a][b]=0;return d[a]}function h(a){var b;if(!e[a])for(e[a]=Array(20),b=0;20>b;++b)e[a][b]=0;return e[a]}function m(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function n(b){v[b.gamepad.index]=b.gamepad;a.trigger(zc.prototype.m.ds,k)}function p(b){a.trigger(zc.prototype.m.es,k);v[b.gamepad.index]=null}function t(){}var b=zc.prototype;b.T=function(a){this.za=a;this.b=a.b};b.T.prototype.F=function(){};var a=null,k=null,v=Array(16),d= Array(16),e=Array(16),g="",f="",q=null,N={windows:{}};N.windows.firefox={};var B=[0,1,2,3,4,5,8,9,10,11],l=[0,1,[7,6],2,3,[14,15],[12,13]];N.windows.firefox.xbox360=function(a,b){return b?a>=l.length?-1:ia(l[a])?l[a]+16:l[a]:a>=B.length?-1:B[a]};var r=[2,0,1,3,4,6,5,7,8,9],y=[0,1,2,3,[14,15],[12,13]];N.windows.firefox.logitechdualaction=function(a,b){return b?a>=y.length?-1:ia(y[a])?y[a]+16:y[a]:a>=r.length?-1:r[a]};b.M=function(b){this.type=b;a=this.b=b.b;k=this};var H=b.M.prototype;H.F=function(){this.sk= 0;var a=navigator.userAgent;g="windows";/mac/i.test(a)&&(g="mac");q=N[g];f="chrome";/firefox/i.test(a)&&(f="firefox");q&&(q=q[f]);window.addEventListener("webkitgamepadconnected",n,!1);window.addEventListener("webkitgamepaddisconnected",p,!1);window.addEventListener("MozGamepadConnected",n,!1);window.addEventListener("MozGamepadDisconnected",p,!1);window.addEventListener("gamepadconnected",n,!1);window.addEventListener("gamepaddisconnected",p,!1);this.b.qg(this);this.Jl=[]};H.Ga=function(){this.Jl.length= 0;var a=null,b=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.yp&&window.cr_getGamepads?(a=window.cr_getGamepads(),b=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||v;if(a){var f,g,k,l,p,n,r;f=0;for(g=a.length;f p;++p)l[p]= k[p];b?k=m:q?(k="",l=t.id.toLowerCase(),-1 n&&(y[n]=100*r,50<=y[n]&&50>B[n]&&(this.sk=n));k=0;for(l=t.axes.length;k n&&(y[n]=100*r):(y[n[0]]=0,y[n[1]]=0,0>=r?y[n[0]]=Math.abs(100*r):y[n[1]]=Math.abs(100*r));this.Jl.push(t)}else t= f,d[t]=null,e[t]=null}for(;20>f;++f)a=f,d[a]=null,e[a]=null}};H.bb=function(){return{lastButton:this.sk}};H.rb=function(a){this.sk=a.lastButton};t.prototype.ds=function(){return!0};t.prototype.es=function(){return!0};t.prototype.Mr=function(a,b){a=Math.floor(a);if(0>a||a>=this.Jl.length)return!1;var d=c(a);if(!d)return!1;if(d=50<=d[b])this.sk=b;return d};b.m=new t;b.R=new function(){};b.Sa=new function(){}})();function Ac(c){this.b=c} (function(){function c(){}var h=Ac.prototype;h.T=function(c){this.behavior=c;this.b=c.b};h.T.prototype.F=function(){};h.M=function(c,h){this.type=c;this.behavior=c.behavior;this.d=h;this.b=c.b};var m=h.M.prototype;m.F=function(){this.te=this.pe=this.Yi=this.mn=this.tn=0};m.bb=function(){return{ontime:this.tn,offtime:this.mn,stage:this.Yi,stagetimeleft:this.pe,timeleft:this.te}};m.rb=function(c){this.tn=c.ontime;this.mn=c.offtime;this.Yi=c.stage;this.pe=c.stagetimeleft;this.te=c.timeleft;null===this.te&& (this.te=Infinity)};m.Ga=function(){if(!(0>=this.te)){var c=this.b.Qh(this.d);this.te-=c;0>=this.te?(this.te=0,this.d.visible=!0,this.b.ma=!0,this.b.trigger(Ac.prototype.m.cs,this.d)):(this.pe-=c,0>=this.pe&&(0===this.Yi?(this.d.visible=!1,this.Yi=1,this.pe+=this.mn):(this.d.visible=!0,this.Yi=0,this.pe+=this.tn),this.b.ma=!0))}};c.prototype.cs=function(){return!0};h.m=new c;h.R=new function(){};h.Sa=new function(){}})();function Dc(c){this.b=c} (function(){function c(){}function h(){}var m=Dc.prototype;m.T=function(c){this.behavior=c;this.b=c.b};m.T.prototype.F=function(){};m.M=function(c,h){this.type=c;this.behavior=c.behavior;this.d=h;this.b=c.b;this.Wi=this.kl=this.jl=this.Cm=this.Ch=this.Ih=this.Vg=this.Wg=this.Oi=this.ni=!1;this.Hb=null;this.Ym=-1;this.Ze=this.Ye=0;this.Ph=!1;this.Nf=this.$c=0;this.Yj=!0;this.ua=this.W=0};var n=m.M.prototype;n.rr=function(){this.Za=Math.cos(this.Jg);this.$a=Math.sin(this.Jg);this.pf=Math.cos(this.Jg- Math.PI/2);this.qf=Math.sin(this.Jg-Math.PI/2);this.Za=gb(this.Za);this.$a=gb(this.$a);this.pf=gb(this.pf);this.qf=gb(this.qf);this.nm=this.Yd;0>this.Yd&&(this.Za*=-1,this.$a*=-1,this.Yd=Math.abs(this.Yd))};n.F=function(){this.dh=this.q[0];this.wg=this.q[1];this.Dg=this.q[2];this.ki=this.q[3];this.nm=this.Yd=this.q[4];this.Gk=this.q[5];this.Rj=0!==this.q[6];this.Tm=this.q[7]/1E3;this.et=1===this.q[8];this.enabled=0!==this.q[9];this.wh=!1;this.xh=this.b.qe(this.d);this.Zm=-1;this.pg=0;this.Jg=Y(90); this.rr();var c=this;this.et&&!this.b.ja&&(jQuery(document).keydown(function(h){c.qn(h)}),jQuery(document).keyup(function(h){c.rn(h)}));this.yc||(this.fq=function(h){c.pn(h)});this.b.Kl(this.fq);this.d.X.isPlatformBehavior=!0};n.bb=function(){return{ii:this.Cm,lfx:this.Ye,lfy:this.Ze,lfo:this.Hb?this.Hb.uid:-1,am:this.$c,en:this.enabled,fall:this.Nf,ft:this.Yj,dx:this.W,dy:this.ua,ms:this.dh,acc:this.wg,dec:this.Dg,js:this.ki,g:this.Yd,g1:this.nm,mf:this.Gk,wof:this.wh,woj:this.xh?this.xh.uid:-1, ga:this.Jg,edj:this.Rj,cdj:this.Ch,dj:this.Ih,sus:this.Tm}};n.rb=function(c){this.Cm=c.ii;this.Ye=c.lfx;this.Ze=c.lfy;this.Ym=c.lfo;this.$c=c.am;this.enabled=c.en;this.Nf=c.fall;this.Yj=c.ft;this.W=c.dx;this.ua=c.dy;this.dh=c.ms;this.wg=c.acc;this.Dg=c.dec;this.ki=c.js;this.Yd=c.g;this.nm=c.g1;this.Gk=c.mf;this.wh=c.wof;this.Zm=c.woj;this.Jg=c.ga;this.Rj=c.edj;this.Ch=c.cdj;this.Ih=c.dj;this.Tm=c.sus;this.Wi=this.kl=this.jl=this.Vg=this.Wg=this.Oi=this.ni=!1;this.pg=0;this.rr()};n.vd=function(){-1=== this.Ym?this.Hb=null:this.Hb=this.b.Kg(this.Ym);-1===this.Zm?this.xh=null:this.xh=this.b.Kg(this.Zm)};n.pn=function(c){this.Hb==c&&(this.Hb=null)};n.Hd=function(){this.Hb=null;this.b.Wv(this.fq)};n.qn=function(c){switch(c.which){case 38:c.preventDefault();this.Wg=!0;break;case 37:c.preventDefault();this.ni=!0;break;case 39:c.preventDefault(),this.Oi=!0}};n.rn=function(c){switch(c.which){case 38:c.preventDefault();this.Vg=this.Wg=!1;break;case 37:c.preventDefault();this.ni=!1;break;case 39:c.preventDefault(), this.Oi=!1}};n.ig=function(){this.Wg=this.Oi=this.ni=!1};n.tj=function(){return 0>this.Yd?-1:1};n.xp=function(){var c=null,h=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Za;this.d.y+=this.$a;this.d.D();if(this.Hb&&this.b.Kc(this.d,this.Hb)&&(!this.b.bo(this.Hb.type,mc)||this.Hb.X.solidEnabled))return this.d.x=b,this.d.y=a,this.d.D(),this.Hb;(c=this.b.jc(this.d))||0!==this.Nf||(h=this.b.qe(this.d,!0));this.d.x=b;this.d.y=a;this.d.D();if(c){if(this.b.Kc(this.d,c))return null;this.Ph=!1;return c}if(h&& h.length){a=c=0;for(b=h.length;cthis.Gk&&(this.ua=this.Gk)),N&&(this.Vg=!0));this.wh=!!B;n==a&&(0>this.W?(this.W+=this.Dg*c,0 this.W&&(this.W=0)));n&&!a&&(this.W=0 this.W?this.W+(this.wg+this.Dg)*c:this.W+this.wg*c);this.W>this.dh?this.W=this.dh:this.W<-this.dh&&(this.W=-this.dh);n=!1;0!==this.W&&(g=this.d.x,f=this.d.y,h=this.W*c*this.pf,b=this.W*c*this.qf,this.d.x+=this.pf*(1 this.W?1:-1),this.qf*(0>this.W?1:-1),h,!1)?!B||k||this.Ph||(g=this.d.x,f=this.d.y,this.d.x+=this.Za,this.d.y+=this.$a,this.b.jc(this.d)?this.b.nd(this.d,-this.Za,-this.$a,3,!1)||(this.d.x=g,this.d.y=f,this.d.D()):(this.d.x=g,this.d.y= f,this.d.D())):(this.d.x=g,this.d.y=f,this.d.D()),k||(this.W=0)):!m&&!N&&Math.abs(this.ua) this.ua?1:-1),this.$a*(0>this.ua?1:-1),h,k,b)?(this.Hb=b,this.Ye=b.x,this.Ze=b.y,(this.Ph=k)&&(n=!0),this.ua=0):(this.d.x=g,this.d.y=f,this.d.D(),this.wh=!0,k||(this.ua=0)))}3!==this.$c&&0 this.d.opacity?this.d.opacity=0:1 =this.behavior.Vi&&b b?(c.x=t+1-(m.right-c.x),c.D()):m.bottomk&& (c.y=a+1-(m.bottom-c.y),c.D())}})(); function lc(){return[pc,sc,qc,rc,yc,tc,zc,oc,xc,uc,vc,wc,Dc,Ic,mc,Hc,nc,Ac,Jc,tc.prototype.m.vo,sc.prototype.m.Kr,Dc.prototype.R.Hr,tc.prototype.m.Or,Dc.prototype.R.Is,oc.prototype.R.Gs,oc.prototype.m.Fr,Z.prototype.Sa.uv,Z.prototype.R.Cs,oc.prototype.m.Zr,Z.prototype.R.Jr,rc.prototype.m.lj,pc.prototype.R.Play,sc.prototype.R.Ar,zc.prototype.m.Mr,sc.prototype.R.Cr,Z.prototype.R.Ds,vc.prototype.R.Ls,vc.prototype.R.Ur,Z.prototype.R.Ks,vc.prototype.R.Tr,Z.prototype.R.Sr,Dc.prototype.R.Es,Z.prototype.m.Pr, rc.prototype.R.El,vc.prototype.R.Fs,yc.prototype.m.to,oc.prototype.R.ro,yc.prototype.Sa.Ir]};