// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var r,aa,ca,da,ea,fa,ia,ja,ka,la,ma,pa,qa,ra,sa,ta,ua,va,wa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,u,Ha,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,bb,cb,db,eb,fb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ic,jc,kc={},lc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(a){return a.__proto__}:function(a){return a.constructor.prototype}); (function(){function a(a,b,c,d){this.set(a,b,c,d)}function c(){this.Kd=this.Jd=this.Md=this.Ld=this.Ud=this.Td=this.uc=this.tc=0}function b(a,b,c,d){ad?b:d):(t=ac?b:c):cd?a:d):(t=bc?a:c)}function d(){this.items=this.qh=null;this.wn=0;z&&(this.qh=new Set);this.po=[];this.dk=!0}function e(a){B[M++]=a}function f(){this.mb=this.pu=this.y=this.F=0}function g(a){this.jd=[];this.Hr=this.Jr=this.Kr=this.Ir=0;this.as=null;this.xq(a)}function h(a, b){this.Zv=a;this.Yv=b;this.cells={}}function l(a,b){this.Zv=a;this.Yv=b;this.cells={}}function n(a,b,c){var d;return F.length?(d=F.pop(),d.Mw=a,d.x=b,d.y=c,d):new ca(a,b,c)}function k(a,b,c){this.Mw=a;this.x=b;this.y=c;this.he=new da}function m(a,b,c){var d;return E.length?(d=E.pop(),d.Mw=a,d.x=b,d.y=c,d):new ea(a,b,c)}function q(a,b,c){this.Mw=a;this.x=b;this.y=c;this.he=[];this.vn=!0;this.ii=new da;this.bp=!1}function p(a,b){return a.zh-b.zh}fa=function(a){window.console&&window.console.log&&window.console.log(a)}; ia=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ja=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0b;b<<=1)a|=a>>b;return a+1};qa=function(a){return 0>a?-a:a};ra=function(a,b){return a>b?a:b};sa=function(a,b){return ak)return!1;bk)return!1;m=e-a+g-c;z=f-b+h-d;a=c-a;b=d-b;e=g-e;f=h-f;h=qa(b*e-f*a);return qa(e*z-f*m)>h?!1:qa(a*z-b*m)<=h};a.prototype.set=function(a,b,c,d){this.left=a;this.top=b;this.right=c;this.bottom=d};a.prototype.cs=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};a.prototype.width= function(){return this.right-this.left};a.prototype.height=function(){return this.bottom-this.top};a.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};a.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};a.prototype.tL=function(a){return!(a.rightthis.right||a.top>this.bottom)};a.prototype.uL= function(a,b,c){return!(a.right+bthis.right||a.top+c>this.bottom)};a.prototype.Be=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};a.prototype.ts=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ya=a;c.prototype.wq=function(a){this.tc=a.left;this.uc=a.top;this.Td=a.right;this.Ud=a.top;this.Ld=a.right;this.Md=a.bottom;this.Jd=a.left;this.Kd=a.bottom};c.prototype.ZD=function(a, b){if(0===b)this.wq(a);else{var c=Math.sin(b),d=Math.cos(b),e=a.left*c,f=a.top*c,g=a.right*c,c=a.bottom*c,h=a.left*d,m=a.top*d,z=a.right*d,d=a.bottom*d;this.tc=h-f;this.uc=m+e;this.Td=z-f;this.Ud=m+g;this.Ld=z-c;this.Md=d+g;this.Jd=h-c;this.Kd=d+e}};c.prototype.offset=function(a,b){this.tc+=a;this.uc+=b;this.Td+=a;this.Ud+=b;this.Ld+=a;this.Md+=b;this.Jd+=a;this.Kd+=b;return this};var t=0,v=0;c.prototype.uB=function(a){b(this.tc,this.Td,this.Ld,this.Jd);a.left=t;a.right=v;b(this.uc,this.Ud,this.Md, this.Kd);a.top=t;a.bottom=v};c.prototype.Be=function(a,b){var c=this.Td-this.tc,d=this.Ud-this.uc,e=this.Ld-this.tc,f=this.Md-this.uc,g=a-this.tc,h=b-this.uc,m=c*c+d*d,z=c*e+d*f,d=c*g+d*h,k=e*e+f*f,l=e*g+f*h,L=1/(m*k-z*z),c=(k*d-z*l)*L,m=(m*l-z*d)*L;if(0<=c&&0c+m)return!0;c=this.Jd-this.tc;d=this.Kd-this.uc;m=c*c+d*d;z=c*e+d*f;d=c*g+d*h;L=1/(m*k-z*z);c=(k*d-z*l)*L;m=(m*l-z*d)*L;return 0<=c&&0c+m};c.prototype.Vg=function(a,b){if(b)switch(a){case 0:return this.tc;case 1:return this.Td;case 2:return this.Ld; case 3:return this.Jd;case 4:return this.tc;default:return this.tc}else switch(a){case 0:return this.uc;case 1:return this.Ud;case 2:return this.Md;case 3:return this.Kd;case 4:return this.uc;default:return this.uc}};c.prototype.Ck=function(){return(this.tc+this.Td+this.Ld+this.Jd)/4};c.prototype.Dk=function(){return(this.uc+this.Ud+this.Md+this.Kd)/4};c.prototype.rC=function(a){var b=a.Ck(),c=a.Dk();if(this.Be(b,c))return!0;b=this.Ck();c=this.Dk();if(a.Be(b,c))return!0;var d,e,f,g,h,m,z,k;for(z= 0;4>z;z++)for(k=0;4>k;k++)if(b=this.Vg(z,!0),c=this.Vg(z,!1),d=this.Vg(z+1,!0),e=this.Vg(z+1,!1),f=a.Vg(k,!0),g=a.Vg(k,!1),h=a.Vg(k+1,!0),m=a.Vg(k+1,!1),wa(b,c,d,e,f,g,h,m))return!0;return!1};za=c;Aa=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};Ba=function(a,b){var c,d;b=ua(b);if(!(0>b||b>=a.length)){c=b;for(d=a.length-1;cc?c:a};u=function(a){return a/(180/ta)};Ha=function(a){return 180/ta*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ta;0>a&&(a+=2*ta);return a};La=function(a){return Ia(Ha(a))};Ma=function(a){return Ja(u(a))};Na=function(a,b,c,d){return Math.atan2(d-b,c-a)};Oa=function(a,b){if(a===b)return 0;var c=Math.sin(a),d=Math.cos(a), e=Math.sin(b),f=Math.cos(b),c=c*e+d*f;return 1<=c?0:-1>=c?ta:Math.acos(c)};Pa=function(a,b,c){var d=Math.sin(a),e=Math.cos(a),f=Math.sin(b),g=Math.cos(b);return Math.acos(d*f+e*g)>c?0=d*e-c*f};Ra=function(a,b,c,d,e,f){if(0===c)return f?a:b;var g=Math.sin(c);c=Math.cos(c);a-=d;b-=e;var h=a*g;a=a*c-b*g;b=b*c+h;return f?a+d:b+e};Sa=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b* b)};Ta=function(a,b){return!a!==!b};Ua=function(a,b,c){return a+(b-a)*c};Va=function(a,b,c){return a===b?0:(c-a)/(b-a)};Wa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Xa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var w=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow(); if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-w};var s=!1,O=s=!1,L=!1;"undefined"!==typeof window&&(s=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),s=!s&&/safari/i.test(navigator.userAgent),O=/(iphone|ipod|ipad)/i.test(navigator.userAgent),L=window.c2ejecta);var z=!s&&!L&&!O&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;d.prototype.contains=function(a){return this.dj()?!1:z?this.qh.has(a):this.items&&this.items.hasOwnProperty(a)}; d.prototype.add=function(a){if(z)this.qh.has(a)||(this.qh.add(a),this.dk=!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.wn++,this.dk=!1):(this.items={},this.items[b]=a,this.wn=1,this.dk=!1)}};d.prototype.remove=function(a){if(!this.dj())if(z)this.qh.has(a)&&(this.qh["delete"](a),this.dk=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.wn--,this.dk=!1)}};d.prototype.clear=function(){this.dj()||(z?this.qh.clear():(this.items= null,this.wn=0),this.po.length=0,this.dk=!0)};d.prototype.dj=function(){return 0===this.count()};d.prototype.count=function(){return z?this.qh.size:this.wn};var B=null,M=0;d.prototype.LN=function(){if(!this.dk){if(z)this.po.length=this.qh.size,B=this.po,M=0,this.qh.forEach(e),B=null,M=0;else{var a=this.po;a.length=this.wn;var b,c=0,d=this.items;if(d)for(b in d)d.hasOwnProperty(b)&&(a[c++]=d[b])}this.dk=!0}};d.prototype.yh=function(){this.LN();return this.po};da=d;new da;$a=function(a,b){z?ab(a,b.qh): bb(a,b.yh())};ab=function(a,b){var c,d,e,f;d=c=0;for(e=a.length;cc&&(c=f),ge&&(e=g);this.Ir=b;this.Jr=c;this.Kr=d;this.Hr=e};g.prototype.wq=function(a,b,c){this.jd.length=8;this.cg=4;var d=this.jd;d[0]=a.left-b;d[1]=a.top-c;d[2]=a.right-b;d[3]=a.top-c;d[4]=a.right-b;d[5]=a.bottom-c;d[6]=a.left-b;d[7]=a.bottom-c; this.Rr=a.right-a.left;this.Qr=a.bottom-a.top;this.Jb()};g.prototype.ho=function(a,b,c,d,e){this.jd.length=8;this.cg=4;var f=this.jd;f[0]=a.tc-b;f[1]=a.uc-c;f[2]=a.Td-b;f[3]=a.Ud-c;f[4]=a.Ld-b;f[5]=a.Md-c;f[6]=a.Jd-b;f[7]=a.Kd-c;this.Rr=d;this.Qr=e;this.Jb()};g.prototype.YD=function(a){this.cg=a.cg;Ca(this.jd,a.jd);this.Ir=a.Ir;this.Kr-a.Kr;this.Jr=a.Jr;this.Hr=a.Hr};g.prototype.jl=function(a,b,c){if(this.Rr!==a||this.Qr!==b||this.xB!==c){this.Rr=a;this.Qr=b;this.xB=c;var d,e,f,g,h,m=0,z=1,k=this.JD, l=this.jd;0!==c&&(m=Math.sin(c),z=Math.cos(c));c=0;for(f=this.cg;cF.length&&F.push(h),this.cells[d][f]=null);if(c)for(d=c.left,e=c.right;d<=e;++d)for(f=c.top,g=c.bottom;f<=g;++f)b&&b.Be(d,f)||this.nk(d,f,!0).Tw(a)};h.prototype.St=function(a,b){var c,d,e,f,g,h;c=this.Of(a.left);e=this.Pf(a.top);d=this.Of(a.right);for(g=this.Pf(a.bottom);c<= d;++c)for(f=e;f<=g;++f)(h=this.nk(c,f,!1))&&h.dump(b)};fb=h;l.prototype.nk=function(a,b,c){var d;d=this.cells[a];return d?(d=d[b])?d:c?(d=m(this,a,b),this.cells[a][b]=d):null:c?(d=m(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};l.prototype.Of=function(a){return ua(a/this.Zv)};l.prototype.Pf=function(a){return ua(a/this.Yv)};l.prototype.update=function(a,b,c){var d,e,f,g,h;if(b)for(d=b.left,e=b.right;d<=e;++d)for(f=b.top,g=b.bottom;f<=g;++f)if(!c||!c.Be(d,f))if(h=this.nk(d,f,!1))h.remove(a), h.dj()&&(h.reset(),1E3>E.length&&E.push(h),this.cells[d][f]=null);if(c)for(d=c.left,e=c.right;d<=e;++d)for(f=c.top,g=c.bottom;f<=g;++f)b&&b.Be(d,f)||this.nk(d,f,!0).Tw(a)};l.prototype.St=function(a,b,c,d,e){var f,g;a=this.Of(a);b=this.Pf(b);c=this.Of(c);for(f=this.Pf(d);a<=c;++a)for(d=b;d<=f;++d)(g=this.nk(a,d,!1))&&g.dump(e)};l.prototype.oM=function(a){var b,c,d,e,f;b=a.left;d=a.top;c=a.right;for(e=a.bottom;b<=c;++b)for(a=d;a<=e;++a)if(f=this.nk(b,a,!1))f.vn=!1};ib=l;var F=[];k.prototype.dj=function(){return this.he.dj()}; k.prototype.Tw=function(a){this.he.add(a)};k.prototype.remove=function(a){this.he.remove(a)};k.prototype.dump=function(a){Da(a,this.he.yh())};ca=k;var E=[];q.prototype.dj=function(){if(!this.he.length)return!0;if(this.he.length>this.ii.count())return!1;this.ww();return!0};q.prototype.Tw=function(a){this.ii.contains(a)?(this.ii.remove(a),this.ii.dj()&&(this.bp=!1)):this.he.length?(this.he[this.he.length-1].Sh()>a.Sh()&&(this.vn=!1),this.he.push(a)):(this.he.push(a),this.vn=!0)};q.prototype.remove= function(a){this.ii.add(a);this.bp=!0;30<=this.ii.count()&&this.ww()};q.prototype.ww=function(){this.bp&&(this.ii.count()===this.he.length?this.reset():($a(this.he,this.ii),this.ii.clear(),this.bp=!1))};q.prototype.eK=function(){this.vn||(this.he.sort(p),this.vn=!0)};q.prototype.reset=function(){this.he.length=0;this.vn=!0;this.ii.clear();this.bp=!1};q.prototype.dump=function(a){this.ww();this.eK();this.he.length&&a.push(this.he)};ea=q;var y="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" "); jb=function(a){return 0>=a||11<=a?"source-over":y[a-1]};kb=function(a,b,c){if(c)switch(a.Ke=c.ONE,a.De=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.Ke=c.ONE;a.De=c.ONE;break;case 3:a.Ke=c.ONE;a.De=c.ZERO;break;case 4:a.Ke=c.ONE_MINUS_DST_ALPHA;a.De=c.ONE;break;case 5:a.Ke=c.DST_ALPHA;a.De=c.ZERO;break;case 6:a.Ke=c.ZERO;a.De=c.SRC_ALPHA;break;case 7:a.Ke=c.ONE_MINUS_DST_ALPHA;a.De=c.ZERO;break;case 8:a.Ke=c.ZERO;a.De=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ke=c.DST_ALPHA;a.De=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ke= c.ONE_MINUS_DST_ALPHA,a.De=c.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var mc="undefined"!==typeof Float32Array?Float32Array:Array;function nc(a){var c=new mc(3);a&&(c[0]=a[0],c[1]=a[1],c[2]=a[2]);return c} function oc(a){var c=new mc(16);a&&(c[0]=a[0],c[1]=a[1],c[2]=a[2],c[3]=a[3],c[4]=a[4],c[5]=a[5],c[6]=a[6],c[7]=a[7],c[8]=a[8],c[9]=a[9],c[10]=a[10],c[11]=a[11],c[12]=a[12],c[13]=a[13],c[14]=a[14],c[15]=a[15]);return c}function pc(a,c){c[0]=a[0];c[1]=a[1];c[2]=a[2];c[3]=a[3];c[4]=a[4];c[5]=a[5];c[6]=a[6];c[7]=a[7];c[8]=a[8];c[9]=a[9];c[10]=a[10];c[11]=a[11];c[12]=a[12];c[13]=a[13];c[14]=a[14];c[15]=a[15]} function qc(a,c){var b=c[0],d=c[1];c=c[2];a[0]*=b;a[1]*=b;a[2]*=b;a[3]*=b;a[4]*=d;a[5]*=d;a[6]*=d;a[7]*=d;a[8]*=c;a[9]*=c;a[10]*=c;a[11]*=c} function rc(a,c,b,d){d||(d=oc());var e,f,g,h,l,n,k,m,q=a[0],p=a[1];a=a[2];f=b[0];g=b[1];e=b[2];b=c[1];n=c[2];q===c[0]&&p===b&&a===n?(a=d,a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1):(b=q-c[0],n=p-c[1],k=a-c[2],m=1/Math.sqrt(b*b+n*n+k*k),b*=m,n*=m,k*=m,c=g*k-e*n,e=e*b-f*k,f=f*n-g*b,(m=Math.sqrt(c*c+e*e+f*f))?(m=1/m,c*=m,e*=m,f*=m):f=e=c=0,g=n*f-k*e,h=k*c-b*f,l=b*e-n*c,(m=Math.sqrt(g*g+h*h+l*l))?(m=1/m,g*=m,h*=m,l*=m):l=h=g=0, d[0]=c,d[1]=g,d[2]=b,d[3]=0,d[4]=e,d[5]=h,d[6]=n,d[7]=0,d[8]=f,d[9]=l,d[10]=k,d[11]=0,d[12]=-(c*q+e*p+f*a),d[13]=-(g*q+h*p+l*a),d[14]=-(b*q+n*p+k*a),d[15]=1)} (function(){function a(a){this.Hl=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.yB=nc([0,0,100]);this.GC=nc([0,0,0]);this.wE=nc([0,1,0]);this.sz=nc([1,1,1]);this.PB=!0;this.Xx=oc();this.Bg=oc();this.yC=oc();this.hw=oc();this.na=a;this.nC()}function c(a,b,c){this.na=a;this.yq=b;this.name=c;this.xg=a.getAttribLocation(b,"aPos");this.uk=a.getAttribLocation(b,"aTex");this.EC=a.getUniformLocation(b,"matP");this.jt=a.getUniformLocation(b,"matMV"); this.Fn=a.getUniformLocation(b,"opacity");this.FC=a.getUniformLocation(b,"samplerFront");this.Mp=a.getUniformLocation(b,"samplerBack");this.Yl=a.getUniformLocation(b,"destStart");this.Xl=a.getUniformLocation(b,"destEnd");this.Dx=a.getUniformLocation(b,"seconds");this.Cx=a.getUniformLocation(b,"pixelWidth");this.Bx=a.getUniformLocation(b,"pixelHeight");this.Lp=a.getUniformLocation(b,"layerScale");this.Kp=a.getUniformLocation(b,"layerAngle");this.Op=a.getUniformLocation(b,"viewOrigin");this.Np=a.getUniformLocation(b, "scrollPos");this.mL=!!(this.Cx||this.Bx||this.Dx||this.Mp||this.Yl||this.Xl||this.Lp||this.Kp||this.Op||this.Np);this.OC=this.PC=-999;this.mt=1;this.KC=this.JC=0;this.MC=this.IC=this.HC=1;this.RC=this.QC=this.TC=this.SC=this.LC=0;this.kx=[];this.NC=oc();this.Fn&&a.uniform1f(this.Fn,1);this.FC&&a.uniform1i(this.FC,0);this.Mp&&a.uniform1i(this.Mp,1);this.Yl&&a.uniform2f(this.Yl,0,0);this.Xl&&a.uniform2f(this.Xl,1,1);this.Lp&&a.uniform1f(this.Lp,1);this.Kp&&a.uniform1f(this.Kp,0);this.Op&&a.uniform2f(this.Op, 0,0);this.Np&&a.uniform2f(this.Np,0,0);this.Bl=!1}function b(a,b){this.type=a;this.ha=b;this.na=b.na;this.Th=this.Jg=this.uD=0;this.Vb=this.sh=null;this.$D=[]}a.prototype.nC=function(){var a=this.na,b;this.zC=1;this.Pl=this.Ol=null;this.js=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.AC=a.ONE;this.xC=a.ONE_MINUS_SRC_ALPHA;this.ty=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.ty); this.Lq=Array(4);this.Dq=Array(4);for(b=0;4>b;b++)this.Lq[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Lq[b]),this.Dq[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Dq[b]);this.Qi=0;this.rL=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.rL);this.nz=new Float32Array(16E3);this.Wy=new Float32Array(16E3);this.LM=new Float32Array(32E3);for(var c=new Uint16Array(12E3),d=b=0;12E3>b;)c[b++]=d,c[b++]=d+1,c[b++]=d+2,c[b++]=d,c[b++]=d+2,c[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER, c,a.STATIC_DRAW);this.uy=this.yi=0;this.Rd=[];b=this.gw({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.Rd.push(b);b=this.gw({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.Rd.push(b);for(var e in sc)sc.hasOwnProperty(e)&&this.Rd.push(this.gw(sc[e], "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}",e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ck=[];this.Mi=0;this.Df=!1;this.JB=this.Hp=-1;this.fp=null;this.EK=a.createFramebuffer();this.OD=null;this.Rk=nc([0,0,0]);this.eD=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048b;b++)if(this.yC[b]!==this.Bg[b]){a=!0;break}a&&(a=this.ph(),a.type=5,a.Vb?pc(this.Bg,a.Vb):a.Vb=oc(this.Bg),pc(this.Bg, this.yC),this.Df=!1)};b.prototype.NJ=function(){this.na.bindTexture(this.na.TEXTURE_2D,this.sh)};b.prototype.OJ=function(){var a=this.na;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.sh);a.activeTexture(a.TEXTURE0)};b.prototype.KJ=function(){var a=this.uD,b=this.ha;b.js=a;b=b.fp;b.Fn&&b.mt!==a&&(b.mt=a,this.na.uniform1f(b.Fn,a))};b.prototype.HJ=function(){this.na.drawElements(this.na.TRIANGLES,this.Th,this.na.UNSIGNED_SHORT,2*this.Jg)};b.prototype.JJ=function(){this.na.blendFunc(this.Jg, this.Th)};b.prototype.PJ=function(){var a,b,c,d=this.ha.Rd,e=this.ha.JB;a=0;for(b=d.length;a"===b.name&&a.vertexAttribPointer(b.xg,4,a.FLOAT,!1,0,0));if(0"!==b.name&&a.vertexAttribPointer(b.xg,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Dq[this.Qi]);a.bufferData(a.ARRAY_BUFFER,this.Wy.subarray(0,this.yi),a.STREAM_DRAW);b&&0<=b.uk&&""!==b.name&&a.vertexAttribPointer(b.uk,2, a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Mi;ac||0>d)){var e=this.ph();e.type=7;e.Jg=1;e.Vb||(e.Vb=oc());e.Vb[0]=a;e.Vb[1]=b;e.Vb[2]=c;e.Vb[3]=d;this.Df=!1}};a.prototype.QM=function(){this.sl();this.na.flush()};var d=[],e={};a.prototype.vJ=function(){d.length=0;e={}};a.prototype.tk=function(a,b,c,l){b=!!b;c=!!c;var n=a.src+","+b+","+c+(b?",undefined":""),k=null;if("undefined"!==typeof a.src&&e.hasOwnProperty(n))return k=e[n],k.Pr++,k;this.sl();var m=this.na,q=ma(a.width)&&ma(a.height),k=m.createTexture();m.bindTexture(m.TEXTURE_2D, k);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=m.RGBA,t=m.RGBA,v=m.UNSIGNED_BYTE;if(l&&!this.Hl)switch(l){case 1:t=p=m.RGB;break;case 2:v=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:v=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=p=m.RGB,v=m.UNSIGNED_SHORT_5_6_5}if(!q&&b){l=document.createElement("canvas");l.width=pa(a.width);l.height=pa(a.height);var w=l.getContext("2d");w.webkitImageSmoothingEnabled=c;w.mozImageSmoothingEnabled=c;w.msImageSmoothingEnabled=c;w.imageSmoothingEnabled=c;w.drawImage(a, 0,0,a.width,a.height,0,0,l.width,l.height);m.texImage2D(m.TEXTURE_2D,0,p,t,v,l)}else m.texImage2D(m.TEXTURE_2D,0,p,t,v,a);b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));c?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),q&&this.PB?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR), m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.Ol=null;k.Zm=a.width;k.Ym=a.height;k.Pr=1;k.wB=n;d.push(k);return e[n]=k};a.prototype.ik=function(a,b,c){var e;this.sl();var n=this.na;this.Hl&&(e=!1);var k=n.createTexture();n.bindTexture(n.TEXTURE_2D,k);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,a,b,0, n.RGBA,e?n.UNSIGNED_SHORT_4_4_4_4:n.UNSIGNED_BYTE,null);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,c?n.LINEAR:n.NEAREST);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,c?n.LINEAR:n.NEAREST);n.bindTexture(n.TEXTURE_2D,null);this.Ol=null;k.Zm=a;k.Ym=b;d.push(k);return k};a.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Pr&&1m?(m*=b,5===g?(f=m*c/this.Dd,1f&&(f=1/Math.ceil(1/f)),m=this.Dd*f/c,f=this.Cd*f/c,d=(a-m)/2,e=(b-f)/2,a=m,b=f):(d=(a-m)/2,a=m)):(f=a/m,5===g?(f=f*c/this.Cd,1f&&(f=1/Math.ceil(1/f)),m=this.Dd*f/c,f=this.Cd*f/c,d=(a-m)/2,e=(b-f)/2,a=m):e=(b-f)/2,b=f),h&&!this.Vh&&(e=d=0)):this.Vh&&this.sn&&0===this.WB&&(d=Math.floor((a-this.Dd)/2),e=Math.floor((b-this.Cd)/2),a=this.Dd,b=this.Cd),2>g&&(this.dp=c),this.Il&&this.wC&& 1m&&(this.rb=this.sb/g)):3===g&&(m=this.Dd/this.Cd,g=this.Bn/this.An,g>m?this.sb= this.rb*g:g=g)g=5E4;a+=g;f.src&&(f.complete||f.loaded)&&!f.vB?b+=g:d=!1}d&&this.OM&&this.Wm&&(m||(this.Wm.wN(),m=!0),c=this.Wm.SK(),b+=c,c=this.Jp?(b=ua(b-m)+.5,d=ua(d+(f+(c?12*e:0)))+.5,a.fillStyle=n?"red":"DodgerBlue",a.fillRect(b,d,Math.floor(k*this.Rb),6*e),a.strokeStyle="black",a.strokeRect(b, d,k,6*e),a.strokeStyle="white",a.strokeRect(b-1*e,d-1*e,k+2*e,8*e)):2===this.Jp&&(a.font=this.vg?"12pt ArialMT":"12pt Arial",a.fillStyle=n?"#f00":"#999",a.wP="middle",e=Math.round(100*this.Rb)+"%",c=a.measureText?a.measureText(e):null,a.fillText(e,b-(c?c.width:0)/2,d))}this.BC=this.Rb}setTimeout(function(a){return function(){a.go()}}(this),this.Ef?10:100)}}};b.prototype.jL=function(){this.te&&(this.canvas.parentNode.removeChild(this.te),this.te=this.oy=null);this.mu=Date.now();this.Rl=Ya();var a, b,c;if(this.kz)for(a=0,b=this.qa.length;aa||2===this.kf&&bd-this.ox)this.zy=!1,this.ox=d,q?this.Ut=q(this.uu,this.canvas):this.wu=setTimeout(this.uu,this.ej?1:16);else{this.zy=!0;this.ox=d;var e=this.kf,m=(document.mozFullScreen|| document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.mf;(m||this.sn)&&0b||2===d&&ca++;)this.NB(this.Oi);a=0;for(b=this.Wi.length;ab.ns.length&& b.ns.push(a)};b.prototype.es=function(a,b,c,d){if(a.Ga){var e=ua(Math.random()*a.mm.length);return this.es(a.mm[e],b,c,d)}return a.rg?this.jk(a.rg,b,!1,c,d,!1):null};var t=[];b.prototype.jk=function(a,b,c,d,e,m){var f,k,g,h;if(!a)return null;var l=this.qa[a[1]],p=l.Da.Wh;if(this.Ml&&p&&!l.Yw||p&&!this.ha&&11===a[0][11])return null;var n=b;p||(b=null);var s;l.ns.length?(s=l.ns.pop(),s.ke=!0,l.Da.la.call(s,l)):(s=new l.Da.la(l),s.ke=!1);s.uid=c&&!m?a[2]:this.bq++;this.Fk[s.uid.toString()]=s;s.KD=this.iD++; s.Dl=l.D.length;f=0;for(k=this.Xg.length;fa&&(a=0);a>=this.lb.Oa.length&&(a=this.lb.Oa.length-1);return this.lb.Oa[a]}; b.prototype.qp=function(a){return ka(a)?this.$i(a):this.rp(a.toString())};b.prototype.$v=function(a){var b,c;b=0;for(c=a.length;b=e;)f=1/e,e*=2,a.x+=b*f*(m?1:-1),a.y+=c*f*(m?1:-1),a.Ea(),this.Qk(a,d)?f=m=!0:(f=m=!1,k=a.x,g=a.y);f&&(a.x=k,a.y=g,a.Ea())};b.prototype.VM=function(a){var b=0,c=a.x,d=a.y,e=0,f=0,m=0,k=this.zm(a);if(k){for(;100>=b;){switch(e){case 0:f=0;m=-1;b++;break;case 1:f=1;m=-1;break;case 2:f=1;m=0;break;case 3:m= f=1;break;case 4:f=0;m=1;break;case 5:f=-1;m=1;break;case 6:f=-1;m=0;break;case 7:m=f=-1}e=(e+1)%8;a.x=ua(c+f*b);a.y=ua(d+m*b);a.Ea();if(!this.Qk(a,k)&&(k=this.zm(a),!k))return}a.x=c;a.y=d;a.Ea()}};b.prototype.ND=function(a,b){a.Pi&&b.Pi&&this.Wt.push([a,b])};b.prototype.tJ=function(a,b){var c,d,e;c=0;for(d=this.Wt.length;ch;h++)if(l=m-h*n,a.x=b+Math.cos(l)*f,a.y=c+Math.sin(l)*f,a.Ea(),!this.Qk(a,g)&&(g=this.zm(a),!g)){p=l;break}36===h&&(p=Ja(m+ta));g=k;for(h=1;36>h;h++)if(l=m+h*n,a.x=b+Math.cos(l)*f,a.y=c+Math.sin(l)*f,a.Ea(),!this.Qk(a,g)&&(g=this.zm(a),!g)){s=l;break}36===h&&(s=Ja(m+ta));a.x=d;a.y=e;a.Ea();if(s===p)return s;a=Oa(s,p)/2;a=Qa(s,p)?Ja(p+a+ta):Ja(s+a);p=Math.cos(m);m=Math.sin(m);s=Math.cos(a);a=Math.sin(a);b=p*s+m*a;return Na(0,0,p-2*b*s,m-2*b*a)};var O=-1;b.prototype.trigger= function(a,b,c){if(!this.lb)return!1;var d=this.lb.tl;if(!d)return!1;var e=!1,f,m,k;O++;var g=d.iw;m=0;for(k=g.length;m=this.Ex.length&&this.Ex.push([])};b.prototype.MM=function(){this.kt--};b.prototype.ZB= function(){return this.Ex[this.kt]};b.prototype.Qt=function(a){this.us++;this.us>=this.nw.length&&this.nw.push(new Rb);var b=this.bd();b.reset(a);return b};b.prototype.Lt=function(){this.us--};b.prototype.bd=function(){return this.nw[this.us]};b.prototype.yy=function(a){this.Qp++;this.Qp>=this.Gn.length&&this.Gn.push(aa({name:a,index:0,lc:!1}));var b=this.Ew();b.name=a;b.index=0;b.lc=!1;return b};b.prototype.wy=function(){this.Qp--};b.prototype.Ew=function(){return this.Gn[this.Qp]};b.prototype.$B= function(a,b){for(var c,d,e,f,m,k;b;){c=0;for(d=b.Kg.length;cc||c>=a.ed.length|| (a.ed[c]=e[d]));if(f.Wh){f=b.w;a.W.zb!==f.l&&(c=a.W,a.W=this.lb.Js(f.l),a.W?(c.co(a,!0),a.W.cp(a,!0),a.Ea(),a.W.vq(0)):(a.W=c,this.Ch(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.zh=f.zi;a.K=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Ue=f.hasOwnProperty("hX")?f.hX:.5;a.Ve=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.Pi=f.hasOwnProperty("ce")?f.ce:!0;a.Un=f.hasOwnProperty("mts")?f.mts:-1;a.jf=f.hasOwnProperty("bm")?f.bm:0;a.ep=jb(a.jf);this.na&& kb(a,a.jf,this.na);a.Ea();if(f.hasOwnProperty("fx"))for(c=0,e=f.fx.length;cm||(a.Zj[m]=f.fx[c].active,a.Pc[m]=f.fx[c].params);a.Kj()}if(k=b.behs)for(d in k)k.hasOwnProperty(d)&&(f=this.LK(a,parseInt(d,10)),0>f||a.eb[f].Bc(k[d]));b.data&&a.Bc(b.data)};Tb=function(a){return new b(document.getElementById(a))};Ub=function(a,c){return new b({dc:!0,width:a,height:c})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs= !0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.vP=!0;document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight); return a}})();window.cr_getC2Runtime=function(){var a=document.getElementById("c2canvas");return a?a.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(a,c){if(0!==a&&0!==c){var b=window.cr_getC2Runtime();b&&b.setSize(a,c)}};window.cr_setSuspended=function(a){var c=window.cr_getC2Runtime();c&&c.setSuspended(a)}; (function(){function a(a,b){this.c=a;this.tl=null;this.scrollX=this.c.Dd/2;this.scrollY=this.c.Cd/2;this.scale=1;this.K=0;this.lp=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.vE=b[3];this.aE=b[4];this.zb=b[5];var c=b[6],d,e;this.Oa=[];this.xp=[];d=0;for(e=c.length;d=this.Oa.length&&(s=this.Oa.length-1);l.W=this.Oa[s];-1===l.W.D.indexOf(l)&&l.W.D.push(l);l.W.Mj=!0}if(!g)for(a=0,d=this.Oa.length;ad?l.siblings.push(n.D[d]):n.rg&&(h=this.c.jk(n.rg,l.W,!0,l.x,l.y,!0),this.c.xe(),n.Fu(),l.siblings.push(h),f.push(h)));a=0;for(d=this.Fl.length;athis.width-b&&(a=this.width-b);athis.height-b&&(a=this.height-b);aG&&(G=0);0>Q&&(Q=0);U>I&&(U=I);Z>R&&(Z=R);0>H&&(H=0);0>ba&&(ba=0);X>I&&(X=I);Ka>R&&(Ka=R);N.left=G/I;N.top=1-Q/R;N.right=U/I;N.bottom=1-Z/R}else N.left=D.left=0,N.top=D.top=0,N.right=D.right=1,N.bottom=D.bottom=1;xa=c&&((c.K||gb)&&a.nq(e[0].ue)|| 0!==E||0!==xa||1!==c.opacity||c.type.Da.hD)||b&&!c&&1!==b.opacity;a.VD();if(xa){B[K]||(B[K]=a.ik(I,R,this.c.yb));if(B[K].Zm!==I||B[K].Ym!==R)a.deleteTexture(B[K]),B[K]=a.ik(I,R,this.c.yb);a.si(0);a.qi(B[K]);Y=Ka-ba;a.clearRect(H,R-ba-Y,X-H,Y);c?c.tg(a):(a.Kf(this.c.Uf),a.wm(b.opacity),a.Ik(),a.translate(-ha,-ga),a.Uk(),a.li(G,Z,U,Z,U,Q,G,Q,N));D.left=D.top=0;D.right=D.bottom=1;c&&(y=N.top,N.top=N.bottom,N.bottom=y);K=1;T=0}a.wm(1);E=e.length-1;var gb=a.xy(e[E].ue)||!b&&!c&&!this.c.ug,hb=0;M=0;for(F= e.length;Mc||(b&&this.wh&&a.rf&&a.rf.right>=a.rf.left&&(a.Jb(),this.Jf.update(a,a.rf,null),a.rf.set(0,0,-1,-1)),c===this.D.length-1?this.D.pop():(Ba(this.D,c),this.vq(c)),this.Cj=!0)};b.prototype.cp=function(a,b){a.zh=this.D.length;this.D.push(a);b&&this.wh&&a.rf&&a.Ea();this.Cj=!0};b.prototype.PM=function(a){this.D.unshift(a); this.vq(0)};b.prototype.wM=function(a,b,c){var d=a.Sh();b=b.Sh();Ba(this.D,d);dthis.od||c.top>this.nd||(b.globalCompositeOperation=a.ep,a.Mh(b))}};b.prototype.gz=function(){this.pl=!0;var a=this.Se(0,0,!0,!0),b=this.Se(0,0,!1,!0);this.pl=!1;this.c.ji&& (a=Math.round(a),b=Math.round(b));this.Gy(a,b,null)};b.prototype.Gy=function(a,b,c){var d=this.bh();this.Kc=a;this.Lc=b;this.od=a+1/d*this.c.sb;this.nd=b+1/d*this.c.rb;a=this.$d();0!==a&&(c&&(c.translate(this.c.sb/2,this.c.rb/2),c.rotate(-a),c.translate(this.c.sb/-2,this.c.rb/-2)),this.Ij.set(this.Kc,this.Lc,this.od,this.nd),this.Ij.offset((this.Kc+this.od)/-2,(this.Lc+this.nd)/-2),this.oE.ZD(this.Ij,a),this.oE.uB(this.Ij),this.Ij.offset((this.Kc+this.od)/2,(this.Lc+this.nd)/2),this.Kc=this.Ij.left, this.Lc=this.Ij.top,this.od=this.Ij.right,this.nd=this.Ij.bottom)};b.prototype.tg=function(a){var b=0,c=0;if(this.Hk=this.yw||1!==this.opacity||0this.od||c.top>this.nd||(a.DE?this.TJ(a,b):(b.si(0),b.Kk(a.Ke,a.De),a.tg(b)))}};b.prototype.TJ=function(a,b){var c=a.Kb[0].ue,d=a.Kb[0].index,e=this.bh();if(1!==a.Kb.length||b.xy(c)||b.RM(c)||(a.K||a.W.$d())&&b.nq(c)||1!==a.opacity||a.type.Da.hD)this.cc.Ey(b,this,a,this.Hk?this.c.Uf:this.cc.sp()), b.Ik(),b.scale(e,e),b.RD(-this.$d()),b.translate((this.Kc+this.od)/-2,(this.Lc+this.nd)/-2),b.Uk();else{b.si(c);b.Kk(a.Ke,a.De);b.Pt(c)&&(this.c.Wa=!0);var f=0,g=0,h=0,l=0;b.nq(c)&&(c=a.Yc,f=this.Xe(c.left,c.top,!0,!0),g=this.Xe(c.left,c.top,!1,!0),h=this.Xe(c.right,c.bottom,!0,!0),c=this.Xe(c.right,c.bottom,!1,!0),f/=windowWidth,g=1-g/windowHeight,h/=windowWidth,l=1-c/windowHeight);b.fo(this.Hk?this.c.Uf:this.cc.sp(),1/a.width,1/a.height,f,g,h,l,e,this.$d(),this.Kc,this.Lc,(this.Kc+this.od)/2,(this.Lc+ this.nd)/2,a.Pc[d]);a.tg(b)}};b.prototype.Se=function(a,b,c,d){var e=this.c.devicePixelRatio;this.c.Il&&(a*=e,b*=e);var e=this.c.BD,f=this.c.CD,e=(this.cc.scrollX-e)*this.Dg+e,f=(this.cc.scrollY-f)*this.Eg+f,g=1/this.bh(!d);d?(e-=this.c.sb*g/2,f-=this.c.rb*g/2):(e-=this.c.width*g/2,f-=this.c.height*g/2);e+=a*g;f+=b*g;b=this.$d();0!==b&&(e-=this.cc.scrollX,f-=this.cc.scrollY,a=Math.cos(b),b=Math.sin(b),d=e*a-f*b,f=f*a+e*b,e=d+this.cc.scrollX,f+=this.cc.scrollY);return c?e:f};b.prototype.Xe=function(a, b,c,d){var e=this.$d();if(0!==e){a-=this.cc.scrollX;b-=this.cc.scrollY;var f=Math.cos(-e),e=Math.sin(-e),g=a*f-b*e;b=b*f+a*e;a=g+this.cc.scrollX;b+=this.cc.scrollY}f=this.c.BD;e=this.c.CD;f=(this.cc.scrollX-f)*this.Dg+f;e=(this.cc.scrollY-e)*this.Eg+e;g=1/this.bh(!d);d?(f-=this.c.sb*g/2,e-=this.c.rb*g/2):(f-=this.c.width*g/2,e-=this.c.height*g/2);f=(a-f)/g;e=(b-e)/g;a=this.c.devicePixelRatio;this.c.Il&&!d&&(f/=a,e/=a);return c?f:e};b.prototype.kc=function(){var a,b,c,d={s:this.scale,a:this.K,vl:this.Kc, vt:this.Lc,vr:this.od,vb:this.nd,v:this.visible,bc:this.ak,t:this.Jj,px:this.Dg,py:this.Eg,o:this.opacity,zr:this.Ah,fx:[],instances:[]};a=0;for(b=this.ab.length;ab[1].index&&(d=b[0],b[0]=b[1],b[1]=d):2=p.length&&(p.length=b.length+1);p[b.length]||(p[b.length]=[]);g=p[b.length];d=0;for(e=g.length;d=b.length&&(b.length=this.$l+1),b[this.$l]=a):this.data=a};k.prototype.zl=function(){var a=this.c.ZB();return!this.parent||this.Fp||!a||this.Ws?this.data: this.$l>=a.length||"undefined"===typeof a[this.$l]?this.fa:a[this.$l]};k.prototype.Fd=function(){!this.parent||this.Fp||this.Ws||this.Fj(this.fa)};Sb=k;m.prototype.toString=function(){return"include:"+this.wp.toString()};m.prototype.hd=function(){this.wp=this.c.ow[this.qL];this.sheet.lC.add(this);this.jb=b(this.jb);for(var a=this.parent;a;)a.group&&a.Zr.push(this),a=a.parent;this.xE()};m.prototype.Fd=function(){this.parent&&this.c.oq(this.c.qa);this.wp.Qw||this.wp.Fd(!0);this.parent&&this.c.Gg(this.c.qa)}; m.prototype.xE=function(){for(var a=this.parent;a;){if(a.group&&!a.qk){this.ea=!1;return}a=a.parent}this.ea=!0};ac=m;q.prototype.reset=function(a){this.$c=a;this.gf=this.ud=0;this.lE.length=0;this.mw=this.Ql=!1};q.prototype.Xw=function(){return this.$c.Sy?!0:this.ud=this.type&&(this.first=new Zb(a,c[1]),this.le= new Zb(a,c[2]));if(e){var f,g;f=0;for(g=e.length;fc&&(c+=e.length);e=e[c]; -1c&&(c+=e.length);e=e[c].ed[this.mz];la(e)?a.Xa(e):a.V(e);this.Ha.Ed();return}this.Ha.Ed()}c%=e.length;0>c&&(c+=e.length);e=e[c];c=0;this.pf.Ga&&(c=e.type.ws[this.pf.Xi]); e=e.ed[this.mz+c];la(e)?a.Xa(e):a.V(e)};a.prototype.rK=function(a){a.type=cc.Pm;a.data=this.value};a.prototype.nK=function(a){a.type=cc.Km;a.data=this.value};a.prototype.zK=function(a){a.type=cc.String;a.data=this.value};a.prototype.CK=function(a){this.first.get(a);a.de()&&(a.data=-a.data)};a.prototype.hK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.de()&&c.de()&&(a.data+=c.data,c.tn()&&a.On());this.Ha.Ed()};a.prototype.AK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c); a.de()&&c.de()&&(a.data-=c.data,c.tn()&&a.On());this.Ha.Ed()};a.prototype.vK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.de()&&c.de()&&(a.data*=c.data,c.tn()&&a.On());this.Ha.Ed()};a.prototype.kK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.de()&&c.de()&&(a.data/=c.data,a.On());this.Ha.Ed()};a.prototype.uK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.de()&&c.de()&&(a.data%=c.data,c.tn()&&a.On());this.Ha.Ed()};a.prototype.yK=function(a){this.first.get(a); var c=this.Ha.Qd();this.le.get(c);a.de()&&c.de()&&(a.data=Math.pow(a.data,c.data),c.tn()&&a.On());this.Ha.Ed()};a.prototype.iK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.de()?c.Ys()?a.Xa(a.data.toString()+c.data):a.data&&c.data?a.ja(1):a.ja(0):a.Ys()&&(a.data=c.Ys()?a.data+c.data:a.data+(Math.round(1E10*c.data)/1E10).toString());this.Ha.Ed()};a.prototype.xK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.de()&&c.de()&&(a.data||c.data?a.ja(1):a.ja(0));this.Ha.Ed()}; a.prototype.jK=function(a){this.first.get(a);a.data?this.le.get(a):this.tu.get(a)};a.prototype.lK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.ja(a.data===c.data?1:0);this.Ha.Ed()};a.prototype.wK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.ja(a.data!==c.data?1:0);this.Ha.Ed()};a.prototype.sK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.ja(a.datac.data?1:0);this.Ha.Ed()};a.prototype.pK=function(a){this.first.get(a);var c=this.Ha.Qd();this.le.get(c);a.ja(a.data>=c.data?1:0);this.Ha.Ed()};a.prototype.mK=function(a){var c=this.ul.zl();ka(c)?a.V(c):a.Xa(c)};Zb=a;c.prototype.tn=function(){return this.type===cc.Km};c.prototype.de=function(){return this.type===cc.Pm||this.type===cc.Km};c.prototype.Ys=function(){return this.type=== cc.String};c.prototype.On=function(){this.tn()||(this.Ys()&&(this.data=parseFloat(this.data)),this.type=cc.Km)};c.prototype.ja=function(a){this.type=cc.Pm;this.data=Math.floor(a)};c.prototype.V=function(a){this.type=cc.Km;this.data=a};c.prototype.Xa=function(a){this.type=cc.String;this.data=a};c.prototype.ri=function(a){ka(a)?(this.type=cc.Km,this.data=a):la(a)?(this.type=cc.String,this.data=a.toString()):(this.type=cc.Pm,this.data=0)};bc=c;cc={Pm:0,Km:1,String:2}})(); function x(a){this.c=a;this.tf=[]}x.prototype.kc=function(){var a={},c,b,d,e,f,g,h,l;a.waits=[];var n=a.waits,k;c=0;for(b=this.tf.length;c=c&&!a.lc;--b)this.c.Bj(e.jb),a.index=b,e.pi(),this.c.Gg(e.jb);else for(;b>=c&&!a.lc;--b)a.index=b,e.pi();else if(d)for(;b<=c&&!a.lc;++b)this.c.Bj(e.jb),a.index=b,e.pi(),this.c.Gg(e.jb);else for(;b<=c&&!a.lc;++b)a.index=b,e.pi();this.c.wy();return!1};var g=[],h=-1;a.prototype.EF=function(a){var b= a.wa();h++;g.length===h&&g.push([]);var c=g[h];Ca(c,b.qe());var d=this.c.bd(),e=d.$c,f=d.Xw(),d=this.c.yy(),m,l,k,n,p,t,q=a.be;if(f)for(f=0,m=c.length;f=c+e)return b.ra.Every_lastTime=c+e,d>=b.ra.Every_lastTime+.04&&(b.ra.Every_lastTime=d),b.ra.Every_seconds=a,!0;da&&(a=0);this.c.vh=a};b.prototype.EH=function(a,b){var c=b;0>c&&(c=0);if(a){var d=a.wa().qe(),e,f;e=0;for(f=d.length;e a)){var b,c,d,e=this.c.bd(),f;f=m.length?m.pop():{ef:{},jb:[]};f.jw=!1;f.time=this.c.nf.mb+a;f.dE="";f.Ry=!1;f.hn=e.$c;f.gf=e.gf+1;a=0;for(b=this.c.qa.length;athis.c.Qp||(this.c.Ew().lc=!0)};b.prototype.NF=function(a){if(!this.c.Ml&&!this.c.Oi)for(var b in this.c.Dn)if(this.c.Dn.hasOwnProperty(b)&& mb(b,a)){this.c.Oi=this.c.Dn[b];break}};b.prototype.iH=function(){if(!this.c.Ml&&!this.c.Oi&&this.c.lb){this.c.Oi=this.c.lb;var a,b,c;a=0;for(b=this.c.$j.length;a=a||0>=b)){var c=this.c.kf;(document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||this.c.sn)&&0e&&(b=e);a.V(b)};d.prototype.$a=function(a){a.V(this.c.$a)};d.prototype.vh=function(a){a.V(this.c.vh)};d.prototype.time= function(a){a.V(this.c.nf.mb)};d.prototype.uh=function(a){a.ja(this.c.uh)};d.prototype.cq=function(a){a.ja(this.c.cq)};d.prototype.Bs=function(a){a.ja(this.c.Bs)};d.prototype.TL=function(a,b){var c,d,e;if(this.c.Gn.length)if(b){d=0;for(e=this.c.Gn.length;dd?a.V(d):a.V(b)};d.prototype.KL=function(a,b){var c=this.c.qp(b);c?a.V(100*c.opacity):a.V(0)};d.prototype.LL=function(a){a.ja(this.c.lb.height)};d.prototype.find=function(a,b,c){la(b)&&la(c)?a.ja(b.search(new RegExp(db(c), "i"))):a.ja(-1)};d.prototype.left=function(a,b,c){a.Xa(la(b)?b.substr(0,c):"")};d.prototype.right=function(a,b,c){a.Xa(la(b)?b.substr(b.length-c):"")};d.prototype.GN=function(a,b,c,d){la(b)&&la(d)?(b=b.split(d),c=ua(c),0>c||c>=b.length?a.Xa(""):a.Xa(b[c])):a.Xa("")};d.prototype.HN=function(a,b,c){la(b)&&b.length?a.ja(b.split(c).length):a.ja(0)};d.prototype.replace=function(a,b,c,d){la(b)&&la(c)&&la(d)?a.Xa(b.replace(new RegExp(db(c),"gi"),d)):a.Xa(la(b)?b:"")};d.prototype.trim=function(a,b){a.Xa(la(b)? b.trim():"")};d.prototype.JM=function(a){a.V(ta)};d.prototype.ML=function(a){this.c.lb?a.Xa(this.c.lb.name):a.Xa("")};d.prototype.BB=function(a){var b=ua(Math.random()*(arguments.length-1));a.ri(arguments[b+1])};d.prototype.fw=function(a){a.V(this.c.fw/1E3)};d.prototype.SN=function(a,b){var c=this.c.qp(b);a.V(c?c.Kc:0)};d.prototype.UN=function(a,b){var c=this.c.qp(b);a.V(c?c.Lc:0)};d.prototype.TN=function(a,b){var c=this.c.qp(b);a.V(c?c.od:0)};d.prototype.RN=function(a,b){var c=this.c.qp(b);a.V(c? c.nd:0)};d.prototype.Wl=function(a){a.V(this.c.Wl)};d.prototype.KN=function(a,b,c,d){a.V(Va(b,c,d))};d.prototype.pL=function(a){this.c.ha?a.V(Math.round(100*this.c.ha.gK()/1048576)/100):a.V(0)};d.prototype.aN=function(a,b,d,e){d=c(d,e);a.ja(b?b.search(d):-1)};d.prototype.$M=function(a,b,d,e,f){d=c(d,e);a.Xa(b?b.replace(d,f):"")};var p=[],t="",v="",w="";d.prototype.ZM=function(a,b,d,f){c(d,f);e(b,d,f);a.ja(p?p.length:0)};d.prototype.YM=function(a,b,d,f,g){g=Math.floor(g);c(d,f);e(b,d,f);!p||0>g||g>= p.length?a.Xa(""):a.Xa(p[g])};f.H=new d;f.fN=function(){var a,b,c,d,e,f,g=this.c.bd();a=0;for(c=this.tf.length;athis.c.nf.mb)continue;g.$c=d.hn;g.gf=d.gf;g.ud=0;for(b in d.ef)d.ef.hasOwnProperty(b)&&(e=this.c.qa[parseInt(b,10)].wa(),f=d.ef[b],e.Aa=f.$t,Ca(e.D,f.bj),e=f,e.bj.length=0,q.push(e));d.hn.dN();this.c.$v(d.jb);d.jw=!0}b=a=0;for(c=this.tf.length;aa.od||b.top>a.nd)},k.Vz=function(){this.Jb();var a=this.Yc,b=this.c.lb;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},k.VG=function(a,b,c){var d=this.wa(), e=d.qe();if(!e.length)return!1;var f=e[0],g=f,h=Sa(f.x,f.y,b,c),m,l,k;m=1;for(l=e.length;mh)h=k,g=f;d.tm(g);return!0},m.ur=function(a){this.x!==a&&(this.x=a,this.Ea())},m.Cv=function(a){this.y!==a&&(this.y=a,this.Ea())},m.wv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ea()},m.HH=function(a,b){var c=a.RK(this);if(c){var d;c.Cf?(d=c.Cf(b,!0),c=c.Cf(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Ea()}}, m.vO=function(a){0!==a&&(this.x+=Math.cos(this.K)*a,this.y+=Math.sin(this.K)*a,this.Ea())},m.uO=function(a,b){0!==b&&(this.x+=Math.cos(u(a))*b,this.y+=Math.sin(u(a))*b,this.Ea())},q.So=function(a){a.V(this.x)},q.To=function(a){a.V(this.y)},q.$a=function(a){a.V(this.c.Rh(this))});f&&(k.gO=function(a,b){return dc(this.width,a,b)},k.fO=function(a,b){return dc(this.height,a,b)},m.OA=function(a){this.width!==a&&(this.width=a,this.Ea())},m.xH=function(a){this.height!==a&&(this.height=a,this.Ea())},m.Po= function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ea()},q.Ar=function(a){a.V(this.width)},q.Eo=function(a){a.V(this.height)},q.XE=function(a){this.Jb();a.V(this.Yc.left)},q.dO=function(a){this.Jb();a.V(this.Yc.top)},q.YE=function(a){this.Jb();a.V(this.Yc.right)},q.cO=function(a){this.Jb();a.V(this.Yc.bottom)});g&&(k.QE=function(a,b){return Oa(this.K,u(b))<=u(a)},k.VF=function(a){return Qa(this.K,u(a))},k.UF=function(a,b){var c=Ma(a),d=Ma(b),e=Ja(this.K);return Qa(d, c)?Qa(e,c)&&!Qa(e,d):!(!Qa(e,c)&&Qa(e,d))},m.Mo=function(a){a=u(Ia(a));isNaN(a)||this.K===a||(this.K=a,this.Ea())},m.JO=function(a){0===a||isNaN(a)||(this.K+=u(a),this.K=Ja(this.K),this.Ea())},m.KO=function(a){0===a||isNaN(a)||(this.K-=u(a),this.K=Ja(this.K),this.Ea())},m.LO=function(a,b){var c=Pa(this.K,u(b),u(a));isNaN(c)||this.K===c||(this.K=c,this.Ea())},m.MO=function(a,b,c){a=Pa(this.K,Math.atan2(c-this.y,b-this.x),u(a));isNaN(a)||this.K===a||(this.K=a,this.Ea())},m.WO=function(a,b){var c=Math.atan2(b- this.y,a-this.x);isNaN(c)||this.K===c||(this.K=c,this.Ea())},q.PE=function(a){a.V(La(this.K))});d||(k.Iu=function(a,b,c){return dc(this.ed[a],b,c)},k.Sz=function(a){return this.ed[a]},k.AO=function(a,b){var c=this.wa(),d=c.qe();if(!d.length)return!1;var e=d[0],f=e,g=e.ed[b],h,m,l;h=1;for(m=d.length;hg)g=l,f=e;c.tm(f);return!0},k.pv=function(a){var b,c,d,e,f;if(this.c.ln().Rs){f=this.wa();if(f.Aa)for(f.Aa=!1,f.D.length=0,f.Cb.length=0,d=this.D,b=0,c= d.length;ba?a=0:1e.W.index||d.W.index===e.W.index&&d.Sh()>e.Sh())e=d}else if(d.W.indexc)){var d=1===a;this.Zj[c]!==d&&(this.Zj[c]=d,this.Kj(),this.c.Wa=!0)}}},m.QO=function(a,b,c){if(this.c.ha){var d=this.type.Gw(a);0>d||(a=this.type.ab[d],d=this.Pc[d],b=Math.floor(b),0>b||b>=d.length||(1===this.c.ha.VK(a.ue,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.ea&&(this.c.Wa=!0))))}})};Jb=function(){this.Xv=this.Vv= !0;this.type.Fr=!0;this.c.Wa=!0;var a,b,d=this.Wv;a=0;for(b=d.length;ad;case 5:return a>=d;default:return!1}}})();var sc={};function vc(a){this.c=a} (function(){function a(){return h.length?h.pop():[]}function c(a){var b,d;b=0;for(d=a.length;ba||a>this.Zb-1||isNaN(b)||0>b||b>this.zc-1||isNaN(c)||0>c||c>this.Jc-1?0:this.Re[a][b][c]};g.set= function(a,b,c,d){a=Math.floor(a);b=Math.floor(b);c=Math.floor(c);isNaN(a)||0>a||a>this.Zb-1||isNaN(b)||0>b||b>this.zc-1||isNaN(c)||0>c||c>this.Jc-1||(this.Re[a][b][c]=d)};g.YB=function(){return JSON.stringify({c2array:!0,size:[this.Zb,this.zc,this.Jc],data:this.Re})};g.kc=function(){return{size:[this.Zb,this.zc,this.Jc],data:this.Re}};g.Bc=function(a){var b=a.size;this.Zb=b[0];this.zc=b[1];this.Jc=b[2];this.Re=a.data};g.Lk=function(b,c,d){0>b&&(b=0);0>c&&(c=0);0>d&&(d=0);if(this.Zb!==b||this.zc!== c||this.Jc!==d){this.Zb=b;this.zc=c;this.Jc=d;var e,f,g=this.Re;g.length=b;for(b=0;ba))switch(b){case 0:if(a>=this.Zb)break;c(f[a]);f.splice(a,1);this.Zb--;break;case 1:if(a>=this.zc)break;for(;d=this.Jc)break;for(;da&&(a=0);1a&&(a=0);1a&&(a=.01);this.Nt.gain.value=a;this.Mt.gain.value=Math.pow(1/a,.6)*b};w.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.ks[32768+f]=e,this.ks[32768-f-1]=-e};w.prototype.pg=function(a){this.Ya.disconnect();this.Ya.connect(a);this.Qa.disconnect(); this.Qa.connect(a)};w.prototype.remove=function(){this.Eb.disconnect();this.Nt.disconnect();this.Gu.disconnect();this.Mt.disconnect();this.Ya.disconnect();this.Qa.disconnect()};w.prototype.Tf=function(){return this.Eb};s.prototype.pg=function(a){this.Ib.disconnect();this.Ib.connect(a)};s.prototype.remove=function(){this.Ib.disconnect()};s.prototype.Tf=function(){return this.Ib};O.prototype.sc=function(){this.Ib.getFloatFrequencyData(this.HK);this.Ib.getByteTimeDomainData(this.bE);for(var a=this.Ib.fftSize, b=0,d=this.lq=0,e=0;be&&(e=-e),this.lqthis.Pk.length||this.Pk.shift(),this.Pk.push(a),this.Zs=this.Ua.x,this.$s=this.Ua.y)};L.prototype.eC=function(){if(!this.Pk.length)return 0;var a,b,c=0;a=0;for(b=this.Pk.length;athis.buffer.Tb.duration}return this.Z.ended;case 2:return this.qy; case 3:!0}return!0};B.prototype.sJ=function(){return this.Ph||this.lc?!0:this.Cl()};B.prototype.fu=function(a){1===N&&(!this.hi&&a?this.yd&&(this.gd||(this.gd=D.createPanner(),this.gd.panningModel="number"===typeof this.gd.panningModel?gb:["equalpower","HRTF","soundfield"][gb],this.gd.distanceModel="number"===typeof this.gd.distanceModel?hb:["linear","inverse","exponential"][hb],this.gd.refDistance=$e,this.gd.maxDistance=af,this.gd.rolloffFactor=bf),this.yd.disconnect(),this.yd.connect(this.gd),this.gd.connect(b(this.tag)), this.hi=!0):this.hi&&!a&&this.yd&&(this.gd.disconnect(),this.yd.disconnect(),this.yd.connect(b(this.tag)),this.hi=!1))};B.prototype.My=function(a,b,c,d,e,f){this.hi&&1===N&&(this.gd.setPosition(a,b,0),this.gd.setOrientation(Math.cos(u(c)),Math.sin(u(c)),0),this.gd.coneInnerAngle=d,this.gd.coneOuterAngle=e,this.gd.coneOuterGain=f,this.zD=a,this.AD=b,this.vD=c,this.wD=d,this.xD=e,this.yD=f)};B.prototype.uq=function(a){this.hi&&1===N&&(this.fd||(this.fd=new L),this.fd.uq(a))};B.prototype.sc=function(a){if(this.hi&& 1===N&&this.fd&&this.fd.Ns()&&this.gj()){this.fd.sc(a);a=this.fd.Ua;var b=Ra(a.x,a.y,-a.W.$d(),Ka,xa,!0),c=Ra(a.x,a.y,-a.W.$d(),Ka,xa,!1);this.gd.setPosition(b,c,0);b=0;"undefined"!==typeof this.fd.Ua.K&&(b=a.K-a.W.$d(),this.gd.setOrientation(Math.cos(b),Math.sin(b),0));b=Ra(this.fd.Jw(),this.fd.Kw(),-a.W.$d(),0,0,!0);c=Ra(this.fd.Jw(),this.fd.Kw(),-a.W.$d(),0,0,!1);this.gd.setVelocity(b,c,0)}};B.prototype.play=function(a,b,c){var d=this.Z;this.Yh=a;this.volume=b;c=c||0;switch(this.wb){case 0:1!== d.playbackRate&&(d.playbackRate=1);d.volume!==b*Z&&(d.volume=b*Z);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(e){}if(this.eh&&ec&&!I.Uh)fc.push(this);else try{this.Z.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Sn=1;if(1===this.buffer.wb)this.Ph||(this.Z=D.createBufferSource(),this.Z.buffer=this.buffer.Tb,this.Z.connect(this.yd)),this.Z.loop= a,this.yd.gain.value=b*Z,0===c?f(this.Z):g(this.Z,c,this.ok());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);this.yd.gain.value=b*Z;if(d.currentTime!==c)try{d.currentTime=c}catch(m){}this.eh&&ec&&!I.Uh?fc.push(this):d.play()}break;case 2:(!this.Ph&&this.lc||0!==c)&&d.seekTo(c);d.play();this.qy=!1;break;case 3:I.ae?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Jl?I.nf.mb:I.Ai.mb)-c;this.wg=this.lc=this.Ph=!1}; B.prototype.stop=function(){switch(this.wb){case 0:this.Z.paused||this.Z.pause();break;case 1:1===this.buffer.wb?h(this.Z):this.Z.paused||this.Z.pause();break;case 2:this.Z.stop();break;case 3:I.ae&&AppMobi.context.stopSound(this.src)}this.lc=!0;this.wg=!1};B.prototype.pause=function(){if(!(this.Ph||this.lc||this.Cl()||this.wg)){switch(this.wb){case 0:this.Z.paused||this.Z.pause();break;case 1:1===this.buffer.wb?(this.sf=this.Hw(),this.Yh&&(this.sf%=this.ok()),h(this.Z)):this.Z.paused||this.Z.pause(); break;case 2:this.Z.pause();break;case 3:I.ae&&AppMobi.context.stopSound(this.src)}this.wg=!0}};B.prototype.PD=function(){if(!(this.Ph||this.lc||this.Cl())&&this.wg){switch(this.wb){case 0:this.Z.play();break;case 1:1===this.buffer.wb?(this.Z=D.createBufferSource(),this.Z.buffer=this.buffer.Tb,this.Z.connect(this.yd),this.Z.loop=this.Yh,this.yd.gain.value=Z*this.volume*this.Sn,this.startTime=(this.Jl?I.nf.mb:I.Ai.mb)-this.sf,g(this.Z,this.sf,this.ok())):this.Z.play();break;case 2:this.Z.play();break; case 3:I.ae&&AppMobi.context.resumeSound(this.src)}this.wg=!1}};B.prototype.seek=function(a){if(!(this.Ph||this.lc||this.Cl()))switch(this.wb){case 0:try{this.Z.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.wb)this.wg?this.sf=a:(this.pause(),this.sf=a,this.PD());else try{this.Z.currentTime=a}catch(c){}break;case 3:I.ae&&AppMobi.context.seekSound(this.src,a)}};B.prototype.XM=function(a){1===this.wb&&(this.hi?(this.gd.disconnect(),this.gd.connect(a)):(this.yd.disconnect(),this.yd.connect(a)))}; B.prototype.ok=function(){switch(this.wb){case 0:if("undefined"!==typeof this.Z.duration)return this.Z.duration;break;case 1:return this.buffer.Tb.duration;case 2:return this.Z.getDuration();case 3:if(I.ae)return AppMobi.context.getDurationSound(this.src)}return 0};B.prototype.Hw=function(){var a=this.ok(),b=0;switch(this.wb){case 0:"undefined"!==typeof this.Z.currentTime&&(b=this.Z.currentTime);break;case 1:if(1===this.buffer.wb){if(this.wg)return this.sf;b=(this.Jl?I.nf.mb:I.Ai.mb)-this.startTime}else"undefined"!== typeof this.Z.currentTime&&(b=this.Z.currentTime);break;case 3:I.ae&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Yh&&b>a&&(b=a);return b};B.prototype.gj=function(){return!this.wg&&!this.Ph&&!this.lc&&!this.Cl()};B.prototype.sN=function(a){this.volume=a;this.AE()};B.prototype.AE=function(){var a=this.volume*Z;switch(this.wb){case 0:this.Z.volume&&this.Z.volume!==a&&(this.Z.volume=a);break;case 1:this.yd.gain.value=a*this.Sn}};B.prototype.rs=function(a){switch(this.wb){case 0:this.Z.muted!== !!a&&(this.Z.muted=!!a);break;case 1:this.Sn=a?0:1,this.yd.gain.value=Z*this.volume*this.Sn}};B.prototype.WD=function(a){this.un=!!a;this.rs(this.un||this.Ep)};B.prototype.gu=function(a){this.Ep=!!a;this.rs(this.un||this.Ep)};B.prototype.zE=function(){var a=this.playbackRate;this.Jl&&(a*=I.vh);switch(this.wb){case 0:this.Z.playbackRate!==a&&(this.Z.playbackRate=a);break;case 1:1===this.buffer.wb?this.Z.playbackRate.value!==a&&(this.Z.playbackRate.value=a):this.Z.playbackRate!==a&&(this.Z.playbackRate= a)}};B.prototype.rN=function(a){switch(this.wb){case 0:a?this.gj()?(this.Z.pause(),this.Dj=!0):this.Dj=!1:this.Dj&&this.Z.play();break;case 1:a?this.gj()?(1===this.buffer.wb?(this.sf=this.Hw(),this.Yh&&(this.sf%=this.ok()),h(this.Z)):this.Z.pause(),this.Dj=!0):this.Dj=!1:this.Dj&&(1===this.buffer.wb?(this.Z=D.createBufferSource(),this.Z.buffer=this.buffer.Tb,this.Z.connect(this.yd),this.Z.loop=this.Yh,this.yd.gain.value=Z*this.volume*this.Sn,this.startTime=(this.Jl?I.nf.mb:I.Ai.mb)-this.sf,g(this.Z, this.sf,this.ok())):this.Z.play());break;case 2:a?this.gj()?(this.Z.pause(),this.Dj=!0):this.Dj=!1:this.Dj&&this.Z.play()}};Y.la=function(a){this.type=a;I=this.c=a.c;R=this;this.Ye=null;this.Ip=-600;!(this.c.Gp||this.c.zp&&(this.c.Ap||this.c.Ts))||this.c.Gl||this.c.ac||(ec=!0);D=null;"undefined"!==typeof AudioContext?(N=1,D=new AudioContext):"undefined"!==typeof webkitAudioContext&&(N=1,D=new webkitAudioContext);(this.c.Gp&&1===N||ec)&&document.addEventListener("touchstart",function(){var a,b,c;!cf&& D&&(a=D.createBuffer(1,1,22050),b=D.createBufferSource(),b.buffer=a,b.connect(D.destination),f(b),cf=!0);if(ec){if(!X)for(a=0,b=fc.length;a"!==b&&(a.Jt=b,a.Fx=d,a.oz=e),null;h=new B(a,b);H.push(h);return h};var na=[];y.prototype.dv= function(a){return mb(ha,a)};y.prototype.bH=function(){var a,b;a=0;for(b=G.length;a",c,!1)}};K.prototype.Um=function(a){F(a);var b;a=0;for(b=na.length;al?null:h[l]}function d(){}function e(){}function f(){}var g=uc.prototype;g.ua=function(a){this.Da=a;this.c=a.c};g.ua.prototype.ka=function(){};g.la=function(a){this.type=a;this.c=a.c};var h=[],l=-1;g.la.prototype.ka=function(){var a=this;window.c2_callFunction=function(b,d){var e,f,g,h=c();h.name=b.toLowerCase();h.eo=0;if(d)for(h.xb.length=d.length,e=0,f=d.length;e< f;++e)g=d[e],h.xb[e]="number"===typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else h.xb.length=0;a.c.trigger(uc.prototype.C.jr,a,h.name);l--;return h.eo}};d.prototype.jr=function(a){var c=b();return c?mb(a,c.name):!1};d.prototype.lF=function(a,c,d){var e=b();if(!e)return!1;a=ua(a);return 0>a||a>=e.xb.length?!1:dc(e.xb[a],c,d)};g.C=new d;e.prototype.CallFunction=function(a,b){var d=c();d.name=a.toLowerCase();d.eo=0;Ca(d.xb,b);this.c.trigger(uc.prototype.C.jr,this,d.name);l--};e.prototype.JH= function(a){var c=b();c&&(c.eo=a)};g.G=new e;f.prototype.SG=function(a){var c=b();c?a.ja(c.xb.length):a.ja(0)};f.prototype.RG=function(a,c){c=ua(c);var d=b();d?0<=c&&cd?1:cb,g=c.wa();g.Aa=!1;g.D.length=0;var t=null;f&&(t=this.aB(e[b],c),null!=t&&g.D.push(t));1==d&&null!=t&&a.nr(t.uid);return 0f&&(e=f);if("object"!=typeof a)if(0==e)d.unshift(a);else if(e==f)d.push(a);else{var g,f=d.length;d.length+=1;for(g=f;g>e;g--)d[g]=d[g-1];d[e]=a}else if(0==e)d.unshift.apply(d,a);else if(e==f)d.push.apply(d,a);else{g=d.length-1;var f=e,h=a.length;for(d.length+=h;g>=f;g--)d[g+h]=d[g];for(g=0;gthis.ta&&(this.ta=0);this.ta>=this.Yb.frames.length&&(this.ta=this.Yb.frames.length-1);var a=this.Yb.frames[this.ta];this.qb.xq(a.Kt);this.Ue=a.Ue;this.Ve=a.Ve;this.nl=this.Yb.speed;this.ke?this.Ih.reset():this.Ih=new cb;this.Yi=this.Ih.mb;this.fl=!0;this.Li=0;this.el=!0;this.an=this.lB="";this.AB=0;this.Sr=-1;this.type.Ax();var b,c,d,e,f,g,h,a= 0;for(b=this.type.xf.length;athis.ta&&(this.ta=0);this.ta>=this.Yb.frames.length&&(this.ta=this.Yb.frames.length-1);this.nl=a.cas;this.Yi=a.fs;this.Li=a.ar;this.Ih.reset();this.Ih.mb=a.at;this.fl=a.hasOwnProperty("ap")?a.ap:!0;this.el=a.hasOwnProperty("af")?a.af:!0;this.oe=this.Yb.frames[this.ta];this.cn=this.oe.Ba;this.qb.xq(this.oe.Kt);this.Ue=this.oe.Ue;this.Ve=this.oe.Ve};q.Uv=function(a){this.ta=a?0: this.Yb.frames.length-1;this.fl=!1;this.lB=this.Yb.name;this.Ps=!0;this.c.trigger(A.prototype.C.eA,this);this.c.trigger(A.prototype.C.dA,this);this.Ps=!1;this.Li=0};q.nP=function(){return this.Ih.mb};q.sc=function(){this.Ih.add(this.c.Rh(this));this.an.length&&this.LB();0<=this.Sr&&this.MB();var a=this.Ih.mb,b=this.Yb,c=b.frames[this.ta],d=c.duration/this.nl;this.fl&&a>=this.Yi+d&&(this.el?this.ta++:this.ta--,this.Yi+=d,this.ta>=b.frames.length&&(b.um?(this.el=!1,this.ta=b.frames.length-2):b.loop? this.ta=b.Xt:(this.Li++,this.Li>=b.Fy?this.Uv(!1):this.ta=b.Xt)),0>this.ta&&(b.um?(this.ta=1,this.el=!0,b.loop||(this.Li++,this.Li>=b.Fy&&this.Uv(!0))):b.loop?this.ta=b.Xt:(this.Li++,this.Li>=b.Fy?this.Uv(!0):this.ta=b.Xt)),0>this.ta?this.ta=0:this.ta>=b.frames.length&&(this.ta=b.frames.length-1),a>this.Yi+b.frames[this.ta].duration/this.nl&&(this.Yi=a),a=b.frames[this.ta],this.Qm(c,a),this.c.Wa=!0)};q.XB=function(a){var b,c,d;b=0;for(c=this.type.xf.length;bthis.ta&&(this.ta=0),this.ta>=this.Yb.frames.length&&(this.ta=this.Yb.frames.length-1),1===this.AB&&(this.ta=0),this.fl=!0,this.Yi=this.Ih.mb,this.el=!0,this.Qm(a,this.Yb.frames[this.ta]),this.c.Wa=!0)};q.MB=function(){var a=this.Yb.frames[this.ta], b=this.ta;this.ta=ua(this.Sr);0>this.ta&&(this.ta=0);this.ta>=this.Yb.frames.length&&(this.ta=this.Yb.frames.length-1);b!==this.ta&&(this.Qm(a,this.Yb.frames[this.ta]),this.Yi=this.Ih.mb,this.c.Wa=!0);this.Sr=-1};q.Qm=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.Ue=b.Ue;this.Ve=b.Ve;this.qb.xq(b.Kt);this.Ea();this.oe=b;this.cn=b.Ba;c=0;for(d=this.eb.length;ce||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ue)*this.width,d=d[e][2],d=(d-c.Ve)*this.height,c=Math.cos(this.K);e=Math.sin(this.K);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var p=[],t=-2,v=[];c.prototype.yG=function(a){if(!a)return!1;var c=this.c,d=c.ln(),h=d.type;d.ra.collmemory||(d.ra.collmemory={},c.Zo(function(a){return function(c){c= c.uid;var d,e;for(d in a)a.hasOwnProperty(d)&&(e=a[d],e[0]===c||e[1]===c)&&(b(a[d]),delete a[d])}}(d.ra.collmemory)));var d=d.ra.collmemory,m=h.wa(),l=a.wa(),m=m.qe(),k,n,p,q,s,w,L,O=this.c.uh,D=O-1,G=c.bd().$c;for(n=0;nthis.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!== c||this.height!==a)this.width=c,this.height=a,this.Ea()};h.prototype.Xz=function(a,b){var c=new Image,d=this,e=this.oe;c.onload=function(){e.Fa.src===c.src?d.c.ha&&d.oe===e&&(d.cn=e.Ba):(e.Fa=c,e.nm=0,e.pm=0,e.width=c.width,e.height=c.height,e.xm=!1,e.ms="",e.ry=0,d.c.ha&&(e.Ba&&d.c.ha.deleteTexture(e.Ba),e.Ba=d.c.ha.tk(c,!1,d.c.yb),d.oe===e&&(d.cn=e.Ba),d.type.cz()),0===b&&(d.width=c.width,d.height=c.height,d.Ea()));d.c.Wa=!0;d.c.trigger(A.prototype.C.mr,d)};"data:"!==a.substr(0,5)&&(c.crossOrigin= "anonymous");c.src=a};n.G=new h;l.prototype.RE=function(a){a.ja(this.ta)};l.prototype.SE=function(a){a.Xa(this.Yb.name)};l.prototype.QF=function(a,b){a.V(this.Cf(b,!0))};l.prototype.RF=function(a,b){a.V(this.Cf(b,!1))};l.prototype.Vu=function(a){a.V(this.oe.width)};l.prototype.Nz=function(a){a.V(this.oe.height)};n.H=new l})();function C(a){this.c=a} (function(){function a(a,b){return a.length?a.pop():new b}function c(a,b,c){if(c){var d;c=0;for(d=b.length;c=e.length&&e.push(a(n,Object));c=e[c];c.text=d;c.width=b.$x(d);b.Bm=ra(b.Bm,c.width)}function d(){}function e(){}function f(){}var g=C.prototype;g.ka=function(){};g.ua=function(a){this.Da=a;this.c= a.c};var h=g.ua.prototype;h.ka=function(){this.Ga||(this.Fa=new Image,this.c.pz(this.Fa,this.ru),this.Ba=null)};h.Ct=function(){this.Ga||(this.Ba=null)};h.Et=function(){if(!this.Ga&&this.D.length){this.Ba||(this.Ba=this.c.ha.tk(this.Fa,!1,this.c.yb,this.Eq));var a,b;a=0;for(b=this.D.length;a=c*d);l++){var n=l%c,p=Math.floor(l/c),q=h.charAt(l);if(this.c.ha){var y=this.Vr,K=n*f,T=p*g,n=(n+1)*f,p=(p+1)*g;void 0===y[q]&&(y[q]=a(m,ya));y[q].left=K;y[q].top=T;y[q].right=n;y[q].bottom=p}else y=this.Ur,n*=b,p*=e,K=b,T=e,void 0===y[q]&&(y[q]=a(k,Object)),y[q].x=n,y[q].y=p,y[q].qd=K,y[q].hC=T}};var q=[];g.jI= function(a){q.length=0;for(var b="",c,d=0;d=f)c(n,e,!0);else{var g=b.Wg,h=b.fk;if(d.length*(b.Tr*g+h)-h<=f&&-1===d.indexOf("\n")&&(h=b.$x(d),h<=f)){c(n,e,!0);e.push(a(n, Object));e[0].text=d;e[0].width=h;b.Bm=h;b.Am=b.ek*g+b.lineHeight;return}this.vI(b);b.Am=e.length*(b.ek*g+b.lineHeight)}}else c(n,e,!0)};g.vI=function(a){var c=a.XN,d=a.text,e=a.Vl,f=a.width;c&&(this.jI(d),d=q);var g="",h,m,k,p=0,E=!1;for(k=0;kf&&(""===h?(b(a,p,g),g="",E=!0):(b(a,p,h),g=d[k]),p++,c||" "!==g||(g="")));g.replace(/\s\s*$/,"").length&&(b(a,p,g),p++);for(k=p;kthis.width+1E-5)break;void 0!==H&&(ha=R,ga=I,0===this.K&&(ha=Math.round(ha),ga=Math.round(ga)),a.drawImage(this.Fa,H.x,H.y,H.qd,H.hC,ha,ga,H.qd*m,H.hC*m));R+=q*m+n;if(b+R>f)break}}I+=l;if(I+l+k>this.height||c+I>g)break}}a.restore()}};var p=new za;h.tg=function(a){a.Kf(this.Ba);a.wm(this.opacity);if(this.text&&(this.By(),!(this.heightthis.width+1E-5)break;if(void 0!==ba){var U=this.Tr*n, X=this.ek*n;G=D;H=k;0===m&&(G=Math.round(G),H=Math.round(H));p.tc=G;p.uc=H;p.Td=G+U;p.Ud=H;p.Jd=G;p.Kd=H+X;p.Ld=G+U;p.Md=H+X;0!==m&&(G=p,H=ga,U=N,X=void 0,X=G.tc*H-G.uc*U,G.uc=G.uc*H+G.tc*U,G.tc=X,X=G.Td*H-G.Ud*U,G.Ud=G.Ud*H+G.Td*U,G.Td=X,X=G.Jd*H-G.Kd*U,G.Kd=G.Kd*H+G.Jd*U,G.Jd=X,X=G.Ld*H-G.Md*U,G.Md=G.Md*H+G.Ld*U,G.Ld=X);p.offset(c,b);a.li(p.tc,p.uc,p.Td,p.Ud,p.Ld,p.Md,p.Jd,p.Kd,ba)}D+=ha*n+Y;if(c+D>g)break}}k+=q;if(k+q+T>this.height||b+k>h)break}}};d.prototype.nF=function(a,b){return b?this.text== a:mb(this.text,a)};g.C=new d;e.prototype.KA=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Gj=!0,this.c.Wa=!0)};e.prototype.yv=function(a){a!==this.Wg&&(this.Wg=a,this.Gj=!0,this.c.Wa=!0)};e.prototype.rH=function(a){a!==this.aF&&(this.fk=a,this.Gj=!0,this.c.Wa=!0)};h.qH=function(a,b){var c=parseInt(b,10);this.gk[a]!==c&&(this.gk[a]=c,this.Gj=!0,this.c.Wa=!0)};e.prototype.sH=function(a,b){if(""!==a)for(var c=0;ck&&(k+=this.Fa.width);0>m&&(m+=this.Fa.height);a.translate(b,c);a.rotate(this.K);a.translate(k,m);a.fillRect(d- k,e-m,this.width,this.height);a.restore()};e.tg=function(a){a.Kf(this.Ba);a.wm(this.opacity);var b=this.pq;b.right=this.width/this.Fa.width;b.bottom=this.height/this.Fa.height;var c=this.nc;if(this.c.ji){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;a.li(c.tc+d,c.uc+e,c.Td+d,c.Ud+e,c.Ld+d,c.Md+e,c.Jd+d,c.Kd+e,b)}else a.li(c.tc,c.uc,c.Td,c.Ud,c.Ld,c.Md,c.Jd,c.Kd,b)};a.prototype.mr=function(){return!0};d.C=new a;c.prototype.Xz=function(a){var b=new Image,c=this;b.onload=function(){c.Fa= b;c.c.ha?(c.Os&&c.Ba&&c.c.ha.deleteTexture(c.Ba),c.Ba=c.c.ha.tk(b,!0,c.c.yb)):c.pattern=c.c.Ub.createPattern(b,"repeat");c.Os=!0;c.c.Wa=!0;c.c.trigger(Jc.prototype.C.mr,c)};"data:"!==a.substr(0,5)&&(b.crossOrigin="anonymous");b.src=a};d.G=new c;b.prototype.Vu=function(a){a.V(this.Fa.width)};b.prototype.Nz=function(a){a.V(this.Fa.height)};d.H=new b})();function Kc(a){this.c=a} (function(){function a(a){n=a.x;k=a.y;m=a.z}function c(a){q=a.x;p=a.y;t=a.z}function b(a,b,c,e){var f;f=v.length?v.pop():new d;f.init(a,b,c,e);return f}function d(){this.Aq=this.id=this.Tl=this.Sl=this.y=this.x=this.ou=this.nu=this.tx=this.time=this.Uy=0;this.Fq=this.Bu=!1}function e(){}function f(){}var g=Kc.prototype;g.ua=function(a){this.Da=a;this.c=a.c};g.ua.prototype.ka=function(){};g.la=function(a){this.type=a;this.c=a.c;this.touches=[];this.by=!1};var h=g.la.prototype,l={left:0,top:0};h.kp= function(a){var b,c;b=0;for(c=this.touches.length;bSa(this.nu,this.ou,this.x,this.y)&&(this.Bu=!0,a.wi=this.Aq,a.ko=this.id,a.mn=b,a.c.trigger(Kc.prototype.C.DG,a),a.Ri=this.x,a.Si=this.y,a.c.trigger(Kc.prototype.C.EG,a),a.mn=0)};var w=-1E3,s=-1E3,O=-1E4;d.prototype.fD=function(a,b){if(!this.Bu){var c=Ya();333>=c-this.Uy&&!this.Fq&&15>Sa(this.nu,this.ou,this.x,this.y)&&(a.wi=this.Aq,a.ko=this.id,a.mn=b,666>=c-O&&25>Sa(w,s,this.x,this.y)?(a.c.trigger(Kc.prototype.C.AG,a),a.Ri=this.x,a.Si=this.y,a.c.trigger(Kc.prototype.C.BG, a),s=w=-1E3,O=-1E4):(a.c.trigger(Kc.prototype.C.PG,a),a.Ri=this.x,a.Si=this.y,a.c.trigger(Kc.prototype.C.QG,a),w=this.x,s=this.y,O=c),a.mn=0)}};h.ka=function(){this.CL=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.mn=this.ko=this.wi=this.Si=this.Ri=this.dB=this.cB=this.bB=this.aJ=this.$I=this.ZI=this.kq=this.jq=this.iq=0;this.ON=0!==this.T[0];var b=0c-b.time|| b.update(c,a.pageX-d.left,a.pageY-d.top)}}};h.qD=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.c.ac?l:jQuery(this.c.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Ya();this.wi=this.touches.length;this.ko=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.wi));this.c.Uh=!0;this.c.trigger(Kc.prototype.C.mA,this);this.c.trigger(Kc.prototype.C.ov,this);this.Ri=d;this.Si=c;this.c.trigger(Kc.prototype.C.nv,this); this.c.Uh=!1}};h.Dt=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.kp(a.pointerId);this.wi=0<=c?this.touches[c].Aq:-1;this.ko=0<=c?this.touches[c].id:-1;this.c.Uh=!0;this.c.trigger(Kc.prototype.C.lA,this);this.c.trigger(Kc.prototype.C.lv,this);0<=c&&(b||this.touches[c].fD(this,c),100>v.length&&v.push(this.touches[c]),this.touches.splice(c,1));this.c.Uh=!1}};h.sD=function(a){a.preventDefault&&a.preventDefault(); var b=Ya(),c,d,e,f;c=0;for(d=a.changedTouches.length;cb-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};h.tD=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.c.ac?l:jQuery(this.c.canvas).offset();Ya();this.c.Uh=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;dv.length&&v.push(this.touches[e]),this.touches.splice(e,1));this.c.Uh=!1};h.iP=function(){return this.c.rn&&0===this.iq&&0!==m?90*m:this.c.mf&&0===this.iq&&0!==t?90*t:this.iq};h.jP=function(){return this.c.rn&&0===this.jq&&0!==k?-90*k:this.c.mf&&0===this.jq&&0!==p?90*p:this.jq};h.mP=function(){return this.c.rn&&0===this.kq&&0!==n?90*n:this.c.mf&&0===this.kq&&0!==q?90*q:this.kq};h.DM=function(a){a.preventDefault&&this.c.Nw&& !this.c.ej&&a.preventDefault();this.tD({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.by=!0};h.EM=function(a){this.by&&this.sD({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};h.FM=function(a){a.preventDefault&&this.c.Nw&&!this.c.ej&&a.preventDefault();this.c.Nw=!0;this.ky({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.by=!1};h.jo=function(){var a,b,c,d=Ya();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.V(0);else{var d,e, f,g,m;ja(b)?(d=this.c.$i(0),e=d.scale,f=d.Ah,g=d.Dg,m=d.K,d.scale=1,d.Ah=1,d.Dg=1,d.K=0,a.V(d.Se(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Ah=f,d.Dg=g,d.K=m):(d=ka(b)?this.c.$i(b):this.c.rp(b))?a.V(d.Se(this.touches[c].x,this.touches[c].y,!0)):a.V(0)}};f.prototype.To=function(a,b){var c=this.mn;if(0>c||c>=this.touches.length)a.V(0);else{var d,e,f,g,m;ja(b)?(d=this.c.$i(0),e=d.scale,f=d.Ah,g=d.Eg,m=d.K,d.scale=1,d.Ah=1,d.Eg=1,d.K=0,a.V(d.Se(this.touches[c].x,this.touches[c].y,!1)),d.scale= e,d.Ah=f,d.Eg=g,d.K=m):(d=ka(b)?this.c.$i(b):this.c.rp(b))?a.V(d.Se(this.touches[c].x,this.touches[c].y,!1)):a.V(0)}};g.H=new f})();function Lc(a){this.c=a} (function(){function a(){}function c(){}function b(){}var d=Lc.prototype;d.ua=function(a){this.Da=a;this.c=a.c};d.ua.prototype.ka=function(){};d.la=function(a){this.type=a;this.c=a.c};var e=d.la.prototype,f="",g="undefined"!==typeof window.is_scirra_arcade;g&&(f="arcade"+window.scirra_arcade_id);e.ka=function(){"undefined"===typeof localStorage&&fa("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&fa("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")}; a.prototype.qG=function(a){return"undefined"===typeof localStorage?!1:null!=localStorage.getItem(f+a)};a.prototype.nA=function(){return!0};d.C=new a;c.prototype.dI=function(a,b){if("undefined"!==typeof localStorage)try{localStorage.setItem(f+a,b)}catch(c){this.c.trigger(Lc.prototype.C.nA,this)}};c.prototype.hF=function(){"undefined"!==typeof localStorage&&(g||localStorage.clear())};c.prototype.Fo=function(a,b){if("undefined"!==typeof localStorage){var c;try{c=JSON.parse(a)}catch(d){return}if(c.c2dictionary){c= c.data;0!==b||g||localStorage.clear();for(var e in c)if(c.hasOwnProperty(e))try{localStorage.setItem(f+e,c[e])}catch(q){this.c.trigger(Lc.prototype.C.nA,this);break}}}};d.G=new c;b.prototype.rG=function(a,b){"undefined"===typeof localStorage?a.Xa(""):a.Xa(localStorage.getItem(f+b)||"")};b.prototype.Pj=function(a){if("undefined"===typeof localStorage)a.Xa("");else{var b={},c,d,e;c=0;for(d=localStorage.length;cb&&(b=0),this.wd=Math.cos(c)*b,this.Oc=Math.sin(c)*b);0!==this.Es&&(this.Oc+=this.Es*a);this.Sl=this.j.x;this.Tl=this.j.y;if(0!==this.wd||0!==this.Oc)if(this.j.x+=this.wd*a,this.j.y+=this.Oc*a,this.Au+=Sa(0,0,this.wd*a,this.Oc*a),this.Ly&&(this.j.K=Na(0,0,this.wd,this.Oc),this.j.Ea(),this.Fe=this.j.K),this.j.Ea(),this.oJ&&(b=this.c.zm(this.j)))this.c.ND(this.j,b),b=Sa(0,0,this.wd,this.Oc),c=this.c.rJ(this.j,this.Sl,this.Tl),this.wd=Math.cos(c)*b,this.Oc=Math.sin(c)* b,this.j.x+=this.wd*a,this.j.y+=this.Oc*a,this.j.Ea(),this.Ly&&(this.Fe=this.j.K=c,this.j.Ea()),this.c.UM(this.j,this.wd/b,this.Oc/b,Math.max(2.5*b*a,30))||this.c.VM(this.j)}};b.C=new function(){};a.prototype.JA=function(a){var b=Na(0,0,this.wd,this.Oc);this.wd=Math.cos(b)*a;this.Oc=Math.sin(b)*a};a.prototype.nH=function(a){a=u(a);var b=Sa(0,0,this.wd,this.Oc);this.wd=Math.cos(a)*b;this.Oc=Math.sin(a)*b};a.prototype.Sm=function(a){this.enabled=1===a};b.G=new a;c.prototype.Ev=function(a){var b=Sa(0, 0,this.wd,this.Oc),b=lb(b);a.V(b)};b.H=new c})();function Oc(a){this.c=a} (function(){function a(){}var c=Oc.prototype;c.ua=function(a){this.behavior=a;this.c=a.c};c.ua.prototype.ka=function(){};c.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c};var b=c.la.prototype;b.ka=function(){var a=1===this.T[0];this.hp=this.T[1];this.Mq=this.T[2];this.vs=this.T[3];this.BJ=this.T[4];this.dg=a?0:3;this.ke?this.Ig.reset():this.Ig=new cb;this.lm=this.j.opacity?this.j.opacity:1;a&&(0===this.hp?(this.dg=1,0===this.Mq&&(this.dg=2)):(this.j.opacity=0,this.c.Wa= !0))};b.kc=function(){return{fit:this.hp,wt:this.Mq,fot:this.vs,s:this.dg,st:this.Ig.mb,mo:this.lm}};b.Bc=function(a){this.hp=a.fit;this.Mq=a.wt;this.vs=a.fot;this.dg=a.s;this.Ig.reset();this.Ig.mb=a.st;this.lm=a.mo};b.sc=function(){this.Ig.add(this.c.Rh(this.j));0===this.dg&&(this.j.opacity=this.Ig.mb/this.hp*this.lm,this.c.Wa=!0,this.j.opacity>=this.lm&&(this.j.opacity=this.lm,this.dg=1,this.Ig.reset()));1===this.dg&&this.Ig.mb>=this.Mq&&(this.dg=2,this.Ig.reset());2===this.dg&&0!==this.vs&&(this.j.opacity= this.lm-this.Ig.mb/this.vs*this.lm,this.c.Wa=!0,0>this.j.opacity&&(this.j.opacity=0,this.dg=3,this.Ig.reset(),this.c.trigger(Oc.prototype.C.CG,this.j),1===this.BJ&&this.c.Ch(this.j)))};b.fP=function(){this.dg=0;this.Ig.reset();0===this.hp?(this.dg=1,0===this.Mq&&(this.dg=2)):(this.j.opacity=0,this.c.Wa=!0)};a.prototype.CG=function(){return!0};c.C=new a;c.G=new function(){}})();function Pc(a,c){for(var b in c.prototype)c.prototype.hasOwnProperty(b)&&(a.prototype[b]=c.prototype[b])} if(navigator.isCocoonJS&&"undefined"!==typeof window.cr_cjs_accelerated_physics)fa("Using CocoonJS native physics"),window.ext&&"undefined"!==typeof window.ext.IDTK_SRV_BOX2D?function(){function a(a,b,d,e){this.type=c.dn;this.gc=new k;this.hc=new k;this.xh=null;void 0!==a&&(this.R=a);void 0!==b&&(this.S=b);void 0!==d&&this.gc.M(d);void 0!==e&&this.hc.M(e);this.Qn=this.dD=this.iz=this.Gx=this.ni=0;this.gn=this.rl=!1}function c(a){this.R=a.R;this.S=a.S;this.xh=a.xh;this.type=a.type;this.next=null}function b(a, b){this.nt=[];this.rc=[];this.dm=[];this.mj=null;this.eM=[];this.jc=window.ext.IDTK_SRV_BOX2D.makeCall("createWorld",a.x,a.y,b)}function d(){}function e(a,b,c){this.Dc=a;this.qc=b;this.lM=c}function f(a,b){var c=a.xh;a.xh=null;this.La=b;this.I=new l(a.position,n.Lm(a.K));this.Up=[];this.kj=a.ea;a.type===f.yf&&(a.Yg=0);this.Cc=window.ext.IDTK_SRV_BOX2D.makeCall("createBody",b.jc,a);a.xh=c}function g(a,b,c,d){this.Sp=a;this.Lx=c;this.sj={};this.sj.$e=k.B(0,0);this.qt=!1;this.ot=d.Yg;this.Nx=d.Qh;this.Ux= d.oi;this.qt=d.$w}function h(){}function l(a,b){this.position=k.B(0,0);this.u=new n;void 0===a&&(a=null);void 0===b&&(b=null);a&&(this.position.M(a),this.u.Qg(b))}function n(){this.k=k.B(0,0);this.n=k.B(0,0);this.Uj()}function k(a,b){void 0===a&&(a=0);void 0===b&&(b=0);this.x=a;this.y=b}J=k;k.Ji=[];k.B=function(a,b){if(0J.Ji.length&&J.Ji.push(a)};k.prototype.za=function(){this.y=this.x=0};k.prototype.Set=function(a, b){void 0===a&&(a=0);void 0===b&&(b=0);this.x=a;this.y=b};k.prototype.M=function(a){this.x=a.x;this.y=a.y};k.tO=function(a,b){void 0===a&&(a=0);void 0===b&&(b=0);return k.B(a,b)};k.prototype.vc=function(){return k.B(this.x,this.y)};k.prototype.Di=function(a){this.x+=a.x;this.y+=a.y};k.prototype.Fv=function(a){this.x-=a.x;this.y-=a.y};k.prototype.Oe=function(a){void 0===a&&(a=0);this.x*=a;this.y*=a};k.prototype.Fh=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};k.prototype.gr=function(){return this.x* this.x+this.y*this.y};k.prototype.Pe=function(){var a=Math.sqrt(this.x*this.x+this.y*this.y);if(ab?a:b};h.Zz=function(a,b){return k.B(h.Yz(a.x,b.x),h.Yz(a.y,b.y))};h.mc=function(a,b,c){void 0===a&&(a=0);void 0===b&&(b=0);void 0===c&&(c=0);return ac?c:a};h.dF=function(a,b,c){return h.Zz(b,h.aA(a,c))};h.ZO=function(a,b){var c=a[0];a[0]=b[0];b[0]=c};h.FO=function(){return 2*Math.random()-1};h.GO=function(a,b){void 0===a&&(a=0);void 0===b&&(b=0);var c=Math.random();return(b-a)*c+a};h.wO=function(a){void 0===a&&(a=0);a|=a>>1&2147483647;a|=a>>2&1073741823;a|=a>>4&268435455; a|=a>>8&16777215;return(a|a>>16&65535)+1};h.pO=function(a){void 0===a&&(a=0);return 0b?b:a};P.dF=function(a,c,b){return J.B(P.mc(a.x,c.x,b.x),P.mc(a.y,c.y,b.y))};var Qc=function(){this.k=J.B(0,0);this.n=J.B(0,0);this.Uj()};Qc.Lm=function(a){var c=new Qc;c.Set(a);return c};Qc.Eh=function(a,c){var b=new Qc;b.Bv(a,c);return b};r=Qc.prototype;r.Set= function(a){var c=Math.cos(a);a=Math.sin(a);this.k.Set(c,a);this.n.Set(-a,c)};r.Bv=function(a,c){this.k.M(a);this.n.M(c)};r.vc=function(){var a=new Qc;a.Qg(this);return a};r.Qg=function(a){this.k.M(a.k);this.n.M(a.n)};r.Oq=function(a){this.k.Di(a.k);this.n.Di(a.n)};r.Uj=function(){this.k.Set(1,0);this.n.Set(0,1)};r.za=function(){this.k.Set(0,0);this.n.Set(0,0)};r.Me=function(){return Math.atan2(this.k.y,this.k.x)};r.Su=function(a){var c=this.k.x*this.n.y-this.n.x*this.k.y;0!==c&&(c=1/c);a.k.x=c*this.n.y; a.n.x=-c*this.n.x;a.k.y=-c*this.k.y;a.n.y=c*this.k.x;return a};r.Xj=function(a,c,b){var d=this.k.x*this.n.y-this.n.x*this.k.y;0!==d&&(d=1/d);a.x=d*(this.n.y*c-this.n.x*b);a.y=d*(this.k.x*b-this.k.y*c);return a};r.Ci=function(){this.k.Ci();this.n.Ci()};var id=function(a,c,b){this.k=new hd(0,0,0);this.n=new hd(0,0,0);this.Pa=new hd(0,0,0);a&&this.k.M(a);c&&this.n.M(c);b&&this.Pa.M(b)};r=id.prototype;r.vc=function(){return new id(this.k,this.n,this.Pa)};r.Qg=function(a){this.k.M(a.k);this.n.M(a.n);this.Pa.M(a.Pa)}; r.Oq=function(a){this.k.x+=a.k.x;this.k.y+=a.k.y;this.k.z+=a.k.z;this.n.x+=a.n.x;this.n.y+=a.n.y;this.n.z+=a.n.z;this.Pa.x+=a.Pa.x;this.Pa.y+=a.Pa.y;this.Pa.z+=a.Pa.z};r.Uj=function(){this.k.Set(1,0,0);this.n.Set(0,1,0);this.Pa.Set(0,0,1)};r.za=function(){this.k.Set(0,0,0);this.n.Set(0,0,0);this.Pa.Set(0,0,0)};r.Tm=function(a,c,b){var d=this.k.x,e=this.n.x,f=this.k.y,g=this.n.y,h=d*g-e*f;0!=h&&(h=1/h);a.x=h*(g*c-e*b);a.y=h*(d*b-f*c);return a};r.Qo=function(a,c,b,d){var e=this.k.x,f=this.k.y,g=this.k.z, h=this.n.x,l=this.n.y,n=this.n.z,k=this.Pa.x,m=this.Pa.y,q=this.Pa.z,p=e*(l*q-n*m)+f*(n*k-h*q)+g*(h*m-l*k);0!=p&&(p=1/p);a.x=p*(c*(l*q-n*m)+b*(n*k-h*q)+d*(h*m-l*k));a.y=p*(e*(b*q-d*m)+f*(d*k-c*q)+g*(c*m-b*k));a.z=p*(e*(l*d-n*b)+f*(n*c-h*d)+g*(h*b-l*c));return a};var jd=function(){this.U=J.B(0,0);this.Yd=J.B(0,0);this.F=J.B(0,0)};jd.prototype.Set=function(a){this.U.M(a.U);this.Yd.M(a.Yd);this.F.M(a.F);this.kg=a.kg;this.P=a.P;this.Le=a.Le};jd.prototype.vc=function(){var a=new jd;a.U.M(this.U);a.Yd.M(this.Yd); a.F.M(this.F);a.kg=this.kg;a.P=this.P;a.Le=this.Le;return a};jd.prototype.vf=function(a,c){void 0===c&&(c=0);a.position.x=(1-c)*this.Yd.x+c*this.F.x;a.position.y=(1-c)*this.Yd.y+c*this.F.y;a.u.Set((1-c)*this.kg+c*this.P);var b=a.u;a.position.x-=b.k.x*this.U.x+b.n.x*this.U.y;a.position.y-=b.k.y*this.U.x+b.n.y*this.U.y};jd.prototype.Oj=function(a){void 0===a&&(a=0);if(this.LeNumber.MIN_VALUE){var c=(a-this.Le)/(1-this.Le);this.Yd.x=(1-c)*this.Yd.x+c*this.F.x;this.Yd.y=(1-c)*this.Yd.y+ c*this.F.y;this.kg=(1-c)*this.kg+c*this.P;this.Le=a}};var Rc=function(a,c){this.position=J.B(0,0);this.u=new Qc;a&&this.position.M(a);c&&this.u.Qg(c)};Rc.prototype.Xc=function(a,c){this.position.M(a);this.u.Qg(c)};Rc.prototype.Uj=function(){this.position.za();this.u.Uj()};Rc.prototype.Set=function(a){this.position.M(a.position);this.u.Qg(a.u)};Rc.prototype.Me=function(){return Math.atan2(this.u.k.y,this.u.k.x)};var J=function(a,c){this.x=a;this.y=c};J.Ji=[];J.B=function(a,c){if(0this.Fb)return d.M(b),Math.PI*this.Mn;c=e*e;e=this.Mn*(Math.asin(e/this.Fb)+Math.PI/ 2)+e*Math.sqrt(this.Mn-c);c=-2/3*Math.pow(this.Mn-c,1.5)/e;d.x=b.x+a.x*c;d.y=b.y+a.y*c;return e};r.tv=function(a){a.O=[this.Ob];a.Ja=1;a.Fb=this.Fb};Xc.Pg="b2CircleShape";var ld=function(a,c){this.Fb=.005;this.Ka=a;this.kb=c;this.cm=J.B(this.kb.x-this.Ka.x,this.kb.y-this.Ka.y);this.Ox=this.cm.Pe();this.Sa=J.B(this.cm.y,-this.cm.x);J.B(-.04*(this.Sa.x-this.cm.x)+this.Ka.x,-.04*(this.Sa.y-this.cm.y)+this.Ka.y);J.B(-.04*(this.Sa.x+this.cm.x)+this.kb.x,-.04*(this.Sa.y+this.cm.y)+this.kb.y);J.B(-this.Sa.x, -this.Sa.y)};Pc(ld,kd);ld.prototype.Yk=function(){return"b2EdgeShape"};ld.prototype.Gm=function(a,c){var b=c.u,d=c.position.x+(b.k.x*this.Ka.x+b.n.x*this.Ka.y),e=c.position.y+(b.k.y*this.Ka.x+b.n.y*this.Ka.y),f=c.position.x+(b.k.x*this.kb.x+b.n.x*this.kb.y),b=c.position.y+(b.k.y*this.kb.x+b.n.y*this.kb.y);dn?g:n,h=h>d?h:d;a.gb.x=e-this.Fb;a.gb.y=f-this.Fb;a.hb.x=g+this.Fb;a.hb.y=h+this.Fb};r.yo=function(a,c){if(2==this.ub)a.Ni.x=.5*(this.O[0].x+this.O[1].x), a.Ni.y=.5*(this.O[0].y+this.O[1].y),a.gi=0,a.Om=0;else{for(var b=0,d=0,e=0,f=0,g=1/3,h=0;hb&&(c=d,b=e)}return c};r.Do=function(a){for(var c=0,b=this.O[0].x*a.x+this.O[0].y*a.y,d=1;db&&(c=d,b=e)}return this.O[c]};r.Lo=function(a){this.O=[]; this.Ta=[];for(var c=this.O.length;c>8&255;this.Ov=(this.Qe&16711680)>> 16&255;this.ZA=(this.Qe&4278190080)>>24&255};r.Set=function(a){this.Vj(a.Qe)};r.IA=function(a){this.Qv=a;this.Qe=this.Qe&4294967040|this.Qv&255};r.FA=function(a){this.Nv=a;this.Qe=this.Qe&4294902015|this.Nv<<8&65280};r.GA=function(a){this.Ov=a;this.Qe=this.Qe&4278255615|this.Ov<<16&16711680};r.uH=function(a){this.ZA=a;this.Qe=this.Qe&16777215|this.ZA<<24&4278190080};r.vc=function(){var a=new nd;a.Set(this);return a};var od=function(){this.gg=J.B(0,0);this.id=new nd};od.prototype.Set=function(a){this.gg.M(a.gg); this.id.Set(a.id)};var pd=function(){this.gb=J.B(0,0);this.hb=J.B(0,0)},qd=[],rd=function(){if(0this.hb.x-this.gb.x||0>this.hb.y-this.gb.y?!1:this.gb.er()&&this.hb.er()};r.IF=function(){return J.B((this.gb.x+this.hb.x)/2,(this.gb.y+this.hb.y)/2)};r.zo=function(a){var c;return c=(c=(c=(c=this.gb.x<=a.gb.x)&&this.gb.y<=a.gb.y)&&a.hb.x<=this.hb.x)&&a.hb.y<= this.hb.y};r.Ro=function(a){return 0=h&&a[e++].Set(c[0]);0>=b&&a[e++].Set(c[1]);0>h*b&&(b=h/(h-b),d=a[e].gg,d.x=f.x+b*(g.x-f.x),d.y=f.y+b*(g.y-f.y),a[e].id=0h&&(h=n,e=l)}g=td(a,c,e,b,d);f=e-1;0>f&&(f=a.ub-1);h=td(a,c,f,b,d);l=e+1;l>=a.ub&&(l=0);var n=td(a,c,l,b,d),k=0,m=0;if(h>g&&h>n)for(k=f,m=h;;)if(e=k-1,0>e&&(e=a.ub-1),g=td(a,c,e,b,d),g>m)k=e, m=g;else break;else if(n>g)for(k=l,m=n;;)if(e=k+1,e>=a.ub&&(e=0),g=td(a,c,e,b,d),g>m)k=e,m=g;else break;else k=e,m=g;return{sB:k,cu:m}},xd=function(a,c,b){var d=new wd;d.eH(c,b.zj,b.yu,b.Aj,b.zu);for(var e=0;20>e;){for(var f=[],g=0;gc+b&&a.Lh>Number.MIN_VALUE?(a.Lh-=c+b,d=P.fc(a.oh,a.nh),d.Pe(),a.nh.x+=c*d.x,a.nh.y+=c*d.y,a.oh.x-=b*d.x,a.oh.y-=b*d.y,J.Wc(d)):(b=J.B(0,0),b.x=.5*(a.nh.x+a.oh.x),b.y=.5*(a.nh.y+a.oh.y),a.nh.x=a.oh.x=b.x,a.nh.y=a.oh.y= b.y,a.Lh=0,J.Wc(b)))},yd=function(){},zd=function(){this.nh=J.B(0,0);this.oh=J.B(0,0);this.Lh=0},Ad=function(){};Ad.prototype.Set=function(a){a.tv(this)};Ad.prototype.cr=function(a){for(var c=0,b=this.O[0].x*a.x+this.O[0].y*a.y,d=1;db&&(c=d,b=e)}return c};Ad.prototype.Do=function(a){return this.O[this.cr(a)]};Ad.prototype.me=function(a){void 0===a&&(a=0);return this.O[a]};var Bd=function(){this.fi=null};r=Bd.prototype;r.Im=function(a,c){var b= Cd(c);b.Bb.gb.x=a.gb.x-.1;b.Bb.gb.y=a.gb.y-.1;b.Bb.hb.x=a.hb.x+.1;b.Bb.hb.y=a.hb.y+.1;this.Pz(b);return b};r.Jm=function(a){this.sA(a);a.Gd()};r.Yu=function(a,c,b){if(a.Bb.zo(c))return!1;this.sA(a);var d=.1+2*Math.abs(b.x);b=.1+2*Math.abs(b.y);a.Bb.gb.x=c.gb.x-d;a.Bb.gb.y=c.gb.y-b;a.Bb.hb.x=c.hb.x+d;a.Bb.hb.y=c.hb.y+b;this.Pz(a);return!0};r.Bo=function(a){return a.Bb};r.qv=function(a,c){if(null!==this.fi){var b=[];for(b.push(this.fi);0a;a++)this.Ia[a]= new Hd;this.fe=J.B(0,0);this.Ra=J.B(0,0)};Id.prototype.Wd=function(){for(var a=0;2>a;a++)this.Ia[a].Wd();this.fe.za();this.Ra.za();this.Sc=this.ib=0};Id.prototype.Set=function(a){this.Sc=a.Sc;for(var c=0;2>c;c++)this.Ia[c].Set(a.Ia[c]);this.fe.M(a.fe);this.Ra.M(a.Ra);this.ib=a.ib};Id.prototype.vc=function(){var a=new Id;a.Set(this);return a};var Hd=function(){this.Ra=J.B(0,0);this.Ag=new nd;this.Wd()};Hd.prototype.Wd=function(){this.Ra.za();this.km=this.fm=0;this.Ag.Vj(0)};Hd.prototype.Set=function(a){this.Ra.M(a.Ra); this.fm=a.fm;this.km=a.km;this.Ag.Set(a.Ag)};var Jd=function(){this.Ra=J.B(0,0);this.aa=J.B(0,0)};Jd.prototype.Xc=function(a,c,b,d,e){this.Ak=c;this.Bk=d;var f,g,h,l=h=g=0,n=0;d=c=0;var k,m,l=0;1==a.count?(this.ib=Kd,f=this.Ak.me(a.cd[0]),a=this.Bk.me(a.dd[0]),m=f,k=b.u,g=b.position.x+(k.k.x*m.x+k.n.x*m.y),h=b.position.y+(k.k.y*m.x+k.n.y*m.y),m=a,k=e.u,l=e.position.x+(k.k.x*m.x+k.n.x*m.y),n=e.position.y+(k.k.y*m.x+k.n.y*m.y),this.aa.x=l-g,this.aa.y=n-h,this.aa.Pe()):(a.dd[0]==a.dd[1]?(this.ib=Ld, c=this.Ak.me(a.cd[0]),d=this.Ak.me(a.cd[1]),a=this.Bk.me(a.dd[0]),this.Ra.x=.5*(c.x+d.x),this.Ra.y=.5*(c.y+d.y),this.aa=P.Ei(P.fc(d,c),1),this.aa.Pe(),m=this.aa,k=b.u,c=k.k.x*m.x+k.n.x*m.y,d=k.k.y*m.x+k.n.y*m.y,m=this.Ra,k=b.u,g=b.position.x+(k.k.x*m.x+k.n.x*m.y),h=b.position.y+(k.k.y*m.x+k.n.y*m.y),m=a,k=e.u,l=e.position.x+(k.k.x*m.x+k.n.x*m.y),n=e.position.y+(k.k.y*m.x+k.n.y*m.y),l=(l-g)*c+(n-h)*d):a.cd[0]==a.cd[0]?(this.ib=Md,g=this.Bk.me(a.dd[0]),h=this.Bk.me(a.dd[1]),f=this.Ak.me(a.cd[0]),this.Ra.x= .5*(g.x+h.x),this.Ra.y=.5*(g.y+h.y),this.aa=P.Ei(P.fc(h,g),1),this.aa.Pe(),m=this.aa,k=e.u,c=k.k.x*m.x+k.n.x*m.y,d=k.k.y*m.x+k.n.y*m.y,m=this.Ra,k=e.u,l=e.position.x+(k.k.x*m.x+k.n.x*m.y),n=e.position.y+(k.k.y*m.x+k.n.y*m.y),m=f,k=b.u,g=b.position.x+(k.k.x*m.x+k.n.x*m.y),h=b.position.y+(k.k.y*m.x+k.n.y*m.y),l=(g-l)*c+(h-n)*d):(c=this.Ak.me(a.cd[0]),d=this.Ak.me(a.cd[1]),g=this.Bk.me(a.dd[0]),h=this.Bk.me(a.dd[1]),l=P.Mc(b.u,P.fc(d,c)),n=P.Mc(e.u,P.fc(h,g)),e=l.x*l.x+l.y*l.y,b=n.x*n.x+n.y*n.y,f=P.fc(n, l),a=l.x*f.x+l.y*f.y,f=n.x*f.x+n.y*f.y,n=l.x*n.x+l.y*n.y,k=e*b-n*n,l=0,0!=k&&(l=P.mc((n*f-a*b)/k,0,1)),0>(n*l+f)/b&&(l=P.mc((n-a)/e,0,1)),f=J.B(0,0),f.x=c.x+l*(d.x-c.x),f.y=c.y+l*(d.y-c.y),a=J.B(0,0),a.x=g.x+l*(h.x-g.x),a.y=g.y+l*(h.y-g.y),0==l||1==l?(this.ib=Md,this.aa=P.Ei(P.fc(h,g),1),this.aa.Pe(),this.Ra=a):(this.ib=Ld,this.aa=P.Ei(P.fc(d,c),1),this.Ra=f)),0>l&&this.aa.bv())};Jd.prototype.Dh=function(a,c){var b,d,e=0;switch(this.ib){case Kd:b=P.Gi(a.u,this.aa);d=P.Gi(c.u,this.aa.Rj());b=this.Ak.Do(b); d=this.Bk.Do(d);b=P.Id(a,b);d=P.Id(c,d);e=(d.x-b.x)*this.aa.x+(d.y-b.y)*this.aa.y;break;case Ld:e=P.Mc(a.u,this.aa);b=P.Id(a,this.Ra);d=P.Gi(c.u,e.Rj());d=this.Bk.Do(d);d=P.Id(c,d);e=(d.x-b.x)*e.x+(d.y-b.y)*e.y;break;case Md:e=P.Mc(c.u,this.aa),d=P.Id(c,this.Ra),b=P.Gi(a.u,e.Rj()),b=this.Ak.Do(b),b=P.Id(a,b),e=(b.x-d.x)*e.x+(b.y-d.y)*e.y}return e};var Kd=1,Ld=2,Md=4,wd=function(){this.Ka=new Nd;this.kb=new Nd;this.Gf=new Nd;this.O=[this.Ka,this.kb,this.Gf]};r=wd.prototype;r.eH=function(a,c,b,d,e){var f, g;this.Ja=a.count;for(var h=this.O,l=0;l=a?this.Ja=this.Ka.P=1:(c=c.x*b.x+c.y*b.y,0>=c?(this.Ja=this.kb.P=1,this.Ka.Set(this.kb)):(b=1/(c+a),this.Ka.P=c*b,this.kb.P=a*b,this.Ja=2))};r.WH=function(){var a=this.Ka.qd, c=this.kb.qd,b=this.Gf.qd,d=P.fc(c,a),e=P.wc(c,d),f=-P.wc(a,d),g=P.fc(b,a),h=P.wc(b,g),l=-P.wc(a,g),n=P.fc(b,c),k=P.wc(b,n),n=-P.wc(c,n),g=P.Wk(d,g),d=g*P.Wk(c,b),b=g*P.Wk(b,a),a=g*P.Wk(a,c);0>=f&&0>=l?this.Ja=this.Ka.P=1:0=a?(h=1/(e+f),this.Ka.P=e*h,this.kb.P=f*h,this.Ja=2):0=b?(e=1/(h+l),this.Ka.P=h*e,this.Gf.P=l*e,this.Ja=2,this.kb.Set(this.Gf)):0>=e&&0>=n?(this.Ja=this.kb.P=1,this.Ka.Set(this.kb)):0>=h&&0>=k?(this.Ja=this.Gf.P=1,this.Ka.Set(this.Gf)):0=d?(e=1/ (k+n),this.kb.P=k*e,this.Gf.P=n*e,this.Ja=2,this.Ka.Set(this.Gf)):(e=1/(d+b+a),this.Ka.P=d*e,this.kb.P=b*e,this.Gf.P=a*e,this.Ja=3)};var Od=function(){this.cd=[0,0,0];this.dd=[0,0,0]},Nd=function(){};Nd.prototype.Set=function(a){this.we.M(a.we);this.Mg.M(a.Mg);this.qd.M(a.qd);this.P=a.P;this.cd=a.cd;this.dd=a.dd};var Pd=function(){this.zj=new Ad;this.Aj=new Ad;this.iE=new jd;this.jE=new jd},Qd=function(){this.Sa=J.B(0,0);this.Ia=[];for(var a=this.Sc=0;2>a;a++)this.Ia[a]=J.B(0,0)};Qd.prototype.Xc= function(a,c,b,d,e){if(0!=a.Sc){var f=0,g,h,l=0,n=0,k=0,m=0,q=0;g=0;switch(a.ib){case 1:h=c.u;g=a.Ra;f=c.position.x+h.k.x*g.x+h.n.x*g.y;c=c.position.y+h.k.y*g.x+h.n.y*g.y;h=d.u;g=a.Ia[0].Ra;a=d.position.x+h.k.x*g.x+h.n.x*g.y;d=d.position.y+h.k.y*g.x+h.n.y*g.y;g=a-f;h=d-c;l=g*g+h*h;l>gd?(l=Math.sqrt(l),this.Sa.x=g/l,this.Sa.y=h/l):(this.Sa.x=1,this.Sa.y=0);g=c+b*this.Sa.y;d-=e*this.Sa.y;this.Ia[0].x=.5*(f+b*this.Sa.x+(a-e*this.Sa.x));this.Ia[0].y=.5*(g+d);break;case 2:h=c.u;g=a.fe;l=h.k.x*g.x+h.n.x* g.y;n=h.k.y*g.x+h.n.y*g.y;h=c.u;g=a.Ra;k=c.position.x+h.k.x*g.x+h.n.x*g.y;m=c.position.y+h.k.y*g.x+h.n.y*g.y;this.Sa.x=l;this.Sa.y=n;for(f=0;fed&&(b.L=0>b.L?-dd*a.cj:dd*a.cj);b.q.Yd.M(b.q.F);b.q.kg=b.q.P;b.q.F.x+=a.$a*b.A.x;b.q.F.y+=a.$a*b.A.y;b.q.P+=a.$a*b.L;b.yc()}};r.DI=function(a){for(var c=0;cfd||1E-4ed&&(b.L=0>b.L?-dd*a.cj:dd*a.cj);b.q.Yd.M(b.q.F);b.q.kg= b.q.P;b.q.F.x+=a.$a*b.A.x;b.q.F.y+=a.$a*b.A.y;b.q.P+=a.$a*b.L;b.yc()}for(c=0;ce&&(e=(1-e)*g+e)}d.Nn=e}Number.MIN_VALUE=ve.Lh){l=1;break}we.Xc(re,d,te,e,ue);var m=we.Dh(te,ue);if(0>=m){l=1;break}0==n&&(k=m>h?Math.max(h-b,.75*h):Math.max(m-b,.02*h));if(m-k<.5*b){if(0==n){l=1;break}break}var q=l,p=l, t=1;f.vf(te,t);g.vf(ue,t);var v=we.Dh(te,ue);if(v>=k){l=1;break}for(var w=0;;){var s=0,s=w&1?p+(k-m)*(t-p)/(v-m):.5*(p+t);f.vf(te,s);g.vf(ue,s);var O=we.Dh(te,ue);if(Math.abs(O-k)<.025*b){q=s;break}O>k?(p=s,m=O):(t=s,v=O);w++;xe++;if(50==w)break}ye=Math.max(ye,w);if(q<(1+100*Number.MIN_VALUE)*l)break;l=q;n++;ze++;if(1E3==n)break}Ae=Math.max(Ae,n);return l};var pe=new Pd,ne=0,Be=function(a,c){oe.call(this,a,c)};Pc(Be,oe);Be.prototype.Wd=function(a,c){oe.prototype.Wd.call(this,a,c)};Be.prototype.Dh= function(){var a=this.Zf,c=this.Dc.Hd(),b=this.Dc.Ab().I,d=this.qc.Hd(),e=this.qc.Ab().I;a.Sc=0;var f=e.position.x+(e.u.k.x*d.Ob.x+e.u.n.x*d.Ob.y)-(b.position.x+(b.u.k.x*c.Ob.x+b.u.n.x*c.Ob.y)),b=e.position.y+(e.u.k.y*d.Ob.x+e.u.n.y*d.Ob.y)-(b.position.y+(b.u.k.y*c.Ob.x+b.u.n.y*c.Ob.y)),e=c.Fb+d.Fb;f*f+b*b>e*e||(a.ib=1,a.Ra.M(c.Ob),a.fe.za(),a.Sc=1,a.Ia[0].Ra.M(d.Ob),a.Ia[0].Ag.Vj(0))};var De=function(){this.Xh=J.B(0,0);this.Rc=J.B(0,0);this.Je=J.B(0,0);this.vj=new Qc;this.wf=new Qc;this.Vc=[];for(var a= 0;2>a;a++)this.Vc[a]=new Ce},Ce=function(){this.Rc=J.B(0,0);this.Hc=J.B(0,0);this.Ic=J.B(0,0)};Ce.prototype.Wd=function(){this.Rc.Set(0,0);this.Hc.Set(0,0);this.Ic.Set(0,0)};var de=function(){this.kh={};this.oj={};this.vo(Be,Xc.Pg,Xc.Pg);this.vo(Ee,Yc.Pg,Xc.Pg);this.vo(Fe,Yc.Pg,Yc.Pg);this.vo(Ge,"b2EdgeShape",Xc.Pg);this.vo(He,Yc.Pg,"b2EdgeShape")};de.prototype.vo=function(a,c,b){this.oj[c]=this.oj[c]||{};this.oj[c][b]=this.oj[c][b]||[];this.kh[c]=this.kh[c]||{};this.kh[c][b]=new Ie;this.kh[c][b].IB= a;this.kh[c][b].HD=!0;c!=b&&(this.kh[b]=this.kh[b]||{},this.kh[b][c]=new Ie,this.kh[b][c].IB=a,this.kh[b][c].HD=!1)};de.prototype.hg=function(a,c){var b=a.Hd().Yk(),d=c.Hd().Yk(),e=this.kh[b][d],f=e.IB;return null!=f?e.HD?0a;a++)this.Ia[a]=J.B(0,0)};Le.prototype.Xc=function(a){switch(a.type){case 1:this.xI(a);break;case 2:this.yI(a);break;case 4:this.zI(a)}};Le.prototype.xI=function(a){var c=a.R.I.u,b=a.Rc,d=a.R.I.position.x+(c.k.x*b.x+c.n.x*b.y),e=a.R.I.position.y+(c.k.y*b.x+c.n.y*b.y),c=a.S.I.u,b=a.Vc[0].Rc,f=a.S.I.position.x+(c.k.x*b.x+c.n.x*b.y),c=a.S.I.position.y+(c.k.y*b.x+c.n.y*b.y),b=f-d,g=c-e,h=b*b+g*g;h>gd?(h=Math.sqrt(h),this.Sa.x=b/h,this.Sa.y= g/h):(this.Sa.x=1,this.Sa.y=0);this.Ia[0].x=.5*(d+f);this.Ia[0].y=.5*(e+c);this.zt[0]=b*this.Sa.x+g*this.Sa.y-a.Tt};Le.prototype.yI=function(a){this.Sa.x=a.R.I.u.k.x*a.Xh.x+a.R.I.u.n.x*a.Xh.y;this.Sa.y=a.R.I.u.k.y*a.Xh.x+a.R.I.u.n.y*a.Xh.y;for(var c=a.R.I.position.x+(a.R.I.u.k.x*a.Rc.x+a.R.I.u.n.x*a.Rc.y),b=a.R.I.position.y+(a.R.I.u.k.y*a.Rc.x+a.R.I.u.n.y*a.Rc.y),d=0;df?e:f;var p=l.A.x,t=l.A.y,v=n.A.x,w=n.A.y,s=l.L,O=n.L;Me.Xc(k,l.I,g,n.I,h);e=Me.Sa.x;d=Me.Sa.y;f=this.$h[a];f.R=l;f.S=n;f.nM= k;f.Je.x=e;f.Je.y=d;f.Fg=k.Sc;f.Qh=m;f.oi=q;f.Xh.x=k.fe.x;f.Xh.y=k.fe.y;f.Rc.x=k.Ra.x;f.Rc.y=k.Ra.y;f.Tt=g+h;f.type=k.ib;for(g=0;gm&&(h.Kq+=-f.oi*m)}2==f.Fg&&(w=f.Vc[0],v=f.Vc[1],k=l.N,l=l.X,p=n.N,n=n.X,t=w.Hc.x*d-w.Hc.y*e,w=w.Ic.x*d-w.Ic.y*e,s=v.Hc.x*d-v.Hc.y*e,v=v.Ic.x*d-v.Ic.y*e,e=k+p+l*t*t+n*w*w,d=k+p+l*s*s+n*v*v,n=k+p+l*t*s+n*w*v,e*e<100*(e*d-n*n)?(f.wf.k.Set(e,n),f.wf.n.Set(n,d),f.wf.Su(f.vj)):f.Fg=1)}};r.ig=function(a){for(var c=0;ch)break a;n>g&&(g=n,f=l)}n=f+1;n>=c.ub&&(n=0);var l=c.O[f],k=c.O[n];g=(e-l.x)*(k.x-l.x)+(b-l.y)*(k.y-l.y)?(e-l.x)*(e-l.x)+(b-l.y)*(b-l.y)>h*h||(a.Sc=1,a.ib=2,a.fe.x=e-l.x,a.fe.y=b-l.y,a.fe.Pe(),a.Ra.M(l),a.Ia[0].Ra.M(d.Ob), a.Ia[0].Ag.Vj(0)):0>=(e-k.x)*(l.x-k.x)+(b-k.y)*(l.y-k.y)?(e-k.x)*(e-k.x)+(b-k.y)*(b-k.y)>h*h||(a.Sc=1,a.ib=2,a.fe.x=e-k.x,a.fe.y=b-k.y,a.fe.Pe(),a.Ra.M(k),a.Ia[0].Ra.M(d.Ob),a.Ia[0].Ag.Vj(0)):(n=.5*(l.x+k.x),l=.5*(l.y+k.y),g=(e-n)*c.Ta[f].x+(b-l)*c.Ta[f].y,g>h||(a.Sc=1,a.ib=2,a.fe.x=c.Ta[f].x,a.fe.y=c.Ta[f].y,a.fe.Pe(),a.Ra.Set(n,l),a.Ia[0].Ra.M(d.Ob),a.Ia[0].Ag.Vj(0)))}};var He=function(a,c){oe.call(this,a,c)};Pc(He,oe);He.prototype.Wd=function(a,c){oe.prototype.Wd.call(this,a,c)};He.prototype.Dh= function(){this.Dc.Hd();this.qc.Hd()};var Fe=function(a,c){oe.call(this,a,c)};Pc(Fe,oe);Fe.prototype.Wd=function(a,c){oe.prototype.Wd.call(this,a,c)};Fe.prototype.Dh=function(){var a=this.Zf,c=this.Dc.Hd(),b=this.Dc.Ab().I,d=this.qc.Hd(),e=this.qc.Ab().I;a.Sc=0;var f=c.Fb+d.Fb,g=vd(c,b,d,e),h=g.sB;if(!(g.cu>f)){var l=vd(d,e,c,b);if(!(l.cu>f)){var n=c,k=d,m=b,q=e,p=0;a.ib=2;l.cu>.98*g.cu+.001&&(n=d,k=c,m=e,q=b,h=l.sB,a.ib=4,p=1);c=h;b=q;d=Oe;void 0===c&&(c=0);for(var e=m.u.k.x*n.Ta[c].x+m.u.n.x*n.Ta[c].y, g=m.u.k.y*n.Ta[c].x+m.u.n.y*n.Ta[c].y,l=b.u.k.x*e+b.u.k.y*g,g=b.u.n.x*e+b.u.n.y*g,e=l,l=0,t=Number.MAX_VALUE,v=0;v=k.ub&&(e=0);d[0].gg.x=b.position.x+(b.u.k.x*k.O[l].x+b.u.n.x*k.O[l].y);d[0].gg.y=b.position.y+(b.u.k.y*k.O[l].x+b.u.n.y*k.O[l].y);d[0].id.IA(c);d[0].id.FA(l);d[0].id.GA(0);d[1].gg.x=b.position.x+(b.u.k.x*k.O[e].x+b.u.n.x*k.O[e].y);d[1].gg.y=b.position.y+(b.u.k.y*k.O[e].x+b.u.n.y*k.O[e].y);d[1].id.IA(c);d[1].id.FA(e);d[1].id.GA(1); c=n.O[h];h=h+1sd(Xe,Oe,Te,-Se.x*Ve.x-Se.y*Ve.y+f)||2>sd(Ye,Xe,Se,Se.x*We.x+Se.y*We.y+f))){a.fe.M(Qe);a.Ra.M(Re); m=Ue.x*Ve.x+Ue.y*Ve.y;for(n=h=0;2>n;++n)Ue.x*Ye[n].gg.x+Ue.y*Ye[n].gg.y-m<=f&&(c=Ye[n].gg.x-q.position.x,k=Ye[n].gg.y-q.position.y,a.Ia[h].Ra.x=c*q.u.k.x+k*q.u.k.y,a.Ia[h].Ra.y=c*q.u.n.x+k*q.u.n.y,a.Ia[h].Ag.Set(Ye[n].id),a.Ia[h].Ag.uH(p),h++);a.Sc=h}}}};var df=function(){this.Ne="Controller"+Ze++;this.La=null;this.Xd=new Wd};df.prototype.Hi=function(){};df.prototype.Dm=function(a){this.Xd.Dm(a);a.uo(this)};df.prototype.Jo=function(a){this.Xd.Jo(a);a.Ko(this)};df.prototype.Fm=function(){for(var a= this.Xd.Za(Vd);a;a=a.next)this.Jo(a.body)};var Ze=0,ef=function(){df.call(this);this.Je=J.B(0,-1);this.Yg=this.offset=0;this.EE=J.B(0,0);this.PL=2;this.gJ=1;this.PN=!0;this.fC=null};Pc(ef,df);ef.prototype.Hi=function(){this.PN&&(this.fC=this.La.YC.vc());for(var a=this.Xd.Za($d);a;a=a.next){for(var c=a.body,b=J.B(0,0),d=J.B(0,0),e=0,f=0,g=c.Ru().Za();g;g=g.next){var h=J.B(0,0),l=g.Bf.Hd().Uq(this.Je,this.offset,c.vf(),h),e=e+l;b.x+=l*h.x;b.y+=l*h.y;var n=0,n=1,f=f+l*n;d.x+=l*h.x*n;d.y+=l*h.y*n}ethis.Zx&&0Math.abs(b)};var $c=function(){mf.call(this);this.gc=J.B(0,0);this.hc=J.B(0,0);this.type=V.kw;this.length=1;this.ls=this.Ds=0};Pc($c,mf);$c.prototype.Xc=function(a,c,b,d){this.R=a;this.S=c;this.gc.M(this.R.ye(b));this.hc.M(this.S.ye(d));a=d.x-b.x;b=d.y-b.y;this.length=Math.sqrt(a*a+b*b);this.ls=this.Ds=0};$c.prototype.hg=function(){return new nf(this)};var of=function(a){V.call(this, a);this.Wf=J.B(0,0);this.Xf=J.B(0,0);this.Rx=new Qc;this.Vf=J.B(0,0);this.Wf.M(a.gc);this.Xf.M(a.hc);this.Rx.za();this.Rp=0;this.Vf.za();this.lj=0;this.hM=a.pM;this.jM=a.qM};Pc(of,V);of.prototype.ig=function(a){var c,b=0,d=this.ca,e=this.da;c=d.I.u;var f=this.Wf.x-d.q.U.x,g=this.Wf.y-d.q.U.y,b=c.k.x*f+c.n.x*g,g=c.k.y*f+c.n.y*g,f=b;c=e.I.u;var h=this.Xf.x-e.q.U.x,l=this.Xf.y-e.q.U.y,b=c.k.x*h+c.n.x*l,l=c.k.y*h+c.n.y*l,h=b;c=d.N;var b=e.N,n=d.X,k=e.X,m=new Qc;m.k.x=c+b;m.n.x=0;m.k.y=0;m.n.y=c+b;m.k.x+= n*g*g;m.n.x+=-n*f*g;m.k.y+=-n*f*g;m.n.y+=n*f*f;m.k.x+=k*l*l;m.n.x+=-k*h*l;m.k.y+=-k*h*l;m.n.y+=k*h*h;m.Su(this.Rx);this.Rp=n+k;0c*c&&(this.Vf.Pe(),this.Vf.Oe(c));c=P.fc(this.Vf,b);f.x-=n*c.x;f.y-=n*c.y;g-=m*(p*c.y-t*c.x);h.x+=k*c.x;h.y+=k*c.y;l+=q*(v*c.y-w*c.x);d.L=g; e.L=l};of.prototype.Mf=function(){return!0};var pf=function(){mf.call(this);this.gc=J.B(0,0);this.hc=J.B(0,0);this.type=V.UJ;this.qM=this.pM=0};Pc(pf,mf);pf.prototype.Xc=function(a,c,b){this.R=a;this.S=c;this.gc.M(this.R.ye(b));this.hc.M(this.S.ye(b))};pf.prototype.hg=function(){return new of(this)};var rf=function(a){V.call(this,a);this.pj=J.B(0,0);this.qj=J.B(0,0);this.xa=J.B(0,0);this.ya=J.B(0,0);this.pc=new qf;var c=a.xn.ib,b=a.yn.ib;this.Ln=this.jm=this.Kn=this.hm=null;var d=0,e=0;this.$L=a.xn.Ao(); this.ca=a.xn.Qu();c==V.dn?(this.hm=a.xn,this.pj.M(this.hm.xa),this.xa.M(this.hm.ya),d=this.hm.$q()):(this.Kn=a.xn,this.pj.M(this.Kn.xa),this.xa.M(this.Kn.ya),d=this.Kn.Co());this.aM=a.yn.Ao();this.da=a.yn.Qu();b==V.dn?(this.jm=a.yn,this.qj.M(this.jm.xa),this.ya.M(this.jm.ya),e=this.jm.$q()):(this.Ln=a.yn,this.qj.M(this.Ln.xa),this.ya.M(this.Ln.ya),e=this.Ln.Co());this.Gc=a.je;this.In=d+this.Gc*e;this.J=0};Pc(rf,V);rf.prototype.ig=function(a){var c=this.$L,b=this.aM,d=this.ca,e=this.da,f=0,g=0,h=0, l=0,n=h=0,k=0;this.pc.za();this.hm?(this.pc.bl=-1,k+=d.X):(c=c.I.u,g=this.Kn.of,f=c.k.x*g.x+c.n.x*g.y,g=c.k.y*g.x+c.n.y*g.y,c=d.I.u,h=this.xa.x-d.q.U.x,l=this.xa.y-d.q.U.y,n=c.k.x*h+c.n.x*l,l=c.k.y*h+c.n.y*l,h=n*g-l*f,this.pc.gh.Set(-f,-g),this.pc.bl=-h,k+=d.N+d.X*h*h);this.jm?(this.pc.cl=-this.Gc,k+=this.Gc*this.Gc*e.X):(c=b.I.u,g=this.Ln.of,f=c.k.x*g.x+c.n.x*g.y,g=c.k.y*g.x+c.n.y*g.y,c=e.I.u,h=this.ya.x-e.q.U.x,l=this.ya.y-e.q.U.y,n=c.k.x*h+c.n.x*l,l=c.k.y*h+c.n.y*l,h=n*g-l*f,this.pc.hh.Set(-this.Gc* f,-this.Gc*g),this.pc.cl=-this.Gc*h,k+=this.Gc*this.Gc*(e.N+e.X*h*h));this.ba=0Number.MIN_VALUE?1/this.df:0;this.Ca.M(P.Mc(f.u,this.rj));this.Lb=(d+g)*this.Ca.y-(e+h)*this.Ca.x;this.Mb=l*this.Ca.y-n*this.Ca.x;f=this.Ec;g=this.Fc;h=this.Ge;l=this.He;this.va.k.x=f+g+h*this.Lb*this.Lb+l*this.Mb*this.Mb;this.va.k.y=h*this.Lb*this.Gb+l*this.Mb*this.Hb;this.va.n.x=this.va.k.y;this.va.n.y=f+g+h*this.Gb*this.Gb+l*this.Hb*this.Hb;this.jh?(d=this.aa.x*d+this.aa.y* e,.01>Math.abs(this.$f-this.Yf)?this.cb=V.kk:d<=this.Yf?this.cb!=V.Nh&&(this.cb=V.Nh,this.J.y=0):d>=this.$f?this.cb!=V.Zd&&(this.cb=V.Zd,this.J.y=0):(this.cb=V.Te,this.J.y=0)):this.cb=V.Te;0==this.wk&&(this.tb=0);a.Lj?(this.J.x*=a.vd,this.J.y*=a.vd,this.tb*=a.vd,a=this.J.x*this.Ca.x+(this.tb+this.J.y)*this.aa.x,d=this.J.x*this.Ca.y+(this.tb+this.J.y)*this.aa.y,e=this.J.x*this.Lb+(this.tb+this.J.y)*this.Gb,f=this.J.x*this.Mb+(this.tb+this.J.y)*this.Hb,c.A.x-=this.Ec*a,c.A.y-=this.Ec*d,c.L-=this.Ge* e,b.A.x+=this.Fc*a,b.A.y+=this.Fc*d,b.L+=this.He*f):(this.J.za(),this.tb=0)};tf.prototype.Nf=function(a){var c=this.ca,b=this.da,d=c.A,e=c.L,f=b.A,g=b.L,h=0,l=0,n=0,k=0;this.wk&&this.cb!=V.kk&&(k=this.df*(this.Xp-(this.aa.x*(f.x-d.x)+this.aa.y*(f.y-d.y)+this.Hb*g-this.Gb*e)),h=this.tb,l=a.$a*this.Sx,this.tb=P.mc(this.tb+k,-l,l),k=this.tb-h,h=k*this.aa.x,l=k*this.aa.y,n=k*this.Gb,k*=this.Hb,d.x-=this.Ec*h,d.y-=this.Ec*l,e-=this.Ge*n,f.x+=this.Fc*h,f.y+=this.Fc*l,g+=this.He*k);l=this.Ca.x*(f.x-d.x)+ this.Ca.y*(f.y-d.y)+this.Mb*g-this.Lb*e;this.jh&&this.cb!=V.Te?(n=this.aa.x*(f.x-d.x)+this.aa.y*(f.y-d.y)+this.Hb*g-this.Gb*e,h=this.J.vc(),a=this.va.Xj(J.B(0,0),-l,-n),this.J.Di(a),this.cb==V.Nh?this.J.y=Math.max(this.J.y,0):this.cb==V.Zd&&(this.J.y=Math.min(this.J.y,0)),l=-l-(this.J.y-h.y)*this.va.n.x,n=0,n=0!=this.va.k.x?l/this.va.k.x+h.x:h.x,this.J.x=n,a.x=this.J.x-h.x,a.y=this.J.y-h.y,h=a.x*this.Ca.x+a.y*this.aa.x,l=a.x*this.Ca.y+a.y*this.aa.y,n=a.x*this.Lb+a.y*this.Gb,k=a.x*this.Mb+a.y*this.Hb): (a=0,a=0!=this.va.k.x?-l/this.va.k.x:0,this.J.x+=a,h=a*this.Ca.x,l=a*this.Ca.y,n=a*this.Lb,k=a*this.Mb);d.x-=this.Ec*h;d.y-=this.Ec*l;e-=this.Ge*n;f.x+=this.Fc*h;f.y+=this.Fc*l;g+=this.He*k;c.A.M(d);c.L=e;b.A.M(f);b.L=g};tf.prototype.Mf=function(){var a=this.ca,c=this.da,b=a.q.F,d=a.q.P,e=c.q.F,f=c.q.P,g,h=0,l=0,n=0,k=0,m=g=0,q=0,l=!1,p=0,t=Qc.Lm(d),n=Qc.Lm(f);g=t;var q=this.xa.x-this.di.x,v=this.xa.y-this.di.y,h=g.k.x*q+g.n.x*v,v=g.k.y*q+g.n.y*v,q=h;g=n;n=this.ya.x-this.ei.x;k=this.ya.y-this.ei.y; h=g.k.x*n+g.n.x*k;k=g.k.y*n+g.n.y*k;n=h;g=e.x+n-b.x-q;h=e.y+k-b.y-v;if(this.jh){this.aa=P.Mc(t,this.of);this.Gb=(g+q)*this.aa.y-(h+v)*this.aa.x;this.Hb=n*this.aa.y-k*this.aa.x;var w=this.aa.x*g+this.aa.y*h;.01>Math.abs(this.$f-this.Yf)?(p=P.mc(w,-.2,.2),m=Math.abs(w),l=!0):w<=this.Yf?(p=P.mc(w-this.Yf+.005,-.2,0),m=this.Yf-w,l=!0):w>=this.$f&&(p=P.mc(w-this.$f+.005,0,.2),m=w-this.$f,l=!0)}this.Ca=P.Mc(t,this.rj);this.Lb=(g+q)*this.Ca.y-(h+v)*this.Ca.x;this.Mb=n*this.Ca.y-k*this.Ca.x;t=J.B(0,0);v= this.Ca.x*g+this.Ca.y*h;m=Math.max(m,Math.abs(v));q=0;l?(l=this.Ec,n=this.Fc,k=this.Ge,g=this.He,this.va.k.x=l+n+k*this.Lb*this.Lb+g*this.Mb*this.Mb,this.va.k.y=k*this.Lb*this.Gb+g*this.Mb*this.Hb,this.va.n.x=this.va.k.y,this.va.n.y=l+n+k*this.Gb*this.Gb+g*this.Hb*this.Hb,this.va.Xj(t,-v,-p)):(l=this.Ec,n=this.Fc,k=this.Ge,g=this.He,p=l+n+k*this.Lb*this.Lb+g*this.Mb*this.Mb,t.x=0!=p?-v/p:0,t.y=0);p=t.x*this.Ca.x+t.y*this.aa.x;l=t.x*this.Ca.y+t.y*this.aa.y;v=t.x*this.Lb+t.y*this.Gb;t=t.x*this.Mb+t.y* this.Hb;b.x-=this.Ec*p;b.y-=this.Ec*l;d-=this.Ge*v;e.x+=this.Fc*p;e.y+=this.Fc*l;f+=this.He*t;a.q.P=d;c.q.P=f;a.yc();c.yc();return.005>=m&&q<=bd};var uf=function(){mf.call(this);this.gc=J.B(0,0);this.hc=J.B(0,0);this.Zl=J.B(0,0);this.type=V.WJ;this.Zl.Set(1,0);this.rl=!1;this.jz=this.Hx=0;this.gn=!1;this.Qn=this.Yx=0};Pc(uf,mf);uf.prototype.Xc=function(a,c,b,d){this.R=a;this.S=c;this.gc=this.R.ye(b);this.hc=this.S.ye(b);this.Zl=this.R.Tu(d)};uf.prototype.hg=function(){return new tf(this)};var vf= function(a){V.call(this,a);this.xa=J.B(0,0);this.ya=J.B(0,0);this.of=J.B(0,0);this.rj=J.B(0,0);this.aa=J.B(0,0);this.Ca=J.B(0,0);this.va=new id;this.J=new hd(0,0,0);this.xa.M(a.gc);this.ya.M(a.hc);this.of.M(a.Zl);this.rj.x=-this.of.y;this.rj.y=this.of.x;this.kM=a.ni;this.J.za();this.tb=this.df=0;this.Yf=a.Hx;this.$f=a.jz;this.Sx=a.Yx;this.Xp=a.Qn;this.jh=a.rl;this.wk=a.gn;this.cb=V.Te;this.aa.za();this.Ca.za()};Pc(vf,V);vf.prototype.Co=function(){var a=this.ca,c=this.da,b=a.dr(this.xa),d=c.dr(this.ya), c=d.x-b.x,b=d.y-b.y,a=a.Uu(this.of);return a.x*c+a.y*b};vf.prototype.ig=function(a){var c=this.ca,b=this.da,d,e=0;this.di.M(c.Xk());this.ei.M(b.Xk());var f=c.vf();b.vf();d=c.I.u;var g=this.xa.x-this.di.x,h=this.xa.y-this.di.y,e=d.k.x*g+d.n.x*h,h=d.k.y*g+d.n.y*h,g=e;d=b.I.u;var l=this.ya.x-this.ei.x,n=this.ya.y-this.ei.y,e=d.k.x*l+d.n.x*n,n=d.k.y*l+d.n.y*n,l=e;d=b.q.F.x+l-c.q.F.x-g;e=b.q.F.y+n-c.q.F.y-h;this.Ec=c.N;this.Fc=b.N;this.Ge=c.X;this.He=b.X;this.aa.M(P.Mc(f.u,this.of));this.Gb=(d+g)*this.aa.y- (e+h)*this.aa.x;this.Hb=l*this.aa.y-n*this.aa.x;this.df=this.Ec+this.Fc+this.Ge*this.Gb*this.Gb+this.He*this.Hb*this.Hb;this.df>Number.MIN_VALUE&&(this.df=1/this.df);this.Ca.M(P.Mc(f.u,this.rj));this.Lb=(d+g)*this.Ca.y-(e+h)*this.Ca.x;this.Mb=l*this.Ca.y-n*this.Ca.x;f=this.Ec;g=this.Fc;h=this.Ge;l=this.He;this.va.k.x=f+g+h*this.Lb*this.Lb+l*this.Mb*this.Mb;this.va.k.y=h*this.Lb+l*this.Mb;this.va.k.z=h*this.Lb*this.Gb+l*this.Mb*this.Hb;this.va.n.x=this.va.k.y;this.va.n.y=h+l;this.va.n.z=h*this.Gb+ l*this.Hb;this.va.Pa.x=this.va.k.z;this.va.Pa.y=this.va.n.z;this.va.Pa.z=f+g+h*this.Gb*this.Gb+l*this.Hb*this.Hb;this.jh?(d=this.aa.x*d+this.aa.y*e,.01>Math.abs(this.$f-this.Yf)?this.cb=V.kk:d<=this.Yf?this.cb!=V.Nh&&(this.cb=V.Nh,this.J.z=0):d>=this.$f?this.cb!=V.Zd&&(this.cb=V.Zd,this.J.z=0):(this.cb=V.Te,this.J.z=0)):this.cb=V.Te;0==this.wk&&(this.tb=0);a.Lj?(this.J.x*=a.vd,this.J.y*=a.vd,this.tb*=a.vd,a=this.J.x*this.Ca.x+(this.tb+this.J.z)*this.aa.x,d=this.J.x*this.Ca.y+(this.tb+this.J.z)*this.aa.y, e=this.J.x*this.Lb+this.J.y+(this.tb+this.J.z)*this.Gb,f=this.J.x*this.Mb+this.J.y+(this.tb+this.J.z)*this.Hb,c.A.x-=this.Ec*a,c.A.y-=this.Ec*d,c.L-=this.Ge*e,b.A.x+=this.Fc*a,b.A.y+=this.Fc*d,b.L+=this.He*f):(this.J.za(),this.tb=0)};vf.prototype.Nf=function(a){var c=this.ca,b=this.da,d=c.A,e=c.L,f=b.A,g=b.L,h=0,l=0,n=0,k=0;this.wk&&this.cb!=V.kk&&(k=this.df*(this.Xp-(this.aa.x*(f.x-d.x)+this.aa.y*(f.y-d.y)+this.Hb*g-this.Gb*e)),h=this.tb,a=a.$a*this.Sx,this.tb=P.mc(this.tb+k,-a,a),k=this.tb-h,h= k*this.aa.x,l=k*this.aa.y,n=k*this.Gb,k*=this.Hb,d.x-=this.Ec*h,d.y-=this.Ec*l,e-=this.Ge*n,f.x+=this.Fc*h,f.y+=this.Fc*l,g+=this.He*k);n=this.Ca.x*(f.x-d.x)+this.Ca.y*(f.y-d.y)+this.Mb*g-this.Lb*e;l=g-e;this.jh&&this.cb!=V.Te?(a=this.aa.x*(f.x-d.x)+this.aa.y*(f.y-d.y)+this.Hb*g-this.Gb*e,h=this.J.vc(),a=this.va.Qo(new hd(0,0,0),-n,-l,-a),this.J.Di(a),this.cb==V.Nh?this.J.z=Math.max(this.J.z,0):this.cb==V.Zd&&(this.J.z=Math.min(this.J.z,0)),n=-n-(this.J.z-h.z)*this.va.Pa.x,l=-l-(this.J.z-h.z)*this.va.Pa.y, l=this.va.Tm(J.B(0,0),n,l),l.x+=h.x,l.y+=h.y,this.J.x=l.x,this.J.y=l.y,a.x=this.J.x-h.x,a.y=this.J.y-h.y,a.z=this.J.z-h.z,h=a.x*this.Ca.x+a.z*this.aa.x,l=a.x*this.Ca.y+a.z*this.aa.y,n=a.x*this.Lb+a.y+a.z*this.Gb,k=a.x*this.Mb+a.y+a.z*this.Hb):(a=this.va.Tm(J.B(0,0),-n,-l),this.J.x+=a.x,this.J.y+=a.y,h=a.x*this.Ca.x,l=a.x*this.Ca.y,n=a.x*this.Lb+a.y,k=a.x*this.Mb+a.y);d.x-=this.Ec*h;d.y-=this.Ec*l;e-=this.Ge*n;f.x+=this.Fc*h;f.y+=this.Fc*l;g+=this.He*k;c.A.M(d);c.L=e;b.A.M(f);b.L=g};vf.prototype.Mf= function(){var a=this.ca,c=this.da,b=a.q.F,d=a.q.P,e=c.q.F,f=c.q.P,g,h=0,l=0,n=0,k=h=g=0,m=0,l=!1,q=0,p=Qc.Lm(d),t=Qc.Lm(f);g=p;var m=this.xa.x-this.di.x,v=this.xa.y-this.di.y,h=g.k.x*m+g.n.x*v,v=g.k.y*m+g.n.y*v,m=h;g=t;t=this.ya.x-this.ei.x;n=this.ya.y-this.ei.y;h=g.k.x*t+g.n.x*n;n=g.k.y*t+g.n.y*n;t=h;g=e.x+t-b.x-m;h=e.y+n-b.y-v;if(this.jh){this.aa=P.Mc(p,this.of);this.Gb=(g+m)*this.aa.y-(h+v)*this.aa.x;this.Hb=t*this.aa.y-n*this.aa.x;var w=this.aa.x*g+this.aa.y*h;.01>Math.abs(this.$f-this.Yf)?(q= P.mc(w,-.2,.2),k=Math.abs(w),l=!0):w<=this.Yf?(q=P.mc(w-this.Yf+.005,-.2,0),k=this.Yf-w,l=!0):w>=this.$f&&(q=P.mc(w-this.$f+.005,0,.2),k=w-this.$f,l=!0)}this.Ca=P.Mc(p,this.rj);this.Lb=(g+m)*this.Ca.y-(h+v)*this.Ca.x;this.Mb=t*this.Ca.y-n*this.Ca.x;p=new hd(0,0,0);v=this.Ca.x*g+this.Ca.y*h;t=f-d-this.kM;k=Math.max(k,Math.abs(v));m=Math.abs(t);l?(l=this.Ec,n=this.Fc,g=this.Ge,h=this.He,this.va.k.x=l+n+g*this.Lb*this.Lb+h*this.Mb*this.Mb,this.va.k.y=g*this.Lb+h*this.Mb,this.va.k.z=g*this.Lb*this.Gb+ h*this.Mb*this.Hb,this.va.n.x=this.va.k.y,this.va.n.y=g+h,this.va.n.z=g*this.Gb+h*this.Hb,this.va.Pa.x=this.va.k.z,this.va.Pa.y=this.va.n.z,this.va.Pa.z=l+n+g*this.Gb*this.Gb+h*this.Hb*this.Hb,this.va.Qo(p,-v,-t,-q)):(l=this.Ec,n=this.Fc,g=this.Ge,h=this.He,q=g*this.Lb+h*this.Mb,w=g+h,this.va.k.Set(l+n+g*this.Lb*this.Lb+h*this.Mb*this.Mb,q,0),this.va.n.Set(q,w,0),q=this.va.Tm(J.B(0,0),-v,-t),p.x=q.x,p.y=q.y,p.z=0);q=p.x*this.Ca.x+p.z*this.aa.x;l=p.x*this.Ca.y+p.z*this.aa.y;v=p.x*this.Lb+p.y+p.z*this.Gb; p=p.x*this.Mb+p.y+p.z*this.Hb;b.x-=this.Ec*q;b.y-=this.Ec*l;d-=this.Ge*v;e.x+=this.Fc*q;e.y+=this.Fc*l;f+=this.He*p;a.q.P=d;c.q.P=f;a.yc();c.yc();return.005>=k&&m<=bd};var wf=function(){mf.call(this);this.gc=J.B(0,0);this.hc=J.B(0,0);this.Zl=J.B(0,0);this.type=V.XJ;this.Zl.Set(1,0);this.ni=0;this.rl=!1;this.jz=this.Hx=0;this.gn=!1;this.Qn=this.Yx=0};Pc(wf,mf);wf.prototype.Xc=function(a,c,b,d){this.R=a;this.S=c;this.gc=this.R.ye(b);this.hc=this.S.ye(b);this.Zl=this.R.Tu(d);this.ni=this.S.Me()-this.R.Me()}; wf.prototype.hg=function(){return new vf(this)};var yf=function(a){V.call(this,a);this.pj=J.B(0,0);this.qj=J.B(0,0);this.xa=J.B(0,0);this.ya=J.B(0,0);this.Pb=J.B(0,0);this.Qb=J.B(0,0);this.zg=this.ca.La.bM;this.pj.x=a.Ls.x-this.zg.I.position.x;this.pj.y=a.Ls.y-this.zg.I.position.y;this.qj.x=a.Ms.x-this.zg.I.position.x;this.qj.y=a.Ms.y-this.zg.I.position.y;this.xa.M(a.gc);this.ya.M(a.hc);this.Gc=a.je;this.In=a.xx+this.Gc*a.yx;this.$C=Math.min(a.bD,this.In-this.Gc*xf);this.aD=Math.min(a.cD,(this.In- xf)/this.Gc);this.ci=this.bi=this.J=0};Pc(yf,V);yf.prototype.ig=function(a){var c=this.ca,b=this.da,d;d=c.I.u;var e=this.xa.x-c.q.U.x,f=this.xa.y-c.q.U.y,g=d.k.x*e+d.n.x*f,f=d.k.y*e+d.n.y*f,e=g;d=b.I.u;var h=this.ya.x-b.q.U.x,l=this.ya.y-b.q.U.y,g=d.k.x*h+d.n.x*l,l=d.k.y*h+d.n.y*l,h=g;d=b.q.F.x+h;var g=b.q.F.y+l,n=this.zg.I.position.x+this.qj.x,k=this.zg.I.position.y+this.qj.y;this.Pb.Set(c.q.F.x+e-(this.zg.I.position.x+this.pj.x),c.q.F.y+f-(this.zg.I.position.y+this.pj.y));this.Qb.Set(d-n,g-k);d= this.Pb.Fh();g=this.Qb.Fh();.005t};var xf=1,zf=function(){mf.call(this);this.Ls=J.B(0,0);this.Ms=J.B(0,0);this.gc=J.B(0,0);this.hc=J.B(0, 0);this.type=V.YJ;this.Ls.Set(-1,1);this.Ms.Set(1,1);this.gc.Set(-1,0);this.hc.Set(1,0);this.cD=this.yx=this.bD=this.xx=0;this.je=1;this.aw=!0};Pc(zf,mf);zf.prototype.Xc=function(a,c,b,d,e,f,g){void 0===g&&(g=0);this.R=a;this.S=c;this.Ls.M(b);this.Ms.M(d);this.gc=this.R.ye(e);this.hc=this.S.ye(f);a=e.x-b.x;b=e.y-b.y;this.xx=Math.sqrt(a*a+b*b);b=f.x-d.x;d=f.y-d.y;this.yx=Math.sqrt(b*b+d*d);this.je=g;g=this.xx+this.je*this.yx;this.bD=g-this.je*xf;this.cD=(g-xf)/this.je};zf.prototype.hg=function(){return new yf(this)}; var Af=function(a){V.call(this,a);this.wf=new Qc;this.Go=new Qc;this.Ho=new Qc;this.Io=new Qc;this.Od=new hd(0,0,0);this.dh=J.B(0,0);this.mi=J.B(0,0);this.xa=J.B(0,0);this.ya=J.B(0,0);this.J=new hd(0,0,0);this.ba=new id;this.xa.M(a.gc);this.ya.M(a.hc);this.Zp=a.ni;this.J.za();this.tb=0;this.ut=a.Gx;this.Wx=a.iz;this.iM=a.dD;this.Xp=a.Qn;this.jh=a.rl;this.wk=a.gn;this.cb=V.Te};Pc(Af,V);Af.prototype.$q=function(){return this.da.q.P-this.ca.q.P-this.Zp};Af.prototype.ig=function(a){var c=this.ca,b=this.da, d,e=0;d=c.I.u;var f=this.xa.x-c.q.U.x,g=this.xa.y-c.q.U.y,e=d.k.x*f+d.n.x*g,g=d.k.y*f+d.n.y*g,f=e;d=b.I.u;var h=this.ya.x-b.q.U.x,l=this.ya.y-b.q.U.y,e=d.k.x*h+d.n.x*l,l=d.k.y*h+d.n.y*l,h=e;d=c.N;var e=b.N,n=c.X,k=b.X;this.ba.k.x=d+e+g*g*n+l*l*k;this.ba.n.x=-g*f*n-l*h*k;this.ba.Pa.x=-g*n-l*k;this.ba.k.y=this.ba.n.x;this.ba.n.y=d+e+f*f*n+h*h*k;this.ba.Pa.y=f*n+h*k;this.ba.k.z=this.ba.Pa.x;this.ba.n.z=this.ba.Pa.y;this.ba.Pa.z=n+k;this.df=1/(n+k);this.wk||(this.tb=0);if(this.jh){var m=b.q.P-c.q.P-this.Zp; Math.abs(this.Wx-this.ut)<2*bd?this.cb=V.kk:m<=this.ut?(this.cb!=V.Nh&&(this.J.z=0),this.cb=V.Nh):m>=this.Wx?(this.cb!=V.Zd&&(this.J.z=0),this.cb=V.Zd):(this.cb=V.Te,this.J.z=0)}else this.cb=V.Te;a.Lj?(this.J.x*=a.vd,this.J.y*=a.vd,this.tb*=a.vd,a=this.J.x,m=this.J.y,c.A.x-=d*a,c.A.y-=d*m,c.L-=n*(f*m-g*a+this.tb+this.J.z),b.A.x+=e*a,b.A.y+=e*m,b.L+=k*(h*m-l*a+this.tb+this.J.z)):(this.J.za(),this.tb=0)};Af.prototype.Nf=function(a){var c=this.ca,b=this.da,d=0,e=d=0,f=0,g=0,h=0,l=c.A,n=c.L,k=b.A,m=b.L, q=c.N,p=b.N,t=c.X,v=b.X;this.wk&&this.cb!=V.kk&&(e=this.df*-(m-n-this.Xp),f=this.tb,g=a.$a*this.iM,this.tb=P.mc(this.tb+e,-g,g),e=this.tb-f,n-=t*e,m+=v*e);if(this.jh&&this.cb!=V.Te){a=c.I.u;e=this.xa.x-c.q.U.x;f=this.xa.y-c.q.U.y;d=a.k.x*e+a.n.x*f;f=a.k.y*e+a.n.y*f;e=d;a=b.I.u;g=this.ya.x-b.q.U.x;h=this.ya.y-b.q.U.y;d=a.k.x*g+a.n.x*h;h=a.k.y*g+a.n.y*h;g=d;a=k.x+-m*h-l.x- -n*f;var w=k.y+m*g-l.y-n*e;this.ba.Qo(this.Od,-a,-w,-(m-n));this.cb==V.kk?this.J.Di(this.Od):this.cb==V.Nh?(d=this.J.z+this.Od.z, 0>d&&(this.ba.Tm(this.mi,-a,-w),this.Od.x=this.mi.x,this.Od.y=this.mi.y,this.Od.z=-this.J.z,this.J.x+=this.mi.x,this.J.y+=this.mi.y,this.J.z=0)):this.cb==V.Zd&&(d=this.J.z+this.Od.z,0.05*.05&&(m=1/(f+q),g=m*-g,h=m*-h,b.q.F.x-=.5*f*g,b.q.F.y-=.5*f*h,d.q.F.x+=.5*q*g,d.q.F.y+=.5*q*h,g=d.q.F.x+n-b.q.F.x-l,h=d.q.F.y+k-b.q.F.y-a);this.Go.k.x=f+q;this.Go.n.x=0;this.Go.k.y=0;this.Go.n.y=f+q;this.Ho.k.x=p*a*a;this.Ho.n.x=-p*l*a;this.Ho.k.y=-p*l*a;this.Ho.n.y=p*l*l;this.Io.k.x=t*k*k;this.Io.n.x=-t*n*k;this.Io.k.y=-t*n*k;this.Io.n.y=t*n*n;this.wf.Qg(this.Go);this.wf.Oq(this.Ho);this.wf.Oq(this.Io);this.wf.Xj(Bf,-g,-h);g=Bf.x;h=Bf.y; b.q.F.x-=b.N*g;b.q.F.y-=b.N*h;b.q.P-=b.X*(l*h-a*g);d.q.F.x+=d.N*g;d.q.F.y+=d.N*h;d.q.P+=d.X*(n*h-k*g);b.yc();d.yc();return.005>=c&&e<=bd};var Bf=J.B(0,0),ad=function(){mf.call(this);this.gc=J.B(0,0);this.hc=J.B(0,0);this.type=V.dn;this.gc.za();this.hc.za();this.Qn=this.dD=this.iz=this.Gx=this.ni=0;this.gn=this.rl=!1};Pc(ad,mf);ad.prototype.Xc=function(a,c,b){this.R=a;this.S=c;this.gc=this.R.ye(b);this.hc=this.S.ye(b);this.ni=this.S.Me()-this.R.Me()};ad.prototype.hg=function(){return new Af(this)}; var Cf=function(a){V.call(this,a);this.Wf=J.B(0,0);this.Xf=J.B(0,0);this.J=new hd(0,0,0);this.ba=new id;this.Wf.M(a.gc);this.Xf.M(a.hc);this.Zp=a.ni};Pc(Cf,V);Cf.prototype.ig=function(a){var c,b=0,d=this.ca,e=this.da;c=d.I.u;var f=this.Wf.x-d.q.U.x,g=this.Wf.y-d.q.U.y,b=c.k.x*f+c.n.x*g,g=c.k.y*f+c.n.y*g,f=b;c=e.I.u;var h=this.Xf.x-e.q.U.x,l=this.Xf.y-e.q.U.y,b=c.k.x*h+c.n.x*l,l=c.k.y*h+c.n.y*l,h=b;c=d.N;var b=e.N,n=d.X,k=e.X;this.ba.k.x=c+b+g*g*n+l*l*k;this.ba.n.x=-g*f*n-l*h*k;this.ba.Pa.x=-g*n-l* k;this.ba.k.y=this.ba.n.x;this.ba.n.y=c+b+f*f*n+h*h*k;this.ba.Pa.y=f*n+h*k;this.ba.k.z=this.ba.Pa.x;this.ba.n.z=this.ba.Pa.y;this.ba.Pa.z=n+k;a.Lj?(this.J.x*=a.vd,this.J.y*=a.vd,this.J.z*=a.vd,d.A.x-=c*this.J.x,d.A.y-=c*this.J.y,d.L-=n*(f*this.J.y-g*this.J.x+this.J.z),e.A.x+=b*this.J.x,e.A.y+=b*this.J.y,e.L+=k*(h*this.J.y-l*this.J.x+this.J.z)):this.J.za()};Cf.prototype.Nf=function(){var a,c=0,b=this.ca,d=this.da,e=b.A,f=b.L,g=d.A,h=d.L,l=b.N,n=d.N,k=b.X,m=d.X;a=b.I.u;var q=this.Wf.x-b.q.U.x,p=this.Wf.y- b.q.U.y,c=a.k.x*q+a.n.x*p,p=a.k.y*q+a.n.y*p,q=c;a=d.I.u;var t=this.Xf.x-d.q.U.x,v=this.Xf.y-d.q.U.y,c=a.k.x*t+a.n.x*v,v=a.k.y*t+a.n.y*v,t=c;a=new hd(0,0,0);this.ba.Qo(a,-(g.x-h*v-e.x+f*p),-(g.y+h*t-e.y-f*q),-(h-f));this.J.Di(a);e.x-=l*a.x;e.y-=l*a.y;f-=k*(q*a.y-p*a.x+a.z);g.x+=n*a.x;g.y+=n*a.y;h+=m*(t*a.y-v*a.x+a.z);b.L=f;d.L=h};Cf.prototype.Mf=function(){var a,c=0,b=this.ca,d=this.da;a=b.I.u;var e=this.Wf.x-b.q.U.x,f=this.Wf.y-b.q.U.y,c=a.k.x*e+a.n.x*f,f=a.k.y*e+a.n.y*f,e=c;a=d.I.u;var g=this.Xf.x- d.q.U.x,h=this.Xf.y-d.q.U.y,c=a.k.x*g+a.n.x*h,h=a.k.y*g+a.n.y*h,g=c;a=b.N;var c=d.N,l=b.X,n=d.X,k=d.q.F.x+g-b.q.F.x-e,m=d.q.F.y+h-b.q.F.y-f,q=d.q.P-b.q.P-this.Zp,p=Math.sqrt(k*k+m*m),t=Math.abs(q);.05=p&&t<=bd};var Df=function(){mf.call(this);this.gc=J.B(0,0);this.hc=J.B(0,0);this.type=V.$J;this.ni=0};Pc(Df,mf);Df.prototype.Xc=function(a,c,b){this.R=a;this.S=c;this.gc.M(this.R.ye(b));this.hc.M(this.S.ye(b));this.ni=this.S.Me()-this.R.Me()};Df.prototype.hg=function(){return new Cf(this)};var Oe=[new od,new od],Xe=[new od,new od],Ye=[new od,new od],Pe=J.B(0,0),Qe=J.B(0,0),Re=J.B(0,0),Ue= J.B(0,0),Se=J.B(0,0),Te=J.B(0,0),Ve=J.B(0,0),We=J.B(0,0),qe=0,ze=0,Ae=0,xe=0,ye=0,re=new Od,se=new yd,te=new Rc,ue=new Rc,we=new Jd,ve=new zd;Tc.kN=new Rc;Uc.qB=new Uc;new function(){this.position=J.B(0,0);this.EE=J.B(0,0);this.Je=J.B(0,0);this.id=new nd};Wc.uP=new Rc;Wc.TD=new jd;Wc.UD=new jd;var pe=new Pd,Me=new Qd,Ne=new Le} function Ef(a,c,b,d,e,f){var g;if(g=(b+.1>=a&&a>=e-.1||b-.1<=a&&a<=e+.1)&&(d+.1>=c&&c>=f-.1||d-.1<=c&&c<=f+.1))g=.1Math.abs((f-d)/(e-b)*(a-b)+d-c):.1>Math.abs(a-b);return g}function Ff(a,c){var b=J,d=Gf(a),e=[],f,g,h,l,n,k,m,q,p;n=0;for(k=d.length;n=.001*c&&e.push(f)}return e} function Gf(a){var c=[],b=0,d=0,e=0,f=0,g=0,h=g=0,l=0,n=0,k=0,f=0,m,q,p,t,v,w=f=b=0,s=0,e=[],l=[],O=!1,L=[],z=[];for(z.push(a);z.length;){c=z[0];d=c.length;O=!0;for(b=0;bf){O=!1;l=1E9;for(e=0;eMath.abs(t.x-v.x)&&.1>Math.abs(s-w)||e.push(v);w=v.y;s=p.y;.1>Math.abs(p.x-v.x)&&.1>Math.abs(s-w)||l.push(v);s=-1;for(w=n;;){if(w!==f)e.push(c[w]);else{if(0>s||s>=d)return[];Ef(t.x,t.y,c[s].x,c[s].y,a.x,a.y)||e.push(c[w]);break}s=w;0>w-1?w=d-1:w--}e.reverse();s=-1;for(w=k;;){if(w!==b)l.push(c[w]);else{if(0>s|| s>=d)return[];w!==b||Ef(p.x,p.y,c[s].x,c[s].y,m.x,m.y)||l.push(c[w]);break}s=w;w+1>d-1?w=0:w++}z.push(e,l);z.shift();break}O&&L.push(z.shift())}return L} function Hf(a){for(var c=0;4E3>c;c++)J.Ji.push(new J(0,0));this.c=a;this.uf=new Wc(J.B(0,10),!0);this.qx=-1;a=new Uc;a.behavior=this;a.Rq=function(a){this.behavior.c.ND(a.Dc.Ab().Jh.j,a.qc.Ab().Jh.j)};this.uf.CA(a);a=new Vc;a.behavior=this;a.al=function(a,c){if(this.behavior.dJ)return!0;var e=a.Ab().Jh.j.type,f=c.Ab().Jh.j.type,g=e.ra.Physics_DisabledCollisions;return g&&g.contains(f)?!1:(g=f.ra.Physics_DisabledCollisions)&&g.contains(e)?!1:!0};this.uf.BA(a);this.gE=0;this.ro=8;this.ao=3;this.dJ= !0} (function(){function a(){}function c(){}function b(){}var d=J,e=S,f=Zc,g=Yc,h=Xc,l=$c,n=ad,k=Hf.prototype;k.ua=function(a){this.behavior=a;this.c=a.c};k.ua.prototype.ka=function(){};k.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c;this.uf=this.behavior.uf};var m=k.la.prototype;m.ka=function(){this.pn=0!==this.T[0];this.CB=this.T[1];this.bo=0!==this.T[2];this.Yg=this.T[3];this.Qh=this.T[4];this.oi=this.T[5];this.Ul=this.T[6];this.dl=this.T[7];this.il=0!==this.T[8];this.enabled=0!== this.T[9];this.body=null;this.j.Jb();this.Qc=this.j.x;this.Ad=this.j.y;this.Fe=this.j.K;this.mx=this.rx=0;this.LD=this.zn=!1;this.ix=null;this.jx=-1;this.Hf?(this.Hf.length=0,this.ag.length=0,this.hj.clear()):(this.Hf=[],this.ag=[],this.hj=new da);var a=this;this.ke||(this.Ek=function(b){a.qm(b)});this.c.Zo(this.Ek)};m.GD=function(){this.j.Jb();this.ds();this.ix=this.j.Yb;this.jx=this.j.ta};m.wj=function(){this.ps();this.ag.length=0;this.hj.clear();this.body&&(this.uf.Wq(this.body),this.body=null); this.c.Dy(this.Ek)};m.kc=function(){var a={e:this.enabled,im:this.pn,pr:this.bo,d:this.Yg,fr:this.Qh,re:this.oi,ld:this.Ul,ad:this.dl,b:this.il,mcj:this.ag};if(this.enabled){var b=d.B(0,0);b.M(this.body.Fi());a.vx=b.x;a.vy=b.y;a.om=this.body.Zq()}return a};m.Bc=function(a){this.ps();this.ag.length=0;this.hj.clear();this.body&&(this.uf.Wq(this.body),this.body=null);this.enabled=a.e;this.pn=a.im;this.bo=a.pr;this.Yg=a.d;this.Qh=a.fr;this.oi=a.re;this.Ul=a.ld;this.dl=a.ad;this.il=a.b;this.Qc=this.j.x; this.Ad=this.j.y;this.Fe=this.j.K;this.rx=this.j.width;this.mx=this.j.height;this.enabled&&(this.ds(),this.body.Wj(d.B(a.vx,a.vy)),this.body.Rm(a.om),0===a.vx&&0===a.vy&&0===a.om||this.body.Nc(!0),this.ag=a.mcj)};m.mg=function(){this.enabled&&this.Cy();this.behavior.qx=this.c.uh-1};m.qm=function(a){var b,c,d,e=a.uid;d=b=0;for(c=this.ag.length;ba.width;T=0>a.height;if(0===l)if(a.Hj)for(Y=a.nc.Ck()-a.x,F=a.nc.Dk()-a.y,a.hP(q),E=[],l=0,m=q.length;l1/30&&(b=1/30));this.c.uh>this.behavior.qx&&0a&&(a=1);1>b&&(b=1);this.behavior.ro=a;this.behavior.ao=b};c.prototype.TH=function(a,b){this.enabled&&(this.body.Wj(d.B(.02*a,.02*b)),this.body.Nc(!0),this.zn=!1,this.Qc=this.j.x,this.Ad= this.j.y)};c.prototype.yH=function(a){this.enabled&&this.pn!==(0!==a)&&(this.pn=0!==a,this.body.LA(this.pn?0:2),this.body.Nc(!0))};c.prototype.IH=function(a){this.enabled&&this.bo!==(0!==a)&&(this.bo=0!==a,this.body.EA(this.bo),this.body.tj=0,this.body.Rm(0),this.body.Nc(!0))};c.prototype.Sm=function(a){this.enabled&&0===a?(this.KB(),this.enabled=!1):this.enabled||1!==a||(this.enabled=!0,this.ds())};k.G=new c;b.prototype.pI=function(a){a.V(this.enabled?this.body.Fi().x/.02:0)};b.prototype.qI=function(a){a.V(this.enabled? this.body.Fi().y/.02:0)};k.H=new b})();function If(a){this.c=a} (function(){function a(){}function c(){}function b(){}var d=If.prototype;d.ua=function(a){this.behavior=a;this.c=a.c};d.ua.prototype.ka=function(){};d.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c};var e=d.la.prototype;e.ka=function(){this.Uc=null;this.It=-1;this.mode=this.Fe=this.su=this.Tn=this.yj=this.mq=0;var a=this;this.ke||(this.Ek=function(b){a.qm(b)});this.c.Zo(this.Ek)};e.kc=function(){return{uid:this.Uc?this.Uc.uid:-1,pa:this.mq,pd:this.yj,msa:this.Tn,tsa:this.su, lka:this.Fe,m:this.mode}};e.Bc=function(a){this.It=a.uid;this.mq=a.pa;this.yj=a.pd;this.Tn=a.msa;this.su=a.tsa;this.Fe=a.lka;this.mode=a.m};e.mg=function(){this.Uc=-1===this.It?null:this.c.ah(this.It);this.It=-1};e.qm=function(a){this.Uc==a&&(this.Uc=null)};e.wj=function(){this.Uc=null;this.c.Dy(this.Ek)};e.sc=function(){};e.jo=function(){if(this.Uc){this.Fe!==this.j.K&&(this.Tn=Ja(this.Tn+(this.j.K-this.Fe)));var a=this.j.x,b=this.j.y;if(3===this.mode||4===this.mode){var c=Sa(this.j.x,this.j.y,this.Uc.x, this.Uc.y);if(c>this.yj||4===this.mode&&c=this.vm);b=b?-this.move.dec:this.move.acc;0!=b&& this.$k(this.Ui+b*a);a*=this.Ui;this.vm-=a;0>=this.vm||0>=this.Ui?(this.Ll=!1,this.j.x=this.target.x,this.j.y=this.target.y,this.$k(0),this.xM(),this.Dp=!0):(b=this.target.a,this.j.x+=a*Math.cos(b),this.j.y+=a*Math.sin(b));this.j.Ea();this.Hh.x=this.j.x;this.Hh.y=this.j.y}}};e.jo=function(){this.jg.x=this.j.x;this.jg.y=this.j.y};e.$k=function(a){null!=a?this.Ui=a>this.move.max?this.move.max:a:0==this.move.acc&&(this.Ui=this.move.max)};e.$A=function(){var a=this.target.x-this.j.x,b=this.target.y-this.j.y; this.target.a=Math.atan2(b,a);this.vm=Math.sqrt(a*a+b*b);this.Hh.x=this.j.x;this.Hh.y=this.j.y};e.Av=function(a,b){this.Ll=!0;this.target.x=a;this.target.y=b;this.$A();this.$k(null);this.jg.x=this.j.x;this.jg.y=this.j.y};e.GL=function(){var a=this.c.uh,b=this.Cr!=a;this.Cr=a;return b};e.xM=function(){if(this.GL()){var a=this.j.x-this.jg.x,b=this.j.y-this.jg.y;if(0!=a||0!=b)this.jg.a=La(Math.atan2(b,a))}};e.kc=function(){return{en:this.enabled,v:this.move,t:this.target,is_m:this.Ll,c_spd:this.Ui,rd:this.vm, is_ht:this.Dp,pp:this.Hh,ma:this.jg,lt:this.Cr}};e.Bc=function(a){this.enabled=a.en;this.move=a.v;this.target=a.t;this.Ll=a.is_m;this.Ui=a.c_spd;this.vm=a.rd;this.Dp=a.is_ht;this.Hh=a.pp;this.jg=a.ma;this.Cr=a.lt};d.C=new a;a.prototype.gA=function(){return this.gx};a.prototype.YF=function(){return this.enabled&&this.Ll};d.G=new c;c.prototype.Sm=function(a){this.enabled=1===a};c.prototype.CH=function(a){this.move.max=a;this.$k(null)};c.prototype.Av=function(a,b){this.Av(a,b)};c.prototype.$k=function(a){this.$k(a)}; c.prototype.Um=function(){this.Ll=!1};d.H=new b;b.prototype.Ev=function(a){a.V(this.Ui)}})();function Kf(a){this.c=a} (function(){function a(){}function c(){}var b=Kf.prototype;b.ua=function(a){this.behavior=a;this.c=a.c};b.ua.prototype.ka=function(){};b.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c};var d=b.la.prototype;d.ka=function(){this.speed=u(this.T[0]);this.Ki=u(this.T[1])};d.kc=function(){return{speed:this.speed,acc:this.Ki}};d.Bc=function(a){this.speed=a.speed;this.Ki=a.acc};d.sc=function(){var a=this.c.Rh(this.j);0!==a&&(0!==this.Ki&&(this.speed+=this.Ki*a),0!==this.speed&& (this.j.K=Ja(this.j.K+this.speed*a),this.j.Ea()))};b.C=new function(){};a.prototype.JA=function(a){this.speed=u(a)};b.G=new a;c.prototype.Ev=function(a){a.V(Ha(this.speed))};b.H=new c})();function Lf(a){this.c=a} (function(){function a(){}function c(){}function b(){}var d=Lf.prototype;d.ua=function(a){this.behavior=a;this.c=a.c};d.ua.prototype.ka=function(){};d.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c;this.ga=0};var e=d.la.prototype,f=2*Math.PI,g=Math.PI/2,h=3*Math.PI/2;e.ka=function(){this.ea=1===this.T[0];this.Rn=this.T[1];this.rz=this.T[2];this.xj=this.T[3];this.xj+=Math.random()*this.T[4];0===this.xj?this.ga=0:(this.ga=this.T[5]/this.xj*f,this.ga+=Math.random()*this.T[6]/ this.xj*f);this.ge=this.T[7];this.ge+=Math.random()*this.T[8];this.je=this.El=this.Db=0;this.init()};e.kc=function(){return{i:this.ga,a:this.ea,mv:this.Rn,w:this.rz,p:this.xj,mag:this.ge,iv:this.Db,iv2:this.El,r:this.je,lkv:this.bb,lkv2:this.Pd}};e.Bc=function(a){this.ga=a.i;this.ea=a.a;this.Rn=a.mv;this.rz=a.w;this.xj=a.p;this.ge=a.mag;this.Db=a.iv;this.El=a.iv2||0;this.je=a.r;this.bb=a.lkv;this.Pd=a.lkv2||0};e.init=function(){switch(this.Rn){case 0:this.Db=this.j.x;break;case 1:this.Db=this.j.y; break;case 2:this.Db=this.j.width;this.je=this.j.height/this.j.width;break;case 3:this.Db=this.j.width;break;case 4:this.Db=this.j.height;break;case 5:this.Db=this.j.K;this.ge=u(this.ge);break;case 6:this.Db=this.j.opacity;break;case 7:this.Db=0;break;case 8:this.Db=this.j.x,this.El=this.j.y}this.bb=this.Db;this.Pd=this.El};e.Bi=function(a){a%=f;switch(this.rz){case 0:return Math.sin(a);case 1:return a<=g?a/g:a<=h?1-2*(a-g)/Math.PI:(a-h)/g-1;case 2:return 2*a/f-1;case 3:return-2*a/f+1;case 4:return a< Math.PI?-1:1}return 0};e.sc=function(){var a=this.c.Rh(this.j);if(this.ea&&0!==a){0===this.xj?this.ga=0:(this.ga+=a/this.xj*f,this.ga%=f);switch(this.Rn){case 0:this.j.x!==this.bb&&(this.Db+=this.j.x-this.bb);this.j.x=this.Db+this.Bi(this.ga)*this.ge;this.bb=this.j.x;break;case 1:this.j.y!==this.bb&&(this.Db+=this.j.y-this.bb);this.j.y=this.Db+this.Bi(this.ga)*this.ge;this.bb=this.j.y;break;case 2:this.j.width=this.Db+this.Bi(this.ga)*this.ge;this.j.height=this.j.width*this.je;break;case 3:this.j.width= this.Db+this.Bi(this.ga)*this.ge;break;case 4:this.j.height=this.Db+this.Bi(this.ga)*this.ge;break;case 5:this.j.K!==this.bb&&(this.Db=Ja(this.Db+(this.j.K-this.bb)));this.j.K=Ja(this.Db+this.Bi(this.ga)*this.ge);this.bb=this.j.K;break;case 6:this.j.opacity=this.Db+this.Bi(this.ga)*this.ge/100;0>this.j.opacity?this.j.opacity=0:1(c/=b/2)?.5*c*c+0:-.5*(--c*(c-2)-1)+0;case 4:return 1*(c/=b)*c*c+0;case 5:return 1*((c=c/b-1)*c*c+1)+0;case 6:return 1>(c/=b/2)?.5*c*c*c+0:.5*((c-=2)*c*c+2)+0;case 7:return 1*(c/=b)*c*c*c+0;case 8:return-1*((c=c/b-1)*c*c*c-1)+0;case 9:return 1>(c/=b/2)?.5*c*c*c*c+0:-.5*((c-=2)*c*c*c-2)+0;case 10:return 1*(c/=b)*c*c*c*c+0;case 11:return 1*((c=c/b-1)*c*c*c*c+1)+0;case 12:return 1> (c/=b/2)?.5*c*c*c*c*c+0:.5*((c-=2)*c*c*c*c+2)+0;case 13:return Qf[Vf(c,b)];case 14:return Rf[Vf(c,b)];case 15:return Sf[Vf(c,b)];case 16:return a=0,0==a&&(a=1.70158),1*(c/=b)*c*((a+1)*c-a)+0;case 17:return Tf[Vf(c,b)];case 18:return Uf[Vf(c,b)];case 19:return Nf[Vf(c,b)];case 20:return Of[Vf(c,b)];case 21:return Pf[Vf(c,b)];case 22:return 1-Mf[Vf(b-c,b)]+0;case 23:return Mf[Vf(c,b)];case 24:return c=bg;bg++){W=bg/1E4;(W/=1)<1/2.75||(W<2/2.75?W-=1.5/2.75:W<2.5/2.75?W-=2.25/2.75:W-=2.625/2.75);var cg,dg=bg/1E4;cg=(dg/=1)<1/2.75?7.5625*dg*dg+0:dg<2/2.75?1*(7.5625*(dg-=1.5/2.75)*dg+.75)+0:dg<2.5/2.75?1*(7.5625*(dg-=2.25/2.75)*dg+.9375)+0:1*(7.5625*(dg-=2.625/2.75)*dg+.984375)+0;Mf[bg]=cg;W=bg/1E4;$f=Zf=0;W/=1;0==$f&&($f=.3);0==Zf||ZfW?-.5*Zf*Math.pow(2,10*--W)*Math.sin(2*(1*W-ag)*Math.PI/$f)+0:Zf*Math.pow(2,-10*--W)*Math.sin(2*(1*W-ag)*Math.PI/$f)*.5+1;Pf[bg]=Xf;W=bg/1E4;Qf[bg]=-(Math.sqrt(1-W*W)-1);W=bg/1E4;Rf[bg]=Math.sqrt(1- (W-1)*(W-1));W=bg/1E4;Xf=1>(W/=.5)?-.5*(Math.sqrt(1-W*W)-1)+0:.5*(Math.sqrt(1-(W-=2)*W)+1)+0;Sf[bg]=Xf;W=bg/1E4;ag=0;0==ag&&(ag=1.70158);Xf=1*((W=W/1-1)*W*((ag+1)*W+ag)+1)+0;Tf[bg]=Xf;W=bg/1E4;ag=0;0==ag&&(ag=1.70158);1>(W/=.5)&&(ag*=1.525);Xf=.5*((W-=2)*W*(((ag*=1.525)+1)*W+ag)+2)+0;Uf[bg]=Xf}function eg(a,c,b,d,e,f,g){this.name=a;this.value=0;this.eu(d);this.Ny(e);this.lw=b;this.Y=c;this.duration=f;this.state=this.Rb=0;this.Ft=this.Gt=this.mh=this.Xn=!1;this.Pd=this.bb=0;this.Sf=g;this.um=1} eg.prototype={};eg.prototype.eu=function(a){this.$b=parseFloat(a.split(",")[0]);this.We=parseFloat(a.split(",")[1]);this.Pd=this.bb=0};eg.prototype.Ny=function(a){this.Sb=parseFloat(a.split(",")[0]);this.Sd=parseFloat(a.split(",")[1]);isNaN(this.Sd)&&(this.Sd=this.Sb)}; eg.prototype.kv=function(a){if(0===this.state)return-1;1===this.state&&(this.Rb+=a);2===this.state&&(this.Rb-=a);3===this.state&&(this.state=0);4===this.state&&(this.Rb+=a*this.um);5===this.state&&(this.Rb+=a*this.um);return 0>this.Rb?(this.Rb=0,4!==this.state?this.state=0:this.um=1,this.Ft=!0,0):this.Rb>this.duration?(this.Rb=this.duration,4===this.state?this.um=-1:5===this.state?this.Rb=0:this.state=0,this.mh=!0,1):Wf(this.lw,this.Rb,this.duration)}; function fg(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gg(a){this.c=a} (function(){var a=gg.prototype;a.ua=function(a){this.behavior=a;this.c=a.c};a.ua.prototype.ka=function(){};a.la=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.c=a.c;this.ga=0};var c=a.la.prototype;c.ka=function(){this.ea=this.T[0];this.Y=this.T[1];this.ql=this.T[2];this.target=this.T[3];this.kE=this.T[4];1===this.kE&&(this.target="relative("+this.target+")");this.duration=this.T[5];this.Sf=1===this.T[6];this.j.value=0;this.Na={};this.hB(this.Y,this.ql,"current",this.target,this.duration, this.Sf);1===this.ea&&this.lu(0);2===this.ea&&this.lu(2);3===this.ea&&this.lu(3)};c.rm=function(a,c){void 0===c&&(c="current");var e=fg(c);c=fg(c);if("current"===c)switch(a){case 0:e=this.j.x+","+this.j.y;break;case 1:e=this.j.width+","+this.j.height;break;case 2:e=this.j.width+","+this.j.height;break;case 3:e=this.j.width+","+this.j.height;break;case 4:e=Ha(this.j.K)+","+Ha(this.j.K);break;case 5:e=100*this.j.opacity+","+100*this.j.opacity;break;case 6:e=this.j.value+","+this.j.value;break;case 7:e= this.j.x+","+this.j.y;break;case 8:e=this.j.x+","+this.j.y}if("relative"===c.substring(0,8)){var f=c.match(/\((.*?)\)/);if(f)var g=parseFloat(f[1].split(",")[0]),h=parseFloat(f[1].split(",")[1]);isNaN(g)&&(g=0);isNaN(h)&&(h=0);switch(a){case 0:e=this.j.x+g+","+(this.j.y+h);break;case 1:e=this.j.width+g+","+(this.j.height+h);break;case 2:e=this.j.width+g+","+(this.j.height+h);break;case 3:e=this.j.width+g+","+(this.j.height+h);break;case 4:e=Ha(this.j.K)+g+","+(Ha(this.j.K)+h);break;case 5:e=100*this.j.opacity+ g+","+(100*this.j.opacity+h);break;case 6:e=this.j.value+g+","+this.j.value+g;break;case 7:e=this.j.x+g+","+this.j.y;break;case 8:e=this.j.x+","+(this.j.y+g)}}return e};c.hB=function(a,c,e,f,g,h){e=this.rm(a,e);f=this.rm(a,f);void 0!==this.Na["default"]&&delete this.Na["default"];this.Na["default"]=new eg("default",a,c,e,f,g,h)};c.kc=function(){};c.Bc=function(){};c.qN=function(a){1a&&(a=0);for(var c in this.Na){var e=this.Na[c];e.bb=0;e.Pd=0;e.state=3;e.Rb=a*e.duration;var f=e.kv(0); this.fz(e,f)}};c.lu=function(a){for(var c in this.Na){var e=this.Na[c];0===a&&(e.Rb=1E-6,e.bb=0,e.Pd=0,e.Xn=!0,e.state=1);1===a&&(e.state=1);2===a&&(e.Rb=1E-6,e.bb=0,e.Pd=0,e.Xn=!0,e.state=4);3===a&&(e.Rb=1E-6,e.bb=0,e.Pd=0,e.Xn=!0,e.state=5)}};c.yN=function(a){for(var c in this.Na){var e=this.Na[c];1===a&&(e.Rb=0);2===a&&(e.Rb=e.duration);e.state=3;var f=e.kv(0);this.fz(e,f)}};c.eN=function(a){for(var c in this.Na){var e=this.Na[c];1===a&&(e.Rb=e.duration,e.bb=0,e.Pd=0,e.Gt=!0);e.state=2}};c.fz= function(a,c){if(0===a.Y)a.Sf?(this.j.x=a.$b+(a.Sb-a.$b)*c,this.j.y=a.We+(a.Sd-a.We)*c):(this.j.x+=(a.Sb-a.$b)*c-a.bb,this.j.y+=(a.Sd-a.We)*c-a.Pd,a.bb=(a.Sb-a.$b)*c,a.Pd=(a.Sd-a.We)*c);else if(1===a.Y)a.Sf?(this.j.width=a.$b+(a.Sb-a.$b)*c,this.j.height=a.We+(a.Sd-a.We)*c):(this.j.width+=(a.Sb-a.$b)*c-a.bb,this.j.height+=(a.Sd-a.We)*c-a.Pd,a.bb=(a.Sb-a.$b)*c,a.Pd=(a.Sd-a.We)*c);else if(2===a.Y)a.Sf?this.j.width=a.$b+(a.Sb-a.$b)*c:(this.j.width+=(a.Sb-a.$b)*c-a.bb,a.bb=(a.Sb-a.$b)*c);else if(3===a.Y)a.Sf? this.j.height=a.We+(a.Sd-a.We)*c:(this.j.height+=(a.Sd-a.We)*c-a.Pd,a.Pd=(a.Sd-a.We)*c);else if(4===a.Y)if(a.Sf){var e=a.$b+(a.Sb-a.$b)*c;this.j.K=Ja(u(e))}else e=(a.Sb-a.$b)*c-a.bb,this.j.K=Ja(this.j.K+u(e)),a.bb=(a.Sb-a.$b)*c;else 5===a.Y?a.Sf?this.j.opacity=(a.$b+(a.Sb-a.$b)*c)/100:(this.j.opacity+=((a.Sb-a.$b)*c-a.bb)/100,a.bb=(a.Sb-a.$b)*c):6===a.Y?a.Sf?this.j.value=a.$b+(a.Sb-a.$b)*c:(this.j.value+=(a.Sb-a.$b)*c-a.bb,a.bb=(a.Sb-a.$b)*c):7===a.Y?a.Sf?this.j.x=a.$b+(a.Sb-a.$b)*c:(this.j.x+=(a.Sb- a.$b)*c-a.bb,a.bb=(a.Sb-a.$b)*c):8===a.Y&&(a.Sf?this.j.y=a.We+(a.Sd-a.We)*c:(this.j.y+=(a.Sd-a.We)*c-a.Pd,a.Pd=(a.Sd-a.We)*c));this.j.Ea()};c.sc=function(){var a=this.c.Rh(this.j),c=this.Na["default"];0!==c.state&&(c.Xn&&(this.c.trigger(gg.prototype.C.jv,this.j),c.Xn=!1),c.Gt&&(this.c.trigger(gg.prototype.C.MG,this.j),c.Gt=!1),a=c.kv(a),this.fz(c,a),c.mh&&(this.c.trigger(gg.prototype.C.ir,this.j),c.mh=!1),c.Ft&&(this.c.trigger(gg.prototype.C.LG,this.j),c.Ft=!1))};a.C={};c=a.C;c.Og=function(){return 0!== this.Na["default"].state};c.Bz=function(a,c){var e=this.Na["default"];return dc(e.Rb/e.duration,a,c)};c.jv=function(){return void 0===this.Na["default"]?!1:this.Na["default"].Xn};c.MG=function(){return void 0===this.Na["default"]?!1:this.Na["default"].Gt};c.ir=function(){return void 0===this.Na["default"]?!1:this.Na["default"].mh};c.LG=function(){return void 0===this.Na["default"]?!1:this.Na["default"].Ft};a.G={};c=a.G;c.xr=function(a){this.lu(a)};c.Um=function(a){this.yN(a)};c.qr=function(a){this.eN(a)}; c.DO=function(a){this.qN(a)};c.DA=function(a){isNaN(a)||0>a||void 0===this.Na["default"]||(this.Na["default"].duration=a)};c.RO=function(a){void 0!==this.Na["default"]&&(this.Na["default"].Sf=1===a)};c.uv=function(a){void 0!==this.Na["default"]&&(a=this.rm(this.Na["default"].Y,a),this.Na["default"].eu(a))};c.zv=function(a,c,e){if(void 0!==this.Na["default"]&&!isNaN(e)){var f=e+"",g=this.Na["default"];this.kE=c;if(1===c)switch(a){case 0:f=this.j.x+e+","+g.Sd;break;case 1:f=g.Sb+","+(this.j.y+e);break; case 2:f=""+Ha(this.j.K+u(e));break;case 3:f=""+100*this.j.opacity+e;break;case 4:f=this.j.width+e+","+g.Sd;break;case 5:f=g.Sb+","+(this.j.height+e);break;case 6:f=e+","+e}else switch(a){case 0:f=e+","+g.Sd;break;case 1:f=g.Sb+","+e;break;case 2:f=e+","+e;break;case 3:f=e+","+e;break;case 4:f=e+","+g.Sd;break;case 5:f=g.Sb+","+e;break;case 6:f=e+","+e}a=this.rm(this.Na["default"].Y,"current");f=this.rm(this.Na["default"].Y,f);g.eu(a);g.Ny(f)}};c.PH=function(a){void 0!==this.Na["default"]&&(this.Na["default"].Y= a)};c.tH=function(a){void 0!==this.Na["default"]&&(this.Na["default"].lw=a)};c.RH=function(a){this.j.value=a};c.FH=function(a,c,e,f,g){if(void 0===this.Na["default"])this.hB(a,c,initial,e,f,g);else{var h=this.Na["default"];h.Y=a;h.lw=c;h.eu(this.rm(a,"current"));h.Ny(this.rm(a,e));h.duration=f;h.Sf=1===g}};a.H={};a=a.H;a.cH=function(a){a.V(this.Na["default"].Rb/this.Na["default"].duration)};a.Nu=function(a){a.V(this.Na["default"].duration)};a.TA=function(a){var c=this.Na["default"],e="N/A";switch(c.Y){case 0:e= c.Sb;break;case 1:e=c.Sd;break;case 2:e=c.Sb;break;case 3:e=c.Sb;break;case 4:e=c.Sb;break;case 5:e=c.Sd;break;case 6:e=c.Sb}a.V(e)};a.Kv=function(a){a.V(this.j.value)}})();function fg(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hg(a){this.c=a} (function(){function a(a,b){return(a/=b)<1/2.75?7.5625*a*a+0:a<2/2.75?1*(7.5625*(a-=1.5/2.75)*a+.75)+0:a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+.9375)+0:1*(7.5625*(a-=2.625/2.75)*a+.984375)+0}var c=hg.prototype;c.ua=function(a){this.behavior=a;this.c=a.c};c.ua.prototype.ka=function(){};c.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c;this.ga=0};var b=c.la.prototype;b.oP=function(a){1=a&&(ic[this.group]=a)};b.gC=function(){""!= this.group&&("undefined"===typeof jc&&(jc={},ic={}),"undefined"===typeof jc[this.group]&&(jc[this.group]=[],ic[this.group]=-1),-1==jc[this.group].indexOf(this)&&jc[this.group].push(this))};b.Jk=function(){this.fg=this.j.width;this.eg=this.j.height;this.lo=this.j.K;this.sE=this.j.opacity;this.Sk=this.j.x;this.Tk=this.j.y;this.Du=this.value};b.ka=function(){this.ea=1===this.T[0];this.Y=this.T[1];this.ql=this.T[2];this.fa=this.T[3];this.target=this.T[4];this.duration=this.T[5];this.Cm=this.T[6];this.Ma= this.T[7];this.value=this.T[8];this.Ce=this.T[9];this.xw=1===this.T[10];this.group=this.T[11];this.ff=null;this.qf=0;5==this.Ma&&(this.qf=1);this.gC();this.fj=!1;this.fb=this.j.x;this.zd=this.j.y;this.nb=parseFloat(this.target.split(",")[0]);this.kd=parseFloat(this.target.split(",")[1]);this.Jk();this.no=this.ve=this.Wb=this.md=this.ob=0;this.je=this.j.height/this.j.width;this.Yt=this.reverse=!1;this.$g=this.Zg=!0;this.loop=!1;this.oc=this.Nb=0;this.nx=this.Ma;this.Qc=this.bb=this.ob;this.Ad=this.md; this.xw&&this.init();""==this.fa&&(this.fa="current");this.dq=this.Wn=this.fq=this.mh=this.hq=this.Zn=this.gq=this.Yn=!1;this.ea&&this.init()};b.init=function(){this.Yn=!1;""===this.fa&&(this.fa="current");""===this.target&&(this.target="current");var a="current"===this.fa,b="current"===this.target,c="OBJ"===this.target;"OBJ"===this.target&&null!=this.ff&&(0==this.Y?this.target=1==this.Ce?this.ff.x-this.j.x+","+(this.ff.y-this.j.y):this.ff.x+","+this.ff.y:1==this.Y||2==this.Y||3==this.Y||7==this.Y? this.target=1==this.Ce?(2==this.Y?1:this.ff.width)+","+(3==this.Y?1:this.ff.height):(2==this.Y?1:this.ff.width/this.fg)+","+(3==this.Y?1:this.ff.height/this.eg):4==this.Y?this.target=1==this.Ce?Ha(this.ff.K-this.j.K)+"":Ha(this.ff.K)+"":5==this.Y&&(this.target=1==this.Ce?100*(this.ff.opacity-this.j.opacity)+"":100*this.ff.opacity+""));if(0==this.Y)b&&(this.target=this.j.x+","+this.j.y),a?this.fa=1==this.Ce?this.j.x+","+this.j.y:this.Sk+","+this.Tk:this.reverse||1==this.Ma||(this.j.x=parseFloat(this.fa.split(",")[0]), this.j.y=parseFloat(this.fa.split(",")[1])),1==this.Ce?(this.loop&&(this.j.x=this.Sk,this.j.y=this.Tk),this.fb=this.j.x,this.zd=this.j.y,this.reverse?(this.nb=-parseFloat(this.target.split(",")[0]),this.kd=-parseFloat(this.target.split(",")[1])):(this.nb=parseFloat(this.target.split(",")[0]),this.kd=parseFloat(this.target.split(",")[1])),this.ob=this.fb,this.md=this.zd,this.Wb=this.ob+this.nb,this.ve=this.md+this.kd):(this.reverse?(this.j.x=parseFloat(this.target.split(",")[0]),this.j.y=parseFloat(this.target.split(",")[1]), this.nb=this.Sk,this.kd=this.Tk):(this.j.x=this.Sk,this.j.y=this.Tk,this.nb=parseFloat(this.target.split(",")[0]),this.kd=parseFloat(this.target.split(",")[1])),this.fb=this.j.x,this.zd=this.j.y,this.ob=this.fb,this.md=this.zd,this.Wb=this.nb,this.ve=this.kd,-6==this.Ma&&(this.Wb=this.Sk,this.ve=this.Tk));else if(1==this.Y||2==this.Y||3==this.Y){b&&(this.target="1,1");"current"==this.fa&&(this.fa="1,1");this.fa=""+this.fa;this.target=""+this.target;2==this.Y?(-1==this.fa.indexOf(",")&&(this.fa=parseFloat(this.fa)+ ",1"),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+",1")):3==this.Y?(-1==this.fa.indexOf(",")&&(this.fa="1,"+parseFloat(this.fa)),-1==this.target.indexOf(",")&&(this.target="1,"+parseFloat(this.target))):(-1==this.fa.indexOf(",")&&(this.fa=parseFloat(this.fa)+","+parseFloat(this.fa)),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+","+parseFloat(this.target)));var d=parseFloat(this.fa.split(",")[0]),l=parseFloat(this.fa.split(",")[1]);this.Zg=!0;var n=parseFloat(this.target.split(",")[0]); if(0==n||isNaN(n))this.Zg=!1;3==this.Y&&(this.Zg=!1);this.$g=!0;var k=parseFloat(this.target.split(",")[1]);if(0==k||isNaN(k))this.$g=!1;2==this.Y&&(this.$g=!1);1==this.Ce?(this.loop&&(this.j.width=this.fg,this.j.height=this.eg),a||(this.reverse?(this.j.width*=n,this.j.height*=k):(this.j.width*=d,this.j.height*=l)),this.fb=this.j.width,this.zd=this.j.height,this.ob=this.fb,this.md=this.zd,this.reverse?(this.nb=this.fb*d/n,this.kd=this.zd*l/k):(this.nb=this.fb*n,this.kd=this.zd*k)):(a||(this.reverse? (this.j.width=this.fg*n,this.j.height=this.eg*k):(this.j.width=this.fg*d,this.j.height=this.eg*l)),this.fb=this.j.width,this.zd=this.j.height,this.ob=this.fb,this.md=this.zd,this.reverse?(this.nb=this.fg*d,this.kd=this.eg*l):(this.nb=this.fg*n,this.kd=this.eg*k));this.Wb=this.nb;this.ve=this.kd;-6==this.Ma&&(this.Wb=this.fg*d,this.ve=this.eg*l)}else if(4==this.Y)b&&(this.target=Ha(this.j.K)),"current"==this.fa||this.reverse||1==this.Ma||(this.j.K=u(parseFloat(this.fa.split(",")[0]))),1==this.Ce?(this.loop&& (this.j.K=this.lo),this.fb=this.j.K,this.nb=this.reverse?this.j.K-u(parseFloat(this.target.split(",")[0])):this.j.K+u(parseFloat(this.target.split(",")[0]))):this.reverse?(this.j.K=u(parseFloat(this.target.split(",")[0])),this.fb=this.j.K,this.nb=this.lo):(this.j.K=this.lo,this.fb=this.j.K,this.nb=u(parseFloat(this.target.split(",")[0]))),this.ob=this.fb,this.Wb=Ha(this.nb),-6==this.Ma&&(this.Wb=Ha(this.lo)),this.no=u(this.Wb);else if(5==this.Y)"current"==this.fa&&(this.fa=this.j.opacity),b&&(this.target= ""+this.j.opacity),a||this.reverse||1==this.Ma||(this.j.opacity=parseFloat(this.fa.split(",")[0])/100),1==this.Ce?(this.loop&&(this.j.opacity=this.sE),this.ob=this.fb=this.j.opacity,this.nb=this.reverse?-parseFloat(this.target.split(",")[0])/100:parseFloat(this.target.split(",")[0])/100,this.Wb=this.ob+this.nb):(this.fb=this.j.opacity,this.reverse?(this.ob=parseFloat(this.target.split(",")[0])/100,this.nb=parseFloat(this.fa.split(",")[0])/100):(this.ob=this.fb,this.nb=parseFloat(this.target.split(",")[0])/ 100),this.Wb=this.nb),-6==this.Ma&&(this.Wb=this.sE);else if(6==this.Y)isNaN(this.value)&&(this.value=0),"current"==this.fa&&(this.fa=""+this.value),b&&(this.target=""+this.value),a||this.reverse||1==this.Ma||(this.value=parseFloat(this.fa.split(",")[0])),1==this.Ce?(this.loop&&(this.value=this.Du),a||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.fa.split(",")[0])),this.fb=this.value,this.nb=this.reverse?this.fb-parseFloat(this.target.split(",")[0]):this.fb+parseFloat(this.target.split(",")[0])): (a||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.fa.split(",")[0])),this.fb=this.value,this.nb=this.reverse?parseFloat(this.fa.split(",")[0]):parseFloat(this.target.split(",")[0])),this.ob=this.fb,this.Wb=this.nb,-6==this.Ma&&(this.Wb=this.Du);else if(7==this.Y){b&&(this.target=this.j.width+","+this.j.height);"current"==this.fa||this.reverse||1==this.Ma||(this.j.width=parseFloat(this.fa.split(",")[0]),this.j.height=parseFloat(this.fa.split(",")[1]));this.Zg=!0;n= parseFloat(this.target.split(",")[0]);if(0>n||isNaN(n))this.Zg=!1;this.$g=!0;k=parseFloat(this.target.split(",")[1]);if(0>k||isNaN(k))this.$g=!1;1==this.Ce?(this.loop&&(this.j.width=this.fg,this.j.height=this.eg),this.fb=this.j.width,this.zd=this.j.height,this.reverse?(this.nb=this.fb-parseFloat(this.target.split(",")[0]),this.kd=this.zd-parseFloat(this.target.split(",")[1])):(this.nb=this.fb+parseFloat(this.target.split(",")[0]),this.kd=this.zd+parseFloat(this.target.split(",")[1]))):(a||(this.reverse? (this.j.width=parseFloat(this.target.split(",")[0]),this.j.height=parseFloat(this.target.split(",")[1])):(this.j.width=this.fg,this.j.height=this.eg)),this.fb=this.j.width,this.zd=this.j.height,this.reverse?(this.nb=this.fg,this.kd=this.eg):(this.nb=parseFloat(this.target.split(",")[0]),this.kd=parseFloat(this.target.split(",")[1])));this.ob=this.fb;this.md=this.zd;this.Wb=this.nb;this.ve=this.kd;-6==this.Ma&&(this.Wb=this.fg,this.ve=this.eg)}this.Qc=this.bb=this.ob;this.Ad=this.md;this.Nb=parseFloat(this.Cm.split(",")[0]); this.oc=parseFloat(this.Cm.split(",")[1]);if(0>this.Nb||isNaN(this.Nb))this.Nb=0;if(0>this.oc||isNaN(this.oc))this.oc=0;a&&(this.fa="current");b&&(this.target="current");c&&(this.target="OBJ")};b.aK=function(b,c){switch(this.ql){case 0:return 1*b/c+0;case 1:return 1*(b/=c)*b+0;case 2:return-1*(b/=c)*(b-2)+0;case 3:return 1>(b/=c/2)?.5*b*b+0:-.5*(--b*(b-2)-1)+0;case 4:return 1*(b/=c)*b*b+0;case 5:return 1*((b=b/c-1)*b*b+1)+0;case 6:return 1>(b/=c/2)?.5*b*b*b+0:.5*((b-=2)*b*b+2)+0;case 7:return 1*(b/= c)*b*b*b+0;case 8:return-1*((b=b/c-1)*b*b*b-1)+0;case 9:return 1>(b/=c/2)?.5*b*b*b*b+0:-.5*((b-=2)*b*b*b-2)+0;case 10:return 1*(b/=c)*b*b*b*b+0;case 11:return 1*((b=b/c-1)*b*b*b*b+1)+0;case 12:return 1>(b/=c/2)?.5*b*b*b*b*b+0:.5*((b-=2)*b*b*b*b+2)+0;case 13:return-1*(Math.sqrt(1-(b/=c)*b)-1)+0;case 14:return 1*Math.sqrt(1-(b=b/c-1)*b)+0;case 15:return 1>(b/=c/2)?-.5*(Math.sqrt(1-b*b)-1)+0:.5*(Math.sqrt(1-(b-=2)*b)+1)+0;case 16:var d=0;0==d&&(d=1.70158);return 1*(b/=c)*b*((d+1)*b-d)+0;case 17:return d= 0,0==d&&(d=1.70158),1*((b=b/c-1)*b*((d+1)*b+d)+1)+0;case 18:return d=0,0==d&&(d=1.70158),1>(b/=c/2)?.5*b*b*(((d*=1.525)+1)*b-d)+0:.5*((b-=2)*b*(((d*=1.525)+1)*b+d)+2)+0;case 19:var h=0,l=0;if(0==b)break;if(1==(b/=c))return 1;0==l&&(l=.3*c);0==h||hb?-.5*h*Math.pow(2,10*--b)*Math.sin(2*(b*c-d)*Math.PI/l)+0:h*Math.pow(2,-10*--b)*Math.sin(2*(b*c-d)*Math.PI/l)*.5+1;case 22:return 1-a(c-b,c)+0;case 23:return a(b,c);case 24:return b=this.duration+this.Nb&&(a=this.no),this.j.K=Ja(a)):5==this.Y?(1==this.Ce&&this.j.opacity!==this.Qc&&(this.ob=this.j.opacity),this.j.opacity=this.ob+(this.Wb-this.ob)*a,this.Qc=this.j.opacity):6==this.Y?this.value=this.ob+(this.Wb-this.ob)*a:7==this.Y&&(1==this.Ce&&(this.j.width!== this.Qc&&(this.ob=this.j.width),this.j.height!==this.Ad&&(this.md=this.j.height)),this.Zg&&(this.j.width=this.ob+(this.Wb-this.ob)*a),this.$g&&(this.j.height=this.md+(this.ve-this.md)*a),this.Qc=this.j.width,this.Ad=this.j.height),this.j.Ea()),this.ga>=this.duration+this.Nb&&(this.FJ(b),this.j.Ea(),0==this.mh&&(this.mh=!0,this.c.trigger(hg.prototype.C.ir,this.j),this.fq=!0))))};b.FJ=function(a){switch(this.Y){case 0:this.j.x=this.Wb;this.j.y=this.ve;break;case 1:this.Zg&&(this.j.width=this.Wb);this.j.height= this.$g?this.ve:this.j.width*this.je;break;case 2:this.j.width=this.Wb;break;case 3:this.j.height=this.ve;break;case 4:this.j.K=Ja(this.no);this.bb=this.j.K;break;case 5:this.j.opacity=this.Wb;break;case 6:this.value=this.Wb;break;case 7:this.Zg&&(this.j.width=this.Wb),this.$g&&(this.j.height=this.ve)}this.ga>=this.duration+this.Nb+this.oc&&(0==this.Ma?(this.reverse=this.ea=!1,this.ga=this.duration+this.Nb+this.oc):1==this.Ma?(this.ga=0,this.init(),this.ea=!0):2==this.Ma?a?(this.reverse=!1,this.init()): (this.reverse=!this.reverse,this.ga=0,this.init(),this.ea=!0):3==this.Ma?this.c.Ch(this.j):4==this.Ma?(this.loop=!0,this.ga=0,this.init(),this.ea=!0):5==this.Ma?a?(this.reverse=!1,this.init()):0>=this.qf?(this.ga=this.duration+this.Nb+this.oc,this.ea=!1):(this.reverse?(--this.qf,this.reverse=!1):(--this.qf,this.reverse=!0),this.ga=0,this.init(),this.ea=!0):-6==this.Ma?(this.Ma=this.nx,this.reverse=!1,this.ga=0,this.ea=!1):6==this.Ma&&(this.reverse=!1,this.ga=this.duration+this.Nb+this.oc,this.ea= !1));0==this.Wn&&(this.Wn=!0,this.c.trigger(hg.prototype.C.zG,this.j),this.dq=!0)};c.C={};b=c.C;b.Og=function(){return this.ea};b.eO=function(a,b){var c=[];jc[this.group].forEach(function(a){c.push(a.ga/(a.duration+a.Nb+a.oc))});return dc(Math.min.apply(null,c),a,b)};b.Bz=function(a,b){return dc(this.ga/(this.duration+this.Nb+this.oc),a,b)};b.jv=function(){if(!1===this.gq)return this.Yn};b.rA=function(){if(!1===this.hq)return this.Zn};b.ir=function(){if(!1===this.fq)return this.mh};b.zG=function(){if(!1=== this.dq)return this.Wn};c.G={};var d=c.G;d.sr=function(a){this.ea=1===a};d.XO=function(a,b){""===b&&(b=this.group);(1===a||jc[b].every(function(a){return!a.ea}))&&jc[b].forEach(function(b){1===a?d.FF.apply(b):d.xr.apply(b)})};d.YO=function(a,b){""===b&&(b=this.group);jc[b].forEach(function(b){d.Um.apply(b,[a])})};d.IO=function(a,b,c){""===c&&(c=this.group);(1===a||jc[c].every(function(a){return!a.ea}))&&jc[c].forEach(function(c){1===a?d.GF.apply(c,[b]):d.qr.apply(c,[b])})};d.FF=function(){this.loop= 4===this.Ma;5==this.Ma&&(this.qf=1);6==this.Ma||-6==this.Ma?this.ga=this.duration+this.oc+this.Nb&&(this.reverse=!0,this.ga=0,this.qf=2,this.init(),this.ea=!0):(this.reverse= !0,this.ga=0,this.init(),this.ea=!0)};d.xr=function(){this.ea||(this.loop=4===this.Ma,5==this.Ma&&(this.qf=1),6==this.Ma||-6==this.Ma?this.ga=this.duration+this.oc+this.Nb&&(this.reverse=!0,this.ga=0,this.qf=2,this.init(),this.ea=!0):(this.reverse=!0,this.ga=0,this.init(),this.ea=!0))};d.DA=function(a){this.duration=a};d.NA=function(a){this.Cm= a;this.Nb=parseFloat(this.Cm.split(",")[0]);this.oc=parseFloat(this.Cm.split(",")[1]);if(0>this.Nb||isNaN(this.Nb))this.Nb=0;if(0>this.oc||isNaN(this.oc))this.oc=0};d.zv=function(a){"string"==typeof a?(this.target=a,this.nb=parseFloat(a.split(",")[0]),this.kd=parseFloat(a.split(",")[1])):this.nb=this.target=a;this.ea||this.init()};d.VO=function(a){a&&(a=a.op())&&(this.ff=a,this.target="OBJ")};d.MH=function(a){2==this.Y||3==this.Y||4==this.Y||5==this.Y||6==this.Y?this.nb=this.target="string"==typeof a? parseFloat(a.split(",")[0]):""+a+","+this.kd:(this.target=String(a)+","+this.target.split(",")[1],this.nb=parseFloat(this.target.split(",")[0]),this.kd=parseFloat(this.target.split(",")[1]));this.ea||(this.Jk(),this.init())};d.NH=function(a){2==this.Y||3==this.Y||4==this.Y||5==this.Y||6==this.Y?this.nb=this.target="string"==typeof a?parseFloat(a)+"":this.nb+","+a:(this.target=this.target.split(",")[0]+","+String(a),this.nb=parseFloat(this.target.split(",")[0]),this.kd=parseFloat(this.target.split(",")[1])); this.ea||(this.Jk(),this.init())};d.uv=function(a){"string"==typeof a?(this.fa=a,this.fb=parseFloat(a.split(",")[0]),this.zd=parseFloat(a.split(",")[1])):(this.fa=""+a,this.fb=a);6==this.Y&&(this.value=this.fb);this.ea||(this.Jk(),this.init())};d.SO=function(a){2==this.Y||3==this.Y||4==this.Y||5==this.Y||6==this.Y?this.fb=this.fa="string"==typeof a?parseFloat(a):""+a+","+this.zd:(""==this.fa&&(this.fa="current"),this.fa=String(a)+","+("current"==this.fa?this.Tk:this.fa.split(",")[1]),this.fb=parseFloat(this.fa.split(",")[0]), this.zd=parseFloat(this.fa.split(",")[1]));6==this.Y&&(this.value=this.fb);this.ea||(this.Jk(),this.init())};d.TO=function(a){2==this.Y||3==this.Y||4==this.Y||5==this.Y||6==this.Y?this.fb=this.fa="string"==typeof a?parseFloat(a):""+this.fb+","+a:(""==this.fa&&(this.fa="current"),this.fa=("current"==this.fa?this.Sk:this.fa.split(",")[0])+","+String(a),this.fb=parseFloat(this.fa.split(",")[0]),this.zd=parseFloat(this.fa.split(",")[1]));this.ea||(this.Jk(),this.init())};d.RH=function(a){this.value=a}; d.PH=function(a){this.Y=a};d.tH=function(a){this.ql=a};d.UO=function(a){this.Ma=a};d.FH=function(a,b,c,h,l,n,k,m){this.Y=a;this.Ma=b;this.ql=c;d.uv.apply(this,[h]);d.zv.apply(this,[l]);d.DA.apply(this,[n]);d.NA.apply(this,[k]);this.Ce=m;this.Jk()};c.H={};c=c.H;c.cH=function(a){a.V(this.ga/(this.duration+this.Nb+this.oc))};c.CO=function(a){a.V(this.ga)};c.Nu=function(a){a.V(this.duration)};c.nO=function(a){a.V(this.Nb)};c.jO=function(a){a.V(this.oc)};c.TA=function(a){a.Xa(this.target)};c.Kv=function(a){a.V(this.value)}; c.fj=function(a){a.ja(this.fj?1:0)}})();function ig(a){this.c=a;this.Py=this.iu=this.zq=this.Oy=0} (function(){function a(){}var c=ig.prototype;c.ua=function(a){this.behavior=a;this.c=a.c};c.ua.prototype.ka=function(){};c.la=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.c=a.c};var b=c.la.prototype;b.ka=function(){this.enabled=0!==this.T[0]};b.kc=function(){return{smg:this.behavior.Oy,ss:this.behavior.zq,se:this.behavior.iu,smd:this.behavior.Py}};b.Bc=function(a){this.behavior.Oy=a.smg;this.behavior.zq=a.ss;this.behavior.iu=a.se;this.behavior.Py=a.smd};b.sc=function(){};b.jo= function(){if(this.enabled){var a=this.behavior.At.yh(),b=0,c=0,g,h,l,n=0;g=0;for(h=a.length;g=this.behavior.zq&&h