123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- // Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
- 'use strict';var aa,ba,ca,A,da,ea,ja,K,ka,la,na,oa,pa,O,qa,ra,sa,va,wa,ya,za,R,Ba,Ca,Da,Fa,Ga,U,Ha,Ia,Ja,Ka,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,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,ec={},fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype});
- (function(){function h(a,b,e,k){this.set(a,b,e,k)}function n(){this.xc=this.wc=this.zc=this.yc=this.Nc=this.Mc=this.tc=this.rc=0}function f(a,b,e,k){a<b?e<k?(v=a<e?a:e,m=b>k?b:k):(v=a<k?a:k,m=b>e?b:e):e<k?(v=b<e?b:e,m=a>k?a:k):(v=b<k?b:k,m=a>e?a:e)}function q(){this.items=this.ud=null;this.gh=0;z&&(this.ud=new Set);this.rg=[];this.me=!0}function t(a){C[L++]=a}function p(){this.X=this.Uj=this.y=this.Ek=0}function c(a){this.ag=[];this.Vn=this.Xn=this.Yn=this.Wn=0;this.Jh(a)}function b(a,b){this.Kk=
- a;this.Jk=b;this.cells={}}function w(a,b){this.Kk=a;this.Jk=b;this.cells={}}function d(a,b,e){var k;return S.length?(k=S.pop(),k.sl=a,k.x=b,k.y=e,k):new aa(a,b,e)}function a(a,b,e){this.sl=a;this.x=b;this.y=e;this.fb=new ba}function e(a,b,e){var k;return F.length?(k=F.pop(),k.sl=a,k.x=b,k.y=e,k):new ca(a,b,e)}function l(a,b,e){this.sl=a;this.x=b;this.y=e;this.fb=[];this.Of=!0;this.sd=new ba;this.xg=!1}function g(a,b){return a.ed-b.ed}A=function(a){window.console&&window.console.log&&window.console.log(a)};
- da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};K=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,b){return a<b?a:b};pa=Math.PI;O=function(a){return 0<=a?a|0:(a|0)-1};qa=function(a){var b=a|0;return b===a?b:b+1};ra=function(a,b,e,k,g,l,d,m){var c,
- w,r,v;a<e?(w=a,c=e):(w=e,c=a);g<d?(v=g,r=d):(v=d,r=g);if(c<v||w>r)return!1;b<k?(w=b,c=k):(w=k,c=b);l<m?(v=l,r=m):(v=m,r=l);if(c<v||w>r)return!1;c=g-a+d-e;w=l-b+m-k;a=e-a;b=k-b;g=d-g;l=m-l;m=na(b*g-l*a);return na(g*w-l*c)>m?!1:na(a*w-b*c)<=m};h.prototype.set=function(a,b,e,k){this.left=a;this.top=b;this.right=e;this.bottom=k};h.prototype.Dg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};h.prototype.width=function(){return this.right-this.left};h.prototype.height=
- function(){return this.bottom-this.top};h.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};h.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)};h.prototype.Bc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};h.prototype.Ig=function(a){return this.left===a.left&&this.top===a.top&&this.right===
- a.right&&this.bottom===a.bottom};sa=h;n.prototype.Ih=function(a){this.rc=a.left;this.tc=a.top;this.Mc=a.right;this.Nc=a.top;this.yc=a.right;this.zc=a.bottom;this.wc=a.left;this.xc=a.bottom};n.prototype.nq=function(a,b){if(0===b)this.Ih(a);else{var e=Math.sin(b),k=Math.cos(b),g=a.left*e,l=a.top*e,d=a.right*e,e=a.bottom*e,m=a.left*k,c=a.top*k,w=a.right*k,k=a.bottom*k;this.rc=m-l;this.tc=c+g;this.Mc=w-l;this.Nc=c+d;this.yc=w-e;this.zc=k+d;this.wc=m-e;this.xc=k+g}};n.prototype.offset=function(a,b){this.rc+=
- a;this.tc+=b;this.Mc+=a;this.Nc+=b;this.yc+=a;this.zc+=b;this.wc+=a;this.xc+=b;return this};var v=0,m=0;n.prototype.$n=function(a){f(this.rc,this.Mc,this.yc,this.wc);a.left=v;a.right=m;f(this.tc,this.Nc,this.zc,this.xc);a.top=v;a.bottom=m};n.prototype.Bc=function(a,b){var e=this.rc,k=this.tc,g=this.Mc-e,l=this.Nc-k,d=this.yc-e,m=this.zc-k,c=a-e,w=b-k,r=g*g+l*l,v=g*d+l*m,l=g*c+l*w,f=d*d+m*m,h=d*c+m*w,u=1/(r*f-v*v),g=(f*l-v*h)*u,r=(r*h-v*l)*u;if(0<=g&&0<r&&1>g+r)return!0;g=this.wc-e;l=this.xc-k;r=g*
- g+l*l;v=g*d+l*m;l=g*c+l*w;u=1/(r*f-v*v);g=(f*l-v*h)*u;r=(r*h-v*l)*u;return 0<=g&&0<r&&1>g+r};va=n;wa=function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a};ya=function(a,b){var e,k;b=O(b);if(!(0>b||b>=a.length)){e=b;for(k=a.length-1;e<k;e++)a[e]=a[e+1];za(a,k)}};za=function(a,b){a.length=b};R=function(a){za(a,0)};Ba=function(a,b){R(a);var e,k;e=0;for(k=b.length;e<k;++e)a[e]=b[e]};Ca=function(a,b){a.push.apply(a,b)};Da=function(a,b){var e,k;e=0;for(k=a.length;e<k;++e)if(a[e]===b)return e;
- return-1};Fa=function(a,b){var e=Da(a,b);-1!==e&&ya(a,e)};Ga=function(a,b,e){return a<b?b:a>e?e:a};U=function(a){return a/(180/pa)};Ha=function(a){return 180/pa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ka=function(a){return Ia(Ha(a))};Na=function(a){return Ja(U(a))};Oa=function(a,b,e,k){return Math.atan2(k-b,e-a)};Pa=function(a,b){if(a===b)return 0;var e=Math.sin(a),k=Math.cos(a),g=Math.sin(b),l=Math.cos(b),e=e*g+k*l;return 1<=e?0:-1>=e?pa:Math.acos(e)};
- Qa=function(a,b,e){var k=Math.sin(a),g=Math.cos(a),l=Math.sin(b),d=Math.cos(b);return Math.acos(k*l+g*d)>e?0<g*l-k*d?Ja(a+e):Ja(a-e):Ja(b)};Ra=function(a,b){var e=Math.sin(a),k=Math.cos(a),g=Math.sin(b),l=Math.cos(b);return 0>=k*g-e*l};Sa=function(a,b,e,k,g,l){if(0===e)return l?a:b;var d=Math.sin(e);e=Math.cos(e);a-=k;b-=g;var m=a*d;a=a*e-b*d;b=b*e+m;return l?a+k:b+g};Ta=function(a,b,e,k){a=e-a;b=k-b;return Math.sqrt(a*a+b*b)};Ya=function(a,b){return!a!==!b};Za=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;
- return!1};$a=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var u=+new Date;ab=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()-u};var k=!1,r=k=!1,ia=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
- k=!k&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),ia=window.c2ejecta);var z=!k&&!ia&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.Md()?!1:z?this.ud.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(z)this.ud.has(a)||(this.ud.add(a),this.me=!1);else{var b=a.toString(),e=this.items;e?e.hasOwnProperty(b)||(e[b]=a,this.gh++,this.me=!1):(this.items={},this.items[b]=
- a,this.gh=1,this.me=!1)}};q.prototype.remove=function(a){if(!this.Md())if(z)this.ud.has(a)&&(this.ud["delete"](a),this.me=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.gh--,this.me=!1)}};q.prototype.clear=function(){this.Md()||(z?this.ud.clear():(this.items=null,this.gh=0),R(this.rg),this.me=!0)};q.prototype.Md=function(){return 0===this.count()};q.prototype.count=function(){return z?this.ud.size:this.gh};var C=null,L=0;q.prototype.$v=function(){if(!this.me){if(z)R(this.rg),
- C=this.rg,L=0,this.ud.forEach(t),C=null,L=0;else{var a=this.rg;R(a);var b,e=0,k=this.items;if(k)for(b in k)k.hasOwnProperty(b)&&(a[e++]=k[b])}this.me=!0}};q.prototype.Ke=function(){this.$v();return this.rg};ba=q;new ba;bb=function(a,b){z?cb(a,b.ud):db(a,b.Ke())};cb=function(a,b){var e,k,g,l;k=e=0;for(g=a.length;e<g;++e)l=a[e],b.has(l)||(a[k++]=l);za(a,k)};db=function(a,b){var e,k,g,l;k=e=0;for(g=a.length;e<g;++e)l=a[e],-1===Da(b,l)&&(a[k++]=l);za(a,k)};p.prototype.add=function(a){this.y=a-this.Ek;
- this.Uj=this.X+this.y;this.Ek=this.Uj-this.X-this.y;this.X=this.Uj};p.prototype.reset=function(){this.X=this.Uj=this.y=this.Ek=0};eb=p;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.Jh=function(a){this.aq=a;this.Bj=a.length/2;this.ag.length=a.length;this.Fk=this.Gk=-1;this.co=0};c.prototype.Pu=function(){return!this.aq.length};c.prototype.Za=function(){for(var a=this.ag,b=a[0],e=b,k=a[1],g=k,l,d,m=1,c=this.Bj;m<c;++m)d=2*m,l=a[d],d=a[d+1],l<b&&(b=l),l>e&&(e=l),d<k&&
- (k=d),d>g&&(g=d);this.Wn=b;this.Xn=e;this.Yn=k;this.Vn=g};c.prototype.Ih=function(a,b,e){this.ag.length=8;this.Bj=4;var k=this.ag;k[0]=a.left-b;k[1]=a.top-e;k[2]=a.right-b;k[3]=a.top-e;k[4]=a.right-b;k[5]=a.bottom-e;k[6]=a.left-b;k[7]=a.bottom-e;this.Gk=a.right-a.left;this.Fk=a.bottom-a.top;this.Za()};c.prototype.Gs=function(a,b,e){if(this.Gk!==a||this.Fk!==b||this.co!==e){this.Gk=a;this.Fk=b;this.co=e;var k,g,l,d,m,c=0,w=1,r=this.aq,v=this.ag;0!==e&&(c=Math.sin(e),w=Math.cos(e));e=0;for(l=this.Bj;e<
- l;e++)k=2*e,g=k+1,d=r[k]*a,m=r[g]*b,v[k]=d*w-m*c,v[g]=m*w+d*c;this.Za()}};c.prototype.Bc=function(a,b){var e=this.ag;if(a===e[0]&&b===e[1])return!0;var k,g,l,d=this.Bj,m=this.Wn-110,c=this.Yn-101,w=this.Xn+131,r=this.Vn+120,v,f,h=0,u=0;for(k=0;k<d;k++)g=2*k,l=(k+1)%d*2,v=e[g],g=e[g+1],f=e[l],l=e[l+1],ra(m,c,a,b,v,g,f,l)&&h++,ra(w,r,a,b,v,g,f,l)&&u++;return 1===h%2||1===u%2};gb=c;b.prototype.re=function(a,b,e){var k;k=this.cells[a];return k?(k=k[b])?k:e?(k=d(this,a,b),this.cells[a][b]=k):null:e?(k=
- d(this,a,b),this.cells[a]={},this.cells[a][b]=k):null};b.prototype.Eb=function(a){return O(a/this.Kk)};b.prototype.Fb=function(a){return O(a/this.Jk)};b.prototype.update=function(a,b,e){var k,g,l,d,m;if(b)for(k=b.left,g=b.right;k<=g;++k)for(l=b.top,d=b.bottom;l<=d;++l)if(!e||!e.Bc(k,l))if(m=this.re(k,l,!1))m.remove(a),m.Md()&&(m.fb.clear(),1E3>S.length&&S.push(m),this.cells[k][l]=null);if(e)for(k=e.left,g=e.right;k<=g;++k)for(l=e.top,d=e.bottom;l<=d;++l)b&&b.Bc(k,l)||this.re(k,l,!0).El(a)};b.prototype.cq=
- function(a,b){var e,k,l,g,d,m;e=this.Eb(a.left);l=this.Fb(a.top);k=this.Eb(a.right);for(d=this.Fb(a.bottom);e<=k;++e)for(g=l;g<=d;++g)(m=this.re(e,g,!1))&&m.dump(b)};hb=b;w.prototype.re=function(a,b,k){var g;g=this.cells[a];return g?(g=g[b])?g:k?(g=e(this,a,b),this.cells[a][b]=g):null:k?(g=e(this,a,b),this.cells[a]={},this.cells[a][b]=g):null};w.prototype.Eb=function(a){return O(a/this.Kk)};w.prototype.Fb=function(a){return O(a/this.Jk)};w.prototype.update=function(a,b,e){var k,g,l,d,m;if(b)for(k=
- b.left,g=b.right;k<=g;++k)for(l=b.top,d=b.bottom;l<=d;++l)if(!e||!e.Bc(k,l))if(m=this.re(k,l,!1))m.remove(a),m.Md()&&(m.reset(),1E3>F.length&&F.push(m),this.cells[k][l]=null);if(e)for(k=e.left,g=e.right;k<=g;++k)for(l=e.top,d=e.bottom;l<=d;++l)b&&b.Bc(k,l)||this.re(k,l,!0).El(a)};w.prototype.cq=function(a,b,e,k,g){var l,d;a=this.Eb(a);b=this.Fb(b);e=this.Eb(e);for(l=this.Fb(k);a<=e;++a)for(k=b;k<=l;++k)(d=this.re(a,k,!1))&&d.dump(g)};w.prototype.Wu=function(a){var b,e,k,g,l;b=a.left;k=a.top;e=a.right;
- for(g=a.bottom;b<=e;++b)for(a=k;a<=g;++a)if(l=this.re(b,a,!1))l.Of=!1};ib=w;var S=[];a.prototype.Md=function(){return this.fb.Md()};a.prototype.El=function(a){this.fb.add(a)};a.prototype.remove=function(a){this.fb.remove(a)};a.prototype.dump=function(a){Ca(a,this.fb.Ke())};aa=a;var F=[];l.prototype.Md=function(){if(!this.fb.length)return!0;if(this.fb.length>this.sd.count())return!1;this.bl();return!0};l.prototype.El=function(a){this.sd.contains(a)?(this.sd.remove(a),this.sd.Md()&&(this.xg=!1)):this.fb.length?
- (this.fb[this.fb.length-1].md()>a.md()&&(this.Of=!1),this.fb.push(a)):(this.fb.push(a),this.Of=!0)};l.prototype.remove=function(a){this.sd.add(a);this.xg=!0;30<=this.sd.count()&&this.bl()};l.prototype.bl=function(){this.xg&&(this.sd.count()===this.fb.length?this.reset():(bb(this.fb,this.sd),this.sd.clear(),this.xg=!1))};l.prototype.ot=function(){this.Of||(this.fb.sort(g),this.Of=!0)};l.prototype.reset=function(){R(this.fb);this.Of=!0;this.sd.clear();this.xg=!1};l.prototype.dump=function(a){this.bl();
- this.ot();this.fb.length&&a.push(this.fb)};ca=l;var M="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":M[a-1]};kb=function(a,b,e){if(e)switch(a.yb=e.ONE,a.ub=e.ONE_MINUS_SRC_ALPHA,b){case 1:a.yb=e.ONE;a.ub=e.ONE;break;case 3:a.yb=e.ONE;a.ub=e.ZERO;break;case 4:a.yb=e.ONE_MINUS_DST_ALPHA;a.ub=e.ONE;break;case 5:a.yb=e.DST_ALPHA;a.ub=e.ZERO;break;case 6:a.yb=e.ZERO;a.ub=e.SRC_ALPHA;
- break;case 7:a.yb=e.ONE_MINUS_DST_ALPHA;a.ub=e.ZERO;break;case 8:a.yb=e.ZERO;a.ub=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.yb=e.DST_ALPHA;a.ub=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.yb=e.ONE_MINUS_DST_ALPHA,a.ub=e.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 gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(h){var n=new gc(3);h&&(n[0]=h[0],n[1]=h[1],n[2]=h[2]);return n}function ic(h){var n=new gc(16);h&&(n[0]=h[0],n[1]=h[1],n[2]=h[2],n[3]=h[3],n[4]=h[4],n[5]=h[5],n[6]=h[6],n[7]=h[7],n[8]=h[8],n[9]=h[9],n[10]=h[10],n[11]=h[11],n[12]=h[12],n[13]=h[13],n[14]=h[14],n[15]=h[15]);return n}
- function jc(h,n){n[0]=h[0];n[1]=h[1];n[2]=h[2];n[3]=h[3];n[4]=h[4];n[5]=h[5];n[6]=h[6];n[7]=h[7];n[8]=h[8];n[9]=h[9];n[10]=h[10];n[11]=h[11];n[12]=h[12];n[13]=h[13];n[14]=h[14];n[15]=h[15]}function kc(h,n){var f=n[0],q=n[1];n=n[2];h[0]*=f;h[1]*=f;h[2]*=f;h[3]*=f;h[4]*=q;h[5]*=q;h[6]*=q;h[7]*=q;h[8]*=n;h[9]*=n;h[10]*=n;h[11]*=n}
- function lc(h,n,f,q){q||(q=ic());var t,p,c,b,w,d,a,e,l=h[0],g=h[1];h=h[2];p=f[0];c=f[1];t=f[2];f=n[1];d=n[2];l===n[0]&&g===f&&h===d?(h=q,h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):(f=l-n[0],d=g-n[1],a=h-n[2],e=1/Math.sqrt(f*f+d*d+a*a),f*=e,d*=e,a*=e,n=c*a-t*d,t=t*f-p*a,p=p*d-c*f,(e=Math.sqrt(n*n+t*t+p*p))?(e=1/e,n*=e,t*=e,p*=e):p=t=n=0,c=d*p-a*t,b=a*n-f*p,w=f*t-d*n,(e=Math.sqrt(c*c+b*b+w*w))?(e=1/e,c*=e,b*=e,w*=e):w=b=c=0,
- q[0]=n,q[1]=c,q[2]=f,q[3]=0,q[4]=t,q[5]=b,q[6]=d,q[7]=0,q[8]=p,q[9]=w,q[10]=a,q[11]=0,q[12]=-(n*l+t*g+p*h),q[13]=-(c*l+b*g+w*h),q[14]=-(f*l+d*g+a*h),q[15]=1)}
- (function(){function h(b,c,d){this.Nd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.na=!!d;this.Pi=this.Xg=!1;this.Pk=0;this.ik=1;this.qn=1E3;this.iw=(this.qn-this.ik)/32768;this.Hk=hc([0,0,100]);this.fp=hc([0,0,0]);this.Jq=hc([0,1,0]);this.Wh=hc([1,1,1]);this.qo=!0;this.jj=ic();this.oc=ic();this.Ql=ic();this.Ok=ic();this.q=b;this.Ko()}function n(b,c,d){this.q=b;this.Kh=c;this.name=d;this.Fc=b.getAttribLocation(c,"aPos");this.ze=b.getAttribLocation(c,
- "aTex");this.dp=b.getUniformLocation(c,"matP");this.fj=b.getUniformLocation(c,"matMV");this.Sf=b.getUniformLocation(c,"opacity");this.Xl=b.getUniformLocation(c,"colorFill");this.ep=b.getUniformLocation(c,"samplerFront");this.rh=b.getUniformLocation(c,"samplerBack");this.kf=b.getUniformLocation(c,"destStart");this.jf=b.getUniformLocation(c,"destEnd");this.uh=b.getUniformLocation(c,"seconds");this.Zl=b.getUniformLocation(c,"pixelWidth");this.Yl=b.getUniformLocation(c,"pixelHeight");this.qh=b.getUniformLocation(c,
- "layerScale");this.ph=b.getUniformLocation(c,"layerAngle");this.vh=b.getUniformLocation(c,"viewOrigin");this.sh=b.getUniformLocation(c,"scrollPos");this.Au=!!(this.Zl||this.Yl||this.uh||this.rh||this.kf||this.jf||this.qh||this.ph||this.vh||this.sh);this.np=this.op=-999;this.ij=1;this.jp=this.ip=0;this.lp=this.hp=this.gp=1;this.rp=this.qp=this.pp=this.tp=this.sp=this.kp=0;this.Pl=[];this.mp=ic();this.Sf&&b.uniform1f(this.Sf,1);this.Xl&&b.uniform4f(this.Xl,1,1,1,1);this.ep&&b.uniform1i(this.ep,0);this.rh&&
- b.uniform1i(this.rh,1);this.kf&&b.uniform2f(this.kf,0,0);this.jf&&b.uniform2f(this.jf,1,1);this.qh&&b.uniform1f(this.qh,1);this.ph&&b.uniform1f(this.ph,0);this.vh&&b.uniform2f(this.vh,0,0);this.sh&&b.uniform2f(this.sh,0,0);this.uh&&b.uniform1f(this.uh,0);this.$e=!1}function f(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&&b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===
- c[15]}function q(b,c){this.type=b;this.n=c;this.q=c.q;this.Dc=this.zb=this.Mp=0;this.N=this.Lc=null;this.oq=[]}var t=ic();h.prototype.Ko=function(){var b=this.q,c;this.Yo=1;this.ff=this.ue=null;this.ji=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.na?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.Zo=b.ONE;this.Xo=b.ONE_MINUS_SRC_ALPHA;
- this.ek=new Float32Array(8E3*(this.na?3:2));this.Vj=new Float32Array(16E3);this.ym=new Float32Array(32E3);this.xm=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.xm);b.bufferData(b.ARRAY_BUFFER,this.ym.byteLength,b.DYNAMIC_DRAW);this.Vh=Array(4);this.Qh=Array(4);for(c=0;4>c;c++)this.Vh[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Vh[c]),b.bufferData(b.ARRAY_BUFFER,this.ek.byteLength,b.DYNAMIC_DRAW),this.Qh[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Qh[c]),b.bufferData(b.ARRAY_BUFFER,
- this.Vj.byteLength,b.DYNAMIC_DRAW);this.zd=0;this.Du=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Du);for(var d=new Uint16Array(12E3),a=c=0;12E3>c;)d[c++]=a,d[c++]=a+1,d[c++]=a+2,d[c++]=a,d[c++]=a+2,d[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,b.STATIC_DRAW);this.Zf=this.kg=this.Zd=0;this.Da=[];c=this.na?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
- "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.Eg({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}"},c,"<default>");this.Da.push(d);d=this.Eg({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}","<point>");this.Da.push(d);d=this.Eg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Da.push(d);d=this.Eg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
- c,"<fill>");this.Da.push(d);for(var e in mc)mc.hasOwnProperty(e)&&this.Da.push(this.Eg(mc[e],c,e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.yd=[];this.gd=0;this.wb=this.lb=!1;this.mo=this.hh=-1;this.Af=null;this.$k=b.createFramebuffer();this.ni=this.Dj=null;this.Tn=!1;this.na&&(this.ni=b.createRenderbuffer());this.Je=hc([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.Zu=b[0];this.cm=b[1];2048<this.cm&&(this.cm=2048);this.Ob(0)};n.prototype.jn=function(b){f(this.mp,
- b)||(jc(b,this.mp),this.q.uniformMatrix4fv(this.fj,!1,b))};h.prototype.Eg=function(b,c,d){var a=this.q,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,b.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))return a.deleteShader(e),null;var l=a.createShader(a.VERTEX_SHADER);a.shaderSource(l,c);a.compileShader(l);if(!a.getShaderParameter(l,a.COMPILE_STATUS))return a.deleteShader(e),a.deleteShader(l),null;c=a.createProgram();a.attachShader(c,e);a.attachShader(c,l);a.linkProgram(c);
- if(!a.getProgramParameter(c,a.LINK_STATUS))return a.deleteShader(e),a.deleteShader(l),a.deleteProgram(c),null;a.useProgram(c);a.deleteShader(e);a.deleteShader(l);d=new n(a,c,d);d.Xk=b.Xk||0;d.Yk=b.Yk||0;d.lo=!!b.lo;d.$c=!!b.$c;d.Pn=!!b.Pn;d.P=b.P||[];b=0;for(e=d.P.length;b<e;b++)d.P[b][1]=a.getUniformLocation(c,d.P[b][0]),d.Pl.push(0),a.uniform1f(d.P[b][1],0);return d};h.prototype.ol=function(b){var c,d;c=0;for(d=this.Da.length;c<d;c++)if(this.Da[c].name===b)return c;return-1};h.prototype.$p=function(b,
- c,d){var a=this.oc,e=this.jj,l=[0,0,0,0,0,0,0,0];l[0]=a[0]*b+a[4]*c+a[12];l[1]=a[1]*b+a[5]*c+a[13];l[2]=a[2]*b+a[6]*c+a[14];l[3]=a[3]*b+a[7]*c+a[15];l[4]=e[0]*l[0]+e[4]*l[1]+e[8]*l[2]+e[12]*l[3];l[5]=e[1]*l[0]+e[5]*l[1]+e[9]*l[2]+e[13]*l[3];l[6]=e[2]*l[0]+e[6]*l[1]+e[10]*l[2]+e[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],d[0]=(.5*l[4]+.5)*this.width,d[1]=(.5*l[5]+.5)*this.height)};h.prototype.qf=function(b,c,d){if(this.width!==b||this.height!==c||d){this.Ed();d=this.q;
- this.width=b;this.height=c;d.viewport(0,0,b,c);lc(this.Hk,this.fp,this.Jq,this.oc);if(this.na){var a=-b/2;b=b/2;var e=c/2;c=-c/2;var l=this.ik,g=this.qn,v=this.jj;v||(v=ic());var m=b-a,f=c-e,k=g-l;v[0]=2/m;v[1]=0;v[2]=0;v[3]=0;v[4]=0;v[5]=2/f;v[6]=0;v[7]=0;v[8]=0;v[9]=0;v[10]=-2/k;v[11]=0;v[12]=-(a+b)/m;v[13]=-(c+e)/f;v[14]=-(g+l)/k;v[15]=1;this.Wh[0]=1;this.Wh[1]=1}else c=b/c,a=this.ik,b=this.qn,v=this.jj,g=a*Math.tan(45*Math.PI/360),c*=g,e=-c,l=-g,v||(v=ic()),m=c-e,f=g-l,k=b-a,v[0]=2*a/m,v[1]=0,
- v[2]=0,v[3]=0,v[4]=0,v[5]=2*a/f,v[6]=0,v[7]=0,v[8]=(c+e)/m,v[9]=(g+l)/f,v[10]=-(b+a)/k,v[11]=-1,v[12]=0,v[13]=0,v[14]=-(b*a*2)/k,v[15]=0,a=[0,0],b=[0,0],this.$p(0,0,a),this.$p(1,1,b),this.Wh[0]=1/(b[0]-a[0]),this.Wh[1]=-1/(b[1]-a[1]);a=0;for(b=this.Da.length;a<b;a++)e=this.Da[a],e.$e=!1,e.dp&&(d.useProgram(e.Kh),d.uniformMatrix4fv(e.dp,!1,this.jj));d.useProgram(this.Da[this.hh].Kh);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);
- this.ff=this.ue=null;this.ni&&(d.bindFramebuffer(d.FRAMEBUFFER,this.$k),d.bindRenderbuffer(d.RENDERBUFFER,this.ni),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Tn||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.ni),this.Tn=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.Dj=null)}};h.prototype.Ic=function(){lc(this.Hk,this.fp,this.Jq,this.oc);kc(this.oc,this.Wh)};h.prototype.translate=function(b,
- c){if(0!==b||0!==c){this.Je[0]=b;this.Je[1]=c;this.Je[2]=0;var d=this.oc,a=this.Je,e=a[0],l=a[1],a=a[2];d[12]=d[0]*e+d[4]*l+d[8]*a+d[12];d[13]=d[1]*e+d[5]*l+d[9]*a+d[13];d[14]=d[2]*e+d[6]*l+d[10]*a+d[14];d[15]=d[3]*e+d[7]*l+d[11]*a+d[15]}};h.prototype.scale=function(b,c){if(1!==b||1!==c)this.Je[0]=b,this.Je[1]=c,this.Je[2]=1,kc(this.oc,this.Je)};h.prototype.Gj=function(b){if(0!==b){var c=this.oc,d,a=Math.sin(b);b=Math.cos(b);var e=c[0],l=c[1],g=c[2],v=c[3],m=c[4],f=c[5],k=c[6],r=c[7];d?c!==d&&(d[8]=
- c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=e*b+m*a;d[1]=l*b+f*a;d[2]=g*b+k*a;d[3]=v*b+r*a;d[4]=e*-a+m*b;d[5]=l*-a+f*b;d[6]=g*-a+k*b;d[7]=v*-a+r*b}};h.prototype.uc=function(){if(!f(this.Ql,this.oc)){var b=this.Kb();b.type=5;b.N?jc(this.oc,b.N):b.N=ic(this.oc);jc(this.oc,this.Ql);this.wb=this.lb=!1}};h.prototype.Kj=function(b){this.na&&(32760<b&&(b=32760),this.Pk=this.Hk[2]-this.ik-b*this.iw)};q.prototype.Xs=function(){var b=this.q,c=this.n;0!==
- this.zb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,c.$k),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.Pi=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.Pi=!1)};q.prototype.bt=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Lc)};q.prototype.ct=function(){var b=this.q;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Lc);
- b.activeTexture(b.TEXTURE0)};q.prototype.Ys=function(){var b=this.Mp,c=this.n;c.ji=b;c=c.Af;c.Sf&&c.ij!==b&&(c.ij=b,this.q.uniform1f(c.Sf,b))};q.prototype.Ss=function(){this.q.drawElements(this.q.TRIANGLES,this.Dc,this.q.UNSIGNED_SHORT,this.zb)};q.prototype.Us=function(){this.q.blendFunc(this.zb,this.Dc)};q.prototype.dt=function(){var b,c,d,a=this.n.Da,e=this.n.mo;b=0;for(c=a.length;b<c;b++)d=a[b],b===e&&d.fj?(d.jn(this.N),d.$e=!0):d.$e=!1;jc(this.N,this.n.Ok)};q.prototype.Ts=function(){var b=this.q,
- c=this.n;this.Lc?(c.ff===this.Lc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),c.ff=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.$k),c.Pi||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Lc,0)):(c.na||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};q.prototype.Qs=function(){var b=this.q,c=this.zb;0===c?(b.clearColor(this.N[0],this.N[1],this.N[2],this.N[3]),b.clear(b.COLOR_BUFFER_BIT)):
- 1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.N[0],this.N[1],this.N[2],this.N[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};q.prototype.Ws=function(){var b=this.q;0!==this.zb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};q.prototype.Rs=function(){var b=this.q,c=this.n;c.na&&b.disable(b.DEPTH_TEST);var d=c.Da[1];b.useProgram(d.Kh);!d.$e&&d.fj&&(d.jn(c.Ok),d.$e=!0);b.enableVertexAttribArray(d.Fc);b.bindBuffer(b.ARRAY_BUFFER,c.xm);b.vertexAttribPointer(d.Fc,
- 4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.zb/4,this.Dc);d=c.Af;b.useProgram(d.Kh);0<=d.Fc&&(b.enableVertexAttribArray(d.Fc),b.bindBuffer(b.ARRAY_BUFFER,c.Vh[c.zd]),b.vertexAttribPointer(d.Fc,c.na?3:2,b.FLOAT,!1,0,0));0<=d.ze&&(b.enableVertexAttribArray(d.ze),b.bindBuffer(b.ARRAY_BUFFER,c.Qh[c.zd]),b.vertexAttribPointer(d.ze,2,b.FLOAT,!1,0,0));c.na&&b.enable(b.DEPTH_TEST)};q.prototype.Zs=function(){var b=this.q,c=this.n,d=c.Da[this.zb];c.mo=this.zb;c.Af=d;b.useProgram(d.Kh);!d.$e&&d.fj&&(d.jn(c.Ok),
- d.$e=!0);d.Sf&&d.ij!==c.ji&&(d.ij=c.ji,b.uniform1f(d.Sf,c.ji));0<=d.Fc&&(b.enableVertexAttribArray(d.Fc),b.bindBuffer(b.ARRAY_BUFFER,c.Vh[c.zd]),b.vertexAttribPointer(d.Fc,c.na?3:2,b.FLOAT,!1,0,0));0<=d.ze&&(b.enableVertexAttribArray(d.ze),b.bindBuffer(b.ARRAY_BUFFER,c.Qh[c.zd]),b.vertexAttribPointer(d.ze,2,b.FLOAT,!1,0,0))};q.prototype.Vs=function(){var b=this.N;this.q.uniform4f(this.n.Af.Xl,b[0],b[1],b[2],b[3])};q.prototype.$s=function(){var b,c,d=this.n.Af,a=this.q;b=this.N;d.rh&&this.n.ff!==this.Lc&&
- (a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Lc),this.n.ff=this.Lc,a.activeTexture(a.TEXTURE0));var e=b[0];d.Zl&&e!==d.op&&(d.op=e,a.uniform1f(d.Zl,e));e=b[1];d.Yl&&e!==d.np&&(d.np=e,a.uniform1f(d.Yl,e));e=b[2];c=b[3];!d.kf||e===d.ip&&c===d.jp||(d.ip=e,d.jp=c,a.uniform2f(d.kf,e,c));e=b[4];c=b[5];!d.jf||e===d.gp&&c===d.hp||(d.gp=e,d.hp=e,a.uniform2f(d.jf,e,c));e=b[6];d.qh&&e!==d.lp&&(d.lp=e,a.uniform1f(d.qh,e));e=b[7];d.ph&&e!==d.kp&&(d.kp=e,a.uniform1f(d.ph,e));e=b[8];c=b[9];!d.vh||
- e===d.sp&&c===d.tp||(d.sp=e,d.tp=c,a.uniform2f(d.vh,e,c));e=b[10];c=b[11];!d.sh||e===d.pp&&c===d.qp||(d.pp=e,d.qp=c,a.uniform2f(d.sh,e,c));e=b[12];d.uh&&e!==d.rp&&(d.rp=e,a.uniform1f(d.uh,e));if(d.P.length)for(b=0,c=d.P.length;b<c;b++)e=this.oq[b],e!==d.Pl[b]&&(d.Pl[b]=e,a.uniform1f(d.P[b][1],e))};h.prototype.Kb=function(){this.gd===this.yd.length&&this.yd.push(new q(0,this));return this.yd[this.gd++]};h.prototype.Ed=function(){if(0!==this.gd&&!this.q.isContextLost()){var b=this.q;0<this.Zf&&(b.bindBuffer(b.ARRAY_BUFFER,
- this.xm),b.bufferSubData(b.ARRAY_BUFFER,0,this.ym.subarray(0,this.Zf)),c&&0<=c.Fc&&"<point>"===c.name&&b.vertexAttribPointer(c.Fc,4,b.FLOAT,!1,0,0));if(0<this.Zd){var c=this.Af;b.bindBuffer(b.ARRAY_BUFFER,this.Vh[this.zd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.ek.subarray(0,this.Zd));c&&0<=c.Fc&&"<point>"!==c.name&&b.vertexAttribPointer(c.Fc,this.na?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Qh[this.zd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Vj.subarray(0,this.kg));c&&0<=c.ze&&"<point>"!==
- c.name&&b.vertexAttribPointer(c.ze,2,b.FLOAT,!1,0,0)}for(var d,b=0,c=this.gd;b<c;b++)switch(d=this.yd[b],d.type){case 1:d.Ss();break;case 2:d.bt();break;case 3:d.Ys();break;case 4:d.Us();break;case 5:d.dt();break;case 6:d.Ts();break;case 7:d.Qs();break;case 8:d.Rs();break;case 9:d.Zs();break;case 10:d.$s();break;case 11:d.ct();break;case 12:d.Vs();break;case 13:d.Ws();break;case 14:d.Xs()}this.Zf=this.kg=this.Zd=this.gd=0;this.Pi=this.wb=this.lb=!1;this.zd++;4<=this.zd&&(this.zd=0)}};h.prototype.pf=
- function(b){if(b!==this.Yo&&!this.Xg){var c=this.Kb();c.type=3;this.Yo=c.Mp=b;this.wb=this.lb=!1}};h.prototype.$b=function(b){if(b!==this.ue){var c=this.Kb();c.type=2;this.ue=c.Lc=b;this.wb=this.lb=!1}};h.prototype.Ee=function(b,c){if((b!==this.Zo||c!==this.Xo)&&!this.Xg){var d=this.Kb();d.type=4;d.zb=b;d.Dc=c;this.Zo=b;this.Xo=c;this.wb=this.lb=!1}};h.prototype.hq=function(){this.Ee(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};h.prototype.bg=function(b,c,d,a,e,l,g,v){15992<=this.Zd&&this.Ed();var m=this.Zd,
- f=this.kg,k=this.ek,r=this.Vj,h=this.Pk;if(this.lb)this.yd[this.gd-1].Dc+=6;else{var n=this.Kb();n.type=1;n.zb=this.na?m:m/2*3;n.Dc=6;this.lb=!0;this.wb=!1}this.na?(k[m++]=b,k[m++]=c,k[m++]=h,k[m++]=d,k[m++]=a,k[m++]=h,k[m++]=e,k[m++]=l,k[m++]=h,k[m++]=g,k[m++]=v,k[m++]=h):(k[m++]=b,k[m++]=c,k[m++]=d,k[m++]=a,k[m++]=e,k[m++]=l,k[m++]=g,k[m++]=v);r[f++]=0;r[f++]=0;r[f++]=1;r[f++]=0;r[f++]=1;r[f++]=1;r[f++]=0;r[f++]=1;this.Zd=m;this.kg=f};h.prototype.De=function(b,c,d,a,e,l,g,v,m){15992<=this.Zd&&this.Ed();
- var f=this.Zd,k=this.kg,r=this.ek,h=this.Vj,n=this.Pk;if(this.lb)this.yd[this.gd-1].Dc+=6;else{var p=this.Kb();p.type=1;p.zb=this.na?f:f/2*3;p.Dc=6;this.lb=!0;this.wb=!1}var p=m.left,t=m.top,q=m.right;m=m.bottom;this.na?(r[f++]=b,r[f++]=c,r[f++]=n,r[f++]=d,r[f++]=a,r[f++]=n,r[f++]=e,r[f++]=l,r[f++]=n,r[f++]=g,r[f++]=v,r[f++]=n):(r[f++]=b,r[f++]=c,r[f++]=d,r[f++]=a,r[f++]=e,r[f++]=l,r[f++]=g,r[f++]=v);h[k++]=p;h[k++]=t;h[k++]=q;h[k++]=t;h[k++]=q;h[k++]=m;h[k++]=p;h[k++]=m;this.Zd=f;this.kg=k};h.prototype.ov=
- function(b,c,d,a){7996<=this.Zf&&this.Ed();var e=this.Zf,l=this.ym;if(this.wb)this.yd[this.gd-1].Dc++;else{var g=this.Kb();g.type=8;g.zb=e;g.Dc=1;this.wb=!0;this.lb=!1}l[e++]=b;l[e++]=c;l[e++]=d;l[e++]=a;this.Zf=e};h.prototype.Ob=function(b){if(this.hh!==b){if(!this.Da[b]){if(0===this.hh)return;b=0}var c=this.Kb();c.type=9;this.hh=c.zb=b;this.wb=this.lb=!1}};h.prototype.Ch=function(b){b=this.Da[b];return!(!b.kf&&!b.jf)};h.prototype.Bm=function(b){b=this.Da[b];return!!(b.kf||b.jf||b.lo)};h.prototype.Am=
- function(b){return this.Da[b].$c};h.prototype.wv=function(b){b=this.Da[b];return 0!==b.Xk||0!==b.Yk};h.prototype.iu=function(b){return this.Da[b].Xk};h.prototype.ju=function(b){return this.Da[b].Yk};h.prototype.ku=function(b,c){return this.Da[b].P[c][2]};h.prototype.Aj=function(b){return this.Da[b].Pn};h.prototype.gg=function(b,c,d,a,e,l,g,v,m,f,k,r,h,n,p){var t=this.Da[this.hh],q,F;if(t.Au||p.length){q=this.Kb();q.type=10;q.N?jc(this.oc,q.N):q.N=ic();F=q.N;F[0]=c;F[1]=d;F[2]=a;F[3]=e;F[4]=l;F[5]=
- g;F[6]=v;F[7]=m;F[8]=f;F[9]=k;F[10]=r;F[11]=h;F[12]=n;t.rh?q.Lc=b:q.Lc=null;if(p.length)for(d=q.oq,d.length=p.length,b=0,c=p.length;b<c;b++)d[b]=p[b];this.wb=this.lb=!1}};h.prototype.clear=function(b,c,d,a){var e=this.Kb();e.type=7;e.zb=0;e.N||(e.N=ic());e.N[0]=b;e.N[1]=c;e.N[2]=d;e.N[3]=a;this.wb=this.lb=!1};h.prototype.clearRect=function(b,c,d,a){if(!(0>d||0>a)){var e=this.Kb();e.type=7;e.zb=1;e.N||(e.N=ic());e.N[0]=b;e.N[1]=c;e.N[2]=d;e.N[3]=a;this.wb=this.lb=!1}};h.prototype.kq=function(b){if(this.na&&
- (b=!!b,this.Xg!==b)){var c=this.Kb();c.type=14;c.zb=b?1:0;this.wb=this.lb=!1;this.Xg=b;this.Dj=null;this.Xg?this.Ob(2):this.Ob(0)}};h.prototype.jq=function(b){if(this.na){var c=this.Kb();c.type=13;c.zb=b?1:0;this.wb=this.lb=!1}};h.prototype.xo=function(){jc(this.Ql,t);this.Ic();this.uc();var b=this.width/2,c=this.height/2;this.bg(-b,c,b,c,b,-c,-b,-c);jc(t,this.oc);this.uc()};h.prototype.iq=function(b,c,d){this.Ob(3);var a=this.Kb();a.type=12;a.N||(a.N=ic());a.N[0]=b;a.N[1]=c;a.N[2]=d;a.N[3]=1;this.wb=
- this.lb=!1};h.prototype.Ov=function(){this.Ob(0)};h.prototype.Av=function(){this.Ob(2)};h.prototype.vv=function(){this.Ed();this.q.flush()};var p=[],c={};h.prototype.Js=function(){R(p);c={}};h.prototype.dj=function(b,f,d,a){f=!!f;d=!!d;var e=b.src+","+f+","+d+(f?",undefined":""),l=null;if("undefined"!==typeof b.src&&c.hasOwnProperty(e))return l=c[e],l.ci++,l;this.Ed();var g=this.q,v=ka(b.width)&&ka(b.height),l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
- !0);var m=g.RGBA,h=g.RGBA,k=g.UNSIGNED_BYTE;if(a&&!this.Nd)switch(a){case 1:h=m=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=m=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(!v&&f){a=document.createElement("canvas");a.width=la(b.width);a.height=la(b.height);var r=a.getContext("2d");r.webkitImageSmoothingEnabled=d;r.mozImageSmoothingEnabled=d;r.msImageSmoothingEnabled=d;r.imageSmoothingEnabled=d;r.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);g.texImage2D(g.TEXTURE_2D,
- 0,m,h,k,a)}else g.texImage2D(g.TEXTURE_2D,0,m,h,k,b);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),v&&this.qo?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,
- g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.ue=null;l.Qe=b.width;l.Pe=b.height;l.ci=1;l.bo=e;p.push(l);return c[e]=l};h.prototype.ec=function(b,c,d,a){this.Ed();var e=this.q;this.Nd&&(a=!1);var l=e.createTexture();e.bindTexture(e.TEXTURE_2D,l);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,c,0,e.RGBA,a?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,
- e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,d?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,d?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.ue=null;l.Qe=b;l.Pe=c;p.push(l);return l};h.prototype.ew=function(b,c,d){this.Ed();var a=this.q;this.Nd&&(d=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,
- 0,a.RGBA,a.RGBA,d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,null);this.ue=null};h.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.ci&&1<b.ci?b.ci--:(this.Ed(),b===this.ue&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.ue=null),b===this.ff&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.ff=null),
- Fa(p,b),"undefined"!==typeof b.bo&&delete c[b.bo],this.q.deleteTexture(b)))};h.prototype.Jc=function(b){if(b!==this.Dj){var c=this.Kb();c.type=6;this.Dj=c.Lc=b;this.wb=this.lb=!1}};ob=h})();
- (function(){function h(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.lc=(this.Wg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
- "undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Sa=!!a.dc;this.Oo="undefined"!==typeof window.AppMobi||this.Sa;this.kc=!!window.c2cocoonjs;this.Vc=!!window.c2ejecta;this.kc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Vc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
- function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.pa=this.Sa||this.kc||this.Vc;this.Yg=/edge\//i.test(navigator.userAgent);this.Nd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Yg;this.Ro=/tizen/i.test(navigator.userAgent);this.Ug=/android/i.test(navigator.userAgent)&&!this.Ro&&!this.Nd&&!this.Yg;this.Ol=(/iphone/i.test(navigator.userAgent)||
- /ipod/i.test(navigator.userAgent))&&!this.Nd&&!this.Yg;this.Wo=/ipad/i.test(navigator.userAgent);this.Qf=this.Ol||this.Wo||this.Vc;this.Qu=this.Ol&&/os\s6/i.test(navigator.userAgent);this.Vg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Nd&&!this.Yg;this.Hl=/amazonwebappplatform/i.test(navigator.userAgent);this.Iu=/firefox/i.test(navigator.userAgent);this.Qo=/safari/i.test(navigator.userAgent)&&!this.Vg&&!this.Nd&&!this.Yg;this.Mu=/windows/i.test(navigator.userAgent);
- this.Lu=this.nd="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.To=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ou=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.mc=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.bh=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);
- this.So=!!window.cr_windows10;this.Ml=this.To||this.Ou||this.bh||this.So;this.Hu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Oi=this.Ug&&!this.Vg&&!this.Wg&&!this.Iu&&!this.Hl&&!this.pa;this.devicePixelRatio=1;this.Pd=this.lc||this.Wg||this.Oo||this.kc||this.Ug||this.Qf||this.mc||this.bh||this.Hu||this.Ro||this.Vc;this.Pd||(this.Pd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===
- typeof cr_is_preview||this.nd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.nd=!0);this.canvas=a;this.eo=document.getElementById("c2canvasdiv");this.n=this.q=null;this.rl="(unavailable)";this.na=!1;this.Ue=0;this.ea=null;this.dl="";this.vi=!1;this.Gp=this.Hp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};
- this.Sa&&(window.c2runtime=this);this.nd&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.Oi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.D=this.width;this.C=this.height;this.hi=this.width;this.Gg=this.height;this.jh=window.innerWidth;this.ih=window.innerHeight;this.Wt=!1;this.ca=!0;this.$g=!1;Date.now||(Date.now=
- function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Ja=[];this.Ul={};this.Xc=[];this.Wk={};this.Fd=[];this.tg=[];this.$j=[];this.xs=[];this.ys=[];this.Te={};this.Jl=this.se=!1;this.Od=0;this.Il=this.Ll=!1;this.jd=[];this.Qi=!1;this.Qd=this.xb=this.aj=this.Nm="";this.Nh=this.rq=!1;this.pe=this.oe=0;this.wp=30;this.Nk=this.wh=0;this.mg=1;this.nb=new eb;this.$d=new eb;this.lj=this.Ai=this.ri=this.bd=this.hf=this.cl=this.Wi=0;this.Ag=null;this.Tk=[];this.Vk=[];this.qi=-1;this.$l=
- [[]];this.cn=this.gj=0;this.Dm(null);this.Bp=this.zh=0;this.Tl=!0;this.Kg=0;this.Oh=[];this.$m=this.Fm=-1;this.fh=!0;this.ye=0;this.Zg=!1;this.Qv=0;this.yf=null;this.mb=this.Ii=!1;this.Fp=new ba;this.jm=new ba;this.km=new ba;this.fq=[];new gb([]);new gb([]);this.je=[];this.Qg={};this.zf={};this.xf={};this.sg={};this.Zn={};this.cp=this.$i=this.La=this.Ua=this.bp=this.Zi=this.U=null;this.qg=this.Nl=!1;this.el=[null,null];this.Xe=0;this.al="";this.Td={};this.Lh=this.we=null;this.tq="";this.kj=[];this.zv()}}
- function q(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function p(a,b,e,k){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=t;c.onerror=k;c.onsuccess=function(c){c=c.target.result;c.onerror=k;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=e}}function c(a,b,e){var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=t;k.onerror=e;k.onsuccess=function(k){k=k.target.result;
- k.onerror=e;var c=k.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?b(c.result.data):b(null)}}}function b(){A("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function w(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ba||a[b]&&"undefined"!==typeof a[b].dx||"spriteCreatedDestroyCallback"!==b&&(e[b]=a[b]);
- return e}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.zv=function(){var a=this,b;this.mc?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var e="data.js";if(this.To||this.mc||this.bh||this.So)e="data.json";b.open("GET",e,!0);var k=!1;if(!this.pa&&"response"in b&&"responseType"in b)try{b.responseType="json",k="json"===b.responseType}catch(c){k=!1}if(!k&&
- "responseType"in b)try{b.responseType="text"}catch(g){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(l){}this.mc?b.onreadystatechange=function(){4===b.readyState&&a.cj(JSON.parse(b.responseText))}:(b.onload=function(){if(k)a.cj(b.response);else if(a.Vc){var e=b.responseText,e=e.substr(e.indexOf("{"));a.cj(JSON.parse(e))}else a.cj(JSON.parse(b.responseText))},b.onerror=function(a){da("Error requesting "+e+":");da(a)});b.send()};f.prototype.Eu=function(){var a=
- this,b,e,k,c,g,l,d,m,r;this.ef=(!this.pa||this.Vc||this.lc)&&this.bw&&!this.Oi;0===this.Ab&&this.Qf&&(this.ef=!1);this.devicePixelRatio=this.ef?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.rb();e=!(!this.Wt&&(!this.zk||this.nd||this.Ml||this.mc||this.Wg||this.lc||this.Hl));0<this.Ab&&this.setSize(h(),n(),!0);try{this.mt&&(this.kc||this.Vc||!this.pa)&&(b={alpha:e,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=
- this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(v){}if(this.q){if(b=this.q.getExtension("WEBGL_debug_renderer_info"))this.rl=this.q.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.q.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.na&&(this.rl+=" [front-to-back enabled]");this.pa||(this.pb=document.createElement("canvas"),jQuery(this.pb).appendTo(this.canvas.parentNode),this.pb.oncontextmenu=function(){return!1},this.pb.onselectstart=function(){return!1},this.pb.width=
- Math.round(this.hi*this.devicePixelRatio),this.pb.height=Math.round(this.Gg*this.devicePixelRatio),jQuery(this.pb).css({width:this.hi+"px",height:this.Gg+"px"}),this.Zp(),this.wm=this.pb.getContext("2d"));this.n=new ob(this.q,this.Pd,this.na);this.n.qf(this.canvas.width,this.canvas.height);this.n.qo=0!==this.et;this.ea=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.cv();A("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
- function(){a.n.Ko();a.n.qf(a.n.width,a.n.height,!0);a.Ua=null;a.La=null;a.el[0]=null;a.el[1]=null;a.dv();a.ca=!0;A("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(e=this.m.length;b<e;b++)for(g=this.m[b],k=0,c=g.I.length;k<c;k++)d=g.I[k],d.Na=this.n.ol(d.id),d.$c=this.n.Am(d.Na),this.qg=this.qg||this.n.Ch(d.Na);b=0;for(e=this.Xc.length;b<e;b++){m=this.Xc[b];k=0;for(c=m.I.length;k<c;k++)d=m.I[k],d.Na=this.n.ol(d.id),d.$c=this.n.Am(d.Na);m.dd();k=0;for(c=m.K.length;k<
- c;k++){r=m.K[k];g=0;for(l=r.I.length;g<l;g++)d=r.I[g],d.Na=this.n.ol(d.id),d.$c=this.n.Am(d.Na),this.qg=this.qg||this.n.Ch(d.Na);r.dd()}}}else{if(0<this.Ab&&this.Sa){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ea=AppMobi.canvas.getContext("2d");try{this.ea.samplingMode=this.R?"smooth":"sharp",this.ea.globalScale=1,this.ea.HTML5CompatibilityMode=!0,this.ea.imageSmoothingEnabled=this.R}catch(f){}0!==this.width&&0!==this.height&&(this.ea.width=
- this.width,this.ea.height=this.height)}this.ea||(this.kc?(b={antialias:!!this.R,alpha:e},this.ea=this.canvas.getContext("2d",b)):(b={alpha:e},this.ea=this.canvas.getContext("2d",b)),this.ea.webkitImageSmoothingEnabled=this.R,this.ea.mozImageSmoothingEnabled=this.R,this.ea.msImageSmoothingEnabled=this.R,this.ea.imageSmoothingEnabled=this.R);this.wm=this.pb=null}this.Bq=function(b){a.Ya(!1,b)};window==window.top||this.pa||this.Ml||this.mc||(document.addEventListener("mousedown",function(){window.focus()},
- !0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.kc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(A("Reloading for continuous preview"),this.aj="__c2_continuouspreview",this.Nh=!0),this.mv&&!this.Pd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.pa||
- (b=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Ab&&this.ef&&1<this.devicePixelRatio&&this.setSize(this.Wa,this.Va,
- !0);this.Gq();this.xu();this.go();this.Ba={}};f.prototype.setSize=function(a,b,e){var k=0,c=0,g=0,l=0,l=0,d=this.Qu&&this.Qo&&!navigator.standalone&&!this.pa&&!this.lc;d&&(b+=60);if(this.jh!==a||this.ih!==b||e){this.jh=a;this.ih=b;var m=this.Ab,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Zg)&&!this.lc;if(r||0!==this.Ab||e)r&&0<this.Xe&&(m=this.Xe),e=this.devicePixelRatio,4<=m?(g=this.Wa/this.Va,a/b>g?(g*=b,5===m?(l=g*e/this.Wa,
- 1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),g=this.Wa*l/e,l=this.Va*l/e,k=(a-g)/2,c=(b-l)/2,a=g,b=l):(k=(a-g)/2,a=g)):(l=a/g,5===m?(l=l*e/this.Va,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),g=this.Wa*l/e,l=this.Va*l/e,k=(a-g)/2,c=(b-l)/2,a=g):c=(b-l)/2,b=l),r&&!this.nd&&(c=k=0)):this.nd&&this.Zg&&0===this.yo&&(k=Math.floor((a-this.Wa)/2),c=Math.floor((b-this.Va)/2),a=this.Wa,b=this.Va),2>m&&(this.zg=e),this.ef&&this.Wo&&1<e&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.hi=Math.round(a),this.Gg=
- Math.round(b),this.width=Math.round(a*e),this.height=Math.round(b*e),this.ca=!0,this.Rq?(this.D=this.width,this.C=this.height,this.hc=!0):this.width<this.Wa&&this.height<this.Va||1===m?(this.D=this.width,this.C=this.height,this.hc=!0):(this.D=this.Wa,this.C=this.Va,this.hc=!1,2===m?(g=this.Wa/this.Va,m=this.jh/this.ih,m<g?this.D=this.C*m:m>g&&(this.C=this.D/m)):3===m&&(g=this.Wa/this.Va,m=this.jh/this.ih,m>g?this.D=this.C*m:m<g&&(this.C=this.D/m))),this.eo&&!this.pa&&(jQuery(this.eo).css({width:Math.round(a)+
- "px",height:Math.round(b)+"px","margin-left":Math.floor(k)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*e),this.Vc?(this.canvas.style.left=Math.floor(k)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.ef&&!this.pa&&(this.canvas.style.width=
- Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.pb&&(this.pb.width=Math.round(a*e),this.pb.height=Math.round(b*e),this.pb.style.width=this.hi+"px",this.pb.style.height=this.Gg+"px"),this.n&&this.n.qf(Math.round(a*e),Math.round(b*e)),this.Sa&&this.ea&&(this.ea.width=Math.round(a),this.ea.height=Math.round(b)),this.ea&&(this.ea.webkitImageSmoothingEnabled=this.R,this.ea.mozImageSmoothingEnabled=this.R,this.ea.msImageSmoothingEnabled=this.R,this.ea.imageSmoothingEnabled=this.R),
- this.Gq(),this.pa||!d&&!this.Ol||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.Gq=function(){if(this.Cs&&0!==this.um){var a="portrait";2===this.um&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&
- console.warn("Failed to lock orientation: ",b)}}};f.prototype.cv=function(){this.n.Js();this.Nl=!0;var a,b,e;a=0;for(b=this.m.length;a<b;a++)e=this.m[a],e.mj&&e.mj()};f.prototype.dv=function(){this.Nl=!1;var a,b,e;a=0;for(b=this.m.length;a<b;a++)e=this.m[a],e.qm&&e.qm()};f.prototype.Zp=function(){if(!this.pa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Zg)&&!this.lc?jQuery(this.canvas).offset():jQuery(this.canvas).position();
- a.position="absolute";jQuery(this.pb).css(a)}};var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(b){var e;if(b&&!this.$g)for(A("[Construct 2] Suspending"),this.$g=!0,-1!==this.Fm&&a&&a(this.Fm),-1!==this.$m&&clearTimeout(this.$m),b=0,e=this.Oh.length;b<e;b++)this.Oh[b](!0);else if(!b&&this.$g){A("[Construct 2] Resuming");this.$g=!1;this.Wi=ab();this.hf=
- ab();b=this.wh=this.Ai=0;for(e=this.Oh.length;b<e;b++)this.Oh[b](!1);this.Ya(!1)}};f.prototype.xk=function(a){this.Oh.push(a)};f.prototype.de=function(a){return this.kj[a]};f.prototype.cj=function(a){a&&a.project||da("Project model unavailable");a=a.project;this.name=a[0];this.wo=a[1];this.Ab=a[12];this.yo=a[12];this.Wa=a[10];this.Va=a[11];this.Tp=this.Wa/2;this.Up=this.Va/2;this.pa&&!this.Vc&&(4<=a[12]||0===a[12])&&(A("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
- this.yo=this.Ab=3);this.ln=a[18];this.xe=a[19];if(0===this.xe){var b=new Image;b.crossOrigin="anonymous";b.src="loading-logo.png";this.we={hj:b}}else if(4===this.xe){b=new Image;b.src="";var e=new Image;e.src="";var k=new Image;k.src="";var c=new Image;c.src="";var l=new Image;l.src="";var g=new Image;g.src="";var d=new Image;d.src="";var m=new Image;m.src="";var r=new Image;r.src="";var v=new Image;v.src="";var f=new Image;f.src="";var h=new Image;h.src="";this.we={hj:[b,e,k,c],sv:[l,g,d,m],fw:[r,
- v,f,h]}}this.zh=a[21];this.kj=nc();this.vd=new V(this);b=0;for(e=a[2].length;b<e;b++)d=a[2][b],k=this.de(d[0]),pb(d,k.prototype),m=new k(this),m.Nj=d[1],m.te=d[2],m.yp=d[9],m.O&&m.O(),this.plugins.push(m);this.kj=nc();b=0;for(e=a[3].length;b<e;b++){d=a[3][b];l=this.de(d[1]);m=null;k=0;for(c=this.plugins.length;k<c;k++)if(this.plugins[k]instanceof l){m=this.plugins[k];break}r=new m.la(m);r.name=d[0];r.J=d[2];r.Fl=d[3].slice(0);r.dw=d[3].length;r.Ds=d[4];r.Yt=d[5];r.V=d[11];r.J?(r.vp=[],r.Hd=this.Kg++,
- r.ya=null):(r.vp=null,r.Hd=-1,r.ya=[]);r.si=null;r.Ef=null;r.ro=null;r.Ec=!1;r.Tb=null;d[6]?(r.Wm=d[6][0],r.Xm=d[6][1],r.Ym=d[6][2]):(r.Wm=null,r.Xm=0,r.Ym=0);d[7]?r.Gb=d[7]:r.Gb=null;r.index=b;r.d=[];r.li=[];r.Ge=[new qb(r)];r.Cd=0;r.kd=null;r.Os=0;r.jg=!0;r.ak=rb;r.bu=sb;r.gu=tb;r.ma=ub;r.Eh=vb;r.Cm=wb;r.$f=xb;r.Ci=yb;r.gl=Ab;r.jl=Bb;r.ke=Cb;r.ll=Db;r.ho=new hb(this.Wa,this.Va);r.Qn=!0;r.Rn=!1;r.Ba={};r.toString=Eb;r.Ja=[];k=0;for(c=d[8].length;k<c;k++){v=d[8][k];f=this.de(v[1]);h=null;l=0;for(g=
- this.Ja.length;l<g;l++)if(this.Ja[l]instanceof f){h=this.Ja[l];break}h||(h=new f(this),h.zp=[],h.hm=new ba,h.O&&h.O(),this.Ja.push(h));-1===h.zp.indexOf(r)&&h.zp.push(r);l=new h.la(h,r);l.name=v[0];l.V=v[2];l.O();r.Ja.push(l)}r.global=d[9];r.Kl=d[10];r.I=[];k=0;for(c=d[12].length;k<c;k++)r.I.push({id:d[12][k][0],name:d[12][k][1],Na:-1,$c:!1,ab:!0,index:k});r.ox=d[13];this.ln&&!r.J&&!r.Kl&&m.te||r.O();r.name&&(this.types[r.name]=r);this.m.push(r);m.Nj&&(k=new m.da(r),k.uid=this.zh++,k.bq=this.Bp++,
- k.bf=0,k.Og=Fb,k.toString=Gb,k.T=d[14],k.O(),r.d.push(k),this.Td[k.uid.toString()]=k)}b=0;for(e=a[4].length;b<e;b++)for(l=a[4][b],g=this.m[l[0]],k=1,c=l.length;k<c;k++)d=this.m[l[k]],d.ya.push(g),g.vp.push(d);b=0;for(e=a[28].length;b<e;b++){l=a[28][b];g=[];k=0;for(c=l.length;k<c;k++)g.push(this.m[l[k]]);k=0;for(c=g.length;k<c;k++)g[k].Ec=!0,g[k].Tb=g}if(0<this.Kg)for(b=0,e=this.m.length;b<e;b++)if(d=this.m[b],!d.J&&d.ya.length){d.si=Array(this.Kg);d.Ef=Array(this.Kg);d.ro=Array(this.Kg);r=[];k=h=
- f=v=0;for(c=d.ya.length;k<c;k++)for(m=d.ya[k],d.si[m.Hd]=v,v+=m.dw,d.Ef[m.Hd]=f,f+=m.Ds,d.ro[m.Hd]=h,h+=m.Yt,l=0,g=m.I.length;l<g;l++)r.push(wa({},m.I[l]));d.I=r.concat(d.I);k=0;for(c=d.I.length;k<c;k++)d.I[k].index=k}b=0;for(e=a[5].length;b<e;b++)d=a[5][b],k=new Hb(this,d),this.Ul[k.name]=k,this.Xc.push(k);b=0;for(e=a[6].length;b<e;b++)d=a[6][b],k=new Ib(this,d),this.Wk[k.name]=k,this.Fd.push(k);b=0;for(e=this.Fd.length;b<e;b++)this.Fd[b].Ha();b=0;for(e=this.Fd.length;b<e;b++)this.Fd[b].hn();b=0;
- for(e=this.$j.length;b<e;b++)this.$j[b].Ha();R(this.$j);this.Bs=a[7];this.al=a[8];this.Zc=a[9];this.zg=1;this.mt=a[13];this.R=a[14];this.zk=a[15];this.bw=a[17];this.um=a[20];this.Cs=0<this.um;this.mv=a[22];this.hc=this.Rq=a[23];this.et=a[24];this.tv=a[25];this.na=a[27]&&!this.Nd;this.Rj=Date.now();R(this.kj);this.Eu()};var e=!1;f.prototype.Qq=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){e=a.ao=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Vc?a.src=
- b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(k){e=a.ao=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",k)}):(a.crossOrigin="anonymous",a.src=b));this.tg.push(a)};f.prototype.Vt=function(a){var b,e;b=0;for(e=this.tg.length;b<e;b++)if(this.tg[b].Ks===a)return this.tg[b];return null};var l=0,g=!1;f.prototype.xu=function(){this.yf&&(l=this.yf.Mv(this.Bs))};f.prototype.Sn=function(){var a=l,b=0,e=0,k=!0,c,d,e=0;
- for(c=this.tg.length;e<c;e++){d=this.tg[e];var m=d.ko;if(!m||0>=m)m=5E4;a+=m;d.src&&(d.complete||d.loaded)&&!d.ao?b+=m:k=!1}k&&this.tv&&this.yf&&(g||(this.yf.Rv(),g=!0),e=this.yf.hu(),b+=e,e<l&&(k=!1));this.hb=0==a?1:b/a;return k};var v=!1;f.prototype.go=function(){if(this.ea||this.n){var a=this.ea||this.wm;this.pb&&this.Zp();this.hb=0;this.$o=-1;var b=this;if(this.Sn()&&(4!==this.xe||v))this.yu();else{var k=Date.now()-this.Rj;if(a){var c=this.width,l=this.height,g=this.devicePixelRatio;if(3>this.xe&&
- (this.kc||500<=k&&this.$o!=this.hb)){a.clearRect(0,0,c,l);var k=c/2,l=l/2,c=0===this.xe&&this.we.hj.complete,m=40*g,r=0,f=80*g,h;if(c){var u=this.we.hj,f=u.width*g;h=u.height*g;m=f/2;r=h/2;a.drawImage(u,O(k-m),O(l-r),f,h)}1>=this.xe?(k=O(k-m)+.5,l=O(l+(r+(c?12*g:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(k,l,Math.floor(f*this.hb),6*g),a.strokeStyle="black",a.strokeRect(k,l,f,6*g),a.strokeStyle="white",a.strokeRect(k-1*g,l-1*g,f+2*g,8*g)):2===this.xe&&(a.font=this.Vc?"12pt ArialMT":"12pt Arial",
- a.fillStyle=e?"#f00":"#999",a.nx="middle",g=Math.round(100*this.hb)+"%",c=a.measureText?a.measureText(g):null,a.fillText(g,k-(c?c.width:0)/2,l));this.$o=this.hb}else if(4===this.xe){this.kt(a);d?d(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.kc?10:100)}}};var m=-1,u="undefined"===typeof cr_is_preview?200:0,k=!0,r=!1,ia=0,z=0,C="undefined"===typeof cr_is_preview?3E3:0,L=null,S=null,F=0;f.prototype.kt=function(a){if(!v){for(var b=Math.ceil(this.width),
- c=Math.ceil(this.height),l=this.we.hj,g=this.we.sv,d=this.we.fw,f=0;4>f;++f)if(!l[f].complete||!g[f].complete||!d[f].complete)return;0===F&&(m=Date.now());var f=Date.now(),h=!1,n=a,p,t;k||r?(a.clearRect(0,0,b,c),L&&L.width===b&&L.height===c||(L=document.createElement("canvas"),L.width=b,L.height=c,S=L.getContext("2d")),n=S,h=!0,k&&1===F&&(m=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,b,c);256<this.Gg?(p=Ga(.22*c,105,.6*b),t=.25*p,n.drawImage(q(g,p),.5*b-p/2,.2*c-t/2,p,t),t=p=
- Math.min(.395*c,.95*b),n.drawImage(q(l,p),.5*b-p/2,.485*c-t/2,p,t),p=Ga(.22*c,105,.6*b),t=.25*p,n.drawImage(q(d,p),.5*b-p/2,.868*c-t/2,p,t),n.fillStyle="#3C3C3C",p=b,t=Math.max(.005*c,2),n.fillRect(0,.8*c-t/2,p,t),n.fillStyle=e?"red":"#E0FF65",p=b*this.hb,n.fillRect(.5*b-p/2,.8*c-t/2,p,t)):(t=p=.55*c,n.drawImage(q(l,p),.5*b-p/2,.45*c-t/2,p,t),n.fillStyle="#3C3C3C",p=b,t=Math.max(.005*c,2),n.fillRect(0,.85*c-t/2,p,t),n.fillStyle=e?"red":"#E0FF65",p=b*this.hb,n.fillRect(.5*b-p/2,.85*c-t/2,p,t));h&&
- (k?a.globalAlpha=0===F?0:Math.min((f-m)/300,1):r&&(a.globalAlpha=Math.max(1-(f-z)/300,0)),a.drawImage(L,0,0,b,c));k&&300<=f-m&&2<=F&&(k=!1,ia=f);!k&&f-ia>=C&&!r&&1<=this.hb&&(r=!0,z=f);if(r&&f-z>=300+u||"undefined"!==typeof cr_is_preview&&1<=this.hb&&500>Date.now()-m)v=!0,r=k=!1,this.we=S=L=null;++F}};f.prototype.yu=function(){this.pb&&(this.canvas.parentNode.removeChild(this.pb),this.pb=this.wm=null);this.Rj=Date.now();this.hf=ab();var a,b,e;if(this.ln)for(a=0,b=this.m.length;a<b;a++)e=this.m[a],
- e.J||e.Kl||!e.ga.te||e.O();else this.fh=!1;a=0;for(b=this.Xc.length;a<b;a++)this.Xc[a].Ls();2<=this.Ab&&(a=this.Wa/this.Va,b=this.width/this.height,this.zg=2!==this.Ab&&b>a||2===this.Ab&&b<a?this.height/this.Va:this.width/this.Wa);this.wo?this.Ul[this.wo].Um():this.Xc[0].Um();this.ln||(this.ye=1,this.trigger(V.prototype.e.zn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.m.length;a<b;a++)e=this.m[a],e.bv&&e.bv();document.hidden||document.webkitHidden||
- document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ya(!1);this.Sa&&AppMobi.webview.execute("onGameReady();")};f.prototype.Ya=function(a,b,e){if(this.U){var k=ab();if(e||!this.$g||a){a||(d?this.Fm=d(this.Bq):this.$m=setTimeout(this.Bq,this.Pd?1:16));b=b||k;var c=this.Ab;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.lc)||this.Zg)&&0<this.Xe&&(c=this.Xe);0<c&&(!this.Qf||window.self!==window.top)&&(c=window.innerHeight,
- this.jh===window.innerWidth&&this.ih===c||this.setSize(h(),n()));this.pa||(e?(this.vi||(this.dl=jQuery(this.canvas).css("margin")||"0",this.vi=!0),this.Vg||this.nd||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.vi?(this.Vg||this.nd||jQuery(this.canvas).css("margin",this.dl),this.dl="",this.vi=!1,0===this.Ab&&this.setSize(Math.round(this.Hp/this.devicePixelRatio),
- Math.round(this.Gp/this.devicePixelRatio),!0)):(this.Hp=this.width,this.Gp=this.height));this.fh&&(e=this.Sn(),this.ye=this.hb,e&&(this.fh=!1,this.hb=1,this.trigger(V.prototype.e.zn,null)));this.Vu(b);!this.ca&&!this.kc||this.Nl||this.Nh||a||(this.ca=!1,this.n?this.Hb():this.gc(),this.Lh&&(this.canvas&&this.canvas.toDataURL&&(this.tq=this.canvas.toDataURL(this.Lh[0],this.Lh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.tq),this.trigger(V.prototype.e.Br,null)),this.Lh=null));this.jx||(this.bd++,
- this.ri++,this.Ai++);this.wh+=ab()-k}}};f.prototype.Vu=function(a){var b,e,k,c,l,g,d,m;1E3<=a-this.hf&&(this.hf+=1E3,1E3<=a-this.hf&&(this.hf=a),this.cl=this.Ai,this.Ai=0,this.Nk=this.wh,this.wh=0);0!==this.Wi&&(b=a-this.Wi,0>b&&(b=0),this.pe=b/1E3,.5<this.pe?this.pe=0:this.pe>1/this.wp&&(this.pe=1/this.wp));this.Wi=a;this.oe=this.pe*this.mg;this.nb.add(this.oe);this.$d.add(this.pe);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Zg)&&
- !this.lc;2<=this.Ab||a&&0<this.Xe?(b=this.Wa/this.Va,e=this.width/this.height,k=this.Ab,a&&0<this.Xe&&(k=this.Xe),this.zg=2!==k&&e>b||2===k&&e<b?this.height/this.Va:this.width/this.Wa,this.U&&(this.U.Ij(this.U.scrollX),this.U.Om(this.U.scrollY))):this.zg=this.ef?this.devicePixelRatio:1;this.rb();this.Od++;this.vd.Dv();this.Od--;this.rb();this.Od++;e=this.Fp.Ke();a=0;for(b=e.length;a<b;a++)e[a].lx();a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.J&&(g.Ja.length||g.ya.length))for(e=0,k=g.d.length;e<
- k;e++)for(d=g.d[e],c=0,l=d.L.length;c<l;c++)d.L[c].Ya();a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.J&&(g.Ja.length||g.ya.length))for(e=0,k=g.d.length;e<k;e++)for(d=g.d[e],c=0,l=d.L.length;c<l;c++)m=d.L[c],m.rv&&m.rv();e=this.jm.Ke();a=0;for(b=e.length;a<b;a++)e[a].Ya();this.Od--;this.zu();for(a=0;this.Ag&&10>a++;)this.po(this.Ag);a=0;for(b=this.Fd.length;a<b;a++)this.Fd[a].xl=!1;this.U.Ve&&this.U.Ve.Xa();R(this.fq);this.Tl=!1;this.Od++;a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.J&&(g.Ja.length||
- g.ya.length))for(e=0,k=g.d.length;e<k;e++)for(d=g.d[e],c=0,l=d.L.length;c<l;c++)m=d.L[c],m.Zm&&m.Zm();e=this.km.Ke();a=0;for(b=e.length;a<b;a++)e[a].Zm();this.Od--};f.prototype.po=function(a){var b=this.U;this.U.Sv();var e,k,c,g,l,d,m;if(this.n)for(e=0,k=this.m.length;e<k;e++)l=this.m[e],l.J||!l.gn||l.global&&0!==l.d.length||-1!==a.Tg.indexOf(l)||l.gn();b==a&&R(this.vd.Pb);R(this.fq);a.Um();e=0;for(k=this.m.length;e<k;e++)if(l=this.m[e],l.global||l.ga.Nj)for(a=0,b=l.d.length;a<b;a++)if(d=l.d[a],d.mm&&
- d.mm(),d.L)for(c=0,g=d.L.length;c<g;c++)m=d.L[c],m.mm&&m.mm();this.Tl=this.ca=!0;this.rb()};f.prototype.lg=function(a){this.jm.add(a)};f.prototype.Tv=function(a){this.km.add(a)};f.prototype.hl=function(a){return a&&-1!==a.yh?this.pe*a.yh:this.oe};f.prototype.gc=function(){this.U.gc(this.ea);this.Sa&&this.ea.present()};f.prototype.Hb=function(){this.na&&(this.Ue=1,this.U.Cf(this.n));this.U.Hb(this.n);this.n.vv()};f.prototype.us=function(a){a&&this.Tk.push(a)};f.prototype.Ei=function(a){a=a.toString();
- return this.Td.hasOwnProperty(a)?this.Td[a]:null};var M=[];f.prototype.be=function(a){var b,e;b=a.type.name;var k=null;if(this.Te.hasOwnProperty(b)){if(k=this.Te[b],k.contains(a))return}else k=M.length?M.pop():new ba,this.Te[b]=k;k.add(a);this.se=!0;if(a.Ec)for(b=0,e=a.siblings.length;b<e;b++)this.be(a.siblings[b]);this.Jl&&k.rg.push(a);this.Il||(this.Od++,this.trigger(Object.getPrototypeOf(a.type.ga).e.Dr,a),this.Od--)};f.prototype.rb=function(){if(this.se){var a,b,e,k,c,l;this.Jl=!0;e=0;for(c=this.jd.length;e<
- c;++e)for(a=this.jd[e],b=a.type,b.d.push(a),k=0,l=b.ya.length;k<l;++k)b.ya[k].d.push(a),b.ya[k].jg=!0;R(this.jd);this.or();$a(this.Te);this.se=this.Jl=!1}};f.prototype.or=function(){for(var a in this.Te)this.Te.hasOwnProperty(a)&&this.Xq(this.Te[a])};f.prototype.Xq=function(a){var b=a.Ke(),e=b[0].type,k,c,l,g,d,m;bb(e.d,a);e.jg=!0;0===e.d.length&&(e.Rn=!1);k=0;for(c=e.ya.length;k<c;++k)m=e.ya[k],bb(m.d,a),m.jg=!0;k=0;for(c=this.vd.Pb.length;k<c;++k)if(d=this.vd.Pb[k],d.Db.hasOwnProperty(e.index)&&
- bb(d.Db[e.index].Ld,a),!e.J)for(l=0,g=e.ya.length;l<g;++l)m=e.ya[l],d.Db.hasOwnProperty(m.index)&&bb(d.Db[m.index].Ld,a);if(d=b[0].j){if(d.vc)for(l=d.d,k=0,c=l.length;k<c;++k)g=l[k],a.contains(g)&&(g.Za(),d.qb.update(g,g.Lb,null),g.Lb.set(0,0,-1,-1));bb(d.d,a);d.Hh(0)}for(k=0;k<b.length;++k)this.Wq(b[k],e);a.clear();M.push(a);this.ca=!0};f.prototype.Wq=function(a,b){var e,k,c;e=0;for(k=this.Tk.length;e<k;++e)this.Tk[e](a);a.ne&&b.ho.update(a,a.ne,null);(e=a.j)&&e.eg(a,!0);if(a.L)for(e=0,k=a.L.length;e<
- k;++e)c=a.L[e],c.Xf&&c.Xf(),c.behavior.hm.remove(a);this.Fp.remove(a);this.jm.remove(a);this.km.remove(a);a.Xf&&a.Xf();this.Td.hasOwnProperty(a.uid.toString())&&delete this.Td[a.uid.toString()];this.lj--;100>b.li.length&&b.li.push(a)};var x=[];f.prototype.Se=function(a,b,e,k,c,l){var g,d,m,r;if(!a)return null;var f=this.m[a[1]],v=f.ga.te;if(this.fh&&v&&!f.Kl||v&&!this.n&&11===a[0][11])return null;var h=b;v||(b=null);var u;f.li.length?(u=f.li.pop(),u.pc=!0,f.ga.da.call(u,f)):(u=new f.ga.da(f),u.pc=
- !1);!e||l||this.Td.hasOwnProperty(a[2].toString())?u.uid=this.zh++:u.uid=a[2];this.Td[u.uid.toString()]=u;u.bq=this.Bp++;u.bf=f.d.length;g=0;for(d=this.jd.length;g<d;++g)this.jd[g].type===f&&u.bf++;u.Og=Fb;u.toString=Gb;m=a[3];if(u.pc)$a(u.Ba);else{u.Ba={};if("undefined"!==typeof cr_is_preview)for(u.No=[],u.No.length=m.length,g=0,d=m.length;g<d;g++)u.No[g]=m[g][1];u.Ra=[];u.Ra.length=m.length}g=0;for(d=m.length;g<d;g++)u.Ra[g]=m[g][0];if(v){var p=a[0];u.x=ea(k)?p[0]:k;u.y=ea(c)?p[1]:c;u.z=p[2];u.width=
- p[3];u.height=p[4];u.depth=p[5];u.k=p[6];u.opacity=p[7];u.Vb=p[8];u.Wb=p[9];u.sb=p[10];g=p[11];!this.n&&f.I.length&&(u.sb=g);u.Cg=jb(u.sb);this.q&&kb(u,u.sb,this.q);if(u.pc){g=0;for(d=p[12].length;g<d;g++)for(m=0,r=p[12][g].length;m<r;m++)u.Aa[g][m]=p[12][g][m];u.Oa.set(0,0,0,0);u.ne.set(0,0,-1,-1);u.Lb.set(0,0,-1,-1);u.le.Ih(u.Oa);R(u.Ck)}else{u.Aa=p[12].slice(0);g=0;for(d=u.Aa.length;g<d;g++)u.Aa[g]=p[12][g].slice(0);u.Z=[];u.ge=[];u.ge.length=f.I.length;u.Oa=new sa(0,0,0,0);u.ne=new sa(0,0,-1,
- -1);u.Lb=new sa(0,0,-1,-1);u.le=new va;u.Ck=[];u.Ma=Jb;u.ws=Kb;u.Bc=Lb;u.Za=Mb;u.Nq=Nb;u.aw=Ob;u.md=Pb}u.Vv=!1;u.Xv=0;u.Wv=0;u.Uv=null;14===p.length&&(u.Vv=!0,u.Xv=p[13][0],u.Wv=p[13][1],u.Uv=p[13][2]);g=0;for(d=f.I.length;g<d;g++)u.ge[g]=!0;u.Wd=!0;u.dd=Qb;u.dd();u.Oq=!!u.Z.length;u.bi=!0;u.Ik=!0;f.Qn=!0;u.visible=!0;u.yh=-1;u.j=b;u.ed=b.d.length;u.Ue=0;"undefined"===typeof u.hd&&(u.hd=null);this.ca=u.Bg=!0}var n;R(x);g=0;for(d=f.ya.length;g<d;g++)x.push.apply(x,f.ya[g].Ja);x.push.apply(x,f.Ja);
- if(u.pc)for(g=0,d=x.length;g<d;g++){var t=x[g];n=u.L[g];n.pc=!0;t.behavior.da.call(n,t,u);p=a[4][g];m=0;for(r=p.length;m<r;m++)n.T[m]=p[m];n.O();t.behavior.hm.add(u)}else for(u.L=[],g=0,d=x.length;g<d;g++)t=x[g],n=new t.behavior.da(t,u),n.pc=!1,n.T=a[4][g].slice(0),n.O(),u.L.push(n),t.behavior.hm.add(u);p=a[5];if(u.pc)for(g=0,d=p.length;g<d;g++)u.T[g]=p[g];else u.T=p.slice(0);this.jd.push(u);this.se=!0;b&&(b.yg(u,!0),1!==b.Gc||1!==b.Hc)&&(f.Rn=!0);this.lj++;if(f.Ec){if(u.Ec=!0,u.pc?R(u.siblings):
- u.siblings=[],!e&&!l){g=0;for(d=f.Tb.length;g<d;g++)if(f.Tb[g]!==f){if(!f.Tb[g].kd)return null;u.siblings.push(this.Se(f.Tb[g].kd,h,!1,v?u.x:k,v?u.y:c,!0))}g=0;for(d=u.siblings.length;g<d;g++)for(u.siblings[g].siblings.push(u),m=0;m<d;m++)g!==m&&u.siblings[g].siblings.push(u.siblings[m])}}else u.Ec=!1,u.siblings=null;u.O();g=0;for(d=u.L.length;g<d;g++)u.L[g].qv&&u.L[g].qv();return u};f.prototype.Mg=function(a){var b,e;b=0;for(e=this.U.K.length;b<e;b++){var k=this.U.K[b];if(mb(k.name,a))return k}return null};
- f.prototype.Kd=function(a){a=O(a);0>a&&(a=0);a>=this.U.K.length&&(a=this.U.K.length-1);return this.U.K[a]};f.prototype.Lk=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].ma().ua=!0};f.prototype.Eh=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Eh()};f.prototype.Cm=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Cm()};f.prototype.$f=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].$f()};f.prototype.Ph=function(a,b,e){var k=a.ma(),c,g,l,d,m,r;if(k.ua)for(k.ua=!1,R(k.d),c=0,d=a.d.length;c<
- d;c++)l=a.d[c],l.Za(),m=l.j.Pa(b,e,!0),r=l.j.Pa(b,e,!1),l.Bc(m,r)&&k.d.push(l);else{c=g=0;for(d=k.d.length;c<d;c++)l=k.d[c],l.Za(),m=l.j.Pa(b,e,!0),r=l.j.Pa(b,e,!1),l.Bc(m,r)&&(k.d[g]=k.d[c],g++);k.d.length=g}a.ke();return k.wl()};new va;new sa(0,0,0,0);f.prototype.Hq=function(a,b){if(!b)return!1;var e,k,c,g,l;e=0;for(k=a.Ja.length;e<k;e++)if(a.Ja[e].behavior instanceof b)return!0;if(!a.J)for(e=0,k=a.ya.length;e<k;e++)for(l=a.ya[e],c=0,g=l.Ja.length;c<g;c++)if(l.Ja[c].behavior instanceof b)return!0;
- return!1};f.prototype.dn=function(a){return this.Hq(a,fc.Hw)};f.prototype.en=function(a){return this.Hq(a,oc)};var fa=-1;f.prototype.trigger=function(a,b,e){if(!this.U)return!1;var k=this.U.Ve;if(!k)return!1;var c=!1,g,l,d;fa++;var m=k.Rk;l=0;for(d=m.length;l<d;++l)g=this.Eq(a,b,m[l],e),c=c||g;g=this.Eq(a,b,k,e);fa--;return c||g};f.prototype.Eq=function(a,b,e,k){var c=!1,g,l,d,m;if(b)for(d=this.bn(a,b,b.type.name,e,k),c=c||d,m=b.type.ya,g=0,l=m.length;g<l;++g)d=this.bn(a,b,m[g].name,e,k),c=c||d;else d=
- this.bn(a,b,"system",e,k),c=c||d;return c};f.prototype.bn=function(a,b,e,k,c){var g,l=!1,d=!1,d="undefined"!==typeof c,m=(d?k.uo:k.Fq)[e];if(!m)return l;var r=null;k=0;for(g=m.length;k<g;++k)if(m[k].method==a){r=m[k].Jg;break}if(!r)return l;var f;d?f=r[c]:f=r;if(!f)return null;k=0;for(g=f.length;k<g;k++)a=f[k][0],c=f[k][1],d=this.Ut(b,e,a,c),l=l||d;return l};f.prototype.Ut=function(a,b,e,k){var c,g,l=!1;this.cn++;var d=this.Ib().fc;d&&this.Eh(d.Fe);var m=1<this.cn;this.Eh(e.Fe);m&&this.xv();var r=
- this.Dm(e);r.fc=e;a&&(c=this.types[b].ma(),c.ua=!1,R(c.d),c.d[0]=a,this.types[b].ke());a=!0;if(e.parent){b=r.xq;for(c=e.parent;c;)b.push(c),c=c.parent;b.reverse();c=0;for(g=b.length;c<g;c++)if(!b[c].Fv()){a=!1;break}}a&&(this.ri++,e.qd?e.Ev(k):e.Xa(),l=l||r.gf);this.Yp();m&&this.pv();this.$f(e.Fe);d&&this.$f(d.Fe);this.se&&0===this.Od&&0===fa&&!this.Ll&&this.rb();this.cn--;return l};f.prototype.Bo=function(){var a=this.Ib();return a.fc.tb[a.Sb]};f.prototype.xv=function(){this.gj++;this.gj>=this.$l.length&&
- this.$l.push([])};f.prototype.pv=function(){this.gj--};f.prototype.Co=function(){return this.$l[this.gj]};f.prototype.Dm=function(a){this.qi++;this.qi>=this.Vk.length&&this.Vk.push(new Rb);var b=this.Ib();b.reset(a);return b};f.prototype.Yp=function(){this.qi--};f.prototype.Ib=function(){return this.Vk[this.qi]};f.prototype.Do=function(a,b){for(var e,k,c,g,l,d;b;){e=0;for(k=b.Kc.length;e<k;e++)if(d=b.Kc[e],d instanceof Sb&&mb(a,d.name))return d;b=b.parent}e=0;for(k=this.Fd.length;e<k;e++)for(l=this.Fd[e],
- c=0,g=l.qe.length;c<g;c++)if(d=l.qe[c],d instanceof Sb&&mb(a,d.name))return d;return null};f.prototype.Eo=function(a){var b,e;b=0;for(e=this.Xc.length;b<e;b++)if(this.Xc[b].V===a)return this.Xc[b];return null};f.prototype.Fi=function(a){var b,e;b=0;for(e=this.m.length;b<e;b++)if(this.m[b].V===a)return this.m[b];return null};f.prototype.cu=function(a){var b,e;b=0;for(e=this.je.length;b<e;b++)if(this.je[b].V===a)return this.je[b];return null};f.prototype.Ps=function(a,b){this.Lh=[a,b];this.ca=!0};f.prototype.zu=
- function(){var a=this,e=this.Nm,k=this.Qd,g=this.aj,l=!1;this.rq&&(l=!0,e="__c2_continuouspreview",this.rq=!1);if(e.length){this.rb();k=this.Jv();if(window.indexedDB&&!this.kc)p(e,k,function(){A("Saved state to IndexedDB storage ("+k.length+" bytes)");a.Qd=k;a.trigger(V.prototype.e.qk,null);a.Qd="";l&&b()},function(c){try{localStorage.setItem("__c2save_"+e,k),A("Saved state to WebStorage ("+k.length+" bytes)"),a.Qd=k,a.trigger(V.prototype.e.qk,null),a.Qd="",l&&b()}catch(g){A("Failed to save game state: "+
- c+"; "+g)}});else try{localStorage.setItem("__c2save_"+e,k),A("Saved state to WebStorage ("+k.length+" bytes)"),a.Qd=k,this.trigger(V.prototype.e.qk,null),a.Qd="",l&&b()}catch(d){A("Error saving to WebStorage: "+d)}this.xb=this.aj=this.Nm=""}if(g.length){if(window.indexedDB&&!this.kc)c(g,function(b){b?(a.xb=b,A("Loaded state from IndexedDB storage ("+a.xb.length+" bytes)")):(a.xb=localStorage.getItem("__c2save_"+g)||"",A("Loaded state from WebStorage ("+a.xb.length+" bytes)"));a.Nh=!1;a.xb.length||
- a.trigger(V.prototype.e.kk,null)},function(){a.xb=localStorage.getItem("__c2save_"+g)||"";A("Loaded state from WebStorage ("+a.xb.length+" bytes)");a.Nh=!1;a.xb.length||a.trigger(V.prototype.e.kk,null)});else{try{this.xb=localStorage.getItem("__c2save_"+g)||"",A("Loaded state from WebStorage ("+this.xb.length+" bytes)")}catch(m){this.xb=""}this.Nh=!1;a.xb.length||a.trigger(V.prototype.e.kk,null)}this.Nm=this.aj=""}this.xb.length&&(this.rb(),this.Uu(this.xb),this.Qd=this.xb,this.trigger(V.prototype.e.Jr,
- null),this.xb=this.Qd="")};f.prototype.Jv=function(){var a,b,e,k,c,g,l,d={c2save:!0,version:1,rt:{time:this.nb.X,walltime:this.$d.X,timescale:this.mg,tickcount:this.bd,execcount:this.ri,next_uid:this.zh,running_layout:this.U.V,start_time_offset:Date.now()-this.Rj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.m.length;a<b;a++)if(c=this.m[a],!c.J&&!this.dn(c)){g={instances:[]};Za(c.Ba)&&(g.ex=w(c.Ba));e=0;for(k=c.d.length;e<k;e++)g.instances.push(this.Mm(c.d[e]));d.types[c.V.toString()]=
- g}a=0;for(b=this.Xc.length;a<b;a++)e=this.Xc[a],d.layouts[e.V.toString()]=e.Nb();k=d.events.groups;a=0;for(b=this.je.length;a<b;a++)e=this.je[a],k[e.V.toString()]=this.Qg[e.Pg].Hf;b=d.events.cnds;for(l in this.zf)this.zf.hasOwnProperty(l)&&(a=this.zf[l],Za(a.Ba)&&(b[l]={ex:w(a.Ba)}));b=d.events.acts;for(l in this.xf)this.xf.hasOwnProperty(l)&&(a=this.xf[l],Za(a.Ba)&&(b[l]={ex:a.Ba}));b=d.events.vars;for(l in this.sg)this.sg.hasOwnProperty(l)&&(a=this.sg[l],a.Si||a.parent&&!a.eh||(b[l]=a.data));d.system=
- this.vd.Nb();return JSON.stringify(d)};f.prototype.dq=function(){var a,b,e,k,c,g;this.Td={};a=0;for(b=this.m.length;a<b;a++)if(e=this.m[a],!e.J)for(k=0,c=e.d.length;k<c;k++)g=e.d[k],this.Td[g.uid.toString()]=g};f.prototype.Uu=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Qi=!0;var b=a.rt;this.nb.reset();this.nb.X=b.time;this.$d.reset();this.$d.X=b.walltime||0;this.mg=b.timescale;this.bd=b.tickcount;this.ri=b.execcount;this.Rj=Date.now()-b.start_time_offset;var e=b.running_layout;if(e!==
- this.U.V)if(e=this.Eo(e))this.po(e);else return;var k,c,g,l,d,m,r;m=a.types;for(c in m)if(m.hasOwnProperty(c)&&(l=this.Fi(parseInt(c,10)))&&!l.J&&!this.dn(l)){m[c].ex?l.Ba=m[c].ex:$a(l.Ba);d=l.d;g=m[c].instances;e=0;for(k=oa(d.length,g.length);e<k;e++)this.bj(d[e],g[e]);e=g.length;for(k=d.length;e<k;e++)this.be(d[e]);e=d.length;for(k=g.length;e<k;e++){d=null;if(l.ga.te&&(d=this.U.Di(g[e].w.l),!d))continue;d=this.Se(l.kd,d,!1,0,0,!0);this.bj(d,g[e])}l.jg=!0}this.rb();this.dq();k=a.layouts;for(c in k)k.hasOwnProperty(c)&&
- (e=this.Eo(parseInt(c,10)))&&e.nc(k[c]);k=a.events.groups;for(c in k)k.hasOwnProperty(c)&&(e=this.cu(parseInt(c,10)))&&this.Qg[e.Pg]&&this.Qg[e.Pg].lq(k[c]);e=a.events.cnds;for(c in e)e.hasOwnProperty(c)&&this.zf.hasOwnProperty(c)&&(this.zf[c].Ba=e[c].ex);e=a.events.acts;for(c in e)e.hasOwnProperty(c)&&this.xf.hasOwnProperty(c)&&(this.xf[c].Ba=e[c].ex);e=a.events.vars;for(c in e)e.hasOwnProperty(c)&&this.sg.hasOwnProperty(c)&&(this.sg[c].data=e[c]);this.zh=b.next_uid;this.Qi=!1;this.vd.nc(a.system);
- e=0;for(k=this.m.length;e<k;e++)if(l=this.m[e],!l.J&&!this.dn(l))for(c=0,a=l.d.length;c<a;c++){d=l.d[c];if(l.Ec)for(m=d.Og(),R(d.siblings),b=0,g=l.Tb.length;b<g;b++)r=l.Tb[b],l!==r&&d.siblings.push(r.d[m]);d.he&&d.he();if(d.L)for(b=0,g=d.L.length;b<g;b++)m=d.L[b],m.he&&m.he()}this.ca=!0}};f.prototype.Mm=function(a,b){var e,k,c,g,l;g=a.type;c=g.ga;var d={};b?d.c2=!0:d.uid=a.uid;Za(a.Ba)&&(d.ex=w(a.Ba));if(a.Ra&&a.Ra.length)for(d.ivs={},e=0,k=a.Ra.length;e<k;e++)d.ivs[a.type.Fl[e].toString()]=a.Ra[e];
- if(c.te){c={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.V,zi:a.md()};0!==a.k&&(c.a=a.k);1!==a.opacity&&(c.o=a.opacity);.5!==a.Vb&&(c.hX=a.Vb);.5!==a.Wb&&(c.hY=a.Wb);0!==a.sb&&(c.bm=a.sb);a.visible||(c.v=a.visible);a.Bg||(c.ce=a.Bg);-1!==a.yh&&(c.mts=a.yh);if(g.I.length)for(c.fx=[],e=0,k=g.I.length;e<k;e++)l=g.I[e],c.fx.push({name:l.name,active:a.ge[l.index],params:a.Aa[l.index]});d.w=c}if(a.L&&a.L.length)for(d.behs={},e=0,k=a.L.length;e<k;e++)g=a.L[e],g.Nb&&(d.behs[g.type.V.toString()]=g.Nb());a.Nb&&(d.data=
- a.Nb());return d};f.prototype.eu=function(a,b){var e,k;e=0;for(k=a.Fl.length;e<k;e++)if(a.Fl[e]===b)return e;return-1};f.prototype.au=function(a,b){var e,k;e=0;for(k=a.L.length;e<k;e++)if(a.L[e].type.V===b)return e;return-1};f.prototype.bj=function(a,b,e){var k,c,g,l,d;d=a.type;l=d.ga;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.Ba=b.ex:$a(a.Ba);if(c=b.ivs)for(k in c)c.hasOwnProperty(k)&&(g=this.eu(d,parseInt(k,10)),0>g||g>=a.Ra.length||(a.Ra[g]=c[k]));if(l.te){g=b.w;a.j.V!==g.l&&(c=a.j,a.j=this.U.Di(g.l),
- a.j?(c.eg(a,!0),a.j.yg(a,!0),a.Ma(),a.j.Hh(0)):(a.j=c,e||this.be(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.ed=g.zi;a.k=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Vb=g.hasOwnProperty("hX")?g.hX:.5;a.Wb=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Bg=g.hasOwnProperty("ce")?g.ce:!0;a.yh=g.hasOwnProperty("mts")?g.mts:-1;a.sb=g.hasOwnProperty("bm")?g.bm:0;a.Cg=jb(a.sb);this.q&&kb(a,a.sb,this.q);a.Ma();if(g.hasOwnProperty("fx"))for(e=0,c=g.fx.length;e<
- c;e++)l=d.jl(g.fx[e].name),0>l||(a.ge[l]=g.fx[e].active,a.Aa[l]=g.fx[e].params);a.dd()}if(d=b.behs)for(k in d)d.hasOwnProperty(k)&&(e=this.au(a,parseInt(k,10)),0>e||a.L[e].nc(d[k]));b.data&&a.nc(b.data)};Tb=function(a){return new f(document.getElementById(a))};Ub=function(a,b){return new f({dc:!0,width:a,height:b})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
- a.Un=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
- window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(h,n){var f=window.cr_getC2Runtime();f&&f.Ps(h,n)};window.cr_sizeCanvas=function(h,n){if(0!==h&&0!==n){var f=window.cr_getC2Runtime();f&&f.setSize(h,n)}};window.cr_setSuspended=function(h){var n=window.cr_getC2Runtime();n&&n.setSuspended(h)};
- (function(){function h(a,b){this.b=a;this.Ve=null;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;this.scale=1;this.k=0;this.Ff=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Iq=b[3];this.pq=b[4];this.V=b[5];var c=b[6],g,d;this.K=[];this.Tg=[];g=0;for(d=c.length;g<d;g++){var m=new Vb(this,c[g]);m.Dp=g;this.K.push(m)}c=b[7];this.cf=[];g=0;for(d=c.length;g<d;g++){var m=c[g],f=this.b.m[m[1]];f.kd||(f.kd=m);this.cf.push(m);-1===this.Tg.indexOf(f)&&this.Tg.push(f)}this.I=[];this.Z=[];this.Wd=
- !0;this.Aa=[];g=0;for(d=b[8].length;g<d;g++)this.I.push({id:b[8][g][0],name:b[8][g][1],Na:-1,$c:!1,ab:!0,index:g}),this.Aa.push(b[8][g][2].slice(0));this.dd();this.dg=new sa(0,0,1,1);this.Gm=new sa(0,0,1,1);this.Ce={}}function n(a,b){return a.ed-b.ed}function f(a,b){this.eb=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.Dd=!1;this.Yd=new sa(0,0,0,0);this.Cq=new va;this.ra=this.ka=this.ta=this.ja=0;this.sf=!1;this.ae=-1;this.Mk=0;this.name=b[0];this.index=b[1];this.V=b[2];this.visible=b[3];this.Rc=
- b[4];this.cd=b[5];this.Gc=b[6];this.Hc=b[7];this.opacity=b[8];this.yi=b[9];this.vc=b[10];this.Qb=b[11];this.sb=b[12];this.lt=b[13];this.Cg="source-over";this.ub=this.yb=0;this.qb=null;this.Rd=q();this.ad=!0;this.Rf=new sa(0,0,-1,-1);this.jb=new sa(0,0,-1,-1);this.vc&&(this.qb=new ib(this.b.Wa,this.b.Va));this.td=!1;var c=b[14],g,d;this.vq=[];this.jc=[];this.Fg=[];g=0;for(d=c.length;g<d;g++){var m=c[g],f=this.b.m[m[1]];f.kd||(f.kd=m,f.Os=this.index);this.jc.push(m);-1===this.eb.Tg.indexOf(f)&&this.eb.Tg.push(f)}Ba(this.vq,
- this.jc);this.I=[];this.Z=[];this.Wd=!0;this.Aa=[];g=0;for(d=b[15].length;g<d;g++)this.I.push({id:b[15][g][0],name:b[15][g][1],Na:-1,$c:!1,ab:!0,index:g}),this.Aa.push(b[15][g][2].slice(0));this.dd();this.dg=new sa(0,0,1,1);this.Gm=new sa(0,0,1,1)}function q(){return b.length?b.pop():[]}function t(a){R(a);b.push(a)}h.prototype.Iv=function(a){var b=a.type.V.toString();this.Ce.hasOwnProperty(b)||(this.Ce[b]=[]);this.Ce[b].push(this.b.Mm(a))};h.prototype.Ho=function(){var a=this.K[0];return!a.cd&&1===
- a.opacity&&!a.yi&&a.visible};h.prototype.dd=function(){R(this.Z);this.Wd=!0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.ab&&(this.Z.push(c),c.$c||(this.Wd=!1))};h.prototype.il=function(a){var b,c,g;b=0;for(c=this.I.length;b<c;b++)if(g=this.I[b],g.name===a)return g;return null};var p=[],c=!0;h.prototype.Um=function(){this.pq&&(this.Ve=this.b.Wk[this.pq],this.Ve.hn());this.b.U=this;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;var a,b,l,g,d,m,f;a=0;for(l=this.b.m.length;a<l;a++)if(b=
- this.b.m[a],!b.J)for(d=b.d,b=0,g=d.length;b<g;b++)if(m=d[b],m.j){var k=m.j.Dp;k>=this.K.length&&(k=this.K.length-1);m.j=this.K[k];-1===m.j.d.indexOf(m)&&m.j.d.push(m);m.j.sf=!0}if(!c)for(a=0,l=this.K.length;a<l;++a)this.K[a].d.sort(n);R(p);this.Es();a=0;for(l=this.K.length;a<l;a++)m=this.K[a],m.Ms(),m.ck();d=!1;if(!this.Ff){for(f in this.Ce)if(this.Ce.hasOwnProperty(f)&&(b=this.b.Fi(parseInt(f,10)))&&!b.J&&this.b.en(b)){g=this.Ce[f];a=0;for(l=g.length;a<l;a++){m=null;if(b.ga.te&&(m=this.Di(g[a].w.l),
- !m))continue;m=this.b.Se(b.kd,m,!1,0,0,!0);this.b.bj(m,g[a]);d=!0;p.push(m)}R(g)}a=0;for(l=this.K.length;a<l;a++)this.K[a].d.sort(n),this.K[a].sf=!0}d&&(this.b.rb(),this.b.dq());for(a=0;a<p.length;a++)if(m=p[a],m.type.Ec)for(l=m.Og(),b=0,g=m.type.Tb.length;b<g;b++)f=m.type.Tb[b],m.type!==f&&(f.d.length>l?m.siblings.push(f.d[l]):f.kd&&(d=this.b.Se(f.kd,m.j,!0,m.x,m.y,!0),this.b.rb(),f.ak(),m.siblings.push(d),p.push(d)));a=0;for(l=this.cf.length;a<l;a++)this.b.Se(this.cf[a],null,!0);this.b.Ag=null;
- this.b.rb();if(this.b.ea&&!this.b.pa)for(a=0,l=this.b.m.length;a<l;a++)f=this.b.m[a],!f.J&&f.d.length&&f.zm&&f.zm(this.b.ea);a=0;for(l=p.length;a<l;a++)m=p[a],this.b.trigger(Object.getPrototypeOf(m.type.ga).e.Cr,m);R(p);this.b.Qi||this.b.trigger(V.prototype.e.yn,null);this.Ff=!1};h.prototype.Ls=function(){var a,b,c,g,d;b=a=0;for(c=this.cf.length;a<c;a++)g=this.cf[a],d=this.b.m[g[1]],d.global?d.Ec||this.b.Se(g,null,!0):(this.cf[b]=g,b++);za(this.cf,b)};h.prototype.Sv=function(){this.b.Qi||this.b.trigger(V.prototype.e.Ir,
- null);this.b.Il=!0;R(this.b.vd.Pb);var a,b,l,g,d,m;if(!this.Ff)for(a=0,b=this.K.length;a<b;a++)for(this.K[a].kn(),d=this.K[a].d,l=0,g=d.length;l<g;l++)m=d[l],m.type.global||this.b.en(m.type)&&this.Iv(m);a=0;for(b=this.K.length;a<b;a++){d=this.K[a].d;l=0;for(g=d.length;l<g;l++)m=d[l],m.type.global||this.b.be(m);this.b.rb();R(d);this.K[a].sf=!0}a=0;for(b=this.b.m.length;a<b;a++)if(d=this.b.m[a],!(d.global||d.ga.te||d.ga.Nj||d.J)){l=0;for(g=d.d.length;l<g;l++)this.b.be(d.d[l]);this.b.rb()}c=!1;this.b.Il=
- !1};new sa(0,0,0,0);h.prototype.gc=function(a){var b,c=a,g=!1,d=!this.b.hc;d&&(this.b.$i||(this.b.$i=document.createElement("canvas"),b=this.b.$i,b.width=this.b.D,b.height=this.b.C,this.b.cp=b.getContext("2d"),g=!0),b=this.b.$i,c=this.b.cp,b.width!==this.b.D&&(b.width=this.b.D,g=!0),b.height!==this.b.C&&(b.height=this.b.C,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.R,c.mozImageSmoothingEnabled=this.b.R,c.msImageSmoothingEnabled=this.b.R,c.imageSmoothingEnabled=this.b.R));c.globalAlpha=1;c.globalCompositeOperation=
- "source-over";this.b.zk&&!this.Ho()&&c.clearRect(0,0,this.b.D,this.b.C);var m,f,g=0;for(m=this.K.length;g<m;g++)f=this.K[g],f.visible&&0<f.opacity&&11!==f.sb&&(f.d.length||!f.cd)?f.gc(c):f.ck();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};h.prototype.Cf=function(a){a.kq(!0);this.b.La||(this.b.La=a.ec(this.b.D,this.b.C,this.b.R));if(this.b.La.Qe!==this.b.D||this.b.La.Pe!==this.b.C)a.deleteTexture(this.b.La),this.b.La=a.ec(this.b.D,this.b.C,this.b.R);a.Jc(this.b.La);this.b.hc||a.qf(this.b.D,this.b.C);
- var b,c;for(b=this.K.length-1;0<=b;--b)c=this.K[b],c.visible&&1===c.opacity&&c.Wd&&0===c.sb&&(c.d.length||!c.cd)?c.Cf(a):c.ck();a.kq(!1)};h.prototype.Hb=function(a){var b=0<this.Z.length||this.b.qg||!this.b.hc||this.b.na;if(b){this.b.La||(this.b.La=a.ec(this.b.D,this.b.C,this.b.R));if(this.b.La.Qe!==this.b.D||this.b.La.Pe!==this.b.C)a.deleteTexture(this.b.La),this.b.La=a.ec(this.b.D,this.b.C,this.b.R);a.Jc(this.b.La);this.b.hc||a.qf(this.b.D,this.b.C)}else this.b.La&&(a.Jc(null),a.deleteTexture(this.b.La),
- this.b.La=null);this.b.zk&&!this.Ho()&&a.clear(0,0,0,0);var c,g,d;c=0;for(g=this.K.length;c<g;c++)d=this.K[c],d.visible&&0<d.opacity&&(d.d.length||!d.cd)?d.Hb(a):d.ck();b&&(0===this.Z.length||1===this.Z.length&&this.b.hc?(1===this.Z.length?(b=this.Z[0].index,a.Ob(this.Z[0].Na),a.gg(null,1/this.b.D,1/this.b.C,0,0,1,1,this.scale,this.k,0,0,this.b.D/2,this.b.C/2,this.b.nb.X,this.Aa[b]),a.Aj(this.Z[0].Na)&&(this.b.ca=!0)):a.Ob(0),this.b.hc||a.qf(this.b.width,this.b.height),a.Jc(null),a.jq(!1),a.pf(1),
- a.$b(this.b.La),a.hq(),a.Ic(),a.uc(),b=this.b.width/2,c=this.b.height/2,a.bg(-b,c,b,c,b,-c,-b,-c),a.$b(null),a.jq(!0)):this.Hm(a,null,null,null))};h.prototype.Ng=function(){return 0<this.Z.length||this.b.qg||!this.b.hc||this.b.na?this.b.La:null};h.prototype.Fo=function(){var a=this.K[0].Jb(),b,c,g;b=1;for(c=this.K.length;b<c;b++)g=this.K[b],(0!==g.Gc||0!==g.Hc)&&g.Jb()<a&&(a=g.Jb());return a};h.prototype.Ij=function(a){if(!this.Iq){var b=1/this.Fo()*this.b.D/2;a>this.width-b&&(a=this.width-b);a<b&&
- (a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ca=!0)};h.prototype.Om=function(a){if(!this.Iq){var b=1/this.Fo()*this.b.C/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ca=!0)};h.prototype.Es=function(){this.Ij(this.scrollX);this.Om(this.scrollY)};h.prototype.Hm=function(a,b,c,g){var d=c?c.Z:b?b.Z:this.Z,m=1,f=0,k=0,r=0,h=this.b.D,p=this.b.C;c?(m=c.j.Jb(),f=c.j.Ea(),k=c.j.ja,r=c.j.ka,h=c.j.ta,p=c.j.ra):b&&(m=b.Jb(),f=b.Ea(),k=b.ja,r=b.ka,h=b.ta,p=b.ra);var n=
- this.b.el,t,q,w,M,x=0,fa=1,ga,Q=this.b.D,J=this.b.C,B=Q/2,Aa=J/2,G=b?b.dg:this.dg,H=b?b.Gm:this.Gm,I=0,T=0,E=0,D=0,N=Q,ha=Q,P=J,ta=J,ma=w=0;M=c?c.j.Ea():0;if(c){t=0;for(q=d.length;t<q;t++)w+=a.iu(d[t].Na),ma+=a.ju(d[t].Na);D=c.Oa;I=b.Ta(D.left,D.top,!0);E=b.Ta(D.left,D.top,!1);N=b.Ta(D.right,D.bottom,!0);P=b.Ta(D.right,D.bottom,!1);0!==M&&(t=b.Ta(D.right,D.top,!0),q=b.Ta(D.right,D.top,!1),T=b.Ta(D.left,D.bottom,!0),D=b.Ta(D.left,D.bottom,!1),M=Math.min(I,N,t,T),N=Math.max(I,N,t,T),I=M,M=Math.min(E,
- P,q,D),P=Math.max(E,P,q,D),E=M);I-=w;E-=ma;N+=w;P+=ma;H.left=I/Q;H.top=1-E/J;H.right=N/Q;H.bottom=1-P/J;T=I=O(I);D=E=O(E);ha=N=qa(N);ta=P=qa(P);T-=w;D-=ma;ha+=w;ta+=ma;0>I&&(I=0);0>E&&(E=0);N>Q&&(N=Q);P>J&&(P=J);0>T&&(T=0);0>D&&(D=0);ha>Q&&(ha=Q);ta>J&&(ta=J);G.left=I/Q;G.top=1-E/J;G.right=N/Q;G.bottom=1-P/J}else G.left=H.left=0,G.top=H.top=0,G.right=H.right=1,G.bottom=H.bottom=1;ma=c&&(a.Ch(d[0].Na)||0!==w||0!==ma||1!==c.opacity||c.type.ga.yp)||b&&!c&&1!==b.opacity;a.hq();if(ma){n[x]||(n[x]=a.ec(Q,
- J,this.b.R));if(n[x].Qe!==Q||n[x].Pe!==J)a.deleteTexture(n[x]),n[x]=a.ec(Q,J,this.b.R);a.Ob(0);a.Jc(n[x]);ga=ta-D;a.clearRect(T,J-D-ga,ha-T,ga);c?c.Hb(a):(a.$b(this.b.Ua),a.pf(b.opacity),a.Ic(),a.translate(-B,-Aa),a.uc(),a.De(I,P,N,P,N,E,I,E,G));H.left=H.top=0;H.right=H.bottom=1;c&&(M=G.top,G.top=G.bottom,G.bottom=M);x=1;fa=0}a.pf(1);w=d.length-1;var La=a.Bm(d[w].Na)||!b&&!c&&!this.b.hc,xa=0;t=0;for(q=d.length;t<q;t++){n[x]||(n[x]=a.ec(Q,J,this.b.R));if(n[x].Qe!==Q||n[x].Pe!==J)a.deleteTexture(n[x]),
- n[x]=a.ec(Q,J,this.b.R);a.Ob(d[t].Na);xa=d[t].index;a.Aj(d[t].Na)&&(this.b.ca=!0);0!=t||ma?(a.gg(g,1/Q,1/J,H.left,H.top,H.right,H.bottom,m,f,k,r,(k+h)/2,(r+p)/2,this.b.nb.X,c?c.Aa[xa]:b?b.Aa[xa]:this.Aa[xa]),a.$b(null),t!==w||La?(a.Jc(n[x]),ga=ta-D,M=J-D-ga,a.clearRect(T,M,ha-T,ga)):(c?a.Ee(c.yb,c.ub):b&&a.Ee(b.yb,b.ub),a.Jc(g)),a.$b(n[fa]),a.Ic(),a.translate(-B,-Aa),a.uc(),a.De(I,P,N,P,N,E,I,E,G),t!==w||La||a.$b(null)):(a.Jc(n[x]),ga=ta-D,M=J-D-ga,a.clearRect(T,M,ha-T,ga),c?(a.gg(g,1/c.width,1/c.height,
- H.left,H.top,H.right,H.bottom,m,f,k,r,(k+h)/2,(r+p)/2,this.b.nb.X,c.Aa[xa]),c.Hb(a)):(a.gg(g,1/Q,1/J,0,0,1,1,m,f,k,r,(k+h)/2,(r+p)/2,this.b.nb.X,b?b.Aa[xa]:this.Aa[xa]),a.$b(b?this.b.Ua:this.b.La),a.Ic(),a.translate(-B,-Aa),a.uc(),a.De(I,P,N,P,N,E,I,E,G)),H.left=H.top=0,H.right=H.bottom=1,c&&!La&&(M=P,P=E,E=M));x=0===x?1:0;fa=0===x?1:0}La&&(a.Ob(0),c?a.Ee(c.yb,c.ub):b?a.Ee(b.yb,b.ub):this.b.hc||(a.qf(this.b.width,this.b.height),B=this.b.width/2,Aa=this.b.height/2,E=I=0,N=this.b.width,P=this.b.height),
- a.Jc(g),a.$b(n[fa]),a.Ic(),a.translate(-B,-Aa),a.uc(),c&&1===d.length&&!ma?a.De(I,E,N,E,N,P,I,P,G):a.De(I,P,N,P,N,E,I,E,G),a.$b(null))};h.prototype.Di=function(a){var b,c;b=0;for(c=this.K.length;b<c;b++)if(this.K[b].V===a)return this.K[b];return null};h.prototype.Nb=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Ff,persist:this.Ce,fx:[],layers:{}};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],g.fx.push({name:c.name,active:c.ab,params:this.Aa[c.index]});
- a=0;for(b=this.K.length;a<b;a++)c=this.K[a],g.layers[c.V.toString()]=c.Nb();return g};h.prototype.nc=function(a){var b,c,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Ce=a.persist;"undefined"!==typeof a.fv&&(this.Ff=a.fv);var m=a.fx;b=0;for(c=m.length;b<c;b++)if(g=this.il(m[b].name))g.ab=m[b].active,this.Aa[g.index]=m[b].params;this.dd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Di(parseInt(d,10)))&&a.nc(b[d])};Hb=h;f.prototype.dd=function(){R(this.Z);
- this.Wd=!0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.ab&&(this.Z.push(c),c.$c||(this.Wd=!1))};f.prototype.il=function(a){var b,c,g;b=0;for(c=this.I.length;b<c;b++)if(g=this.I[b],g.name===a)return g;return null};f.prototype.Ms=function(){var a,b,c,g,d,m;b=a=0;for(c=this.jc.length;a<c;a++){g=this.jc[a];d=this.b.m[g[1]];m=this.b.en(d);d=!0;if(!m||this.eb.Ff)g=this.b.Se(g,this,!0),p.push(g),g.type.global&&(d=!1,this.Fg.push(g.uid));d&&(this.jc[b]=this.jc[a],b++)}this.jc.length=b;this.b.rb();
- !this.b.n&&this.I.length&&(this.sb=this.lt);this.Cg=jb(this.sb);this.b.q&&kb(this,this.sb,this.b.q);this.ad=!0};f.prototype.eg=function(a,b){var c=Da(this.d,a);0>c||(b&&this.vc&&a.Lb&&a.Lb.right>=a.Lb.left&&(a.Za(),this.qb.update(a,a.Lb,null),a.Lb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(ya(this.d,c),this.Hh(c)),this.ad=!0)};f.prototype.yg=function(a,b){a.ed=this.d.length;this.d.push(a);b&&this.vc&&a.Lb&&a.Ma();this.ad=!0};f.prototype.uv=function(a){this.d.unshift(a);this.Hh(0)};f.prototype.$u=
- function(a,b,c){var g=a.md();b=b.md();ya(this.d,g);g<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Hh(g<b?g:b)};f.prototype.Hh=function(a){-1===this.ae?this.ae=a:a<this.ae&&(this.ae=a);this.ad=this.sf=!0};f.prototype.kn=function(){if(this.sf){-1===this.ae&&(this.ae=0);var a,b,c;if(this.vc)for(a=this.ae,b=this.d.length;a<b;++a)c=this.d[a],c.ed=a,this.qb.Wu(c.Lb);else for(a=this.ae,b=this.d.length;a<b;++a)this.d[a].ed=a;this.sf=!1;this.ae=-1}};f.prototype.Jb=function(a){return this.fu()*
- (this.b.hc||a?this.b.zg:1)};f.prototype.fu=function(){return(this.scale*this.eb.scale-1)*this.Qb+1};f.prototype.Ea=function(){return this.Dd?0:Ja(this.eb.k+this.k)};var b=[],w=[],d=[];f.prototype.nl=function(){this.kn();this.qb.cq(this.ja,this.ka,this.ta,this.ra,d);if(!d.length)return q();if(1===d.length){var a=q();Ba(a,d[0]);R(d);return a}for(var b=!0;1<d.length;){for(var a=d,c=void 0,g=void 0,f=void 0,m=void 0,h=void 0,c=0,g=a.length;c<g-1;c+=2){var f=a[c],m=a[c+1],h=q(),k=f,r=m,p=h,n=0,C=0,L=0,
- S=k.length,F=r.length,M=void 0,x=void 0;for(p.length=S+F;n<S&&C<F;++L)M=k[n],x=r[C],M.ed<x.ed?(p[L]=M,++n):(p[L]=x,++C);for(;n<S;++n,++L)p[L]=k[n];for(;C<F;++C,++L)p[L]=r[C];b||(t(f),t(m));w.push(h)}1===g%2&&(b?(f=q(),Ba(f,a[g-1]),w.push(f)):w.push(a[g-1]));Ba(a,w);R(w);b=!1}a=d[0];R(d);return a};f.prototype.gc=function(a){this.td=this.yi||1!==this.opacity||0!==this.sb;var b=this.b.canvas,c=a,g=!1;this.td&&(this.b.Zi||(this.b.Zi=document.createElement("canvas"),b=this.b.Zi,b.width=this.b.D,b.height=
- this.b.C,this.b.bp=b.getContext("2d"),g=!0),b=this.b.Zi,c=this.b.bp,b.width!==this.b.D&&(b.width=this.b.D,g=!0),b.height!==this.b.C&&(b.height=this.b.C,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.R,c.mozImageSmoothingEnabled=this.b.R,c.msImageSmoothingEnabled=this.b.R,c.imageSmoothingEnabled=this.b.R),this.cd&&c.clearRect(0,0,this.b.D,this.b.C));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.cd||(c.fillStyle="rgb("+this.Rc[0]+","+this.Rc[1]+","+this.Rc[2]+")",c.fillRect(0,0,this.b.D,
- this.b.C));c.save();this.Dd=!0;var g=this.Pa(0,0,!0,!0),d=this.Pa(0,0,!1,!0);this.Dd=!1;this.b.Zc&&(g=Math.round(g),d=Math.round(d));this.Fj(g,d,c);var m=this.Jb();c.scale(m,m);c.translate(-g,-d);this.vc?(this.jb.left=this.qb.Eb(this.ja),this.jb.top=this.qb.Fb(this.ka),this.jb.right=this.qb.Eb(this.ta),this.jb.bottom=this.qb.Fb(this.ra),this.ad||!this.jb.Ig(this.Rf)?(t(this.Rd),g=this.nl(),this.ad=!1,this.Rf.Dg(this.jb)):g=this.Rd):g=this.d;for(var f,k=null,d=0,m=g.length;d<m;++d)f=g[d],f!==k&&(this.gt(f,
- c),k=f);this.vc&&(this.Rd=g);c.restore();this.td&&(a.globalCompositeOperation=this.Cg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.gt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Za();var c=a.Oa;c.right<this.ja||c.bottom<this.ka||c.left>this.ta||c.top>this.ra||(b.globalCompositeOperation=a.Cg,a.gc(b))}};f.prototype.ck=function(){this.Dd=!0;var a=this.Pa(0,0,!0,!0),b=this.Pa(0,0,!1,!0);this.Dd=!1;this.b.Zc&&(a=Math.round(a),b=Math.round(b));this.Fj(a,b,null)};f.prototype.Fj=
- function(a,b,c){var g=this.Jb();this.ja=a;this.ka=b;this.ta=a+1/g*this.b.D;this.ra=b+1/g*this.b.C;a=this.Ea();0!==a&&(c&&(c.translate(this.b.D/2,this.b.C/2),c.rotate(-a),c.translate(this.b.D/-2,this.b.C/-2)),this.Yd.set(this.ja,this.ka,this.ta,this.ra),this.Yd.offset((this.ja+this.ta)/-2,(this.ka+this.ra)/-2),this.Cq.nq(this.Yd,a),this.Cq.$n(this.Yd),this.Yd.offset((this.ja+this.ta)/2,(this.ka+this.ra)/2),this.ja=this.Yd.left,this.ka=this.Yd.top,this.ta=this.Yd.right,this.ra=this.Yd.bottom)};f.prototype.Cf=
- function(a){if(this.td=this.yi){this.b.Ua||(this.b.Ua=a.ec(this.b.D,this.b.C,this.b.R));if(this.b.Ua.Qe!==this.b.D||this.b.Ua.Pe!==this.b.C)a.deleteTexture(this.b.Ua),this.b.Ua=a.ec(this.b.D,this.b.C,this.b.R);a.Jc(this.b.Ua)}this.Dd=!0;var b=this.Pa(0,0,!0,!0),c=this.Pa(0,0,!1,!0);this.Dd=!1;this.b.Zc&&(b=Math.round(b),c=Math.round(c));this.Fj(b,c,null);b=this.Jb();a.Ic();a.scale(b,b);a.Gj(-this.Ea());a.translate((this.ja+this.ta)/-2,(this.ka+this.ra)/-2);a.uc();this.vc?(this.jb.left=this.qb.Eb(this.ja),
- this.jb.top=this.qb.Fb(this.ka),this.jb.right=this.qb.Eb(this.ta),this.jb.bottom=this.qb.Fb(this.ra),this.ad||!this.jb.Ig(this.Rf)?(t(this.Rd),b=this.nl(),this.ad=!1,this.Rf.Dg(this.jb)):b=this.Rd):b=this.d;for(var g,d=null,c=b.length-1;0<=c;--c)g=b[c],g!==d&&(this.it(b[c],a),d=g);this.vc&&(this.Rd=b);this.cd||(this.Mk=this.b.Ue++,a.Kj(this.Mk),a.iq(1,1,1),a.xo(),a.Av())};f.prototype.Hb=function(a){var b=0,c=0;if(this.td=this.yi||1!==this.opacity||0<this.Z.length||0!==this.sb){this.b.Ua||(this.b.Ua=
- a.ec(this.b.D,this.b.C,this.b.R));if(this.b.Ua.Qe!==this.b.D||this.b.Ua.Pe!==this.b.C)a.deleteTexture(this.b.Ua),this.b.Ua=a.ec(this.b.D,this.b.C,this.b.R);a.Jc(this.b.Ua);this.cd&&a.clear(0,0,0,0)}this.cd||(this.b.na?(a.Kj(this.Mk),a.iq(this.Rc[0]/255,this.Rc[1]/255,this.Rc[2]/255),a.xo(),a.Ov()):a.clear(this.Rc[0]/255,this.Rc[1]/255,this.Rc[2]/255,1));this.Dd=!0;var g=this.Pa(0,0,!0,!0),b=this.Pa(0,0,!1,!0);this.Dd=!1;this.b.Zc&&(g=Math.round(g),b=Math.round(b));this.Fj(g,b,null);g=this.Jb();a.Ic();
- a.scale(g,g);a.Gj(-this.Ea());a.translate((this.ja+this.ta)/-2,(this.ka+this.ra)/-2);a.uc();this.vc?(this.jb.left=this.qb.Eb(this.ja),this.jb.top=this.qb.Fb(this.ka),this.jb.right=this.qb.Eb(this.ta),this.jb.bottom=this.qb.Fb(this.ra),this.ad||!this.jb.Ig(this.Rf)?(t(this.Rd),b=this.nl(),this.ad=!1,this.Rf.Dg(this.jb)):b=this.Rd):b=this.d;var d,m,f=null,c=0;for(d=b.length;c<d;++c)m=b[c],m!==f&&(this.ht(b[c],a),f=m);this.vc&&(this.Rd=b);this.td&&(b=this.Z.length?this.Z[0].Na:0,c=this.Z.length?this.Z[0].index:
- 0,0===this.Z.length||1===this.Z.length&&!a.Bm(b)&&1===this.opacity?(1===this.Z.length?(a.Ob(b),a.gg(this.eb.Ng(),1/this.b.D,1/this.b.C,0,0,1,1,g,this.Ea(),this.ja,this.ka,(this.ja+this.ta)/2,(this.ka+this.ra)/2,this.b.nb.X,this.Aa[c]),a.Aj(b)&&(this.b.ca=!0)):a.Ob(0),a.Jc(this.eb.Ng()),a.pf(this.opacity),a.$b(this.b.Ua),a.Ee(this.yb,this.ub),a.Ic(),a.uc(),g=this.b.D/2,b=this.b.C/2,a.bg(-g,b,g,b,g,-b,-g,-b),a.$b(null)):this.eb.Hm(a,this,null,this.eb.Ng()))};f.prototype.ht=function(a,b){if(a.visible&&
- 0!==a.width&&0!==a.height){a.Za();var c=a.Oa;c.right<this.ja||c.bottom<this.ka||c.left>this.ta||c.top>this.ra||(b.Kj(a.Ue),a.Oq?this.jt(a,b):(b.Ob(0),b.Ee(a.yb,a.ub),a.Hb(b)))}};f.prototype.it=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Za();var c=a.Oa;c.right<this.ja||c.bottom<this.ka||c.left>this.ta||c.top>this.ra||(a.Ue=this.b.Ue++,0===a.sb&&1===a.opacity&&a.Wd&&a.Cf&&(b.Kj(a.Ue),a.Cf(b)))}};f.prototype.jt=function(a,b){var c=a.Z[0].Na,g=a.Z[0].index,d=this.Jb();if(1!==a.Z.length||
- b.Bm(c)||b.wv(c)||(a.k||a.j.Ea())&&b.Ch(c)||1!==a.opacity||a.type.ga.yp)this.eb.Hm(b,this,a,this.td?this.b.Ua:this.eb.Ng()),b.Ic(),b.scale(d,d),b.Gj(-this.Ea()),b.translate((this.ja+this.ta)/-2,(this.ka+this.ra)/-2),b.uc();else{b.Ob(c);b.Ee(a.yb,a.ub);b.Aj(c)&&(this.b.ca=!0);var m=0,f=0,k=0,r=0;b.Ch(c)&&(c=a.Oa,m=this.Ta(c.left,c.top,!0),f=this.Ta(c.left,c.top,!1),k=this.Ta(c.right,c.bottom,!0),c=this.Ta(c.right,c.bottom,!1),m=m/windowWidth,f=1-f/windowHeight,k=k/windowWidth,r=1-c/windowHeight);b.gg(this.td?
- this.b.Ua:this.eb.Ng(),1/a.width,1/a.height,m,f,k,r,d,this.Ea(),this.ja,this.ka,(this.ja+this.ta)/2,(this.ka+this.ra)/2,this.b.nb.X,a.Aa[g]);a.Hb(b)}};f.prototype.Pa=function(a,b,c,g){var d=this.b.devicePixelRatio;this.b.ef&&(a*=d,b*=d);var d=this.b.Tp,m=this.b.Up,d=(this.eb.scrollX-d)*this.Gc+d,m=(this.eb.scrollY-m)*this.Hc+m,f=d,k=m,r=1/this.Jb(!g);g?(f-=this.b.D*r/2,k-=this.b.C*r/2):(f-=this.b.width*r/2,k-=this.b.height*r/2);f+=a*r;k+=b*r;b=this.Ea();0!==b&&(f-=d,k-=m,a=Math.cos(b),b=Math.sin(b),
- g=f*a-k*b,k=k*a+f*b,f=g+d,k+=m);return c?f:k};f.prototype.Ta=function(a,b,c){var g=this.b.Tp,d=this.b.Up,g=(this.eb.scrollX-g)*this.Gc+g,m=(this.eb.scrollY-d)*this.Hc+d,d=g,f=m,k=this.Ea();if(0!==k){a-=g;b-=m;var r=Math.cos(-k),k=Math.sin(-k),h=a*r-b*k;b=b*r+a*k;a=h+g;b+=m}g=1/this.Jb(!1);d-=this.b.D*g/2;f-=this.b.C*g/2;d=(a-d)/g;return c?d:(b-f)/g};f.prototype.Nb=function(){var a,b,c,g={s:this.scale,a:this.k,vl:this.ja,vt:this.ka,vr:this.ta,vb:this.ra,v:this.visible,bc:this.Rc,t:this.cd,px:this.Gc,
- py:this.Hc,o:this.opacity,zr:this.Qb,fx:[],cg:this.Fg,instances:[]};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],g.fx.push({name:c.name,active:c.ab,params:this.Aa[c.index]});return g};f.prototype.nc=function(a){var b,c,g;this.scale=a.s;this.k=a.a;this.ja=a.vl;this.ka=a.vt;this.ta=a.vr;this.ra=a.vb;this.visible=a.v;this.Rc=a.bc;this.cd=a.t;this.Gc=a.px;this.Hc=a.py;this.opacity=a.o;this.Qb=a.zr;this.Fg=a.cg||[];Ba(this.jc,this.vq);var d=new ba;b=0;for(g=this.Fg.length;b<g;++b)d.add(this.Fg[b]);c=b=
- 0;for(g=this.jc.length;b<g;++b)d.contains(this.jc[b][2])||(this.jc[c]=this.jc[b],++c);za(this.jc,c);c=a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.il(c[b].name))a.ab=c[b].active,this.Aa[a.index]=c[b].params;this.dd();this.d.sort(n);this.sf=!0};Vb=f})();
- (function(){function h(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function f(a){var b,c,e,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);g=v[a.length];b=0;for(c=g.length;b<c;b++)if(e=g[b],h(a,e))return e;g.push(a);return a}
- function q(a,b){this.b=a;this.Fq={};this.uo={};this.xl=!1;this.Jo=new ba;this.Rk=[];this.Ak=[];this.name=b[0];var c=b[1];this.qe=[];var e,g;e=0;for(g=c.length;e<g;e++)this.Lo(c[e],null,this.qe)}function t(a){this.type=a;this.d=[];this.aa=[];this.ua=!0}function p(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.Fe=[];this.Io=this.Xj=this.an=this.Mi=this.group=this.uq=!1;this.tb=[];this.Pc=[];this.Kc=[];this.Pg="";this.Hf=this.Mi=this.group=!1;this.fi=null;c[1]&&(this.Pg=c[1][1].toLowerCase(),
- this.group=!0,this.Mi=!!c[1][0],this.fi=[],this.Hf=this.Mi,this.b.je.push(this),this.b.Qg[this.Pg]=this);this.qd=c[2];this.V=c[4];this.group||(this.b.Zn[this.V.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var g=new Wb(this,e[a]);g.index=a;this.tb.push(g);this.Nn(g.type)}e=c[6];a=0;for(b=e.length;a<b;a++)g=new Xb(this,e[a]),g.index=a,this.Pc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Lo(c[a],this,this.Kc);this.Ti=!1;this.tb.length&&(this.Ti=null==this.tb[0].type&&
- this.tb[0].kb==V.prototype.e.sn)}function c(a,b){var c,e,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ec))for(c=0,e=a.Tb.length;c<e;c++)g=a.Tb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function b(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.Ca=[];this.Ba={};this.index=-1;this.wg=!1;this.kb=this.b.de(b[1]);this.trigger=0<b[3];this.so=2===b[3];this.od=b[4];this.Gl=b[5];this.Ru=b[6];this.V=b[7];this.b.zf[this.V.toString()]=this;-1===b[0]?(this.type=null,this.Xa=this.Lm,this.Oe=null,this.Sc=-1):
- (this.type=this.b.m[b[0]],this.Xa=this.Ru?this.Gv:this.Km,b[2]?(this.Oe=this.type.Ci(b[2]),this.Sc=this.type.gl(b[2])):(this.Oe=null,this.Sc=-1),this.cc.parent&&this.cc.parent.Mj());this.so&&(this.Xa=this.Hv);if(10===b.length){var c,e,g=b[9];c=0;for(e=g.length;c<e;c++){var d=new Yb(this,g[c]);this.P.push(d)}this.Ca.length=g.length}}function w(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.Ca=[];this.Ba={};this.index=-1;this.wg=!1;this.kb=this.b.de(b[1]);-1===b[0]?(this.type=null,this.Xa=
- this.Lm,this.Oe=null,this.Sc=-1):(this.type=this.b.m[b[0]],this.Xa=this.Km,b[2]?(this.Oe=this.type.Ci(b[2]),this.Sc=this.type.gl(b[2])):(this.Oe=null,this.Sc=-1));this.V=b[3];this.b.xf[this.V.toString()]=this;if(6===b.length){var c,e,g=b[5];c=0;for(e=g.length;c<e;c++){var d=new Yb(this,g[c]);this.P.push(d)}this.Ca.length=g.length}}function d(){u++;m.length===u&&m.push(new Zb);return m[u]}function a(a,b){this.qa=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ld=null;this.Xd=0;this.get=
- null;this.jo=0;this.eb=null;this.key=0;this.object=null;this.index=0;this.Sh=this.rf=this.Sh=this.rf=this.vo=this.We=this.Th=null;this.Oc=!1;var c,e,g;switch(b[0]){case 0:case 7:this.ld=new $b(this,b[1]);this.Xd=0;this.get=this.ou;break;case 1:this.ld=new $b(this,b[1]);this.Xd=0;this.get=this.pu;break;case 5:this.ld=new $b(this,b[1]);this.Xd=0;this.get=this.tu;break;case 3:case 8:this.jo=b[1];this.get=this.mu;break;case 6:this.eb=this.b.Ul[b[1]];this.get=this.uu;break;case 9:this.key=b[1];this.get=
- this.su;break;case 4:this.object=this.b.m[b[1]];this.get=this.vu;this.cc.Nn(this.object);this.qa instanceof Xb?this.cc.Mj():this.cc.parent&&this.cc.parent.Mj();break;case 10:this.index=b[1];a.type.J?(this.get=this.qu,this.Oc=!0):this.get=this.ru;break;case 11:this.Th=b[1];this.We=null;this.get=this.nu;break;case 2:case 12:this.vo=b[1];this.get=this.lu;break;case 13:for(this.get=this.wu,this.rf=[],this.Sh=[],c=1,e=b.length;c<e;c++)g=new Yb(this.qa,b[c]),this.rf.push(g),this.Sh.push(0)}}function e(a,
- b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.name=c[1];this.Uh=c[2];this.Al=c[3];this.eh=!!c[4];this.Si=!!c[5];this.V=c[6];this.b.sg[this.V.toString()]=this;this.data=this.Al;this.parent?(this.lf=this.eh||this.Si?-1:this.b.Qv++,this.b.ys.push(this)):(this.lf=-1,this.b.xs.push(this))}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.Sg=null;this.Cu=c[1];this.ab=!0}function g(){this.xq=[];this.reset(null)}var v=[];q.prototype.toString=function(){return this.name};
- q.prototype.Lo=function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.qd)for(c.push(a),c=0,b=a.tb.length;c<b;c++)a.tb[c].trigger&&this.Mo(a,c);else a.Vo()?this.Mo(a,0):c.push(a);break;case 1:a=new Sb(this,b,a);c.push(a);break;case 2:a=new bc(this,b,a),c.push(a)}};q.prototype.Ha=function(){var a,b;a=0;for(b=this.qe.length;a<b;a++)this.qe[a].Ha(a<b-1&&this.qe[a+1].Ti)};q.prototype.hn=function(){R(this.Rk);R(this.Ak);this.Mn(this);R(this.Ak)};q.prototype.Mn=function(a){var b,c,e,g,d=a.Rk,m=a.Ak,
- l=this.Jo.Ke();b=0;for(c=l.length;b<c;++b)e=l[b],g=e.Sg,!e.ab||a===g||-1<m.indexOf(g)||(m.push(g),g.Mn(a),d.push(g))};q.prototype.Xa=function(a){this.b.mx||(this.xl=!0,a||(this.b.Ll=!0));var b,c;b=0;for(c=this.qe.length;b<c;b++){var e=this.qe[b];e.Xa();this.b.Lk(e.wa);this.b.se&&this.b.rb()}a||(this.b.Ll=!1)};q.prototype.Mo=function(a,b){a.qd||this.b.$j.push(a);var c,e,g=a.tb[b],d;g.type?d=g.type.name:d="system";var m=(c=g.so)?this.uo:this.Fq;m[d]||(m[d]=[]);d=m[d];m=g.kb;if(c){if(g.P.length&&(g=
- g.P[0],1===g.type&&2===g.ld.type)){g=g.ld.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==m){c=d[c].Jg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];d.push({method:m,Jg:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==m){d[c].Jg.push([a,b]);return}X&&m===X.prototype.e.wf?d.unshift({method:m,Jg:[[a,b]]}):d.push({method:m,Jg:[[a,b]]})}};Ib=q;t.prototype.wl=function(){return this.ua?this.type.d.length:this.d.length};t.prototype.Tc=function(){return this.ua?this.type.d:
- this.d};t.prototype.Bh=function(a){a&&(a.b.Ib().fc.qd?(this.ua&&(R(this.d),Ba(this.aa,a.type.d),this.ua=!1),a=this.aa.indexOf(a),-1!==a&&(this.d.push(this.aa[a]),this.aa.splice(a,1))):(this.ua=!1,R(this.d),this.d[0]=a))};qb=t;window._c2hh_="417E4E0E570EED14CF766147927F77190F28B24E";p.prototype.Ha=function(a){var b,c=this.parent;if(this.group)for(this.Xj=!0;c;){if(!c.group){this.Xj=!1;break}c=c.parent}this.an=!this.Vo()&&(!this.parent||this.parent.group&&this.parent.Xj);this.Io=!!a;this.Fe=this.wa.slice(0);
- for(c=this.parent;c;){a=0;for(b=c.wa.length;a<b;a++)this.vs(c.wa[a]);c=c.parent}this.wa=f(this.wa);this.Fe=f(this.Fe);a=0;for(b=this.tb.length;a<b;a++)this.tb[a].Ha();a=0;for(b=this.Pc.length;a<b;a++)this.Pc[a].Ha();a=0;for(b=this.Kc.length;a<b;a++)this.Kc[a].Ha(a<b-1&&this.Kc[a+1].Ti)};p.prototype.lq=function(a){if(this.Hf!==!!a){this.Hf=!!a;var b;a=0;for(b=this.fi.length;a<b;++a)this.fi[a].Kq();0<b&&this.b.U.Ve&&this.b.U.Ve.hn()}};p.prototype.Nn=function(a){c(a,this.wa)};p.prototype.vs=function(a){c(a,
- this.Fe)};p.prototype.Mj=function(){this.uq=!0;this.parent&&this.parent.Mj()};p.prototype.Vo=function(){return this.tb.length?this.tb[0].trigger:!1};p.prototype.Xa=function(){var a,b,c=!1,e=this.b,g=this.b.Ib();g.fc=this;var d=this.tb;this.Ti||(g.Uk=!1);if(this.qd){0===d.length&&(c=!0);g.Sb=0;for(a=d.length;g.Sb<a;g.Sb++)b=d[g.Sb],b.trigger||(b=b.Xa())&&(c=!0);(g.gf=c)&&this.Jm()}else{g.Sb=0;for(a=d.length;g.Sb<a;g.Sb++)if(b=d[g.Sb].Xa(),!b){g.gf=!1;this.an&&e.se&&e.rb();return}g.gf=!0;this.Jm()}this.nt(g)};
- p.prototype.nt=function(a){a.gf&&this.Io&&(a.Uk=!0);this.an&&this.b.se&&this.b.rb()};p.prototype.Ev=function(a){this.b.Ib().fc=this;this.tb[a].Xa()&&(this.Jm(),this.b.Ib().gf=!0)};p.prototype.Jm=function(){var a=this.b.Ib(),b;a.Rb=0;for(b=this.Pc.length;a.Rb<b;a.Rb++)if(this.Pc[a.Rb].Xa())return;this.gq()};p.prototype.Cv=function(){var a=this.b.Ib(),b;for(b=this.Pc.length;a.Rb<b;a.Rb++)if(this.Pc[a.Rb].Xa())return;this.gq()};p.prototype.gq=function(){if(this.Kc.length){var a,b,c,e,g=this.Kc.length-
- 1;this.b.Dm(this);if(this.uq)for(a=0,b=this.Kc.length;a<b;a++)c=this.Kc[a],(e=!this.Xj||!this.group&&a<g)&&this.b.Cm(c.wa),c.Xa(),e?this.b.$f(c.wa):this.b.Lk(c.wa);else for(a=0,b=this.Kc.length;a<b;a++)this.Kc[a].Xa();this.b.Yp()}};p.prototype.Fv=function(){var a=this.b.Ib();a.fc=this;var b=!1,c;a.Sb=0;for(c=this.tb.length;a.Sb<c;a.Sb++)if(this.tb[a.Sb].Xa())b=!0;else if(!this.qd)return!1;return this.qd?b:!0};p.prototype.Ju=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.tb[b].type===
- a.type)return!1;return!0};ac=p;b.prototype.Ha=function(){var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.Ha(),c.Oc&&(this.wg=!0)};b.prototype.Hv=function(){return!0};b.prototype.Lm=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.Ca[a]=this.P[a].get();return Ya(this.kb.apply(this.b.vd,this.Ca),this.Gl)};b.prototype.Gv=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.Ca[a]=this.P[a].get();a=this.kb.apply(this.Oe?this.Oe:this.type,this.Ca);this.type.ke();return a};b.prototype.Km=
- function(){var a,b,c,e,g,d,m,l,f=this.type,h=f.ma(),u=this.cc.qd&&!this.trigger;b=0;var p=f.Ec,v=f.J,n=f.Hd,t=this.Sc,q=-1<t,w=this.wg,H=this.P,I=this.Ca,T=this.Gl,E=this.kb,D;if(w)for(b=0,g=H.length;b<g;++b)d=H[b],d.Oc||(I[b]=d.get(0));else for(b=0,g=H.length;b<g;++b)I[b]=H[b].get(0);if(h.ua){R(h.d);R(h.aa);D=f.d;a=0;for(e=D.length;a<e;++a){l=D[a];if(w)for(b=0,g=H.length;b<g;++b)d=H[b],d.Oc&&(I[b]=d.get(a));q?(b=0,v&&(b=l.type.Ef[n]),b=E.apply(l.L[t+b],I)):b=E.apply(l,I);(m=Ya(b,T))?h.d.push(l):
- u&&h.aa.push(l)}f.finish&&f.finish(!0);h.ua=!1;f.ke();return h.wl()}c=0;D=(m=u&&!this.cc.Ju(this))?h.aa:h.d;var N=!1;a=0;for(e=D.length;a<e;++a){l=D[a];if(w)for(b=0,g=H.length;b<g;++b)d=H[b],d.Oc&&(I[b]=d.get(a));q?(b=0,v&&(b=l.type.Ef[n]),b=E.apply(l.L[t+b],I)):b=E.apply(l,I);if(Ya(b,T))if(N=!0,m){if(h.d.push(l),p)for(b=0,g=l.siblings.length;b<g;b++)d=l.siblings[b],d.type.ma().d.push(d)}else{D[c]=l;if(p)for(b=0,g=l.siblings.length;b<g;b++)d=l.siblings[b],d.type.ma().d[c]=d;c++}else if(m){D[c]=l;
- if(p)for(b=0,g=l.siblings.length;b<g;b++)d=l.siblings[b],d.type.ma().aa[c]=d;c++}else if(u&&(h.aa.push(l),p))for(b=0,g=l.siblings.length;b<g;b++)d=l.siblings[b],d.type.ma().aa.push(d)}za(D,c);if(p)for(v=f.Tb,a=0,e=v.length;a<e;a++)l=v[a].ma(),m?za(l.aa,c):za(l.d,c);c=N;if(m&&!N)for(a=0,e=h.d.length;a<e;a++){l=h.d[a];if(w)for(b=0,g=H.length;b<g;b++)d=H[b],d.Oc&&(I[b]=d.get(a));b=q?E.apply(l.L[t],I):E.apply(l,I);if(Ya(b,T)){N=!0;break}}f.finish&&f.finish(c||u);return u?N:h.wl()};Wb=b;w.prototype.Ha=
- function(){var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.Ha(),c.Oc&&(this.wg=!0)};w.prototype.Lm=function(){var a=this.b,b,c,g=this.P,e=this.Ca;b=0;for(c=g.length;b<c;++b)e[b]=g[b].get();return this.kb.apply(a.vd,e)};w.prototype.Km=function(){var a=this.type,b=this.Sc,c=a.Hd,g=this.wg,e=this.P,d=this.Ca,l=this.kb,m=a.ma().Tc(),a=a.J,f=-1<b,h,u,p,v,n,t;if(g)for(u=0,v=e.length;u<v;++u)n=e[u],n.Oc||(d[u]=n.get(0));else for(u=0,v=e.length;u<v;++u)d[u]=e[u].get(0);h=0;for(p=m.length;h<p;++h){t=
- m[h];if(g)for(u=0,v=e.length;u<v;++u)n=e[u],n.Oc&&(d[u]=n.get(h));f?(u=0,a&&(u=t.type.Ef[c]),l.apply(t.L[b+u],d)):l.apply(t,d)}return!1};Xb=w;var m=[],u=-1;a.prototype.Ha=function(){var a,b;if(11===this.type)this.We=this.b.Do(this.Th,this.cc.parent);else if(13===this.type)for(a=0,b=this.rf.length;a<b;a++)this.rf[a].Ha();this.ld&&this.ld.Ha()};a.prototype.Yu=function(a){this.Oc||!a||a.ga.Nj||(this.Oc=!0)};a.prototype.mq=function(){this.Oc=!0};a.prototype.ou=function(a){this.Xd=a||0;a=d();this.ld.get(a);
- u--;return a.data};a.prototype.pu=function(a){this.Xd=a||0;a=d();this.ld.get(a);u--;return K(a.data)?a.data:""};a.prototype.vu=function(){return this.object};a.prototype.mu=function(){return this.jo};a.prototype.tu=function(a){this.Xd=a||0;a=d();this.ld.get(a);u--;return a.cb()?this.b.Kd(a.data):this.b.Mg(a.data)};a.prototype.uu=function(){return this.eb};a.prototype.su=function(){return this.key};a.prototype.ru=function(){return this.index};a.prototype.qu=function(a){a=a||0;var b=this.qa.type,c=
- null,c=b.ma(),g=c.Tc();if(g.length)c=g[a%g.length].type;else if(c.aa.length)c=c.aa[a%c.aa.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.si[b.Hd]};a.prototype.nu=function(){return this.We};a.prototype.lu=function(){return this.vo};a.prototype.wu=function(){var a,b;a=0;for(b=this.rf.length;a<b;a++)this.Sh[a]=this.rf[a].get();return this.Sh};Yb=a;e.prototype.Ha=function(){this.wa=f(this.wa)};e.prototype.Vd=function(a){var b=this.b.Co();this.parent&&!this.eh&&
- b?(this.lf>=b.length&&(b.length=this.lf+1),b[this.lf]=a):this.data=a};e.prototype.Ze=function(){var a=this.b.Co();return!this.parent||this.eh||!a||this.Si?this.data:this.lf>=a.length||"undefined"===typeof a[this.lf]?this.Al:a[this.lf]};e.prototype.Xa=function(){!this.parent||this.eh||this.Si||this.Vd(this.Al)};Sb=e;l.prototype.toString=function(){return"include:"+this.Sg.toString()};l.prototype.Ha=function(){this.Sg=this.b.Wk[this.Cu];this.sheet.Jo.add(this);this.wa=f(this.wa);for(var a=this.parent;a;)a.group&&
- a.fi.push(this),a=a.parent;this.Kq()};l.prototype.Xa=function(){this.parent&&this.b.Eh(this.b.m);this.Sg.xl||this.Sg.Xa(!0);this.parent&&this.b.$f(this.b.m)};l.prototype.Kq=function(){for(var a=this.parent;a;){if(a.group&&!a.Hf){this.ab=!1;return}a=a.parent}this.ab=!0};bc=l;g.prototype.reset=function(a){this.fc=a;this.Rb=this.Sb=0;R(this.xq);this.Uk=this.gf=!1};Rb=g})();
- (function(){function h(c,b){this.qa=c;this.b=c.b;this.type=b[0];this.get=[this.Ht,this.Dt,this.Qt,this.Tt,this.pt,this.Rt,this.Lt,this.At,this.Kt,this.Pt,this.qt,this.Ot,this.Bt,this.Mt,this.It,this.Jt,this.Et,this.Ft,this.zt,this.St,this.Nt,this.Gt,this.yt,this.Ct][this.type];var f=null;this.Sd=this.P=this.Ca=this.kb=this.Wj=this.second=this.first=this.value=null;this.Sc=-1;this.Uc=null;this.Pq=-1;this.We=this.Th=null;this.fg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
- new $b(c,b[1]);break;case 18:this.first=new $b(c,b[1]);this.second=new $b(c,b[2]);this.Wj=new $b(c,b[3]);break;case 19:this.kb=this.b.de(b[1]);this.kb!==V.prototype.M.random&&this.kb!==V.prototype.M.Is||this.qa.mq();this.Ca=[];this.P=[];3===b.length?(f=b[2],this.Ca.length=f.length+1):this.Ca.length=1;break;case 20:this.Sd=this.b.m[b[1]];this.Sc=-1;this.kb=this.b.de(b[2]);this.fg=b[3];ec.Function&&this.kb===ec.Function.prototype.M.ow&&this.qa.mq();b[4]?this.Uc=new $b(c,b[4]):this.Uc=null;this.Ca=[];
- this.P=[];6===b.length?(f=b[5],this.Ca.length=f.length+1):this.Ca.length=1;break;case 21:this.Sd=this.b.m[b[1]];this.fg=b[2];b[3]?this.Uc=new $b(c,b[3]):this.Uc=null;this.Pq=b[4];break;case 22:this.Sd=this.b.m[b[1]];this.Sd.Ci(b[2]);this.Sc=this.Sd.gl(b[2]);this.kb=this.b.de(b[3]);this.fg=b[4];b[5]?this.Uc=new $b(c,b[5]):this.Uc=null;this.Ca=[];this.P=[];7===b.length?(f=b[6],this.Ca.length=f.length+1):this.Ca.length=1;break;case 23:this.Th=b[1],this.We=null}this.qa.Yu(this.Sd);4<=this.type&&17>=this.type&&
- (this.first=new $b(c,b[1]),this.second=new $b(c,b[2]));if(f){var d,a;d=0;for(a=f.length;d<a;d++)this.P.push(new $b(c,f[d]))}}function n(){++p;t.length===p&&t.push(new Zb);return t[p]}function f(c,b,f){var d,a;d=0;for(a=c.length;d<a;++d)c[d].get(f),b[d+1]=f.data}function q(c,b){this.type=c||cc.uf;this.data=b||0;this.nf=null;this.type==cc.uf&&(this.data=Math.floor(this.data))}h.prototype.Ha=function(){23===this.type&&(this.We=this.qa.b.Do(this.Th,this.qa.cc.parent));this.first&&this.first.Ha();this.second&&
- this.second.Ha();this.Wj&&this.Wj.Ha();this.Uc&&this.Uc.Ha();if(this.P){var c,b;c=0;for(b=this.P.length;c<b;c++)this.P[c].Ha()}};var t=[],p=-1;h.prototype.St=function(c){var b=this.P,h=this.Ca;h[0]=c;c=n();f(b,h,c);--p;this.kb.apply(this.b.vd,h)};h.prototype.Nt=function(c){var b=this.Sd,h=this.Ca,d=this.P,a=this.Uc,e=this.kb,l=this.qa.Xd,g=b.ma(),v=g.Tc();if(!v.length)if(g.aa.length)v=g.aa;else{this.fg?c.za(""):c.fa(0);return}h[0]=c;c.nf=b;c=n();f(d,h,c);a&&(a.get(c),c.cb()&&(l=c.data,v=b.d));--p;
- b=v.length;if(l>=b||l<=-b)l%=b;0>l&&(l+=b);e.apply(v[l],h)};h.prototype.yt=function(c){var b=this.Sd,h=this.Ca,d=this.P,a=this.Uc,e=this.Sc,l=this.kb,g=this.qa.Xd,v=b.ma(),m=v.Tc();if(!m.length)if(v.aa.length)m=v.aa;else{this.fg?c.za(""):c.fa(0);return}h[0]=c;c.nf=b;c=n();f(d,h,c);a&&(a.get(c),c.cb()&&(g=c.data,m=b.d));--p;d=m.length;if(g>=d||g<=-d)g%=d;0>g&&(g+=d);g=m[g];m=0;b.J&&(m=g.type.Ef[b.Hd]);l.apply(g.L[e+m],h)};h.prototype.Gt=function(c){var b=this.Uc,f=this.Sd,d=this.Pq,a=this.qa.Xd,e=
- f.ma(),l=e.Tc();if(!l.length)if(e.aa.length)l=e.aa;else{this.fg?c.za(""):c.fa(0);return}if(b){e=n();b.get(e);if(e.cb()){a=e.data;l=f.d;0!==l.length&&(a%=l.length,0>a&&(a+=l.length));a=f.ll(a);f=a.Ra[d];K(f)?c.za(f):c.u(f);--p;return}--p}b=l.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=l[a];l=0;f.J&&(l=a.type.si[f.Hd]);f=a.Ra[d+l];K(f)?c.za(f):c.u(f)};h.prototype.Ht=function(c){c.type=cc.uf;c.data=this.value};h.prototype.Dt=function(c){c.type=cc.tf;c.data=this.value};h.prototype.Qt=function(c){c.type=
- cc.String;c.data=this.value};h.prototype.Tt=function(c){this.first.get(c);c.cb()&&(c.data=-c.data)};h.prototype.pt=function(c){this.first.get(c);var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data+=b.data,b.Mf()&&c.Tf());--p};h.prototype.Rt=function(c){this.first.get(c);var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data-=b.data,b.Mf()&&c.Tf());--p};h.prototype.Lt=function(c){this.first.get(c);var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data*=b.data,b.Mf()&&c.Tf());--p};h.prototype.At=function(c){this.first.get(c);
- var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data/=b.data,c.Tf());--p};h.prototype.Kt=function(c){this.first.get(c);var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data%=b.data,b.Mf()&&c.Tf());--p};h.prototype.Pt=function(c){this.first.get(c);var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data=Math.pow(c.data,b.data),b.Mf()&&c.Tf());--p};h.prototype.qt=function(c){this.first.get(c);var b=n();this.second.get(b);b.Pf()||c.Pf()?this.ut(c,b):this.tt(c,b);--p};h.prototype.ut=function(c,b){c.Pf()&&
- b.Pf()?this.xt(c,b):this.wt(c,b)};h.prototype.xt=function(c,b){c.data+=b.data};h.prototype.wt=function(c,b){c.Pf()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.za(c.data.toString()+b.data)};h.prototype.tt=function(c,b){c.fa(c.data&&b.data?1:0)};h.prototype.Ot=function(c){this.first.get(c);var b=n();this.second.get(b);c.cb()&&b.cb()&&(c.data||b.data?c.fa(1):c.fa(0));--p};h.prototype.zt=function(c){this.first.get(c);c.data?this.second.get(c):this.Wj.get(c)};h.prototype.Bt=function(c){this.first.get(c);
- var b=n();this.second.get(b);c.fa(c.data===b.data?1:0);--p};h.prototype.Mt=function(c){this.first.get(c);var b=n();this.second.get(b);c.fa(c.data!==b.data?1:0);--p};h.prototype.It=function(c){this.first.get(c);var b=n();this.second.get(b);c.fa(c.data<b.data?1:0);--p};h.prototype.Jt=function(c){this.first.get(c);var b=n();this.second.get(b);c.fa(c.data<=b.data?1:0);--p};h.prototype.Et=function(c){this.first.get(c);var b=n();this.second.get(b);c.fa(c.data>b.data?1:0);--p};h.prototype.Ft=function(c){this.first.get(c);
- var b=n();this.second.get(b);c.fa(c.data>=b.data?1:0);--p};h.prototype.Ct=function(c){var b=this.We.Ze();ja(b)?c.u(b):c.za(b)};$b=h;q.prototype.Mf=function(){return this.type===cc.tf};q.prototype.cb=function(){return this.type===cc.uf||this.type===cc.tf};q.prototype.Pf=function(){return this.type===cc.String};q.prototype.Tf=function(){this.Mf()||(this.Pf()&&(this.data=parseFloat(this.data)),this.type=cc.tf)};q.prototype.fa=function(c){this.type=cc.uf;this.data=Math.floor(c)};q.prototype.u=function(c){this.type=
- cc.tf;this.data=c};q.prototype.za=function(c){this.type=cc.String;this.data=c};q.prototype.Pv=function(c){ja(c)?(this.type=cc.tf,this.data=c):K(c)?(this.type=cc.String,this.data=c.toString()):(this.type=cc.uf,this.data=0)};Zb=q;cc={uf:0,tf:1,String:2}})();function V(h){this.b=h;this.Pb=[]}
- V.prototype.Nb=function(){var h={},n,f,q,t,p,c,b,w;h.waits=[];var d=h.waits,a;n=0;for(f=this.Pb.length;n<f;n++){c=this.Pb[n];a={t:c.time,st:c.sq,s:c.Sm,ev:c.Df.V,sm:[],sols:{}};c.Df.Pc[c.Rb]&&(a.act=c.Df.Pc[c.Rb].V);q=0;for(t=c.wa.length;q<t;q++)a.sm.push(c.wa[q].V);for(p in c.Db)if(c.Db.hasOwnProperty(p)){b=this.b.m[parseInt(p,10)];w={sa:c.Db[p].Hj,insts:[]};q=0;for(t=c.Db[p].Ld.length;q<t;q++)w.insts.push(c.Db[p].Ld[q].uid);a.sols[b.V.toString()]=w}d.push(a)}return h};
- V.prototype.nc=function(h){h=h.waits;var n,f,q,t,p,c,b,w,d,a,e;R(this.Pb);n=0;for(f=h.length;n<f;n++)if(c=h[n],w=this.b.Zn[c.ev.toString()]){d=-1;q=0;for(t=w.Pc.length;q<t;q++)if(w.Pc[q].V===c.act){d=q;break}if(-1!==d){b={Db:{},wa:[],Sk:!1};b.time=c.t;b.sq=c.st||"";b.Sm=!!c.s;b.Df=w;b.Rb=d;q=0;for(t=c.sm.length;q<t;q++)(w=this.b.Fi(c.sm[q]))&&b.wa.push(w);for(p in c.sols)if(c.sols.hasOwnProperty(p)&&(w=this.b.Fi(parseInt(p,10)))){d=c.sols[p];a={Hj:d.sa,Ld:[]};q=0;for(t=d.insts.length;q<t;q++)(e=this.b.Ei(d.insts[q]))&&
- a.Ld.push(e);b.Db[w.index.toString()]=a}this.Pb.push(b)}}};
- (function(){function h(){}function n(){}function f(){}var q=V.prototype;h.prototype.yn=function(){return!0};h.prototype.Ir=function(){return!0};h.prototype.Zq=function(c,b,f){return dc(c,b,f)};h.prototype.ks=function(){var c=this.b.Bo().Ba;"undefined"===typeof c.TriggerOnce_lastTick&&(c.TriggerOnce_lastTick=-1);var b=c.TriggerOnce_lastTick,f=this.b.bd;c.TriggerOnce_lastTick=f;return this.b.Tl||b!==f-1};h.prototype.br=function(c,b,f){return dc(c.Ze(),b,f)};h.prototype.kr=function(c){return(c=this.b.Qg[c.toLowerCase()])&&
- c.Hf};h.prototype.sn=function(){var c=this.b.Ib();return c.Uk?!1:!c.gf};h.prototype.zn=function(){return!0};h.prototype.Br=function(){return!0};h.prototype.qk=function(){return!0};h.prototype.Jr=function(){return!0};h.prototype.kk=function(){return!0};h.prototype.Uq=function(c,b,f){return Pa(U(c),U(f))<=U(b)};h.prototype.jr=function(c,b){return Ra(U(c),U(b))};h.prototype.tn=function(c,b,f){c=Na(c);b=Na(b);f=Na(f);return Ra(f,b)?Ra(c,b)&&!Ra(c,f):!(!Ra(c,b)&&Ra(c,f))};q.e=new h;n.prototype.Ur=function(c){this.b.U.Ij(c)};
- n.prototype.Tr=function(c,b){this.b.U.Ij(c);this.b.U.Om(b)};n.prototype.bs=function(c,b){0===c.Uh?ja(b)?c.Vd(b):c.Vd(parseFloat(b)):1===c.Uh&&c.Vd(b.toString())};n.prototype.Sq=function(c,b){0===c.Uh?ja(b)?c.Vd(c.Ze()+b):c.Vd(c.Ze()+parseFloat(b)):1===c.Uh&&c.Vd(c.Ze()+b.toString())};n.prototype.hs=function(c,b){0===c.Uh&&(ja(b)?c.Vd(c.Ze()-b):c.Vd(c.Ze()-parseFloat(b)))};var t=[],p=[];n.prototype.ls=function(c){if(!(0>c)){var b,f,d,a=this.b.Ib(),e;t.length?e=t.pop():e={Db:{},wa:[]};e.Sk=!1;e.time=
- this.b.nb.X+c;e.sq="";e.Sm=!1;e.Df=a.fc;e.Rb=a.Rb+1;c=0;for(b=this.b.m.length;c<b;c++)d=this.b.m[c],f=d.ma(),f.ua&&-1===a.fc.wa.indexOf(d)||(e.wa.push(d),d=void 0,p.length?d=p.pop():d={Ld:[]},d.Hj=!1,d.Hj=f.ua,Ba(d.Ld,f.d),e.Db[c.toString()]=d);this.Pb.push(e);return!0}};n.prototype.Rr=function(){if(!this.b.fh&&!this.b.Ag&&this.b.U){this.b.Ag=this.b.U;var c,b,f;c=0;for(b=this.b.je.length;c<b;c++)f=this.b.je[c],f.lq(f.Mi)}};q.A=new n;f.prototype["int"]=function(c,b){K(b)?(c.fa(parseInt(b,10)),isNaN(c.data)&&
- (c.data=0)):c.fa(b)};f.prototype["float"]=function(c,b){K(b)?(c.u(parseFloat(b)),isNaN(c.data)&&(c.data=0)):c.u(b)};f.prototype.random=function(c,b,f){void 0===f?c.u(Math.random()*b):c.u(Math.random()*(f-b)+b)};f.prototype.sqrt=function(c,b){c.u(Math.sqrt(b))};f.prototype.abs=function(c,b){c.u(Math.abs(b))};f.prototype.round=function(c,b){c.fa(Math.round(b))};f.prototype.floor=function(c,b){c.fa(Math.floor(b))};f.prototype.ceil=function(c,b){c.fa(Math.ceil(b))};f.prototype.sin=function(c,b){c.u(Math.sin(U(b)))};
- f.prototype.cos=function(c,b){c.u(Math.cos(U(b)))};f.prototype.tan=function(c,b){c.u(Math.tan(U(b)))};f.prototype.asin=function(c,b){c.u(Ha(Math.asin(b)))};f.prototype.acos=function(c,b){c.u(Ha(Math.acos(b)))};f.prototype.atan=function(c,b){c.u(Ha(Math.atan(b)))};f.prototype.exp=function(c,b){c.u(Math.exp(b))};f.prototype.log10=function(c,b){c.u(Math.log(b)/Math.LN10)};f.prototype.max=function(c){var b=arguments[1];"number"!==typeof b&&(b=0);var f,d,a;f=2;for(d=arguments.length;f<d;f++)a=arguments[f],
- "number"===typeof a&&b<a&&(b=a);c.u(b)};f.prototype.min=function(c){var b=arguments[1];"number"!==typeof b&&(b=0);var f,d,a;f=2;for(d=arguments.length;f<d;f++)a=arguments[f],"number"===typeof a&&b>a&&(b=a);c.u(b)};f.prototype.oe=function(c){c.u(this.b.oe)};f.prototype.mg=function(c){c.u(this.b.mg)};f.prototype.time=function(c){c.u(this.b.nb.X)};f.prototype.bd=function(c){c.fa(this.b.bd)};f.prototype.lj=function(c){c.fa(this.b.lj)};f.prototype.cl=function(c){c.fa(this.b.cl)};f.prototype.k=function(c,
- b,f,d,a){c.u(Ha(Oa(b,f,d,a)))};f.prototype.Tu=function(c){c.fa(this.b.U.width)};f.prototype.Su=function(c){c.fa(this.b.U.height)};f.prototype.left=function(c,b,f){c.za(K(b)?b.substr(0,f):"")};f.prototype.right=function(c,b,f){c.za(K(b)?b.substr(b.length-f):"")};f.prototype.Yv=function(c,b,f,d){K(b)&&K(d)?(b=b.split(d),f=O(f),0>f||f>=b.length?c.za(""):c.za(b[f])):c.za("")};f.prototype.replace=function(c,b,f,d){K(b)&&K(f)&&K(d)?c.za(b.replace(new RegExp(fb(f),"gi"),d)):c.za(K(b)?b:"")};f.prototype.trim=
- function(c,b){c.za(K(b)?b.trim():"")};f.prototype.Is=function(c){var b=O(Math.random()*(arguments.length-1));c.Pv(arguments[b+1])};f.prototype.Nk=function(c){c.u(this.b.Nk/1E3)};f.prototype.ye=function(c){c.u(this.b.ye)};q.M=new f;q.Dv=function(){var c,b,f,d,a,e,l=this.b.Ib();c=0;for(f=this.Pb.length;c<f;c++){d=this.Pb[c];if(-1===d.time){if(!d.Sm)continue}else if(d.time>this.b.nb.X)continue;l.fc=d.Df;l.Rb=d.Rb;l.Sb=0;for(b in d.Db)d.Db.hasOwnProperty(b)&&(a=this.b.m[parseInt(b,10)].ma(),e=d.Db[b],
- a.ua=e.Hj,Ba(a.d,e.Ld),a=e,R(a.Ld),p.push(a));d.Df.Cv();this.b.Lk(d.wa);d.Sk=!0}b=c=0;for(f=this.Pb.length;c<f;c++)d=this.Pb[c],this.Pb[b]=d,d.Sk?($a(d.Db),R(d.wa),t.push(d)):b++;za(this.Pb,b)}})();
- (function(){pb=function(h,f){var q=h[1],t=h[3],p=h[4],c=h[5],b=h[6],w=h[7],d=h[8];f.e||(f.e={});f.A||(f.A={});f.M||(f.M={});var a=f.e,e=f.A,l=f.M;t&&(a.cr=function(a,b){return dc(this.x,a,b)},a.dr=function(a,b){return dc(this.y,a,b)},a.yw=function(){var a=this.j;this.Za();var b=this.Oa;return!(b.right<a.ja||b.bottom<a.ka||b.left>a.ta||b.top>a.ra)},a.zw=function(){this.Za();var a=this.Oa,b=this.b.U;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Jw=function(a,b,c){var e=this.ma(),d=
- e.Tc();if(!d.length)return!1;var l=d[0],f=l,h=Ta(l.x,l.y,b,c),p,n,t;p=1;for(n=d.length;p<n;p++)if(l=d[p],t=Ta(l.x,l.y,b,c),0===a&&t<h||1===a&&t>h)h=t,f=l;e.Bh(f);return!0},e.Hn=function(a){this.x!==a&&(this.x=a,this.Ma())},e.In=function(a){this.y!==a&&(this.y=a,this.Ma())},e.Vw=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ma()},e.Ww=function(a,b){var c=a.gu(this);if(c){var e;c.kl?(e=c.kl(b,!0),c=c.kl(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Ma()}},e.Dw=
- function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.Ma())},e.Cw=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.Ma())},l.uk=function(a){a.u(this.x)},l.vk=function(a){a.u(this.y)},l.oe=function(a){a.u(this.b.hl(this))});p&&(a.rw=function(a,b){return dc(this.width,a,b)},a.$q=function(a,b){return dc(this.height,a,b)},e.Gn=function(a){this.width!==a&&(this.width=a,this.Ma())},e.Yr=function(a){this.height!==a&&(this.height=a,this.Ma())},e.Xw=function(a,
- b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ma()},l.ms=function(a){a.u(this.width)},l.fr=function(a){a.u(this.height)},l.lw=function(a){this.Za();a.u(this.Oa.left)},l.nw=function(a){this.Za();a.u(this.Oa.top)},l.mw=function(a){this.Za();a.u(this.Oa.right)},l.kw=function(a){this.Za();a.u(this.Oa.bottom)});c&&(a.Uq=function(a,b){return Pa(this.k,U(b))<=U(a)},a.jr=function(a){return Ra(this.k,U(a))},a.tn=function(a,b){var c=Na(a),e=Na(b),d=Ja(this.k);return Ra(e,c)?Ra(d,c)&&
- !Ra(d,e):!(!Ra(d,c)&&Ra(d,e))},e.Vr=function(a){a=U(Ia(a));isNaN(a)||this.k===a||(this.k=a,this.Ma())},e.Sr=function(a){0===a||isNaN(a)||(this.k+=U(a),this.k=Ja(this.k),this.Ma())},e.Ow=function(a){0===a||isNaN(a)||(this.k-=U(a),this.k=Ja(this.k),this.Ma())},e.Pw=function(a,b){var c=Qa(this.k,U(b),U(a));isNaN(c)||this.k===c||(this.k=c,this.Ma())},e.Qw=function(a,b,c){a=Qa(this.k,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.k===a||(this.k=a,this.Ma())},e.Yw=function(a,b){var c=Math.atan2(b-this.y,
- a-this.x);isNaN(c)||this.k===c||(this.k=c,this.Ma())},l.Tq=function(a){a.u(Ka(this.k))});q||(a.pw=function(a,b,c){return dc(this.Ra[a],b,c)},a.ww=function(a){return this.Ra[a]},a.Kw=function(a,b){var c=this.ma(),e=c.Tc();if(!e.length)return!1;var d=e[0],l=d,f=d.Ra[b],h,p,n;h=1;for(p=e.length;h<p;h++)if(d=e[h],n=d.Ra[b],0===a&&n<f||1===a&&n>f)f=n,l=d;c.Bh(l);return!0},a.Iw=function(a){var b,c,e,d,l;if(this.b.Bo().Gl){l=this.ma();if(l.ua)for(l.ua=!1,R(l.d),R(l.aa),e=this.d,b=0,c=e.length;b<c;b++)d=
- e[b],d.uid===a?l.aa.push(d):l.d.push(d);else{e=b=0;for(c=l.d.length;b<c;b++)d=l.d[b],l.d[e]=d,d.uid===a?l.aa.push(d):e++;za(l.d,e)}this.ke();return!!l.d.length}d=this.b.Ei(a);if(!d)return!1;l=this.ma();if(!l.ua&&-1===l.d.indexOf(d))return!1;if(this.J)for(a=d.type.ya,b=0,c=a.length;b<c;b++){if(a[b]===this)return l.Bh(d),this.ke(),!0}else if(d.type===this)return l.Bh(d),this.ke(),!0;return!1},a.Cr=function(){return!0},a.Dr=function(){return!0},e.Uw=function(a,b){var c=this.Ra;ja(c[a])?c[a]=ja(b)?b:
- parseFloat(b):K(c[a])&&(c[a]=K(b)?b:b.toString())},e.jw=function(a,b){var c=this.Ra;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):K(c[a])&&(c[a]=K(b)?c[a]+b:c[a]+b.toString())},e.Zw=function(a,b){var c=this.Ra;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},e.Rw=function(a,b){this.Ra[a]=b?1:0},e.$w=function(a){this.Ra[a]=1-this.Ra[a]},e.uw=function(){this.b.be(this)},e.pr||(e.pr=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.bj(this,b,!0);this.he&&this.he();if(this.L)for(a=0,b=this.L.length;a<
- b;++a)c=this.L[a],c.he&&c.he()}),l.sw=function(a){var b=a.nf.d.length,c,e,d;c=0;for(e=this.b.jd.length;c<e;c++)d=this.b.jd[c],a.nf.J?0<=d.type.ya.indexOf(a.nf)&&b++:d.type===a.nf&&b++;a.fa(b)},l.Mw=function(a){a.fa(a.nf.ma().Tc().length)},l.ax=function(a){a.fa(this.uid)},l.vw=function(a){a.fa(this.Og())},l.rn||(l.rn=function(a){a.za(JSON.stringify(this.b.Mm(this,!0)))}));b&&(a.nr=function(){return this.visible},e.Fn=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ca=!0)},a.qw=function(a,
- b){return dc(lb(100*this.opacity),a,b)},e.Zr=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ca=!0)},l.Opacity=function(a){a.u(lb(100*this.opacity))});w&&(a.xw=function(a){return a?this.j===a:!1},a.Lw=function(a){var b=this.ma(),c=b.Tc();if(!c.length)return!1;var e=c[0],d=e,l,f;l=1;for(f=c.length;l<f;l++)if(e=c[l],0===a){if(e.j.index>d.j.index||e.j.index===d.j.index&&e.md()>d.md())d=e}else if(e.j.index<d.j.index||e.j.index===d.j.index&&e.md()<d.md())d=e;b.Bh(d);return!0},
- e.Gw=function(){var a=this.j,b=a.d;b.length&&b[b.length-1]===this||(a.eg(this,!1),a.yg(this,!1),this.b.ca=!0)},e.Ew=function(){var a=this.j,b=a.d;b.length&&b[0]===this||(a.eg(this,!1),a.uv(this),this.b.ca=!0)},e.Fw=function(a){a&&a!=this.j&&(this.j.eg(this,!0),this.j=a,a.yg(this,!0),this.b.ca=!0)},e.cx=function(a,b){var c=0===a;if(b){var e=b.bu(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.eg(this,!0),this.j=e.j,e.j.yg(this,!0)),this.j.$u(this,e,c),this.b.ca=!0)}},l.Bw=function(a){a.fa(this.j.Dp)},
- l.Aw=function(a){a.za(this.j.name)},l.bx=function(a){a.fa(this.md())});d&&(e.Sw=function(a,b){if(this.b.n){var c=this.type.jl(b);if(!(0>c)){var e=1===a;this.ge[c]!==e&&(this.ge[c]=e,this.dd(),this.b.ca=!0)}}},e.Tw=function(a,b,c){if(this.b.n){var e=this.type.jl(a);0>e||(a=this.type.I[e],e=this.Aa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.n.ku(a.Na,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.ab&&(this.b.ca=!0))))}})};Jb=function(){this.Ik=this.bi=!0;this.type.Qn=!0;this.b.ca=!0;var h,f,q=this.Ck;h=0;for(f=
- q.length;h<f;++h)q[h](this);this.j.vc&&this.Za()};Kb=function(h){h&&this.Ck.push(h)};Mb=function(){if(this.bi){var h=this.Oa,f=this.le;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.Vb*this.width,-this.Wb*this.height);this.k?(h.offset(-this.x,-this.y),f.nq(h,this.k),f.offset(this.x,this.y),f.$n(h)):f.Ih(h);h.normalize();this.bi=!1;this.Nq()}};var h=new sa(0,0,0,0);Nb=function(){if(this.j.vc){var n=this.j.qb,f=this.Oa;h.set(n.Eb(f.left),n.Fb(f.top),n.Eb(f.right),n.Fb(f.bottom));
- this.Lb.Ig(h)||(this.Lb.right<this.Lb.left?n.update(this,null,h):n.update(this,this.Lb,h),this.Lb.Dg(h),this.j.ad=!0)}};Ob=function(){if(this.Ik&&this.Bg){this.Za();var n=this.type.ho,f=this.Oa;h.set(n.Eb(f.left),n.Fb(f.top),n.Eb(f.right),n.Fb(f.bottom));this.ne.Ig(h)||(this.ne.right<this.ne.left?n.update(this,null,h):n.update(this,this.ne,h),this.ne.Dg(h),this.Ik=!1)}};Lb=function(h,f){return this.Oa.Bc(h,f)&&this.le.Bc(h,f)?this.hd&&!this.hd.Pu()?(this.hd.Gs(this.width,this.height,this.k),this.hd.Bc(h-
- this.x,f-this.y)):!0:!1};Fb=function(){this.type.ak();return this.bf};Pb=function(){this.j.kn();return this.ed};Qb=function(){R(this.Z);var h,f,q,t=!0;h=0;for(f=this.ge.length;h<f;h++)this.ge[h]&&(q=this.type.I[h],this.Z.push(q),q.$c||(t=!1));this.Oq=!!this.Z.length;this.Wd=t};Gb=function(){return"Inst"+this.bq};sb=function(h){if(h&&h.Ec&&h.type!=this){var f,q,t;f=0;for(q=h.siblings.length;f<q;f++)if(t=h.siblings[f],t.type==this)return t}h=this.ma().Tc();return h.length?h[0]:null};tb=function(h){var f=
- this.ma().Tc();return f.length?f[h.Og()%f.length]:null};rb=function(){if(this.jg&&!this.J){var h,f;h=0;for(f=this.d.length;h<f;h++)this.d[h].bf=h;var q=h,t=this.b.jd;h=0;for(f=t.length;h<f;++h)t[h].type===this&&(t[h].bf=q++);this.jg=!1}};Db=function(h){if(h<this.d.length)return this.d[h];h-=this.d.length;var f=this.b.jd,q,t;q=0;for(t=f.length;q<t;++q)if(f[q].type===this){if(0===h)return f[q];--h}return null};ub=function(){return this.Ge[this.Cd]};vb=function(){this.Cd++;this.Cd===this.Ge.length?this.Ge.push(new qb(this)):
- this.Ge[this.Cd].ua=!0};wb=function(){this.Cd++;this.Cd===this.Ge.length&&this.Ge.push(new qb(this));var h=this.Ge[this.Cd],f=this.Ge[this.Cd-1];f.ua?h.ua=!0:(h.ua=!1,Ba(h.d,f.d),Ba(h.aa,f.aa))};xb=function(){this.Cd--};yb=function(h){var f,q,t,p,c,b=0;if(!this.J)for(f=0,q=this.ya.length;f<q;f++)for(c=this.ya[f],t=0,p=c.Ja.length;t<p;t++){if(h===c.Ja[t].name)return this.Ba.lastBehIndex=b,c.Ja[t];b++}f=0;for(q=this.Ja.length;f<q;f++){if(h===this.Ja[f].name)return this.Ba.lastBehIndex=b,this.Ja[f];
- b++}return null};Ab=function(h){return this.Ci(h)?this.Ba.lastBehIndex:-1};Bb=function(h){var f,q;f=0;for(q=this.I.length;f<q;f++)if(this.I[f].name===h)return f;return-1};Cb=function(){if(this.Ec&&!this.J){var h,f,q,t,p,c,b;this.ak();c=this.ma();var w=c.ua,d=(h=this.b.Ib())&&h.fc&&h.fc.qd;h=0;for(f=this.Tb.length;h<f;h++)if(p=this.Tb[h],p!==this&&(p.ak(),b=p.ma(),b.ua=w,!w)){R(b.d);q=0;for(t=c.d.length;q<t;++q)b.d[q]=p.ll(c.d[q].bf);if(d)for(R(b.aa),q=0,t=c.aa.length;q<t;++q)b.aa[q]=p.ll(c.aa[q].bf)}}};
- Eb=function(){return"Type"+this.V};dc=function(h,f,q){if("undefined"===typeof h||"undefined"===typeof q)return!1;switch(f){case 0:return h===q;case 1:return h!==q;case 2:return h<q;case 3:return h<=q;case 4:return h>q;case 5:return h>=q;default:return!1}}})();var mc={};function pc(h){this.b=h}
- (function(){function h(){}function n(){}function f(){}var q=!1,t=null,p=null,c="",b=pc.prototype;b.la=function(a){this.ga=a;this.b=a.b};b.la.prototype.O=function(){};b.da=function(a){this.type=a;this.b=a.b;this.bb=this.ob="";this.hb=0;this.timeout=-1;if(q=this.b.nd)t=require("path"),p=require("fs"),c=t.dirname(process.execPath)+"\\"};var w=b.da.prototype,d=null;window.C2_AJAX_DCSide=function(a,b,c){d&&("success"===a?(d.bb=b,d.ob=c,d.b.trigger(pc.prototype.e.fe,d)):"error"===a?(d.bb=b,d.b.trigger(pc.prototype.e.vf,
- d)):"progress"===a&&(d.hb=c,d.bb=b,d.b.trigger(pc.prototype.e.Yh,d)))};w.O=function(){d=this};w.Nb=function(){return{lastData:this.ob}};w.nc=function(a){this.ob=a.lastData;this.bb="";this.hb=0};var a={},e="";w.oi=function(b,d,f,m){if(this.b.Sa)AppMobi.webview.execute('C2_AJAX_WebSide("'+b+'", "'+d+'", "'+f+'", '+(m?'"'+m+'"':"null")+");");else{var h=this,k=null,t=function(){h.bb=b;h.b.trigger(pc.prototype.e.vf,h)},n=function(){if(q){var a=c+d;p.existsSync(a)?p.readFile(a,{encoding:"utf8"},function(a,
- b){a?t():(h.ob=b.replace(/\r\n/g,"\n"),h.b.trigger(pc.prototype.e.fe,h))}):t()}else t()},w=function(a){a.lengthComputable&&(h.hb=a.loaded/a.total,h.bb=b,h.b.trigger(pc.prototype.e.Yh,h))};try{this.b.mc?k=new ActiveXObject("Microsoft.XMLHTTP"):k=new XMLHttpRequest;k.onreadystatechange=function(){4===k.readyState&&(h.bb=b,k.responseText?h.ob=k.responseText.replace(/\r\n/g,"\n"):h.ob="",400<=k.status?h.b.trigger(pc.prototype.e.vf,h):q&&!h.ob.length||!q&&0===k.status&&!h.ob.length||h.b.trigger(pc.prototype.e.fe,
- h))};this.b.mc||(k.onerror=n,k.ontimeout=n,k.onabort=n,k.onprogress=w);k.open(f,d);!this.b.mc&&0<=this.timeout&&"undefined"!==typeof k.timeout&&(k.timeout=this.timeout);try{k.responseType="text"}catch(C){}m&&k.setRequestHeader&&!a.hasOwnProperty("Content-Type")&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(k.setRequestHeader){for(var L in a)if(a.hasOwnProperty(L))try{k.setRequestHeader(L,a[L])}catch(S){}a={}}if(e&&k.overrideMimeType){try{k.overrideMimeType(e)}catch(F){}e=
- ""}m?k.send(m):k.send()}catch(M){n()}}};h.prototype.fe=function(a){return mb(a,this.bb)};h.prototype.vf=function(a){return mb(a,this.bb)};h.prototype.Yh=function(a){return mb(a,this.bb)};b.e=new h;n.prototype.Qr=function(a,b){this.oi(a,b,"GET")};n.prototype.En=function(a,b,c,e){this.oi(a,b,e,c)};b.A=new n;f.prototype.un=function(a){a.za(this.ob)};b.M=new f})();function qc(h){this.b=h}
- (function(){function h(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return W.hasOwnProperty(a)&&W[a].length?W[a][0].ic():B.destination}function f(){return B.createGain?B.createGain():B.createGainNode()}function q(a){return B.createDelay?B.createDelay(a):B.createDelayNode(a)}function t(a){a.start?a.start(0):a.noteOn(0)}function p(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
- b,c,e,d,g){this.type="filter";this.Yc=[a,b,c,e,d,g];this.W=f();this.H=f();this.H.gain.value=g;this.F=f();this.F.gain.value=1-g;this.Ka=B.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?a:zc[a];this.Ka.frequency.value=b;this.Ka.detune&&(this.Ka.detune.value=c);this.Ka.Q.value=e;this.Ka.gain.value=d;this.W.connect(this.Ka);this.W.connect(this.F);this.Ka.connect(this.H)}function w(a,b,c){this.type="delay";this.Yc=[a,b,c];this.W=f();this.H=f();this.H.gain.value=c;this.F=f();this.F.gain.value=
- 1-c;this.xh=f();this.Cc=q(a);this.Cc.delayTime.value=a;this.mi=f();this.mi.gain.value=b;this.W.connect(this.xh);this.W.connect(this.F);this.xh.connect(this.H);this.xh.connect(this.Cc);this.Cc.connect(this.mi);this.mi.connect(this.xh)}function d(a,b,c,e){this.type="convolve";this.Yc=[b,c,e];this.W=f();this.H=f();this.H.gain.value=c;this.F=f();this.F.gain.value=1-c;this.Re=B.createConvolver();a&&(this.Re.normalize=b,this.Re.buffer=a);this.W.connect(this.Re);this.W.connect(this.F);this.Re.connect(this.H)}
- function a(a,b,c,e,d){this.type="flanger";this.Yc=[a,b,c,e,d];this.W=f();this.F=f();this.F.gain.value=1-d/2;this.H=f();this.H.gain.value=d/2;this.ti=f();this.ti.gain.value=e;this.Cc=q(a+b);this.Cc.delayTime.value=a;this.gb=B.createOscillator();this.gb.frequency.value=c;this.Zb=f();this.Zb.gain.value=b;this.W.connect(this.Cc);this.W.connect(this.F);this.Cc.connect(this.H);this.Cc.connect(this.ti);this.ti.connect(this.Cc);this.gb.connect(this.Zb);this.Zb.connect(this.Cc.delayTime);t(this.gb)}function e(a,
- b,c,e,d,g){this.type="phaser";this.Yc=[a,b,c,e,d,g];this.W=f();this.F=f();this.F.gain.value=1-g/2;this.H=f();this.H.gain.value=g/2;this.Ka=B.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?7:"allpass";this.Ka.frequency.value=a;this.Ka.detune&&(this.Ka.detune.value=b);this.Ka.Q.value=c;this.gb=B.createOscillator();this.gb.frequency.value=d;this.Zb=f();this.Zb.gain.value=e;this.W.connect(this.Ka);this.W.connect(this.F);this.Ka.connect(this.H);this.gb.connect(this.Zb);this.Zb.connect(this.Ka.frequency);
- t(this.gb)}function l(a){this.type="gain";this.Yc=[a];this.Y=f();this.Y.gain.value=a}function g(a,b){this.type="tremolo";this.Yc=[a,b];this.Y=f();this.Y.gain.value=1-b/2;this.gb=B.createOscillator();this.gb.frequency.value=a;this.Zb=f();this.Zb.gain.value=b/2;this.gb.connect(this.Zb);this.Zb.connect(this.Y.gain);t(this.gb)}function v(a,b){this.type="ringmod";this.Yc=[a,b];this.W=f();this.H=f();this.H.gain.value=b;this.F=f();this.F.gain.value=1-b;this.Fh=f();this.Fh.gain.value=0;this.gb=B.createOscillator();
- this.gb.frequency.value=a;this.gb.connect(this.Fh.gain);t(this.gb);this.W.connect(this.Fh);this.W.connect(this.F);this.Fh.connect(this.H)}function m(a,b,c,e,d){this.type="distortion";this.Yc=[a,b,c,e,d];this.W=f();this.zj=f();this.yj=f();this.Kv(c,Math.pow(10,e/20));this.H=f();this.H.gain.value=d;this.F=f();this.F.gain.value=1-d;this.fk=B.createWaveShaper();this.ki=new Float32Array(65536);this.Zt(a,b);this.fk.ki=this.ki;this.W.connect(this.zj);this.W.connect(this.F);this.zj.connect(this.fk);this.fk.connect(this.yj);
- this.yj.connect(this.H)}function u(a,b,c,e,d){this.type="compressor";this.Yc=[a,b,c,e,d];this.Y=B.createDynamicsCompressor();try{this.Y.threshold.value=a,this.Y.knee.value=b,this.Y.ratio.value=c,this.Y.attack.value=e,this.Y.release.value=d}catch(g){}}function k(a,b){this.type="analyser";this.Yc=[a,b];this.Y=B.createAnalyser();this.Y.fftSize=a;this.Y.smoothingTimeConstant=b;this.Xt=new Float32Array(this.Y.frequencyBinCount);this.qq=new Uint8Array(a);this.Ah=0}function r(){this.G=null;this.ej=0;this.He=
- [];this.gm=this.Vi=this.Ui=0}function ia(a,b){this.src=a;this.S=J;this.Wc=b;this.$h=!1;var c=this;this.em=this.vm=null;this.Yf=[];this.Jj=0;this.nn=this.Zk=this.wq=this.vj=!1;1===J&&b&&(this.S=0,this.vm=f());this.Ne=this.ba=null;var e;switch(this.S){case 0:this.ba=new Audio;this.ba.crossOrigin="anonymous";this.ba.addEventListener("canplaythrough",function(){c.nn=!0});1===J&&B.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.wq=!0,this.ba.addEventListener("canplay",function(){c.em||
- (c.em=B.createMediaElementSource(c.ba),c.em.connect(c.vm))}));this.ba.autoplay=!1;this.ba.kx="auto";this.ba.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.Ne=e.response;c.Ns()};e.onerror=function(){c.Zk=!0};e.send();break;case 2:this.ba=!0;break;case 3:this.ba=!0}}function z(a,b){var c=this;this.tag=b;this.ac=this.Jd=!0;this.src=a.src;this.buffer=a;this.S=J;this.Wc=a.Wc;this.playbackRate=1;this.Kf=!0;this.Xb=this.qc=!1;this.Mb=0;this.dh=
- this.Nf=this.od=!1;this.volume=1;this.tm=function(a){if(!c.Xb&&!c.qc){var b=this;b||(b=a.target);b===c.Zh&&(c.Kf=!0,c.ac=!0,ga=c.tag,x.trigger(qc.prototype.e.Xh,fa))}};this.Zh=null;this.Lf=1===T&&!this.Wc||2===T;this.Uf=1;this.startTime=this.Lf?x.nb.X:x.$d.X;this.Ga=this.Qa=null;this.rd=!1;this.Fa=null;this.Qp=this.Pp=this.Op=this.Np=this.Sp=this.Rp=0;this.i=null;var e=!1;1!==this.S||0!==this.buffer.S||this.buffer.wq||(this.S=0);switch(this.S){case 0:this.Wc?(this.i=a.ba,e=!a.$h,a.$h=!0):(this.i=
- new Audio,this.i.crossOrigin="anonymous",this.i.autoplay=!1,this.i.src=a.ba.src,e=!0);e&&this.i.addEventListener("ended",function(){ga=c.tag;c.ac=!0;x.trigger(qc.prototype.e.Xh,fa)});break;case 1:this.Qa=f();this.Qa.connect(n(b));1===this.buffer.S?a.ba&&(this.i=B.createBufferSource(),this.i.buffer=a.ba,this.i.connect(this.Qa)):(this.i=this.buffer.ba,this.buffer.vm.connect(this.Qa),this.buffer.$h||(this.buffer.$h=!0,this.buffer.ba.addEventListener("ended",function(){ga=c.tag;c.ac=!0;x.trigger(qc.prototype.e.Xh,
- fa)})));break;case 2:this.i=new window.Media(Q+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Kf=!0,c.ac=!0,ga=c.tag,x.trigger(qc.prototype.e.Xh,fa))});break;case 3:this.i=!0}}function C(a){R(Ea);if(a.length){var b,c,e;b=0;for(c=G.length;b<c;b++)e=G[b],mb(a,e.tag)&&Ea.push(e)}else H&&!H.Jf()&&(R(Ea),Ea[0]=H)}function L(a,b){W.hasOwnProperty(a)?W[a].push(b):W[a]=[b];var c,e,d,g,k=B.destination;if(W.hasOwnProperty(a)&&(d=W[a],d.length))for(k=d[0].ic(),c=0,e=d.length;c<e;c++)g=d[c],
- c+1===e?g.Ac(B.destination):g.Ac(d[c+1].ic());C(a);c=0;for(e=Ea.length;c<e;c++)Ea[c].yv(k);Ma&&zb===a&&(Ma.disconnect(),Ma.connect(k))}function S(){}function F(){}var M=qc.prototype;M.la=function(a){this.ga=a;this.b=a.b};M.la.prototype.O=function(){};var x=null,fa=null,ga="",Q="",J=0,B=null,Aa=[],G=[],H=null,I=!1,T=0,E=!1,D=1,N=0,ha=0,P=1,ta=1,ma=10,La=1E4,xa=1,Ma=null,zb="",Ua=!1,Va=[],W={},zc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.Ac=function(a){this.H.disconnect();
- this.H.connect(a);this.F.disconnect();this.F.connect(a)};b.prototype.remove=function(){this.W.disconnect();this.Ka.disconnect();this.H.disconnect();this.F.disconnect()};b.prototype.ic=function(){return this.W};w.prototype.Ac=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};w.prototype.remove=function(){this.W.disconnect();this.xh.disconnect();this.Cc.disconnect();this.mi.disconnect();this.H.disconnect();this.F.disconnect()};w.prototype.ic=function(){return this.W};
- d.prototype.Ac=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};d.prototype.remove=function(){this.W.disconnect();this.Re.disconnect();this.H.disconnect();this.F.disconnect()};d.prototype.ic=function(){return this.W};a.prototype.Ac=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};a.prototype.remove=function(){this.W.disconnect();this.Cc.disconnect();this.gb.disconnect();this.Zb.disconnect();this.F.disconnect();this.H.disconnect();
- this.ti.disconnect()};a.prototype.ic=function(){return this.W};e.prototype.Ac=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};e.prototype.remove=function(){this.W.disconnect();this.Ka.disconnect();this.gb.disconnect();this.Zb.disconnect();this.F.disconnect();this.H.disconnect()};e.prototype.ic=function(){return this.W};l.prototype.Ac=function(a){this.Y.disconnect();this.Y.connect(a)};l.prototype.remove=function(){this.Y.disconnect()};l.prototype.ic=function(){return this.Y};
- g.prototype.Ac=function(a){this.Y.disconnect();this.Y.connect(a)};g.prototype.remove=function(){this.gb.disconnect();this.Zb.disconnect();this.Y.disconnect()};g.prototype.ic=function(){return this.Y};v.prototype.Ac=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};v.prototype.remove=function(){this.gb.disconnect();this.Fh.disconnect();this.W.disconnect();this.H.disconnect();this.F.disconnect()};v.prototype.ic=function(){return this.W};m.prototype.Kv=function(a,
- b){.01>a&&(a=.01);this.zj.gain.value=a;this.yj.gain.value=Math.pow(1/a,.6)*b};m.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};m.prototype.Zt=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,c,e),this.ki[32768+g]=d,this.ki[32768-g-1]=-d};m.prototype.Ac=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};m.prototype.remove=function(){this.W.disconnect();
- this.zj.disconnect();this.fk.disconnect();this.yj.disconnect();this.H.disconnect();this.F.disconnect()};m.prototype.ic=function(){return this.W};u.prototype.Ac=function(a){this.Y.disconnect();this.Y.connect(a)};u.prototype.remove=function(){this.Y.disconnect()};u.prototype.ic=function(){return this.Y};k.prototype.Ya=function(){this.Y.getFloatFrequencyData(this.Xt);this.Y.getByteTimeDomainData(this.qq);for(var a=this.Y.fftSize,b=0,c=this.Ah=0,e=0;b<a;b++)e=(this.qq[b]-128)/128,0>e&&(e=-e),this.Ah<
- e&&(this.Ah=e),c+=e*e;this.Ah=h(this.Ah);h(Math.sqrt(c/a))};k.prototype.Ac=function(a){this.Y.disconnect();this.Y.connect(a)};k.prototype.remove=function(){this.Y.disconnect()};k.prototype.ic=function(){return this.Y};r.prototype.Gh=function(a){if(this.G=a)this.Ui=this.G.x,this.Vi=this.G.y;R(this.He)};r.prototype.Ki=function(){return!!this.G};r.prototype.Ya=function(a){this.G&&0!==a&&(this.gm=Oa(this.Ui,this.Vi,this.G.x,this.G.y),a=Ta(this.Ui,this.Vi,this.G.x,this.G.y)/a,4>this.He.length||this.He.shift(),
- this.He.push(a),this.Ui=this.G.x,this.Vi=this.G.y)};r.prototype.Go=function(){if(!this.He.length)return 0;var a,b,c=0;a=0;for(b=this.He.length;a<b;a++)c+=this.He[a];return c/this.He.length};r.prototype.pl=function(){return Math.cos(this.gm)*this.Go()};r.prototype.ql=function(){return Math.sin(this.gm)*this.Go()};var wc=!1;ia.prototype.Ns=function(){if(!this.ba&&this.Ne){var a=this;if(B.decodeAudioData)B.decodeAudioData(this.Ne,function(b){a.ba=b;a.Ne=null;var c,e,d;if(ea(a.wj)||E)ea(a.gi)||(c=a.gi.Re,
- c.normalize=a.Cp,c.buffer=b);else if(a.Yf.length){c=0;for(e=a.Yf.length;c<e;c++){b=a.Yf[c];d=new z(a,b.Aq);d.Qm(!0);if("undefined"!==typeof b.Ep&&(b.G=x.Ei(b.Ep),!b.G))continue;if(b.G){var g=Sa(b.G.x,b.G.y,-b.G.j.Ea(),N,ha,!0),k=Sa(b.G.x,b.G.y,-b.G.j.Ea(),N,ha,!1);d.Pm(g,k,Ha(b.G.k-b.G.j.Ea()),b.yl,b.im,b.lm);d.Gh(b.G)}else d.Pm(b.x,b.y,b.qs,b.yl,b.im,b.lm);d.play(a.am,a.mn,a.Jj);a.vj&&d.pause();G.push(d)}R(a.Yf)}else d=new z(a,a.wj||""),d.play(a.am,a.mn,a.Jj),a.vj&&d.pause(),G.push(d)},function(){a.Zk=
- !0});else if(this.ba=B.createBuffer(this.Ne,!1),this.Ne=null,ea(this.wj)||E)ea(this.gi)||(b=this.gi.Re,b.normalize=this.Cp,b.buffer=this.ba);else{var b=new z(this,this.wj);b.play(this.am,this.mn,this.Jj);this.vj&&b.pause();G.push(b)}}};ia.prototype.Po=function(){switch(this.S){case 0:var a=4<=this.ba.readyState;a&&(this.nn=!0);return a||this.nn;case 1:return!!this.Ne||!!this.ba;case 2:return!0;case 3:return!0}return!1};ia.prototype.Ku=function(){switch(this.S){case 0:return this.Po();case 1:return!!this.ba;
- case 2:return!0;case 3:return!0}return!1};ia.prototype.Bu=function(){switch(this.S){case 0:return!!this.ba.error;case 1:return this.Zk}return!1};z.prototype.Jf=function(){switch(this.S){case 0:return this.i.ended;case 1:return 1===this.buffer.S?!this.Jd&&!this.ac&&this.i.loop||this.Xb?!1:this.Kf:this.i.ended;case 2:return this.Kf;case 3:!0}return!0};z.prototype.Hs=function(){return this.Jd||this.ac?!0:this.Jf()};z.prototype.Qm=function(a){1===J&&(!this.rd&&a?this.Qa&&(this.Ga||(this.Ga=B.createPanner(),
- this.Ga.panningModel="number"===typeof this.Ga.panningModel?P:["equalpower","HRTF","soundfield"][P],this.Ga.distanceModel="number"===typeof this.Ga.distanceModel?ta:["linear","inverse","exponential"][ta],this.Ga.refDistance=ma,this.Ga.maxDistance=La,this.Ga.rolloffFactor=xa),this.Qa.disconnect(),this.Qa.connect(this.Ga),this.Ga.connect(n(this.tag)),this.rd=!0):this.rd&&!a&&this.Qa&&(this.Ga.disconnect(),this.Qa.disconnect(),this.Qa.connect(n(this.tag)),this.rd=!1))};z.prototype.Pm=function(a,b,c,
- e,d,g){this.rd&&1===J&&(this.Ga.setPosition(a,b,0),this.Ga.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.Ga.coneInnerAngle=e,this.Ga.coneOuterAngle=d,this.Ga.coneOuterGain=g,this.Rp=a,this.Sp=b,this.Np=c,this.Op=e,this.Pp=d,this.Qp=g)};z.prototype.Gh=function(a){this.rd&&1===J&&(this.Fa||(this.Fa=new r),this.Fa.Gh(a))};z.prototype.Ya=function(a){if(this.rd&&1===J&&this.Fa&&this.Fa.Ki()&&this.df()){this.Fa.Ya(a);a=this.Fa.G;var b=Sa(a.x,a.y,-a.j.Ea(),N,ha,!0),c=Sa(a.x,a.y,-a.j.Ea(),N,ha,!1);
- this.Ga.setPosition(b,c,0);b=0;"undefined"!==typeof this.Fa.G.k&&(b=a.k-a.j.Ea(),this.Ga.setOrientation(Math.cos(b),Math.sin(b),0));b=Sa(this.Fa.pl(),this.Fa.ql(),-a.j.Ea(),0,0,!0);c=Sa(this.Fa.pl(),this.Fa.ql(),-a.j.Ea(),0,0,!1);this.Ga.setVelocity(b,c,0)}};z.prototype.play=function(a,b,c){var e=this.i;this.od=a;this.volume=b;c=c||0;switch(this.S){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*D&&(e.volume=b*D);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=
- c}catch(d){}if(this.Wc&&Ua&&!x.mb)Va.push(this);else try{this.i.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Uf=1;if(1===this.buffer.S)this.Qa.gain.value=b*D,this.Jd||(this.i=B.createBufferSource(),this.i.buffer=this.buffer.ba,this.i.connect(this.Qa)),this.i.onended=this.tm,this.Zh=this.i,this.i.loop=a,this.Kf=!1,0===c?t(this.i):p(this.i,c,this.Ye());else{1!==e.playbackRate&&(e.playbackRate=
- 1);e.loop!==a&&(e.loop=a);e.volume=b*D;if(e.currentTime!==c)try{e.currentTime=c}catch(k){}this.Wc&&Ua&&!x.mb?Va.push(this):e.play()}break;case 2:(!this.Jd&&this.ac||0!==c)&&e.seekTo(c);e.play();this.Kf=!1;break;case 3:x.Sa?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Lf?x.nb.X:x.$d.X)-c;this.Xb=this.ac=this.Jd=!1};z.prototype.stop=function(){switch(this.S){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.S?c(this.i):
- this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:x.Sa&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.Xb=!1};z.prototype.pause=function(){if(!(this.Jd||this.ac||this.Jf()||this.Xb)){switch(this.S){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.S?(this.Mb=this.ml(!0),this.od&&(this.Mb=this.Mb%this.Ye()),this.Xb=!0,c(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:x.Sa&&AppMobi.context.stopSound(this.src)}this.Xb=!0}};z.prototype.Bv=
- function(){if(!(this.Jd||this.ac||this.Jf())&&this.Xb){switch(this.S){case 0:this.i.play();break;case 1:1===this.buffer.S?(this.i=B.createBufferSource(),this.i.buffer=this.buffer.ba,this.i.connect(this.Qa),this.i.onended=this.tm,this.Zh=this.i,this.i.loop=this.od,this.Qa.gain.value=D*this.volume*this.Uf,this.bk(),this.startTime=(this.Lf?x.nb.X:x.$d.X)-this.Mb/(this.playbackRate||.001),p(this.i,this.Mb,this.Ye())):this.i.play();break;case 2:this.i.play();break;case 3:x.Sa&&AppMobi.context.resumeSound(this.src)}this.Xb=
- !1}};z.prototype.seek=function(a){if(!(this.Jd||this.ac||this.Jf()))switch(this.S){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.S)this.Xb?this.Mb=a:(this.pause(),this.Mb=a,this.Bv());else try{this.i.currentTime=a}catch(c){}break;case 3:x.Sa&&AppMobi.context.seekSound(this.src,a)}};z.prototype.yv=function(a){1===this.S&&(this.rd?(this.Ga.disconnect(),this.Ga.connect(a)):(this.Qa.disconnect(),this.Qa.connect(a)))};z.prototype.Ye=function(){var a=0;switch(this.S){case 0:"undefined"!==
- typeof this.i.duration&&(a=this.i.duration);break;case 1:a=this.buffer.ba.duration;break;case 2:a=this.i.getDuration();break;case 3:x.Sa&&(a=AppMobi.context.getDurationSound(this.src))}return a};z.prototype.ml=function(a){var b=this.Ye(),c=0;switch(this.S){case 0:"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 1:if(1===this.buffer.S){if(this.Xb)return this.Mb;c=(this.Lf?x.nb.X:x.$d.X)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;
- case 3:x.Sa&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.od&&c>b&&(c=b);return c};z.prototype.df=function(){return!this.Xb&&!this.Jd&&!this.ac&&!this.Jf()};z.prototype.Zv=function(){var a=this.volume*D;isFinite(a)||(a=0);switch(this.S){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.S?this.Qa.gain.value=a*this.Uf:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};z.prototype.pi=
- function(a){switch(this.S){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.S?(this.Uf=a?0:1,this.Qa.gain.value=D*this.volume*this.Uf):this.i.muted!==!!a&&(this.i.muted=!!a)}};z.prototype.Lv=function(){this.Nf=!0;this.pi(this.Nf||this.dh)};z.prototype.Lj=function(a){this.dh=!!a;this.pi(this.Nf||this.dh)};z.prototype.bk=function(){var a=this.playbackRate;this.Lf&&(a*=x.mg);switch(this.S){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.S?
- this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};z.prototype.Nv=function(a){switch(this.S){case 0:a?this.df()?(this.qc=!0,this.i.pause()):this.qc=!1:this.qc&&(this.i.play(),this.qc=!1);break;case 1:a?this.df()?(this.qc=!0,1===this.buffer.S?(this.Mb=this.ml(!0),this.od&&(this.Mb=this.Mb%this.Ye()),c(this.i)):this.i.pause()):this.qc=!1:this.qc&&(1===this.buffer.S?(this.i=B.createBufferSource(),this.i.buffer=this.buffer.ba,this.i.connect(this.Qa),
- this.i.onended=this.tm,this.Zh=this.i,this.i.loop=this.od,this.Qa.gain.value=D*this.volume*this.Uf,this.bk(),this.startTime=(this.Lf?x.nb.X:x.$d.X)-this.Mb/(this.playbackRate||.001),p(this.i,this.Mb,this.Ye())):this.i.play(),this.qc=!1);break;case 2:a?this.df()?(this.i.pause(),this.qc=!0):this.qc=!1:this.qc&&(this.qc=!1,this.i.play())}};M.da=function(a){this.type=a;x=this.b=a.b;fa=this;this.Bb=null;this.oh=-600;!(this.b.Qf||this.b.Ug&&(this.b.Vg||this.b.Oi))||this.b.Wg||this.b.pa||this.b.Hl||(Ua=
- !0);B=null;"undefined"!==typeof AudioContext?(J=1,B=new AudioContext):"undefined"!==typeof webkitAudioContext&&(J=1,B=new webkitAudioContext);Ua&&document.addEventListener("touchend",function(){if(!wc&&B){var a=B.createBuffer(1,1,22050),b=B.createBufferSource();b.buffer=a;b.connect(B.destination);t(b);wc=!0}var c;if(Ua){if(!E)for(a=0,b=Va.length;a<b;++a)c=Va[a],c.ac||c.Xb||c.i.play();R(Va)}},!0);1!==J&&(this.b.lc&&"undefined"!==typeof window.Media?J=2:this.b.Oo&&(J=3));2===J&&(Q=location.href,a=Q.lastIndexOf("/"),
- -1<a&&(Q=Q.substr(0,a+1)),Q=Q.replace("file://",""));if(this.b.Qo&&this.b.Mu&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),this.b.be(this);else{if(this.b.Sa)I=this.b.Ug;else try{I=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){I=!1}this.b.lg(this)}};var ua=M.da.prototype;ua.O=function(){this.b.yf=this;T=this.T[0];this.Ud=this.T[1];this.nv=0!==this.T[2];P=this.T[3];ta=this.T[4];
- this.oh=-this.T[5];ma=this.T[6];La=this.T[7];xa=this.T[8];this.Bb=new r;var a=this.b.D||this.b.width,b=this.b.C||this.b.height;1===J&&("undefined"!==typeof B.listener.dopplerFactor&&(B.listener.dopplerFactor=0),B.listener.setPosition(a/2,b/2,this.oh),B.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ma&&Ma.disconnect();zb=b.toLowerCase();Ma=B.createMediaStreamSource(a);Ma.connect(n(zb))});this.b.xk(function(a){fa.jv(a)});var c=this;this.b.us(function(a){c.hv(a)})};ua.hv=
- function(a){var b,c,e;b=0;for(c=G.length;b<c;b++)e=G[b],e.Fa&&e.Fa.G===a&&(e.Fa.G=null,e.rd&&e.df()&&e.od&&e.stop());this.Bb.G===a&&(this.Bb.G=null)};ua.Nb=function(){var a={silent:E,masterVolume:D,listenerZ:this.oh,listenerUid:this.Bb.Ki()?this.Bb.G.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,g,k,l;c=0;for(e=G.length;c<e;c++)d=G[c],!d.df()||3===this.Ud||d.Wc&&1===this.Ud||!d.Wc&&2===this.Ud||(g=d.ml(),d.od&&(g=g%d.Ye()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Wc,playbackTime:g,volume:d.volume,
- looping:d.od,muted:d.Nf,playbackRate:d.playbackRate,paused:d.Xb,resume_position:d.Mb},d.rd&&(g.pan={},l=g.pan,d.Fa&&d.Fa.Ki()?l.objUid=d.Fa.G.uid:(l.x=d.Rp,l.y=d.Sp,l.a=d.Np),l.ia=d.Op,l.oa=d.Pp,l.og=d.Qp),b.push(g));b=a.effects;for(k in W)if(W.hasOwnProperty(k)){d=[];c=0;for(e=W[k].length;c<e;c++)d.push({type:W[k][c].type,params:W[k][c].Yc});b[k]=d}return a};var Wa=[];ua.nc=function(c){var f=c.silent;D=c.masterVolume;this.oh=c.listenerZ;this.Bb.Gh(null);var h=c.listenerUid;-1!==h&&(this.Bb.ej=h,
- Wa.push(this.Bb));var h=c.playing,p,t,n,q,z,x,ia,B,C,y,F;if(3!==this.Ud)for(p=0,t=G.length;p<t;p++)C=G[p],C.Wc&&1===this.Ud||(C.Wc||2!==this.Ud)&&C.stop();for(z in W)if(W.hasOwnProperty(z))for(p=0,t=W[z].length;p<t;p++)W[z][p].remove();$a(W);for(z in c.effects)if(c.effects.hasOwnProperty(z))for(x=c.effects[z],p=0,t=x.length;p<t;p++)switch(n=x[p].type,y=x[p].params,n){case "filter":L(z,new b(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":L(z,new w(y[0],y[1],y[2]));break;case "convolve":n=y[2];
- C=this.Bi(n,!1);C.ba?n=new d(C.ba,y[0],y[1],n):(n=new d(null,y[0],y[1],n),C.Cp=y[0],C.gi=n);L(z,n);break;case "flanger":L(z,new a(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":L(z,new e(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":L(z,new l(y[0]));break;case "tremolo":L(z,new g(y[0],y[1]));break;case "ringmod":L(z,new v(y[0],y[1]));break;case "distortion":L(z,new m(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":L(z,new u(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":L(z,new k(y[0],y[1]))}p=
- 0;for(t=h.length;p<t;p++)3===this.Ud||(c=h[p],n=c.buffersrc,q=c.is_music,z=c.tag,x=c.playbackTime,ia=c.looping,B=c.volume,F=(y=c.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,q&&1===this.Ud)||!q&&2===this.Ud||((C=this.Ao(n,z,q,ia,B))?(C.Mb=c.resume_position,C.Qm(!!y),C.play(ia,B,x),C.bk(),C.Zv(),C.pi(C.Nf||C.dh),c.paused&&C.pause(),c.muted&&C.Lv(),C.pi(C.Nf||C.dh),y&&(-1!==F?(C.Fa=C.Fa||new r,C.Fa.ej=F,Wa.push(C.Fa)):C.Pm(y.x,y.y,y.a,y.ia,y.oa,y.og))):(C=this.Bi(n,q),C.Jj=x,C.vj=c.paused,y&&(-1!==
- F?C.Yf.push({Ep:F,yl:y.ia,im:y.oa,lm:y.og,Aq:z}):C.Yf.push({x:y.x,y:y.y,qs:y.a,yl:y.ia,im:y.oa,lm:y.og,Aq:z}))));if(f&&!E){p=0;for(t=G.length;p<t;p++)G[p].Lj(!0);E=!0}else if(!f&&E){p=0;for(t=G.length;p<t;p++)G[p].Lj(!1);E=!1}};ua.he=function(){var a,b,c,e;a=0;for(b=Wa.length;a<b;a++)c=Wa[a],e=this.b.Ei(c.ej),c.Gh(e),c.ej=-1,e&&(N=e.x,ha=e.y);R(Wa)};ua.jv=function(a){if(!this.nv){!a&&B&&B.resume&&B.resume();var b,c;b=0;for(c=G.length;b<c;b++)G[b].Nv(a);a&&B&&B.suspend&&B.suspend()}};ua.Ya=function(){var a=
- this.b.oe,b,c,e;b=0;for(c=G.length;b<c;b++)e=G[b],e.Ya(a),0!==T&&e.bk();var d,g;for(d in W)if(W.hasOwnProperty(d))for(e=W[d],b=0,c=e.length;b<c;b++)g=e[b],g.Ya&&g.Ya();1===J&&this.Bb.Ki()&&(this.Bb.Ya(a),N=this.Bb.G.x,ha=this.Bb.G.y,B.listener.setPosition(this.Bb.G.x,this.Bb.G.y,this.oh),B.listener.setVelocity(this.Bb.pl(),this.Bb.ql(),0))};var Xa=[];ua.Mv=function(a){var b,c,e,d,g,k=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&I||!g&&!I)Xa.push({filename:d,
- size:e,G:null}),k+=e;return k};ua.Rv=function(){var a,b,c,e;a=0;for(b=Xa.length;a<b;++a)c=Xa[a],e=this.b.al+c.filename,c.G=this.Bi(e,!1)};ua.hu=function(){var a=0,b,c,e;b=0;for(c=Xa.length;b<c;++b)e=Xa[b],e.G.Ku()||e.G.Bu()||this.b.pa||this.b.Oi?a+=e.size:e.G.Po()&&(a+=Math.floor(e.size/2));return a};ua.Bi=function(a,b){var c,e,d,g=null;c=0;for(e=Aa.length;c<e;c++)if(d=Aa[c],d.src===a){g=d;break}g||(g=new ia(a,b),Aa.push(g));return g};ua.Ao=function(a,b,c,e,d){var g,k,l;g=0;for(k=G.length;g<k;g++)if(l=
- G[g],l.src===a&&(l.Hs()||c))return l.tag=b,l;a=this.Bi(a,c);if(!a.ba)return"<preload>"!==b&&(a.wj=b,a.am=e,a.mn=d),null;l=new z(a,b);G.push(l);return l};var Ea=[];S.prototype.Xh=function(a){return mb(ga,a)};S.prototype.mr=function(a){C(a);var b;a=0;for(b=Ea.length;a<b;a++)if(Ea[a].df())return!0;return!1};M.e=new S;F.prototype.Play=function(a,b,c,e){!E&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),H=this.Ao(this.b.al+a[0]+(I?".ogg":".m4a"),e,a[1],0!==b,c))&&(H.Qm(!1),H.play(0!==b,
- c))};F.prototype.$r=function(a){var b;2===a&&(a=E?1:0);if(0===a&&!E){a=0;for(b=G.length;a<b;a++)G[a].Lj(!0);E=!0}else if(1===a&&E){a=0;for(b=G.length;a<b;a++)G[a].Lj(!1);E=!1}};M.A=new F;M.M=new function(){}})();function rc(h){this.b=h}
- (function(){function h(){}function n(){}var f=rc.prototype;f.la=function(f){this.ga=f;this.b=f.b};f.la.prototype.O=function(){};f.da=function(f){this.type=f;this.b=f.b};f.da.prototype.O=function(){var f=this;window.addEventListener("resize",function(){f.b.trigger(rc.prototype.e.pk,f)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){f.b.trigger(rc.prototype.e.mk,f)}),window.addEventListener("offline",function(){f.b.trigger(rc.prototype.e.lk,f)}));"undefined"!==
- typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){f.b.ye=1;f.b.trigger(rc.prototype.e.vg,f)}),window.applicationCache.addEventListener("progress",function(h){f.b.ye=h.loaded/h.total}));this.b.Sa||(document.addEventListener("appMobi.device.update.available",function(){f.b.trigger(rc.prototype.e.vg,f)}),document.addEventListener("backbutton",function(){f.b.trigger(rc.prototype.e.ee,f)}),document.addEventListener("menubutton",function(){f.b.trigger(rc.prototype.e.ug,
- f)}),document.addEventListener("searchbutton",function(){f.b.trigger(rc.prototype.e.rk,f)}),document.addEventListener("tizenhwkey",function(h){var p;switch(h.keyName){case "back":p=f.b.trigger(rc.prototype.e.ee,f);!p&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(p=f.b.trigger(rc.prototype.e.ug,f))||h.preventDefault()}}));this.b.Ml&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!f.b.trigger(rc.prototype.e.ee,f)});this.b.xk(function(h){h?
- f.b.trigger(rc.prototype.e.nk,f):f.b.trigger(rc.prototype.e.ok,f)});this.Uo="undefined"!==typeof window.is_scirra_arcade};h.prototype.mk=function(){return!0};h.prototype.lk=function(){return!0};h.prototype.vg=function(){return!0};h.prototype.ok=function(){return!0};h.prototype.nk=function(){return!0};h.prototype.pk=function(){return!0};h.prototype.ee=function(){return!0};h.prototype.ug=function(){return!0};h.prototype.rk=function(){return!0};f.e=new h;n.prototype.Yq=function(){this.b.kc?CocoonJS.App.forceToFinish():
- window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Uo||this.b.pa||window.close()};f.A=new n;f.M=new function(){}})();function sc(h){this.b=h}
- (function(){function h(){}function n(){}var f=sc.prototype;f.la=function(f){this.ga=f;this.b=f.b};f.la.prototype.O=function(){};f.da=function(f){this.type=f;this.b=f.b;this.Dk=Array(4);this.Dq=this.Yj=this.ng=this.Be=this.Ae=0;this.ul=!1};var q=f.da.prototype;q.O=function(){var f=this;if(!this.b.pa){jQuery(document).mousemove(function(b){f.om(b)});jQuery(document).mousedown(function(b){f.nm(b)});jQuery(document).mouseup(function(b){f.pm(b)});jQuery(document).dblclick(function(b){f.gv(b)});var c=function(b){f.kv(b)};
- document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var t={left:0,top:0};q.om=function(f){var c=this.b.pa?t:jQuery(this.b.canvas).offset();this.Ae=f.pageX-c.left;this.Be=f.pageY-c.top};q.xp=function(){return 0<this.b.Ab?!0:0<=this.Ae&&0<=this.Be&&this.Ae<this.b.width&&this.Be<this.b.height};q.nm=function(f){this.xp()&&(this.Dk[f.which]=!0,this.b.mb=!0,this.b.trigger(sc.prototype.e.ur,this),this.ng=f.which-1,this.Yj=0,this.b.trigger(sc.prototype.e.vn,this),
- this.b.trigger(sc.prototype.e.Cn,this),this.b.mb=!1)};q.pm=function(f){this.Dk[f.which]&&(this.b.Ii&&!this.b.Pd&&f.preventDefault(),this.b.Ii=!0,this.Dk[f.which]=!1,this.b.mb=!0,this.ng=f.which-1,this.b.trigger(sc.prototype.e.Lr,this),this.b.mb=!1)};q.gv=function(f){this.xp()&&(f.preventDefault(),this.b.mb=!0,this.ng=f.which-1,this.Yj=1,this.b.trigger(sc.prototype.e.vn,this),this.b.trigger(sc.prototype.e.Cn,this),this.b.mb=!1)};q.kv=function(f){this.Dq=0>(f.wheelDelta?f.wheelDelta:f.detail?-f.detail:
- 0)?0:1;this.ul=!1;this.b.mb=!0;this.b.trigger(sc.prototype.e.Or,this);this.b.mb=!1;this.ul&&nb(f)&&f.preventDefault()};h.prototype.vn=function(f,c){return f===this.ng&&c===this.Yj};h.prototype.ur=function(){return!0};h.prototype.Lr=function(f){return f===this.ng};h.prototype.Cn=function(f,c,b){return f!==this.ng||c!==this.Yj?!1:this.b.Ph(b,this.Ae,this.Be)};h.prototype.Or=function(f){this.ul=!0;return f===this.Dq};f.e=new h;f.A=new function(){};n.prototype.uk=function(f,c){var b,h,d,a,e;ea(c)?(b=
- this.b.Kd(0),h=b.scale,d=b.Qb,a=b.Gc,e=b.k,b.scale=1,b.Qb=1,b.Gc=1,b.k=0,f.u(b.Pa(this.Ae,this.Be,!0)),b.scale=h,b.Qb=d,b.Gc=a,b.k=e):(b=ja(c)?this.b.Kd(c):this.b.Mg(c))?f.u(b.Pa(this.Ae,this.Be,!0)):f.u(0)};n.prototype.vk=function(f,c){var b,h,d,a,e;ea(c)?(b=this.b.Kd(0),h=b.scale,d=b.Qb,a=b.Hc,e=b.k,b.scale=1,b.Qb=1,b.Hc=1,b.k=0,f.u(b.Pa(this.Ae,this.Be,!1)),b.scale=h,b.Qb=d,b.Hc=a,b.k=e):(b=ja(c)?this.b.Kd(c):this.b.Mg(c))?f.u(b.Pa(this.Ae,this.Be,!1)):f.u(0)};f.M=new n})();
- function tc(h){this.b=h}
- (function(){function h(f){this.qa=f;this.ab=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.ie=this.If=this.size=this.Gi=0}var n=tc.prototype;n.la=function(f){this.ga=f;this.b=f.b};var f=n.la.prototype;f.O=function(){this.J||(this.Ia=new Image,this.Ia.ko=this.Xm,this.ib=null,this.b.Qq(this.Ia,this.Wm))};f.mj=function(){this.J||(this.ib=null)};f.qm=function(){this.J||!this.d.length||this.ib||(this.ib=this.b.n.dj(this.Ia,!0,this.b.R,this.Ym))};f.Wl=function(){this.J||this.ib||!this.b.n||(this.ib=
- this.b.n.dj(this.Ia,!0,this.b.R,this.Ym))};f.gn=function(){this.J||this.d.length||!this.ib||(this.b.n.deleteTexture(this.ib),this.ib=null)};f.zm=function(f){f.drawImage(this.Ia,0,0)};h.prototype.init=function(){var f=this.qa;this.x=f.x-f.gk/2+Math.random()*f.gk;this.y=f.y-f.hk/2+Math.random()*f.hk;this.speed=f.Dl-f.Pj/2+Math.random()*f.Pj;this.k=f.k-f.Qj/2+Math.random()*f.Qj;this.opacity=f.Bl;this.size=f.Cl-f.Oj/2+Math.random()*f.Oj;this.Gi=f.tl-f.Hi/2+Math.random()*f.Hi;this.ie=this.If=0};h.prototype.Ya=
- function(f){var h=this.qa;this.x+=Math.cos(this.k)*this.speed*f;this.y+=Math.sin(this.k)*this.speed*f;this.y+=this.If*f;this.speed+=h.wk*f;this.size+=this.Gi*f;this.If+=h.fl*f;this.ie+=f;1>this.size?this.ab=!1:(0!==h.lh&&(this.k+=Math.random()*h.lh*f-h.lh*f/2),0!==h.nh&&(this.speed+=Math.random()*h.nh*f-h.nh*f/2),0!==h.mh&&(this.opacity+=Math.random()*h.mh*f-h.mh*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=h.Bf&&this.ie>=h.timeout&&(this.ab=!1),2===h.Bf&&0>=this.speed&&
- (this.ab=!1))};h.prototype.gc=function(f){var h=this.qa.opacity*this.opacity;if(0!==h){0===this.qa.Bf&&(h*=1-this.ie/this.qa.timeout);f.globalAlpha=h;var h=this.x-this.size/2,c=this.y-this.size/2;this.qa.b.Zc&&(h=h+.5|0,c=c+.5|0);f.drawImage(this.qa.type.Ia,h,c,this.size,this.size)}};h.prototype.Hb=function(f){var h=this.qa.opacity*this.opacity;0===this.qa.Bf&&(h*=1-this.ie/this.qa.timeout);var c=this.size,b=c*this.qa.Vp,n=this.x-c/2,d=this.y-c/2;this.qa.b.Zc&&(n=n+.5|0,d=d+.5|0);1>b||0===h||(b<f.Zu||
- b>f.cm?(f.pf(h),f.bg(n,d,n+c,d,n+c,d+c,n,d+c)):f.ov(this.x,this.y,b,h))};h.prototype.left=function(){return this.x-this.size/2};h.prototype.right=function(){return this.x+this.size/2};h.prototype.top=function(){return this.y-this.size/2};h.prototype.bottom=function(){return this.y+this.size/2};n.da=function(f){this.type=f;this.b=f.b};var f=n.da.prototype,q=[];f.O=function(){var f=this.T;this.Cj=f[0];this.Qj=U(f[1]);this.hg=f[2];this.Tm=!0;this.Dl=f[3];this.Cl=f[4];this.Bl=f[5]/100;this.tl=f[6];this.gk=
- f[7];this.hk=f[8];this.Pj=f[9];this.Oj=f[10];this.Hi=f[11];this.wk=f[12];this.fl=f[13];this.lh=f[14];this.nh=f[15];this.mh=f[16];this.Bf=f[17];this.timeout=f[18];this.of=0;this.Vp=1;this.sj=this.x;this.uj=this.y;this.tj=this.x;this.rj=this.y;this.ws(function(f){f.Oa.set(f.sj,f.uj,f.tj,f.rj);f.le.Ih(f.Oa);f.bi=!1;f.aw();f.Nq()});this.pc||(this.Cb=[]);this.b.lg(this);this.type.Wl();if(1===this.hg)for(f=0;f<this.Cj;f++)this.yk().opacity=0;this.wi=!0};f.Nb=function(){var f={r:this.Cj,sc:this.Qj,st:this.hg,
- s:this.Tm,isp:this.Dl,isz:this.Cl,io:this.Bl,gr:this.tl,xr:this.gk,yr:this.hk,spr:this.Pj,szr:this.Oj,grnd:this.Hi,acc:this.wk,g:this.fl,lar:this.lh,lsr:this.nh,lor:this.mh,dm:this.Bf,to:this.timeout,pcc:this.of,ft:this.wi,p:[]},h,c,b,n=f.p;h=0;for(c=this.Cb.length;h<c;h++)b=this.Cb[h],n.push([b.x,b.y,b.speed,b.k,b.opacity,b.Gi,b.size,b.If,b.ie]);return f};f.nc=function(f){this.Cj=f.r;this.Qj=f.sc;this.hg=f.st;this.Tm=f.s;this.Dl=f.isp;this.Cl=f.isz;this.Bl=f.io;this.tl=f.gr;this.gk=f.xr;this.hk=
- f.yr;this.Pj=f.spr;this.Oj=f.szr;this.Hi=f.grnd;this.wk=f.acc;this.fl=f.g;this.lh=f.lar;this.nh=f.lsr;this.mh=f.lor;this.Bf=f.dm;this.timeout=f.to;this.of=f.pcc;this.wi=f.ft;q.push.apply(q,this.Cb);R(this.Cb);var h,c,b,n=f.p;f=0;for(h=n.length;f<h;f++)c=this.yk(),b=n[f],c.x=b[0],c.y=b[1],c.speed=b[2],c.k=b[3],c.opacity=b[4],c.Gi=b[5],c.size=b[6],c.If=b[7],c.ie=b[8]};f.Xf=function(){q.push.apply(q,this.Cb);R(this.Cb)};f.yk=function(){var f;q.length?(f=q.pop(),f.qa=this):f=new h(this);this.Cb.push(f);
- f.ab=!0;return f};f.Ya=function(){var f=this.b.hl(this),h,c,b,n;if(0===this.hg&&this.Tm)for(this.of+=f*this.Cj,c=O(this.of),this.of-=c,h=0;h<c;h++)b=this.yk(),b.init();this.sj=this.x;this.uj=this.y;this.tj=this.x;this.rj=this.y;n=h=0;for(c=this.Cb.length;h<c;h++)b=this.Cb[h],this.Cb[n]=b,this.b.ca=!0,1===this.hg&&this.wi&&b.init(),b.Ya(f),b.ab?(b.left()<this.sj&&(this.sj=b.left()),b.right()>this.tj&&(this.tj=b.right()),b.top()<this.uj&&(this.uj=b.top()),b.bottom()>this.rj&&(this.rj=b.bottom()),n++):
- q.push(b);za(this.Cb,n);this.Ma();this.wi=!1;1===this.hg&&0===this.Cb.length&&this.b.be(this)};f.gc=function(f){var h,c,b,n=this.j;h=0;for(c=this.Cb.length;h<c;h++)b=this.Cb[h],b.right()>=n.ja&&b.bottom()>=n.ka&&b.left()<=n.ta&&b.top()<=n.ra&&b.gc(f)};f.Hb=function(f){this.Vp=this.j.Jb();f.$b(this.type.ib);var h,c,b,n=this.j;h=0;for(c=this.Cb.length;h<c;h++)b=this.Cb[h],b.right()>=n.ja&&b.bottom()>=n.ka&&b.left()<=n.ta&&b.top()<=n.ra&&b.Hb(f)};n.e=new function(){};n.A=new function(){};n.M=new function(){}})();
- function Y(h){this.b=h}
- (function(){function h(){}function n(){}function f(){}var q=!1,t=null,p=null,c="",b=Y.prototype;b.la=function(a){this.ga=a;this.b=a.b};b.la.prototype.O=function(){};b.da=function(a){this.type=a;this.b=a.b;this.bb=this.ob="";this.hb=0;this.timeout=-1;if(q=this.b.Lu)t=require("path"),p=require("fs"),c=t.dirname(process.execPath)+"\\"};var w=b.da.prototype,d=null;window.C2_AJAX_DCSide=function(a,b,c){d&&("success"===a?(d.bb=b,d.ob=c,d.b.trigger(Y.prototype.e.fe,d)):"error"===a?(d.bb=b,d.b.trigger(Y.prototype.e.vf,
- d)):"progress"===a&&(d.hb=c,d.bb=b,d.b.trigger(Y.prototype.e.Yh,d)))};w.O=function(){var a=this;d=this;window.addEventListener("resize",function(){a.b.trigger(Y.prototype.e.pk,a)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(Y.prototype.e.mk,a)}),window.addEventListener("offline",function(){a.b.trigger(Y.prototype.e.lk,a)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.ye=1;
- a.b.trigger(Y.prototype.e.vg,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.ye=b.loaded/b.total}));this.b.Sa||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(Y.prototype.e.vg,a)}),document.addEventListener("backbutton",function(){a.b.trigger(Y.prototype.e.ee,a)}),document.addEventListener("menubutton",function(){a.b.trigger(Y.prototype.e.ug,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(Y.prototype.e.rk,a)}),document.addEventListener("tizenhwkey",
- function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(Y.prototype.e.ee,a);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(Y.prototype.e.ug,a))||b.preventDefault()}}));this.b.bh&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(Y.prototype.e.ee,a)});this.b.xk(function(b){b?a.b.trigger(Y.prototype.e.nk,a):a.b.trigger(Y.prototype.e.ok,a)});this.Uo="undefined"!==typeof window.is_scirra_arcade};w.Nb=function(){return{lastData:this.ob}};
- w.nc=function(a){this.ob=a.lastData;this.bb="";this.hb=0};var a={};w.oi=function(b,d,g,f){if(this.b.Sa)AppMobi.webview.execute('C2_AJAX_WebSide("'+b+'", "'+d+'", "'+g+'", '+(f?'"'+f+'"':"null")+");");else{var h=this,n=null,k=function(){h.bb=b;h.b.trigger(Y.prototype.e.vf,h)},r=function(){if(q){var a=c+d;p.existsSync(a)?p.readFile(a,{encoding:"utf8"},function(a,b){a?k():(h.ob=b.replace(/\r\n/g,"\n"),h.b.trigger(Y.prototype.e.fe,h))}):k()}else k()},t=function(a){a.lengthComputable&&(h.hb=a.loaded/a.total,
- h.bb=b,h.b.trigger(Y.prototype.e.Yh,h))};try{this.b.mc?n=new ActiveXObject("Microsoft.XMLHTTP"):n=new XMLHttpRequest;n.onreadystatechange=function(){4===n.readyState&&(h.bb=b,n.responseText?h.ob=n.responseText.replace(/\r\n/g,"\n"):h.ob="",400<=n.status?h.b.trigger(Y.prototype.e.vf,h):q&&!h.ob.length||h.b.trigger(Y.prototype.e.fe,h))};this.b.mc||(n.onerror=r,n.ontimeout=r,n.onabort=r,n.onprogress=t);n.open(g,d);!this.b.mc&&0<=this.timeout&&"undefined"!==typeof n.timeout&&(n.timeout=this.timeout);
- try{n.responseType="text"}catch(w){}f&&n.setRequestHeader&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(n.setRequestHeader){for(var C in a)if(a.hasOwnProperty(C))try{n.setRequestHeader(C,a[C])}catch(L){}a={}}f?n.send(f):n.send()}catch(S){r()}}};h.prototype.fe=function(){return mb("shareplugin",this.bb)};h.prototype.mk=function(){return!0};h.prototype.lk=function(){return!0};h.prototype.vg=function(){return!0};h.prototype.ok=function(){return!0};h.prototype.nk=function(){return!0};
- h.prototype.pk=function(){return!0};h.prototype.ee=function(){return!0};h.prototype.ug=function(){return!0};h.prototype.rk=function(){return!0};b.e=new h;n.prototype.En=function(a,b,c,d){this.oi("shareplugin",c,"POST","foto="+b+"&nome="+a+"&folder="+d)};b.A=new n;f.prototype.un=function(a){a.za(this.ob)};b.M=new f})();function X(h){this.b=h}
- (function(){function h(){if(0===this.Qk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.ig?b.drawImage(this.Ia,this.Vf,this.Wf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Ia,0,0,this.width,this.height);this.Qk=a.toDataURL("image/png")}return this.Qk}function n(){}function f(){}function q(){}var t=X.prototype;t.la=function(a){this.ga=a;this.b=a.b};var p=t.la.prototype;p.O=function(){if(!this.J){var a,b,c,d,
- f,m,n,k,r;this.Qc=[];this.Rg=!1;a=0;for(b=this.Gb.length;a<b;a++){f=this.Gb[a];n={};n.name=f[0];n.speed=f[1];n.loop=f[2];n.Im=f[3];n.Ej=f[4];n.Wp=f[5];n.V=f[6];n.frames=[];c=0;for(d=f[7].length;c<d;c++)m=f[7][c],k={},k.Wm=m[0],k.Xm=m[1],k.Vf=m[2],k.Wf=m[3],k.width=m[4],k.height=m[5],k.duration=m[6],k.Vb=m[7],k.Wb=m[8],k.zl=m[9],k.xj=m[10],k.Xp=m[11],k.ig=0!==k.width,k.Qk="",k.ix=h,r={left:0,top:0,right:1,bottom:1},k.Rm=r,k.ib=null,(r=this.b.Vt(m[0]))?k.Ia=r:(k.Ia=new Image,k.Ia.Ks=m[0],k.Ia.ko=m[1],
- k.Ia.Fs=null,this.b.Qq(k.Ia,m[0])),n.frames.push(k),this.Qc.push(k);this.Gb[a]=n}}};p.Lq=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.ii=c.Ub.ib};p.mj=function(){if(!this.J){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.Ia.Fs=null,c.ib=null;this.Rg=!1;this.Lq()}};p.qm=function(){if(!this.J&&this.d.length){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.ib=this.b.n.dj(c.Ia,!1,this.b.R,c.Xp);this.Lq()}};p.Wl=function(){if(!this.J&&!this.Rg&&this.b.n){var a,
- b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.ib=this.b.n.dj(c.Ia,!1,this.b.R,c.Xp);this.Rg=!0}};p.gn=function(){if(!this.J&&!this.d.length&&this.Rg){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],this.b.n.deleteTexture(c.ib),c.ib=null;this.Rg=!1}};var c=[];p.zm=function(a){var b,d,f;R(c);b=0;for(d=this.Qc.length;b<d;++b)f=this.Qc[b].Ia,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};t.da=function(a){this.type=a;this.b=a.b;a=this.type.Gb[0].frames[0].xj;this.pc?this.hd.Jh(a):this.hd=
- new gb(a)};var b=t.da.prototype;b.O=function(){this.visible=0===this.T[0];this.Li=this.ah=!1;this.Bg=0!==this.T[3];1===this.type.Gb.length&&1===this.type.Gb[0].frames.length||0===this.type.Gb[0].speed||(this.b.lg(this),this.ah=!0);this.xa=this.zo(this.T[1])||this.type.Gb[0];this.B=this.T[2];0>this.B&&(this.B=0);this.B>=this.xa.frames.length&&(this.B=this.xa.frames.length-1);var a=this.xa.frames[this.B];this.hd.Jh(a.xj);this.Vb=a.Vb;this.Wb=a.Wb;this.Hg=this.xa.speed;this.pc?this.fd.reset():this.fd=
- new eb;this.Id=this.fd.X;this.Me=!0;this.xd=0;this.Le=!0;this.ei=this.On="";this.fo=0;this.di=-1;this.type.Wl();var b,c,d,f,h,n,k,a=0;for(b=this.type.Gb.length;a<b;a++)for(f=this.type.Gb[a],c=0,d=f.frames.length;c<d;c++)h=f.frames[c],0===h.width&&(h.width=h.Ia.width,h.height=h.Ia.height),h.ig&&(k=h.Ia,n=h.Rm,n.left=h.Vf/k.width,n.top=h.Wf/k.height,n.right=(h.Vf+h.width)/k.width,n.bottom=(h.Wf+h.height)/k.height,0===h.Vf&&0===h.Wf&&h.width===k.width&&h.height===k.height&&(h.ig=!1));this.Ub=this.xa.frames[this.B];
- this.ii=this.Ub.ib};b.Nb=function(){var a={a:this.xa.V,f:this.B,cas:this.Hg,fs:this.Id,ar:this.xd,at:this.fd.X};this.Me||(a.ap=this.Me);this.Le||(a.af=this.Le);return a};b.nc=function(a){var b=this.$t(a.a);b&&(this.xa=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.xa.frames.length&&(this.B=this.xa.frames.length-1);this.Hg=a.cas;this.Id=a.fs;this.xd=a.ar;this.fd.reset();this.fd.X=a.at;this.Me=a.hasOwnProperty("ap")?a.ap:!0;this.Le=a.hasOwnProperty("af")?a.af:!0;this.Ub=this.xa.frames[this.B];this.ii=
- this.Ub.ib;this.hd.Jh(this.Ub.xj);this.Vb=this.Ub.Vb;this.Wb=this.Ub.Wb};b.Bk=function(a){this.B=a?0:this.xa.frames.length-1;this.Me=!1;this.On=this.xa.name;this.Li=!0;this.b.trigger(X.prototype.e.tr,this);this.b.trigger(X.prototype.e.sr,this);this.Li=!1;this.xd=0};b.Un=function(){return this.fd.X};b.Ya=function(){this.fd.add(this.b.hl(this));this.ei.length&&this.no();0<=this.di&&this.oo();var a=this.fd.X,b=this.xa,c=b.frames[this.B],d=c.duration/this.Hg;this.Me&&a>=this.Id+d&&(this.Le?this.B++:this.B--,
- this.Id+=d,this.B>=b.frames.length&&(b.Wp?(this.Le=!1,this.B=b.frames.length-2):b.loop?this.B=b.Ej:(this.xd++,this.xd>=b.Im?this.Bk(!1):this.B=b.Ej)),0>this.B&&(b.Wp?(this.B=1,this.Le=!0,b.loop||(this.xd++,this.xd>=b.Im&&this.Bk(!0))):b.loop?this.B=b.Ej:(this.xd++,this.xd>=b.Im?this.Bk(!0):this.B=b.Ej)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.Id+b.frames[this.B].duration/this.Hg&&(this.Id=a),a=b.frames[this.B],this.wf(c,a),this.b.ca=!0)};b.zo=function(a){var b,
- c,d;b=0;for(c=this.type.Gb.length;b<c;b++)if(d=this.type.Gb[b],mb(d.name,a))return d;return null};b.$t=function(a){var b,c,d;b=0;for(c=this.type.Gb.length;b<c;b++)if(d=this.type.Gb[b],d.V===a)return d;return null};b.no=function(){var a=this.xa.frames[this.B],b=this.zo(this.ei);this.ei="";!b||mb(b.name,this.xa.name)&&this.Me||(this.xa=b,this.Hg=b.speed,0>this.B&&(this.B=0),this.B>=this.xa.frames.length&&(this.B=this.xa.frames.length-1),1===this.fo&&(this.B=0),this.Me=!0,this.Id=this.fd.X,this.Le=!0,
- this.wf(a,this.xa.frames[this.B]),this.b.ca=!0)};b.oo=function(){var a=this.xa.frames[this.B],b=this.B;this.B=O(this.di);0>this.B&&(this.B=0);this.B>=this.xa.frames.length&&(this.B=this.xa.frames.length-1);b!==this.B&&(this.wf(a,this.xa.frames[this.B]),this.Id=this.fd.X,this.b.ca=!0);this.di=-1};b.wf=function(a,b){var c=a.width,d=a.height,f=b.width,h=b.height;c!=f&&(this.width*=f/c);d!=h&&(this.height*=h/d);this.Vb=b.Vb;this.Wb=b.Wb;this.hd.Jh(b.xj);this.Ma();this.Ub=b;this.ii=b.ib;c=0;for(d=this.L.length;c<
- d;c++)f=this.L[c],f.iv&&f.iv(a,b);this.b.trigger(X.prototype.e.wf,this)};b.gc=function(a){a.globalAlpha=this.opacity;var b=this.Ub,c=b.ig,d=b.Ia,f=this.x,h=this.y,n=this.width,k=this.height;if(0===this.k&&0<=n&&0<=k)f-=this.Vb*n,h-=this.Wb*k,this.b.Zc&&(f=Math.round(f),h=Math.round(h)),c?a.drawImage(d,b.Vf,b.Wf,b.width,b.height,f,h,n,k):a.drawImage(d,f,h,n,k);else{this.b.Zc&&(f=Math.round(f),h=Math.round(h));a.save();var r=0<n?1:-1,p=0<k?1:-1;a.translate(f,h);1===r&&1===p||a.scale(r,p);a.rotate(this.k*
- r*p);f=0-this.Vb*na(n);h=0-this.Wb*na(k);c?a.drawImage(d,b.Vf,b.Wf,b.width,b.height,f,h,na(n),na(k)):a.drawImage(d,f,h,na(n),na(k));a.restore()}};b.Cf=function(a){this.Hb(a)};b.Hb=function(a){a.$b(this.ii);a.pf(this.opacity);var b=this.Ub,c=this.le;if(this.b.Zc){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.ig?a.De(c.rc+d,c.tc+f,c.Mc+d,c.Nc+f,c.yc+d,c.zc+f,c.wc+d,c.xc+f,b.Rm):a.bg(c.rc+d,c.tc+f,c.Mc+d,c.Nc+f,c.yc+d,c.zc+f,c.wc+d,c.xc+f)}else b.ig?a.De(c.rc,c.tc,c.Mc,c.Nc,c.yc,c.zc,
- c.wc,c.xc,b.Rm):a.bg(c.rc,c.tc,c.Mc,c.Nc,c.yc,c.zc,c.wc,c.xc)};b.du=function(a){var b=this.Ub,c,d;c=0;for(d=b.zl.length;c<d;c++)if(mb(a,b.zl[c][0]))return c;return-1};b.kl=function(a,b){var c=this.Ub,d=c.zl,f;K(a)?f=this.du(a):f=a-1;f=O(f);if(0>f||f>=d.length)return b?this.x:this.y;var h=(d[f][1]-c.Vb)*this.width,d=d[f][2],d=(d-c.Wb)*this.height,c=Math.cos(this.k);f=Math.sin(this.k);var n=h*c-d*f,d=d*c+h*f,h=n+this.x,d=d+this.y;return b?h:d};var w=new ba,d=!1;new sa(0,0,0,0);p.finish=function(a){if(d){if(a){var b=
- this.b.Ib().fc.qd;a=null.ma();var c=w.Ke(),f,h;if(a.ua){a.ua=!1;R(a.d);f=0;for(h=c.length;f<h;++f)a.d[f]=c[f];if(b)for(R(a.aa),f=0,h=null.d.length;f<h;++f)c=null.d[f],w.contains(c)||a.aa.push(c)}else if(b)for(b=a.d.length,f=0,h=c.length;f<h;++f)a.d[b+f]=c[f],Fa(a.aa,c[f]);else Ba(a.d,c);null.ke()}w.clear();d=!1}};n.prototype.sr=function(a){return mb(this.On,a)};n.prototype.tr=function(){return!0};n.prototype.wf=function(){return!0};t.e=new n;f.prototype.Wr=function(a,b){this.ei=a;this.fo=b;this.ah||
- (this.b.lg(this),this.ah=!0);this.Li||this.no()};f.prototype.Xr=function(a){this.di=a;this.ah||(this.b.lg(this),this.ah=!0);this.Li||this.oo()};t.A=new f;q.prototype.Vq=function(a){a.fa(this.xa.frames.length)};q.prototype.ir=function(a){a.u(this.Ub.width)};q.prototype.hr=function(a){a.u(this.Ub.height)};t.M=new q})();function uc(h){this.b=h}
- (function(){function h(){return w.length?w.pop():{}}function n(b){var a,c;a=0;for(c=b.length;a<c;a++)w.push(b[a]);R(b)}function f(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function q(){}var t=uc.prototype;t.O=function(){t.A.Gn=function(b){this.width!==b&&(this.width=b,this.Ie=!0,this.Ma())}};t.la=function(b){this.ga=b;this.b=b.b};var p=t.la.prototype;p.O=function(){};p.mj=function(){if(!this.J){var b,a,c;b=0;for(a=this.d.length;b<a;b++)c=this.d[b],c.pd=null,c.mf=null,
- c.Yb=null}};t.da=function(b){this.type=b;this.b=b.b;this.pc?R(this.ve):this.ve=[];this.Ie=!0};var p=t.da.prototype,c={};p.O=function(){this.text=this.T[0];this.visible=0===this.T[1];this.font=this.T[2];this.color=this.T[3];this.Ji=this.T[4];this.dk=this.T[5];this.pn=0===this.T[7];this.Sl=this.Yi=this.width;this.Xi=this.height;this.Vl=this.T[8];this.xi=this.Gd="";this.yq=this.zq=this.Dh=0;this.lv();this.Yb=this.mf=this.pd=null;this.Ap=!1;this.kh=this.b.bd;this.pc?this.dg.set(0,0,1,1):this.dg=new sa(0,
- 0,1,1);this.b.n&&this.b.lg(this)};p.lv=function(){var b=this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.Dh=parseInt(b[a].substr(0,b[a].length-2));this.Em=Math.ceil(this.Dh/72*96)+4;0<a&&(this.xi=b[a-1]);this.Gd=b[a+1];for(a+=2;a<b.length;a++)this.Gd+=" "+b[a];break}};p.Nb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ji,va:this.dk,wr:this.pn,lho:this.Vl,fn:this.Gd,fs:this.xi,ps:this.Dh,pxh:this.Em,tw:this.zq,th:this.yq,lrt:this.kh}};p.nc=
- function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.Ji=b.ha;this.dk=b.va;this.pn=b.wr;this.Vl=b.lho;this.Gd=b.fn;this.xi=b.fs;this.Dh=b.ps;this.Em=b.pxh;this.zq=b.tw;this.yq=b.th;this.kh=b.lrt;this.Ie=!0;this.Sl=this.Yi=this.width;this.Xi=this.height};p.Ya=function(){if(this.b.n&&this.Yb&&300<=this.b.bd-this.kh){var b=this.j;this.Za();var a=this.Oa;if(a.right<b.ja||a.bottom<b.ka||a.left>b.ta||a.top>b.ra)this.b.n.deleteTexture(this.Yb),this.pd=this.mf=this.Yb=null}};p.Xf=function(){this.pd=
- this.mf=null;this.b.n&&this.Yb&&this.b.n.deleteTexture(this.Yb);this.Yb=null};p.Mq=function(){this.font=this.xi+" "+this.Dh.toString()+"pt "+this.Gd;this.Ie=!0;this.b.ca=!0};p.gc=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var c=1;a&&(c=this.j.Jb(),b.save(),b.scale(c,c));if(this.Ie||this.width!==this.Sl)this.type.ga.ns(this.text,this.ve,b,this.width,this.pn),this.Ie=!1,this.Sl=this.width;this.Za();var c=a?0:this.le.rc,f=a?0:this.le.tc;
- this.b.Zc&&(c=c+.5|0,f=f+.5|0);0===this.k||a||(b.save(),b.translate(c,f),b.rotate(this.k),f=c=0);var g=f+this.height,h=this.Em,h=h+this.Vl,m,n;1===this.dk?f+=Math.max(this.height/2-this.ve.length*h/2,0):2===this.dk&&(f+=Math.max(this.height-this.ve.length*h-2,0));for(n=0;n<this.ve.length&&!(m=c,1===this.Ji?m=c+(this.width-this.ve[n].width)/2:2===this.Ji&&(m=c+(this.width-this.ve[n].width)),b.fillText(this.ve[n].text,m,f),f+=h,f>=g-h);n++);(0!==this.k||a)&&b.restore();this.kh=this.b.bd};p.Hb=function(b){if(!(1>
- this.width||1>this.height)){var a=this.Ie||this.Ap;this.Ap=!1;var c=this.j.Jb(),f=this.j.Ea(),g=this.dg,h=c*this.width,m=c*this.height,n=Math.ceil(h),k=Math.ceil(m),r=this.b.D/2,p=this.b.C/2;this.mf||(this.pd=document.createElement("canvas"),this.pd.width=n,this.pd.height=k,this.Yi=n,this.Xi=k,a=!0,this.mf=this.pd.getContext("2d"));if(n!==this.Yi||k!==this.Xi)this.pd.width=n,this.pd.height=k,this.Yb&&(b.deleteTexture(this.Yb),this.Yb=null),a=!0;a&&(this.mf.clearRect(0,0,n,k),this.gc(this.mf,!0),this.Yb||
- (this.Yb=b.ec(n,k,this.b.R,this.b.Pd)),b.ew(this.pd,this.Yb,this.b.Pd));this.Yi=n;this.Xi=k;b.$b(this.Yb);b.pf(this.opacity);b.Ic();b.translate(-r,-p);b.uc();var q=this.le,a=this.j.Ta(q.rc,q.tc,!0),r=this.j.Ta(q.rc,q.tc,!1),p=this.j.Ta(q.Mc,q.Nc,!0),t=this.j.Ta(q.Mc,q.Nc,!1),w=this.j.Ta(q.yc,q.zc,!0),S=this.j.Ta(q.yc,q.zc,!1),F=this.j.Ta(q.wc,q.xc,!0),q=this.j.Ta(q.wc,q.xc,!1);if(this.b.Zc||0===this.k&&0===f)var M=(a+.5|0)-a,x=(r+.5|0)-r,a=a+M,r=r+x,p=p+M,t=t+x,w=w+M,S=S+x,F=F+M,q=q+x;0===this.k&&
- 0===f?(p=a+n,t=r,w=p,S=r+k,F=a,q=S,g.right=1,g.bottom=1):(g.right=h/n,g.bottom=m/k);b.De(a,r,p,t,w,S,F,q,g);b.Ic();b.scale(c,c);b.Gj(-this.j.Ea());b.translate((this.j.ja+this.j.ta)/-2,(this.j.ka+this.j.ra)/-2);b.uc();this.kh=this.b.bd}};var b=[];t.js=function(c){R(b);for(var a="",e,f=0;f<c.length;)if(e=c.charAt(f),"\n"===e)a.length&&(b.push(a),a=""),b.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do a+=c.charAt(f),f++;while(f<c.length&&(" "===c.charAt(f)||"\t"===c.charAt(f)));b.push(a);a=""}else f<
- c.length&&(a+=e,f++);a.length&&b.push(a)};var w=[];t.ns=function(b,a,c,f,g){if(b&&b.length)if(2>=f)n(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var p=c.measureText(b).width;if(p<=f){n(a);a.push(h());a[0].text=b;a[0].width=p;return}}this.os(b,a,c,f,g)}else n(a)};t.os=function(c,a,e,l,g){g&&(this.js(c),c=b);var n="",m,p,k,r=0;for(k=0;k<c.length;k++)"\n"===c[k]?(r>=a.length&&a.push(h()),n=f(n),p=a[r],p.text=n,p.width=e.measureText(n).width,r++,n=""):(m=n,n+=c[k],p=e.measureText(n).width,p>=l&&(r>=
- a.length&&a.push(h()),m=f(m),p=a[r],p.text=m,p.width=e.measureText(m).width,r++,n=c[k],g||" "!==n||(n="")));n.length&&(r>=a.length&&a.push(h()),n=f(n),p=a[r],p.text=n,p.width=e.measureText(n).width,r++);for(k=r;k<a.length;k++)w.push(a[k]);a.length=r};t.e=new function(){};q.prototype.as=function(b){ja(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Ie=!0,this.b.ca=!0)};q.prototype.cs=function(b,a){if(this.b.pa)A("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored");
- else{var e=this,f=function(){e.b.ca=!0;e.Ie=!0};if(c.hasOwnProperty(a)){var g="'"+b+"'";if(this.Gd!==g)for(this.Gd=g,this.Mq(),g=1;10>g;g++)setTimeout(f,100*g),setTimeout(f,1E3*g)}else for(g=document.createElement("link"),g.href=a,g.rel="stylesheet",g.type="text/css",g.onload=f,document.getElementsByTagName("head")[0].appendChild(g),c[a]=!0,this.Gd="'"+b+"'",this.Mq(),g=1;10>g;g++)setTimeout(f,100*g),setTimeout(f,1E3*g)}};t.A=new q;t.M=new function(){}})();function Z(h){this.b=h}
- (function(){function h(b){w=b.x;d=b.y;a=b.z}function n(a,b,c,d){var g;g=e.length?e.pop():new f;g.init(a,b,c,d);return g}function f(){this.Mh=this.id=this.y=this.x=this.Tj=this.Sj=this.Rl=this.time=this.Vm=0;this.Rh=this.Zj=!1}function q(){}function t(){}var p=Z.prototype;p.la=function(a){this.ga=a;this.b=a.b};p.la.prototype.O=function(){};p.da=function(a){this.type=a;this.b=a.b;this.touches=[];this.fm=!1};var c=p.da.prototype,b={left:0,top:0};c.Lg=function(a){var b,c;b=0;for(c=this.touches.length;b<
- c;b++)if(this.touches[b].id===a)return b;return-1};var w=0,d=0,a=0,e=[];f.prototype.init=function(a,b,c,d){var e=ab();this.Vm=this.Rl=this.time=e;this.Sj=a;this.Tj=b;this.x=a;this.y=b;this.id=c;this.Mh=d;this.Rh=this.Zj=!1};f.prototype.update=function(a,b,c){this.Rl=this.time;this.time=a;this.x=b;this.y=c;!this.Rh&&15<=Ta(this.Sj,this.Tj,this.x,this.y)&&(this.Rh=!0)};f.prototype.Xu=function(a,b){!this.Zj&&500<=ab()-this.Vm&&!this.Rh&&15>Ta(this.Sj,this.Tj,this.x,this.y)&&(this.Zj=!0,a.wd=this.Mh,
- a.pg=this.id,a.Gf=b,a.b.trigger(Z.prototype.e.Gr,a),a.Ad=this.x,a.Bd=this.y,a.b.trigger(Z.prototype.e.Hr,a),a.Gf=0)};var l=-1E3,g=-1E3,v=-1E4;f.prototype.up=function(a,b){if(!this.Zj){var c=ab();333>=c-this.Vm&&!this.Rh&&15>Ta(this.Sj,this.Tj,this.x,this.y)&&(a.wd=this.Mh,a.pg=this.id,a.Gf=b,666>=c-v&&25>Ta(l,g,this.x,this.y)?(a.b.trigger(Z.prototype.e.Er,a),a.Ad=this.x,a.Bd=this.y,a.b.trigger(Z.prototype.e.Fr,a),g=l=-1E3,v=-1E4):(a.b.trigger(Z.prototype.e.Mr,a),a.Ad=this.x,a.Bd=this.y,a.b.trigger(Z.prototype.e.Nr,
- a),l=this.x,g=this.y,v=c),a.Gf=0)}};c.O=function(){this.Nu=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Gf=this.pg=this.wd=this.Bd=this.Ad=this.Ln=this.Kn=this.Jn=this.ts=this.ss=this.rs=this.qj=this.pj=this.oj=0;this.cw=0!==this.T[0];var a=0<this.b.Ab?document:this.b.canvas,b=document;this.b.Sa?b=a=window.Canvas:this.b.kc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Jp(a)},!1),a.addEventListener("pointermove",function(a){c.Ip(a)},
- !1),b.addEventListener("pointerup",function(a){c.nj(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.nj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",
- function(a){c.Jp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Ip(a)},!1),b.addEventListener("MSPointerUp",function(a){c.nj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.nj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Lp(a)},!1),a.addEventListener("touchmove",function(a){c.Kp(a)},!1),
- b.addEventListener("touchend",function(a){c.rm(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.rm(a,!0)},!1));if(this.Nu){var d=function(a){a=a.reading;c.Jn=a.accelerationX;c.Kn=a.accelerationY;c.Ln=a.accelerationZ},e=function(a){a=a.reading;c.oj=a.yawDegrees;c.pj=a.pitchDegrees;c.qj=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();
- g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.oj=a.alpha||0;c.pj=a.beta||0;c.qj=a.gamma||0},!1),window.addEventListener("devicemotion",
- function(a){a.accelerationIncludingGravity&&(c.rs=a.accelerationIncludingGravity.x||0,c.ss=a.accelerationIncludingGravity.y||0,c.ts=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Jn=a.acceleration.x||0,c.Kn=a.acceleration.y||0,c.Ln=a.acceleration.z||0)},!1);this.cw&&!this.b.pa&&(jQuery(document).mousemove(function(a){c.om(a)}),jQuery(document).mousedown(function(a){c.nm(a)}),jQuery(document).mouseup(function(a){c.pm(a)}));!this.b.Qf&&this.b.lc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&
- navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.Tv(this)};c.Ip=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Lg(a.pointerId),d=ab();if(0<=c){var e=this.b.pa?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top)}}};c.Jp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=
- this.b.pa?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;ab();this.wd=this.touches.length;this.pg=a.pointerId;this.touches.push(n(d,c,a.pointerId,this.wd));this.b.mb=!0;this.b.trigger(Z.prototype.e.Bn,this);this.b.trigger(Z.prototype.e.Dn,this);this.Ad=d;this.Bd=c;this.b.trigger(Z.prototype.e.tk,this);this.b.mb=!1}};c.nj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Lg(a.pointerId);this.wd=
- 0<=c?this.touches[c].Mh:-1;this.pg=0<=c?this.touches[c].id:-1;this.b.mb=!0;this.b.trigger(Z.prototype.e.An,this);this.b.trigger(Z.prototype.e.sk,this);0<=c&&(b||this.touches[c].up(this,c),100>e.length&&e.push(this.touches[c]),this.touches.splice(c,1));this.b.mb=!1}};c.Kp=function(a){a.preventDefault&&a.preventDefault();var c=ab(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Lg(f.identifier),0<=g){var h=this.b.pa?b:jQuery(this.b.canvas).offset();g=this.touches[g];
- 2>c-g.time||g.update(c,f.pageX-h.left,f.pageY-h.top)}};c.Lp=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.b.pa?b:jQuery(this.b.canvas).offset();ab();this.b.mb=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Lg(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;this.wd=this.touches.length;this.pg=f.identifier;this.touches.push(n(g,h,f.identifier,this.wd));this.b.trigger(Z.prototype.e.Bn,this);this.b.trigger(Z.prototype.e.Dn,this);
- this.Ad=g;this.Bd=h;this.b.trigger(Z.prototype.e.tk,this)}this.b.mb=!1};c.rm=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.mb=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.Lg(f.identifier),0<=f&&(this.wd=this.touches[f].Mh,this.pg=this.touches[f].id,this.b.trigger(Z.prototype.e.An,this),this.b.trigger(Z.prototype.e.sk,this),b||this.touches[f].up(this,f),100>e.length&&e.push(this.touches[f]),this.touches.splice(f,1));this.b.mb=!1};c.Un=function(){return this.b.lc&&
- 0===this.oj&&0!==a?90*a:this.oj};c.gx=function(){return this.b.lc&&0===this.pj&&0!==d?90*d:this.pj};c.hx=function(){return this.b.lc&&0===this.qj&&0!==w?90*w:this.qj};c.nm=function(a){this.Lp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.fm=!0};c.om=function(a){this.fm&&this.Kp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.pm=function(a){a.preventDefault&&this.b.Ii&&!this.b.Pd&&a.preventDefault();this.b.Ii=!0;this.rm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,
- identifier:0}]});this.fm=!1};c.Zm=function(){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Rl=d),c.Xu(this,a)};q.prototype.Dn=function(){return!0};q.prototype.sk=function(){return!0};q.prototype.lr=function(){return this.touches.length};q.prototype.tk=function(a){return a?this.b.Ph(a,this.Ad,this.Bd):!1};q.prototype.Bn=function(a){a=Math.floor(a);return a===this.wd};q.prototype.An=function(a){a=Math.floor(a);return a===this.wd};q.prototype.Gr=function(){return!0};
- q.prototype.Mr=function(){return!0};q.prototype.Er=function(){return!0};q.prototype.Hr=function(a){return a?this.b.Ph(a,this.Ad,this.Bd):!1};q.prototype.Nr=function(a){return a?this.b.Ph(a,this.Ad,this.Bd):!1};q.prototype.Fr=function(a){return a?this.b.Ph(a,this.Ad,this.Bd):!1};p.e=new q;t.prototype.uk=function(a,b){var c=this.Gf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ea(b)?(d=this.b.Kd(0),e=d.scale,f=d.Qb,g=d.Gc,h=d.k,d.scale=1,d.Qb=1,d.Gc=1,d.k=0,a.u(d.Pa(this.touches[c].x,this.touches[c].y,
- !0)),d.scale=e,d.Qb=f,d.Gc=g,d.k=h):(d=ja(b)?this.b.Kd(b):this.b.Mg(b))?a.u(d.Pa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};t.prototype.vk=function(a,b){var c=this.Gf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ea(b)?(d=this.b.Kd(0),e=d.scale,f=d.Qb,g=d.Hc,h=d.k,d.scale=1,d.Qb=1,d.Hc=1,d.k=0,a.u(d.Pa(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Qb=f,d.Hc=g,d.k=h):(d=ja(b)?this.b.Kd(b):this.b.Mg(b))?a.u(d.Pa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};p.M=new t})();
- function vc(h){this.b=h}
- (function(){function h(){}function n(){}function f(){}var q=vc.prototype;q.la=function(b){this.ga=b;this.b=b.b};q.la.prototype.O=function(){};q.da=function(b){this.type=b;this.b=b.b};var t=q.da.prototype,p="",c="undefined"!==typeof window.is_scirra_arcade;c&&(p="arcade"+window.scirra_arcade_id);var b=!1;try{localStorage.getItem("test"),b=!0}catch(w){b=!1}t.O=function(){b||A("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};h.prototype.qr=function(c){return b?null!=
- localStorage.getItem(p+c):!1};h.prototype.Kr=function(){return!0};q.e=new h;n.prototype.gs=function(c,a){if(b)try{localStorage.setItem(p+c,a)}catch(e){this.b.trigger(vc.prototype.e.Kr,this)}};q.A=new n;f.prototype.rr=function(c,a){b?c.za(localStorage.getItem(p+a)||""):c.za("")};f.prototype.rn=function(d){if(b){var a={},e,f,g;e=0;for(f=localStorage.length;e<f;e++)g=localStorage.key(e),c?g.substr(0,p.length)===p&&(a[g.substr(p.length)]=localStorage.getItem(g)):a[g]=localStorage.getItem(g);d.za(JSON.stringify({c2dictionary:!0,
- data:a}))}else d.za("")};q.M=new f})();function xc(h){this.b=h}
- (function(){function h(c){switch(c){case 1:return"BANNER";case 2:return"MEDIUM_RECTANGLE";case 3:return"FULL_BANNER";case 4:return"LEADERBOARD";case 5:return"SKYSCRAPER"}return"SMART_BANNER"}function n(c){switch(c){case 0:return"top-left";case 1:return"top-center";case 2:return"top-right";case 3:return"left";case 4:return"center";case 5:return"right";case 6:return"bottom-left";case 8:return"bottom-right"}return"bottom-center"}function f(){}function q(){}var t=xc.prototype;t.la=function(c){this.ga=
- c;this.b=c.b};t.la.prototype.O=function(){};t.da=function(c){this.type=c;this.b=c.b};var p=!1;t.da.prototype.O=function(){if(window.admob){p=!0;this.$a=window.admob;this.$a.setLicenseKey&&this.$a.setLicenseKey("support@scirra.com","2ba99d4ff8c219cf7331c88fb3344f80");var c=0!==this.T[0],b=0!==this.T[1];this.zs=this.T[2];this.As=this.T[3];this.Fu=this.T[4];this.Gu=this.T[5];this.gw=this.T[6];this.hw=this.T[7];this.b.Ug?(this.ai=this.zs,this.Ni=this.As):this.b.Qf?(this.ai=this.Fu,this.Ni=this.Gu):this.b.mc||
- this.b.bh?(this.ai=this.gw,this.Ni=this.hw):this.Ni=this.ai="";this.Ri=!1;this.$a.setUp(this.ai,this.Ni,c,b);var f=this;this.$a.onFullScreenAdLoaded=function(){f.b.trigger(xc.prototype.e.jk,f)};this.$a.onInterstitialAdLoaded=function(){f.b.trigger(xc.prototype.e.jk,f)};this.$a.onFullScreenAdShown=function(){f.Ri=!0;f.b.trigger(xc.prototype.e.xn,f)};this.$a.onInterstitialAdShown=function(){f.Ri=!0;f.b.trigger(xc.prototype.e.xn,f)};this.$a.onFullScreenAdClosed=function(){f.Ri=!1;f.b.trigger(xc.prototype.e.wn,
- f)};this.$a.onInterstitialAdHidden=function(){f.Ri=!1;f.b.trigger(xc.prototype.e.wn,f)};this.$a.onBannerAdPreloaded=function(){f.b.trigger(xc.prototype.e.Ar,f)}}else A("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")};f.prototype.jk=function(){return!0};f.prototype.xn=function(){return!0};f.prototype.wn=function(){return!0};f.prototype.Ar=function(){return!0};t.e=new f;q.prototype.ds=function(c,b){p&&this.$a.showBannerAd(n(c),
- h(b))};q.prototype.Pr=function(){p&&(this.$a.preloadInterstitialAd?this.$a.preloadInterstitialAd():this.$a.preloadFullScreenAd&&this.$a.preloadFullScreenAd())};q.prototype.es=function(){p&&(this.$a.showInterstitialAd?this.$a.showInterstitialAd():this.$a.showFullScreenAd&&this.$a.showFullScreenAd())};t.A=new q;t.M=new function(){}})();function yc(h){this.b=h}
- (function(){var h=yc.prototype;h.la=function(f){this.ga=f;this.b=f.b};h.la.prototype.O=function(){};h.da=function(f){this.type=f;this.b=f.b};var n=h.da.prototype;n.O=function(){this.av=this.T[0];this.returnValue="";var f=document.createElement("script");f.setAttribute("type","text/javascript");f.setAttribute("src",this.av);"undefined"!=typeof f&&document.getElementsByTagName("head")[0].appendChild(f)};n.gc=function(){};h.e={};h.A={};h.A.er=function(f){this.returnValue="";try{this.returnValue=eval(f)}catch(h){this.returnValue=
- h}};h.M={};h.M.Nw=function(f){f.za(this.returnValue)}})();function oc(h){this.b=h}(function(){var h=oc.prototype;h.la=function(f){this.behavior=f;this.b=f.b};h.la.prototype.O=function(){};h.da=function(f){this.type=f;this.behavior=f.behavior;this.b=f.b};var n=h.da.prototype;n.O=function(){};n.Xf=function(){};n.Ya=function(){};h.e=new function(){};h.A=new function(){};h.M=new function(){}})();
- function nc(){return[pc,xc,qc,rc,yc,sc,tc,Y,X,uc,Z,vc,oc,V.prototype.e.yn,xc.prototype.A.ds,xc.prototype.A.Pr,X.prototype.A.Xr,V.prototype.M.random,X.prototype.M.Vq,X.prototype.A.Gn,X.prototype.A.Yr,X.prototype.M.hr,X.prototype.M.ir,V.prototype.A.Ur,uc.prototype.A.cs,V.prototype.A.bs,uc.prototype.A.Fn,uc.prototype.A.Hn,X.prototype.M.uk,X.prototype.A.Fn,vc.prototype.e.qr,vc.prototype.M.rr,uc.prototype.A.as,pc.prototype.A.Qr,pc.prototype.e.fe,V.prototype.M.Yv,pc.prototype.M.un,V.prototype.e.br,X.prototype.A.In,
- V.prototype.M.sin,V.prototype.M.bd,uc.prototype.A.In,X.prototype.M.vk,V.prototype.e.ks,qc.prototype.e.mr,qc.prototype.A.Play,Z.prototype.e.tk,X.prototype.e.cr,X.prototype.A.Hn,V.prototype.M.oe,X.prototype.M.ms,V.prototype.e.sn,V.prototype.M.Tu,X.prototype.A.Vr,Z.prototype.e.lr,X.prototype.M.fr,X.prototype.A.Zr,Z.prototype.e.sk,X.prototype.e.$q,X.prototype.e.tn,X.prototype.M.Tq,X.prototype.A.Wr,V.prototype.A.Sq,V.prototype.e.Zq,V.prototype.A.hs,X.prototype.A.Sr,X.prototype.e.dr,V.prototype.M.Su,V.prototype.A.Tr,
- vc.prototype.A.gs,pc.prototype.A.En,xc.prototype.A.es,V.prototype.A.ls,V.prototype.A.Rr,V.prototype.e.kr,rc.prototype.e.ee,qc.prototype.A.$r,rc.prototype.A.Yq,xc.prototype.e.jk,X.prototype.e.nr,yc.prototype.A.er]};
|