text: ﻿// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
  'use strict';var aa,ba,da,ea,A,fa,ga,ha,H,ia,ja,ka,la,na,oa,qa,ra,va,wa,xa,ya,za,T,Aa,Ba,Ca,Da,Ea,W,Ga,Ia,Ja,Ka,Ma,Na,Oa,Pa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={};"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,b,e,v){this.set(a,b,e,v)}function h(){this.Vb=this.Ub=this.Xb=this.Wb=this.mc=this.lc=this.wb=this.ub=0}function l(a,b,e,v){a<b?e<v?(z=a<e?a:e,x=b>v?b:v):(z=a<v?a:v,x=b>e?b:e):e<v?(z=b<e?b:e,x=a>v?a:v):(z=b<v?b:v,x=a>e?a:e)}function r(){this.items=this.kd=null;this.Tg=0;B&&(this.kd=new Set);this.dg=[];this.$d=!0}function u(a){C[N++]=a}function q(){this.P=this.oj=this.y=this.Oj=0}function f(a){this.Qf=[];this.Jm=this.Lm=this.Mm=this.Km=0;this.xh(a)}function b(a,b){this.Uj=
  a;this.Tj=b;this.cells={}}function d(a,b){this.Uj=a;this.Tj=b;this.cells={}}function c(a,b,e){var v;return Q.length?(v=Q.pop(),v.Ak=a,v.x=b,v.y=e,v):new ba(a,b,e)}function a(a,b,e){this.Ak=a;this.x=b;this.y=e;this.Wa=new da}function e(a,b,e){var v;return G.length?(v=G.pop(),v.Ak=a,v.x=b,v.y=e,v):new ea(a,b,e)}function m(a,b,e){this.Ak=a;this.x=b;this.y=e;this.Wa=[];this.Bf=!0;this.hd=new da;this.ig=!1}function n(a,b){return a.Sc-b.Sc}A=function(a){window.console&&window.console.log&&window.console.log(a)};
  fa=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};H=function(a){return"string"===typeof a};ia=function(a){return 0<a&&0===(a-1&a)};ja=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};ka=function(a){return 0>a?-a:a};la=function(a,b){return a<b?a:b};na=Math.PI;oa=function(a){return 0<=a?a|0:(a|0)-1};qa=function(a){var b=a|0;return b===a?b:b+1};ra=function(a,
  b,e,v,c,d,n,k){var m,p,f,z;a<e?(p=a,m=e):(p=e,m=a);c<n?(z=c,f=n):(z=n,f=c);if(m<z||p>f)return!1;b<v?(p=b,m=v):(p=v,m=b);d<k?(z=d,f=k):(z=k,f=d);if(m<z||p>f)return!1;m=c-a+n-e;p=d-b+k-v;a=e-a;b=v-b;c=n-c;d=k-d;k=ka(b*c-d*a);return ka(c*p-d*m)>k?!1:ka(a*p-b*m)<=k};g.prototype.set=function(a,b,e,v){this.left=a;this.top=b;this.right=e;this.bottom=v};g.prototype.pg=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,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;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.Yb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};g.prototype.tg=function(a){return this.left===a.left&&this.top===a.top&&
  this.right===a.right&&this.bottom===a.bottom};va=g;h.prototype.jj=function(a){this.ub=a.left;this.wb=a.top;this.lc=a.right;this.mc=a.top;this.Wb=a.right;this.Xb=a.bottom;this.Ub=a.left;this.Vb=a.bottom};h.prototype.qp=function(a,b){if(0===b)this.jj(a);else{var e=Math.sin(b),v=Math.cos(b),c=a.left*e,d=a.top*e,n=a.right*e,e=a.bottom*e,k=a.left*v,m=a.top*v,p=a.right*v,v=a.bottom*v;this.ub=k-d;this.wb=m+c;this.lc=p-d;this.mc=m+n;this.Wb=p-e;this.Xb=v+n;this.Ub=k-e;this.Vb=v+c}};h.prototype.offset=function(a,
  b){this.ub+=a;this.wb+=b;this.lc+=a;this.mc+=b;this.Wb+=a;this.Xb+=b;this.Ub+=a;this.Vb+=b;return this};var z=0,x=0;h.prototype.Om=function(a){l(this.ub,this.lc,this.Wb,this.Ub);a.left=z;a.right=x;l(this.wb,this.mc,this.Xb,this.Vb);a.top=z;a.bottom=x};h.prototype.Yb=function(a,b){var e=this.ub,v=this.wb,c=this.lc-e,d=this.mc-v,n=this.Wb-e,k=this.Xb-v,m=a-e,p=b-v,f=c*c+d*d,z=c*n+d*k,d=c*m+d*p,t=n*n+k*k,g=n*m+k*p,x=1/(f*t-z*z),c=(t*d-z*g)*x,f=(f*g-z*d)*x;if(0<=c&&0<f&&1>c+f)return!0;c=this.Ub-e;d=this.Vb-
  v;f=c*c+d*d;z=c*n+d*k;d=c*m+d*p;x=1/(f*t-z*z);c=(t*d-z*g)*x;f=(f*g-z*d)*x;return 0<=c&&0<f&&1>c+f};h.prototype.Lj=function(a,b){if(b)switch(a){case 0:return this.ub;case 1:return this.lc;case 2:return this.Wb;case 3:return this.Ub;case 4:return this.ub;default:return this.ub}else switch(a){case 0:return this.wb;case 1:return this.mc;case 2:return this.Xb;case 3:return this.Vb;case 4:return this.wb;default:return this.wb}};wa=h;xa=function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a};
  ya=function(a,b){var e,v;b=oa(b);if(!(0>b||b>=a.length)){e=b;for(v=a.length-1;e<v;e++)a[e]=a[e+1];za(a,v)}};za=function(a,b){a.length=b};T=function(a){za(a,0)};Aa=function(a,b){T(a);var e,v;e=0;for(v=b.length;e<v;++e)a[e]=b[e]};Ba=function(a,b){a.push.apply(a,b)};Ca=function(a,b){var e,v;e=0;for(v=a.length;e<v;++e)if(a[e]===b)return e;return-1};Da=function(a,b){var e=Ca(a,b);-1!==e&&ya(a,e)};Ea=function(a,b,e){return a<b?b:a>e?e:a};W=function(a){return a/(180/na)};Ga=function(a){return 180/na*a};
  Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*na;0>a&&(a+=2*na);return a};Ka=function(a){return Ia(Ga(a))};Ma=function(a){return Ja(W(a))};Na=function(a,b,e,v){return Math.atan2(v-b,e-a)};Oa=function(a,b){if(a===b)return 0;var e=Math.sin(a),v=Math.cos(a),c=Math.sin(b),d=Math.cos(b),e=e*c+v*d;return 1<=e?0:-1>=e?na:Math.acos(e)};Pa=function(a,b,e){var v=Math.sin(a),c=Math.cos(a),d=Math.sin(b),n=Math.cos(b);return Math.acos(v*d+c*n)>e?0<c*d-v*n?Ja(a+e):Ja(a-e):Ja(b)};Va=function(a,
  b){var e=Math.sin(a),v=Math.cos(a),c=Math.sin(b),d=Math.cos(b);return 0>=v*c-e*d};Wa=function(a,b,e,v,c,d){if(0===e)return d?a:b;var n=Math.sin(e);e=Math.cos(e);a-=v;b-=c;var k=a*n;a=a*e-b*n;b=b*e+k;return d?a+v:b+c};Xa=function(a,b,e,v){a=e-a;b=v-b;return Math.sqrt(a*a+b*b)};Ya=function(a,b){return!a!==!b};Za=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};$a=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var t=+new Date;ab=function(){if("undefined"!==typeof window.performance){var a=
  window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-t};var k=!1,p=k=!1,S=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),S=window.c2ejecta);var B=!k&&!S&&!p&&"undefined"!==
  typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(a){return this.zd()?!1:B?this.kd.has(a):this.items&&this.items.hasOwnProperty(a)};r.prototype.add=function(a){if(B)this.kd.has(a)||(this.kd.add(a),this.$d=!1);else{var b=a.toString(),e=this.items;e?e.hasOwnProperty(b)||(e[b]=a,this.Tg++,this.$d=!1):(this.items={},this.items[b]=a,this.Tg=1,this.$d=!1)}};r.prototype.remove=function(a){if(!this.zd())if(B)this.kd.has(a)&&(this.kd["delete"](a),this.$d=!1);else if(this.items){a=
  a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Tg--,this.$d=!1)}};r.prototype.clear=function(){this.zd()||(B?this.kd.clear():(this.items=null,this.Tg=0),T(this.dg),this.$d=!0)};r.prototype.zd=function(){return 0===this.count()};r.prototype.count=function(){return B?this.kd.size:this.Tg};var C=null,N=0;r.prototype.Wu=function(){if(!this.$d){if(B)T(this.dg),C=this.dg,N=0,this.kd.forEach(u),C=null,N=0;else{var a=this.dg;T(a);var b,e=0,v=this.items;if(v)for(b in v)v.hasOwnProperty(b)&&
  (a[e++]=v[b])}this.$d=!0}};r.prototype.ze=function(){this.Wu();return this.dg};da=r;new da;bb=function(a,b){B?cb(a,b.kd):db(a,b.ze())};cb=function(a,b){var e,v,c,d;v=e=0;for(c=a.length;e<c;++e)d=a[e],b.has(d)||(a[v++]=d);za(a,v)};db=function(a,b){var e,v,c,d;v=e=0;for(c=a.length;e<c;++e)d=a[e],-1===Ca(b,d)&&(a[v++]=d);za(a,v)};q.prototype.add=function(a){this.y=a-this.Oj;this.oj=this.P+this.y;this.Oj=this.oj-this.P-this.y;this.P=this.oj};q.prototype.reset=function(){this.P=this.oj=this.y=this.Oj=
  0};eb=q;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.xh=function(a){this.Zo=a;this.Yi=a.length/2;this.Qf.length=a.length;this.Pj=this.Qj=-1;this.Rm=0};f.prototype.Et=function(){return!this.Zo.length};f.prototype.Ha=function(){for(var a=this.Qf,b=a[0],e=b,v=a[1],c=v,d,n,k=1,m=this.Yi;k<m;++k)n=2*k,d=a[n],n=a[n+1],d<b&&(b=d),d>e&&(e=d),n<v&&(v=n),n>c&&(c=n);this.Km=b;this.Lm=e;this.Mm=v;this.Jm=c};f.prototype.jj=function(a,b,e){this.Qf.length=8;this.Yi=4;var v=this.Qf;
  v[0]=a.left-b;v[1]=a.top-e;v[2]=a.right-b;v[3]=a.top-e;v[4]=a.right-b;v[5]=a.bottom-e;v[6]=a.left-b;v[7]=a.bottom-e;this.Qj=a.right-a.left;this.Pj=a.bottom-a.top;this.Ha()};f.prototype.hr=function(a,b,e){if(this.Qj!==a||this.Pj!==b||this.Rm!==e){this.Qj=a;this.Pj=b;this.Rm=e;var v,c,d,n,k,m=0,p=1,f=this.Zo,z=this.Qf;0!==e&&(m=Math.sin(e),p=Math.cos(e));e=0;for(d=this.Yi;e<d;e++)v=2*e,c=v+1,n=f[v]*a,k=f[c]*b,z[v]=n*p-k*m,z[c]=k*p+n*m;this.Ha()}};f.prototype.Yb=function(a,b){var e=this.Qf;if(a===e[0]&&
  b===e[1])return!0;var v,c,d,n=this.Yi,k=this.Km-110,m=this.Mm-101,p=this.Lm+131,f=this.Jm+120,z,t,g=0,x=0;for(v=0;v<n;v++)c=2*v,d=(v+1)%n*2,z=e[c],c=e[c+1],t=e[d],d=e[d+1],ra(k,m,a,b,z,c,t,d)&&g++,ra(p,f,a,b,z,c,t,d)&&x++;return 1===g%2||1===x%2};gb=f;b.prototype.ge=function(a,b,e){var v;v=this.cells[a];return v?(v=v[b])?v:e?(v=c(this,a,b),this.cells[a][b]=v):null:e?(v=c(this,a,b),this.cells[a]={},this.cells[a][b]=v):null};b.prototype.xb=function(a){return oa(a/this.Uj)};b.prototype.yb=function(a){return oa(a/
  this.Tj)};b.prototype.update=function(a,b,e){var v,c,d,n,k;if(b)for(v=b.left,c=b.right;v<=c;++v)for(d=b.top,n=b.bottom;d<=n;++d)if(!e||!e.Yb(v,d))if(k=this.ge(v,d,!1))k.remove(a),k.zd()&&(k.Wa.clear(),1E3>Q.length&&Q.push(k),this.cells[v][d]=null);if(e)for(v=e.left,c=e.right;v<=c;++v)for(d=e.top,n=e.bottom;d<=n;++d)b&&b.Yb(v,d)||this.ge(v,d,!0).Ik(a)};b.prototype.bp=function(a,b){var e,v,d,c,n,k;e=this.xb(a.left);d=this.yb(a.top);v=this.xb(a.right);for(n=this.yb(a.bottom);e<=v;++e)for(c=d;c<=n;++c)(k=
  this.ge(e,c,!1))&&k.dump(b)};ib=b;d.prototype.ge=function(a,b,c){var v;v=this.cells[a];return v?(v=v[b])?v:c?(v=e(this,a,b),this.cells[a][b]=v):null:c?(v=e(this,a,b),this.cells[a]={},this.cells[a][b]=v):null};d.prototype.xb=function(a){return oa(a/this.Uj)};d.prototype.yb=function(a){return oa(a/this.Tj)};d.prototype.update=function(a,b,e){var v,c,d,n,k;if(b)for(v=b.left,c=b.right;v<=c;++v)for(d=b.top,n=b.bottom;d<=n;++d)if(!e||!e.Yb(v,d))if(k=this.ge(v,d,!1))k.remove(a),k.zd()&&(k.reset(),1E3>G.length&&
  G.push(k),this.cells[v][d]=null);if(e)for(v=e.left,c=e.right;v<=c;++v)for(d=e.top,n=e.bottom;d<=n;++d)b&&b.Yb(v,d)||this.ge(v,d,!0).Ik(a)};d.prototype.bp=function(a,b,e,v,d){var c,n;a=this.xb(a);b=this.yb(b);e=this.xb(e);for(c=this.yb(v);a<=e;++a)for(v=b;v<=c;++v)(n=this.ge(a,v,!1))&&n.dump(d)};d.prototype.Mt=function(a){var b,e,v,d,c;b=a.left;v=a.top;e=a.right;for(d=a.bottom;b<=e;++b)for(a=v;a<=d;++a)if(c=this.ge(b,a,!1))c.Bf=!1};jb=d;var Q=[];a.prototype.zd=function(){return this.Wa.zd()};a.prototype.Ik=
  function(a){this.Wa.add(a)};a.prototype.remove=function(a){this.Wa.remove(a)};a.prototype.dump=function(a){Ba(a,this.Wa.ze())};ba=a;var G=[];m.prototype.zd=function(){if(!this.Wa.length)return!0;if(this.Wa.length>this.hd.count())return!1;this.mk();return!0};m.prototype.Ik=function(a){this.hd.contains(a)?(this.hd.remove(a),this.hd.zd()&&(this.ig=!1)):this.Wa.length?(this.Wa[this.Wa.length-1].bd()>a.bd()&&(this.Bf=!1),this.Wa.push(a)):(this.Wa.push(a),this.Bf=!0)};m.prototype.remove=function(a){this.hd.add(a);
  this.ig=!0;30<=this.hd.count()&&this.mk()};m.prototype.mk=function(){this.ig&&(this.hd.count()===this.Wa.length?this.reset():(bb(this.Wa,this.hd),this.hd.clear(),this.ig=!1))};m.prototype.Vr=function(){this.Bf||(this.Wa.sort(n),this.Bf=!0)};m.prototype.reset=function(){T(this.Wa);this.Bf=!0;this.hd.clear();this.ig=!1};m.prototype.dump=function(a){this.mk();this.Vr();this.Wa.length&&a.push(this.Wa)};ea=m;var y="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
  kb=function(a){return 0>=a||11<=a?"source-over":y[a-1]};lb=function(a,b,e){if(e)switch(a.pb=e.ONE,a.lb=e.ONE_MINUS_SRC_ALPHA,b){case 1:a.pb=e.ONE;a.lb=e.ONE;break;case 3:a.pb=e.ONE;a.lb=e.ZERO;break;case 4:a.pb=e.ONE_MINUS_DST_ALPHA;a.lb=e.ONE;break;case 5:a.pb=e.DST_ALPHA;a.lb=e.ZERO;break;case 6:a.pb=e.ZERO;a.lb=e.SRC_ALPHA;break;case 7:a.pb=e.ONE_MINUS_DST_ALPHA;a.lb=e.ZERO;break;case 8:a.pb=e.ZERO;a.lb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.pb=e.DST_ALPHA;a.lb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.pb=
  e.ONE_MINUS_DST_ALPHA,a.lb=e.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(g){var h=new gc(3);g&&(h[0]=g[0],h[1]=g[1],h[2]=g[2]);return h}
  function ic(g){var h=new gc(16);g&&(h[0]=g[0],h[1]=g[1],h[2]=g[2],h[3]=g[3],h[4]=g[4],h[5]=g[5],h[6]=g[6],h[7]=g[7],h[8]=g[8],h[9]=g[9],h[10]=g[10],h[11]=g[11],h[12]=g[12],h[13]=g[13],h[14]=g[14],h[15]=g[15]);return h}function jc(g,h){h[0]=g[0];h[1]=g[1];h[2]=g[2];h[3]=g[3];h[4]=g[4];h[5]=g[5];h[6]=g[6];h[7]=g[7];h[8]=g[8];h[9]=g[9];h[10]=g[10];h[11]=g[11];h[12]=g[12];h[13]=g[13];h[14]=g[14];h[15]=g[15]}
  function kc(g,h){var l=h[0],r=h[1];h=h[2];g[0]*=l;g[1]*=l;g[2]*=l;g[3]*=l;g[4]*=r;g[5]*=r;g[6]*=r;g[7]*=r;g[8]*=h;g[9]*=h;g[10]*=h;g[11]*=h}
  function lc(g,h,l,r){r||(r=ic());var u,q,f,b,d,c,a,e,m=g[0],n=g[1];g=g[2];q=l[0];f=l[1];u=l[2];l=h[1];c=h[2];m===h[0]&&n===l&&g===c?(g=r,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):(l=m-h[0],c=n-h[1],a=g-h[2],e=1/Math.sqrt(l*l+c*c+a*a),l*=e,c*=e,a*=e,h=f*a-u*c,u=u*l-q*a,q=q*c-f*l,(e=Math.sqrt(h*h+u*u+q*q))?(e=1/e,h*=e,u*=e,q*=e):q=u=h=0,f=c*q-a*u,b=a*h-l*q,d=l*u-c*h,(e=Math.sqrt(f*f+b*b+d*d))?(e=1/e,f*=e,b*=e,d*=e):d=b=f=0,
  r[0]=h,r[1]=f,r[2]=l,r[3]=0,r[4]=u,r[5]=b,r[6]=c,r[7]=0,r[8]=q,r[9]=d,r[10]=a,r[11]=0,r[12]=-(h*m+u*n+q*g),r[13]=-(f*m+b*n+d*g),r[14]=-(l*m+c*n+a*g),r[15]=1)}
  (function(){function g(b,d,c){this.vc=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ja=!!c;this.si=this.Jg=!1;this.ak=0;this.Cj=1;this.Zl=1E3;this.dv=(this.Zl-this.Cj)/32768;this.Rj=hc([0,0,100]);this.Zn=hc([0,0,0]);this.Np=hc([0,1,0]);this.Ih=hc([1,1,1]);this.cn=!0;this.Ki=ic();this.hc=ic();this.Tk=ic();this.$j=ic();this.m=b;this.version=0===this.m.getParameter(this.m.VERSION).indexOf("WebGL 2")?2:1;this.En()}function h(b,d,c){this.m=b;this.yh=
  d;this.name=c;this.yc=b.getAttribLocation(d,"aPos");this.re=b.getAttribLocation(d,"aTex");this.Xn=b.getUniformLocation(d,"matP");this.Gi=b.getUniformLocation(d,"matMV");this.Jf=b.getUniformLocation(d,"opacity");this.Xk=b.getUniformLocation(d,"colorFill");this.Yn=b.getUniformLocation(d,"samplerFront");this.$g=b.getUniformLocation(d,"samplerBack");this.bf=b.getUniformLocation(d,"destStart");this.$e=b.getUniformLocation(d,"destEnd");this.bh=b.getUniformLocation(d,"seconds");this.Zk=b.getUniformLocation(d,
  "pixelWidth");this.Yk=b.getUniformLocation(d,"pixelHeight");this.Zg=b.getUniformLocation(d,"layerScale");this.Yg=b.getUniformLocation(d,"layerAngle");this.dh=b.getUniformLocation(d,"viewOrigin");this.ah=b.getUniformLocation(d,"scrollPos");this.lt=!!(this.Zk||this.Yk||this.bh||this.$g||this.bf||this.$e||this.Zg||this.Yg||this.dh||this.ah);this.io=this.jo=-999;this.Ji=1;this.co=this.bo=0;this.fo=this.ao=this.$n=1;this.mo=this.lo=this.ko=this.oo=this.no=this.eo=0;this.Sk=[];this.ho=ic();this.Jf&&b.uniform1f(this.Jf,
  1);this.Xk&&b.uniform4f(this.Xk,1,1,1,1);this.Yn&&b.uniform1i(this.Yn,0);this.$g&&b.uniform1i(this.$g,1);this.bf&&b.uniform2f(this.bf,0,0);this.$e&&b.uniform2f(this.$e,1,1);this.Zg&&b.uniform1f(this.Zg,1);this.Yg&&b.uniform1f(this.Yg,0);this.dh&&b.uniform2f(this.dh,0,0);this.ah&&b.uniform2f(this.ah,0,0);this.bh&&b.uniform1f(this.bh,0);this.Se=!1}function l(b,d){return 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]}function r(b,d){this.type=b;this.n=d;this.m=d.m;this.cd=this.sb=this.Ko=0;this.G=this.Ec=null;this.rp=[]}var u=ic();g.prototype.En=function(){var b=this.m,d;this.Rn=1;this.Xe=this.ne=null;this.Vh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ja?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
  b.disable(b.DEPTH_TEST);this.Sn=b.ONE;this.Qn=b.ONE_MINUS_SRC_ALPHA;this.Aj=new Float32Array(8E3*(this.ja?3:2));this.qj=new Float32Array(16E3);this.Vo=new Float32Array(32E3);this.pl=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.pl);b.bufferData(b.ARRAY_BUFFER,this.Vo.byteLength,b.DYNAMIC_DRAW);this.Hh=Array(4);this.Dh=Array(4);for(d=0;4>d;d++)this.Hh[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Hh[d]),b.bufferData(b.ARRAY_BUFFER,this.Aj.byteLength,b.DYNAMIC_DRAW),this.Dh[d]=b.createBuffer(),
  b.bindBuffer(b.ARRAY_BUFFER,this.Dh[d]),b.bufferData(b.ARRAY_BUFFER,this.qj.byteLength,b.DYNAMIC_DRAW);this.rd=0;this.pt=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.pt);for(var c=new Uint16Array(12E3),a=d=0;12E3>d;)c[d++]=a,c[d++]=a+1,c[d++]=a+2,c[d++]=a,c[d++]=a+2,c[d++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,b.STATIC_DRAW);this.ql=this.Zf=this.Qd=0;this.wa=[];d=this.ja?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
  "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.qg({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}"},d,"<default>");this.wa.push(c);c=this.qg({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.wa.push(c);c=this.qg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.wa.push(c);c=this.qg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
  d,"<fill>");this.wa.push(c);for(var e in mc)mc.hasOwnProperty(e)&&this.wa.push(this.qg(mc[e],d,e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Zd=[];this.qd=0;this.nb=!1;this.Xm=this.Ug=-1;this.pf=null;this.kk=b.createFramebuffer();this.Zh=this.$i=null;this.Im=!1;this.ja&&(this.Zh=b.createRenderbuffer());this.ye=hc([0,0,0]);this.po=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.po&&(this.po=2048);this.Eb(0)};h.prototype.Tl=function(b){l(this.ho,b)||(jc(b,this.ho),this.m.uniformMatrix4fv(this.Gi,
  !1,b))};g.prototype.qg=function(b,d,c){var a=this.m,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,b.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))return a.deleteShader(e),null;var m=a.createShader(a.VERTEX_SHADER);a.shaderSource(m,d);a.compileShader(m);if(!a.getShaderParameter(m,a.COMPILE_STATUS))return a.deleteShader(e),a.deleteShader(m),null;d=a.createProgram();a.attachShader(d,e);a.attachShader(d,m);a.linkProgram(d);if(!a.getProgramParameter(d,a.LINK_STATUS))return a.deleteShader(e),
  a.deleteShader(m),a.deleteProgram(d),null;a.useProgram(d);a.deleteShader(e);a.deleteShader(m);c=new h(a,d,c);c.ik=b.ik||0;c.jk=b.jk||0;c.Wm=!!b.Wm;c.Oc=!!b.Oc;c.Em=!!b.Em;c.H=b.H||[];b=0;for(e=c.H.length;b<e;b++)c.H[b][1]=a.getUniformLocation(d,c.H[b][0]),c.Sk.push(0),a.uniform1f(c.H[b][1],0);return c};g.prototype.yk=function(b){var d,c;d=0;for(c=this.wa.length;d<c;d++)if(this.wa[d].name===b)return d;return-1};g.prototype.Yo=function(b,d,c){var a=this.hc,e=this.Ki,m=[0,0,0,0,0,0,0,0];m[0]=a[0]*b+
  a[4]*d+a[12];m[1]=a[1]*b+a[5]*d+a[13];m[2]=a[2]*b+a[6]*d+a[14];m[3]=a[3]*b+a[7]*d+a[15];m[4]=e[0]*m[0]+e[4]*m[1]+e[8]*m[2]+e[12]*m[3];m[5]=e[1]*m[0]+e[5]*m[1]+e[9]*m[2]+e[13]*m[3];m[6]=e[2]*m[0]+e[6]*m[1]+e[10]*m[2]+e[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],c[0]=(.5*m[4]+.5)*this.width,c[1]=(.5*m[5]+.5)*this.height)};g.prototype.Kd=function(b,d,c){if(this.width!==b||this.height!==d||c){this.ee();c=this.m;this.width=b;this.height=d;c.viewport(0,0,b,d);lc(this.Rj,
  this.Zn,this.Np,this.hc);if(this.ja){var a=-b/2;b=b/2;var e=d/2;d=-d/2;var m=this.Cj,n=this.Zl,f=this.Ki;f||(f=ic());var g=b-a,t=d-e,k=n-m;f[0]=2/g;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/t;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/k;f[11]=0;f[12]=-(a+b)/g;f[13]=-(d+e)/t;f[14]=-(n+m)/k;f[15]=1;this.Ih[0]=1;this.Ih[1]=1}else d=b/d,a=this.Cj,b=this.Zl,f=this.Ki,n=a*Math.tan(45*Math.PI/360),d*=n,e=-d,m=-n,f||(f=ic()),g=d-e,t=n-m,k=b-a,f[0]=2*a/g,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*a/t,f[6]=0,f[7]=0,f[8]=(d+e)/
  g,f[9]=(n+m)/t,f[10]=-(b+a)/k,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(b*a*2)/k,f[15]=0,a=[0,0],b=[0,0],this.Yo(0,0,a),this.Yo(1,1,b),this.Ih[0]=1/(b[0]-a[0]),this.Ih[1]=-1/(b[1]-a[1]);a=0;for(b=this.wa.length;a<b;a++)e=this.wa[a],e.Se=!1,e.Xn&&(c.useProgram(e.yh),c.uniformMatrix4fv(e.Xn,!1,this.Ki));c.useProgram(this.wa[this.Ug].yh);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Xe=this.ne=null;this.Zh&&(c.bindFramebuffer(c.FRAMEBUFFER,
  this.kk),c.bindRenderbuffer(c.RENDERBUFFER,this.Zh),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Im||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Zh),this.Im=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.$i=null)}};g.prototype.Bc=function(){lc(this.Rj,this.Zn,this.Np,this.hc);kc(this.hc,this.Ih)};g.prototype.translate=function(b,d){if(0!==b||0!==d){this.ye[0]=b;this.ye[1]=d;this.ye[2]=
  0;var c=this.hc,a=this.ye,e=a[0],m=a[1],a=a[2];c[12]=c[0]*e+c[4]*m+c[8]*a+c[12];c[13]=c[1]*e+c[5]*m+c[9]*a+c[13];c[14]=c[2]*e+c[6]*m+c[10]*a+c[14];c[15]=c[3]*e+c[7]*m+c[11]*a+c[15]}};g.prototype.scale=function(b,d){if(1!==b||1!==d)this.ye[0]=b,this.ye[1]=d,this.ye[2]=1,kc(this.hc,this.ye)};g.prototype.cj=function(b){if(0!==b){var d=this.hc,c,a=Math.sin(b);b=Math.cos(b);var e=d[0],m=d[1],n=d[2],f=d[3],g=d[4],t=d[5],k=d[6],p=d[7];c?d!==c&&(c[8]=d[8],c[9]=d[9],c[10]=d[10],c[11]=d[11],c[12]=d[12],c[13]=
  d[13],c[14]=d[14],c[15]=d[15]):c=d;c[0]=e*b+g*a;c[1]=m*b+t*a;c[2]=n*b+k*a;c[3]=f*b+p*a;c[4]=e*-a+g*b;c[5]=m*-a+t*b;c[6]=n*-a+k*b;c[7]=f*-a+p*b}};g.prototype.nc=function(){if(!l(this.Tk,this.hc)){var b=this.Pb();b.type=5;b.G?jc(this.hc,b.G):b.G=ic(this.hc);jc(this.hc,this.Tk);this.nb=!1}};g.prototype.gj=function(b){this.ja&&(32760<b&&(b=32760),this.ak=this.Rj[2]-this.Cj-b*this.dv)};r.prototype.Fr=function(){var b=this.m,d=this.n;0!==this.sb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),
  b.bindFramebuffer(b.FRAMEBUFFER,d.kk),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),d.si=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),d.si=!1)};r.prototype.Jr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Ec)};r.prototype.Kr=function(){var b=this.m;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Ec);b.activeTexture(b.TEXTURE0)};r.prototype.Gr=function(){var b=this.Ko,
  d=this.n;d.Vh=b;d=d.pf;d.Jf&&d.Ji!==b&&(d.Ji=b,this.m.uniform1f(d.Jf,b))};r.prototype.Ar=function(){this.m.drawElements(this.m.TRIANGLES,this.cd,this.m.UNSIGNED_SHORT,this.sb)};r.prototype.Cr=function(){this.m.blendFunc(this.sb,this.cd)};r.prototype.Lr=function(){var b,d,c,a=this.n.wa,e=this.n.Xm;b=0;for(d=a.length;b<d;b++)c=a[b],b===e&&c.Gi?(c.Tl(this.G),c.Se=!0):c.Se=!1;jc(this.G,this.n.$j)};r.prototype.Br=function(){var b=this.m,d=this.n;this.Ec?(d.Xe===this.Ec&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,
  null),d.Xe=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,d.kk),d.si||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Ec,0)):(d.ja||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};r.prototype.ur=function(){var b=this.m,d=this.sb;0===d?(b.clearColor(this.G[0],this.G[1],this.G[2],this.G[3]),b.clear(b.COLOR_BUFFER_BIT)):1===d?(b.enable(b.SCISSOR_TEST),b.scissor(this.G[0],this.G[1],this.G[2],
  this.G[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};r.prototype.Er=function(){var b=this.m;0!==this.sb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};r.prototype.yr=function(){var b=this.m,d=this.n;d.ja&&b.disable(b.DEPTH_TEST);var c=d.wa[1];b.useProgram(c.yh);!c.Se&&c.Gi&&(c.Tl(d.$j),c.Se=!0);b.enableVertexAttribArray(c.yc);b.bindBuffer(b.ARRAY_BUFFER,d.pl);b.vertexAttribPointer(c.yc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.sb/
  4,this.cd);c=d.pf;b.useProgram(c.yh);0<=c.yc&&(b.enableVertexAttribArray(c.yc),b.bindBuffer(b.ARRAY_BUFFER,d.Hh[d.rd]),b.vertexAttribPointer(c.yc,d.ja?3:2,b.FLOAT,!1,0,0));0<=c.re&&(b.enableVertexAttribArray(c.re),b.bindBuffer(b.ARRAY_BUFFER,d.Dh[d.rd]),b.vertexAttribPointer(c.re,2,b.FLOAT,!1,0,0));d.ja&&b.enable(b.DEPTH_TEST)};r.prototype.Hr=function(){var b=this.m,d=this.n,c=d.wa[this.sb];d.Xm=this.sb;d.pf=c;b.useProgram(c.yh);!c.Se&&c.Gi&&(c.Tl(d.$j),c.Se=!0);c.Jf&&c.Ji!==d.Vh&&(c.Ji=d.Vh,b.uniform1f(c.Jf,
  d.Vh));0<=c.yc&&(b.enableVertexAttribArray(c.yc),b.bindBuffer(b.ARRAY_BUFFER,d.Hh[d.rd]),b.vertexAttribPointer(c.yc,d.ja?3:2,b.FLOAT,!1,0,0));0<=c.re&&(b.enableVertexAttribArray(c.re),b.bindBuffer(b.ARRAY_BUFFER,d.Dh[d.rd]),b.vertexAttribPointer(c.re,2,b.FLOAT,!1,0,0))};r.prototype.Dr=function(){var b=this.G;this.m.uniform4f(this.n.pf.Xk,b[0],b[1],b[2],b[3])};r.prototype.Ir=function(){var b,d,c=this.n.pf,a=this.m;b=this.G;c.$g&&this.n.Xe!==this.Ec&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
  this.Ec),this.n.Xe=this.Ec,a.activeTexture(a.TEXTURE0));var e=b[0];c.Zk&&e!==c.jo&&(c.jo=e,a.uniform1f(c.Zk,e));e=b[1];c.Yk&&e!==c.io&&(c.io=e,a.uniform1f(c.Yk,e));e=b[2];d=b[3];!c.bf||e===c.bo&&d===c.co||(c.bo=e,c.co=d,a.uniform2f(c.bf,e,d));e=b[4];d=b[5];!c.$e||e===c.$n&&d===c.ao||(c.$n=e,c.ao=d,a.uniform2f(c.$e,e,d));e=b[6];c.Zg&&e!==c.fo&&(c.fo=e,a.uniform1f(c.Zg,e));e=b[7];c.Yg&&e!==c.eo&&(c.eo=e,a.uniform1f(c.Yg,e));e=b[8];d=b[9];!c.dh||e===c.no&&d===c.oo||(c.no=e,c.oo=d,a.uniform2f(c.dh,e,
  d));e=b[10];d=b[11];!c.ah||e===c.ko&&d===c.lo||(c.ko=e,c.lo=d,a.uniform2f(c.ah,e,d));e=b[12];c.bh&&e!==c.mo&&(c.mo=e,a.uniform1f(c.bh,e));if(c.H.length)for(b=0,d=c.H.length;b<d;b++)e=this.rp[b],e!==c.Sk[b]&&(c.Sk[b]=e,a.uniform1f(c.H[b][1],e))};g.prototype.Pb=function(){this.qd===this.Zd.length&&this.Zd.push(new r(0,this));return this.Zd[this.qd++]};g.prototype.ee=function(){if(0!==this.qd&&!this.m.isContextLost()){var b=this.m;0<this.ql&&(b.bindBuffer(b.ARRAY_BUFFER,this.pl),b.bufferSubData(b.ARRAY_BUFFER,
  0,this.Vo.subarray(0,this.ql)),d&&0<=d.yc&&"<point>"===d.name&&b.vertexAttribPointer(d.yc,4,b.FLOAT,!1,0,0));if(0<this.Qd){var d=this.pf;b.bindBuffer(b.ARRAY_BUFFER,this.Hh[this.rd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Aj.subarray(0,this.Qd));d&&0<=d.yc&&"<point>"!==d.name&&b.vertexAttribPointer(d.yc,this.ja?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Dh[this.rd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.qj.subarray(0,this.Zf));d&&0<=d.re&&"<point>"!==d.name&&b.vertexAttribPointer(d.re,2,
  b.FLOAT,!1,0,0)}for(var c,b=0,d=this.qd;b<d;b++)switch(c=this.Zd[b],c.type){case 1:c.Ar();break;case 2:c.Jr();break;case 3:c.Gr();break;case 4:c.Cr();break;case 5:c.Lr();break;case 6:c.Br();break;case 7:c.ur();break;case 8:c.yr();break;case 9:c.Hr();break;case 10:c.Ir();break;case 11:c.Kr();break;case 12:c.Dr();break;case 13:c.Er();break;case 14:c.Fr()}this.ql=this.Zf=this.Qd=this.qd=0;this.si=this.nb=!1;this.rd++;4<=this.rd&&(this.rd=0)}};g.prototype.Vf=function(b){if(b!==this.Rn&&!this.Jg){var d=
  this.Pb();d.type=3;this.Rn=d.Ko=b;this.nb=!1}};g.prototype.kc=function(b){if(b!==this.ne){var d=this.Pb();d.type=2;this.ne=d.Ec=b;this.nb=!1}};g.prototype.ve=function(b,d){if((b!==this.Sn||d!==this.Qn)&&!this.Jg){var c=this.Pb();c.type=4;c.sb=b;c.cd=d;this.Sn=b;this.Qn=d;this.nb=!1}};g.prototype.jp=function(){this.ve(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};g.prototype.rh=function(b,d,c,a,e,m,n,f){15992<=this.Qd&&this.ee();var g=this.Qd,t=this.Zf,k=this.Aj,p=this.qj,h=this.ak;if(this.nb)this.Zd[this.qd-
  1].cd+=6;else{var l=this.Pb();l.type=1;l.sb=this.ja?g:g/2*3;l.cd=6;this.nb=!0}this.ja?(k[g++]=b,k[g++]=d,k[g++]=h,k[g++]=c,k[g++]=a,k[g++]=h,k[g++]=e,k[g++]=m,k[g++]=h,k[g++]=n,k[g++]=f,k[g++]=h):(k[g++]=b,k[g++]=d,k[g++]=c,k[g++]=a,k[g++]=e,k[g++]=m,k[g++]=n,k[g++]=f);p[t++]=0;p[t++]=0;p[t++]=1;p[t++]=0;p[t++]=1;p[t++]=1;p[t++]=0;p[t++]=1;this.Qd=g;this.Zf=t};g.prototype.ue=function(b,d,c,a,e,m,n,f,g){15992<=this.Qd&&this.ee();var t=this.Qd,k=this.Zf,p=this.Aj,h=this.qj,l=this.ak;if(this.nb)this.Zd[this.qd-
  1].cd+=6;else{var C=this.Pb();C.type=1;C.sb=this.ja?t:t/2*3;C.cd=6;this.nb=!0}var C=g.left,r=g.top,q=g.right;g=g.bottom;this.ja?(p[t++]=b,p[t++]=d,p[t++]=l,p[t++]=c,p[t++]=a,p[t++]=l,p[t++]=e,p[t++]=m,p[t++]=l,p[t++]=n,p[t++]=f,p[t++]=l):(p[t++]=b,p[t++]=d,p[t++]=c,p[t++]=a,p[t++]=e,p[t++]=m,p[t++]=n,p[t++]=f);h[k++]=C;h[k++]=r;h[k++]=q;h[k++]=r;h[k++]=q;h[k++]=g;h[k++]=C;h[k++]=g;this.Qd=t;this.Zf=k};g.prototype.Eb=function(b){if(this.Ug!==b){if(!this.wa[b]){if(0===this.Ug)return;b=0}var d=this.Pb();
  d.type=9;this.Ug=d.sb=b;this.nb=!1}};g.prototype.oh=function(b){b=this.wa[b];return!(!b.bf&&!b.$e)};g.prototype.sl=function(b){b=this.wa[b];return!!(b.bf||b.$e||b.Wm)};g.prototype.rl=function(b){return this.wa[b].Oc};g.prototype.mu=function(b){b=this.wa[b];return 0!==b.ik||0!==b.jk};g.prototype.Ts=function(b){return this.wa[b].ik};g.prototype.Us=function(b){return this.wa[b].jk};g.prototype.Vs=function(b,d){return this.wa[b].H[d][2]};g.prototype.Xi=function(b){return this.wa[b].Em};g.prototype.Wf=
  function(b,d,c,a,e,m,n,f,g,t,k,p,h,l,C){var r=this.wa[this.Ug],q,u;if(r.lt||C.length){q=this.Pb();q.type=10;q.G?jc(this.hc,q.G):q.G=ic();u=q.G;u[0]=d;u[1]=c;u[2]=a;u[3]=e;u[4]=m;u[5]=n;u[6]=f;u[7]=g;u[8]=t;u[9]=k;u[10]=p;u[11]=h;u[12]=l;r.$g?q.Ec=b:q.Ec=null;if(C.length)for(c=q.rp,c.length=C.length,b=0,d=C.length;b<d;b++)c[b]=C[b];this.nb=!1}};g.prototype.clear=function(b,d,c,a){var e=this.Pb();e.type=7;e.sb=0;e.G||(e.G=ic());e.G[0]=b;e.G[1]=d;e.G[2]=c;e.G[3]=a;this.nb=!1};g.prototype.clearRect=function(b,
  d,c,a){if(!(0>c||0>a)){var e=this.Pb();e.type=7;e.sb=1;e.G||(e.G=ic());e.G[0]=b;e.G[1]=d;e.G[2]=c;e.G[3]=a;this.nb=!1}};g.prototype.mp=function(b){if(this.ja&&(b=!!b,this.Jg!==b)){var d=this.Pb();d.type=14;d.sb=b?1:0;this.nb=!1;this.Jg=b;this.$i=null;this.Jg?this.Eb(2):this.Eb(0)}};g.prototype.lp=function(b){if(this.ja){var d=this.Pb();d.type=13;d.sb=b?1:0;this.nb=!1}};g.prototype.qn=function(){jc(this.Tk,u);this.Bc();this.nc();var b=this.width/2,d=this.height/2;this.rh(-b,d,b,d,b,-d,-b,-d);jc(u,
  this.hc);this.nc()};g.prototype.kp=function(b,d,c){this.Eb(3);var a=this.Pb();a.type=12;a.G||(a.G=ic());a.G[0]=b;a.G[1]=d;a.G[2]=c;a.G[3]=1;this.nb=!1};g.prototype.Iu=function(){this.Eb(0)};g.prototype.tu=function(){this.Eb(2)};g.prototype.lu=function(){this.ee();this.m.flush()};var q=[],f={};g.prototype.lr=function(){T(q);f={}};g.prototype.Wn=function(b,d,c){var a;a=!1;d=!!d;var e=b.src+","+a+","+d+(a?",undefined":""),m=null;if("undefined"!==typeof b.src&&f.hasOwnProperty(e))return m=f[e],m.Qh++,
  m;this.ee();var n=this.m,g=ia(b.width)&&ia(b.height),m=n.createTexture();n.bindTexture(n.TEXTURE_2D,m);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=n.RGBA,t=n.RGBA,k=n.UNSIGNED_BYTE;if(c&&!this.vc)switch(c){case 1:t=h=n.RGB;break;case 2:k=n.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=n.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=h=n.RGB,k=n.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!g&&a){c=document.createElement("canvas");c.width=ja(b.width);c.height=ja(b.height);var p=c.getContext("2d");"undefined"!==
  typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=d:(p.webkitImageSmoothingEnabled=d,p.mozImageSmoothingEnabled=d,p.msImageSmoothingEnabled=d);p.drawImage(b,0,0,b.width,b.height,0,0,c.width,c.height);n.texImage2D(n.TEXTURE_2D,0,h,t,k,c)}else n.texImage2D(n.TEXTURE_2D,0,h,t,k,b);a?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,
  n.CLAMP_TO_EDGE));d?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),(g||2<=this.version)&&this.cn?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR_MIPMAP_LINEAR),n.generateMipmap(n.TEXTURE_2D)):n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST));n.bindTexture(n.TEXTURE_2D,null);this.ne=null;m.He=b.width;m.Ge=b.height;m.Qh=1;m.Qm=e;q.push(m);return f[e]=
  m};g.prototype.Zb=function(b,d,c,a){this.ee();var e=this.m;this.vc&&(a=!1);var m=e.createTexture();e.bindTexture(e.TEXTURE_2D,m);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,d,0,e.RGBA,a?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,
  null);this.ne=null;m.He=b;m.Ge=d;q.push(m);return m};g.prototype.av=function(b,d,c){this.ee();var a=this.m;this.vc&&(c=!1);a.bindTexture(a.TEXTURE_2D,d);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,null);this.ne=null};g.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Qh&&1<b.Qh?
  b.Qh--:(this.ee(),b===this.ne&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.ne=null),b===this.Xe&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Xe=null),Da(q,b),"undefined"!==typeof b.Qm&&delete f[b.Qm],this.m.deleteTexture(b)))};g.prototype.Cc=function(b){if(b!==this.$i){var d=this.Pb();d.type=6;this.$i=d.Ec=b;this.nb=!1}};pb=g})();
  (function(){function g(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.fc=(this.ti=/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.eb=!!a.dc;this.Jn="undefined"!==typeof window.AppMobi||
  this.eb;this.uc=!!window.c2cocoonjs;this.Mc=!!window.c2ejecta;this.uc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Mc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Ba=this.eb||this.uc||this.Mc;this.Lg=
  /edge\//i.test(navigator.userAgent);this.vc=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Lg;this.Ln=/tizen/i.test(navigator.userAgent);this.qi=/android/i.test(navigator.userAgent)&&!this.Ln&&!this.vc&&!this.Lg;this.Pn=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.vc&&!this.Lg;this.Ft=/ipad/i.test(navigator.userAgent);this.Df=this.Pn||this.Ft||this.Mc;this.Ig=(/chrome/i.test(navigator.userAgent)||
  /chromium/i.test(navigator.userAgent))&&!this.vc&&!this.Lg;this.In=/amazonwebappplatform/i.test(navigator.userAgent);this.wt=/firefox/i.test(navigator.userAgent);this.At=/safari/i.test(navigator.userAgent)&&!this.Ig&&!this.vc&&!this.Lg;this.Bt=/windows/i.test(navigator.userAgent);this.je="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Nn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
  this.Dt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ke=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Qk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Pk=!!window.cr_windows10;this.Mn=this.Nn||this.Dt||this.Qk||this.Pk;this.ut=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ri=this.qi&&!this.Ig&&!this.ti&&!this.wt&&!this.In&&!this.Ba;this.devicePixelRatio=
  1;this.ie=this.fc||this.ti||this.Jn||this.uc||this.qi||this.Df||this.ke||this.Qk||this.ut||this.Ln||this.Mc;this.ie||(this.ie=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Pg=!!(this.Df&&this.fc&&window.webkit);this.Dk=null;this.nt="";this.Pg&&(this.Dk=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.je||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
  !/nwjs/i.test(navigator.userAgent)||(this.je=!0);this.canvas=a;this.Sm=document.getElementById("c2canvasdiv");this.n=this.m=null;this.zk="(unavailable)";this.ja=!1;this.Ne=0;this.ra=null;this.ok="";this.fi=!1;this.Co=this.Do=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.je&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=
  function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.ri&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.r=this.width;this.q=this.height;this.Th=this.width;this.sg=this.height;this.Ff=window.innerWidth;this.Ef=window.innerHeight;this.W=!0;this.Og=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.k=[];this.qa=[];this.Hf=
  {};this.Nc=[];this.hk={};this.vd=[];this.fg=[];this.uj=[];this.Xq=[];this.Yq=[];this.Ke={};this.Mk=this.he=!1;this.Ad=0;this.Lk=this.Ok=!1;this.Wc=[];this.Kg=!1;this.Di=this.Dl="";this.Pa=null;this.Bd="";this.Bh=this.vp=!1;this.ei=[];this.Me=this.Le=0;this.so=30;this.Zj=this.eh=0;this.$f=1;this.ob=new eb;this.Rd=new eb;this.Mi=this.ii=this.wg=this.Od=this.Ze=this.nk=this.xi=0;this.lg=null;this.ek=[];this.gk=[];this.ai=-1;this.$k=[[]];this.Pl=this.Hi=0;this.Zi(null);this.fh=[];this.gh=-1;this.xg=this.xo=
  this.jh=0;this.Ch=[];this.Ml=this.ul=-1;this.Sg=!0;this.If=0;this.Mg=!1;this.Lu=0;this.nf=null;this.dd=this.An=!1;this.Bo=new da;this.gl=new da;this.hl=new da;this.dp=[];new gb([]);new gb([]);this.mf=[];this.Eg={};this.ae={};this.Xd={};this.eg={};this.Nm={};this.Vn=this.Ci=this.Ca=this.Oa=this.Un=this.Bi=this.X=null;this.bg=this.Rk=!1;this.pk=[null,null];this.Qe=0;this.lk="";this.Ed={};this.zh=this.pe=null;this.wp="";this.Li=[];this.su()}}function h(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:
  a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,b,e,d){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=e}}catch(n){d(n)}}function q(a,b,e){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=e;c.onsuccess=function(c){c=
  c.target.result;c.onerror=e;var d=c.transaction(["saves"]).objectStore("saves").get(a);d.onsuccess=function(){d.result?b(d.result.data):b(null)}}}catch(d){e(d)}}function f(){A("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof da||a[b]&&"undefined"!==typeof a[b].cw||"spriteCreatedDestroyCallback"!==
  b&&(e[b]=a[b]);return e}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.su=function(){var a=this;if(this.Pg){var b=function(){a.Cs(function(b){a.Xg(JSON.parse(b))},function(){alert("Error fetching data.js")})};this.Dk?this.Dk.startServer({port:0,localhost_only:!0},function(e){a.nt=e;b()},function(a){console.log("Error starting local server: "+a+". Video playback will not work.");
  b()}):(console.log("Local server unavailable. Video playback will not work."),b())}else{var e;this.ke?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var c="data.js";if(this.Nn||this.ke||this.Qk||this.Pk)c="data.json";e.open("GET",c,!0);var d=!1;if(!this.Ba&&"response"in e&&"responseType"in e)try{e.responseType="json",d="json"===e.responseType}catch(n){d=!1}if(!d&&"responseType"in e)try{e.responseType="text"}catch(k){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.ke?
  e.onreadystatechange=function(){4===e.readyState&&a.Xg(JSON.parse(e.responseText))}:(e.onload=function(){if(d)a.Xg(e.response);else if(a.Mc){var b=e.responseText,b=b.substr(b.indexOf("{"));a.Xg(JSON.parse(b))}else a.Xg(JSON.parse(e.responseText))},e.onerror=function(a){fa("Error requesting "+c+":");fa(a)});e.send()}};g.prototype.qt=function(){var a=this,b,e,c,d,n,k,m,f,p;this.xf=(!this.Ba||this.Mc||this.fc)&&this.Yu&&!this.ri;0===this.zb&&this.Df&&(this.xf=!1);this.devicePixelRatio=this.xf?window.devicePixelRatio||
  window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.jb();0<this.zb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Rt();A("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.n.En();a.n.Kd(a.n.width,a.n.height,!0);a.Oa=null;a.Ca=null;a.pk[0]=null;a.pk[1]=null;a.St();a.W=!0;A("[Construct 2] WebGL context restored");
  window.cr_setSuspended(!1)},!1);try{this.Tr&&(this.uc||this.Mc||!this.Ba)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl2",b)||this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(g){}if(this.m){if(b=this.m.getExtension("WEBGL_debug_renderer_info"))this.zk=this.m.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.m.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.ja&&(this.zk+=
  " [front-to-back enabled]");this.Ba||(this.gb=document.createElement("canvas"),jQuery(this.gb).appendTo(this.canvas.parentNode),this.gb.oncontextmenu=function(){return!1},this.gb.onselectstart=function(){return!1},this.gb.width=Math.round(this.Th*this.devicePixelRatio),this.gb.height=Math.round(this.sg*this.devicePixelRatio),jQuery(this.gb).css({width:this.Th+"px",height:this.sg+"px"}),this.Wo(),this.ol=this.gb.getContext("2d"));this.n=new pb(this.m,this.ie,this.ja);this.n.Kd(this.canvas.width,this.canvas.height);
  this.n.cn=0!==this.Mr;this.ra=null;b=0;for(e=this.k.length;b<e;b++)for(n=this.k[b],c=0,d=n.C.length;c<d;c++)m=n.C[c],m.Ga=this.n.yk(m.id),m.Oc=this.n.rl(m.Ga),this.bg=this.bg||this.n.oh(m.Ga);b=0;for(e=this.Nc.length;b<e;b++){f=this.Nc[b];c=0;for(d=f.C.length;c<d;c++)m=f.C[c],m.Ga=this.n.yk(m.id),m.Oc=this.n.rl(m.Ga);f.Rc();c=0;for(d=f.D.length;c<d;c++){p=f.D[c];n=0;for(k=p.C.length;n<k;n++)m=p.C[n],m.Ga=this.n.yk(m.id),m.Oc=this.n.rl(m.Ga),this.bg=this.bg||this.n.oh(m.Ga);p.Rc()}}}else{if(0<this.zb&&
  this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ra=AppMobi.canvas.getContext("2d");try{this.ra.samplingMode=this.xa?"smooth":"sharp",this.ra.globalScale=1,this.ra.HTML5CompatibilityMode=!0,this.ra.imageSmoothingEnabled=this.xa}catch(t){}0!==this.width&&0!==this.height&&(this.ra.width=this.width,this.ra.height=this.height)}this.ra||(this.uc?(b={antialias:!!this.xa,alpha:!0},this.ra=this.canvas.getContext("2d",b)):(b={alpha:!0},
  this.ra=this.canvas.getContext("2d",b)),this.fj(this.ra,this.xa));this.ol=this.gb=null}this.Fp=function(b){a.tb(!1,b)};window==window.top||this.Ba||this.Mn||this.ke||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.uc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(A("Reloading for continuous preview"),
  this.Di="__c2_continuouspreview",this.Bh=!0),this.cu&&!this.ie&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.Ba||(b=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
  b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.zb&&this.xf&&1<this.devicePixelRatio&&this.setSize(this.Ra,this.Qa,!0);this.Jp();this.it();this.go();this.ma={}};g.prototype.setSize=function(a,b,e){var c=0,d=0,n=0,k=0,k=0;if(this.Ff!==a||this.Ef!==b||e){this.Ff=a;this.Ef=b;var m=this.zb,f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
  document.fullScreen||this.Mg)&&!this.fc;if(f||0!==this.zb||e)f&&0<this.Qe&&(m=this.Qe),e=this.devicePixelRatio,4<=m?(n=this.Ra/this.Qa,a/b>n?(n*=b,5===m?(k=n*e/this.Ra,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),n=this.Ra*k/e,k=this.Qa*k/e,c=(a-n)/2,d=(b-k)/2,a=n,b=k):(c=(a-n)/2,a=n)):(k=a/n,5===m?(k=k*e/this.Qa,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),n=this.Ra*k/e,k=this.Qa*k/e,c=(a-n)/2,d=(b-k)/2,a=n):d=(b-k)/2,b=k),f&&!this.je&&(d=c=0)):this.je&&this.Mg&&0===this.rn&&(c=Math.floor((a-this.Ra)/
  2),d=Math.floor((b-this.Qa)/2),a=this.Ra,b=this.Qa),2>m&&(this.kg=e),this.Th=Math.round(a),this.sg=Math.round(b),this.width=Math.round(a*e),this.height=Math.round(b*e),this.W=!0,this.Sp?(this.r=this.width,this.q=this.height,this.ac=!0):this.width<this.Ra&&this.height<this.Qa||1===m?(this.r=this.width,this.q=this.height,this.ac=!0):(this.r=this.Ra,this.q=this.Qa,this.ac=!1,2===m?(n=this.Ra/this.Qa,m=this.Ff/this.Ef,m<n?this.r=this.q*m:m>n&&(this.q=this.r/m)):3===m&&(n=this.Ra/this.Qa,m=this.Ff/this.Ef,
  m>n?this.r=this.q*m:m<n&&(this.q=this.r/m))),this.Sm&&!this.Ba&&(jQuery(this.Sm).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*e),this.Mc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=
  Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.xf&&!this.Ba&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.gb&&(this.gb.width=Math.round(a*e),this.gb.height=Math.round(b*e),this.gb.style.width=this.Th+"px",this.gb.style.height=this.sg+"px"),this.n&&this.n.Kd(Math.round(a*e),Math.round(b*e)),this.eb&&this.ra&&(this.ra.width=Math.round(a),this.ra.height=Math.round(b)),this.ra&&this.fj(this.ra,this.xa),this.Jp(),this.Pn&&!this.fc&&
  window.scrollTo(0,0)}};g.prototype.Jp=function(){if(this.dr&&0!==this.ml){var a="portrait";2===this.ml&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",
  b)}}};g.prototype.Rt=function(){this.n.lr();this.Rk=!0;var a,b,e;a=0;for(b=this.k.length;a<b;a++)e=this.k[a],e.jl&&e.jl()};g.prototype.St=function(){this.Rk=!1;var a,b,e;a=0;for(b=this.k.length;a<b;a++)e=this.k[a],e.Ho&&e.Ho()};g.prototype.Wo=function(){if(!this.Ba){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Mg)&&!this.fc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.gb).css(a)}};
  var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var b;if(a&&!this.Og)for(A("[Construct 2] Suspending"),this.Og=!0,-1!==this.ul&&c&&c(this.ul),-1!==this.Ml&&clearTimeout(this.Ml),a=0,b=this.Ch.length;a<b;a++)this.Ch[a](!0);else if(!a&&this.Og){A("[Construct 2] Resuming");this.Og=!1;this.xi=ab();this.Ze=ab();a=this.eh=this.ii=0;for(b=this.Ch.length;a<
  b;a++)this.Ch[a](!1);this.tb(!1)}};g.prototype.Cm=function(a){this.Ch.push(a)};g.prototype.Vd=function(a){return this.Li[a]};g.prototype.Xg=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.ln=a[1];this.zb=a[12];this.rn=a[12];this.Ra=a[10];this.Qa=a[11];this.Ro=this.Ra/2;this.So=this.Qa/2;this.Ba&&!this.Mc&&(4<=a[12]||0===a[12])&&(A("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.rn=this.zb=
  3);this.Vl=a[18];this.qe=a[19];if(0===this.qe){var b=new Image;b.crossOrigin="anonymous";this.np(b,"loading-logo.png");this.pe={Ii:b}}else if(4===this.qe){b=new Image;b.src="";var e=new Image;e.src="";var c=new Image;c.src="";var d=new Image;d.src="";var n=new Image;n.src="";var k=new Image;k.src="";var m=new Image;m.src="";var f=new Image;f.src="";var p=new Image;p.src="";var g=new Image;g.src="";var t=new Image;t.src="";var z=new Image;z.src="";this.pe={Ii:[b,e,c,d],iu:[n,k,m,f],cv:[p,g,t,z]}}this.jh=
  a[21];this.Li=nc();this.ld=new X(this);b=0;for(e=a[2].length;b<e;b++)m=a[2][b],c=this.Vd(m[0]),qb(m,c.prototype),f=new c(this),f.kj=m[1],f.le=m[2],f.iw=m[5],f.to=m[9],f.V&&f.V(),this.plugins.push(f);this.Li=nc();b=0;for(e=a[3].length;b<e;b++){m=a[3][b];n=this.Vd(m[1]);f=null;c=0;for(d=this.plugins.length;c<d;c++)if(this.plugins[c]instanceof n){f=this.plugins[c];break}p=new f.za(f);p.name=m[0];p.M=m[2];p.Jk=m[3].slice(0);p.$u=m[3].length;p.er=m[4];p.Gs=m[5];p.K=m[11];p.M?(p.ro=[],p.wd=this.xg++,p.na=
  null):(p.ro=null,p.wd=-1,p.na=[]);p.ci=null;p.sf=null;p.dn=null;p.wc=!1;p.Gb=null;m[6]?(p.Cp=m[6][0],p.Dp=m[6][1],p.Pu=m[6][2]):(p.Cp=null,p.Dp=0,p.Pu=0);m[7]?p.Fb=m[7]:p.Fb=null;p.index=b;p.d=[];p.Xh=[];p.Nd=[new rb(p)];p.Xc=0;p.Yc=null;p.qr=0;p.Yf=!0;p.vj=sb;p.Ms=tb;p.Rs=ub;p.da=vb;p.qh=wb;p.Rf=yb;p.Id=zb;p.ki=Ab;p.qk=Bb;p.sk=Cb;p.od=Db;p.uk=Eb;p.Um=new ib(this.Ra,this.Qa);p.Fm=!0;p.Gm=!1;p.ma={};p.toString=Fb;p.qa=[];c=0;for(d=m[8].length;c<d;c++){g=m[8][c];t=this.Vd(g[1]);z=null;n=0;for(k=this.qa.length;n<
  k;n++)if(this.qa[n]instanceof t){z=this.qa[n];break}z||(z=new t(this),z.uo=[],z.el=new da,z.V&&z.V(),this.qa.push(z));-1===z.uo.indexOf(p)&&z.uo.push(p);n=new z.za(z,p);n.name=g[0];n.K=g[2];n.V();p.qa.push(n)}p.global=m[9];p.Nk=m[10];p.C=[];c=0;for(d=m[12].length;c<d;c++)p.C.push({id:m[12][c][0],name:m[12][c][1],Ga:-1,Oc:!1,Sb:!0,index:c});p.xw=m[13];this.Vl&&!p.M&&!p.Nk&&f.le||p.V();p.name&&(this.types[p.name]=p);this.k.push(p);f.kj&&(c=new f.la(p),c.uid=this.jh++,c.$o=this.xo++,c.Ue=0,c.Cg=Gb,c.toString=
  Hb,c.Y=m[14],c.V(),p.d.push(c),this.Ed[c.uid.toString()]=c)}b=0;for(e=a[4].length;b<e;b++)for(n=a[4][b],k=this.k[n[0]],c=1,d=n.length;c<d;c++)m=this.k[n[c]],m.na.push(k),k.ro.push(m);b=0;for(e=a[28].length;b<e;b++){n=a[28][b];k=[];c=0;for(d=n.length;c<d;c++)k.push(this.k[n[c]]);c=0;for(d=k.length;c<d;c++)k[c].wc=!0,k[c].Gb=k}if(0<this.xg)for(b=0,e=this.k.length;b<e;b++)if(m=this.k[b],!m.M&&m.na.length){m.ci=Array(this.xg);m.sf=Array(this.xg);m.dn=Array(this.xg);p=[];c=z=t=g=0;for(d=m.na.length;c<
  d;c++)for(f=m.na[c],m.ci[f.wd]=g,g+=f.$u,m.sf[f.wd]=t,t+=f.er,m.dn[f.wd]=z,z+=f.Gs,n=0,k=f.C.length;n<k;n++)p.push(xa({},f.C[n]));m.C=p.concat(m.C);c=0;for(d=m.C.length;c<d;c++)m.C[c].index=c}b=0;for(e=a[5].length;b<e;b++)m=a[5][b],c=new Ib(this,m),this.Hf[c.name]=c,this.Nc.push(c);b=0;for(e=a[6].length;b<e;b++)m=a[6][b],c=new Jb(this,m),this.hk[c.name]=c,this.vd.push(c);b=0;for(e=this.vd.length;b<e;b++)this.vd[b].ya();b=0;for(e=this.vd.length;b<e;b++)this.vd[b].Sl();b=0;for(e=this.uj.length;b<e;b++)this.uj[b].ya();
  T(this.uj);this.cr=a[7];this.lk=a[8];this.Hd=a[9];this.kg=1;this.Tr=a[13];this.xa=a[14];this.Tm=a[15];this.Yu=a[17];this.ml=a[20];this.dr=0<this.ml;this.cu=a[22];this.ac=this.Sp=a[23];this.Mr=a[24];this.ju=a[25];this.ja=a[27]&&!this.vc;this.lj=Date.now();T(this.Li);this.qt()};var a=!1;g.prototype.bv=function(b,e){b.cocoonLazyLoad=!0;b.onerror=function(e){a=b.Pm=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",e)};this.Mc?b.src=e:b.src||("undefined"!==typeof XAPKReader?
  XAPKReader.get(e,function(a){b.src=a},function(c){a=b.Pm=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",c)}):(b.crossOrigin="anonymous",this.np(b,e)));this.fg.push(b)};g.prototype.Es=function(a){var b,e;b=0;for(e=this.fg.length;b<e;b++)if(this.fg[b].nr===a)return this.fg[b];return null};var e=0,m=!1;g.prototype.it=function(){this.nf&&(e=this.nf.Gu(this.cr))};g.prototype.Hm=function(){var a=e,b=0,c=0,d=!0,n,k,c=0;for(n=this.fg.length;c<n;c++){k=this.fg[c];
  var p=k.mr;if(!p||0>=p)p=5E4;a+=p;k.src&&(k.complete||k.loaded)&&!k.Pm?b+=p:d=!1}d&&this.ju&&this.nf&&(m||(this.nf.Mu(),m=!0),c=this.nf.Ss(),b+=c,c<e&&(d=!1));this.Ab=0==a?1:b/a;return d};var n=!1;g.prototype.go=function(){if(this.ra||this.n){var b=this.ra||this.ol;this.gb&&this.Wo();var e=window.innerWidth,c=window.innerHeight;this.Ff===e&&this.Ef===c||this.setSize(e,c);this.Ab=0;this.Tn=-1;var k=this;if(this.Hm()&&(4!==this.qe||n))this.jt();else{c=Date.now()-this.lj;if(b){var m=this.width,p=this.height,
  e=this.devicePixelRatio;if(3>this.qe&&(this.uc||500<=c&&this.Tn!=this.Ab)){b.clearRect(0,0,m,p);var c=m/2,p=p/2,m=0===this.qe&&this.pe.Ii.complete,f=40*e,g=0,t=80*e,z;if(m){var h=this.pe.Ii,t=h.width*e;z=h.height*e;f=t/2;g=z/2;b.drawImage(h,oa(c-f),oa(p-g),t,z)}1>=this.qe?(c=oa(c-f)+.5,p=oa(p+(g+(m?12*e:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(c,p,Math.floor(t*this.Ab),6*e),b.strokeStyle="black",b.strokeRect(c,p,t,6*e),b.strokeStyle="white",b.strokeRect(c-1*e,p-1*e,t+2*e,8*e)):2===this.qe&&
  (b.font=this.Mc?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.ww="middle",e=Math.round(100*this.Ab)+"%",m=b.measureText?b.measureText(e):null,b.fillText(e,c-(m?m.width:0)/2,p));this.Tn=this.Ab}else if(4===this.qe){this.Rr(b);d?d(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.uc?10:100)}}};var z=-1,x="undefined"===typeof cr_is_preview?200:0,t=!0,k=!1,p=0,S=0,B="undefined"===typeof cr_is_preview?3E3:0,C=null,N=null,Q=0;g.prototype.Rr=function(b){if(!n){for(var e=
  Math.ceil(this.width),c=Math.ceil(this.height),d=this.pe.Ii,m=this.pe.iu,f=this.pe.cv,g=0;4>g;++g)if(!d[g].complete||!m[g].complete||!f[g].complete)return;0===Q&&(z=Date.now());var g=Date.now(),l=!1,r=b,q,u;t||k?(b.clearRect(0,0,e,c),C&&C.width===e&&C.height===c||(C=document.createElement("canvas"),C.width=e,C.height=c,N=C.getContext("2d")),r=N,l=!0,t&&1===Q&&(z=Date.now())):b.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,e,c);256<this.sg?(q=Ea(.22*c,105,.6*e),u=.25*q,r.drawImage(h(m,q),.5*e-
  q/2,.2*c-u/2,q,u),u=q=Math.min(.395*c,.95*e),r.drawImage(h(d,q),.5*e-q/2,.485*c-u/2,q,u),q=Ea(.22*c,105,.6*e),u=.25*q,r.drawImage(h(f,q),.5*e-q/2,.868*c-u/2,q,u),r.fillStyle="#3C3C3C",q=e,u=Math.max(.005*c,2),r.fillRect(0,.8*c-u/2,q,u),r.fillStyle=a?"red":"#E0FF65",q=e*this.Ab,r.fillRect(.5*e-q/2,.8*c-u/2,q,u)):(u=q=.55*c,r.drawImage(h(d,q),.5*e-q/2,.45*c-u/2,q,u),r.fillStyle="#3C3C3C",q=e,u=Math.max(.005*c,2),r.fillRect(0,.85*c-u/2,q,u),r.fillStyle=a?"red":"#E0FF65",q=e*this.Ab,r.fillRect(.5*e-q/
  2,.85*c-u/2,q,u));l&&(t?b.globalAlpha=0===Q?0:Math.min((g-z)/300,1):k&&(b.globalAlpha=Math.max(1-(g-S)/300,0)),b.drawImage(C,0,0,e,c));t&&300<=g-z&&2<=Q&&(t=!1,p=g);!t&&g-p>=B&&!k&&1<=this.Ab&&(k=!0,S=g);if(k&&g-S>=300+x||"undefined"!==typeof cr_is_preview&&1<=this.Ab&&500>Date.now()-z)n=!0,k=t=!1,this.pe=N=C=null;++Q}};g.prototype.jt=function(){this.gb&&(this.canvas.parentNode.removeChild(this.gb),this.gb=this.ol=null);this.lj=Date.now();this.Ze=ab();var a,b,e;if(this.Vl)for(a=0,b=this.k.length;a<
  b;a++)e=this.k[a],e.M||e.Nk||!e.ea.le||e.V();else this.Sg=!1;a=0;for(b=this.Nc.length;a<b;a++)this.Nc[a].or();2<=this.zb&&(a=this.Ra/this.Qa,b=this.width/this.height,this.kg=2!==this.zb&&b>a||2===this.zb&&b<a?this.height/this.Qa:this.width/this.Ra);this.ln?this.Hf[this.ln].Il():this.Nc[0].Il();this.Vl||(this.If=1,this.trigger(X.prototype.e.fm,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.k.length;a<
  b;a++)e=this.k[a],e.Eo&&e.Eo();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.tb(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};g.prototype.tb=function(a,b,e){if(this.X){var c=ab();if(e||!this.Og||a){a||(d?this.ul=d(this.Fp):this.Ml=setTimeout(this.Fp,this.ie?1:16));b=b||c;var n=this.zb;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.fc)||this.Mg)&&0<this.Qe&&
  (n=this.Qe);if(0<n){var n=window.innerWidth,k=window.innerHeight;this.Ff===n&&this.Ef===k||this.setSize(n,k)}this.Ba||(e?(this.fi||(this.ok=jQuery(this.canvas).css("margin")||"0",this.fi=!0),this.Ig||this.je||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.fi?(this.Ig||this.je||jQuery(this.canvas).css("margin",this.ok),this.ok="",this.fi=!1,0===
  this.zb&&this.setSize(Math.round(this.Do/this.devicePixelRatio),Math.round(this.Co/this.devicePixelRatio),!0)):(this.Do=this.width,this.Co=this.height));this.Sg&&(e=this.Hm(),this.If=this.Ab,e&&(this.Sg=!1,this.Ab=1,this.trigger(X.prototype.e.fm,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Kt(b);!this.W&&!this.uc||this.Rk||this.Bh||a||(this.W=!1,this.n?this.$b():this.Zc(),this.zh&&(this.canvas&&this.canvas.toDataURL&&(this.wp=this.canvas.toDataURL(this.zh[0],this.zh[1]),window.cr_onSnapshot&&
  window.cr_onSnapshot(this.wp),this.trigger(X.prototype.e.qq,null)),this.zh=null));this.hw||(this.Od++,this.wg++,this.ii++);this.eh+=ab()-c}}};g.prototype.Kt=function(a){var b,e,c,d,n,k,m,p;1E3<=a-this.Ze&&(this.Ze+=1E3,1E3<=a-this.Ze&&(this.Ze=a),this.nk=this.ii,this.ii=0,this.Zj=this.eh,this.eh=0);b=0;0!==this.xi&&(b=a-this.xi,0>b&&(b=0),this.Me=b/=1E3,.5<this.Me?this.Me=0:this.Me>1/this.so&&(this.Me=1/this.so));this.xi=a;this.Le=this.Me*this.$f;this.ob.add(this.Le);this.Rd.add(b);a=(document.mozFullScreen||
  document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Mg)&&!this.fc;2<=this.zb||a&&0<this.Qe?(b=this.Ra/this.Qa,e=this.width/this.height,c=this.zb,a&&0<this.Qe&&(c=this.Qe),this.kg=2!==c&&e>b||2===c&&e<b?this.height/this.Qa:this.width/this.Ra,this.X&&(this.X.hp(this.X.scrollX),this.X.ip(this.X.scrollY))):this.kg=this.xf?this.devicePixelRatio:1;this.jb();this.Ad++;this.ld.wu();this.Ad--;this.jb();this.Ad++;e=this.Bo.ze();a=0;for(b=e.length;a<b;a++)e[a].rw();a=0;for(b=
  this.k.length;a<b;a++)if(k=this.k[a],!k.M&&(k.qa.length||k.na.length))for(e=0,c=k.d.length;e<c;e++)for(m=k.d[e],d=0,n=m.F.length;d<n;d++)m.F[d].tb();a=0;for(b=this.k.length;a<b;a++)if(k=this.k[a],!k.M&&(k.qa.length||k.na.length))for(e=0,c=k.d.length;e<c;e++)for(m=k.d[e],d=0,n=m.F.length;d<n;d++)p=m.F[d],p.hu&&p.hu();e=this.gl.ze();a=0;for(b=e.length;a<b;a++)e[a].tb();this.Ad--;this.kt();for(a=0;this.lg&&10>a++;)this.an(this.lg);a=0;for(b=this.vd.length;a<b;a++)this.vd[a].Ck=!1;this.X.Oe&&this.X.Oe.Ea();
  T(this.dp);this.Ad++;a=0;for(b=this.k.length;a<b;a++)if(k=this.k[a],!k.M&&(k.qa.length||k.na.length))for(e=0,c=k.d.length;e<c;e++)for(m=k.d[e],d=0,n=m.F.length;d<n;d++)p=m.F[d],p.Kl&&p.Kl();e=this.hl.ze();a=0;for(b=e.length;a<b;a++)e[a].Kl();this.Ad--};g.prototype.an=function(a){var b=this.X;this.X.Nu();var e,c,d;if(this.n)for(e=0,c=this.k.length;e<c;e++)d=this.k[e],d.M||!d.Mp||d.global&&0!==d.d.length||-1!==a.Hg.indexOf(d)||d.Mp();b==a&&T(this.ld.Rb);T(this.dp);this.ep(!0);a.Il();this.ep(!1);this.W=
  !0;this.jb()};g.prototype.ep=function(a){var b,e,c,d,n,k,m,p,f;b=0;for(e=this.qa.length;b<e;b++)c=this.qa[b],a?c.kh&&c.kh():c.lh&&c.lh();b=0;for(e=this.k.length;b<e;b++)if(c=this.k[b],c.global||c.ea.kj)for(d=0,n=c.d.length;d<n;d++)if(k=c.d[d],a?k.kh&&k.kh():k.lh&&k.lh(),k.F)for(m=0,p=k.F.length;m<p;m++)f=k.F[m],a?f.kh&&f.kh():f.lh&&f.lh()};g.prototype.Ll=function(a){this.gl.add(a)};g.prototype.Qu=function(a){this.hl.add(a)};g.prototype.wn=function(a){return a&&-1!==a.ih?this.Me*a.ih:this.Le};g.prototype.Zc=
  function(){this.X.Zc(this.ra);this.eb&&this.ra.present()};g.prototype.$b=function(){this.ja&&(this.Ne=1,this.X.qf(this.n));this.X.$b(this.n);this.n.lu()};g.prototype.Vq=function(a){a&&this.ek.push(a)};g.prototype.mi=function(a){a=a.toString();return this.Ed.hasOwnProperty(a)?this.Ed[a]:null};var G=[];g.prototype.Ae=function(a){var b,e;b=a.type.name;var c=null;if(this.Ke.hasOwnProperty(b)){if(c=this.Ke[b],c.contains(a))return}else c=G.length?G.pop():new da,this.Ke[b]=c;c.add(a);this.he=!0;if(a.wc)for(b=
  0,e=a.siblings.length;b<e;b++)this.Ae(a.siblings[b]);this.Mk&&c.dg.push(a);this.Lk||(this.Ad++,this.trigger(Object.getPrototypeOf(a.type.ea).e.rq,a),this.Ad--)};g.prototype.jb=function(){if(this.he){var a,b,e,c,d,n;this.Mk=!0;e=0;for(d=this.Wc.length;e<d;++e)for(a=this.Wc[e],b=a.type,b.d.push(a),c=0,n=b.na.length;c<n;++c)b.na[c].d.push(a),b.na[c].Yf=!0;T(this.Wc);this.mq();$a(this.Ke);this.he=this.Mk=!1}};g.prototype.mq=function(){for(var a in this.Ke)this.Ke.hasOwnProperty(a)&&this.Zp(this.Ke[a])};
  g.prototype.Zp=function(a){var b=a.ze(),e=b[0].type,c,d,n,k,m,p;bb(e.d,a);e.Yf=!0;0===e.d.length&&(e.Gm=!1);c=0;for(d=e.na.length;c<d;++c)p=e.na[c],bb(p.d,a),p.Yf=!0;c=0;for(d=this.ld.Rb.length;c<d;++c)if(m=this.ld.Rb[c],m.Qb.hasOwnProperty(e.index)&&bb(m.Qb[e.index].We,a),!e.M)for(n=0,k=e.na.length;n<k;++n)p=e.na[n],m.Qb.hasOwnProperty(p.index)&&bb(m.Qb[p.index].We,a);if(m=b[0].i){if(m.oc)for(n=m.d,c=0,d=n.length;c<d;++c)k=n[c],a.contains(k)&&(k.Ha(),m.hb.update(k,k.Bb,null),k.Bb.set(0,0,-1,-1));
  bb(m.d,a);m.wh(0)}for(c=0;c<b.length;++c)this.Yp(b[c],e);a.clear();G.push(a);this.W=!0};g.prototype.Yp=function(a,b){var e,c,d;e=0;for(c=this.ek.length;e<c;++e)this.ek[e](a);a.be&&b.Um.update(a,a.be,null);(e=a.i)&&e.Tf(a,!0);if(a.F)for(e=0,c=a.F.length;e<c;++e)d=a.F[e],d.Of&&d.Of(),d.behavior.el.remove(a);this.Bo.remove(a);this.gl.remove(a);this.hl.remove(a);a.Of&&a.Of();this.Ed.hasOwnProperty(a.uid.toString())&&delete this.Ed[a.uid.toString()];this.Mi--;100>b.Xh.length&&b.Xh.push(a)};var y=[];g.prototype.Je=
  function(a,b,e,c,d,n){var k,m,p,f;if(!a)return null;var g=this.k[a[1]],t=g.ea.le;if(this.Sg&&t&&!g.Nk||t&&!this.n&&11===a[0][11])return null;var z=b;t||(b=null);var h;g.Xh.length?(h=g.Xh.pop(),h.ic=!0,g.ea.la.call(h,g)):(h=new g.ea.la(g),h.ic=!1);!e||n||this.Ed.hasOwnProperty(a[2].toString())?h.uid=this.jh++:h.uid=a[2];this.Ed[h.uid.toString()]=h;h.$o=this.xo++;h.Ue=g.d.length;k=0;for(m=this.Wc.length;k<m;++k)this.Wc[k].type===g&&h.Ue++;h.Cg=Gb;h.toString=Hb;p=a[3];if(h.ic)$a(h.ma);else{h.ma={};if("undefined"!==
  typeof cr_is_preview)for(h.Hn=[],h.Hn.length=p.length,k=0,m=p.length;k<m;k++)h.Hn[k]=p[k][1];h.Ma=[];h.Ma.length=p.length}k=0;for(m=p.length;k<m;k++)h.Ma[k]=p[k][0];if(t){var x=a[0];h.x=ga(c)?x[0]:c;h.y=ga(d)?x[1]:d;h.z=x[2];h.width=x[3];h.height=x[4];h.depth=x[5];h.j=x[6];h.opacity=x[7];h.Jb=x[8];h.Kb=x[9];h.kb=x[10];k=x[11];!this.n&&g.C.length&&(h.kb=k);h.ng=kb(h.kb);this.m&&lb(h,h.kb,this.m);if(h.ic){k=0;for(m=x[12].length;k<m;k++)for(p=0,f=x[12][k].length;p<f;p++)h.ta[k][p]=x[12][k][p];h.$a.set(0,
  0,0,0);h.be.set(0,0,-1,-1);h.Bb.set(0,0,-1,-1);h.Fe.jj(h.$a);T(h.Nj)}else{h.ta=x[12].slice(0);k=0;for(m=h.ta.length;k<m;k++)h.ta[k]=x[12][k].slice(0);h.R=[];h.Wd=[];h.Wd.length=g.C.length;h.$a=new va(0,0,0,0);h.be=new va(0,0,-1,-1);h.Bb=new va(0,0,-1,-1);h.Fe=new wa;h.Nj=[];h.Fa=Kb;h.bw=Lb;h.Yb=Mb;h.Ha=Nb;h.Xu=Ob;h.yw=Pb;h.bd=Qb}h.Su=!1;h.Uu=0;h.Tu=0;h.Ru=null;14===x.length&&(h.Su=!0,h.Uu=x[13][0],h.Tu=x[13][1],h.Ru=x[13][2]);k=0;for(m=g.C.length;k<m;k++)h.Wd[k]=!0;h.Ld=!0;h.Rc=Rb;h.Rc();h.Qp=!!h.R.length;
  h.Mj=!0;h.Sj=!0;g.Fm=!0;h.visible=!0;h.ih=-1;h.i=b;h.Sc=b.d.length;h.Ne=0;"undefined"===typeof h.Vc&&(h.Vc=null);this.W=h.mg=!0}var l;T(y);k=0;for(m=g.na.length;k<m;k++)y.push.apply(y,g.na[k].qa);y.push.apply(y,g.qa);if(h.ic)for(k=0,m=y.length;k<m;k++){var S=y[k];l=h.F[k];l.ic=!0;S.behavior.la.call(l,S,h);x=a[4][k];p=0;for(f=x.length;p<f;p++)l.Y[p]=x[p];l.V();S.behavior.el.add(h)}else for(h.F=[],k=0,m=y.length;k<m;k++)S=y[k],l=new S.behavior.la(S,h),l.ic=!1,l.Y=a[4][k].slice(0),l.V(),h.F.push(l),
  S.behavior.el.add(h);x=a[5];if(h.ic)for(k=0,m=x.length;k<m;k++)h.Y[k]=x[k];else h.Y=x.slice(0);this.Wc.push(h);this.he=!0;b&&(b.jg(h,!0),1!==b.Fd||1!==b.Gd)&&(g.Gm=!0);this.Mi++;if(g.wc){if(h.wc=!0,h.ic?T(h.siblings):h.siblings=[],!e&&!n){k=0;for(m=g.Gb.length;k<m;k++)if(g.Gb[k]!==g){if(!g.Gb[k].Yc)return null;h.siblings.push(this.Je(g.Gb[k].Yc,z,!1,t?h.x:c,t?h.y:d,!0))}k=0;for(m=h.siblings.length;k<m;k++)for(h.siblings[k].siblings.push(h),p=0;p<m;p++)k!==p&&h.siblings[k].siblings.push(h.siblings[p])}}else h.wc=
  !1,h.siblings=null;h.V();k=0;for(m=h.F.length;k<m;k++)h.F[k].gu&&h.F[k].gu();return h};g.prototype.vk=function(a){var b,e;b=0;for(e=this.X.D.length;b<e;b++){var c=this.X.D[b];if(nb(c.name,a))return c}return null};g.prototype.zg=function(a){a=oa(a);0>a&&(a=0);a>=this.X.D.length&&(a=this.X.D.length-1);return this.X.D[a]};g.prototype.Xj=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].da().pa=!0};g.prototype.qh=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].qh()};g.prototype.Rf=function(a){var b,
  e;b=0;for(e=a.length;b<e;b++)a[b].Rf()};g.prototype.Id=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Id()};g.prototype.pj=function(a,b,e){var c=a.da(),d,k,n,m,p=this.mb().qb.zc,f,g,t;if(c.pa)for(c.pa=!1,T(c.d),d=0,m=a.d.length;d<m;d++)n=a.d[d],n.Ha(),f=n.i.ab(b,e,!0),g=n.i.ab(b,e,!1),n.Yb(f,g)?c.d.push(n):p&&c.I.push(n);else{k=0;t=p?c.I:c.d;d=0;for(m=t.length;d<m;d++)n=t[d],n.Ha(),f=n.i.ab(b,e,!0),g=n.i.ab(b,e,!1),n.Yb(f,g)&&(p?c.d.push(n):(c.d[k]=c.d[d],k++));t.length=k}a.od();return c.Bk()};
  new wa;new va(0,0,0,0);g.prototype.Kp=function(a,b){if(!b)return!1;var e,c,d,k,n;e=0;for(c=a.qa.length;e<c;e++)if(a.qa[e].behavior instanceof b)return!0;if(!a.M)for(e=0,c=a.na.length;e<c;e++)for(n=a.na[e],d=0,k=n.qa.length;d<k;d++)if(n.qa[d].behavior instanceof b)return!0;return!1};g.prototype.Ql=function(a){return this.Kp(a,fc.Dv)};g.prototype.Rl=function(a){return this.Kp(a,fc.Ev)};var K=-1;g.prototype.trigger=function(a,b,e){if(!this.X)return!1;var c=this.X.Oe;if(!c)return!1;var d=!1,k,n,m;K++;
  var p=c.dk;n=0;for(m=p.length;n<m;++n)k=this.Hp(a,b,p[n],e),d=d||k;k=this.Hp(a,b,c,e);K--;return d||k};g.prototype.Hp=function(a,b,e,c){var d=!1,k,n,m,p;if(b)for(m=this.Ol(a,b,b.type.name,e,c),d=d||m,p=b.type.na,k=0,n=p.length;k<n;++k)m=this.Ol(a,b,p[k].name,e,c),d=d||m;else m=this.Ol(a,b,"system",e,c),d=d||m;return d};g.prototype.Ol=function(a,b,e,c,d){var k,n=!1,m=!1,m="undefined"!==typeof d,p=(m?c.gn:c.Ip)[e];if(!p)return n;var f=null;c=0;for(k=p.length;c<k;++c)if(p[c].method==a){f=p[c].vg;break}if(!f)return n;
  var g;m?g=f[d]:g=f;if(!g)return null;c=0;for(k=g.length;c<k;c++)a=g[c][0],d=g[c][1],m=this.Bs(b,e,a,d),n=n||m;return n};g.prototype.Bs=function(a,b,e,c){var d,k,n=!1;this.Pl++;var m=this.mb().qb;m&&this.qh(m.we);var p=1<this.Pl;this.qh(e.we);p&&this.nu();var f=this.Zi(e);f.qb=e;a&&(d=this.types[b].da(),d.pa=!1,T(d.d),d.d[0]=a,this.types[b].od());a=!0;if(e.parent){b=f.zp;for(d=e.parent;d;)b.push(d),d=d.parent;b.reverse();d=0;for(k=b.length;d<k;d++)if(!b[d].yu()){a=!1;break}}a&&(this.wg++,e.zc?e.xu(c):
  e.Ea(),n=n||f.Ye);this.Ui();p&&this.eu();this.Id(e.we);m&&this.Id(m.we);this.he&&0===this.Ad&&0===K&&!this.Ok&&this.jb();this.Pl--;return n};g.prototype.Ls=function(){var a=this.mb();return a.qb.Ja[a.Ia]};g.prototype.nu=function(){this.Hi++;this.Hi>=this.$k.length&&this.$k.push([])};g.prototype.eu=function(){this.Hi--};g.prototype.un=function(){return this.$k[this.Hi]};g.prototype.Zi=function(a){this.ai++;this.ai>=this.gk.length&&this.gk.push(new Sb);var b=this.mb();b.reset(a);return b};g.prototype.Ui=
  function(){this.ai--};g.prototype.mb=function(){return this.gk[this.ai]};g.prototype.ou=function(){this.gh++;this.gh>=this.fh.length&&this.fh.push(aa({name:void 0,index:0,Ya:!1}));var a=this.vn();a.name=void 0;a.index=0;a.Ya=!1;return a};g.prototype.fu=function(){this.gh--};g.prototype.vn=function(){return this.fh[this.gh]};g.prototype.xn=function(a,b){for(var e,c,d,k,n,m;b;){e=0;for(c=b.Dc.length;e<c;e++)if(m=b.Dc[e],m instanceof Tb&&nb(a,m.name))return m;b=b.parent}e=0;for(c=this.vd.length;e<c;e++)for(n=
  this.vd[e],d=0,k=n.fe.length;d<k;d++)if(m=n.fe[d],m instanceof Tb&&nb(a,m.name))return m;return null};g.prototype.yn=function(a){var b,e;b=0;for(e=this.Nc.length;b<e;b++)if(this.Nc[b].K===a)return this.Nc[b];return null};g.prototype.ni=function(a){var b,e;b=0;for(e=this.k.length;b<e;b++)if(this.k[b].K===a)return this.k[b];return null};g.prototype.Ns=function(a){var b,e;b=0;for(e=this.mf.length;b<e;b++)if(this.mf[b].K===a)return this.mf[b];return null};g.prototype.rr=function(a,b){this.zh=[a,b];this.W=
  !0};g.prototype.kt=function(){var a=this,b=this.Dl,e=this.Bd,c=this.Di,d=!1;this.vp&&(d=!0,b="__c2_continuouspreview",this.vp=!1);if(b.length){this.jb();e=this.Cu();if(l()&&!this.uc)u(b,e,function(){A("Saved state to IndexedDB storage ("+e.length+" bytes)");a.Bd=e;a.trigger(X.prototype.e.Hj,null);a.Bd="";d&&f()},function(c){try{localStorage.setItem("__c2save_"+b,e),A("Saved state to WebStorage ("+e.length+" bytes)"),a.Bd=e,a.trigger(X.prototype.e.Hj,null),a.Bd="",d&&f()}catch(k){A("Failed to save game state: "+
  c+"; "+k),a.trigger(X.prototype.e.mm,null)}});else try{localStorage.setItem("__c2save_"+b,e),A("Saved state to WebStorage ("+e.length+" bytes)"),a.Bd=e,this.trigger(X.prototype.e.Hj,null),a.Bd="",d&&f()}catch(k){A("Error saving to WebStorage: "+k),a.trigger(X.prototype.e.mm,null)}this.Di=this.Dl="";this.Pa=null}if(c.length){if(l()&&!this.uc)q(c,function(b){b?(a.Pa=b,A("Loaded state from IndexedDB storage ("+a.Pa.length+" bytes)")):(a.Pa=localStorage.getItem("__c2save_"+c)||"",A("Loaded state from WebStorage ("+
  a.Pa.length+" bytes)"));a.Bh=!1;a.Pa||(a.Pa=null,a.trigger(X.prototype.e.Mh,null))},function(){a.Pa=localStorage.getItem("__c2save_"+c)||"";A("Loaded state from WebStorage ("+a.Pa.length+" bytes)");a.Bh=!1;a.Pa||(a.Pa=null,a.trigger(X.prototype.e.Mh,null))});else{try{this.Pa=localStorage.getItem("__c2save_"+c)||"",A("Loaded state from WebStorage ("+this.Pa.length+" bytes)")}catch(n){this.Pa=null}this.Bh=!1;a.Pa||(a.Pa=null,a.trigger(X.prototype.e.Mh,null))}this.Dl=this.Di=""}null!==this.Pa&&(this.jb(),
  this.It(this.Pa)?(this.Bd=this.Pa,this.trigger(X.prototype.e.xq,null),this.Bd=""):a.trigger(X.prototype.e.Mh,null),this.Pa=null)};g.prototype.Cu=function(){var a,e,c,d,k,n,m,p={c2save:!0,version:1,rt:{time:this.ob.P,walltime:this.Rd.P,timescale:this.$f,tickcount:this.Od,execcount:this.wg,next_uid:this.jh,running_layout:this.X.K,start_time_offset:Date.now()-this.lj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(e=this.k.length;a<e;a++)if(k=this.k[a],!k.M&&!this.Ql(k)){n={instances:[]};
  Za(k.ma)&&(n.ex=b(k.ma));c=0;for(d=k.d.length;c<d;c++)n.instances.push(this.Cl(k.d[c]));p.types[k.K.toString()]=n}a=0;for(e=this.Nc.length;a<e;a++)c=this.Nc[a],p.layouts[c.K.toString()]=c.Db();d=p.events.groups;a=0;for(e=this.mf.length;a<e;a++)c=this.mf[a],d[c.K.toString()]=this.Eg[c.Dg].vf;e=p.events.cnds;for(m in this.ae)this.ae.hasOwnProperty(m)&&(a=this.ae[m],Za(a.ma)&&(e[m]={ex:b(a.ma)}));e=p.events.acts;for(m in this.Xd)this.Xd.hasOwnProperty(m)&&(a=this.Xd[m],Za(a.ma)&&(e[m]={ex:b(a.ma)}));
  e=p.events.vars;for(m in this.eg)this.eg.hasOwnProperty(m)&&(a=this.eg[m],a.vi||a.parent&&!a.Rg||(e[m]=a.data));p.system=this.ld.Db();return JSON.stringify(p)};g.prototype.cp=function(){var a,b,e,c,d,k;this.Ed={};a=0;for(b=this.k.length;a<b;a++)if(e=this.k[a],!e.M)for(c=0,d=e.d.length;c<d;c++)k=e.d[c],this.Ed[k.uid.toString()]=k};g.prototype.It=function(a){var b;try{b=JSON.parse(a)}catch(e){return!1}if(!b.c2save||1<b.version)return!1;this.Kg=!0;a=b.rt;this.ob.reset();this.ob.P=a.time;this.Rd.reset();
  this.Rd.P=a.walltime||0;this.$f=a.timescale;this.Od=a.tickcount;this.wg=a.execcount;this.lj=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.X.K)if(c=this.yn(c))this.an(c);else return;var d,k,n,m,p,f,g;f=b.types;for(k in f)if(f.hasOwnProperty(k)&&(m=this.ni(parseInt(k,10)))&&!m.M&&!this.Ql(m)){f[k].ex?m.ma=f[k].ex:$a(m.ma);p=m.d;n=f[k].instances;c=0;for(d=la(p.length,n.length);c<d;c++)this.Ei(p[c],n[c]);c=n.length;for(d=p.length;c<d;c++)this.Ae(p[c]);c=p.length;for(d=n.length;c<d;c++){p=
  null;if(m.ea.le&&(p=this.X.li(n[c].w.l),!p))continue;p=this.Je(m.Yc,p,!1,0,0,!0);this.Ei(p,n[c])}m.Yf=!0}this.jb();this.cp();d=b.layouts;for(k in d)d.hasOwnProperty(k)&&(c=this.yn(parseInt(k,10)))&&c.gc(d[k]);d=b.events.groups;for(k in d)d.hasOwnProperty(k)&&(c=this.Ns(parseInt(k,10)))&&this.Eg[c.Dg]&&this.Eg[c.Dg].Eu(d[k]);c=b.events.cnds;for(k in this.ae)this.ae.hasOwnProperty(k)&&(c.hasOwnProperty(k)?this.ae[k].ma=c[k].ex:this.ae[k].ma={});c=b.events.acts;for(k in this.Xd)this.Xd.hasOwnProperty(k)&&
  (c.hasOwnProperty(k)?this.Xd[k].ma=c[k].ex:this.Xd[k].ma={});c=b.events.vars;for(k in c)c.hasOwnProperty(k)&&this.eg.hasOwnProperty(k)&&(this.eg[k].data=c[k]);this.jh=a.next_uid;this.Kg=!1;c=0;for(d=this.ei.length;c<d;++c)p=this.ei[c],this.trigger(Object.getPrototypeOf(p.type.ea).e.dm,p);T(this.ei);this.ld.gc(b.system);c=0;for(d=this.k.length;c<d;c++)if(m=this.k[c],!m.M&&!this.Ql(m))for(b=0,k=m.d.length;b<k;b++){p=m.d[b];if(m.wc)for(f=p.Cg(),T(p.siblings),a=0,n=m.Gb.length;a<n;a++)g=m.Gb[a],m!==g&&
  p.siblings.push(g.d[f]);p.Yd&&p.Yd();if(p.F)for(a=0,n=p.F.length;a<n;a++)f=p.F[a],f.Yd&&f.Yd()}return this.W=!0};g.prototype.Cl=function(a,e){var c,d,k,n,m;n=a.type;k=n.ea;var p={};e?p.c2=!0:p.uid=a.uid;Za(a.ma)&&(p.ex=b(a.ma));if(a.Ma&&a.Ma.length)for(p.ivs={},c=0,d=a.Ma.length;c<d;c++)p.ivs[a.type.Jk[c].toString()]=a.Ma[c];if(k.le){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.i.K,zi:a.bd()};0!==a.j&&(k.a=a.j);1!==a.opacity&&(k.o=a.opacity);.5!==a.Jb&&(k.hX=a.Jb);.5!==a.Kb&&(k.hY=a.Kb);0!==a.kb&&(k.bm=
  a.kb);a.visible||(k.v=a.visible);a.mg||(k.ce=a.mg);-1!==a.ih&&(k.mts=a.ih);if(n.C.length)for(k.fx=[],c=0,d=n.C.length;c<d;c++)m=n.C[c],k.fx.push({name:m.name,active:a.Wd[m.index],params:a.ta[m.index]});p.w=k}if(a.F&&a.F.length)for(p.behs={},c=0,d=a.F.length;c<d;c++)n=a.F[c],n.Db&&(p.behs[n.type.K.toString()]=n.Db());a.Db&&(p.data=a.Db());return p};g.prototype.Ps=function(a,b){var e,c;e=0;for(c=a.Jk.length;e<c;e++)if(a.Jk[e]===b)return e;return-1};g.prototype.Ks=function(a,b){var e,c;e=0;for(c=a.F.length;e<
  c;e++)if(a.F[e].type.K===b)return e;return-1};g.prototype.Ei=function(a,b,e){var c,d,k,n,m;m=a.type;n=m.ea;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ma=b.ex:$a(a.ma);if(d=b.ivs)for(c in d)d.hasOwnProperty(c)&&(k=this.Ps(m,parseInt(c,10)),0>k||k>=a.Ma.length||(a.Ma[k]=d[c]));if(n.le){k=b.w;a.i.K!==k.l&&(d=a.i,a.i=this.X.li(k.l),a.i?(d.Tf(a,!0),a.i.jg(a,!0),a.Fa(),a.i.wh(0)):(a.i=d,e||this.Ae(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Sc=k.zi;a.j=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?
  k.o:1;a.Jb=k.hasOwnProperty("hX")?k.hX:.5;a.Kb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.mg=k.hasOwnProperty("ce")?k.ce:!0;a.ih=k.hasOwnProperty("mts")?k.mts:-1;a.kb=k.hasOwnProperty("bm")?k.bm:0;a.ng=kb(a.kb);this.m&&lb(a,a.kb,this.m);a.Fa();if(k.hasOwnProperty("fx"))for(e=0,d=k.fx.length;e<d;e++)n=m.sk(k.fx[e].name),0>n||(a.Wd[n]=k.fx[e].active,a.ta[n]=k.fx[e].params);a.Rc()}if(m=b.behs)for(c in m)m.hasOwnProperty(c)&&(e=this.Ks(a,parseInt(c,10)),0>e||a.F[e].gc(m[c]));
  b.data&&a.gc(b.data)};g.prototype.hn=function(a,b,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,e)},e)};g.prototype.Cs=function(a,b){this.hn("data.js",function(e){var c=new FileReader;c.onload=function(b){a(b.target.result)};c.onerror=b;c.readAsText(e)},b)};var ca=[],U=0;g.prototype.bl=function(){if(ca.length&&!(8<=U)){U++;var a=ca.shift();this.xr(a.filename,a.Ou,a.Wr)}};g.prototype.jn=function(a,b,e){var c=this;ca.push({filename:a,Ou:function(a){U--;
  c.bl();b(a)},Wr:function(a){U--;c.bl();e(a)}});this.bl()};g.prototype.xr=function(a,b,e){this.hn(a,function(a){var e=new FileReader;e.onload=function(a){b(a.target.result)};e.readAsArrayBuffer(a)},e)};g.prototype.Ds=function(a,b,e){this.jn(a,function(a){a=URL.createObjectURL(new Blob([a]));b(a)},e)};g.prototype.tt=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.np=function(a,b){this.Pg&&!this.tt(b)?this.Ds(b,function(b){a.src=b},function(a){alert("Failed to load image: "+
  a)}):a.src=b};g.prototype.fj=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Ub=function(a){return new g(document.getElementById(a))};Vb=function(a,b){return new g({dc:!0,width:a,height:b})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
  a.De=!0;document.body.appendChild(a);a=new g(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 g(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_getSnapshot=function(g,h){var l=window.cr_getC2Runtime();l&&l.rr(g,h)};window.cr_sizeCanvas=function(g,h){if(0!==g&&0!==h){var l=window.cr_getC2Runtime();l&&l.setSize(g,h)}};window.cr_setSuspended=function(g){var h=window.cr_getC2Runtime();h&&h.setSuspended(g)};
  (function(){function g(a,b){this.b=a;this.Oe=null;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/2;this.scale=1;this.j=0;this.tf=!0;this.name=b[0];this.au=b[1];this.$t=b[2];this.width=b[1];this.height=b[2];this.Lp=b[3];this.sp=b[4];this.K=b[5];var c=b[6],d,f;this.D=[];this.Hg=[];d=0;for(f=c.length;d<f;d++){var g=new Wb(this,c[d]);g.zo=d;this.D.push(g)}c=b[7];this.Ve=[];d=0;for(f=c.length;d<f;d++){var g=c[d],t=this.b.k[g[1]];t.Yc||(t.Yc=g);this.Ve.push(g);-1===this.Hg.indexOf(t)&&this.Hg.push(t)}this.C=
  [];this.R=[];this.Ld=!0;this.ta=[];d=0;for(f=b[8].length;d<f;d++)this.C.push({id:b[8][d][0],name:b[8][d][1],Ga:-1,Oc:!1,Sb:!0,index:d}),this.ta.push(b[8][d][2].slice(0));this.Rc();this.Sf=new va(0,0,1,1);this.wl=new va(0,0,1,1);this.te={}}function h(a,b){return a.Sc-b.Sc}function l(a,b){this.Va=a;this.b=a.b;this.d=[];this.scale=1;this.j=0;this.ud=!1;this.Pd=new va(0,0,0,0);this.Gp=new wa;this.fa=this.ba=this.ga=this.aa=0;this.hf=!1;this.Td=-1;this.Yj=0;this.name=b[0];this.index=b[1];this.K=b[2];this.visible=
  b[3];this.Ic=b[4];this.Qc=b[5];this.Fd=b[6];this.Gd=b[7];this.opacity=b[8];this.hi=b[9];this.oc=b[10];this.Ud=b[11];this.kb=b[12];this.Sr=b[13];this.ng="source-over";this.lb=this.pb=0;this.hb=null;this.Cd=r();this.Pc=!0;this.Gf=new va(0,0,-1,-1);this.bb=new va(0,0,-1,-1);this.oc&&(this.hb=new jb(this.b.Ra,this.b.Qa));this.jd=!1;var c=b[14],d,f;this.xp=[];this.ec=[];this.rg=[];d=0;for(f=c.length;d<f;d++){var g=c[d],t=this.b.k[g[1]];t.Yc||(t.Yc=g,t.qr=this.index);this.ec.push(g);-1===this.Va.Hg.indexOf(t)&&
  this.Va.Hg.push(t)}Aa(this.xp,this.ec);this.C=[];this.R=[];this.Ld=!0;this.ta=[];d=0;for(f=b[15].length;d<f;d++)this.C.push({id:b[15][d][0],name:b[15][d][1],Ga:-1,Oc:!1,Sb:!0,index:d}),this.ta.push(b[15][d][2].slice(0));this.Rc();this.Sf=new va(0,0,1,1);this.wl=new va(0,0,1,1)}function r(){return b.length?b.pop():[]}function u(a){T(a);b.push(a)}g.prototype.Bu=function(a){var b=a.type.K.toString();this.te.hasOwnProperty(b)||(this.te[b]=[]);this.te[b].push(this.b.Cl(a))};g.prototype.Bn=function(){var a=
  this.D[0];return!a.Qc&&1===a.opacity&&!a.hi&&a.visible};g.prototype.Rc=function(){T(this.R);this.Ld=!0;var a,b,c;a=0;for(b=this.C.length;a<b;a++)c=this.C[a],c.Sb&&(this.R.push(c),c.Oc||(this.Ld=!1))};g.prototype.rk=function(a){var b,c,d;b=0;for(c=this.C.length;b<c;b++)if(d=this.C[b],d.name===a)return d;return null};var q=[],f=!0;g.prototype.Il=function(){this.sp&&(this.Oe=this.b.hk[this.sp],this.Oe.Sl());this.b.X=this;this.width=this.au;this.height=this.$t;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/
  2;var a,b,c,d,g,x,t;a=0;for(c=this.b.k.length;a<c;a++)if(b=this.b.k[a],!b.M)for(g=b.d,b=0,d=g.length;b<d;b++)if(x=g[b],x.i){var k=x.i.zo;k>=this.D.length&&(k=this.D.length-1);x.i=this.D[k];-1===x.i.d.indexOf(x)&&x.i.d.push(x);x.i.hf=!0}if(!f)for(a=0,c=this.D.length;a<c;++a)this.D[a].d.sort(h);T(q);this.fr();a=0;for(c=this.D.length;a<c;a++)x=this.D[a],x.pr(),x.xj();g=!1;if(!this.tf){for(t in this.te)if(this.te.hasOwnProperty(t)&&(b=this.b.ni(parseInt(t,10)))&&!b.M&&this.b.Rl(b)){d=this.te[t];a=0;for(c=
  d.length;a<c;a++){x=null;if(b.ea.le&&(x=this.li(d[a].w.l),!x))continue;x=this.b.Je(b.Yc,x,!1,0,0,!0);this.b.Ei(x,d[a]);g=!0;q.push(x)}T(d)}a=0;for(c=this.D.length;a<c;a++)this.D[a].d.sort(h),this.D[a].hf=!0}g&&(this.b.jb(),this.b.cp());for(a=0;a<q.length;a++)if(x=q[a],x.type.wc)for(c=x.Cg(),b=0,d=x.type.Gb.length;b<d;b++)t=x.type.Gb[b],x.type!==t&&(t.d.length>c?x.siblings.push(t.d[c]):t.Yc&&(g=this.b.Je(t.Yc,x.i,!0,x.x,x.y,!0),this.b.jb(),t.vj(),x.siblings.push(g),q.push(g)));a=0;for(c=this.Ve.length;a<
  c;a++)this.b.Je(this.Ve[a],null,!0);this.b.lg=null;this.b.jb();if(this.b.ra&&!this.b.Ba)for(a=0,c=this.b.k.length;a<c;a++)t=this.b.k[a],!t.M&&t.d.length&&t.Xo&&t.Xo(this.b.ra);if(this.b.Kg)Aa(this.b.ei,q);else for(a=0,c=q.length;a<c;a++)x=q[a],this.b.trigger(Object.getPrototypeOf(x.type.ea).e.dm,x);T(q);this.b.Kg||this.b.trigger(X.prototype.e.em,null);this.tf=!1};g.prototype.or=function(){var a,b,c,d,f;b=a=0;for(c=this.Ve.length;a<c;a++)d=this.Ve[a],f=this.b.k[d[1]],f.global?f.wc||this.b.Je(d,null,
  !0):(this.Ve[b]=d,b++);za(this.Ve,b)};g.prototype.Nu=function(){this.b.Kg||this.b.trigger(X.prototype.e.wq,null);this.b.Lk=!0;T(this.b.ld.Rb);var a,b,c,d,g,h;if(!this.tf)for(a=0,b=this.D.length;a<b;a++)for(this.D[a].Ul(),g=this.D[a].d,c=0,d=g.length;c<d;c++)h=g[c],h.type.global||this.b.Rl(h.type)&&this.Bu(h);a=0;for(b=this.D.length;a<b;a++){g=this.D[a].d;c=0;for(d=g.length;c<d;c++)h=g[c],h.type.global||this.b.Ae(h);this.b.jb();T(g);this.D[a].hf=!0}a=0;for(b=this.b.k.length;a<b;a++)if(g=this.b.k[a],
  !(g.global||g.ea.le||g.ea.kj||g.M)){c=0;for(d=g.d.length;c<d;c++)this.b.Ae(g.d[c]);this.b.jb()}f=!1;this.b.Lk=!1};new va(0,0,0,0);g.prototype.Zc=function(a){var b,c=a,d=!1,f=!this.b.ac;f&&(this.b.Ci||(this.b.Ci=document.createElement("canvas"),b=this.b.Ci,b.width=this.b.r,b.height=this.b.q,this.b.Vn=b.getContext("2d"),d=!0),b=this.b.Ci,c=this.b.Vn,b.width!==this.b.r&&(b.width=this.b.r,d=!0),b.height!==this.b.q&&(b.height=this.b.q,d=!0),d&&this.b.fj(c,this.b.xa));c.globalAlpha=1;c.globalCompositeOperation=
  "source-over";this.b.Tm&&!this.Bn()&&c.clearRect(0,0,this.b.r,this.b.q);var g,t,d=0;for(g=this.D.length;d<g;d++)t=this.D[d],t.visible&&0<t.opacity&&11!==t.kb&&(t.d.length||!t.Qc)?t.Zc(c):t.xj();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.qf=function(a){a.mp(!0);this.b.Ca||(this.b.Ca=a.Zb(this.b.r,this.b.q,this.b.xa));if(this.b.Ca.He!==this.b.r||this.b.Ca.Ge!==this.b.q)a.deleteTexture(this.b.Ca),this.b.Ca=a.Zb(this.b.r,this.b.q,this.b.xa);a.Cc(this.b.Ca);this.b.ac||a.Kd(this.b.r,
  this.b.q);var b,c;for(b=this.D.length-1;0<=b;--b)c=this.D[b],c.visible&&1===c.opacity&&c.Ld&&0===c.kb&&(c.d.length||!c.Qc)?c.qf(a):c.xj();a.mp(!1)};g.prototype.$b=function(a){var b=0<this.R.length||this.b.bg||!this.b.ac||this.b.ja;if(b){this.b.Ca||(this.b.Ca=a.Zb(this.b.r,this.b.q,this.b.xa));if(this.b.Ca.He!==this.b.r||this.b.Ca.Ge!==this.b.q)a.deleteTexture(this.b.Ca),this.b.Ca=a.Zb(this.b.r,this.b.q,this.b.xa);a.Cc(this.b.Ca);this.b.ac||a.Kd(this.b.r,this.b.q)}else this.b.Ca&&(a.Cc(null),a.deleteTexture(this.b.Ca),
  this.b.Ca=null);this.b.Tm&&!this.Bn()&&a.clear(0,0,0,0);var c,d,f;c=0;for(d=this.D.length;c<d;c++)f=this.D[c],f.visible&&0<f.opacity&&(f.d.length||!f.Qc)?f.$b(a):f.xj();b&&(0===this.R.length||1===this.R.length&&this.b.ac?(1===this.R.length?(b=this.R[0].index,a.Eb(this.R[0].Ga),a.Wf(null,1/this.b.r,1/this.b.q,0,0,1,1,this.scale,this.j,0,0,this.b.r/2,this.b.q/2,this.b.ob.P,this.ta[b]),a.Xi(this.R[0].Ga)&&(this.b.W=!0)):a.Eb(0),this.b.ac||a.Kd(this.b.width,this.b.height),a.Cc(null),a.lp(!1),a.Vf(1),
  a.kc(this.b.Ca),a.jp(),a.Bc(),a.nc(),b=this.b.width/2,c=this.b.height/2,a.rh(-b,c,b,c,b,-c,-b,-c),a.kc(null),a.lp(!0)):this.xl(a,null,null,null))};g.prototype.Ag=function(){return 0<this.R.length||this.b.bg||!this.b.ac||this.b.ja?this.b.Ca:null};g.prototype.zn=function(){var a=this.D[0].Ib(),b,c,d;b=1;for(c=this.D.length;b<c;b++)d=this.D[b],(0!==d.Fd||0!==d.Gd)&&d.Ib()<a&&(a=d.Ib());return a};g.prototype.hp=function(a){if(!this.Lp){var b=1/this.zn()*this.b.r/2;a>this.width-b&&(a=this.width-b);a<b&&
  (a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.W=!0)};g.prototype.ip=function(a){if(!this.Lp){var b=1/this.zn()*this.b.q/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.W=!0)};g.prototype.fr=function(){this.hp(this.scrollX);this.ip(this.scrollY)};g.prototype.xl=function(a,b,c,d){var f=c?c.R:b?b.R:this.R,g=1,t=0,k=0,p=0,h=this.b.r,l=this.b.q;c?(g=c.i.Ib(),t=c.i.La(),k=c.i.aa,p=c.i.ba,h=c.i.ga,l=c.i.fa):b&&(g=b.Ib(),t=b.La(),k=b.aa,p=b.ba,h=b.ga,l=b.fa);var r=
  this.b.pk,q,u,G,y,K=0,ca=1,U,v,w=this.b.r,O=this.b.q,L=w/2,sa=O/2,J=b?b.Sf:this.Sf,F=b?b.wl:this.wl,I=0,M=0,E=0,D=0,R=w,ta=w,P=O,ua=O,ma=G=0;y=c?c.i.La():0;if(c){q=0;for(u=f.length;q<u;q++)G+=a.Ts(f[q].Ga),ma+=a.Us(f[q].Ga);D=c.$a;I=b.Na(D.left,D.top,!0);E=b.Na(D.left,D.top,!1);R=b.Na(D.right,D.bottom,!0);P=b.Na(D.right,D.bottom,!1);0!==y&&(q=b.Na(D.right,D.top,!0),u=b.Na(D.right,D.top,!1),M=b.Na(D.left,D.bottom,!0),D=b.Na(D.left,D.bottom,!1),y=Math.min(I,R,q,M),R=Math.max(I,R,q,M),I=y,y=Math.min(E,
  P,u,D),P=Math.max(E,P,u,D),E=y);I-=G;E-=ma;R+=G;P+=ma;F.left=I/w;F.top=1-E/O;F.right=R/w;F.bottom=1-P/O;M=I=oa(I);D=E=oa(E);ta=R=qa(R);ua=P=qa(P);M-=G;D-=ma;ta+=G;ua+=ma;0>I&&(I=0);0>E&&(E=0);R>w&&(R=w);P>O&&(P=O);0>M&&(M=0);0>D&&(D=0);ta>w&&(ta=w);ua>O&&(ua=O);J.left=I/w;J.top=1-E/O;J.right=R/w;J.bottom=1-P/O}else J.left=F.left=0,J.top=F.top=0,J.right=F.right=1,J.bottom=F.bottom=1;ma=c&&(a.oh(f[0].Ga)||0!==G||0!==ma||1!==c.opacity||c.type.ea.to)||b&&!c&&1!==b.opacity;a.jp();if(ma){r[K]||(r[K]=a.Zb(w,
  O,this.b.xa));if(r[K].He!==w||r[K].Ge!==O)a.deleteTexture(r[K]),r[K]=a.Zb(w,O,this.b.xa);a.Eb(0);a.Cc(r[K]);v=ua-D;a.clearRect(M,O-D-v,ta-M,v);c?c.$b(a):(a.kc(this.b.Oa),a.Vf(b.opacity),a.Bc(),a.translate(-L,-sa),a.nc(),a.ue(I,P,R,P,R,E,I,E,J));F.left=F.top=0;F.right=F.bottom=1;c&&(y=J.top,J.top=J.bottom,J.bottom=y);K=1;ca=0}a.Vf(1);G=f.length-1;var Fa=a.sl(f[G].Ga)||!b&&!c&&!this.b.ac;q=y=0;for(u=f.length;q<u;q++){r[K]||(r[K]=a.Zb(w,O,this.b.xa));if(r[K].He!==w||r[K].Ge!==O)a.deleteTexture(r[K]),
  r[K]=a.Zb(w,O,this.b.xa);a.Eb(f[q].Ga);y=f[q].index;a.Xi(f[q].Ga)&&(this.b.W=!0);0!=q||ma?(a.Wf(d,1/w,1/O,F.left,F.top,F.right,F.bottom,g,t,k,p,(k+h)/2,(p+l)/2,this.b.ob.P,c?c.ta[y]:b?b.ta[y]:this.ta[y]),a.kc(null),q!==G||Fa?(a.Cc(r[K]),v=ua-D,U=O-D-v,a.clearRect(M,U,ta-M,v)):(c?a.ve(c.pb,c.lb):b&&a.ve(b.pb,b.lb),a.Cc(d)),a.kc(r[ca]),a.Bc(),a.translate(-L,-sa),a.nc(),a.ue(I,P,R,P,R,E,I,E,J),q!==G||Fa||a.kc(null)):(a.Cc(r[K]),v=ua-D,U=O-D-v,a.clearRect(M,U,ta-M,v),c?(c.Ta&&c.Ta.Za?(U=c.Ta.Za,ca=1/
  U.width,U=1/U.height):(ca=1/c.width,U=1/c.height),a.Wf(d,ca,U,F.left,F.top,F.right,F.bottom,g,t,k,p,(k+h)/2,(p+l)/2,this.b.ob.P,c.ta[y]),c.$b(a)):(a.Wf(d,1/w,1/O,0,0,1,1,g,t,k,p,(k+h)/2,(p+l)/2,this.b.ob.P,b?b.ta[y]:this.ta[y]),a.kc(b?this.b.Oa:this.b.Ca),a.Bc(),a.translate(-L,-sa),a.nc(),a.ue(I,P,R,P,R,E,I,E,J)),F.left=F.top=0,F.right=F.bottom=1,c&&!Fa&&(y=P,P=E,E=y));K=0===K?1:0;ca=0===K?1:0}Fa&&(a.Eb(0),c?a.ve(c.pb,c.lb):b?a.ve(b.pb,b.lb):this.b.ac||(a.Kd(this.b.width,this.b.height),L=this.b.width/
  2,sa=this.b.height/2,E=I=0,R=this.b.width,P=this.b.height),a.Cc(d),a.kc(r[ca]),a.Bc(),a.translate(-L,-sa),a.nc(),c&&1===f.length&&!ma?a.ue(I,E,R,E,R,P,I,P,J):a.ue(I,P,R,P,R,E,I,E,J),a.kc(null))};g.prototype.li=function(a){var b,c;b=0;for(c=this.D.length;b<c;b++)if(this.D[b].K===a)return this.D[b];return null};g.prototype.Db=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.tf,persist:this.te,fx:[],layers:{}};a=0;for(b=this.C.length;a<
  b;a++)c=this.C[a],d.fx.push({name:c.name,active:c.Sb,params:this.ta[c.index]});a=0;for(b=this.D.length;a<b;a++)c=this.D[a],d.layers[c.K.toString()]=c.Db();return d};g.prototype.gc=function(a){var b,c,d,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.te=a.persist;"undefined"!==typeof a.fv&&(this.tf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(d=this.rk(g[b].name))d.Sb=g[b].active,this.ta[d.index]=g[b].params;this.Rc();b=a.layers;for(f in b)b.hasOwnProperty(f)&&
  (a=this.li(parseInt(f,10)))&&a.gc(b[f])};Ib=g;l.prototype.Rc=function(){T(this.R);this.Ld=!0;var a,b,c;a=0;for(b=this.C.length;a<b;a++)c=this.C[a],c.Sb&&(this.R.push(c),c.Oc||(this.Ld=!1))};l.prototype.rk=function(a){var b,c,d;b=0;for(c=this.C.length;b<c;b++)if(d=this.C[b],d.name===a)return d;return null};l.prototype.pr=function(){var a,b,c,d,f,g;b=a=0;for(c=this.ec.length;a<c;a++){d=this.ec[a];f=this.b.k[d[1]];g=this.b.Rl(f);f=!0;if(!g||this.Va.tf){d=this.b.Je(d,this,!0);if(!d)continue;q.push(d);
  d.type.global&&(f=!1,this.rg.push(d.uid))}f&&(this.ec[b]=this.ec[a],b++)}this.ec.length=b;this.b.jb();!this.b.n&&this.C.length&&(this.kb=this.Sr);this.ng=kb(this.kb);this.b.m&&lb(this,this.kb,this.b.m);this.Pc=!0};l.prototype.Tf=function(a,b){var c=Ca(this.d,a);0>c||(b&&this.oc&&a.Bb&&a.Bb.right>=a.Bb.left&&(a.Ha(),this.hb.update(a,a.Bb,null),a.Bb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(ya(this.d,c),this.wh(c)),this.Pc=!0)};l.prototype.jg=function(a,b){a.Sc=this.d.length;this.d.push(a);
  b&&this.oc&&a.Bb&&a.Fa();this.Pc=!0};l.prototype.ku=function(a){this.d.unshift(a);this.wh(0)};l.prototype.Pt=function(a,b,c){var d=a.bd();b=b.bd();ya(this.d,d);d<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.wh(d<b?d:b)};l.prototype.wh=function(a){-1===this.Td?this.Td=a:a<this.Td&&(this.Td=a);this.Pc=this.hf=!0};l.prototype.Ul=function(){if(this.hf){-1===this.Td&&(this.Td=0);var a,b,c;if(this.oc)for(a=this.Td,b=this.d.length;a<b;++a)c=this.d[a],c.Sc=a,this.hb.Mt(c.Bb);else for(a=
  this.Td,b=this.d.length;a<b;++a)this.d[a].Sc=a;this.hf=!1;this.Td=-1}};l.prototype.Ib=function(a){return this.Qs()*(this.b.ac||a?this.b.kg:1)};l.prototype.Qs=function(){return(this.scale*this.Va.scale-1)*this.Ud+1};l.prototype.La=function(){return this.ud?0:Ja(this.Va.j+this.j)};var b=[],d=[],c=[];l.prototype.xk=function(){this.Ul();this.hb.bp(this.aa,this.ba,this.ga,this.fa,c);if(!c.length)return r();if(1===c.length){var a=r();Aa(a,c[0]);T(c);return a}for(var b=!0;1<c.length;){for(var a=c,f=void 0,
  n=void 0,g=void 0,h=void 0,t=void 0,f=0,n=a.length;f<n-1;f+=2){var g=a[f],h=a[f+1],t=r(),k=g,p=h,l=t,q=0,C=0,N=0,Q=k.length,G=p.length,y=void 0,K=void 0;for(l.length=Q+G;q<Q&&C<G;++N)y=k[q],K=p[C],y.Sc<K.Sc?(l[N]=y,++q):(l[N]=K,++C);for(;q<Q;++q,++N)l[N]=k[q];for(;C<G;++C,++N)l[N]=p[C];b||(u(g),u(h));d.push(t)}1===n%2&&(b?(g=r(),Aa(g,a[n-1]),d.push(g)):d.push(a[n-1]));Aa(a,d);T(d);b=!1}a=c[0];T(c);return a};l.prototype.Zc=function(a){this.jd=this.hi||1!==this.opacity||0!==this.kb;var b=this.b.canvas,
  c=a,d=!1;this.jd&&(this.b.Bi||(this.b.Bi=document.createElement("canvas"),b=this.b.Bi,b.width=this.b.r,b.height=this.b.q,this.b.Un=b.getContext("2d"),d=!0),b=this.b.Bi,c=this.b.Un,b.width!==this.b.r&&(b.width=this.b.r,d=!0),b.height!==this.b.q&&(b.height=this.b.q,d=!0),d&&this.b.fj(c,this.b.xa),this.Qc&&c.clearRect(0,0,this.b.r,this.b.q));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Qc||(c.fillStyle="rgb("+this.Ic[0]+","+this.Ic[1]+","+this.Ic[2]+")",c.fillRect(0,0,this.b.r,this.b.q));
  c.save();this.ud=!0;var d=this.ab(0,0,!0,!0),f=this.ab(0,0,!1,!0);this.ud=!1;this.b.Hd&&(d=Math.round(d),f=Math.round(f));this.bj(d,f,c);var g=this.Ib();c.scale(g,g);c.translate(-d,-f);this.oc?(this.bb.left=this.hb.xb(this.aa),this.bb.top=this.hb.yb(this.ba),this.bb.right=this.hb.xb(this.ga),this.bb.bottom=this.hb.yb(this.fa),this.Pc||!this.bb.tg(this.Gf)?(u(this.Cd),d=this.xk(),this.Pc=!1,this.Gf.pg(this.bb)):d=this.Cd):d=this.d;for(var t,k=null,f=0,g=d.length;f<g;++f)t=d[f],t!==k&&(this.Nr(t,c),
  k=t);this.oc&&(this.Cd=d);c.restore();this.jd&&(a.globalCompositeOperation=this.ng,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};l.prototype.Nr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var c=a.$a;c.right<this.aa||c.bottom<this.ba||c.left>this.ga||c.top>this.fa||(b.globalCompositeOperation=a.ng,a.Zc(b))}};l.prototype.xj=function(){this.ud=!0;var a=this.ab(0,0,!0,!0),b=this.ab(0,0,!1,!0);this.ud=!1;this.b.Hd&&(a=Math.round(a),b=Math.round(b));this.bj(a,b,null)};l.prototype.bj=
  function(a,b,c){var d=this.Ib();this.aa=a;this.ba=b;this.ga=a+1/d*this.b.r;this.fa=b+1/d*this.b.q;this.aa>this.ga&&(a=this.aa,this.aa=this.ga,this.ga=a);this.ba>this.fa&&(a=this.ba,this.ba=this.fa,this.fa=a);a=this.La();0!==a&&(c&&(c.translate(this.b.r/2,this.b.q/2),c.rotate(-a),c.translate(this.b.r/-2,this.b.q/-2)),this.Pd.set(this.aa,this.ba,this.ga,this.fa),this.Pd.offset((this.aa+this.ga)/-2,(this.ba+this.fa)/-2),this.Gp.qp(this.Pd,a),this.Gp.Om(this.Pd),this.Pd.offset((this.aa+this.ga)/2,(this.ba+
  this.fa)/2),this.aa=this.Pd.left,this.ba=this.Pd.top,this.ga=this.Pd.right,this.fa=this.Pd.bottom)};l.prototype.qf=function(a){if(this.jd=this.hi){this.b.Oa||(this.b.Oa=a.Zb(this.b.r,this.b.q,this.b.xa));if(this.b.Oa.He!==this.b.r||this.b.Oa.Ge!==this.b.q)a.deleteTexture(this.b.Oa),this.b.Oa=a.Zb(this.b.r,this.b.q,this.b.xa);a.Cc(this.b.Oa)}this.ud=!0;var b=this.ab(0,0,!0,!0),c=this.ab(0,0,!1,!0);this.ud=!1;this.b.Hd&&(b=Math.round(b),c=Math.round(c));this.bj(b,c,null);b=this.Ib();a.Bc();a.scale(b,
  b);a.cj(-this.La());a.translate((this.aa+this.ga)/-2,(this.ba+this.fa)/-2);a.nc();this.oc?(this.bb.left=this.hb.xb(this.aa),this.bb.top=this.hb.yb(this.ba),this.bb.right=this.hb.xb(this.ga),this.bb.bottom=this.hb.yb(this.fa),this.Pc||!this.bb.tg(this.Gf)?(u(this.Cd),b=this.xk(),this.Pc=!1,this.Gf.pg(this.bb)):b=this.Cd):b=this.d;for(var d,f=null,c=b.length-1;0<=c;--c)d=b[c],d!==f&&(this.Pr(b[c],a),f=d);this.oc&&(this.Cd=b);this.Qc||(this.Yj=this.b.Ne++,a.gj(this.Yj),a.kp(1,1,1),a.qn(),a.tu())};l.prototype.$b=
  function(a){var b=0,c=0;if(this.jd=this.hi||1!==this.opacity||0<this.R.length||0!==this.kb){this.b.Oa||(this.b.Oa=a.Zb(this.b.r,this.b.q,this.b.xa));if(this.b.Oa.He!==this.b.r||this.b.Oa.Ge!==this.b.q)a.deleteTexture(this.b.Oa),this.b.Oa=a.Zb(this.b.r,this.b.q,this.b.xa);a.Cc(this.b.Oa);this.Qc&&a.clear(0,0,0,0)}this.Qc||(this.b.ja?(a.gj(this.Yj),a.kp(this.Ic[0]/255,this.Ic[1]/255,this.Ic[2]/255),a.qn(),a.Iu()):a.clear(this.Ic[0]/255,this.Ic[1]/255,this.Ic[2]/255,1));this.ud=!0;var d=this.ab(0,0,
  !0,!0),b=this.ab(0,0,!1,!0);this.ud=!1;this.b.Hd&&(d=Math.round(d),b=Math.round(b));this.bj(d,b,null);d=this.Ib();a.Bc();a.scale(d,d);a.cj(-this.La());a.translate((this.aa+this.ga)/-2,(this.ba+this.fa)/-2);a.nc();this.oc?(this.bb.left=this.hb.xb(this.aa),this.bb.top=this.hb.yb(this.ba),this.bb.right=this.hb.xb(this.ga),this.bb.bottom=this.hb.yb(this.fa),this.Pc||!this.bb.tg(this.Gf)?(u(this.Cd),b=this.xk(),this.Pc=!1,this.Gf.pg(this.bb)):b=this.Cd):b=this.d;var f,g,t=null,c=0;for(f=b.length;c<f;++c)g=
  b[c],g!==t&&(this.Or(b[c],a),t=g);this.oc&&(this.Cd=b);this.jd&&(b=this.R.length?this.R[0].Ga:0,c=this.R.length?this.R[0].index:0,0===this.R.length||1===this.R.length&&!a.sl(b)&&1===this.opacity?(1===this.R.length?(a.Eb(b),a.Wf(this.Va.Ag(),1/this.b.r,1/this.b.q,0,0,1,1,d,this.La(),this.aa,this.ba,(this.aa+this.ga)/2,(this.ba+this.fa)/2,this.b.ob.P,this.ta[c]),a.Xi(b)&&(this.b.W=!0)):a.Eb(0),a.Cc(this.Va.Ag()),a.Vf(this.opacity),a.kc(this.b.Oa),a.ve(this.pb,this.lb),a.Bc(),a.nc(),d=this.b.r/2,b=this.b.q/
  2,a.rh(-d,b,d,b,d,-b,-d,-b),a.kc(null)):this.Va.xl(a,this,null,this.Va.Ag()))};l.prototype.Or=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var c=a.$a;c.right<this.aa||c.bottom<this.ba||c.left>this.ga||c.top>this.fa||(b.gj(a.Ne),a.Qp?this.Qr(a,b):(b.Eb(0),b.ve(a.pb,a.lb),a.$b(b)))}};l.prototype.Pr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var c=a.$a;c.right<this.aa||c.bottom<this.ba||c.left>this.ga||c.top>this.fa||(a.Ne=this.b.Ne++,0===a.kb&&1===a.opacity&&a.Ld&&
  a.qf&&(b.gj(a.Ne),a.qf(b)))}};l.prototype.Qr=function(a,b){var c=a.R[0].Ga,d=a.R[0].index,f=this.Ib();if(1!==a.R.length||b.sl(c)||b.mu(c)||(a.j||a.i.La())&&b.oh(c)||1!==a.opacity||a.type.ea.to)this.Va.xl(b,this,a,this.jd?this.b.Oa:this.Va.Ag()),b.Bc(),b.scale(f,f),b.cj(-this.La()),b.translate((this.aa+this.ga)/-2,(this.ba+this.fa)/-2),b.nc();else{b.Eb(c);b.ve(a.pb,a.lb);b.Xi(c)&&(this.b.W=!0);var g=0,t=0,k=0,p=0;b.oh(c)&&(p=a.$a,g=this.Na(p.left,p.top,!0),t=this.Na(p.left,p.top,!1),k=this.Na(p.right,
  p.bottom,!0),p=this.Na(p.right,p.bottom,!1),g=g/windowWidth,t=1-t/windowHeight,k=k/windowWidth,p=1-p/windowHeight);var h;a.Ta&&a.Ta.Za?(h=a.Ta.Za,c=1/h.width,h=1/h.height):(c=1/a.width,h=1/a.height);b.Wf(this.jd?this.b.Oa:this.Va.Ag(),c,h,g,t,k,p,f,this.La(),this.aa,this.ba,(this.aa+this.ga)/2,(this.ba+this.fa)/2,this.b.ob.P,a.ta[d]);a.$b(b)}};l.prototype.ab=function(a,b,c,d){var f=this.b.devicePixelRatio;this.b.xf&&(a*=f,b*=f);var f=this.b.Ro,g=this.b.So,f=(this.Va.scrollX-f)*this.Fd+f,g=(this.Va.scrollY-
  g)*this.Gd+g,h=f,k=g,p=1/this.Ib(!d);d?(h-=this.b.r*p/2,k-=this.b.q*p/2):(h-=this.b.width*p/2,k-=this.b.height*p/2);h+=a*p;k+=b*p;b=this.La();0!==b&&(h-=f,k-=g,a=Math.cos(b),b=Math.sin(b),d=h*a-k*b,k=k*a+h*b,h=d+f,k+=g);return c?h:k};l.prototype.Na=function(a,b,c){var d=this.b.Ro,f=this.b.So,d=(this.Va.scrollX-d)*this.Fd+d,g=(this.Va.scrollY-f)*this.Gd+f,f=d,h=g,k=this.La();if(0!==k){a-=d;b-=g;var p=Math.cos(-k),k=Math.sin(-k),l=a*p-b*k;b=b*p+a*k;a=l+d;b+=g}d=1/this.Ib(!1);f-=this.b.r*d/2;h-=this.b.q*
  d/2;f=(a-f)/d;return c?f:(b-h)/d};l.prototype.Db=function(){var a,b,c,d={s:this.scale,a:this.j,vl:this.aa,vt:this.ba,vr:this.ga,vb:this.fa,v:this.visible,bc:this.Ic,t:this.Qc,px:this.Fd,py:this.Gd,o:this.opacity,zr:this.Ud,fx:[],cg:this.rg,instances:[]};a=0;for(b=this.C.length;a<b;a++)c=this.C[a],d.fx.push({name:c.name,active:c.Sb,params:this.ta[c.index]});return d};l.prototype.gc=function(a){var b,c,d;this.scale=a.s;this.j=a.a;this.aa=a.vl;this.ba=a.vt;this.ga=a.vr;this.fa=a.vb;this.visible=a.v;
  this.Ic=a.bc;this.Qc=a.t;this.Fd=a.px;this.Gd=a.py;this.opacity=a.o;this.Ud=a.zr;this.rg=a.cg||[];Aa(this.ec,this.xp);var f=new da;b=0;for(d=this.rg.length;b<d;++b)f.add(this.rg[b]);c=b=0;for(d=this.ec.length;b<d;++b)f.contains(this.ec[b][2])||(this.ec[c]=this.ec[b],++c);za(this.ec,c);c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.rk(c[b].name))a.Sb=c[b].active,this.ta[a.index]=c[b].params;this.Rc();this.d.sort(h);this.hf=!0};Wb=l})();
  (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 h(a,b){return a.index-b.index}function l(a){var b,c,d,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(h);a.length>=z.length&&(z.length=a.length+1);z[a.length]||(z[a.length]=[]);e=z[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],g(a,d))return d;e.push(a);return a}
  function r(a,b){this.b=a;this.Ip={};this.gn={};this.Ck=!1;this.Dn=new da;this.dk=[];this.Jj=[];this.name=b[0];var c=b[1];this.fe=[];var d,e;d=0;for(e=c.length;d<e;d++)this.Fn(c[d],null,this.fe)}function u(a){this.type=a;this.d=[];this.I=[];this.pa=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Z=[];this.we=[];this.Cn=this.sj=this.Nl=this.Hk=this.group=this.Hl=!1;this.Ja=[];this.Gc=[];this.Dc=[];this.Dg="";this.vf=this.Hk=this.group=!1;this.Rh=null;c[1]&&(this.Dg=c[1][1].toLowerCase(),
  this.group=!0,this.Hk=!!c[1][0],this.Rh=[],this.vf=this.Hk,this.b.mf.push(this),this.b.Eg[this.Dg]=this);this.zc=c[2];this.K=c[4];this.group||(this.b.Nm[this.K.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Xb(this,d[a]);e.index=a;this.Ja.push(e);this.Bm(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Yb(this,d[a]),e.index=a,this.Gc.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Fn(c[a],this,this.Dc);this.wi=!1;this.Ja.length&&(this.wi=null==this.Ja[0].type&&
  this.Ja[0].cb==X.prototype.e.cm)}function f(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.wc))for(c=0,d=a.Gb.length;c<d;c++)e=a.Gb[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function b(a,b){this.Tb=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ua=[];this.ma={};this.index=-1;this.hg=!1;this.cb=this.b.Vd(b[1]);this.trigger=0<b[3];this.en=2===b[3];this.ed=b[4];this.Kk=b[5];this.Gt=b[6];this.K=b[7];this.b.ae[this.K.toString()]=this;-1===b[0]?(this.type=null,this.Ea=this.Bl,this.Ee=null,this.Jc=-1):
  (this.type=this.b.k[b[0]],this.Ea=this.Gt?this.zu:this.Al,b[2]?(this.Ee=this.type.ki(b[2]),this.Jc=this.type.qk(b[2])):(this.Ee=null,this.Jc=-1),this.Tb.parent&&this.Tb.parent.hj());this.en&&(this.Ea=this.Au);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var f=new Zb(this,e[c]);this.H.push(f)}this.ua.length=e.length}}function d(a,b){this.Tb=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ua=[];this.ma={};this.index=-1;this.hg=!1;this.cb=this.b.Vd(b[1]);-1===b[0]?(this.type=null,this.Ea=
  this.Bl,this.Ee=null,this.Jc=-1):(this.type=this.b.k[b[0]],this.Ea=this.Al,b[2]?(this.Ee=this.type.ki(b[2]),this.Jc=this.type.qk(b[2])):(this.Ee=null,this.Jc=-1));this.K=b[3];this.b.Xd[this.K.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var f=new Zb(this,e[c]);this.H.push(f)}this.ua.length=e.length}}function c(){t++;x.length===t&&x.push(new $b);return x[t]}function a(a,b){this.Ac=a;this.Tb=a.Tb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.$c=null;this.Md=0;this.get=
  null;this.Vm=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Fh=this.gf=this.Fh=this.gf=this.kn=this.Pe=this.Gh=null;this.Fc=!1;var c,d,e;switch(b[0]){case 0:case 7:this.$c=new ac(this,b[1]);this.Md=0;this.get=this.Zs;break;case 1:this.$c=new ac(this,b[1]);this.Md=0;this.get=this.$s;break;case 5:this.$c=new ac(this,b[1]);this.Md=0;this.get=this.et;break;case 3:case 8:this.Vm=b[1];this.get=this.Xs;break;case 6:this.Va=this.b.Hf[b[1]];this.get=this.ft;break;case 9:this.key=b[1];this.get=
  this.dt;break;case 4:this.object=this.b.k[b[1]];this.get=this.gt;this.Tb.Bm(this.object);this.Ac instanceof Yb?this.Tb.hj():this.Tb.parent&&this.Tb.parent.hj();break;case 10:this.index=b[1];a.type&&a.type.M?(this.get=this.bt,this.Fc=!0):this.get=this.ct;break;case 11:this.Gh=b[1];this.Pe=null;this.get=this.Ys;break;case 2:case 12:this.kn=b[1];this.get=this.Ws;break;case 13:for(this.get=this.ht,this.gf=[],this.Fh=[],c=1,d=b.length;c<d;c++)e=new Zb(this.Ac,b[c]),this.gf.push(e),this.Fh.push(0)}}function e(a,
  b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Z=[];this.name=c[1];this.zj=c[2];this.Gk=c[3];this.Rg=!!c[4];this.vi=!!c[5];this.K=c[6];this.b.eg[this.K.toString()]=this;this.data=this.Gk;this.parent?(this.cf=this.Rg||this.vi?-1:this.b.Lu++,this.b.Yq.push(this)):(this.cf=-1,this.b.Xq.push(this))}function m(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Z=[];this.Gg=null;this.ot=c[1];this.Sb=!0}function n(){this.zp=[];this.reset(null)}var z=[];r.prototype.toString=function(){return this.name};r.prototype.Fn=
  function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.zc)for(c.push(a),c=0,b=a.Ja.length;c<b;c++)a.Ja[c].trigger&&this.Gn(a,c);else a.On()?this.Gn(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};r.prototype.ya=function(){var a,b;a=0;for(b=this.fe.length;a<b;a++)this.fe[a].ya(a<b-1&&this.fe[a+1].wi)};r.prototype.Sl=function(){T(this.dk);T(this.Jj);this.Am(this);T(this.Jj)};r.prototype.Am=function(a){var b,c,d,e,f=a.dk,n=a.Jj,g=this.Dn.ze();
  b=0;for(c=g.length;b<c;++b)d=g[b],e=d.Gg,!d.Sb||a===e||-1<n.indexOf(e)||(n.push(e),e.Am(a),f.push(e))};r.prototype.Ea=function(a){this.b.vw||(this.Ck=!0,a||(this.b.Ok=!0));var b,c;b=0;for(c=this.fe.length;b<c;b++){var d=this.fe[b];d.Ea();this.b.Xj(d.Z);this.b.he&&this.b.jb()}a||(this.b.Ok=!1)};r.prototype.Gn=function(a,b){a.zc||this.b.uj.push(a);var c,d,e=a.Ja[b],f;e.type?f=e.type.name:f="system";var n=(c=e.en)?this.gn:this.Ip;n[f]||(n[f]=[]);f=n[f];n=e.cb;if(c){if(e.H.length&&(e=e.H[0],1===e.type&&
  2===e.$c.type)){e=e.$c.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==n){c=f[c].vg;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];f.push({method:n,vg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==n){f[c].vg.push([a,b]);return}oc&&n===oc.prototype.e.lf?f.unshift({method:n,vg:[[a,b]]}):f.push({method:n,vg:[[a,b]]})}};Jb=r;u.prototype.Bk=function(){return this.pa?this.type.d.length:this.d.length};u.prototype.tc=function(){return this.pa?this.type.d:this.d};u.prototype.nh=
  function(a){a&&(a.b.mb().qb.zc?(this.pa&&(T(this.d),Aa(this.I,a.type.d),this.pa=!1),a=this.I.indexOf(a),-1!==a&&(this.d.push(this.I[a]),this.I.splice(a,1))):(this.pa=!1,T(this.d),this.d[0]=a))};rb=u;window._c2hh_="5E7FA063FFA2C973F032BA71BDD0550298747C58";q.prototype.ya=function(a){var b,c=this.parent;if(this.group)for(this.sj=!0;c;){if(!c.group){this.sj=!1;break}c=c.parent}this.Nl=!this.On()&&(!this.parent||this.parent.group&&this.parent.sj);this.Cn=!!a;this.we=this.Z.slice(0);for(c=this.parent;c;){a=
  0;for(b=c.Z.length;a<b;a++)this.Wq(c.Z[a]);c=c.parent}this.Z=l(this.Z);this.we=l(this.we);a=0;for(b=this.Ja.length;a<b;a++)this.Ja[a].ya();a=0;for(b=this.Gc.length;a<b;a++)this.Gc[a].ya();a=0;for(b=this.Dc.length;a<b;a++)this.Dc[a].ya(a<b-1&&this.Dc[a+1].wi)};q.prototype.Eu=function(a){if(this.vf!==!!a){this.vf=!!a;var b;a=0;for(b=this.Rh.length;a<b;++a)this.Rh[a].Op();0<b&&this.b.X.Oe&&this.b.X.Oe.Sl()}};q.prototype.Bm=function(a){f(a,this.Z)};q.prototype.Wq=function(a){f(a,this.we)};q.prototype.hj=
  function(){this.Hl=!0;this.parent&&this.parent.hj()};q.prototype.On=function(){return this.Ja.length?this.Ja[0].trigger:!1};q.prototype.Ea=function(){var a,b,c=!1,d=this.b,e=this.b.mb();e.qb=this;var f=this.Ja;this.wi||(e.fk=!1);if(this.zc){0===f.length&&(c=!0);e.Ia=0;for(a=f.length;e.Ia<a;e.Ia++)b=f[e.Ia],b.trigger||(b=b.Ea())&&(c=!0);(e.Ye=c)&&this.dj()}else{e.Ia=0;for(a=f.length;e.Ia<a;e.Ia++)if(b=f[e.Ia].Ea(),!b){e.Ye=!1;this.Nl&&d.he&&d.jb();return}e.Ye=!0;this.dj()}this.Ur(e)};q.prototype.Ur=
  function(a){a.Ye&&this.Cn&&(a.fk=!0);this.Nl&&this.b.he&&this.b.jb()};q.prototype.xu=function(a){this.b.mb().qb=this;this.Ja[a].Ea()&&(this.dj(),this.b.mb().Ye=!0)};q.prototype.dj=function(){var a=this.b.mb(),b;a.pc=0;for(b=this.Gc.length;a.pc<b;a.pc++)if(this.Gc[a.pc].Ea())return;this.fp()};q.prototype.vu=function(){var a=this.b.mb(),b;for(b=this.Gc.length;a.pc<b;a.pc++)if(this.Gc[a.pc].Ea())return;this.fp()};q.prototype.fp=function(){if(this.Dc.length){var a,b,c,d,e=this.Dc.length-1;this.b.Zi(this);
  if(this.Hl)for(a=0,b=this.Dc.length;a<b;a++)c=this.Dc[a],(d=!this.sj||!this.group&&a<e)&&this.b.Rf(c.Z),c.Ea(),d?this.b.Id(c.Z):this.b.Xj(c.Z);else for(a=0,b=this.Dc.length;a<b;a++)this.Dc[a].Ea();this.b.Ui()}};q.prototype.yu=function(){var a=this.b.mb();a.qb=this;var b=!1,c;a.Ia=0;for(c=this.Ja.length;a.Ia<c;a.Ia++)if(this.Ja[a.Ia].Ea())b=!0;else if(!this.zc)return!1;return this.zc?b:!0};q.prototype.aj=function(){this.b.wg++;var a=this.b.mb().Ia,b=this.b.Zi(this);if(!this.zc)for(b.Ia=a+1,a=this.Ja.length;b.Ia<
  a;b.Ia++)if(!this.Ja[b.Ia].Ea()){this.b.Ui();return}this.dj();this.b.Ui()};q.prototype.xt=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ja[b].type===a.type)return!1;return!0};bc=q;b.prototype.ya=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.ya(),c.Fc&&(this.hg=!0)};b.prototype.Au=function(){return!0};b.prototype.Bl=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ua[a]=this.H[a].get();return Ya(this.cb.apply(this.b.ld,this.ua),this.Kk)};b.prototype.zu=
  function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ua[a]=this.H[a].get();a=this.cb.apply(this.Ee?this.Ee:this.type,this.ua);this.type.od();return a};b.prototype.Al=function(){var a,b,c,d,e,f,n,g,m=this.type,h=m.da(),t=this.Tb.zc&&!this.trigger;b=0;var l=m.wc,z=m.M,x=m.wd,r=this.Jc,q=-1<r,u=this.hg,J=this.H,F=this.ua,I=this.Kk,M=this.cb,E;if(u)for(b=0,e=J.length;b<e;++b)f=J[b],f.Fc||(F[b]=f.get(0));else for(b=0,e=J.length;b<e;++b)F[b]=J[b].get(0);if(h.pa){T(h.d);T(h.I);E=m.d;a=0;for(d=E.length;a<
  d;++a){g=E[a];if(u)for(b=0,e=J.length;b<e;++b)f=J[b],f.Fc&&(F[b]=f.get(a));q?(b=0,z&&(b=g.type.sf[x]),b=M.apply(g.F[r+b],F)):b=M.apply(g,F);(n=Ya(b,I))?h.d.push(g):t&&h.I.push(g)}m.finish&&m.finish(!0);h.pa=!1;m.od();return h.Bk()}c=0;E=(n=t&&!this.Tb.xt(this))?h.I:h.d;var D=!1;a=0;for(d=E.length;a<d;++a){g=E[a];if(u)for(b=0,e=J.length;b<e;++b)f=J[b],f.Fc&&(F[b]=f.get(a));q?(b=0,z&&(b=g.type.sf[x]),b=M.apply(g.F[r+b],F)):b=M.apply(g,F);if(Ya(b,I))if(D=!0,n){if(h.d.push(g),l)for(b=0,e=g.siblings.length;b<
  e;b++)f=g.siblings[b],f.type.da().d.push(f)}else{E[c]=g;if(l)for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.da().d[c]=f;c++}else if(n){E[c]=g;if(l)for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.da().I[c]=f;c++}else if(t&&(h.I.push(g),l))for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.da().I.push(f)}za(E,c);if(l)for(z=m.Gb,a=0,d=z.length;a<d;a++)g=z[a].da(),n?za(g.I,c):za(g.d,c);c=D;if(n&&!D)for(a=0,d=h.d.length;a<d;a++){g=h.d[a];if(u)for(b=0,e=J.length;b<e;b++)f=
  J[b],f.Fc&&(F[b]=f.get(a));b=q?M.apply(g.F[r],F):M.apply(g,F);if(Ya(b,I)){D=!0;break}}m.finish&&m.finish(c||t);return t?D:h.Bk()};Xb=b;d.prototype.ya=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.ya(),c.Fc&&(this.hg=!0)};d.prototype.Bl=function(){var a=this.b,b,c,d=this.H,e=this.ua;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.cb.apply(a.ld,e)};d.prototype.Al=function(){var a=this.type,b=this.Jc,c=a.wd,d=this.hg,e=this.H,f=this.ua,n=this.cb,g=a.da().tc(),a=a.M,m=-1<b,
  h,t,l,z,x,r;if(d)for(t=0,z=e.length;t<z;++t)x=e[t],x.Fc||(f[t]=x.get(0));else for(t=0,z=e.length;t<z;++t)f[t]=e[t].get(0);h=0;for(l=g.length;h<l;++h){r=g[h];if(d)for(t=0,z=e.length;t<z;++t)x=e[t],x.Fc&&(f[t]=x.get(h));m?(t=0,a&&(t=r.type.sf[c]),n.apply(r.F[b+t],f)):n.apply(r,f)}return!1};Yb=d;var x=[],t=-1;a.prototype.ya=function(){var a,b;if(11===this.type)this.Pe=this.b.xn(this.Gh,this.Tb.parent);else if(13===this.type)for(a=0,b=this.gf.length;a<b;a++)this.gf[a].ya();this.$c&&this.$c.ya()};a.prototype.Ot=
  function(a){this.Fc||!a||a.ea.kj||(this.Fc=!0)};a.prototype.pp=function(){this.Fc=!0};a.prototype.Zs=function(a){this.Md=a||0;a=c();this.$c.get(a);t--;return a.data};a.prototype.$s=function(a){this.Md=a||0;a=c();this.$c.get(a);t--;return H(a.data)?a.data:""};a.prototype.gt=function(){return this.object};a.prototype.Xs=function(){return this.Vm};a.prototype.et=function(a){this.Md=a||0;a=c();this.$c.get(a);t--;return a.Ua()?this.b.zg(a.data):this.b.vk(a.data)};a.prototype.ft=function(){return this.Va};
  a.prototype.dt=function(){return this.key};a.prototype.ct=function(){return this.index};a.prototype.bt=function(a){a=a||0;var b=this.Ac.type,c=null,c=b.da(),d=c.tc();if(d.length)c=d[a%d.length].type;else if(c.I.length)c=c.I[a%c.I.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.ci[b.wd]};a.prototype.Ys=function(){return this.Pe};a.prototype.Ws=function(){return this.kn};a.prototype.ht=function(){var a,b;a=0;for(b=this.gf.length;a<b;a++)this.Fh[a]=this.gf[a].get();
  return this.Fh};Zb=a;e.prototype.ya=function(){this.Z=l(this.Z)};e.prototype.ff=function(a){var b=this.b.un();this.parent&&!this.Rg&&b?(this.cf>=b.length&&(b.length=this.cf+1),b[this.cf]=a):this.data=a};e.prototype.Bg=function(){var a=this.b.un();return!this.parent||this.Rg||!a||this.vi?this.data:this.cf>=a.length||"undefined"===typeof a[this.cf]?this.Gk:a[this.cf]};e.prototype.Ea=function(){!this.parent||this.Rg||this.vi||this.ff(this.Gk)};Tb=e;m.prototype.toString=function(){return"include:"+this.Gg.toString()};
  m.prototype.ya=function(){this.Gg=this.b.hk[this.ot];this.sheet.Dn.add(this);this.Z=l(this.Z);for(var a=this.parent;a;)a.group&&a.Rh.push(this),a=a.parent;this.Op()};m.prototype.Ea=function(){this.parent&&this.b.qh(this.b.k);this.Gg.Ck||this.Gg.Ea(!0);this.parent&&this.b.Id(this.b.k)};m.prototype.Op=function(){for(var a=this.parent;a;){if(a.group&&!a.vf){this.Sb=!1;return}a=a.parent}this.Sb=!0};cc=m;n.prototype.reset=function(a){this.qb=a;this.pc=this.Ia=0;T(this.zp);this.fk=this.Ye=!1};n.prototype.zt=
  function(){return this.qb.Hl?!0:this.Ia<this.qb.Ja.length-1?!!this.qb.Z.length:!1};Sb=n})();
  (function(){function g(f,b){this.Ac=f;this.b=f.b;this.type=b[0];this.get=[this.ns,this.js,this.xs,this.As,this.Xr,this.ys,this.ss,this.es,this.rs,this.ws,this.Yr,this.vs,this.gs,this.ts,this.os,this.qs,this.ks,this.ls,this.ds,this.zs,this.us,this.ms,this.cs,this.hs][this.type];var d=null;this.Dd=this.H=this.ua=this.cb=this.rj=this.second=this.first=this.value=null;this.Jc=-1;this.Lc=null;this.Rp=-1;this.Pe=this.Gh=null;this.Uf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
  new ac(f,b[1]);break;case 18:this.first=new ac(f,b[1]);this.second=new ac(f,b[2]);this.rj=new ac(f,b[3]);break;case 19:this.cb=this.b.Vd(b[1]);this.cb!==X.prototype.ca.random&&this.cb!==X.prototype.ca.kr||this.Ac.pp();this.ua=[];this.H=[];3===b.length?(d=b[2],this.ua.length=d.length+1):this.ua.length=1;break;case 20:this.Dd=this.b.k[b[1]];this.Jc=-1;this.cb=this.b.Vd(b[2]);this.Uf=b[3];pc&&this.cb===pc.prototype.ca.Xp&&this.Ac.pp();b[4]?this.Lc=new ac(f,b[4]):this.Lc=null;this.ua=[];this.H=[];6===
  b.length?(d=b[5],this.ua.length=d.length+1):this.ua.length=1;break;case 21:this.Dd=this.b.k[b[1]];this.Uf=b[2];b[3]?this.Lc=new ac(f,b[3]):this.Lc=null;this.Rp=b[4];break;case 22:this.Dd=this.b.k[b[1]];this.Dd.ki(b[2]);this.Jc=this.Dd.qk(b[2]);this.cb=this.b.Vd(b[3]);this.Uf=b[4];b[5]?this.Lc=new ac(f,b[5]):this.Lc=null;this.ua=[];this.H=[];7===b.length?(d=b[6],this.ua.length=d.length+1):this.ua.length=1;break;case 23:this.Gh=b[1],this.Pe=null}this.Ac.Ot(this.Dd);4<=this.type&&17>=this.type&&(this.first=
  new ac(f,b[1]),this.second=new ac(f,b[2]));if(d){var c,a;c=0;for(a=d.length;c<a;c++)this.H.push(new ac(f,d[c]))}}function h(){++q;u.length===q&&u.push(new $b);return u[q]}function l(f,b,d){var c,a;c=0;for(a=f.length;c<a;++c)f[c].get(d),b[c+1]=d.data}function r(f,b){this.type=f||dc.kf;this.data=b||0;this.ef=null;this.type==dc.kf&&(this.data=Math.floor(this.data))}g.prototype.ya=function(){23===this.type&&(this.Pe=this.Ac.b.xn(this.Gh,this.Ac.Tb.parent));this.first&&this.first.ya();this.second&&this.second.ya();
  this.rj&&this.rj.ya();this.Lc&&this.Lc.ya();if(this.H){var f,b;f=0;for(b=this.H.length;f<b;f++)this.H[f].ya()}};var u=[],q=-1;g.prototype.zs=function(f){var b=this.H,d=this.ua;d[0]=f;f=h();l(b,d,f);--q;this.cb.apply(this.b.ld,d)};g.prototype.us=function(f){var b=this.Dd,d=this.ua,c=this.H,a=this.Lc,e=this.cb,g=this.Ac.Md,n=b.da(),z=n.tc();if(!z.length)if(n.I.length)z=n.I;else{this.Uf?f.ib(""):f.N(0);return}d[0]=f;f.ef=b;f=h();l(c,d,f);a&&(a.get(f),f.Ua()&&(g=f.data,z=b.d));--q;b=z.length;if(g>=b||
  g<=-b)g%=b;0>g&&(g+=b);e.apply(z[g],d)};g.prototype.cs=function(f){var b=this.Dd,d=this.ua,c=this.H,a=this.Lc,e=this.Jc,g=this.cb,n=this.Ac.Md,z=b.da(),x=z.tc();if(!x.length)if(z.I.length)x=z.I;else{this.Uf?f.ib(""):f.N(0);return}d[0]=f;f.ef=b;f=h();l(c,d,f);a&&(a.get(f),f.Ua()&&(n=f.data,x=b.d));--q;c=x.length;if(n>=c||n<=-c)n%=c;0>n&&(n+=c);n=x[n];x=0;b.M&&(x=n.type.sf[b.wd]);g.apply(n.F[e+x],d)};g.prototype.ms=function(f){var b=this.Lc,d=this.Dd,c=this.Rp,a=this.Ac.Md,e=d.da(),g=e.tc();if(!g.length)if(e.I.length)g=
  e.I;else{this.Uf?f.ib(""):f.N(0);return}if(b){e=h();b.get(e);if(e.Ua()){a=e.data;g=d.d;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=d.uk(a);d=a.Ma[c];H(d)?f.ib(d):f.u(d);--q;return}--q}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;d.M&&(g=a.type.ci[d.wd]);d=a.Ma[c+g];H(d)?f.ib(d):f.u(d)};g.prototype.ns=function(f){f.type=dc.kf;f.data=this.value};g.prototype.js=function(f){f.type=dc.jf;f.data=this.value};g.prototype.xs=function(f){f.type=dc.String;f.data=this.value};g.prototype.As=function(f){this.first.get(f);
  f.Ua()&&(f.data=-f.data)};g.prototype.Xr=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data+=b.data,b.zf()&&f.Kf());--q};g.prototype.ys=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data-=b.data,b.zf()&&f.Kf());--q};g.prototype.ss=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data*=b.data,b.zf()&&f.Kf());--q};g.prototype.es=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data/=
  b.data,f.Kf());--q};g.prototype.rs=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data%=b.data,b.zf()&&f.Kf());--q};g.prototype.ws=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data=Math.pow(f.data,b.data),b.zf()&&f.Kf());--q};g.prototype.Yr=function(f){this.first.get(f);var b=h();this.second.get(b);b.Cf()||f.Cf()?this.$r(f,b):this.Zr(f,b);--q};g.prototype.$r=function(f,b){f.Cf()&&b.Cf()?this.bs(f,b):this.as(f,b)};g.prototype.bs=function(f,
  b){f.data+=b.data};g.prototype.as=function(f,b){f.Cf()?f.data+=(Math.round(1E10*b.data)/1E10).toString():f.ib(f.data.toString()+b.data)};g.prototype.Zr=function(f,b){f.N(f.data&&b.data?1:0)};g.prototype.vs=function(f){this.first.get(f);var b=h();this.second.get(b);f.Ua()&&b.Ua()&&(f.data||b.data?f.N(1):f.N(0));--q};g.prototype.ds=function(f){this.first.get(f);f.data?this.second.get(f):this.rj.get(f)};g.prototype.gs=function(f){this.first.get(f);var b=h();this.second.get(b);f.N(f.data===b.data?1:0);
  --q};g.prototype.ts=function(f){this.first.get(f);var b=h();this.second.get(b);f.N(f.data!==b.data?1:0);--q};g.prototype.os=function(f){this.first.get(f);var b=h();this.second.get(b);f.N(f.data<b.data?1:0);--q};g.prototype.qs=function(f){this.first.get(f);var b=h();this.second.get(b);f.N(f.data<=b.data?1:0);--q};g.prototype.ks=function(f){this.first.get(f);var b=h();this.second.get(b);f.N(f.data>b.data?1:0);--q};g.prototype.ls=function(f){this.first.get(f);var b=h();this.second.get(b);f.N(f.data>=
  b.data?1:0);--q};g.prototype.hs=function(f){var b=this.Pe.Bg();ha(b)?f.u(b):f.ib(b)};ac=g;r.prototype.zf=function(){return this.type===dc.jf};r.prototype.Ua=function(){return this.type===dc.kf||this.type===dc.jf};r.prototype.Cf=function(){return this.type===dc.String};r.prototype.Kf=function(){this.zf()||(this.Cf()&&(this.data=parseFloat(this.data)),this.type=dc.jf)};r.prototype.N=function(f){this.type=dc.kf;this.data=Math.floor(f)};r.prototype.u=function(f){this.type=dc.jf;this.data=f};r.prototype.ib=
  function(f){this.type=dc.String;this.data=f};r.prototype.ij=function(f){ha(f)?(this.type=dc.jf,this.data=f):H(f)?(this.type=dc.String,this.data=f.toString()):(this.type=dc.kf,this.data=0)};$b=r;dc={kf:0,jf:1,String:2}})();function X(g){this.b=g;this.Rb=[]}
  X.prototype.Db=function(){var g={},h,l,r,u,q,f,b,d;g.waits=[];var c=g.waits,a;h=0;for(l=this.Rb.length;h<l;h++){f=this.Rb[h];a={t:f.time,st:f.Ku,s:f.up,ev:f.ug.K,sm:[],sols:{}};f.ug.Gc[f.pc]&&(a.act=f.ug.Gc[f.pc].K);r=0;for(u=f.Z.length;r<u;r++)a.sm.push(f.Z[r].K);for(q in f.Qb)if(f.Qb.hasOwnProperty(q)){b=this.b.k[parseInt(q,10)];d={sa:f.Qb[q].gp,insts:[]};r=0;for(u=f.Qb[q].We.length;r<u;r++)d.insts.push(f.Qb[q].We[r].uid);a.sols[b.K.toString()]=d}c.push(a)}return g};
  X.prototype.gc=function(g){g=g.waits;var h,l,r,u,q,f,b,d,c,a,e;T(this.Rb);h=0;for(l=g.length;h<l;h++)if(f=g[h],d=this.b.Nm[f.ev.toString()]){c=-1;r=0;for(u=d.Gc.length;r<u;r++)if(d.Gc[r].K===f.act){c=r;break}if(-1!==c){b={Qb:{},Z:[],$m:!1};b.time=f.t;b.Ku=f.st||"";b.up=!!f.s;b.ug=d;b.pc=c;r=0;for(u=f.sm.length;r<u;r++)(d=this.b.ni(f.sm[r]))&&b.Z.push(d);for(q in f.sols)if(f.sols.hasOwnProperty(q)&&(d=this.b.ni(parseInt(q,10)))){c=f.sols[q];a={gp:c.sa,We:[]};r=0;for(u=c.insts.length;r<u;r++)(e=this.b.mi(c.insts[r]))&&
  a.We.push(e);b.Qb[d.index.toString()]=a}this.Rb.push(b)}}};
  (function(){function g(){}function h(){}function l(){}var r=X.prototype;g.prototype.em=function(){return!0};g.prototype.wq=function(){return!0};g.prototype.$p=function(f,b,d){return ec(f,b,d)};g.prototype.Hq=function(f){var b=this.b.mb(),d=b.qb,c=b.zt(),b=this.b.ou();if(c)for(c=0;c<f&&!b.Ya;c++)this.b.Rf(d.Z),b.index=c,d.aj(),this.b.Id(d.Z);else for(c=0;c<f&&!b.Ya;c++)b.index=c,d.aj();this.b.fu();return!1};g.prototype.aq=function(f,b,d){return ec(f.Bg(),b,d)};g.prototype.jq=function(f){return(f=this.b.Eg[f.toLowerCase()])&&
  f.vf};g.prototype.cm=function(){var f=this.b.mb();return f.fk?!1:!f.Ye};g.prototype.fm=function(){return!0};g.prototype.qq=function(){return!0};g.prototype.Hj=function(){return!0};g.prototype.mm=function(){return!0};g.prototype.xq=function(){return!0};g.prototype.Mh=function(){return!0};g.prototype.Up=function(f,b,d){return Oa(W(f),W(d))<=W(b)};g.prototype.iq=function(f,b){return Va(W(f),W(b))};g.prototype.gq=function(f,b,d){f=Ma(f);b=Ma(b);d=Ma(d);return Va(d,b)?Va(f,b)&&!Va(f,d):!(!Va(f,b)&&Va(f,
  d))};r.e=new g;h.prototype.Iq=function(f,b){f&&f.visible!==b&&(f.visible=b,this.b.W=!0)};h.prototype.Mq=function(f,b){0===f.zj?ha(b)?f.ff(b):f.ff(parseFloat(b)):1===f.zj&&f.ff(b.toString())};h.prototype.Tp=function(f,b){0===f.zj?ha(b)?f.ff(f.Bg()+b):f.ff(f.Bg()+parseFloat(b)):1===f.zj&&f.ff(f.Bg()+b.toString())};var u=[],q=[];h.prototype.dq=function(f){if(!this.b.Sg&&!this.b.lg)for(var b in this.b.Hf)if(this.b.Hf.hasOwnProperty(b)&&nb(b,f)){this.b.lg=this.b.Hf[b];break}};r.T=new h;l.prototype["int"]=
  function(f,b){H(b)?(f.N(parseInt(b,10)),isNaN(f.data)&&(f.data=0)):f.N(b)};l.prototype["float"]=function(f,b){H(b)?(f.u(parseFloat(b)),isNaN(f.data)&&(f.data=0)):f.u(b)};l.prototype.random=function(f,b,d){void 0===d?f.u(Math.random()*b):f.u(Math.random()*(d-b)+b)};l.prototype.sqrt=function(f,b){f.u(Math.sqrt(b))};l.prototype.abs=function(f,b){f.u(Math.abs(b))};l.prototype.round=function(f,b){f.N(Math.round(b))};l.prototype.floor=function(f,b){f.N(Math.floor(b))};l.prototype.ceil=function(f,b){f.N(Math.ceil(b))};
  l.prototype.sin=function(f,b){f.u(Math.sin(W(b)))};l.prototype.cos=function(f,b){f.u(Math.cos(W(b)))};l.prototype.tan=function(f,b){f.u(Math.tan(W(b)))};l.prototype.asin=function(f,b){f.u(Ga(Math.asin(b)))};l.prototype.acos=function(f,b){f.u(Ga(Math.acos(b)))};l.prototype.atan=function(f,b){f.u(Ga(Math.atan(b)))};l.prototype.exp=function(f,b){f.u(Math.exp(b))};l.prototype.log10=function(f,b){f.u(Math.log(b)/Math.LN10)};l.prototype.max=function(f){var b=arguments[1];"number"!==typeof b&&(b=0);var d,
  c,a;d=2;for(c=arguments.length;d<c;d++)a=arguments[d],"number"===typeof a&&b<a&&(b=a);f.u(b)};l.prototype.min=function(f){var b=arguments[1];"number"!==typeof b&&(b=0);var d,c,a;d=2;for(c=arguments.length;d<c;d++)a=arguments[d],"number"===typeof a&&b>a&&(b=a);f.u(b)};l.prototype.Le=function(f){f.u(this.b.Le)};l.prototype.$f=function(f){f.u(this.b.$f)};l.prototype.time=function(f){f.u(this.b.ob.P)};l.prototype.Od=function(f){f.N(this.b.Od)};l.prototype.Mi=function(f){f.N(this.b.Mi)};l.prototype.nk=
  function(f){f.N(this.b.nk)};l.prototype.Lt=function(f,b){var d,c;if(this.b.fh.length)if(b){for(c=this.b.gh;0<=c;--c)if(d=this.b.fh[c],d.name===b){f.N(d.index);return}f.N(0)}else d=this.b.vn(),f.N(d?d.index:-1);else f.N(0)};l.prototype.j=function(f,b,d,c,a){f.u(Ga(Na(b,d,c,a)))};l.prototype.Qt=function(f){f.ib("\n")};l.prototype.left=function(f,b,d){f.ib(H(b)?b.substr(0,d):"")};l.prototype.right=function(f,b,d){f.ib(H(b)?b.substr(b.length-d):"")};l.prototype.replace=function(f,b,d,c){H(b)&&H(d)&&H(c)?
  f.ib(b.replace(new RegExp(fb(d),"gi"),c)):f.ib(H(b)?b:"")};l.prototype.trim=function(f,b){f.ib(H(b)?b.trim():"")};l.prototype.Ht=function(f){this.b.X?f.ib(this.b.X.name):f.ib("")};l.prototype.kr=function(f){var b=oa(Math.random()*(arguments.length-1));f.ij(arguments[b+1])};l.prototype.Zj=function(f){f.u(this.b.Zj/1E3)};l.prototype.If=function(f){f.u(this.b.If)};r.ca=new l;r.wu=function(){var f,b,d,c,a,e,g=this.b.mb();f=0;for(d=this.Rb.length;f<d;f++){c=this.Rb[f];if(-1===c.time){if(!c.up)continue}else if(c.time>
  this.b.ob.P)continue;g.qb=c.ug;g.pc=c.pc;g.Ia=0;for(b in c.Qb)c.Qb.hasOwnProperty(b)&&(a=this.b.k[parseInt(b,10)].da(),e=c.Qb[b],a.pa=e.gp,Aa(a.d,e.We),a=e,T(a.We),q.push(a));c.ug.vu();this.b.Xj(c.Z);c.$m=!0}b=f=0;for(d=this.Rb.length;f<d;f++)c=this.Rb[f],this.Rb[b]=c,c.$m?($a(c.Qb),T(c.Z),u.push(c)):b++;za(this.Rb,b)}})();
  (function(){qb=function(g,l){var r=g[1],u=g[3],q=g[4],f=g[5],b=g[6],d=g[7],c=g[8];l.e||(l.e={});l.T||(l.T={});l.ca||(l.ca={});var a=l.e,e=l.T,m=l.ca;u&&(a.am=function(a,b){return ec(this.x,a,b)},a.bq=function(a,b){return ec(this.y,a,b)},a.uv=function(){var a=this.i;this.Ha();var b=this.$a;return!(b.right<a.aa||b.bottom<a.ba||b.left>a.ga||b.top>a.fa)},a.vv=function(){this.Ha();var a=this.$a,b=this.b.X;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Fv=function(a,b,c){var d=this.da(),
  e=d.tc();if(!e.length)return!1;var f=e[0],g=f,m=Xa(f.x,f.y,b,c),h,l,r;h=1;for(l=e.length;h<l;h++)if(f=e[h],r=Xa(f.x,f.y,b,c),0===a&&r<m||1===a&&r>m)m=r,g=f;d.nh(g);return!0},e.tm=function(a){this.x!==a&&(this.x=a,this.Fa())},e.Wv=function(a){this.y!==a&&(this.y=a,this.Fa())},e.Jq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Fa()},e.Uv=function(a,b){var c=a.Rs(this);if(c){var d;c.tk?(d=c.tk(b,!0),c=c.tk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Fa()}},
  e.zv=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Fa())},e.yv=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.Fa())},m.vm=function(a){a.u(this.x)},m.wm=function(a){a.u(this.y)},m.Le=function(a){a.u(this.b.wn(this))});q&&(a.pv=function(a,b){return ec(this.width,a,b)},a.mv=function(a,b){return ec(this.height,a,b)},e.Nq=function(a){this.width!==a&&(this.width=a,this.Fa())},e.Rv=function(a){this.height!==a&&(this.height=a,this.Fa())},e.qm=
  function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Fa()},m.um=function(a){a.u(this.width)},m.fq=function(a){a.u(this.height)},m.jv=function(a){this.Ha();a.u(this.$a.left)},m.lv=function(a){this.Ha();a.u(this.$a.top)},m.kv=function(a){this.Ha();a.u(this.$a.right)},m.iv=function(a){this.Ha();a.u(this.$a.bottom)});f&&(a.Up=function(a,b){return Oa(this.j,W(b))<=W(a)},a.iq=function(a){return Va(this.j,W(a))},a.gq=function(a,b){var c=Ma(a),d=Ma(b),e=Ja(this.j);return Va(d,
  c)?Va(e,c)&&!Va(e,d):!(!Va(e,c)&&Va(e,d))},e.Nv=function(a){a=W(Ia(a));isNaN(a)||this.j===a||(this.j=a,this.Fa())},e.Jv=function(a){0===a||isNaN(a)||(this.j+=W(a),this.j=Ja(this.j),this.Fa())},e.Kv=function(a){0===a||isNaN(a)||(this.j-=W(a),this.j=Ja(this.j),this.Fa())},e.Lv=function(a,b){var c=Pa(this.j,W(b),W(a));isNaN(c)||this.j===c||(this.j=c,this.Fa())},e.Mv=function(a,b,c){a=Pa(this.j,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.j===a||(this.j=a,this.Fa())},e.Vv=function(a,b){var c=Math.atan2(b-
  this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Fa())},m.hv=function(a){a.u(Ka(this.j))});r||(a.nv=function(a,b,c){return ec(this.Ma[a],b,c)},a.hq=function(a){return this.Ma[a]},a.Gv=function(a,b){var c=this.da(),d=c.tc();if(!d.length)return!1;var e=d[0],f=e,g=e.Ma[b],m,h,l;m=1;for(h=d.length;m<h;m++)if(e=d[m],l=e.Ma[b],0===a&&l<g||1===a&&l>g)g=l,f=e;c.nh(f);return!0},a.pm=function(a){var b,c,d,e,f;if(this.b.Ls().Kk){f=this.da();if(f.pa)for(f.pa=!1,T(f.d),T(f.I),d=this.d,b=0,c=d.length;b<c;b++)e=
  d[b],e.uid===a?f.I.push(e):f.d.push(e);else{d=b=0;for(c=f.d.length;b<c;b++)e=f.d[b],f.d[d]=e,e.uid===a?f.I.push(e):d++;za(f.d,d)}this.od();return!!f.d.length}e=this.b.mi(a);if(!e)return!1;f=this.da();if(!f.pa&&-1===f.d.indexOf(e))return!1;if(this.M)for(a=e.type.na,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.nh(e),this.od(),!0}else if(e.type===this)return f.nh(e),this.od(),!0;return!1},a.dm=function(){return!0},a.rq=function(){return!0},e.Sv=function(a,b){var c=this.Ma;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
  H(c[a])&&(c[a]=H(b)?b:b.toString())},e.gv=function(a,b){var c=this.Ma;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):H(c[a])&&(c[a]=H(b)?c[a]+b:c[a]+b.toString())},e.Xv=function(a,b){var c=this.Ma;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},e.Ov=function(a,b){this.Ma[a]=b?1:0},e.Yv=function(a){this.Ma[a]=1-this.Ma[a]},e.rv=function(){this.b.Ae(this)},e.nq||(e.nq=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ei(this,b,!0);this.Yd&&this.Yd();if(this.F)for(a=0,b=this.F.length;a<
  b;++a)c=this.F[a],c.Yd&&c.Yd()}),m.qv=function(a){var b=a.ef.d.length,c,d,e;c=0;for(d=this.b.Wc.length;c<d;c++)e=this.b.Wc[c],a.ef.M?0<=e.type.na.indexOf(a.ef)&&b++:e.type===a.ef&&b++;a.N(b)},m.Iv=function(a){a.N(a.ef.da().tc().length)},m.Zv=function(a){a.N(this.uid)},m.sv=function(a){a.N(this.Cg())},m.$l||(m.$l=function(a){a.ib(JSON.stringify(this.b.Cl(this,!0)))}));b&&(a.lq=function(){return this.visible},e.rm=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.W=!0)},a.ov=function(a,b){return ec(mb(100*
  this.opacity),a,b)},e.Tv=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.W=!0)},m.Opacity=function(a){a.u(mb(100*this.opacity))});d&&(a.tv=function(a){return a?this.i===a:!1},a.Hv=function(a){var b=this.da(),c=b.tc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.i.index>e.i.index||d.i.index===e.i.index&&d.bd()>e.bd())e=d}else if(d.i.index<e.i.index||d.i.index===e.i.index&&d.bd()<e.bd())e=d;b.nh(e);return!0},e.Cv=function(){var a=
  this.i,b=a.d;b.length&&b[b.length-1]===this||(a.Tf(this,!1),a.jg(this,!1),this.b.W=!0)},e.Av=function(){var a=this.i,b=a.d;b.length&&b[0]===this||(a.Tf(this,!1),a.ku(this),this.b.W=!0)},e.Bv=function(a){a&&a!=this.i&&(this.i.Tf(this,!0),this.i=a,a.jg(this,!0),this.b.W=!0)},e.aw=function(a,b){var c=0===a;if(b){var d=b.Ms(this);d&&d.uid!==this.uid&&(this.i.index!==d.i.index&&(this.i.Tf(this,!0),this.i=d.i,d.i.jg(this,!0)),this.i.Pt(this,d,c),this.b.W=!0)}},m.xv=function(a){a.N(this.i.zo)},m.wv=function(a){a.ib(this.i.name)},
  m.$v=function(a){a.N(this.bd())});c&&(e.Pv=function(a,b){if(this.b.n){var c=this.type.sk(b);if(!(0>c)){var d=1===a;this.Wd[c]!==d&&(this.Wd[c]=d,this.Rc(),this.b.W=!0)}}},e.Qv=function(a,b,c){if(this.b.n){var d=this.type.sk(a);0>d||(a=this.type.C[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.Vs(a.Ga,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Sb&&(this.b.W=!0))))}})};Kb=function(){this.Sj=this.Mj=!0;this.type.Fm=!0;this.b.W=!0;var g,l,r=this.Nj;g=0;for(l=r.length;g<l;++g)r[g](this);this.i.oc&&
  this.Ha()};Lb=function(g){g&&this.Nj.push(g)};Nb=function(){if(this.Mj){var g=this.$a,l=this.Fe;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Jb*this.width,-this.Kb*this.height);this.j?(g.offset(-this.x,-this.y),l.qp(g,this.j),l.offset(this.x,this.y),l.Om(g)):l.jj(g);g.normalize();this.Mj=!1;this.Xu()}};var g=new va(0,0,0,0);Ob=function(){if(this.i.oc){var h=this.i.hb,l=this.$a;g.set(h.xb(l.left),h.yb(l.top),h.xb(l.right),h.yb(l.bottom));this.Bb.tg(g)||(this.Bb.right<this.Bb.left?
  h.update(this,null,g):h.update(this,this.Bb,g),this.Bb.pg(g),this.i.Pc=!0)}};Pb=function(){if(this.Sj&&this.mg){this.Ha();var h=this.type.Um,l=this.$a;g.set(h.xb(l.left),h.yb(l.top),h.xb(l.right),h.yb(l.bottom));this.be.tg(g)||(this.be.right<this.be.left?h.update(this,null,g):h.update(this,this.be,g),this.be.pg(g),this.Sj=!1)}};Mb=function(g,l){return this.$a.Yb(g,l)&&this.Fe.Yb(g,l)?this.Vc&&!this.Vc.Et()?(this.Vc.hr(this.width,this.height,this.j),this.Vc.Yb(g-this.x,l-this.y)):!0:!1};Gb=function(){this.type.vj();
  return this.Ue};Qb=function(){this.i.Ul();return this.Sc};Rb=function(){T(this.R);var g,l,r,u=!0;g=0;for(l=this.Wd.length;g<l;g++)this.Wd[g]&&(r=this.type.C[g],this.R.push(r),r.Oc||(u=!1));this.Qp=!!this.R.length;this.Ld=u};Hb=function(){return"Inst"+this.$o};tb=function(g){if(g&&g.wc&&g.type!=this){var l,r,u;l=0;for(r=g.siblings.length;l<r;l++)if(u=g.siblings[l],u.type==this)return u}g=this.da().tc();return g.length?g[0]:null};ub=function(g){var l=this.da().tc();return l.length?l[g.Cg()%l.length]:
  null};sb=function(){if(this.Yf&&!this.M){var g,l;g=0;for(l=this.d.length;g<l;g++)this.d[g].Ue=g;var r=g,u=this.b.Wc;g=0;for(l=u.length;g<l;++g)u[g].type===this&&(u[g].Ue=r++);this.Yf=!1}};Eb=function(g){if(g<this.d.length)return this.d[g];g-=this.d.length;var l=this.b.Wc,r,u;r=0;for(u=l.length;r<u;++r)if(l[r].type===this){if(0===g)return l[r];--g}return null};vb=function(){return this.Nd[this.Xc]};wb=function(){this.Xc++;this.Xc===this.Nd.length?this.Nd.push(new rb(this)):(this.Nd[this.Xc].pa=!0,
  T(this.Nd[this.Xc].I))};yb=function(){this.Xc++;this.Xc===this.Nd.length&&this.Nd.push(new rb(this));var g=this.Nd[this.Xc],l=this.Nd[this.Xc-1];l.pa?(g.pa=!0,T(g.I)):(g.pa=!1,Aa(g.d,l.d),Aa(g.I,l.I))};zb=function(){this.Xc--};Ab=function(g){var l,r,u,q,f,b=0;if(!this.M)for(l=0,r=this.na.length;l<r;l++)for(f=this.na[l],u=0,q=f.qa.length;u<q;u++){if(g===f.qa[u].name)return this.ma.lastBehIndex=b,f.qa[u];b++}l=0;for(r=this.qa.length;l<r;l++){if(g===this.qa[l].name)return this.ma.lastBehIndex=b,this.qa[l];
  b++}return null};Bb=function(g){return this.ki(g)?this.ma.lastBehIndex:-1};Cb=function(g){var l,r;l=0;for(r=this.C.length;l<r;l++)if(this.C[l].name===g)return l;return-1};Db=function(){if(this.wc&&!this.M){var g,l,r,u,q,f,b;this.vj();f=this.da();var d=f.pa,c=(g=this.b.mb())&&g.qb&&g.qb.zc;g=0;for(l=this.Gb.length;g<l;g++)if(q=this.Gb[g],q!==this&&(q.vj(),b=q.da(),b.pa=d,!d)){T(b.d);r=0;for(u=f.d.length;r<u;++r)b.d[r]=q.uk(f.d[r].Ue);if(c)for(T(b.I),r=0,u=f.I.length;r<u;++r)b.I[r]=q.uk(f.I[r].Ue)}}};
  Fb=function(){return"Type"+this.K};ec=function(g,l,r){if("undefined"===typeof g||"undefined"===typeof r)return!1;switch(l){case 0:return g===r;case 1:return g!==r;case 2:return g<r;case 3:return g<=r;case 4:return g>r;case 5:return g>=r;default:return!1}}})();var mc={};function qc(g){this.b=g}
  (function(){function g(){}var h=!1,l=null,r=null,u="",q=qc.prototype;q.za=function(a){this.ea=a;this.b=a.b};q.za.prototype.V=function(){};q.la=function(a){this.type=a;this.b=a.b;this.Kc=this.me="";this.Ab=0;this.timeout=-1;if(h=this.b.je)l=require("path"),r=require("fs"),u=l.dirname((window.process||nw.process).execPath)+"\\"};var f=q.la.prototype,b=null;window.C2_AJAX_DCSide=function(a,c,d){b&&("success"===a?(b.Kc=c,b.me=d,b.b.trigger(qc.prototype.e.Dj,b),b.b.trigger(qc.prototype.e.Fj,b)):"error"===
  a?(b.Kc=c,b.b.trigger(qc.prototype.e.Ej,b),b.b.trigger(qc.prototype.e.Gj,b)):"progress"===a&&(b.Ab=d,b.Kc=c,b.b.trigger(qc.prototype.e.lm,b)))};f.V=function(){b=this};f.Db=function(){return{lastData:this.me}};f.gc=function(a){this.me=a.lastData;this.Kc="";this.Ab=0};var d={},c="";f.De=function(a,b,f,g){if(this.b.eb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+b+'", "'+f+'", '+(g?'"'+g+'"':"null")+");");else{var l=this,q=null,t=function(){l.Kc=a;l.b.trigger(qc.prototype.e.Ej,l);l.b.trigger(qc.prototype.e.Gj,
  l)},k=function(){if(h){var c=u+b;r.existsSync(c)?r.readFile(c,{encoding:"utf8"},function(b,c){b?t():(l.Kc=a,l.me=c.replace(/\r\n/g,"\n"),l.b.trigger(qc.prototype.e.Dj,l),l.b.trigger(qc.prototype.e.Fj,l))}):t()}else t()},p=function(b){b.lengthComputable&&(l.Ab=b.loaded/b.total,l.Kc=a,l.b.trigger(qc.prototype.e.lm,l))};try{this.b.ke?q=new ActiveXObject("Microsoft.XMLHTTP"):q=new XMLHttpRequest;q.onreadystatechange=function(){4===q.readyState&&(l.Kc=a,q.responseText?l.me=q.responseText.replace(/\r\n/g,
  "\n"):l.me="",400<=q.status?(l.b.trigger(qc.prototype.e.Ej,l),l.b.trigger(qc.prototype.e.Gj,l)):h&&!l.me.length||!h&&0===q.status&&!l.me.length||(l.b.trigger(qc.prototype.e.Dj,l),l.b.trigger(qc.prototype.e.Fj,l)))};this.b.ke||(q.onerror=k,q.ontimeout=k,q.onabort=k,q.onprogress=p);q.open(f,b);!this.b.ke&&0<=this.timeout&&"undefined"!==typeof q.timeout&&(q.timeout=this.timeout);try{q.responseType="text"}catch(S){}g&&q.setRequestHeader&&!d.hasOwnProperty("Content-Type")&&q.setRequestHeader("Content-Type",
  "application/x-www-form-urlencoded");if(q.setRequestHeader){for(var B in d)if(d.hasOwnProperty(B))try{q.setRequestHeader(B,d[B])}catch(C){}d={}}if(c&&q.overrideMimeType){try{q.overrideMimeType(c)}catch(N){}c=""}g?q.send(g):q.send()}catch(Q){k()}}};g.prototype.Fj=function(a){return nb(a,this.Kc)};g.prototype.Dj=function(){return!0};g.prototype.Gj=function(a){return nb(a,this.Kc)};g.prototype.Ej=function(){return!0};g.prototype.lm=function(a){return nb(a,this.Kc)};q.e=new g;q.T=new function(){};q.ca=
  new function(){}})();function rc(g){this.b=g}
  (function(){function g(){return b.length?b.pop():[]}function h(d){var c,a;c=0;for(a=d.length;c<a;c++)Array.isArray(d[c])&&h(d[c]);T(d);b.push(d)}function l(){}function r(){}function u(){}var q=rc.prototype;q.za=function(b){this.ea=b;this.b=b.b};q.za.prototype.V=function(){};q.la=function(b){this.type=b;this.b=b.b};var f=q.la.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});f.V=function(){this.rb=this.Y[0];this.Hb=this.Y[1];this.rc=
  this.Y[2];this.ic||(this.Uc=g());var b=this.Uc;b.length=this.rb;var c,a,e;for(c=0;c<this.rb;c++)for(b[c]||(b[c]=g()),b[c].length=this.Hb,a=0;a<this.Hb;a++)for(b[c][a]||(b[c][a]=g()),b[c][a].length=this.rc,e=0;e<this.rc;e++)b[c][a][e]=0;this.mn=[];this.nn=[];this.pn=[];this.xd=-1};f.Of=function(){var b;for(b=0;b<this.rb;b++)h(this.Uc[b]);T(this.Uc)};f.Lj=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.rb-1||isNaN(c)||0>c||c>this.Hb-1||isNaN(a)||0>a||a>this.rc-
  1?0:this.Uc[b][c][a]};f.set=function(b,c,a,e){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.rb-1||isNaN(c)||0>c||c>this.Hb-1||isNaN(a)||0>a||a>this.rc-1||(this.Uc[b][c][a]=e)};f.Js=function(){return JSON.stringify({c2array:!0,size:[this.rb,this.Hb,this.rc],data:this.Uc})};f.Db=function(){return{size:[this.rb,this.Hb,this.rc],data:this.Uc}};f.gc=function(b){var c=b.size;this.rb=c[0];this.Hb=c[1];this.rc=c[2];this.Uc=b.data};f.Kd=function(b,c,a){0>b&&(b=0);0>c&&(c=0);0>a&&(a=
  0);if(this.rb!==b||this.Hb!==c||this.rc!==a){this.rb=b;this.Hb=c;this.rc=a;var e,f,n=this.Uc;n.length=b;for(b=0;b<this.rb;b++)for(ga(n[b])&&(n[b]=g()),n[b].length=c,e=0;e<this.Hb;e++)for(ga(n[b][e])&&(n[b][e]=g()),n[b][e].length=a,f=0;f<this.rc;f++)ga(n[b][e][f])&&(n[b][e][f]=0)}};f.Ym=function(){return 0<=this.xd&&this.xd<this.mn.length?this.mn[this.xd]:0};f.bn=function(){return 0<=this.xd&&this.xd<this.nn.length?this.nn[this.xd]:0};f.ew=function(){return 0<=this.xd&&this.xd<this.pn.length?this.pn[this.xd]:
  0};l.prototype.am=function(b,c,a){return ec(this.Lj(b,0,0),c,a)};f.De=function(b){this.b.Rf(b.Z);b.aj();this.b.Id(b.Z)};q.e=new l;r.prototype.qm=function(b,c,a){this.Kd(b,c,a)};r.prototype.tm=function(b,c){this.set(b,0,0,c)};r.prototype.cq=function(b,c){var a=0,e=0;b=Math.floor(b);var f=this.Uc;if(!(0>b))switch(c){case 0:if(b>=this.rb)break;h(f[b]);f.splice(b,1);this.rb--;break;case 1:if(b>=this.Hb)break;for(;a<this.rb;a++)h(f[a][b]),f[a].splice(b,1);this.Hb--;break;case 2:if(b>=this.rc)break;for(;a<
  this.rb;a++)for(e=0;e<this.Hb;e++)f[a][e].splice(b,1);this.rc--}};q.T=new r;u.prototype.Wp=function(b,c,a,e){b.ij(this.Lj(c,a||0,e||0))};u.prototype.um=function(b){b.N(this.rb)};u.prototype.fq=function(b){b.N(this.Hb)};u.prototype.$l=function(b){b.ib(this.Js())};q.ca=new u})();function sc(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 h(a){a=a.toLowerCase();return V.hasOwnProperty(a)&&V[a].length?V[a][0].cc():w.destination}function l(){return w.createGain?w.createGain():w.createGainNode()}function r(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function u(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function q(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
  function b(a,b,c,d,e,f){this.type="filter";this.Sa=[a,b,c,d,e,f];this.L=l();this.B=l();this.B.gain.value=f;this.A=l();this.A.gain.value=1-f;this.Aa=w.createBiquadFilter();this.Aa.type="number"===typeof this.Aa.type?a:wc[a];this.Aa.frequency.value=b;this.Aa.detune&&(this.Aa.detune.value=c);this.Aa.Q.value=d;this.Aa.gain.value=e;this.L.connect(this.Aa);this.L.connect(this.A);this.Aa.connect(this.B)}function d(a,b,c){this.type="delay";this.Sa=[a,b,c];this.L=l();this.B=l();this.B.gain.value=c;this.A=
  l();this.A.gain.value=1-c;this.hh=l();this.sc=r(a);this.sc.delayTime.value=a;this.Yh=l();this.Yh.gain.value=b;this.L.connect(this.hh);this.L.connect(this.A);this.hh.connect(this.B);this.hh.connect(this.sc);this.sc.connect(this.Yh);this.Yh.connect(this.hh)}function c(a,b,c,d){this.type="convolve";this.Sa=[b,c,d];this.L=l();this.B=l();this.B.gain.value=c;this.A=l();this.A.gain.value=1-c;this.Ie=w.createConvolver();a&&(this.Ie.normalize=b,this.Ie.buffer=a);this.L.connect(this.Ie);this.L.connect(this.A);
  this.Ie.connect(this.B)}function a(a,b,c,d,e){this.type="flanger";this.Sa=[a,b,c,d,e];this.L=l();this.A=l();this.A.gain.value=1-e/2;this.B=l();this.B.gain.value=e/2;this.di=l();this.di.gain.value=d;this.sc=r(a+b);this.sc.delayTime.value=a;this.Xa=w.createOscillator();this.Xa.frequency.value=c;this.Ob=l();this.Ob.gain.value=b;this.L.connect(this.sc);this.L.connect(this.A);this.sc.connect(this.B);this.sc.connect(this.di);this.di.connect(this.sc);this.Xa.connect(this.Ob);this.Ob.connect(this.sc.delayTime);
  u(this.Xa)}function e(a,b,c,d,e,f){this.type="phaser";this.Sa=[a,b,c,d,e,f];this.L=l();this.A=l();this.A.gain.value=1-f/2;this.B=l();this.B.gain.value=f/2;this.Aa=w.createBiquadFilter();this.Aa.type="number"===typeof this.Aa.type?7:"allpass";this.Aa.frequency.value=a;this.Aa.detune&&(this.Aa.detune.value=b);this.Aa.Q.value=c;this.Xa=w.createOscillator();this.Xa.frequency.value=e;this.Ob=l();this.Ob.gain.value=d;this.L.connect(this.Aa);this.L.connect(this.A);this.Aa.connect(this.B);this.Xa.connect(this.Ob);
  this.Ob.connect(this.Aa.frequency);u(this.Xa)}function m(a){this.type="gain";this.Sa=[a];this.O=l();this.O.gain.value=a}function n(a,b){this.type="tremolo";this.Sa=[a,b];this.O=l();this.O.gain.value=1-b/2;this.Xa=w.createOscillator();this.Xa.frequency.value=a;this.Ob=l();this.Ob.gain.value=b/2;this.Xa.connect(this.Ob);this.Ob.connect(this.O.gain);u(this.Xa)}function z(a,b){this.type="ringmod";this.Sa=[a,b];this.L=l();this.B=l();this.B.gain.value=b;this.A=l();this.A.gain.value=1-b;this.uh=l();this.uh.gain.value=
  0;this.Xa=w.createOscillator();this.Xa.frequency.value=a;this.Xa.connect(this.uh.gain);u(this.Xa);this.L.connect(this.uh);this.L.connect(this.A);this.uh.connect(this.B)}function x(a,b,c,d,e){this.type="distortion";this.Sa=[a,b,c,d,e];this.L=l();this.Wi=l();this.Vi=l();this.Du(c,Math.pow(10,d/20));this.B=l();this.B.gain.value=e;this.A=l();this.A.gain.value=1-e;this.Bj=w.createWaveShaper();this.Wh=new Float32Array(65536);this.Hs(a,b);this.Bj.Wh=this.Wh;this.L.connect(this.Wi);this.L.connect(this.A);
  this.Wi.connect(this.Bj);this.Bj.connect(this.Vi);this.Vi.connect(this.B)}function t(a,b,c,d,e){this.type="compressor";this.Sa=[a,b,c,d,e];this.O=w.createDynamicsCompressor();try{this.O.threshold.value=a,this.O.knee.value=b,this.O.ratio.value=c,this.O.attack.value=d,this.O.release.value=e}catch(f){}}function k(a,b){this.type="analyser";this.Sa=[a,b];this.O=w.createAnalyser();this.O.fftSize=a;this.O.smoothingTimeConstant=b;this.Fs=new Float32Array(this.O.frequencyBinCount);this.tp=new Uint8Array(a);
  this.mh=0}function p(){this.U=null;this.Fi=0}function S(a,b){this.src=a;this.J=v;this.xc=b;this.Ph=!1;var c=this;this.cl=this.nl=null;this.Pf=[];this.ej=0;this.Xl=this.bi=this.yp=this.Ri=!1;1===v&&b&&!Qa&&(this.J=0,this.nl=l());this.pd=this.S=null;var d;switch(this.J){case 0:this.S=new Audio;this.S.crossOrigin="anonymous";this.S.addEventListener("canplaythrough",function(){c.Xl=!0});1===v&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.yp=!0,this.S.addEventListener("canplay",
  function(){c.cl||(c.cl=w.createMediaElementSource(c.S),c.cl.connect(c.nl))}));this.S.autoplay=!1;this.S.qw="auto";this.S.src=a;break;case 1:y.Pg?y.jn(a,function(a){c.pd=a;c.Zm()},function(){c.bi=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.pd=d.response;c.Zm()},d.onerror=function(){c.bi=!0},d.send());break;case 2:this.S=!0;break;case 3:this.S=!0}}function B(a,b){var c=this;this.tag=b;this.Ya=this.ad=!0;this.src=a.src;this.buffer=a;this.J=v;this.xc=
  a.xc;this.playbackRate=1;this.wf=!0;this.Lb=this.jc=!1;this.Cb=0;this.Qg=this.Af=this.ed=!1;this.volume=1;this.ll=function(a){if(!c.Lb&&!c.jc){var b=this;b||(b=a.target);b===c.Oh&&(c.wf=!0,c.Ya=!0,ca=c.tag,y.trigger(sc.prototype.e.Kh,K))}};this.Oh=null;this.yf=1===F&&!this.xc||2===F;this.Lf=1;this.startTime=this.yf?y.ob.P:y.Rd.P;this.Da=this.Ka=null;this.gd=!1;this.fb=null;this.Oo=this.No=this.Mo=this.Lo=this.Qo=this.Po=0;this.g=null;var d=!1;1!==this.J||0!==this.buffer.J||this.buffer.yp||(this.J=
  0);switch(this.J){case 0:this.xc?(this.g=a.S,d=!a.Ph,a.Ph=!0):(this.g=new Audio,this.g.crossOrigin="anonymous",this.g.autoplay=!1,this.g.src=a.S.src,d=!0);d&&this.g.addEventListener("ended",function(){ca=c.tag;c.Ya=!0;y.trigger(sc.prototype.e.Kh,K)});break;case 1:this.Ka=l();this.Ka.connect(h(b));1===this.buffer.J?a.S&&(this.g=w.createBufferSource(),this.g.buffer=a.S,this.g.connect(this.Ka)):(this.g=this.buffer.S,this.buffer.nl.connect(this.Ka),this.buffer.Ph||(this.buffer.Ph=!0,this.buffer.S.addEventListener("ended",
  function(){ca=c.tag;c.Ya=!0;y.trigger(sc.prototype.e.Kh,K)})));break;case 2:this.g=new window.Media(U+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.wf=!0,c.Ya=!0,ca=c.tag,y.trigger(sc.prototype.e.Kh,K))});break;case 3:this.g=!0}}function C(a,b){V.hasOwnProperty(a)?V[a].push(b):V[a]=[b];var c,d,e,f,g=w.destination;if(V.hasOwnProperty(a)&&(e=V[a],e.length))for(g=e[0].cc(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.qc(w.destination):f.qc(e[c+1].cc());T(La);if(a.length)for(c=0,d=L.length;c<
  d;c++)e=L[c],nb(a,e.tag)&&La.push(e);else sa&&!sa.Te()&&(T(La),La[0]=sa);c=0;for(d=La.length;c<d;c++)La[c].pu(g);Ha&&xb===a&&(Ha.disconnect(),Ha.connect(g))}function N(){}function Q(){}var G=sc.prototype;G.za=function(a){this.ea=a;this.b=a.b};G.za.prototype.V=function(){};var y=null,K=null,ca="",U="",v=0,w=null,O=[],L=[],sa=null,J=!1,F=0,I=!1,M=1,E=0,D=0,R=!1,ta=1,P=1,ua=10,ma=1E4,Fa=1,Ha=null,xb="",Ra=!1,Sa=[],Qa=!1,V={},wc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
  b.prototype.qc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};b.prototype.remove=function(){this.L.disconnect();this.Aa.disconnect();this.B.disconnect();this.A.disconnect()};b.prototype.cc=function(){return this.L};d.prototype.qc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};d.prototype.remove=function(){this.L.disconnect();this.hh.disconnect();this.sc.disconnect();this.Yh.disconnect();this.B.disconnect();this.A.disconnect()};
  d.prototype.cc=function(){return this.L};c.prototype.qc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};c.prototype.remove=function(){this.L.disconnect();this.Ie.disconnect();this.B.disconnect();this.A.disconnect()};c.prototype.cc=function(){return this.L};a.prototype.qc=function(a){this.A.disconnect();this.A.connect(a);this.B.disconnect();this.B.connect(a)};a.prototype.remove=function(){this.L.disconnect();this.sc.disconnect();this.Xa.disconnect();this.Ob.disconnect();
  this.A.disconnect();this.B.disconnect();this.di.disconnect()};a.prototype.cc=function(){return this.L};e.prototype.qc=function(a){this.A.disconnect();this.A.connect(a);this.B.disconnect();this.B.connect(a)};e.prototype.remove=function(){this.L.disconnect();this.Aa.disconnect();this.Xa.disconnect();this.Ob.disconnect();this.A.disconnect();this.B.disconnect()};e.prototype.cc=function(){return this.L};m.prototype.qc=function(a){this.O.disconnect();this.O.connect(a)};m.prototype.remove=function(){this.O.disconnect()};
  m.prototype.cc=function(){return this.O};n.prototype.qc=function(a){this.O.disconnect();this.O.connect(a)};n.prototype.remove=function(){this.Xa.disconnect();this.Ob.disconnect();this.O.disconnect()};n.prototype.cc=function(){return this.O};z.prototype.qc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};z.prototype.remove=function(){this.Xa.disconnect();this.uh.disconnect();this.L.disconnect();this.B.disconnect();this.A.disconnect()};z.prototype.cc=function(){return this.L};
  x.prototype.Du=function(a,b){.01>a&&(a=.01);this.Wi.gain.value=a;this.Vi.gain.value=Math.pow(1/a,.6)*b};x.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};x.prototype.Hs=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Wh[32768+f]=e,this.Wh[32768-f-1]=-e};x.prototype.qc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};
  x.prototype.remove=function(){this.L.disconnect();this.Wi.disconnect();this.Bj.disconnect();this.Vi.disconnect();this.B.disconnect();this.A.disconnect()};x.prototype.cc=function(){return this.L};t.prototype.qc=function(a){this.O.disconnect();this.O.connect(a)};t.prototype.remove=function(){this.O.disconnect()};t.prototype.cc=function(){return this.O};k.prototype.tb=function(){this.O.getFloatFrequencyData(this.Fs);this.O.getByteTimeDomainData(this.tp);for(var a=this.O.fftSize,b=0,c=this.mh=0,d=0;b<
  a;b++)d=(this.tp[b]-128)/128,0>d&&(d=-d),this.mh<d&&(this.mh=d),c+=d*d;this.mh=g(this.mh);g(Math.sqrt(c/a))};k.prototype.qc=function(a){this.O.disconnect();this.O.connect(a)};k.prototype.remove=function(){this.O.disconnect()};k.prototype.cc=function(){return this.O};p.prototype.vh=function(a){this.U=a};p.prototype.pi=function(){return!!this.U};p.prototype.tb=function(){};var hb=!1;S.prototype.qu=function(){var a,b,c,d;c=a=0;for(b=L.length;a<b;++a)d=L[a],L[c]=d,d.buffer===this?d.stop():++c;L.length=
  c;this.pd=this.S=null};S.prototype.Zm=function(){if(!this.S&&this.pd){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.pd,function(b){a.S=b;a.pd=null;var c,d,e;if(ga(a.Si)||I)ga(a.Sh)||(c=a.Sh.Ie,c.normalize=a.yo,c.buffer=b);else if(a.Pf.length){c=0;for(d=a.Pf.length;c<d;c++){b=a.Pf[c];e=new B(a,b.Ep);e.Fl(!0);if("undefined"!==typeof b.Ao&&(b.U=y.mi(b.Ao),!b.U))continue;if(b.U){var f=Wa(b.U.x,b.U.y,-b.U.i.La(),E,D,!0),g=Wa(b.U.x,b.U.y,-b.U.i.La(),E,D,!1);e.El(f,g,Ga(b.U.j-b.U.i.La()),b.Ek,b.fl,
  b.il);e.vh(b.U)}else e.El(b.x,b.y,b.Rq,b.Ek,b.fl,b.il);e.play(a.al,a.Wl,a.ej);a.Ri&&e.pause();L.push(e)}T(a.Pf)}else e=new B(a,a.Si||""),e.play(a.al,a.Wl,a.ej),a.Ri&&e.pause(),L.push(e)},function(){a.bi=!0});else if(this.S=w.createBuffer(this.pd,!1),this.pd=null,ga(this.Si)||I)ga(this.Sh)||(b=this.Sh.Ie,b.normalize=this.yo,b.buffer=this.S);else{var b=new B(this,this.Si);b.play(this.al,this.Wl,this.ej);this.Ri&&b.pause();L.push(b)}}};S.prototype.Kn=function(){switch(this.J){case 0:var a=4<=this.S.readyState;
  a&&(this.Xl=!0);return a||this.Xl;case 1:return!!this.pd||!!this.S;case 2:return!0;case 3:return!0}return!1};S.prototype.yt=function(){switch(this.J){case 0:return this.Kn();case 1:return!!this.S;case 2:return!0;case 3:return!0}return!1};S.prototype.mt=function(){switch(this.J){case 0:return!!this.S.error;case 1:return this.bi}return!1};B.prototype.Te=function(){switch(this.J){case 0:return this.g.ended;case 1:return 1===this.buffer.J?!this.ad&&!this.Ya&&this.g.loop||this.Lb?!1:this.wf:this.g.ended;
  case 2:return this.wf;case 3:!0}return!0};B.prototype.ir=function(){return this.ad||this.Ya?!0:this.Te()};B.prototype.Fl=function(a){1===v&&(!this.gd&&a?this.Ka&&(this.Da||(this.Da=w.createPanner(),this.Da.panningModel="number"===typeof this.Da.panningModel?ta:["equalpower","HRTF","soundfield"][ta],this.Da.distanceModel="number"===typeof this.Da.distanceModel?P:["linear","inverse","exponential"][P],this.Da.refDistance=ua,this.Da.maxDistance=ma,this.Da.rolloffFactor=Fa),this.Ka.disconnect(),this.Ka.connect(this.Da),
  this.Da.connect(h(this.tag)),this.gd=!0):this.gd&&!a&&this.Ka&&(this.Da.disconnect(),this.Ka.disconnect(),this.Ka.connect(h(this.tag)),this.gd=!1))};B.prototype.El=function(a,b,c,d,e,f){this.gd&&1===v&&(this.Da.setPosition(a,b,0),this.Da.setOrientation(Math.cos(W(c)),Math.sin(W(c)),0),this.Da.coneInnerAngle=d,this.Da.coneOuterAngle=e,this.Da.coneOuterGain=f,this.Po=a,this.Qo=b,this.Lo=c,this.Mo=d,this.No=e,this.Oo=f)};B.prototype.vh=function(a){this.gd&&1===v&&(this.fb||(this.fb=new p),this.fb.vh(a))};
  B.prototype.tb=function(a){if(this.gd&&1===v&&this.fb&&this.fb.pi()&&this.Ng()){this.fb.tb(a);a=this.fb.U;var b=Wa(a.x,a.y,-a.i.La(),E,D,!0),c=Wa(a.x,a.y,-a.i.La(),E,D,!1);this.Da.setPosition(b,c,0);b=0;"undefined"!==typeof this.fb.U.j&&(b=a.j-a.i.La(),this.Da.setOrientation(Math.cos(b),Math.sin(b),0))}};B.prototype.play=function(a,b,c,d){var e=this.g;this.ed=a;this.volume=b;c=c||0;d=d||0;switch(this.J){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*M&&(e.volume=b*M);e.loop!==a&&(e.loop=
  a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.xc&&Ra&&!y.dd)Sa.push(this);else try{this.g.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Lf=1;if(1===this.buffer.J)this.Ka.gain.value=b*M,this.ad||(this.g=w.createBufferSource(),this.g.buffer=this.buffer.S,this.g.connect(this.Ka)),this.g.onended=this.ll,this.Oh=this.g,this.g.loop=a,this.wf=!1,0===c?u(this.g,
  d):q(this.g,c,this.Re(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*M;if(e.currentTime!==c)try{e.currentTime=c}catch(k){}this.xc&&Ra&&!y.dd?Sa.push(this):e.play()}break;case 2:(!this.ad&&this.Ya||0!==c)&&e.seekTo(c);e.play();this.wf=!1;break;case 3:y.eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.yf?y.ob.P:y.Rd.P)-c;this.Lb=this.Ya=this.ad=!1};B.prototype.stop=function(){switch(this.J){case 0:this.g.paused||
  this.g.pause();break;case 1:1===this.buffer.J?f(this.g):this.g.paused||this.g.pause();break;case 2:this.g.stop();break;case 3:y.eb&&AppMobi.context.stopSound(this.src)}this.Ya=!0;this.Lb=!1};B.prototype.pause=function(){if(!(this.ad||this.Ya||this.Te()||this.Lb)){switch(this.J){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.J?(this.Cb=this.wk(!0),this.ed&&(this.Cb=this.Cb%this.Re()),this.Lb=!0,f(this.g)):this.g.paused||this.g.pause();break;case 2:this.g.pause();break;case 3:y.eb&&
  AppMobi.context.stopSound(this.src)}this.Lb=!0}};B.prototype.uu=function(){if(!(this.ad||this.Ya||this.Te())&&this.Lb){switch(this.J){case 0:this.g.play();break;case 1:1===this.buffer.J?(this.g=w.createBufferSource(),this.g.buffer=this.buffer.S,this.g.connect(this.Ka),this.g.onended=this.ll,this.Oh=this.g,this.g.loop=this.ed,this.Ka.gain.value=M*this.volume*this.Lf,this.wj(),this.startTime=(this.yf?y.ob.P:y.Rd.P)-this.Cb/(this.playbackRate||.001),q(this.g,this.Cb,this.Re())):this.g.play();break;case 2:this.g.play();
  break;case 3:y.eb&&AppMobi.context.resumeSound(this.src)}this.Lb=!1}};B.prototype.seek=function(a){if(!(this.ad||this.Ya||this.Te()))switch(this.J){case 0:try{this.g.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.J)this.Lb?this.Cb=a:(this.pause(),this.Cb=a,this.uu());else try{this.g.currentTime=a}catch(c){}break;case 3:y.eb&&AppMobi.context.seekSound(this.src,a)}};B.prototype.pu=function(a){1===this.J&&(this.gd?(this.Da.disconnect(),this.Da.connect(a)):(this.Ka.disconnect(),this.Ka.connect(a)))};
  B.prototype.Re=function(){var a=0;switch(this.J){case 0:"undefined"!==typeof this.g.duration&&(a=this.g.duration);break;case 1:a=this.buffer.S.duration;break;case 2:a=this.g.getDuration();break;case 3:y.eb&&(a=AppMobi.context.getDurationSound(this.src))}return a};B.prototype.wk=function(a){var b=this.Re(),c=0;switch(this.J){case 0:"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;case 1:if(1===this.buffer.J){if(this.Lb)return this.Cb;c=(this.yf?y.ob.P:y.Rd.P)-this.startTime}else"undefined"!==
  typeof this.g.currentTime&&(c=this.g.currentTime);break;case 3:y.eb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.ed&&c>b&&(c=b);return c};B.prototype.Ng=function(){return!this.Lb&&!this.ad&&!this.Ya&&!this.Te()};B.prototype.Ju=function(){return!this.ad&&!this.Ya&&!this.Te()};B.prototype.Vu=function(){var a=this.volume*M;isFinite(a)||(a=0);switch(this.J){case 0:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a);break;case 1:1===this.buffer.J?
  this.Ka.gain.value=a*this.Lf:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a)}};B.prototype.$h=function(a){switch(this.J){case 0:this.g.muted!==!!a&&(this.g.muted=!!a);break;case 1:1===this.buffer.J?(this.Lf=a?0:1,this.Ka.gain.value=M*this.volume*this.Lf):this.g.muted!==!!a&&(this.g.muted=!!a)}};B.prototype.Fu=function(){this.Af=!0;this.$h(this.Af||this.Qg)};B.prototype.op=function(a){this.Qg=!!a;this.$h(this.Af||this.Qg)};B.prototype.wj=function(){var a=this.playbackRate;
  this.yf&&(a*=y.$f);switch(this.J){case 0:this.g.playbackRate!==a&&(this.g.playbackRate=a);break;case 1:1===this.buffer.J?this.g.playbackRate.value!==a&&(this.g.playbackRate.value=a):this.g.playbackRate!==a&&(this.g.playbackRate=a)}};B.prototype.Hu=function(a){switch(this.J){case 0:a?this.Ng()?(this.jc=!0,this.g.pause()):this.jc=!1:this.jc&&(this.g.play(),this.jc=!1);break;case 1:a?this.Ng()?(this.jc=!0,1===this.buffer.J?(this.Cb=this.wk(!0),this.ed&&(this.Cb=this.Cb%this.Re()),f(this.g)):this.g.pause()):
  this.jc=!1:this.jc&&(1===this.buffer.J?(this.g=w.createBufferSource(),this.g.buffer=this.buffer.S,this.g.connect(this.Ka),this.g.onended=this.ll,this.Oh=this.g,this.g.loop=this.ed,this.Ka.gain.value=M*this.volume*this.Lf,this.wj(),this.startTime=(this.yf?y.ob.P:y.Rd.P)-this.Cb/(this.playbackRate||.001),q(this.g,this.Cb,this.Re())):this.g.play(),this.jc=!1);break;case 2:a?this.Ng()?(this.g.pause(),this.jc=!0):this.jc=!1:this.jc&&(this.jc=!1,this.g.play())}};G.la=function(a){function b(){if(!R&&w.createBuffer){var a=
  w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);u(c)}}this.type=a;y=this.b=a.b;K=this;this.Mb=null;this.Wg=-600;this.b.Pg&&(Qa=!0);!(this.b.Df||this.b.qi&&(this.b.Ig||this.b.ri))||this.b.ti||this.b.Ba||this.b.In||Qa||(Ra=!0);w=null;"undefined"!==typeof AudioContext?(v=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(v=1,w=new webkitAudioContext);this.b.Df&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==
  typeof webkitAudioContext&&(w=new webkitAudioContext));Ra?document.addEventListener("touchend",function(){!hb&&w&&(b(),hb=!0);var a,c,d;if(Ra){if(!I)for(a=0,c=Sa.length;a<c;++a)d=Sa[a],d.Ya||d.Lb||d.g.play();T(Sa)}},!0):Qa&&document.addEventListener("touchend",function(){!hb&&w&&(b(),hb=!0)},!0);1!==v&&(this.b.fc&&"undefined"!==typeof window.Media?v=2:this.b.Jn&&(v=3));2===v&&(U=location.href,a=U.lastIndexOf("/"),-1<a&&(U=U.substr(0,a+1)),U=U.replace("file://",""));if(this.b.At&&this.b.Bt&&"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.Ae(this);else{if(this.b.eb)J=this.b.qi;else try{J=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){J=!1}this.b.Ll(this)}};var pa=G.la.prototype;pa.V=function(){this.b.nf=this;F=this.Y[0];this.Jd=this.Y[1];this.du=0!==this.Y[2];this.wo=0;ta=this.Y[3];P=this.Y[4];this.Wg=-this.Y[5];ua=this.Y[6];ma=this.Y[7];Fa=this.Y[8];this.Mb=new p;var a=
  this.b.r||this.b.width,b=this.b.q||this.b.height;1===v&&(w.listener.setPosition(a/2,b/2,this.Wg),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ha&&Ha.disconnect();xb=b.toLowerCase();Ha=w.createMediaStreamSource(a);Ha.connect(h(xb))});this.b.Cm(function(a){K.Zt(a)});var c=this;this.b.Vq(function(a){c.Tt(a)})};pa.Tt=function(a){var b,c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.fb&&d.fb.U===a&&(d.fb.U=null,d.gd&&d.Ng()&&d.ed&&d.stop());this.Mb.U===a&&(this.Mb.U=null)};pa.Db=
  function(){var a={silent:I,masterVolume:M,listenerZ:this.Wg,listenerUid:this.Mb.pi()?this.Mb.U.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,k;c=0;for(d=L.length;c<d;c++)e=L[c],!e.Ju()||3===this.Jd||e.xc&&1===this.Jd||!e.xc&&2===this.Jd||(f=e.wk(),e.ed&&(f=f%e.Re()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.xc,playbackTime:f,volume:e.volume,looping:e.ed,muted:e.Af,playbackRate:e.playbackRate,paused:e.Lb,resume_position:e.Cb},e.gd&&(f.pan={},k=f.pan,e.fb&&e.fb.pi()?k.objUid=e.fb.U.uid:(k.x=
  e.Po,k.y=e.Qo,k.a=e.Lo),k.ia=e.Mo,k.oa=e.No,k.og=e.Oo),b.push(f));b=a.effects;for(g in V)if(V.hasOwnProperty(g)){e=[];c=0;for(d=V[g].length;c<d;c++)e.push({type:V[g][c].type,params:V[g][c].Sa});b[g]=e}return a};var Ta=[];pa.gc=function(f){var g=f.silent;M=f.masterVolume;this.Wg=f.listenerZ;this.Mb.vh(null);var h=f.listenerUid;-1!==h&&(this.Mb.Fi=h,Ta.push(this.Mb));var h=f.playing,l,r,q,v,u,B,Q,S,y,w,N;if(3!==this.Jd)for(l=0,r=L.length;l<r;l++)y=L[l],y.xc&&1===this.Jd||(y.xc||2!==this.Jd)&&y.stop();
  for(u in V)if(V.hasOwnProperty(u))for(l=0,r=V[u].length;l<r;l++)V[u][l].remove();$a(V);for(u in f.effects)if(f.effects.hasOwnProperty(u))for(B=f.effects[u],l=0,r=B.length;l<r;l++)switch(q=B[l].type,w=B[l].params,q){case "filter":C(u,new b(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":C(u,new d(w[0],w[1],w[2]));break;case "convolve":q=w[2];y=this.ji(q,!1);y.S?q=new c(y.S,w[0],w[1],q):(q=new c(null,w[0],w[1],q),y.yo=w[0],y.Sh=q);C(u,q);break;case "flanger":C(u,new a(w[0],w[1],w[2],w[3],w[4]));
  break;case "phaser":C(u,new e(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":C(u,new m(w[0]));break;case "tremolo":C(u,new n(w[0],w[1]));break;case "ringmod":C(u,new z(w[0],w[1]));break;case "distortion":C(u,new x(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":C(u,new t(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":C(u,new k(w[0],w[1]))}l=0;for(r=h.length;l<r;l++)3===this.Jd||(f=h[l],q=f.buffersrc,v=f.is_music,u=f.tag,B=f.playbackTime,Q=f.looping,S=f.volume,N=(w=f.pan)&&w.hasOwnProperty("objUid")?
  w.objUid:-1,v&&1===this.Jd)||!v&&2===this.Jd||((y=this.tn(q,u,v,Q,S))?(y.Cb=f.resume_position,y.Fl(!!w),y.play(Q,S,B),y.wj(),y.Vu(),y.$h(y.Af||y.Qg),f.paused&&y.pause(),f.muted&&y.Fu(),y.$h(y.Af||y.Qg),w&&(-1!==N?(y.fb=y.fb||new p,y.fb.Fi=N,Ta.push(y.fb)):y.El(w.x,w.y,w.a,w.ia,w.oa,w.og))):(y=this.ji(q,v),y.ej=B,y.Ri=f.paused,w&&(-1!==N?y.Pf.push({Ao:N,Ek:w.ia,fl:w.oa,il:w.og,Ep:u}):y.Pf.push({x:w.x,y:w.y,Rq:w.a,Ek:w.ia,fl:w.oa,il:w.og,Ep:u}))));if(g&&!I){l=0;for(r=L.length;l<r;l++)L[l].op(!0);I=
  !0}else if(!g&&I){l=0;for(r=L.length;l<r;l++)L[l].op(!1);I=!1}};pa.Yd=function(){var a,b,c,d;a=0;for(b=Ta.length;a<b;a++)c=Ta[a],d=this.b.mi(c.Fi),c.vh(d),c.Fi=-1,d&&(E=d.x,D=d.y);T(Ta)};pa.Zt=function(a){if(!this.du){!a&&w&&w.resume&&(w.resume(),R=!1);var b,c;b=0;for(c=L.length;b<c;b++)L[b].Hu(a);a&&w&&w.suspend&&(w.suspend(),R=!0)}};pa.tb=function(){var a=this.b.Le,b,c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.tb(a),0!==F&&d.wj();var e,f;for(e in V)if(V.hasOwnProperty(e))for(d=V[e],b=0,c=d.length;b<
  c;b++)f=d[b],f.tb&&f.tb();1===v&&this.Mb.pi()&&(this.Mb.tb(a),E=this.Mb.U.x,D=this.Mb.U.y,w.listener.setPosition(this.Mb.U.x,this.Mb.U.y,this.Wg))};var Ua=[];pa.Gu=function(a){var b,c,d,e,f,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&J||!f&&!J)Ua.push({filename:e,size:d,U:null}),g+=d;return g};pa.Mu=function(){var a,b,c,d;a=0;for(b=Ua.length;a<b;++a)c=Ua[a],d=this.b.lk+c.filename,c.U=this.ji(d,!1)};pa.Ss=function(){var a=0,b,c,d;b=0;for(c=
  Ua.length;b<c;++b)d=Ua[b],d.U.yt()||d.U.mt()||this.b.Ba||this.b.ri?a+=d.size:d.U.Kn()&&(a+=Math.floor(d.size/2));return a};pa.ru=function(){var a,b,c,d;c=a=0;for(b=O.length;a<b;++a)d=O[a],O[c]=d,d.xc?d.qu():++c;O.length=c};pa.ji=function(a,b){var c,d,e,f=null;c=0;for(d=O.length;c<d;c++)if(e=O[c],e.src===a){f=e;break}f||(Qa&&b&&this.ru(),f=new S(a,b),O.push(f));return f};pa.tn=function(a,b,c,d,e){var f,g,k;f=0;for(g=L.length;f<g;f++)if(k=L[f],k.src===a&&(k.ir()||c))return k.tag=b,k;a=this.ji(a,c);
  if(!a.S)return"<preload>"!==b&&(a.Si=b,a.al=d,a.Wl=e),null;k=new B(a,b);L.push(k);return k};var La=[];N.prototype.Kh=function(a){return nb(ca,a)};G.e=new N;Q.prototype.Play=function(a,b,c,d){!I&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),sa=this.tn(this.b.lk+a[0]+(J?".ogg":".m4a"),d,a[1],0!==b,c))&&(sa.Fl(!1),sa.play(0!==b,c,0,this.wo),this.wo=0)};G.T=new Q;G.ca=new function(){}})();function Y(g){this.b=g}
  (function(){function g(){u&&q&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){f.Xt(b)})}function h(){}var l=Y.prototype;l.za=function(b){this.ea=b;this.b=b.b};var r=l.za.prototype;r.V=function(){};var u=!1,q=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.De){var b=document.createElement("script");b.onload=function(){u=!0;g()};b.src="offlineClient.js";document.head.appendChild(b)}});var f=null;r.Eo=function(){q=!0;g()};
  l.la=function(b){this.type=b;this.b=b.b};r=l.la.prototype;r.V=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(Y.prototype.e.Bq,b)});f=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(Y.prototype.e.km,b)}),window.addEventListener("offline",function(){b.b.trigger(Y.prototype.e.jm,b)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){b.b.If=1;b.b.trigger(Y.prototype.e.Nh,
  b)}),window.applicationCache.addEventListener("progress",function(d){b.b.If=d.loaded/d.total||0}));this.b.eb||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(Y.prototype.e.Nh,b)}),document.addEventListener("backbutton",function(){b.b.trigger(Y.prototype.e.Jh,b)}),document.addEventListener("menubutton",function(){b.b.trigger(Y.prototype.e.gm,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(Y.prototype.e.Cq,b)}),document.addEventListener("tizenhwkey",
  function(d){var c;switch(d.keyName){case "back":c=b.b.trigger(Y.prototype.e.Jh,b);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=b.b.trigger(Y.prototype.e.gm,b))||d.preventDefault()}}));this.b.Pk&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(d){b.b.trigger(Y.prototype.e.Jh,b)&&(d.gw=!0)}):this.b.Mn&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(Y.prototype.e.Jh,
  b)});this.b.Cm(function(d){d?b.b.trigger(Y.prototype.e.zq,b):b.b.trigger(Y.prototype.e.Aq,b)})};r.Xt=function(b){b=b.data.type;"downloading-update"===b?this.b.trigger(Y.prototype.e.Fq,this):"update-ready"===b||"update-pending"===b?this.b.trigger(Y.prototype.e.Nh,this):"offline-ready"===b&&this.b.trigger(Y.prototype.e.yq,this)};h.prototype.km=function(){return!0};h.prototype.jm=function(){return!0};h.prototype.Nh=function(){return!0};h.prototype.Aq=function(){return!0};h.prototype.zq=function(){return!0};
  h.prototype.Bq=function(){return!0};h.prototype.Jh=function(){return!0};h.prototype.gm=function(){return!0};h.prototype.Cq=function(){return!0};h.prototype.Fq=function(){return!0};h.prototype.Nh=function(){return!0};h.prototype.yq=function(){return!0};l.e=new h;l.T=new function(){};l.ca=new function(){}})();function pc(g){this.b=g}
  (function(){function g(){this.name="";this.sh=0;this.Sa=[]}function h(){b++;b===f.length&&f.push(new g);return f[b]}function l(){}function r(){}function u(){}var q=pc.prototype;q.za=function(b){this.ea=b;this.b=b.b};q.za.prototype.V=function(){};q.la=function(b){this.type=b;this.b=b.b};var f=[],b=-1;q.la.prototype.V=function(){var d=this;window.c2_callFunction=function(c,a){var e,f,g,l=h();l.name=c.toLowerCase();l.sh=0;if(a)for(l.Sa.length=a.length,e=0,f=a.length;e<f;++e)g=a[e],l.Sa[e]="number"===
  typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else T(l.Sa);d.b.trigger(pc.prototype.e.Lh,d,l.name);b--;return l.sh}};l.prototype.Lh=function(d){var c=0>b?null:f[b];return c?nb(d,c.name):!1};q.e=new l;r.prototype.CallFunction=function(d,c){var a=h();a.name=d.toLowerCase();a.sh=0;Aa(a.Sa,c);this.b.trigger(pc.prototype.e.Lh,this,a.name);b--};q.T=new r;u.prototype.Gq=function(d,c){c=oa(c);var a=0>b?null:f[b];a?0<=c&&c<a.Sa.length?d.ij(a.Sa[c]):d.N(0):d.N(0)};u.prototype.Xp=function(d,c){var a=
  h();a.name=c.toLowerCase();a.sh=0;T(a.Sa);var e,f;e=2;for(f=arguments.length;e<f;e++)a.Sa.push(arguments[e]);this.b.trigger(pc.prototype.e.Lh,this,a.name);b--;d.ij(a.sh)};q.ca=new u})();function oc(g){this.b=g}
  (function(){function g(){if(0===this.ck.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Xf?a.drawImage(this.Za,this.Mf,this.Nf,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.Za,0,0,this.width,this.height);this.ck=b.toDataURL("image/png")}return this.ck}function h(){}function l(){}var r=oc.prototype;r.za=function(b){this.ea=b;this.b=b.b};var u=r.za.prototype;u.V=function(){if(!this.M){var b,a,d,f,n,h,l,t,k;this.Hc=
  [];this.Fg=!1;b=0;for(a=this.Fb.length;b<a;b++){n=this.Fb[b];l={};l.name=n[0];l.speed=n[1];l.loop=n[2];l.yl=n[3];l.zl=n[4];l.To=n[5];l.K=n[6];l.frames=[];d=0;for(f=n[7].length;d<f;d++)h=n[7][d],t={},t.Cp=h[0],t.Dp=h[1],t.Mf=h[2],t.Nf=h[3],t.width=h[4],t.height=h[5],t.duration=h[6],t.Jb=h[7],t.Kb=h[8],t.Fk=h[9],t.Ti=h[10],t.Uo=h[11],t.Xf=0!==t.width,t.ck="",t.fw=g,k={left:0,top:0,right:1,bottom:1},t.Gl=k,t.Sd=null,(k=this.b.Es(h[0]))?t.Za=k:(t.Za=new Image,t.Za.nr=h[0],t.Za.mr=h[1],t.Za.gr=null,this.b.bv(t.Za,
  h[0])),l.frames.push(t),this.Hc.push(t);this.Fb[b]=l}}};u.Pp=function(){var b,a,d;b=0;for(a=this.d.length;b<a;b++)d=this.d[b],d.Uh=d.Ta.Sd};u.jl=function(){if(!this.M){var b,a,d;b=0;for(a=this.Hc.length;b<a;++b)d=this.Hc[b],d.Za.gr=null,d.Sd=null;this.Fg=!1;this.Pp()}};u.Ho=function(){if(!this.M&&this.d.length){var b,a,d;b=0;for(a=this.Hc.length;b<a;++b)d=this.Hc[b],d.Sd=this.b.n.Wn(d.Za,this.b.xa,d.Uo);this.Pp()}};u.Jt=function(){if(!this.M&&!this.Fg&&this.b.n){var b,a,d;b=0;for(a=this.Hc.length;b<
  a;++b)d=this.Hc[b],d.Sd=this.b.n.Wn(d.Za,this.b.xa,d.Uo);this.Fg=!0}};u.Mp=function(){if(!this.M&&!this.d.length&&this.Fg){var b,a,d;b=0;for(a=this.Hc.length;b<a;++b)d=this.Hc[b],this.b.n.deleteTexture(d.Sd),d.Sd=null;this.Fg=!1}};var q=[];u.Xo=function(b){var a,d,f;T(q);a=0;for(d=this.Hc.length;a<d;++a)f=this.Hc[a].Za,-1===q.indexOf(f)&&(b.drawImage(f,0,0),q.push(f))};r.la=function(b){this.type=b;this.b=b.b;b=this.type.Fb[0].frames[0].Ti;this.ic?this.Vc.xh(b):this.Vc=new gb(b)};var f=r.la.prototype;
  f.V=function(){this.visible=0===this.Y[0];this.mg=0!==this.Y[3];this.ka=this.sn(this.Y[1])||this.type.Fb[0];this.p=this.Y[2];0>this.p&&(this.p=0);this.p>=this.ka.frames.length&&(this.p=this.ka.frames.length-1);var b=this.ka.frames[this.p];this.Vc.xh(b.Ti);this.Jb=b.Jb;this.Kb=b.Kb;this.of=this.ka.speed;this.de=this.ka.zl;1===this.type.Fb.length&&1===this.type.Fb[0].frames.length||0===this.of||this.b.Ll(this);this.ic?this.Tc.reset():this.Tc=new eb;this.yd=this.Tc.P;this.Ce=!0;this.nd=0;this.Be=!0;
  this.Wj=this.Dm="";this.jr=0;this.Vj=-1;this.type.Jt();var a,d,f,g,h,l,t,b=0;for(a=this.type.Fb.length;b<a;b++)for(g=this.type.Fb[b],d=0,f=g.frames.length;d<f;d++)h=g.frames[d],0===h.width&&(h.width=h.Za.width,h.height=h.Za.height),h.Xf&&(t=h.Za,l=h.Gl,l.left=h.Mf/t.width,l.top=h.Nf/t.height,l.right=(h.Mf+h.width)/t.width,l.bottom=(h.Nf+h.height)/t.height,0===h.Mf&&0===h.Nf&&h.width===t.width&&h.height===t.height&&(h.Xf=!1));this.Ta=this.ka.frames[this.p];this.Uh=this.Ta.Sd};f.Db=function(){var b=
  {a:this.ka.K,f:this.p,cas:this.of,fs:this.yd,ar:this.nd,at:this.Tc.P,rt:this.de};this.Ce||(b.ap=this.Ce);this.Be||(b.af=this.Be);return b};f.gc=function(b){var a=this.Is(b.a);a&&(this.ka=a);this.p=b.f;0>this.p&&(this.p=0);this.p>=this.ka.frames.length&&(this.p=this.ka.frames.length-1);this.of=b.cas;this.yd=b.fs;this.nd=b.ar;this.Tc.reset();this.Tc.P=b.at;this.Ce=b.hasOwnProperty("ap")?b.ap:!0;this.Be=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.de=b.rt:this.de=this.ka.zl;this.Ta=this.ka.frames[this.p];
  this.Uh=this.Ta.Sd;this.Vc.xh(this.Ta.Ti);this.Jb=this.Ta.Jb;this.Kb=this.Ta.Kb};f.Kj=function(b){this.p=b?0:this.ka.frames.length-1;this.Ce=!1;this.Dm=this.ka.name;this.b.trigger(oc.prototype.e.pq,this);this.b.trigger(oc.prototype.e.oq,this);this.nd=0};f.De=function(){return this.Tc.P};f.tb=function(){this.Tc.add(this.b.wn(this));this.Wj.length&&this.sr();0<=this.Vj&&this.tr();var b=this.Tc.P,a=this.ka,d=a.frames[this.p],f=d.duration/this.of;this.Ce&&b>=this.yd+f&&(this.Be?this.p++:this.p--,this.yd+=
  f,this.p>=a.frames.length&&(a.To?(this.Be=!1,this.p=a.frames.length-2):a.loop?this.p=this.de:(this.nd++,this.nd>=a.yl?this.Kj(!1):this.p=this.de)),0>this.p&&(a.To?(this.p=1,this.Be=!0,a.loop||(this.nd++,this.nd>=a.yl&&this.Kj(!0))):a.loop?this.p=this.de:(this.nd++,this.nd>=a.yl?this.Kj(!0):this.p=this.de)),0>this.p?this.p=0:this.p>=a.frames.length&&(this.p=a.frames.length-1),b>this.yd+a.frames[this.p].duration/this.of&&(this.yd=b),b=a.frames[this.p],this.lf(d,b),this.b.W=!0)};f.sn=function(b){var a,
  d,f;a=0;for(d=this.type.Fb.length;a<d;a++)if(f=this.type.Fb[a],nb(f.name,b))return f;return null};f.Is=function(b){var a,d,f;a=0;for(d=this.type.Fb.length;a<d;a++)if(f=this.type.Fb[a],f.K===b)return f;return null};f.sr=function(){var b=this.ka.frames[this.p],a=this.sn(this.Wj);this.Wj="";!a||nb(a.name,this.ka.name)&&this.Ce||(this.ka=a,this.of=a.speed,this.de=a.zl,0>this.p&&(this.p=0),this.p>=this.ka.frames.length&&(this.p=this.ka.frames.length-1),1===this.jr&&(this.p=0),this.Ce=!0,this.yd=this.Tc.P,
  this.Be=!0,this.lf(b,this.ka.frames[this.p]),this.b.W=!0)};f.tr=function(){var b=this.ka.frames[this.p],a=this.p;this.p=oa(this.Vj);0>this.p&&(this.p=0);this.p>=this.ka.frames.length&&(this.p=this.ka.frames.length-1);a!==this.p&&(this.lf(b,this.ka.frames[this.p]),this.yd=this.Tc.P,this.b.W=!0);this.Vj=-1};f.lf=function(b,a){var d=b.width,f=b.height,g=a.width,h=a.height;d!=g&&(this.width*=g/d);f!=h&&(this.height*=h/f);this.Jb=a.Jb;this.Kb=a.Kb;this.Vc.xh(a.Ti);this.Fa();this.Ta=a;this.Uh=a.Sd;d=0;
  for(f=this.F.length;d<f;d++)g=this.F[d],g.Yt&&g.Yt(b,a);this.b.trigger(oc.prototype.e.lf,this)};f.Zc=function(b){b.globalAlpha=this.opacity;var a=this.Ta,d=a.Xf,f=a.Za,g=this.x,h=this.y,l=this.width,t=this.height;if(0===this.j&&0<=l&&0<=t)g-=this.Jb*l,h-=this.Kb*t,this.b.Hd&&(g=Math.round(g),h=Math.round(h)),d?b.drawImage(f,a.Mf,a.Nf,a.width,a.height,g,h,l,t):b.drawImage(f,g,h,l,t);else{this.b.Hd&&(g=Math.round(g),h=Math.round(h));b.save();var k=0<l?1:-1,p=0<t?1:-1;b.translate(g,h);1===k&&1===p||
  b.scale(k,p);b.rotate(this.j*k*p);g=0-this.Jb*ka(l);h=0-this.Kb*ka(t);d?b.drawImage(f,a.Mf,a.Nf,a.width,a.height,g,h,ka(l),ka(t)):b.drawImage(f,g,h,ka(l),ka(t));b.restore()}};f.qf=function(b){this.$b(b)};f.$b=function(b){b.kc(this.Uh);b.Vf(this.opacity);var a=this.Ta,d=this.Fe;if(this.b.Hd){var f=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;a.Xf?b.ue(d.ub+f,d.wb+g,d.lc+f,d.mc+g,d.Wb+f,d.Xb+g,d.Ub+f,d.Vb+g,a.Gl):b.rh(d.ub+f,d.wb+g,d.lc+f,d.mc+g,d.Wb+f,d.Xb+g,d.Ub+f,d.Vb+g)}else a.Xf?b.ue(d.ub,
  d.wb,d.lc,d.mc,d.Wb,d.Xb,d.Ub,d.Vb,a.Gl):b.rh(d.ub,d.wb,d.lc,d.mc,d.Wb,d.Xb,d.Ub,d.Vb)};f.Os=function(b){var a=this.Ta,d,f;d=0;for(f=a.Fk.length;d<f;d++)if(nb(b,a.Fk[d][0]))return d;return-1};f.tk=function(b,a){var d=this.Ta,f=d.Fk,g;H(b)?g=this.Os(b):g=b-1;g=oa(g);if(0>g||g>=f.length)return a?this.x:this.y;var h=(f[g][1]-d.Jb)*this.width,f=f[g][2],f=(f-d.Kb)*this.height,d=Math.cos(this.j);g=Math.sin(this.j);var l=h*d-f*g,f=f*d+h*g,h=l+this.x,f=f+this.y;return a?h:f};var b=new da,d=!1;new va(0,0,
  0,0);u.finish=function(c){if(d){if(c){var a=this.b.mb().qb.zc;c=null.da();var e=b.ze(),f,g;if(c.pa){c.pa=!1;T(c.d);f=0;for(g=e.length;f<g;++f)c.d[f]=e[f];if(a)for(T(c.I),f=0,g=null.d.length;f<g;++f)e=null.d[f],b.contains(e)||c.I.push(e)}else if(a)for(a=c.d.length,f=0,g=e.length;f<g;++f)c.d[a+f]=e[f],Da(c.I,e[f]);else Aa(c.d,e);null.od()}b.clear();d=!1}};h.prototype.oq=function(b){return nb(this.Dm,b)};h.prototype.pq=function(){return!0};h.prototype.lf=function(){return!0};r.e=new h;l.prototype.Kq=
  function(b){var a=this.Ta,d=a.width*b*(0>this.width?-1:1);b=a.height*b*(0>this.height?-1:1);if(this.width!==d||this.height!==b)this.width=d,this.height=b,this.Fa()};r.T=new l;r.ca=new function(){}})();function tc(g){this.b=g}
  (function(){function g(){return b.length?b.pop():{}}function h(d){var c,a;c=0;for(a=d.length;c<a;c++)b.push(d[c]);T(d)}function l(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function r(){}var u=tc.prototype;u.V=function(){u.T.Nq=function(b){this.width!==b&&(this.width=b,this.xe=!0,this.Fa())}};u.za=function(b){this.ea=b;this.b=b.b};var q=u.za.prototype;q.V=function(){};q.jl=function(){if(!this.M){var b,c,a;b=0;for(c=this.d.length;b<c;b++)a=this.d[b],a.fd=null,a.df=null,
  a.Nb=null}};u.la=function(b){this.type=b;this.b=b.b;this.ic?T(this.oe):this.oe=[];this.xe=!0};q=u.la.prototype;q.V=function(){this.text=this.Y[0];this.visible=0===this.Y[1];this.font=this.Y[2];this.color=this.Y[3];this.oi=this.Y[4];this.yj=this.Y[5];this.Yl=0===this.Y[7];this.Vk=this.Ai=this.width;this.yi=this.height;this.Wk=this.Y[8];this.gi=this.rf="";this.Ap=this.Bp=this.ph=0;this.bu();this.Nb=this.df=this.fd=null;this.vo=!1;this.Vg=this.b.Od;this.ic?this.Sf.set(0,0,1,1):this.Sf=new va(0,0,1,1);
  this.b.n&&this.b.Ll(this)};q.bu=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.ph=parseInt(b[c].substr(0,b[c].length-2));this.tl=Math.ceil(this.ph/72*96)+4;0<c&&(this.gi=b[c-1]);this.rf=b[c+1];for(c+=2;c<b.length;c++)this.rf+=" "+b[c];break}};q.Db=function(){return{t:this.text,f:this.font,c:this.color,ha:this.oi,va:this.yj,wr:this.Yl,lho:this.Wk,fn:this.rf,fs:this.gi,ps:this.ph,pxh:this.tl,tw:this.Bp,th:this.Ap,lrt:this.Vg}};q.gc=function(b){this.text=
  b.t;this.font=b.f;this.color=b.c;this.oi=b.ha;this.yj=b.va;this.Yl=b.wr;this.Wk=b.lho;this.rf=b.fn;this.gi=b.fs;this.ph=b.ps;this.tl=b.pxh;this.Bp=b.tw;this.Ap=b.th;this.Vg=b.lrt;this.xe=!0;this.Vk=this.Ai=this.width;this.yi=this.height};q.tb=function(){if(this.b.n&&this.Nb&&300<=this.b.Od-this.Vg){var b=this.i;this.Ha();var c=this.$a;if(c.right<b.aa||c.bottom<b.ba||c.left>b.ga||c.top>b.fa)this.b.n.deleteTexture(this.Nb),this.fd=this.df=this.Nb=null}};q.Of=function(){this.fd=this.df=null;this.b.n&&
  this.Nb&&this.b.n.deleteTexture(this.Nb);this.Nb=null};q.De=function(){this.font=this.gi+" "+this.ph.toString()+"pt "+this.rf;this.xe=!0;this.b.W=!0};q.Zc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.i.Ib()),b.save(),b.scale(a,a));if(this.xe||this.width!==this.Vk)this.type.ea.Pq(this.text,this.oe,b,this.width,this.Yl),this.xe=!1,this.Vk=this.width;this.Ha();var a=c?0:this.Fe.ub,e=c?0:this.Fe.wb;this.b.Hd&&(a=
  a+.5|0,e=e+.5|0);0===this.j||c||(b.save(),b.translate(a,e),b.rotate(this.j),e=a=0);var f=e+this.height,g=this.tl,g=g+this.Wk,h,l;1===this.yj?e+=Math.max(this.height/2-this.oe.length*g/2,0):2===this.yj&&(e+=Math.max(this.height-this.oe.length*g-2,0));for(l=0;l<this.oe.length&&!(h=a,1===this.oi?h=a+(this.width-this.oe[l].width)/2:2===this.oi&&(h=a+(this.width-this.oe[l].width)),b.fillText(this.oe[l].text,h,e),e+=g,e>=f-g);l++);(0!==this.j||c)&&b.restore();this.Vg=this.b.Od};q.$b=function(b){if(!(1>
  this.width||1>this.height)){var c=this.xe||this.vo;this.vo=!1;var a=this.i.Ib(),e=this.i.La(),f=this.Sf,g=a*this.width,h=a*this.height,l=Math.ceil(g),t=Math.ceil(h),k=Math.abs(l),p=Math.abs(t),r=this.b.r/2,q=this.b.q/2;this.df||(this.fd=document.createElement("canvas"),this.fd.width=k,this.fd.height=p,this.Ai=k,this.yi=p,c=!0,this.df=this.fd.getContext("2d"));if(k!==this.Ai||p!==this.yi)this.fd.width=k,this.fd.height=p,this.Nb&&(b.deleteTexture(this.Nb),this.Nb=null),c=!0;c&&(this.df.clearRect(0,
  0,k,p),this.Zc(this.df,!0),this.Nb||(this.Nb=b.Zb(k,p,this.b.xa,this.b.ie)),b.av(this.fd,this.Nb,this.b.ie));this.Ai=k;this.yi=p;b.kc(this.Nb);b.Vf(this.opacity);b.Bc();b.translate(-r,-q);b.nc();var u=this.Fe,c=this.i.Na(u.ub,u.wb,!0),k=this.i.Na(u.ub,u.wb,!1),p=this.i.Na(u.lc,u.mc,!0),r=this.i.Na(u.lc,u.mc,!1),q=this.i.Na(u.Wb,u.Xb,!0),N=this.i.Na(u.Wb,u.Xb,!1),Q=this.i.Na(u.Ub,u.Vb,!0),u=this.i.Na(u.Ub,u.Vb,!1);if(this.b.Hd||0===this.j&&0===e)var G=(c+.5|0)-c,y=(k+.5|0)-k,c=c+G,k=k+y,p=p+G,r=r+
  y,q=q+G,N=N+y,Q=Q+G,u=u+y;0===this.j&&0===e?(p=c+l,r=k,q=p,N=k+t,Q=c,u=N,f.right=1,f.bottom=1):(f.right=g/l,f.bottom=h/t);b.ue(c,k,p,r,q,N,Q,u,f);b.Bc();b.scale(a,a);b.cj(-this.i.La());b.translate((this.i.aa+this.i.ga)/-2,(this.i.ba+this.i.fa)/-2);b.nc();this.Vg=this.b.Od}};var f=[];u.Oq=function(b){T(f);for(var c="",a,e=0;e<b.length;)if(a=b.charAt(e),"\n"===a)c.length&&(f.push(c),c=""),f.push("\n"),++e;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||
  "\t"===b.charAt(e)));f.push(c);c=""}else e<b.length&&(c+=a,e++);c.length&&f.push(c)};var b=[];u.Pq=function(b,c,a,e,f){if(b&&b.length)if(2>=e)h(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var l=a.measureText(b).width;if(l<=e){h(c);c.push(g());c[0].text=b;c[0].width=l;return}}this.Qq(b,c,a,e,f)}else h(c)};u.Qq=function(d,c,a,e,h){h&&(this.Oq(d),d=f);var n="",r,q,t,k=0;for(t=0;t<d.length;t++)"\n"===d[t]?(k>=c.length&&c.push(g()),n=l(n),q=c[k],q.text=n,q.width=a.measureText(n).width,k++,n=""):(r=
  n,n+=d[t],q=a.measureText(n).width,q>=e&&(k>=c.length&&c.push(g()),r=l(r),q=c[k],q.text=r,q.width=a.measureText(r).width,k++,n=d[t],h||" "!==n||(n="")));n.length&&(k>=c.length&&c.push(g()),n=l(n),q=c[k],q.text=n,q.width=a.measureText(n).width,k++);for(t=k;t<c.length;t++)b.push(c[t]);c.length=k};u.e=new function(){};r.prototype.Lq=function(b){ha(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.xe=!0,this.b.W=!0)};r.prototype.Vp=function(b){ha(b)&&(b=Math.round(1E10*
  b)/1E10);if(b=b.toString())this.text+=b,this.xe=!0,this.b.W=!0};u.T=new r;u.ca=new function(){}})();function Z(g){this.b=g}
  (function(){function g(b){d=b.x;c=b.y;a=b.z}function h(a,b,c,d){var f;f=e.length?e.pop():new l;f.init(a,b,c,d);return f}function l(){this.Ah=this.id=this.y=this.x=this.nj=this.mj=this.Uk=this.time=this.Jl=0;this.Eh=this.tj=!1}function r(){}function u(){}var q=Z.prototype;q.za=function(a){this.ea=a;this.b=a.b};q.za.prototype.V=function(){};q.la=function(a){this.type=a;this.b=a.b;this.touches=[];this.dl=!1};var f=q.la.prototype,b={left:0,top:0};f.yg=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 d=0,c=0,a=0,e=[];l.prototype.init=function(a,b,c,d){var e=ab();this.Jl=this.Uk=this.time=e;this.mj=a;this.nj=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Ah=d;this.Eh=this.tj=!1};l.prototype.update=function(a,b,c,d,e,f){this.Uk=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Eh&&15<=Xa(this.mj,this.nj,this.x,this.y)&&(this.Eh=!0)};l.prototype.Nt=function(a,b){!this.tj&&500<=
  ab()-this.Jl&&!this.Eh&&15>Xa(this.mj,this.nj,this.x,this.y)&&(this.tj=!0,a.md=this.Ah,a.ag=this.id,a.uf=b,a.b.trigger(Z.prototype.e.uq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.e.vq,a),a.uf=0)};var m=-1E3,n=-1E3,z=-1E4;l.prototype.qo=function(a,b){if(!this.tj){var c=ab();333>=c-this.Jl&&!this.Eh&&15>Xa(this.mj,this.nj,this.x,this.y)&&(a.md=this.Ah,a.ag=this.id,a.uf=b,666>=c-z&&25>Xa(m,n,this.x,this.y)?(a.b.trigger(Z.prototype.e.sq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.e.tq,
  a),n=m=-1E3,z=-1E4):(a.b.trigger(Z.prototype.e.Dq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.e.Eq,a),m=this.x,n=this.y,z=c),a.uf=0)}};f.V=function(){this.Ct=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.uf=this.ag=this.md=this.td=this.sd=this.zm=this.ym=this.xm=this.Uq=this.Tq=this.Sq=this.Qi=this.Pi=this.Oi=0;this.Zu=0!==this.Y[0];var a=0<this.b.zb?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.uc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?
  (a.addEventListener("pointerdown",function(a){c.Go(a)},!1),a.addEventListener("pointermove",function(a){c.Fo(a)},!1),b.addEventListener("pointerup",function(a){c.Ni(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ni(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.Go(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Fo(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ni(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ni(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.Jo(a)},!1),a.addEventListener("touchmove",function(a){c.Io(a)},!1),b.addEventListener("touchend",function(a){c.kl(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.kl(a,!0)},!1));if(this.Ct){var d=function(a){a=a.reading;c.xm=a.accelerationX;c.ym=a.accelerationY;c.zm=a.accelerationZ},e=function(a){a=a.reading;c.Oi=a.yawDegrees;c.Pi=a.pitchDegrees;c.Qi=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.Oi=a.alpha||0;c.Pi=a.beta||0;c.Qi=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Sq=a.accelerationIncludingGravity.x||0,c.Tq=a.accelerationIncludingGravity.y||0,c.Uq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.xm=a.acceleration.x||0,c.ym=a.acceleration.y||0,c.zm=a.acceleration.z||0)},!1);this.Zu&&!this.b.Ba&&(jQuery(document).mousemove(function(a){c.Vt(a)}),jQuery(document).mousedown(function(a){c.Ut(a)}),jQuery(document).mouseup(function(a){c.Wt(a)}));
  !this.b.Df&&this.b.fc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.Qu(this)};f.Fo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.yg(a.pointerId),d=ab();if(0<=c){var e=this.b.Ba?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};f.Go=
  function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.b.Ba?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;ab();this.md=this.touches.length;this.ag=a.pointerId;this.touches.push(h(d,c,a.pointerId,this.md));this.b.dd=!0;this.b.trigger(Z.prototype.e.im,this);this.b.trigger(Z.prototype.e.Ij,this);this.sd=d;this.td=c;this.b.trigger(Z.prototype.e.om,this);this.b.dd=!1}};f.Ni=function(a,b){if(a.pointerType!==
  a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.yg(a.pointerId);this.md=0<=c?this.touches[c].Ah:-1;this.ag=0<=c?this.touches[c].id:-1;this.b.dd=!0;this.b.trigger(Z.prototype.e.hm,this);this.b.trigger(Z.prototype.e.nm,this);0<=c&&(b||this.touches[c].qo(this,c),100>e.length&&e.push(this.touches[c]),this.touches.splice(c,1));this.b.dd=!1}};f.Io=function(a){a.preventDefault&&a.preventDefault();var c=ab(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<
  e;d++)if(f=a.changedTouches[d],g=this.yg(f.identifier),0<=g){var h=this.b.Ba?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-h.left,f.pageY-h.top,2*(f.sw||f.Aw||f.kw||f.ow||0),2*(f.uw||f.Bw||f.lw||f.pw||0),f.dw||f.zw||f.jw||f.mw||0)}};f.Jo=function(a){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.b.Ba?b:jQuery(this.b.canvas).offset();ab();this.b.dd=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.yg(f.identifier),-1===
  g){g=f.pageX-c.left;var l=f.pageY-c.top;this.md=this.touches.length;this.ag=f.identifier;this.touches.push(h(g,l,f.identifier,this.md));this.b.trigger(Z.prototype.e.im,this);this.b.trigger(Z.prototype.e.Ij,this);this.sd=g;this.td=l;this.b.trigger(Z.prototype.e.om,this)}this.b.dd=!1};f.kl=function(a,b){a.preventDefault&&ob(a)&&a.preventDefault();this.b.dd=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.yg(f.identifier),0<=f&&(this.md=this.touches[f].Ah,this.ag=this.touches[f].id,
  this.b.trigger(Z.prototype.e.hm,this),this.b.trigger(Z.prototype.e.nm,this),b||this.touches[f].qo(this,f),100>e.length&&e.push(this.touches[f]),this.touches.splice(f,1));this.b.dd=!1};f.De=function(){return this.b.fc&&0===this.Oi&&0!==a?90*a:this.Oi};f.Ym=function(){return this.b.fc&&0===this.Pi&&0!==c?90*c:this.Pi};f.bn=function(){return this.b.fc&&0===this.Qi&&0!==d?90*d:this.Qi};f.Ut=function(a){this.Jo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.dl=!0};f.Vt=function(a){this.dl&&
  this.Io({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};f.Wt=function(a){a.preventDefault&&this.b.An&&!this.b.ie&&a.preventDefault();this.b.An=!0;this.kl({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.dl=!1};f.Kl=function(){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Uk=d),c.Nt(this,a)};r.prototype.Ij=function(){return!0};r.prototype.nm=function(){return!0};r.prototype.om=function(a){return a?this.b.pj(a,this.sd,this.td):
  !1};var x=[];r.prototype.kq=function(a){if(!a)return!1;var b=a.da(),c=b.tc(),d,e,f,g,h,l;f=0;for(g=c.length;f<g;f++){var m=c[f];m.Ha();h=0;for(l=this.touches.length;h<l;h++)if(e=this.touches[h],d=m.i.ab(e.x,e.y,!0),e=m.i.ab(e.x,e.y,!1),m.Yb(d,e)){x.push(m);break}}return x.length?(b.pa=!1,Aa(b.d,x),a.od(),T(x),!0):!1};r.prototype.im=function(a){a=Math.floor(a);return a===this.md};r.prototype.hm=function(a){a=Math.floor(a);return a===this.md};r.prototype.uq=function(){return!0};r.prototype.Dq=function(){return!0};
  r.prototype.sq=function(){return!0};r.prototype.vq=function(a){return a?this.b.pj(a,this.sd,this.td):!1};r.prototype.Eq=function(a){return a?this.b.pj(a,this.sd,this.td):!1};r.prototype.tq=function(a){return a?this.b.pj(a,this.sd,this.td):!1};q.e=new r;u.prototype.vm=function(a,b){var c=this.uf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ga(b)?(d=this.b.zg(0),e=d.scale,f=d.Ud,g=d.Fd,h=d.j,d.scale=1,d.Ud=1,d.Fd=1,d.j=0,a.u(d.ab(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Ud=f,
  d.Fd=g,d.j=h):(d=ha(b)?this.b.zg(b):this.b.vk(b))?a.u(d.ab(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};u.prototype.wm=function(a,b){var c=this.uf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ga(b)?(d=this.b.zg(0),e=d.scale,f=d.Ud,g=d.Gd,h=d.j,d.scale=1,d.Ud=1,d.Gd=1,d.j=0,a.u(d.ab(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Ud=f,d.Gd=g,d.j=h):(d=ha(b)?this.b.zg(b):this.b.vk(b))?a.u(d.ab(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};q.ca=new u})();
  function uc(g){this.b=g;this.b.vc&&(g={},window.XPathResult=g,g.NUMBER_TYPE=1,g.STRING_TYPE=2,g.UNORDERED_NODE_SNAPSHOT_TYPE=6,g.ORDERED_NODE_SNAPSHOT_TYPE=7)}
  (function(){var g=uc.prototype;g.za=function(g){this.ea=g;this.b=g.b};g.za.prototype.V=function(){};g.la=function(g){this.type=g;this.b=g.b};var h=g.la.prototype;h.V=function(){this.gg=null;this.se=[];this.b.Ba&&A("[Construct 2] The XML object is not supported on this platform.")};h.bn=function(g,h){if(this.gg){var u=this.se.length?this.se[this.se.length-1]:this.gg.documentElement;try{return this.b.vc?u.selectSingleNode(g):this.gg.evaluate(g,u,null,h,null)}catch(q){return null}}};h.Ym=function(g,
  h){if(this.gg){var u=this.se.length?this.se[this.se.length-1]:this.gg.documentElement;try{return this.b.vc?u.selectNodes(g):this.gg.evaluate(g,u,null,h,null)}catch(q){return null}}};h.De=function(g,h){this.se.push(h);this.b.Rf(g.Z);g.aj();this.b.Id(g.Z);this.se.pop()};g.e=new function(){};g.T=new function(){};g.ca=new function(){}})();function vc(g){this.b=g}
  (function(){function g(){}var h=vc.prototype;h.za=function(g){this.ea=g;this.b=g.b};h.za.prototype.V=function(){};h.la=function(g){this.type=g;this.b=g.b};var l=h.la.prototype;l.V=function(){this.bk=new CustomActivityData};l.Of=function(){};l.Db=function(){return{}};l.gc=function(){};l.Zc=function(){};l.$b=function(){};h.e=new function(){};g.prototype.Zq=function(){this.bk.apiInitAttempt()};g.prototype.br=function(g){this.bk.apiUpdateAttempt(g)};g.prototype.$q=function(g){this.bk.apiInsertResponse(g)};
  h.T=new g;h.ca=new function(){}})();
  function nc(){return[sc,rc,vc,qc,Y,pc,Z,tc,oc,uc,X.prototype.e.em,vc.prototype.T.Zq,X.prototype.e.jq,Z.prototype.e.Ij,oc.prototype.e.lq,oc.prototype.T.rm,tc.prototype.T.rm,pc.prototype.T.CallFunction,Z.prototype.e.kq,X.prototype.T.Mq,X.prototype.e.$p,X.prototype.ca.Ht,X.prototype.e.aq,X.prototype.T.Tp,X.prototype.e.cm,vc.prototype.T.br,X.prototype.T.dq,X.prototype.T.Iq,tc.prototype.T.Lq,X.prototype.ca.Qt,X.prototype.ca["int"],sc.prototype.T.Play,pc.prototype.e.Lh,rc.prototype.ca.Wp,rc.prototype.T.qm,
  pc.prototype.ca.Gq,rc.prototype.e.pm,X.prototype.e.Hq,rc.prototype.ca.um,rc.prototype.T.tm,X.prototype.ca.Lt,X.prototype.ca.floor,X.prototype.ca.random,rc.prototype.T.cq,oc.prototype.e.pm,oc.prototype.T.Jq,oc.prototype.ca.vm,oc.prototype.ca.wm,oc.prototype.e.hq,vc.prototype.T.$q,oc.prototype.e.am,oc.prototype.e.bq,tc.prototype.T.Vp,Y.prototype.e.jm,Y.prototype.e.km,oc.prototype.T.Kq]};
  