// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,J,ea,ga,ha,P,ia,ma,na,oa,pa,R,ra,ta,U,ua,va,wa,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ga,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,tb,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,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,n,b,q){this.set(a,n,b,q)}function m(){this.Ob=this.Nb=this.Qb=this.Pb=this.ec=this.cc=this.lb=this.kb=0}function e(a,n,b,q){a<n?b<q?(w=a<b?a:b,s=n>q?n:q):(w=a<q?a:q,s=n>b?n:b):b<q?(w=n<b?n:b,s=a>q?a:q):(w=n<q?n:q,s=a>b?a:b)}function p(){this.items=this.Rc=null;this.Lf=0;u&&(this.Rc=new Set);this.ng=[];this.ge=!0}function r(a){D[L++]=a}function d(){this.X=this.Kj=this.y=this.mk=0}function b(a){this.$f=[];this.mn=this.pn=this.qn=this.nn=0;this.Kh(a)}function c(a,n){this.rk=
a;this.qk=n;this.cells={}}function f(a,n){this.rk=a;this.qk=n;this.cells={}}function h(a,n,b){var q;return A.length?(q=A.pop(),q.al=a,q.x=n,q.y=b,q):new aa(a,n,b)}function a(a,n,b){this.al=a;this.x=n;this.y=b;this.bb=new ba}function l(a,n,b){var q;return v.length?(q=v.pop(),q.al=a,q.x=n,q.y=b,q):new da(a,n,b)}function t(a,n,b){this.al=a;this.x=n;this.y=b;this.bb=[];this.Kf=!0;this.gd=new ba;this.sg=!1}function k(a,n){return a.Vc-n.Vc}J=function(a){window.console&&window.console.log&&window.console.log(a)};
ea=function(a){window.console&&window.console.error&&window.console.error(a)};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};P=function(a){return"string"===typeof a};ia=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var n=1;32>n;n<<=1)a|=a>>n;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,n){return a<n?a:n};pa=Math.PI;R=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var n=a|0;return n===a?n:n+1};ta=function(a,n,b,q,c,d,x,l){var h,
u,k,f;a<b?(u=a,h=b):(u=b,h=a);c<x?(f=c,k=x):(f=x,k=c);if(h<f||u>k)return!1;n<q?(u=n,h=q):(u=q,h=n);d<l?(f=d,k=l):(f=l,k=d);if(h<f||u>k)return!1;h=c-a+x-b;u=d-n+l-q;a=b-a;n=q-n;c=x-c;d=l-d;l=na(n*c-d*a);return na(c*u-d*h)>l?!1:na(a*u-n*h)<=l};g.prototype.set=function(a,n,b,q){this.left=a;this.top=n;this.right=b;this.bottom=q};g.prototype.ci=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(a,n){this.left+=a;this.top+=n;this.right+=a;this.bottom+=n;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.Sb=function(a,n){return a>=this.left&&a<=this.right&&n>=this.top&&n<=this.bottom};g.prototype.li=function(a){return this.left===a.left&&this.top===a.top&&this.right===
a.right&&this.bottom===a.bottom};U=g;m.prototype.Jh=function(a){this.kb=a.left;this.lb=a.top;this.cc=a.right;this.ec=a.top;this.Pb=a.right;this.Qb=a.bottom;this.Nb=a.left;this.Ob=a.bottom};m.prototype.Fp=function(a,n){if(0===n)this.Jh(a);else{var b=Math.sin(n),q=Math.cos(n),c=a.left*b,d=a.top*b,x=a.right*b,b=a.bottom*b,l=a.left*q,h=a.top*q,u=a.right*q,q=a.bottom*q;this.kb=l-d;this.lb=h+c;this.cc=u-d;this.ec=h+x;this.Pb=u-b;this.Qb=q+x;this.Nb=l-b;this.Ob=q+c}};m.prototype.offset=function(a,n){this.kb+=
a;this.lb+=n;this.cc+=a;this.ec+=n;this.Pb+=a;this.Qb+=n;this.Nb+=a;this.Ob+=n;return this};var w=0,s=0;m.prototype.sn=function(a){e(this.kb,this.cc,this.Pb,this.Nb);a.left=w;a.right=s;e(this.lb,this.ec,this.Qb,this.Ob);a.top=w;a.bottom=s};m.prototype.Sb=function(a,n){var b=this.cc-this.kb,q=this.ec-this.lb,c=this.Pb-this.kb,d=this.Qb-this.lb,x=a-this.kb,l=n-this.lb,h=b*b+q*q,u=b*c+q*d,q=b*x+q*l,k=c*c+d*d,f=c*x+d*l,M=1/(h*k-u*u),b=(k*q-u*f)*M,h=(h*f-u*q)*M;if(0<=b&&0<h&&1>b+h)return!0;b=this.Nb-this.kb;
q=this.Ob-this.lb;h=b*b+q*q;u=b*c+q*d;q=b*x+q*l;M=1/(h*k-u*u);b=(k*q-u*f)*M;h=(h*f-u*q)*M;return 0<=b&&0<h&&1>b+h};ua=m;va=function(a,n){for(var b in n)n.hasOwnProperty(b)&&(a[b]=n[b]);return a};wa=function(a,n){var b,q;n=R(n);if(!(0>n||n>=a.length)){b=n;for(q=a.length-1;b<q;b++)a[b]=a[b+1];a.length=q}};xa=function(a,n){a.length=n.length;var b,q;b=0;for(q=n.length;b<q;b++)a[b]=n[b]};ya=function(a,n){a.push.apply(a,n)};za=function(a,n){var b,q;b=0;for(q=a.length;b<q;++b)if(a[b]===n)return b;return-1};
Aa=function(a,n){var b=za(a,n);-1!==b&&wa(a,b)};V=function(a){return a/(180/pa)};Ba=function(a){return 180/pa*a};Ca=function(a){a%=360;0>a&&(a+=360);return a};Da=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ea=function(a){return Ca(Ba(a))};Fa=function(a){return Da(V(a))};Ga=function(a,n,b,q){return Math.atan2(q-n,b-a)};Ia=function(a,n){if(a===n)return 0;var b=Math.sin(a),q=Math.cos(a),c=Math.sin(n),d=Math.cos(n),b=b*c+q*d;return 1<=b?0:-1>=b?pa:Math.acos(b)};Ja=function(a,n,b){var q=Math.sin(a),c=
Math.cos(a),d=Math.sin(n),x=Math.cos(n);return Math.acos(q*d+c*x)>b?0<c*d-q*x?Da(a+b):Da(a-b):Da(n)};Ka=function(a,n){var b=Math.sin(a),q=Math.cos(a),c=Math.sin(n),d=Math.cos(n);return 0>=q*c-b*d};La=function(a,n,b,q,c,d){if(0===b)return d?a:n;var x=Math.sin(b);b=Math.cos(b);a-=q;n-=c;var l=a*x;a=a*b-n*x;n=n*b+l;return d?a+q:n+c};Qa=function(a,n,b,q){a=b-a;n=q-n;return Math.sqrt(a*a+n*n)};Ra=function(a,n){return!a!==!n};Sa=function(a){for(var n in a)if(a.hasOwnProperty(n))return!0;return!1};Ta=function(a){for(var n in a)a.hasOwnProperty(n)&&
delete a[n]};var q=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-q};var n=!1,x=n=!1,M=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),
x=/(iphone|ipod|ipad)/i.test(navigator.userAgent),M=window.c2ejecta);var u=!n&&!M&&!x&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Ld()?!1:u?this.Rc.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(u)this.Rc.has(a)||(this.Rc.add(a),this.ge=!1);else{var n=a.toString(),b=this.items;b?b.hasOwnProperty(n)||(b[n]=a,this.Lf++,this.ge=!1):(this.items={},this.items[n]=a,this.Lf=1,this.ge=!1)}};p.prototype.remove=
function(a){if(!this.Ld())if(u)this.Rc.has(a)&&(this.Rc["delete"](a),this.ge=!1);else if(this.items){a=a.toString();var n=this.items;n.hasOwnProperty(a)&&(delete n[a],this.Lf--,this.ge=!1)}};p.prototype.clear=function(){this.Ld()||(u?this.Rc.clear():(this.items=null,this.Lf=0),this.ng.length=0,this.ge=!0)};p.prototype.Ld=function(){return 0===this.count()};p.prototype.count=function(){return u?this.Rc.size:this.Lf};var D=null,L=0;p.prototype.bv=function(){if(!this.ge){if(u)this.ng.length=this.Rc.size,
D=this.ng,L=0,this.Rc.forEach(r),D=null,L=0;else{var a=this.ng;a.length=this.Lf;var n,b=0,q=this.items;if(q)for(n in q)q.hasOwnProperty(n)&&(a[b++]=q[n])}this.ge=!0}};p.prototype.Uc=function(){this.bv();return this.ng};ba=p;new ba;Va=function(a,n){u?Wa(a,n.Rc):Xa(a,n.Uc())};Wa=function(a,n){var b,q,c,d;q=b=0;for(c=a.length;b<c;++b)d=a[b],n.has(d)||(a[q++]=d);a.length=q};Xa=function(a,n){var b,q,c,d;q=b=0;for(c=a.length;b<c;++b)d=a[b],-1===za(n,d)&&(a[q++]=d);a.length=q};d.prototype.add=function(a){this.y=
a-this.mk;this.Kj=this.X+this.y;this.mk=this.Kj-this.X-this.y;this.X=this.Kj};d.prototype.reset=function(){this.X=this.Kj=this.y=this.mk=0};Ya=d;Za=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Kh=function(a){this.tp=a;this.wj=a.length/2;this.$f.length=a.length;this.nk=this.ok=-1;this.vn=0};b.prototype.Tt=function(){return!this.tp.length};b.prototype.Pa=function(){for(var a=this.$f,n=a[0],b=n,q=a[1],c=q,d,x,l=1,h=this.wj;l<h;++l)x=2*l,d=a[x],x=a[x+1],d<n&&(n=d),d>b&&
(b=d),x<q&&(q=x),x>c&&(c=x);this.nn=n;this.pn=b;this.qn=q;this.mn=c};b.prototype.Jh=function(a,n,b){this.$f.length=8;this.wj=4;var q=this.$f;q[0]=a.left-n;q[1]=a.top-b;q[2]=a.right-n;q[3]=a.top-b;q[4]=a.right-n;q[5]=a.bottom-b;q[6]=a.left-n;q[7]=a.bottom-b;this.ok=a.right-a.left;this.nk=a.bottom-a.top;this.Pa()};b.prototype.Or=function(a,n,b){if(this.ok!==a||this.nk!==n||this.vn!==b){this.ok=a;this.nk=n;this.vn=b;var q,c,d,x,l,h=0,u=1,k=this.tp,f=this.$f;0!==b&&(h=Math.sin(b),u=Math.cos(b));b=0;for(d=
this.wj;b<d;b++)q=2*b,c=q+1,x=k[q]*a,l=k[c]*n,f[q]=x*u-l*h,f[c]=l*u+x*h;this.Pa()}};b.prototype.Sb=function(a,n){var b=this.$f;if(a===b[0]&&n===b[1])return!0;var q,c,d,x=this.wj,l=this.nn-110,h=this.qn-101,u=this.pn+131,k=this.mn+120,f,M,L=0,e=0;for(q=0;q<x;q++)c=2*q,d=(q+1)%x*2,f=b[c],c=b[c+1],M=b[d],d=b[d+1],ta(l,h,a,n,f,c,M,d)&&L++,ta(u,k,a,n,f,c,M,d)&&e++;return 1===L%2||1===e%2};$a=b;c.prototype.ke=function(a,n,b){var q;q=this.cells[a];return q?(q=q[n])?q:b?(q=h(this,a,n),this.cells[a][n]=q):
null:b?(q=h(this,a,n),this.cells[a]={},this.cells[a][n]=q):null};c.prototype.fc=function(a){return R(a/this.rk)};c.prototype.gc=function(a){return R(a/this.qk)};c.prototype.update=function(a,n,b){var q,c,d,x,l;if(n)for(q=n.left,c=n.right;q<=c;++q)for(d=n.top,x=n.bottom;d<=x;++d)if(!b||!b.Sb(q,d))if(l=this.ke(q,d,!1))l.remove(a),l.Ld()&&(l.bb.clear(),1E3>A.length&&A.push(l),this.cells[q][d]=null);if(b)for(q=b.left,c=b.right;q<=c;++q)for(d=b.top,x=b.bottom;d<=x;++d)n&&n.Sb(q,d)||this.ke(q,d,!0).kl(a)};
c.prototype.vp=function(a,n){var b,q,c,d,x,l;b=this.fc(a.left);c=this.gc(a.top);q=this.fc(a.right);for(x=this.gc(a.bottom);b<=q;++b)for(d=c;d<=x;++d)(l=this.ke(b,d,!1))&&l.dump(n)};ab=c;f.prototype.ke=function(a,n,b){var q;q=this.cells[a];return q?(q=q[n])?q:b?(q=l(this,a,n),this.cells[a][n]=q):null:b?(q=l(this,a,n),this.cells[a]={},this.cells[a][n]=q):null};f.prototype.fc=function(a){return R(a/this.rk)};f.prototype.gc=function(a){return R(a/this.qk)};f.prototype.update=function(a,n,b){var q,c,d,
x,l;if(n)for(q=n.left,c=n.right;q<=c;++q)for(d=n.top,x=n.bottom;d<=x;++d)if(!b||!b.Sb(q,d))if(l=this.ke(q,d,!1))l.remove(a),l.Ld()&&(l.reset(),1E3>v.length&&v.push(l),this.cells[q][d]=null);if(b)for(q=b.left,c=b.right;q<=c;++q)for(d=b.top,x=b.bottom;d<=x;++d)n&&n.Sb(q,d)||this.ke(q,d,!0).kl(a)};f.prototype.vp=function(a,n,b,q,c){var d,x;a=this.fc(a);n=this.gc(n);b=this.fc(b);for(d=this.gc(q);a<=b;++a)for(q=n;q<=d;++q)(x=this.ke(a,q,!1))&&x.dump(c)};f.prototype.Zt=function(a){var n,b,q,c,d;n=a.left;
q=a.top;b=a.right;for(c=a.bottom;n<=b;++n)for(a=q;a<=c;++a)if(d=this.ke(n,a,!1))d.Kf=!1};bb=f;var A=[];a.prototype.Ld=function(){return this.bb.Ld()};a.prototype.kl=function(a){this.bb.add(a)};a.prototype.remove=function(a){this.bb.remove(a)};a.prototype.dump=function(a){ya(a,this.bb.Uc())};aa=a;var v=[];t.prototype.Ld=function(){if(!this.bb.length)return!0;if(this.bb.length>this.gd.count())return!1;this.Mk();return!0};t.prototype.kl=function(a){this.gd.contains(a)?(this.gd.remove(a),this.gd.Ld()&&
(this.sg=!1)):this.bb.length?(this.bb[this.bb.length-1].wc()>a.wc()&&(this.Kf=!1),this.bb.push(a)):(this.bb.push(a),this.Kf=!0)};t.prototype.remove=function(a){this.gd.add(a);this.sg=!0;30<=this.gd.count()&&this.Mk()};t.prototype.Mk=function(){this.sg&&(this.gd.count()===this.bb.length?this.reset():(Va(this.bb,this.gd),this.gd.clear(),this.sg=!1))};t.prototype.vs=function(){this.Kf||(this.bb.sort(k),this.Kf=!0)};t.prototype.reset=function(){this.bb.length=0;this.Kf=!0;this.gd.clear();this.sg=!1};
t.prototype.dump=function(a){this.Mk();this.vs();this.bb.length&&a.push(this.bb)};da=t;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};db=function(a,n,b){if(b)switch(a.qb=b.ONE,a.ob=b.ONE_MINUS_SRC_ALPHA,n){case 1:a.qb=b.ONE;a.ob=b.ONE;break;case 3:a.qb=b.ONE;a.ob=b.ZERO;break;case 4:a.qb=b.ONE_MINUS_DST_ALPHA;a.ob=b.ONE;break;case 5:a.qb=b.DST_ALPHA;a.ob=b.ZERO;
break;case 6:a.qb=b.ZERO;a.ob=b.SRC_ALPHA;break;case 7:a.qb=b.ONE_MINUS_DST_ALPHA;a.ob=b.ZERO;break;case 8:a.qb=b.ZERO;a.ob=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.qb=b.DST_ALPHA;a.ob=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.qb=b.ONE_MINUS_DST_ALPHA,a.ob=b.SRC_ALPHA}};eb=function(a){return Math.round(1E6*a)/1E6};fb=function(a,n){return"string"!==typeof a||"string"!==typeof n||a.length!==n.length?!1:a===n?!0:a.toLowerCase()===n.toLowerCase()};gb=function(a){a=a.target;return!a||a===document||a===window||
document&&document.body&&a===document.body||fb(a.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(g){var m=new Zb(3);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2]);return m}function ac(g){var m=new Zb(16);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=g[6],m[7]=g[7],m[8]=g[8],m[9]=g[9],m[10]=g[10],m[11]=g[11],m[12]=g[12],m[13]=g[13],m[14]=g[14],m[15]=g[15]);return m}
function bc(g,m){m[0]=g[0];m[1]=g[1];m[2]=g[2];m[3]=g[3];m[4]=g[4];m[5]=g[5];m[6]=g[6];m[7]=g[7];m[8]=g[8];m[9]=g[9];m[10]=g[10];m[11]=g[11];m[12]=g[12];m[13]=g[13];m[14]=g[14];m[15]=g[15]}function cc(g,m){var e=m[0],p=m[1];m=m[2];g[0]*=e;g[1]*=e;g[2]*=e;g[3]*=e;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=m;g[9]*=m;g[10]*=m;g[11]*=m}
function dc(g,m,e,p){p||(p=ac());var r,d,b,c,f,h,a,l,t=g[0],k=g[1];g=g[2];d=e[0];b=e[1];r=e[2];e=m[1];h=m[2];t===m[0]&&k===e&&g===h?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(e=t-m[0],h=k-m[1],a=g-m[2],l=1/Math.sqrt(e*e+h*h+a*a),e*=l,h*=l,a*=l,m=b*a-r*h,r=r*e-d*a,d=d*h-b*e,(l=Math.sqrt(m*m+r*r+d*d))?(l=1/l,m*=l,r*=l,d*=l):d=r=m=0,b=h*d-a*r,c=a*m-e*d,f=e*r-h*m,(l=Math.sqrt(b*b+c*c+f*f))?(l=1/l,b*=l,c*=l,f*=l):f=c=b=0,
p[0]=m,p[1]=b,p[2]=e,p[3]=0,p[4]=r,p[5]=c,p[6]=h,p[7]=0,p[8]=d,p[9]=f,p[10]=a,p[11]=0,p[12]=-(m*t+r*k+d*g),p[13]=-(b*t+c*k+f*g),p[14]=-(e*t+h*k+a*g),p[15]=1)}
(function(){function g(d){this.ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.wn=$b([0,0,100]);this.Co=$b([0,0,0]);this.aq=$b([0,1,0]);this.Km=$b([1,1,1]);this.En=!0;this.Fl=ac();this.Bc=ac();this.po=ac();this.zk=ac();this.m=d;this.Yn()}function m(d,b,c){this.m=d;this.Lh=b;this.name=c;this.Ac=d.getAttribLocation(b,"aPos");this.se=d.getAttribLocation(b,"aTex");this.Ao=d.getUniformLocation(b,"matP");this.bj=d.getUniformLocation(b,"matMV");this.Qf=
d.getUniformLocation(b,"opacity");this.Bo=d.getUniformLocation(b,"samplerFront");this.jh=d.getUniformLocation(b,"samplerBack");this.ef=d.getUniformLocation(b,"destStart");this.df=d.getUniformLocation(b,"destEnd");this.Cl=d.getUniformLocation(b,"seconds");this.Bl=d.getUniformLocation(b,"pixelWidth");this.Al=d.getUniformLocation(b,"pixelHeight");this.ih=d.getUniformLocation(b,"layerScale");this.hh=d.getUniformLocation(b,"layerAngle");this.lh=d.getUniformLocation(b,"viewOrigin");this.kh=d.getUniformLocation(b,
"scrollPos");this.Ht=!!(this.Bl||this.Al||this.Cl||this.jh||this.ef||this.df||this.ih||this.hh||this.lh||this.kh);this.Ko=this.Lo=-999;this.dj=1;this.Go=this.Fo=0;this.Io=this.Eo=this.Do=1;this.No=this.Mo=this.Po=this.Oo=this.Ho=0;this.ul=[];this.Jo=ac();this.Qf&&d.uniform1f(this.Qf,1);this.Bo&&d.uniform1i(this.Bo,0);this.jh&&d.uniform1i(this.jh,1);this.ef&&d.uniform2f(this.ef,0,0);this.df&&d.uniform2f(this.df,1,1);this.ih&&d.uniform1f(this.ih,1);this.hh&&d.uniform1f(this.hh,0);this.lh&&d.uniform2f(this.lh,
0,0);this.kh&&d.uniform2f(this.kh,0,0);this.Te=!1}function e(d,b){this.type=d;this.q=b;this.m=b.m;this.xc=this.oc=this.dp=0;this.ga=this.Sc=null;this.Gp=[]}g.prototype.Yn=function(){var d=this.m,b;this.qo=1;this.$e=this.qe=null;this.gi=1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.DEPTH_TEST);this.so=d.ONE;this.no=d.ONE_MINUS_SRC_ALPHA;this.Vl=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.Vl);this.Vh=
Array(4);this.Ph=Array(4);for(b=0;4>b;b++)this.Vh[b]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.Vh[b]),this.Ph[b]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.Ph[b]);this.Bd=0;this.Kt=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,this.Kt);this.Gm=new Float32Array(16E3);this.um=new Float32Array(16E3);this.pp=new Float32Array(32E3);for(var c=new Uint16Array(12E3),f=b=0;12E3>b;)c[b++]=f,c[b++]=f+1,c[b++]=f+2,c[b++]=f,c[b++]=f+2,c[b++]=f+3,f+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER,c,
d.STATIC_DRAW);this.Yf=this.rd=0;this.Xa=[];b=this.yk({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.Xa.push(b);b=this.yk({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.Xa.push(b);for(var h in ec)ec.hasOwnProperty(h)&&this.Xa.push(this.yk(ec[h],
"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}",h));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,null);this.xd=[];this.Xc=0;this.Ub=this.Db=!1;this.An=this.Xg=-1;this.Bg=null;this.Vs=d.createFramebuffer();this.xp=null;this.Ce=$b([0,0,0]);d=d.getParameter(d.ALIASED_POINT_SIZE_RANGE);this.bu=d[0];this.Gl=
d[1];2048<this.Gl&&(this.Gl=2048);this.md(0)};m.prototype.Cm=function(d){var b=this.Jo;if(b[0]!==d[0]||b[1]!==d[1]||b[2]!==d[2]||b[3]!==d[3]||b[4]!==d[4]||b[5]!==d[5]||b[6]!==d[6]||b[7]!==d[7]||b[8]!==d[8]||b[9]!==d[9]||b[10]!==d[10]||b[11]!==d[11]||b[12]!==d[12]||b[13]!==d[13]||b[14]!==d[14]||b[15]!==d[15])bc(d,this.Jo),this.m.uniformMatrix4fv(this.bj,!1,d)};g.prototype.yk=function(d,b,c){var f=this.m,h=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(h,d.src);f.compileShader(h);if(!f.getShaderParameter(h,
f.COMPILE_STATUS))return f.deleteShader(h),null;var a=f.createShader(f.VERTEX_SHADER);f.shaderSource(a,b);f.compileShader(a);if(!f.getShaderParameter(a,f.COMPILE_STATUS))return f.deleteShader(h),f.deleteShader(a),null;b=f.createProgram();f.attachShader(b,h);f.attachShader(b,a);f.linkProgram(b);if(!f.getProgramParameter(b,f.LINK_STATUS))return f.deleteShader(h),f.deleteShader(a),f.deleteProgram(b),null;f.useProgram(b);f.deleteShader(h);f.deleteShader(a);c=new m(f,b,c);c.Ik=d.Ik||0;c.Jk=d.Jk||0;c.zn=
!!d.zn;c.hn=!!d.hn;c.S=d.S||[];d=0;for(h=c.S.length;d<h;d++)c.S[d][1]=f.getUniformLocation(b,c.S[d][0]),c.ul.push(0),f.uniform1f(c.S[d][1],0);return c};g.prototype.Yk=function(d){var b,c;b=0;for(c=this.Xa.length;b<c;b++)if(this.Xa[b].name===d)return b;return-1};g.prototype.sp=function(d,b,c){var f=this.Bc,h=this.Fl,a=[0,0,0,0,0,0,0,0];a[0]=f[0]*d+f[4]*b+f[12];a[1]=f[1]*d+f[5]*b+f[13];a[2]=f[2]*d+f[6]*b+f[14];a[3]=f[3]*d+f[7]*b+f[15];a[4]=h[0]*a[0]+h[4]*a[1]+h[8]*a[2]+h[12]*a[3];a[5]=h[1]*a[0]+h[5]*
a[1]+h[9]*a[2]+h[13]*a[3];a[6]=h[2]*a[0]+h[6]*a[1]+h[10]*a[2]+h[14]*a[3];a[7]=-a[2];0!==a[7]&&(a[7]=1/a[7],a[4]*=a[7],a[5]*=a[7],a[6]*=a[7],c[0]=(.5*a[4]+.5)*this.width,c[1]=(.5*a[5]+.5)*this.height)};g.prototype.eg=function(d,b,c){if(this.width!==d||this.height!==b||c){this.Fd();this.width=d;this.height=b;this.m.viewport(0,0,d,b);b=d/b;var f=this.Fl,h;h=1*Math.tan(45*Math.PI/360);b*=h;d=-b;c=-h;f||(f=ac());var a=b-d,l=h-c;f[0]=2/a;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/l;f[6]=0;f[7]=0;f[8]=(b+d)/a;f[9]=
(h+c)/l;f[10]=-1001/999;f[11]=-1;f[12]=0;f[13]=0;f[14]=-2E3/999;f[15]=0;dc(this.wn,this.Co,this.aq,this.Bc);d=[0,0];b=[0,0];this.sp(0,0,d);this.sp(1,1,b);this.Km[0]=1/(b[0]-d[0]);this.Km[1]=-1/(b[1]-d[1]);d=0;for(b=this.Xa.length;d<b;d++)c=this.Xa[d],c.Te=!1,c.Ao&&(this.m.useProgram(c.Lh),this.m.uniformMatrix4fv(c.Ao,!1,this.Fl));this.m.useProgram(this.Xa[this.Xg].Lh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.$e=this.qe=null}};g.prototype.jd=function(){dc(this.wn,this.Co,this.aq,this.Bc);cc(this.Bc,this.Km)};g.prototype.translate=function(d,b){if(0!==d||0!==b){this.Ce[0]=d;this.Ce[1]=b;this.Ce[2]=0;var c=this.Bc,f=this.Ce,h=f[0],a=f[1],f=f[2];c[12]=c[0]*h+c[4]*a+c[8]*f+c[12];c[13]=c[1]*h+c[5]*a+c[9]*f+c[13];c[14]=c[2]*h+c[6]*a+c[10]*f+c[14];c[15]=c[3]*h+c[7]*a+c[11]*f+c[15]}};g.prototype.scale=function(d,b){if(1!==d||1!==b)this.Ce[0]=d,this.Ce[1]=b,this.Ce[2]=1,cc(this.Bc,this.Ce)};g.prototype.gm=
function(d){if(0!==d){var b=this.Bc,c,f=Math.sin(d);d=Math.cos(d);var h=b[0],a=b[1],l=b[2],e=b[3],k=b[4],w=b[5],g=b[6],q=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=h*d+k*f;c[1]=a*d+w*f;c[2]=l*d+g*f;c[3]=e*d+q*f;c[4]=h*-f+k*d;c[5]=a*-f+w*d;c[6]=l*-f+g*d;c[7]=e*-f+q*d}};g.prototype.qd=function(){for(var d=!1,b=0;16>b;b++)if(this.po[b]!==this.Bc[b]){d=!0;break}d&&(d=this.Fc(),d.type=5,d.ga?bc(this.Bc,d.ga):d.ga=ac(this.Bc),bc(this.Bc,
this.po),this.Ub=this.Db=!1)};e.prototype.ks=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Sc)};e.prototype.ls=function(){var d=this.m;d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,this.Sc);d.activeTexture(d.TEXTURE0)};e.prototype.gs=function(){var d=this.dp,b=this.q;b.gi=d;b=b.Bg;b.Qf&&b.dj!==d&&(b.dj=d,this.m.uniform1f(b.Qf,d))};e.prototype.cs=function(){this.m.drawElements(this.m.TRIANGLES,this.xc,this.m.UNSIGNED_SHORT,2*this.oc)};e.prototype.es=function(){this.m.blendFunc(this.oc,
this.xc)};e.prototype.ms=function(){var d,b,c,f=this.q.Xa,h=this.q.An;d=0;for(b=f.length;d<b;d++)c=f[d],d===h&&c.bj?(c.Cm(this.ga),c.Te=!0):c.Te=!1;bc(this.ga,this.q.zk)};e.prototype.ds=function(){var d=this.m,b=this.q;this.Sc?(b.$e===this.Sc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,null),b.$e=null,d.activeTexture(d.TEXTURE0)),d.bindFramebuffer(d.FRAMEBUFFER,b.Vs),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,this.Sc,0)):(d.framebufferTexture2D(d.FRAMEBUFFER,
d.COLOR_ATTACHMENT0,d.TEXTURE_2D,null,0),d.bindFramebuffer(d.FRAMEBUFFER,null))};e.prototype.as=function(){var d=this.m;0===this.oc?(d.clearColor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),d.clear(d.COLOR_BUFFER_BIT)):(d.enable(d.SCISSOR_TEST),d.scissor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),d.clearColor(0,0,0,0),d.clear(this.m.COLOR_BUFFER_BIT),d.disable(d.SCISSOR_TEST))};e.prototype.bs=function(){var d=this.m,b=this.q,c=b.Xa[1];d.useProgram(c.Lh);!c.Te&&c.bj&&(c.Cm(b.zk),c.Te=!0);d.enableVertexAttribArray(c.Ac);
d.bindBuffer(d.ARRAY_BUFFER,b.Vl);d.vertexAttribPointer(c.Ac,4,d.FLOAT,!1,0,0);d.drawArrays(d.POINTS,this.oc/4,this.xc);c=b.Bg;d.useProgram(c.Lh);0<=c.Ac&&(d.enableVertexAttribArray(c.Ac),d.bindBuffer(d.ARRAY_BUFFER,b.Vh[b.Bd]),d.vertexAttribPointer(c.Ac,2,d.FLOAT,!1,0,0));0<=c.se&&(d.enableVertexAttribArray(c.se),d.bindBuffer(d.ARRAY_BUFFER,b.Ph[b.Bd]),d.vertexAttribPointer(c.se,2,d.FLOAT,!1,0,0))};e.prototype.hs=function(){var d=this.m,b=this.q,c=b.Xa[this.oc];b.An=this.oc;b.Bg=c;d.useProgram(c.Lh);
!c.Te&&c.bj&&(c.Cm(b.zk),c.Te=!0);c.Qf&&c.dj!==b.gi&&(c.dj=b.gi,d.uniform1f(c.Qf,b.gi));0<=c.Ac&&(d.enableVertexAttribArray(c.Ac),d.bindBuffer(d.ARRAY_BUFFER,b.Vh[b.Bd]),d.vertexAttribPointer(c.Ac,2,d.FLOAT,!1,0,0));0<=c.se&&(d.enableVertexAttribArray(c.se),d.bindBuffer(d.ARRAY_BUFFER,b.Ph[b.Bd]),d.vertexAttribPointer(c.se,2,d.FLOAT,!1,0,0))};e.prototype.js=function(){var d,b,c=this.q.Bg,f=this.m;d=this.ga;c.jh&&this.q.$e!==this.Sc&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.Sc),
this.q.$e=this.Sc,f.activeTexture(f.TEXTURE0));var h=d[0];c.Bl&&h!==c.Lo&&(c.Lo=h,f.uniform1f(c.Bl,h));h=d[1];c.Al&&h!==c.Ko&&(c.Ko=h,f.uniform1f(c.Al,h));h=d[2];b=d[3];!c.ef||h===c.Fo&&b===c.Go||(c.Fo=h,c.Go=b,f.uniform2f(c.ef,h,b));h=d[4];b=d[5];!c.df||h===c.Do&&b===c.Eo||(c.Do=h,c.Eo=h,f.uniform2f(c.df,h,b));h=d[6];c.ih&&h!==c.Io&&(c.Io=h,f.uniform1f(c.ih,h));h=d[7];c.hh&&h!==c.Ho&&(c.Ho=h,f.uniform1f(c.hh,h));h=d[8];b=d[9];!c.lh||h===c.Oo&&b===c.Po||(c.Oo=h,c.Po=b,f.uniform2f(c.lh,h,b));h=d[10];
b=d[11];!c.kh||h===c.Mo&&b===c.No||(c.Mo=h,c.No=b,f.uniform2f(c.kh,h,b));c.Cl&&f.uniform1f(c.Cl,Ua()/1E3);if(c.S.length)for(d=0,b=c.S.length;d<b;d++)h=this.Gp[d],h!==c.ul[d]&&(c.ul[d]=h,f.uniform1f(c.S[d][1],h))};g.prototype.Fc=function(){this.Xc===this.xd.length&&this.xd.push(new e(0,this));return this.xd[this.Xc++]};g.prototype.Fd=function(){if(0!==this.Xc&&!this.m.isContextLost()){var d=this.m;0<this.Yf&&(d.bindBuffer(d.ARRAY_BUFFER,this.Vl),d.bufferData(d.ARRAY_BUFFER,this.pp.subarray(0,this.Yf),
d.STREAM_DRAW),b&&0<=b.Ac&&"<point>"===b.name&&d.vertexAttribPointer(b.Ac,4,d.FLOAT,!1,0,0));if(0<this.rd){var b=this.Bg;d.bindBuffer(d.ARRAY_BUFFER,this.Vh[this.Bd]);d.bufferData(d.ARRAY_BUFFER,this.Gm.subarray(0,this.rd),d.STREAM_DRAW);b&&0<=b.Ac&&"<point>"!==b.name&&d.vertexAttribPointer(b.Ac,2,d.FLOAT,!1,0,0);d.bindBuffer(d.ARRAY_BUFFER,this.Ph[this.Bd]);d.bufferData(d.ARRAY_BUFFER,this.um.subarray(0,this.rd),d.STREAM_DRAW);b&&0<=b.se&&"<point>"!==b.name&&d.vertexAttribPointer(b.se,2,d.FLOAT,
!1,0,0)}for(var c,d=0,b=this.Xc;d<b;d++)switch(c=this.xd[d],c.type){case 1:c.cs();break;case 2:c.ks();break;case 3:c.gs();break;case 4:c.es();break;case 5:c.ms();break;case 6:c.ds();break;case 7:c.as();break;case 8:c.bs();break;case 9:c.hs();break;case 10:c.js();break;case 11:c.ls()}this.Yf=this.rd=this.Xc=0;this.Ub=this.Db=!1;this.Bd++;4<=this.Bd&&(this.Bd=0)}};g.prototype.xe=function(d){if(d!==this.qo){var b=this.Fc();b.type=3;this.qo=b.dp=d;this.Ub=this.Db=!1}};g.prototype.Ib=function(d){if(d!==
this.qe){var b=this.Fc();b.type=2;this.qe=b.Sc=d;this.Ub=this.Db=!1}};g.prototype.we=function(d,b){if(d!==this.so||b!==this.no){var c=this.Fc();c.type=4;c.oc=d;c.xc=b;this.so=d;this.no=b;this.Ub=this.Db=!1}};g.prototype.Bp=function(){this.we(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};g.prototype.Fh=function(d,b,c,f,h,a,l,e){15992<=this.rd&&this.Fd();var k=this.rd,w=this.Gm,g=this.um;if(this.Db)this.xd[this.Xc-1].xc+=6;else{var q=this.Fc();q.type=1;q.oc=k/4*3;q.xc=6;this.Db=!0;this.Ub=!1}w[k]=d;g[k++]=
0;w[k]=b;g[k++]=0;w[k]=c;g[k++]=1;w[k]=f;g[k++]=0;w[k]=h;g[k++]=1;w[k]=a;g[k++]=1;w[k]=l;g[k++]=0;w[k]=e;g[k++]=1;this.rd=k};g.prototype.hd=function(d,b,c,f,h,a,l,e,k){15992<=this.rd&&this.Fd();var w=this.rd,g=this.Gm,q=this.um;if(this.Db)this.xd[this.Xc-1].xc+=6;else{var n=this.Fc();n.type=1;n.oc=w/4*3;n.xc=6;this.Db=!0;this.Ub=!1}var n=k.left,x=k.top,M=k.right;k=k.bottom;g[w]=d;q[w++]=n;g[w]=b;q[w++]=x;g[w]=c;q[w++]=M;g[w]=f;q[w++]=x;g[w]=h;q[w++]=M;g[w]=a;q[w++]=k;g[w]=l;q[w++]=n;g[w]=e;q[w++]=
k;this.rd=w};g.prototype.tu=function(d,b,c,f){7996<=this.Yf&&this.Fd();var h=this.Yf,a=this.pp;if(this.Ub)this.xd[this.Xc-1].xc++;else{var l=this.Fc();l.type=8;l.oc=h;l.xc=1;this.Ub=!0;this.Db=!1}a[h++]=d;a[h++]=b;a[h++]=c;a[h++]=f;this.Yf=h};g.prototype.md=function(d){if(this.Xg!==d){if(!this.Xa[d]){if(0===this.Xg)return;d=0}var b=this.Fc();b.type=9;this.Xg=b.oc=d;this.Ub=this.Db=!1}};g.prototype.Ch=function(d){d=this.Xa[d];return!(!d.ef&&!d.df)};g.prototype.Wl=function(d){d=this.Xa[d];return!!(d.ef||
d.df||d.zn)};g.prototype.Au=function(d){d=this.Xa[d];return 0!==d.Ik||0!==d.Jk};g.prototype.lt=function(d){return this.Xa[d].Ik};g.prototype.mt=function(d){return this.Xa[d].Jk};g.prototype.nt=function(d,b){return this.Xa[d].S[b][2]};g.prototype.vj=function(d){return this.Xa[d].hn};g.prototype.dg=function(d,b,c,f,h,a,l,e,k,w,g,q,n,x){var M=this.Xa[this.Xg],u,D;if(M.Ht||x.length){u=this.Fc();u.type=10;u.ga?bc(this.Bc,u.ga):u.ga=ac();D=u.ga;D[0]=b;D[1]=c;D[2]=f;D[3]=h;D[4]=a;D[5]=l;D[6]=e;D[7]=k;D[8]=
w;D[9]=g;D[10]=q;D[11]=n;u.Sc=M.jh?d:null;if(x.length)for(c=u.Gp,c.length=x.length,d=0,b=x.length;d<b;d++)c[d]=x[d];this.Ub=this.Db=!1}};g.prototype.clear=function(d,b,c,f){var h=this.Fc();h.type=7;h.oc=0;h.ga||(h.ga=ac());h.ga[0]=d;h.ga[1]=b;h.ga[2]=c;h.ga[3]=f;this.Ub=this.Db=!1};g.prototype.clearRect=function(d,b,c,f){if(!(0>c||0>f)){var h=this.Fc();h.type=7;h.oc=1;h.ga||(h.ga=ac());h.ga[0]=d;h.ga[1]=b;h.ga[2]=c;h.ga[3]=f;this.Ub=this.Db=!1}};g.prototype.zu=function(){this.Fd();this.m.flush()};
var p=[],r={};g.prototype.Sr=function(){p.length=0;r={}};g.prototype.Of=function(d,b,c,f){b=!!b;c=!!c;var h=d.src+","+b+","+c+(b?",undefined":""),a=null;if("undefined"!==typeof d.src&&r.hasOwnProperty(h))return a=r[h],a.Zh++,a;this.Fd();var l=this.m,e=ia(d.width)&&ia(d.height),a=l.createTexture();l.bindTexture(l.TEXTURE_2D,a);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=l.RGBA,w=l.RGBA,g=l.UNSIGNED_BYTE;if(f&&!this.ne)switch(f){case 1:w=k=l.RGB;break;case 2:g=l.UNSIGNED_SHORT_4_4_4_4;
break;case 3:g=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=k=l.RGB,g=l.UNSIGNED_SHORT_5_6_5}if(!e&&b){f=document.createElement("canvas");f.width=ma(d.width);f.height=ma(d.height);var q=f.getContext("2d");q.webkitImageSmoothingEnabled=c;q.mozImageSmoothingEnabled=c;q.msImageSmoothingEnabled=c;q.imageSmoothingEnabled=c;q.drawImage(d,0,0,d.width,d.height,0,0,f.width,f.height);l.texImage2D(l.TEXTURE_2D,0,k,w,g,f)}else l.texImage2D(l.TEXTURE_2D,0,k,w,g,d);b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),e&&this.En?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.qe=null;a.wg=d.width;a.vg=d.height;a.Zh=1;a.un=h;p.push(a);return r[h]=a};g.prototype.Ad=function(d,b,c,f){this.Fd();var h=this.m;this.ne&&(f=!1);var a=h.createTexture();h.bindTexture(h.TEXTURE_2D,a);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,d,b,0,h.RGBA,f?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.qe=null;a.wg=d;a.vg=b;p.push(a);return a};g.prototype.jv=function(d,b,c){this.Fd();var f=this.m;this.ne&&(c=!1);f.bindTexture(f.TEXTURE_2D,b);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,c?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,d)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",
h)}f.bindTexture(f.TEXTURE_2D,null);this.qe=null};g.prototype.deleteTexture=function(d){d&&("undefined"!==typeof d.Zh&&1<d.Zh?d.Zh--:(this.Fd(),d===this.qe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.qe=null),d===this.$e&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.$e=null),Aa(p,d),"undefined"!==typeof d.un&&delete r[d.un],this.m.deleteTexture(d)))};g.prototype.kd=function(d){if(d!==this.xp){var b=this.Fc();b.type=
6;this.xp=b.Sc=d;this.Ub=this.Db=!1}};hb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var n=this;this.yc=(this.Sg=/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.gb=!!a.dc;this.Ff="undefined"!==typeof window.AppMobi||this.gb;this.lc=!!window.c2cocoonjs;this.Mc=!!window.c2ejecta;this.lc&&(CocoonJS.App.onSuspended.addEventListener(function(){n.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){n.setSuspended(!1)}));this.Mc&&(document.addEventListener("pagehide",function(){n.setSuspended(!0)}),document.addEventListener("pageshow",
function(){n.setSuspended(!1)}),document.addEventListener("resize",function(){n.setSize(window.innerWidth,window.innerHeight)}));this.P=this.gb||this.lc||this.Mc;this.ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.eo=/tizen/i.test(navigator.userAgent);this.Ji=/android/i.test(navigator.userAgent)&&!this.eo&&!this.ne;this.sl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.ne;this.ko=/ipad/i.test(navigator.userAgent);this.Oi=this.sl||this.ko||this.Mc;this.Ut=this.sl&&/os\s6/i.test(navigator.userAgent);this.Rg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.ne;this.ml=/amazonwebappplatform/i.test(navigator.userAgent);this.Nt=/firefox/i.test(navigator.userAgent);this.co=/safari/i.test(navigator.userAgent)&&!this.Rg&&!this.ne;this.Qt=/windows/i.test(navigator.userAgent);this.oe="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.ho=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.St=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Hf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.ql=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.fo=this.ho||this.St||this.ql;this.Mt=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Ki=this.Ji&&!this.Rg&&!this.Sg&&!this.Nt&&!this.ml&&!this.P;this.devicePixelRatio=1;this.Nc=this.yc||this.Sg||this.Ff||this.lc||this.Ji||this.Oi||this.Hf||this.ql||this.Mt||this.eo||this.Mc;this.Nc||(this.Nc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.oe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.oe=!0);this.canvas=a;this.$h=document.getElementById("c2canvasdiv");this.ma=this.q=this.m=null;this.Pk="";this.ri=!1;this.bp=this.cp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.gb&&(window.c2runtime=this);this.oe&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Ki&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.O=this.width;this.N=this.height;this.ei=this.width;this.di=this.height;this.Zg=window.innerWidth;this.Yg=window.innerHeight;this.Xs=!1;this.T=!0;this.Ug=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ma=[];this.Nf={};this.Wb=[];this.Hk={};this.Gd=[];this.qg=[];this.Rj=[];this.fk=[];this.Hr=[];this.Ke={};this.nl=
this.le=!1;this.Md=0;this.pl=!1;this.Zc=[];this.Nd=this.wb=this.Xi=this.lm="";this.Nh=this.Jp=!1;this.wk=this.mh=this.ie=this.Ne=0;this.jg=1;this.mc=new Ya;this.sd=new Ya;this.fj=this.vi=this.ni=this.od=this.cf=this.Ok=this.Si=0;this.zd=null;this.Dk=[];this.Gk=[];this.mi=-1;this.Dl=[[]];this.zm=this.cj=0;this.Yl(null);this.Wo=this.ph=0;this.yl=!0;this.Eg=0;this.Oh=[];this.wm=this.$l=-1;this.Ze=!0;this.aj=0;this.Tg=!1;this.Tu=0;this.vf=null;this.fa=this.Ef=!1;this.$o=new ba;this.Ll=new ba;this.Ml=
new ba;this.Du=[];new $a([]);new $a([]);this.ee=[];this.Ci={};this.wf={};this.uf={};this.pg={};this.rn={};this.zo=this.Wi=this.Vb=this.nc=this.yo=this.Vi=this.ja=null;this.mg=this.rl=!1;this.Qk=[null,null];this.Re=0;this.Lk="";this.Rd={};this.Ej=this.Pf=null;this.ej=[];this.Eu()}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function r(a,n,b,c){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=p;d.onerror=c;d.onsuccess=function(d){d=d.target.result;d.onerror=c;d.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:a,data:n}).onsuccess=b}}function d(a,n,b){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=p;d.onerror=b;d.onsuccess=function(d){d=d.target.result;d.onerror=b;var c=d.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?n(c.result.data):n(null)}}}function b(){J("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function c(a){var n,b={};for(n in a)!a.hasOwnProperty(n)||a[n]instanceof ba||a[n]&&"undefined"!==typeof a[n].ow||(b[n]=a[n]);return b}e.prototype.Eu=function(){var a=this,n;n=this.Hf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.ho||this.Hf||this.ql)b="data.json";n.open("GET",b,!0);var d=!1;if(!this.P&&"response"in n&&"responseType"in n)try{n.responseType="json",d="json"===n.responseType}catch(c){d=!1}if(!d&&"responseType"in n)try{n.responseType="text"}catch(l){}if("overrideMimeType"in
n)try{n.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.Hf?n.onreadystatechange=function(){4===n.readyState&&a.Zi(JSON.parse(n.responseText))}:(n.onload=function(){if(d)a.Zi(n.response);else if(a.Mc){var b=n.responseText,b=b.substr(b.indexOf("{"));a.Zi(JSON.parse(b))}else a.Zi(JSON.parse(n.responseText))},n.onerror=function(a){ea("Error requesting "+b+":");ea(a)});n.send()};e.prototype.Lt=function(){var a=this,b,d,c,l,h,k,f,e,t;this.devicePixelRatio=(this.Xe=(!this.P||this.Mc)&&
this.gv&&!this.Ki)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.mb();d=!(!this.Xs&&(!this.hk||this.oe||this.fo||this.Hf||this.Sg||this.yc||this.ml));0<this.sb&&this.setSize(g(),m(),!0);try{this.ts&&(this.lc||this.Mc||!this.P)&&(b={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(w){}if(this.m){this.P||(this.hb=document.createElement("canvas"),
jQuery(this.hb).appendTo(this.canvas.parentNode),this.hb.oncontextmenu=function(){return!1},this.hb.onselectstart=function(){return!1},this.hb.width=this.ei,this.hb.height=this.di,jQuery(this.hb).css({width:this.ei+"px",height:this.di+"px"}),this.rp(),this.Ul=this.hb.getContext("2d"));this.q=new hb(this.m,this.Nc);this.q.eg(this.canvas.width,this.canvas.height);this.q.En=0!==this.ns;this.ma=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.eu();J("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Yn();a.q.eg(a.q.width,a.q.height,!0);a.nc=null;a.Vb=null;a.Qk[0]=null;a.Qk[1]=null;a.fu();a.T=!0;J("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(d=this.n.length;b<d;b++)for(h=this.n[b],c=0,l=h.J.length;c<l;c++)f=h.J[c],f.jb=this.q.Yk(f.id),this.mg=this.mg||this.q.Ch(f.jb);b=0;for(d=this.Wb.length;b<d;b++){e=this.Wb[b];c=0;for(l=e.J.length;c<l;c++)f=e.J[c],f.jb=this.q.Yk(f.id);
c=0;for(l=e.R.length;c<l;c++)for(t=e.R[c],h=0,k=t.J.length;h<k;h++)f=t.J[h],f.jb=this.q.Yk(f.id),this.mg=this.mg||this.q.Ch(f.jb)}}else{if(0<this.sb&&this.gb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ma=AppMobi.canvas.getContext("2d");try{this.ma.samplingMode=this.Z?"smooth":"sharp",this.ma.globalScale=1,this.ma.HTML5CompatibilityMode=!0,this.ma.imageSmoothingEnabled=this.Z}catch(r){}0!==this.width&&0!==this.height&&(this.ma.width=
this.width,this.ma.height=this.height)}this.ma||(b=this.lc?{antialias:!!this.Z,alpha:d}:{alpha:d},this.ma=this.canvas.getContext("2d",b),this.ma.webkitImageSmoothingEnabled=this.Z,this.ma.mozImageSmoothingEnabled=this.Z,this.ma.msImageSmoothingEnabled=this.Z,this.ma.imageSmoothingEnabled=this.Z);this.Ul=this.hb=null}this.Sp=function(b){a.Ga(!1,b)};window==window.top||this.P||this.fo||this.Hf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.lc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(J("Reloading for continuous preview"),this.Xi="__c2_continuouspreview",this.Nh=!0),this.ru&&!this.Nc&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.P||(b=function(a){if(gb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&
document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.sb&&this.Xe&&1<this.devicePixelRatio&&this.setSize(this.Va,this.Ua,!0);this.Xp();this.Et();this.go();this.Ea={}};e.prototype.setSize=function(a,b,d){var c=0,l=0,h=0,f=0,f=0,k=this.Ut&&
this.co&&!navigator.standalone&&!this.P&&!this.yc;k&&(b+=60);if(this.Zg!==a||this.Yg!==b||d){this.Zg=a;this.Yg=b;var e=this.sb,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Tg)&&!this.yc;if(t||0!==this.sb||d)t&&0<this.Re&&(e=this.Re),d=this.devicePixelRatio,4<=e?(h=this.Va/this.Ua,a/b>h?(h*=b,5===e?(f=h*d/this.Va,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),h=this.Va*f/d,f=this.Ua*f/d,c=(a-h)/2,l=(b-f)/2,a=h,b=f):(c=(a-h)/2,a=h)):
(f=a/h,5===e?(f=f*d/this.Ua,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),h=this.Va*f/d,f=this.Ua*f/d,c=(a-h)/2,l=(b-f)/2,a=h):l=(b-f)/2,b=f),t&&!this.oe&&(l=c=0)):this.oe&&this.Tg&&0===this.Kn&&(c=Math.floor((a-this.Va)/2),l=Math.floor((b-this.Ua)/2),a=this.Va,b=this.Ua),2>e&&(this.ug=d),this.Xe&&this.ko&&1<d&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.ei=Math.round(a),this.di=Math.round(b),this.width=Math.round(a*d),this.height=Math.round(b*d),this.T=!0,this.iq?(this.O=this.width,this.N=this.height,
this.uc=!0):this.width<this.Va&&this.height<this.Ua||1===e?(this.O=this.width,this.N=this.height,this.uc=!0):(this.O=this.Va,this.N=this.Ua,this.uc=!1,2===e?(h=this.Va/this.Ua,e=this.Zg/this.Yg,e<h?this.O=this.N*e:e>h&&(this.N=this.O/e)):3===e&&(h=this.Va/this.Ua,e=this.Zg/this.Yg,e>h?this.O=this.N*e:e<h&&(this.N=this.O/e))),this.$h&&!this.P&&(jQuery(this.$h).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(l)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(b*d),this.Mc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(l)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Xe&&!this.P&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.hb&&(this.hb.width=Math.round(a),this.hb.height=Math.round(b),
jQuery(this.hb).css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.q&&this.q.eg(Math.round(a*d),Math.round(b*d)),this.gb&&this.ma&&(this.ma.width=Math.round(a),this.ma.height=Math.round(b)),this.ma&&(this.ma.webkitImageSmoothingEnabled=this.Z,this.ma.mozImageSmoothingEnabled=this.Z,this.ma.msImageSmoothingEnabled=this.Z,this.ma.imageSmoothingEnabled=this.Z),this.Xp(),this.P||!k&&!this.sl||window.setTimeout(function(){window.scrollTo(0,1)},100)}};e.prototype.Xp=function(){if(this.Kr&&
0!==this.Sl){var a="portrait";2===this.Sl&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};e.prototype.eu=function(){this.q.Sr();this.rl=!0;var a,b,d;a=0;for(b=this.n.length;a<b;a++)d=this.n[a],d.qh&&d.qh()};e.prototype.fu=function(){this.rl=
!1;var a,b,d;a=0;for(b=this.n.length;a<b;a++)d=this.n[a],d.hj&&d.hj()};e.prototype.rp=function(){if(!this.P){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Tg)&&!this.yc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.hb).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
e.prototype.setSuspended=function(a){var b;if(a&&!this.Ug)for(J("[Construct 2] Suspending"),this.Ug=!0,-1!==this.$l&&f&&f(this.$l),-1!==this.wm&&clearTimeout(this.wm),a=0,b=this.Oh.length;a<b;a++)this.Oh[a](!0);else if(!a&&this.Ug){J("[Construct 2] Resuming");this.Ug=!1;this.Si=Ua();this.cf=Ua();a=this.mh=this.vi=0;for(b=this.Oh.length;a<b;a++)this.Oh[a](!1);this.Ga(!1)}};e.prototype.Fr=function(a){this.Oh.push(a)};e.prototype.ae=function(a){return this.ej[a]};e.prototype.Zi=function(a){a&&a.project||
ea("Project model unavailable");a=a.project;this.name=a[0];this.Jn=a[1];this.sb=a[12];this.Kn=a[12];this.Va=a[10];this.Ua=a[11];this.kp=this.Va/2;this.lp=this.Ua/2;this.P&&!this.Mc&&(4<=a[12]||0===a[12])&&(J("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Kn=this.sb=3);this.Fm=a[18];this.gh=a[19];0===this.gh&&(this.Pf=new Image,this.Pf.src="loading-logo.png");this.ph=a[21];this.ej=fc();this.nd=new X(this);var b,d,c,l,h,f,k,
e,t;b=0;for(d=a[2].length;b<d;b++)k=a[2][b],c=this.ae(k[0]),ib(k,c.prototype),t=new c(this),t.Cj=k[1],t.pe=k[2],t.To=k[9],t.V&&t.V(),this.plugins.push(t);this.ej=fc();b=0;for(d=a[3].length;b<d;b++){k=a[3][b];h=this.ae(k[1]);t=null;c=0;for(l=this.plugins.length;c<l;c++)if(this.plugins[c]instanceof h){t=this.plugins[c];break}var g=new t.ra(t);g.name=k[0];g.D=k[2];g.ll=k[3].slice(0);g.iv=k[3].length;g.Lr=k[4];g.Zs=k[5];g.W=k[11];g.D?(g.Ro=[],g.Hd=this.Eg++,g.za=null):(g.Ro=null,g.Hd=-1,g.za=[]);g.pi=
null;g.Af=null;g.Fn=null;g.Oc=!1;g.Rb=null;k[6]?(g.Lj=k[6][0],g.Mj=k[6][1],g.Qh=k[6][2]):(g.Lj=null,g.Mj=0,g.Qh=0);g.Mb=k[7]?k[7]:null;g.index=b;g.d=[];g.ii=[];g.ze=[new jb(g)];g.Ed=0;g.$c=null;g.Xr=0;g.hg=!0;g.Tj=kb;g.dt=lb;g.jt=mb;g.na=nb;g.Eh=ob;g.Xl=pb;g.Zf=qb;g.xi=rb;g.Sk=tb;g.Vk=ub;g.wd=vb;g.Pn=wb;g.xn=new ab(this.Va,this.Ua);g.jn=!0;g.kn=!1;g.Ea={};g.toString=xb;g.Ma=[];c=0;for(l=k[8].length;c<l;c++){e=k[8][c];var w=this.ae(e[1]),r=null;h=0;for(f=this.Ma.length;h<f;h++)if(this.Ma[h]instanceof
w){r=this.Ma[h];break}r||(r=new w(this),r.Uo=[],r.Tf=new ba,r.V&&r.V(),this.Ma.push(r));-1===r.Uo.indexOf(g)&&r.Uo.push(g);h=new r.ra(r,g);h.name=e[0];h.W=e[2];h.V();g.Ma.push(h)}g.global=k[9];g.ol=k[10];g.J=[];c=0;for(l=k[12].length;c<l;c++)g.J.push({id:k[12][c][0],name:k[12][c][1],jb:-1,Za:!0,index:c});g.Cw=k[13];this.Fm&&!g.D&&!g.ol&&t.pe||g.V();g.name&&(this.types[g.name]=g);this.n.push(g);t.Cj&&(c=new t.la(g),c.uid=this.ph++,c.up=this.Wo++,c.Ve=0,c.Kg=yb,c.toString=zb,c.C=k[14],c.V(),g.d.push(c),
this.Rd[c.uid.toString()]=c)}b=0;for(d=a[4].length;b<d;b++)for(h=a[4][b],f=this.n[h[0]],c=1,l=h.length;c<l;c++)k=this.n[h[c]],k.za.push(f),f.Ro.push(k);b=0;for(d=a[27].length;b<d;b++){h=a[27][b];f=[];c=0;for(l=h.length;c<l;c++)f.push(this.n[h[c]]);c=0;for(l=f.length;c<l;c++)f[c].Oc=!0,f[c].Rb=f}if(0<this.Eg)for(b=0,d=this.n.length;b<d;b++)if(k=this.n[b],!k.D&&k.za.length){k.pi=Array(this.Eg);k.Af=Array(this.Eg);k.Fn=Array(this.Eg);g=[];c=r=w=e=0;for(l=k.za.length;c<l;c++)for(t=k.za[c],k.pi[t.Hd]=
e,e+=t.iv,k.Af[t.Hd]=w,w+=t.Lr,k.Fn[t.Hd]=r,r+=t.Zs,h=0,f=t.J.length;h<f;h++)g.push(va({},t.J[h]));k.J=g.concat(k.J);c=0;for(l=k.J.length;c<l;c++)k.J[c].index=c}b=0;for(d=a[5].length;b<d;b++)k=a[5][b],c=new Ab(this,k),this.Nf[c.name]=c,this.Wb.push(c);b=0;for(d=a[6].length;b<d;b++)k=a[6][b],c=new Bb(this,k),this.Hk[c.name]=c,this.Gd.push(c);b=0;for(d=this.Gd.length;b<d;b++)this.Gd[b].La();b=0;for(d=this.Gd.length;b<d;b++)this.Gd[b].Bm();b=0;for(d=this.Rj.length;b<d;b++)this.Rj[b].La();this.Rj.length=
0;this.Ir=a[7];this.Lk=a[8];this.Ec=a[9];this.ug=1;this.ts=a[13];this.Z=a[14];this.hk=a[15];this.gv=a[17];this.Sl=a[20];this.Kr=0<this.Sl;this.ru=a[22];this.uc=this.iq=a[23];this.ns=a[24];this.xu=a[25];this.Hj=Date.now();this.ej.length=0;this.Lt()};var h=!1;e.prototype.Im=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){h=a.tn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Mc?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=
b},function(c){h=a.tn=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):a.src=b);this.qg.push(a)};e.prototype.Ws=function(a){var b,c;b=0;for(c=this.qg.length;b<c;b++)if(this.qg[b].Tr===a)return this.qg[b];return null};var a=0,l=!1;e.prototype.Et=function(){this.vf&&(a=this.vf.Qu(this.Ir))};e.prototype.ln=function(){var b=a,n=0,c=0,d=!0,h,k,c=0;for(h=this.qg.length;c<h;c++){k=this.qg[c];var f=k.xk;if(!f||0>=f)f=5E4;b+=f;k.src&&(k.complete||k.loaded)&&
!k.tn?n+=f:d=!1}d&&this.xu&&this.vf&&(l||(this.vf.Uu(),l=!0),c=this.vf.kt(),n+=c,c<a&&(d=!1));this.mf=0==b?0:n/b;return d};e.prototype.go=function(){if(this.ma||this.q){var a=this.ma||this.Ul;this.hb&&this.rp();this.mf=0;this.xo=-1;if(this.ln())this.Ft();else{var b=Date.now()-this.Hj;if(a){var c=this.width,d=this.height,l=this.devicePixelRatio;this.hb&&(c=this.ei,d=this.di,l=1);if(3!==this.gh&&(this.lc||500<=b&&this.xo!=this.mf)){a.clearRect(0,0,c,d);var b=c/2,d=d/2,c=0===this.gh&&this.Pf.complete,
k=40*l,f=0,e=80*l,g;c&&(e=this.Pf.width*l,g=this.Pf.height*l,k=e/2,f=g/2,a.drawImage(this.Pf,R(b-k),R(d-f),e,g));1>=this.gh?(b=R(b-k)+.5,d=R(d+(f+(c?12*l:0)))+.5,a.fillStyle=h?"red":"DodgerBlue",a.fillRect(b,d,Math.floor(e*this.mf),6*l),a.strokeStyle="black",a.strokeRect(b,d,e,6*l),a.strokeStyle="white",a.strokeRect(b-1*l,d-1*l,e+2*l,8*l)):2===this.gh&&(a.font=this.Mc?"12pt ArialMT":"12pt Arial",a.fillStyle=h?"#f00":"#999",a.Bw="middle",l=Math.round(100*this.mf)+"%",c=a.measureText?a.measureText(l):
null,a.fillText(l,b-(c?c.width:0)/2,d))}this.xo=this.mf}setTimeout(function(a){return function(){a.go()}}(this),this.lc?10:100)}}};e.prototype.Ft=function(){this.hb&&(this.canvas.parentNode.removeChild(this.hb),this.hb=this.Ul=null);this.Hj=Date.now();this.cf=Ua();var a,b,c;if(this.Fm)for(a=0,b=this.n.length;a<b;a++)c=this.n[a],c.D||c.ol||!c.ta.pe||c.V();else this.Ze=!1;a=0;for(b=this.Wb.length;a<b;a++)this.Wb[a].Ur();2<=this.sb&&(a=this.Va/this.Ua,b=this.width/this.height,this.ug=2!==this.sb&&b>
a||2===this.sb&&b<a?this.height/this.Ua:this.width/this.Va);this.Jn?this.Nf[this.Jn].rm():this.Wb[0].rm();this.Fm||(this.aj=1,this.trigger(X.prototype.i.Qm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.du&&c.du();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ga(!1);this.gb&&AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.Ga=function(a,b,c){if(this.ja){var d=Ua();if(c||!this.Ug||a){a||(t?this.$l=t(this.Sp):this.wm=setTimeout(this.Sp,this.Nc?1:16));b=b||d;var l=this.sb;((c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.yc)||this.Tg)&&0<this.Re&&(l=this.Re);0<l&&(!this.Oi||window.self!==window.top)&&(l=window.innerHeight,
this.Zg===window.innerWidth&&this.Yg===l||this.setSize(g(),m()));this.P||(c?(this.ri||(this.Pk=jQuery(this.canvas).css("margin")||"0",this.ri=!0),this.Rg||this.oe||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.ri?(this.Rg||this.oe||jQuery(this.canvas).css("margin",this.Pk),this.Pk="",this.ri=!1,0===this.sb&&this.setSize(Math.round(this.cp/this.devicePixelRatio),
Math.round(this.bp/this.devicePixelRatio),!0)):(this.cp=this.width,this.bp=this.height));this.Ze&&(c=this.ln(),this.aj=this.mf,c&&(this.Ze=!1,this.mf=1,this.trigger(X.prototype.i.Qm,null)));this.Yt(b);!this.T&&!this.lc||this.rl||this.Nh||a||(this.T=!1,this.q?this.rb():this.Tb(),this.Ej&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Ej[0],this.Ej[1]),this.trigger(X.prototype.i.Hq,null)),this.Ej=null));this.ww||(this.od++,this.ni++,this.vi++);this.mh+=Ua()-d}}};e.prototype.Yt=function(a){var b,
c,d,l,h,k,f,e;1E3<=a-this.cf&&(this.cf+=1E3,1E3<=a-this.cf&&(this.cf=a),this.Ok=this.vi,this.vi=0,this.wk=this.mh,this.mh=0);0!==this.Si&&(b=a-this.Si,0>b&&(b=0),this.ie=b/1E3,.5<this.ie?this.ie=0:.1<this.ie&&(this.ie=.1));this.Si=a;this.Ne=this.ie*this.jg;this.mc.add(this.Ne);this.sd.add(this.ie);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Tg)&&!this.yc;2<=this.sb||a&&0<this.Re?(b=this.Va/this.Ua,c=this.width/this.height,d=this.sb,
a&&0<this.Re&&(d=this.Re),this.ug=2!==d&&c>b||2===d&&c<b?this.height/this.Ua:this.width/this.Va,this.ja&&(this.ja.zp(this.ja.scrollX),this.ja.Ap(this.ja.scrollY))):this.ug=this.Xe?this.devicePixelRatio:1;this.mb();this.Md++;this.nd.Hu();this.Md--;this.mb();this.Md++;c=this.$o.Uc();a=0;for(b=c.length;a<b;a++)c[a].yw();a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.D&&(k.Ma.length||k.za.length))for(c=0,d=k.d.length;c<d;c++)for(f=k.d[c],l=0,h=f.I.length;l<h;l++)f.I[l].Ga();a=0;for(b=this.n.length;a<
b;a++)if(k=this.n[a],!k.D&&(k.Ma.length||k.za.length))for(c=0,d=k.d.length;c<d;c++)for(f=k.d[c],l=0,h=f.I.length;l<h;l++)e=f.I[l],e.wu&&e.wu();c=this.Ll.Uc();a=0;for(b=c.length;a<b;a++)c[a].Ga();this.Md--;this.Gt();for(a=0;this.zd&&10>a++;)this.Bn(this.zd);a=0;for(b=this.Gd.length;a<b;a++)this.Gd[a].el=!1;this.ja.Pe&&this.ja.Pe.Wa();this.Du.length=0;this.yl=!1;this.Md++;a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.D&&(k.Ma.length||k.za.length))for(c=0,d=k.d.length;c<d;c++)for(f=k.d[c],l=0,h=
f.I.length;l<h;l++)e=f.I[l],e.vm&&e.vm();c=this.Ml.Uc();a=0;for(b=c.length;a<b;a++)c[a].vm();this.Md--};e.prototype.Bn=function(a){var b=this.ja;this.ja.Vu();var c,d,l,h,k,f,e;if(this.q)for(c=0,d=this.n.length;c<d;c++)k=this.n[c],k.D||!k.Sj||k.global&&0!==k.d.length||-1!==a.Pg.indexOf(k)||k.Sj();b==a&&(this.nd.Jb.length=0);a.rm();c=0;for(d=this.n.length;c<d;c++)if(k=this.n[c],k.global||k.ta.Cj)for(a=0,b=k.d.length;a<b;a++)if(f=k.d[a],f.Rl&&f.Rl(),f.I)for(l=0,h=f.I.length;l<h;l++)e=f.I[l],e.Rl&&e.Rl();
this.yl=this.T=!0;this.mb()};e.prototype.Rh=function(a){this.Ll.add(a)};e.prototype.Wu=function(a){this.Ml.add(a)};e.prototype.Gg=function(a){return a&&-1!==a.oh?this.ie*a.oh:this.Ne};e.prototype.Tb=function(){this.ja.Tb(this.ma);this.gb&&this.ma.present()};e.prototype.rb=function(){this.ja.rb(this.q);this.q.zu()};e.prototype.Dr=function(a){a&&this.Dk.push(a)};e.prototype.Ai=function(a){a=a.toString();return this.Rd.hasOwnProperty(a)?this.Rd[a]:null};var k=[];e.prototype.td=function(a){var b,c;b=
a.type.name;var d=null;if(this.Ke.hasOwnProperty(b)){if(d=this.Ke[b],d.contains(a))return}else d=k.length?k.pop():new ba,this.Ke[b]=d;d.add(a);this.le=!0;if(a.Oc)for(b=0,c=a.siblings.length;b<c;b++)this.td(a.siblings[b]);this.nl&&d.ng.push(a);this.Md++;this.trigger(Object.getPrototypeOf(a.type.ta).i.Kq,a);this.Md--};e.prototype.mb=function(){if(this.le){var a,b,c,d,l,h;this.nl=!0;c=0;for(l=this.Zc.length;c<l;++c)for(a=this.Zc[c],b=a.type,b.d.push(a),d=0,h=b.za.length;d<h;++d)b.za[d].d.push(a),b.za[d].hg=
!0;this.Zc.length=0;this.yq();Ta(this.Ke);this.le=this.nl=!1}};e.prototype.yq=function(){for(var a in this.Ke)this.Ke.hasOwnProperty(a)&&this.nq(this.Ke[a])};e.prototype.nq=function(a){var b=a.Uc(),c=b[0].type,d,l,h,f,e,g;Va(c.d,a);c.hg=!0;0===c.d.length&&(c.kn=!1);d=0;for(l=c.za.length;d<l;++d)g=c.za[d],Va(g.d,a),g.hg=!0;d=0;for(l=this.nd.Jb.length;d<l;++d)if(e=this.nd.Jb[d],e.yb.hasOwnProperty(c.index)&&Va(e.yb[c.index].Kd,a),!c.D)for(h=0,f=c.za.length;h<f;++h)g=c.za[h],e.yb.hasOwnProperty(g.index)&&
Va(e.yb[g.index].Kd,a);if(e=b[0].e){if(e.Tc)for(h=e.d,d=0,l=h.length;d<l;++d)f=h[d],a.contains(f)&&(f.Pa(),e.$b.update(f,f.Gb,null),f.Gb.set(0,0,-1,-1));Va(e.d,a);e.Ih(0)}for(d=0;d<b.length;++d)this.mq(b[d],c);a.clear();k.push(a);this.T=!0};e.prototype.mq=function(a,b){var c,d,l;c=0;for(d=this.Dk.length;c<d;++c)this.Dk[c](a);a.he&&b.xn.update(a,a.he,null);(c=a.e)&&c.ag(a,!0);if(a.I)for(c=0,d=a.I.length;c<d;++c)l=a.I[c],l.kf&&l.kf(),l.behavior.Tf.remove(a);this.$o.remove(a);this.Ll.remove(a);this.Ml.remove(a);
a.kf&&a.kf();this.Rd.hasOwnProperty(a.uid.toString())&&delete this.Rd[a.uid.toString()];this.fj--;100>b.ii.length&&b.ii.push(a)};var w=[];e.prototype.Je=function(a,b,c,d,l,h){var k,f,e,g;if(!a)return null;var t=this.n[a[1]],r=t.ta.pe;if(this.Ze&&r&&!t.ol||r&&!this.q&&11===a[0][11])return null;var m=b;r||(b=null);var s;t.ii.length?(s=t.ii.pop(),s.Zb=!0,t.ta.la.call(s,t)):(s=new t.ta.la(t),s.Zb=!1);s.uid=!c||h||this.Rd.hasOwnProperty(a[2].toString())?this.ph++:a[2];this.Rd[s.uid.toString()]=s;s.up=
this.Wo++;s.Ve=t.d.length;k=0;for(f=this.Zc.length;k<f;++k)this.Zc[k].type===t&&s.Ve++;s.Kg=yb;s.toString=zb;e=a[3];if(s.Zb)Ta(s.Ea);else{s.Ea={};if("undefined"!==typeof cr_is_preview)for(s.ao=[],s.ao.length=e.length,k=0,f=e.length;k<f;k++)s.ao[k]=e[k][1];s.Sa=[];s.Sa.length=e.length}k=0;for(f=e.length;k<f;k++)s.Sa[k]=e[k][0];if(r){var p=a[0];s.x=ga(d)?p[0]:d;s.y=ga(l)?p[1]:l;s.z=p[2];s.width=p[3];s.height=p[4];s.depth=p[5];s.k=p[6];s.opacity=p[7];s.Eb=p[8];s.Fb=p[9];s.zb=p[10];k=p[11];!this.q&&t.J.length&&
(s.zb=k);s.yg=cb(s.zb);this.m&&db(s,s.zb,this.m);if(s.Zb){k=0;for(f=p[12].length;k<f;k++)for(e=0,g=p[12][k].length;e<g;e++)s.Da[k][e]=p[12][k][e];s.$a.set(0,0,0,0);s.he.set(0,0,-1,-1);s.Gb.set(0,0,-1,-1);s.yd.Jh(s.$a);s.lk.length=0}else{s.Da=p[12].slice(0);k=0;for(f=s.Da.length;k<f;k++)s.Da[k]=p[12][k].slice(0);s.ca=[];s.be=[];s.be.length=t.J.length;s.$a=new U(0,0,0,0);s.he=new U(0,0,-1,-1);s.Gb=new U(0,0,-1,-1);s.yd=new ua;s.lk=[];s.Ba=Cb;s.Gr=Db;s.Sb=Eb;s.Pa=Fb;s.dv=Gb;s.cv=Hb;s.wc=Ib}s.Yu=!1;s.$u=
0;s.Zu=0;s.Xu=null;14===p.length&&(s.Yu=!0,s.$u=p[13][0],s.Zu=p[13][1],s.Xu=p[13][2]);k=0;for(f=t.J.length;k<f;k++)s.be[k]=!0;s.Zd=Jb;s.Zd();s.gq=!!s.ca.length;s.Xh=!0;s.pk=!0;t.jn=!0;s.visible=!0;s.oh=-1;s.e=b;s.Vc=b.d.length;"undefined"===typeof s.Yc&&(s.Yc=null);this.T=s.xg=!0}var T;k=w.length=0;for(f=t.za.length;k<f;k++)w.push.apply(w,t.za[k].Ma);w.push.apply(w,t.Ma);if(s.Zb)for(k=0,f=w.length;k<f;k++){var G=w[k];T=s.I[k];T.Zb=!0;G.behavior.la.call(T,G,s);p=a[4][k];e=0;for(g=p.length;e<g;e++)T.C[e]=
p[e];T.V();G.behavior.Tf.add(s)}else for(s.I=[],k=0,f=w.length;k<f;k++)G=w[k],T=new G.behavior.la(G,s),T.Zb=!1,T.C=a[4][k].slice(0),T.V(),s.I.push(T),G.behavior.Tf.add(s);p=a[5];if(s.Zb)for(k=0,f=p.length;k<f;k++)s.C[k]=p[k];else s.C=p.slice(0);this.Zc.push(s);this.le=!0;b&&(b.tg(s,!0),1!==b.Cc||1!==b.Dc)&&(t.kn=!0);this.fj++;if(t.Oc){if(s.Oc=!0,s.Zb?s.siblings.length=0:s.siblings=[],!c&&!h){k=0;for(f=t.Rb.length;k<f;k++)if(t.Rb[k]!==t){if(!t.Rb[k].$c)return null;s.siblings.push(this.Je(t.Rb[k].$c,
m,!1,r?s.x:d,r?s.y:l,!0))}k=0;for(f=s.siblings.length;k<f;k++)for(s.siblings[k].siblings.push(s),e=0;e<f;e++)k!==e&&s.siblings[k].siblings.push(s.siblings[e])}}else s.Oc=!1,s.siblings=null;s.V();k=0;for(f=s.I.length;k<f;k++)s.I[k].vu&&s.I[k].vu();return s};e.prototype.Hg=function(a){var b,c;b=0;for(c=this.ja.R.length;b<c;b++){var d=this.ja.R[b];if(fb(d.name,a))return d}return null};e.prototype.Jd=function(a){a=R(a);0>a&&(a=0);a>=this.ja.R.length&&(a=this.ja.R.length-1);return this.ja.R[a]};e.prototype.uk=
function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].na().qa=!0};e.prototype.Eh=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Eh()};e.prototype.Xl=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Xl()};e.prototype.Zf=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Zf()};e.prototype.ig=function(a,b,c,d){var l=a.na(),k,h,f,e,t,g;if(l.qa)for(d||(l.qa=!1,l.d.length=0),k=0,e=a.d.length;k<e;k++){if(f=a.d[k],f.Pa(),t=f.e.ya(b,c,!0),g=f.e.ya(b,c,!1),f.Sb(t,g)){if(d)return!1;l.d.push(f)}}else{k=
h=0;for(e=l.d.length;k<e;k++)if(f=l.d[k],f.Pa(),t=f.e.ya(b,c,!0),g=f.e.ya(b,c,!1),f.Sb(t,g)){if(d)return!1;l.d[h]=l.d[k];h++}d||(l.d.length=h)}a.wd();return d?!0:l.dl()};new ua;new U(0,0,0,0);e.prototype.Yp=function(a,b){if(!b)return!1;var c,d,l,k,f;c=0;for(d=a.Ma.length;c<d;c++)if(a.Ma[c].behavior instanceof b)return!0;if(!a.D)for(c=0,d=a.za.length;c<d;c++)for(f=a.za[c],l=0,k=f.Ma.length;l<k;l++)if(f.Ma[l].behavior instanceof b)return!0;return!1};e.prototype.Zp=function(a){return this.Yp(a,Yb.Mv)};
e.prototype.Am=function(a){return this.Yp(a,Yb.Nv)};var s=-1;e.prototype.trigger=function(a,b,c){if(!this.ja)return!1;var d=this.ja.Pe;if(!d)return!1;var l=!1,k,f,h;s++;var e=d.Bk;f=0;for(h=e.length;f<h;++f)k=this.Vp(a,b,e[f],c),l=l||k;k=this.Vp(a,b,d,c);s--;return l||k};e.prototype.Vp=function(a,b,c,d){var l=!1,k,f,h,e;if(b)for(h=this.ym(a,b,b.type.name,c,d),l=l||h,e=b.type.za,k=0,f=e.length;k<f;++k)h=this.ym(a,b,e[k].name,c,d),l=l||h;else h=this.ym(a,b,"system",c,d),l=l||h;return l};e.prototype.ym=
function(a,b,c,d,l){var k,f=!1,h=!1,h="undefined"!==typeof l,e=(h?d.Hn:d.Wp)[c];if(!e)return f;var t=null;d=0;for(k=e.length;d<k;++d)if(e[d].method==a){t=e[d].Cg;break}if(!t)return f;a=h?t[l]:t;if(!a)return null;d=0;for(k=a.length;d<k;d++)l=a[d][0],h=a[d][1],h=this.Us(b,c,l,h),f=f||h;return f};e.prototype.Us=function(a,b,c,d){var l,k,f=!1;this.zm++;var h=this.Bb().ic;h&&this.Eh(h.ye);var e=1<this.zm;this.Eh(c.ye);e&&this.Bu();var t=this.Yl(c);t.ic=c;a&&(l=this.types[b].na(),l.qa=!1,l.d.length=1,l.d[0]=
a,this.types[b].wd());a=!0;if(c.parent){b=t.Op;for(l=c.parent;l;)b.push(l),l=l.parent;b.reverse();l=0;for(k=b.length;l<k;l++)if(!b[l].Ju()){a=!1;break}}a&&(this.ni++,c.ed?c.Iu(d):c.Wa(),f=f||t.bf);this.qp();e&&this.uu();this.Zf(c.ye);h&&this.Zf(h.ye);this.le&&0===this.Md&&0===s&&!this.pl&&this.mb();this.zm--;return f};e.prototype.Tk=function(){var a=this.Bb();return a.ic.nb[a.Ab]};e.prototype.Bu=function(){this.cj++;this.cj>=this.Dl.length&&this.Dl.push([])};e.prototype.uu=function(){this.cj--};e.prototype.Nn=
function(){return this.Dl[this.cj]};e.prototype.Yl=function(a){this.mi++;this.mi>=this.Gk.length&&this.Gk.push(new Kb);var b=this.Bb();b.reset(a);return b};e.prototype.qp=function(){this.mi--};e.prototype.Bb=function(){return this.Gk[this.mi]};e.prototype.On=function(a,b){for(var c,d,l,k,h,f;b;){c=0;for(d=b.Hc.length;c<d;c++)if(f=b.Hc[c],f instanceof Lb&&fb(a,f.name))return f;b=b.parent}c=0;for(d=this.Gd.length;c<d;c++)for(h=this.Gd[c],l=0,k=h.je.length;l<k;l++)if(f=h.je[l],f instanceof Lb&&fb(a,
f.name))return f;return null};e.prototype.Qn=function(a){var b,c;b=0;for(c=this.Wb.length;b<c;b++)if(this.Wb[b].W===a)return this.Wb[b];return null};e.prototype.Bi=function(a){var b,c;b=0;for(c=this.n.length;b<c;b++)if(this.n[b].W===a)return this.n[b];return null};e.prototype.et=function(a){var b,c;b=0;for(c=this.ee.length;b<c;b++)if(this.ee[b].W===a)return this.ee[b];return null};e.prototype.Gt=function(){var a=this,c=this.lm,l=this.Nd,k=this.Xi,f=!1;this.Jp&&(f=!0,c="__c2_continuouspreview",this.Jp=
!1);if(c.length){this.mb();l=this.Nu();if(window.indexedDB&&!this.lc)r(c,l,function(){J("Saved state to IndexedDB storage ("+l.length+" bytes)");a.Nd=l;a.trigger(X.prototype.i.ck,null);a.Nd="";f&&b()},function(d){try{localStorage.setItem("__c2save_"+c,l),J("Saved state to WebStorage ("+l.length+" bytes)"),a.Nd=l,a.trigger(X.prototype.i.ck,null),a.Nd="",f&&b()}catch(k){J("Failed to save game state: "+d+"; "+k)}});else try{localStorage.setItem("__c2save_"+c,l),J("Saved state to WebStorage ("+l.length+
" bytes)"),a.Nd=l,this.trigger(X.prototype.i.ck,null),a.Nd="",f&&b()}catch(h){J("Error saving to WebStorage: "+h)}this.wb=this.Xi=this.lm=""}k.length&&(window.indexedDB&&!this.lc?d(k,function(b){b?(a.wb=b,J("Loaded state from IndexedDB storage ("+a.wb.length+" bytes)")):(a.wb=localStorage.getItem("__c2save_"+k)||"",J("Loaded state from WebStorage ("+a.wb.length+" bytes)"));a.Nh=!1;a.wb.length||a.trigger(X.prototype.i.ak,null)},function(){a.wb=localStorage.getItem("__c2save_"+k)||"";J("Loaded state from WebStorage ("+
a.wb.length+" bytes)");a.Nh=!1;a.wb.length||a.trigger(X.prototype.i.ak,null)}):(this.wb=localStorage.getItem("__c2save_"+k)||"",J("Loaded state from WebStorage ("+this.wb.length+" bytes)"),this.Nh=!1,a.wb.length||a.trigger(X.prototype.i.ak,null)),this.lm=this.Xi="");this.wb.length&&(this.mb(),this.Xt(this.wb),this.Nd=this.wb,this.trigger(X.prototype.i.$q,null),this.wb=this.Nd="")};e.prototype.Nu=function(){var a,b,d,l,k,f,h,e={c2save:!0,version:1,rt:{time:this.mc.X,walltime:this.sd.X,timescale:this.jg,
tickcount:this.od,execcount:this.ni,next_uid:this.ph,running_layout:this.ja.W,start_time_offset:Date.now()-this.Hj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.D&&!this.Zp(k)){f={instances:[]};Sa(k.Ea)&&(f.ex=c(k.Ea));d=0;for(l=k.d.length;d<l;d++)f.instances.push(this.km(k.d[d]));e.types[k.W.toString()]=f}a=0;for(b=this.Wb.length;a<b;a++)d=this.Wb[a],e.layouts[d.W.toString()]=d.ib();l=e.events.groups;a=0;for(b=this.ee.length;a<
b;a++)d=this.ee[a],l[d.W.toString()]=this.Ci[d.Mg].Lg;b=e.events.cnds;for(h in this.wf)this.wf.hasOwnProperty(h)&&(a=this.wf[h],Sa(a.Ea)&&(b[h]={ex:c(a.Ea)}));b=e.events.acts;for(h in this.uf)this.uf.hasOwnProperty(h)&&(a=this.uf[h],Sa(a.Ea)&&(b[h]={ex:a.Ea}));b=e.events.vars;for(h in this.pg)this.pg.hasOwnProperty(h)&&(a=this.pg[h],a.Li||a.parent&&!a.Wg||(b[h]=a.data));e.system=this.nd.ib();return JSON.stringify(e)};e.prototype.wp=function(){var a,b,c,d,l,k;this.Rd={};a=0;for(b=this.n.length;a<b;a++)if(c=
this.n[a],!c.D)for(d=0,l=c.d.length;d<l;d++)k=c.d[d],this.Rd[k.uid.toString()]=k};e.prototype.Xt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.mc.reset();this.mc.X=b.time;this.sd.reset();this.sd.X=b.walltime||0;this.jg=b.timescale;this.od=b.tickcount;this.ni=b.execcount;this.Hj=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.ja.W)if(c=this.Qn(c))this.Bn(c);else return;var d,l,k,h,f,e,t;e=a.types;for(l in e)if(e.hasOwnProperty(l)&&(h=this.Bi(parseInt(l,
10)))&&!h.D&&!this.Zp(h)){e[l].ex?h.Ea=e[l].ex:Ta(h.Ea);f=h.d;k=e[l].instances;c=0;for(d=oa(f.length,k.length);c<d;c++)this.Yi(f[c],k[c]);c=k.length;for(d=f.length;c<d;c++)this.td(f[c]);c=f.length;for(d=k.length;c<d;c++){f=null;if(h.ta.pe&&(f=this.ja.yi(k[c].w.l),!f))continue;f=this.Je(h.$c,f,!1,0,0,!0);this.Yi(f,k[c])}h.hg=!0}this.mb();this.wp();d=a.layouts;for(l in d)d.hasOwnProperty(l)&&(c=this.Qn(parseInt(l,10)))&&c.ub(d[l]);d=a.events.groups;for(l in d)d.hasOwnProperty(l)&&(c=this.et(parseInt(l,
10)))&&this.Ci[c.Mg]&&this.Ci[c.Mg].Cp(d[l]);c=a.events.cnds;for(l in c)c.hasOwnProperty(l)&&this.wf.hasOwnProperty(l)&&(this.wf[l].Ea=c[l].ex);c=a.events.acts;for(l in c)c.hasOwnProperty(l)&&this.uf.hasOwnProperty(l)&&(this.uf[l].Ea=c[l].ex);c=a.events.vars;for(l in c)c.hasOwnProperty(l)&&this.pg.hasOwnProperty(l)&&(this.pg[l].data=c[l]);this.ph=b.next_uid;this.nd.ub(a.system);c=0;for(d=this.n.length;c<d;c++)if(h=this.n[c],!h.D)for(l=0,a=h.d.length;l<a;l++){f=h.d[l];if(h.Oc)for(e=f.Kg(),b=f.siblings.length=
0,k=h.Rb.length;b<k;b++)t=h.Rb[b],h!==t&&f.siblings.push(t.d[e]);f.ud&&f.ud();if(f.I)for(b=0,k=f.I.length;b<k;b++)e=f.I[b],e.ud&&e.ud()}this.T=!0}};e.prototype.km=function(a,b){var d,l,k,f,h;f=a.type;k=f.ta;var e={};b?e.c2=!0:e.uid=a.uid;Sa(a.Ea)&&(e.ex=c(a.Ea));if(a.Sa&&a.Sa.length)for(e.ivs={},d=0,l=a.Sa.length;d<l;d++)e.ivs[a.type.ll[d].toString()]=a.Sa[d];if(k.pe){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.e.W,zi:a.wc()};0!==a.k&&(k.a=a.k);1!==a.opacity&&(k.o=a.opacity);.5!==a.Eb&&(k.hX=a.Eb);.5!==
a.Fb&&(k.hY=a.Fb);0!==a.zb&&(k.bm=a.zb);a.visible||(k.v=a.visible);a.xg||(k.ce=a.xg);-1!==a.oh&&(k.mts=a.oh);if(f.J.length)for(k.fx=[],d=0,l=f.J.length;d<l;d++)h=f.J[d],k.fx.push({name:h.name,active:a.be[h.index],params:a.Da[h.index]});e.w=k}if(a.I&&a.I.length)for(e.behs={},d=0,l=a.I.length;d<l;d++)f=a.I[d],f.ib&&(e.behs[f.type.W.toString()]=f.ib());a.ib&&(e.data=a.ib());return e};e.prototype.ht=function(a,b){var c,d;c=0;for(d=a.ll.length;c<d;c++)if(a.ll[c]===b)return c;return-1};e.prototype.ct=function(a,
b){var c,d;c=0;for(d=a.I.length;c<d;c++)if(a.I[c].type.W===b)return c;return-1};e.prototype.Yi=function(a,b,c){var d,l,k,f,h;h=a.type;k=h.ta;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.Ea=b.ex:Ta(a.Ea);if(l=b.ivs)for(d in l)l.hasOwnProperty(d)&&(c=this.ht(h,parseInt(d,10)),0>c||c>=a.Sa.length||(a.Sa[c]=l[d]));if(k.pe){k=b.w;a.e.W!==k.l&&(c=a.e,a.e=this.ja.yi(k.l),a.e?(c.ag(a,!0),a.e.tg(a,!0),a.Ba(),a.e.Ih(0)):(a.e=c,this.td(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Vc=k.zi;a.k=k.hasOwnProperty("a")?
k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Eb=k.hasOwnProperty("hX")?k.hX:.5;a.Fb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.xg=k.hasOwnProperty("ce")?k.ce:!0;a.oh=k.hasOwnProperty("mts")?k.mts:-1;a.zb=k.hasOwnProperty("bm")?k.bm:0;a.yg=cb(a.zb);this.m&&db(a,a.zb,this.m);a.Ba();if(k.hasOwnProperty("fx"))for(c=0,l=k.fx.length;c<l;c++)f=h.Vk(k.fx[c].name),0>f||(a.be[f]=k.fx[c].active,a.Da[f]=k.fx[c].params);a.Zd()}if(h=b.behs)for(d in h)h.hasOwnProperty(d)&&(k=this.ct(a,
parseInt(d,10)),0>k||a.I[k].ub(h[d]));b.data&&a.ub(b.data)};Mb=function(a){return new e(document.getElementById(a))};Nb=function(a,b){return new e({dc:!0,width:a,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Aw=!0;document.body.appendChild(a);a=new e(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(g,m){if(0!==g&&0!==m){var e=window.cr_getC2Runtime();e&&e.setSize(g,m)}};window.cr_setSuspended=function(g){var m=window.cr_getC2Runtime();m&&m.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.Pe=null;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;this.scale=1;this.k=0;this.Bf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.$p=b[3];this.Hp=b[4];this.W=b[5];var c=b[6],d,f;this.R=[];this.Pg=[];d=0;for(f=c.length;d<f;d++){var h=new Ob(this,c[d]);h.Yo=d;this.R.push(h)}c=b[7];this.We=[];d=0;for(f=c.length;d<f;d++){var h=c[d],e=this.b.n[h[1]];e.$c||(e.$c=h);this.We.push(h);-1===this.Pg.indexOf(e)&&this.Pg.push(e)}this.J=[];this.ca=[];this.Da=
[];d=0;for(f=b[8].length;d<f;d++)this.J.push({id:b[8][d][0],name:b[8][d][1],jb:-1,Za:!0,index:d}),this.Da.push(b[8][d][2].slice(0));this.Zd();this.ue=new U(0,0,1,1);this.am=new U(0,0,1,1);this.te={}}function m(a,b){return a.Vc-b.Vc}function e(a,b){this.ab=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.Le=!1;this.Xd=new U(0,0,0,0);this.Tp=new ua;this.Ha=this.xa=this.Ia=this.wa=0;this.qf=!1;this.$d=-1;this.name=b[0];this.index=b[1];this.W=b[2];this.visible=b[3];this.fe=b[4];this.Yd=b[5];this.Cc=
b[6];this.Dc=b[7];this.opacity=b[8];this.Nk=b[9];this.Tc=b[10];this.Kb=b[11];this.zb=b[12];this.ss=b[13];this.yg="source-over";this.ob=this.qb=0;this.$b=null;this.Mf=p();this.Td=!0;this.Ri=new U(0,0,-1,-1);this.rc=new U(0,0,-1,-1);this.Tc&&(this.$b=new bb(this.b.Va,this.b.Ua));this.ve=!1;var c=b[14],d,f;this.Mp=[];this.kc=[];this.zg=[];d=0;for(f=c.length;d<f;d++){var h=c[d],e=this.b.n[h[1]];e.$c||(e.$c=h,e.Xr=this.index);this.kc.push(h);-1===this.ab.Pg.indexOf(e)&&this.ab.Pg.push(e)}xa(this.Mp,this.kc);
this.J=[];this.ca=[];this.Da=[];d=0;for(f=b[15].length;d<f;d++)this.J.push({id:b[15][d][0],name:b[15][d][1],jb:-1,Za:!0,index:d}),this.Da.push(b[15][d][2].slice(0));this.Zd();this.ue=new U(0,0,1,1);this.am=new U(0,0,1,1)}function p(){return c.length?c.pop():[]}function r(a){a.length=0;c.push(a)}g.prototype.Mu=function(a){var b=a.type.W.toString();this.te.hasOwnProperty(b)||(this.te[b]=[]);this.te[b].push(this.b.km(a))};g.prototype.Un=function(){var a=this.R[0];return!a.Yd&&1===a.opacity&&!a.Nk&&a.visible};
g.prototype.Zd=function(){this.ca.length=0;var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Za&&this.ca.push(c)};g.prototype.Uk=function(a){var b,c,d;b=0;for(c=this.J.length;b<c;b++)if(d=this.J[b],d.name===a)return d;return null};var d=[],b=!0;g.prototype.rm=function(){this.Hp&&(this.Pe=this.b.Hk[this.Hp],this.Pe.Bm());this.b.ja=this;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;var a,c,f,k,h,e,g;a=0;for(f=this.b.n.length;a<f;a++)if(c=this.b.n[a],!c.D)for(h=c.d,c=0,k=h.length;c<k;c++)if(e=
h[c],e.e){var n=e.e.Yo;n>=this.R.length&&(n=this.R.length-1);e.e=this.R[n];-1===e.e.d.indexOf(e)&&e.e.d.push(e);e.e.qf=!0}if(!b)for(a=0,f=this.R.length;a<f;++a)this.R[a].d.sort(m);d.length=0;this.Mr();a=0;for(f=this.R.length;a<f;a++)e=this.R[a],e.Vr(),e.Dm();h=!1;if(!this.Bf){for(g in this.te)if(this.te.hasOwnProperty(g)&&(c=this.b.Bi(parseInt(g,10)))&&!c.D&&this.b.Am(c)){k=this.te[g];a=0;for(f=k.length;a<f;a++){e=null;if(c.ta.pe&&(e=this.yi(k[a].w.l),!e))continue;e=this.b.Je(c.$c,e,!1,0,0,!0);this.b.Yi(e,
k[a]);h=!0;d.push(e)}k.length=0}a=0;for(f=this.R.length;a<f;a++)this.R[a].d.sort(m),this.R[a].qf=!0}h&&(this.b.mb(),this.b.wp());for(a=0;a<d.length;a++)if(e=d[a],e.type.Oc)for(f=e.Kg(),c=0,k=e.type.Rb.length;c<k;c++)g=e.type.Rb[c],e.type!==g&&(g.d.length>f?e.siblings.push(g.d[f]):g.$c&&(h=this.b.Je(g.$c,e.e,!0,e.x,e.y,!0),this.b.mb(),g.Tj(),e.siblings.push(h),d.push(h)));a=0;for(f=this.We.length;a<f;a++)this.b.Je(this.We[a],null,!0);this.b.zd=null;this.b.mb();if(this.b.ma&&!this.b.P)for(a=0,f=this.b.n.length;a<
f;a++)g=this.b.n[a],!g.D&&g.d.length&&g.uj&&g.uj(this.b.ma);a=0;for(f=d.length;a<f;a++)e=d[a],this.b.trigger(Object.getPrototypeOf(e.type.ta).i.Jq,e);d.length=0;this.b.trigger(X.prototype.i.Pm,null);this.Bf=!1};g.prototype.Ur=function(){var a,b,c,d,f;b=a=0;for(c=this.We.length;a<c;a++)d=this.We[a],f=this.b.n[d[1]],f.global?this.b.Je(d,null,!0):(this.We[b]=d,b++);this.We.length=b};g.prototype.Vu=function(){this.b.trigger(X.prototype.i.Zq,null);this.b.nd.Jb.length=0;var a,c,d,k,f,h;if(!this.Bf)for(a=
0,c=this.R.length;a<c;a++)for(this.R[a].Em(),f=this.R[a].d,d=0,k=f.length;d<k;d++)h=f[d],h.type.global||this.b.Am(h.type)&&this.Mu(h);a=0;for(c=this.R.length;a<c;a++){f=this.R[a].d;d=0;for(k=f.length;d<k;d++)h=f[d],h.type.global||this.b.td(h);this.b.mb();f.length=0;this.R[a].qf=!0}a=0;for(c=this.b.n.length;a<c;a++)if(f=this.b.n[a],!(f.global||f.ta.pe||f.ta.Cj||f.D)){d=0;for(k=f.d.length;d<k;d++)this.b.td(f.d[d]);this.b.mb()}b=!1};new U(0,0,0,0);g.prototype.Tb=function(a){var b,c=a,d=!1,f=!this.b.uc;
f&&(this.b.Wi||(this.b.Wi=document.createElement("canvas"),b=this.b.Wi,b.width=this.b.O,b.height=this.b.N,this.b.zo=b.getContext("2d"),d=!0),b=this.b.Wi,c=this.b.zo,b.width!==this.b.O&&(b.width=this.b.O,d=!0),b.height!==this.b.N&&(b.height=this.b.N,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.Z,c.mozImageSmoothingEnabled=this.b.Z,c.msImageSmoothingEnabled=this.b.Z,c.imageSmoothingEnabled=this.b.Z));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.hk&&!this.Un()&&c.clearRect(0,0,this.b.O,
this.b.N);var h,e,d=0;for(h=this.R.length;d<h;d++)e=this.R[d],e.visible&&0<e.opacity&&11!==e.zb&&(e.d.length||!e.Yd)?e.Tb(c):e.Dm();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.rb=function(a){var b=0<this.ca.length||this.b.mg||!this.b.uc;if(b){this.b.Vb||(this.b.Vb=a.Ad(this.b.O,this.b.N,this.b.Z));if(this.b.Vb.wg!==this.b.O||this.b.Vb.vg!==this.b.N)a.deleteTexture(this.b.Vb),this.b.Vb=a.Ad(this.b.O,this.b.N,this.b.Z);a.kd(this.b.Vb);this.b.uc||a.eg(this.b.O,this.b.N)}else this.b.Vb&&
(a.kd(null),a.deleteTexture(this.b.Vb),this.b.Vb=null);this.b.hk&&!this.Un()&&a.clear(0,0,0,0);var c,d,f;c=0;for(d=this.R.length;c<d;c++)f=this.R[c],f.visible&&0<f.opacity&&(f.d.length||!f.Yd)?f.rb(a):f.Dm();b&&(0===this.ca.length||1===this.ca.length&&this.b.uc?(1===this.ca.length?(b=this.ca[0].index,a.md(this.ca[0].jb),a.dg(null,1/this.b.O,1/this.b.N,0,0,1,1,this.scale,this.k,0,0,this.b.O/2,this.b.N/2,this.Da[b]),a.vj(this.ca[0].jb)&&(this.b.T=!0)):a.md(0),this.b.uc||a.eg(this.b.width,this.b.height),
a.kd(null),a.xe(1),a.Ib(this.b.Vb),a.Bp(),a.jd(),a.qd(),b=this.b.width/2,c=this.b.height/2,a.Fh(-b,c,b,c,b,-c,-b,-c),a.Ib(null)):this.cm(a,null,null,null))};g.prototype.Ig=function(){return 0<this.ca.length||this.b.mg||!this.b.uc?this.b.Vb:null};g.prototype.Rn=function(){var a=this.R[0].Cb(),b,c,d;b=1;for(c=this.R.length;b<c;b++)d=this.R[b],(0!==d.Cc||0!==d.Dc)&&d.Cb()<a&&(a=d.Cb());return a};g.prototype.zp=function(a){if(!this.$p){var b=1/this.Rn()*this.b.O/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.T=!0)};g.prototype.Ap=function(a){if(!this.$p){var b=1/this.Rn()*this.b.N/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.T=!0)};g.prototype.Mr=function(){this.zp(this.scrollX);this.Ap(this.scrollY)};g.prototype.cm=function(a,b,c,d){var f=c?c.ca:b?b.ca:this.ca,h=1,e=0,n=0,g=0,r=this.b.O,u=this.b.N;c?(h=c.e.Cb(),e=c.e.Oa(),n=c.e.wa,g=c.e.xa,r=c.e.Ia,u=c.e.Ha):b&&(h=b.Cb(),e=b.Oa(),n=b.wa,g=b.xa,r=b.Ia,u=b.Ha);var m=
this.b.Qk,p,A,v,z,I=0,ja=1,Z,F=this.b.O,y=this.b.N,T=F/2,G=y/2,Q=b?b.ue:this.ue,C=b?b.am:this.am,E=0,O=0,B=0,K=0,H=F,ka=F,N=y,qa=y,fa=v=0,sa=c?c.e.Oa():0;if(c){p=0;for(A=f.length;p<A;p++)v+=a.lt(f[p].jb),fa+=a.mt(f[p].jb);z=c.$a;E=b.Aa(z.left,z.top,!0,!0);B=b.Aa(z.left,z.top,!1,!0);H=b.Aa(z.right,z.bottom,!0,!0);N=b.Aa(z.right,z.bottom,!1,!0);0!==sa&&(p=b.Aa(z.right,z.top,!0,!0),A=b.Aa(z.right,z.top,!1,!0),O=b.Aa(z.left,z.bottom,!0,!0),K=b.Aa(z.left,z.bottom,!1,!0),z=Math.min(E,H,p,O),H=Math.max(E,
H,p,O),E=z,z=Math.min(B,N,A,K),N=Math.max(B,N,A,K),B=z);E-=v;B-=fa;H+=v;N+=fa;C.left=E/F;C.top=1-B/y;C.right=H/F;C.bottom=1-N/y;O=E=R(E);K=B=R(B);ka=H=ra(H);qa=N=ra(N);O-=v;K-=fa;ka+=v;qa+=fa;0>E&&(E=0);0>B&&(B=0);H>F&&(H=F);N>y&&(N=y);0>O&&(O=0);0>K&&(K=0);ka>F&&(ka=F);qa>y&&(qa=y);Q.left=E/F;Q.top=1-B/y;Q.right=H/F;Q.bottom=1-N/y}else Q.left=C.left=0,Q.top=C.top=0,Q.right=C.right=1,Q.bottom=C.bottom=1;fa=c&&((c.k||sa)&&a.Ch(f[0].jb)||0!==v||0!==fa||1!==c.opacity||c.type.ta.To)||b&&!c&&1!==b.opacity;
a.Bp();if(fa){m[I]||(m[I]=a.Ad(F,y,this.b.Z));if(m[I].wg!==F||m[I].vg!==y)a.deleteTexture(m[I]),m[I]=a.Ad(F,y,this.b.Z);a.md(0);a.kd(m[I]);Z=qa-K;a.clearRect(O,y-K-Z,ka-O,Z);c?c.rb(a):(a.Ib(this.b.nc),a.xe(b.opacity),a.jd(),a.translate(-T,-G),a.qd(),a.hd(E,N,H,N,H,B,E,B,Q));C.left=C.top=0;C.right=C.bottom=1;c&&(z=Q.top,Q.top=Q.bottom,Q.bottom=z);I=1;ja=0}a.xe(1);v=f.length-1;var sa=a.Wl(f[v].jb)||!b&&!c&&!this.b.uc,ca=0;p=0;for(A=f.length;p<A;p++){m[I]||(m[I]=a.Ad(F,y,this.b.Z));if(m[I].wg!==F||m[I].vg!==
y)a.deleteTexture(m[I]),m[I]=a.Ad(F,y,this.b.Z);a.md(f[p].jb);ca=f[p].index;a.vj(f[p].jb)&&(this.b.T=!0);0!=p||fa?(a.dg(d,1/F,1/y,C.left,C.top,C.right,C.bottom,h,e,n,g,(n+r)/2,(g+u)/2,c?c.Da[ca]:b?b.Da[ca]:this.Da[ca]),a.Ib(null),p!==v||sa?(a.kd(m[I]),Z=qa-K,z=y-K-Z,a.clearRect(O,z,ka-O,Z)):(c?a.we(c.qb,c.ob):b&&a.we(b.qb,b.ob),a.kd(d)),a.Ib(m[ja]),a.jd(),a.translate(-T,-G),a.qd(),a.hd(E,N,H,N,H,B,E,B,Q),p!==v||sa||a.Ib(null)):(a.kd(m[I]),Z=qa-K,z=y-K-Z,a.clearRect(O,z,ka-O,Z),c?(a.dg(d,1/c.width,
1/c.height,C.left,C.top,C.right,C.bottom,h,e,n,g,(n+r)/2,(g+u)/2,c.Da[ca]),c.rb(a)):(a.dg(d,1/F,1/y,0,0,1,1,h,e,n,g,(n+r)/2,(g+u)/2,b?b.Da[ca]:this.Da[ca]),a.Ib(b?this.b.nc:this.b.Vb),a.jd(),a.translate(-T,-G),a.qd(),a.hd(E,N,H,N,H,B,E,B,Q)),C.left=C.top=0,C.right=C.bottom=1,c&&!sa&&(z=N,N=B,B=z));I=0===I?1:0;ja=0===I?1:0}sa&&(a.md(0),c?a.we(c.qb,c.ob):b?a.we(b.qb,b.ob):this.b.uc||(a.eg(this.b.width,this.b.height),T=this.b.width/2,G=this.b.height/2,B=E=0,H=this.b.width,N=this.b.height),a.kd(d),a.Ib(m[ja]),
a.jd(),a.translate(-T,-G),a.qd(),c&&1===f.length&&!fa?a.hd(E,B,H,B,H,N,E,N,Q):a.hd(E,N,H,N,H,B,E,B,Q),a.Ib(null))};g.prototype.yi=function(a){var b,c;b=0;for(c=this.R.length;b<c;b++)if(this.R[b].W===a)return this.R[b];return null};g.prototype.ib=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Bf,persist:this.te,fx:[],layers:{}};a=0;for(b=this.J.length;a<b;a++)c=this.J[a],d.fx.push({name:c.name,active:c.Za,params:this.Da[c.index]});a=
0;for(b=this.R.length;a<b;a++)c=this.R[a],d.layers[c.W.toString()]=c.ib();return d};g.prototype.ub=function(a){var b,c,d,f;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.te=a.persist;"undefined"!==typeof a.fv&&(this.Bf=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(d=this.Uk(h[b].name))d.Za=h[b].active,this.Da[d.index]=h[b].params;this.Zd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.yi(parseInt(f,10)))&&a.ub(b[f])};Ab=g;e.prototype.Zd=function(){this.ca.length=
0;var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Za&&this.ca.push(c)};e.prototype.Uk=function(a){var b,c,d;b=0;for(c=this.J.length;b<c;b++)if(d=this.J[b],d.name===a)return d;return null};e.prototype.Vr=function(){var a,b,c,f,h,e;b=a=0;for(c=this.kc.length;a<c;a++){f=this.kc[a];h=this.b.n[f[1]];e=this.b.Am(h);h=!0;if(!e||this.ab.Bf)f=this.b.Je(f,this,!0),d.push(f),f.type.global&&(h=!1,this.zg.push(f.uid));h&&(this.kc[b]=this.kc[a],b++)}this.kc.length=b;this.b.mb();!this.b.q&&this.J.length&&
(this.zb=this.ss);this.yg=cb(this.zb);this.b.m&&db(this,this.zb,this.b.m);this.Td=!0};e.prototype.ag=function(a,b){var c=za(this.d,a);0>c||(b&&this.Tc&&a.Gb&&a.Gb.right>=a.Gb.left&&(a.Pa(),this.$b.update(a,a.Gb,null),a.Gb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(wa(this.d,c),this.Ih(c)),this.Td=!0)};e.prototype.tg=function(a,b){a.Vc=this.d.length;this.d.push(a);b&&this.Tc&&a.Gb&&a.Ba();this.Td=!0};e.prototype.yu=function(a){this.d.unshift(a);this.Ih(0)};e.prototype.cu=function(a,b,c){var d=
a.wc();b=b.wc();wa(this.d,d);d<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Ih(d<b?d:b)};e.prototype.Ih=function(a){-1===this.$d?this.$d=a:a<this.$d&&(this.$d=a);this.Td=this.qf=!0};e.prototype.Em=function(){if(this.qf){-1===this.$d&&(this.$d=0);var a,b,c;if(this.Tc)for(a=this.$d,b=this.d.length;a<b;++a)c=this.d[a],c.Vc=a,this.$b.Zt(c.Gb);else for(a=this.$d,b=this.d.length;a<b;++a)this.d[a].Vc=a;this.qf=!1;this.$d=-1}};e.prototype.Cb=function(a){return this.it()*(this.b.uc||
a?this.b.ug:1)};e.prototype.it=function(){return(this.scale*this.ab.scale-1)*this.Kb+1};e.prototype.Oa=function(){return this.Le?0:Da(this.ab.k+this.k)};var c=[],f=[],h=[];e.prototype.Sn=function(){this.Em();this.$b.vp(this.wa,this.xa,this.Ia,this.Ha,h);if(!h.length)return p();if(1===h.length){var a=p();xa(a,h[0]);h.length=0;return a}for(var b=!0;1<h.length;){for(var a=h,c=void 0,d=void 0,e=void 0,g=void 0,q=void 0,c=0,d=a.length;c<d-1;c+=2){var e=a[c],g=a[c+1],q=p(),n=e,x=g,m=q,u=0,D=0,L=0,A=n.length,
v=x.length,z=void 0,I=void 0;for(m.length=A+v;u<A&&D<v;++L)z=n[u],I=x[D],z.Vc<I.Vc?(m[L]=z,++u):(m[L]=I,++D);for(;u<A;++u,++L)m[L]=n[u];for(;D<v;++D,++L)m[L]=x[D];b||(r(e),r(g));f.push(q)}1===d%2&&(b?(e=p(),xa(e,a[d-1]),f.push(e)):f.push(a[d-1]));xa(a,f);f.length=0;b=!1}a=h[0];h.length=0;return a};e.prototype.Tb=function(a){this.ve=this.Nk||1!==this.opacity||0!==this.zb;var b=this.b.canvas,c=a,d=!1;this.ve&&(this.b.Vi||(this.b.Vi=document.createElement("canvas"),b=this.b.Vi,b.width=this.b.O,b.height=
this.b.N,this.b.yo=b.getContext("2d"),d=!0),b=this.b.Vi,c=this.b.yo,b.width!==this.b.O&&(b.width=this.b.O,d=!0),b.height!==this.b.N&&(b.height=this.b.N,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.Z,c.mozImageSmoothingEnabled=this.b.Z,c.msImageSmoothingEnabled=this.b.Z,c.imageSmoothingEnabled=this.b.Z),this.Yd&&c.clearRect(0,0,this.b.O,this.b.N));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Yd||(c.fillStyle="rgb("+this.fe[0]+","+this.fe[1]+","+this.fe[2]+")",c.fillRect(0,0,this.b.O,
this.b.N));c.save();this.Le=!0;var d=this.ya(0,0,!0,!0),f=this.ya(0,0,!1,!0);this.Le=!1;this.b.Ec&&(d=Math.round(d),f=Math.round(f));this.fm(d,f,c);var h=this.Cb();c.scale(h,h);c.translate(-d,-f);this.Tc?(this.rc.left=this.$b.fc(this.wa),this.rc.top=this.$b.gc(this.xa),this.rc.right=this.$b.fc(this.Ia),this.rc.bottom=this.$b.gc(this.Ha),this.Td||!this.rc.li(this.Ri)?(r(this.Mf),d=this.Sn(),this.Td=!1,this.Ri.ci(this.rc)):d=this.Mf):d=this.d;for(var e,n=null,f=0,h=d.length;f<h;++f)e=d[f],e!==n&&(this.os(e,
c),n=e);this.Tc&&(this.Mf=d);c.restore();this.ve&&(a.globalCompositeOperation=this.yg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};e.prototype.os=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Pa();var c=a.$a;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(b.globalCompositeOperation=a.yg,a.Tb(b))}};e.prototype.Dm=function(){this.Le=!0;var a=this.ya(0,0,!0,!0),b=this.ya(0,0,!1,!0);this.Le=!1;this.b.Ec&&(a=Math.round(a),b=Math.round(b));this.fm(a,b,null)};e.prototype.fm=
function(a,b,c){var d=this.Cb();this.wa=a;this.xa=b;this.Ia=a+1/d*this.b.O;this.Ha=b+1/d*this.b.N;a=this.Oa();0!==a&&(c&&(c.translate(this.b.O/2,this.b.N/2),c.rotate(-a),c.translate(this.b.O/-2,this.b.N/-2)),this.Xd.set(this.wa,this.xa,this.Ia,this.Ha),this.Xd.offset((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),this.Tp.Fp(this.Xd,a),this.Tp.sn(this.Xd),this.Xd.offset((this.wa+this.Ia)/2,(this.xa+this.Ha)/2),this.wa=this.Xd.left,this.xa=this.Xd.top,this.Ia=this.Xd.right,this.Ha=this.Xd.bottom)};e.prototype.rb=
function(a){var b=0,c=0;if(this.ve=this.Nk||1!==this.opacity||0<this.ca.length||0!==this.zb){this.b.nc||(this.b.nc=a.Ad(this.b.O,this.b.N,this.b.Z));if(this.b.nc.wg!==this.b.O||this.b.nc.vg!==this.b.N)a.deleteTexture(this.b.nc),this.b.nc=a.Ad(this.b.O,this.b.N,this.b.Z);a.kd(this.b.nc);this.Yd&&a.clear(0,0,0,0)}this.Yd||a.clear(this.fe[0]/255,this.fe[1]/255,this.fe[2]/255,1);this.Le=!0;var d=this.ya(0,0,!0,!0),b=this.ya(0,0,!1,!0);this.Le=!1;this.b.Ec&&(d=Math.round(d),b=Math.round(b));this.fm(d,
b,null);d=this.Cb();a.jd();a.scale(d,d);a.gm(-this.Oa());a.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2);a.qd();this.Tc?(this.rc.left=this.$b.fc(this.wa),this.rc.top=this.$b.gc(this.xa),this.rc.right=this.$b.fc(this.Ia),this.rc.bottom=this.$b.gc(this.Ha),this.Td||!this.rc.li(this.Ri)?(r(this.Mf),b=this.Sn(),this.Td=!1,this.Ri.ci(this.rc)):b=this.Mf):b=this.d;var f,h,e=null,c=0;for(f=b.length;c<f;++c)h=b[c],h!==e&&(this.qs(b[c],a),e=h);this.Tc&&(this.Mf=b);this.ve&&(b=this.ca.length?this.ca[0].jb:
0,c=this.ca.length?this.ca[0].index:0,0===this.ca.length||1===this.ca.length&&!a.Wl(b)&&1===this.opacity?(1===this.ca.length?(a.md(b),a.dg(this.ab.Ig(),1/this.b.O,1/this.b.N,0,0,1,1,d,this.Oa(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,this.Da[c]),a.vj(b)&&(this.b.T=!0)):a.md(0),a.kd(this.ab.Ig()),a.xe(this.opacity),a.Ib(this.b.nc),a.we(this.qb,this.ob),a.jd(),a.qd(),d=this.b.O/2,b=this.b.N/2,a.Fh(-d,b,d,b,d,-b,-d,-b),a.Ib(null)):this.ab.cm(a,this,null,this.ab.Ig()))};e.prototype.qs=
function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Pa();var c=a.$a;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(a.gq?this.rs(a,b):(b.md(0),b.we(a.qb,a.ob),a.rb(b)))}};e.prototype.rs=function(a,b){var c=a.ca[0].jb,d=a.ca[0].index,f=this.Cb();if(1!==a.ca.length||b.Wl(c)||b.Au(c)||(a.k||a.e.Oa())&&b.Ch(c)||1!==a.opacity||a.type.ta.To)this.ab.cm(b,this,a,this.ve?this.b.nc:this.ab.Ig()),b.jd(),b.scale(f,f),b.gm(-this.Oa()),b.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/
-2),b.qd();else{b.md(c);b.we(a.qb,a.ob);b.vj(c)&&(this.b.T=!0);var h=0,e=0,n=0,g=0;b.Ch(c)&&(c=a.$a,h=this.Aa(c.left,c.top,!0,!0),e=this.Aa(c.left,c.top,!1,!0),n=this.Aa(c.right,c.bottom,!0,!0),c=this.Aa(c.right,c.bottom,!1,!0),h/=windowWidth,e=1-e/windowHeight,n/=windowWidth,g=1-c/windowHeight);b.dg(this.ve?this.b.nc:this.ab.Ig(),1/a.width,1/a.height,h,e,n,g,f,this.Oa(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,a.Da[d]);a.rb(b)}};e.prototype.ya=function(a,b,c,d){var f=this.b.devicePixelRatio;
this.b.Xe&&(a*=f,b*=f);var f=this.b.kp,h=this.b.lp,f=(this.ab.scrollX-f)*this.Cc+f,h=(this.ab.scrollY-h)*this.Dc+h,e=f,n=h,g=1/this.Cb(!d);d?(e-=this.b.O*g/2,n-=this.b.N*g/2):(e-=this.b.width*g/2,n-=this.b.height*g/2);e+=a*g;n+=b*g;b=this.Oa();0!==b&&(e-=f,n-=h,a=Math.cos(b),b=Math.sin(b),d=e*a-n*b,n=n*a+e*b,e=d+f,n+=h);return c?e:n};e.prototype.Aa=function(a,b,c,d){var f=this.b.kp,h=this.b.lp,e=(this.ab.scrollX-f)*this.Cc+f,n=(this.ab.scrollY-h)*this.Dc+h,h=e,f=n,g=this.Oa();if(0!==g){a-=e;b-=n;
var r=Math.cos(-g),g=Math.sin(-g),m=a*r-b*g;b=b*r+a*g;a=m+e;b+=n}e=1/this.Cb(!d);d?(h-=this.b.O*e/2,f-=this.b.N*e/2):(h-=this.b.width*e/2,f-=this.b.height*e/2);h=(a-h)/e;f=(b-f)/e;a=this.b.devicePixelRatio;this.b.Xe&&!d&&(h/=a,f/=a);return c?h:f};e.prototype.ib=function(){var a,b,c,d={s:this.scale,a:this.k,vl:this.wa,vt:this.xa,vr:this.Ia,vb:this.Ha,v:this.visible,bc:this.fe,t:this.Yd,px:this.Cc,py:this.Dc,o:this.opacity,zr:this.Kb,fx:[],cg:this.zg,instances:[]};a=0;for(b=this.J.length;a<b;a++)c=
this.J[a],d.fx.push({name:c.name,active:c.Za,params:this.Da[c.index]});return d};e.prototype.ub=function(a){var b,c,d;this.scale=a.s;this.k=a.a;this.wa=a.vl;this.xa=a.vt;this.Ia=a.vr;this.Ha=a.vb;this.visible=a.v;this.fe=a.bc;this.Yd=a.t;this.Cc=a.px;this.Dc=a.py;this.opacity=a.o;this.Kb=a.zr;this.zg=a.cg||[];xa(this.kc,this.Mp);var f=new ba;b=0;for(d=this.zg.length;b<d;++b)f.add(this.zg[b]);c=b=0;for(d=this.kc.length;b<d;++b)f.contains(this.kc[b][2])||(this.kc[c]=this.kc[b],++c);this.kc.length=c;
c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Uk(c[b].name))a.Za=c[b].active,this.Da[a.index]=c[b].params;this.Zd();this.d.sort(m);this.qf=!0};Ob=e})();
(function(){function g(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 e(a){var b,c,d,f;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>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);f=w[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],g(a,d))return d;f.push(a);return a}
function p(a,b){this.b=a;this.Wp={};this.Hn={};this.el=!1;this.Xn=new ba;this.Bk=[];this.ik=[];this.name=b[0];var c=b[1];this.je=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Zn(c[d],null,this.je)}function r(a){this.type=a;this.d=[];this.aa=[];this.qa=!0}function d(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ua=[];this.ye=[];this.Vn=this.Oj=this.xm=this.Ii=this.group=this.Lp=!1;this.nb=[];this.Jc=[];this.Hc=[];this.Mg="";this.Lg=this.Ii=this.group=!1;this.ai=null;c[1]&&(this.Mg=c[1][1].toLowerCase(),
this.group=!0,this.Ii=!!c[1][0],this.ai=[],this.Lg=this.Ii,this.b.ee.push(this),this.b.Ci[this.Mg]=this);this.ed=c[2];this.W=c[4];this.group||(this.b.rn[this.W.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Pb(this,d[a]);f.index=a;this.nb.push(f);this.dn(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Qb(this,d[a]),f.index=a,this.Jc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Zn(c[a],this,this.Hc);this.Mi=!1;this.nb.length&&(this.Mi=null==this.nb[0].type&&
this.nb[0].fb==X.prototype.i.Nm)}function b(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Oc))for(c=0,d=a.Rb.length;c<d;c++)f=a.Rb[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function c(a,b){this.hc=a;this.sheet=a.sheet;this.b=a.b;this.S=[];this.Fa=[];this.Ea={};this.index=-1;this.rg=!1;this.fb=this.b.ae(b[1]);this.trigger=0<b[3];this.Gn=2===b[3];this.cd=b[4];this.Qg=b[5];this.Vt=b[6];this.W=b[7];this.b.wf[this.W.toString()]=this;-1===b[0]?(this.type=null,this.Wa=this.jm,this.He=null,this.Lc=-1):
(this.type=this.b.n[b[0]],this.Wa=this.Vt?this.Ku:this.im,b[2]?(this.He=this.type.xi(b[2]),this.Lc=this.type.Sk(b[2])):(this.He=null,this.Lc=-1),this.hc.parent&&this.hc.parent.Bj());this.Gn&&(this.Wa=this.Lu);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var h=new Rb(this,f[c]);this.S.push(h)}this.Fa.length=f.length}}function f(a,b){this.hc=a;this.sheet=a.sheet;this.b=a.b;this.S=[];this.Fa=[];this.Ea={};this.index=-1;this.rg=!1;this.fb=this.b.ae(b[1]);-1===b[0]?(this.type=null,this.Wa=
this.jm,this.He=null,this.Lc=-1):(this.type=this.b.n[b[0]],this.Wa=this.im,b[2]?(this.He=this.type.xi(b[2]),this.Lc=this.type.Sk(b[2])):(this.He=null,this.Lc=-1));this.W=b[3];this.b.uf[this.W.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var h=new Rb(this,f[c]);this.S.push(h)}this.Fa.length=f.length}}function h(){q++;s.length===q&&s.push(new Sb);return s[q]}function a(a,b){this.pa=a;this.hc=a.hc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ad=null;this.Wd=0;this.get=
null;this.yn=0;this.ab=null;this.key=0;this.object=null;this.index=0;this.Th=this.of=this.Th=this.of=this.In=this.Qe=this.Uh=null;this.Ic=!1;var c,d,f;switch(b[0]){case 0:case 7:this.ad=new Tb(this,b[1]);this.Wd=0;this.get=this.tt;break;case 1:this.ad=new Tb(this,b[1]);this.Wd=0;this.get=this.ut;break;case 5:this.ad=new Tb(this,b[1]);this.Wd=0;this.get=this.At;break;case 3:case 8:this.yn=b[1];this.get=this.pt;break;case 6:this.ab=this.b.Nf[b[1]];this.get=this.Bt;break;case 9:this.key=b[1];this.get=
this.zt;break;case 4:this.object=this.b.n[b[1]];this.get=this.Ct;this.hc.dn(this.object);this.pa instanceof Qb?this.hc.Bj():this.hc.parent&&this.hc.parent.Bj();break;case 10:this.index=b[1];a.type.D?(this.get=this.xt,this.Ic=!0):this.get=this.yt;break;case 11:this.Uh=b[1];this.Qe=null;this.get=this.qt;break;case 2:case 12:this.In=b[1];this.get=this.ot;break;case 13:for(this.get=this.Dt,this.of=[],this.Th=[],c=1,d=b.length;c<d;c++)f=new Rb(this.pa,b[c]),this.of.push(f),this.Th.push(0)}}function l(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ua=[];this.name=c[1];this.Wj=c[2];this.Hi=c[3];this.Wg=!!c[4];this.Li=!!c[5];this.W=c[6];this.b.pg[this.W.toString()]=this;this.data=this.Hi;this.parent?(this.ff=this.Wg||this.Li?-1:this.b.Tu++,this.b.Hr.push(this)):(this.ff=-1,this.b.fk.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ua=[];this.Og=null;this.Jt=c[1];this.Za=!0}function k(){this.Op=[];this.reset(null)}var w=[];p.prototype.toString=function(){return this.name};
p.prototype.Zn=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.ed)for(c.push(a),c=0,b=a.nb.length;c<b;c++)a.nb[c].trigger&&this.$n(a,c);else a.jo()?this.$n(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};p.prototype.La=function(){var a,b;a=0;for(b=this.je.length;a<b;a++)this.je[a].La(a<b-1&&this.je[a+1].Mi)};p.prototype.Bm=function(){this.Bk.length=0;this.ik.length=0;this.cn(this);this.ik.length=0};p.prototype.cn=function(a){var b,c,
d,f,h=a.Bk,e=a.ik,k=this.Xn.Uc();b=0;for(c=k.length;b<c;++b)d=k[b],f=d.Og,!d.Za||a===f||-1<e.indexOf(f)||(e.push(f),f.cn(a),h.push(f))};p.prototype.Wa=function(a){this.b.zw||(this.el=!0,a||(this.b.pl=!0));var b,c;b=0;for(c=this.je.length;b<c;b++){var d=this.je[b];d.Wa();this.b.uk(d.ua);this.b.le&&this.b.mb()}a||(this.b.pl=!1)};p.prototype.$n=function(a,b){a.ed||this.b.Rj.push(a);var c,d,f=a.nb[b],h;h=f.type?f.type.name:"system";var e=(c=f.Gn)?this.Hn:this.Wp;e[h]||(e[h]=[]);h=e[h];e=f.fb;if(c){if(f.S.length&&
(f=f.S[0],1===f.type&&2===f.ad.type)){f=f.ad.value.toLowerCase();c=0;for(d=h.length;c<d;c++)if(h[c].method==e){c=h[c].Cg;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];h.push({method:e,Cg:c})}}else{c=0;for(d=h.length;c<d;c++)if(h[c].method==e){h[c].Cg.push([a,b]);return}gc&&e===gc.prototype.i.tf?h.unshift({method:e,Cg:[[a,b]]}):h.push({method:e,Cg:[[a,b]]})}};Bb=p;r.prototype.dl=function(){return this.qa?this.type.d.length:this.d.length};r.prototype.vc=function(){return this.qa?this.type.d:
this.d};r.prototype.Bh=function(a){a&&(a.b.Bb().ic.ed?(this.qa&&(this.d.length=0,xa(this.aa,a.type.d),this.qa=!1),a=this.aa.indexOf(a),-1!==a&&(this.d.push(this.aa[a]),this.aa.splice(a,1))):(this.qa=!1,this.d.length=1,this.d[0]=a))};jb=r;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";d.prototype.La=function(a){var b,c=this.parent;if(this.group)for(this.Oj=!0;c;){if(!c.group){this.Oj=!1;break}c=c.parent}this.xm=!this.jo()&&(!this.parent||this.parent.group&&this.parent.Oj);this.Vn=!!a;this.ye=
this.ua.slice(0);for(c=this.parent;c;){a=0;for(b=c.ua.length;a<b;a++)this.Er(c.ua[a]);c=c.parent}this.ua=e(this.ua);this.ye=e(this.ye);a=0;for(b=this.nb.length;a<b;a++)this.nb[a].La();a=0;for(b=this.Jc.length;a<b;a++)this.Jc[a].La();a=0;for(b=this.Hc.length;a<b;a++)this.Hc[a].La(a<b-1&&this.Hc[a+1].Mi)};d.prototype.Cp=function(a){if(this.Lg!==!!a){this.Lg=!!a;var b;a=0;for(b=this.ai.length;a<b;++a)this.ai[a].bq();0<b&&this.b.ja.Pe&&this.b.ja.Pe.Bm()}};d.prototype.dn=function(a){b(a,this.ua)};d.prototype.Er=
function(a){b(a,this.ye)};d.prototype.Bj=function(){this.Lp=!0;this.parent&&this.parent.Bj()};d.prototype.jo=function(){return this.nb.length?this.nb[0].trigger:!1};d.prototype.Wa=function(){var a,b=!1,c,d=this.b,f=this.b.Bb();f.ic=this;var h=this.nb;this.Mi||(f.Fk=!1);if(this.ed){0===h.length&&(b=!0);f.Ab=0;for(a=h.length;f.Ab<a;f.Ab++)h[f.Ab].trigger||(c=h[f.Ab].Wa())&&(b=!0);(f.bf=b)&&this.hm()}else{f.Ab=0;for(a=h.length;f.Ab<a;f.Ab++)if(c=h[f.Ab].Wa(),!c){f.bf=!1;this.xm&&d.le&&d.mb();return}f.bf=
!0;this.hm()}this.us(f)};d.prototype.us=function(a){a.bf&&this.Vn&&(a.Fk=!0);this.xm&&this.b.le&&this.b.mb()};d.prototype.Iu=function(a){this.b.Bb().ic=this;this.nb[a].Wa()&&(this.hm(),this.b.Bb().bf=!0)};d.prototype.hm=function(){var a=this.b.Bb(),b;a.Lb=0;for(b=this.Jc.length;a.Lb<b;a.Lb++)if(this.Jc[a.Lb].Wa())return;this.yp()};d.prototype.Gu=function(){var a=this.b.Bb(),b;for(b=this.Jc.length;a.Lb<b;a.Lb++)if(this.Jc[a.Lb].Wa())return;this.yp()};d.prototype.yp=function(){if(this.Hc.length){var a,
b,c,d,f=this.Hc.length-1;this.b.Yl(this);if(this.Lp)for(a=0,b=this.Hc.length;a<b;a++)c=this.Hc[a],(d=!this.Oj||!this.group&&a<f)&&this.b.Xl(c.ua),c.Wa(),d?this.b.Zf(c.ua):this.b.uk(c.ua);else for(a=0,b=this.Hc.length;a<b;a++)this.Hc[a].Wa();this.b.qp()}};d.prototype.Ju=function(){var a=this.b.Bb();a.ic=this;var b=!1,c;a.Ab=0;for(c=this.nb.length;a.Ab<c;a.Ab++)if(this.nb[a.Ab].Wa())b=!0;else if(!this.ed)return!1;return this.ed?b:!0};d.prototype.Ot=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.nb[b].type===a.type)return!1;return!0};Ub=d;c.prototype.La=function(){var a,b,c;a=0;for(b=this.S.length;a<b;a++)c=this.S[a],c.La(),c.Ic&&(this.rg=!0)};c.prototype.Lu=function(){return!0};c.prototype.jm=function(){var a,b;a=0;for(b=this.S.length;a<b;a++)this.Fa[a]=this.S[a].get();return Ra(this.fb.apply(this.b.nd,this.Fa),this.Qg)};c.prototype.Ku=function(){var a,b;a=0;for(b=this.S.length;a<b;a++)this.Fa[a]=this.S[a].get();a=this.fb.apply(this.He?this.He:this.type,this.Fa);this.type.wd();
return a};c.prototype.im=function(){var a,b,c,d,f,h,e,k,l=this.type,g=l.na(),r=this.hc.ed&&!this.trigger;b=0;var m=l.Oc,q=l.D,s=l.Hd,p=this.Lc,t=-1<p,w=this.rg,C=this.S,E=this.Fa,O=this.Qg,B=this.fb,K;if(w)for(b=0,f=C.length;b<f;++b)h=C[b],h.Ic||(E[b]=h.get(0));else for(b=0,f=C.length;b<f;++b)E[b]=C[b].get(0);if(g.qa){g.d.length=0;g.aa.length=0;K=l.d;a=0;for(d=K.length;a<d;++a){k=K[a];if(w)for(b=0,f=C.length;b<f;++b)h=C[b],h.Ic&&(E[b]=h.get(a));t?(b=0,q&&(b=k.type.Af[s]),b=B.apply(k.I[p+b],E)):b=
B.apply(k,E);(e=Ra(b,O))?g.d.push(k):r&&g.aa.push(k)}l.finish&&l.finish(!0);g.qa=!1;l.wd();return g.dl()}c=0;K=(e=r&&!this.hc.Ot(this))?g.aa:g.d;var H=!1;a=0;for(d=K.length;a<d;++a){k=K[a];if(w)for(b=0,f=C.length;b<f;++b)h=C[b],h.Ic&&(E[b]=h.get(a));t?(b=0,q&&(b=k.type.Af[s]),b=B.apply(k.I[p+b],E)):b=B.apply(k,E);if(Ra(b,O))if(H=!0,e){if(g.d.push(k),m)for(b=0,f=k.siblings.length;b<f;b++)h=k.siblings[b],h.type.na().d.push(h)}else{K[c]=k;if(m)for(b=0,f=k.siblings.length;b<f;b++)h=k.siblings[b],h.type.na().d[c]=
h;c++}else if(e){K[c]=k;if(m)for(b=0,f=k.siblings.length;b<f;b++)h=k.siblings[b],h.type.na().aa[c]=h;c++}else if(r&&(g.aa.push(k),m))for(b=0,f=k.siblings.length;b<f;b++)h=k.siblings[b],h.type.na().aa.push(h)}K.length=c;if(m)for(q=l.Rb,a=0,d=q.length;a<d;a++)k=q[a].na(),e?k.aa.length=c:k.d.length=c;c=H;if(e&&!H)for(a=0,d=g.d.length;a<d;a++){k=g.d[a];if(w)for(b=0,f=C.length;b<f;b++)h=C[b],h.Ic&&(E[b]=h.get(a));b=t?B.apply(k.I[p],E):B.apply(k,E);if(Ra(b,O)){H=!0;break}}l.finish&&l.finish(c||r);return r?
H:g.dl()};Pb=c;f.prototype.La=function(){var a,b,c;a=0;for(b=this.S.length;a<b;a++)c=this.S[a],c.La(),c.Ic&&(this.rg=!0)};f.prototype.jm=function(){var a=this.b,b,c,d=this.S,f=this.Fa;b=0;for(c=d.length;b<c;++b)f[b]=d[b].get();return this.fb.apply(a.nd,f)};f.prototype.im=function(){var a=this.type,b=this.Lc,c=a.Hd,d=this.rg,f=this.S,h=this.Fa,e=this.fb,k=a.na().vc(),a=a.D,l=-1<b,g,r,m,q,s,p;if(d)for(r=0,q=f.length;r<q;++r)s=f[r],s.Ic||(h[r]=s.get(0));else for(r=0,q=f.length;r<q;++r)h[r]=f[r].get(0);
g=0;for(m=k.length;g<m;++g){p=k[g];if(d)for(r=0,q=f.length;r<q;++r)s=f[r],s.Ic&&(h[r]=s.get(g));l?(r=0,a&&(r=p.type.Af[c]),e.apply(p.I[b+r],h)):e.apply(p,h)}return!1};Qb=f;var s=[],q=-1;a.prototype.La=function(){var a,b;if(11===this.type)this.Qe=this.b.On(this.Uh,this.hc.parent);else if(13===this.type)for(a=0,b=this.of.length;a<b;a++)this.of[a].La();this.ad&&this.ad.La()};a.prototype.au=function(a){this.Ic||!a||a.ta.Cj||(this.Ic=!0)};a.prototype.Ep=function(){this.Ic=!0};a.prototype.tt=function(a){this.Wd=
a||0;a=h();this.ad.get(a);q--;return a.data};a.prototype.ut=function(a){this.Wd=a||0;a=h();this.ad.get(a);q--;return P(a.data)?a.data:""};a.prototype.Ct=function(){return this.object};a.prototype.pt=function(){return this.yn};a.prototype.At=function(a){this.Wd=a||0;a=h();this.ad.get(a);q--;return a.Ta()?this.b.Jd(a.data):this.b.Hg(a.data)};a.prototype.Bt=function(){return this.ab};a.prototype.zt=function(){return this.key};a.prototype.yt=function(){return this.index};a.prototype.xt=function(a){a=
a||0;var b=this.pa.type,c=null,c=b.na(),d=c.vc();if(d.length)c=d[a%d.length].type;else if(c.aa.length)c=c.aa[a%c.aa.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.pi[b.Hd]};a.prototype.qt=function(){return this.Qe};a.prototype.ot=function(){return this.In};a.prototype.Dt=function(){var a,b;a=0;for(b=this.of.length;a<b;a++)this.Th[a]=this.of[a].get();return this.Th};Rb=a;l.prototype.La=function(){this.ua=e(this.ua)};l.prototype.nf=function(a){var b=this.b.Nn();
this.parent&&!this.Wg&&b?(this.ff>=b.length&&(b.length=this.ff+1),b[this.ff]=a):this.data=a};l.prototype.Jg=function(){var a=this.b.Nn();return!this.parent||this.Wg||!a||this.Li?this.data:this.ff>=a.length||"undefined"===typeof a[this.ff]?this.Hi:a[this.ff]};l.prototype.Wa=function(){!this.parent||this.Wg||this.Li||this.nf(this.Hi)};Lb=l;t.prototype.toString=function(){return"include:"+this.Og.toString()};t.prototype.La=function(){this.Og=this.b.Hk[this.Jt];this.sheet.Xn.add(this);this.ua=e(this.ua);
for(var a=this.parent;a;)a.group&&a.ai.push(this),a=a.parent;this.bq()};t.prototype.Wa=function(){this.parent&&this.b.Eh(this.b.n);this.Og.el||this.Og.Wa(!0);this.parent&&this.b.Zf(this.b.n)};t.prototype.bq=function(){for(var a=this.parent;a;){if(a.group&&!a.Lg){this.Za=!1;return}a=a.parent}this.Za=!0};Vb=t;k.prototype.reset=function(a){this.ic=a;this.Lb=this.Ab=0;this.Op.length=0;this.Fk=this.bf=!1};Kb=k})();
(function(){function g(b,c){this.pa=b;this.b=b.b;this.type=c[0];this.get=[this.Hs,this.Ds,this.Qs,this.Ts,this.ws,this.Rs,this.Ls,this.As,this.Ks,this.Ps,this.xs,this.Os,this.Bs,this.Ms,this.Is,this.Js,this.Es,this.Fs,this.zs,this.Ss,this.Ns,this.Gs,this.ys,this.Cs][this.type];var d=null;this.Qd=this.S=this.Fa=this.fb=this.Nj=this.eb=this.first=this.value=null;this.Lc=-1;this.me=null;this.hq=-1;this.Qe=this.Uh=null;this.bg=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first=
new Tb(b,c[1]);break;case 18:this.first=new Tb(b,c[1]);this.eb=new Tb(b,c[2]);this.Nj=new Tb(b,c[3]);break;case 19:this.fb=this.b.ae(c[1]);this.fb!==X.prototype.Qa.random&&this.fb!==X.prototype.Qa.Rr||this.pa.Ep();this.Fa=[];this.S=[];3===c.length?(d=c[2],this.Fa.length=d.length+1):this.Fa.length=1;break;case 20:this.Qd=this.b.n[c[1]];this.Lc=-1;this.fb=this.b.ae(c[2]);this.bg=c[3];Xb.Function&&this.fb===Xb.Function.prototype.Qa.qv&&this.pa.Ep();this.me=c[4]?new Tb(b,c[4]):null;this.Fa=[];this.S=
[];6===c.length?(d=c[5],this.Fa.length=d.length+1):this.Fa.length=1;break;case 21:this.Qd=this.b.n[c[1]];this.bg=c[2];this.me=c[3]?new Tb(b,c[3]):null;this.hq=c[4];break;case 22:this.Qd=this.b.n[c[1]];this.Qd.xi(c[2]);this.Lc=this.Qd.Sk(c[2]);this.fb=this.b.ae(c[3]);this.bg=c[4];this.me=c[5]?new Tb(b,c[5]):null;this.Fa=[];this.S=[];7===c.length?(d=c[6],this.Fa.length=d.length+1):this.Fa.length=1;break;case 23:this.Uh=c[1],this.Qe=null}this.pa.au(this.Qd);4<=this.type&&17>=this.type&&(this.first=new Tb(b,
c[1]),this.eb=new Tb(b,c[2]));if(d){var h,a;h=0;for(a=d.length;h<a;h++)this.S.push(new Tb(b,d[h]))}}function m(){++d;r.length===d&&r.push(new Sb);return r[d]}function e(b,c,d){var h,a;h=0;for(a=b.length;h<a;++h)b[h].get(d),c[h+1]=d.data}function p(b,c){this.type=b||W.sf;this.data=c||0;this.jf=null;this.type==W.sf&&(this.data=Math.floor(this.data))}g.prototype.La=function(){23===this.type&&(this.Qe=this.pa.b.On(this.Uh,this.pa.hc.parent));this.first&&this.first.La();this.eb&&this.eb.La();this.Nj&&
this.Nj.La();this.me&&this.me.La();if(this.S){var b,c;b=0;for(c=this.S.length;b<c;b++)this.S[b].La()}};var r=[],d=-1;g.prototype.Ss=function(b){var c=this.S,f=this.Fa;f[0]=b;b=m();e(c,f,b);--d;this.fb.apply(this.b.nd,f)};g.prototype.Ns=function(b){var c=this.Qd,f=this.Fa,h=this.S,a=this.me,l=this.fb,g=this.pa.Wd,k=c.na(),r=k.vc();if(!r.length)if(k.aa.length)r=k.aa;else{this.bg?b.pb(""):b.ka(0);return}f[0]=b;b.jf=c;b=m();e(h,f,b);a&&(a.get(b),b.Ta()&&(g=b.data,r=c.d));--d;c=r.length;if(g>=c||g<=-c)g%=
c;0>g&&(g+=c);l.apply(r[g],f)};g.prototype.ys=function(b){var c=this.Qd,f=this.Fa,h=this.S,a=this.me,l=this.Lc,g=this.fb,k=this.pa.Wd,r=c.na(),s=r.vc();if(!s.length)if(r.aa.length)s=r.aa;else{this.bg?b.pb(""):b.ka(0);return}f[0]=b;b.jf=c;b=m();e(h,f,b);a&&(a.get(b),b.Ta()&&(k=b.data,s=c.d));--d;h=s.length;if(k>=h||k<=-h)k%=h;0>k&&(k+=h);k=s[k];s=0;c.D&&(s=k.type.Af[c.Hd]);g.apply(k.I[l+s],f)};g.prototype.Gs=function(b){var c=this.me,f=this.Qd,h=this.hq,a=this.pa.Wd,e=f.na(),g=e.vc();if(!g.length)if(e.aa.length)g=
e.aa;else{this.bg?b.pb(""):b.ka(0);return}if(c){e=m();c.get(e);if(e.Ta()){a=e.data;f=f.d;a%=f.length;0>a&&(a+=f.length);h=f[a].Sa[h];P(h)?b.pb(h):b.A(h);--d;return}--d}c=g.length;if(a>=c||a<=-c)a%=c;0>a&&(a+=c);a=g[a];g=0;f.D&&(g=a.type.pi[f.Hd]);h=a.Sa[h+g];P(h)?b.pb(h):b.A(h)};g.prototype.Hs=function(b){b.type=W.sf;b.data=this.value};g.prototype.Ds=function(b){b.type=W.rf;b.data=this.value};g.prototype.Qs=function(b){b.type=W.String;b.data=this.value};g.prototype.Ts=function(b){this.first.get(b);
b.Ta()&&(b.data=-b.data)};g.prototype.ws=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data+=c.data,c.If()&&b.Rf());--d};g.prototype.Rs=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data-=c.data,c.If()&&b.Rf());--d};g.prototype.Ls=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data*=c.data,c.If()&&b.Rf());--d};g.prototype.As=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data/=c.data,b.Rf());
--d};g.prototype.Ks=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data%=c.data,c.If()&&b.Rf());--d};g.prototype.Ps=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data=Math.pow(b.data,c.data),c.If()&&b.Rf());--d};g.prototype.xs=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()?c.Ni()?b.pb(b.data.toString()+c.data):b.data&&c.data?b.ka(1):b.ka(0):b.Ni()&&(b.data=c.Ni()?b.data+c.data:b.data+(Math.round(1E10*c.data)/1E10).toString());--d};
g.prototype.Os=function(b){this.first.get(b);var c=m();this.eb.get(c);b.Ta()&&c.Ta()&&(b.data||c.data?b.ka(1):b.ka(0));--d};g.prototype.zs=function(b){this.first.get(b);b.data?this.eb.get(b):this.Nj.get(b)};g.prototype.Bs=function(b){this.first.get(b);var c=m();this.eb.get(c);b.ka(b.data===c.data?1:0);--d};g.prototype.Ms=function(b){this.first.get(b);var c=m();this.eb.get(c);b.ka(b.data!==c.data?1:0);--d};g.prototype.Is=function(b){this.first.get(b);var c=m();this.eb.get(c);b.ka(b.data<c.data?1:0);
--d};g.prototype.Js=function(b){this.first.get(b);var c=m();this.eb.get(c);b.ka(b.data<=c.data?1:0);--d};g.prototype.Es=function(b){this.first.get(b);var c=m();this.eb.get(c);b.ka(b.data>c.data?1:0);--d};g.prototype.Fs=function(b){this.first.get(b);var c=m();this.eb.get(c);b.ka(b.data>=c.data?1:0);--d};g.prototype.Cs=function(b){var c=this.Qe.Jg();ha(c)?b.A(c):b.pb(c)};Tb=g;p.prototype.If=function(){return this.type===W.rf};p.prototype.Ta=function(){return this.type===W.sf||this.type===W.rf};p.prototype.Ni=
function(){return this.type===W.String};p.prototype.Rf=function(){this.If()||(this.Ni()&&(this.data=parseFloat(this.data)),this.type=W.rf)};p.prototype.ka=function(b){this.type=W.sf;this.data=Math.floor(b)};p.prototype.A=function(b){this.type=W.rf;this.data=b};p.prototype.pb=function(b){this.type=W.String;this.data=b};p.prototype.Su=function(b){ha(b)?(this.type=W.rf,this.data=b):P(b)?(this.type=W.String,this.data=b.toString()):(this.type=W.sf,this.data=0)};Sb=p;W={sf:0,rf:1,String:2}})();
function X(g){this.b=g;this.Jb=[]}X.prototype.ib=function(){var g={},m,e,p,r,d,b,c,f;g.waits=[];var h=g.waits,a;m=0;for(e=this.Jb.length;m<e;m++){b=this.Jb[m];a={t:b.time,st:b.Kp,s:b.pm,ev:b.yf.W,sm:[],sols:{}};b.yf.Jc[b.Lb]&&(a.act=b.yf.Jc[b.Lb].W);p=0;for(r=b.ua.length;p<r;p++)a.sm.push(b.ua[p].W);for(d in b.yb)if(b.yb.hasOwnProperty(d)){c=this.b.n[parseInt(d,10)];f={sa:b.yb[d].zj,insts:[]};p=0;for(r=b.yb[d].Kd.length;p<r;p++)f.insts.push(b.yb[d].Kd[p].uid);a.sols[c.W.toString()]=f}h.push(a)}return g};
X.prototype.ub=function(g){g=g.waits;var m,e,p,r,d,b,c,f,h,a,l;m=this.Jb.length=0;for(e=g.length;m<e;m++)if(b=g[m],f=this.b.rn[b.ev.toString()]){h=-1;p=0;for(r=f.Jc.length;p<r;p++)if(f.Jc[p].W===b.act){h=p;break}if(-1!==h){c={yb:{},ua:[],Ck:!1};c.time=b.t;c.Kp=b.st||"";c.pm=!!b.s;c.yf=f;c.Lb=h;p=0;for(r=b.sm.length;p<r;p++)(f=this.b.Bi(b.sm[p]))&&c.ua.push(f);for(d in b.sols)if(b.sols.hasOwnProperty(d)&&(f=this.b.Bi(parseInt(d,10)))){h=b.sols[d];a={zj:h.sa,Kd:[]};p=0;for(r=h.insts.length;p<r;p++)(l=
this.b.Ai(h.insts[p]))&&a.Kd.push(l);c.yb[f.index.toString()]=a}this.Jb.push(c)}}};
(function(){function g(){}function m(){}function e(){}var p=X.prototype;g.prototype.Pm=function(){return!0};g.prototype.Zq=function(){return!0};g.prototype.oq=function(b,c,d){return Wb(b,c,d)};g.prototype.zq=function(b){return b?b.visible:!1};g.prototype.qr=function(){var b=this.b.Tk().Ea;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var c=b.TriggerOnce_lastTick,d=this.b.od;b.TriggerOnce_lastTick=d;return this.b.yl||c!==d-1};g.prototype.pq=function(b,c,d){return Wb(b.Jg(),
c,d)};g.prototype.Nm=function(){var b=this.b.Bb();return b.Fk?!1:!b.bf};g.prototype.Qm=function(){return!0};g.prototype.Hq=function(){return!0};g.prototype.ck=function(){return!0};g.prototype.$q=function(){return!0};g.prototype.ak=function(){return!0};g.prototype.kq=function(b,c,d){return Ia(V(b),V(d))<=V(c)};g.prototype.vq=function(b,c){return Ka(V(b),V(c))};g.prototype.tq=function(b,c,d){b=Fa(b);c=Fa(c);d=Fa(d);return Ka(d,c)?Ka(b,c)&&!Ka(b,d):!(!Ka(b,c)&&Ka(b,d))};p.i=new g;m.prototype.Bq=function(b){if(!this.b.Ze&&
!this.b.zd){var c=this.b.Wb.indexOf(this.b.ja);if(!b||0!==c)if(b||c!==this.b.Wb.length-1)this.b.zd=this.b.Wb[c+(b?-1:1)]}};m.prototype.lr=function(b,c){b&&b.visible!==c&&(b.visible=c,this.b.T=!0)};m.prototype.nr=function(b,c){0===b.Wj?ha(c)?b.nf(c):b.nf(parseFloat(c)):1===b.Wj&&b.nf(c.toString())};m.prototype.jq=function(b,c){0===b.Wj?ha(c)?b.nf(b.Jg()+c):b.nf(b.Jg()+parseFloat(c)):1===b.Wj&&b.nf(b.Jg()+c.toString())};var r=[],d=[];m.prototype.rr=function(b){if(!(0>b)){var c,f,h,a=this.b.Bb(),e;e=
r.length?r.pop():{yb:{},ua:[]};e.Ck=!1;e.time=this.b.mc.X+b;e.Kp="";e.pm=!1;e.yf=a.ic;e.Lb=a.Lb+1;b=0;for(c=this.b.n.length;b<c;b++)h=this.b.n[b],f=h.na(),f.qa&&-1===a.ic.ua.indexOf(h)||(e.ua.push(h),h=void 0,h=d.length?d.pop():{Kd:[]},h.zj=!1,h.zj=f.qa,xa(h.Kd,f.d),e.yb[b.toString()]=h);this.Jb.push(e);return!0}};m.prototype.hr=function(){var b,c,d;b=0;for(c=this.b.fk.length;b<c;b++)d=this.b.fk[b],d.data=d.Hi};m.prototype.sq=function(b){if(!this.b.Ze&&!this.b.zd)for(var c in this.b.Nf)if(this.b.Nf.hasOwnProperty(c)&&
fb(c,b)){this.b.zd=this.b.Nf[c];break}};m.prototype.ir=function(){if(!this.b.Ze&&!this.b.zd&&this.b.ja){this.b.zd=this.b.ja;var b,c,d;b=0;for(c=this.b.ee.length;b<c;b++)d=this.b.ee[b],d.Cp(d.Ii)}};p.da=new m;e.prototype["int"]=function(b,c){P(c)?(b.ka(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.ka(c)};e.prototype["float"]=function(b,c){P(c)?(b.A(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.A(c)};e.prototype.Wt=function(b,c){b.ka(c.length||0)};e.prototype.random=function(b,c,d){void 0===d?b.A(Math.random()*
c):b.A(Math.random()*(d-c)+c)};e.prototype.sqrt=function(b,c){b.A(Math.sqrt(c))};e.prototype.abs=function(b,c){b.A(Math.abs(c))};e.prototype.round=function(b,c){b.ka(Math.round(c))};e.prototype.floor=function(b,c){b.ka(Math.floor(c))};e.prototype.ceil=function(b,c){b.ka(Math.ceil(c))};e.prototype.sin=function(b,c){b.A(Math.sin(V(c)))};e.prototype.cos=function(b,c){b.A(Math.cos(V(c)))};e.prototype.tan=function(b,c){b.A(Math.tan(V(c)))};e.prototype.asin=function(b,c){b.A(Ba(Math.asin(c)))};e.prototype.acos=
function(b,c){b.A(Ba(Math.acos(c)))};e.prototype.atan=function(b,c){b.A(Ba(Math.atan(c)))};e.prototype.exp=function(b,c){b.A(Math.exp(c))};e.prototype.log10=function(b,c){b.A(Math.log(c)/Math.LN10)};e.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var d,h,a;d=2;for(h=arguments.length;d<h;d++)a=arguments[d],"number"===typeof a&&c<a&&(c=a);b.A(c)};e.prototype.min=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var d,h,a;d=2;for(h=arguments.length;d<h;d++)a=arguments[d],
"number"===typeof a&&c>a&&(c=a);b.A(c)};e.prototype.Ne=function(b){b.A(this.b.Ne)};e.prototype.jg=function(b){b.A(this.b.jg)};e.prototype.time=function(b){b.A(this.b.mc.X)};e.prototype.od=function(b){b.ka(this.b.od)};e.prototype.fj=function(b){b.ka(this.b.fj)};e.prototype.Ok=function(b){b.ka(this.b.Ok)};e.prototype.k=function(b,c,d,h,a){b.A(Ba(Ga(c,d,h,a)))};e.prototype.find=function(b,c,d){P(c)&&P(d)?b.ka(c.search(new RegExp(Za(d),"i"))):b.ka(-1)};e.prototype.left=function(b,c,d){b.pb(P(c)?c.substr(0,
d):"")};e.prototype.right=function(b,c,d){b.pb(P(c)?c.substr(c.length-d):"")};e.prototype.replace=function(b,c,d,h){P(c)&&P(d)&&P(h)?b.pb(c.replace(new RegExp(Za(d),"gi"),h)):b.pb(P(c)?c:"")};e.prototype.trim=function(b,c){b.pb(P(c)?c.trim():"")};e.prototype.Rr=function(b){var c=R(Math.random()*(arguments.length-1));b.Su(arguments[c+1])};e.prototype.wk=function(b){b.A(this.b.wk/1E3)};e.prototype.aj=function(b){b.A(this.b.aj)};p.Qa=new e;p.Hu=function(){var b,c,f,h,a,e,g=this.b.Bb();b=0;for(f=this.Jb.length;b<
f;b++){h=this.Jb[b];if(-1===h.time){if(!h.pm)continue}else if(h.time>this.b.mc.X)continue;g.ic=h.yf;g.Lb=h.Lb;g.Ab=0;for(c in h.yb)h.yb.hasOwnProperty(c)&&(a=this.b.n[parseInt(c,10)].na(),e=h.yb[c],a.qa=e.zj,xa(a.d,e.Kd),a=e,a.Kd.length=0,d.push(a));h.yf.Gu();this.b.uk(h.ua);h.Ck=!0}c=b=0;for(f=this.Jb.length;b<f;b++)h=this.Jb[b],this.Jb[c]=h,h.Ck?(Ta(h.yb),h.ua.length=0,r.push(h)):c++;this.Jb.length=c}})();
(function(){ib=function(g,e){var p=g[1],r=g[3],d=g[4],b=g[5],c=g[6],f=g[7],h=g[8];e.i||(e.i={});e.da||(e.da={});e.Qa||(e.Qa={});var a=e.i,l=e.da,t=e.Qa;r&&(a.vv=function(a,b){return Wb(this.x,a,b)},a.wv=function(a,b){return Wb(this.y,a,b)},a.Cv=function(){var a=this.e;this.Pa();var b=this.$a;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ia||b.top>a.Ha)},a.Dv=function(){this.Pa();var a=this.$a,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Pv=function(a,b,c){var d=this.na(),
f=d.vc();if(!f.length)return!1;var h=f[0],e=h,g=Qa(h.x,h.y,b,c),l,r,m;l=1;for(r=f.length;l<r;l++)if(h=f[l],m=Qa(h.x,h.y,b,c),0===a&&m<g||1===a&&m>g)g=m,e=h;d.Bh(e);return!0},l.gw=function(a){this.x!==a&&(this.x=a,this.Ba())},l.hw=function(a){this.y!==a&&(this.y=a,this.Ba())},l.cw=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ba()},l.dw=function(a,b){var c=a.jt(this);if(c){var d;c.Wk?(d=c.Wk(b,!0),c=c.Wk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Ba()}},
l.Iv=function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.Ba())},l.Hv=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.Ba())},t.Ym=function(a){a.A(this.x)},t.Zm=function(a){a.A(this.y)},t.Ne=function(a){a.A(this.b.Gg(this))});d&&(a.uv=function(a,b){return Wb(this.width,a,b)},a.rv=function(a,b){return Wb(this.height,a,b)},l.or=function(a){this.width!==a&&(this.width=a,this.Ba())},l.aw=function(a){this.height!==a&&(this.height=a,this.Ba())},l.ew=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ba()},t.lw=function(a){a.A(this.width)},t.yv=function(a){a.A(this.height)},t.nv=function(a){this.Pa();a.A(this.$a.left)},t.pv=function(a){this.Pa();a.A(this.$a.top)},t.ov=function(a){this.Pa();a.A(this.$a.right)},t.mv=function(a){this.Pa();a.A(this.$a.bottom)});b&&(a.kq=function(a,b){return Ia(this.k,V(b))<=V(a)},a.vq=function(a){return Ka(this.k,V(a))},a.tq=function(a,b){var c=Fa(a),d=Fa(b),f=Da(this.k);return Ka(d,
c)?Ka(f,c)&&!Ka(f,d):!(!Ka(f,c)&&Ka(f,d))},l.Xv=function(a){a=V(Ca(a));isNaN(a)||this.k===a||(this.k=a,this.Ba())},l.Tv=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=Da(this.k),this.Ba())},l.Uv=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=Da(this.k),this.Ba())},l.Vv=function(a,b){var c=Ja(this.k,V(b),V(a));isNaN(c)||this.k===c||(this.k=c,this.Ba())},l.Wv=function(a,b,c){a=Ja(this.k,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.Ba())},l.fw=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.k===c||(this.k=c,this.Ba())},t.lv=function(a){a.A(Ea(this.k))});p||(a.sv=function(a,b,c){return Wb(this.Sa[a],b,c)},a.Av=function(a){return this.Sa[a]},a.Qv=function(a,b){var c=this.na(),d=c.vc();if(!d.length)return!1;var f=d[0],h=f,e=f.Sa[b],g,l,r;g=1;for(l=d.length;g<l;g++)if(f=d[g],r=f.Sa[b],0===a&&r<e||1===a&&r>e)e=r,h=f;c.Bh(h);return!0},a.Ov=function(a){var b,c,d,f,h;if(this.b.Tk().Qg){h=this.na();if(h.qa)for(h.qa=!1,h.d.length=0,h.aa.length=0,d=this.d,b=0,c=
d.length;b<c;b++)f=d[b],f.uid===a?h.aa.push(f):h.d.push(f);else{d=b=0;for(c=h.d.length;b<c;b++)f=h.d[b],h.d[d]=f,f.uid===a?h.aa.push(f):d++;h.d.length=d}this.wd();return!!h.d.length}f=this.b.Ai(a);if(!f)return!1;h=this.na();if(!h.qa&&-1===h.d.indexOf(f))return!1;if(this.D)for(a=f.type.za,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.Bh(f),this.wd(),!0}else if(f.type===this)return h.Bh(f),this.wd(),!0;return!1},a.Jq=function(){return!0},a.Kq=function(){return!0},l.bw=function(a,b){var c=this.Sa;
ha(c[a])?c[a]=ha(b)?b:parseFloat(b):P(c[a])&&(c[a]=P(b)?b:b.toString())},l.kv=function(a,b){var c=this.Sa;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):P(c[a])&&(c[a]=P(b)?c[a]+b:c[a]+b.toString())},l.iw=function(a,b){var c=this.Sa;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},l.Yv=function(a,b){this.Sa[a]=b?1:0},l.jw=function(a){this.Sa[a]=1-this.Sa[a]},l.qq=function(){this.b.td(this)},l.Aq||(l.Aq=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Yi(this,b,!0);this.ud&&this.ud();
if(this.I)for(a=0,b=this.I.length;a<b;++a)c=this.I[a],c.ud&&c.ud()}),t.xv=function(a){var b=a.jf.d.length,c,d,f;c=0;for(d=this.b.Zc.length;c<d;c++)f=this.b.Zc[c],a.jf.D?0<=f.type.za.indexOf(a.jf)&&b++:f.type===a.jf&&b++;a.ka(b)},t.Sv=function(a){a.ka(a.jf.na().vc().length)},t.kw=function(a){a.ka(this.uid)},t.zv=function(a){a.ka(this.Kg())},t.lq||(t.lq=function(a){a.pb(JSON.stringify(this.b.km(this,!0)))}));c&&(a.Ev=function(){return this.visible},l.Xm=function(a){!a!==!this.visible&&(this.visible=
a,this.b.T=!0)},a.tv=function(a,b){return Wb(eb(100*this.opacity),a,b)},l.mr=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.T=!0)},t.Opacity=function(a){a.A(eb(100*this.opacity))});f&&(a.Bv=function(a){return a?this.e===a:!1},a.Rv=function(a){var b=this.na(),c=b.vc();if(!c.length)return!1;var d=c[0],f=d,h,e;h=1;for(e=c.length;h<e;h++)if(d=c[h],0===a){if(d.e.index>f.e.index||d.e.index===f.e.index&&d.wc()>f.wc())f=d}else if(d.e.index<f.e.index||d.e.index===f.e.index&&
d.wc()<f.wc())f=d;b.Bh(f);return!0},l.Lv=function(){var a=this.e,b=a.d;b.length&&b[b.length-1]===this||(a.ag(this,!1),a.tg(this,!1),this.b.T=!0)},l.Jv=function(){var a=this.e,b=a.d;b.length&&b[0]===this||(a.ag(this,!1),a.yu(this),this.b.T=!0)},l.Kv=function(a){a&&a!=this.e&&(this.e.ag(this,!0),this.e=a,a.tg(this,!0),this.b.T=!0)},l.nw=function(a,b){var c=0===a;if(b){var d=b.dt(this);d&&d.uid!==this.uid&&(this.e.index!==d.e.index&&(this.e.ag(this,!0),this.e=d.e,d.e.tg(this,!0)),this.e.cu(this,d,c),
this.b.T=!0)}},t.Gv=function(a){a.ka(this.e.Yo)},t.Fv=function(a){a.pb(this.e.name)},t.mw=function(a){a.ka(this.wc())});h&&(l.Zv=function(a,b){if(this.b.q){var c=this.type.Vk(b);if(!(0>c)){var d=1===a;this.be[c]!==d&&(this.be[c]=d,this.Zd(),this.b.T=!0)}}},l.$v=function(a,b,c){if(this.b.q){var d=this.type.Vk(a);0>d||(a=this.type.J[d],d=this.Da[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.nt(a.jb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Za&&(this.b.T=!0))))}})};Cb=function(){this.pk=this.Xh=!0;this.type.jn=
!0;this.b.T=!0;var g,e,p=this.lk;g=0;for(e=p.length;g<e;++g)p[g](this);this.e.Tc&&this.Pa()};Db=function(g){g&&this.lk.push(g)};Fb=function(){if(this.Xh){var g=this.$a,e=this.yd;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Eb*this.width,-this.Fb*this.height);this.k?(g.offset(-this.x,-this.y),e.Fp(g,this.k),e.offset(this.x,this.y),e.sn(g)):e.Jh(g);g.normalize();this.Xh=!1;this.dv()}};var g=new U(0,0,0,0);Gb=function(){if(this.e.Tc){var m=this.e.$b,e=this.$a;g.set(m.fc(e.left),
m.gc(e.top),m.fc(e.right),m.gc(e.bottom));this.Gb.li(g)||(this.Gb.right<this.Gb.left?m.update(this,null,g):m.update(this,this.Gb,g),this.Gb.ci(g),this.e.Td=!0)}};Hb=function(){if(this.pk&&this.xg){this.Pa();var m=this.type.xn,e=this.$a;g.set(m.fc(e.left),m.gc(e.top),m.fc(e.right),m.gc(e.bottom));this.he.li(g)||(this.he.right<this.he.left?m.update(this,null,g):m.update(this,this.he,g),this.he.ci(g),this.pk=!1)}};Eb=function(g,e){return this.$a.Sb(g,e)&&this.yd.Sb(g,e)?this.Yc&&!this.Yc.Tt()?(this.Yc.Or(this.width,
this.height,this.k),this.Yc.Sb(g-this.x,e-this.y)):!0:!1};yb=function(){this.type.Tj();return this.Ve};Ib=function(){this.e.Em();return this.Vc};Jb=function(){this.ca.length=0;var g,e;g=0;for(e=this.be.length;g<e;g++)this.be[g]&&this.ca.push(this.type.J[g]);this.gq=!!this.ca.length};zb=function(){return"Inst"+this.up};lb=function(g){if(g&&g.Oc&&g.type!=this){var e,p,r;e=0;for(p=g.siblings.length;e<p;e++)if(r=g.siblings[e],r.type==this)return r}g=this.na().vc();return g.length?g[0]:null};mb=function(g){var e=
this.na().vc();return e.length?e[g.Kg()%e.length]:null};kb=function(){if(this.hg&&!this.D){var g,e;g=0;for(e=this.d.length;g<e;g++)this.d[g].Ve=g;var p=g,r=this.b.Zc;g=0;for(e=r.length;g<e;++g)r[g].type===this&&(r[g].Ve=p++);this.hg=!1}};wb=function(g){if(g<this.d.length)return this.d[g];g-=this.d.length;var e=this.b.Zc,p,r;p=0;for(r=e.length;p<r;++p)if(e[p].type===this){if(0===g)return e[p];--g}return null};nb=function(){return this.ze[this.Ed]};ob=function(){this.Ed++;this.Ed===this.ze.length?this.ze.push(new jb(this)):
this.ze[this.Ed].qa=!0};pb=function(){this.Ed++;this.Ed===this.ze.length&&this.ze.push(new jb(this));var g=this.ze[this.Ed],e=this.ze[this.Ed-1];e.qa?g.qa=!0:(g.qa=!1,xa(g.d,e.d),xa(g.aa,e.aa))};qb=function(){this.Ed--};rb=function(g){var e,p,r,d,b,c=0;if(!this.D)for(e=0,p=this.za.length;e<p;e++)for(b=this.za[e],r=0,d=b.Ma.length;r<d;r++){if(g===b.Ma[r].name)return this.Ea.lastBehIndex=c,b.Ma[r];c++}e=0;for(p=this.Ma.length;e<p;e++){if(g===this.Ma[e].name)return this.Ea.lastBehIndex=c,this.Ma[e];
c++}return null};tb=function(g){return this.xi(g)?this.Ea.lastBehIndex:-1};ub=function(g){var e,p;e=0;for(p=this.J.length;e<p;e++)if(this.J[e].name===g)return e;return-1};vb=function(){if(this.Oc&&!this.D){var g,e,p,r,d,b,c;this.Tj();b=this.na();var f=b.qa,h=(g=this.b.Bb())&&g.ic&&g.ic.ed;g=0;for(e=this.Rb.length;g<e;g++)if(d=this.Rb[g],d!==this&&(d.Tj(),c=d.na(),c.qa=f,!f)){c.d.length=b.d.length;p=0;for(r=b.d.length;p<r;p++)c.d[p]=d.Pn(b.d[p].Ve);if(h)for(c.aa.length=b.aa.length,p=0,r=b.aa.length;p<
r;p++)c.aa[p]=d.Pn(b.aa[p].Ve)}}};xb=function(){return"Type"+this.W};Wb=function(g,e,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;switch(e){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();var ec={};function hc(g){this.b=g}
(function(){function g(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].jc():y.destination}function e(){return y.createGain?y.createGain():y.createGainNode()}function p(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function r(a){a.start?a.start(0):a.noteOn(0)}function d(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
b,c,d,f,h){this.type="filter";this.Qc=[a,b,c,d,f,h];this.Y=e();this.H=e();this.H.gain.value=h;this.F=e();this.F.gain.value=1-h;this.Na=y.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?a:sc[a];this.Na.frequency.value=b;this.Na.detune&&(this.Na.detune.value=c);this.Na.Q.value=d;this.Na.gain.value=f;this.Y.connect(this.Na);this.Y.connect(this.F);this.Na.connect(this.H)}function f(a,b,c){this.type="delay";this.Qc=[a,b,c];this.Y=e();this.H=e();this.H.gain.value=c;this.F=e();this.F.gain.value=
1-c;this.nh=e();this.tc=p(a);this.tc.delayTime.value=a;this.ji=e();this.ji.gain.value=b;this.Y.connect(this.nh);this.Y.connect(this.F);this.nh.connect(this.H);this.nh.connect(this.tc);this.tc.connect(this.ji);this.ji.connect(this.nh)}function h(a,b,c,d){this.type="convolve";this.Qc=[b,c,d];this.Y=e();this.H=e();this.H.gain.value=c;this.F=e();this.F.gain.value=1-c;this.Ie=y.createConvolver();a&&(this.Ie.normalize=b,this.Ie.buffer=a);this.Y.connect(this.Ie);this.Y.connect(this.F);this.Ie.connect(this.H)}
function a(a,b,c,d,f){this.type="flanger";this.Qc=[a,b,c,d,f];this.Y=e();this.F=e();this.F.gain.value=1-f/2;this.H=e();this.H.gain.value=f/2;this.qi=e();this.qi.gain.value=d;this.tc=p(a+b);this.tc.delayTime.value=a;this.cb=y.createOscillator();this.cb.frequency.value=c;this.Yb=e();this.Yb.gain.value=b;this.Y.connect(this.tc);this.Y.connect(this.F);this.tc.connect(this.H);this.tc.connect(this.qi);this.qi.connect(this.tc);this.cb.connect(this.Yb);this.Yb.connect(this.tc.delayTime);r(this.cb)}function l(a,
b,c,d,f,h){this.type="phaser";this.Qc=[a,b,c,d,f,h];this.Y=e();this.F=e();this.F.gain.value=1-h/2;this.H=e();this.H.gain.value=h/2;this.Na=y.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?7:"allpass";this.Na.frequency.value=a;this.Na.detune&&(this.Na.detune.value=b);this.Na.Q.value=c;this.cb=y.createOscillator();this.cb.frequency.value=f;this.Yb=e();this.Yb.gain.value=d;this.Y.connect(this.Na);this.Y.connect(this.F);this.Na.connect(this.H);this.cb.connect(this.Yb);this.Yb.connect(this.Na.frequency);
r(this.cb)}function t(a){this.type="gain";this.Qc=[a];this.ba=e();this.ba.gain.value=a}function k(a,b){this.type="tremolo";this.Qc=[a,b];this.ba=e();this.ba.gain.value=1-b/2;this.cb=y.createOscillator();this.cb.frequency.value=a;this.Yb=e();this.Yb.gain.value=b/2;this.cb.connect(this.Yb);this.Yb.connect(this.ba.gain);r(this.cb)}function w(a,b){this.type="ringmod";this.Qc=[a,b];this.Y=e();this.H=e();this.H.gain.value=b;this.F=e();this.F.gain.value=1-b;this.Gh=e();this.Gh.gain.value=0;this.cb=y.createOscillator();
this.cb.frequency.value=a;this.cb.connect(this.Gh.gain);r(this.cb);this.Y.connect(this.Gh);this.Y.connect(this.F);this.Gh.connect(this.H)}function s(a,b,c,d,f){this.type="distortion";this.Qc=[a,b,c,d,f];this.Y=e();this.tj=e();this.sj=e();this.Ou(c,Math.pow(10,d/20));this.H=e();this.H.gain.value=f;this.F=e();this.F.gain.value=1-f;this.Xj=y.createWaveShaper();this.hi=new Float32Array(65536);this.$s(a,b);this.Xj.hi=this.hi;this.Y.connect(this.tj);this.Y.connect(this.F);this.tj.connect(this.Xj);this.Xj.connect(this.sj);
this.sj.connect(this.H)}function q(a,b,c,d,f){this.type="compressor";this.Qc=[a,b,c,d,f];this.ba=y.createDynamicsCompressor();try{this.ba.threshold.value=a,this.ba.knee.value=b,this.ba.ratio.value=c,this.ba.attack.value=d,this.ba.release.value=f}catch(h){}}function n(a,b){this.type="analyser";this.Qc=[a,b];this.ba=y.createAnalyser();this.ba.fftSize=a;this.ba.smoothingTimeConstant=b;this.Ys=new Float32Array(this.ba.frequencyBinCount);this.Ip=new Uint8Array(a);this.Ah=0}function x(){this.G=null;this.$i=
0;this.Ae=[];this.Jl=this.Qi=this.Pi=0}function M(a,b){this.src=a;this.M=F;this.Pc=b;this.en=!1;var c=this;this.Hl=this.Tl=null;this.Xf=[];this.Aj=0;this.Jm=this.Kk=this.Np=this.pj=!1;1===F&&b&&(this.M=0,this.Tl=e());this.Ge=this.ea=null;var d;switch(this.M){case 0:this.ea=new Audio;this.ea.addEventListener("canplaythrough",function(){c.Jm=!0});1===F&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Np=!0,this.ea.addEventListener("canplay",function(){c.Hl||(c.Hl=y.createMediaElementSource(c.ea),
c.Hl.connect(c.Tl))}));this.ea.autoplay=!1;this.ea.xw="auto";this.ea.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.Ge=d.response;c.Wr()};d.onerror=function(){c.Kk=!0};d.send();break;case 2:this.ea=!0;break;case 3:this.ea=!0}}function u(a,b){var c=this;this.tag=b;this.ac=this.bd=!0;this.src=a.src;this.buffer=a;this.M=F;this.Pc=a.Pc;this.playbackRate=1;this.vk=!0;this.zc=this.Ud=!1;this.Hb=0;this.Vg=this.Jf=this.cd=!1;this.volume=1;this.Ye=
1===E&&!this.Pc||2===E;this.Sf=1;this.startTime=this.Ye?z.mc.X:z.sd.X;this.Ka=this.Ra=null;this.fd=!1;this.Ja=null;this.hp=this.gp=this.fp=this.ep=this.jp=this.ip=0;this.j=null;var d=!1;1!==this.M||0!==this.buffer.M||this.buffer.Np||(this.M=0);switch(this.M){case 0:this.Pc?(this.j=a.ea,d=!a.en,a.en=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.ea.src,d=!0);d&&this.j.addEventListener("ended",function(){ja=c.tag;c.ac=!0;z.trigger(hc.prototype.i.$j,I)});break;case 1:this.Ra=e();this.Ra.connect(m(b));
1===this.buffer.M?a.ea&&(this.j=y.createBufferSource(),this.j.buffer=a.ea,this.j.connect(this.Ra)):(this.j=this.buffer.ea,this.buffer.Tl.connect(this.Ra));break;case 2:this.j=new window.Media(Z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.vk=!0,c.ac=!0,ja=c.tag,z.trigger(hc.prototype.i.$j,I))});break;case 3:this.j=!0}}function D(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,d,f,h,e=y.destination;if(S.hasOwnProperty(a)&&(f=S[a],f.length))for(e=f[0].jc(),c=0,d=f.length;c<
d;c++)h=f[c],c+1===d?h.pc(y.destination):h.pc(f[c+1].jc());Ha.length=0;if(a.length)for(c=0,d=G.length;c<d;c++)f=G[c],fb(a,f.tag)&&Ha.push(f);else Q&&!Q.Ue()&&(Ha.length=1,Ha[0]=Q);c=0;for(d=Ha.length;c<d;c++)Ha[c].Cu(e);ca&&sb===a&&(ca.disconnect(),ca.connect(e))}function L(){}function A(){}var v=hc.prototype;v.ra=function(a){this.ta=a;this.b=a.b};v.ra.prototype.V=function(){};var z=null,I=null,ja="",Z="",F=0,y=null,T=[],G=[],Q=null,C=!1,E=0,O=!1,B=1,K=0,H=0,ka=1,N=1,qa=10,fa=1E4,sa=1,ca=null,sb=
"",Ma=!1,Na=[],S={},sc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.pc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};c.prototype.remove=function(){this.Y.disconnect();this.Na.disconnect();this.H.disconnect();this.F.disconnect()};c.prototype.jc=function(){return this.Y};f.prototype.pc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};f.prototype.remove=function(){this.Y.disconnect();
this.nh.disconnect();this.tc.disconnect();this.ji.disconnect();this.H.disconnect();this.F.disconnect()};f.prototype.jc=function(){return this.Y};h.prototype.pc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};h.prototype.remove=function(){this.Y.disconnect();this.Ie.disconnect();this.H.disconnect();this.F.disconnect()};h.prototype.jc=function(){return this.Y};a.prototype.pc=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};
a.prototype.remove=function(){this.Y.disconnect();this.tc.disconnect();this.cb.disconnect();this.Yb.disconnect();this.F.disconnect();this.H.disconnect();this.qi.disconnect()};a.prototype.jc=function(){return this.Y};l.prototype.pc=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};l.prototype.remove=function(){this.Y.disconnect();this.Na.disconnect();this.cb.disconnect();this.Yb.disconnect();this.F.disconnect();this.H.disconnect()};l.prototype.jc=function(){return this.Y};
t.prototype.pc=function(a){this.ba.disconnect();this.ba.connect(a)};t.prototype.remove=function(){this.ba.disconnect()};t.prototype.jc=function(){return this.ba};k.prototype.pc=function(a){this.ba.disconnect();this.ba.connect(a)};k.prototype.remove=function(){this.cb.disconnect();this.Yb.disconnect();this.ba.disconnect()};k.prototype.jc=function(){return this.ba};w.prototype.pc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};w.prototype.remove=function(){this.cb.disconnect();
this.Gh.disconnect();this.Y.disconnect();this.H.disconnect();this.F.disconnect()};w.prototype.jc=function(){return this.Y};s.prototype.Ou=function(a,b){.01>a&&(a=.01);this.tj.gain.value=a;this.sj.gain.value=Math.pow(1/a,.6)*b};s.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};s.prototype.$s=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,h=0;32768>h;++h)f=h/32768,f=this.shape(f,c,d),this.hi[32768+h]=f,this.hi[32768-
h-1]=-f};s.prototype.pc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};s.prototype.remove=function(){this.Y.disconnect();this.tj.disconnect();this.Xj.disconnect();this.sj.disconnect();this.H.disconnect();this.F.disconnect()};s.prototype.jc=function(){return this.Y};q.prototype.pc=function(a){this.ba.disconnect();this.ba.connect(a)};q.prototype.remove=function(){this.ba.disconnect()};q.prototype.jc=function(){return this.ba};n.prototype.Ga=function(){this.ba.getFloatFrequencyData(this.Ys);
this.ba.getByteTimeDomainData(this.Ip);for(var a=this.ba.fftSize,b=0,c=this.Ah=0,d=0;b<a;b++)d=(this.Ip[b]-128)/128,0>d&&(d=-d),this.Ah<d&&(this.Ah=d),c+=d*d;this.Ah=g(this.Ah);g(Math.sqrt(c/a))};n.prototype.pc=function(a){this.ba.disconnect();this.ba.connect(a)};n.prototype.remove=function(){this.ba.disconnect()};n.prototype.jc=function(){return this.ba};x.prototype.Hh=function(a){if(this.G=a)this.Pi=this.G.x,this.Qi=this.G.y;this.Ae.length=0};x.prototype.Gi=function(){return!!this.G};x.prototype.Ga=
function(a){this.G&&0!==a&&(this.Jl=Ga(this.Pi,this.Qi,this.G.x,this.G.y),a=Qa(this.Pi,this.Qi,this.G.x,this.G.y)/a,4>this.Ae.length||this.Ae.shift(),this.Ae.push(a),this.Pi=this.G.x,this.Qi=this.G.y)};x.prototype.Tn=function(){if(!this.Ae.length)return 0;var a,b,c=0;a=0;for(b=this.Ae.length;a<b;a++)c+=this.Ae[a];return c/this.Ae.length};x.prototype.Zk=function(){return Math.cos(this.Jl)*this.Tn()};x.prototype.$k=function(){return Math.sin(this.Jl)*this.Tn()};var pc=!1;M.prototype.Wr=function(){if(!this.ea&&
this.Ge){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.Ge,function(b){a.ea=b;a.Ge=null;var c,d,f;if(ga(a.qj)||O)ga(a.bi)||(c=a.bi.Ie,c.normalize=a.Xo,c.buffer=b);else if(a.Xf.length){c=0;for(d=a.Xf.length;c<d;c++){b=a.Xf[c];f=new u(a,b.Rp);f.nm(!0);if("undefined"!==typeof b.Zo&&(b.G=z.Ai(b.Zo),!b.G))continue;if(b.G){var h=La(b.G.x,b.G.y,-b.G.e.Oa(),K,H,!0),e=La(b.G.x,b.G.y,-b.G.e.Oa(),K,H,!1);f.mm(h,e,Ba(b.G.k-b.G.e.Oa()),b.fl,b.Kl,b.Nl);f.Hh(b.G)}else f.mm(b.x,b.y,b.ur,b.fl,b.Kl,b.Nl);f.play(a.El,
a.Hm,a.Aj);a.pj&&f.pause();G.push(f)}a.Xf.length=0}else f=new u(a,a.qj),f.play(a.El,a.Hm,a.Aj),a.pj&&f.pause(),G.push(f)},function(){a.Kk=!0});else if(this.ea=y.createBuffer(this.Ge,!1),this.Ge=null,ga(this.qj)||O)ga(this.bi)||(b=this.bi.Ie,b.normalize=this.Xo,b.buffer=this.ea);else{var b=new u(this,this.qj);b.play(this.El,this.Hm,this.Aj);this.pj&&b.pause();G.push(b)}}};M.prototype.bo=function(){switch(this.M){case 0:var a=4<=this.ea.readyState;a&&(this.Jm=!0);return a||this.Jm;case 1:return!!this.Ge||
!!this.ea;case 2:return!0;case 3:return!0}return!1};M.prototype.Pt=function(){switch(this.M){case 0:return this.bo();case 1:return!!this.ea;case 2:return!0;case 3:return!0}return!1};M.prototype.It=function(){switch(this.M){case 0:return!!this.ea.error;case 1:return this.Kk}return!1};u.prototype.Ue=function(){var a;switch(this.M){case 0:return this.j.ended;case 1:if(1===this.buffer.M){if(!this.bd&&!this.ac&&this.j.loop||this.zc)return!1;a=this.Ye?z.mc.X:z.sd.X;var b=this.playbackRate;0===b&&(b=1E-6);
return a-this.startTime>this.buffer.ea.duration/b}return this.j.ended;case 2:return this.vk;case 3:!0}return!0};u.prototype.Pr=function(){return this.bd||this.ac?!0:this.Ue()};u.prototype.nm=function(a){1===F&&(!this.fd&&a?this.Ra&&(this.Ka||(this.Ka=y.createPanner(),this.Ka.panningModel="number"===typeof this.Ka.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Ka.distanceModel="number"===typeof this.Ka.distanceModel?N:["linear","inverse","exponential"][N],this.Ka.refDistance=qa,this.Ka.maxDistance=
fa,this.Ka.rolloffFactor=sa),this.Ra.disconnect(),this.Ra.connect(this.Ka),this.Ka.connect(m(this.tag)),this.fd=!0):this.fd&&!a&&this.Ra&&(this.Ka.disconnect(),this.Ra.disconnect(),this.Ra.connect(m(this.tag)),this.fd=!1))};u.prototype.mm=function(a,b,c,d,f,h){this.fd&&1===F&&(this.Ka.setPosition(a,b,0),this.Ka.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ka.coneInnerAngle=d,this.Ka.coneOuterAngle=f,this.Ka.coneOuterGain=h,this.ip=a,this.jp=b,this.ep=c,this.fp=d,this.gp=f,this.hp=h)};u.prototype.Hh=
function(a){this.fd&&1===F&&(this.Ja||(this.Ja=new x),this.Ja.Hh(a))};u.prototype.Ga=function(a){if(this.fd&&1===F&&this.Ja&&this.Ja.Gi()&&this.Gf()){this.Ja.Ga(a);a=this.Ja.G;var b=La(a.x,a.y,-a.e.Oa(),K,H,!0),c=La(a.x,a.y,-a.e.Oa(),K,H,!1);this.Ka.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ja.G.k&&(b=a.k-a.e.Oa(),this.Ka.setOrientation(Math.cos(b),Math.sin(b),0));b=La(this.Ja.Zk(),this.Ja.$k(),-a.e.Oa(),0,0,!0);c=La(this.Ja.Zk(),this.Ja.$k(),-a.e.Oa(),0,0,!1);this.Ka.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,c){var f=this.j;this.cd=a;this.volume=b;c=c||0;switch(this.M){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*B&&(f.volume=b*B);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==c)try{f.currentTime=c}catch(h){}if(this.Pc&&Ma&&!z.fa)Na.push(this);else try{this.j.play()}catch(e){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",e)}break;case 1:this.muted=!1;this.Sf=1;if(1===this.buffer.M)this.Ra.gain.value=
b*B,this.bd||(this.j=y.createBufferSource(),this.j.buffer=this.buffer.ea,this.j.connect(this.Ra)),this.j.loop=a,0===c?r(this.j):d(this.j,c,this.Se());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*B;if(f.currentTime!==c)try{f.currentTime=c}catch(g){}this.Pc&&Ma&&!z.fa?Na.push(this):f.play()}break;case 2:(!this.bd&&this.ac||0!==c)&&f.seekTo(c);f.play();this.vk=!1;break;case 3:z.gb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ye?z.mc.X:z.sd.X)-c;this.zc=this.ac=this.bd=!1};u.prototype.stop=function(){switch(this.M){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.M?b(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:z.gb&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.zc=!1};u.prototype.pause=function(){if(!(this.bd||this.ac||this.Ue()||this.zc)){switch(this.M){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.M?(this.Hb=this.Xk(),
this.cd&&(this.Hb%=this.Se()),b(this.j)):this.j.paused||this.j.pause();break;case 2:this.j.pause();break;case 3:z.gb&&AppMobi.context.stopSound(this.src)}this.zc=!0}};u.prototype.Fu=function(){if(!(this.bd||this.ac||this.Ue())&&this.zc){switch(this.M){case 0:this.j.play();break;case 1:1===this.buffer.M?(this.j=y.createBufferSource(),this.j.buffer=this.buffer.ea,this.j.connect(this.Ra),this.j.loop=this.cd,this.Ra.gain.value=B*this.volume*this.Sf,this.startTime=(this.Ye?z.mc.X:z.sd.X)-this.Hb,d(this.j,
this.Hb,this.Se())):this.j.play();break;case 2:this.j.play();break;case 3:z.gb&&AppMobi.context.resumeSound(this.src)}this.zc=!1}};u.prototype.seek=function(a){if(!(this.bd||this.ac||this.Ue()))switch(this.M){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.M)this.zc?this.Hb=a:(this.pause(),this.Hb=a,this.Fu());else try{this.j.currentTime=a}catch(c){}break;case 3:z.gb&&AppMobi.context.seekSound(this.src,a)}};u.prototype.Cu=function(a){1===this.M&&(this.fd?(this.Ka.disconnect(),
this.Ka.connect(a)):(this.Ra.disconnect(),this.Ra.connect(a)))};u.prototype.Se=function(){switch(this.M){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.ea.duration;case 2:return this.j.getDuration();case 3:if(z.gb)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.Xk=function(){var a=this.Se(),b=0;switch(this.M){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.M){if(this.zc)return this.Hb;
b=(this.Ye?z.mc.X:z.sd.X)-this.startTime}else"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:z.gb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.cd&&b>a&&(b=a);return b};u.prototype.Gf=function(){return!this.zc&&!this.bd&&!this.ac&&!this.Ue()};u.prototype.av=function(){var a=this.volume*B;switch(this.M){case 0:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:1===this.buffer.M?this.Ra.gain.value=a*this.Sf:"undefined"!==typeof this.j.volume&&
this.j.volume!==a&&(this.j.volume=a)}};u.prototype.ki=function(a){switch(this.M){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:1===this.buffer.M?(this.Sf=a?0:1,this.Ra.gain.value=B*this.volume*this.Sf):this.j.muted!==!!a&&(this.j.muted=!!a)}};u.prototype.Pu=function(){this.Jf=!0;this.ki(this.Jf||this.Vg)};u.prototype.Dp=function(a){this.Vg=!!a;this.ki(this.Jf||this.Vg)};u.prototype.dq=function(){var a=this.playbackRate;this.Ye&&(a*=z.jg);switch(this.M){case 0:this.j.playbackRate!==a&&
(this.j.playbackRate=a);break;case 1:1===this.buffer.M?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};u.prototype.Ru=function(a){switch(this.M){case 0:a?this.Gf()?(this.j.pause(),this.Ud=!0):this.Ud=!1:this.Ud&&this.j.play();break;case 1:a?this.Gf()?(1===this.buffer.M?(this.Hb=this.Xk(),this.cd&&(this.Hb%=this.Se()),b(this.j)):this.j.pause(),this.Ud=!0):this.Ud=!1:this.Ud&&(1===this.buffer.M?(this.j=y.createBufferSource(),this.j.buffer=
this.buffer.ea,this.j.connect(this.Ra),this.j.loop=this.cd,this.Ra.gain.value=B*this.volume*this.Sf,this.startTime=(this.Ye?z.mc.X:z.sd.X)-this.Hb,d(this.j,this.Hb,this.Se())):this.j.play());break;case 2:a?this.Gf()?(this.j.pause(),this.Ud=!0):this.Ud=!1:this.Ud&&this.j.play()}};v.la=function(a){this.type=a;z=this.b=a.b;I=this;this.tb=null;this.eh=-600;!(this.b.Oi||this.b.Ji&&(this.b.Rg||this.b.Ki))||this.b.Sg||this.b.P||this.b.ml||(Ma=!0);y=null;"undefined"!==typeof AudioContext?(F=1,y=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(F=1,y=new webkitAudioContext);(this.b.Oi&&1===F||Ma)&&document.addEventListener("touchstart",function(){var a,b,c;!pc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),r(b),pc=!0);if(Ma){if(!O)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.ac||c.zc||c.j.play();Na.length=0}},!0);1!==F&&(this.b.yc&&"undefined"!==typeof window.Media?F=2:this.b.Ff&&(F=3));2===F&&(Z=location.href,a=Z.lastIndexOf("/"),-1<a&&(Z=Z.substr(0,a+1)),
Z=Z.replace("file://",""));if(this.b.co&&this.b.Qt&&"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.td(this);else{if(this.b.gb)C=this.b.Ji;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.Rh(this)}};var la=v.la.prototype;la.V=function(){this.b.vf=this;E=this.C[0];this.Vd=this.C[1];this.su=0!==this.C[2];ka=this.C[3];N=this.C[4];this.eh=-this.C[5];
qa=this.C[6];fa=this.C[7];sa=this.C[8];this.tb=new x;var a=this.b.O||this.b.width,b=this.b.N||this.b.height;1===F&&("undefined"!==typeof y.listener.dopplerFactor&&(y.listener.dopplerFactor=0),y.listener.setPosition(a/2,b/2,this.eh),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ca&&ca.disconnect();sb=b.toLowerCase();ca=y.createMediaStreamSource(a);ca.connect(m(sb))});this.b.Fr(function(a){I.nu(a)});var c=this;this.b.Dr(function(a){c.iu(a)})};la.iu=function(a){var b,
c,d;b=0;for(c=G.length;b<c;b++)d=G[b],d.Ja&&d.Ja.G===a&&(d.Ja.G=null,d.fd&&d.Gf()&&d.cd&&d.stop());this.tb.G===a&&(this.tb.G=null)};la.ib=function(){var a={silent:O,masterVolume:B,listenerZ:this.eh,listenerUid:this.tb.Gi()?this.tb.G.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,h,e,g;c=0;for(d=G.length;c<d;c++)f=G[c],!f.Gf()||3===this.Vd||f.Pc&&1===this.Vd||!f.Pc&&2===this.Vd||(h=f.Xk(),f.cd&&(h%=f.Se()),h={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Pc,playbackTime:h,volume:f.volume,looping:f.cd,
muted:f.Jf,playbackRate:f.playbackRate,paused:f.zc,resume_position:f.Hb},f.fd&&(h.pan={},g=h.pan,f.Ja&&f.Ja.Gi()?g.objUid=f.Ja.G.uid:(g.x=f.ip,g.y=f.jp,g.a=f.ep),g.ia=f.fp,g.oa=f.gp,g.og=f.hp),b.push(h));b=a.effects;for(e in S)if(S.hasOwnProperty(e)){f=[];c=0;for(d=S[e].length;c<d;c++)f.push({type:S[e][c].type,params:S[e][c].Qc});b[e]=f}return a};var Oa=[];la.ub=function(b){var d=b.silent;B=b.masterVolume;this.eh=b.listenerZ;this.tb.Hh(null);var e=b.listenerUid;-1!==e&&(this.tb.$i=e,Oa.push(this.tb));
var e=b.playing,g,r,p,m,u,L,z,ja,A,v,y;if(3!==this.Vd)for(g=0,r=G.length;g<r;g++)A=G[g],A.Pc&&1===this.Vd||(A.Pc||2!==this.Vd)&&A.stop();for(u in S)if(S.hasOwnProperty(u))for(g=0,r=S[u].length;g<r;g++)S[u][g].remove();Ta(S);for(u in b.effects)if(b.effects.hasOwnProperty(u))for(L=b.effects[u],g=0,r=L.length;g<r;g++)switch(p=L[g].type,v=L[g].params,p){case "filter":D(u,new c(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":D(u,new f(v[0],v[1],v[2]));break;case "convolve":p=v[2];A=this.wi(p,!1);A.ea?
p=new h(A.ea,v[0],v[1],p):(p=new h(null,v[0],v[1],p),A.Xo=v[0],A.bi=p);D(u,p);break;case "flanger":D(u,new a(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":D(u,new l(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":D(u,new t(v[0]));break;case "tremolo":D(u,new k(v[0],v[1]));break;case "ringmod":D(u,new w(v[0],v[1]));break;case "distortion":D(u,new s(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":D(u,new q(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":D(u,new n(v[0],v[1]))}g=0;for(r=e.length;g<
r;g++)3===this.Vd||(b=e[g],p=b.buffersrc,m=b.is_music,u=b.tag,L=b.playbackTime,z=b.looping,ja=b.volume,y=(v=b.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,m&&1===this.Vd)||!m&&2===this.Vd||((A=this.Mn(p,u,m,z,ja))?(A.Hb=b.resume_position,A.nm(!!v),A.play(z,ja,L),A.dq(),A.av(),A.ki(A.Jf||A.Vg),b.paused&&A.pause(),b.muted&&A.Pu(),A.ki(A.Jf||A.Vg),v&&(-1!==y?(A.Ja=A.Ja||new x,A.Ja.$i=y,Oa.push(A.Ja)):A.mm(v.x,v.y,v.a,v.ia,v.oa,v.og))):(A=this.wi(p,m),A.Aj=L,A.pj=b.paused,v&&(-1!==y?A.Xf.push({Zo:y,fl:v.ia,
Kl:v.oa,Nl:v.og,Rp:u}):A.Xf.push({x:v.x,y:v.y,ur:v.a,fl:v.ia,Kl:v.oa,Nl:v.og,Rp:u}))));if(d&&!O){g=0;for(r=G.length;g<r;g++)G[g].Dp(!0);O=!0}else if(!d&&O){g=0;for(r=G.length;g<r;g++)G[g].Dp(!1);O=!1}};la.ud=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],d=this.b.Ai(c.$i),c.Hh(d),c.$i=-1,d&&(K=d.x,H=d.y);Oa.length=0};la.nu=function(a){if(!this.su){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=G.length;b<c;b++)G[b].Ru(a);a&&y&&y.suspend&&y.suspend()}};la.Ga=function(){var a=this.b.Ne,b,
c,d;b=0;for(c=G.length;b<c;b++)d=G[b],d.Ga(a),0===d.M||3===d.M||d.bd||d.ac||!d.Ue()||(d.ac=!0,ja=d.tag,z.trigger(hc.prototype.i.$j,I)),0!==E&&d.dq();var f,h;for(f in S)if(S.hasOwnProperty(f))for(d=S[f],b=0,c=d.length;b<c;b++)h=d[b],h.Ga&&h.Ga();1===F&&this.tb.Gi()&&(this.tb.Ga(a),K=this.tb.G.x,H=this.tb.G.y,y.listener.setPosition(this.tb.G.x,this.tb.G.y,this.eh),y.listener.setVelocity(this.tb.Zk(),this.tb.$k(),0))};var Pa=[];la.Qu=function(a){var b,c,d,f,h,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],
f=d[0],d=2*d[1],(h=4<f.length&&".ogg"===f.substr(f.length-4))&&C||!h&&!C)Pa.push({filename:f,size:d,G:null}),e+=d;return e};la.Uu=function(){var a,b,c,d;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],d=this.b.Lk+c.filename,c.G=this.wi(d,!1)};la.kt=function(){var a=0,b,c,d;b=0;for(c=Pa.length;b<c;++b)d=Pa[b],d.G.Pt()||d.G.It()||this.b.P||this.b.Ki?a+=d.size:d.G.bo()&&(a+=Math.floor(d.size/2));return a};la.wi=function(a,b){var c,d,f,h=null;c=0;for(d=T.length;c<d;c++)if(f=T[c],f.src===a){h=f;break}h||(h=new M(a,
b),T.push(h));return h};la.Mn=function(a,b,c,d,f){var h,e,g;h=0;for(e=G.length;h<e;h++)if(g=G[h],g.src===a&&(g.Pr()||c))return g.tag=b,g;a=this.wi(a,c);if(!a.ea)return"<preload>"!==b&&(a.qj=b,a.El=d,a.Hm=f),null;g=new u(a,b);G.push(g);return g};var Ha=[];L.prototype.$j=function(a){return fb(ja,a)};v.i=new L;A.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.Mn(this.b.Lk+a[0]+(C?".ogg":".m4a"),d,a[1],0!==b,c))&&(Q.nm(!1),Q.play(0!==b,c))};v.da=new A;v.Qa=new function(){}})();
function ic(g){this.b=g}
(function(){function g(){}var m=ic.prototype;m.ra=function(e){this.ta=e;this.b=e.b};m.ra.prototype.V=function(){};m.la=function(e){this.type=e;this.b=e.b;this.tl=Array(256);this.Uj=Array(256);this.De=0};var e=m.la.prototype;e.V=function(){var e=this;this.b.P||(jQuery(document).keydown(function(d){e.ju(d)}),jQuery(document).keyup(function(d){e.ku(d)}))};var p=[32,33,34,35,36,37,38,39,40,44];e.ju=function(e){var d=!1;window!=window.top&&-1<p.indexOf(e.which)&&(e.preventDefault(),d=!0,e.stopPropagation());
if(this.tl[e.which])this.Uj[e.which]&&!d&&e.preventDefault();else{this.tl[e.which]=!0;this.De=e.which;this.b.fa=!0;this.b.trigger(ic.prototype.i.Fq,this);var b=this.b.trigger(ic.prototype.i.Vq,this),c=this.b.trigger(ic.prototype.i.Wq,this);this.b.fa=!1;if(b||c)this.Uj[e.which]=!0,d||e.preventDefault()}};e.ku=function(e){this.tl[e.which]=!1;this.De=e.which;this.b.fa=!0;this.b.trigger(ic.prototype.i.Gq,this);var d=this.b.trigger(ic.prototype.i.Yq,this),b=this.b.trigger(ic.prototype.i.Xq,this);this.b.fa=
!1;if(d||b||this.Uj[e.which])this.Uj[e.which]=!0,e.preventDefault()};e.ib=function(){return{triggerKey:this.De}};e.ub=function(e){this.De=e.triggerKey};g.prototype.Vq=function(e){return e===this.De};g.prototype.Fq=function(){return!0};g.prototype.Gq=function(){return!0};g.prototype.Yq=function(e){return e===this.De};g.prototype.Wq=function(e){return e===this.De};g.prototype.Xq=function(e){return e===this.De};m.i=new g;m.da=new function(){};m.Qa=new function(){}})();function jc(g){this.b=g}
(function(){function g(){}function m(){}var e=jc.prototype;e.ra=function(d){this.ta=d;this.b=d.b};e.ra.prototype.V=function(){};e.la=function(d){this.type=d;this.b=d.b;this.Yh=Array(4);this.Up=this.Pj=this.kg=this.Pd=this.Od=0;this.cl=!1};var p=e.la.prototype;p.V=function(){var d=this;if(!this.b.P){jQuery(document).mousemove(function(b){d.sh(b)});jQuery(document).mousedown(function(b){d.rh(b)});jQuery(document).mouseup(function(b){d.uh(b)});jQuery(document).dblclick(function(b){d.gu(b)});var b=function(b){d.pu(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var r={left:0,top:0};p.sh=function(d){var b=this.b.P?r:jQuery(this.b.canvas).offset();this.Od=d.pageX-b.left;this.Pd=d.pageY-b.top};p.So=function(){return 0<this.b.sb?!0:0<=this.Od&&0<=this.Pd&&this.Od<this.b.width&&this.Pd<this.b.height};p.rh=function(d){this.So()&&(this.b.Ef&&!this.b.Nc&&d.preventDefault(),this.Yh[d.which]=!0,this.b.fa=!0,this.b.trigger(jc.prototype.i.Eq,this),this.kg=d.which-1,this.Pj=
0,this.b.trigger(jc.prototype.i.Om,this),this.b.trigger(jc.prototype.i.bk,this),this.b.fa=!1)};p.uh=function(d){this.Yh[d.which]&&(this.b.Ef&&!this.b.Nc&&d.preventDefault(),this.b.Ef=!0,this.Yh[d.which]=!1,this.b.fa=!0,this.kg=d.which-1,this.b.trigger(jc.prototype.i.br,this),this.b.fa=!1)};p.gu=function(d){this.So()&&(d.preventDefault(),this.b.fa=!0,this.kg=d.which-1,this.Pj=1,this.b.trigger(jc.prototype.i.Om,this),this.b.trigger(jc.prototype.i.bk,this),this.b.fa=!1)};p.pu=function(d){this.Up=0>(d.wheelDelta?
d.wheelDelta:d.detail?-d.detail:0)?0:1;this.cl=!1;this.b.fa=!0;this.b.trigger(jc.prototype.i.fr,this);this.b.fa=!1;this.cl&&gb(d)&&d.preventDefault()};g.prototype.Om=function(d,b){return d===this.kg&&b===this.Pj};g.prototype.Eq=function(){return!0};g.prototype.uq=function(d){return this.Yh[d+1]};g.prototype.br=function(d){return d===this.kg};g.prototype.wq=function(d){var b=this.b.Tk();return Ra(this.b.ig(d,this.Od,this.Pd,b.Qg),b.Qg)};g.prototype.bk=function(d,b,c){return d!==this.kg||b!==this.Pj?
!1:this.b.ig(c,this.Od,this.Pd,!1)};g.prototype.fr=function(d){this.cl=!0;return d===this.Up};e.i=new g;e.da=new function(){};m.prototype.Ym=function(d,b){var c,f,h,a,e;ga(b)?(c=this.b.Jd(0),f=c.scale,h=c.Kb,a=c.Cc,e=c.k,c.scale=1,c.Kb=1,c.Cc=1,c.k=0,d.A(c.ya(this.Od,this.Pd,!0)),c.scale=f,c.Kb=h,c.Cc=a,c.k=e):(c=ha(b)?this.b.Jd(b):this.b.Hg(b))?d.A(c.ya(this.Od,this.Pd,!0)):d.A(0)};m.prototype.Zm=function(d,b){var c,f,h,a,e;ga(b)?(c=this.b.Jd(0),f=c.scale,h=c.Kb,a=c.Dc,e=c.k,c.scale=1,c.Kb=1,c.Dc=
1,c.k=0,d.A(c.ya(this.Od,this.Pd,!1)),c.scale=f,c.Kb=h,c.Dc=a,c.k=e):(c=ha(b)?this.b.Jd(b):this.b.Hg(b))?d.A(c.ya(this.Od,this.Pd,!1)):d.A(0)};e.Qa=new m})();function kc(g){this.b=g}
(function(){function g(e){this.pa=e;this.Za=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.de=this.Df=this.size=this.Di=0}var m=kc.prototype;m.ra=function(e){this.ta=e;this.b=e.b};var e=m.ra.prototype;e.V=function(){this.D||(this.K=new Image,this.K.xk=this.Mj,this.U=null,this.b.Im(this.K,this.Lj))};e.qh=function(){this.D||(this.U=null)};e.hj=function(){this.D||!this.d.length||this.U||(this.U=this.b.q.Of(this.K,!0,this.b.Z,this.Qh))};e.fh=function(){this.D||this.U||!this.b.q||(this.U=this.b.q.Of(this.K,
!0,this.b.Z,this.Qh))};e.Sj=function(){this.D||this.d.length||!this.U||(this.b.q.deleteTexture(this.U),this.U=null)};e.uj=function(e){e.drawImage(this.K,0,0)};g.prototype.init=function(){var e=this.pa;this.x=e.x-e.Yj/2+Math.random()*e.Yj;this.y=e.y-e.Zj/2+Math.random()*e.Zj;this.speed=e.jl-e.Fj/2+Math.random()*e.Fj;this.k=e.k-e.Gj/2+Math.random()*e.Gj;this.opacity=e.hl;this.size=e.il-e.Dj/2+Math.random()*e.Dj;this.Di=e.bl-e.Ei/2+Math.random()*e.Ei;this.de=this.Df=0};g.prototype.Ga=function(e){var d=
this.pa;this.x+=Math.cos(this.k)*this.speed*e;this.y+=Math.sin(this.k)*this.speed*e;this.y+=this.Df*e;this.speed+=d.ek*e;this.size+=this.Di*e;this.Df+=d.Rk*e;this.de+=e;1>this.size?this.Za=!1:(0!==d.ah&&(this.k+=Math.random()*d.ah*e-d.ah*e/2),0!==d.dh&&(this.speed+=Math.random()*d.dh*e-d.dh*e/2),0!==d.bh&&(this.opacity+=Math.random()*d.bh*e-d.bh*e/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=d.xf&&this.de>=d.timeout&&(this.Za=!1),2===d.xf&&0>=this.speed&&(this.Za=!1))};g.prototype.Tb=
function(e){var d=this.pa.opacity*this.opacity;if(0!==d){0===this.pa.xf&&(d*=1-this.de/this.pa.timeout);e.globalAlpha=d;var d=this.x-this.size/2,b=this.y-this.size/2;this.pa.b.Ec&&(d=d+.5|0,b=b+.5|0);e.drawImage(this.pa.type.K,d,b,this.size,this.size)}};g.prototype.rb=function(e){var d=this.pa.opacity*this.opacity;0===this.pa.xf&&(d*=1-this.de/this.pa.timeout);var b=this.size,c=b*this.pa.mp,f=this.x-b/2,h=this.y-b/2;this.pa.b.Ec&&(f=f+.5|0,h=h+.5|0);1>c||0===d||(c<e.bu||c>e.Gl?(e.xe(d),e.Fh(f,h,f+
b,h,f+b,h+b,f,h+b)):e.tu(this.x,this.y,c,d))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};m.la=function(e){this.type=e;this.b=e.b};var e=m.la.prototype,p=[];e.V=function(){var e=this.C;this.xj=e[0];this.Gj=V(e[1]);this.fg=e[2];this.qm=!0;this.jl=e[3];this.il=e[4];this.hl=e[5]/100;this.bl=e[6];this.Yj=e[7];this.Zj=e[8];this.Fj=
e[9];this.Dj=e[10];this.Ei=e[11];this.ek=e[12];this.Rk=e[13];this.ah=e[14];this.dh=e[15];this.bh=e[16];this.xf=e[17];this.timeout=e[18];this.lf=0;this.mp=1;this.mj=this.x;this.oj=this.y;this.nj=this.x;this.lj=this.y;this.Gr(function(d){d.$a.set(d.mj,d.oj,d.nj,d.lj);d.yd.Jh(d.$a);d.Xh=!1;d.cv()});this.Zb||(this.xb=[]);this.b.Rh(this);this.type.fh();if(1===this.fg)for(e=0;e<this.xj;e++)this.gk().opacity=0;this.si=!0};e.ib=function(){var e={r:this.xj,sc:this.Gj,st:this.fg,s:this.qm,isp:this.jl,isz:this.il,
io:this.hl,gr:this.bl,xr:this.Yj,yr:this.Zj,spr:this.Fj,szr:this.Dj,grnd:this.Ei,acc:this.ek,g:this.Rk,lar:this.ah,lsr:this.dh,lor:this.bh,dm:this.xf,to:this.timeout,pcc:this.lf,ft:this.si,p:[]},d,b,c,f=e.p;d=0;for(b=this.xb.length;d<b;d++)c=this.xb[d],f.push([c.x,c.y,c.speed,c.k,c.opacity,c.Di,c.size,c.Df,c.de]);return e};e.ub=function(e){this.xj=e.r;this.Gj=e.sc;this.fg=e.st;this.qm=e.s;this.jl=e.isp;this.il=e.isz;this.hl=e.io;this.bl=e.gr;this.Yj=e.xr;this.Zj=e.yr;this.Fj=e.spr;this.Dj=e.szr;this.Ei=
e.grnd;this.ek=e.acc;this.Rk=e.g;this.ah=e.lar;this.dh=e.lsr;this.bh=e.lor;this.xf=e.dm;this.timeout=e.to;this.lf=e.pcc;this.si=e.ft;p.push.apply(p,this.xb);this.xb.length=0;var d,b,c,f=e.p;e=0;for(d=f.length;e<d;e++)b=this.gk(),c=f[e],b.x=c[0],b.y=c[1],b.speed=c[2],b.k=c[3],b.opacity=c[4],b.Di=c[5],b.size=c[6],b.Df=c[7],b.de=c[8]};e.kf=function(){p.push.apply(p,this.xb);this.xb.length=0};e.gk=function(){var e;p.length?(e=p.pop(),e.pa=this):e=new g(this);this.xb.push(e);e.Za=!0;return e};e.Ga=function(){var e=
this.b.Gg(this),d,b,c,f;if(0===this.fg&&this.qm)for(this.lf+=e*this.xj,b=R(this.lf),this.lf-=b,d=0;d<b;d++)c=this.gk(),c.init();this.mj=this.x;this.oj=this.y;this.nj=this.x;this.lj=this.y;f=d=0;for(b=this.xb.length;d<b;d++)c=this.xb[d],this.xb[f]=c,this.b.T=!0,1===this.fg&&this.si&&c.init(),c.Ga(e),c.Za?(c.left()<this.mj&&(this.mj=c.left()),c.right()>this.nj&&(this.nj=c.right()),c.top()<this.oj&&(this.oj=c.top()),c.bottom()>this.lj&&(this.lj=c.bottom()),f++):p.push(c);this.xb.length=f;this.Ba();this.si=
!1;1===this.fg&&0===this.xb.length&&this.b.td(this)};e.Tb=function(e){var d,b,c,f=this.e;d=0;for(b=this.xb.length;d<b;d++)c=this.xb[d],c.right()>=f.wa&&c.bottom()>=f.xa&&c.left()<=f.Ia&&c.top()<=f.Ha&&c.Tb(e)};e.rb=function(e){this.mp=this.e.Cb();e.Ib(this.type.U);var d,b,c,f=this.e;d=0;for(b=this.xb.length;d<b;d++)c=this.xb[d],c.right()>=f.wa&&c.bottom()>=f.xa&&c.left()<=f.Ia&&c.top()<=f.Ha&&c.rb(e)};m.i=new function(){};m.da=new function(){};m.Qa=new function(){}})();function gc(g){this.b=g}
(function(){function g(){if(0===this.Ak.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var c=b.getContext("2d");this.gg?c.drawImage(this.K,this.Uf,this.Vf,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.K,0,0,this.width,this.height);this.Ak=b.toDataURL("image/png")}return this.Ak}function m(){}var e=gc.prototype;e.ra=function(b){this.ta=b;this.b=b.b};var p=e.ra.prototype;p.V=function(){if(!this.D){var b,c,a,d,e,k,p,m,q;this.Kc=[];this.Ng=
!1;b=0;for(c=this.Mb.length;b<c;b++){e=this.Mb[b];p={};p.name=e[0];p.speed=e[1];p.loop=e[2];p.em=e[3];p.yj=e[4];p.np=e[5];p.W=e[6];p.frames=[];a=0;for(d=e[7].length;a<d;a++)k=e[7][a],m={},m.Lj=k[0],m.Mj=k[1],m.Uf=k[2],m.Vf=k[3],m.width=k[4],m.height=k[5],m.duration=k[6],m.Eb=k[7],m.Fb=k[8],m.gl=k[9],m.rj=k[10],m.op=k[11],m.gg=0!==m.width,m.Ak="",m.sw=g,q={left:0,top:0,right:1,bottom:1},m.om=q,m.U=null,(q=this.b.Ws(k[0]))?m.K=q:(m.K=new Image,m.K.Tr=k[0],m.K.xk=k[1],m.K.Nr=null,this.b.Im(m.K,k[0])),
p.frames.push(m),this.Kc.push(m);this.Mb[b]=p}}};p.cq=function(){var b,c,a;b=0;for(c=this.d.length;b<c;b++)a=this.d[b],a.fi=a.qc.U};p.qh=function(){if(!this.D){var b,c,a;b=0;for(c=this.Kc.length;b<c;++b)a=this.Kc[b],a.K.Nr=null,a.U=null;this.Ng=!1;this.cq()}};p.hj=function(){if(!this.D&&this.d.length){var b,c,a;b=0;for(c=this.Kc.length;b<c;++b)a=this.Kc[b],a.U=this.b.q.Of(a.K,!1,this.b.Z,a.op);this.cq()}};p.fh=function(){if(!this.D&&!this.Ng&&this.b.q){var b,c,a;b=0;for(c=this.Kc.length;b<c;++b)a=
this.Kc[b],a.U=this.b.q.Of(a.K,!1,this.b.Z,a.op);this.Ng=!0}};p.Sj=function(){if(!this.D&&!this.d.length&&this.Ng){var b,c,a;b=0;for(c=this.Kc.length;b<c;++b)a=this.Kc[b],this.b.q.deleteTexture(a.U),a.U=null;this.Ng=!1}};var r=[];p.uj=function(b){var c,a,d;c=r.length=0;for(a=this.Kc.length;c<a;++c)d=this.Kc[c].K,-1===r.indexOf(d)&&(b.drawImage(d,0,0),r.push(d))};e.la=function(b){this.type=b;this.b=b.b;b=this.type.Mb[0].frames[0].rj;this.Zb?this.Yc.Kh(b):this.Yc=new $a(b)};var d=e.la.prototype;d.V=
function(){this.visible=0===this.C[0];this.xg=0!==this.C[3];1===this.type.Mb.length&&1===this.type.Mb[0].frames.length||0===this.type.Mb[0].speed||this.b.Rh(this);this.Ca=this.Ln(this.C[1])||this.type.Mb[0];this.B=this.C[2];0>this.B&&(this.B=0);this.B>=this.Ca.frames.length&&(this.B=this.Ca.frames.length-1);var b=this.Ca.frames[this.B];this.Yc.Kh(b.rj);this.Eb=b.Eb;this.Fb=b.Fb;this.Ag=this.Ca.speed;this.Zb?this.Wc.reset():this.Wc=new Ya;this.Id=this.Wc.X;this.Fe=!0;this.vd=0;this.Ee=!0;this.tk=this.gn=
"";this.Qr=0;this.sk=-1;this.type.fh();var c,a,d,e,g,m,p,b=0;for(c=this.type.Mb.length;b<c;b++)for(e=this.type.Mb[b],a=0,d=e.frames.length;a<d;a++)g=e.frames[a],0===g.width&&(g.width=g.K.width,g.height=g.K.height),g.gg&&(p=g.K,m=g.om,m.left=g.Uf/p.width,m.top=g.Vf/p.height,m.right=(g.Uf+g.width)/p.width,m.bottom=(g.Vf+g.height)/p.height,0===g.Uf&&0===g.Vf&&g.width===p.width&&g.height===p.height&&(g.gg=!1));this.qc=this.Ca.frames[this.B];this.fi=this.qc.U};d.ib=function(){var b={a:this.Ca.W,f:this.B,
cas:this.Ag,fs:this.Id,ar:this.vd,at:this.Wc.X};this.Fe||(b.ap=this.Fe);this.Ee||(b.af=this.Ee);return b};d.ub=function(b){var c=this.bt(b.a);c&&(this.Ca=c);this.B=b.f;0>this.B&&(this.B=0);this.B>=this.Ca.frames.length&&(this.B=this.Ca.frames.length-1);this.Ag=b.cas;this.Id=b.fs;this.vd=b.ar;this.Wc.reset();this.Wc.X=b.at;this.Fe=b.hasOwnProperty("ap")?b.ap:!0;this.Ee=b.hasOwnProperty("af")?b.af:!0;this.qc=this.Ca.frames[this.B];this.fi=this.qc.U;this.Yc.Kh(this.qc.rj);this.Eb=this.qc.Eb;this.Fb=
this.qc.Fb};d.jk=function(b){this.B=b?0:this.Ca.frames.length-1;this.Fe=!1;this.gn=this.Ca.name;this.b.trigger(gc.prototype.i.Dq,this);this.b.trigger(gc.prototype.i.Cq,this);this.vd=0};d.vw=function(){return this.Wc.X};d.Ga=function(){this.Wc.add(this.b.Gg(this));this.tk.length&&this.Zr();0<=this.sk&&this.$r();var b=this.Wc.X,c=this.Ca,a=c.frames[this.B],d=a.duration/this.Ag;this.Fe&&b>=this.Id+d&&(this.Ee?this.B++:this.B--,this.Id+=d,this.B>=c.frames.length&&(c.np?(this.Ee=!1,this.B=c.frames.length-
2):c.loop?this.B=c.yj:(this.vd++,this.vd>=c.em?this.jk(!1):this.B=c.yj)),0>this.B&&(c.np?(this.B=1,this.Ee=!0,c.loop||(this.vd++,this.vd>=c.em&&this.jk(!0))):c.loop?this.B=c.yj:(this.vd++,this.vd>=c.em?this.jk(!0):this.B=c.yj)),0>this.B?this.B=0:this.B>=c.frames.length&&(this.B=c.frames.length-1),b>this.Id+c.frames[this.B].duration/this.Ag&&(this.Id=b),b=c.frames[this.B],this.tf(a,b),this.b.T=!0)};d.Ln=function(b){var c,a,d;c=0;for(a=this.type.Mb.length;c<a;c++)if(d=this.type.Mb[c],fb(d.name,b))return d;
return null};d.bt=function(b){var c,a,d;c=0;for(a=this.type.Mb.length;c<a;c++)if(d=this.type.Mb[c],d.W===b)return d;return null};d.Zr=function(){var b=this.Ca.frames[this.B],c=this.Ln(this.tk);this.tk="";!c||fb(c.name,this.Ca.name)&&this.Fe||(this.Ca=c,this.Ag=c.speed,0>this.B&&(this.B=0),this.B>=this.Ca.frames.length&&(this.B=this.Ca.frames.length-1),1===this.Qr&&(this.B=0),this.Fe=!0,this.Id=this.Wc.X,this.Ee=!0,this.tf(b,this.Ca.frames[this.B]),this.b.T=!0)};d.$r=function(){var b=this.Ca.frames[this.B],
c=this.B;this.B=R(this.sk);0>this.B&&(this.B=0);this.B>=this.Ca.frames.length&&(this.B=this.Ca.frames.length-1);c!==this.B&&(this.tf(b,this.Ca.frames[this.B]),this.Id=this.Wc.X,this.b.T=!0);this.sk=-1};d.tf=function(b,c){var a=b.width,d=b.height,e=c.width,g=c.height;a!=e&&(this.width*=e/a);d!=g&&(this.height*=g/d);this.Eb=c.Eb;this.Fb=c.Fb;this.Yc.Kh(c.rj);this.Ba();this.qc=c;this.fi=c.U;a=0;for(d=this.I.length;a<d;a++)e=this.I[a],e.mu&&e.mu(b,c);this.b.trigger(gc.prototype.i.tf,this)};d.Tb=function(b){b.globalAlpha=
this.opacity;var c=this.qc,a=c.gg,d=c.K,e=this.x,g=this.y,p=this.width,m=this.height;if(0===this.k&&0<=p&&0<=m)e-=this.Eb*p,g-=this.Fb*m,this.b.Ec&&(e=Math.round(e),g=Math.round(g)),a?b.drawImage(d,c.Uf,c.Vf,c.width,c.height,e,g,p,m):b.drawImage(d,e,g,p,m);else{this.b.Ec&&(e=Math.round(e),g=Math.round(g));b.save();var q=0<p?1:-1,n=0<m?1:-1;b.translate(e,g);1===q&&1===n||b.scale(q,n);b.rotate(this.k*q*n);e=0-this.Eb*na(p);g=0-this.Fb*na(m);a?b.drawImage(d,c.Uf,c.Vf,c.width,c.height,e,g,na(p),na(m)):
b.drawImage(d,e,g,na(p),na(m));b.restore()}};d.rb=function(b){b.Ib(this.fi);b.xe(this.opacity);var c=this.qc,a=this.yd;if(this.b.Ec){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;c.gg?b.hd(a.kb+d,a.lb+e,a.cc+d,a.ec+e,a.Pb+d,a.Qb+e,a.Nb+d,a.Ob+e,c.om):b.Fh(a.kb+d,a.lb+e,a.cc+d,a.ec+e,a.Pb+d,a.Qb+e,a.Nb+d,a.Ob+e)}else c.gg?b.hd(a.kb,a.lb,a.cc,a.ec,a.Pb,a.Qb,a.Nb,a.Ob,c.om):b.Fh(a.kb,a.lb,a.cc,a.ec,a.Pb,a.Qb,a.Nb,a.Ob)};d.gt=function(b){var c=this.qc,a,d;a=0;for(d=c.gl.length;a<d;a++)if(fb(b,
c.gl[a][0]))return a;return-1};d.Wk=function(b,c){var a=this.qc,d=a.gl,e;e=P(b)?this.gt(b):b-1;e=R(e);if(0>e||e>=d.length)return c?this.x:this.y;var g=(d[e][1]-a.Eb)*this.width,d=d[e][2],d=(d-a.Fb)*this.height,a=Math.cos(this.k);e=Math.sin(this.k);var p=g*a-d*e,d=d*a+g*e,g=p+this.x,d=d+this.y;return c?g:d};var b=new ba,c=!1;new U(0,0,0,0);p.finish=function(d){if(c){if(d){var e=this.b.Bb().ic.ed;d=null.na();var a=b.Uc(),g,p;if(d.qa){d.qa=!1;d.d.length=a.length;g=0;for(p=a.length;g<p;g++)d.d[g]=a[g];
if(e)for(g=d.aa.length=0,p=null.d.length;g<p;g++)a=null.d[g],b.contains(a)||d.aa.push(a)}else if(e)for(e=d.d.length,d.d.length=e+a.length,g=0,p=a.length;g<p;g++)d.d[e+g]=a[g],Aa(d.aa,a[g]);else xa(d.d,a);null.wd()}b.clear();c=!1}};m.prototype.Cq=function(b){return fb(this.gn,b)};m.prototype.Dq=function(){return!0};m.prototype.tf=function(){return!0};e.i=new m;e.da=new function(){};e.Qa=new function(){}})();function lc(g){this.b=g}
(function(){function g(){return f.length?f.pop():{}}function m(b){var a,c;a=0;for(c=b.length;a<c;a++)f.push(b[a]);b.length=0}function e(){}function p(){}function r(){}var d=lc.prototype;d.V=function(){d.da.or=function(b){this.width!==b&&(this.width=b,this.pf=!0,this.Ba())}};d.ra=function(b){this.ta=b;this.b=b.b};var b=d.ra.prototype;b.V=function(){};b.qh=function(){if(!this.D){var b,a,c;b=0;for(a=this.d.length;b<a;b++)c=this.d[b],c.dd=null,c.hf=null,c.Xb=null}};d.la=function(b){this.type=b;this.b=
b.b;this.Zb?this.re.length=0:this.re=[];this.pf=!0};b=d.la.prototype;b.V=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.Fi=this.C[4];this.Vj=this.C[5];this.Lm=0===this.C[7];this.xl=this.Ui=this.width;this.Ti=this.height;this.zl=this.C[8];this.ti=this.zf="";this.Pp=this.Qp=this.Dh=0;this.qu();this.Xb=this.hf=this.dd=null;this.Vo=!1;this.$g=this.b.od;this.Zb?this.ue.set(0,0,1,1):this.ue=new U(0,0,1,1);this.b.q&&this.b.Rh(this)};b.qu=function(){var b=
this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.Dh=parseInt(b[a].substr(0,b[a].length-2));this.Zl=Math.ceil(this.Dh/72*96)+4;0<a&&(this.ti=b[a-1]);this.zf=b[a+1];for(a+=2;a<b.length;a++)this.zf+=" "+b[a];break}};b.ib=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Fi,va:this.Vj,wr:this.Lm,lho:this.zl,fn:this.zf,fs:this.ti,ps:this.Dh,pxh:this.Zl,tw:this.Qp,th:this.Pp,lrt:this.$g}};b.ub=function(b){this.text=b.t;this.font=b.f;this.color=b.c;
this.Fi=b.ha;this.Vj=b.va;this.Lm=b.wr;this.zl=b.lho;this.zf=b.fn;this.ti=b.fs;this.Dh=b.ps;this.Zl=b.pxh;this.Qp=b.tw;this.Pp=b.th;this.$g=b.lrt;this.pf=!0;this.xl=this.Ui=this.width;this.Ti=this.height};b.Ga=function(){if(this.b.q&&this.Xb&&300<=this.b.od-this.$g){var b=this.e;this.Pa();var a=this.$a;if(a.right<b.wa||a.bottom<b.xa||a.left>b.Ia||a.top>b.Ha)this.b.q.deleteTexture(this.Xb),this.dd=this.hf=this.Xb=null}};b.kf=function(){this.dd=this.hf=null;this.b.q&&this.Xb&&this.b.q.deleteTexture(this.Xb);
this.Xb=null};b.Dw=function(){this.font=this.ti+" "+this.Dh.toString()+"pt "+this.zf;this.pf=!0;this.b.T=!0};b.Tb=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var c=1;a&&(c=this.e.Cb(),b.save(),b.scale(c,c));if(this.pf||this.width!==this.xl)this.type.ta.sr(this.text,this.re,b,this.width,this.Lm),this.pf=!1,this.xl=this.width;this.Pa();var c=a?0:this.yd.kb,d=a?0:this.yd.lb;this.b.Ec&&(c=c+.5|0,d=d+.5|0);0===this.k||a||(b.save(),b.translate(c,
d),b.rotate(this.k),d=c=0);var e=d+this.height,f=this.Zl,f=f+this.zl,g,p;1===this.Vj?d+=Math.max(this.height/2-this.re.length*f/2,0):2===this.Vj&&(d+=Math.max(this.height-this.re.length*f-2,0));for(p=0;p<this.re.length&&!(g=c,1===this.Fi?g=c+(this.width-this.re[p].width)/2:2===this.Fi&&(g=c+(this.width-this.re[p].width)),b.fillText(this.re[p].text,g,d),d+=f,d>=e-f);p++);(0!==this.k||a)&&b.restore();this.$g=this.b.od};b.rb=function(b){if(!(1>this.width||1>this.height)){var a=this.pf||this.Vo;this.Vo=
!1;var c=this.e.Cb(),d=this.e.Oa(),e=this.ue,f=c*this.width,g=c*this.height,p=Math.ceil(f),n=Math.ceil(g),m=this.b.O/2,r=this.b.N/2;this.hf||(this.dd=document.createElement("canvas"),this.dd.width=p,this.dd.height=n,this.Ui=p,this.Ti=n,a=!0,this.hf=this.dd.getContext("2d"));if(p!==this.Ui||n!==this.Ti)this.dd.width=p,this.dd.height=n,this.Xb&&(b.deleteTexture(this.Xb),this.Xb=null),a=!0;a&&(this.hf.clearRect(0,0,p,n),this.Tb(this.hf,!0),this.Xb||(this.Xb=b.Ad(p,n,this.b.Z,this.b.Nc)),b.jv(this.dd,
this.Xb,this.b.Nc));this.Ui=p;this.Ti=n;b.Ib(this.Xb);b.xe(this.opacity);b.jd();b.translate(-m,-r);b.qd();var u=this.yd,a=this.e.Aa(u.kb,u.lb,!0,!0),m=this.e.Aa(u.kb,u.lb,!1,!0),r=this.e.Aa(u.cc,u.ec,!0,!0),D=this.e.Aa(u.cc,u.ec,!1,!0),L=this.e.Aa(u.Pb,u.Qb,!0,!0),A=this.e.Aa(u.Pb,u.Qb,!1,!0),v=this.e.Aa(u.Nb,u.Ob,!0,!0),u=this.e.Aa(u.Nb,u.Ob,!1,!0);if(this.b.Ec||0===this.k&&0===d)var z=(a+.5|0)-a,I=(m+.5|0)-m,a=a+z,m=m+I,r=r+z,D=D+I,L=L+z,A=A+I,v=v+z,u=u+I;0===this.k&&0===d?(r=a+p,D=m,L=r,A=m+n,
v=a,u=A,e.right=1,e.bottom=1):(e.right=f/p,e.bottom=g/n);b.hd(a,m,r,D,L,A,v,u,e);b.jd();b.scale(c,c);b.gm(-this.e.Oa());b.translate((this.e.wa+this.e.Ia)/-2,(this.e.xa+this.e.Ha)/-2);b.qd();this.$g=this.b.od}};var c=[];d.pr=function(b){c.length=0;for(var a="",d,e=0;e<b.length;)if(d=b.charAt(e),"\n"===d)a.length&&(c.push(a),a=""),c.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do a+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||"\t"===b.charAt(e)));c.push(a);a=""}else e<b.length&&(a+=
d,e++);a.length&&c.push(a)};var f=[];d.sr=function(b,a,c,d,e){if(b&&b.length)if(2>=d)m(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var f=c.measureText(b).width;if(f<=d){m(a);a.push(g());a[0].text=b;a[0].width=f;return}}this.tr(b,a,c,d,e)}else m(a)};d.tr=function(b,a,d,e,k){k&&(this.pr(b),b=c);var p="",m,q,n,r=0;for(n=0;n<b.length;n++)"\n"===b[n]?(r>=a.length&&a.push(g()),q=a[r],q.text=p,q.width=d.measureText(p).width,r++,p=""):(m=p,p+=b[n],q=d.measureText(p).width,q>=e&&(r>=a.length&&a.push(g()),
q=a[r],q.text=m,q.width=d.measureText(m).width,r++,p=b[n],k||" "!==p||(p="")));p.length&&(r>=a.length&&a.push(g()),q=a[r],q.text=p,q.width=d.measureText(p).width,r++);for(n=r;n<a.length;n++)f.push(a[n]);a.length=r};e.prototype.Mm=function(b,a){return a?this.text==b:fb(this.text,b)};d.i=new e;p.prototype.Wm=function(b){ha(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.pf=!0,this.b.T=!0)};d.da=new p;r.prototype.Text=function(b){b.pb(this.text)};d.Qa=new r})();
function mc(g){this.b=g}
(function(){function g(){}function m(){}function e(){}var p=mc.prototype;p.ra=function(b){this.ta=b;this.b=b.b};p.ra.prototype.V=function(){};p.la=function(b){this.type=b;this.b=b.b};var r=p.la.prototype,d="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(d[2]="text",d[3]="text",d[4]="text",d[5]="text");r.V=function(){if(this.b.P)J("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.C[7]?(this.u=document.createElement("textarea"),
jQuery(this.u).css("resize","none")):(this.u=document.createElement("input"),this.u.type=d[this.C[7]]);this.u.id=this.C[9];jQuery(this.u).appendTo(this.b.$h?this.b.$h:"body");this.u.autocomplete="off";this.u.value=this.C[0];this.u.placeholder=this.C[1];this.u.title=this.C[2];this.u.disabled=0===this.C[4];this.u.readOnly=1===this.C[5];this.u.spellcheck=1===this.C[6];this.Jr=0!==this.C[8];this.Oe=!1;0===this.C[3]&&(jQuery(this.u).hide(),this.visible=!1,this.Oe=!0);var b=function(b){return function(){b.b.trigger(mc.prototype.i.Tm,
b)}}(this);this.u.oninput=b;-1!==navigator.userAgent.indexOf("MSIE")&&(this.u.oncut=b);this.u.onclick=function(b){return function(d){d.stopPropagation();b.b.fa=!0;b.b.trigger(mc.prototype.i.Iq,b);b.b.fa=!1}}(this);this.u.ondblclick=function(b){return function(d){d.stopPropagation();b.b.fa=!0;b.b.trigger(mc.prototype.i.Lq,b);b.b.fa=!1}}(this);this.u.addEventListener("touchstart",function(b){b.stopPropagation()},!1);this.u.addEventListener("touchmove",function(b){b.stopPropagation()},!1);this.u.addEventListener("touchend",
function(b){b.stopPropagation()},!1);jQuery(this.u).mousedown(function(b){b.stopPropagation()});jQuery(this.u).mouseup(function(b){b.stopPropagation()});jQuery(this.u).keydown(function(b){13!==b.which&&27!=b.which&&b.stopPropagation()});jQuery(this.u).keyup(function(b){13!==b.which&&27!=b.which&&b.stopPropagation()});this.vo=this.wo=this.lo=this.ro=this.uo=this.oo=0;this.fq(!0);this.b.Rh(this)}};r.ib=function(){return{text:this.u.value,placeholder:this.u.placeholder,tooltip:this.u.title,disabled:!!this.u.disabled,
readonly:!!this.u.readOnly,spellcheck:!!this.u.spellcheck}};r.ub=function(b){this.u.value=b.text;this.u.placeholder=b.placeholder;this.u.title=b.tooltip;this.u.disabled=b.disabled;this.u.readOnly=b.readonly;this.u.spellcheck=b.spellcheck};r.kf=function(){this.b.P||(jQuery(this.u).remove(),this.u=null)};r.Ga=function(){this.fq()};r.fq=function(b){if(!this.b.P){var c=this.e.Aa(this.x,this.y,!0),d=this.e.Aa(this.x,this.y,!1),e=this.e.Aa(this.x+this.width,this.y+this.height,!0),a=this.e.Aa(this.x+this.width,
this.y+this.height,!1),g=this.b.width/this.b.devicePixelRatio,p=this.b.height/this.b.devicePixelRatio;!this.visible||!this.e.visible||0>=e||0>=a||c>=g||d>=p?(this.Oe||jQuery(this.u).hide(),this.Oe=!0):(1>c&&(c=1),1>d&&(d=1),e>=g&&(e=g-1),a>=p&&(a=p-1),g=window.innerWidth,p=window.innerHeight,b||this.oo!==c||this.uo!==d||this.ro!==e||this.lo!==a||this.wo!==g||this.vo!==p?(this.oo=c,this.uo=d,this.ro=e,this.lo=a,this.wo=g,this.vo=p,this.Oe&&(jQuery(this.u).show(),this.Oe=!1),b=Math.round(c)+jQuery(this.b.canvas).offset().left,
g=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.u).css("position","absolute"),jQuery(this.u).offset({left:b,top:g}),jQuery(this.u).width(Math.round(e-c)),jQuery(this.u).height(Math.round(a-d)),this.Jr&&jQuery(this.u).css("font-size",this.e.Cb(!0)/this.b.devicePixelRatio-.2+"em")):this.Oe&&(jQuery(this.u).show(),this.Oe=!1))}};r.Tb=function(){};r.rb=function(){};g.prototype.Mm=function(b,c){return this.b.P?!1:0===c?fb(this.u.value,b):this.u.value===b};g.prototype.Tm=function(){return!0};
g.prototype.Iq=function(){return!0};g.prototype.Lq=function(){return!0};p.i=new g;m.prototype.Wm=function(b){this.b.P||(this.u.value=b)};m.prototype.Xm=function(b){this.b.P||(this.visible=0!==b)};m.prototype.kr=function(){this.b.P||this.u.focus()};m.prototype.jr=function(b,c){this.b.P||jQuery(this.u).css(b,c)};p.da=new m;e.prototype.Text=function(b){this.b.P?b.pb(""):b.pb(this.u.value)};p.Qa=new e})();function nc(g){this.b=g}
(function(){var g=nc.prototype;g.ra=function(e){this.ta=e;this.b=e.b};var m=g.ra.prototype;m.V=function(){this.D||(this.K=new Image,this.K.xk=this.Mj,this.b.Im(this.K,this.Lj),this.U=this.pattern=null)};m.qh=function(){this.D||(this.U=null)};m.hj=function(){if(!this.D&&this.d.length){this.U||(this.U=this.b.q.Of(this.K,!0,this.b.Z,this.Qh));var e,g;e=0;for(g=this.d.length;e<g;e++)this.d[e].U=this.U}};m.fh=function(){this.D||this.U||!this.b.q||(this.U=this.b.q.Of(this.K,!0,this.b.Z,this.Qh))};m.Sj=
function(){this.D||this.d.length||!this.U||(this.b.q.deleteTexture(this.U),this.U=null)};m.uj=function(e){e.drawImage(this.K,0,0)};g.la=function(e){this.type=e;this.b=e.b};m=g.la.prototype;m.V=function(){this.visible=0===this.C[0];this.ue=new U(0,0,0,0);this.Wn=!1;this.K=this.type.K;this.b.q?(this.type.fh(),this.U=this.type.U):(this.type.pattern||(this.type.pattern=this.b.ma.createPattern(this.type.K,"repeat")),this.pattern=this.type.pattern)};m.ud=function(){this.Wn=!1;this.K=this.type.K};m.kf=function(){this.b.q&&
this.Wn&&this.U&&(this.b.q.deleteTexture(this.U),this.U=null)};m.Tb=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var g=this.x,m=this.y;this.b.Ec&&(g=Math.round(g),m=Math.round(m));var d=-(this.Eb*this.width),b=-(this.Fb*this.height),c=d%this.K.width,f=b%this.K.height;0>c&&(c+=this.K.width);0>f&&(f+=this.K.height);e.translate(g,m);e.rotate(this.k);e.translate(c,f);e.fillRect(d-c,b-f,this.width,this.height);e.restore()};m.rb=function(e){e.Ib(this.U);e.xe(this.opacity);var g=
this.ue;g.right=this.width/this.K.width;g.bottom=this.height/this.K.height;var m=this.yd;if(this.b.Ec){var d=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;e.hd(m.kb+d,m.lb+b,m.cc+d,m.ec+b,m.Pb+d,m.Qb+b,m.Nb+d,m.Ob+b,g)}else e.hd(m.kb,m.lb,m.cc,m.ec,m.Pb,m.Qb,m.Nb,m.Ob,g)};g.i=new function(){};g.da=new function(){};g.Qa=new function(){}})();function Y(g){this.b=g}
(function(){function g(b){h=b.x;a=b.y;l=b.z}function m(a){t=a.x;k=a.y;w=a.z}function e(a,b,c,d){var e;e=s.length?s.pop():new p;e.init(a,b,c,d);return e}function p(){this.Mh=this.id=this.y=this.x=this.Jj=this.Ij=this.wl=this.time=this.tm=0;this.Sh=this.Qj=!1}function r(){}function d(){}var b=Y.prototype;b.ra=function(a){this.ta=a;this.b=a.b};b.ra.prototype.V=function(){};b.la=function(a){this.type=a;this.b=a.b;this.touches=[];this.Il=!1};var c=b.la.prototype,f={left:0,top:0};c.Fg=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 h=0,a=0,l=0,t=0,k=0,w=0,s=[];p.prototype.init=function(a,b,c,d){var e=Ua();this.tm=this.wl=this.time=e;this.Ij=a;this.Jj=b;this.x=a;this.y=b;this.id=c;this.Mh=d;this.Sh=this.Qj=!1};p.prototype.update=function(a,b,c){this.wl=this.time;this.time=a;this.x=b;this.y=c;!this.Sh&&15<=Qa(this.Ij,this.Jj,this.x,this.y)&&(this.Sh=!0)};p.prototype.$t=function(a,b){!this.Qj&&500<=Ua()-this.tm&&!this.Sh&&15>Qa(this.Ij,this.Jj,
this.x,this.y)&&(this.Qj=!0,a.pd=this.Mh,a.lg=this.id,a.Cf=b,a.b.trigger(Y.prototype.i.Tq,a),a.Cd=this.x,a.Dd=this.y,a.b.trigger(Y.prototype.i.Uq,a),a.Cf=0)};var q=-1E3,n=-1E3,x=-1E4;p.prototype.Qo=function(a,b){if(!this.Qj){var c=Ua();333>=c-this.tm&&!this.Sh&&15>Qa(this.Ij,this.Jj,this.x,this.y)&&(a.pd=this.Mh,a.lg=this.id,a.Cf=b,666>=c-x&&25>Qa(q,n,this.x,this.y)?(a.b.trigger(Y.prototype.i.Mq,a),a.Cd=this.x,a.Dd=this.y,a.b.trigger(Y.prototype.i.Nq,a),n=q=-1E3,x=-1E4):(a.b.trigger(Y.prototype.i.cr,
a),a.Cd=this.x,a.Dd=this.y,a.b.trigger(Y.prototype.i.dr,a),q=this.x,n=this.y,x=c),a.Cf=0)}};c.V=function(){this.Rt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Cf=this.lg=this.pd=this.Dd=this.Cd=this.bn=this.an=this.$m=this.Cr=this.Br=this.Ar=this.zh=this.yh=this.xh=0;this.hv=0!==this.C[0];var a=0<this.b.sb?document:this.b.canvas,b=document;this.b.gb?b=a=window.Canvas:this.b.lc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.wh(a)},
!1),a.addEventListener("pointermove",function(a){c.vh(a)},!1),b.addEventListener("pointerup",function(a){c.Sd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Sd(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.wh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.vh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Sd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Sd(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.jj(a)},
!1),a.addEventListener("touchmove",function(a){c.ij(a)},!1),b.addEventListener("touchend",function(a){c.Wf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Wf(a,!0)},!1));if(this.Rt){var d=function(a){a=a.reading;c.$m=a.accelerationX;c.an=a.accelerationY;c.bn=a.accelerationZ},e=function(a){a=a.reading;c.xh=a.yawDegrees;c.yh=a.pitchDegrees;c.zh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.xh=a.alpha||
0;c.yh=a.beta||0;c.zh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Ar=a.accelerationIncludingGravity.x||0,c.Br=a.accelerationIncludingGravity.y||0,c.Cr=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.$m=a.acceleration.x||0,c.an=a.acceleration.y||0,c.bn=a.acceleration.z||0)},!1);this.hv&&!this.b.P&&(jQuery(document).mousemove(function(a){c.sh(a)}),jQuery(document).mousedown(function(a){c.rh(a)}),jQuery(document).mouseup(function(a){c.uh(a)}));
this.b.Ff&&!this.b.gb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.yc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.Wu(this)};c.vh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Fg(a.pointerId),c=Ua();if(0<=b){var d=this.b.P?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};c.wh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.P?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.pd=this.touches.length;this.lg=a.pointerId;this.touches.push(e(c,b,a.pointerId,this.pd));this.b.fa=!0;this.b.trigger(Y.prototype.i.Sm,this);this.b.trigger(Y.prototype.i.Vm,this);this.Cd=c;this.Dd=b;this.b.trigger(Y.prototype.i.Um,this);this.b.fa=
!1}};c.Sd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.Fg(a.pointerId);this.pd=0<=c?this.touches[c].Mh:-1;this.lg=0<=c?this.touches[c].id:-1;this.b.fa=!0;this.b.trigger(Y.prototype.i.Rm,this);this.b.trigger(Y.prototype.i.dk,this);0<=c&&(b||this.touches[c].Qo(this,c),100>s.length&&s.push(this.touches[c]),this.touches.splice(c,1));this.b.fa=!1}};c.ij=function(a){a.preventDefault&&a.preventDefault();var b=Ua(),
c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.Fg(e.identifier),0<=g){var h=this.b.P?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top)}};c.jj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.P?f:jQuery(this.b.canvas).offset();Ua();this.b.fa=!0;var c,d,g,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],h=this.Fg(g.identifier),-1===h){h=g.pageX-b.left;var k=g.pageY-b.top;
this.pd=this.touches.length;this.lg=g.identifier;this.touches.push(e(h,k,g.identifier,this.pd));this.b.trigger(Y.prototype.i.Sm,this);this.b.trigger(Y.prototype.i.Vm,this);this.Cd=h;this.Dd=k;this.b.trigger(Y.prototype.i.Um,this)}this.b.fa=!1};c.Wf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.fa=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Fg(e.identifier),0<=e&&(this.pd=this.touches[e].Mh,this.lg=this.touches[e].id,this.b.trigger(Y.prototype.i.Rm,
this),this.b.trigger(Y.prototype.i.dk,this),b||this.touches[e].Qo(this,e),100>s.length&&s.push(this.touches[e]),this.touches.splice(e,1));this.b.fa=!1};c.qw=function(){return this.b.Ff&&0===this.xh&&0!==l?90*l:this.b.yc&&0===this.xh&&0!==w?90*w:this.xh};c.rw=function(){return this.b.Ff&&0===this.yh&&0!==a?-90*a:this.b.yc&&0===this.yh&&0!==k?90*k:this.yh};c.uw=function(){return this.b.Ff&&0===this.zh&&0!==h?90*h:this.b.yc&&0===this.zh&&0!==t?90*t:this.zh};c.rh=function(a){a.preventDefault&&this.b.Ef&&
!this.b.Nc&&a.preventDefault();this.jj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Il=!0};c.sh=function(a){this.Il&&this.ij({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.uh=function(a){a.preventDefault&&this.b.Ef&&!this.b.Nc&&a.preventDefault();this.b.Ef=!0;this.Wf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Il=!1};c.vm=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.wl=d),c.$t(this,
a)};r.prototype.Vm=function(){return!0};r.prototype.dk=function(){return!0};r.prototype.Um=function(a){return a?this.b.ig(a,this.Cd,this.Dd,!1):!1};var M=[];r.prototype.xq=function(a){if(!a)return!1;var b=a.na(),c=b.vc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.Pa();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.e.ya(e.x,e.y,!0),e=l.e.ya(e.x,e.y,!1),l.Sb(d,e)){M.push(l);break}}return M.length?(b.qa=!1,xa(b.d,M),a.wd(),M.length=0,!0):!1};r.prototype.Sm=function(a){a=Math.floor(a);
return a===this.pd};r.prototype.Rm=function(a){a=Math.floor(a);return a===this.pd};r.prototype.Tq=function(){return!0};r.prototype.cr=function(){return!0};r.prototype.Mq=function(){return!0};r.prototype.Uq=function(a){return a?this.b.ig(a,this.Cd,this.Dd,!1):!1};r.prototype.dr=function(a){return a?this.b.ig(a,this.Cd,this.Dd,!1):!1};r.prototype.Nq=function(a){return a?this.b.ig(a,this.Cd,this.Dd,!1):!1};b.i=new r;d.prototype.Ym=function(a,b){var c=this.Cf;if(0>c||c>=this.touches.length)a.A(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.Jd(0),e=d.scale,f=d.Kb,g=d.Cc,h=d.k,d.scale=1,d.Kb=1,d.Cc=1,d.k=0,a.A(d.ya(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Kb=f,d.Cc=g,d.k=h):(d=ha(b)?this.b.Jd(b):this.b.Hg(b))?a.A(d.ya(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};d.prototype.Zm=function(a,b){var c=this.Cf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,h;ga(b)?(d=this.b.Jd(0),e=d.scale,f=d.Kb,g=d.Dc,h=d.k,d.scale=1,d.Kb=1,d.Dc=1,d.k=0,a.A(d.ya(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.Kb=f,d.Dc=g,d.k=h):(d=ha(b)?this.b.Jd(b):this.b.Hg(b))?a.A(d.ya(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};b.Qa=new d})();
function oc(g){this.b=g;var m=this;this.b.P||(jQuery(document).mousemove(function(e){m.sh(e)}),jQuery(document).mousedown(function(e){m.rh(e)}),jQuery(document).mouseup(function(e){m.uh(e)}));g=0<this.b.sb?document:this.b.canvas;this.b.gb?g=window.Canvas:this.b.lc&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(e){m.wh(e)},!1),g.addEventListener("pointermove",function(e){m.vh(e)},!1),g.addEventListener("pointerup",function(e){m.Sd(e)},!1),g.addEventListener("pointercancel",
function(e){m.Sd(e)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(e){m.wh(e)},!1),g.addEventListener("MSPointerMove",function(e){m.vh(e)},!1),g.addEventListener("MSPointerUp",function(e){m.Sd(e)},!1),g.addEventListener("MSPointerCancel",function(e){m.Sd(e)},!1)):(g.addEventListener("touchstart",function(e){m.jj(e)},!1),g.addEventListener("touchmove",function(e){m.ij(e)},!1),g.addEventListener("touchend",function(e){m.Wf(e)},!1),g.addEventListener("touchcancel",
function(e){m.Wf(e)},!1))}
(function(){function g(d){var b,c;b=0;for(c=d.I.length;b<c;b++)if(d.I[b]instanceof e.la)return d.I[b];return null}function m(){}var e=oc.prototype,p={left:0,top:0};e.rh=function(d){1===d.which&&this.Ol("leftmouse",d.pageX,d.pageY)};e.sh=function(d){1===d.which&&this.Pl("leftmouse",d.pageX,d.pageY)};e.uh=function(d){1===d.which&&this.Ql("leftmouse")};e.jj=function(d){d.preventDefault&&gb(d)&&d.preventDefault();var b,c,e,g;b=0;for(c=d.changedTouches.length;b<c;b++)e=d.changedTouches[b],g=e.identifier,
this.Ol(g?g.toString():"<none>",e.pageX,e.pageY)};e.ij=function(d){d.preventDefault&&d.preventDefault();var b,c,e,g;b=0;for(c=d.changedTouches.length;b<c;b++)e=d.changedTouches[b],g=e.identifier,this.Pl(g?g.toString():"<none>",e.pageX,e.pageY)};e.Wf=function(d){d.preventDefault&&gb(d)&&d.preventDefault();var b,c,e;b=0;for(c=d.changedTouches.length;b<c;b++)e=d.changedTouches[b],e=e.identifier,this.Ql(e?e.toString():"<none>")};e.wh=function(d){d.pointerType!==d.MSPOINTER_TYPE_MOUSE&&"mouse"!==d.pointerType&&
(d.preventDefault&&gb(d)&&d.preventDefault(),this.Ol(d.pointerId.toString(),d.pageX,d.pageY))};e.vh=function(d){d.pointerType!==d.MSPOINTER_TYPE_MOUSE&&"mouse"!==d.pointerType&&(d.preventDefault&&d.preventDefault(),this.Pl(d.pointerId.toString(),d.pageX,d.pageY))};e.Sd=function(d){d.pointerType!==d.MSPOINTER_TYPE_MOUSE&&"mouse"!==d.pointerType&&(d.preventDefault&&gb(d)&&d.preventDefault(),this.Ql(d.pointerId.toString()))};e.Ol=function(d,b,c){var e=this.b.P?p:jQuery(this.b.canvas).offset();b-=e.left;
c-=e.top;var h,a,l,m,e=this.Tf.Uc(),k,r,s,q=null;k=0;for(r=e.length;k<r;k++)if(s=e[k],h=g(s),h.enabled&&!h.Me&&(h=s.e.ya(b,c,!0),a=s.e.ya(b,c,!1),s.Pa(),s.Sb(h,a)))q?s.e.index>q.e.index?(q=s,l=h,m=a):s.e.index===q.e.index&&s.wc()>q.wc()&&(q=s,l=h,m=a):(q=s,l=h,m=a);q&&g(q).hu(d,l,m)};e.Pl=function(d,b,c){var e=this.b.P?p:jQuery(this.b.canvas).offset();b-=e.left;c-=e.top;var h,a=this.Tf.Uc(),l,m,k;l=0;for(m=a.length;l<m;l++)h=a[l],k=g(h),!k.enabled||!k.Me||k.Me&&k.Ek!==d||(e=h.e.ya(b,c,!0),h=h.e.ya(b,
c,!1),k.lu(e,h))};e.Ql=function(d){var b=this.Tf.Uc(),c,e,h;c=0;for(e=b.length;c<e;c++)h=b[c],h=g(h),h.Me&&h.Ek===d&&h.ou()};e.ra=function(d){this.behavior=d;this.b=d.b};e.ra.prototype.V=function(){};e.la=function(d,b){this.type=d;this.behavior=d.behavior;this.L=b;this.b=d.b};var r=e.la.prototype;r.V=function(){this.Me=!1;this.Dn=this.Cn=0;this.Ek="<none>";this.kk=this.C[0];this.enabled=0!==this.C[1]};r.ib=function(){return{enabled:this.enabled}};r.ub=function(d){this.enabled=d.enabled;this.Me=!1};
r.hu=function(d,b,c){this.Cn=b-this.L.x;this.Dn=c-this.L.y;this.Me=!0;this.Ek=d;this.b.fa=!0;this.b.trigger(oc.prototype.i.Oq,this.L);this.b.fa=!1};r.lu=function(d,b){var c=d-this.Cn,e=b-this.Dn;if(0===this.kk){if(this.L.x!==c||this.L.y!==e)this.L.x=c,this.L.y=e,this.L.Ba()}else 1===this.kk?this.L.x!==c&&(this.L.x=c,this.L.Ba()):2===this.kk&&this.L.y!==e&&(this.L.y=e,this.L.Ba())};r.ou=function(){this.Me=!1;this.b.fa=!0;this.b.trigger(oc.prototype.i.Pq,this.L);this.b.fa=!1};r.Ga=function(){};m.prototype.Oq=
function(){return!0};m.prototype.Pq=function(){return!0};e.i=new m;e.da=new function(){};e.Qa=new function(){}})();function qc(g){this.b=g}
(function(){function g(){}var m=qc.prototype;m.ra=function(e){this.behavior=e;this.b=e.b};m.ra.prototype.V=function(){};m.la=function(e,g){this.type=e;this.behavior=e.behavior;this.L=g;this.b=e.b};var e=m.la.prototype;e.V=function(){var e=1===this.C[0];this.Dg=this.C[1];this.Wh=this.C[2];this.oi=this.C[3];this.Yr=this.C[4];this.Ya=e?0:3;this.Zb?this.Gc.reset():this.Gc=new Ya;this.gf=this.L.opacity?this.L.opacity:1;e&&(0===this.Dg?(this.Ya=1,0===this.Wh&&(this.Ya=2)):(this.L.opacity=0,this.b.T=!0))};
e.ib=function(){return{fit:this.Dg,wt:this.Wh,fot:this.oi,s:this.Ya,st:this.Gc.X,mo:this.gf}};e.ub=function(e){this.Dg=e.fit;this.Wh=e.wt;this.oi=e.fot;this.Ya=e.s;this.Gc.reset();this.Gc.X=e.st;this.gf=e.mo};e.Ga=function(){this.Gc.add(this.b.Gg(this.L));0===this.Ya&&(this.L.opacity=this.Gc.X/this.Dg*this.gf,this.b.T=!0,this.L.opacity>=this.gf&&(this.L.opacity=this.gf,this.Ya=1,this.Gc.reset(),this.b.trigger(qc.prototype.i.Qq,this.L)));1===this.Ya&&this.Gc.X>=this.Wh&&(this.Ya=2,this.Gc.reset(),
this.b.trigger(qc.prototype.i.er,this.L));2===this.Ya&&0!==this.oi&&(this.L.opacity=this.gf-this.Gc.X/this.oi*this.gf,this.b.T=!0,0>this.L.opacity&&(this.L.opacity=0,this.Ya=3,this.Gc.reset(),this.b.trigger(qc.prototype.i.Rq,this.L),1===this.Yr&&this.b.td(this.L)))};e.pw=function(){this.Ya=0;this.Gc.reset();0===this.Dg?(this.Ya=1,0===this.Wh&&(this.Ya=2)):(this.L.opacity=0,this.b.T=!0)};g.prototype.Rq=function(){return!0};g.prototype.Qq=function(){return!0};g.prototype.er=function(){return!0};m.i=
new g;m.da=new function(){};m.Qa=new function(){}})();function rc(g){this.b=g}
(function(){function g(){}function m(){}var e=rc.prototype;e.ra=function(e){this.behavior=e;this.b=e.b};e.ra.prototype.V=function(){};e.la=function(e,d){this.type=e;this.behavior=e.behavior;this.L=d;this.b=e.b};var p=e.la.prototype;p.V=function(){this.Be=this.ld=this.Ya=this.gj=this.kj=0};p.ib=function(){return{ontime:this.kj,offtime:this.gj,stage:this.Ya,stagetimeleft:this.ld,timeleft:this.Be}};p.ub=function(e){this.kj=e.ontime;this.gj=e.offtime;this.Ya=e.stage;this.ld=e.stagetimeleft;this.Be=e.timeleft};
p.Ga=function(){if(!(0>=this.Be)){var e=this.b.Gg(this.L);this.Be-=e;0>=this.Be?(this.Be=0,this.L.visible=!0,this.b.T=!0,this.b.trigger(rc.prototype.i.Sq,this.L)):(this.ld-=e,0>=this.ld&&(0===this.Ya?(this.L.visible=!1,this.Ya=1,this.ld+=this.gj):(this.L.visible=!0,this.Ya=0,this.ld+=this.kj),this.b.T=!0))}};g.prototype.Sq=function(){return!0};e.i=new g;m.prototype.rq=function(e,d,b){this.kj=e;this.gj=d;this.Ya=1;this.ld=d;this.Be=b;this.L.visible=!1;this.b.T=!0};e.da=new m;e.Qa=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,mc,nc,Y,oc,qc,rc,jc.prototype.i.wq,gc.prototype.da.mr,jc.prototype.i.bk,Y.prototype.i.xq,X.prototype.da.nr,jc.prototype.i.uq,X.prototype.i.pq,X.prototype.da.Bq,X.prototype.da.sq,X.prototype.i.Pm,mc.prototype.da.jr,mc.prototype.da.kr,X.prototype.i.qr,X.prototype.da.jq,hc.prototype.da.Play,gc.prototype.da.Xm,X.prototype.da.rr,Y.prototype.i.dk,mc.prototype.i.Tm,mc.prototype.i.Mm,gc.prototype.da.qq,X.prototype.i.Nm,X.prototype.i.oq,X.prototype.Qa.Wt,mc.prototype.Qa.Text,
X.prototype.da.hr,X.prototype.da.ir,rc.prototype.da.rq,lc.prototype.da.Wm,X.prototype.da.lr,X.prototype.i.zq]};
