// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,N,ea,ha,P,Q,ia,la,ma,na,oa,pa,T,qa,ra,U,sa,ta,ya,za,Ba,Ca,Da,V,Ea,Ga,W,Ha,Ia,Ja,Ka,La,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,X,Yb,Zb={},$b={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(d,l,s,f){this.set(d,l,s,f)}function m(){this.Jb=this.Ib=this.Mb=this.Lb=this.Vb=this.Ub=this.Za=this.Ya=0}function a(d,l,s,f){d<l?s<f?(w=d<s?d:s,B=l>f?l:f):(w=d<f?d:f,B=l>s?l:s):s<f?(w=l<s?l:s,B=d>f?d:f):(w=l<f?l:f,B=d>s?d:s)}function r(){this.items=this.bd=null;this.Yf=0;l&&(this.bd=new Set);this.xg=[];this.ne=!0}function v(d){s[E++]=d}function c(){this.na=this.Oj=this.y=this.qk=0}function b(d){this.hb=[];this.ci=this.ei=this.fi=this.di=0;this.Oh(d)}function g(d,l){this.tk=
d;this.sk=l;this.cells={}}function q(d,l){this.tk=d;this.sk=l;this.cells={}}function t(d,l,s){var f;return C.length?(f=C.pop(),f.Yk=d,f.x=l,f.y=s,f):new aa(d,l,s)}function h(d,l,s){this.Yk=d;this.x=l;this.y=s;this.nb=new ba}function p(d,l,s){var f;return x.length?(f=x.pop(),f.Yk=d,f.x=l,f.y=s,f):new da(d,l,s)}function y(d,l,f){this.Yk=d;this.x=l;this.y=f;this.nb=[];this.Wf=!0;this.rd=new ba;this.Bg=!1}function k(d,l){return d.gd-l.gd}N=function(d){window.console&&window.console.log&&window.console.log(d)};
ea=function(d){window.console&&window.console.error&&window.console.error(d)};ha=function(d){return"undefined"===typeof d};P=function(d){return"number"===typeof d};Q=function(d){return"string"===typeof d};ia=function(d){return 0<d&&0===(d-1&d)};la=function(d){--d;for(var l=1;32>l;l<<=1)d|=d>>l;return d+1};ma=function(d){return 0>d?-d:d};na=function(d,l){return d>l?d:l};oa=function(d,l){return d<l?d:l};pa=Math.PI;T=function(d){return 0<=d?d|0:(d|0)-1};qa=function(d){var l=d|0;return l===d?l:l+1};ra=
function(d,l,f,s,h,c,b,a){var n,g,E,p;d<f?(g=d,n=f):(g=f,n=d);h<b?(p=h,E=b):(p=b,E=h);if(n<p||g>E)return!1;l<s?(g=l,n=s):(g=s,n=l);c<a?(p=c,E=a):(p=a,E=c);if(n<p||g>E)return!1;n=h-d+b-f;g=c-l+a-s;d=f-d;l=s-l;h=b-h;c=a-c;a=ma(l*h-c*d);return ma(h*g-c*n)>a?!1:ma(d*g-l*n)<=a};e.prototype.set=function(d,l,f,s){this.left=d;this.top=l;this.right=f;this.bottom=s};e.prototype.mi=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};e.prototype.width=function(){return this.right-
this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(d,l){this.left+=d;this.top+=l;this.right+=d;this.bottom+=l;return this};e.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};e.prototype.$s=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};e.prototype.bt=function(d,l,f){return!(d.right+
l<this.left||d.bottom+f<this.top||d.left+l>this.right||d.top+f>this.bottom)};e.prototype.yb=function(d,l){return d>=this.left&&d<=this.right&&l>=this.top&&l<=this.bottom};e.prototype.xi=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};U=e;m.prototype.Nh=function(d){this.Ya=d.left;this.Za=d.top;this.Ub=d.right;this.Vb=d.top;this.Lb=d.right;this.Mb=d.bottom;this.Ib=d.left;this.Jb=d.bottom};m.prototype.qp=function(d,l){if(0===l)this.Nh(d);else{var f=
Math.sin(l),s=Math.cos(l),h=d.left*f,c=d.top*f,b=d.right*f,f=d.bottom*f,a=d.left*s,n=d.top*s,g=d.right*s,s=d.bottom*s;this.Ya=a-c;this.Za=n+h;this.Ub=g-c;this.Vb=n+b;this.Lb=g-f;this.Mb=s+b;this.Ib=a-f;this.Jb=s+h}};m.prototype.offset=function(d,l){this.Ya+=d;this.Za+=l;this.Ub+=d;this.Vb+=l;this.Lb+=d;this.Mb+=l;this.Ib+=d;this.Jb+=l;return this};var w=0,B=0;m.prototype.cn=function(d){a(this.Ya,this.Ub,this.Lb,this.Ib);d.left=w;d.right=B;a(this.Za,this.Vb,this.Mb,this.Jb);d.top=w;d.bottom=B};m.prototype.yb=
function(d,l){var f=this.Ub-this.Ya,s=this.Vb-this.Za,h=this.Lb-this.Ya,c=this.Mb-this.Za,b=d-this.Ya,a=l-this.Za,n=f*f+s*s,g=f*h+s*c,s=f*b+s*a,E=h*h+c*c,p=h*b+c*a,k=1/(n*E-g*g),f=(E*s-g*p)*k,n=(n*p-g*s)*k;if(0<=f&&0<n&&1>f+n)return!0;f=this.Ib-this.Ya;s=this.Jb-this.Za;n=f*f+s*s;g=f*h+s*c;s=f*b+s*a;k=1/(n*E-g*g);f=(E*s-g*p)*k;n=(n*p-g*s)*k;return 0<=f&&0<n&&1>f+n};m.prototype.ke=function(d,l){if(l)switch(d){case 0:return this.Ya;case 1:return this.Ub;case 2:return this.Lb;case 3:return this.Ib;case 4:return this.Ya;
default:return this.Ya}else switch(d){case 0:return this.Za;case 1:return this.Vb;case 2:return this.Mb;case 3:return this.Jb;case 4:return this.Za;default:return this.Za}};m.prototype.Bo=function(){return(this.Ya+this.Ub+this.Lb+this.Ib)/4};m.prototype.Co=function(){return(this.Za+this.Vb+this.Mb+this.Jb)/4};m.prototype.Qn=function(d){var l=d.Bo(),f=d.Co();if(this.yb(l,f))return!0;l=this.Bo();f=this.Co();if(d.yb(l,f))return!0;var s,h,c,b,a,n,g,E;for(g=0;4>g;g++)for(E=0;4>E;E++)if(l=this.ke(g,!0),
f=this.ke(g,!1),s=this.ke(g+1,!0),h=this.ke(g+1,!1),c=d.ke(E,!0),b=d.ke(E,!1),a=d.ke(E+1,!0),n=d.ke(E+1,!1),ra(l,f,s,h,c,b,a,n))return!0;return!1};sa=m;ta=function(d,l){for(var f in l)l.hasOwnProperty(f)&&(d[f]=l[f]);return d};ya=function(d,l){var f,s;l=T(l);if(!(0>l||l>=d.length)){f=l;for(s=d.length-1;f<s;f++)d[f]=d[f+1];d.length=s}};za=function(d,l){d.length=l.length;var f,s;f=0;for(s=l.length;f<s;f++)d[f]=l[f]};Ba=function(d,l){d.push.apply(d,l)};Ca=function(d,l){var f,s;f=0;for(s=d.length;f<s;++f)if(d[f]===
l)return f;return-1};Da=function(d,l){var f=Ca(d,l);-1!==f&&ya(d,f)};V=function(d){return d/(180/pa)};Ea=function(d){return 180/pa*d};Ga=function(d){d%=360;0>d&&(d+=360);return d};W=function(d){d%=2*pa;0>d&&(d+=2*pa);return d};Ha=function(d){return Ga(Ea(d))};Ia=function(d){return W(V(d))};Ja=function(d,l,f,s){return Math.atan2(s-l,f-d)};Ka=function(d,l){if(d===l)return 0;var f=Math.sin(d),s=Math.cos(d),h=Math.sin(l),c=Math.cos(l),f=f*h+s*c;return 1<=f?0:-1>=f?pa:Math.acos(f)};La=function(d,l,f){var s=
Math.sin(d),h=Math.cos(d),c=Math.sin(l),b=Math.cos(l);return Math.acos(s*c+h*b)>f?0<h*c-s*b?W(d+f):W(d-f):W(l)};Qa=function(d,l){var f=Math.sin(d),s=Math.cos(d),h=Math.sin(l),c=Math.cos(l);return 0>=s*h-f*c};Ra=function(d,l,f,s,h,c){if(0===f)return c?d:l;var b=Math.sin(f);f=Math.cos(f);d-=s;l-=h;var a=d*b;d=d*f-l*b;l=l*f+a;return c?d+s:l+h};Sa=function(d,l,f,s){d=f-d;l=s-l;return Math.sqrt(d*d+l*l)};Ta=function(d,l){return!d!==!l};Ua=function(d){for(var l in d)if(d.hasOwnProperty(l))return!0;return!1};
Va=function(d){for(var l in d)d.hasOwnProperty(l)&&delete d[l]};var f=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-f};var n=!1,u=n=!1,d=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),d=window.c2ejecta);var l=!n&&!d&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(d){return this.Rd()?!1:l?this.bd.has(d):this.items&&this.items.hasOwnProperty(d)};r.prototype.add=function(d){if(l)this.bd.has(d)||(this.bd.add(d),this.ne=!1);else{var f=d.toString(),s=this.items;s?s.hasOwnProperty(f)||(s[f]=d,this.Yf++,this.ne=!1):(this.items={},this.items[f]=
d,this.Yf=1,this.ne=!1)}};r.prototype.remove=function(d){if(!this.Rd())if(l)this.bd.has(d)&&(this.bd["delete"](d),this.ne=!1);else if(this.items){d=d.toString();var f=this.items;f.hasOwnProperty(d)&&(delete f[d],this.Yf--,this.ne=!1)}};r.prototype.clear=function(){this.Rd()||(l?this.bd.clear():(this.items=null,this.Yf=0),this.xg.length=0,this.ne=!0)};r.prototype.Rd=function(){return 0===this.count()};r.prototype.count=function(){return l?this.bd.size:this.Yf};var s=null,E=0;r.prototype.xu=function(){if(!this.ne){if(l)this.xg.length=
this.bd.size,s=this.xg,E=0,this.bd.forEach(v),s=null,E=0;else{var d=this.xg;d.length=this.Yf;var f,h=0,c=this.items;if(c)for(f in c)c.hasOwnProperty(f)&&(d[h++]=c[f])}this.ne=!0}};r.prototype.fd=function(){this.xu();return this.xg};ba=r;new ba;Xa=function(d,f){l?Ya(d,f.bd):Za(d,f.fd())};Ya=function(d,l){var f,s,h,c;s=f=0;for(h=d.length;f<h;++f)c=d[f],l.has(c)||(d[s++]=c);d.length=s};Za=function(d,l){var f,s,h,c;s=f=0;for(h=d.length;f<h;++f)c=d[f],-1===Ca(l,c)&&(d[s++]=c);d.length=s};c.prototype.add=
function(d){this.y=d-this.qk;this.Oj=this.na+this.y;this.qk=this.Oj-this.na-this.y;this.na=this.Oj};c.prototype.reset=function(){this.na=this.Oj=this.y=this.qk=0};$a=c;ab=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Oh=function(d){this.ep=d;this.$c=d.length/2;this.hb.length=d.length;this.hi=this.ii=-1;this.gn=0};b.prototype.Tf=function(){return!this.ep.length};b.prototype.xa=function(){for(var d=this.hb,l=d[0],f=l,s=d[1],h=s,c,b,a=1,g=this.$c;a<g;++a)b=2*a,c=d[b],b=
d[b+1],c<l&&(l=c),c>f&&(f=c),b<s&&(s=b),b>h&&(h=b);this.di=l;this.ei=f;this.fi=s;this.ci=h};b.prototype.Nh=function(d,l,f){this.hb.length=8;this.$c=4;var s=this.hb;s[0]=d.left-l;s[1]=d.top-f;s[2]=d.right-l;s[3]=d.top-f;s[4]=d.right-l;s[5]=d.bottom-f;s[6]=d.left-l;s[7]=d.bottom-f;this.ii=d.right-d.left;this.hi=d.bottom-d.top;this.xa()};b.prototype.rg=function(d,l,f,s,h){this.hb.length=8;this.$c=4;var c=this.hb;c[0]=d.Ya-l;c[1]=d.Za-f;c[2]=d.Ub-l;c[3]=d.Vb-f;c[4]=d.Lb-l;c[5]=d.Mb-f;c[6]=d.Ib-l;c[7]=
d.Jb-f;this.ii=s;this.hi=h;this.xa()};b.prototype.pp=function(d){this.$c=d.$c;za(this.hb,d.hb);this.di=d.di;this.fi-d.fi;this.ei=d.ei;this.ci=d.ci};b.prototype.Hf=function(d,l,f){if(this.ii!==d||this.hi!==l||this.gn!==f){this.ii=d;this.hi=l;this.gn=f;var s,h,c,b,a,g=0,n=1,E=this.ep,p=this.hb;0!==f&&(g=Math.sin(f),n=Math.cos(f));f=0;for(c=this.$c;f<c;f++)s=2*f,h=s+1,b=E[s]*d,a=E[h]*l,p[s]=b*n-a*g,p[h]=a*n+b*g;this.xa()}};b.prototype.yb=function(d,l){var f=this.hb;if(d===f[0]&&l===f[1])return!0;var s,
h,c,b=this.$c,a=this.di-110,g=this.fi-101,n=this.ei+131,E=this.ci+120,p,k,C=0,q=0;for(s=0;s<b;s++)h=2*s,c=(s+1)%b*2,p=f[h],h=f[h+1],k=f[c],c=f[c+1],ra(a,g,d,l,p,h,k,c)&&C++,ra(n,E,d,l,p,h,k,c)&&q++;return 1===C%2||1===q%2};b.prototype.Vg=function(d,l,f){var s=d.hb,h=this.hb;if(this.yb(s[0]+l,s[1]+f)||d.yb(h[0]-l,h[1]-f))return!0;var c,b,a,g,n,E,p,k,C,q,R,t;c=0;for(g=this.$c;c<g;c++)for(b=2*c,a=(c+1)%g*2,k=h[b],b=h[b+1],C=h[a],q=h[a+1],a=0,p=d.$c;a<p;a++)if(n=2*a,E=(a+1)%p*2,R=s[n]+l,n=s[n+1]+f,t=
s[E]+l,E=s[E+1]+f,ra(k,b,C,q,R,n,t,E))return!0;return!1};bb=b;g.prototype.se=function(d,l,f){var s;s=this.cells[d];return s?(s=s[l])?s:f?(s=t(this,d,l),this.cells[d][l]=s):null:f?(s=t(this,d,l),this.cells[d]={},this.cells[d][l]=s):null};g.prototype.mc=function(d){return T(d/this.tk)};g.prototype.nc=function(d){return T(d/this.sk)};g.prototype.update=function(d,l,f){var s,h,c,b,a;if(l)for(s=l.left,h=l.right;s<=h;++s)for(c=l.top,b=l.bottom;c<=b;++c)if(!f||!f.yb(s,c))if(a=this.se(s,c,!1))a.remove(d),
a.Rd()&&(a.nb.clear(),1E3>C.length&&C.push(a),this.cells[s][c]=null);if(f)for(s=f.left,h=f.right;s<=h;++s)for(c=f.top,b=f.bottom;c<=b;++c)l&&l.yb(s,c)||this.se(s,c,!0).el(d)};g.prototype.Cj=function(d,l){var f,s,h,c,b,a;f=this.mc(d.left);h=this.nc(d.top);s=this.mc(d.right);for(b=this.nc(d.bottom);f<=s;++f)for(c=h;c<=b;++c)(a=this.se(f,c,!1))&&a.dump(l)};cb=g;q.prototype.se=function(d,l,f){var s;s=this.cells[d];return s?(s=s[l])?s:f?(s=p(this,d,l),this.cells[d][l]=s):null:f?(s=p(this,d,l),this.cells[d]=
{},this.cells[d][l]=s):null};q.prototype.mc=function(d){return T(d/this.tk)};q.prototype.nc=function(d){return T(d/this.sk)};q.prototype.update=function(d,l,f){var s,h,c,b,a;if(l)for(s=l.left,h=l.right;s<=h;++s)for(c=l.top,b=l.bottom;c<=b;++c)if(!f||!f.yb(s,c))if(a=this.se(s,c,!1))a.remove(d),a.Rd()&&(a.reset(),1E3>x.length&&x.push(a),this.cells[s][c]=null);if(f)for(s=f.left,h=f.right;s<=h;++s)for(c=f.top,b=f.bottom;c<=b;++c)l&&l.yb(s,c)||this.se(s,c,!0).el(d)};q.prototype.Cj=function(d,l,f,s,h){var c,
b;d=this.mc(d);l=this.nc(l);f=this.mc(f);for(c=this.nc(s);d<=f;++d)for(s=l;s<=c;++s)(b=this.se(d,s,!1))&&b.dump(h)};q.prototype.pt=function(d){var l,f,s,h,c;l=d.left;s=d.top;f=d.right;for(h=d.bottom;l<=f;++l)for(d=s;d<=h;++d)if(c=this.se(l,d,!1))c.Wf=!1};db=q;var C=[];h.prototype.Rd=function(){return this.nb.Rd()};h.prototype.el=function(d){this.nb.add(d)};h.prototype.remove=function(d){this.nb.remove(d)};h.prototype.dump=function(d){Ba(d,this.nb.fd())};aa=h;var x=[];y.prototype.Rd=function(){if(!this.nb.length)return!0;
if(this.nb.length>this.rd.count())return!1;this.Lk();return!0};y.prototype.el=function(d){this.rd.contains(d)?(this.rd.remove(d),this.rd.Rd()&&(this.Bg=!1)):this.nb.length?(this.nb[this.nb.length-1].Fc()>d.Fc()&&(this.Wf=!1),this.nb.push(d)):(this.nb.push(d),this.Wf=!0)};y.prototype.remove=function(d){this.rd.add(d);this.Bg=!0;30<=this.rd.count()&&this.Lk()};y.prototype.Lk=function(){this.Bg&&(this.rd.count()===this.nb.length?this.reset():(Xa(this.nb,this.rd),this.rd.clear(),this.Bg=!1))};y.prototype.Mr=
function(){this.Wf||(this.nb.sort(k),this.Wf=!0)};y.prototype.reset=function(){this.nb.length=0;this.Wf=!0;this.rd.clear();this.Bg=!1};y.prototype.dump=function(d){this.Lk();this.Mr();this.nb.length&&d.push(this.nb)};da=y;var R="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");eb=function(d){return 0>=d||11<=d?"source-over":R[d-1]};fb=function(d,l,f){if(f)switch(d.Ab=f.ONE,d.zb=f.ONE_MINUS_SRC_ALPHA,l){case 1:d.Ab=f.ONE;
d.zb=f.ONE;break;case 3:d.Ab=f.ONE;d.zb=f.ZERO;break;case 4:d.Ab=f.ONE_MINUS_DST_ALPHA;d.zb=f.ONE;break;case 5:d.Ab=f.DST_ALPHA;d.zb=f.ZERO;break;case 6:d.Ab=f.ZERO;d.zb=f.SRC_ALPHA;break;case 7:d.Ab=f.ONE_MINUS_DST_ALPHA;d.zb=f.ZERO;break;case 8:d.Ab=f.ZERO;d.zb=f.ONE_MINUS_SRC_ALPHA;break;case 9:d.Ab=f.DST_ALPHA;d.zb=f.ONE_MINUS_SRC_ALPHA;break;case 10:d.Ab=f.ONE_MINUS_DST_ALPHA,d.zb=f.SRC_ALPHA}};gb=function(d){return Math.round(1E6*d)/1E6};hb=function(d,l){return"string"!==typeof d||"string"!==
typeof l||d.length!==l.length?!1:d===l?!0:d.toLowerCase()===l.toLowerCase()};ib=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||hb(d.tagName,"canvas")?!0:!1}})();var ac="undefined"!==typeof Float32Array?Float32Array:Array;function bc(e){var m=new ac(3);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2]);return m}
function cc(e){var m=new ac(16);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15]);return m}function dc(e,m){m[0]=e[0];m[1]=e[1];m[2]=e[2];m[3]=e[3];m[4]=e[4];m[5]=e[5];m[6]=e[6];m[7]=e[7];m[8]=e[8];m[9]=e[9];m[10]=e[10];m[11]=e[11];m[12]=e[12];m[13]=e[13];m[14]=e[14];m[15]=e[15]}
function ec(e,m){var a=m[0],r=m[1];m=m[2];e[0]*=a;e[1]*=a;e[2]*=a;e[3]*=a;e[4]*=r;e[5]*=r;e[6]*=r;e[7]*=r;e[8]*=m;e[9]*=m;e[10]*=m;e[11]*=m}
function fc(e,m,a,r){r||(r=cc());var v,c,b,g,q,t,h,p,y=e[0],k=e[1];e=e[2];c=a[0];b=a[1];v=a[2];a=m[1];t=m[2];y===m[0]&&k===a&&e===t?(e=r,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(a=y-m[0],t=k-m[1],h=e-m[2],p=1/Math.sqrt(a*a+t*t+h*h),a*=p,t*=p,h*=p,m=b*h-v*t,v=v*a-c*h,c=c*t-b*a,(p=Math.sqrt(m*m+v*v+c*c))?(p=1/p,m*=p,v*=p,c*=p):c=v=m=0,b=t*c-h*v,g=h*m-a*c,q=a*v-t*m,(p=Math.sqrt(b*b+g*g+q*q))?(p=1/p,b*=p,g*=p,q*=p):q=g=b=0,
r[0]=m,r[1]=b,r[2]=a,r[3]=0,r[4]=v,r[5]=g,r[6]=t,r[7]=0,r[8]=c,r[9]=q,r[10]=h,r[11]=0,r[12]=-(m*y+v*k+c*e),r[13]=-(b*y+g*k+q*e),r[14]=-(a*y+t*k+h*e),r[15]=1)}
(function(){function e(c){this.ue=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.hn=bc([0,0,100]);this.ko=bc([0,0,0]);this.Pp=bc([0,1,0]);this.Em=bc([1,1,1]);this.pn=!0;this.zl=cc();this.Lc=cc();this.$n=cc();this.Ak=cc();this.A=c;this.Mn()}function m(c,b,a){this.A=c;this.Ph=b;this.name=a;this.Kc=c.getAttribLocation(b,"aPos");this.ze=c.getAttribLocation(b,"aTex");this.io=c.getUniformLocation(b,"matP");this.jj=c.getUniformLocation(b,"matMV");this.ag=
c.getUniformLocation(b,"opacity");this.jo=c.getUniformLocation(b,"samplerFront");this.lh=c.getUniformLocation(b,"samplerBack");this.rf=c.getUniformLocation(b,"destStart");this.qf=c.getUniformLocation(b,"destEnd");this.wl=c.getUniformLocation(b,"seconds");this.ul=c.getUniformLocation(b,"pixelWidth");this.tl=c.getUniformLocation(b,"pixelHeight");this.kh=c.getUniformLocation(b,"layerScale");this.jh=c.getUniformLocation(b,"layerAngle");this.nh=c.getUniformLocation(b,"viewOrigin");this.mh=c.getUniformLocation(b,
"scrollPos");this.Vs=!!(this.ul||this.tl||this.wl||this.lh||this.rf||this.qf||this.kh||this.jh||this.nh||this.mh);this.so=this.to=-999;this.lj=1;this.oo=this.no=0;this.qo=this.mo=this.lo=1;this.vo=this.uo=this.xo=this.wo=this.po=0;this.nl=[];this.ro=cc();this.ag&&c.uniform1f(this.ag,1);this.jo&&c.uniform1i(this.jo,0);this.lh&&c.uniform1i(this.lh,1);this.rf&&c.uniform2f(this.rf,0,0);this.qf&&c.uniform2f(this.qf,1,1);this.kh&&c.uniform1f(this.kh,1);this.jh&&c.uniform1f(this.jh,0);this.nh&&c.uniform2f(this.nh,
0,0);this.mh&&c.uniform2f(this.mh,0,0);this.cf=!1}function a(c,b){this.type=c;this.F=b;this.A=b.A;this.md=this.Mc=this.Qo=0;this.ga=this.dd=null;this.rp=[]}e.prototype.Mn=function(){var c=this.A,b;this.ao=1;this.lf=this.xe=null;this.qi=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.bo=c.ONE;this.Zn=c.ONE_MINUS_SRC_ALPHA;this.Rl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Rl);this.Zh=
Array(4);this.Uh=Array(4);for(b=0;4>b;b++)this.Zh[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Zh[b]),this.Uh[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Uh[b]);this.Gd=0;this.Ys=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ys);this.Am=new Float32Array(16E3);this.nm=new Float32Array(16E3);this.It=new Float32Array(32E3);for(var a=new Uint16Array(12E3),q=b=0;12E3>b;)a[b++]=q,a[b++]=q+1,a[b++]=q+2,a[b++]=q,a[b++]=q+2,a[b++]=q+3,q+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,a,
c.STATIC_DRAW);this.Sl=this.zd=0;this.jb=[];b=this.zk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.jb.push(b);b=this.zk({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.jb.push(b);for(var t in gc)gc.hasOwnProperty(t)&&this.jb.push(this.zk(gc[t],
"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}",t));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.me=[];this.Dd=0;this.Yb=!1;this.mn=this.dh=-1;this.Ig=null;this.ls=c.createFramebuffer();this.hp=null;this.Ne=bc([0,0,0]);this.yo=c.getParameter(c.ALIASED_POINT_SIZE_RANGE)[1];2048<this.yo&&
(this.yo=2048);this.ud(0)};m.prototype.vm=function(c){var b=this.ro;if(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])dc(c,this.ro),this.A.uniformMatrix4fv(this.jj,!1,c)};e.prototype.zk=function(c,b,a){var q=this.A,t=q.createShader(q.FRAGMENT_SHADER);q.shaderSource(t,c.src);q.compileShader(t);if(!q.getShaderParameter(t,q.COMPILE_STATUS))return q.deleteShader(t),
null;var h=q.createShader(q.VERTEX_SHADER);q.shaderSource(h,b);q.compileShader(h);if(!q.getShaderParameter(h,q.COMPILE_STATUS))return q.deleteShader(t),q.deleteShader(h),null;b=q.createProgram();q.attachShader(b,t);q.attachShader(b,h);q.linkProgram(b);if(!q.getProgramParameter(b,q.LINK_STATUS))return q.deleteShader(t),q.deleteShader(h),q.deleteProgram(b),null;q.useProgram(b);q.deleteShader(t);q.deleteShader(h);a=new m(q,b,a);a.Hk=c.Hk||0;a.Ik=c.Ik||0;a.ln=!!c.ln;a.$m=!!c.$m;a.N=c.N||[];c=0;for(t=
a.N.length;c<t;c++)a.N[c][1]=q.getUniformLocation(b,a.N[c][0]),a.nl.push(0),q.uniform1f(a.N[c][1],0);return a};e.prototype.Vk=function(c){var b,a;b=0;for(a=this.jb.length;b<a;b++)if(this.jb[b].name===c)return b;return-1};e.prototype.dp=function(c,b,a){var q=this.Lc,t=this.zl,h=[0,0,0,0,0,0,0,0];h[0]=q[0]*c+q[4]*b+q[12];h[1]=q[1]*c+q[5]*b+q[13];h[2]=q[2]*c+q[6]*b+q[14];h[3]=q[3]*c+q[7]*b+q[15];h[4]=t[0]*h[0]+t[4]*h[1]+t[8]*h[2]+t[12]*h[3];h[5]=t[1]*h[0]+t[5]*h[1]+t[9]*h[2]+t[13]*h[3];h[6]=t[2]*h[0]+
t[6]*h[1]+t[10]*h[2]+t[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],a[0]=(.5*h[4]+.5)*this.width,a[1]=(.5*h[5]+.5)*this.height)};e.prototype.qg=function(c,a,g){if(this.width!==c||this.height!==a||g){this.qe();this.width=c;this.height=a;this.A.viewport(0,0,c,a);a=c/a;var q=this.zl,t;t=1*Math.tan(45*Math.PI/360);a*=t;c=-a;g=-t;q||(q=cc());var h=a-c,p=t-g;q[0]=2/h;q[1]=0;q[2]=0;q[3]=0;q[4]=0;q[5]=2/p;q[6]=0;q[7]=0;q[8]=(a+c)/h;q[9]=(t+g)/p;q[10]=-1001/999;q[11]=-1;q[12]=
0;q[13]=0;q[14]=-2E3/999;q[15]=0;fc(this.hn,this.ko,this.Pp,this.Lc);c=[0,0];a=[0,0];this.dp(0,0,c);this.dp(1,1,a);this.Em[0]=1/(a[0]-c[0]);this.Em[1]=-1/(a[1]-c[1]);c=0;for(a=this.jb.length;c<a;c++)g=this.jb[c],g.cf=!1,g.io&&(this.A.useProgram(g.Ph),this.A.uniformMatrix4fv(g.io,!1,this.zl));this.A.useProgram(this.jb[this.dh].Ph);this.A.bindTexture(this.A.TEXTURE_2D,null);this.A.activeTexture(this.A.TEXTURE1);this.A.bindTexture(this.A.TEXTURE_2D,null);this.A.activeTexture(this.A.TEXTURE0);this.lf=
this.xe=null}};e.prototype.sd=function(){fc(this.hn,this.ko,this.Pp,this.Lc);ec(this.Lc,this.Em)};e.prototype.translate=function(c,a){if(0!==c||0!==a){this.Ne[0]=c;this.Ne[1]=a;this.Ne[2]=0;var g=this.Lc,q=this.Ne,t=q[0],h=q[1],q=q[2];g[12]=g[0]*t+g[4]*h+g[8]*q+g[12];g[13]=g[1]*t+g[5]*h+g[9]*q+g[13];g[14]=g[2]*t+g[6]*h+g[10]*q+g[14];g[15]=g[3]*t+g[7]*h+g[11]*q+g[15]}};e.prototype.scale=function(c,a){if(1!==c||1!==a)this.Ne[0]=c,this.Ne[1]=a,this.Ne[2]=1,ec(this.Lc,this.Ne)};e.prototype.am=function(c){if(0!==
c){var a=this.Lc,g,q=Math.sin(c);c=Math.cos(c);var t=a[0],h=a[1],p=a[2],r=a[3],k=a[4],w=a[5],e=a[6],f=a[7];g?a!==g&&(g[8]=a[8],g[9]=a[9],g[10]=a[10],g[11]=a[11],g[12]=a[12],g[13]=a[13],g[14]=a[14],g[15]=a[15]):g=a;g[0]=t*c+k*q;g[1]=h*c+w*q;g[2]=p*c+e*q;g[3]=r*c+f*q;g[4]=t*-q+k*c;g[5]=h*-q+w*c;g[6]=p*-q+e*c;g[7]=r*-q+f*c}};e.prototype.yd=function(){for(var c=!1,a=0;16>a;a++)if(this.$n[a]!==this.Lc[a]){c=!0;break}c&&(c=this.ad(),c.type=5,c.ga?dc(this.Lc,c.ga):c.ga=cc(this.Lc),dc(this.Lc,this.$n),this.Yb=
!1)};a.prototype.Cr=function(){this.A.bindTexture(this.A.TEXTURE_2D,this.dd)};a.prototype.Dr=function(){var c=this.A;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.dd);c.activeTexture(c.TEXTURE0)};a.prototype.yr=function(){var c=this.Qo,a=this.F;a.qi=c;a=a.Ig;a.ag&&a.lj!==c&&(a.lj=c,this.A.uniform1f(a.ag,c))};a.prototype.tr=function(){this.A.drawElements(this.A.TRIANGLES,this.md,this.A.UNSIGNED_SHORT,2*this.Mc)};a.prototype.xr=function(){this.A.blendFunc(this.Mc,this.md)};a.prototype.Er=
function(){var c,a,g,q=this.F.jb,t=this.F.mn;c=0;for(a=q.length;c<a;c++)g=q[c],c===t&&g.jj?(g.vm(this.ga),g.cf=!0):g.cf=!1;dc(this.ga,this.F.Ak)};a.prototype.ur=function(){var c=this.A,a=this.F;this.dd?(a.lf===this.dd&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.lf=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.ls),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.dd,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,
null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};a.prototype.rr=function(){var c=this.A;0===this.Mc?(c.clearColor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),c.clearColor(0,0,0,0),c.clear(this.A.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};a.prototype.sr=function(){var c=this.A,a=this.F,g=a.jb[1];c.useProgram(g.Ph);!g.cf&&g.jj&&(g.vm(a.Ak),g.cf=!0);c.enableVertexAttribArray(g.Kc);c.bindBuffer(c.ARRAY_BUFFER,
a.Rl);c.vertexAttribPointer(g.Kc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.Mc/4,this.md);g=a.Ig;c.useProgram(g.Ph);0<=g.Kc&&(c.enableVertexAttribArray(g.Kc),c.bindBuffer(c.ARRAY_BUFFER,a.Zh[a.Gd]),c.vertexAttribPointer(g.Kc,2,c.FLOAT,!1,0,0));0<=g.ze&&(c.enableVertexAttribArray(g.ze),c.bindBuffer(c.ARRAY_BUFFER,a.Uh[a.Gd]),c.vertexAttribPointer(g.ze,2,c.FLOAT,!1,0,0))};a.prototype.Ar=function(){var c=this.A,a=this.F,g=a.jb[this.Mc];a.mn=this.Mc;a.Ig=g;c.useProgram(g.Ph);!g.cf&&g.jj&&(g.vm(a.Ak),
g.cf=!0);g.ag&&g.lj!==a.qi&&(g.lj=a.qi,c.uniform1f(g.ag,a.qi));0<=g.Kc&&(c.enableVertexAttribArray(g.Kc),c.bindBuffer(c.ARRAY_BUFFER,a.Zh[a.Gd]),c.vertexAttribPointer(g.Kc,2,c.FLOAT,!1,0,0));0<=g.ze&&(c.enableVertexAttribArray(g.ze),c.bindBuffer(c.ARRAY_BUFFER,a.Uh[a.Gd]),c.vertexAttribPointer(g.ze,2,c.FLOAT,!1,0,0))};a.prototype.Br=function(){var a,b,g=this.F.Ig,q=this.A;a=this.ga;g.lh&&this.F.lf!==this.dd&&(q.activeTexture(q.TEXTURE1),q.bindTexture(q.TEXTURE_2D,this.dd),this.F.lf=this.dd,q.activeTexture(q.TEXTURE0));
var t=a[0];g.ul&&t!==g.to&&(g.to=t,q.uniform1f(g.ul,t));t=a[1];g.tl&&t!==g.so&&(g.so=t,q.uniform1f(g.tl,t));t=a[2];b=a[3];!g.rf||t===g.no&&b===g.oo||(g.no=t,g.oo=b,q.uniform2f(g.rf,t,b));t=a[4];b=a[5];!g.qf||t===g.lo&&b===g.mo||(g.lo=t,g.mo=t,q.uniform2f(g.qf,t,b));t=a[6];g.kh&&t!==g.qo&&(g.qo=t,q.uniform1f(g.kh,t));t=a[7];g.jh&&t!==g.po&&(g.po=t,q.uniform1f(g.jh,t));t=a[8];b=a[9];!g.nh||t===g.wo&&b===g.xo||(g.wo=t,g.xo=b,q.uniform2f(g.nh,t,b));t=a[10];b=a[11];!g.mh||t===g.uo&&b===g.vo||(g.uo=t,g.vo=
b,q.uniform2f(g.mh,t,b));g.wl&&q.uniform1f(g.wl,Wa()/1E3);if(g.N.length)for(a=0,b=g.N.length;a<b;a++)t=this.rp[a],t!==g.nl[a]&&(g.nl[a]=t,q.uniform1f(g.N[a][1],t))};e.prototype.ad=function(){this.Dd===this.me.length&&this.me.push(new a(0,this));return this.me[this.Dd++]};e.prototype.qe=function(){if(0!==this.Dd&&!this.A.isContextLost()){var a=this.A;0<this.Sl&&(a.bindBuffer(a.ARRAY_BUFFER,this.Rl),a.bufferData(a.ARRAY_BUFFER,this.It.subarray(0,this.Sl),a.STREAM_DRAW),b&&0<=b.Kc&&"<point>"===b.name&&
a.vertexAttribPointer(b.Kc,4,a.FLOAT,!1,0,0));if(0<this.zd){var b=this.Ig;a.bindBuffer(a.ARRAY_BUFFER,this.Zh[this.Gd]);a.bufferData(a.ARRAY_BUFFER,this.Am.subarray(0,this.zd),a.STREAM_DRAW);b&&0<=b.Kc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Kc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Uh[this.Gd]);a.bufferData(a.ARRAY_BUFFER,this.nm.subarray(0,this.zd),a.STREAM_DRAW);b&&0<=b.ze&&"<point>"!==b.name&&a.vertexAttribPointer(b.ze,2,a.FLOAT,!1,0,0)}for(var g,a=0,b=this.Dd;a<b;a++)switch(g=
this.me[a],g.type){case 1:g.tr();break;case 2:g.Cr();break;case 3:g.yr();break;case 4:g.xr();break;case 5:g.Er();break;case 6:g.ur();break;case 7:g.rr();break;case 8:g.sr();break;case 9:g.Ar();break;case 10:g.Br();break;case 11:g.Dr()}this.Sl=this.zd=this.Dd=0;this.Yb=!1;this.Gd++;4<=this.Gd&&(this.Gd=0)}};e.prototype.ng=function(a){if(a!==this.ao){var b=this.ad();b.type=3;this.ao=b.Qo=a;this.Yb=!1}};e.prototype.vc=function(a){if(a!==this.xe){var b=this.ad();b.type=2;this.xe=b.dd=a;this.Yb=!1}};e.prototype.He=
function(a,b){if(a!==this.bo||b!==this.Zn){var g=this.ad();g.type=4;g.Mc=a;g.md=b;this.bo=a;this.Zn=b;this.Yb=!1}};e.prototype.mp=function(){this.He(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};e.prototype.Bj=function(a,b,g,q,t,h,p,r){15992<=this.zd&&this.qe();var k=this.zd,w=this.Am,e=this.nm;if(this.Yb)this.me[this.Dd-1].md+=6;else{var f=this.ad();f.type=1;f.Mc=k/4*3;f.md=6;this.Yb=!0}w[k]=a;e[k++]=0;w[k]=b;e[k++]=0;w[k]=g;e[k++]=1;w[k]=q;e[k++]=0;w[k]=t;e[k++]=1;w[k]=h;e[k++]=1;w[k]=p;e[k++]=0;w[k]=
r;e[k++]=1;this.zd=k};e.prototype.Fe=function(a,b,g,q,t,h,p,r,k){15992<=this.zd&&this.qe();var e=this.zd,m=this.Am,f=this.nm;if(this.Yb)this.me[this.Dd-1].md+=6;else{var n=this.ad();n.type=1;n.Mc=e/4*3;n.md=6;this.Yb=!0}var n=k.left,u=k.top,d=k.right;k=k.bottom;m[e]=a;f[e++]=n;m[e]=b;f[e++]=u;m[e]=g;f[e++]=d;m[e]=q;f[e++]=u;m[e]=t;f[e++]=d;m[e]=h;f[e++]=k;m[e]=p;f[e++]=n;m[e]=r;f[e++]=k;this.zd=e};e.prototype.ud=function(a){if(this.dh!==a){if(!this.jb[a]){if(0===this.dh)return;a=0}var b=this.ad();
b.type=9;this.dh=b.Mc=a;this.Yb=!1}};e.prototype.Fh=function(a){a=this.jb[a];return!(!a.rf&&!a.qf)};e.prototype.Ul=function(a){a=this.jb[a];return!!(a.rf||a.qf||a.ln)};e.prototype.Pt=function(a){a=this.jb[a];return 0!==a.Hk||0!==a.Ik};e.prototype.As=function(a){return this.jb[a].Hk};e.prototype.Bs=function(a){return this.jb[a].Ik};e.prototype.Cs=function(a,b){return this.jb[a].N[b][2]};e.prototype.yj=function(a){return this.jb[a].$m};e.prototype.pg=function(a,b,g,q,t,h,p,r,k,e,m,f,n,u){var d=this.jb[this.dh],
l,s;if(d.Vs||u.length){l=this.ad();l.type=10;l.ga?dc(this.Lc,l.ga):l.ga=cc();s=l.ga;s[0]=b;s[1]=g;s[2]=q;s[3]=t;s[4]=h;s[5]=p;s[6]=r;s[7]=k;s[8]=e;s[9]=m;s[10]=f;s[11]=n;l.dd=d.lh?a:null;if(u.length)for(g=l.rp,g.length=u.length,a=0,b=u.length;a<b;a++)g[a]=u[a];this.Yb=!1}};e.prototype.clear=function(a,b,g,q){var r=this.ad();r.type=7;r.Mc=0;r.ga||(r.ga=cc());r.ga[0]=a;r.ga[1]=b;r.ga[2]=g;r.ga[3]=q;this.Yb=!1};e.prototype.clearRect=function(a,b,g,q){if(!(0>g||0>q)){var r=this.ad();r.type=7;r.Mc=1;r.ga||
(r.ga=cc());r.ga[0]=a;r.ga[1]=b;r.ga[2]=g;r.ga[3]=q;this.Yb=!1}};e.prototype.Ot=function(){this.qe();this.A.flush()};var r=[],v={};e.prototype.ir=function(){r.length=0;v={}};e.prototype.ho=function(a,b,g){var q;q=!1;b=!!b;var e=a.src+","+q+","+b+(q?",undefined":""),h=null;if("undefined"!==typeof a.src&&v.hasOwnProperty(e))return h=v[e],h.gi++,h;this.qe();var p=this.A,m=ia(a.width)&&ia(a.height),h=p.createTexture();p.bindTexture(p.TEXTURE_2D,h);p.pixelStorei(p.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=
p.RGBA,w=p.RGBA,B=p.UNSIGNED_BYTE;if(g&&!this.ue)switch(g){case 1:w=k=p.RGB;break;case 2:B=p.UNSIGNED_SHORT_4_4_4_4;break;case 3:B=p.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=k=p.RGB,B=p.UNSIGNED_SHORT_5_6_5}if(!m&&q){g=document.createElement("canvas");g.width=la(a.width);g.height=la(a.height);var f=g.getContext("2d");f.webkitImageSmoothingEnabled=b;f.mozImageSmoothingEnabled=b;f.msImageSmoothingEnabled=b;f.imageSmoothingEnabled=b;f.drawImage(a,0,0,a.width,a.height,0,0,g.width,g.height);p.texImage2D(p.TEXTURE_2D,
0,k,w,B,g)}else p.texImage2D(p.TEXTURE_2D,0,k,w,B,a);q?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.REPEAT),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.REPEAT)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.CLAMP_TO_EDGE),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.CLAMP_TO_EDGE));b?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.LINEAR),m&&this.pn?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.LINEAR_MIPMAP_LINEAR),p.generateMipmap(p.TEXTURE_2D)):p.texParameteri(p.TEXTURE_2D,
p.TEXTURE_MIN_FILTER,p.LINEAR)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.NEAREST),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.NEAREST));p.bindTexture(p.TEXTURE_2D,null);this.xe=null;h.Fg=a.width;h.Eg=a.height;h.gi=1;h.en=e;r.push(h);return v[e]=h};e.prototype.Fd=function(a,b,g,q){this.qe();var e=this.A;this.ue&&(q=!1);var h=e.createTexture();e.bindTexture(e.TEXTURE_2D,h);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,q?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,g?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,g?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.xe=null;h.Fg=a;h.Eg=b;r.push(h);return h};e.prototype.Cu=function(a,b,g){this.qe();var q=this.A;this.ue&&(g=!1);q.bindTexture(q.TEXTURE_2D,b);q.pixelStorei(q.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{q.texImage2D(q.TEXTURE_2D,
0,q.RGBA,q.RGBA,g?q.UNSIGNED_SHORT_4_4_4_4:q.UNSIGNED_BYTE,a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}q.bindTexture(q.TEXTURE_2D,null);this.xe=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.gi&&1<a.gi?a.gi--:(this.qe(),a===this.xe&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.xe=null),a===this.lf&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.lf=null),
Da(r,a),"undefined"!==typeof a.en&&delete v[a.en],this.A.deleteTexture(a)))};e.prototype.td=function(a){if(a!==this.hp){var b=this.ad();b.type=6;this.hp=b.dd=a;this.Yb=!1}};jb=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function a(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var l=this;this.Gc=(this.Xg=/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.sb=!!d.dc;this.Qf="undefined"!==typeof window.AppMobi||this.sb;this.rc=!!window.c2cocoonjs;this.Uc=!!window.c2ejecta;this.rc&&(CocoonJS.App.onSuspended.addEventListener(function(){l.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){l.setSuspended(!1)}));this.Uc&&(document.addEventListener("pagehide",function(){l.setSuspended(!0)}),document.addEventListener("pageshow",
function(){l.setSuspended(!1)}),document.addEventListener("resize",function(){l.setSize(window.innerWidth,window.innerHeight)}));this.ya=this.sb||this.rc||this.Uc;this.ue=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Un=/tizen/i.test(navigator.userAgent);this.Ri=/android/i.test(navigator.userAgent)&&!this.Un&&!this.ue;this.ml=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.ue;this.Yn=/ipad/i.test(navigator.userAgent);this.Wi=this.ml||this.Yn||this.Uc;this.kt=this.ml&&/os\s6/i.test(navigator.userAgent);this.Wg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.ue;this.Rn=/amazonwebappplatform/i.test(navigator.userAgent);this.et=/firefox/i.test(navigator.userAgent);this.Tn=/safari/i.test(navigator.userAgent)&&!this.Wg&&!this.ue;this.ht=/windows/i.test(navigator.userAgent);this.ve="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.Wn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.jt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Sf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.kl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Vn=this.Wn||this.jt||this.kl;this.ct=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Si=this.Ri&&!this.Wg&&!this.Xg&&!this.et&&!this.Rn&&
!this.ya;this.devicePixelRatio=1;this.Hc=this.Gc||this.Xg||this.Qf||this.rc||this.Ri||this.Wi||this.Sf||this.kl||this.ct||this.Un||this.Uc;this.Hc||(this.Hc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ve||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.ve=!0);this.dt="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
d;this.jn=document.getElementById("c2canvasdiv");this.qa=this.F=this.A=null;this.Ok="";this.Di=!1;this.Mo=this.No=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.sb&&(window.c2runtime=this);this.ve&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());this.Si&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.R=this.width;this.P=this.height;this.oi=this.width;this.ni=this.height;this.fh=window.innerWidth;this.eh=window.innerHeight;this.ns=!1;this.ta=!0;this.Zg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Ra=[];this.rl={};this.Xc=[];this.Gk={};this.Md=[];this.zg=[];this.Yj=[];this.Vq=[];this.Wq=[];this.xp=null;this.Ve={};this.hl=this.te=
!1;this.Sd=0;this.jl=!1;this.Sc=[];this.Td=this.Fb=this.ej=this.fm="";this.Rh=this.vp=!1;this.yk=this.oh=this.Ld=this.Xe=0;this.Me=1;this.Jc=new $a;this.Ad=new $a;this.$i=0;this.Ao=!0;this.oj=this.Fi=this.Ai=this.wd=this.nf=this.Nk=0;this.Se=null;this.vi=[];this.Fk=[];this.yi=-1;this.xl=[[]];this.rm=this.kj=0;this.Aj(null);this.Lg=this.Ho=this.sh=0;this.Sh=[];this.Tj=this.Dj=-1;this.Xf=!0;this.ij=0;this.Yg=!1;this.ou=0;this.Gf=null;this.Ts=!1;this.ol=0;this.Na=this.Of=this.Wl=!1;this.Lo=new ba;this.Fl=
new ba;this.Gl=new ba;this.Ej=[];this.cd=new bb([]);this.mm=new bb([]);this.je=[];this.Ni={};this.If={};this.Ff={};this.yg={};this.bn={};this.fo=this.dj=this.cc=this.tc=this.eo=this.cj=this.ma=null;this.wg=this.ll=!1;this.Pk=[null,null];this.$e=0;this.Kk="";this.Ce={};this.Kj=this.$f=null;this.nj=[];this.Xt()}}function r(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function v(d,l,f,a){var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=r;h.onerror=a;h.onsuccess=function(h){h=
h.target.result;h.onerror=a;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:l}).onsuccess=f}}function c(d,l,f){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=r;a.onerror=f;a.onsuccess=function(a){a=a.target.result;a.onerror=f;var h=a.transaction(["saves"]).objectStore("saves").get(d);h.onsuccess=function(){h.result?l(h.result.data):l(null)}}}function b(){N("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function g(d){var l,f={};for(l in d)!d.hasOwnProperty(l)||d[l]instanceof ba||d[l]&&"undefined"!==typeof d[l].Lv||(f[l]=d[l]);return f}a.prototype.Xt=function(){var d=this,l;l=this.Sf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var f="data.js";if(this.Wn||this.Sf||this.kl)f="data.json";l.open("GET",f,!0);var a=!1;if(!this.ya&&"response"in l&&"responseType"in l)try{l.responseType="json",a="json"===l.responseType}catch(h){a=!1}if(!a&&
"responseType"in l)try{l.responseType="text"}catch(c){}if("overrideMimeType"in l)try{l.overrideMimeType("application/json; charset=utf-8")}catch(b){}this.Sf?l.onreadystatechange=function(){4===l.readyState&&d.gj(JSON.parse(l.responseText))}:(l.onload=function(){if(a)d.gj(l.response);else if(d.Uc){var f=l.responseText,f=f.substr(f.indexOf("{"));d.gj(JSON.parse(f))}else d.gj(JSON.parse(l.responseText))},l.onerror=function(d){ea("Error requesting "+f+":");ea(d)});l.send()};a.prototype.Zs=function(){var d=
this,l,f,a,h,c,b,n,p,g;this.devicePixelRatio=(this.jf=(!this.ya||this.Uc)&&this.zu&&!this.Si)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.wb();f=!(!this.ns&&(!this.jk||this.ve||this.Vn||this.Sf||this.Xg||this.Gc||this.Rn));0<this.Cb&&this.setSize(e(),m(),!0);try{this.Kr&&(this.rc||this.Uc||!this.ya)&&(l={alpha:f,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl",l)||this.canvas.getContext("experimental-webgl",
l))}catch(k){}if(this.A){this.ya||(this.tb=document.createElement("canvas"),jQuery(this.tb).appendTo(this.canvas.parentNode),this.tb.oncontextmenu=function(){return!1},this.tb.onselectstart=function(){return!1},this.tb.width=this.oi,this.tb.height=this.ni,jQuery(this.tb).css({width:this.oi+"px",height:this.ni+"px"}),this.bp(),this.Ql=this.tb.getContext("2d"));this.F=new jb(this.A,this.Hc);this.F.qg(this.canvas.width,this.canvas.height);this.F.pn=0!==this.Fr;this.qa=null;this.canvas.addEventListener("webglcontextlost",
function(l){l.preventDefault();d.xt();N("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.F.Mn();d.F.qg(d.F.width,d.F.height,!0);d.tc=null;d.cc=null;d.Pk[0]=null;d.Pk[1]=null;d.yt();d.ta=!0;N("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);l=0;for(f=this.B.length;l<f;l++)for(c=this.B[l],a=0,h=c.M.length;a<h;a++)n=c.M[a],n.ub=this.F.Vk(n.id),this.wg=this.wg||this.F.Fh(n.ub);l=0;for(f=this.Xc.length;l<
f;l++){p=this.Xc[l];a=0;for(h=p.M.length;a<h;a++)n=p.M[a],n.ub=this.F.Vk(n.id);a=0;for(h=p.S.length;a<h;a++)for(g=p.S[a],c=0,b=g.M.length;c<b;c++)n=g.M[c],n.ub=this.F.Vk(n.id),this.wg=this.wg||this.F.Fh(n.ub)}}else{if(0<this.Cb&&this.sb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.qa=AppMobi.canvas.getContext("2d");try{this.qa.samplingMode=this.fa?"smooth":"sharp",this.qa.globalScale=1,this.qa.HTML5CompatibilityMode=!0,this.qa.imageSmoothingEnabled=
this.fa}catch(q){}0!==this.width&&0!==this.height&&(this.qa.width=this.width,this.qa.height=this.height)}this.qa||(l=this.rc?{antialias:!!this.fa,alpha:f}:{alpha:f},this.qa=this.canvas.getContext("2d",l),this.qa.webkitImageSmoothingEnabled=this.fa,this.qa.mozImageSmoothingEnabled=this.fa,this.qa.msImageSmoothingEnabled=this.fa,this.qa.imageSmoothingEnabled=this.fa);this.Ql=this.tb=null}this.Sj=function(){d.Ia(!1)};window==window.top||this.ya||this.Vn||this.Sf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.rc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(N("Reloading for continuous preview"),this.ej="__c2_continuouspreview",this.Rh=!0),this.Gt&&!this.Hc&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.ya||(l=function(d){ib(d)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",l):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",l):document.addEventListener("touchstart",l),document.addEventListener("mousedown",l));0===this.Cb&&this.jf&&1<this.devicePixelRatio&&this.setSize(this.gb,this.fb,!0);this.Kp();this.Rs();this.go();this.ka=
{}};a.prototype.setSize=function(d,l,f){var a=0,h=0,c=0,b=0,b=0,n=this.kt&&this.Tn&&!navigator.standalone&&!this.ya&&!this.Gc;n&&(l+=60);if(this.fh!==d||this.eh!==l||f){this.fh=d;this.eh=l;var p=this.Cb,g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Yg)&&!this.Gc;if(g||0!==this.Cb||f)g&&0<this.$e&&(p=this.$e),f=this.devicePixelRatio,4<=p?(c=this.gb/this.fb,d/l>c?(c*=l,5===p?(b=c*f/this.gb,1<b?b=Math.floor(b):1>b&&(b=1/Math.ceil(1/
b)),c=this.gb*b/f,b=this.fb*b/f,a=(d-c)/2,h=(l-b)/2,d=c,l=b):(a=(d-c)/2,d=c)):(b=d/c,5===p?(b=b*f/this.fb,1<b?b=Math.floor(b):1>b&&(b=1/Math.ceil(1/b)),c=this.gb*b/f,b=this.fb*b/f,a=(d-c)/2,h=(l-b)/2,d=c):h=(l-b)/2,l=b),g&&!this.ve&&(h=a=0)):this.ve&&this.Yg&&0===this.wn&&(a=Math.floor((d-this.gb)/2),h=Math.floor((l-this.fb)/2),d=this.gb,l=this.fb),2>p&&(this.Dg=f),this.jf&&this.Yn&&1<f&&(1024<=d&&(d=1023),1024<=l&&(l=1023)),this.oi=Math.round(d),this.ni=Math.round(l),this.width=Math.round(d*f),this.height=
Math.round(l*f),this.ta=!0,this.Wp?(this.R=this.width,this.P=this.height,this.Dc=!0):this.width<this.gb&&this.height<this.fb||1===p?(this.R=this.width,this.P=this.height,this.Dc=!0):(this.R=this.gb,this.P=this.fb,this.Dc=!1,2===p?(c=this.gb/this.fb,p=this.fh/this.eh,p<c?this.R=this.P*p:p>c&&(this.P=this.R/p)):3===p&&(c=this.gb/this.fb,p=this.fh/this.eh,p>c?this.R=this.P*p:p<c&&(this.P=this.R/p))),this.jn&&!this.ya&&(jQuery(this.jn).css({width:Math.round(d)+"px",height:Math.round(l)+"px","margin-left":Math.floor(a)+
"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(l)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*f),this.canvas.height=Math.round(l*f),this.Uc?(this.canvas.style.left=Math.floor(a)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(l)+"px"):this.jf&&!this.ya&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(l)+
"px"})),this.tb&&(this.tb.width=Math.round(d),this.tb.height=Math.round(l),jQuery(this.tb).css({width:Math.round(d)+"px",height:Math.round(l)+"px"})),this.F&&this.F.qg(Math.round(d*f),Math.round(l*f)),this.sb&&this.qa&&(this.qa.width=Math.round(d),this.qa.height=Math.round(l)),this.qa&&(this.qa.webkitImageSmoothingEnabled=this.fa,this.qa.mozImageSmoothingEnabled=this.fa,this.qa.msImageSmoothingEnabled=this.fa,this.qa.imageSmoothingEnabled=this.fa),this.Kp(),this.ya||!n&&!this.ml||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};a.prototype.Kp=function(){if(this.Yq&&0!==this.Ol){var d="portrait";2===this.Ol&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};a.prototype.xt=function(){this.F.ir();this.ll=!0;var d,l,f;d=0;for(l=this.B.length;d<l;d++)f=this.B[d],
f.Nl&&f.Nl()};a.prototype.yt=function(){this.ll=!1;var d,l,f;d=0;for(l=this.B.length;d<l;d++)f=this.B[d],f.Oo&&f.Oo()};a.prototype.bp=function(){if(!this.ya){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Yg)&&!this.Gc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.tb).css(d)}};var q=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;a.prototype.setSuspended=function(d){var l;if(d&&!this.Zg)for(N("[Construct 2] Suspending"),this.Zg=!0,-1!==this.Dj&&q&&q(this.Dj),-1!==this.Tj&&clearTimeout(this.Tj),d=0,l=this.Sh.length;d<l;d++)this.Sh[d](!0);else if(!d&&this.Zg){N("[Construct 2] Resuming");this.Zg=!1;this.$i=Wa();this.nf=Wa();d=this.oh=this.Fi=0;for(l=this.Sh.length;d<l;d++)this.Sh[d](!1);this.Ia(!1)}};a.prototype.Uq=function(d){this.Sh.push(d)};a.prototype.he=function(d){return this.nj[d]};a.prototype.gj=
function(d){d&&d.project||ea("Project model unavailable");d=d.project;this.name=d[0];this.vn=d[1];this.Cb=d[12];this.wn=d[12];this.gb=d[10];this.fb=d[11];this.Xo=this.gb/2;this.Yo=this.fb/2;this.ya&&!this.Uc&&(4<=d[12]||0===d[12])&&(N("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.wn=this.Cb=3);this.ym=d[18];this.ih=d[19];0===this.ih&&(this.$f=new Image,this.$f.src="loading-logo.png");this.sh=d[21];this.nj=hc();this.vd=new Y(this);
var l,f,a,h,c,b,n,p,g;l=0;for(f=d[2].length;l<f;l++)n=d[2][l],a=this.he(n[0]),kb(n,a.prototype),g=new a(this),g.Jj=n[1],g.we=n[2],g.Eo=n[9],g.V&&g.V(),this.plugins.push(g);this.nj=hc();l=0;for(f=d[3].length;l<f;l++){n=d[3][l];c=this.he(n[1]);g=null;a=0;for(h=this.plugins.length;a<h;a++)if(this.plugins[a]instanceof c){g=this.plugins[a];break}var k=new g.Aa(g);k.name=n[0];k.U=n[2];k.fl=n[3].slice(0);k.Bu=n[3].length;k.Zq=n[4];k.qs=n[5];k.W=n[11];k.U?(k.mj=[],k.Nd=this.Lg++,k.Ca=null):(k.mj=null,k.Nd=
-1,k.Ca=[]);k.Bi=null;k.Kf=null;k.rn=null;k.Vc=!1;k.Xb=null;n[6]?(k.Dp=n[6][0],k.Ep=n[6][1],k.ru=n[6][2]):(k.Dp=null,k.Ep=0,k.ru=0);k.Wb=n[7]?n[7]:null;k.index=l;k.d=[];k.si=[];k.Ke=[new lb(k)];k.Jd=0;k.jd=null;k.or=0;k.tg=!0;k.Zj=mb;k.Dn=nb;k.ys=ob;k.la=pb;k.Hh=qb;k.zj=rb;k.uf=sb;k.Ii=ub;k.Qk=vb;k.Sk=wb;k.Rc=xb;k.En=yb;k.ji=new cb(this.gb,this.fb);k.ai=!0;k.bi=!1;k.ka={};k.toString=zb;k.Ra=[];a=0;for(h=n[8].length;a<h;a++){p=n[8][a];var q=this.he(p[1]),e=null;c=0;for(b=this.Ra.length;c<b;c++)if(this.Ra[c]instanceof
q){e=this.Ra[c];break}e||(e=new q(this),e.Dl=[],e.eg=new ba,e.V&&e.V(),this.Ra.push(e),ic&&e instanceof ic&&(this.xp=e));-1===e.Dl.indexOf(k)&&e.Dl.push(k);c=new e.Aa(e,k);c.name=p[0];c.W=p[2];c.V();k.Ra.push(c)}k.global=n[9];k.il=n[10];k.M=[];a=0;for(h=n[12].length;a<h;a++)k.M.push({id:n[12][a][0],name:n[12][a][1],ub:-1,xb:!0,index:a});k.Zv=n[13];this.ym&&!k.U&&!k.il&&g.we||k.V();k.name&&(this.types[k.name]=k);this.B.push(k);g.Jj&&(a=new g.ja(k),a.uid=this.sh++,a.fp=this.Ho++,a.ef=0,a.Qg=Ab,a.toString=
Bb,a.H=n[14],a.V(),k.d.push(a),this.Ce[a.uid.toString()]=a)}l=0;for(f=d[4].length;l<f;l++)for(c=d[4][l],b=this.B[c[0]],a=1,h=c.length;a<h;a++)n=this.B[c[a]],n.Ca.push(b),b.mj.push(n);l=0;for(f=d[27].length;l<f;l++){c=d[27][l];b=[];a=0;for(h=c.length;a<h;a++)b.push(this.B[c[a]]);a=0;for(h=b.length;a<h;a++)b[a].Vc=!0,b[a].Xb=b}if(0<this.Lg)for(l=0,f=this.B.length;l<f;l++)if(n=this.B[l],!n.U&&n.Ca.length){n.Bi=Array(this.Lg);n.Kf=Array(this.Lg);n.rn=Array(this.Lg);k=[];a=e=q=p=0;for(h=n.Ca.length;a<
h;a++)for(g=n.Ca[a],n.Bi[g.Nd]=p,p+=g.Bu,n.Kf[g.Nd]=q,q+=g.Zq,n.rn[g.Nd]=e,e+=g.qs,c=0,b=g.M.length;c<b;c++)k.push(ta({},g.M[c]));n.M=k.concat(n.M);a=0;for(h=n.M.length;a<h;a++)n.M[a].index=a}l=0;for(f=d[5].length;l<f;l++)n=d[5][l],a=new Cb(this,n),this.rl[a.name]=a,this.Xc.push(a);l=0;for(f=d[6].length;l<f;l++)n=d[6][l],a=new Db(this,n),this.Gk[a.name]=a,this.Md.push(a);l=0;for(f=this.Md.length;l<f;l++)this.Md[l].Qa();l=0;for(f=this.Md.length;l<f;l++)this.Md[l].um();l=0;for(f=this.Yj.length;l<f;l++)this.Yj[l].Qa();
this.Yj.length=0;this.Xq=d[7];this.Kk=d[8];this.Ee=d[9];this.Dg=1;this.Kr=d[13];this.fa=d[14];this.jk=d[15];this.zu=d[17];this.Ol=d[20];this.Yq=0<this.Ol;this.Gt=d[22];this.Dc=this.Wp=d[23];this.Fr=d[24];this.Mt=d[25];this.Lj=Date.now();this.nj.length=0;this.Zs()};var t=!1;a.prototype.Du=function(d,l){d.cocoonLazyLoad=!0;d.onerror=function(l){t=d.dn=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",l)};this.Uc?d.src=l:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(l,
function(l){d.src=l},function(f){t=d.dn=!0;console&&console.error&&console.error("Error extracting image '"+l+"' from expansion file: ",f)}):d.src=l);this.zg.push(d)};a.prototype.ms=function(d){var l,f;l=0;for(f=this.zg.length;l<f;l++)if(this.zg[l].kr===d)return this.zg[l];return null};var h=0,p=!1;a.prototype.Rs=function(){this.Gf&&(h=this.Gf.ku(this.Xq))};a.prototype.an=function(){var d=h,l=0,f=0,a=!0,c,n,f=0;for(c=this.zg.length;f<c;f++){n=this.zg[f];var b=n.jr;if(!b||0>=b)b=5E4;d+=b;n.src&&(n.complete||
n.loaded)&&!n.dn?l+=b:a=!1}a&&this.Mt&&this.Gf&&(p||(this.Gf.pu(),p=!0),f=this.Gf.zs(),l+=f,f<h&&(a=!1));this.vf=0==d?0:l/d;return a};a.prototype.go=function(){if(this.qa||this.F){var d=this.qa||this.Ql;this.tb&&this.bp();this.vf=0;this.co=-1;if(this.an())this.Ss();else{var l=Date.now()-this.Lj;if(d){var f=this.width,a=this.height,h=this.devicePixelRatio;this.tb&&(f=this.oi,a=this.ni,h=1);if(3!==this.ih&&(this.rc||500<=l&&this.co!=this.vf)){d.clearRect(0,0,f,a);var l=f/2,a=a/2,f=0===this.ih&&this.$f.complete,
c=40*h,n=0,b=80*h,k;f&&(b=this.$f.width*h,k=this.$f.height*h,c=b/2,n=k/2,d.drawImage(this.$f,T(l-c),T(a-n),b,k));1>=this.ih?(l=T(l-c)+.5,a=T(a+(n+(f?12*h:0)))+.5,d.fillStyle=t?"red":"DodgerBlue",d.fillRect(l,a,Math.floor(b*this.vf),6*h),d.strokeStyle="black",d.strokeRect(l,a,b,6*h),d.strokeStyle="white",d.strokeRect(l-1*h,a-1*h,b+2*h,8*h)):2===this.ih&&(d.font=this.Uc?"12pt ArialMT":"12pt Arial",d.fillStyle=t?"#f00":"#999",d.Yv="middle",h=Math.round(100*this.vf)+"%",f=d.measureText?d.measureText(h):
null,d.fillText(h,l-(f?f.width:0)/2,a))}this.co=this.vf}setTimeout(function(d){return function(){d.go()}}(this),this.rc?10:100)}}};a.prototype.Ss=function(){this.tb&&(this.canvas.parentNode.removeChild(this.tb),this.tb=this.Ql=null);this.Lj=Date.now();this.nf=Wa();var d,f,a;if(this.ym)for(d=0,f=this.B.length;d<f;d++)a=this.B[d],a.U||a.il||!a.Va.we||a.V();else this.Xf=!1;d=0;for(f=this.Xc.length;d<f;d++)this.Xc[d].lr();2<=this.Cb&&(d=this.gb/this.fb,f=this.width/this.height,this.Dg=2!==this.Cb&&f>
d||2===this.Cb&&f<d?this.height/this.fb:this.width/this.gb);this.vn?this.rl[this.vn].km():this.Xc[0].km();this.ym||(this.ij=1,this.trigger(Y.prototype.u.Km,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(f=this.B.length;d<f;d++)a=this.B[d],a.wt&&a.wt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ia(!1);this.sb&&AppMobi.webview.execute("onGameReady();")};var y=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;a.prototype.Ia=function(d){if(this.ma){var f=Wa();if(this.Ts&&this.Wl&&29>f-this.ol)this.Wl=!1,this.ol=f,y?this.Dj=y(this.Sj,this.canvas):this.Tj=setTimeout(this.Sj,this.Hc?1:16);else{this.Wl=!0;this.ol=f;var a=this.Cb,h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Gc;(h||this.Yg)&&0<this.$e&&(a=this.$e);
0<a&&(!this.Wi||window.self!==window.top)&&(a=window.innerHeight,this.fh===window.innerWidth&&this.eh===a||this.setSize(e(),m()));this.ya||(h?(this.Di||(this.Ok=jQuery(this.canvas).css("margin")||"0",this.Di=!0),this.Wg||this.ve||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.Di?(this.Wg||this.ve||jQuery(this.canvas).css("margin",this.Ok),this.Ok=
"",this.Di=!1,0===this.Cb&&this.setSize(Math.round(this.No/this.devicePixelRatio),Math.round(this.Mo/this.devicePixelRatio),!0)):(this.No=this.width,this.Mo=this.height));this.Xf&&(h=this.an(),this.ij=this.vf,h&&(this.Xf=!1,this.vf=1,this.trigger(Y.prototype.u.Km,null)));this.ot();!this.ta&&!this.rc||this.ll||this.Rh||d||(this.ta=!1,this.F?this.Tc():this.Kd(),this.Kj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Kj[0],this.Kj[1]),this.trigger(Y.prototype.u.nq,null)),this.Kj=null));
this.Sv||(this.wd++,this.Ai++,this.Fi++);this.oh+=Wa()-f;this.Zg||d||(y?this.Dj=y(this.Sj,this.canvas):this.Tj=setTimeout(this.Sj,this.Hc?1:16))}}};a.prototype.ot=function(){var d,f,a,h,c,n,b,k,p;d=Wa();1E3<=d-this.nf&&(this.nf+=1E3,1E3<=d-this.nf&&(this.nf=d),this.Nk=this.Fi,this.Fi=0,this.yk=this.oh,this.oh=0);this.Ao&&(0!==this.$i&&(f=d-this.$i,0!==f||this.dt?(this.Ld=f/1E3,.5<this.Ld?this.Ld=0:.1<this.Ld&&(this.Ld=.1)):(10<=this.aw&&(this.Ao=!1),this.Ld=1/60)),this.$i=d);this.Xe=this.Ld*this.Me;
this.Jc.add(this.Xe);this.Ad.add(this.Ld);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Yg)&&!this.Gc;2<=this.Cb||d&&0<this.$e?(f=this.gb/this.fb,a=this.width/this.height,h=this.Cb,d&&0<this.$e&&(h=this.$e),this.Dg=2!==h&&a>f||2===h&&a<f?this.height/this.fb:this.width/this.gb,this.ma&&(this.ma.kp(this.ma.scrollX),this.ma.lp(this.ma.scrollY))):this.Dg=this.jf?this.devicePixelRatio:1;this.wb();this.Sd++;this.vd.au();this.Sd--;this.wb();
this.Sd++;a=this.Lo.fd();d=0;for(f=a.length;d<f;d++)a[d].Uv();d=0;for(f=this.B.length;d<f;d++)if(b=this.B[d],!b.U&&(b.Ra.length||b.Ca.length))for(a=0,h=b.d.length;a<h;a++)for(k=b.d[a],c=0,n=k.L.length;c<n;c++)k.L[c].Ia();d=0;for(f=this.B.length;d<f;d++)if(b=this.B[d],!b.U&&(b.Ra.length||b.Ca.length))for(a=0,h=b.d.length;a<h;a++)for(k=b.d[a],c=0,n=k.L.length;c<n;c++)p=k.L[c],p.Lt&&p.Lt();a=this.Fl.fd();d=0;for(f=a.length;d<f;d++)a[d].Ia();this.Sd--;this.Us();for(d=0;this.Se&&10>d++;)this.on(this.Se);
d=0;for(f=this.Md.length;d<f;d++)this.Md[d].al=!1;this.ma.Ye&&this.ma.Ye.Xa();this.Ej.length=0;this.Sd++;d=0;for(f=this.B.length;d<f;d++)if(b=this.B[d],!b.U&&(b.Ra.length||b.Ca.length))for(a=0,h=b.d.length;a<h;a++)for(k=b.d[a],c=0,n=k.L.length;c<n;c++)p=k.L[c],p.Rj&&p.Rj();a=this.Gl.fd();d=0;for(f=a.length;d<f;d++)a[d].Rj();this.Sd--};a.prototype.on=function(d){var f=this.ma;this.ma.qu();var a,h,c,b,n,k,p;if(this.F)for(a=0,h=this.B.length;a<h;a++)n=this.B[a],n.U||!n.Op||n.global&&0!==n.d.length||
-1!==d.Ug.indexOf(n)||n.Op();f==d&&(this.vd.lc.length=0);d.km();a=0;for(h=this.B.length;a<h;a++)if(n=this.B[a],n.global||n.Va.Jj)for(d=0,f=n.d.length;d<f;d++)if(k=n.d[d],k.Ml&&k.Ml(),k.L)for(c=0,b=k.L.length;c<b;c++)p=k.L[c],p.Ml&&p.Ml();this.ta=!0;this.wb()};a.prototype.om=function(d){this.Fl.add(d)};a.prototype.su=function(d){this.Gl.add(d)};a.prototype.Ji=function(d){return d&&-1!==d.rh?this.Ld*d.rh:this.Xe};a.prototype.Kd=function(){this.ma.Kd(this.qa);this.sb&&this.qa.present()};a.prototype.Tc=
function(){this.ma.Tc(this.F);this.F.Ot()};a.prototype.ik=function(d){d&&this.vi.push(d)};a.prototype.Wt=function(d){Da(this.vi,d)};a.prototype.Og=function(d){d=d.toString();return this.Ce.hasOwnProperty(d)?this.Ce[d]:null};var k=[];a.prototype.ge=function(d){var f,a;f=d.type.name;var h=null;if(this.Ve.hasOwnProperty(f)){if(h=this.Ve[f],h.contains(d))return}else h=k.length?k.pop():new ba,this.Ve[f]=h;h.add(d);this.te=!0;if(d.Vc)for(f=0,a=d.siblings.length;f<a;f++)this.ge(d.siblings[f]);this.hl&&h.xg.push(d);
this.Sd++;this.trigger(Object.getPrototypeOf(d.type.Va).u.Im,d);this.Sd--};a.prototype.wb=function(){if(this.te){var d,f,a,h,c,n;this.hl=!0;a=0;for(c=this.Sc.length;a<c;++a)for(d=this.Sc[a],f=d.type,f.d.push(d),h=0,n=f.Ca.length;h<n;++h)f.Ca[h].d.push(d),f.Ca[h].tg=!0;this.Sc.length=0;this.hq();Va(this.Ve);this.te=this.hl=!1}};a.prototype.hq=function(){for(var d in this.Ve)this.Ve.hasOwnProperty(d)&&this.bq(this.Ve[d])};a.prototype.bq=function(d){var f=d.fd(),a=f[0].type,h,c,n,b,p,g;Xa(a.d,d);a.tg=
!0;0===a.d.length&&(a.bi=!1);h=0;for(c=a.Ca.length;h<c;++h)g=a.Ca[h],Xa(g.d,d),g.tg=!0;h=0;for(c=this.vd.lc.length;h<c;++h)if(p=this.vd.lc[h],p.jc.hasOwnProperty(a.index)&&Xa(p.jc[a.index].hf,d),!a.U)for(n=0,b=a.Ca.length;n<b;++n)g=a.Ca[n],p.jc.hasOwnProperty(g.index)&&Xa(p.jc[g.index].hf,d);if(p=f[0].n){if(p.ed)for(n=p.d,h=0,c=n.length;h<c;++h)b=n[h],d.contains(b)&&(b.xa(),p.hc.update(b,b.Rb,null),b.Rb.set(0,0,-1,-1));Xa(p.d,d);p.Mh(0)}for(h=0;h<f.length;++h)this.aq(f[h],a);d.clear();k.push(d);this.ta=
!0};a.prototype.aq=function(d,f){var a,h,c;a=0;for(h=this.vi.length;a<h;++a)this.vi[a](d);d.oe&&f.ji.update(d,d.oe,null);(a=d.n)&&a.mg(d,!0);if(d.L)for(a=0,h=d.L.length;a<h;++a)c=d.L[a],c.ig&&c.ig(),c.behavior.eg.remove(d);this.Lo.remove(d);this.Fl.remove(d);this.Gl.remove(d);d.ig&&d.ig();this.Ce.hasOwnProperty(d.uid.toString())&&delete this.Ce[d.uid.toString()];this.oj--;100>f.si.length&&f.si.push(d)};var w=[];a.prototype.Ue=function(d,f,a,h,c,n){var b,k,p,g;if(!d)return null;var e=this.B[d[1]],
q=e.Va.we;if(this.Xf&&q&&!e.il||q&&!this.F&&11===d[0][11])return null;var r=f;q||(f=null);var u;e.si.length?(u=e.si.pop(),u.uc=!0,e.Va.ja.call(u,e)):(u=new e.Va.ja(e),u.uc=!1);u.uid=a&&!n?d[2]:this.sh++;this.Ce[u.uid.toString()]=u;u.fp=this.Ho++;u.ef=e.d.length;b=0;for(k=this.Sc.length;b<k;++b)this.Sc[b].type===e&&u.ef++;u.Qg=Ab;u.toString=Bb;p=d[3];if(u.uc)Va(u.ka);else{u.ka={};if("undefined"!==typeof cr_is_preview)for(u.Pn=[],u.Pn.length=p.length,b=0,k=p.length;b<k;b++)u.Pn[b]=p[b][1];u.eb=[];u.eb.length=
p.length}b=0;for(k=p.length;b<k;b++)u.eb[b]=p[b][0];if(q){var m=d[0];u.x=ha(h)?m[0]:h;u.y=ha(c)?m[1]:c;u.z=m[2];u.width=m[3];u.height=m[4];u.depth=m[5];u.k=m[6];u.opacity=m[7];u.Zb=m[8];u.$b=m[9];u.Hb=m[10];b=m[11];!this.F&&e.M.length&&(u.Hb=b);u.Gg=eb(u.Hb);this.A&&fb(u,u.Hb,this.A);if(u.uc){b=0;for(k=m[12].length;b<k;b++)for(p=0,g=m[12][b].length;p<g;p++)u.Ha[b][p]=m[12][b][p];u.Fa.set(0,0,0,0);u.oe.set(0,0,-1,-1);u.Rb.set(0,0,-1,-1);u.Kb.Nh(u.Fa);u.ok.length=0}else{u.Ha=m[12].slice(0);b=0;for(k=
u.Ha.length;b<k;b++)u.Ha[b]=m[12][b].slice(0);u.aa=[];u.ie=[];u.ie.length=e.M.length;u.Fa=new U(0,0,0,0);u.oe=new U(0,0,-1,-1);u.Rb=new U(0,0,-1,-1);u.Kb=new sa;u.ok=[];u.O=Eb;u.Kv=Fb;u.yb=Gb;u.xa=Hb;u.yu=Ib;u.Up=Jb;u.Fc=Kb}u.Vh=!1;u.vu=0;u.uu=0;u.tu=null;14===m.length&&(u.Vh=!0,u.vu=m[13][0],u.uu=m[13][1],u.tu=m[13][2]);b=0;for(k=e.M.length;b<k;b++)u.ie[b]=!0;u.be=Lb;u.be();u.Vp=!!u.aa.length;u.nk=!0;u.rk=!0;e.ai=!0;u.visible=!0;u.rh=-1;u.n=f;u.gd=f.d.length;"undefined"===typeof u.ba&&(u.ba=null);
this.ta=u.Ed=!0}var t;b=w.length=0;for(k=e.Ca.length;b<k;b++)w.push.apply(w,e.Ca[b].Ra);w.push.apply(w,e.Ra);if(u.uc)for(b=0,k=w.length;b<k;b++){var y=w[b];t=u.L[b];t.uc=!0;y.behavior.ja.call(t,y,u);m=d[4][b];p=0;for(g=m.length;p<g;p++)t.H[p]=m[p];t.V();y.behavior.eg.add(u)}else for(u.L=[],b=0,k=w.length;b<k;b++)y=w[b],t=new y.behavior.ja(y,u),t.uc=!1,t.H=d[4][b].slice(0),t.V(),u.L.push(t),y.behavior.eg.add(u);m=d[5];if(u.uc)for(b=0,k=m.length;b<k;b++)u.H[b]=m[b];else u.H=m.slice(0);this.Sc.push(u);
this.te=!0;f&&(f.Cg(u,!0),1!==f.Pb||1!==f.Qb)&&(e.bi=!0);this.oj++;if(e.Vc){if(u.Vc=!0,u.uc?u.siblings.length=0:u.siblings=[],!a&&!n){b=0;for(k=e.Xb.length;b<k;b++)if(e.Xb[b]!==e){if(!e.Xb[b].jd)return null;u.siblings.push(this.Ue(e.Xb[b].jd,r,!1,q?u.x:h,q?u.y:c,!0))}b=0;for(k=u.siblings.length;b<k;b++)for(u.siblings[b].siblings.push(u),p=0;p<k;p++)b!==p&&u.siblings[b].siblings.push(u.siblings[p])}}else u.Vc=!1,u.siblings=null;u.V();b=0;for(k=u.L.length;b<k;b++)u.L[b].Kt&&u.L[b].Kt();return u};a.prototype.Ng=
function(d){var f,a;f=0;for(a=this.ma.S.length;f<a;f++){var h=this.ma.S[f];if(hb(h.name,d))return h}return null};a.prototype.Pd=function(d){d=T(d);0>d&&(d=0);d>=this.ma.S.length&&(d=this.ma.S.length-1);return this.ma.S[d]};a.prototype.wk=function(d){var f,a;f=0;for(a=d.length;f<a;f++)d[f].la().za=!0};a.prototype.Hh=function(d){var f,a;f=0;for(a=d.length;f<a;f++)d[f].Hh()};a.prototype.zj=function(d){var f,a;f=0;for(a=d.length;f<a;f++)d[f].zj()};a.prototype.uf=function(d){var f,a;f=0;for(a=d.length;f<
a;f++)d[f].uf()};a.prototype.Rp=function(d){if(d.ai){var f,a,h=d.d;f=0;for(a=h.length;f<a;++f)h[f].Up();h=this.Sc;f=0;for(a=h.length;f<a;++f)h[f].type===d&&h[f].Up();d.ai=!1}};a.prototype.zn=function(d,f,a,h){var b,c,n=d?1!==d.Pb||1!==d.Qb:!1;if(f.U)for(d=0,b=f.mj.length;d<b;++d)c=f.mj[d],n||c.bi?Ba(h,c.d):(this.Rp(c),c.ji.Cj(a,h));else n||f.bi?Ba(h,f.d):(this.Rp(f),f.ji.Cj(a,h))};a.prototype.Es=function(d,f,a,h){var b,c;b=0;for(c=f.length;b<c;++b)this.zn(d,f[b],a,h)};a.prototype.Ds=function(d,f,
a){var h=this.xp;h&&this.Es(d,h.Dl,f,a)};a.prototype.Th=function(d,f,a){var h=d.la(),b,c,n,k,p,g;if(h.za)for(h.za=!1,b=h.d.length=0,k=d.d.length;b<k;b++)n=d.d[b],n.xa(),p=n.n.La(f,a,!0),g=n.n.La(f,a,!1),n.yb(p,g)&&h.d.push(n);else{b=c=0;for(k=h.d.length;b<k;b++)n=h.d[b],n.xa(),p=n.n.La(f,a,!0),g=n.n.La(f,a,!1),n.yb(p,g)&&(h.d[c]=h.d[b],c++);h.d.length=c}d.Rc();return h.$k()};a.prototype.yf=function(d,f){if(!(d&&f&&d!==f&&d.Ed&&f.Ed))return!1;d.xa();f.xa();var a=d.n,h=f.n,b,c,n,k,p,g,u,e;if(a===h||
a.Pb===h.Pb&&h.Qb===h.Qb&&a.scale===h.scale&&a.k===h.k&&a.Bb===h.Bb){if(!d.Fa.$s(f.Fa)||!d.Kb.Qn(f.Kb)||d.Vh&&f.Vh)return!1;if(d.Vh)return this.Ap(d,f);if(f.Vh)return this.Ap(f,d);u=d.ba&&!d.ba.Tf();b=f.ba&&!f.ba.Tf();if(!u&&!b)return!0;u?(d.ba.Hf(d.width,d.height,d.k),u=d.ba):(this.cd.rg(d.Kb,d.x,d.y,d.width,d.height),u=this.cd);b?(f.ba.Hf(f.width,f.height,f.k),e=f.ba):(this.cd.rg(f.Kb,f.x,f.y,f.width,f.height),e=this.cd);return u.Vg(e,f.x-d.x,f.y-d.y)}u=d.ba&&!d.ba.Tf();b=f.ba&&!f.ba.Tf();u?(d.ba.Hf(d.width,
d.height,d.k),this.cd.pp(d.ba)):this.cd.rg(d.Kb,d.x,d.y,d.width,d.height);u=this.cd;b?(f.ba.Hf(f.width,f.height,f.k),this.mm.pp(f.ba)):this.mm.rg(f.Kb,f.x,f.y,f.width,f.height);e=this.mm;b=0;for(c=u.$c;b<c;b++)n=2*b,k=n+1,p=u.hb[n],g=u.hb[k],u.hb[n]=a.Da(p+d.x,g+d.y,!0),u.hb[k]=a.Da(p+d.x,g+d.y,!1);u.xa();b=0;for(c=e.$c;b<c;b++)n=2*b,k=n+1,p=e.hb[n],g=e.hb[k],e.hb[n]=h.Da(p+f.x,g+f.y,!0),e.hb[k]=h.Da(p+f.x,g+f.y,!1);e.xa();return u.Vg(e,0,0)};var B=new sa;new U(0,0,0,0);var f=[];a.prototype.Ap=function(d,
a){var h,b,c,n,k=a.Fa,p=d.x,g=d.y;d.Ov(k,f);var u=a.ba&&!a.ba.Tf();h=0;for(b=f.length;h<b;++h)if(c=f[h],n=c.Vv,k.bt(n,p,g)&&(B.Nh(n),B.offset(p,g),B.Qn(a.Kb)))if(u)if(a.ba.Hf(a.width,a.height,a.k),c.Tl){if(c.Tl.Vg(a.ba,a.x-(p+n.left),a.y-(g+n.top)))return f.length=0,!0}else{if(this.cd.rg(B,0,0,n.right-n.left,n.bottom-n.top),this.cd.Vg(a.ba,a.x,a.y))return f.length=0,!0}else if(c.Tl){if(this.cd.rg(a.Kb,0,0,a.width,a.height),c.Tl.Vg(this.cd,-(p+n.left),-(g+n.top)))return f.length=0,!0}else return f.length=
0,!0;f.length=0;return!1};a.prototype.Lp=function(d,f){if(!f)return!1;var a,h,b,c,n;a=0;for(h=d.Ra.length;a<h;a++)if(d.Ra[a].behavior instanceof f)return!0;if(!d.U)for(a=0,h=d.Ca.length;a<h;a++)for(n=d.Ca[a],b=0,c=n.Ra.length;b<c;b++)if(n.Ra[b].behavior instanceof f)return!0;return!1};a.prototype.Mp=function(d){return this.Lp(d,$b.gv)};a.prototype.tm=function(d){return this.Lp(d,jc)};var n=[];a.prototype.zf=function(d){var f,a,h;d.xa();this.Ds(d.n,d.Fa,n);f=0;for(a=n.length;f<a;++f)if(h=n[f],h.ka.solidEnabled&&
this.yf(d,h))return n.length=0,h;n.length=0;return null};a.prototype.St=function(d,f,a,h){h=h||50;var b=d.x,c=d.y,n,k=null,p=null;for(n=0;n<h;n++)if(d.x=b+f*n,d.y=c+a*n,d.O(),!this.yf(d,k)&&((k=this.zf(d))&&(p=k),!k&&!k))return p&&this.Qt(d,f,a,p),!0;d.x=b;d.y=c;d.O();return!1};a.prototype.Qt=function(d,f,a,h){var b=2,c,n=!1;c=!1;for(var k=d.x,p=d.y;16>=b;)c=1/b,b*=2,d.x+=f*c*(n?1:-1),d.y+=a*c*(n?1:-1),d.O(),this.yf(d,h)?c=n=!0:(c=n=!1,k=d.x,p=d.y);c&&(d.x=k,d.y=p,d.O())};a.prototype.Tt=function(d){var f=
0,a=d.x,h=d.y,b=0,c=0,n=0,k=this.zf(d);if(k){for(;100>=f;){switch(b){case 0:c=0;n=-1;f++;break;case 1:c=1;n=-1;break;case 2:c=1;n=0;break;case 3:n=c=1;break;case 4:c=0;n=1;break;case 5:c=-1;n=1;break;case 6:c=-1;n=0;break;case 7:n=c=-1}b=(b+1)%8;d.x=T(a+c*f);d.y=T(h+n*f);d.O();if(!this.yf(d,k)&&(k=this.zf(d),!k))return}d.x=a;d.y=h;d.O()}};a.prototype.Vt=function(d,f){d.Ed&&f.Ed&&this.Ej.push([d,f])};a.prototype.gr=function(d,f){var a,h,b;a=0;for(h=this.Ej.length;a<h;a++)if(b=this.Ej[a],b[0]==d&&b[1]==
f||b[0]==f&&b[1]==d)return!0;return!1};a.prototype.dr=function(d,f,a){var h=d.x,b=d.y,c=na(10,Sa(f,a,h,b)),n=Ja(f,a,h,b),k=this.zf(d);if(!k)return W(n+pa);var p=k,g,u,e,q,r=V(5);for(g=1;36>g;g++)if(u=n-g*r,d.x=f+Math.cos(u)*c,d.y=a+Math.sin(u)*c,d.O(),!this.yf(d,p)&&(p=this.zf(d),!p)){e=u;break}36===g&&(e=W(n+pa));p=k;for(g=1;36>g;g++)if(u=n+g*r,d.x=f+Math.cos(u)*c,d.y=a+Math.sin(u)*c,d.O(),!this.yf(d,p)&&(p=this.zf(d),!p)){q=u;break}36===g&&(q=W(n+pa));d.x=h;d.y=b;d.O();if(q===e)return q;d=Ka(q,
e)/2;d=Qa(q,e)?W(e+d+pa):W(q+d);e=Math.cos(n);n=Math.sin(n);q=Math.cos(d);d=Math.sin(d);f=e*q+n*d;return Ja(0,0,e-2*f*q,n-2*f*d)};var u=-1;a.prototype.trigger=function(d,f,a){if(!this.ma)return!1;var h=this.ma.Ye;if(!h)return!1;var b=!1,c,n,k;u++;var p=h.Ck;n=0;for(k=p.length;n<k;++n)c=this.Ip(d,f,p[n],a),b=b||c;c=this.Ip(d,f,h,a);u--;return b||c};a.prototype.Ip=function(d,f,a,h){var b=!1,c,n,k,p;if(f)for(k=this.qm(d,f,f.type.name,a,h),b=b||k,p=f.type.Ca,c=0,n=p.length;c<n;++c)k=this.qm(d,f,p[c].name,
a,h),b=b||k;else k=this.qm(d,f,"system",a,h),b=b||k;return b};a.prototype.qm=function(d,f,a,h,b){var c,n=!1,k=!1,k="undefined"!==typeof b,p=(k?h.tn:h.Jp)[a];if(!p)return n;var g=null;h=0;for(c=p.length;h<c;++h)if(p[h].method==d){g=p[h].Kg;break}if(!g)return n;d=k?g[b]:g;if(!d)return null;h=0;for(c=d.length;h<c;h++)b=d[h][0],k=d[h][1],k=this.ks(f,a,b,k),n=n||k;return n};a.prototype.ks=function(d,f,a,h){var b,c,n=!1;this.rm++;var k=this.Db().Bc;k&&this.Hh(k.Ie);var p=1<this.rm;this.Hh(a.Ie);p&&this.Rt();
var g=this.Aj(a);g.Bc=a;d&&(b=this.types[f].la(),b.za=!1,b.d.length=1,b.d[0]=d,this.types[f].Rc());d=!0;if(a.parent){f=g.zp;for(b=a.parent;b;)f.push(b),b=b.parent;f.reverse();b=0;for(c=f.length;b<c;b++)if(!f[b].cu()){d=!1;break}}d&&(this.Ai++,a.Yc?a.bu(h):a.Xa(),n=n||g.mf);this.vj();p&&this.Jt();this.uf(a.Ie);k&&this.uf(k.Ie);this.te&&0===this.Sd&&0===u&&!this.jl&&this.wb();this.rm--;return n};a.prototype.An=function(){var d=this.Db();return d.Bc.kb[d.bb]};a.prototype.Rt=function(){this.kj++;this.kj>=
this.xl.length&&this.xl.push([])};a.prototype.Jt=function(){this.kj--};a.prototype.Bn=function(){return this.xl[this.kj]};a.prototype.Aj=function(d){this.yi++;this.yi>=this.Fk.length&&this.Fk.push(new Mb);var f=this.Db();f.reset(d);return f};a.prototype.vj=function(){this.yi--};a.prototype.Db=function(){return this.Fk[this.yi]};a.prototype.Cn=function(d,f){for(var a,h,b,c,n,k;f;){a=0;for(h=f.Nc.length;a<h;a++)if(k=f.Nc[a],k instanceof Nb&&hb(d,k.name))return k;f=f.parent}a=0;for(h=this.Md.length;a<
h;a++)for(n=this.Md[a],b=0,c=n.re.length;b<c;b++)if(k=n.re[b],k instanceof Nb&&hb(d,k.name))return k;return null};a.prototype.Fn=function(d){var f,a;f=0;for(a=this.Xc.length;f<a;f++)if(this.Xc[f].W===d)return this.Xc[f];return null};a.prototype.Li=function(d){var f,a;f=0;for(a=this.B.length;f<a;f++)if(this.B[f].W===d)return this.B[f];return null};a.prototype.us=function(d){var f,a;f=0;for(a=this.je.length;f<a;f++)if(this.je[f].W===d)return this.je[f];return null};a.prototype.Us=function(){var d=this,
f=this.fm,a=this.Td,h=this.ej,n=!1;this.vp&&(n=!0,f="__c2_continuouspreview",this.vp=!1);if(f.length){this.wb();a=this.gu();if(window.indexedDB&&!this.rc)v(f,a,function(){N("Saved state to IndexedDB storage ("+a.length+" bytes)");d.Td=a;d.trigger(Y.prototype.u.gk,null);d.Td="";n&&b()},function(h){try{localStorage.setItem("__c2save_"+f,a),N("Saved state to WebStorage ("+a.length+" bytes)"),d.Td=a,d.trigger(Y.prototype.u.gk,null),d.Td="",n&&b()}catch(c){N("Failed to save game state: "+h+"; "+c)}});
else try{localStorage.setItem("__c2save_"+f,a),N("Saved state to WebStorage ("+a.length+" bytes)"),d.Td=a,this.trigger(Y.prototype.u.gk,null),d.Td="",n&&b()}catch(k){N("Error saving to WebStorage: "+k)}this.Fb=this.ej=this.fm=""}h.length&&(window.indexedDB&&!this.rc?c(h,function(f){f?(d.Fb=f,N("Loaded state from IndexedDB storage ("+d.Fb.length+" bytes)")):(d.Fb=localStorage.getItem("__c2save_"+h)||"",N("Loaded state from WebStorage ("+d.Fb.length+" bytes)"));d.Rh=!1;d.Fb.length||d.trigger(Y.prototype.u.ek,
null)},function(){d.Fb=localStorage.getItem("__c2save_"+h)||"";N("Loaded state from WebStorage ("+d.Fb.length+" bytes)");d.Rh=!1;d.Fb.length||d.trigger(Y.prototype.u.ek,null)}):(this.Fb=localStorage.getItem("__c2save_"+h)||"",N("Loaded state from WebStorage ("+this.Fb.length+" bytes)"),this.Rh=!1,d.Fb.length||d.trigger(Y.prototype.u.ek,null)),this.fm=this.ej="");this.Fb.length&&(this.wb(),this.mt(this.Fb),this.Td=this.Fb,this.trigger(Y.prototype.u.wq,null),this.Fb=this.Td="")};a.prototype.gu=function(){var d,
f,a,h,b,c,n,k={c2save:!0,version:1,rt:{time:this.Jc.na,walltime:this.Ad.na,timescale:this.Me,tickcount:this.wd,execcount:this.Ai,next_uid:this.sh,running_layout:this.ma.W,start_time_offset:Date.now()-this.Lj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(f=this.B.length;d<f;d++)if(b=this.B[d],!b.U&&!this.Mp(b)){c={instances:[]};Ua(b.ka)&&(c.ex=g(b.ka));a=0;for(h=b.d.length;a<h;a++)c.instances.push(this.em(b.d[a]));k.types[b.W.toString()]=c}d=0;for(f=this.Xc.length;d<f;d++)a=
this.Xc[d],k.layouts[a.W.toString()]=a.Gb();h=k.events.groups;d=0;for(f=this.je.length;d<f;d++)a=this.je[d],h[a.W.toString()]=this.Ni[a.Rg].Nf;f=k.events.cnds;for(n in this.If)this.If.hasOwnProperty(n)&&(d=this.If[n],Ua(d.ka)&&(f[n]={ex:g(d.ka)}));f=k.events.acts;for(n in this.Ff)this.Ff.hasOwnProperty(n)&&(d=this.Ff[n],Ua(d.ka)&&(f[n]={ex:d.ka}));f=k.events.vars;for(n in this.yg)this.yg.hasOwnProperty(n)&&(d=this.yg[n],d.Ti||d.parent&&!d.ah||(f[n]=d.data));k.system=this.vd.Gb();return JSON.stringify(k)};
a.prototype.gp=function(){var d,f,a,h,b,c;this.Ce={};d=0;for(f=this.B.length;d<f;d++)if(a=this.B[d],!a.U)for(h=0,b=a.d.length;h<b;h++)c=a.d[h],this.Ce[c.uid.toString()]=c};a.prototype.mt=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var f=d.rt;this.Jc.reset();this.Jc.na=f.time;this.Ad.reset();this.Ad.na=f.walltime||0;this.Me=f.timescale;this.wd=f.tickcount;this.Lj=Date.now()-f.start_time_offset;var a=f.running_layout;if(a!==this.ma.W)if(a=this.Fn(a))this.on(a);else return;var h,b,c,n,k,
p,g;p=d.types;for(b in p)if(p.hasOwnProperty(b)&&(n=this.Li(parseInt(b,10)))&&!n.U&&!this.Mp(n)){p[b].ex?n.ka=p[b].ex:Va(n.ka);k=n.d;c=p[b].instances;a=0;for(h=oa(k.length,c.length);a<h;a++)this.fj(k[a],c[a]);a=c.length;for(h=k.length;a<h;a++)this.ge(k[a]);a=k.length;for(h=c.length;a<h;a++){k=null;if(n.Va.we&&(k=this.ma.Ki(c[a].w.l),!k))continue;k=this.Ue(n.jd,k,!1,0,0,!0);this.fj(k,c[a])}n.tg=!0}this.wb();this.gp();h=d.layouts;for(b in h)h.hasOwnProperty(b)&&(a=this.Fn(parseInt(b,10)))&&a.ec(h[b]);
h=d.events.groups;for(b in h)h.hasOwnProperty(b)&&(a=this.us(parseInt(b,10)))&&this.Ni[a.Rg]&&(this.Ni[a.Rg].Nf=h[b]);a=d.events.cnds;for(b in a)a.hasOwnProperty(b)&&this.If.hasOwnProperty(b)&&(this.If[b].ka=a[b].ex);a=d.events.acts;for(b in a)a.hasOwnProperty(b)&&this.Ff.hasOwnProperty(b)&&(this.Ff[b].ka=a[b].ex);a=d.events.vars;for(b in a)a.hasOwnProperty(b)&&this.yg.hasOwnProperty(b)&&(this.yg[b].data=a[b]);this.sh=f.next_uid;this.vd.ec(d.system);a=0;for(h=this.B.length;a<h;a++)if(n=this.B[a],
!n.U)for(b=0,d=n.d.length;b<d;b++){k=n.d[b];if(n.Vc)for(p=k.Qg(),f=k.siblings.length=0,c=n.Xb.length;f<c;f++)g=n.Xb[f],n!==g&&k.siblings.push(g.d[p]);k.Bd&&k.Bd();if(k.L)for(f=0,c=k.L.length;f<c;f++)p=k.L[f],p.Bd&&p.Bd()}this.ta=!0}};a.prototype.em=function(d,f){var a,h,b,n,c;n=d.type;b=n.Va;var k={};f?k.c2=!0:k.uid=d.uid;Ua(d.ka)&&(k.ex=g(d.ka));if(d.eb&&d.eb.length)for(k.ivs={},a=0,h=d.eb.length;a<h;a++)k.ivs[d.type.fl[a].toString()]=d.eb[a];if(b.we){b={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.W,
zi:d.Fc()};0!==d.k&&(b.a=d.k);1!==d.opacity&&(b.o=d.opacity);.5!==d.Zb&&(b.hX=d.Zb);.5!==d.$b&&(b.hY=d.$b);0!==d.Hb&&(b.bm=d.Hb);d.visible||(b.v=d.visible);d.Ed||(b.ce=d.Ed);-1!==d.rh&&(b.mts=d.rh);if(n.M.length)for(b.fx=[],a=0,h=n.M.length;a<h;a++)c=n.M[a],b.fx.push({name:c.name,active:d.ie[c.index],params:d.Ha[c.index]});k.w=b}if(d.L&&d.L.length)for(k.behs={},a=0,h=d.L.length;a<h;a++)n=d.L[a],n.Gb&&(k.behs[n.type.W.toString()]=n.Gb());d.Gb&&(k.data=d.Gb());return k};a.prototype.ws=function(d,f){var a,
h;a=0;for(h=d.fl.length;a<h;a++)if(d.fl[a]===f)return a;return-1};a.prototype.ts=function(d,f){var a,h;a=0;for(h=d.L.length;a<h;a++)if(d.L[a].type.W===f)return a;return-1};a.prototype.fj=function(d,f,a){var h,b,n,c,k;k=d.type;n=k.Va;if(a){if(!f.c2)return}else d.uid=f.uid;f.ex?d.ka=f.ex:Va(d.ka);if(b=f.ivs)for(h in b)b.hasOwnProperty(h)&&(a=this.ws(k,parseInt(h,10)),0>a||a>=d.eb.length||(d.eb[a]=b[h]));if(n.we){n=f.w;d.n.W!==n.l&&(a=d.n,d.n=this.ma.Ki(n.l),d.n?(a.mg(d,!0),d.n.Cg(d,!0),d.O(),d.n.Mh(0)):
(d.n=a,this.ge(d)));d.x=n.x;d.y=n.y;d.width=n.w;d.height=n.h;d.gd=n.zi;d.k=n.hasOwnProperty("a")?n.a:0;d.opacity=n.hasOwnProperty("o")?n.o:1;d.Zb=n.hasOwnProperty("hX")?n.hX:.5;d.$b=n.hasOwnProperty("hY")?n.hY:.5;d.visible=n.hasOwnProperty("v")?n.v:!0;d.Ed=n.hasOwnProperty("ce")?n.ce:!0;d.rh=n.hasOwnProperty("mts")?n.mts:-1;d.Hb=n.hasOwnProperty("bm")?n.bm:0;d.Gg=eb(d.Hb);this.A&&fb(d,d.Hb,this.A);d.O();if(n.hasOwnProperty("fx"))for(a=0,b=n.fx.length;a<b;a++)c=k.Sk(n.fx[a].name),0>c||(d.ie[c]=n.fx[a].active,
d.Ha[c]=n.fx[a].params);d.be()}if(k=f.behs)for(h in k)k.hasOwnProperty(h)&&(n=this.ts(d,parseInt(h,10)),0>n||d.L[n].ec(k[h]));f.data&&d.ec(f.data)};Ob=function(d){return new a(document.getElementById(d))};Pb=function(d,f){return new a({dc:!0,width:d,height:f})};window.cr_createRuntime=Ob;window.cr_createDCRuntime=Pb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");d.Xv=!0;document.body.appendChild(d);d=new a(d);
window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new a(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})();
window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,m){if(0!==e&&0!==m){var a=window.cr_getC2Runtime();a&&a.setSize(e,m)}};window.cr_setSuspended=function(e){var m=window.cr_getC2Runtime();m&&m.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.Ye=null;this.scrollX=this.b.gb/2;this.scrollY=this.b.fb/2;this.scale=1;this.k=0;this.Lf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Np=b[3];this.sp=b[4];this.W=b[5];var c=b[6],k,g;this.S=[];this.Ug=[];k=0;for(g=c.length;k<g;k++){var e=new Qb(this,c[k]);e.Jo=k;this.S.push(e)}c=b[7];this.gf=[];k=0;for(g=c.length;k<g;k++){var e=c[k],f=this.b.B[e[1]];f.jd||(f.jd=e);this.gf.push(e);-1===this.Ug.indexOf(f)&&this.Ug.push(f)}this.M=[];this.aa=[];this.Ha=
[];k=0;for(g=b[8].length;k<g;k++)this.M.push({id:b[8][k][0],name:b[8][k][1],ub:-1,xb:!0,index:k}),this.Ha.push(b[8][k][2].slice(0));this.be();this.lg=new U(0,0,1,1);this.Xl=new U(0,0,1,1);this.De={}}function m(a,b){return a.gd-b.gd}function a(a,b){this.ra=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.We=!1;this.$d=new U(0,0,0,0);this.Gp=new sa;this.$a=this.Ka=this.ab=this.Ja=0;this.Bf=!1;this.fe=-1;this.name=b[0];this.index=b[1];this.W=b[2];this.visible=b[3];this.le=b[4];this.ae=b[5];this.Pb=
b[6];this.Qb=b[7];this.opacity=b[8];this.Mk=b[9];this.ed=b[10];this.Bb=b[11];this.Hb=b[12];this.Jr=b[13];this.Gg="source-over";this.zb=this.Ab=0;this.hc=null;this.Zf=r();this.Xd=!0;this.Zi=new U(0,0,-1,-1);this.Ac=new U(0,0,-1,-1);this.ed&&(this.hc=new db(this.b.gb,this.b.fb));this.Ge=!1;var c=b[14],k,g;this.Pf=[];k=0;for(g=c.length;k<g;k++){var e=c[k],f=this.b.B[e[1]];f.jd||(f.jd=e,f.or=this.index);this.Pf.push(e);-1===this.ra.Ug.indexOf(f)&&this.ra.Ug.push(f)}this.M=[];this.aa=[];this.Ha=[];k=0;
for(g=b[15].length;k<g;k++)this.M.push({id:b[15][k][0],name:b[15][k][1],ub:-1,xb:!0,index:k}),this.Ha.push(b[15][k][2].slice(0));this.be();this.lg=new U(0,0,1,1);this.Xl=new U(0,0,1,1)}function r(){return g.length?g.pop():[]}function v(a){a.length=0;g.push(a)}e.prototype.fu=function(a){var b=a.type.W.toString();this.De.hasOwnProperty(b)||(this.De[b]=[]);this.De[b].push(this.b.em(a))};e.prototype.Jn=function(){var a=this.S[0];return!a.ae&&1===a.opacity&&!a.Mk&&a.visible};e.prototype.be=function(){this.aa.length=
0;var a,b,c;a=0;for(b=this.M.length;a<b;a++)c=this.M[a],c.xb&&this.aa.push(c)};e.prototype.Rk=function(a){var b,c,k;b=0;for(c=this.M.length;b<c;b++)if(k=this.M[b],k.name===a)return k;return null};var c=[],b=!0;e.prototype.km=function(){this.sp&&(this.Ye=this.b.Gk[this.sp],this.Ye.um());this.b.ma=this;this.scrollX=this.b.gb/2;this.scrollY=this.b.fb/2;var a,p,g,k,e,q,f;a=0;for(g=this.b.B.length;a<g;a++)if(p=this.b.B[a],!p.U)for(e=p.d,p=0,k=e.length;p<k;p++)if(q=e[p],q.n){var n=q.n.Jo;n>=this.S.length&&
(n=this.S.length-1);q.n=this.S[n];-1===q.n.d.indexOf(q)&&q.n.d.push(q);q.n.Bf=!0}if(!b)for(a=0,g=this.S.length;a<g;++a)this.S[a].d.sort(m);c.length=0;this.br();a=0;for(g=this.S.length;a<g;a++)q=this.S[a],q.mr(),q.wm();e=!1;if(!this.Lf){for(f in this.De)if(this.De.hasOwnProperty(f)&&(p=this.b.Li(parseInt(f,10)))&&!p.U&&this.b.tm(p)){k=this.De[f];a=0;for(g=k.length;a<g;a++){q=null;if(p.Va.we&&(q=this.Ki(k[a].w.l),!q))continue;q=this.b.Ue(p.jd,q,!1,0,0,!0);this.b.fj(q,k[a]);e=!0;c.push(q)}k.length=0}a=
0;for(g=this.S.length;a<g;a++)this.S[a].d.sort(m),this.S[a].Bf=!0}e&&(this.b.wb(),this.b.gp());for(a=0;a<c.length;a++)if(q=c[a],q.type.Vc)for(g=q.Qg(),p=0,k=q.type.Xb.length;p<k;p++)f=q.type.Xb[p],q.type!==f&&(f.d.length>g?q.siblings.push(f.d[g]):f.jd&&(e=this.b.Ue(f.jd,q.n,!0,q.x,q.y,!0),this.b.wb(),f.Zj(),q.siblings.push(e),c.push(e)));a=0;for(g=this.gf.length;a<g;a++)this.b.Ue(this.gf[a],null,!0);this.b.Se=null;this.b.wb();if(this.b.qa&&!this.b.ya)for(a=0,g=this.b.B.length;a<g;a++)f=this.b.B[a],
!f.U&&f.d.length&&f.cp&&f.cp(this.b.qa);a=0;for(g=c.length;a<g;a++)q=c[a],this.b.trigger(Object.getPrototypeOf(q.type.Va).u.Hm,q);c.length=0;this.b.trigger(Y.prototype.u.Jm,null);this.Lf=!1};e.prototype.lr=function(){var a,b,c,k,g;b=a=0;for(c=this.gf.length;a<c;a++)k=this.gf[a],g=this.b.B[k[1]],g.global?this.b.Ue(k,null,!0):(this.gf[b]=k,b++);this.gf.length=b};e.prototype.qu=function(){this.b.trigger(Y.prototype.u.vq,null);this.b.vd.lc.length=0;var a,c,g,k,e,q;if(!this.Lf)for(a=0,c=this.S.length;a<
c;a++)for(this.S[a].xm(),e=this.S[a].d,g=0,k=e.length;g<k;g++)q=e[g],q.type.global||this.b.tm(q.type)&&this.fu(q);a=0;for(c=this.S.length;a<c;a++){e=this.S[a].d;g=0;for(k=e.length;g<k;g++)q=e[g],q.type.global||this.b.ge(q);this.b.wb();e.length=0;this.S[a].Bf=!0}a=0;for(c=this.b.B.length;a<c;a++)if(e=this.b.B[a],!(e.global||e.Va.we||e.Va.Jj||e.U)){g=0;for(k=e.d.length;g<k;g++)this.b.ge(e.d[g]);this.b.wb()}b=!1};new U(0,0,0,0);e.prototype.Kd=function(a){var b,c=a,k=!1,g=!this.b.Dc;g&&(this.b.dj||(this.b.dj=
document.createElement("canvas"),b=this.b.dj,b.width=this.b.R,b.height=this.b.P,this.b.fo=b.getContext("2d"),k=!0),b=this.b.dj,c=this.b.fo,b.width!==this.b.R&&(b.width=this.b.R,k=!0),b.height!==this.b.P&&(b.height=this.b.P,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.fa,c.mozImageSmoothingEnabled=this.b.fa,c.msImageSmoothingEnabled=this.b.fa,c.imageSmoothingEnabled=this.b.fa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.jk&&!this.Jn()&&c.clearRect(0,0,this.b.R,this.b.P);var e,
f,k=0;for(e=this.S.length;k<e;k++)f=this.S[k],f.visible&&0<f.opacity&&11!==f.Hb&&(f.d.length||!f.ae)?f.Kd(c):f.wm();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.Tc=function(a){var b=0<this.aa.length||this.b.wg||!this.b.Dc;if(b){this.b.cc||(this.b.cc=a.Fd(this.b.R,this.b.P,this.b.fa));if(this.b.cc.Fg!==this.b.R||this.b.cc.Eg!==this.b.P)a.deleteTexture(this.b.cc),this.b.cc=a.Fd(this.b.R,this.b.P,this.b.fa);a.td(this.b.cc);this.b.Dc||a.qg(this.b.R,this.b.P)}else this.b.cc&&(a.td(null),
a.deleteTexture(this.b.cc),this.b.cc=null);this.b.jk&&!this.Jn()&&a.clear(0,0,0,0);var c,k,g;c=0;for(k=this.S.length;c<k;c++)g=this.S[c],g.visible&&0<g.opacity&&(g.d.length||!g.ae)?g.Tc(a):g.wm();b&&(0===this.aa.length||1===this.aa.length&&this.b.Dc?(1===this.aa.length?(b=this.aa[0].index,a.ud(this.aa[0].ub),a.pg(null,1/this.b.R,1/this.b.P,0,0,1,1,this.scale,this.k,0,0,this.b.R/2,this.b.P/2,this.Ha[b]),a.yj(this.aa[0].ub)&&(this.b.ta=!0)):a.ud(0),this.b.Dc||a.qg(this.b.width,this.b.height),a.td(null),
a.ng(1),a.vc(this.b.cc),a.mp(),a.sd(),a.yd(),b=this.b.width/2,c=this.b.height/2,a.Bj(-b,c,b,c,b,-c,-b,-c),a.vc(null)):this.Yl(a,null,null,null))};e.prototype.Pg=function(){return 0<this.aa.length||this.b.wg||!this.b.Dc?this.b.cc:null};e.prototype.Gn=function(){var a=this.S[0].qc(),b,c,k;b=1;for(c=this.S.length;b<c;b++)k=this.S[b],(0!==k.Pb||0!==k.Qb)&&k.qc()<a&&(a=k.qc());return a};e.prototype.kp=function(a){if(!this.Np){var b=1/this.Gn()*this.b.R/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==
a&&(this.scrollX=a,this.b.ta=!0)};e.prototype.lp=function(a){if(!this.Np){var b=1/this.Gn()*this.b.P/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ta=!0)};e.prototype.br=function(){this.kp(this.scrollX);this.lp(this.scrollY)};e.prototype.Yl=function(a,b,c,k){var g=c?c.aa:b?b.aa:this.aa,e=1,f=0,n=0,u=0,d=this.b.R,l=this.b.P;c?(e=c.n.qc(),f=c.n.Ua(),n=c.n.Ja,u=c.n.Ka,d=c.n.ab,l=c.n.$a):b&&(e=b.qc(),f=b.Ua(),n=b.Ja,u=b.Ka,d=b.ab,l=b.$a);var q=this.b.Pk,r,m,
t,v,A=0,ua=1,fa,K=this.b.R,H=this.b.P,z=K/2,xa=H/2,D=b?b.lg:this.lg,G=b?b.Xl:this.Xl,I=0,O=0,F=0,J=0,L=K,ca=K,M=H,ja=H,ga=t=0,va=c?c.n.Ua():0;if(c){r=0;for(m=g.length;r<m;r++)t+=a.As(g[r].ub),ga+=a.Bs(g[r].ub);v=c.Fa;I=b.Da(v.left,v.top,!0,!0);F=b.Da(v.left,v.top,!1,!0);L=b.Da(v.right,v.bottom,!0,!0);M=b.Da(v.right,v.bottom,!1,!0);0!==va&&(r=b.Da(v.right,v.top,!0,!0),m=b.Da(v.right,v.top,!1,!0),O=b.Da(v.left,v.bottom,!0,!0),J=b.Da(v.left,v.bottom,!1,!0),v=Math.min(I,L,r,O),L=Math.max(I,L,r,O),I=v,
v=Math.min(F,M,m,J),M=Math.max(F,M,m,J),F=v);I-=t;F-=ga;L+=t;M+=ga;G.left=I/K;G.top=1-F/H;G.right=L/K;G.bottom=1-M/H;O=I=T(I);J=F=T(F);ca=L=qa(L);ja=M=qa(M);O-=t;J-=ga;ca+=t;ja+=ga;0>I&&(I=0);0>F&&(F=0);L>K&&(L=K);M>H&&(M=H);0>O&&(O=0);0>J&&(J=0);ca>K&&(ca=K);ja>H&&(ja=H);D.left=I/K;D.top=1-F/H;D.right=L/K;D.bottom=1-M/H}else D.left=G.left=0,D.top=G.top=0,D.right=G.right=1,D.bottom=G.bottom=1;ga=c&&((c.k||va)&&a.Fh(g[0].ub)||0!==t||0!==ga||1!==c.opacity||c.type.Va.Eo)||b&&!c&&1!==b.opacity;a.mp();
if(ga){q[A]||(q[A]=a.Fd(K,H,this.b.fa));if(q[A].Fg!==K||q[A].Eg!==H)a.deleteTexture(q[A]),q[A]=a.Fd(K,H,this.b.fa);a.ud(0);a.td(q[A]);fa=ja-J;a.clearRect(O,H-J-fa,ca-O,fa);c?c.Tc(a):(a.vc(this.b.tc),a.ng(b.opacity),a.sd(),a.translate(-z,-xa),a.yd(),a.Fe(I,M,L,M,L,F,I,F,D));G.left=G.top=0;G.right=G.bottom=1;c&&(v=D.top,D.top=D.bottom,D.bottom=v);A=1;ua=0}a.ng(1);t=g.length-1;var va=a.Ul(g[t].ub)||!b&&!c&&!this.b.Dc,wa=0;r=0;for(m=g.length;r<m;r++){q[A]||(q[A]=a.Fd(K,H,this.b.fa));if(q[A].Fg!==K||q[A].Eg!==
H)a.deleteTexture(q[A]),q[A]=a.Fd(K,H,this.b.fa);a.ud(g[r].ub);wa=g[r].index;a.yj(g[r].ub)&&(this.b.ta=!0);0!=r||ga?(a.pg(k,1/K,1/H,G.left,G.top,G.right,G.bottom,e,f,n,u,(n+d)/2,(u+l)/2,c?c.Ha[wa]:b?b.Ha[wa]:this.Ha[wa]),a.vc(null),r!==t||va?(a.td(q[A]),fa=ja-J,v=H-J-fa,a.clearRect(O,v,ca-O,fa)):(c?a.He(c.Ab,c.zb):b&&a.He(b.Ab,b.zb),a.td(k)),a.vc(q[ua]),a.sd(),a.translate(-z,-xa),a.yd(),a.Fe(I,M,L,M,L,F,I,F,D),r!==t||va||a.vc(null)):(a.td(q[A]),fa=ja-J,v=H-J-fa,a.clearRect(O,v,ca-O,fa),c?(a.pg(k,
1/c.width,1/c.height,G.left,G.top,G.right,G.bottom,e,f,n,u,(n+d)/2,(u+l)/2,c.Ha[wa]),c.Tc(a)):(a.pg(k,1/K,1/H,0,0,1,1,e,f,n,u,(n+d)/2,(u+l)/2,b?b.Ha[wa]:this.Ha[wa]),a.vc(b?this.b.tc:this.b.cc),a.sd(),a.translate(-z,-xa),a.yd(),a.Fe(I,M,L,M,L,F,I,F,D)),G.left=G.top=0,G.right=G.bottom=1,c&&!va&&(v=M,M=F,F=v));A=0===A?1:0;ua=0===A?1:0}va&&(a.ud(0),c?a.He(c.Ab,c.zb):b?a.He(b.Ab,b.zb):this.b.Dc||(a.qg(this.b.width,this.b.height),z=this.b.width/2,xa=this.b.height/2,F=I=0,L=this.b.width,M=this.b.height),
a.td(k),a.vc(q[ua]),a.sd(),a.translate(-z,-xa),a.yd(),c&&1===g.length&&!ga?a.Fe(I,F,L,F,L,M,I,M,D):a.Fe(I,M,L,M,L,F,I,F,D),a.vc(null))};e.prototype.Ki=function(a){var b,c;b=0;for(c=this.S.length;b<c;b++)if(this.S[b].W===a)return this.S[b];return null};e.prototype.Gb=function(){var a,b,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Lf,persist:this.De,fx:[],layers:{}};a=0;for(b=this.M.length;a<b;a++)c=this.M[a],k.fx.push({name:c.name,active:c.xb,params:this.Ha[c.index]});
a=0;for(b=this.S.length;a<b;a++)c=this.S[a],k.layers[c.W.toString()]=c.Gb();return k};e.prototype.ec=function(a){var b,c,k,g;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.De=a.persist;"undefined"!==typeof a.fv&&(this.Lf=a.fv);var e=a.fx;b=0;for(c=e.length;b<c;b++)if(k=this.Rk(e[b].name))k.xb=e[b].active,this.Ha[k.index]=e[b].params;this.be();b=a.layers;for(g in b)b.hasOwnProperty(g)&&(a=this.Ki(parseInt(g,10)))&&a.ec(b[g])};Cb=e;a.prototype.be=function(){this.aa.length=
0;var a,b,c;a=0;for(b=this.M.length;a<b;a++)c=this.M[a],c.xb&&this.aa.push(c)};a.prototype.Rk=function(a){var b,c,k;b=0;for(c=this.M.length;b<c;b++)if(k=this.M[b],k.name===a)return k;return null};a.prototype.mr=function(){var a,b,g,k,e,q;b=a=0;for(g=this.Pf.length;a<g;a++){k=this.Pf[a];e=this.b.B[k[1]];q=this.b.tm(e);e=!0;if(!q||this.ra.Lf)k=this.b.Ue(k,this,!0),c.push(k),k.type.global&&(e=!1);e&&(this.Pf[b]=this.Pf[a],b++)}this.Pf.length=b;this.b.wb();!this.b.F&&this.M.length&&(this.Hb=this.Jr);
this.Gg=eb(this.Hb);this.b.A&&fb(this,this.Hb,this.b.A);this.Xd=!0};a.prototype.mg=function(a,b){var c=Ca(this.d,a);0>c||(b&&this.ed&&a.Rb&&a.Rb.right>=a.Rb.left&&(a.xa(),this.hc.update(a,a.Rb,null),a.Rb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(ya(this.d,c),this.Mh(c)),this.Xd=!0)};a.prototype.Cg=function(a,b){a.gd=this.d.length;this.d.push(a);b&&this.ed&&a.Rb&&a.O();this.Xd=!0};a.prototype.Nt=function(a){this.d.unshift(a);this.Mh(0)};a.prototype.ut=function(a,b,c){var k=a.Fc();b=b.Fc();
ya(this.d,k);k<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Mh(k<b?k:b)};a.prototype.Mh=function(a){-1===this.fe?this.fe=a:a<this.fe&&(this.fe=a);this.Xd=this.Bf=!0};a.prototype.xm=function(){if(this.Bf){-1===this.fe&&(this.fe=0);var a,b,c;if(this.ed)for(a=this.fe,b=this.d.length;a<b;++a)c=this.d[a],c.gd=a,this.hc.pt(c.Rb);else for(a=this.fe,b=this.d.length;a<b;++a)this.d[a].gd=a;this.Bf=!1;this.fe=-1}};a.prototype.qc=function(a){return this.xs()*(this.b.Dc||a?this.b.Dg:
1)};a.prototype.xs=function(){return(this.scale*this.ra.scale-1)*this.Bb+1};a.prototype.Ua=function(){return this.We?0:W(this.ra.k+this.k)};var g=[],q=[],t=[];a.prototype.Hn=function(){this.xm();this.hc.Cj(this.Ja,this.Ka,this.ab,this.$a,t);if(!t.length)return r();if(1===t.length){var a=r();za(a,t[0]);t.length=0;return a}for(var b=!0;1<t.length;){for(var a=t,c=void 0,k=void 0,g=void 0,e=void 0,f=void 0,c=0,k=a.length;c<k-1;c+=2){var g=a[c],e=a[c+1],f=r(),n=g,u=e,d=f,l=0,s=0,m=0,C=n.length,x=u.length,
R=void 0,A=void 0;for(d.length=C+x;l<C&&s<x;++m)R=n[l],A=u[s],R.gd<A.gd?(d[m]=R,++l):(d[m]=A,++s);for(;l<C;++l,++m)d[m]=n[l];for(;s<x;++s,++m)d[m]=u[s];b||(v(g),v(e));q.push(f)}1===k%2&&(b?(g=r(),za(g,a[k-1]),q.push(g)):q.push(a[k-1]));za(a,q);q.length=0;b=!1}a=t[0];t.length=0;return a};a.prototype.Kd=function(a){this.Ge=this.Mk||1!==this.opacity||0!==this.Hb;var b=this.b.canvas,c=a,k=!1;this.Ge&&(this.b.cj||(this.b.cj=document.createElement("canvas"),b=this.b.cj,b.width=this.b.R,b.height=this.b.P,
this.b.eo=b.getContext("2d"),k=!0),b=this.b.cj,c=this.b.eo,b.width!==this.b.R&&(b.width=this.b.R,k=!0),b.height!==this.b.P&&(b.height=this.b.P,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.fa,c.mozImageSmoothingEnabled=this.b.fa,c.msImageSmoothingEnabled=this.b.fa,c.imageSmoothingEnabled=this.b.fa),this.ae&&c.clearRect(0,0,this.b.R,this.b.P));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ae||(c.fillStyle="rgb("+this.le[0]+","+this.le[1]+","+this.le[2]+")",c.fillRect(0,0,this.b.R,
this.b.P));c.save();this.We=!0;var k=this.La(0,0,!0,!0),g=this.La(0,0,!1,!0);this.We=!1;this.b.Ee&&(k=Math.round(k),g=Math.round(g));this.$l(k,g,c);var e=this.qc();c.scale(e,e);c.translate(-k,-g);this.ed?(this.Ac.left=this.hc.mc(this.Ja),this.Ac.top=this.hc.nc(this.Ka),this.Ac.right=this.hc.mc(this.ab),this.Ac.bottom=this.hc.nc(this.$a),this.Xd||!this.Ac.xi(this.Zi)?(v(this.Zf),k=this.Hn(),this.Xd=!1,this.Zi.mi(this.Ac)):k=this.Zf):k=this.d;for(var f,n=null,g=0,e=k.length;g<e;++g)f=k[g],f!==n&&(this.Gr(f,
c),n=f);this.ed&&(this.Zf=k);c.restore();this.Ge&&(a.globalCompositeOperation=this.Gg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};a.prototype.Gr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Fa;c.right<this.Ja||c.bottom<this.Ka||c.left>this.ab||c.top>this.$a||(b.globalCompositeOperation=a.Gg,a.Kd(b))}};a.prototype.wm=function(){this.We=!0;var a=this.La(0,0,!0,!0),b=this.La(0,0,!1,!0);this.We=!1;this.b.Ee&&(a=Math.round(a),b=Math.round(b));this.$l(a,b,null)};a.prototype.$l=
function(a,b,c){var k=this.qc();this.Ja=a;this.Ka=b;this.ab=a+1/k*this.b.R;this.$a=b+1/k*this.b.P;a=this.Ua();0!==a&&(c&&(c.translate(this.b.R/2,this.b.P/2),c.rotate(-a),c.translate(this.b.R/-2,this.b.P/-2)),this.$d.set(this.Ja,this.Ka,this.ab,this.$a),this.$d.offset((this.Ja+this.ab)/-2,(this.Ka+this.$a)/-2),this.Gp.qp(this.$d,a),this.Gp.cn(this.$d),this.$d.offset((this.Ja+this.ab)/2,(this.Ka+this.$a)/2),this.Ja=this.$d.left,this.Ka=this.$d.top,this.ab=this.$d.right,this.$a=this.$d.bottom)};a.prototype.Tc=
function(a){var b=0,c=0;if(this.Ge=this.Mk||1!==this.opacity||0<this.aa.length||0!==this.Hb){this.b.tc||(this.b.tc=a.Fd(this.b.R,this.b.P,this.b.fa));if(this.b.tc.Fg!==this.b.R||this.b.tc.Eg!==this.b.P)a.deleteTexture(this.b.tc),this.b.tc=a.Fd(this.b.R,this.b.P,this.b.fa);a.td(this.b.tc);this.ae&&a.clear(0,0,0,0)}this.ae||a.clear(this.le[0]/255,this.le[1]/255,this.le[2]/255,1);this.We=!0;var k=this.La(0,0,!0,!0),b=this.La(0,0,!1,!0);this.We=!1;this.b.Ee&&(k=Math.round(k),b=Math.round(b));this.$l(k,
b,null);k=this.qc();a.sd();a.scale(k,k);a.am(-this.Ua());a.translate((this.Ja+this.ab)/-2,(this.Ka+this.$a)/-2);a.yd();this.ed?(this.Ac.left=this.hc.mc(this.Ja),this.Ac.top=this.hc.nc(this.Ka),this.Ac.right=this.hc.mc(this.ab),this.Ac.bottom=this.hc.nc(this.$a),this.Xd||!this.Ac.xi(this.Zi)?(v(this.Zf),b=this.Hn(),this.Xd=!1,this.Zi.mi(this.Ac)):b=this.Zf):b=this.d;var g,e,f=null,c=0;for(g=b.length;c<g;++c)e=b[c],e!==f&&(this.Hr(b[c],a),f=e);this.ed&&(this.Zf=b);this.Ge&&(b=this.aa.length?this.aa[0].ub:
0,c=this.aa.length?this.aa[0].index:0,0===this.aa.length||1===this.aa.length&&!a.Ul(b)&&1===this.opacity?(1===this.aa.length?(a.ud(b),a.pg(this.ra.Pg(),1/this.b.R,1/this.b.P,0,0,1,1,k,this.Ua(),this.Ja,this.Ka,(this.Ja+this.ab)/2,(this.Ka+this.$a)/2,this.Ha[c]),a.yj(b)&&(this.b.ta=!0)):a.ud(0),a.td(this.ra.Pg()),a.ng(this.opacity),a.vc(this.b.tc),a.He(this.Ab,this.zb),a.sd(),a.yd(),k=this.b.R/2,b=this.b.P/2,a.Bj(-k,b,k,b,k,-b,-k,-b),a.vc(null)):this.ra.Yl(a,this,null,this.ra.Pg()))};a.prototype.Hr=
function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Fa;c.right<this.Ja||c.bottom<this.Ka||c.left>this.ab||c.top>this.$a||(a.Vp?this.Ir(a,b):(b.ud(0),b.He(a.Ab,a.zb),a.Tc(b)))}};a.prototype.Ir=function(a,b){var c=a.aa[0].ub,k=a.aa[0].index,g=this.qc();if(1!==a.aa.length||b.Ul(c)||b.Pt(c)||(a.k||a.n.Ua())&&b.Fh(c)||1!==a.opacity||a.type.Va.Eo)this.ra.Yl(b,this,a,this.Ge?this.b.tc:this.ra.Pg()),b.sd(),b.scale(g,g),b.am(-this.Ua()),b.translate((this.Ja+this.ab)/-2,(this.Ka+this.$a)/
-2),b.yd();else{b.ud(c);b.He(a.Ab,a.zb);b.yj(c)&&(this.b.ta=!0);var e=0,f=0,n=0,u=0;b.Fh(c)&&(c=a.Fa,e=this.Da(c.left,c.top,!0,!0),f=this.Da(c.left,c.top,!1,!0),n=this.Da(c.right,c.bottom,!0,!0),c=this.Da(c.right,c.bottom,!1,!0),e/=windowWidth,f=1-f/windowHeight,n/=windowWidth,u=1-c/windowHeight);b.pg(this.Ge?this.b.tc:this.ra.Pg(),1/a.width,1/a.height,e,f,n,u,g,this.Ua(),this.Ja,this.Ka,(this.Ja+this.ab)/2,(this.Ka+this.$a)/2,a.Ha[k]);a.Tc(b)}};a.prototype.La=function(a,b,c,k){var g=this.b.devicePixelRatio;
this.b.jf&&(a*=g,b*=g);var g=this.b.Xo,e=this.b.Yo,g=(this.ra.scrollX-g)*this.Pb+g,e=(this.ra.scrollY-e)*this.Qb+e,f=1/this.qc(!k);k?(g-=this.b.R*f/2,e-=this.b.P*f/2):(g-=this.b.width*f/2,e-=this.b.height*f/2);g+=a*f;e+=b*f;b=this.Ua();0!==b&&(g-=this.ra.scrollX,e-=this.ra.scrollY,a=Math.cos(b),b=Math.sin(b),k=g*a-e*b,e=e*a+g*b,g=k+this.ra.scrollX,e+=this.ra.scrollY);return c?g:e};a.prototype.Da=function(a,b,c,k){var g=this.Ua();if(0!==g){a-=this.ra.scrollX;b-=this.ra.scrollY;var e=Math.cos(-g),g=
Math.sin(-g),f=a*e-b*g;b=b*e+a*g;a=f+this.ra.scrollX;b+=this.ra.scrollY}e=this.b.Xo;g=this.b.Yo;e=(this.ra.scrollX-e)*this.Pb+e;g=(this.ra.scrollY-g)*this.Qb+g;f=1/this.qc(!k);k?(e-=this.b.R*f/2,g-=this.b.P*f/2):(e-=this.b.width*f/2,g-=this.b.height*f/2);e=(a-e)/f;g=(b-g)/f;a=this.b.devicePixelRatio;this.b.jf&&!k&&(e/=a,g/=a);return c?e:g};a.prototype.Gb=function(){var a,b,c,g={s:this.scale,a:this.k,vl:this.Ja,vt:this.Ka,vr:this.ab,vb:this.$a,v:this.visible,bc:this.le,t:this.ae,px:this.Pb,py:this.Qb,
o:this.opacity,zr:this.Bb,fx:[],instances:[]};a=0;for(b=this.M.length;a<b;a++)c=this.M[a],g.fx.push({name:c.name,active:c.xb,params:this.Ha[c.index]});return g};a.prototype.ec=function(a){var b,c;this.scale=a.s;this.k=a.a;this.Ja=a.vl;this.Ka=a.vt;this.ab=a.vr;this.$a=a.vb;this.visible=a.v;this.le=a.bc;this.ae=a.t;this.Pb=a.px;this.Qb=a.py;this.opacity=a.o;this.Bb=a.zr;var g=a.fx;a=0;for(b=g.length;a<b;a++)if(c=this.Rk(g[a].name))c.xb=g[a].active,this.Ha[c.index]=g[a].params;this.be();this.d.sort(m);
this.Bf=!0};Qb=a})();
(function(){function e(a,b){var c,d=a.length;switch(d){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<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function a(a){var b,c,d,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(m);a.length>=k.length&&(k.length=a.length+1);k[a.length]||(k[a.length]=[]);g=k[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function r(a,b){this.b=a;this.Jp={};this.tn={};this.al=!1;this.Ln=new ba;this.Ck=[];this.kk=[];this.name=b[0];var c=b[1];this.re=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Nn(c[d],null,this.re)}function v(a){this.type=a;this.d=[];this.ca=[];this.za=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.Ie=[];this.Kn=this.Uj=this.pm=this.Qi=this.group=this.wp=!1;this.kb=[];this.Pc=[];this.Nc=[];this.Rg="";this.Nf=this.Qi=this.group=!1;this.ki=null;c[1]&&(this.Rg=c[1][1].toLowerCase(),
this.group=!0,this.Qi=!!c[1][0],this.ki=[],this.Nf=this.Qi,this.b.je.push(this),this.b.Ni[this.Rg]=this);this.Yc=c[2];this.W=c[4];this.group||(this.b.bn[this.W.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Rb(this,d[a]);g.index=a;this.kb.push(g);this.Xm(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Sb(this,d[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.Nn(c[a],this,this.Nc);this.Ui=!1;this.kb.length&&(this.Ui=null==this.kb[0].type&&
this.kb[0].rb==Y.prototype.u.Gm)}function b(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Vc))for(c=0,d=a.Xb.length;c<d;c++)g=a.Xb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function g(a,b){this.oc=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.ua=[];this.ka={};this.index=-1;this.Ag=!1;this.rb=this.b.he(b[1]);this.trigger=0<b[3];this.sn=2===b[3];this.nd=b[4];this.gl=b[5];this.lt=b[6];this.W=b[7];this.b.If[this.W.toString()]=this;-1===b[0]?(this.type=null,this.Xa=this.dm,this.Re=null,this.xc=-1):
(this.type=this.b.B[b[0]],this.Xa=this.lt?this.du:this.cm,b[2]?(this.Re=this.type.Ii(b[2]),this.xc=this.type.Qk(b[2])):(this.Re=null,this.xc=-1),this.oc.parent&&this.oc.parent.Ij());this.sn&&(this.Xa=this.eu);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var k=new Tb(this,g[c]);this.N.push(k)}this.ua.length=g.length}}function q(a,b){this.oc=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.ua=[];this.ka={};this.index=-1;this.Ag=!1;this.rb=this.b.he(b[1]);-1===b[0]?(this.type=null,this.Xa=
this.dm,this.Re=null,this.xc=-1):(this.type=this.b.B[b[0]],this.Xa=this.cm,b[2]?(this.Re=this.type.Ii(b[2]),this.xc=this.type.Qk(b[2])):(this.Re=null,this.xc=-1));this.W=b[3];this.b.Ff[this.W.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var k=new Tb(this,g[c]);this.N.push(k)}this.ua.length=g.length}}function t(a,b){this.G=a;this.oc=a.oc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.kd=null;this.Je=0;this.get=null;this.kn=0;this.ra=null;this.key=0;this.object=null;
this.index=0;this.Xh=this.xf=this.Xh=this.xf=this.un=this.Ze=this.Yh=null;this.Oc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.kd=new Ub(this,b[1]);this.Je=0;this.get=this.Is;break;case 1:this.kd=new Ub(this,b[1]);this.Je=0;this.get=this.Js;break;case 5:this.kd=new Ub(this,b[1]);this.Je=0;this.get=this.Ns;break;case 3:case 8:this.kn=b[1];this.get=this.Gs;break;case 6:this.ra=this.b.rl[b[1]];this.get=this.Os;break;case 9:this.key=b[1];this.get=this.Ms;break;case 4:this.object=this.b.B[b[1]];this.get=
this.Ps;this.oc.Xm(this.object);this.G instanceof Sb?this.oc.Ij():this.oc.parent&&this.oc.parent.Ij();break;case 10:this.index=b[1];a.type.U?(this.get=this.Ks,this.Oc=!0):this.get=this.Ls;break;case 11:this.Yh=b[1];this.Ze=null;this.get=this.Hs;break;case 2:case 12:this.un=b[1];this.get=this.Fs;break;case 13:for(this.get=this.Qs,this.xf=[],this.Xh=[],c=1,d=b.length;c<d;c++)g=new Tb(this.G,b[c]),this.xf.push(g),this.Xh.push(0)}}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.name=
c[1];this.ak=c[2];this.dl=c[3];this.ah=!!c[4];this.Ti=!!c[5];this.W=c[6];this.b.yg[this.W.toString()]=this;this.data=this.dl;this.parent?(this.sf=this.ah||this.Ti?-1:this.b.ou++,this.b.Wq.push(this)):(this.sf=-1,this.b.Vq.push(this))}function p(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.Tg=null;this.Xs=c[1];this.xb=!0}function y(){this.zp=[];this.reset(null)}var k=[];r.prototype.toString=function(){return this.name};r.prototype.Nn=function(a,b,c){switch(a[0]){case 0:a=new Vb(this,
b,a);if(a.Yc)for(c.push(a),c=0,b=a.kb.length;c<b;c++)a.kb[c].trigger&&this.On(a,c);else a.Xn()?this.On(a,0):c.push(a);break;case 1:a=new Nb(this,b,a);c.push(a);break;case 2:a=new Wb(this,b,a),c.push(a)}};r.prototype.Qa=function(){var a,b;a=0;for(b=this.re.length;a<b;a++)this.re[a].Qa(a<b-1&&this.re[a+1].Ui)};r.prototype.um=function(){this.Ck.length=0;this.kk.length=0;this.Wm(this);this.kk.length=0};r.prototype.Wm=function(a){var b,c,d,g,k=a.Ck,h=a.kk,e=this.Ln.fd();b=0;for(c=e.length;b<c;++b)d=e[b],
g=d.Tg,!d.xb||a===g||-1<h.indexOf(g)||(h.push(g),g.Wm(a),k.push(g))};r.prototype.Xa=function(a){this.b.Wv||(this.al=!0,a||(this.b.jl=!0));var b,c;b=0;for(c=this.re.length;b<c;b++){var d=this.re[b];d.Xa();this.b.wk(d.Ea);this.b.te&&this.b.wb()}a||(this.b.jl=!1)};r.prototype.On=function(a,b){a.Yc||this.b.Yj.push(a);var c,d,g=a.kb[b],k;k=g.type?g.type.name:"system";var h=(c=g.sn)?this.tn:this.Jp;h[k]||(h[k]=[]);k=h[k];h=g.rb;if(c){if(g.N.length&&(g=g.N[0],1===g.type&&2===g.kd.type)){g=g.kd.value.toLowerCase();
c=0;for(d=k.length;c<d;c++)if(k[c].method==h){c=k[c].Kg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];k.push({method:h,Kg:c})}}else{c=0;for(d=k.length;c<d;c++)if(k[c].method==h){k[c].Kg.push([a,b]);return}kc&&h===kc.prototype.u.Ef?k.unshift({method:h,Kg:[[a,b]]}):k.push({method:h,Kg:[[a,b]]})}};Db=r;v.prototype.$k=function(){return this.za?this.type.d.length:this.d.length};v.prototype.Ec=function(){return this.za?this.type.d:this.d};v.prototype.Dh=function(a){a&&(a.b.Db().Bc.Yc?(this.za&&
(this.d.length=0,za(this.ca,a.type.d),this.za=!1),a=this.ca.indexOf(a),-1!==a&&(this.d.push(this.ca[a]),this.ca.splice(a,1))):(this.za=!1,this.d.length=1,this.d[0]=a))};lb=v;window._c2hh_="";c.prototype.Qa=function(b){var c,g=this.parent;if(this.group)for(this.Uj=!0;g;){if(!g.group){this.Uj=!1;break}g=g.parent}this.pm=!this.Xn()&&(!this.parent||this.parent.group&&this.parent.Uj);this.Kn=!!b;this.Ie=this.Ea.slice(0);for(g=this.parent;g;){b=0;for(c=g.Ea.length;b<c;b++)this.Tq(g.Ea[b]);g=g.parent}this.Ea=
a(this.Ea);this.Ie=a(this.Ie);b=0;for(c=this.kb.length;b<c;b++)this.kb[b].Qa();b=0;for(c=this.Pc.length;b<c;b++)this.Pc[b].Qa();b=0;for(c=this.Nc.length;b<c;b++)this.Nc[b].Qa(b<c-1&&this.Nc[b+1].Ui)};c.prototype.iu=function(a){if(this.Nf!==!!a){this.Nf=!!a;var b;a=0;for(b=this.ki.length;a<b;++a)this.ki[a].Qp();0<b&&this.b.ma.Ye&&this.b.ma.Ye.um()}};c.prototype.Xm=function(a){b(a,this.Ea)};c.prototype.Tq=function(a){b(a,this.Ie)};c.prototype.Ij=function(){this.wp=!0;this.parent&&this.parent.Ij()};
c.prototype.Xn=function(){return this.kb.length?this.kb[0].trigger:!1};c.prototype.Xa=function(){var a,b=!1,c,d=this.b,g=this.b.Db();g.Bc=this;var k=this.kb;this.Ui||(g.Ek=!1);if(this.Yc){0===k.length&&(b=!0);g.bb=0;for(a=k.length;g.bb<a;g.bb++)k[g.bb].trigger||(c=k[g.bb].Xa())&&(b=!0);(g.mf=b)&&this.Gj()}else{g.bb=0;for(a=k.length;g.bb<a;g.bb++)if(c=k[g.bb].Xa(),!c){g.mf=!1;this.pm&&d.te&&d.wb();return}g.mf=!0;this.Gj()}this.Lr(g)};c.prototype.Lr=function(a){a.mf&&this.Kn&&(a.Ek=!0);this.pm&&this.b.te&&
this.b.wb()};c.prototype.bu=function(a){this.b.Db().Bc=this;this.kb[a].Xa()&&(this.Gj(),this.b.Db().mf=!0)};c.prototype.Gj=function(){var a=this.b.Db(),b;a.wc=0;for(b=this.Pc.length;a.wc<b;a.wc++)if(this.Pc[a.wc].Xa())return;this.ip()};c.prototype.Zt=function(){var a=this.b.Db(),b;for(b=this.Pc.length;a.wc<b;a.wc++)if(this.Pc[a.wc].Xa())return;this.ip()};c.prototype.ip=function(){if(this.Nc.length){var a,b,c,d,g=this.Nc.length-1;this.b.Aj(this);if(this.wp)for(a=0,b=this.Nc.length;a<b;a++)c=this.Nc[a],
(d=!this.Uj||!this.group&&a<g)&&this.b.zj(c.Ea),c.Xa(),d?this.b.uf(c.Ea):this.b.wk(c.Ea);else for(a=0,b=this.Nc.length;a<b;a++)this.Nc[a].Xa();this.b.vj()}};c.prototype.cu=function(){var a=this.b.Db();a.Bc=this;var b=!1,c;a.bb=0;for(c=this.kb.length;a.bb<c;a.bb++)if(this.kb[a.bb].Xa())b=!0;else if(!this.Yc)return!1;return this.Yc?b:!0};c.prototype.$t=function(){this.b.Ai++;var a=this.b.Db().bb,b=this.b.Aj(this);if(!this.Yc)for(b.bb=a+1,a=this.kb.length;b.bb<a;b.bb++)if(!this.kb[b.bb].Xa()){this.b.vj();
return}this.Gj();this.b.vj()};c.prototype.ft=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.kb[b].type===a.type)return!1;return!0};Vb=c;g.prototype.Qa=function(){var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.Qa(),c.Oc&&(this.Ag=!0)};g.prototype.eu=function(){return!0};g.prototype.dm=function(){var a,b;a=0;for(b=this.N.length;a<b;a++)this.ua[a]=this.N[a].get();return Ta(this.rb.apply(this.b.vd,this.ua),this.gl)};g.prototype.du=function(){var a,b;a=0;for(b=this.N.length;a<
b;a++)this.ua[a]=this.N[a].get();a=this.rb.apply(this.Re?this.Re:this.type,this.ua);this.type.Rc();return a};g.prototype.cm=function(){var a,b,c,d,g,k,h,e,q=this.type,r=q.la(),p=this.oc.Yc&&!this.trigger;b=0;var m=q.Vc,t=q.U,v=q.Nd,w=this.xc,B=-1<w,y=this.Ag,D=this.N,G=this.ua,I=this.gl,O=this.rb,F;if(y)for(b=0,g=D.length;b<g;++b)k=D[b],k.Oc||(G[b]=k.get(0));else for(b=0,g=D.length;b<g;++b)G[b]=D[b].get(0);if(r.za){r.d.length=0;r.ca.length=0;F=q.d;a=0;for(d=F.length;a<d;++a){e=F[a];if(y)for(b=0,g=
D.length;b<g;++b)k=D[b],k.Oc&&(G[b]=k.get(a));B?(b=0,t&&(b=e.type.Kf[v]),b=O.apply(e.L[w+b],G)):b=O.apply(e,G);(h=Ta(b,I))?r.d.push(e):p&&r.ca.push(e)}q.finish&&q.finish(!0);r.za=!1;q.Rc();return r.$k()}c=0;F=(h=p&&!this.oc.ft(this))?r.ca:r.d;var J=!1;a=0;for(d=F.length;a<d;++a){e=F[a];if(y)for(b=0,g=D.length;b<g;++b)k=D[b],k.Oc&&(G[b]=k.get(a));B?(b=0,t&&(b=e.type.Kf[v]),b=O.apply(e.L[w+b],G)):b=O.apply(e,G);if(Ta(b,I))if(J=!0,h){if(r.d.push(e),m)for(b=0,g=e.siblings.length;b<g;b++)k=e.siblings[b],
k.type.la().d.push(k)}else{F[c]=e;if(m)for(b=0,g=e.siblings.length;b<g;b++)k=e.siblings[b],k.type.la().d[c]=k;c++}else if(h){F[c]=e;if(m)for(b=0,g=e.siblings.length;b<g;b++)k=e.siblings[b],k.type.la().ca[c]=k;c++}else if(p&&(r.ca.push(e),m))for(b=0,g=e.siblings.length;b<g;b++)k=e.siblings[b],k.type.la().ca.push(k)}F.length=c;if(m)for(t=q.Xb,a=0,d=t.length;a<d;a++)e=t[a].la(),h?e.ca.length=c:e.d.length=c;c=J;if(h&&!J)for(a=0,d=r.d.length;a<d;a++){e=r.d[a];if(y)for(b=0,g=D.length;b<g;b++)k=D[b],k.Oc&&
(G[b]=k.get(a));b=B?O.apply(e.L[w],G):O.apply(e,G);if(Ta(b,I)){J=!0;break}}q.finish&&q.finish(c||p);return p?J:r.$k()};Rb=g;q.prototype.Qa=function(){var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.Qa(),c.Oc&&(this.Ag=!0)};q.prototype.dm=function(){var a,b;a=0;for(b=this.N.length;a<b;a++)this.ua[a]=this.N[a].get();return this.rb.apply(this.b.vd,this.ua)};q.prototype.cm=function(){var a=this.type.la().Ec(),b=this.type.U,c=this.type.Nd,d=this.xc,g=-1<d,k=this.Ag,h=this.N,e=this.ua,q=this.rb,
r,p,m,t,v,w;if(k)for(p=0,t=h.length;p<t;++p)v=h[p],v.Oc||(e[p]=v.get(0));else for(p=0,t=h.length;p<t;++p)e[p]=h[p].get(0);r=0;for(m=a.length;r<m;++r){w=a[r];if(k)for(p=0,t=h.length;p<t;++p)v=h[p],v.Oc&&(e[p]=v.get(r));g?(p=0,b&&(p=w.type.Kf[c]),q.apply(w.L[d+p],e)):q.apply(w,e)}return!1};Sb=q;var w=[],B=-1;t.prototype.Qa=function(){var a,b;if(11===this.type)this.Ze=this.b.Cn(this.Yh,this.oc.parent);else if(13===this.type)for(a=0,b=this.xf.length;a<b;a++)this.xf[a].Qa();this.kd&&this.kd.Qa()};t.prototype.tt=
function(a){this.Oc||!a||a.Va.Jj||(this.Oc=!0)};t.prototype.op=function(){this.Oc=!0};t.prototype.ib=function(){B++;w.length===B&&w.push(new Xb);return w[B]};t.prototype.Wa=function(){B--};t.prototype.Is=function(a){this.Je=a||0;a=this.ib();this.kd.get(a);this.Wa();return a.data};t.prototype.Js=function(a){this.Je=a||0;a=this.ib();this.kd.get(a);this.Wa();return Q(a.data)?a.data:""};t.prototype.Ps=function(){return this.object};t.prototype.Gs=function(){return this.kn};t.prototype.Ns=function(a){this.Je=
a||0;a=this.ib();this.kd.get(a);this.Wa();return a.mb()?this.b.Pd(a.data):this.b.Ng(a.data)};t.prototype.Os=function(){return this.ra};t.prototype.Ms=function(){return this.key};t.prototype.Ls=function(){return this.index};t.prototype.Ks=function(a){a=a||0;var b=this.G.type,c=null,c=b.la(),d=c.Ec();if(d.length)c=d[a%d.length].type;else if(c.ca.length)c=c.ca[a%c.ca.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.Bi[b.Nd]};t.prototype.Hs=function(){return this.Ze};
t.prototype.Fs=function(){return this.un};t.prototype.Qs=function(){var a,b;a=0;for(b=this.xf.length;a<b;a++)this.Xh[a]=this.xf[a].get();return this.Xh};Tb=t;h.prototype.Qa=function(){this.Ea=a(this.Ea)};h.prototype.wf=function(a){var b=this.b.Bn();this.parent&&!this.ah&&b?(this.sf>=b.length&&(b.length=this.sf+1),b[this.sf]=a):this.data=a};h.prototype.Mi=function(){var a=this.b.Bn();return!this.parent||this.ah||!a||this.Ti?this.data:this.sf>=a.length||"undefined"===typeof a[this.sf]?this.dl:a[this.sf]};
h.prototype.Xa=function(){!this.parent||this.ah||this.Ti||this.wf(this.dl)};Nb=h;p.prototype.toString=function(){return"include:"+this.Tg.toString()};p.prototype.Qa=function(){this.Tg=this.b.Gk[this.Xs];this.sheet.Ln.add(this);this.Ea=a(this.Ea);for(var b=this.parent;b;)b.group&&b.ki.push(this),b=b.parent;this.Qp()};p.prototype.Xa=function(){this.parent&&this.b.Hh(this.b.B);this.Tg.al||this.Tg.Xa(!0);this.parent&&this.b.uf(this.b.B)};p.prototype.Qp=function(){for(var a=this.parent;a;){if(a.group&&
!a.Nf){this.xb=!1;return}a=a.parent}this.xb=!0};Wb=p;y.prototype.reset=function(a){this.Bc=a;this.wc=this.bb=0;this.zp.length=0;this.Ek=this.mf=!1};Mb=y})();
(function(){function e(a,e){this.G=a;this.b=a.b;this.type=e[0];this.get=[this.Xr,this.Tr,this.es,this.js,this.Nr,this.gs,this.as,this.Qr,this.$r,this.ds,this.Or,this.cs,this.Rr,this.bs,this.Yr,this.Zr,this.Ur,this.Vr,this.Pr,this.hs,this.qn,this.Wr,this.qn,this.Sr][this.type];var m=null;this.Ob=this.N=this.ua=this.rb=this.Qj=this.qb=this.first=this.value=null;this.xc=-1;this.Qd=null;this.zm=-1;this.Ze=this.Yh=null;this.Jh=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Ub(a,e[1]);break;case 18:this.first=new Ub(a,e[1]);this.qb=new Ub(a,e[2]);this.Qj=new Ub(a,e[3]);break;case 19:this.rb=this.b.he(e[1]);this.rb!==Y.prototype.lb.random&&this.rb!==Y.prototype.lb.hr||this.G.op();this.ua=[];this.N=[];3===e.length?(m=e[2],this.ua.length=m.length+1):this.ua.length=1;break;case 20:this.Ob=this.b.B[e[1]];this.xc=-1;this.rb=this.b.he(e[2]);this.Jh=e[3];Zb.Function&&this.rb===Zb.Function.prototype.lb.Ju&&this.G.op();this.Qd=e[4]?new Ub(a,e[4]):null;this.ua=[];this.N=[];
6===e.length?(m=e[5],this.ua.length=m.length+1):this.ua.length=1;break;case 21:this.Ob=this.b.B[e[1]];this.Jh=e[2];this.Qd=e[3]?new Ub(a,e[3]):null;this.zm=e[4];break;case 22:this.Ob=this.b.B[e[1]];this.Ob.Ii(e[2]);this.xc=this.Ob.Qk(e[2]);this.rb=this.b.he(e[3]);this.Jh=e[4];this.Qd=e[5]?new Ub(a,e[5]):null;this.ua=[];this.N=[];7===e.length?(m=e[6],this.ua.length=m.length+1):this.ua.length=1;break;case 23:this.Yh=e[1],this.Ze=null}this.G.tt(this.Ob);4<=this.type&&17>=this.type&&(this.first=new Ub(a,
e[1]),this.qb=new Ub(a,e[2]));if(m){var c,b;c=0;for(b=m.length;c<b;c++)this.N.push(new Ub(a,m[c]))}}function m(a,e){this.type=a||X.Df;this.data=e||0;this.fg=null;this.type==X.Df&&(this.data=Math.floor(this.data))}e.prototype.Qa=function(){23===this.type&&(this.Ze=this.G.b.Cn(this.Yh,this.G.oc.parent));this.first&&this.first.Qa();this.qb&&this.qb.Qa();this.Qj&&this.Qj.Qa();this.Qd&&this.Qd.Qa();if(this.N){var a,e;a=0;for(e=this.N.length;a<e;a++)this.N[a].Qa()}};e.prototype.hs=function(a){this.ua[0]=
a;a=this.G.ib();var e,m;e=0;for(m=this.N.length;e<m;e++)this.N[e].get(a),this.ua[e+1]=a.data;this.G.Wa();this.rb.apply(this.b.vd,this.ua)};e.prototype.qn=function(a){var e=this.Ob.la(),m=e.Ec();if(!m.length)if(e.ca.length)m=e.ca;else{this.Jh?a.ic(""):a.wa(0);return}this.ua[0]=a;a.fg=this.Ob;a=this.G.ib();var c,e=0;for(c=this.N.length;e<c;e++)this.N[e].get(a),this.ua[e+1]=a.data;e=this.G.Je;this.Qd&&(this.Qd.get(a),a.mb()&&(e=a.data,m=this.Ob.d));this.G.Wa();e%=m.length;0>e&&(e+=m.length);m=m[e];-1<
this.xc?(a=0,this.Ob.U&&(a=m.type.Kf[this.Ob.Nd]),this.rb.apply(m.L[this.xc+a],this.ua)):this.rb.apply(m,this.ua)};e.prototype.Wr=function(a){var e=this.Ob.la(),m=e.Ec();if(!m.length)if(e.ca.length)m=e.ca;else{this.Jh?a.ic(""):a.wa(0);return}e=this.G.Je;if(this.Qd){var c=this.G.ib();this.Qd.get(c);if(c.mb()){e=c.data;m=this.Ob.d;e%=m.length;0>e&&(e+=m.length);m=m[e].eb[this.zm];Q(m)?a.ic(m):a.C(m);this.G.Wa();return}this.G.Wa()}e%=m.length;0>e&&(e+=m.length);m=m[e];e=0;this.Ob.U&&(e=m.type.Bi[this.Ob.Nd]);
m=m.eb[this.zm+e];Q(m)?a.ic(m):a.C(m)};e.prototype.Xr=function(a){a.type=X.Df;a.data=this.value};e.prototype.Tr=function(a){a.type=X.Cf;a.data=this.value};e.prototype.es=function(a){a.type=X.String;a.data=this.value};e.prototype.js=function(a){this.first.get(a);a.mb()&&(a.data=-a.data)};e.prototype.Nr=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.mb()&&e.mb()&&(a.data+=e.data,e.Uf()&&a.bg());this.G.Wa()};e.prototype.gs=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);
a.mb()&&e.mb()&&(a.data-=e.data,e.Uf()&&a.bg());this.G.Wa()};e.prototype.as=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.mb()&&e.mb()&&(a.data*=e.data,e.Uf()&&a.bg());this.G.Wa()};e.prototype.Qr=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.mb()&&e.mb()&&(a.data/=e.data,a.bg());this.G.Wa()};e.prototype.$r=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.mb()&&e.mb()&&(a.data%=e.data,e.Uf()&&a.bg());this.G.Wa()};e.prototype.ds=function(a){this.first.get(a);
var e=this.G.ib();this.qb.get(e);a.mb()&&e.mb()&&(a.data=Math.pow(a.data,e.data),e.Uf()&&a.bg());this.G.Wa()};e.prototype.Or=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.mb()?e.Vi()?a.ic(a.data.toString()+e.data):a.data&&e.data?a.wa(1):a.wa(0):a.Vi()&&(a.data=e.Vi()?a.data+e.data:a.data+(Math.round(1E10*e.data)/1E10).toString());this.G.Wa()};e.prototype.cs=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.mb()&&e.mb()&&(a.data||e.data?a.wa(1):a.wa(0));this.G.Wa()};
e.prototype.Pr=function(a){this.first.get(a);a.data?this.qb.get(a):this.Qj.get(a)};e.prototype.Rr=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.wa(a.data===e.data?1:0);this.G.Wa()};e.prototype.bs=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.wa(a.data!==e.data?1:0);this.G.Wa()};e.prototype.Yr=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.wa(a.data<e.data?1:0);this.G.Wa()};e.prototype.Zr=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);
a.wa(a.data<=e.data?1:0);this.G.Wa()};e.prototype.Ur=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.wa(a.data>e.data?1:0);this.G.Wa()};e.prototype.Vr=function(a){this.first.get(a);var e=this.G.ib();this.qb.get(e);a.wa(a.data>=e.data?1:0);this.G.Wa()};e.prototype.Sr=function(a){var e=this.Ze.Mi();P(e)?a.C(e):a.ic(e)};Ub=e;m.prototype.Uf=function(){return this.type===X.Cf};m.prototype.mb=function(){return this.type===X.Df||this.type===X.Cf};m.prototype.Vi=function(){return this.type===
X.String};m.prototype.bg=function(){this.Uf()||(this.Vi()&&(this.data=parseFloat(this.data)),this.type=X.Cf)};m.prototype.wa=function(a){this.type=X.Df;this.data=Math.floor(a)};m.prototype.C=function(a){this.type=X.Cf;this.data=a};m.prototype.ic=function(a){this.type=X.String;this.data=a};m.prototype.mu=function(a){P(a)?(this.type=X.Cf,this.data=a):Q(a)?(this.type=X.String,this.data=a.toString()):(this.type=X.Df,this.data=0)};Xb=m;X={Df:0,Cf:1,String:2}})();function Y(e){this.b=e;this.lc=[]}
Y.prototype.Gb=function(){var e={},m,a,r,v,c,b,g,q;e.waits=[];var t=e.waits,h;m=0;for(a=this.lc.length;m<a;m++){b=this.lc[m];h={t:b.time,st:b.nu,s:b.up,ev:b.Jg.W,sm:[],sols:{}};b.Jg.Pc[b.wc]&&(h.act=b.Jg.Pc[b.wc].W);r=0;for(v=b.Ea.length;r<v;r++)h.sm.push(b.Ea[r].W);for(c in b.jc)if(b.jc.hasOwnProperty(c)){g=this.b.B[parseInt(c,10)];q={sa:b.jc[c].jp,insts:[]};r=0;for(v=b.jc[c].hf.length;r<v;r++)q.insts.push(b.jc[c].hf[r].uid);h.sols[g.W.toString()]=q}t.push(h)}return e};
Y.prototype.ec=function(e){e=e.waits;var m,a,r,v,c,b,g,q,t,h,p;m=this.lc.length=0;for(a=e.length;m<a;m++)if(b=e[m],q=this.b.bn[b.ev.toString()]){t=-1;r=0;for(v=q.Pc.length;r<v;r++)if(q.Pc[r].W===b.act){t=r;break}if(-1!==t){g={jc:{},Ea:[],nn:!1};g.time=b.t;g.nu=b.st||"";g.up=!!b.s;g.Jg=q;g.wc=t;r=0;for(v=b.sm.length;r<v;r++)(q=this.b.Li(b.sm[r]))&&g.Ea.push(q);for(c in b.sols)if(b.sols.hasOwnProperty(c)&&(q=this.b.Li(parseInt(c,10)))){t=b.sols[c];h={jp:t.sa,hf:[]};r=0;for(v=t.insts.length;r<v;r++)(p=
this.b.Og(t.insts[r]))&&h.hf.push(p);g.jc[q.index.toString()]=h}this.lc.push(g)}}};
(function(){function e(){}function m(){}function a(){}var r=Y.prototype;e.prototype.Jm=function(){return!0};e.prototype.vq=function(){return!0};e.prototype.cq=function(a,c,e){return Yb(a,c,e)};e.prototype.Gm=function(){var a=this.b.Db();return a.Ek?!1:!a.mf};e.prototype.Km=function(){return!0};e.prototype.nq=function(){return!0};e.prototype.gk=function(){return!0};e.prototype.wq=function(){return!0};e.prototype.ek=function(){return!0};e.prototype.Zp=function(a,c,e){return Ka(V(a),V(e))<=V(c)};e.prototype.gq=
function(a,c){return Qa(V(a),V(c))};e.prototype.fq=function(a,c,e){a=Ia(a);c=Ia(c);e=Ia(e);return Qa(e,c)?Qa(a,c)&&!Qa(a,e):!(!Qa(a,c)&&Qa(a,e))};r.u=new e;m.prototype.dq=function(a){this.b.Xf||this.b.Se||(this.b.Se=a)};m.prototype.Hq=function(a,c){0===a.ak?P(c)?a.wf(c):a.wf(parseFloat(c)):1===a.ak&&a.wf(c.toString())};m.prototype.Xp=function(a,c){0===a.ak?P(c)?a.wf(a.Mi()+c):a.wf(a.Mi()+parseFloat(c)):1===a.ak&&a.wf(a.Mi()+c.toString())};m.prototype.Gq=function(a){0>a&&(a=0);this.b.Me=a};var v=[],
c=[];m.prototype.Cq=function(){if(!this.b.Xf&&!this.b.Se&&this.b.ma){this.b.Se=this.b.ma;var a,c,e;a=0;for(c=this.b.je.length;a<c;a++)e=this.b.je[a],e.iu(e.Qi)}};r.da=new m;a.prototype["int"]=function(a,c){Q(c)?(a.wa(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.wa(c)};a.prototype["float"]=function(a,c){Q(c)?(a.C(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.C(c)};a.prototype.random=function(a,c,e){void 0===e?a.C(Math.random()*c):a.C(Math.random()*(e-c)+c)};a.prototype.sqrt=function(a,c){a.C(Math.sqrt(c))};
a.prototype.abs=function(a,c){a.C(Math.abs(c))};a.prototype.round=function(a,c){a.wa(Math.round(c))};a.prototype.floor=function(a,c){a.wa(Math.floor(c))};a.prototype.ceil=function(a,c){a.wa(Math.ceil(c))};a.prototype.sin=function(a,c){a.C(Math.sin(V(c)))};a.prototype.cos=function(a,c){a.C(Math.cos(V(c)))};a.prototype.tan=function(a,c){a.C(Math.tan(V(c)))};a.prototype.asin=function(a,c){a.C(Ea(Math.asin(c)))};a.prototype.acos=function(a,c){a.C(Ea(Math.acos(c)))};a.prototype.atan=function(a,c){a.C(Ea(Math.atan(c)))};
a.prototype.exp=function(a,c){a.C(Math.exp(c))};a.prototype.log10=function(a,c){a.C(Math.log(c)/Math.LN10)};a.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var e,m,h;e=2;for(m=arguments.length;e<m;e++)h=arguments[e],"number"===typeof h&&c<h&&(c=h);a.C(c)};a.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var e,m,h;e=2;for(m=arguments.length;e<m;e++)h=arguments[e],"number"===typeof h&&c>h&&(c=h);a.C(c)};a.prototype.Xe=function(a){a.C(this.b.Xe)};a.prototype.Me=
function(a){a.C(this.b.Me)};a.prototype.time=function(a){a.C(this.b.Jc.na)};a.prototype.wd=function(a){a.wa(this.b.wd)};a.prototype.oj=function(a){a.wa(this.b.oj)};a.prototype.Nk=function(a){a.wa(this.b.Nk)};a.prototype.k=function(a,c,e,m,h){a.C(Ea(Ja(c,e,m,h)))};a.prototype.find=function(a,c,e){Q(c)&&Q(e)?a.wa(c.search(new RegExp(ab(e),"i"))):a.wa(-1)};a.prototype.left=function(a,c,e){a.ic(Q(c)?c.substr(0,e):"")};a.prototype.right=function(a,c,e){a.ic(Q(c)?c.substr(c.length-e):"")};a.prototype.replace=
function(a,c,e,m){Q(c)&&Q(e)&&Q(m)?a.ic(c.replace(new RegExp(ab(e),"gi"),m)):a.ic(Q(c)?c:"")};a.prototype.trim=function(a,c){a.ic(Q(c)?c.trim():"")};a.prototype.hr=function(a){var c=T(Math.random()*(arguments.length-1));a.mu(arguments[c+1])};a.prototype.yk=function(a){a.C(this.b.yk/1E3)};a.prototype.ij=function(a){a.C(this.b.ij)};r.lb=new a;r.au=function(){var a,e,q,m,h,p,r=this.b.Db();a=0;for(q=this.lc.length;a<q;a++){m=this.lc[a];if(-1===m.time){if(!m.up)continue}else if(m.time>this.b.Jc.na)continue;
r.Bc=m.Jg;r.wc=m.wc;r.bb=0;for(e in m.jc)m.jc.hasOwnProperty(e)&&(h=this.b.B[parseInt(e,10)].la(),p=m.jc[e],h.za=p.jp,za(h.d,p.hf),h=p,h.hf.length=0,c.push(h));m.Jg.Zt();this.b.wk(m.Ea);m.nn=!0}e=a=0;for(q=this.lc.length;a<q;a++)m=this.lc[a],this.lc[e]=m,m.nn?(Va(m.jc),m.Ea.length=0,v.push(m)):e++;this.lc.length=e}})();
(function(){kb=function(e,a){var r=e[1],v=e[3],c=e[4],b=e[5],g=e[6],q=e[7],t=e[8];a.u||(a.u={});a.da||(a.da={});a.lb||(a.lb={});var h=a.u,p=a.da,y=a.lb;v&&(h.Ou=function(a,b){return Yb(this.x,a,b)},h.Pu=function(a,b){return Yb(this.y,a,b)},h.Wu=function(){var a=this.n;this.xa();var b=this.Fa;return!(b.right<a.Ja||b.bottom<a.Ka||b.left>a.ab||b.top>a.$a)},h.Xu=function(){this.xa();var a=this.Fa,b=this.b.ma;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},h.jv=function(a,b,c){var f=this.la(),
e=f.Ec();if(!e.length)return!1;var g=e[0],d=g,h=Sa(g.x,g.y,b,c),q,m,p;q=1;for(m=e.length;q<m;q++)if(g=e[q],p=Sa(g.x,g.y,b,c),0===a&&p<h||1===a&&p>h)h=p,d=g;f.Dh(d);return!0},p.Cv=function(a){this.x!==a&&(this.x=a,this.O())},p.Dv=function(a){this.y!==a&&(this.y=a,this.O())},p.yv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.O()},p.zv=function(a,b){var c=a.ys(this);if(c){var f;c.Tk?(f=c.Tk(b,!0),c=c.Tk(b,!1)):(f=c.x,c=c.y);if(this.x!==f||this.y!==c)this.x=f,this.y=c,this.O()}},p.bv=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.O())},p.av=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.O())},y.Rm=function(a){a.C(this.x)},y.Sm=function(a){a.C(this.y)},y.Xe=function(a){a.C(this.b.Ji(this))});c&&(h.Nu=function(a,b){return Yb(this.width,a,b)},h.Ku=function(a,b){return Yb(this.height,a,b)},p.Iq=function(a){this.width!==a&&(this.width=a,this.O())},p.vv=function(a){this.height!==a&&(this.height=a,this.O())},p.Av=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.O()},y.Hv=function(a){a.C(this.width)},y.Su=function(a){a.C(this.height)},y.Gu=function(a){this.xa();a.C(this.Fa.left)},y.Iu=function(a){this.xa();a.C(this.Fa.top)},y.Hu=function(a){this.xa();a.C(this.Fa.right)},y.Fu=function(a){this.xa();a.C(this.Fa.bottom)});b&&(h.Zp=function(a,b){return Ka(this.k,V(b))<=V(a)},h.gq=function(a){return Qa(this.k,V(a))},h.fq=function(a,b){var c=Ia(a),f=Ia(b),e=W(this.k);return Qa(f,c)?Qa(e,c)&&!Qa(e,
f):!(!Qa(e,c)&&Qa(e,f))},p.Dq=function(a){a=V(Ga(a));isNaN(a)||this.k===a||(this.k=a,this.O())},p.ov=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=W(this.k),this.O())},p.pv=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=W(this.k),this.O())},p.qv=function(a,b){var c=La(this.k,V(b),V(a));isNaN(c)||this.k===c||(this.k=c,this.O())},p.rv=function(a,b,c){a=La(this.k,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.O())},p.Bv=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.k===c||(this.k=c,this.O())},y.Yp=function(a){a.C(Ha(this.k))});r||(h.Lu=function(a,b,c){return Yb(this.eb[a],b,c)},h.Uu=function(a){return this.eb[a]},h.kv=function(a,b){var c=this.la(),f=c.Ec();if(!f.length)return!1;var e=f[0],g=e,d=e.eb[b],h,q,m;h=1;for(q=f.length;h<q;h++)if(e=f[h],m=e.eb[b],0===a&&m<d||1===a&&m>d)d=m,g=e;c.Dh(g);return!0},h.hv=function(a){var b,c,f,e,g;if(this.b.An().gl){g=this.la();if(g.za)for(g.za=!1,g.d.length=0,g.ca.length=0,f=this.d,b=0,c=f.length;b<c;b++)e=
f[b],e.uid===a?g.ca.push(e):g.d.push(e);else{f=b=0;for(c=g.d.length;b<c;b++)e=g.d[b],g.d[f]=e,e.uid===a?g.ca.push(e):f++;g.d.length=f}this.Rc();return!!g.d.length}e=this.b.Og(a);if(!e)return!1;g=this.la();if(!g.za&&-1===g.d.indexOf(e))return!1;if(this.U)for(a=e.type.Ca,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Dh(e),this.Rc(),!0}else if(e.type===this)return g.Dh(e),this.Rc(),!0;return!1},h.Hm=function(){return!0},h.Im=function(){return!0},p.wv=function(a,b){var c=this.eb;P(c[a])?c[a]=P(b)?b:
parseFloat(b):Q(c[a])&&(c[a]=Q(b)?b:b.toString())},p.Eu=function(a,b){var c=this.eb;P(c[a])?c[a]=P(b)?c[a]+b:c[a]+parseFloat(b):Q(c[a])&&(c[a]=Q(b)?c[a]+b:c[a]+b.toString())},p.Ev=function(a,b){var c=this.eb;P(c[a])&&(c[a]=P(b)?c[a]-b:c[a]-parseFloat(b))},p.sv=function(a,b){this.eb[a]=b?1:0},p.Fv=function(a){this.eb[a]=1-this.eb[a]},p.Ru=function(){this.b.ge(this)},p.iq||(p.iq=function(a){var b,c;try{b=JSON.parse(a)}catch(f){return}this.b.fj(this,b,!0);this.Bd&&this.Bd();if(this.L)for(a=0,b=this.L.length;a<
b;++a)c=this.L[a],c.Bd&&c.Bd()}),y.Qu=function(a){var b=a.fg.d.length,c,f,e;c=0;for(f=this.b.Sc.length;c<f;c++)e=this.b.Sc[c],a.fg.U?0<=e.type.Ca.indexOf(a.fg)&&b++:e.type===a.fg&&b++;a.wa(b)},y.nv=function(a){a.wa(a.fg.la().Ec().length)},y.Gv=function(a){a.wa(this.uid)},y.Tu=function(a){a.wa(this.Qg())},y.$p||(y.$p=function(a){a.ic(JSON.stringify(this.b.em(this,!0)))}));g&&(h.Yu=function(){return this.visible},p.Qm=function(a){!a!==!this.visible&&(this.visible=a,this.b.ta=!0)},h.Mu=function(a,b){return Yb(gb(100*
this.opacity),a,b)},p.xv=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ta=!0)},y.Opacity=function(a){a.C(gb(100*this.opacity))});q&&(h.Vu=function(a){return a?this.n===a:!1},h.lv=function(a){var b=this.la(),c=b.Ec();if(!c.length)return!1;var f=c[0],e=f,g,d;g=1;for(d=c.length;g<d;g++)if(f=c[g],0===a){if(f.n.index>e.n.index||f.n.index===e.n.index&&f.Fc()>e.Fc())e=f}else if(f.n.index<e.n.index||f.n.index===e.n.index&&f.Fc()<e.Fc())e=f;b.Dh(e);return!0},p.jq=function(){var a=
this.n,b=a.d;b.length&&b[b.length-1]===this||(a.mg(this,!1),a.Cg(this,!1),this.b.ta=!0)},p.cv=function(){var a=this.n,b=a.d;b.length&&b[0]===this||(a.mg(this,!1),a.Nt(this),this.b.ta=!0)},p.dv=function(a){a&&a!=this.n&&(this.n.mg(this,!0),this.n=a,a.Cg(this,!0),this.b.ta=!0)},p.Jv=function(a,b){var c=0===a;if(b){var f=b.Dn(this);f&&f.uid!==this.uid&&(this.n.index!==f.n.index&&(this.n.mg(this,!0),this.n=f.n,f.n.Cg(this,!0)),this.n.ut(this,f,c),this.b.ta=!0)}},y.$u=function(a){a.wa(this.n.Jo)},y.Zu=
function(a){a.ic(this.n.name)},y.Iv=function(a){a.wa(this.Fc())});t&&(p.tv=function(a,b){if(this.b.F){var c=this.type.Sk(b);if(!(0>c)){var f=1===a;this.ie[c]!==f&&(this.ie[c]=f,this.be(),this.b.ta=!0)}}},p.uv=function(a,b,c){if(this.b.F){var f=this.type.Sk(a);0>f||(a=this.type.M[f],f=this.Ha[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.F.Cs(a.ub,b)&&(c/=100),f[b]!==c&&(f[b]=c,a.xb&&(this.b.ta=!0))))}})};Eb=function(){this.rk=this.nk=!0;this.type.ai=!0;this.b.ta=!0;var e,a,r=this.ok;e=0;for(a=
r.length;e<a;++e)r[e](this);this.n.ed&&this.xa()};Fb=function(e){e&&this.ok.push(e)};Hb=function(){if(this.nk){var e=this.Fa,a=this.Kb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Zb*this.width,-this.$b*this.height);this.k?(e.offset(-this.x,-this.y),a.qp(e,this.k),a.offset(this.x,this.y),a.cn(e)):a.Nh(e);e.normalize();this.nk=!1;this.yu()}};var e=new U(0,0,0,0);Ib=function(){if(this.n.ed){var m=this.n.hc,a=this.Fa;e.set(m.mc(a.left),m.nc(a.top),m.mc(a.right),m.nc(a.bottom));
this.Rb.xi(e)||(this.Rb.right<this.Rb.left?m.update(this,null,e):m.update(this,this.Rb,e),this.Rb.mi(e),this.n.Xd=!0)}};Jb=function(){if(this.rk&&this.Ed){this.xa();var m=this.type.ji,a=this.Fa;e.set(m.mc(a.left),m.nc(a.top),m.mc(a.right),m.nc(a.bottom));this.oe.xi(e)||(this.oe.right<this.oe.left?m.update(this,null,e):m.update(this,this.oe,e),this.oe.mi(e),this.rk=!1)}};Gb=function(e,a){return this.Fa.yb(e,a)&&this.Kb.yb(e,a)?this.ba&&!this.ba.Tf()?(this.ba.Hf(this.width,this.height,this.k),this.ba.yb(e-
this.x,a-this.y)):!0:!1};Ab=function(){this.type.Zj();return this.ef};Kb=function(){this.n.xm();return this.gd};Lb=function(){this.aa.length=0;var e,a;e=0;for(a=this.ie.length;e<a;e++)this.ie[e]&&this.aa.push(this.type.M[e]);this.Vp=!!this.aa.length};Bb=function(){return"Inst"+this.fp};nb=function(e){if(e&&e.Vc&&e.type!=this){var a,r,v;a=0;for(r=e.siblings.length;a<r;a++)if(v=e.siblings[a],v.type==this)return v}e=this.la().Ec();return e.length?e[0]:null};ob=function(e){var a=this.la().Ec();return a.length?
a[e.Qg()%a.length]:null};mb=function(){if(this.tg&&!this.U){var e,a;e=0;for(a=this.d.length;e<a;e++)this.d[e].ef=e;var r=e,v=this.b.Sc;e=0;for(a=v.length;e<a;++e)v[e].type===this&&(v[e].ef=r++);this.tg=!1}};yb=function(e){if(e<this.d.length)return this.d[e];e-=this.d.length;var a=this.b.Sc,r,v;r=0;for(v=a.length;r<v;++r)if(a[r].type===this){if(0===e)return a[r];--e}return null};pb=function(){return this.Ke[this.Jd]};qb=function(){this.Jd++;this.Jd===this.Ke.length?this.Ke.push(new lb(this)):this.Ke[this.Jd].za=
!0};rb=function(){this.Jd++;this.Jd===this.Ke.length&&this.Ke.push(new lb(this));var e=this.Ke[this.Jd],a=this.Ke[this.Jd-1];a.za?e.za=!0:(e.za=!1,za(e.d,a.d),za(e.ca,a.ca))};sb=function(){this.Jd--};ub=function(e){var a,r,v,c,b,g=0;if(!this.U)for(a=0,r=this.Ca.length;a<r;a++)for(b=this.Ca[a],v=0,c=b.Ra.length;v<c;v++){if(e===b.Ra[v].name)return this.ka.lastBehIndex=g,b.Ra[v];g++}a=0;for(r=this.Ra.length;a<r;a++){if(e===this.Ra[a].name)return this.ka.lastBehIndex=g,this.Ra[a];g++}return null};vb=
function(e){return this.Ii(e)?this.ka.lastBehIndex:-1};wb=function(e){var a,r;a=0;for(r=this.M.length;a<r;a++)if(this.M[a].name===e)return a;return-1};xb=function(){if(this.Vc&&!this.U){var e,a,r,v,c,b,g;this.Zj();b=this.la();var q=b.za,t=(e=this.b.Db())&&e.Bc&&e.Bc.Yc;e=0;for(a=this.Xb.length;e<a;e++)if(c=this.Xb[e],c!==this&&(c.Zj(),g=c.la(),g.za=q,!q)){g.d.length=b.d.length;r=0;for(v=b.d.length;r<v;r++)g.d[r]=c.En(b.d[r].ef);if(t)for(g.ca.length=b.ca.length,r=0,v=b.ca.length;r<v;r++)g.ca[r]=c.En(b.ca[r].ef)}}};
zb=function(){return"Type"+this.W};Yb=function(e,a,r){if("undefined"===typeof e||"undefined"===typeof r)return!1;switch(a){case 0:return e===r;case 1:return e!==r;case 2:return e<r;case 3:return e<=r;case 4:return e>r;case 5:return e>=r;default:return!1}}})();var gc={};function lc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].pc():z.destination}function a(){return z.createGain?z.createGain():z.createGainNode()}function r(a){return z.createDelay?z.createDelay(a):z.createDelayNode(a)}function v(a){a.start?a.start(0):a.noteOn(0)}function c(a,d,b){a.start?a.start(0,d):a.noteGrainOn(0,d,b-d)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(d){}}function g(d,
b,c,f,e,g){this.type="filter";this.Zc=[d,b,c,f,e,g];this.Y=a();this.K=a();this.K.gain.value=g;this.I=a();this.I.gain.value=1-g;this.Sa=z.createBiquadFilter();this.Sa.type="number"===typeof this.Sa.type?d:uc[d];this.Sa.frequency.value=b;this.Sa.detune&&(this.Sa.detune.value=c);this.Sa.Q.value=f;this.Sa.gain.value=e;this.Y.connect(this.Sa);this.Y.connect(this.I);this.Sa.connect(this.K)}function q(d,b,c){this.type="delay";this.Zc=[d,b,c];this.Y=a();this.K=a();this.K.gain.value=c;this.I=a();this.I.gain.value=
1-c;this.ph=a();this.Cc=r(d);this.Cc.delayTime.value=d;this.ti=a();this.ti.gain.value=b;this.Y.connect(this.ph);this.Y.connect(this.I);this.ph.connect(this.K);this.ph.connect(this.Cc);this.Cc.connect(this.ti);this.ti.connect(this.ph)}function t(d,b,c,f){this.type="convolve";this.Zc=[b,c,f];this.Y=a();this.K=a();this.K.gain.value=c;this.I=a();this.I.gain.value=1-c;this.Te=z.createConvolver();d&&(this.Te.normalize=b,this.Te.buffer=d);this.Y.connect(this.Te);this.Y.connect(this.I);this.Te.connect(this.K)}
function h(d,b,c,f,e){this.type="flanger";this.Zc=[d,b,c,f,e];this.Y=a();this.I=a();this.I.gain.value=1-e/2;this.K=a();this.K.gain.value=e/2;this.Ci=a();this.Ci.gain.value=f;this.Cc=r(d+b);this.Cc.delayTime.value=d;this.ob=z.createOscillator();this.ob.frequency.value=c;this.gc=a();this.gc.gain.value=b;this.Y.connect(this.Cc);this.Y.connect(this.I);this.Cc.connect(this.K);this.Cc.connect(this.Ci);this.Ci.connect(this.Cc);this.ob.connect(this.gc);this.gc.connect(this.Cc.delayTime);v(this.ob)}function p(d,
b,c,f,e,g){this.type="phaser";this.Zc=[d,b,c,f,e,g];this.Y=a();this.I=a();this.I.gain.value=1-g/2;this.K=a();this.K.gain.value=g/2;this.Sa=z.createBiquadFilter();this.Sa.type="number"===typeof this.Sa.type?7:"allpass";this.Sa.frequency.value=d;this.Sa.detune&&(this.Sa.detune.value=b);this.Sa.Q.value=c;this.ob=z.createOscillator();this.ob.frequency.value=e;this.gc=a();this.gc.gain.value=f;this.Y.connect(this.Sa);this.Y.connect(this.I);this.Sa.connect(this.K);this.ob.connect(this.gc);this.gc.connect(this.Sa.frequency);
v(this.ob)}function y(d){this.type="gain";this.Zc=[d];this.Z=a();this.Z.gain.value=d}function k(d,b){this.type="tremolo";this.Zc=[d,b];this.Z=a();this.Z.gain.value=1-b/2;this.ob=z.createOscillator();this.ob.frequency.value=d;this.gc=a();this.gc.gain.value=b/2;this.ob.connect(this.gc);this.gc.connect(this.Z.gain);v(this.ob)}function w(d,b){this.type="ringmod";this.Zc=[d,b];this.Y=a();this.K=a();this.K.gain.value=b;this.I=a();this.I.gain.value=1-b;this.Kh=a();this.Kh.gain.value=0;this.ob=z.createOscillator();
this.ob.frequency.value=d;this.ob.connect(this.Kh.gain);v(this.ob);this.Y.connect(this.Kh);this.Y.connect(this.I);this.Kh.connect(this.K)}function B(d,b,c,f,e){this.type="distortion";this.Zc=[d,b,c,f,e];this.Y=a();this.xj=a();this.wj=a();this.hu(c,Math.pow(10,f/20));this.K=a();this.K.gain.value=e;this.I=a();this.I.gain.value=1-e;this.bk=z.createWaveShaper();this.ri=new Float32Array(65536);this.rs(d,b);this.bk.ri=this.ri;this.Y.connect(this.xj);this.Y.connect(this.I);this.xj.connect(this.bk);this.bk.connect(this.wj);
this.wj.connect(this.K)}function f(a,d,b,c,f){this.type="compressor";this.Zc=[a,d,b,c,f];this.Z=z.createDynamicsCompressor();try{this.Z.threshold.value=a,this.Z.knee.value=d,this.Z.ratio.value=b,this.Z.attack.value=c,this.Z.release.value=f}catch(e){}}function n(a,d){this.type="analyser";this.Zc=[a,d];this.Z=z.createAnalyser();this.Z.fftSize=a;this.Z.smoothingTimeConstant=d;this.os=new Float32Array(this.Z.frequencyBinCount);this.tp=new Uint8Array(a);this.Ch=0}function u(){this.J=null;this.hj=0;this.Le=
[];this.Cl=this.Yi=this.Xi=0}function d(d,b){this.src=d;this.T=H;this.Wc=b;this.Ym=!1;var c=this;this.Al=this.Pl=null;this.kg=[];this.Hj=0;this.Cm=this.Jk=this.yp=this.rj=!1;1===H&&b&&(this.T=0,this.Pl=a());this.Qe=this.ea=null;var f;switch(this.T){case 0:this.ea=new Audio;this.ea.addEventListener("canplaythrough",function(){c.Cm=!0});1===H&&z.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.yp=!0,this.ea.addEventListener("canplay",function(){c.Al||(c.Al=z.createMediaElementSource(c.ea),
c.Al.connect(c.Pl))}));this.ea.autoplay=!1;this.ea.Tv="auto";this.ea.src=d;break;case 1:f=new XMLHttpRequest;f.open("GET",d,!0);f.responseType="arraybuffer";f.onload=function(){c.Qe=f.response;c.nr()};f.onerror=function(){c.Jk=!0};f.send();break;case 2:this.ea=!0;break;case 3:this.ea=!0}}function l(d,b){var c=this;this.tag=b;this.kc=this.ld=!0;this.src=d.src;this.buffer=d;this.T=H;this.Wc=d.Wc;this.playbackRate=1;this.xk=!0;this.Ic=this.Yd=!1;this.Sb=0;this.$g=this.Vf=this.nd=!1;this.volume=1;this.kf=
1===O&&!this.Wc||2===O;this.cg=1;this.startTime=this.kf?A.Jc.na:A.Ad.na;this.Pa=this.Ta=null;this.qd=!1;this.Oa=null;this.Uo=this.To=this.So=this.Ro=this.Wo=this.Vo=0;this.q=null;var f=!1;1!==this.T||0!==this.buffer.T||this.buffer.yp||(this.T=0);switch(this.T){case 0:this.Wc?(this.q=d.ea,f=!d.Ym,d.Ym=!0):(this.q=new Audio,this.q.autoplay=!1,this.q.src=d.ea.src,f=!0);f&&this.q.addEventListener("ended",function(){fa=c.tag;c.kc=!0;A.trigger(lc.prototype.u.dk,ua)});break;case 1:this.Ta=a();this.Ta.connect(m(b));
1===this.buffer.T?d.ea&&(this.q=z.createBufferSource(),this.q.buffer=d.ea,this.q.connect(this.Ta)):(this.q=this.buffer.ea,this.buffer.Pl.connect(this.Ta));break;case 2:this.q=new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.xk=!0,c.kc=!0,fa=c.tag,A.trigger(lc.prototype.u.dk,ua))});break;case 3:this.q=!0}}function s(a){Aa.length=0;if(a.length){var d,b,c;d=0;for(b=D.length;d<b;d++)c=D[d],hb(a,c.tag)&&Aa.push(c)}else G&&!G.df()&&(Aa.length=1,Aa[0]=G)}function E(a,
d){S.hasOwnProperty(a)?S[a].push(d):S[a]=[d];var b,c,f,e,g=z.destination;if(S.hasOwnProperty(a)&&(f=S[a],f.length))for(g=f[0].pc(),b=0,c=f.length;b<c;b++)e=f[b],b+1===c?e.yc(z.destination):e.yc(f[b+1].pc());s(a);b=0;for(c=Aa.length;b<c;b++)Aa[b].Ut(g);Fa&&tb===a&&(Fa.disconnect(),Fa.connect(g))}function C(){}function x(){}var R=lc.prototype;R.Aa=function(a){this.Va=a;this.b=a.b};R.Aa.prototype.V=function(){};var A=null,ua=null,fa="",K="",H=0,z=null,xa=[],D=[],G=null,I=!1,O=0,F=!1,J=1,L=0,ca=0,M=1,
ja=1,ga=10,va=1E4,wa=1,Fa=null,tb="",Ma=!1,Na=[],S={},uc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");g.prototype.yc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};g.prototype.remove=function(){this.Y.disconnect();this.Sa.disconnect();this.K.disconnect();this.I.disconnect()};g.prototype.pc=function(){return this.Y};q.prototype.yc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};q.prototype.remove=
function(){this.Y.disconnect();this.ph.disconnect();this.Cc.disconnect();this.ti.disconnect();this.K.disconnect();this.I.disconnect()};q.prototype.pc=function(){return this.Y};t.prototype.yc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};t.prototype.remove=function(){this.Y.disconnect();this.Te.disconnect();this.K.disconnect();this.I.disconnect()};t.prototype.pc=function(){return this.Y};h.prototype.yc=function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();
this.K.connect(a)};h.prototype.remove=function(){this.Y.disconnect();this.Cc.disconnect();this.ob.disconnect();this.gc.disconnect();this.I.disconnect();this.K.disconnect();this.Ci.disconnect()};h.prototype.pc=function(){return this.Y};p.prototype.yc=function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};p.prototype.remove=function(){this.Y.disconnect();this.Sa.disconnect();this.ob.disconnect();this.gc.disconnect();this.I.disconnect();this.K.disconnect()};p.prototype.pc=
function(){return this.Y};y.prototype.yc=function(a){this.Z.disconnect();this.Z.connect(a)};y.prototype.remove=function(){this.Z.disconnect()};y.prototype.pc=function(){return this.Z};k.prototype.yc=function(a){this.Z.disconnect();this.Z.connect(a)};k.prototype.remove=function(){this.ob.disconnect();this.gc.disconnect();this.Z.disconnect()};k.prototype.pc=function(){return this.Z};w.prototype.yc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};w.prototype.remove=
function(){this.ob.disconnect();this.Kh.disconnect();this.Y.disconnect();this.K.disconnect();this.I.disconnect()};w.prototype.pc=function(){return this.Y};B.prototype.hu=function(a,d){.01>a&&(a=.01);this.xj.gain.value=a;this.wj.gain.value=Math.pow(1/a,.6)*d};B.prototype.shape=function(a,d,b){var c=1.05*b*d-d;b=0>a?-1:1;a=0>a?-a:a;d=a<d?a:d+c*(1-Math.exp(-(1/c)*(a-d)));return d*b};B.prototype.rs=function(a,d){for(var b=Math.pow(10,a/20),c=Math.pow(10,d/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,
b,c),this.ri[32768+e]=f,this.ri[32768-e-1]=-f};B.prototype.yc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};B.prototype.remove=function(){this.Y.disconnect();this.xj.disconnect();this.bk.disconnect();this.wj.disconnect();this.K.disconnect();this.I.disconnect()};B.prototype.pc=function(){return this.Y};f.prototype.yc=function(a){this.Z.disconnect();this.Z.connect(a)};f.prototype.remove=function(){this.Z.disconnect()};f.prototype.pc=function(){return this.Z};
n.prototype.Ia=function(){this.Z.getFloatFrequencyData(this.os);this.Z.getByteTimeDomainData(this.tp);for(var a=this.Z.fftSize,d=0,b=this.Ch=0,c=0;d<a;d++)c=(this.tp[d]-128)/128,0>c&&(c=-c),this.Ch<c&&(this.Ch=c),b+=c*c;this.Ch=e(this.Ch);e(Math.sqrt(b/a))};n.prototype.yc=function(a){this.Z.disconnect();this.Z.connect(a)};n.prototype.remove=function(){this.Z.disconnect()};n.prototype.pc=function(){return this.Z};u.prototype.Lh=function(a){if(this.J=a)this.Xi=this.J.x,this.Yi=this.J.y;this.Le.length=
0};u.prototype.Pi=function(){return!!this.J};u.prototype.Ia=function(a){this.J&&0!==a&&(this.Cl=Ja(this.Xi,this.Yi,this.J.x,this.J.y),a=Sa(this.Xi,this.Yi,this.J.x,this.J.y)/a,4>this.Le.length||this.Le.shift(),this.Le.push(a),this.Xi=this.J.x,this.Yi=this.J.y)};u.prototype.In=function(){if(!this.Le.length)return 0;var a,d,b=0;a=0;for(d=this.Le.length;a<d;a++)b+=this.Le[a];return b/this.Le.length};u.prototype.Wk=function(){return Math.cos(this.Cl)*this.In()};u.prototype.Xk=function(){return Math.sin(this.Cl)*
this.In()};var qc=!1;d.prototype.nr=function(){if(!this.ea&&this.Qe){var a=this;if(z.decodeAudioData)z.decodeAudioData(this.Qe,function(d){a.ea=d;a.Qe=null;var b,c,f;if(ha(a.tj)||F)ha(a.li)||(b=a.li.Te,b.normalize=a.Io,b.buffer=d);else if(a.kg.length){b=0;for(c=a.kg.length;b<c;b++){d=a.kg[b];f=new l(a,d.Fp);f.im(!0);if("undefined"!==typeof d.Ko&&(d.J=A.Og(d.Ko),!d.J))continue;if(d.J){var e=Ra(d.J.x,d.J.y,-d.J.n.Ua(),L,ca,!0),g=Ra(d.J.x,d.J.y,-d.J.n.Ua(),L,ca,!1);f.hm(e,g,Ea(d.J.k-d.J.n.Ua()),d.bl,
d.El,d.Hl);f.Lh(d.J)}else f.hm(d.x,d.y,d.Pq,d.bl,d.El,d.Hl);f.play(a.yl,a.Bm,a.Hj);a.rj&&f.pause();D.push(f)}a.kg.length=0}else f=new l(a,a.tj),f.play(a.yl,a.Bm,a.Hj),a.rj&&f.pause(),D.push(f)},function(){a.Jk=!0});else if(this.ea=z.createBuffer(this.Qe,!1),this.Qe=null,ha(this.tj)||F)ha(this.li)||(d=this.li.Te,d.normalize=this.Io,d.buffer=this.ea);else{var d=new l(this,this.tj);d.play(this.yl,this.Bm,this.Hj);this.rj&&d.pause();D.push(d)}}};d.prototype.Sn=function(){switch(this.T){case 0:var a=4<=
this.ea.readyState;a&&(this.Cm=!0);return a||this.Cm;case 1:return!!this.Qe||!!this.ea;case 2:return!0;case 3:return!0}return!1};d.prototype.gt=function(){switch(this.T){case 0:return this.Sn();case 1:return!!this.ea;case 2:return!0;case 3:return!0}return!1};d.prototype.Ws=function(){switch(this.T){case 0:return!!this.ea.error;case 1:return this.Jk}return!1};l.prototype.df=function(){var a;switch(this.T){case 0:return this.q.ended;case 1:if(1===this.buffer.T){if(!this.ld&&!this.kc&&this.q.loop||this.Ic)return!1;
a=this.kf?A.Jc.na:A.Ad.na;return a-this.startTime>this.buffer.ea.duration}return this.q.ended;case 2:return this.xk;case 3:!0}return!0};l.prototype.er=function(){return this.ld||this.kc?!0:this.df()};l.prototype.im=function(a){1===H&&(!this.qd&&a?this.Ta&&(this.Pa||(this.Pa=z.createPanner(),this.Pa.panningModel="number"===typeof this.Pa.panningModel?M:["equalpower","HRTF","soundfield"][M],this.Pa.distanceModel="number"===typeof this.Pa.distanceModel?ja:["linear","inverse","exponential"][ja],this.Pa.refDistance=
ga,this.Pa.maxDistance=va,this.Pa.rolloffFactor=wa),this.Ta.disconnect(),this.Ta.connect(this.Pa),this.Pa.connect(m(this.tag)),this.qd=!0):this.qd&&!a&&this.Ta&&(this.Pa.disconnect(),this.Ta.disconnect(),this.Ta.connect(m(this.tag)),this.qd=!1))};l.prototype.hm=function(a,d,b,c,f,e){this.qd&&1===H&&(this.Pa.setPosition(a,d,0),this.Pa.setOrientation(Math.cos(V(b)),Math.sin(V(b)),0),this.Pa.coneInnerAngle=c,this.Pa.coneOuterAngle=f,this.Pa.coneOuterGain=e,this.Vo=a,this.Wo=d,this.Ro=b,this.So=c,this.To=
f,this.Uo=e)};l.prototype.Lh=function(a){this.qd&&1===H&&(this.Oa||(this.Oa=new u),this.Oa.Lh(a))};l.prototype.Ia=function(a){if(this.qd&&1===H&&this.Oa&&this.Oa.Pi()&&this.Rf()){this.Oa.Ia(a);a=this.Oa.J;var d=Ra(a.x,a.y,-a.n.Ua(),L,ca,!0),b=Ra(a.x,a.y,-a.n.Ua(),L,ca,!1);this.Pa.setPosition(d,b,0);d=0;"undefined"!==typeof this.Oa.J.k&&(d=a.k-a.n.Ua(),this.Pa.setOrientation(Math.cos(d),Math.sin(d),0));d=Ra(this.Oa.Wk(),this.Oa.Xk(),-a.n.Ua(),0,0,!0);b=Ra(this.Oa.Wk(),this.Oa.Xk(),-a.n.Ua(),0,0,!1);
this.Pa.setVelocity(d,b,0)}};l.prototype.play=function(a,d,b){var f=this.q;this.nd=a;this.volume=d;b=b||0;switch(this.T){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==d*J&&(f.volume=d*J);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==b)try{f.currentTime=b}catch(e){}if(this.Wc&&Ma&&!A.Na)Na.push(this);else try{this.q.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.cg=
1;if(1===this.buffer.T)this.ld||(this.q=z.createBufferSource(),this.q.buffer=this.buffer.ea,this.q.connect(this.Ta)),this.q.loop=a,this.Ta.gain.value=d*J,0===b?v(this.q):c(this.q,b,this.bf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);this.Ta.gain.value=d*J;if(f.currentTime!==b)try{f.currentTime=b}catch(h){}this.Wc&&Ma&&!A.Na?Na.push(this):f.play()}break;case 2:(!this.ld&&this.kc||0!==b)&&f.seekTo(b);f.play();this.xk=!1;break;case 3:A.sb?AppMobi.context.playSound(this.src,
a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.kf?A.Jc.na:A.Ad.na)-b;this.Ic=this.kc=this.ld=!1};l.prototype.stop=function(){switch(this.T){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.T?b(this.q):this.q.paused||this.q.pause();break;case 2:this.q.stop();break;case 3:A.sb&&AppMobi.context.stopSound(this.src)}this.kc=!0;this.Ic=!1};l.prototype.pause=function(){if(!(this.ld||this.kc||this.df()||this.Ic)){switch(this.T){case 0:this.q.paused||this.q.pause();
break;case 1:1===this.buffer.T?(this.Sb=this.Uk(),this.nd&&(this.Sb%=this.bf()),b(this.q)):this.q.paused||this.q.pause();break;case 2:this.q.pause();break;case 3:A.sb&&AppMobi.context.stopSound(this.src)}this.Ic=!0}};l.prototype.Yt=function(){if(!(this.ld||this.kc||this.df())&&this.Ic){switch(this.T){case 0:this.q.play();break;case 1:1===this.buffer.T?(this.q=z.createBufferSource(),this.q.buffer=this.buffer.ea,this.q.connect(this.Ta),this.q.loop=this.nd,this.Ta.gain.value=J*this.volume*this.cg,this.startTime=
(this.kf?A.Jc.na:A.Ad.na)-this.Sb,c(this.q,this.Sb,this.bf())):this.q.play();break;case 2:this.q.play();break;case 3:A.sb&&AppMobi.context.resumeSound(this.src)}this.Ic=!1}};l.prototype.seek=function(a){if(!(this.ld||this.kc||this.df()))switch(this.T){case 0:try{this.q.currentTime=a}catch(d){}break;case 1:if(1===this.buffer.T)this.Ic?this.Sb=a:(this.pause(),this.Sb=a,this.Yt());else try{this.q.currentTime=a}catch(b){}break;case 3:A.sb&&AppMobi.context.seekSound(this.src,a)}};l.prototype.Ut=function(a){1===
this.T&&(this.qd?(this.Pa.disconnect(),this.Pa.connect(a)):(this.Ta.disconnect(),this.Ta.connect(a)))};l.prototype.bf=function(){switch(this.T){case 0:if("undefined"!==typeof this.q.duration)return this.q.duration;break;case 1:return this.buffer.ea.duration;case 2:return this.q.getDuration();case 3:if(A.sb)return AppMobi.context.getDurationSound(this.src)}return 0};l.prototype.Uk=function(){var a=this.bf(),d=0;switch(this.T){case 0:"undefined"!==typeof this.q.currentTime&&(d=this.q.currentTime);break;
case 1:if(1===this.buffer.T){if(this.Ic)return this.Sb;d=(this.kf?A.Jc.na:A.Ad.na)-this.startTime}else"undefined"!==typeof this.q.currentTime&&(d=this.q.currentTime);break;case 3:A.sb&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}!this.nd&&d>a&&(d=a);return d};l.prototype.Rf=function(){return!this.Ic&&!this.ld&&!this.kc&&!this.df()};l.prototype.wu=function(){var a=this.volume*J;switch(this.T){case 0:this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case 1:this.Ta.gain.value=a*this.cg}};
l.prototype.wi=function(a){switch(this.T){case 0:this.q.muted!==!!a&&(this.q.muted=!!a);break;case 1:this.cg=a?0:1,this.Ta.gain.value=J*this.volume*this.cg}};l.prototype.ju=function(){this.Vf=!0;this.wi(this.Vf||this.$g)};l.prototype.np=function(a){this.$g=!!a;this.wi(this.Vf||this.$g)};l.prototype.Tp=function(){var a=this.playbackRate;this.kf&&(a*=A.Me);switch(this.T){case 0:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case 1:1===this.buffer.T?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=
a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};l.prototype.lu=function(a){switch(this.T){case 0:a?this.Rf()?(this.q.pause(),this.Yd=!0):this.Yd=!1:this.Yd&&this.q.play();break;case 1:a?this.Rf()?(1===this.buffer.T?(this.Sb=this.Uk(),this.nd&&(this.Sb%=this.bf()),b(this.q)):this.q.pause(),this.Yd=!0):this.Yd=!1:this.Yd&&(1===this.buffer.T?(this.q=z.createBufferSource(),this.q.buffer=this.buffer.ea,this.q.connect(this.Ta),this.q.loop=this.nd,this.Ta.gain.value=J*this.volume*this.cg,this.startTime=
(this.kf?A.Jc.na:A.Ad.na)-this.Sb,c(this.q,this.Sb,this.bf())):this.q.play());break;case 2:a?this.Rf()?(this.q.pause(),this.Yd=!0):this.Yd=!1:this.Yd&&this.q.play()}};R.ja=function(a){this.type=a;A=this.b=a.b;ua=this;this.Eb=null;this.hh=-600;!(this.b.Wi||this.b.Ri&&(this.b.Wg||this.b.Si))||this.b.Xg||this.b.ya||(Ma=!0);z=null;"undefined"!==typeof AudioContext?(H=1,z=new AudioContext):"undefined"!==typeof webkitAudioContext&&(H=1,z=new webkitAudioContext);(this.b.Wi&&1===H||Ma)&&document.addEventListener("touchstart",
function(){var a,d,b;!qc&&z&&(a=z.createBuffer(1,1,22050),d=z.createBufferSource(),d.buffer=a,d.connect(z.destination),v(d),qc=!0);if(Ma){if(!F)for(a=0,d=Na.length;a<d;++a)b=Na[a],b.kc||b.Ic||b.q.play();Na.length=0}},!0);1!==H&&(this.b.Gc&&"undefined"!==typeof window.Media?H=2:this.b.Qf&&(H=3));2===H&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),K=K.replace("file://",""));if(this.b.Tn&&this.b.ht&&"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.ge(this);else{if(this.b.sb)I=this.b.Ri;else try{I=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(d){I=!1}this.b.om(this)}};var ka=R.ja.prototype;ka.V=function(){this.b.Gf=this;O=this.H[0];this.Zd=this.H[1];this.Ht=0!==this.H[2];M=this.H[3];ja=this.H[4];this.hh=-this.H[5];ga=this.H[6];va=this.H[7];wa=this.H[8];this.Eb=new u;var a=this.b.R||this.b.width,d=this.b.P||this.b.height;1===H&&(z.listener.speedOfSound=this.H[9],z.listener.dopplerFactor=this.H[10],z.listener.setPosition(a/
2,d/2,this.hh),z.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,d){Fa&&Fa.disconnect();tb=d.toLowerCase();Fa=z.createMediaStreamSource(a);Fa.connect(m(tb))});this.b.Uq(function(a){ua.Ct(a)});var b=this;this.b.ik(function(a){b.Ll(a)})};ka.Ll=function(a){var d,b,c;d=0;for(b=D.length;d<b;d++)c=D[d],c.Oa&&c.Oa.J===a&&(c.Oa.J=null,c.qd&&c.Rf()&&c.nd&&c.stop());this.Eb.J===a&&(this.Eb.J=null)};ka.Gb=function(){var a={silent:F,masterVolume:J,listenerZ:this.hh,listenerUid:this.Eb.Pi()?
this.Eb.J.uid:-1,playing:[],effects:{}},d=a.playing,b,c,f,e,g,h;b=0;for(c=D.length;b<c;b++)f=D[b],!f.Rf()||3===this.Zd||f.Wc&&1===this.Zd||!f.Wc&&2===this.Zd||(e=f.Uk(),f.nd&&(e%=f.bf()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Wc,playbackTime:e,volume:f.volume,looping:f.nd,muted:f.Vf,playbackRate:f.playbackRate,paused:f.Ic,resume_position:f.Sb},f.qd&&(e.pan={},h=e.pan,f.Oa&&f.Oa.Pi()?h.objUid=f.Oa.J.uid:(h.x=f.Vo,h.y=f.Wo,h.a=f.Ro),h.ia=f.So,h.oa=f.To,h.og=f.Uo),d.push(e));d=a.effects;for(g in S)if(S.hasOwnProperty(g)){f=
[];b=0;for(c=S[g].length;b<c;b++)f.push({type:S[g][b].type,params:S[g][b].Zc});d[g]=f}return a};var Oa=[];ka.ec=function(a){var d=a.silent;J=a.masterVolume;this.hh=a.listenerZ;this.Eb.Lh(null);var b=a.listenerUid;-1!==b&&(this.Eb.hj=b,Oa.push(this.Eb));var b=a.playing,c,e,l,s,m,r,v,A,C,x,z;if(3!==this.Zd)for(c=0,e=D.length;c<e;c++)C=D[c],C.Wc&&1===this.Zd||(C.Wc||2!==this.Zd)&&C.stop();for(m in S)if(S.hasOwnProperty(m))for(c=0,e=S[m].length;c<e;c++)S[m][c].remove();Va(S);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(r=
a.effects[m],c=0,e=r.length;c<e;c++)switch(l=r[c].type,x=r[c].params,l){case "filter":E(m,new g(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":E(m,new q(x[0],x[1],x[2]));break;case "convolve":l=x[2];C=this.Hi(l,!1);C.ea?l=new t(C.ea,x[0],x[1],l):(l=new t(null,x[0],x[1],l),C.Io=x[0],C.li=l);E(m,l);break;case "flanger":E(m,new h(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":E(m,new p(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":E(m,new y(x[0]));break;case "tremolo":E(m,new k(x[0],x[1]));break;
case "ringmod":E(m,new w(x[0],x[1]));break;case "distortion":E(m,new B(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":E(m,new f(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":E(m,new n(x[0],x[1]))}c=0;for(e=b.length;c<e;c++)3===this.Zd||(a=b[c],l=a.buffersrc,s=a.is_music,m=a.tag,r=a.playbackTime,v=a.looping,A=a.volume,z=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,s&&1===this.Zd)||!s&&2===this.Zd||((C=this.yn(l,m,s,v,A))?(C.Sb=a.resume_position,C.im(!!x),C.play(v,A,r),C.Tp(),C.wu(),C.wi(C.Vf||
C.$g),a.paused&&C.pause(),a.muted&&C.ju(),C.wi(C.Vf||C.$g),x&&(-1!==z?(C.Oa=C.Oa||new u,C.Oa.hj=z,Oa.push(C.Oa)):C.hm(x.x,x.y,x.a,x.ia,x.oa,x.og))):(C=this.Hi(l,s),C.Hj=r,C.rj=a.paused,x&&(-1!==z?C.kg.push({Ko:z,bl:x.ia,El:x.oa,Hl:x.og,Fp:m}):C.kg.push({x:x.x,y:x.y,Pq:x.a,bl:x.ia,El:x.oa,Hl:x.og,Fp:m}))));if(d&&!F){c=0;for(e=D.length;c<e;c++)D[c].np(!0);F=!0}else if(!d&&F){c=0;for(e=D.length;c<e;c++)D[c].np(!1);F=!1}};ka.Bd=function(){var a,d,b,c;a=0;for(d=Oa.length;a<d;a++)b=Oa[a],c=this.b.Og(b.hj),
b.Lh(c),b.hj=-1,c&&(L=c.x,ca=c.y);Oa.length=0};ka.Ct=function(a){if(!this.Ht){!a&&z&&z.resume&&z.resume();var d,b;d=0;for(b=D.length;d<b;d++)D[d].lu(a);a&&z&&z.suspend&&z.suspend()}};ka.Ia=function(){var a=this.b.Xe,d,b,c;d=0;for(b=D.length;d<b;d++)c=D[d],c.Ia(a),0===c.T||3===c.T||c.ld||c.kc||!c.df()||(c.kc=!0,fa=c.tag,A.trigger(lc.prototype.u.dk,ua)),0!==O&&c.Tp();var f,e;for(f in S)if(S.hasOwnProperty(f))for(c=S[f],d=0,b=c.length;d<b;d++)e=c[d],e.Ia&&e.Ia();1===H&&this.Eb.Pi()&&(this.Eb.Ia(a),L=
this.Eb.J.x,ca=this.Eb.J.y,z.listener.setPosition(this.Eb.J.x,this.Eb.J.y,this.hh),z.listener.setVelocity(this.Eb.Wk(),this.Eb.Xk(),0))};var Pa=[];ka.ku=function(a){var d,b,c,f,e,g=0;d=0;for(b=a.length;d<b;++d)if(c=a[d],f=c[0],c=2*c[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&I||!e&&!I)Pa.push({filename:f,size:c,J:null}),g+=c;return g};ka.pu=function(){var a,d,b,c;a=0;for(d=Pa.length;a<d;++a)b=Pa[a],c=this.b.Kk+b.filename,b.J=this.Hi(c,!1)};ka.zs=function(){var a=0,d,b,c;d=0;for(b=Pa.length;d<
b;++d)c=Pa[d],c.J.gt()||c.J.Ws()||this.b.ya||this.b.Si?a+=c.size:c.J.Sn()&&(a+=Math.floor(c.size/2));return a};ka.Hi=function(a,b){var c,f,e,g=null;c=0;for(f=xa.length;c<f;c++)if(e=xa[c],e.src===a){g=e;break}g||(g=new d(a,b),xa.push(g));return g};ka.yn=function(a,d,b,c,f){var e,g,h;e=0;for(g=D.length;e<g;e++)if(h=D[e],h.src===a&&(h.er()||b))return h.tag=d,h;a=this.Hi(a,b);if(!a.ea)return"<preload>"!==d&&(a.tj=d,a.yl=c,a.Bm=f),null;h=new l(a,d);D.push(h);return h};var Aa=[];C.prototype.dk=function(a){return hb(fa,
a)};R.u=new C;x.prototype.Play=function(a,d,b,c){!F&&(b=Math.pow(10,b/20),0>b&&(b=0),1<b&&(b=1),G=this.yn(this.b.Kk+a[0]+(I?".ogg":".m4a"),c,a[1],0!==d,b))&&(G.im(!1),G.play(0!==d,b))};x.prototype.Kq=function(a){s(a);var d;a=0;for(d=Aa.length;a<d;a++)Aa[a].stop()};x.prototype.Lq=function(){var a,d;a=0;for(d=D.length;a<d;a++)D[a].stop()};R.da=new x;R.lb=new function(){}})();function mc(e){this.b=e}
(function(){function e(){}function m(){}var a=mc.prototype;a.Aa=function(a){this.Va=a;this.b=a.b};a.Aa.prototype.V=function(){};a.ja=function(a){this.type=a;this.b=a.b;this.pk=Array(4);this.Hp=this.Wj=this.ug=this.Be=this.Ae=0;this.Zk=!1};var r=a.ja.prototype;r.V=function(){var a=this;if(!this.b.ya){jQuery(document).mousemove(function(b){a.vh(b)});jQuery(document).mousedown(function(b){a.uh(b)});jQuery(document).mouseup(function(b){a.wh(b)});jQuery(document).dblclick(function(b){a.zt(b)});var b=function(b){a.Et(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var v={left:0,top:0};r.vh=function(a){var b=this.b.ya?v:jQuery(this.b.canvas).offset();this.Ae=a.pageX-b.left;this.Be=a.pageY-b.top};r.Do=function(){return 0<this.b.Cb?!0:0<=this.Ae&&0<=this.Be&&this.Ae<this.b.width&&this.Be<this.b.height};r.uh=function(a){this.Do()&&(this.b.Of&&!this.b.Hc&&a.preventDefault(),this.pk[a.which]=!0,this.b.Na=!0,this.b.trigger(mc.prototype.u.mq,this),this.ug=a.which-1,this.Wj=
0,this.b.trigger(mc.prototype.u.ck,this),this.b.trigger(mc.prototype.u.fk,this),this.b.Na=!1)};r.wh=function(a){this.pk[a.which]&&(this.b.Of&&!this.b.Hc&&a.preventDefault(),this.b.Of=!0,this.pk[a.which]=!1,this.b.Na=!0,this.ug=a.which-1,this.b.trigger(mc.prototype.u.xq,this),this.b.Na=!1)};r.zt=function(a){this.Do()&&(a.preventDefault(),this.b.Na=!0,this.ug=a.which-1,this.Wj=1,this.b.trigger(mc.prototype.u.ck,this),this.b.trigger(mc.prototype.u.fk,this),this.b.Na=!1)};r.Et=function(a){this.Hp=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Zk=!1;this.b.Na=!0;this.b.trigger(mc.prototype.u.Aq,this);this.b.Na=!1;this.Zk&&ib(a)&&a.preventDefault()};e.prototype.ck=function(a,b){return a===this.ug&&b===this.Wj};e.prototype.mq=function(){return!0};e.prototype.xq=function(a){return a===this.ug};e.prototype.fk=function(a,b,e){return a!==this.ug||b!==this.Wj?!1:this.b.Th(e,this.Ae,this.Be)};e.prototype.Aq=function(a){this.Zk=!0;return a===this.Hp};a.u=new e;a.da=new function(){};m.prototype.Rm=function(a,
b){var e,q,m,h,p;ha(b)?(e=this.b.Pd(0),q=e.scale,m=e.Bb,h=e.Pb,p=e.k,e.scale=1,e.Bb=1,e.Pb=1,e.k=0,a.C(e.La(this.Ae,this.Be,!0)),e.scale=q,e.Bb=m,e.Pb=h,e.k=p):(e=P(b)?this.b.Pd(b):this.b.Ng(b))?a.C(e.La(this.Ae,this.Be,!0)):a.C(0)};m.prototype.Sm=function(a,b){var e,q,m,h,p;ha(b)?(e=this.b.Pd(0),q=e.scale,m=e.Bb,h=e.Qb,p=e.k,e.scale=1,e.Bb=1,e.Qb=1,e.k=0,a.C(e.La(this.Ae,this.Be,!1)),e.scale=q,e.Bb=m,e.Qb=h,e.k=p):(e=P(b)?this.b.Pd(b):this.b.Ng(b))?a.C(e.La(this.Ae,this.Be,!1)):a.C(0)};a.lb=new m})();
function kc(e){this.b=e}
(function(){function e(){if(0===this.Bk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.sg?b.drawImage(this.Tb,this.gg,this.hg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Tb,0,0,this.width,this.height);this.Bk=a.toDataURL("image/png")}return this.Bk}function m(){}function a(a){a[0]=0;a[1]=0;a[2]=0;p.push(a)}function r(a,b){return a<b?""+a+","+b:""+b+","+a}function v(a,b,c,d){b=b.uid;c=c.uid;var e=r(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var g=p.length?p.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[e]=g}}function c(b,c,e){c=r(c.uid,e.uid);b.hasOwnProperty(c)&&(a(b[c]),delete b[c])}function b(a,b,c){b=r(b.uid,c.uid);if(a.hasOwnProperty(b))return y=a[b][2],!0;y=-2;return!1}var g=kc.prototype;g.Aa=function(a){this.Va=a;this.b=a.b};var q=g.Aa.prototype;q.V=function(){if(!this.U){var a,b,c,d,g,h,k,q,p;this.Qc=[];this.Sg=!1;a=0;for(b=this.Wb.length;a<b;a++){g=this.Wb[a];k={};k.name=g[0];k.speed=g[1];k.loop=g[2];k.Zl=g[3];k.Fj=g[4];k.Zo=
g[5];k.W=g[6];k.frames=[];c=0;for(d=g[7].length;c<d;c++)h=g[7][c],q={},q.Dp=h[0],q.Ep=h[1],q.gg=h[2],q.hg=h[3],q.width=h[4],q.height=h[5],q.duration=h[6],q.Zb=h[7],q.$b=h[8],q.cl=h[9],q.uj=h[10],q.$o=h[11],q.sg=0!==q.width,q.Bk="",q.Pv=e,p={left:0,top:0,right:1,bottom:1},q.jm=p,q.ee=null,(p=this.b.ms(h[0]))?q.Tb=p:(q.Tb=new Image,q.Tb.kr=h[0],q.Tb.jr=h[1],q.Tb.cr=null,this.b.Du(q.Tb,h[0])),k.frames.push(q),this.Qc.push(q);this.Wb[a]=k}}};q.Sp=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=
this.d[a],c.pi=c.zc.ee};q.Nl=function(){if(!this.U){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.Tb.cr=null,c.ee=null;this.Sg=!1;this.Sp()}};q.Oo=function(){if(!this.U&&this.d.length){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.ee=this.b.F.ho(c.Tb,this.b.fa,c.$o);this.Sp()}};q.nt=function(){if(!this.U&&!this.Sg&&this.b.F){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.ee=this.b.F.ho(c.Tb,this.b.fa,c.$o);this.Sg=!0}};q.Op=function(){if(!this.U&&!this.d.length&&
this.Sg){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],this.b.F.deleteTexture(c.ee),c.ee=null;this.Sg=!1}};var t=[];q.cp=function(a){var b,c,d;b=t.length=0;for(c=this.Qc.length;b<c;++b)d=this.Qc[b].Tb,-1===t.indexOf(d)&&(a.drawImage(d,0,0),t.push(d))};g.ja=function(a){this.type=a;this.b=a.b;a=this.type.Wb[0].frames[0].uj;this.uc?this.ba.Oh(a):this.ba=new bb(a)};var h=g.ja.prototype;h.V=function(){this.visible=0===this.H[0];this.Ed=0!==this.H[3];1===this.type.Wb.length&&1===this.type.Wb[0].frames.length||
0===this.type.Wb[0].speed||this.b.om(this);this.Ga=this.xn(this.H[1])||this.type.Wb[0];this.D=this.H[2];0>this.D&&(this.D=0);this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1);var a=this.Ga.frames[this.D];this.ba.Oh(a.uj);this.Zb=a.Zb;this.$b=a.$b;this.Hg=this.Ga.speed;this.uc?this.hd.reset():this.hd=new $a;this.Od=this.hd.na;this.Pe=!0;this.Cd=0;this.Oe=!0;this.vk=this.Zm="";this.fr=0;this.uk=-1;this.type.nt();var b,c,d,e,g,h,k,a=0;for(b=this.type.Wb.length;a<b;a++)for(e=this.type.Wb[a],
c=0,d=e.frames.length;c<d;c++)g=e.frames[c],0===g.width&&(g.width=g.Tb.width,g.height=g.Tb.height),g.sg&&(k=g.Tb,h=g.jm,h.left=g.gg/k.width,h.top=g.hg/k.height,h.right=(g.gg+g.width)/k.width,h.bottom=(g.hg+g.height)/k.height,0===g.gg&&0===g.hg&&g.width===k.width&&g.height===k.height&&(g.sg=!1));this.zc=this.Ga.frames[this.D];this.pi=this.zc.ee};h.Gb=function(){var a={a:this.Ga.W,f:this.D,cas:this.Hg,fs:this.Od,ar:this.Cd,at:this.hd.na};this.Pe||(a.ap=this.Pe);this.Oe||(a.af=this.Oe);return a};h.ec=
function(a){var b=this.ss(a.a);b&&(this.Ga=b);this.D=a.f;0>this.D&&(this.D=0);this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1);this.Hg=a.cas;this.Od=a.fs;this.Cd=a.ar;this.hd.reset();this.hd.na=a.at;this.Pe=a.hasOwnProperty("ap")?a.ap:!0;this.Oe=a.hasOwnProperty("af")?a.af:!0;this.zc=this.Ga.frames[this.D];this.pi=this.zc.ee;this.ba.Oh(this.zc.uj);this.Zb=this.zc.Zb;this.$b=this.zc.$b};h.lk=function(a){this.D=a?0:this.Ga.frames.length-1;this.Pe=!1;this.Zm=this.Ga.name;this.b.trigger(kc.prototype.u.lq,
this);this.b.trigger(kc.prototype.u.kq,this);this.Cd=0};h.Rv=function(){return this.hd.na};h.Ia=function(){this.hd.add(this.b.Ji(this));this.vk.length&&this.pr();0<=this.uk&&this.qr();var a=this.hd.na,b=this.Ga,c=b.frames[this.D],d=c.duration/this.Hg;this.Pe&&a>=this.Od+d&&(this.Oe?this.D++:this.D--,this.Od+=d,this.D>=b.frames.length&&(b.Zo?(this.Oe=!1,this.D=b.frames.length-2):b.loop?this.D=b.Fj:(this.Cd++,this.Cd>=b.Zl?this.lk(!1):this.D=b.Fj)),0>this.D&&(b.Zo?(this.D=1,this.Oe=!0,b.loop||(this.Cd++,
this.Cd>=b.Zl&&this.lk(!0))):b.loop?this.D=b.Fj:(this.Cd++,this.Cd>=b.Zl?this.lk(!0):this.D=b.Fj)),0>this.D?this.D=0:this.D>=b.frames.length&&(this.D=b.frames.length-1),a>this.Od+b.frames[this.D].duration/this.Hg&&(this.Od=a),a=b.frames[this.D],this.Ef(c,a),this.b.ta=!0)};h.xn=function(a){var b,c,d;b=0;for(c=this.type.Wb.length;b<c;b++)if(d=this.type.Wb[b],hb(d.name,a))return d;return null};h.ss=function(a){var b,c,d;b=0;for(c=this.type.Wb.length;b<c;b++)if(d=this.type.Wb[b],d.W===a)return d;return null};
h.pr=function(){var a=this.Ga.frames[this.D],b=this.xn(this.vk);this.vk="";!b||hb(b.name,this.Ga.name)&&this.Pe||(this.Ga=b,this.Hg=b.speed,0>this.D&&(this.D=0),this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1),1===this.fr&&(this.D=0),this.Pe=!0,this.Od=this.hd.na,this.Oe=!0,this.Ef(a,this.Ga.frames[this.D]),this.b.ta=!0)};h.qr=function(){var a=this.Ga.frames[this.D],b=this.D;this.D=T(this.uk);0>this.D&&(this.D=0);this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1);b!==this.D&&
(this.Ef(a,this.Ga.frames[this.D]),this.Od=this.hd.na,this.b.ta=!0);this.uk=-1};h.Ef=function(a,b){var c=a.width,d=a.height,e=b.width,g=b.height;c!=e&&(this.width*=e/c);d!=g&&(this.height*=g/d);this.Zb=b.Zb;this.$b=b.$b;this.ba.Oh(b.uj);this.O();this.zc=b;this.pi=b.ee;c=0;for(d=this.L.length;c<d;c++)e=this.L[c],e.Po&&e.Po(a,b);this.b.trigger(kc.prototype.u.Ef,this)};h.Kd=function(a){a.globalAlpha=this.opacity;var b=this.zc,c=b.sg,d=b.Tb,e=this.x,g=this.y,h=this.width,k=this.height;if(0===this.k&&
0<=h&&0<=k)e-=this.Zb*h,g-=this.$b*k,this.b.Ee&&(e=Math.round(e),g=Math.round(g)),c?a.drawImage(d,b.gg,b.hg,b.width,b.height,e,g,h,k):a.drawImage(d,e,g,h,k);else{this.b.Ee&&(e=Math.round(e),g=Math.round(g));a.save();var q=0<h?1:-1,p=0<k?1:-1;a.translate(e,g);1===q&&1===p||a.scale(q,p);a.rotate(this.k*q*p);e=0-this.Zb*ma(h);g=0-this.$b*ma(k);c?a.drawImage(d,b.gg,b.hg,b.width,b.height,e,g,ma(h),ma(k)):a.drawImage(d,e,g,ma(h),ma(k));a.restore()}};h.Tc=function(a){a.vc(this.pi);a.ng(this.opacity);var b=
this.zc,c=this.Kb;if(this.b.Ee){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.sg?a.Fe(c.Ya+d,c.Za+e,c.Ub+d,c.Vb+e,c.Lb+d,c.Mb+e,c.Ib+d,c.Jb+e,b.jm):a.Bj(c.Ya+d,c.Za+e,c.Ub+d,c.Vb+e,c.Lb+d,c.Mb+e,c.Ib+d,c.Jb+e)}else b.sg?a.Fe(c.Ya,c.Za,c.Ub,c.Vb,c.Lb,c.Mb,c.Ib,c.Jb,b.jm):a.Bj(c.Ya,c.Za,c.Ub,c.Vb,c.Lb,c.Mb,c.Ib,c.Jb)};h.vs=function(a){var b=this.zc,c,d;c=0;for(d=b.cl.length;c<d;c++)if(hb(a,b.cl[c][0]))return c;return-1};h.Tk=function(a,b){var c=this.zc,d=c.cl,e;e=Q(a)?this.vs(a):a-1;
e=T(e);if(0>e||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.Zb)*this.width,d=d[e][2],d=(d-c.$b)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var h=g*c-d*e,d=d*c+g*e,g=h+this.x,d=d+this.y;return b?g:d};var p=[],y=-2,k=[];m.prototype.oq=function(e){if(!e)return!1;var g=this.b,h=g.An(),d=h.type;h.ka.collmemory||(h.ka.collmemory={},g.ik(function(d){return function(b){b=b.uid;var c,e;for(c in d)d.hasOwnProperty(c)&&(e=d[c],e[0]===b||e[1]===b)&&(a(d[c]),delete d[c])}}(h.ka.collmemory)));var h=
h.ka.collmemory,l=d.la(),q=e.la(),l=l.Ec(),p,m,t,r,A,w,B,K=this.b.wd,H=K-1,z=g.Db().Bc;for(m=0;m<l.length;m++){t=l[m];q.za?(t.xa(),this.b.zn(t.n,e,t.Fa,k),p=k):p=q.Ec();for(r=0;r<p.length;r++)A=p[r],g.yf(t,A)||g.gr(t,A)?(w=b(h,t,A),w=!w||y<H,v(h,t,A,K),w&&(g.zj(z.Ea),w=d.la(),B=e.la(),w.za=!1,B.za=!1,d===e?(w.d.length=2,w.d[0]=t,w.d[1]=A,d.Rc()):(w.d.length=1,B.d.length=1,w.d[0]=t,B.d[0]=A,d.Rc(),e.Rc()),z.$t(),g.uf(z.Ea))):c(h,t,A);k.length=0}return!1};var w=new ba,B=!1;new U(0,0,0,0);q.finish=function(a){if(B){if(a){var b=
this.b.Db().Bc.Yc;a=null.la();var c=w.fd(),d,e;if(a.za){a.za=!1;a.d.length=c.length;d=0;for(e=c.length;d<e;d++)a.d[d]=c[d];if(b)for(d=a.ca.length=0,e=null.d.length;d<e;d++)c=null.d[d],w.contains(c)||a.ca.push(c)}else if(b)for(b=a.d.length,a.d.length=b+c.length,d=0,e=c.length;d<e;d++)a.d[b+d]=c[d],Da(a.ca,c[d]);else za(a.d,c);null.Rc()}w.clear();B=!1}};m.prototype.kq=function(a){return hb(this.Zm,a)};m.prototype.lq=function(){return!0};m.prototype.Ef=function(){return!0};g.u=new m;g.da=new function(){};
g.lb=new function(){}})();function nc(e){this.b=e}
(function(){function e(){return g.length?g.pop():{}}function m(a){var b,c;b=0;for(c=a.length;b<c;b++)g.push(a[b]);a.length=0}function a(){}function r(){}var v=nc.prototype;v.V=function(){v.da.Iq=function(a){this.width!==a&&(this.width=a,this.Af=!0,this.O())}};v.Aa=function(a){this.Va=a;this.b=a.b};var c=v.Aa.prototype;c.V=function(){};c.Nl=function(){if(!this.U){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.od=null,c.tf=null,c.fc=null}};v.ja=function(a){this.type=a;this.b=a.b;this.uc?this.ye.length=
0:this.ye=[];this.Af=!0};c=v.ja.prototype;c.V=function(){this.text=this.H[0];this.visible=0===this.H[1];this.font=this.H[2];this.color=this.H[3];this.Oi=this.H[4];this.$j=this.H[5];this.Fm=0===this.H[7];this.ql=this.bj=this.width;this.aj=this.height;this.sl=this.H[8];this.Ei=this.Jf="";this.Bp=this.Cp=this.Gh=0;this.Ft();this.fc=this.tf=this.od=null;this.Go=!1;this.gh=this.b.wd;this.uc?this.lg.set(0,0,1,1):this.lg=new U(0,0,1,1);this.b.F&&this.b.om(this)};c.Ft=function(){var a=this.font.split(" "),
b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Gh=parseInt(a[b].substr(0,a[b].length-2));this.Vl=Math.ceil(this.Gh/72*96)+4;0<b&&(this.Ei=a[b-1]);this.Jf=a[b+1];for(b+=2;b<a.length;b++)this.Jf+=" "+a[b];break}};c.Gb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Oi,va:this.$j,wr:this.Fm,lho:this.sl,fn:this.Jf,fs:this.Ei,ps:this.Gh,pxh:this.Vl,tw:this.Cp,th:this.Bp,lrt:this.gh}};c.ec=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Oi=a.ha;this.$j=
a.va;this.Fm=a.wr;this.sl=a.lho;this.Jf=a.fn;this.Ei=a.fs;this.Gh=a.ps;this.Vl=a.pxh;this.Cp=a.tw;this.Bp=a.th;this.gh=a.lrt;this.Af=!0;this.ql=this.bj=this.width;this.aj=this.height};c.Ia=function(){if(this.b.F&&this.fc&&300<=this.b.wd-this.gh){var a=this.n;this.xa();var b=this.Fa;if(b.right<a.Ja||b.bottom<a.Ka||b.left>a.ab||b.top>a.$a)this.b.F.deleteTexture(this.fc),this.od=this.tf=this.fc=null}};c.ig=function(){this.od=this.tf=null;this.b.F&&this.fc&&this.b.F.deleteTexture(this.fc);this.fc=null};
c.$v=function(){this.font=this.Ei+" "+this.Gh.toString()+"pt "+this.Jf;this.Af=!0;this.b.ta=!0};c.Kd=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.n.qc(),a.save(),a.scale(c,c));if(this.Af||this.width!==this.ql)this.type.Va.Nq(this.text,this.ye,a,this.width,this.Fm),this.Af=!1,this.ql=this.width;this.xa();var c=b?0:this.Kb.Ya,e=b?0:this.Kb.Za;this.b.Ee&&(c=c+.5|0,e=e+.5|0);0===this.k||b||(a.save(),a.translate(c,e),a.rotate(this.k),
e=c=0);var g=e+this.height,k=this.Vl,k=k+this.sl,m,r;1===this.$j?e+=Math.max(this.height/2-this.ye.length*k/2,0):2===this.$j&&(e+=Math.max(this.height-this.ye.length*k-2,0));for(r=0;r<this.ye.length&&!(m=c,1===this.Oi?m=c+(this.width-this.ye[r].width)/2:2===this.Oi&&(m=c+(this.width-this.ye[r].width)),a.fillText(this.ye[r].text,m,e),e+=k,e>=g-k);r++);(0!==this.k||b)&&a.restore();this.gh=this.b.wd};c.Tc=function(a){if(!(1>this.width||1>this.height)){var b=this.Af||this.Go;this.Go=!1;var c=this.n.qc(),
e=this.n.Ua(),g=this.lg,k=c*this.width,m=c*this.height,r=Math.ceil(k),f=Math.ceil(m),n=this.b.R/2,v=this.b.P/2;this.tf||(this.od=document.createElement("canvas"),this.od.width=r,this.od.height=f,this.bj=r,this.aj=f,b=!0,this.tf=this.od.getContext("2d"));if(r!==this.bj||f!==this.aj)this.od.width=r,this.od.height=f,this.fc&&(a.deleteTexture(this.fc),this.fc=null),b=!0;b&&(this.tf.clearRect(0,0,r,f),this.Kd(this.tf,!0),this.fc||(this.fc=a.Fd(r,f,this.b.fa,this.b.Hc)),a.Cu(this.od,this.fc,this.b.Hc));
this.bj=r;this.aj=f;a.vc(this.fc);a.ng(this.opacity);a.sd();a.translate(-n,-v);a.yd();var d=this.Kb,b=this.n.Da(d.Ya,d.Za,!0,!0),n=this.n.Da(d.Ya,d.Za,!1,!0),v=this.n.Da(d.Ub,d.Vb,!0,!0),l=this.n.Da(d.Ub,d.Vb,!1,!0),s=this.n.Da(d.Lb,d.Mb,!0,!0),E=this.n.Da(d.Lb,d.Mb,!1,!0),C=this.n.Da(d.Ib,d.Jb,!0,!0),d=this.n.Da(d.Ib,d.Jb,!1,!0);if(this.b.Ee||0===this.k&&0===e)var x=(b+.5|0)-b,R=(n+.5|0)-n,b=b+x,n=n+R,v=v+x,l=l+R,s=s+x,E=E+R,C=C+x,d=d+R;0===this.k&&0===e?(v=b+r,l=n,s=v,E=n+f,C=b,d=E,g.right=1,g.bottom=
1):(g.right=k/r,g.bottom=m/f);a.Fe(b,n,v,l,s,E,C,d,g);a.sd();a.scale(c,c);a.am(-this.n.Ua());a.translate((this.n.Ja+this.n.ab)/-2,(this.n.Ka+this.n.$a)/-2);a.yd();this.gh=this.b.wd}};var b=[];v.Mq=function(a){b.length=0;for(var c="",e,g=0;g<a.length;)if(e=a.charAt(g),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++g;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(g),g++;while(g<a.length&&(" "===a.charAt(g)||"\t"===a.charAt(g)));b.push(c);c=""}else g<a.length&&(c+=e,g++);c.length&&b.push(c)};
var g=[];v.Nq=function(a,b,c,g,r){if(a&&a.length)if(2>=g)m(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=c.measureText(a).width;if(k<=g){m(b);b.push(e());b[0].text=a;b[0].width=k;return}}this.Oq(a,b,c,g,r)}else m(b)};v.Oq=function(a,c,h,m,r){r&&(this.Mq(a),a=b);var k="",v,B,f,n=0;for(f=0;f<a.length;f++)"\n"===a[f]?(n>=c.length&&c.push(e()),B=c[n],B.text=k,B.width=h.measureText(k).width,n++,k=""):(v=k,k+=a[f],B=h.measureText(k).width,B>=m&&(n>=c.length&&c.push(e()),B=c[n],B.text=v,B.width=
h.measureText(v).width,n++,k=a[f],r||" "!==k||(k="")));k.length&&(n>=c.length&&c.push(e()),B=c[n],B.text=k,B.width=h.measureText(k).width,n++);for(f=n;f<c.length;f++)g.push(c[f]);c.length=n};v.u=new function(){};a.prototype.Fq=function(a){P(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Af=!0,this.b.ta=!0)};v.da=new a;r.prototype.Text=function(a){a.ic(this.text)};v.lb=new r})();function Z(e){this.b=e}
(function(){function e(a){t=a.x;h=a.y;p=a.z}function m(a){y=a.x;k=a.y;w=a.z}function a(a,b,c,e){var f;f=B.length?B.pop():new r;f.init(a,b,c,e);return f}function r(){this.Qh=this.id=this.pf=this.of=this.y=this.x=this.Nj=this.Mj=this.pl=this.time=this.lm=0;this.Wh=this.Xj=!1}function v(){}function c(){}var b=Z.prototype;b.Aa=function(a){this.Va=a;this.b=a.b};b.Aa.prototype.V=function(){};b.ja=function(a){this.type=a;this.b=a.b;this.touches=[];this.Bl=!1};var g=b.ja.prototype,q={left:0,top:0};g.Mg=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 t=0,h=0,p=0,y=0,k=0,w=0,B=[];r.prototype.init=function(a,b,c,e){var f=Wa();this.lm=this.pl=this.time=f;this.Mj=a;this.Nj=b;this.x=a;this.y=b;this.of=a;this.pf=b;this.id=c;this.Qh=e;this.Wh=this.Xj=!1};r.prototype.update=function(a,b,c){this.pl=this.time;this.time=a;this.of=this.x;this.pf=this.y;this.x=b;this.y=c;!this.Wh&&15<=Sa(this.Mj,this.Nj,this.x,this.y)&&(this.Wh=!0)};r.prototype.qt=function(a,b){!this.Xj&&
500<=Wa()-this.lm&&!this.Wh&&15>Sa(this.Mj,this.Nj,this.x,this.y)&&(this.Xj=!0,a.xd=this.Qh,a.vg=this.id,a.Mf=b,a.b.trigger(Z.prototype.u.tq,a),a.Hd=this.x,a.Id=this.y,a.b.trigger(Z.prototype.u.uq,a),a.Mf=0)};var f=-1E3,n=-1E3,u=-1E4;r.prototype.zo=function(a,b){if(!this.Xj){var c=Wa();333>=c-this.lm&&!this.Wh&&15>Sa(this.Mj,this.Nj,this.x,this.y)&&(a.xd=this.Qh,a.vg=this.id,a.Mf=b,666>=c-u&&25>Sa(f,n,this.x,this.y)?(a.b.trigger(Z.prototype.u.pq,a),a.Hd=this.x,a.Id=this.y,a.b.trigger(Z.prototype.u.qq,
a),n=f=-1E3,u=-1E4):(a.b.trigger(Z.prototype.u.yq,a),a.Hd=this.x,a.Id=this.y,a.b.trigger(Z.prototype.u.zq,a),f=this.x,n=this.y,u=c),a.Mf=0)}};g.V=function(){this.it=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Mf=this.vg=this.xd=this.Id=this.Hd=this.Vm=this.Um=this.Tm=this.Sq=this.Rq=this.Qq=this.Bh=this.Ah=this.zh=0;this.Au=0!==this.H[0];var a=0<this.b.Cb?document:this.b.canvas,b=document;this.b.sb?b=a=window.Canvas:this.b.rc&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.yh(a)},!1),a.addEventListener("pointermove",function(a){c.xh(a)},!1),b.addEventListener("pointerup",function(a){c.Ud(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ud(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.yh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.xh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ud(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ud(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.qj(a)},!1),a.addEventListener("touchmove",function(a){c.pj(a)},!1),b.addEventListener("touchend",function(a){c.jg(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.jg(a,!0)},!1));if(this.it){var f=function(a){a=a.reading;c.Tm=a.accelerationX;c.Um=a.accelerationY;c.Vm=a.accelerationZ},g=function(a){a=a.reading;c.zh=a.yawDegrees;c.Ah=a.pitchDegrees;c.Bh=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),
h.addEventListener("readingchanged",f));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",g));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",f),k&&k.removeEventListener("readingchanged",g)):(h&&h.addEventListener("readingchanged",f),k&&k.addEventListener("readingchanged",g))},!1)}else window.addEventListener("deviceorientation",
function(a){c.zh=a.alpha||0;c.Ah=a.beta||0;c.Bh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Qq=a.accelerationIncludingGravity.x||0,c.Rq=a.accelerationIncludingGravity.y||0,c.Sq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Tm=a.acceleration.x||0,c.Um=a.acceleration.y||0,c.Vm=a.acceleration.z||0)},!1);this.Au&&!this.b.ya&&(jQuery(document).mousemove(function(a){c.vh(a)}),jQuery(document).mousedown(function(a){c.uh(a)}),jQuery(document).mouseup(function(a){c.wh(a)}));
this.b.Qf&&!this.b.sb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.Gc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.su(this)};g.xh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Mg(a.pointerId),c=Wa();if(0<=b){var e=this.b.ya?q:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-e.left,a.pageY-e.top)}}};g.yh=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&ib(b)&&b.preventDefault();var c=this.b.ya?q:jQuery(this.b.canvas).offset(),e=b.pageX-c.left,c=b.pageY-c.top;Wa();this.xd=this.touches.length;this.vg=b.pointerId;this.touches.push(a(e,c,b.pointerId,this.xd));this.b.Na=!0;this.b.trigger(Z.prototype.u.Mm,this);this.b.trigger(Z.prototype.u.Pm,this);this.Hd=e;this.Id=c;this.b.trigger(Z.prototype.u.Om,this);
this.b.Na=!1}};g.Ud=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.Mg(a.pointerId);this.xd=0<=c?this.touches[c].Qh:-1;this.vg=0<=c?this.touches[c].id:-1;this.b.Na=!0;this.b.trigger(Z.prototype.u.Lm,this);this.b.trigger(Z.prototype.u.Nm,this);0<=c&&(b||this.touches[c].zo(this,c),100>B.length&&B.push(this.touches[c]),this.touches.splice(c,1));this.b.Na=!1}};g.pj=function(a){a.preventDefault&&a.preventDefault();
var b=Wa(),c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.Mg(f.identifier),0<=g){var h=this.b.ya?q:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top)}};g.qj=function(b){b.preventDefault&&ib(b)&&b.preventDefault();var c=this.b.ya?q:jQuery(this.b.canvas).offset();Wa();this.b.Na=!0;var e,f,g,h;e=0;for(f=b.changedTouches.length;e<f;e++)if(g=b.changedTouches[e],h=this.Mg(g.identifier),-1===h){h=g.pageX-c.left;var k=g.pageY-
c.top;this.xd=this.touches.length;this.vg=g.identifier;this.touches.push(a(h,k,g.identifier,this.xd));this.b.trigger(Z.prototype.u.Mm,this);this.b.trigger(Z.prototype.u.Pm,this);this.Hd=h;this.Id=k;this.b.trigger(Z.prototype.u.Om,this)}this.b.Na=!1};g.jg=function(a,b){a.preventDefault&&ib(a)&&a.preventDefault();this.b.Na=!0;var c,e,f;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],f=this.Mg(f.identifier),0<=f&&(this.xd=this.touches[f].Qh,this.vg=this.touches[f].id,this.b.trigger(Z.prototype.u.Lm,
this),this.b.trigger(Z.prototype.u.Nm,this),b||this.touches[f].zo(this,f),100>B.length&&B.push(this.touches[f]),this.touches.splice(f,1));this.b.Na=!1};g.Mv=function(){return this.b.Qf&&0===this.zh&&0!==p?90*p:this.b.Gc&&0===this.zh&&0!==w?90*w:this.zh};g.Nv=function(){return this.b.Qf&&0===this.Ah&&0!==h?-90*h:this.b.Gc&&0===this.Ah&&0!==k?90*k:this.Ah};g.Qv=function(){return this.b.Qf&&0===this.Bh&&0!==t?90*t:this.b.Gc&&0===this.Bh&&0!==y?90*y:this.Bh};g.uh=function(a){a.preventDefault&&this.b.Of&&
!this.b.Hc&&a.preventDefault();this.qj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Bl=!0};g.vh=function(a){this.Bl&&this.pj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};g.wh=function(a){a.preventDefault&&this.b.Of&&!this.b.Hc&&a.preventDefault();this.b.Of=!0;this.jg({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Bl=!1};g.Rj=function(){var a,b,c,e=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.pl=e),c.qt(this,
a)};v.prototype.Pm=function(){return!0};v.prototype.Nm=function(){return!0};v.prototype.Om=function(a){return a?this.b.Th(a,this.Hd,this.Id):!1};v.prototype.Mm=function(a){a=Math.floor(a);return a===this.xd};v.prototype.Lm=function(a){a=Math.floor(a);return a===this.xd};v.prototype.tq=function(){return!0};v.prototype.yq=function(){return!0};v.prototype.pq=function(){return!0};v.prototype.uq=function(a){return a?this.b.Th(a,this.Hd,this.Id):!1};v.prototype.zq=function(a){return a?this.b.Th(a,this.Hd,
this.Id):!1};v.prototype.qq=function(a){return a?this.b.Th(a,this.Hd,this.Id):!1};b.u=new v;c.prototype.Rm=function(a,b){var c=this.Mf;if(0>c||c>=this.touches.length)a.C(0);else{var e,f,g,h,k;ha(b)?(e=this.b.Pd(0),f=e.scale,g=e.Bb,h=e.Pb,k=e.k,e.scale=1,e.Bb=1,e.Pb=1,e.k=0,a.C(e.La(this.touches[c].x,this.touches[c].y,!0)),e.scale=f,e.Bb=g,e.Pb=h,e.k=k):(e=P(b)?this.b.Pd(b):this.b.Ng(b))?a.C(e.La(this.touches[c].x,this.touches[c].y,!0)):a.C(0)}};c.prototype.Sm=function(a,b){var c=this.Mf;if(0>c||c>=
this.touches.length)a.C(0);else{var e,f,g,h,k;ha(b)?(e=this.b.Pd(0),f=e.scale,g=e.Bb,h=e.Qb,k=e.k,e.scale=1,e.Bb=1,e.Qb=1,e.k=0,a.C(e.La(this.touches[c].x,this.touches[c].y,!1)),e.scale=f,e.Bb=g,e.Qb=h,e.k=k):(e=P(b)?this.b.Pd(b):this.b.Ng(b))?a.C(e.La(this.touches[c].x,this.touches[c].y,!1)):a.C(0)}};b.lb=new c})();function oc(e){this.b=e}
(function(){function e(){}function m(){}var a=oc.prototype;a.Aa=function(a){this.behavior=a;this.b=a.b};a.Aa.prototype.V=function(){};a.ja=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.b=a.b};var r=a.ja.prototype;r.V=function(){var a=this.H[0];this.$h=this.H[1];this.Gi=this.H[2];this.$q=0!==this.H[3];this.gm=0!==this.H[4];this.Ma=Math.cos(this.j.k)*a;this.Ba=Math.sin(this.j.k)*a;this.of=this.j.x;this.pf=this.j.y;this.sc=this.j.k;this.Vj=0;this.enabled=0!==this.H[5]};r.Gb=function(){return{acc:this.$h,
g:this.Gi,dx:this.Ma,dy:this.Ba,lx:this.of,ly:this.pf,lka:this.sc,t:this.Vj,e:this.enabled}};r.ec=function(a){this.$h=a.acc;this.Gi=a.g;this.Ma=a.dx;this.Ba=a.dy;this.of=a.lx;this.pf=a.ly;this.sc=a.lka;this.Vj=a.t;this.enabled=a.e};r.Ia=function(){if(this.enabled){var a=this.b.Ji(this.j),c,b;this.j.k!==this.sc&&(this.gm&&(c=Sa(0,0,this.Ma,this.Ba),this.Ma=Math.cos(this.j.k)*c,this.Ba=Math.sin(this.j.k)*c),this.sc=this.j.k);0!==this.$h&&(c=Sa(0,0,this.Ma,this.Ba),b=0===this.Ma&&0===this.Ba?this.j.k:
Ja(0,0,this.Ma,this.Ba),c+=this.$h*a,0>c&&(c=0),this.Ma=Math.cos(b)*c,this.Ba=Math.sin(b)*c);0!==this.Gi&&(this.Ba+=this.Gi*a);this.of=this.j.x;this.pf=this.j.y;if(0!==this.Ma||0!==this.Ba)if(this.j.x+=this.Ma*a,this.j.y+=this.Ba*a,this.Vj+=Sa(0,0,this.Ma*a,this.Ba*a),this.gm&&(this.j.k=Ja(0,0,this.Ma,this.Ba),this.j.O(),this.sc=this.j.k),this.j.O(),this.$q&&(c=this.b.zf(this.j)))this.b.Vt(this.j,c),c=Sa(0,0,this.Ma,this.Ba),b=this.b.dr(this.j,this.of,this.pf),this.Ma=Math.cos(b)*c,this.Ba=Math.sin(b)*
c,this.j.x+=this.Ma*a,this.j.y+=this.Ba*a,this.j.O(),this.gm&&(this.sc=this.j.k=b,this.j.O()),this.b.St(this.j,this.Ma/c,this.Ba/c,Math.max(2.5*c*a,30))||this.b.Tt(this.j)}};a.u=new function(){};e.prototype.Eq=function(a){var c=Ja(0,0,this.Ma,this.Ba);this.Ma=Math.cos(c)*a;this.Ba=Math.sin(c)*a};e.prototype.hk=function(a){this.enabled=1===a};a.da=new e;m.prototype.Jq=function(a){var c=Sa(0,0,this.Ma,this.Ba),c=gb(c);a.C(c)};a.lb=new m})();
function pc(e){this.b=e;var m=this;this.b.ya||(jQuery(document).mousemove(function(a){m.vh(a)}),jQuery(document).mousedown(function(a){m.uh(a)}),jQuery(document).mouseup(function(a){m.wh(a)}));e=0<this.b.Cb?document:this.b.canvas;this.b.sb?e=window.Canvas:this.b.rc&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(a){m.yh(a)},!1),e.addEventListener("pointermove",function(a){m.xh(a)},!1),e.addEventListener("pointerup",function(a){m.Ud(a)},!1),e.addEventListener("pointercancel",
function(a){m.Ud(a)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(a){m.yh(a)},!1),e.addEventListener("MSPointerMove",function(a){m.xh(a)},!1),e.addEventListener("MSPointerUp",function(a){m.Ud(a)},!1),e.addEventListener("MSPointerCancel",function(a){m.Ud(a)},!1)):(e.addEventListener("touchstart",function(a){m.qj(a)},!1),e.addEventListener("touchmove",function(a){m.pj(a)},!1),e.addEventListener("touchend",function(a){m.jg(a)},!1),e.addEventListener("touchcancel",
function(a){m.jg(a)},!1))}
(function(){function e(a){var c,e;c=0;for(e=a.L.length;c<e;c++)if(a.L[c]instanceof r.ja)return a.L[c];return null}function m(){}function a(){}var r=pc.prototype,v={left:0,top:0};r.uh=function(a){1===a.which&&this.Il("leftmouse",a.pageX,a.pageY)};r.vh=function(a){1===a.which&&this.Jl("leftmouse",a.pageX,a.pageY)};r.wh=function(a){1===a.which&&this.Kl("leftmouse")};r.qj=function(a){a.preventDefault&&ib(a)&&a.preventDefault();var c,e,m,h;c=0;for(e=a.changedTouches.length;c<e;c++)m=a.changedTouches[c],
h=m.identifier,this.Il(h?h.toString():"<none>",m.pageX,m.pageY)};r.pj=function(a){a.preventDefault&&a.preventDefault();var c,e,m,h;c=0;for(e=a.changedTouches.length;c<e;c++)m=a.changedTouches[c],h=m.identifier,this.Jl(h?h.toString():"<none>",m.pageX,m.pageY)};r.jg=function(a){a.preventDefault&&ib(a)&&a.preventDefault();var c,e,m;c=0;for(e=a.changedTouches.length;c<e;c++)m=a.changedTouches[c],m=m.identifier,this.Kl(m?m.toString():"<none>")};r.yh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&ib(a)&&a.preventDefault(),this.Il(a.pointerId.toString(),a.pageX,a.pageY))};r.xh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Jl(a.pointerId.toString(),a.pageX,a.pageY))};r.Ud=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&ib(a)&&a.preventDefault(),this.Kl(a.pointerId.toString()))};r.Il=function(a,c,m){var r=this.b.ya?v:jQuery(this.b.canvas).offset();
c-=r.left;m-=r.top;var h,p,y,k,r=this.eg.fd(),w,B,f,n=null;w=0;for(B=r.length;w<B;w++)if(f=r[w],h=e(f),h.enabled&&!h.pe&&(h=f.n.La(c,m,!0),p=f.n.La(c,m,!1),f.xa(),f.yb(h,p)))n?f.n.index>n.n.index?(n=f,y=h,k=p):f.n.index===n.n.index&&f.Fc()>n.Fc()&&(n=f,y=h,k=p):(n=f,y=h,k=p);n&&e(n).At(a,y,k)};r.Jl=function(a,c,m){var r=this.b.ya?v:jQuery(this.b.canvas).offset();c-=r.left;m-=r.top;var h,p=this.eg.fd(),y,k,w;y=0;for(k=p.length;y<k;y++)h=p[y],w=e(h),!w.enabled||!w.pe||w.pe&&w.Dk!==a||(r=h.n.La(c,m,
!0),h=h.n.La(c,m,!1),w.Bt(r,h))};r.Kl=function(a){var c=this.eg.fd(),m,r,h;m=0;for(r=c.length;m<r;m++)h=c[m],h=e(h),h.pe&&h.Dk===a&&h.Dt()};r.Aa=function(a){this.behavior=a;this.b=a.b};r.Aa.prototype.V=function(){};r.ja=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.b=a.b};var c=r.ja.prototype;c.V=function(){this.pe=!1;this.Ba=this.Ma=0;this.Dk="<none>";this.mk=this.H[0];this.enabled=0!==this.H[1]};c.Gb=function(){return{enabled:this.enabled}};c.ec=function(a){this.enabled=a.enabled;
this.pe=!1};c.At=function(a,c,e){this.Ma=c-this.j.x;this.Ba=e-this.j.y;this.pe=!0;this.Dk=a;this.b.Na=!0;this.b.trigger(pc.prototype.u.rq,this.j);this.b.Na=!1};c.Bt=function(a,c){var e=a-this.Ma,m=c-this.Ba;if(0===this.mk){if(this.j.x!==e||this.j.y!==m)this.j.x=e,this.j.y=m,this.j.O()}else 1===this.mk?this.j.x!==e&&(this.j.x=e,this.j.O()):2===this.mk&&this.j.y!==m&&(this.j.y=m,this.j.O())};c.Dt=function(){this.pe=!1;this.b.Na=!0;this.b.trigger(pc.prototype.u.sq,this.j);this.b.Na=!1};c.Ia=function(){};
m.prototype.rq=function(){return!0};m.prototype.sq=function(){return!0};r.u=new m;a.prototype.hk=function(a){this.enabled=0!==a;this.enabled||(this.pe=!1)};r.da=new a;r.lb=new function(){}})();function jc(e){this.b=e}
(function(){var e=jc.prototype;e.Aa=function(a){this.behavior=a;this.b=a.b};e.Aa.prototype.V=function(){};e.ja=function(a,e){this.type=a;this.behavior=a.behavior;this.j=e;this.b=a.b};var m=e.ja.prototype;m.V=function(){};m.ig=function(){};m.Ia=function(){};e.u=new function(){};e.da=new function(){};e.lb=new function(){}})();function rc(e){this.b=e}
(function(){function e(){}var m=rc.prototype;m.Aa=function(a){this.behavior=a;this.b=a.b};m.Aa.prototype.V=function(){};m.ja=function(a,e){this.type=a;this.behavior=a.behavior;this.j=e;this.b=a.b};var a=m.ja.prototype;a.V=function(){this.pb=null;this.sj=-1;this.mode=this.sc=this.Pj=this.dg=this.Wd=this.Eh=0;var a=this;this.uc||(this.Fo=function(e){a.Ll(e)});this.b.ik(this.Fo)};a.Gb=function(){return{uid:this.pb?this.pb.uid:-1,pa:this.Eh,pd:this.Wd,msa:this.dg,tsa:this.Pj,lka:this.sc,m:this.mode}};
a.ec=function(a){this.sj=a.uid;this.Eh=a.pa;this.Wd=a.pd;this.dg=a.msa;this.Pj=a.tsa;this.sc=a.lka;this.mode=a.m};a.Bd=function(){this.pb=-1===this.sj?null:this.b.Og(this.sj);this.sj=-1};a.Ll=function(a){this.pb==a&&(this.pb=null)};a.ig=function(){this.pb=null;this.b.Wt(this.Fo)};a.Ia=function(){};a.Rj=function(){if(this.pb){this.sc!==this.j.k&&(this.dg=W(this.dg+(this.j.k-this.sc)));var a=this.j.x,e=this.j.y;if(3===this.mode||4===this.mode){var c=Sa(this.j.x,this.j.y,this.pb.x,this.pb.y);if(c>this.Wd||
4===this.mode&&c<this.Wd)e=Ja(this.pb.x,this.pb.y,this.j.x,this.j.y),a=this.pb.x+Math.cos(e)*this.Wd,e=this.pb.y+Math.sin(e)*this.Wd}else a=this.pb.x+Math.cos(this.pb.k+this.Eh)*this.Wd,e=this.pb.y+Math.sin(this.pb.k+this.Eh)*this.Wd;this.sc=c=W(this.dg+(this.pb.k-this.Pj));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===a&&this.j.y===e||(this.j.x=a,this.j.y=e,this.j.O());0!==this.mode&&2!==this.mode||this.j.k===c||(this.j.k=c,this.j.O())}};m.u=new function(){};e.prototype.Bq=
function(a,e){if(a){var c=a.Dn(this.j);c&&(this.pb=c,this.Eh=Ja(c.x,c.y,this.j.x,this.j.y)-c.k,this.Wd=Sa(c.x,c.y,this.j.x,this.j.y),this.sc=this.dg=this.j.k,this.Pj=c.k,this.mode=e)}};m.da=new e;m.lb=new function(){}})();function sc(e){this.b=e}
(function(){var e=sc.prototype;e.Aa=function(a){this.behavior=a;this.b=a.b};e.Aa.prototype.V=function(){};e.ja=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b;this.cb=0};var m=e.ja.prototype,a=2*Math.PI,r=Math.PI/2,v=3*Math.PI/2;m.V=function(){this.xb=1===this.H[0];this.qh=this.H[1];this.Dm=this.H[2];this.Vd=this.H[3];this.Vd+=Math.random()*this.H[4];0===this.Vd?this.cb=0:(this.cb=this.H[5]/this.Vd*a,this.cb+=Math.random()*this.H[6]/this.Vd*a);this.Nb=this.H[7];this.Nb+=Math.random()*
this.H[8];this.Ih=this.ff=this.X=0;this.init()};m.Gb=function(){return{i:this.cb,a:this.xb,mv:this.qh,w:this.Dm,p:this.Vd,mag:this.Nb,iv:this.X,iv2:this.ff,r:this.Ih,lkv:this.ac,lkv2:this.bh}};m.ec=function(a){this.cb=a.i;this.xb=a.a;this.qh=a.mv;this.Dm=a.w;this.Vd=a.p;this.Nb=a.mag;this.X=a.iv;this.ff=a.iv2||0;this.Ih=a.r;this.ac=a.lkv;this.bh=a.lkv2||0};m.init=function(){switch(this.qh){case 0:this.X=this.j.x;break;case 1:this.X=this.j.y;break;case 2:this.X=this.j.width;this.Ih=this.j.height/this.j.width;
break;case 3:this.X=this.j.width;break;case 4:this.X=this.j.height;break;case 5:this.X=this.j.k;this.Nb=V(this.Nb);break;case 6:this.X=this.j.opacity;break;case 7:this.X=0;break;case 8:this.X=this.j.x,this.ff=this.j.y}this.ac=this.X;this.bh=this.ff};m.de=function(c){c%=a;switch(this.Dm){case 0:return Math.sin(c);case 1:return c<=r?c/r:c<=v?1-2*(c-r)/Math.PI:(c-v)/r-1;case 2:return 2*c/a-1;case 3:return-2*c/a+1;case 4:return c<Math.PI?-1:1}return 0};m.Ia=function(){var c=this.b.Ji(this.j);if(this.xb&&
0!==c){0===this.Vd?this.cb=0:(this.cb+=c/this.Vd*a,this.cb%=a);switch(this.qh){case 0:this.j.x!==this.ac&&(this.X+=this.j.x-this.ac);this.j.x=this.X+this.de(this.cb)*this.Nb;this.ac=this.j.x;break;case 1:this.j.y!==this.ac&&(this.X+=this.j.y-this.ac);this.j.y=this.X+this.de(this.cb)*this.Nb;this.ac=this.j.y;break;case 2:this.j.width=this.X+this.de(this.cb)*this.Nb;this.j.height=this.j.width*this.Ih;break;case 3:this.j.width=this.X+this.de(this.cb)*this.Nb;break;case 4:this.j.height=this.X+this.de(this.cb)*
this.Nb;break;case 5:this.j.k!==this.ac&&(this.X=W(this.X+(this.j.k-this.ac)));this.j.k=W(this.X+this.de(this.cb)*this.Nb);this.ac=this.j.k;break;case 6:this.j.opacity=this.X+this.de(this.cb)*this.Nb/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.ac&&(this.X+=this.j.x-this.ac),this.j.y!==this.bh&&(this.ff+=this.j.y-this.bh),this.j.x=this.X+Math.cos(this.j.k)*this.de(this.cb)*this.Nb,this.j.y=this.ff+Math.sin(this.j.k)*this.de(this.cb)*this.Nb,
this.ac=this.j.x,this.bh=this.j.y}this.j.O()}};m.Po=function(a,b){switch(this.qh){case 2:this.X*=b.width/a.width;this.Ih=b.height/b.width;break;case 3:this.X*=b.width/a.width;break;case 4:this.X*=b.height/a.height}};e.u=new function(){};e.da=new function(){};e.lb=new function(){}})();function tc(e){this.b=e}
(function(){var e=tc.prototype;e.Aa=function(e){this.behavior=e;this.b=e.b};e.Aa.prototype.V=function(){};e.ja=function(e,a){this.type=e;this.behavior=e.behavior;this.j=a;this.b=e.b};e=e.ja.prototype;e.V=function(){};e.Ia=function(){this.j.xa();var e=this.j.Fa,a=this.j.n.ra;(0>e.right||0>e.bottom||e.left>a.width||e.top>a.height)&&this.b.ge(this.j)}})();function ic(e){this.b=e}
(function(){function e(){}var m=ic.prototype;m.Aa=function(a){this.behavior=a;this.b=a.b};m.Aa.prototype.V=function(){};m.ja=function(a,e){this.type=a;this.behavior=a.behavior;this.j=e;this.b=a.b};var a=m.ja.prototype;a.V=function(){this.j.ka.solidEnabled=0!==this.H[0]};a.Ia=function(){};m.u=new function(){};e.prototype.hk=function(a){this.j.ka.solidEnabled=!!a};m.da=new e})();
function hc(){return[lc,mc,kc,nc,Z,ic,jc,sc,tc,oc,pc,rc,kc.prototype.u.oq,oc.prototype.da.Eq,oc.prototype.lb.Jq,Y.prototype.da.Xp,nc.prototype.da.Fq,lc.prototype.da.Play,kc.prototype.da.Dq,kc.prototype.lb.Yp,kc.prototype.u.Im,nc.prototype.da.jq,nc.prototype.da.Qm,lc.prototype.da.Lq,Y.prototype.da.dq,mc.prototype.u.fk,Y.prototype.da.Hq,Y.prototype.da.Cq,Y.prototype.u.cq,Y.prototype.lb.Me,kc.prototype.da.Qm,pc.prototype.da.hk,Y.prototype.u.Gm,lc.prototype.da.Kq,mc.prototype.u.ck,Y.prototype.da.Gq,kc.prototype.u.Hm,
Y.prototype.u.Jm,rc.prototype.da.Bq]};
