// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,K,ea,fa,ha,P,ia,ja,ma,na,oa,S,qa,ra,U,ta,ua,wa,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,La,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(d,a,b,f){this.set(d,a,b,f)}function m(){this.nb=this.mb=this.qb=this.pb=this.wb=this.ub=this.Ha=this.Ga=0}function e(d,a,b,f){d<a?b<f?(A=d<b?d:b,q=a>f?a:f):(A=d<f?d:f,q=a>b?a:b):b<f?(A=a<b?a:b,q=d>f?d:f):(A=a<f?a:f,q=d>b?d:b)}function r(){this.items=this.Wc=null;this.Lf=0;u&&(this.Wc=new Set);this.rg=[];this.ge=!0}function s(d){x[H++]=d}function c(){this.ca=this.Oj=this.y=this.vk=0}function a(d){this.Va=[];this.Yh=this.$h=this.ai=this.Zh=0;this.Kh(d)}function b(d,a){this.yk=
d;this.xk=a;this.cells={}}function g(d,a){this.yk=d;this.xk=a;this.cells={}}function n(d,a,b){var f;return R.length?(f=R.pop(),f.hl=d,f.x=a,f.y=b,f):new aa(d,a,b)}function f(d,a,b){this.hl=d;this.x=a;this.y=b;this.cb=new ba}function l(d,a,b){var f;return w.length?(f=w.pop(),f.hl=d,f.x=a,f.y=b,f):new da(d,a,b)}function t(d,a,b){this.hl=d;this.x=a;this.y=b;this.cb=[];this.Kf=!0;this.jd=new ba;this.vg=!1}function h(d,a){return d.ad-a.ad}K=function(d){window.console&&window.console.log&&window.console.log(d)};
ea=function(d){window.console&&window.console.error&&window.console.error(d)};fa=function(d){return"undefined"===typeof d};ha=function(d){return"number"===typeof d};P=function(d){return"string"===typeof d};ia=function(d){return 0<d&&0===(d-1&d)};ja=function(d){--d;for(var a=1;32>a;a<<=1)d|=d>>a;return d+1};ma=function(d){return 0>d?-d:d};na=function(d,a){return d<a?d:a};oa=Math.PI;S=function(d){return 0<=d?d|0:(d|0)-1};qa=function(d){var a=d|0;return a===d?a:a+1};ra=function(d,a,b,f,u,v,l,c){var h,
x,g,p;d<b?(x=d,h=b):(x=b,h=d);u<l?(p=u,g=l):(p=l,g=u);if(h<p||x>g)return!1;a<f?(x=a,h=f):(x=f,h=a);v<c?(p=v,g=c):(p=c,g=v);if(h<p||x>g)return!1;h=u-d+l-b;x=v-a+c-f;d=b-d;a=f-a;u=l-u;v=c-v;c=ma(a*u-v*d);return ma(u*x-v*h)>c?!1:ma(d*x-a*h)<=c};k.prototype.set=function(d,a,b,f){this.left=d;this.top=a;this.right=b;this.bottom=f};k.prototype.Bg=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};k.prototype.width=function(){return this.right-this.left};k.prototype.height=
function(){return this.bottom-this.top};k.prototype.offset=function(d,a){this.left+=d;this.top+=a;this.right+=d;this.bottom+=a;return this};k.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};k.prototype.At=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};k.prototype.Bt=function(d,a,b){return!(d.right+a<this.left||d.bottom+
b<this.top||d.left+a>this.right||d.top+b>this.bottom)};k.prototype.gb=function(d,a){return d>=this.left&&d<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.ri=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};U=k;m.prototype.hg=function(d){this.Ga=d.left;this.Ha=d.top;this.ub=d.right;this.wb=d.top;this.pb=d.right;this.qb=d.bottom;this.mb=d.left;this.nb=d.bottom};m.prototype.zp=function(d,a){if(0===a)this.hg(d);else{var b=Math.sin(a),f=Math.cos(a),
u=d.left*b,v=d.top*b,l=d.right*b,b=d.bottom*b,c=d.left*f,h=d.top*f,x=d.right*f,f=d.bottom*f;this.Ga=c-v;this.Ha=h+u;this.ub=x-v;this.wb=h+l;this.pb=x-b;this.qb=f+l;this.mb=c-b;this.nb=f+u}};m.prototype.offset=function(d,a){this.Ga+=d;this.Ha+=a;this.ub+=d;this.wb+=a;this.pb+=d;this.qb+=a;this.mb+=d;this.nb+=a;return this};var A=0,q=0;m.prototype.qn=function(d){e(this.Ga,this.ub,this.pb,this.mb);d.left=A;d.right=q;e(this.Ha,this.wb,this.qb,this.nb);d.top=A;d.bottom=q};m.prototype.gb=function(d,a){var b=
this.ub-this.Ga,f=this.wb-this.Ha,u=this.pb-this.Ga,v=this.qb-this.Ha,l=d-this.Ga,c=a-this.Ha,h=b*b+f*f,x=b*u+f*v,f=b*l+f*c,g=u*u+v*v,p=u*l+v*c,H=1/(h*g-x*x),b=(g*f-x*p)*H,h=(h*p-x*f)*H;if(0<=b&&0<h&&1>b+h)return!0;b=this.mb-this.Ga;f=this.nb-this.Ha;h=b*b+f*f;x=b*u+f*v;f=b*l+f*c;H=1/(h*g-x*x);b=(g*f-x*p)*H;h=(h*p-x*f)*H;return 0<=b&&0<h&&1>b+h};m.prototype.ee=function(d,a){if(a)switch(d){case 0:return this.Ga;case 1:return this.ub;case 2:return this.pb;case 3:return this.mb;case 4:return this.Ga;
default:return this.Ga}else switch(d){case 0:return this.Ha;case 1:return this.wb;case 2:return this.qb;case 3:return this.nb;case 4:return this.Ha;default:return this.Ha}};m.prototype.Ko=function(){return(this.Ga+this.ub+this.pb+this.mb)/4};m.prototype.Lo=function(){return(this.Ha+this.wb+this.qb+this.nb)/4};m.prototype.ao=function(d){var a=d.Ko(),b=d.Lo();if(this.gb(a,b))return!0;a=this.Ko();b=this.Lo();if(d.gb(a,b))return!0;var f,u,v,l,c,h,x,g;for(x=0;4>x;x++)for(g=0;4>g;g++)if(a=this.ee(x,!0),
b=this.ee(x,!1),f=this.ee(x+1,!0),u=this.ee(x+1,!1),v=d.ee(g,!0),l=d.ee(g,!1),c=d.ee(g+1,!0),h=d.ee(g+1,!1),ra(a,b,f,u,v,l,c,h))return!0;return!1};ta=m;ua=function(d,a){for(var b in a)a.hasOwnProperty(b)&&(d[b]=a[b]);return d};wa=function(d,a){var b,f;a=S(a);if(!(0>a||a>=d.length)){b=a;for(f=d.length-1;b<f;b++)d[b]=d[b+1];d.length=f}};xa=function(d,a){d.length=a.length;var b,f;b=0;for(f=a.length;b<f;b++)d[b]=a[b]};ya=function(d,a){d.push.apply(d,a)};za=function(d,a){var b,f;b=0;for(f=d.length;b<f;++b)if(d[b]===
a)return b;return-1};Aa=function(d,a){var b=za(d,a);-1!==b&&wa(d,b)};V=function(d){return d/(180/oa)};Ba=function(d){return 180/oa*d};Ca=function(d){d%=360;0>d&&(d+=360);return d};Da=function(d){d%=2*oa;0>d&&(d+=2*oa);return d};Ea=function(d){return Ca(Ba(d))};Fa=function(d){return Da(V(d))};Ha=function(d,a,b,f){return Math.atan2(f-a,b-d)};Ia=function(d,a){if(d===a)return 0;var b=Math.sin(d),f=Math.cos(d),u=Math.sin(a),v=Math.cos(a),b=b*u+f*v;return 1<=b?0:-1>=b?oa:Math.acos(b)};Ja=function(d,a,b){var f=
Math.sin(d),u=Math.cos(d),v=Math.sin(a),l=Math.cos(a);return Math.acos(f*v+u*l)>b?0<u*v-f*l?Da(d+b):Da(d-b):Da(a)};Ka=function(d,a){var b=Math.sin(d),f=Math.cos(d),u=Math.sin(a),v=Math.cos(a);return 0>=f*u-b*v};La=function(d,a,b,f,u,v){if(0===b)return v?d:a;var l=Math.sin(b);b=Math.cos(b);d-=f;a-=u;var c=d*l;d=d*b-a*l;a=a*b+c;return v?d+f:a+u};Qa=function(d,a,b,f){d=b-d;a=f-a;return Math.sqrt(d*d+a*a)};Ra=function(d,a){return!d!==!a};Sa=function(d){for(var a in d)if(d.hasOwnProperty(a))return!0;return!1};
Ta=function(d){for(var a in d)d.hasOwnProperty(a)&&delete d[a]};var B=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-B};var p=!1,d=p=!1,v=!1;"undefined"!==typeof window&&(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
p=!p&&/safari/i.test(navigator.userAgent),d=/(iphone|ipod|ipad)/i.test(navigator.userAgent),v=window.c2ejecta);var u=!p&&!v&&!d&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(d){return this.Kd()?!1:u?this.Wc.has(d):this.items&&this.items.hasOwnProperty(d)};r.prototype.add=function(d){if(u)this.Wc.has(d)||(this.Wc.add(d),this.ge=!1);else{var a=d.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=d,this.Lf++,this.ge=!1):(this.items={},this.items[a]=
d,this.Lf=1,this.ge=!1)}};r.prototype.remove=function(d){if(!this.Kd())if(u)this.Wc.has(d)&&(this.Wc["delete"](d),this.ge=!1);else if(this.items){d=d.toString();var a=this.items;a.hasOwnProperty(d)&&(delete a[d],this.Lf--,this.ge=!1)}};r.prototype.clear=function(){this.Kd()||(u?this.Wc.clear():(this.items=null,this.Lf=0),this.rg.length=0,this.ge=!0)};r.prototype.Kd=function(){return 0===this.count()};r.prototype.count=function(){return u?this.Wc.size:this.Lf};var x=null,H=0;r.prototype.Qu=function(){if(!this.ge){if(u)this.rg.length=
this.Wc.size,x=this.rg,H=0,this.Wc.forEach(s),x=null,H=0;else{var d=this.rg;d.length=this.Lf;var a,b=0,f=this.items;if(f)for(a in f)f.hasOwnProperty(a)&&(d[b++]=f[a])}this.ge=!0}};r.prototype.$c=function(){this.Qu();return this.rg};ba=r;new ba;Va=function(d,a){u?Wa(d,a.Wc):Xa(d,a.$c())};Wa=function(d,a){var b,f,u,v;f=b=0;for(u=d.length;b<u;++b)v=d[b],a.has(v)||(d[f++]=v);d.length=f};Xa=function(d,a){var b,f,u,v;f=b=0;for(u=d.length;b<u;++b)v=d[b],-1===za(a,v)&&(d[f++]=v);d.length=f};c.prototype.add=
function(d){this.y=d-this.vk;this.Oj=this.ca+this.y;this.vk=this.Oj-this.ca-this.y;this.ca=this.Oj};c.prototype.reset=function(){this.ca=this.Oj=this.y=this.vk=0};Ya=c;Za=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.Kh=function(d){this.np=d;this.Vc=d.length/2;this.Va.length=d.length;this.ei=this.fi=-1;this.tn=0};a.prototype.Hf=function(){return!this.np.length};a.prototype.ma=function(){for(var d=this.Va,a=d[0],b=a,f=d[1],u=f,v,l,c=1,h=this.Vc;c<h;++c)l=2*c,v=d[l],l=
d[l+1],v<a&&(a=v),v>b&&(b=v),l<f&&(f=l),l>u&&(u=l);this.Zh=a;this.$h=b;this.ai=f;this.Yh=u};a.prototype.hg=function(d,a,b){this.Va.length=8;this.Vc=4;var f=this.Va;f[0]=d.left-a;f[1]=d.top-b;f[2]=d.right-a;f[3]=d.top-b;f[4]=d.right-a;f[5]=d.bottom-b;f[6]=d.left-a;f[7]=d.bottom-b;this.fi=d.right-d.left;this.ei=d.bottom-d.top;this.ma()};a.prototype.gg=function(d,a,b,f,u){this.Va.length=8;this.Vc=4;var v=this.Va;v[0]=d.Ga-a;v[1]=d.Ha-b;v[2]=d.ub-a;v[3]=d.wb-b;v[4]=d.pb-a;v[5]=d.qb-b;v[6]=d.mb-a;v[7]=
d.nb-b;this.fi=f;this.ei=u;this.ma()};a.prototype.yp=function(d){this.Vc=d.Vc;xa(this.Va,d.Va);this.Zh=d.Zh;this.ai-d.ai;this.$h=d.$h;this.Yh=d.Yh};a.prototype.tf=function(d,a,b){if(this.fi!==d||this.ei!==a||this.tn!==b){this.fi=d;this.ei=a;this.tn=b;var f,v,u,l,c,h=0,x=1,g=this.np,p=this.Va;0!==b&&(h=Math.sin(b),x=Math.cos(b));b=0;for(u=this.Vc;b<u;b++)f=2*b,v=f+1,l=g[f]*d,c=g[v]*a,p[f]=l*x-c*h,p[v]=c*x+l*h;this.ma()}};a.prototype.gb=function(d,a){var b=this.Va;if(d===b[0]&&a===b[1])return!0;var f,
v,u,l=this.Vc,c=this.Zh-110,h=this.ai-101,x=this.$h+131,g=this.Yh+120,p,H,t=0,n=0;for(f=0;f<l;f++)v=2*f,u=(f+1)%l*2,p=b[v],v=b[v+1],H=b[u],u=b[u+1],ra(c,h,d,a,p,v,H,u)&&t++,ra(x,g,d,a,p,v,H,u)&&n++;return 1===t%2||1===n%2};a.prototype.Rg=function(d,a,b){var f=d.Va,v=this.Va;if(this.gb(f[0]+a,f[1]+b)||d.gb(v[0]-a,v[1]-b))return!0;var u,l,c,h,x,g,p,H,t,n,A,e;u=0;for(h=this.Vc;u<h;u++)for(l=2*u,c=(u+1)%h*2,H=v[l],l=v[l+1],t=v[c],n=v[c+1],c=0,p=d.Vc;c<p;c++)if(x=2*c,g=(c+1)%p*2,A=f[x]+a,x=f[x+1]+b,e=
f[g]+a,g=f[g+1]+b,ra(H,l,t,n,A,x,e,g))return!0;return!1};$a=a;b.prototype.me=function(d,a,b){var f;f=this.cells[d];return f?(f=f[a])?f:b?(f=n(this,d,a),this.cells[d][a]=f):null:b?(f=n(this,d,a),this.cells[d]={},this.cells[d][a]=f):null};b.prototype.gc=function(d){return S(d/this.yk)};b.prototype.hc=function(d){return S(d/this.xk)};b.prototype.update=function(d,a,b){var f,v,u,l,c;if(a)for(f=a.left,v=a.right;f<=v;++f)for(u=a.top,l=a.bottom;u<=l;++u)if(!b||!b.gb(f,u))if(c=this.me(f,u,!1))c.remove(d),
c.Kd()&&(c.cb.clear(),1E3>R.length&&R.push(c),this.cells[f][u]=null);if(b)for(f=b.left,v=b.right;f<=v;++f)for(u=b.top,l=b.bottom;u<=l;++u)a&&a.gb(f,u)||this.me(f,u,!0).rl(d)};b.prototype.Aj=function(d,a){var b,f,u,v,l,c;b=this.gc(d.left);u=this.hc(d.top);f=this.gc(d.right);for(l=this.hc(d.bottom);b<=f;++b)for(v=u;v<=l;++v)(c=this.me(b,v,!1))&&c.dump(a)};ab=b;g.prototype.me=function(d,a,b){var f;f=this.cells[d];return f?(f=f[a])?f:b?(f=l(this,d,a),this.cells[d][a]=f):null:b?(f=l(this,d,a),this.cells[d]=
{},this.cells[d][a]=f):null};g.prototype.gc=function(d){return S(d/this.yk)};g.prototype.hc=function(d){return S(d/this.xk)};g.prototype.update=function(d,a,b){var f,v,u,l,c;if(a)for(f=a.left,v=a.right;f<=v;++f)for(u=a.top,l=a.bottom;u<=l;++u)if(!b||!b.gb(f,u))if(c=this.me(f,u,!1))c.remove(d),c.Kd()&&(c.reset(),1E3>w.length&&w.push(c),this.cells[f][u]=null);if(b)for(f=b.left,v=b.right;f<=v;++f)for(u=b.top,l=b.bottom;u<=l;++u)a&&a.gb(f,u)||this.me(f,u,!0).rl(d)};g.prototype.Aj=function(d,a,b,f,u){var v,
l;d=this.gc(d);a=this.hc(a);b=this.gc(b);for(v=this.hc(f);d<=b;++d)for(f=a;f<=v;++f)(l=this.me(d,f,!1))&&l.dump(u)};g.prototype.Nt=function(d){var a,b,f,u,v;a=d.left;f=d.top;b=d.right;for(u=d.bottom;a<=b;++a)for(d=f;d<=u;++d)if(v=this.me(a,d,!1))v.Kf=!1};bb=g;var R=[];f.prototype.Kd=function(){return this.cb.Kd()};f.prototype.rl=function(d){this.cb.add(d)};f.prototype.remove=function(d){this.cb.remove(d)};f.prototype.dump=function(d){ya(d,this.cb.$c())};aa=f;var w=[];t.prototype.Kd=function(){if(!this.cb.length)return!0;
if(this.cb.length>this.jd.count())return!1;this.Tk();return!0};t.prototype.rl=function(d){this.jd.contains(d)?(this.jd.remove(d),this.jd.Kd()&&(this.vg=!1)):this.cb.length?(this.cb[this.cb.length-1].Bc()>d.Bc()&&(this.Kf=!1),this.cb.push(d)):(this.cb.push(d),this.Kf=!0)};t.prototype.remove=function(d){this.jd.add(d);this.vg=!0;30<=this.jd.count()&&this.Tk()};t.prototype.Tk=function(){this.vg&&(this.jd.count()===this.cb.length?this.reset():(Va(this.cb,this.jd),this.jd.clear(),this.vg=!1))};t.prototype.hs=
function(){this.Kf||(this.cb.sort(h),this.Kf=!0)};t.prototype.reset=function(){this.cb.length=0;this.Kf=!0;this.jd.clear();this.vg=!1};t.prototype.dump=function(d){this.Tk();this.hs();this.cb.length&&d.push(this.cb)};da=t;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(d){return 0>=d||11<=d?"source-over":z[d-1]};db=function(d,a,b){if(b)switch(d.tb=b.ONE,d.sb=b.ONE_MINUS_SRC_ALPHA,a){case 1:d.tb=b.ONE;
d.sb=b.ONE;break;case 3:d.tb=b.ONE;d.sb=b.ZERO;break;case 4:d.tb=b.ONE_MINUS_DST_ALPHA;d.sb=b.ONE;break;case 5:d.tb=b.DST_ALPHA;d.sb=b.ZERO;break;case 6:d.tb=b.ZERO;d.sb=b.SRC_ALPHA;break;case 7:d.tb=b.ONE_MINUS_DST_ALPHA;d.sb=b.ZERO;break;case 8:d.tb=b.ZERO;d.sb=b.ONE_MINUS_SRC_ALPHA;break;case 9:d.tb=b.DST_ALPHA;d.sb=b.ONE_MINUS_SRC_ALPHA;break;case 10:d.tb=b.ONE_MINUS_DST_ALPHA,d.sb=b.SRC_ALPHA}};eb=function(d){return Math.round(1E6*d)/1E6};fb=function(d,a){return"string"!==typeof d||"string"!==
typeof a||d.length!==a.length?!1:d===a?!0:d.toLowerCase()===a.toLowerCase()};gb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||fb(d.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(k){var m=new Zb(3);k&&(m[0]=k[0],m[1]=k[1],m[2]=k[2]);return m}
function ac(k){var m=new Zb(16);k&&(m[0]=k[0],m[1]=k[1],m[2]=k[2],m[3]=k[3],m[4]=k[4],m[5]=k[5],m[6]=k[6],m[7]=k[7],m[8]=k[8],m[9]=k[9],m[10]=k[10],m[11]=k[11],m[12]=k[12],m[13]=k[13],m[14]=k[14],m[15]=k[15]);return m}function bc(k,m){m[0]=k[0];m[1]=k[1];m[2]=k[2];m[3]=k[3];m[4]=k[4];m[5]=k[5];m[6]=k[6];m[7]=k[7];m[8]=k[8];m[9]=k[9];m[10]=k[10];m[11]=k[11];m[12]=k[12];m[13]=k[13];m[14]=k[14];m[15]=k[15]}
function cc(k,m){var e=m[0],r=m[1];m=m[2];k[0]*=e;k[1]*=e;k[2]*=e;k[3]*=e;k[4]*=r;k[5]*=r;k[6]*=r;k[7]*=r;k[8]*=m;k[9]*=m;k[10]*=m;k[11]*=m}
function dc(k,m,e,r){r||(r=ac());var s,c,a,b,g,n,f,l,t=k[0],h=k[1];k=k[2];c=e[0];a=e[1];s=e[2];e=m[1];n=m[2];t===m[0]&&h===e&&k===n?(k=r,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(e=t-m[0],n=h-m[1],f=k-m[2],l=1/Math.sqrt(e*e+n*n+f*f),e*=l,n*=l,f*=l,m=a*f-s*n,s=s*e-c*f,c=c*n-a*e,(l=Math.sqrt(m*m+s*s+c*c))?(l=1/l,m*=l,s*=l,c*=l):c=s=m=0,a=n*c-f*s,b=f*m-e*c,g=e*s-n*m,(l=Math.sqrt(a*a+b*b+g*g))?(l=1/l,a*=l,b*=l,g*=l):g=b=a=0,
r[0]=m,r[1]=a,r[2]=e,r[3]=0,r[4]=s,r[5]=b,r[6]=n,r[7]=0,r[8]=c,r[9]=g,r[10]=f,r[11]=0,r[12]=-(m*t+s*h+c*k),r[13]=-(a*t+b*h+g*k),r[14]=-(e*t+n*h+f*k),r[15]=1)}
(function(){function k(c){this.pe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.un=$b([0,0,100]);this.vo=$b([0,0,0]);this.Wp=$b([0,1,0]);this.Um=$b([1,1,1]);this.Dn=!0;this.Ml=ac();this.Gc=ac();this.mo=ac();this.Gk=ac();this.m=c;this.Xn()}function m(c,a,b){this.m=c;this.Lh=a;this.name=b;this.Fc=c.getAttribLocation(a,"aPos");this.ue=c.getAttribLocation(a,"aTex");this.so=c.getUniformLocation(a,"matP");this.hj=c.getUniformLocation(a,"matMV");this.Qf=
c.getUniformLocation(a,"opacity");this.uo=c.getUniformLocation(a,"samplerFront");this.kh=c.getUniformLocation(a,"samplerBack");this.df=c.getUniformLocation(a,"destStart");this.cf=c.getUniformLocation(a,"destEnd");this.Jl=c.getUniformLocation(a,"seconds");this.Il=c.getUniformLocation(a,"pixelWidth");this.Hl=c.getUniformLocation(a,"pixelHeight");this.jh=c.getUniformLocation(a,"layerScale");this.ih=c.getUniformLocation(a,"layerAngle");this.mh=c.getUniformLocation(a,"viewOrigin");this.lh=c.getUniformLocation(a,
"scrollPos");this.ut=!!(this.Il||this.Hl||this.Jl||this.kh||this.df||this.cf||this.jh||this.ih||this.mh||this.lh);this.Do=this.Eo=-999;this.jj=1;this.zo=this.yo=0;this.Bo=this.xo=this.wo=1;this.Go=this.Fo=this.Io=this.Ho=this.Ao=0;this.Cl=[];this.Co=ac();this.Qf&&c.uniform1f(this.Qf,1);this.uo&&c.uniform1i(this.uo,0);this.kh&&c.uniform1i(this.kh,1);this.df&&c.uniform2f(this.df,0,0);this.cf&&c.uniform2f(this.cf,1,1);this.jh&&c.uniform1f(this.jh,1);this.ih&&c.uniform1f(this.ih,0);this.mh&&c.uniform2f(this.mh,
0,0);this.lh&&c.uniform2f(this.lh,0,0);this.Se=!1}function e(c,a){this.type=c;this.q=a;this.m=a.m;this.Cc=this.tc=this.Xo=0;this.Z=this.Yc=null;this.Ap=[]}k.prototype.Xn=function(){var c=this.m,a;this.no=1;this.Ze=this.se=null;this.mi=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.oo=c.ONE;this.lo=c.ONE_MINUS_SRC_ALPHA;this.cm=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.cm);this.Vh=
Array(4);this.Ph=Array(4);for(a=0;4>a;a++)this.Vh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Vh[a]),this.Ph[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ph[a]);this.Ad=0;this.yt=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.yt);this.Qm=new Float32Array(16E3);this.Dm=new Float32Array(16E3);this.jp=new Float32Array(32E3);for(var b=new Uint16Array(12E3),g=a=0;12E3>a;)b[a++]=g,b[a++]=g+1,b[a++]=g+2,b[a++]=g,b[a++]=g+2,b[a++]=g+3,g+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.$f=this.sd=0;this.Xa=[];a=this.Fk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Xa.push(a);a=this.Fk({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Xa.push(a);for(var n in ec)ec.hasOwnProperty(n)&&this.Xa.push(this.Fk(ec[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}",n));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.xd=[];this.cd=0;this.Yb=this.Hb=!1;this.zn=this.Yg=-1;this.Eg=null;this.Js=c.createFramebuffer();this.qp=null;this.De=$b([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.Qt=c[0];this.Nl=
c[1];2048<this.Nl&&(this.Nl=2048);this.nd(0)};m.prototype.Lm=function(c){var a=this.Co;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])bc(c,this.Co),this.m.uniformMatrix4fv(this.hj,!1,c)};k.prototype.Fk=function(c,a,b){var g=this.m,n=g.createShader(g.FRAGMENT_SHADER);g.shaderSource(n,c.src);g.compileShader(n);if(!g.getShaderParameter(n,
g.COMPILE_STATUS))return g.deleteShader(n),null;var f=g.createShader(g.VERTEX_SHADER);g.shaderSource(f,a);g.compileShader(f);if(!g.getShaderParameter(f,g.COMPILE_STATUS))return g.deleteShader(n),g.deleteShader(f),null;a=g.createProgram();g.attachShader(a,n);g.attachShader(a,f);g.linkProgram(a);if(!g.getProgramParameter(a,g.LINK_STATUS))return g.deleteShader(n),g.deleteShader(f),g.deleteProgram(a),null;g.useProgram(a);g.deleteShader(n);g.deleteShader(f);b=new m(g,a,b);b.Pk=c.Pk||0;b.Qk=c.Qk||0;b.yn=
!!c.yn;b.mn=!!c.mn;b.N=c.N||[];c=0;for(n=b.N.length;c<n;c++)b.N[c][1]=g.getUniformLocation(a,b.N[c][0]),b.Cl.push(0),g.uniform1f(b.N[c][1],0);return b};k.prototype.el=function(c){var a,b;a=0;for(b=this.Xa.length;a<b;a++)if(this.Xa[a].name===c)return a;return-1};k.prototype.mp=function(c,a,b){var g=this.Gc,n=this.Ml,f=[0,0,0,0,0,0,0,0];f[0]=g[0]*c+g[4]*a+g[12];f[1]=g[1]*c+g[5]*a+g[13];f[2]=g[2]*c+g[6]*a+g[14];f[3]=g[3]*c+g[7]*a+g[15];f[4]=n[0]*f[0]+n[4]*f[1]+n[8]*f[2]+n[12]*f[3];f[5]=n[1]*f[0]+n[5]*
f[1]+n[9]*f[2]+n[13]*f[3];f[6]=n[2]*f[0]+n[6]*f[1]+n[10]*f[2]+n[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};k.prototype.fg=function(c,a,b){if(this.width!==c||this.height!==a||b){this.Ed();this.width=c;this.height=a;this.m.viewport(0,0,c,a);a=c/a;var g=this.Ml,n;n=1*Math.tan(45*Math.PI/360);a*=n;c=-a;b=-n;g||(g=ac());var f=a-c,l=n-b;g[0]=2/f;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/l;g[6]=0;g[7]=0;g[8]=(a+c)/f;g[9]=
(n+b)/l;g[10]=-1001/999;g[11]=-1;g[12]=0;g[13]=0;g[14]=-2E3/999;g[15]=0;dc(this.un,this.vo,this.Wp,this.Gc);c=[0,0];a=[0,0];this.mp(0,0,c);this.mp(1,1,a);this.Um[0]=1/(a[0]-c[0]);this.Um[1]=-1/(a[1]-c[1]);c=0;for(a=this.Xa.length;c<a;c++)b=this.Xa[c],b.Se=!1,b.so&&(this.m.useProgram(b.Lh),this.m.uniformMatrix4fv(b.so,!1,this.Ml));this.m.useProgram(this.Xa[this.Yg].Lh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.Ze=this.se=null}};k.prototype.ld=function(){dc(this.un,this.vo,this.Wp,this.Gc);cc(this.Gc,this.Um)};k.prototype.translate=function(c,a){if(0!==c||0!==a){this.De[0]=c;this.De[1]=a;this.De[2]=0;var b=this.Gc,g=this.De,n=g[0],f=g[1],g=g[2];b[12]=b[0]*n+b[4]*f+b[8]*g+b[12];b[13]=b[1]*n+b[5]*f+b[9]*g+b[13];b[14]=b[2]*n+b[6]*f+b[10]*g+b[14];b[15]=b[3]*n+b[7]*f+b[11]*g+b[15]}};k.prototype.scale=function(c,a){if(1!==c||1!==a)this.De[0]=c,this.De[1]=a,this.De[2]=1,cc(this.Gc,this.De)};k.prototype.om=
function(c){if(0!==c){var a=this.Gc,b,g=Math.sin(c);c=Math.cos(c);var n=a[0],f=a[1],l=a[2],t=a[3],h=a[4],A=a[5],e=a[6],k=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=n*c+h*g;b[1]=f*c+A*g;b[2]=l*c+e*g;b[3]=t*c+k*g;b[4]=n*-g+h*c;b[5]=f*-g+A*c;b[6]=l*-g+e*c;b[7]=t*-g+k*c}};k.prototype.rd=function(){for(var c=!1,a=0;16>a;a++)if(this.mo[a]!==this.Gc[a]){c=!0;break}c&&(c=this.Ic(),c.type=5,c.Z?bc(this.Gc,c.Z):c.Z=ac(this.Gc),bc(this.Gc,
this.mo),this.Yb=this.Hb=!1)};e.prototype.Xr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Yc)};e.prototype.Yr=function(){var c=this.m;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Yc);c.activeTexture(c.TEXTURE0)};e.prototype.Ur=function(){var c=this.Xo,a=this.q;a.mi=c;a=a.Eg;a.Qf&&a.jj!==c&&(a.jj=c,this.m.uniform1f(a.Qf,c))};e.prototype.Rr=function(){this.m.drawElements(this.m.TRIANGLES,this.Cc,this.m.UNSIGNED_SHORT,2*this.tc)};e.prototype.Tr=function(){this.m.blendFunc(this.tc,
this.Cc)};e.prototype.Zr=function(){var c,a,b,g=this.q.Xa,n=this.q.zn;c=0;for(a=g.length;c<a;c++)b=g[c],c===n&&b.hj?(b.Lm(this.Z),b.Se=!0):b.Se=!1;bc(this.Z,this.q.Gk)};e.prototype.Sr=function(){var c=this.m,a=this.q;this.Yc?(a.Ze===this.Yc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Ze=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.Js),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Yc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};e.prototype.Pr=function(){var c=this.m;0===this.tc?(c.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),c.clearColor(0,0,0,0),c.clear(this.m.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};e.prototype.Qr=function(){var c=this.m,a=this.q,b=a.Xa[1];c.useProgram(b.Lh);!b.Se&&b.hj&&(b.Lm(a.Gk),b.Se=!0);c.enableVertexAttribArray(b.Fc);
c.bindBuffer(c.ARRAY_BUFFER,a.cm);c.vertexAttribPointer(b.Fc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.tc/4,this.Cc);b=a.Eg;c.useProgram(b.Lh);0<=b.Fc&&(c.enableVertexAttribArray(b.Fc),c.bindBuffer(c.ARRAY_BUFFER,a.Vh[a.Ad]),c.vertexAttribPointer(b.Fc,2,c.FLOAT,!1,0,0));0<=b.ue&&(c.enableVertexAttribArray(b.ue),c.bindBuffer(c.ARRAY_BUFFER,a.Ph[a.Ad]),c.vertexAttribPointer(b.ue,2,c.FLOAT,!1,0,0))};e.prototype.Vr=function(){var c=this.m,a=this.q,b=a.Xa[this.tc];a.zn=this.tc;a.Eg=b;c.useProgram(b.Lh);
!b.Se&&b.hj&&(b.Lm(a.Gk),b.Se=!0);b.Qf&&b.jj!==a.mi&&(b.jj=a.mi,c.uniform1f(b.Qf,a.mi));0<=b.Fc&&(c.enableVertexAttribArray(b.Fc),c.bindBuffer(c.ARRAY_BUFFER,a.Vh[a.Ad]),c.vertexAttribPointer(b.Fc,2,c.FLOAT,!1,0,0));0<=b.ue&&(c.enableVertexAttribArray(b.ue),c.bindBuffer(c.ARRAY_BUFFER,a.Ph[a.Ad]),c.vertexAttribPointer(b.ue,2,c.FLOAT,!1,0,0))};e.prototype.Wr=function(){var c,a,b=this.q.Eg,g=this.m;c=this.Z;b.kh&&this.q.Ze!==this.Yc&&(g.activeTexture(g.TEXTURE1),g.bindTexture(g.TEXTURE_2D,this.Yc),
this.q.Ze=this.Yc,g.activeTexture(g.TEXTURE0));var n=c[0];b.Il&&n!==b.Eo&&(b.Eo=n,g.uniform1f(b.Il,n));n=c[1];b.Hl&&n!==b.Do&&(b.Do=n,g.uniform1f(b.Hl,n));n=c[2];a=c[3];!b.df||n===b.yo&&a===b.zo||(b.yo=n,b.zo=a,g.uniform2f(b.df,n,a));n=c[4];a=c[5];!b.cf||n===b.wo&&a===b.xo||(b.wo=n,b.xo=n,g.uniform2f(b.cf,n,a));n=c[6];b.jh&&n!==b.Bo&&(b.Bo=n,g.uniform1f(b.jh,n));n=c[7];b.ih&&n!==b.Ao&&(b.Ao=n,g.uniform1f(b.ih,n));n=c[8];a=c[9];!b.mh||n===b.Ho&&a===b.Io||(b.Ho=n,b.Io=a,g.uniform2f(b.mh,n,a));n=c[10];
a=c[11];!b.lh||n===b.Fo&&a===b.Go||(b.Fo=n,b.Go=a,g.uniform2f(b.lh,n,a));b.Jl&&g.uniform1f(b.Jl,Ua()/1E3);if(b.N.length)for(c=0,a=b.N.length;c<a;c++)n=this.Ap[c],n!==b.Cl[c]&&(b.Cl[c]=n,g.uniform1f(b.N[c][1],n))};k.prototype.Ic=function(){this.cd===this.xd.length&&this.xd.push(new e(0,this));return this.xd[this.cd++]};k.prototype.Ed=function(){if(0!==this.cd&&!this.m.isContextLost()){var c=this.m;0<this.$f&&(c.bindBuffer(c.ARRAY_BUFFER,this.cm),c.bufferData(c.ARRAY_BUFFER,this.jp.subarray(0,this.$f),
c.STREAM_DRAW),a&&0<=a.Fc&&"<point>"===a.name&&c.vertexAttribPointer(a.Fc,4,c.FLOAT,!1,0,0));if(0<this.sd){var a=this.Eg;c.bindBuffer(c.ARRAY_BUFFER,this.Vh[this.Ad]);c.bufferData(c.ARRAY_BUFFER,this.Qm.subarray(0,this.sd),c.STREAM_DRAW);a&&0<=a.Fc&&"<point>"!==a.name&&c.vertexAttribPointer(a.Fc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Ph[this.Ad]);c.bufferData(c.ARRAY_BUFFER,this.Dm.subarray(0,this.sd),c.STREAM_DRAW);a&&0<=a.ue&&"<point>"!==a.name&&c.vertexAttribPointer(a.ue,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.cd;c<a;c++)switch(b=this.xd[c],b.type){case 1:b.Rr();break;case 2:b.Xr();break;case 3:b.Ur();break;case 4:b.Tr();break;case 5:b.Zr();break;case 6:b.Sr();break;case 7:b.Pr();break;case 8:b.Qr();break;case 9:b.Vr();break;case 10:b.Wr();break;case 11:b.Yr()}this.$f=this.sd=this.cd=0;this.Yb=this.Hb=!1;this.Ad++;4<=this.Ad&&(this.Ad=0)}};k.prototype.ze=function(c){if(c!==this.no){var a=this.Ic();a.type=3;this.no=a.Xo=c;this.Yb=this.Hb=!1}};k.prototype.Qb=function(c){if(c!==
this.se){var a=this.Ic();a.type=2;this.se=a.Yc=c;this.Yb=this.Hb=!1}};k.prototype.ye=function(c,a){if(c!==this.oo||a!==this.lo){var b=this.Ic();b.type=4;b.tc=c;b.Cc=a;this.oo=c;this.lo=a;this.Yb=this.Hb=!1}};k.prototype.up=function(){this.ye(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};k.prototype.Gh=function(c,a,b,g,n,f,l,t){15992<=this.sd&&this.Ed();var h=this.sd,A=this.Qm,e=this.Dm;if(this.Hb)this.xd[this.cd-1].Cc+=6;else{var k=this.Ic();k.type=1;k.tc=h/4*3;k.Cc=6;this.Hb=!0;this.Yb=!1}A[h]=c;e[h++]=
0;A[h]=a;e[h++]=0;A[h]=b;e[h++]=1;A[h]=g;e[h++]=0;A[h]=n;e[h++]=1;A[h]=f;e[h++]=1;A[h]=l;e[h++]=0;A[h]=t;e[h++]=1;this.sd=h};k.prototype.kd=function(c,a,b,g,n,f,l,t,h){15992<=this.sd&&this.Ed();var e=this.sd,q=this.Qm,k=this.Dm;if(this.Hb)this.xd[this.cd-1].Cc+=6;else{var p=this.Ic();p.type=1;p.tc=e/4*3;p.Cc=6;this.Hb=!0;this.Yb=!1}var p=h.left,d=h.top,v=h.right;h=h.bottom;q[e]=c;k[e++]=p;q[e]=a;k[e++]=d;q[e]=b;k[e++]=v;q[e]=g;k[e++]=d;q[e]=n;k[e++]=v;q[e]=f;k[e++]=h;q[e]=l;k[e++]=p;q[e]=t;k[e++]=
h;this.sd=e};k.prototype.hu=function(c,a,b,g){7996<=this.$f&&this.Ed();var e=this.$f,f=this.jp;if(this.Yb)this.xd[this.cd-1].Cc++;else{var l=this.Ic();l.type=8;l.tc=e;l.Cc=1;this.Yb=!0;this.Hb=!1}f[e++]=c;f[e++]=a;f[e++]=b;f[e++]=g;this.$f=e};k.prototype.nd=function(c){if(this.Yg!==c){if(!this.Xa[c]){if(0===this.Yg)return;c=0}var a=this.Ic();a.type=9;this.Yg=a.tc=c;this.Yb=this.Hb=!1}};k.prototype.Dh=function(c){c=this.Xa[c];return!(!c.df&&!c.cf)};k.prototype.fm=function(c){c=this.Xa[c];return!!(c.df||
c.cf||c.yn)};k.prototype.ou=function(c){c=this.Xa[c];return 0!==c.Pk||0!==c.Qk};k.prototype.Zs=function(c){return this.Xa[c].Pk};k.prototype.$s=function(c){return this.Xa[c].Qk};k.prototype.bt=function(c,a){return this.Xa[c].N[a][2]};k.prototype.zj=function(c){return this.Xa[c].mn};k.prototype.eg=function(c,a,b,g,e,f,l,t,h,A,k,m,p,d){var v=this.Xa[this.Yg],u,x;if(v.ut||d.length){u=this.Ic();u.type=10;u.Z?bc(this.Gc,u.Z):u.Z=ac();x=u.Z;x[0]=a;x[1]=b;x[2]=g;x[3]=e;x[4]=f;x[5]=l;x[6]=t;x[7]=h;x[8]=A;
x[9]=k;x[10]=m;x[11]=p;u.Yc=v.kh?c:null;if(d.length)for(b=u.Ap,b.length=d.length,c=0,a=d.length;c<a;c++)b[c]=d[c];this.Yb=this.Hb=!1}};k.prototype.clear=function(c,a,b,g){var e=this.Ic();e.type=7;e.tc=0;e.Z||(e.Z=ac());e.Z[0]=c;e.Z[1]=a;e.Z[2]=b;e.Z[3]=g;this.Yb=this.Hb=!1};k.prototype.clearRect=function(c,a,b,g){if(!(0>b||0>g)){var e=this.Ic();e.type=7;e.tc=1;e.Z||(e.Z=ac());e.Z[0]=c;e.Z[1]=a;e.Z[2]=b;e.Z[3]=g;this.Yb=this.Hb=!1}};k.prototype.nu=function(){this.Ed();this.m.flush()};var r=[],s={};
k.prototype.Hr=function(){r.length=0;s={}};k.prototype.Of=function(c,a,b,g){a=!!a;b=!!b;var e=c.src+","+a+","+b+(a?",undefined":""),f=null;if("undefined"!==typeof c.src&&s.hasOwnProperty(e))return f=s[e],f.di++,f;this.Ed();var l=this.m,t=ia(c.width)&&ia(c.height),f=l.createTexture();l.bindTexture(l.TEXTURE_2D,f);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=l.RGBA,A=l.RGBA,k=l.UNSIGNED_BYTE;if(g&&!this.pe)switch(g){case 1:A=h=l.RGB;break;case 2:k=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=
l.UNSIGNED_SHORT_5_5_5_1;break;case 4:A=h=l.RGB,k=l.UNSIGNED_SHORT_5_6_5}if(!t&&a){g=document.createElement("canvas");g.width=ja(c.width);g.height=ja(c.height);var m=g.getContext("2d");m.webkitImageSmoothingEnabled=b;m.mozImageSmoothingEnabled=b;m.msImageSmoothingEnabled=b;m.imageSmoothingEnabled=b;m.drawImage(c,0,0,c.width,c.height,0,0,g.width,g.height);l.texImage2D(l.TEXTURE_2D,0,h,A,k,g)}else l.texImage2D(l.TEXTURE_2D,0,h,A,k,c);a?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),t&&this.Dn?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,
l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.se=null;f.zg=c.width;f.yg=c.height;f.di=1;f.sn=e;r.push(f);return s[e]=f};k.prototype.zd=function(c,a,b,g){this.Ed();var e=this.m;this.pe&&(g=!1);var f=e.createTexture();e.bindTexture(e.TEXTURE_2D,f);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,c,a,0,e.RGBA,g?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,b?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,b?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.se=null;f.zg=c;f.yg=a;r.push(f);return f};k.prototype.Vu=function(c,a,b){this.Ed();var g=this.m;this.pe&&(b=!1);g.bindTexture(g.TEXTURE_2D,a);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{g.texImage2D(g.TEXTURE_2D,0,g.RGBA,g.RGBA,b?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,c)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",
e)}g.bindTexture(g.TEXTURE_2D,null);this.se=null};k.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.di&&1<c.di?c.di--:(this.Ed(),c===this.se&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.se=null),c===this.Ze&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Ze=null),Aa(r,c),"undefined"!==typeof c.sn&&delete s[c.sn],this.m.deleteTexture(c)))};k.prototype.md=function(c){if(c!==this.qp){var a=this.Ic();a.type=
6;this.qp=a.Yc=c;this.Yb=this.Hb=!1}};hb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function e(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var a=this;this.Dc=(this.Tg=/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.ib=!!d.dc;this.Ef="undefined"!==typeof window.AppMobi||this.ib;this.mc=!!window.c2cocoonjs;this.Pc=!!window.c2ejecta;this.mc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Pc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.ka=this.ib||this.mc||this.Pc;this.pe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.eo=/tizen/i.test(navigator.userAgent);this.Pi=/android/i.test(navigator.userAgent)&&!this.eo&&!this.pe;this.Al=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.pe;this.ko=/ipad/i.test(navigator.userAgent);this.Ui=this.Al||this.ko||this.Pc;this.Jt=this.Al&&/os\s6/i.test(navigator.userAgent);this.Sg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.pe;this.tl=/amazonwebappplatform/i.test(navigator.userAgent);this.Dt=/firefox/i.test(navigator.userAgent);this.co=/safari/i.test(navigator.userAgent)&&!this.Sg&&!this.pe;this.Gt=/windows/i.test(navigator.userAgent);this.qe="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.ho=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.It=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Gf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.yl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.fo=this.ho||this.It||this.yl;this.Ct=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Qi=this.Pi&&!this.Sg&&!this.Tg&&!this.Dt&&!this.tl&&!this.ka;this.devicePixelRatio=1;this.Rc=this.Dc||this.Tg||this.Ef||this.mc||this.Pi||this.Ui||this.Gf||this.yl||this.Ct||this.eo||this.Pc;this.Rc||(this.Rc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.qe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.qe=!0);this.canvas=d;this.vn=document.getElementById("c2canvasdiv");this.da=this.q=this.m=null;this.Wk="";this.xi=!1;this.Vo=this.Wo=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.ib&&(window.c2runtime=this);this.qe&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Qi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.L=this.width;this.K=this.height;this.ki=this.width;this.ji=this.height;this.$g=window.innerWidth;this.Zg=window.innerHeight;this.Ls=!1;this.fa=!0;this.Vg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Na=[];this.Nf={};this.$b=[];this.Ok={};this.Fd=[];this.tg=[];this.Wj=[];this.ok=[];this.tr=[];this.Le={};this.ul=
this.ne=!1;this.Qc=0;this.xl=!1;this.Oc=[];this.Ld=this.Bb=this.cj=this.um="";this.Nh=this.Dp=!1;this.Dk=this.nh=this.ke=this.Ne=0;this.mg=1;this.oc=new Ya;this.td=new Ya;this.lj=this.Bi=this.ti=this.pd=this.bf=this.Vk=this.Yi=0;this.yd=null;this.Kk=[];this.Nk=[];this.si=-1;this.Kl=[[]];this.Im=this.ij=0;this.hm(null);this.Qo=this.qh=0;this.Fl=!0;this.Gg=0;this.Oh=[];this.Fm=this.jm=-1;this.Ye=!0;this.gj=0;this.Ug=!1;this.Hu=0;this.sf=null;this.na=this.Cf=!1;this.Uo=new ba;this.Sl=new ba;this.Tl=
new ba;this.ru=[];this.Xc=new $a([]);this.Cm=new $a([]);this.de=[];this.Ii={};this.uf={};this.rf={};this.sg={};this.pn={};this.ro=this.bj=this.Zb=this.pc=this.qo=this.aj=this.ba=null;this.qg=this.zl=!1;this.Xk=[null,null];this.Qe=0;this.Sk="";this.Pd={};this.Ij=this.Pf=null;this.kj=[];this.su()}}function r(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function s(d,a,b,f){var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=r;l.onerror=f;l.onsuccess=function(l){l=l.target.result;
l.onerror=f;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:a}).onsuccess=b}}function c(d,a,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var l=f.transaction(["saves"]).objectStore("saves").get(d);l.onsuccess=function(){l.result?a(l.result.data):a(null)}}}function a(){K("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function b(d){var a,b={};for(a in d)!d.hasOwnProperty(a)||d[a]instanceof ba||d[a]&&"undefined"!==typeof d[a].Yv||(b[a]=d[a]);return b}e.prototype.su=function(){var d=this,a;a=this.Gf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.ho||this.Gf||this.yl)b="data.json";a.open("GET",b,!0);var f=!1;if(!this.ka&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(l){f=!1}if(!f&&
"responseType"in a)try{a.responseType="text"}catch(c){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.Gf?a.onreadystatechange=function(){4===a.readyState&&d.ej(JSON.parse(a.responseText))}:(a.onload=function(){if(f)d.ej(a.response);else if(d.Pc){var b=a.responseText,b=b.substr(b.indexOf("{"));d.ej(JSON.parse(b))}else d.ej(JSON.parse(a.responseText))},a.onerror=function(d){ea("Error requesting "+b+":");ea(d)});a.send()};e.prototype.zt=function(){var d=
this,a,b,f,l,c,h,g,p,e;this.devicePixelRatio=(this.We=(!this.ka||this.Pc)&&this.Su&&!this.Qi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.lb();b=!(!this.Ls&&(!this.qk||this.qe||this.fo||this.Gf||this.Tg||this.Dc||this.tl));0<this.yb&&this.setSize(k(),m(),!0);try{this.es&&(this.mc||this.Pc||!this.ka)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(t){}if(this.m){this.ka||(this.jb=document.createElement("canvas"),jQuery(this.jb).appendTo(this.canvas.parentNode),this.jb.oncontextmenu=function(){return!1},this.jb.onselectstart=function(){return!1},this.jb.width=this.ki,this.jb.height=this.ji,jQuery(this.jb).css({width:this.ki+"px",height:this.ji+"px"}),this.lp(),this.am=this.jb.getContext("2d"));this.q=new hb(this.m,this.Rc);this.q.fg(this.canvas.width,this.canvas.height);this.q.Dn=0!==this.$r;this.da=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();d.Tt();K("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.q.Xn();d.q.fg(d.q.width,d.q.height,!0);d.pc=null;d.Zb=null;d.Xk[0]=null;d.Xk[1]=null;d.Ut();d.fa=!0;K("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.n.length;a<b;a++)for(c=this.n[a],f=0,l=c.H.length;f<l;f++)g=c.H[f],g.kb=this.q.el(g.id),this.qg=this.qg||this.q.Dh(g.kb);a=0;for(b=this.$b.length;a<
b;a++){p=this.$b[a];f=0;for(l=p.H.length;f<l;f++)g=p.H[f],g.kb=this.q.el(g.id);f=0;for(l=p.M.length;f<l;f++)for(e=p.M[f],c=0,h=e.H.length;c<h;c++)g=e.H[c],g.kb=this.q.el(g.id),this.qg=this.qg||this.q.Dh(g.kb)}}else{if(0<this.yb&&this.ib){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.da=AppMobi.canvas.getContext("2d");try{this.da.samplingMode=this.T?"smooth":"sharp",this.da.globalScale=1,this.da.HTML5CompatibilityMode=!0,this.da.imageSmoothingEnabled=
this.T}catch(A){}0!==this.width&&0!==this.height&&(this.da.width=this.width,this.da.height=this.height)}this.da||(a=this.mc?{antialias:!!this.T,alpha:b}:{alpha:b},this.da=this.canvas.getContext("2d",a),this.da.webkitImageSmoothingEnabled=this.T,this.da.mozImageSmoothingEnabled=this.T,this.da.msImageSmoothingEnabled=this.T,this.da.imageSmoothingEnabled=this.T);this.am=this.jb=null}this.Np=function(a){d.Ya(!1,a)};window==window.top||this.ka||this.fo||this.Gf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.mc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(K("Reloading for continuous preview"),this.cj="__c2_continuouspreview",this.Nh=!0),this.fu&&!this.Rc&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.ka||(a=function(d){if(gb(d)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.yb&&this.We&&1<this.devicePixelRatio&&this.setSize(this.Ua,this.Ta,!0);this.Sp();this.pt();
this.go();this.Ea={}};e.prototype.setSize=function(d,a,b){var f=0,l=0,c=0,h=0,h=0,g=this.Jt&&this.co&&!navigator.standalone&&!this.ka&&!this.Dc;g&&(a+=60);if(this.$g!==d||this.Zg!==a||b){this.$g=d;this.Zg=a;var p=this.yb,e=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ug)&&!this.Dc;if(e||0!==this.yb||b)e&&0<this.Qe&&(p=this.Qe),b=this.devicePixelRatio,4<=p?(c=this.Ua/this.Ta,d/a>c?(c*=a,5===p?(h=c*b/this.Ua,1<h?h=Math.floor(h):1>h&&
(h=1/Math.ceil(1/h)),c=this.Ua*h/b,h=this.Ta*h/b,f=(d-c)/2,l=(a-h)/2,d=c,a=h):(f=(d-c)/2,d=c)):(h=d/c,5===p?(h=h*b/this.Ta,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),c=this.Ua*h/b,h=this.Ta*h/b,f=(d-c)/2,l=(a-h)/2,d=c):l=(a-h)/2,a=h),e&&!this.qe&&(l=f=0)):this.qe&&this.Ug&&0===this.Jn&&(f=Math.floor((d-this.Ua)/2),l=Math.floor((a-this.Ta)/2),d=this.Ua,a=this.Ta),2>p&&(this.xg=b),this.We&&this.ko&&1<b&&(1024<=d&&(d=1023),1024<=a&&(a=1023)),this.ki=Math.round(d),this.ji=Math.round(a),this.width=
Math.round(d*b),this.height=Math.round(a*b),this.fa=!0,this.cq?(this.L=this.width,this.K=this.height,this.zc=!0):this.width<this.Ua&&this.height<this.Ta||1===p?(this.L=this.width,this.K=this.height,this.zc=!0):(this.L=this.Ua,this.K=this.Ta,this.zc=!1,2===p?(c=this.Ua/this.Ta,p=this.$g/this.Zg,p<c?this.L=this.K*p:p>c&&(this.K=this.L/p)):3===p&&(c=this.Ua/this.Ta,p=this.$g/this.Zg,p>c?this.L=this.K*p:p<c&&(this.K=this.L/p))),this.vn&&!this.ka&&(jQuery(this.vn).css({width:Math.round(d)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(l)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*b),this.canvas.height=Math.round(a*b),this.Pc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(l)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(a)+"px"):this.We&&!this.ka&&jQuery(this.canvas).css({width:Math.round(d)+
"px",height:Math.round(a)+"px"})),this.jb&&(this.jb.width=Math.round(d),this.jb.height=Math.round(a),jQuery(this.jb).css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.q&&this.q.fg(Math.round(d*b),Math.round(a*b)),this.ib&&this.da&&(this.da.width=Math.round(d),this.da.height=Math.round(a)),this.da&&(this.da.webkitImageSmoothingEnabled=this.T,this.da.mozImageSmoothingEnabled=this.T,this.da.msImageSmoothingEnabled=this.T,this.da.imageSmoothingEnabled=this.T),this.Sp(),this.ka||!g&&!this.Al||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};e.prototype.Sp=function(){if(this.Ar&&0!==this.Zl){var d="portrait";2===this.Zl&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};e.prototype.Tt=function(){this.q.Hr();this.zl=!0;var d,
a,b;d=0;for(a=this.n.length;d<a;d++)b=this.n[d],b.rh&&b.rh()};e.prototype.Ut=function(){this.zl=!1;var d,a,b;d=0;for(a=this.n.length;d<a;d++)b=this.n[d],b.mj&&b.mj()};e.prototype.lp=function(){if(!this.ka){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ug)&&!this.Dc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.jb).css(d)}};var g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(d){var a;if(d&&!this.Vg)for(K("[Construct 2] Suspending"),this.Vg=!0,-1!==this.jm&&g&&g(this.jm),-1!==this.Fm&&clearTimeout(this.Fm),d=0,a=this.Oh.length;d<a;d++)this.Oh[d](!0);else if(!d&&this.Vg){K("[Construct 2] Resuming");this.Vg=!1;this.Yi=Ua();this.bf=Ua();d=this.nh=this.Bi=0;for(a=this.Oh.length;d<a;d++)this.Oh[d](!1);this.Ya(!1)}};e.prototype.rr=function(d){this.Oh.push(d)};
e.prototype.$d=function(d){return this.kj[d]};e.prototype.ej=function(d){d&&d.project||ea("Project model unavailable");d=d.project;this.name=d[0];this.In=d[1];this.yb=d[12];this.Jn=d[12];this.Ua=d[10];this.Ta=d[11];this.ep=this.Ua/2;this.fp=this.Ta/2;this.ka&&!this.Pc&&(4<=d[12]||0===d[12])&&(K("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Jn=this.yb=3);this.Pm=d[18];this.hh=d[19];0===this.hh&&(this.Pf=new Image,this.Pf.src=
"loading-logo.png");this.qh=d[21];this.kj=fc();this.od=new X(this);var a,b,f,l,c,h,g,p,e;a=0;for(b=d[2].length;a<b;a++)g=d[2][a],f=this.$d(g[0]),ib(g,f.prototype),e=new f(this),e.Gj=g[1],e.re=g[2],e.No=g[9],e.ea&&e.ea(),this.plugins.push(e);this.kj=fc();a=0;for(b=d[3].length;a<b;a++){g=d[3][a];c=this.$d(g[1]);e=null;f=0;for(l=this.plugins.length;f<l;f++)if(this.plugins[f]instanceof c){e=this.plugins[f];break}var t=new e.Za(e);t.name=g[0];t.B=g[2];t.sl=g[3].slice(0);t.Uu=g[3].length;t.Br=g[4];t.Ns=
g[5];t.P=g[11];t.B?(t.Sf=[],t.Gd=this.Gg++,t.xa=null):(t.Sf=null,t.Gd=-1,t.xa=[]);t.vi=null;t.yf=null;t.En=null;t.nc=!1;t.Vb=null;g[6]?(t.Pj=g[6][0],t.Qj=g[6][1],t.Qh=g[6][2]):(t.Pj=null,t.Qj=0,t.Qh=0);t.Ub=g[7]?g[7]:null;t.index=a;t.d=[];t.oi=[];t.Be=[new jb(t)];t.Dd=0;t.xc=null;t.Mr=0;t.kg=!0;t.Yj=kb;t.Ss=lb;t.Xs=mb;t.X=nb;t.Fh=ob;t.gm=pb;t.ag=qb;t.Di=sb;t.Zk=tb;t.bl=ub;t.wd=vb;t.On=wb;t.gi=new ab(this.Ua,this.Ta);t.Wh=!0;t.Xh=!1;t.Ea={};t.toString=xb;t.Na=[];f=0;for(l=g[8].length;f<l;f++){p=g[8][f];
var A=this.$d(p[1]),n=null;c=0;for(h=this.Na.length;c<h;c++)if(this.Na[c]instanceof A){n=this.Na[c];break}n||(n=new A(this),n.Oo=[],n.Uf=new ba,n.ea&&n.ea(),this.Na.push(n));-1===n.Oo.indexOf(t)&&n.Oo.push(t);c=new n.Za(n,t);c.name=p[0];c.P=p[2];c.ea();t.Na.push(c)}t.global=g[9];t.wl=g[10];t.H=[];f=0;for(l=g[12].length;f<l;f++)t.H.push({id:g[12][f][0],name:g[12][f][1],kb:-1,$a:!0,index:f});t.lw=g[13];this.Pm&&!t.B&&!t.wl&&e.re||t.ea();t.name&&(this.types[t.name]=t);this.n.push(t);e.Gj&&(f=new e.Aa(t),
f.uid=this.qh++,f.op=this.Qo++,f.Ue=0,f.Lg=yb,f.toString=zb,f.aa=g[14],f.ea(),t.d.push(f),this.Pd[f.uid.toString()]=f)}a=0;for(b=d[4].length;a<b;a++)for(c=d[4][a],h=this.n[c[0]],f=1,l=c.length;f<l;f++)g=this.n[c[f]],g.xa.push(h),h.Sf.push(g);a=0;for(b=d[27].length;a<b;a++){c=d[27][a];h=[];f=0;for(l=c.length;f<l;f++)h.push(this.n[c[f]]);f=0;for(l=h.length;f<l;f++)h[f].nc=!0,h[f].Vb=h}if(0<this.Gg)for(a=0,b=this.n.length;a<b;a++)if(g=this.n[a],!g.B&&g.xa.length){g.vi=Array(this.Gg);g.yf=Array(this.Gg);
g.En=Array(this.Gg);t=[];f=n=A=p=0;for(l=g.xa.length;f<l;f++)for(e=g.xa[f],g.vi[e.Gd]=p,p+=e.Uu,g.yf[e.Gd]=A,A+=e.Br,g.En[e.Gd]=n,n+=e.Ns,c=0,h=e.H.length;c<h;c++)t.push(ua({},e.H[c]));g.H=t.concat(g.H);f=0;for(l=g.H.length;f<l;f++)g.H[f].index=f}a=0;for(b=d[5].length;a<b;a++)g=d[5][a],f=new Ab(this,g),this.Nf[f.name]=f,this.$b.push(f);a=0;for(b=d[6].length;a<b;a++)g=d[6][a],f=new Bb(this,g),this.Ok[f.name]=f,this.Fd.push(f);a=0;for(b=this.Fd.length;a<b;a++)this.Fd[a].Ma();a=0;for(b=this.Fd.length;a<
b;a++)this.Fd[a].Km();a=0;for(b=this.Wj.length;a<b;a++)this.Wj[a].Ma();this.Wj.length=0;this.ur=d[7];this.Sk=d[8];this.Hc=d[9];this.xg=1;this.es=d[13];this.T=d[14];this.qk=d[15];this.Su=d[17];this.Zl=d[20];this.Ar=0<this.Zl;this.fu=d[22];this.zc=this.cq=d[23];this.$r=d[24];this.lu=d[25];this.Lj=Date.now();this.kj.length=0;this.zt()};var n=!1;e.prototype.Sm=function(d,a){d.cocoonLazyLoad=!0;d.onerror=function(a){n=d.rn=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",a)};
this.Pc?d.src=a:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){d.src=a},function(b){n=d.rn=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):d.src=a);this.tg.push(d)};e.prototype.Ks=function(d){var a,b;a=0;for(b=this.tg.length;a<b;a++)if(this.tg[a].Ir===d)return this.tg[a];return null};var f=0,l=!1;e.prototype.pt=function(){this.sf&&(f=this.sf.Eu(this.ur))};e.prototype.nn=function(){var d=f,a=0,b=0,c=!0,h,g,b=0;for(h=this.tg.length;b<
h;b++){g=this.tg[b];var p=g.Ek;if(!p||0>=p)p=5E4;d+=p;g.src&&(g.complete||g.loaded)&&!g.rn?a+=p:c=!1}c&&this.lu&&this.sf&&(l||(this.sf.Iu(),l=!0),b=this.sf.Ys(),a+=b,b<f&&(c=!1));this.jf=0==d?0:a/d;return c};e.prototype.go=function(){if(this.da||this.q){var d=this.da||this.am;this.jb&&this.lp();this.jf=0;this.po=-1;if(this.nn())this.qt();else{var a=Date.now()-this.Lj;if(d){var b=this.width,f=this.height,l=this.devicePixelRatio;this.jb&&(b=this.ki,f=this.ji,l=1);if(3!==this.hh&&(this.mc||500<=a&&this.po!=
this.jf)){d.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.hh&&this.Pf.complete,c=40*l,h=0,g=80*l,p;b&&(g=this.Pf.width*l,p=this.Pf.height*l,c=g/2,h=p/2,d.drawImage(this.Pf,S(a-c),S(f-h),g,p));1>=this.hh?(a=S(a-c)+.5,f=S(f+(h+(b?12*l:0)))+.5,d.fillStyle=n?"red":"DodgerBlue",d.fillRect(a,f,Math.floor(g*this.jf),6*l),d.strokeStyle="black",d.strokeRect(a,f,g,6*l),d.strokeStyle="white",d.strokeRect(a-1*l,f-1*l,g+2*l,8*l)):2===this.hh&&(d.font=this.Pc?"12pt ArialMT":"12pt Arial",d.fillStyle=n?"#f00":"#999",
d.kw="middle",l=Math.round(100*this.jf)+"%",b=d.measureText?d.measureText(l):null,d.fillText(l,a-(b?b.width:0)/2,f))}this.po=this.jf}setTimeout(function(d){return function(){d.go()}}(this),this.mc?10:100)}}};e.prototype.qt=function(){this.jb&&(this.canvas.parentNode.removeChild(this.jb),this.jb=this.am=null);this.Lj=Date.now();this.bf=Ua();var d,a,b;if(this.Pm)for(d=0,a=this.n.length;d<a;d++)b=this.n[d],b.B||b.wl||!b.qa.re||b.ea();else this.Ye=!1;d=0;for(a=this.$b.length;d<a;d++)this.$b[d].Jr();2<=
this.yb&&(d=this.Ua/this.Ta,a=this.width/this.height,this.xg=2!==this.yb&&a>d||2===this.yb&&a<d?this.height/this.Ta:this.width/this.Ua);this.In?this.Nf[this.In].Am():this.$b[0].Am();this.Pm||(this.gj=1,this.trigger(X.prototype.j.Zm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(a=this.n.length;d<a;d++)b=this.n[d],b.St&&b.St();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ya(!1);this.ib&&
AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.Ya=function(d,a,b){if(this.ba){var f=Ua();if(b||!this.Vg||d){d||(t?this.jm=t(this.Np):this.Fm=setTimeout(this.Np,this.Rc?1:16));a=a||f;var l=this.yb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Dc)||this.Ug)&&
0<this.Qe&&(l=this.Qe);0<l&&(!this.Ui||window.self!==window.top)&&(l=window.innerHeight,this.$g===window.innerWidth&&this.Zg===l||this.setSize(k(),m()));this.ka||(b?(this.xi||(this.Wk=jQuery(this.canvas).css("margin")||"0",this.xi=!0),this.Sg||this.qe||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.xi?(this.Sg||this.qe||jQuery(this.canvas).css("margin",
this.Wk),this.Wk="",this.xi=!1,0===this.yb&&this.setSize(Math.round(this.Wo/this.devicePixelRatio),Math.round(this.Vo/this.devicePixelRatio),!0)):(this.Wo=this.width,this.Vo=this.height));this.Ye&&(b=this.nn(),this.gj=this.jf,b&&(this.Ye=!1,this.jf=1,this.trigger(X.prototype.j.Zm,null)));this.Mt(a);!this.fa&&!this.mc||this.zl||this.Nh||d||(this.fa=!1,this.q?this.Gb():this.jc(),this.Ij&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Ij[0],this.Ij[1]),this.trigger(X.prototype.j.Gq,
null)),this.Ij=null));this.ew||(this.pd++,this.ti++,this.Bi++);this.nh+=Ua()-f}}};e.prototype.Mt=function(d){var a,b,f,l,c,h,g,p;1E3<=d-this.bf&&(this.bf+=1E3,1E3<=d-this.bf&&(this.bf=d),this.Vk=this.Bi,this.Bi=0,this.Dk=this.nh,this.nh=0);0!==this.Yi&&(a=d-this.Yi,0>a&&(a=0),this.ke=a/1E3,.5<this.ke?this.ke=0:.1<this.ke&&(this.ke=.1));this.Yi=d;this.Ne=this.ke*this.mg;this.oc.add(this.Ne);this.td.add(this.ke);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Ug)&&!this.Dc;2<=this.yb||d&&0<this.Qe?(a=this.Ua/this.Ta,b=this.width/this.height,f=this.yb,d&&0<this.Qe&&(f=this.Qe),this.xg=2!==f&&b>a||2===f&&b<a?this.height/this.Ta:this.width/this.Ua,this.ba&&(this.ba.sp(this.ba.scrollX),this.ba.tp(this.ba.scrollY))):this.xg=this.We?this.devicePixelRatio:1;this.lb();this.Qc++;this.od.vu();this.Qc--;this.lb();this.Qc++;b=this.Uo.$c();d=0;for(a=b.length;d<a;d++)b[d].gw();d=0;for(a=this.n.length;d<a;d++)if(h=this.n[d],!h.B&&(h.Na.length||h.xa.length))for(b=
0,f=h.d.length;b<f;b++)for(g=h.d[b],l=0,c=g.G.length;l<c;l++)g.G[l].Ya();d=0;for(a=this.n.length;d<a;d++)if(h=this.n[d],!h.B&&(h.Na.length||h.xa.length))for(b=0,f=h.d.length;b<f;b++)for(g=h.d[b],l=0,c=g.G.length;l<c;l++)p=g.G[l],p.ku&&p.ku();b=this.Sl.$c();d=0;for(a=b.length;d<a;d++)b[d].Ya();this.Qc--;this.tt();for(d=0;this.yd&&10>d++;)this.An(this.yd);d=0;for(a=this.Fd.length;d<a;d++)this.Fd[d].ll=!1;this.ba.Oe&&this.ba.Oe.Wa();this.ru.length=0;this.Fl=!1;this.Qc++;d=0;for(a=this.n.length;d<a;d++)if(h=
this.n[d],!h.B&&(h.Na.length||h.xa.length))for(b=0,f=h.d.length;b<f;b++)for(g=h.d[b],l=0,c=g.G.length;l<c;l++)p=g.G[l],p.Em&&p.Em();b=this.Tl.$c();d=0;for(a=b.length;d<a;d++)b[d].Em();this.Qc--};e.prototype.An=function(d){var a=this.ba;this.ba.Ju();var b,f,l,c,h,g,p;if(this.q)for(b=0,f=this.n.length;b<f;b++)h=this.n[b],h.B||!h.Xj||h.global&&0!==h.d.length||-1!==d.Qg.indexOf(h)||h.Xj();a==d&&(this.od.Sb.length=0);d.Am();b=0;for(f=this.n.length;b<f;b++)if(h=this.n[b],h.global||h.qa.Gj)for(d=0,a=h.d.length;d<
a;d++)if(g=h.d[d],g.Yl&&g.Yl(),g.G)for(l=0,c=g.G.length;l<c;l++)p=g.G[l],p.Yl&&p.Yl();this.Fl=this.fa=!0;this.lb()};e.prototype.Sj=function(d){this.Sl.add(d)};e.prototype.Lu=function(d){this.Tl.add(d)};e.prototype.$k=function(d){return d&&-1!==d.ph?this.ke*d.ph:this.Ne};e.prototype.jc=function(){this.ba.jc(this.da);this.ib&&this.da.present()};e.prototype.Gb=function(){this.ba.Gb(this.q);this.q.nu()};e.prototype.pr=function(d){d&&this.Kk.push(d)};e.prototype.Gi=function(d){d=d.toString();return this.Pd.hasOwnProperty(d)?
this.Pd[d]:null};var h=[];e.prototype.Zd=function(d){var a,b;a=d.type.name;var f=null;if(this.Le.hasOwnProperty(a)){if(f=this.Le[a],f.contains(d))return}else f=h.length?h.pop():new ba,this.Le[a]=f;f.add(d);this.ne=!0;if(d.nc)for(a=0,b=d.siblings.length;a<b;a++)this.Zd(d.siblings[a]);this.ul&&f.rg.push(d);this.Qc++;this.trigger(Object.getPrototypeOf(d.type.qa).j.Hq,d);this.Qc--};e.prototype.lb=function(){if(this.ne){var d,a,b,f,l,c;this.ul=!0;b=0;for(l=this.Oc.length;b<l;++b)for(d=this.Oc[b],a=d.type,
a.d.push(d),f=0,c=a.xa.length;f<c;++f)a.xa[f].d.push(d),a.xa[f].kg=!0;this.Oc.length=0;this.yq();Ta(this.Le);this.ne=this.ul=!1}};e.prototype.yq=function(){for(var d in this.Le)this.Le.hasOwnProperty(d)&&this.iq(this.Le[d])};e.prototype.iq=function(d){var a=d.$c(),b=a[0].type,f,l,c,g,p,e;Va(b.d,d);b.kg=!0;0===b.d.length&&(b.Xh=!1);f=0;for(l=b.xa.length;f<l;++f)e=b.xa[f],Va(e.d,d),e.kg=!0;f=0;for(l=this.od.Sb.length;f<l;++f)if(p=this.od.Sb[f],p.Db.hasOwnProperty(b.index)&&Va(p.Db[b.index].Jd,d),!b.B)for(c=
0,g=b.xa.length;c<g;++c)e=b.xa[c],p.Db.hasOwnProperty(e.index)&&Va(p.Db[e.index].Jd,d);if(p=a[0].e){if(p.Zc)for(c=p.d,f=0,l=c.length;f<l;++f)g=c[f],d.contains(g)&&(g.ma(),p.ec.update(g,g.Nb,null),g.Nb.set(0,0,-1,-1));Va(p.d,d);p.Jh(0)}for(f=0;f<a.length;++f)this.hq(a[f],b);d.clear();h.push(d);this.fa=!0};e.prototype.hq=function(d,a){var b,f,l;b=0;for(f=this.Kk.length;b<f;++b)this.Kk[b](d);d.he&&a.gi.update(d,d.he,null);(b=d.e)&&b.bg(d,!0);if(d.G)for(b=0,f=d.G.length;b<f;++b)l=d.G[b],l.Xf&&l.Xf(),
l.behavior.Uf.remove(d);this.Uo.remove(d);this.Sl.remove(d);this.Tl.remove(d);d.Xf&&d.Xf();this.Pd.hasOwnProperty(d.uid.toString())&&delete this.Pd[d.uid.toString()];this.lj--;100>a.oi.length&&a.oi.push(d)};e.prototype.xn=function(d,a,b,f){if(d.B){var l=S(Math.random()*d.Sf.length);return this.xn(d.Sf[l],a,b,f)}return d.xc?this.ie(d.xc,a,!1,b,f,!1):null};var A=[];e.prototype.ie=function(d,a,b,f,l,c){var h,g,p,e;if(!d)return null;var t=this.n[d[1]],n=t.qa.re;if(this.Ye&&n&&!t.wl||n&&!this.q&&11===
d[0][11])return null;var k=a;n||(a=null);var q;t.oi.length?(q=t.oi.pop(),q.rc=!0,t.qa.Aa.call(q,t)):(q=new t.qa.Aa(t),q.rc=!1);q.uid=!b||c||this.Pd.hasOwnProperty(d[2].toString())?this.qh++:d[2];this.Pd[q.uid.toString()]=q;q.op=this.Qo++;q.Ue=t.d.length;h=0;for(g=this.Oc.length;h<g;++h)this.Oc[h].type===t&&q.Ue++;q.Lg=yb;q.toString=zb;p=d[3];if(q.rc)Ta(q.Ea);else{q.Ea={};if("undefined"!==typeof cr_is_preview)for(q.$n=[],q.$n.length=p.length,h=0,g=p.length;h<g;h++)q.$n[h]=p[h][1];q.Ra=[];q.Ra.length=
p.length}h=0;for(g=p.length;h<g;h++)q.Ra[h]=p[h][0];if(n){var m=d[0];q.x=fa(f)?m[0]:f;q.y=fa(l)?m[1]:l;q.z=m[2];q.width=m[3];q.height=m[4];q.depth=m[5];q.i=m[6];q.opacity=m[7];q.Ib=m[8];q.Jb=m[9];q.Eb=m[10];h=m[11];!this.q&&t.H.length&&(q.Eb=h);q.Ag=cb(q.Eb);this.m&&db(q,q.Eb,this.m);if(q.rc){h=0;for(g=m[12].length;h<g;h++)for(p=0,e=m[12][h].length;p<e;p++)q.Da[h][p]=m[12][h][p];q.Ba.set(0,0,0,0);q.he.set(0,0,-1,-1);q.Nb.set(0,0,-1,-1);q.ob.hg(q.Ba);q.uk.length=0}else{q.Da=m[12].slice(0);h=0;for(g=
q.Da.length;h<g;h++)q.Da[h]=m[12][h].slice(0);q.V=[];q.ae=[];q.ae.length=t.H.length;q.Ba=new U(0,0,0,0);q.he=new U(0,0,-1,-1);q.Nb=new U(0,0,-1,-1);q.ob=new ta;q.uk=[];q.za=Cb;q.sr=Db;q.gb=Eb;q.ma=Fb;q.Ru=Gb;q.Om=Hb;q.Bc=Ib}q.Rh=!1;q.Ou=0;q.Nu=0;q.Mu=null;14===m.length&&(q.Rh=!0,q.Ou=m[13][0],q.Nu=m[13][1],q.Mu=m[13][2]);h=0;for(g=t.H.length;h<g;h++)q.ae[h]=!0;q.Xd=Jb;q.Xd();q.aq=!!q.V.length;q.bi=!0;q.wk=!0;t.Wh=!0;q.visible=!0;q.ph=-1;q.e=a;q.ad=a.d.length;"undefined"===typeof q.W&&(q.W=null);this.fa=
q.Je=!0}var s;h=A.length=0;for(g=t.xa.length;h<g;h++)A.push.apply(A,t.xa[h].Na);A.push.apply(A,t.Na);if(q.rc)for(h=0,g=A.length;h<g;h++){var B=A[h];s=q.G[h];s.rc=!0;B.behavior.Aa.call(s,B,q);m=d[4][h];p=0;for(e=m.length;p<e;p++)s.aa[p]=m[p];s.ea();B.behavior.Uf.add(q)}else for(q.G=[],h=0,g=A.length;h<g;h++)B=A[h],s=new B.behavior.Aa(B,q),s.rc=!1,s.aa=d[4][h].slice(0),s.ea(),q.G.push(s),B.behavior.Uf.add(q);m=d[5];if(q.rc)for(h=0,g=m.length;h<g;h++)q.aa[h]=m[h];else q.aa=m.slice(0);this.Oc.push(q);
this.ne=!0;a&&(a.wg(q,!0),1!==a.Lb||1!==a.Mb)&&(t.Xh=!0);this.lj++;if(t.nc){if(q.nc=!0,q.rc?q.siblings.length=0:q.siblings=[],!b&&!c){h=0;for(g=t.Vb.length;h<g;h++)if(t.Vb[h]!==t){if(!t.Vb[h].xc)return null;q.siblings.push(this.ie(t.Vb[h].xc,k,!1,n?q.x:f,n?q.y:l,!0))}h=0;for(g=q.siblings.length;h<g;h++)for(q.siblings[h].siblings.push(q),p=0;p<g;p++)h!==p&&q.siblings[h].siblings.push(q.siblings[p])}}else q.nc=!1,q.siblings=null;q.ea();h=0;for(g=q.G.length;h<g;h++)q.G[h].ju&&q.G[h].ju();return q};e.prototype.Ig=
function(d){var a,b;a=0;for(b=this.ba.M.length;a<b;a++){var f=this.ba.M[a];if(fb(f.name,d))return f}return null};e.prototype.Id=function(d){d=S(d);0>d&&(d=0);d>=this.ba.M.length&&(d=this.ba.M.length-1);return this.ba.M[d]};e.prototype.Bk=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].X().ga=!0};e.prototype.Fh=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].Fh()};e.prototype.gm=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].gm()};e.prototype.ag=function(d){var a,b;a=0;for(b=d.length;a<
b;a++)d[a].ag()};e.prototype.Yp=function(d){if(d.Wh){var a,b,f=d.d;a=0;for(b=f.length;a<b;++a)f[a].Om();f=this.Oc;a=0;for(b=f.length;a<b;++a)f[a].type===d&&f[a].Om();d.Wh=!1}};e.prototype.Rs=function(d,a,b,f){var l,h,c=d?1!==d.Lb||1!==d.Mb:!1;if(a.B)for(d=0,l=a.Sf.length;d<l;++d)h=a.Sf[d],c||h.Xh?ya(f,h.d):(this.Yp(h),h.gi.Aj(b,f));else c||a.Xh?ya(f,a.d):(this.Yp(a),a.gi.Aj(b,f))};e.prototype.lg=function(d,a,b,f){var l=d.X(),h,c,g,p,t,e;if(l.ga)for(f||(l.ga=!1,l.d.length=0),h=0,p=d.d.length;h<p;h++){if(g=
d.d[h],g.ma(),t=g.e.wa(a,b,!0),e=g.e.wa(a,b,!1),g.gb(t,e)){if(f)return!1;l.d.push(g)}}else{h=c=0;for(p=l.d.length;h<p;h++)if(g=l.d[h],g.ma(),t=g.e.wa(a,b,!0),e=g.e.wa(a,b,!1),g.gb(t,e)){if(f)return!1;l.d[c]=l.d[h];c++}f||(l.d.length=c)}d.wd();return f?!0:l.kl()};e.prototype.Ku=function(d,a){if(!(d&&a&&d!==a&&d.Je&&a.Je))return!1;d.ma();a.ma();var b=d.e,f=a.e,l,h,c,g,p,t,e,q;if(b===f||b.Lb===f.Lb&&f.Mb===f.Mb&&b.scale===f.scale&&b.i===f.i&&b.xb===f.xb){if(!d.Ba.At(a.Ba)||!d.ob.ao(a.ob)||d.Rh&&a.Rh)return!1;
if(d.Rh)return this.Jp(d,a);if(a.Rh)return this.Jp(a,d);e=d.W&&!d.W.Hf();l=a.W&&!a.W.Hf();if(!e&&!l)return!0;e?(d.W.tf(d.width,d.height,d.i),e=d.W):(this.Xc.gg(d.ob,d.x,d.y,d.width,d.height),e=this.Xc);l?(a.W.tf(a.width,a.height,a.i),q=a.W):(this.Xc.gg(a.ob,a.x,a.y,a.width,a.height),q=this.Xc);return e.Rg(q,a.x-d.x,a.y-d.y)}e=d.W&&!d.W.Hf();l=a.W&&!a.W.Hf();e?(d.W.tf(d.width,d.height,d.i),this.Xc.yp(d.W)):this.Xc.gg(d.ob,d.x,d.y,d.width,d.height);e=this.Xc;l?(a.W.tf(a.width,a.height,a.i),this.Cm.yp(a.W)):
this.Cm.gg(a.ob,a.x,a.y,a.width,a.height);q=this.Cm;l=0;for(h=e.Vc;l<h;l++)c=2*l,g=c+1,p=e.Va[c],t=e.Va[g],e.Va[c]=b.ya(p+d.x,t+d.y,!0),e.Va[g]=b.ya(p+d.x,t+d.y,!1);e.ma();l=0;for(h=q.Vc;l<h;l++)c=2*l,g=c+1,p=q.Va[c],t=q.Va[g],q.Va[c]=f.ya(p+a.x,t+a.y,!0),q.Va[g]=f.ya(p+a.x,t+a.y,!1);q.ma();return e.Rg(q,0,0)};var q=new ta;new U(0,0,0,0);var B=[];e.prototype.Jp=function(d,a){var b,f,l,h,c=a.Ba,g=d.x,p=d.y;d.aw(c,B);var e=a.W&&!a.W.Hf();b=0;for(f=B.length;b<f;++b)if(l=B[b],h=l.hw,c.Bt(h,g,p)&&(q.hg(h),
q.offset(g,p),q.ao(a.ob)))if(e)if(a.W.tf(a.width,a.height,a.i),l.em){if(l.em.Rg(a.W,a.x-(g+h.left),a.y-(p+h.top)))return B.length=0,!0}else{if(this.Xc.gg(q,0,0,h.right-h.left,h.bottom-h.top),this.Xc.Rg(a.W,a.x,a.y))return B.length=0,!0}else if(l.em){if(this.Xc.gg(a.ob,0,0,a.width,a.height),l.em.Rg(this.Xc,-(g+h.left),-(p+h.top)))return B.length=0,!0}else return B.length=0,!0;B.length=0;return!1};e.prototype.Tp=function(d,a){if(!a)return!1;var b,f,l,h,c;b=0;for(f=d.Na.length;b<f;b++)if(d.Na[b].behavior instanceof
a)return!0;if(!d.B)for(b=0,f=d.xa.length;b<f;b++)for(c=d.xa[b],l=0,h=c.Na.length;l<h;l++)if(c.Na[l].behavior instanceof a)return!0;return!1};e.prototype.Up=function(d){return this.Tp(d,Yb.wv)};e.prototype.Jm=function(d){return this.Tp(d,Yb.xv)};var p=-1;e.prototype.trigger=function(d,a,b){if(!this.ba)return!1;var f=this.ba.Oe;if(!f)return!1;var l=!1,h,c,g;p++;var e=f.Ik;c=0;for(g=e.length;c<g;++c)h=this.Qp(d,a,e[c],b),l=l||h;h=this.Qp(d,a,f,b);p--;return l||h};e.prototype.Qp=function(d,a,b,f){var l=
!1,h,c,g,p;if(a)for(g=this.Hm(d,a,a.type.name,b,f),l=l||g,p=a.type.xa,h=0,c=p.length;h<c;++h)g=this.Hm(d,a,p[h].name,b,f),l=l||g;else g=this.Hm(d,a,"system",b,f),l=l||g;return l};e.prototype.Hm=function(d,a,b,f,l){var h,c=!1,g=!1,g="undefined"!==typeof l,p=(g?f.Gn:f.Rp)[b];if(!p)return c;var e=null;f=0;for(h=p.length;f<h;++f)if(p[f].method==d){e=p[f].Fg;break}if(!e)return c;d=g?e[l]:e;if(!d)return null;f=0;for(h=d.length;f<h;f++)l=d[f][0],g=d[f][1],g=this.Is(a,b,l,g),c=c||g;return c};e.prototype.Is=
function(d,a,b,f){var l,h,c=!1;this.Im++;var g=this.zb().Wb;g&&this.Fh(g.Ae);var e=1<this.Im;this.Fh(b.Ae);e&&this.pu();var t=this.hm(b);t.Wb=b;d&&(l=this.types[a].X(),l.ga=!1,l.d.length=1,l.d[0]=d,this.types[a].wd());d=!0;if(b.parent){a=t.Ip;for(l=b.parent;l;)a.push(l),l=l.parent;a.reverse();l=0;for(h=a.length;l<h;l++)if(!a[l].xu()){d=!1;break}}d&&(this.ti++,b.Tc?b.wu(f):b.Wa(),c=c||t.$e);this.kp();e&&this.iu();this.ag(b.Ae);g&&this.ag(g.Ae);this.ne&&0===this.Qc&&0===p&&!this.xl&&this.lb();this.Im--;
return c};e.prototype.Ei=function(){var d=this.zb();return d.Wb.rb[d.Fb]};e.prototype.pu=function(){this.ij++;this.ij>=this.Kl.length&&this.Kl.push([])};e.prototype.iu=function(){this.ij--};e.prototype.Mn=function(){return this.Kl[this.ij]};e.prototype.hm=function(d){this.si++;this.si>=this.Nk.length&&this.Nk.push(new Kb);var a=this.zb();a.reset(d);return a};e.prototype.kp=function(){this.si--};e.prototype.zb=function(){return this.Nk[this.si]};e.prototype.Nn=function(d,a){for(var b,f,l,h,c,g;a;){b=
0;for(f=a.Jc.length;b<f;b++)if(g=a.Jc[b],g instanceof Lb&&fb(d,g.name))return g;a=a.parent}b=0;for(f=this.Fd.length;b<f;b++)for(c=this.Fd[b],l=0,h=c.le.length;l<h;l++)if(g=c.le[l],g instanceof Lb&&fb(d,g.name))return g;return null};e.prototype.Pn=function(d){var a,b;a=0;for(b=this.$b.length;a<b;a++)if(this.$b[a].P===d)return this.$b[a];return null};e.prototype.Hi=function(d){var a,b;a=0;for(b=this.n.length;a<b;a++)if(this.n[a].P===d)return this.n[a];return null};e.prototype.Ts=function(d){var a,b;
a=0;for(b=this.de.length;a<b;a++)if(this.de[a].P===d)return this.de[a];return null};e.prototype.tt=function(){var d=this,b=this.um,f=this.Ld,l=this.cj,h=!1;this.Dp&&(h=!0,b="__c2_continuouspreview",this.Dp=!1);if(b.length){this.lb();f=this.Bu();if(window.indexedDB&&!this.mc)s(b,f,function(){K("Saved state to IndexedDB storage ("+f.length+" bytes)");d.Ld=f;d.trigger(X.prototype.j.ik,null);d.Ld="";h&&a()},function(l){try{localStorage.setItem("__c2save_"+b,f),K("Saved state to WebStorage ("+f.length+
" bytes)"),d.Ld=f,d.trigger(X.prototype.j.ik,null),d.Ld="",h&&a()}catch(c){K("Failed to save game state: "+l+"; "+c)}});else try{localStorage.setItem("__c2save_"+b,f),K("Saved state to WebStorage ("+f.length+" bytes)"),d.Ld=f,this.trigger(X.prototype.j.ik,null),d.Ld="",h&&a()}catch(g){K("Error saving to WebStorage: "+g)}this.Bb=this.cj=this.um=""}l.length&&(window.indexedDB&&!this.mc?c(l,function(a){a?(d.Bb=a,K("Loaded state from IndexedDB storage ("+d.Bb.length+" bytes)")):(d.Bb=localStorage.getItem("__c2save_"+
l)||"",K("Loaded state from WebStorage ("+d.Bb.length+" bytes)"));d.Nh=!1;d.Bb.length||d.trigger(X.prototype.j.gk,null)},function(){d.Bb=localStorage.getItem("__c2save_"+l)||"";K("Loaded state from WebStorage ("+d.Bb.length+" bytes)");d.Nh=!1;d.Bb.length||d.trigger(X.prototype.j.gk,null)}):(this.Bb=localStorage.getItem("__c2save_"+l)||"",K("Loaded state from WebStorage ("+this.Bb.length+" bytes)"),this.Nh=!1,d.Bb.length||d.trigger(X.prototype.j.gk,null)),this.um=this.cj="");this.Bb.length&&(this.lb(),
this.Lt(this.Bb),this.Ld=this.Bb,this.trigger(X.prototype.j.Sq,null),this.Bb=this.Ld="")};e.prototype.Bu=function(){var a,f,l,h,c,g,p,e={c2save:!0,version:1,rt:{time:this.oc.ca,walltime:this.td.ca,timescale:this.mg,tickcount:this.pd,execcount:this.ti,next_uid:this.qh,running_layout:this.ba.P,start_time_offset:Date.now()-this.Lj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(f=this.n.length;a<f;a++)if(c=this.n[a],!c.B&&!this.Up(c)){g={instances:[]};Sa(c.Ea)&&(g.ex=b(c.Ea));
l=0;for(h=c.d.length;l<h;l++)g.instances.push(this.tm(c.d[l]));e.types[c.P.toString()]=g}a=0;for(f=this.$b.length;a<f;a++)l=this.$b[a],e.layouts[l.P.toString()]=l.Pb();h=e.events.groups;a=0;for(f=this.de.length;a<f;a++)l=this.de[a],h[l.P.toString()]=this.Ii[l.Ng].Mg;f=e.events.cnds;for(p in this.uf)this.uf.hasOwnProperty(p)&&(a=this.uf[p],Sa(a.Ea)&&(f[p]={ex:b(a.Ea)}));f=e.events.acts;for(p in this.rf)this.rf.hasOwnProperty(p)&&(a=this.rf[p],Sa(a.Ea)&&(f[p]={ex:a.Ea}));f=e.events.vars;for(p in this.sg)this.sg.hasOwnProperty(p)&&
(a=this.sg[p],a.Ri||a.parent&&!a.Xg||(f[p]=a.data));e.system=this.od.Pb();return JSON.stringify(e)};e.prototype.pp=function(){var a,b,f,l,h,c;this.Pd={};a=0;for(b=this.n.length;a<b;a++)if(f=this.n[a],!f.B)for(l=0,h=f.d.length;l<h;l++)c=f.d[l],this.Pd[c.uid.toString()]=c};e.prototype.Lt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.oc.reset();this.oc.ca=b.time;this.td.reset();this.td.ca=b.walltime||0;this.mg=b.timescale;this.pd=b.tickcount;this.ti=b.execcount;this.Lj=Date.now()-
b.start_time_offset;var f=b.running_layout;if(f!==this.ba.P)if(f=this.Pn(f))this.An(f);else return;var l,h,c,g,p,e,t;e=a.types;for(h in e)if(e.hasOwnProperty(h)&&(g=this.Hi(parseInt(h,10)))&&!g.B&&!this.Up(g)){e[h].ex?g.Ea=e[h].ex:Ta(g.Ea);p=g.d;c=e[h].instances;f=0;for(l=na(p.length,c.length);f<l;f++)this.dj(p[f],c[f]);f=c.length;for(l=p.length;f<l;f++)this.Zd(p[f]);f=p.length;for(l=c.length;f<l;f++){p=null;if(g.qa.re&&(p=this.ba.Fi(c[f].w.l),!p))continue;p=this.ie(g.xc,p,!1,0,0,!0);this.dj(p,c[f])}g.kg=
!0}this.lb();this.pp();l=a.layouts;for(h in l)l.hasOwnProperty(h)&&(f=this.Pn(parseInt(h,10)))&&f.qc(l[h]);l=a.events.groups;for(h in l)l.hasOwnProperty(h)&&(f=this.Ts(parseInt(h,10)))&&this.Ii[f.Ng]&&this.Ii[f.Ng].vp(l[h]);f=a.events.cnds;for(h in f)f.hasOwnProperty(h)&&this.uf.hasOwnProperty(h)&&(this.uf[h].Ea=f[h].ex);f=a.events.acts;for(h in f)f.hasOwnProperty(h)&&this.rf.hasOwnProperty(h)&&(this.rf[h].Ea=f[h].ex);f=a.events.vars;for(h in f)f.hasOwnProperty(h)&&this.sg.hasOwnProperty(h)&&(this.sg[h].data=
f[h]);this.qh=b.next_uid;this.od.qc(a.system);f=0;for(l=this.n.length;f<l;f++)if(g=this.n[f],!g.B)for(h=0,a=g.d.length;h<a;h++){p=g.d[h];if(g.nc)for(e=p.Lg(),b=p.siblings.length=0,c=g.Vb.length;b<c;b++)t=g.Vb[b],g!==t&&p.siblings.push(t.d[e]);p.ud&&p.ud();if(p.G)for(b=0,c=p.G.length;b<c;b++)e=p.G[b],e.ud&&e.ud()}this.fa=!0}};e.prototype.tm=function(a,f){var l,h,c,g,p;g=a.type;c=g.qa;var e={};f?e.c2=!0:e.uid=a.uid;Sa(a.Ea)&&(e.ex=b(a.Ea));if(a.Ra&&a.Ra.length)for(e.ivs={},l=0,h=a.Ra.length;l<h;l++)e.ivs[a.type.sl[l].toString()]=
a.Ra[l];if(c.re){c={x:a.x,y:a.y,w:a.width,h:a.height,l:a.e.P,zi:a.Bc()};0!==a.i&&(c.a=a.i);1!==a.opacity&&(c.o=a.opacity);.5!==a.Ib&&(c.hX=a.Ib);.5!==a.Jb&&(c.hY=a.Jb);0!==a.Eb&&(c.bm=a.Eb);a.visible||(c.v=a.visible);a.Je||(c.ce=a.Je);-1!==a.ph&&(c.mts=a.ph);if(g.H.length)for(c.fx=[],l=0,h=g.H.length;l<h;l++)p=g.H[l],c.fx.push({name:p.name,active:a.ae[p.index],params:a.Da[p.index]});e.w=c}if(a.G&&a.G.length)for(e.behs={},l=0,h=a.G.length;l<h;l++)g=a.G[l],g.Pb&&(e.behs[g.type.P.toString()]=g.Pb());
a.Pb&&(e.data=a.Pb());return e};e.prototype.Vs=function(a,b){var f,l;f=0;for(l=a.sl.length;f<l;f++)if(a.sl[f]===b)return f;return-1};e.prototype.Qs=function(a,b){var f,l;f=0;for(l=a.G.length;f<l;f++)if(a.G[f].type.P===b)return f;return-1};e.prototype.dj=function(a,b,f){var l,h,c,g,p;p=a.type;c=p.qa;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.Ea=b.ex:Ta(a.Ea);if(h=b.ivs)for(l in h)h.hasOwnProperty(l)&&(f=this.Vs(p,parseInt(l,10)),0>f||f>=a.Ra.length||(a.Ra[f]=h[l]));if(c.re){c=b.w;a.e.P!==c.l&&(f=
a.e,a.e=this.ba.Fi(c.l),a.e?(f.bg(a,!0),a.e.wg(a,!0),a.za(),a.e.Jh(0)):(a.e=f,this.Zd(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.ad=c.zi;a.i=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Ib=c.hasOwnProperty("hX")?c.hX:.5;a.Jb=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Je=c.hasOwnProperty("ce")?c.ce:!0;a.ph=c.hasOwnProperty("mts")?c.mts:-1;a.Eb=c.hasOwnProperty("bm")?c.bm:0;a.Ag=cb(a.Eb);this.m&&db(a,a.Eb,this.m);a.za();if(c.hasOwnProperty("fx"))for(f=
0,h=c.fx.length;f<h;f++)g=p.bl(c.fx[f].name),0>g||(a.ae[g]=c.fx[f].active,a.Da[g]=c.fx[f].params);a.Xd()}if(p=b.behs)for(l in p)p.hasOwnProperty(l)&&(c=this.Qs(a,parseInt(l,10)),0>c||a.G[c].qc(p[l]));b.data&&a.qc(b.data)};Mb=function(a){return new e(document.getElementById(a))};Nb=function(a,b){return new e({dc:!0,width:a,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
a.jw=!0;document.body.appendChild(a);a=new e(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(k,m){if(0!==k&&0!==m){var e=window.cr_getC2Runtime();e&&e.setSize(k,m)}};window.cr_setSuspended=function(k){var m=window.cr_getC2Runtime();m&&m.setSuspended(k)};
(function(){function k(a,b){this.b=a;this.Oe=null;this.scrollX=this.b.Ua/2;this.scrollY=this.b.Ta/2;this.scale=1;this.i=0;this.zf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Vp=b[3];this.Bp=b[4];this.P=b[5];var c=b[6],h,g;this.M=[];this.Qg=[];h=0;for(g=c.length;h<g;h++){var e=new Ob(this,c[h]);e.So=h;this.M.push(e)}c=b[7];this.Ve=[];h=0;for(g=c.length;h<g;h++){var e=c[h],n=this.b.n[e[1]];n.xc||(n.xc=e);this.Ve.push(e);-1===this.Qg.indexOf(n)&&this.Qg.push(n)}this.H=[];this.V=[];this.Da=
[];h=0;for(g=b[8].length;h<g;h++)this.H.push({id:b[8][h][0],name:b[8][h][1],kb:-1,$a:!0,index:h}),this.Da.push(b[8][h][2].slice(0));this.Xd();this.we=new U(0,0,1,1);this.km=new U(0,0,1,1);this.ve={}}function m(a,b){return a.ad-b.ad}function e(a,b){this.bb=a;this.b=a.b;this.d=[];this.scale=1;this.i=0;this.Me=!1;this.Vd=new U(0,0,0,0);this.Op=new ta;this.Ia=this.ua=this.Ja=this.ta=0;this.nf=!1;this.Yd=-1;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.fe=b[4];this.Wd=b[5];this.Lb=
b[6];this.Mb=b[7];this.opacity=b[8];this.Uk=b[9];this.Zc=b[10];this.xb=b[11];this.Eb=b[12];this.ds=b[13];this.Ag="source-over";this.sb=this.tb=0;this.ec=null;this.Mf=r();this.Rd=!0;this.Xi=new U(0,0,-1,-1);this.wc=new U(0,0,-1,-1);this.Zc&&(this.ec=new bb(this.b.Ua,this.b.Ta));this.xe=!1;var c=b[14],h,g;this.Gp=[];this.lc=[];this.Cg=[];h=0;for(g=c.length;h<g;h++){var e=c[h],n=this.b.n[e[1]];n.xc||(n.xc=e,n.Mr=this.index);this.lc.push(e);-1===this.bb.Qg.indexOf(n)&&this.bb.Qg.push(n)}xa(this.Gp,this.lc);
this.H=[];this.V=[];this.Da=[];h=0;for(g=b[15].length;h<g;h++)this.H.push({id:b[15][h][0],name:b[15][h][1],kb:-1,$a:!0,index:h}),this.Da.push(b[15][h][2].slice(0));this.Xd();this.we=new U(0,0,1,1);this.km=new U(0,0,1,1)}function r(){return b.length?b.pop():[]}function s(a){a.length=0;b.push(a)}k.prototype.Au=function(a){var b=a.type.P.toString();this.ve.hasOwnProperty(b)||(this.ve[b]=[]);this.ve[b].push(this.b.tm(a))};k.prototype.Tn=function(){var a=this.M[0];return!a.Wd&&1===a.opacity&&!a.Uk&&a.visible};
k.prototype.Xd=function(){this.V.length=0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.$a&&this.V.push(c)};k.prototype.al=function(a){var b,c,h;b=0;for(c=this.H.length;b<c;b++)if(h=this.H[b],h.name===a)return h;return null};var c=[],a=!0;k.prototype.Am=function(){this.Bp&&(this.Oe=this.b.Ok[this.Bp],this.Oe.Km());this.b.ba=this;this.scrollX=this.b.Ua/2;this.scrollY=this.b.Ta/2;var b,l,g,h,e,q,n;b=0;for(g=this.b.n.length;b<g;b++)if(l=this.b.n[b],!l.B)for(e=l.d,l=0,h=e.length;l<h;l++)if(q=
e[l],q.e){var p=q.e.So;p>=this.M.length&&(p=this.M.length-1);q.e=this.M[p];-1===q.e.d.indexOf(q)&&q.e.d.push(q);q.e.nf=!0}if(!a)for(b=0,g=this.M.length;b<g;++b)this.M[b].d.sort(m);c.length=0;this.Cr();b=0;for(g=this.M.length;b<g;b++)q=this.M[b],q.Kr(),q.Mm();e=!1;if(!this.zf){for(n in this.ve)if(this.ve.hasOwnProperty(n)&&(l=this.b.Hi(parseInt(n,10)))&&!l.B&&this.b.Jm(l)){h=this.ve[n];b=0;for(g=h.length;b<g;b++){q=null;if(l.qa.re&&(q=this.Fi(h[b].w.l),!q))continue;q=this.b.ie(l.xc,q,!1,0,0,!0);this.b.dj(q,
h[b]);e=!0;c.push(q)}h.length=0}b=0;for(g=this.M.length;b<g;b++)this.M[b].d.sort(m),this.M[b].nf=!0}e&&(this.b.lb(),this.b.pp());for(b=0;b<c.length;b++)if(q=c[b],q.type.nc)for(g=q.Lg(),l=0,h=q.type.Vb.length;l<h;l++)n=q.type.Vb[l],q.type!==n&&(n.d.length>g?q.siblings.push(n.d[g]):n.xc&&(e=this.b.ie(n.xc,q.e,!0,q.x,q.y,!0),this.b.lb(),n.Yj(),q.siblings.push(e),c.push(e)));b=0;for(g=this.Ve.length;b<g;b++)this.b.ie(this.Ve[b],null,!0);this.b.yd=null;this.b.lb();if(this.b.da&&!this.b.ka)for(b=0,g=this.b.n.length;b<
g;b++)n=this.b.n[b],!n.B&&n.d.length&&n.yj&&n.yj(this.b.da);b=0;for(g=c.length;b<g;b++)q=c[b],this.b.trigger(Object.getPrototypeOf(q.type.qa).j.ek,q);c.length=0;this.b.trigger(X.prototype.j.Ym,null);this.zf=!1};k.prototype.Jr=function(){var a,b,c,h,g;b=a=0;for(c=this.Ve.length;a<c;a++)h=this.Ve[a],g=this.b.n[h[1]],g.global?this.b.ie(h,null,!0):(this.Ve[b]=h,b++);this.Ve.length=b};k.prototype.Ju=function(){this.b.trigger(X.prototype.j.Rq,null);this.b.od.Sb.length=0;var b,c,g,h,e,q;if(!this.zf)for(b=
0,c=this.M.length;b<c;b++)for(this.M[b].Nm(),e=this.M[b].d,g=0,h=e.length;g<h;g++)q=e[g],q.type.global||this.b.Jm(q.type)&&this.Au(q);b=0;for(c=this.M.length;b<c;b++){e=this.M[b].d;g=0;for(h=e.length;g<h;g++)q=e[g],q.type.global||this.b.Zd(q);this.b.lb();e.length=0;this.M[b].nf=!0}b=0;for(c=this.b.n.length;b<c;b++)if(e=this.b.n[b],!(e.global||e.qa.re||e.qa.Gj||e.B)){g=0;for(h=e.d.length;g<h;g++)this.b.Zd(e.d[g]);this.b.lb()}a=!1};new U(0,0,0,0);k.prototype.jc=function(a){var b,c=a,h=!1,g=!this.b.zc;
g&&(this.b.bj||(this.b.bj=document.createElement("canvas"),b=this.b.bj,b.width=this.b.L,b.height=this.b.K,this.b.ro=b.getContext("2d"),h=!0),b=this.b.bj,c=this.b.ro,b.width!==this.b.L&&(b.width=this.b.L,h=!0),b.height!==this.b.K&&(b.height=this.b.K,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.qk&&!this.Tn()&&c.clearRect(0,0,this.b.L,
this.b.K);var e,n,h=0;for(e=this.M.length;h<e;h++)n=this.M[h],n.visible&&0<n.opacity&&11!==n.Eb&&(n.d.length||!n.Wd)?n.jc(c):n.Mm();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};k.prototype.Gb=function(a){var b=0<this.V.length||this.b.qg||!this.b.zc;if(b){this.b.Zb||(this.b.Zb=a.zd(this.b.L,this.b.K,this.b.T));if(this.b.Zb.zg!==this.b.L||this.b.Zb.yg!==this.b.K)a.deleteTexture(this.b.Zb),this.b.Zb=a.zd(this.b.L,this.b.K,this.b.T);a.md(this.b.Zb);this.b.zc||a.fg(this.b.L,this.b.K)}else this.b.Zb&&
(a.md(null),a.deleteTexture(this.b.Zb),this.b.Zb=null);this.b.qk&&!this.Tn()&&a.clear(0,0,0,0);var c,h,g;c=0;for(h=this.M.length;c<h;c++)g=this.M[c],g.visible&&0<g.opacity&&(g.d.length||!g.Wd)?g.Gb(a):g.Mm();b&&(0===this.V.length||1===this.V.length&&this.b.zc?(1===this.V.length?(b=this.V[0].index,a.nd(this.V[0].kb),a.eg(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.i,0,0,this.b.L/2,this.b.K/2,this.Da[b]),a.zj(this.V[0].kb)&&(this.b.fa=!0)):a.nd(0),this.b.zc||a.fg(this.b.width,this.b.height),
a.md(null),a.ze(1),a.Qb(this.b.Zb),a.up(),a.ld(),a.rd(),b=this.b.width/2,c=this.b.height/2,a.Gh(-b,c,b,c,b,-c,-b,-c),a.Qb(null)):this.lm(a,null,null,null))};k.prototype.Jg=function(){return 0<this.V.length||this.b.qg||!this.b.zc?this.b.Zb:null};k.prototype.Qn=function(){var a=this.M[0].Xb(),b,c,h;b=1;for(c=this.M.length;b<c;b++)h=this.M[b],(0!==h.Lb||0!==h.Mb)&&h.Xb()<a&&(a=h.Xb());return a};k.prototype.sp=function(a){if(!this.Vp){var b=1/this.Qn()*this.b.L/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.fa=!0)};k.prototype.tp=function(a){if(!this.Vp){var b=1/this.Qn()*this.b.K/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.fa=!0)};k.prototype.Cr=function(){this.sp(this.scrollX);this.tp(this.scrollY)};k.prototype.lm=function(a,b,c,h){var g=c?c.V:b?b.V:this.V,e=1,n=0,p=0,d=0,k=this.b.L,u=this.b.K;c?(e=c.e.Xb(),n=c.e.Pa(),p=c.e.ta,d=c.e.ua,k=c.e.Ja,u=c.e.Ia):b&&(e=b.Xb(),n=b.Pa(),p=b.ta,d=b.ua,k=b.Ja,u=b.Ia);var m=
this.b.Xk,s,r,w,z,L=0,C=1,Z,G=this.b.L,y=this.b.K,va=G/2,N=y/2,Q=b?b.we:this.we,E=b?b.km:this.km,F=0,O=0,D=0,J=0,I=G,ka=G,M=y,pa=y,ga=w=0,sa=c?c.e.Pa():0;if(c){s=0;for(r=g.length;s<r;s++)w+=a.Zs(g[s].kb),ga+=a.$s(g[s].kb);z=c.Ba;F=b.ya(z.left,z.top,!0,!0);D=b.ya(z.left,z.top,!1,!0);I=b.ya(z.right,z.bottom,!0,!0);M=b.ya(z.right,z.bottom,!1,!0);0!==sa&&(s=b.ya(z.right,z.top,!0,!0),r=b.ya(z.right,z.top,!1,!0),O=b.ya(z.left,z.bottom,!0,!0),J=b.ya(z.left,z.bottom,!1,!0),z=Math.min(F,I,s,O),I=Math.max(F,
I,s,O),F=z,z=Math.min(D,M,r,J),M=Math.max(D,M,r,J),D=z);F-=w;D-=ga;I+=w;M+=ga;E.left=F/G;E.top=1-D/y;E.right=I/G;E.bottom=1-M/y;O=F=S(F);J=D=S(D);ka=I=qa(I);pa=M=qa(M);O-=w;J-=ga;ka+=w;pa+=ga;0>F&&(F=0);0>D&&(D=0);I>G&&(I=G);M>y&&(M=y);0>O&&(O=0);0>J&&(J=0);ka>G&&(ka=G);pa>y&&(pa=y);Q.left=F/G;Q.top=1-D/y;Q.right=I/G;Q.bottom=1-M/y}else Q.left=E.left=0,Q.top=E.top=0,Q.right=E.right=1,Q.bottom=E.bottom=1;ga=c&&((c.i||sa)&&a.Dh(g[0].kb)||0!==w||0!==ga||1!==c.opacity||c.type.qa.No)||b&&!c&&1!==b.opacity;
a.up();if(ga){m[L]||(m[L]=a.zd(G,y,this.b.T));if(m[L].zg!==G||m[L].yg!==y)a.deleteTexture(m[L]),m[L]=a.zd(G,y,this.b.T);a.nd(0);a.md(m[L]);Z=pa-J;a.clearRect(O,y-J-Z,ka-O,Z);c?c.Gb(a):(a.Qb(this.b.pc),a.ze(b.opacity),a.ld(),a.translate(-va,-N),a.rd(),a.kd(F,M,I,M,I,D,F,D,Q));E.left=E.top=0;E.right=E.bottom=1;c&&(z=Q.top,Q.top=Q.bottom,Q.bottom=z);L=1;C=0}a.ze(1);w=g.length-1;var sa=a.fm(g[w].kb)||!b&&!c&&!this.b.zc,ca=0;s=0;for(r=g.length;s<r;s++){m[L]||(m[L]=a.zd(G,y,this.b.T));if(m[L].zg!==G||m[L].yg!==
y)a.deleteTexture(m[L]),m[L]=a.zd(G,y,this.b.T);a.nd(g[s].kb);ca=g[s].index;a.zj(g[s].kb)&&(this.b.fa=!0);0!=s||ga?(a.eg(h,1/G,1/y,E.left,E.top,E.right,E.bottom,e,n,p,d,(p+k)/2,(d+u)/2,c?c.Da[ca]:b?b.Da[ca]:this.Da[ca]),a.Qb(null),s!==w||sa?(a.md(m[L]),Z=pa-J,z=y-J-Z,a.clearRect(O,z,ka-O,Z)):(c?a.ye(c.tb,c.sb):b&&a.ye(b.tb,b.sb),a.md(h)),a.Qb(m[C]),a.ld(),a.translate(-va,-N),a.rd(),a.kd(F,M,I,M,I,D,F,D,Q),s!==w||sa||a.Qb(null)):(a.md(m[L]),Z=pa-J,z=y-J-Z,a.clearRect(O,z,ka-O,Z),c?(a.eg(h,1/c.width,
1/c.height,E.left,E.top,E.right,E.bottom,e,n,p,d,(p+k)/2,(d+u)/2,c.Da[ca]),c.Gb(a)):(a.eg(h,1/G,1/y,0,0,1,1,e,n,p,d,(p+k)/2,(d+u)/2,b?b.Da[ca]:this.Da[ca]),a.Qb(b?this.b.pc:this.b.Zb),a.ld(),a.translate(-va,-N),a.rd(),a.kd(F,M,I,M,I,D,F,D,Q)),E.left=E.top=0,E.right=E.bottom=1,c&&!sa&&(z=M,M=D,D=z));L=0===L?1:0;C=0===L?1:0}sa&&(a.nd(0),c?a.ye(c.tb,c.sb):b?a.ye(b.tb,b.sb):this.b.zc||(a.fg(this.b.width,this.b.height),va=this.b.width/2,N=this.b.height/2,D=F=0,I=this.b.width,M=this.b.height),a.md(h),a.Qb(m[C]),
a.ld(),a.translate(-va,-N),a.rd(),c&&1===g.length&&!ga?a.kd(F,D,I,D,I,M,F,M,Q):a.kd(F,M,I,M,I,D,F,D,Q),a.Qb(null))};k.prototype.Fi=function(a){var b,c;b=0;for(c=this.M.length;b<c;b++)if(this.M[b].P===a)return this.M[b];return null};k.prototype.Pb=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.zf,persist:this.ve,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],h.fx.push({name:c.name,active:c.$a,params:this.Da[c.index]});
a=0;for(b=this.M.length;a<b;a++)c=this.M[a],h.layers[c.P.toString()]=c.Pb();return h};k.prototype.qc=function(a){var b,c,h,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.ve=a.persist;"undefined"!==typeof a.fv&&(this.zf=a.fv);var e=a.fx;b=0;for(c=e.length;b<c;b++)if(h=this.al(e[b].name))h.$a=e[b].active,this.Da[h.index]=e[b].params;this.Xd();b=a.layers;for(g in b)b.hasOwnProperty(g)&&(a=this.Fi(parseInt(g,10)))&&a.qc(b[g])};Ab=k;e.prototype.Xd=function(){this.V.length=
0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.$a&&this.V.push(c)};e.prototype.al=function(a){var b,c,h;b=0;for(c=this.H.length;b<c;b++)if(h=this.H[b],h.name===a)return h;return null};e.prototype.Kr=function(){var a,b,g,h,e,q;b=a=0;for(g=this.lc.length;a<g;a++){h=this.lc[a];e=this.b.n[h[1]];q=this.b.Jm(e);e=!0;if(!q||this.bb.zf)h=this.b.ie(h,this,!0),c.push(h),h.type.global&&(e=!1,this.Cg.push(h.uid));e&&(this.lc[b]=this.lc[a],b++)}this.lc.length=b;this.b.lb();!this.b.q&&this.H.length&&
(this.Eb=this.ds);this.Ag=cb(this.Eb);this.b.m&&db(this,this.Eb,this.b.m);this.Rd=!0};e.prototype.bg=function(a,b){var c=za(this.d,a);0>c||(b&&this.Zc&&a.Nb&&a.Nb.right>=a.Nb.left&&(a.ma(),this.ec.update(a,a.Nb,null),a.Nb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(wa(this.d,c),this.Jh(c)),this.Rd=!0)};e.prototype.wg=function(a,b){a.ad=this.d.length;this.d.push(a);b&&this.Zc&&a.Nb&&a.za();this.Rd=!0};e.prototype.mu=function(a){this.d.unshift(a);this.Jh(0)};e.prototype.Rt=function(a,b,c){var h=
a.Bc();b=b.Bc();wa(this.d,h);h<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Jh(h<b?h:b)};e.prototype.Jh=function(a){-1===this.Yd?this.Yd=a:a<this.Yd&&(this.Yd=a);this.Rd=this.nf=!0};e.prototype.Nm=function(){if(this.nf){-1===this.Yd&&(this.Yd=0);var a,b,c;if(this.Zc)for(a=this.Yd,b=this.d.length;a<b;++a)c=this.d[a],c.ad=a,this.ec.Nt(c.Nb);else for(a=this.Yd,b=this.d.length;a<b;++a)this.d[a].ad=a;this.nf=!1;this.Yd=-1}};e.prototype.Xb=function(a){return this.Ws()*(this.b.zc||
a?this.b.xg:1)};e.prototype.Ws=function(){return(this.scale*this.bb.scale-1)*this.xb+1};e.prototype.Pa=function(){return this.Me?0:Da(this.bb.i+this.i)};var b=[],g=[],n=[];e.prototype.Rn=function(){this.Nm();this.ec.Aj(this.ta,this.ua,this.Ja,this.Ia,n);if(!n.length)return r();if(1===n.length){var a=r();xa(a,n[0]);n.length=0;return a}for(var b=!0;1<n.length;){for(var a=n,c=void 0,h=void 0,e=void 0,q=void 0,m=void 0,c=0,h=a.length;c<h-1;c+=2){var e=a[c],q=a[c+1],m=r(),p=e,d=q,k=m,u=0,x=0,H=0,R=p.length,
w=d.length,z=void 0,L=void 0;for(k.length=R+w;u<R&&x<w;++H)z=p[u],L=d[x],z.ad<L.ad?(k[H]=z,++u):(k[H]=L,++x);for(;u<R;++u,++H)k[H]=p[u];for(;x<w;++x,++H)k[H]=d[x];b||(s(e),s(q));g.push(m)}1===h%2&&(b?(e=r(),xa(e,a[h-1]),g.push(e)):g.push(a[h-1]));xa(a,g);g.length=0;b=!1}a=n[0];n.length=0;return a};e.prototype.jc=function(a){this.xe=this.Uk||1!==this.opacity||0!==this.Eb;var b=this.b.canvas,c=a,h=!1;this.xe&&(this.b.aj||(this.b.aj=document.createElement("canvas"),b=this.b.aj,b.width=this.b.L,b.height=
this.b.K,this.b.qo=b.getContext("2d"),h=!0),b=this.b.aj,c=this.b.qo,b.width!==this.b.L&&(b.width=this.b.L,h=!0),b.height!==this.b.K&&(b.height=this.b.K,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T),this.Wd&&c.clearRect(0,0,this.b.L,this.b.K));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Wd||(c.fillStyle="rgb("+this.fe[0]+","+this.fe[1]+","+this.fe[2]+")",c.fillRect(0,0,this.b.L,
this.b.K));c.save();this.Me=!0;var h=this.wa(0,0,!0,!0),g=this.wa(0,0,!1,!0);this.Me=!1;this.b.Hc&&(h=Math.round(h),g=Math.round(g));this.nm(h,g,c);var e=this.Xb();c.scale(e,e);c.translate(-h,-g);this.Zc?(this.wc.left=this.ec.gc(this.ta),this.wc.top=this.ec.hc(this.ua),this.wc.right=this.ec.gc(this.Ja),this.wc.bottom=this.ec.hc(this.Ia),this.Rd||!this.wc.ri(this.Xi)?(s(this.Mf),h=this.Rn(),this.Rd=!1,this.Xi.Bg(this.wc)):h=this.Mf):h=this.d;for(var n,p=null,g=0,e=h.length;g<e;++g)n=h[g],n!==p&&(this.as(n,
c),p=n);this.Zc&&(this.Mf=h);c.restore();this.xe&&(a.globalCompositeOperation=this.Ag,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};e.prototype.as=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.Ba;c.right<this.ta||c.bottom<this.ua||c.left>this.Ja||c.top>this.Ia||(b.globalCompositeOperation=a.Ag,a.jc(b))}};e.prototype.Mm=function(){this.Me=!0;var a=this.wa(0,0,!0,!0),b=this.wa(0,0,!1,!0);this.Me=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b));this.nm(a,b,null)};e.prototype.nm=
function(a,b,c){var h=this.Xb();this.ta=a;this.ua=b;this.Ja=a+1/h*this.b.L;this.Ia=b+1/h*this.b.K;a=this.Pa();0!==a&&(c&&(c.translate(this.b.L/2,this.b.K/2),c.rotate(-a),c.translate(this.b.L/-2,this.b.K/-2)),this.Vd.set(this.ta,this.ua,this.Ja,this.Ia),this.Vd.offset((this.ta+this.Ja)/-2,(this.ua+this.Ia)/-2),this.Op.zp(this.Vd,a),this.Op.qn(this.Vd),this.Vd.offset((this.ta+this.Ja)/2,(this.ua+this.Ia)/2),this.ta=this.Vd.left,this.ua=this.Vd.top,this.Ja=this.Vd.right,this.Ia=this.Vd.bottom)};e.prototype.Gb=
function(a){var b=0,c=0;if(this.xe=this.Uk||1!==this.opacity||0<this.V.length||0!==this.Eb){this.b.pc||(this.b.pc=a.zd(this.b.L,this.b.K,this.b.T));if(this.b.pc.zg!==this.b.L||this.b.pc.yg!==this.b.K)a.deleteTexture(this.b.pc),this.b.pc=a.zd(this.b.L,this.b.K,this.b.T);a.md(this.b.pc);this.Wd&&a.clear(0,0,0,0)}this.Wd||a.clear(this.fe[0]/255,this.fe[1]/255,this.fe[2]/255,1);this.Me=!0;var h=this.wa(0,0,!0,!0),b=this.wa(0,0,!1,!0);this.Me=!1;this.b.Hc&&(h=Math.round(h),b=Math.round(b));this.nm(h,b,
null);h=this.Xb();a.ld();a.scale(h,h);a.om(-this.Pa());a.translate((this.ta+this.Ja)/-2,(this.ua+this.Ia)/-2);a.rd();this.Zc?(this.wc.left=this.ec.gc(this.ta),this.wc.top=this.ec.hc(this.ua),this.wc.right=this.ec.gc(this.Ja),this.wc.bottom=this.ec.hc(this.Ia),this.Rd||!this.wc.ri(this.Xi)?(s(this.Mf),b=this.Rn(),this.Rd=!1,this.Xi.Bg(this.wc)):b=this.Mf):b=this.d;var g,e,n=null,c=0;for(g=b.length;c<g;++c)e=b[c],e!==n&&(this.bs(b[c],a),n=e);this.Zc&&(this.Mf=b);this.xe&&(b=this.V.length?this.V[0].kb:
0,c=this.V.length?this.V[0].index:0,0===this.V.length||1===this.V.length&&!a.fm(b)&&1===this.opacity?(1===this.V.length?(a.nd(b),a.eg(this.bb.Jg(),1/this.b.L,1/this.b.K,0,0,1,1,h,this.Pa(),this.ta,this.ua,(this.ta+this.Ja)/2,(this.ua+this.Ia)/2,this.Da[c]),a.zj(b)&&(this.b.fa=!0)):a.nd(0),a.md(this.bb.Jg()),a.ze(this.opacity),a.Qb(this.b.pc),a.ye(this.tb,this.sb),a.ld(),a.rd(),h=this.b.L/2,b=this.b.K/2,a.Gh(-h,b,h,b,h,-b,-h,-b),a.Qb(null)):this.bb.lm(a,this,null,this.bb.Jg()))};e.prototype.bs=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.Ba;c.right<this.ta||c.bottom<this.ua||c.left>this.Ja||c.top>this.Ia||(a.aq?this.cs(a,b):(b.nd(0),b.ye(a.tb,a.sb),a.Gb(b)))}};e.prototype.cs=function(a,b){var c=a.V[0].kb,h=a.V[0].index,g=this.Xb();if(1!==a.V.length||b.fm(c)||b.ou(c)||(a.i||a.e.Pa())&&b.Dh(c)||1!==a.opacity||a.type.qa.No)this.bb.lm(b,this,a,this.xe?this.b.pc:this.bb.Jg()),b.ld(),b.scale(g,g),b.om(-this.Pa()),b.translate((this.ta+this.Ja)/-2,(this.ua+this.Ia)/-2),b.rd();else{b.nd(c);
b.ye(a.tb,a.sb);b.zj(c)&&(this.b.fa=!0);var e=0,n=0,p=0,d=0;b.Dh(c)&&(c=a.Ba,e=this.ya(c.left,c.top,!0,!0),n=this.ya(c.left,c.top,!1,!0),p=this.ya(c.right,c.bottom,!0,!0),c=this.ya(c.right,c.bottom,!1,!0),e/=windowWidth,n=1-n/windowHeight,p/=windowWidth,d=1-c/windowHeight);b.eg(this.xe?this.b.pc:this.bb.Jg(),1/a.width,1/a.height,e,n,p,d,g,this.Pa(),this.ta,this.ua,(this.ta+this.Ja)/2,(this.ua+this.Ia)/2,a.Da[h]);a.Gb(b)}};e.prototype.wa=function(a,b,c,h){var g=this.b.devicePixelRatio;this.b.We&&(a*=
g,b*=g);var g=this.b.ep,e=this.b.fp,g=(this.bb.scrollX-g)*this.Lb+g,e=(this.bb.scrollY-e)*this.Mb+e,n=g,p=e,d=1/this.Xb(!h);h?(n-=this.b.L*d/2,p-=this.b.K*d/2):(n-=this.b.width*d/2,p-=this.b.height*d/2);n+=a*d;p+=b*d;b=this.Pa();0!==b&&(n-=g,p-=e,a=Math.cos(b),b=Math.sin(b),h=n*a-p*b,p=p*a+n*b,n=h+g,p+=e);return c?n:p};e.prototype.ya=function(a,b,c,h){var g=this.b.ep,e=this.b.fp,n=(this.bb.scrollX-g)*this.Lb+g,p=(this.bb.scrollY-e)*this.Mb+e,e=n,g=p,d=this.Pa();if(0!==d){a-=n;b-=p;var m=Math.cos(-d),
d=Math.sin(-d),u=a*m-b*d;b=b*m+a*d;a=u+n;b+=p}n=1/this.Xb(!h);h?(e-=this.b.L*n/2,g-=this.b.K*n/2):(e-=this.b.width*n/2,g-=this.b.height*n/2);e=(a-e)/n;g=(b-g)/n;a=this.b.devicePixelRatio;this.b.We&&!h&&(e/=a,g/=a);return c?e:g};e.prototype.Pb=function(){var a,b,c,h={s:this.scale,a:this.i,vl:this.ta,vt:this.ua,vr:this.Ja,vb:this.Ia,v:this.visible,bc:this.fe,t:this.Wd,px:this.Lb,py:this.Mb,o:this.opacity,zr:this.xb,fx:[],cg:this.Cg,instances:[]};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],h.fx.push({name:c.name,
active:c.$a,params:this.Da[c.index]});return h};e.prototype.qc=function(a){var b,c,h;this.scale=a.s;this.i=a.a;this.ta=a.vl;this.ua=a.vt;this.Ja=a.vr;this.Ia=a.vb;this.visible=a.v;this.fe=a.bc;this.Wd=a.t;this.Lb=a.px;this.Mb=a.py;this.opacity=a.o;this.xb=a.zr;this.Cg=a.cg||[];xa(this.lc,this.Gp);var g=new ba;b=0;for(h=this.Cg.length;b<h;++b)g.add(this.Cg[b]);c=b=0;for(h=this.lc.length;b<h;++b)g.contains(this.lc[b][2])||(this.lc[c]=this.lc[b],++c);this.lc.length=c;c=a.fx;b=0;for(h=c.length;b<h;b++)if(a=
this.al(c[b].name))a.$a=c[b].active,this.Da[a.index]=c[b].params;this.Xd();this.d.sort(m);this.nf=!0};Ob=e})();
(function(){function k(a,b){var c,h=a.length;switch(h){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<h;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function e(a){var b,c,h,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=A.length&&(A.length=a.length+1);A[a.length]||(A[a.length]=[]);g=A[a.length];b=0;for(c=g.length;b<c;b++)if(h=g[b],k(a,h))return h;g.push(a);return a}
function r(a,b){this.b=a;this.Rp={};this.Gn={};this.ll=!1;this.Wn=new ba;this.Ik=[];this.rk=[];this.name=b[0];var c=b[1];this.le=[];var h,g;h=0;for(g=c.length;h<g;h++)this.Yn(c[h],null,this.le)}function s(a){this.type=a;this.d=[];this.R=[];this.ga=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ra=[];this.Ae=[];this.Un=this.Tj=this.Gm=this.Oi=this.group=this.Fp=!1;this.rb=[];this.Lc=[];this.Jc=[];this.Ng="";this.Mg=this.Oi=this.group=!1;this.hi=null;c[1]&&(this.Ng=c[1][1].toLowerCase(),
this.group=!0,this.Oi=!!c[1][0],this.hi=[],this.Mg=this.Oi,this.b.de.push(this),this.b.Ii[this.Ng]=this);this.Tc=c[2];this.P=c[4];this.group||(this.b.pn[this.P.toString()]=this);var h=c[5];a=0;for(b=h.length;a<b;a++){var g=new Pb(this,h[a]);g.index=a;this.rb.push(g);this.jn(g.type)}h=c[6];a=0;for(b=h.length;a<b;a++)g=new Qb(this,h[a]),g.index=a,this.Lc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Yn(c[a],this,this.Jc);this.Si=!1;this.rb.length&&(this.Si=null==this.rb[0].type&&
this.rb[0].hb==X.prototype.j.pq)}function a(a,b){var c,h,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.nc))for(c=0,h=a.Vb.length;c<h;c++)g=a.Vb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function b(a,b){this.ic=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.Fa=[];this.Ea={};this.index=-1;this.ug=!1;this.hb=this.b.$d(b[1]);this.trigger=0<b[3];this.Fn=2===b[3];this.fd=b[4];this.Df=b[5];this.Kt=b[6];this.P=b[7];this.b.uf[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Wa=this.rm,this.Ie=null,this.Nc=-1):
(this.type=this.b.n[b[0]],this.Wa=this.Kt?this.yu:this.qm,b[2]?(this.Ie=this.type.Di(b[2]),this.Nc=this.type.Zk(b[2])):(this.Ie=null,this.Nc=-1),this.ic.parent&&this.ic.parent.Fj());this.Fn&&(this.Wa=this.zu);if(10===b.length){var c,h,g=b[9];c=0;for(h=g.length;c<h;c++){var f=new Rb(this,g[c]);this.N.push(f)}this.Fa.length=g.length}}function g(a,b){this.ic=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.Fa=[];this.Ea={};this.index=-1;this.ug=!1;this.hb=this.b.$d(b[1]);-1===b[0]?(this.type=null,this.Wa=
this.rm,this.Ie=null,this.Nc=-1):(this.type=this.b.n[b[0]],this.Wa=this.qm,b[2]?(this.Ie=this.type.Di(b[2]),this.Nc=this.type.Zk(b[2])):(this.Ie=null,this.Nc=-1));this.P=b[3];this.b.rf[this.P.toString()]=this;if(6===b.length){var c,h,g=b[5];c=0;for(h=g.length;c<h;c++){var f=new Rb(this,g[c]);this.N.push(f)}this.Fa.length=g.length}}function n(){B++;q.length===B&&q.push(new Sb);return q[B]}function f(a,b){this.pa=a;this.ic=a.ic;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.dd=null;this.Ud=0;this.get=
null;this.wn=0;this.bb=null;this.key=0;this.object=null;this.index=0;this.Th=this.lf=this.Th=this.lf=this.Hn=this.Pe=this.Uh=null;this.Kc=!1;var c,h,g;switch(b[0]){case 0:case 7:this.dd=new Tb(this,b[1]);this.Ud=0;this.get=this.gt;break;case 1:this.dd=new Tb(this,b[1]);this.Ud=0;this.get=this.ht;break;case 5:this.dd=new Tb(this,b[1]);this.Ud=0;this.get=this.lt;break;case 3:case 8:this.wn=b[1];this.get=this.dt;break;case 6:this.bb=this.b.Nf[b[1]];this.get=this.mt;break;case 9:this.key=b[1];this.get=
this.kt;break;case 4:this.object=this.b.n[b[1]];this.get=this.nt;this.ic.jn(this.object);this.pa instanceof Qb?this.ic.Fj():this.ic.parent&&this.ic.parent.Fj();break;case 10:this.index=b[1];a.type.B?(this.get=this.it,this.Kc=!0):this.get=this.jt;break;case 11:this.Uh=b[1];this.Pe=null;this.get=this.et;break;case 2:case 12:this.Hn=b[1];this.get=this.ct;break;case 13:for(this.get=this.ot,this.lf=[],this.Th=[],c=1,h=b.length;c<h;c++)g=new Rb(this.pa,b[c]),this.lf.push(g),this.Th.push(0)}}function l(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ra=[];this.name=c[1];this.ak=c[2];this.Ni=c[3];this.Xg=!!c[4];this.Ri=!!c[5];this.P=c[6];this.b.sg[this.P.toString()]=this;this.data=this.Ni;this.parent?(this.ef=this.Xg||this.Ri?-1:this.b.Hu++,this.b.tr.push(this)):(this.ef=-1,this.b.ok.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ra=[];this.Pg=null;this.xt=c[1];this.$a=!0}function h(){this.Ip=[];this.reset(null)}var A=[];r.prototype.toString=function(){return this.name};
r.prototype.Yn=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Tc)for(c.push(a),c=0,b=a.rb.length;c<b;c++)a.rb[c].trigger&&this.Zn(a,c);else a.jo()?this.Zn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};r.prototype.Ma=function(){var a,b;a=0;for(b=this.le.length;a<b;a++)this.le[a].Ma(a<b-1&&this.le[a+1].Si)};r.prototype.Km=function(){this.Ik.length=0;this.rk.length=0;this.hn(this);this.rk.length=0};r.prototype.hn=function(a){var b,c,
h,g,f=a.Ik,e=a.rk,l=this.Wn.$c();b=0;for(c=l.length;b<c;++b)h=l[b],g=h.Pg,!h.$a||a===g||-1<e.indexOf(g)||(e.push(g),g.hn(a),f.push(g))};r.prototype.Wa=function(a){this.b.iw||(this.ll=!0,a||(this.b.xl=!0));var b,c;b=0;for(c=this.le.length;b<c;b++){var h=this.le[b];h.Wa();this.b.Bk(h.ra);this.b.ne&&this.b.lb()}a||(this.b.xl=!1)};r.prototype.Zn=function(a,b){a.Tc||this.b.Wj.push(a);var c,h,g=a.rb[b],f;f=g.type?g.type.name:"system";var e=(c=g.Fn)?this.Gn:this.Rp;e[f]||(e[f]=[]);f=e[f];e=g.hb;if(c){if(g.N.length&&
(g=g.N[0],1===g.type&&2===g.dd.type)){g=g.dd.value.toLowerCase();c=0;for(h=f.length;c<h;c++)if(f[c].method==e){c=f[c].Fg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:e,Fg:c})}}else{c=0;for(h=f.length;c<h;c++)if(f[c].method==e){f[c].Fg.push([a,b]);return}gc&&e===gc.prototype.j.qf?f.unshift({method:e,Fg:[[a,b]]}):f.push({method:e,Fg:[[a,b]]})}};Bb=r;s.prototype.kl=function(){return this.ga?this.type.d.length:this.d.length};s.prototype.Ac=function(){return this.ga?this.type.d:
this.d};s.prototype.Ch=function(a){a&&(a.b.zb().Wb.Tc?(this.ga&&(this.d.length=0,xa(this.R,a.type.d),this.ga=!1),a=this.R.indexOf(a),-1!==a&&(this.d.push(this.R[a]),this.R.splice(a,1))):(this.ga=!1,this.d.length=1,this.d[0]=a))};jb=s;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ma=function(a){var b,c=this.parent;if(this.group)for(this.Tj=!0;c;){if(!c.group){this.Tj=!1;break}c=c.parent}this.Gm=!this.jo()&&(!this.parent||this.parent.group&&this.parent.Tj);this.Un=!!a;this.Ae=
this.ra.slice(0);for(c=this.parent;c;){a=0;for(b=c.ra.length;a<b;a++)this.qr(c.ra[a]);c=c.parent}this.ra=e(this.ra);this.Ae=e(this.Ae);a=0;for(b=this.rb.length;a<b;a++)this.rb[a].Ma();a=0;for(b=this.Lc.length;a<b;a++)this.Lc[a].Ma();a=0;for(b=this.Jc.length;a<b;a++)this.Jc[a].Ma(a<b-1&&this.Jc[a+1].Si)};c.prototype.vp=function(a){if(this.Mg!==!!a){this.Mg=!!a;var b;a=0;for(b=this.hi.length;a<b;++a)this.hi[a].Xp();0<b&&this.b.ba.Oe&&this.b.ba.Oe.Km()}};c.prototype.jn=function(b){a(b,this.ra)};c.prototype.qr=
function(b){a(b,this.Ae)};c.prototype.Fj=function(){this.Fp=!0;this.parent&&this.parent.Fj()};c.prototype.jo=function(){return this.rb.length?this.rb[0].trigger:!1};c.prototype.Wa=function(){var a,b=!1,c,h=this.b,g=this.b.zb();g.Wb=this;var f=this.rb;this.Si||(g.Mk=!1);if(this.Tc){0===f.length&&(b=!0);g.Fb=0;for(a=f.length;g.Fb<a;g.Fb++)f[g.Fb].trigger||(c=f[g.Fb].Wa())&&(b=!0);(g.$e=b)&&this.pm()}else{g.Fb=0;for(a=f.length;g.Fb<a;g.Fb++)if(c=f[g.Fb].Wa(),!c){g.$e=!1;this.Gm&&h.ne&&h.lb();return}g.$e=
!0;this.pm()}this.gs(g)};c.prototype.gs=function(a){a.$e&&this.Un&&(a.Mk=!0);this.Gm&&this.b.ne&&this.b.lb()};c.prototype.wu=function(a){this.b.zb().Wb=this;this.rb[a].Wa()&&(this.pm(),this.b.zb().$e=!0)};c.prototype.pm=function(){var a=this.b.zb(),b;a.Tb=0;for(b=this.Lc.length;a.Tb<b;a.Tb++)if(this.Lc[a.Tb].Wa())return;this.rp()};c.prototype.uu=function(){var a=this.b.zb(),b;for(b=this.Lc.length;a.Tb<b;a.Tb++)if(this.Lc[a.Tb].Wa())return;this.rp()};c.prototype.rp=function(){if(this.Jc.length){var a,
b,c,h,g=this.Jc.length-1;this.b.hm(this);if(this.Fp)for(a=0,b=this.Jc.length;a<b;a++)c=this.Jc[a],(h=!this.Tj||!this.group&&a<g)&&this.b.gm(c.ra),c.Wa(),h?this.b.ag(c.ra):this.b.Bk(c.ra);else for(a=0,b=this.Jc.length;a<b;a++)this.Jc[a].Wa();this.b.kp()}};c.prototype.xu=function(){var a=this.b.zb();a.Wb=this;var b=!1,c;a.Fb=0;for(c=this.rb.length;a.Fb<c;a.Fb++)if(this.rb[a.Fb].Wa())b=!0;else if(!this.Tc)return!1;return this.Tc?b:!0};c.prototype.Et=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.rb[b].type===a.type)return!1;return!0};Ub=c;b.prototype.Ma=function(){var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.Ma(),c.Kc&&(this.ug=!0)};b.prototype.zu=function(){return!0};b.prototype.rm=function(){var a,b;a=0;for(b=this.N.length;a<b;a++)this.Fa[a]=this.N[a].get();return Ra(this.hb.apply(this.b.od,this.Fa),this.Df)};b.prototype.yu=function(){var a,b;a=0;for(b=this.N.length;a<b;a++)this.Fa[a]=this.N[a].get();a=this.hb.apply(this.Ie?this.Ie:this.type,this.Fa);this.type.wd();
return a};b.prototype.qm=function(){var a,b,c,h,g,f,e,l,n=this.type,q=n.X(),m=this.ic.Tc&&!this.trigger;b=0;var k=n.nc,t=n.B,s=n.Gd,A=this.Nc,r=-1<A,B=this.ug,E=this.N,F=this.Fa,O=this.Df,D=this.hb,J;if(B)for(b=0,g=E.length;b<g;++b)f=E[b],f.Kc||(F[b]=f.get(0));else for(b=0,g=E.length;b<g;++b)F[b]=E[b].get(0);if(q.ga){q.d.length=0;q.R.length=0;J=n.d;a=0;for(h=J.length;a<h;++a){l=J[a];if(B)for(b=0,g=E.length;b<g;++b)f=E[b],f.Kc&&(F[b]=f.get(a));r?(b=0,t&&(b=l.type.yf[s]),b=D.apply(l.G[A+b],F)):b=D.apply(l,
F);(e=Ra(b,O))?q.d.push(l):m&&q.R.push(l)}n.finish&&n.finish(!0);q.ga=!1;n.wd();return q.kl()}c=0;J=(e=m&&!this.ic.Et(this))?q.R:q.d;var I=!1;a=0;for(h=J.length;a<h;++a){l=J[a];if(B)for(b=0,g=E.length;b<g;++b)f=E[b],f.Kc&&(F[b]=f.get(a));r?(b=0,t&&(b=l.type.yf[s]),b=D.apply(l.G[A+b],F)):b=D.apply(l,F);if(Ra(b,O))if(I=!0,e){if(q.d.push(l),k)for(b=0,g=l.siblings.length;b<g;b++)f=l.siblings[b],f.type.X().d.push(f)}else{J[c]=l;if(k)for(b=0,g=l.siblings.length;b<g;b++)f=l.siblings[b],f.type.X().d[c]=f;
c++}else if(e){J[c]=l;if(k)for(b=0,g=l.siblings.length;b<g;b++)f=l.siblings[b],f.type.X().R[c]=f;c++}else if(m&&(q.R.push(l),k))for(b=0,g=l.siblings.length;b<g;b++)f=l.siblings[b],f.type.X().R.push(f)}J.length=c;if(k)for(t=n.Vb,a=0,h=t.length;a<h;a++)l=t[a].X(),e?l.R.length=c:l.d.length=c;c=I;if(e&&!I)for(a=0,h=q.d.length;a<h;a++){l=q.d[a];if(B)for(b=0,g=E.length;b<g;b++)f=E[b],f.Kc&&(F[b]=f.get(a));b=r?D.apply(l.G[A],F):D.apply(l,F);if(Ra(b,O)){I=!0;break}}n.finish&&n.finish(c||m);return m?I:q.kl()};
Pb=b;g.prototype.Ma=function(){var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.Ma(),c.Kc&&(this.ug=!0)};g.prototype.rm=function(){var a=this.b,b,c,h=this.N,g=this.Fa;b=0;for(c=h.length;b<c;++b)g[b]=h[b].get();return this.hb.apply(a.od,g)};g.prototype.qm=function(){var a=this.type,b=this.Nc,c=a.Gd,h=this.ug,g=this.N,f=this.Fa,e=this.hb,l=a.X().Ac(),a=a.B,n=-1<b,q,m,k,t,s,A;if(h)for(m=0,t=g.length;m<t;++m)s=g[m],s.Kc||(f[m]=s.get(0));else for(m=0,t=g.length;m<t;++m)f[m]=g[m].get(0);q=0;for(k=
l.length;q<k;++q){A=l[q];if(h)for(m=0,t=g.length;m<t;++m)s=g[m],s.Kc&&(f[m]=s.get(q));n?(m=0,a&&(m=A.type.yf[c]),e.apply(A.G[b+m],f)):e.apply(A,f)}return!1};Qb=g;var q=[],B=-1;f.prototype.Ma=function(){var a,b;if(11===this.type)this.Pe=this.b.Nn(this.Uh,this.ic.parent);else if(13===this.type)for(a=0,b=this.lf.length;a<b;a++)this.lf[a].Ma();this.dd&&this.dd.Ma()};f.prototype.Pt=function(a){this.Kc||!a||a.qa.Gj||(this.Kc=!0)};f.prototype.xp=function(){this.Kc=!0};f.prototype.gt=function(a){this.Ud=
a||0;a=n();this.dd.get(a);B--;return a.data};f.prototype.ht=function(a){this.Ud=a||0;a=n();this.dd.get(a);B--;return P(a.data)?a.data:""};f.prototype.nt=function(){return this.object};f.prototype.dt=function(){return this.wn};f.prototype.lt=function(a){this.Ud=a||0;a=n();this.dd.get(a);B--;return a.Sa()?this.b.Id(a.data):this.b.Ig(a.data)};f.prototype.mt=function(){return this.bb};f.prototype.kt=function(){return this.key};f.prototype.jt=function(){return this.index};f.prototype.it=function(a){a=
a||0;var b=this.pa.type,c=null,c=b.X(),g=c.Ac();if(g.length)c=g[a%g.length].type;else if(c.R.length)c=c.R[a%c.R.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.vi[b.Gd]};f.prototype.et=function(){return this.Pe};f.prototype.ct=function(){return this.Hn};f.prototype.ot=function(){var a,b;a=0;for(b=this.lf.length;a<b;a++)this.Th[a]=this.lf[a].get();return this.Th};Rb=f;l.prototype.Ma=function(){this.ra=e(this.ra)};l.prototype.kf=function(a){var b=this.b.Mn();
this.parent&&!this.Xg&&b?(this.ef>=b.length&&(b.length=this.ef+1),b[this.ef]=a):this.data=a};l.prototype.Kg=function(){var a=this.b.Mn();return!this.parent||this.Xg||!a||this.Ri?this.data:this.ef>=a.length||"undefined"===typeof a[this.ef]?this.Ni:a[this.ef]};l.prototype.Wa=function(){!this.parent||this.Xg||this.Ri||this.kf(this.Ni)};Lb=l;t.prototype.toString=function(){return"include:"+this.Pg.toString()};t.prototype.Ma=function(){this.Pg=this.b.Ok[this.xt];this.sheet.Wn.add(this);this.ra=e(this.ra);
for(var a=this.parent;a;)a.group&&a.hi.push(this),a=a.parent;this.Xp()};t.prototype.Wa=function(){this.parent&&this.b.Fh(this.b.n);this.Pg.ll||this.Pg.Wa(!0);this.parent&&this.b.ag(this.b.n)};t.prototype.Xp=function(){for(var a=this.parent;a;){if(a.group&&!a.Mg){this.$a=!1;return}a=a.parent}this.$a=!0};Vb=t;h.prototype.reset=function(a){this.Wb=a;this.Tb=this.Fb=0;this.Ip.length=0;this.Mk=this.$e=!1};Kb=h})();
(function(){function k(a,b){this.pa=a;this.b=a.b;this.type=b[0];this.get=[this.vs,this.rs,this.Es,this.Hs,this.js,this.Fs,this.zs,this.ns,this.ys,this.Ds,this.ks,this.Cs,this.os,this.As,this.ws,this.xs,this.ss,this.ts,this.ms,this.Gs,this.Bs,this.us,this.ls,this.qs][this.type];var c=null;this.Od=this.N=this.Fa=this.hb=this.Rj=this.fb=this.first=this.value=null;this.Nc=-1;this.oe=null;this.bq=-1;this.Pe=this.Uh=null;this.dg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.fb=new Tb(a,b[2]);this.Rj=new Tb(a,b[3]);break;case 19:this.hb=this.b.$d(b[1]);this.hb!==X.prototype.ab.random&&this.hb!==X.prototype.ab.Gr||this.pa.xp();this.Fa=[];this.N=[];3===b.length?(c=b[2],this.Fa.length=c.length+1):this.Fa.length=1;break;case 20:this.Od=this.b.n[b[1]];this.Nc=-1;this.hb=this.b.$d(b[2]);this.dg=b[3];Xb.Function&&this.hb===Xb.Function.prototype.ab.bv&&this.pa.xp();this.oe=b[4]?new Tb(a,b[4]):null;this.Fa=[];this.N=
[];6===b.length?(c=b[5],this.Fa.length=c.length+1):this.Fa.length=1;break;case 21:this.Od=this.b.n[b[1]];this.dg=b[2];this.oe=b[3]?new Tb(a,b[3]):null;this.bq=b[4];break;case 22:this.Od=this.b.n[b[1]];this.Od.Di(b[2]);this.Nc=this.Od.Zk(b[2]);this.hb=this.b.$d(b[3]);this.dg=b[4];this.oe=b[5]?new Tb(a,b[5]):null;this.Fa=[];this.N=[];7===b.length?(c=b[6],this.Fa.length=c.length+1):this.Fa.length=1;break;case 23:this.Uh=b[1],this.Pe=null}this.pa.Pt(this.Od);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.fb=new Tb(a,b[2]));if(c){var e,f;e=0;for(f=c.length;e<f;e++)this.N.push(new Tb(a,c[e]))}}function m(){++c;s.length===c&&s.push(new Sb);return s[c]}function e(a,b,c){var e,f;e=0;for(f=a.length;e<f;++e)a[e].get(c),b[e+1]=c.data}function r(a,b){this.type=a||W.pf;this.data=b||0;this.gf=null;this.type==W.pf&&(this.data=Math.floor(this.data))}k.prototype.Ma=function(){23===this.type&&(this.Pe=this.pa.b.Nn(this.Uh,this.pa.ic.parent));this.first&&this.first.Ma();this.fb&&this.fb.Ma();this.Rj&&
this.Rj.Ma();this.oe&&this.oe.Ma();if(this.N){var a,b;a=0;for(b=this.N.length;a<b;a++)this.N[a].Ma()}};var s=[],c=-1;k.prototype.Gs=function(a){var b=this.N,g=this.Fa;g[0]=a;a=m();e(b,g,a);--c;this.hb.apply(this.b.od,g)};k.prototype.Bs=function(a){var b=this.Od,g=this.Fa,n=this.N,f=this.oe,l=this.hb,k=this.pa.Ud,h=b.X(),s=h.Ac();if(!s.length)if(h.R.length)s=h.R;else{this.dg?a.Rb(""):a.ja(0);return}g[0]=a;a.gf=b;a=m();e(n,g,a);f&&(f.get(a),a.Sa()&&(k=a.data,s=b.d));--c;b=s.length;if(k>=b||k<=-b)k%=
b;0>k&&(k+=b);l.apply(s[k],g)};k.prototype.ls=function(a){var b=this.Od,g=this.Fa,n=this.N,f=this.oe,l=this.Nc,k=this.hb,h=this.pa.Ud,s=b.X(),q=s.Ac();if(!q.length)if(s.R.length)q=s.R;else{this.dg?a.Rb(""):a.ja(0);return}g[0]=a;a.gf=b;a=m();e(n,g,a);f&&(f.get(a),a.Sa()&&(h=a.data,q=b.d));--c;n=q.length;if(h>=n||h<=-n)h%=n;0>h&&(h+=n);h=q[h];q=0;b.B&&(q=h.type.yf[b.Gd]);k.apply(h.G[l+q],g)};k.prototype.us=function(a){var b=this.oe,g=this.Od,e=this.bq,f=this.pa.Ud,l=g.X(),k=l.Ac();if(!k.length)if(l.R.length)k=
l.R;else{this.dg?a.Rb(""):a.ja(0);return}if(b){l=m();b.get(l);if(l.Sa()){f=l.data;g=g.d;f%=g.length;0>f&&(f+=g.length);e=g[f].Ra[e];P(e)?a.Rb(e):a.u(e);--c;return}--c}b=k.length;if(f>=b||f<=-b)f%=b;0>f&&(f+=b);f=k[f];k=0;g.B&&(k=f.type.vi[g.Gd]);e=f.Ra[e+k];P(e)?a.Rb(e):a.u(e)};k.prototype.vs=function(a){a.type=W.pf;a.data=this.value};k.prototype.rs=function(a){a.type=W.of;a.data=this.value};k.prototype.Es=function(a){a.type=W.String;a.data=this.value};k.prototype.Hs=function(a){this.first.get(a);
a.Sa()&&(a.data=-a.data)};k.prototype.js=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data+=b.data,b.If()&&a.Rf());--c};k.prototype.Fs=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data-=b.data,b.If()&&a.Rf());--c};k.prototype.zs=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data*=b.data,b.If()&&a.Rf());--c};k.prototype.ns=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data/=b.data,a.Rf());
--c};k.prototype.ys=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data%=b.data,b.If()&&a.Rf());--c};k.prototype.Ds=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data=Math.pow(a.data,b.data),b.If()&&a.Rf());--c};k.prototype.ks=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()?b.Ti()?a.Rb(a.data.toString()+b.data):a.data&&b.data?a.ja(1):a.ja(0):a.Ti()&&(a.data=b.Ti()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
k.prototype.Cs=function(a){this.first.get(a);var b=m();this.fb.get(b);a.Sa()&&b.Sa()&&(a.data||b.data?a.ja(1):a.ja(0));--c};k.prototype.ms=function(a){this.first.get(a);a.data?this.fb.get(a):this.Rj.get(a)};k.prototype.os=function(a){this.first.get(a);var b=m();this.fb.get(b);a.ja(a.data===b.data?1:0);--c};k.prototype.As=function(a){this.first.get(a);var b=m();this.fb.get(b);a.ja(a.data!==b.data?1:0);--c};k.prototype.ws=function(a){this.first.get(a);var b=m();this.fb.get(b);a.ja(a.data<b.data?1:0);
--c};k.prototype.xs=function(a){this.first.get(a);var b=m();this.fb.get(b);a.ja(a.data<=b.data?1:0);--c};k.prototype.ss=function(a){this.first.get(a);var b=m();this.fb.get(b);a.ja(a.data>b.data?1:0);--c};k.prototype.ts=function(a){this.first.get(a);var b=m();this.fb.get(b);a.ja(a.data>=b.data?1:0);--c};k.prototype.qs=function(a){var b=this.Pe.Kg();ha(b)?a.u(b):a.Rb(b)};Tb=k;r.prototype.If=function(){return this.type===W.of};r.prototype.Sa=function(){return this.type===W.pf||this.type===W.of};r.prototype.Ti=
function(){return this.type===W.String};r.prototype.Rf=function(){this.If()||(this.Ti()&&(this.data=parseFloat(this.data)),this.type=W.of)};r.prototype.ja=function(a){this.type=W.pf;this.data=Math.floor(a)};r.prototype.u=function(a){this.type=W.of;this.data=a};r.prototype.Rb=function(a){this.type=W.String;this.data=a};r.prototype.Gu=function(a){ha(a)?(this.type=W.of,this.data=a):P(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.pf,this.data=0)};Sb=r;W={pf:0,of:1,String:2}})();
function X(k){this.b=k;this.Sb=[]}X.prototype.Pb=function(){var k={},m,e,r,s,c,a,b,g;k.waits=[];var n=k.waits,f;m=0;for(e=this.Sb.length;m<e;m++){a=this.Sb[m];f={t:a.time,st:a.Ep,s:a.ym,ev:a.wf.P,sm:[],sols:{}};a.wf.Lc[a.Tb]&&(f.act=a.wf.Lc[a.Tb].P);r=0;for(s=a.ra.length;r<s;r++)f.sm.push(a.ra[r].P);for(c in a.Db)if(a.Db.hasOwnProperty(c)){b=this.b.n[parseInt(c,10)];g={sa:a.Db[c].Dj,insts:[]};r=0;for(s=a.Db[c].Jd.length;r<s;r++)g.insts.push(a.Db[c].Jd[r].uid);f.sols[b.P.toString()]=g}n.push(f)}return k};
X.prototype.qc=function(k){k=k.waits;var m,e,r,s,c,a,b,g,n,f,l;m=this.Sb.length=0;for(e=k.length;m<e;m++)if(a=k[m],g=this.b.pn[a.ev.toString()]){n=-1;r=0;for(s=g.Lc.length;r<s;r++)if(g.Lc[r].P===a.act){n=r;break}if(-1!==n){b={Db:{},ra:[],Jk:!1};b.time=a.t;b.Ep=a.st||"";b.ym=!!a.s;b.wf=g;b.Tb=n;r=0;for(s=a.sm.length;r<s;r++)(g=this.b.Hi(a.sm[r]))&&b.ra.push(g);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(g=this.b.Hi(parseInt(c,10)))){n=a.sols[c];f={Dj:n.sa,Jd:[]};r=0;for(s=n.insts.length;r<s;r++)(l=
this.b.Gi(n.insts[r]))&&f.Jd.push(l);b.Db[g.index.toString()]=f}this.Sb.push(b)}}};
(function(){function k(){}function m(){}function e(){}var r=X.prototype;k.prototype.Ym=function(){return!0};k.prototype.Rq=function(){return!0};k.prototype.jq=function(a,b,c){return Wb(a,b,c)};k.prototype.fr=function(){var a=this.b.Ei().Ea;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.pd;a.TriggerOnce_lastTick=c;return this.b.Fl||b!==c-1};k.prototype.kq=function(a,b,c){return Wb(a.Kg(),b,c)};k.prototype.pq=function(){var a=this.b.zb();
return a.Mk?!1:!a.$e};k.prototype.Zm=function(){return!0};k.prototype.Gq=function(){return!0};k.prototype.ik=function(){return!0};k.prototype.Sq=function(){return!0};k.prototype.gk=function(){return!0};k.prototype.fq=function(a,b,c){return Ia(V(a),V(c))<=V(b)};k.prototype.tq=function(a,b){return Ka(V(a),V(b))};k.prototype.rq=function(a,b,c){a=Fa(a);b=Fa(b);c=Fa(c);return Ka(c,b)?Ka(a,b)&&!Ka(a,c):!(!Ka(a,b)&&Ka(a,c))};r.j=new k;m.prototype.Aq=function(a){if(!this.b.Ye&&!this.b.yd){var b=this.b.$b.indexOf(this.b.ba);
if(!a||0!==b)if(a||b!==this.b.$b.length-1)this.b.yd=this.b.$b[b+(a?-1:1)]}};m.prototype.nq=function(a,b,c,e){if(b&&a&&(b=this.b.xn(a,b,c,e))){this.b.Qc++;var f;this.b.trigger(Object.getPrototypeOf(a.qa).j.ek,b);if(b.nc)for(c=0,e=b.siblings.length;c<e;c++)f=b.siblings[c],this.b.trigger(Object.getPrototypeOf(f.type.qa).j.ek,f);this.b.Qc--;a=a.X();a.ga=!1;a.d.length=1;a.d[0]=b;if(b.nc)for(c=0,e=b.siblings.length;c<e;c++)f=b.siblings[c],a=f.type.X(),a.ga=!1,a.d.length=1,a.d[0]=f}};m.prototype.cr=function(a,
b){0===a.ak?ha(b)?a.kf(b):a.kf(parseFloat(b)):1===a.ak&&a.kf(b.toString())};m.prototype.dq=function(a,b){0===a.ak?ha(b)?a.kf(a.Kg()+b):a.kf(a.Kg()+parseFloat(b)):1===a.ak&&a.kf(a.Kg()+b.toString())};var s=[],c=[];m.prototype.hr=function(a){if(!(0>a)){var b,g,e,f=this.b.zb(),l;l=s.length?s.pop():{Db:{},ra:[]};l.Jk=!1;l.time=this.b.oc.ca+a;l.Ep="";l.ym=!1;l.wf=f.Wb;l.Tb=f.Tb+1;a=0;for(b=this.b.n.length;a<b;a++)e=this.b.n[a],g=e.X(),g.ga&&-1===f.Wb.ra.indexOf(e)||(l.ra.push(e),e=void 0,e=c.length?c.pop():
{Jd:[]},e.Dj=!1,e.Dj=g.ga,xa(e.Jd,g.d),l.Db[a.toString()]=e);this.Sb.push(l);return!0}};m.prototype.Xq=function(){var a,b,c;a=0;for(b=this.b.ok.length;a<b;a++)c=this.b.ok[a],c.data=c.Ni};m.prototype.qq=function(a){if(!this.b.Ye&&!this.b.yd)for(var b in this.b.Nf)if(this.b.Nf.hasOwnProperty(b)&&fb(b,a)){this.b.yd=this.b.Nf[b];break}};m.prototype.Yq=function(){if(!this.b.Ye&&!this.b.yd&&this.b.ba){this.b.yd=this.b.ba;var a,b,c;a=0;for(b=this.b.de.length;a<b;a++)c=this.b.de[a],c.vp(c.Oi)}};r.la=new m;
e.prototype["int"]=function(a,b){P(b)?(a.ja(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ja(b)};e.prototype["float"]=function(a,b){P(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};e.prototype.random=function(a,b,c){void 0===c?a.u(Math.random()*b):a.u(Math.random()*(c-b)+b)};e.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};e.prototype.abs=function(a,b){a.u(Math.abs(b))};e.prototype.round=function(a,b){a.ja(Math.round(b))};e.prototype.floor=function(a,b){a.ja(Math.floor(b))};e.prototype.ceil=
function(a,b){a.ja(Math.ceil(b))};e.prototype.sin=function(a,b){a.u(Math.sin(V(b)))};e.prototype.cos=function(a,b){a.u(Math.cos(V(b)))};e.prototype.tan=function(a,b){a.u(Math.tan(V(b)))};e.prototype.asin=function(a,b){a.u(Ba(Math.asin(b)))};e.prototype.acos=function(a,b){a.u(Ba(Math.acos(b)))};e.prototype.atan=function(a,b){a.u(Ba(Math.atan(b)))};e.prototype.exp=function(a,b){a.u(Math.exp(b))};e.prototype.log10=function(a,b){a.u(Math.log(b)/Math.LN10)};e.prototype.max=function(a){var b=arguments[1];
"number"!==typeof b&&(b=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.u(b)};e.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.u(b)};e.prototype.Ne=function(a){a.u(this.b.Ne)};e.prototype.mg=function(a){a.u(this.b.mg)};e.prototype.time=function(a){a.u(this.b.oc.ca)};e.prototype.pd=function(a){a.ja(this.b.pd)};e.prototype.lj=function(a){a.ja(this.b.lj)};
e.prototype.Vk=function(a){a.ja(this.b.Vk)};e.prototype.i=function(a,b,c,e,f){a.u(Ba(Ha(b,c,e,f)))};e.prototype.find=function(a,b,c){P(b)&&P(c)?a.ja(b.search(new RegExp(Za(c),"i"))):a.ja(-1)};e.prototype.left=function(a,b,c){a.Rb(P(b)?b.substr(0,c):"")};e.prototype.right=function(a,b,c){a.Rb(P(b)?b.substr(b.length-c):"")};e.prototype.replace=function(a,b,c,e){P(b)&&P(c)&&P(e)?a.Rb(b.replace(new RegExp(Za(c),"gi"),e)):a.Rb(P(b)?b:"")};e.prototype.trim=function(a,b){a.Rb(P(b)?b.trim():"")};e.prototype.Gr=
function(a){var b=S(Math.random()*(arguments.length-1));a.Gu(arguments[b+1])};e.prototype.Dk=function(a){a.u(this.b.Dk/1E3)};e.prototype.gj=function(a){a.u(this.b.gj)};r.ab=new e;r.vu=function(){var a,b,g,e,f,l,k=this.b.zb();a=0;for(g=this.Sb.length;a<g;a++){e=this.Sb[a];if(-1===e.time){if(!e.ym)continue}else if(e.time>this.b.oc.ca)continue;k.Wb=e.wf;k.Tb=e.Tb;k.Fb=0;for(b in e.Db)e.Db.hasOwnProperty(b)&&(f=this.b.n[parseInt(b,10)].X(),l=e.Db[b],f.ga=l.Dj,xa(f.d,l.Jd),f=l,f.Jd.length=0,c.push(f));
e.wf.uu();this.b.Bk(e.ra);e.Jk=!0}b=a=0;for(g=this.Sb.length;a<g;a++)e=this.Sb[a],this.Sb[b]=e,e.Jk?(Ta(e.Db),e.ra.length=0,s.push(e)):b++;this.Sb.length=b}})();
(function(){ib=function(k,e){var r=k[1],s=k[3],c=k[4],a=k[5],b=k[6],g=k[7],n=k[8];e.j||(e.j={});e.la||(e.la={});e.ab||(e.ab={});var f=e.j,l=e.la,t=e.ab;s&&(f.hv=function(a,b){return Wb(this.x,a,b)},f.iv=function(a,b){return Wb(this.y,a,b)},f.nv=function(){var a=this.e;this.ma();var b=this.Ba;return!(b.right<a.ta||b.bottom<a.ua||b.left>a.Ja||b.top>a.Ia)},f.ov=function(){this.ma();var a=this.Ba,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.zv=function(a,b,c){var g=this.X(),
f=g.Ac();if(!f.length)return!1;var d=f[0],e=d,l=Qa(d.x,d.y,b,c),n,k,m;n=1;for(k=f.length;n<k;n++)if(d=f[n],m=Qa(d.x,d.y,b,c),0===a&&m<l||1===a&&m>l)l=m,e=d;g.Ch(e);return!0},l.Rv=function(a){this.x!==a&&(this.x=a,this.za())},l.Sv=function(a){this.y!==a&&(this.y=a,this.za())},l.Nv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.za()},l.Ov=function(a,b){var c=a.Xs(this);if(c){var g;c.cl?(g=c.cl(b,!0),c=c.cl(b,!1)):(g=c.x,c=c.y);if(this.x!==g||this.y!==c)this.x=g,this.y=c,this.za()}},
l.sv=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.za())},l.rv=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.za())},t.lk=function(a){a.u(this.x)},t.mk=function(a){a.u(this.y)},t.Ne=function(a){a.u(this.b.$k(this))});c&&(f.lq=function(a,b){return Wb(this.width,a,b)},f.cv=function(a,b){return Wb(this.height,a,b)},l.cn=function(a){this.width!==a&&(this.width=a,this.za())},l.Lv=function(a){this.height!==a&&(this.height=a,this.za())},l.Pv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.za()},t.ir=function(a){a.u(this.width)},t.jv=function(a){a.u(this.height)},t.Zu=function(a){this.ma();a.u(this.Ba.left)},t.av=function(a){this.ma();a.u(this.Ba.top)},t.$u=function(a){this.ma();a.u(this.Ba.right)},t.Yu=function(a){this.ma();a.u(this.Ba.bottom)});a&&(f.fq=function(a,b){return Ia(this.i,V(b))<=V(a)},f.tq=function(a){return Ka(this.i,V(a))},f.rq=function(a,b){var c=Fa(a),g=Fa(b),f=Da(this.i);return Ka(g,
c)?Ka(f,c)&&!Ka(f,g):!(!Ka(f,c)&&Ka(f,g))},l.Hv=function(a){a=V(Ca(a));isNaN(a)||this.i===a||(this.i=a,this.za())},l.Dv=function(a){0===a||isNaN(a)||(this.i+=V(a),this.i=Da(this.i),this.za())},l.Ev=function(a){0===a||isNaN(a)||(this.i-=V(a),this.i=Da(this.i),this.za())},l.Fv=function(a,b){var c=Ja(this.i,V(b),V(a));isNaN(c)||this.i===c||(this.i=c,this.za())},l.Gv=function(a,b,c){a=Ja(this.i,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.i===a||(this.i=a,this.za())},l.Qv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.za())},t.Xu=function(a){a.u(Ea(this.i))});r||(f.dv=function(a,b,c){return Wb(this.Ra[a],b,c)},f.lv=function(a){return this.Ra[a]},f.Av=function(a,b){var c=this.X(),g=c.Ac();if(!g.length)return!1;var f=g[0],d=f,e=f.Ra[b],l,n,k;l=1;for(n=g.length;l<n;l++)if(f=g[l],k=f.Ra[b],0===a&&k<e||1===a&&k>e)e=k,d=f;c.Ch(d);return!0},f.yv=function(a){var b,c,g,f,d;if(this.b.Ei().Df){d=this.X();if(d.ga)for(d.ga=!1,d.d.length=0,d.R.length=0,g=this.d,b=0,c=g.length;b<
c;b++)f=g[b],f.uid===a?d.R.push(f):d.d.push(f);else{g=b=0;for(c=d.d.length;b<c;b++)f=d.d[b],d.d[g]=f,f.uid===a?d.R.push(f):g++;d.d.length=g}this.wd();return!!d.d.length}f=this.b.Gi(a);if(!f)return!1;d=this.X();if(!d.ga&&-1===d.d.indexOf(f))return!1;if(this.B)for(a=f.type.xa,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.Ch(f),this.wd(),!0}else if(f.type===this)return d.Ch(f),this.wd(),!0;return!1},f.ek=function(){return!0},f.Hq=function(){return!0},l.Mv=function(a,b){var c=this.Ra;ha(c[a])?c[a]=
ha(b)?b:parseFloat(b):P(c[a])&&(c[a]=P(b)?b:b.toString())},l.Wu=function(a,b){var c=this.Ra;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):P(c[a])&&(c[a]=P(b)?c[a]+b:c[a]+b.toString())},l.Tv=function(a,b){var c=this.Ra;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},l.Iv=function(a,b){this.Ra[a]=b?1:0},l.Uv=function(a){this.Ra[a]=1-this.Ra[a]},l.oq=function(){this.b.Zd(this)},l.zq||(l.zq=function(a){var b,c;try{b=JSON.parse(a)}catch(g){return}this.b.dj(this,b,!0);this.ud&&this.ud();if(this.G)for(a=
0,b=this.G.length;a<b;++a)c=this.G[a],c.ud&&c.ud()}),t.mq=function(a){var b=a.gf.d.length,c,g,f;c=0;for(g=this.b.Oc.length;c<g;c++)f=this.b.Oc[c],a.gf.B?0<=f.type.xa.indexOf(a.gf)&&b++:f.type===a.gf&&b++;a.ja(b)},t.Cv=function(a){a.ja(a.gf.X().Ac().length)},t.Vv=function(a){a.ja(this.uid)},t.kv=function(a){a.ja(this.Lg())},t.gq||(t.gq=function(a){a.Rb(JSON.stringify(this.b.tm(this,!0)))}));b&&(f.xq=function(){return this.visible},l.dr=function(a){!a!==!this.visible&&(this.visible=a,this.b.fa=!0)},
f.gv=function(a,b){return Wb(eb(100*this.opacity),a,b)},l.$q=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.fa=!0)},t.Opacity=function(a){a.u(eb(100*this.opacity))});g&&(f.mv=function(a){return a?this.e===a:!1},f.Bv=function(a){var b=this.X(),c=b.Ac();if(!c.length)return!1;var g=c[0],f=g,d,e;d=1;for(e=c.length;d<e;d++)if(g=c[d],0===a){if(g.e.index>f.e.index||g.e.index===f.e.index&&g.Bc()>f.Bc())f=g}else if(g.e.index<f.e.index||g.e.index===f.e.index&&g.Bc()<f.Bc())f=
g;b.Ch(f);return!0},l.vv=function(){var a=this.e,b=a.d;b.length&&b[b.length-1]===this||(a.bg(this,!1),a.wg(this,!1),this.b.fa=!0)},l.tv=function(){var a=this.e,b=a.d;b.length&&b[0]===this||(a.bg(this,!1),a.mu(this),this.b.fa=!0)},l.uv=function(a){a&&a!=this.e&&(this.e.bg(this,!0),this.e=a,a.wg(this,!0),this.b.fa=!0)},l.Xv=function(a,b){var c=0===a;if(b){var g=b.Ss(this);g&&g.uid!==this.uid&&(this.e.index!==g.e.index&&(this.e.bg(this,!0),this.e=g.e,g.e.wg(this,!0)),this.e.Rt(this,g,c),this.b.fa=!0)}},
t.qv=function(a){a.ja(this.e.So)},t.pv=function(a){a.Rb(this.e.name)},t.Wv=function(a){a.ja(this.Bc())});n&&(l.Jv=function(a,b){if(this.b.q){var c=this.type.bl(b);if(!(0>c)){var g=1===a;this.ae[c]!==g&&(this.ae[c]=g,this.Xd(),this.b.fa=!0)}}},l.Kv=function(a,b,c){if(this.b.q){var g=this.type.bl(a);0>g||(a=this.type.H[g],g=this.Da[g],b=Math.floor(b),0>b||b>=g.length||(1===this.b.q.bt(a.kb,b)&&(c/=100),g[b]!==c&&(g[b]=c,a.$a&&(this.b.fa=!0))))}})};Cb=function(){this.wk=this.bi=!0;this.type.Wh=!0;this.b.fa=
!0;var k,e,r=this.uk;k=0;for(e=r.length;k<e;++k)r[k](this);this.e.Zc&&this.ma()};Db=function(k){k&&this.uk.push(k)};Fb=function(){if(this.bi){var k=this.Ba,e=this.ob;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.Ib*this.width,-this.Jb*this.height);this.i?(k.offset(-this.x,-this.y),e.zp(k,this.i),e.offset(this.x,this.y),e.qn(k)):e.hg(k);k.normalize();this.bi=!1;this.Ru()}};var k=new U(0,0,0,0);Gb=function(){if(this.e.Zc){var m=this.e.ec,e=this.Ba;k.set(m.gc(e.left),m.hc(e.top),
m.gc(e.right),m.hc(e.bottom));this.Nb.ri(k)||(this.Nb.right<this.Nb.left?m.update(this,null,k):m.update(this,this.Nb,k),this.Nb.Bg(k),this.e.Rd=!0)}};Hb=function(){if(this.wk&&this.Je){this.ma();var m=this.type.gi,e=this.Ba;k.set(m.gc(e.left),m.hc(e.top),m.gc(e.right),m.hc(e.bottom));this.he.ri(k)||(this.he.right<this.he.left?m.update(this,null,k):m.update(this,this.he,k),this.he.Bg(k),this.wk=!1)}};Eb=function(k,e){return this.Ba.gb(k,e)&&this.ob.gb(k,e)?this.W&&!this.W.Hf()?(this.W.tf(this.width,
this.height,this.i),this.W.gb(k-this.x,e-this.y)):!0:!1};yb=function(){this.type.Yj();return this.Ue};Ib=function(){this.e.Nm();return this.ad};Jb=function(){this.V.length=0;var k,e;k=0;for(e=this.ae.length;k<e;k++)this.ae[k]&&this.V.push(this.type.H[k]);this.aq=!!this.V.length};zb=function(){return"Inst"+this.op};lb=function(k){if(k&&k.nc&&k.type!=this){var e,r,s;e=0;for(r=k.siblings.length;e<r;e++)if(s=k.siblings[e],s.type==this)return s}k=this.X().Ac();return k.length?k[0]:null};mb=function(k){var e=
this.X().Ac();return e.length?e[k.Lg()%e.length]:null};kb=function(){if(this.kg&&!this.B){var k,e;k=0;for(e=this.d.length;k<e;k++)this.d[k].Ue=k;var r=k,s=this.b.Oc;k=0;for(e=s.length;k<e;++k)s[k].type===this&&(s[k].Ue=r++);this.kg=!1}};wb=function(k){if(k<this.d.length)return this.d[k];k-=this.d.length;var e=this.b.Oc,r,s;r=0;for(s=e.length;r<s;++r)if(e[r].type===this){if(0===k)return e[r];--k}return null};nb=function(){return this.Be[this.Dd]};ob=function(){this.Dd++;this.Dd===this.Be.length?this.Be.push(new jb(this)):
this.Be[this.Dd].ga=!0};pb=function(){this.Dd++;this.Dd===this.Be.length&&this.Be.push(new jb(this));var k=this.Be[this.Dd],e=this.Be[this.Dd-1];e.ga?k.ga=!0:(k.ga=!1,xa(k.d,e.d),xa(k.R,e.R))};qb=function(){this.Dd--};sb=function(k){var e,r,s,c,a,b=0;if(!this.B)for(e=0,r=this.xa.length;e<r;e++)for(a=this.xa[e],s=0,c=a.Na.length;s<c;s++){if(k===a.Na[s].name)return this.Ea.lastBehIndex=b,a.Na[s];b++}e=0;for(r=this.Na.length;e<r;e++){if(k===this.Na[e].name)return this.Ea.lastBehIndex=b,this.Na[e];b++}return null};
tb=function(k){return this.Di(k)?this.Ea.lastBehIndex:-1};ub=function(k){var e,r;e=0;for(r=this.H.length;e<r;e++)if(this.H[e].name===k)return e;return-1};vb=function(){if(this.nc&&!this.B){var k,e,r,s,c,a,b;this.Yj();a=this.X();var g=a.ga,n=(k=this.b.zb())&&k.Wb&&k.Wb.Tc;k=0;for(e=this.Vb.length;k<e;k++)if(c=this.Vb[k],c!==this&&(c.Yj(),b=c.X(),b.ga=g,!g)){b.d.length=a.d.length;r=0;for(s=a.d.length;r<s;r++)b.d[r]=c.On(a.d[r].Ue);if(n)for(b.R.length=a.R.length,r=0,s=a.R.length;r<s;r++)b.R[r]=c.On(a.R[r].Ue)}}};
xb=function(){return"Type"+this.P};Wb=function(k,e,r){if("undefined"===typeof k||"undefined"===typeof r)return!1;switch(e){case 0:return k===r;case 1:return k!==r;case 2:return k<r;case 3:return k<=r;case 4:return k>r;case 5:return k>=r;default:return!1}}})();var ec={};function hc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].kc():y.destination}function e(){return y.createGain?y.createGain():y.createGainNode()}function r(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function s(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,d,g,f){this.type="filter";this.Uc=[a,b,c,d,g,f];this.S=e();this.F=e();this.F.gain.value=f;this.C=e();this.C.gain.value=1-f;this.Oa=y.createBiquadFilter();this.Oa.type="number"===typeof this.Oa.type?a:pc[a];this.Oa.frequency.value=b;this.Oa.detune&&(this.Oa.detune.value=c);this.Oa.Q.value=d;this.Oa.gain.value=g;this.S.connect(this.Oa);this.S.connect(this.C);this.Oa.connect(this.F)}function g(a,b,c){this.type="delay";this.Uc=[a,b,c];this.S=e();this.F=e();this.F.gain.value=c;this.C=e();this.C.gain.value=
1-c;this.oh=e();this.yc=r(a);this.yc.delayTime.value=a;this.pi=e();this.pi.gain.value=b;this.S.connect(this.oh);this.S.connect(this.C);this.oh.connect(this.F);this.oh.connect(this.yc);this.yc.connect(this.pi);this.pi.connect(this.oh)}function n(a,b,c,d){this.type="convolve";this.Uc=[b,c,d];this.S=e();this.F=e();this.F.gain.value=c;this.C=e();this.C.gain.value=1-c;this.Ke=y.createConvolver();a&&(this.Ke.normalize=b,this.Ke.buffer=a);this.S.connect(this.Ke);this.S.connect(this.C);this.Ke.connect(this.F)}
function f(a,b,c,d,g){this.type="flanger";this.Uc=[a,b,c,d,g];this.S=e();this.C=e();this.C.gain.value=1-g/2;this.F=e();this.F.gain.value=g/2;this.wi=e();this.wi.gain.value=d;this.yc=r(a+b);this.yc.delayTime.value=a;this.eb=y.createOscillator();this.eb.frequency.value=c;this.cc=e();this.cc.gain.value=b;this.S.connect(this.yc);this.S.connect(this.C);this.yc.connect(this.F);this.yc.connect(this.wi);this.wi.connect(this.yc);this.eb.connect(this.cc);this.cc.connect(this.yc.delayTime);s(this.eb)}function l(a,
b,c,d,g,f){this.type="phaser";this.Uc=[a,b,c,d,g,f];this.S=e();this.C=e();this.C.gain.value=1-f/2;this.F=e();this.F.gain.value=f/2;this.Oa=y.createBiquadFilter();this.Oa.type="number"===typeof this.Oa.type?7:"allpass";this.Oa.frequency.value=a;this.Oa.detune&&(this.Oa.detune.value=b);this.Oa.Q.value=c;this.eb=y.createOscillator();this.eb.frequency.value=g;this.cc=e();this.cc.gain.value=d;this.S.connect(this.Oa);this.S.connect(this.C);this.Oa.connect(this.F);this.eb.connect(this.cc);this.cc.connect(this.Oa.frequency);
s(this.eb)}function t(a){this.type="gain";this.Uc=[a];this.U=e();this.U.gain.value=a}function h(a,b){this.type="tremolo";this.Uc=[a,b];this.U=e();this.U.gain.value=1-b/2;this.eb=y.createOscillator();this.eb.frequency.value=a;this.cc=e();this.cc.gain.value=b/2;this.eb.connect(this.cc);this.cc.connect(this.U.gain);s(this.eb)}function A(a,b){this.type="ringmod";this.Uc=[a,b];this.S=e();this.F=e();this.F.gain.value=b;this.C=e();this.C.gain.value=1-b;this.Hh=e();this.Hh.gain.value=0;this.eb=y.createOscillator();
this.eb.frequency.value=a;this.eb.connect(this.Hh.gain);s(this.eb);this.S.connect(this.Hh);this.S.connect(this.C);this.Hh.connect(this.F)}function q(a,b,c,d,g){this.type="distortion";this.Uc=[a,b,c,d,g];this.S=e();this.xj=e();this.wj=e();this.Cu(c,Math.pow(10,d/20));this.F=e();this.F.gain.value=g;this.C=e();this.C.gain.value=1-g;this.bk=y.createWaveShaper();this.ni=new Float32Array(65536);this.Os(a,b);this.bk.ni=this.ni;this.S.connect(this.xj);this.S.connect(this.C);this.xj.connect(this.bk);this.bk.connect(this.wj);
this.wj.connect(this.F)}function B(a,b,c,d,g){this.type="compressor";this.Uc=[a,b,c,d,g];this.U=y.createDynamicsCompressor();try{this.U.threshold.value=a,this.U.knee.value=b,this.U.ratio.value=c,this.U.attack.value=d,this.U.release.value=g}catch(f){}}function p(a,b){this.type="analyser";this.Uc=[a,b];this.U=y.createAnalyser();this.U.fftSize=a;this.U.smoothingTimeConstant=b;this.Ms=new Float32Array(this.U.frequencyBinCount);this.Cp=new Uint8Array(a);this.Bh=0}function d(){this.D=null;this.fj=0;this.Ce=
[];this.Ql=this.Wi=this.Vi=0}function v(a,b){this.src=a;this.J=G;this.Sc=b;this.kn=!1;var c=this;this.Ol=this.$l=null;this.Zf=[];this.Ej=0;this.Tm=this.Rk=this.Hp=this.tj=!1;1===G&&b&&(this.J=0,this.$l=e());this.He=this.Y=null;var d;switch(this.J){case 0:this.Y=new Audio;this.Y.addEventListener("canplaythrough",function(){c.Tm=!0});1===G&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Hp=!0,this.Y.addEventListener("canplay",function(){c.Ol||(c.Ol=y.createMediaElementSource(c.Y),
c.Ol.connect(c.$l))}));this.Y.autoplay=!1;this.Y.fw="auto";this.Y.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.He=d.response;c.Lr()};d.onerror=function(){c.Rk=!0};d.send();break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function u(a,b){var c=this;this.tag=b;this.fc=this.ed=!0;this.src=a.src;this.buffer=a;this.J=G;this.Sc=a.Sc;this.playbackRate=1;this.Ck=!0;this.Ec=this.Sd=!1;this.Ob=0;this.Wg=this.Jf=this.fd=!1;this.volume=1;this.Xe=
1===F&&!this.Sc||2===F;this.Tf=1;this.startTime=this.Xe?z.oc.ca:z.td.ca;this.La=this.Qa=null;this.hd=!1;this.Ka=null;this.bp=this.$o=this.Zo=this.Yo=this.dp=this.cp=0;this.k=null;var d=!1;1!==this.J||0!==this.buffer.J||this.buffer.Hp||(this.J=0);switch(this.J){case 0:this.Sc?(this.k=a.Y,d=!a.kn,a.kn=!0):(this.k=new Audio,this.k.autoplay=!1,this.k.src=a.Y.src,d=!0);d&&this.k.addEventListener("ended",function(){C=c.tag;c.fc=!0;z.trigger(hc.prototype.j.fk,L)});break;case 1:this.Qa=e();this.Qa.connect(m(b));
1===this.buffer.J?a.Y&&(this.k=y.createBufferSource(),this.k.buffer=a.Y,this.k.connect(this.Qa)):(this.k=this.buffer.Y,this.buffer.$l.connect(this.Qa));break;case 2:this.k=new window.Media(Z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Ck=!0,c.fc=!0,C=c.tag,z.trigger(hc.prototype.j.fk,L))});break;case 3:this.k=!0}}function x(a,b){T.hasOwnProperty(a)?T[a].push(b):T[a]=[b];var c,d,g,f,e=y.destination;if(T.hasOwnProperty(a)&&(g=T[a],g.length))for(e=g[0].kc(),c=0,d=g.length;c<d;c++)f=
g[c],c+1===d?f.uc(y.destination):f.uc(g[c+1].kc());Ga.length=0;if(a.length)for(c=0,d=N.length;c<d;c++)g=N[c],fb(a,g.tag)&&Ga.push(g);else Q&&!Q.Te()&&(Ga.length=1,Ga[0]=Q);c=0;for(d=Ga.length;c<d;c++)Ga[c].qu(e);ca&&rb===a&&(ca.disconnect(),ca.connect(e))}function H(){}function R(){}var w=hc.prototype;w.Za=function(a){this.qa=a;this.b=a.b};w.Za.prototype.ea=function(){};var z=null,L=null,C="",Z="",G=0,y=null,va=[],N=[],Q=null,E=!1,F=0,O=!1,D=1,J=0,I=0,ka=1,M=1,pa=10,ga=1E4,sa=1,ca=null,rb="",Ma=!1,
Na=[],T={},pc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.uc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};b.prototype.remove=function(){this.S.disconnect();this.Oa.disconnect();this.F.disconnect();this.C.disconnect()};b.prototype.kc=function(){return this.S};g.prototype.uc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};g.prototype.remove=function(){this.S.disconnect();
this.oh.disconnect();this.yc.disconnect();this.pi.disconnect();this.F.disconnect();this.C.disconnect()};g.prototype.kc=function(){return this.S};n.prototype.uc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};n.prototype.remove=function(){this.S.disconnect();this.Ke.disconnect();this.F.disconnect();this.C.disconnect()};n.prototype.kc=function(){return this.S};f.prototype.uc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
f.prototype.remove=function(){this.S.disconnect();this.yc.disconnect();this.eb.disconnect();this.cc.disconnect();this.C.disconnect();this.F.disconnect();this.wi.disconnect()};f.prototype.kc=function(){return this.S};l.prototype.uc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};l.prototype.remove=function(){this.S.disconnect();this.Oa.disconnect();this.eb.disconnect();this.cc.disconnect();this.C.disconnect();this.F.disconnect()};l.prototype.kc=function(){return this.S};
t.prototype.uc=function(a){this.U.disconnect();this.U.connect(a)};t.prototype.remove=function(){this.U.disconnect()};t.prototype.kc=function(){return this.U};h.prototype.uc=function(a){this.U.disconnect();this.U.connect(a)};h.prototype.remove=function(){this.eb.disconnect();this.cc.disconnect();this.U.disconnect()};h.prototype.kc=function(){return this.U};A.prototype.uc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};A.prototype.remove=function(){this.eb.disconnect();
this.Hh.disconnect();this.S.disconnect();this.F.disconnect();this.C.disconnect()};A.prototype.kc=function(){return this.S};q.prototype.Cu=function(a,b){.01>a&&(a=.01);this.xj.gain.value=a;this.wj.gain.value=Math.pow(1/a,.6)*b};q.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};q.prototype.Os=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),g=0,f=0;32768>f;++f)g=f/32768,g=this.shape(g,c,d),this.ni[32768+f]=g,this.ni[32768-
f-1]=-g};q.prototype.uc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};q.prototype.remove=function(){this.S.disconnect();this.xj.disconnect();this.bk.disconnect();this.wj.disconnect();this.F.disconnect();this.C.disconnect()};q.prototype.kc=function(){return this.S};B.prototype.uc=function(a){this.U.disconnect();this.U.connect(a)};B.prototype.remove=function(){this.U.disconnect()};B.prototype.kc=function(){return this.U};p.prototype.Ya=function(){this.U.getFloatFrequencyData(this.Ms);
this.U.getByteTimeDomainData(this.Cp);for(var a=this.U.fftSize,b=0,c=this.Bh=0,d=0;b<a;b++)d=(this.Cp[b]-128)/128,0>d&&(d=-d),this.Bh<d&&(this.Bh=d),c+=d*d;this.Bh=k(this.Bh);k(Math.sqrt(c/a))};p.prototype.uc=function(a){this.U.disconnect();this.U.connect(a)};p.prototype.remove=function(){this.U.disconnect()};p.prototype.kc=function(){return this.U};d.prototype.Ih=function(a){if(this.D=a)this.Vi=this.D.x,this.Wi=this.D.y;this.Ce.length=0};d.prototype.Mi=function(){return!!this.D};d.prototype.Ya=function(a){this.D&&
0!==a&&(this.Ql=Ha(this.Vi,this.Wi,this.D.x,this.D.y),a=Qa(this.Vi,this.Wi,this.D.x,this.D.y)/a,4>this.Ce.length||this.Ce.shift(),this.Ce.push(a),this.Vi=this.D.x,this.Wi=this.D.y)};d.prototype.Sn=function(){if(!this.Ce.length)return 0;var a,b,c=0;a=0;for(b=this.Ce.length;a<b;a++)c+=this.Ce[a];return c/this.Ce.length};d.prototype.fl=function(){return Math.cos(this.Ql)*this.Sn()};d.prototype.gl=function(){return Math.sin(this.Ql)*this.Sn()};var nc=!1;v.prototype.Lr=function(){if(!this.Y&&this.He){var a=
this;if(y.decodeAudioData)y.decodeAudioData(this.He,function(b){a.Y=b;a.He=null;var c,d,g;if(fa(a.uj)||O)fa(a.ii)||(c=a.ii.Ke,c.normalize=a.Ro,c.buffer=b);else if(a.Zf.length){c=0;for(d=a.Zf.length;c<d;c++){b=a.Zf[c];g=new u(a,b.Mp);g.wm(!0);if("undefined"!==typeof b.To&&(b.D=z.Gi(b.To),!b.D))continue;if(b.D){var f=La(b.D.x,b.D.y,-b.D.e.Pa(),J,I,!0),e=La(b.D.x,b.D.y,-b.D.e.Pa(),J,I,!1);g.vm(f,e,Ba(b.D.i-b.D.e.Pa()),b.ml,b.Rl,b.Ul);g.Ih(b.D)}else g.vm(b.x,b.y,b.lr,b.ml,b.Rl,b.Ul);g.play(a.Ll,a.Rm,
a.Ej);a.tj&&g.pause();N.push(g)}a.Zf.length=0}else g=new u(a,a.uj),g.play(a.Ll,a.Rm,a.Ej),a.tj&&g.pause(),N.push(g)},function(){a.Rk=!0});else if(this.Y=y.createBuffer(this.He,!1),this.He=null,fa(this.uj)||O)fa(this.ii)||(b=this.ii.Ke,b.normalize=this.Ro,b.buffer=this.Y);else{var b=new u(this,this.uj);b.play(this.Ll,this.Rm,this.Ej);this.tj&&b.pause();N.push(b)}}};v.prototype.bo=function(){switch(this.J){case 0:var a=4<=this.Y.readyState;a&&(this.Tm=!0);return a||this.Tm;case 1:return!!this.He||!!this.Y;
case 2:return!0;case 3:return!0}return!1};v.prototype.Ft=function(){switch(this.J){case 0:return this.bo();case 1:return!!this.Y;case 2:return!0;case 3:return!0}return!1};v.prototype.wt=function(){switch(this.J){case 0:return!!this.Y.error;case 1:return this.Rk}return!1};u.prototype.Te=function(){var a;switch(this.J){case 0:return this.k.ended;case 1:if(1===this.buffer.J){if(!this.ed&&!this.fc&&this.k.loop||this.Ec)return!1;a=this.Xe?z.oc.ca:z.td.ca;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.Y.duration/b}return this.k.ended;case 2:return this.Ck;case 3:!0}return!0};u.prototype.Er=function(){return this.ed||this.fc?!0:this.Te()};u.prototype.wm=function(a){1===G&&(!this.hd&&a?this.Qa&&(this.La||(this.La=y.createPanner(),this.La.panningModel="number"===typeof this.La.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.La.distanceModel="number"===typeof this.La.distanceModel?M:["linear","inverse","exponential"][M],this.La.refDistance=pa,this.La.maxDistance=
ga,this.La.rolloffFactor=sa),this.Qa.disconnect(),this.Qa.connect(this.La),this.La.connect(m(this.tag)),this.hd=!0):this.hd&&!a&&this.Qa&&(this.La.disconnect(),this.Qa.disconnect(),this.Qa.connect(m(this.tag)),this.hd=!1))};u.prototype.vm=function(a,b,c,d,g,f){this.hd&&1===G&&(this.La.setPosition(a,b,0),this.La.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.La.coneInnerAngle=d,this.La.coneOuterAngle=g,this.La.coneOuterGain=f,this.cp=a,this.dp=b,this.Yo=c,this.Zo=d,this.$o=g,this.bp=f)};u.prototype.Ih=
function(a){this.hd&&1===G&&(this.Ka||(this.Ka=new d),this.Ka.Ih(a))};u.prototype.Ya=function(a){if(this.hd&&1===G&&this.Ka&&this.Ka.Mi()&&this.Ff()){this.Ka.Ya(a);a=this.Ka.D;var b=La(a.x,a.y,-a.e.Pa(),J,I,!0),c=La(a.x,a.y,-a.e.Pa(),J,I,!1);this.La.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ka.D.i&&(b=a.i-a.e.Pa(),this.La.setOrientation(Math.cos(b),Math.sin(b),0));b=La(this.Ka.fl(),this.Ka.gl(),-a.e.Pa(),0,0,!0);c=La(this.Ka.fl(),this.Ka.gl(),-a.e.Pa(),0,0,!1);this.La.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,d){var g=this.k;this.fd=a;this.volume=b;d=d||0;switch(this.J){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==b*D&&(g.volume=b*D);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==d)try{g.currentTime=d}catch(f){}if(this.Sc&&Ma&&!z.na)Na.push(this);else try{this.k.play()}catch(e){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",e)}break;case 1:this.muted=!1;this.Tf=1;if(1===this.buffer.J)this.Qa.gain.value=
b*D,this.ed||(this.k=y.createBufferSource(),this.k.buffer=this.buffer.Y,this.k.connect(this.Qa)),this.k.loop=a,0===d?s(this.k):c(this.k,d,this.Re());else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=b*D;if(g.currentTime!==d)try{g.currentTime=d}catch(h){}this.Sc&&Ma&&!z.na?Na.push(this):g.play()}break;case 2:(!this.ed&&this.fc||0!==d)&&g.seekTo(d);g.play();this.Ck=!1;break;case 3:z.ib?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Xe?z.oc.ca:z.td.ca)-d;this.Ec=this.fc=this.ed=!1};u.prototype.stop=function(){switch(this.J){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.J?a(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:z.ib&&AppMobi.context.stopSound(this.src)}this.fc=!0;this.Ec=!1};u.prototype.pause=function(){if(!(this.ed||this.fc||this.Te()||this.Ec)){switch(this.J){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.J?(this.Ob=this.dl(),
this.fd&&(this.Ob%=this.Re()),a(this.k)):this.k.paused||this.k.pause();break;case 2:this.k.pause();break;case 3:z.ib&&AppMobi.context.stopSound(this.src)}this.Ec=!0}};u.prototype.tu=function(){if(!(this.ed||this.fc||this.Te())&&this.Ec){switch(this.J){case 0:this.k.play();break;case 1:1===this.buffer.J?(this.k=y.createBufferSource(),this.k.buffer=this.buffer.Y,this.k.connect(this.Qa),this.k.loop=this.fd,this.Qa.gain.value=D*this.volume*this.Tf,this.startTime=(this.Xe?z.oc.ca:z.td.ca)-this.Ob,c(this.k,
this.Ob,this.Re())):this.k.play();break;case 2:this.k.play();break;case 3:z.ib&&AppMobi.context.resumeSound(this.src)}this.Ec=!1}};u.prototype.seek=function(a){if(!(this.ed||this.fc||this.Te()))switch(this.J){case 0:try{this.k.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.J)this.Ec?this.Ob=a:(this.pause(),this.Ob=a,this.tu());else try{this.k.currentTime=a}catch(c){}break;case 3:z.ib&&AppMobi.context.seekSound(this.src,a)}};u.prototype.qu=function(a){1===this.J&&(this.hd?(this.La.disconnect(),
this.La.connect(a)):(this.Qa.disconnect(),this.Qa.connect(a)))};u.prototype.Re=function(){switch(this.J){case 0:if("undefined"!==typeof this.k.duration)return this.k.duration;break;case 1:return this.buffer.Y.duration;case 2:return this.k.getDuration();case 3:if(z.ib)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.dl=function(){var a=this.Re(),b=0;switch(this.J){case 0:"undefined"!==typeof this.k.currentTime&&(b=this.k.currentTime);break;case 1:if(1===this.buffer.J){if(this.Ec)return this.Ob;
b=(this.Xe?z.oc.ca:z.td.ca)-this.startTime}else"undefined"!==typeof this.k.currentTime&&(b=this.k.currentTime);break;case 3:z.ib&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.fd&&b>a&&(b=a);return b};u.prototype.Ff=function(){return!this.Ec&&!this.ed&&!this.fc&&!this.Te()};u.prototype.Pu=function(){var a=this.volume*D;switch(this.J){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.J?this.Qa.gain.value=a*this.Tf:"undefined"!==
typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};u.prototype.qi=function(a){switch(this.J){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.J?(this.Tf=a?0:1,this.Qa.gain.value=D*this.volume*this.Tf):this.k.muted!==!!a&&(this.k.muted=!!a)}};u.prototype.Du=function(){this.Jf=!0;this.qi(this.Jf||this.Wg)};u.prototype.wp=function(a){this.Wg=!!a;this.qi(this.Jf||this.Wg)};u.prototype.$p=function(){var a=this.playbackRate;this.Xe&&(a*=z.mg);switch(this.J){case 0:this.k.playbackRate!==
a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.J?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};u.prototype.Fu=function(b){switch(this.J){case 0:b?this.Ff()?(this.k.pause(),this.Sd=!0):this.Sd=!1:this.Sd&&this.k.play();break;case 1:b?this.Ff()?(1===this.buffer.J?(this.Ob=this.dl(),this.fd&&(this.Ob%=this.Re()),a(this.k)):this.k.pause(),this.Sd=!0):this.Sd=!1:this.Sd&&(1===this.buffer.J?(this.k=y.createBufferSource(),this.k.buffer=
this.buffer.Y,this.k.connect(this.Qa),this.k.loop=this.fd,this.Qa.gain.value=D*this.volume*this.Tf,this.startTime=(this.Xe?z.oc.ca:z.td.ca)-this.Ob,c(this.k,this.Ob,this.Re())):this.k.play());break;case 2:b?this.Ff()?(this.k.pause(),this.Sd=!0):this.Sd=!1:this.Sd&&this.k.play()}};w.Aa=function(a){this.type=a;z=this.b=a.b;L=this;this.Ab=null;this.fh=-600;!(this.b.Ui||this.b.Pi&&(this.b.Sg||this.b.Qi))||this.b.Tg||this.b.ka||this.b.tl||(Ma=!0);y=null;"undefined"!==typeof AudioContext?(G=1,y=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(G=1,y=new webkitAudioContext);(this.b.Ui&&1===G||Ma)&&document.addEventListener("touchstart",function(){var a,b,c;!nc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),s(b),nc=!0);if(Ma){if(!O)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.fc||c.Ec||c.k.play();Na.length=0}},!0);1!==G&&(this.b.Dc&&"undefined"!==typeof window.Media?G=2:this.b.Ef&&(G=3));2===G&&(Z=location.href,a=Z.lastIndexOf("/"),-1<a&&(Z=Z.substr(0,a+1)),
Z=Z.replace("file://",""));if(this.b.co&&this.b.Gt&&"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.Zd(this);else{if(this.b.ib)E=this.b.Pi;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.Sj(this)}};var la=w.Aa.prototype;la.ea=function(){this.b.sf=this;F=this.aa[0];this.Td=this.aa[1];this.gu=0!==this.aa[2];ka=this.aa[3];M=this.aa[4];this.fh=-this.aa[5];
pa=this.aa[6];ga=this.aa[7];sa=this.aa[8];this.Ab=new d;var a=this.b.L||this.b.width,b=this.b.K||this.b.height;1===G&&("undefined"!==typeof y.listener.dopplerFactor&&(y.listener.dopplerFactor=0),y.listener.setPosition(a/2,b/2,this.fh),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ca&&ca.disconnect();rb=b.toLowerCase();ca=y.createMediaStreamSource(a);ca.connect(m(rb))});this.b.rr(function(a){L.bu(a)});var c=this;this.b.pr(function(a){c.Xt(a)})};la.Xt=function(a){var b,
c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.Ka&&d.Ka.D===a&&(d.Ka.D=null,d.hd&&d.Ff()&&d.fd&&d.stop());this.Ab.D===a&&(this.Ab.D=null)};la.Pb=function(){var a={silent:O,masterVolume:D,listenerZ:this.fh,listenerUid:this.Ab.Mi()?this.Ab.D.uid:-1,playing:[],effects:{}},b=a.playing,c,d,g,f,e,h;c=0;for(d=N.length;c<d;c++)g=N[c],!g.Ff()||3===this.Td||g.Sc&&1===this.Td||!g.Sc&&2===this.Td||(f=g.dl(),g.fd&&(f%=g.Re()),f={tag:g.tag,buffersrc:g.buffer.src,is_music:g.Sc,playbackTime:f,volume:g.volume,looping:g.fd,
muted:g.Jf,playbackRate:g.playbackRate,paused:g.Ec,resume_position:g.Ob},g.hd&&(f.pan={},h=f.pan,g.Ka&&g.Ka.Mi()?h.objUid=g.Ka.D.uid:(h.x=g.cp,h.y=g.dp,h.a=g.Yo),h.ia=g.Zo,h.oa=g.$o,h.og=g.bp),b.push(f));b=a.effects;for(e in T)if(T.hasOwnProperty(e)){g=[];c=0;for(d=T[e].length;c<d;c++)g.push({type:T[e][c].type,params:T[e][c].Uc});b[e]=g}return a};var Oa=[];la.qc=function(a){var c=a.silent;D=a.masterVolume;this.fh=a.listenerZ;this.Ab.Ih(null);var e=a.listenerUid;-1!==e&&(this.Ab.fj=e,Oa.push(this.Ab));
var e=a.playing,k,s,u,m,r,v,H,z,C,w,R;if(3!==this.Td)for(k=0,s=N.length;k<s;k++)C=N[k],C.Sc&&1===this.Td||(C.Sc||2!==this.Td)&&C.stop();for(r in T)if(T.hasOwnProperty(r))for(k=0,s=T[r].length;k<s;k++)T[r][k].remove();Ta(T);for(r in a.effects)if(a.effects.hasOwnProperty(r))for(v=a.effects[r],k=0,s=v.length;k<s;k++)switch(u=v[k].type,w=v[k].params,u){case "filter":x(r,new b(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":x(r,new g(w[0],w[1],w[2]));break;case "convolve":u=w[2];C=this.Ci(u,!1);C.Y?
u=new n(C.Y,w[0],w[1],u):(u=new n(null,w[0],w[1],u),C.Ro=w[0],C.ii=u);x(r,u);break;case "flanger":x(r,new f(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":x(r,new l(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":x(r,new t(w[0]));break;case "tremolo":x(r,new h(w[0],w[1]));break;case "ringmod":x(r,new A(w[0],w[1]));break;case "distortion":x(r,new q(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":x(r,new B(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":x(r,new p(w[0],w[1]))}k=0;for(s=e.length;k<
s;k++)3===this.Td||(a=e[k],u=a.buffersrc,m=a.is_music,r=a.tag,v=a.playbackTime,H=a.looping,z=a.volume,R=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,m&&1===this.Td)||!m&&2===this.Td||((C=this.Ln(u,r,m,H,z))?(C.Ob=a.resume_position,C.wm(!!w),C.play(H,z,v),C.$p(),C.Pu(),C.qi(C.Jf||C.Wg),a.paused&&C.pause(),a.muted&&C.Du(),C.qi(C.Jf||C.Wg),w&&(-1!==R?(C.Ka=C.Ka||new d,C.Ka.fj=R,Oa.push(C.Ka)):C.vm(w.x,w.y,w.a,w.ia,w.oa,w.og))):(C=this.Ci(u,m),C.Ej=v,C.tj=a.paused,w&&(-1!==R?C.Zf.push({To:R,ml:w.ia,
Rl:w.oa,Ul:w.og,Mp:r}):C.Zf.push({x:w.x,y:w.y,lr:w.a,ml:w.ia,Rl:w.oa,Ul:w.og,Mp:r}))));if(c&&!O){k=0;for(s=N.length;k<s;k++)N[k].wp(!0);O=!0}else if(!c&&O){k=0;for(s=N.length;k<s;k++)N[k].wp(!1);O=!1}};la.ud=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],d=this.b.Gi(c.fj),c.Ih(d),c.fj=-1,d&&(J=d.x,I=d.y);Oa.length=0};la.bu=function(a){if(!this.gu){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].Fu(a);a&&y&&y.suspend&&y.suspend()}};la.Ya=function(){var a=this.b.Ne,b,
c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.Ya(a),0===d.J||3===d.J||d.ed||d.fc||!d.Te()||(d.fc=!0,C=d.tag,z.trigger(hc.prototype.j.fk,L)),0!==F&&d.$p();var g,f;for(g in T)if(T.hasOwnProperty(g))for(d=T[g],b=0,c=d.length;b<c;b++)f=d[b],f.Ya&&f.Ya();1===G&&this.Ab.Mi()&&(this.Ab.Ya(a),J=this.Ab.D.x,I=this.Ab.D.y,y.listener.setPosition(this.Ab.D.x,this.Ab.D.y,this.fh),y.listener.setVelocity(this.Ab.fl(),this.Ab.gl(),0))};var Pa=[];la.Eu=function(a){var b,c,d,g,f,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],
g=d[0],d=2*d[1],(f=4<g.length&&".ogg"===g.substr(g.length-4))&&E||!f&&!E)Pa.push({filename:g,size:d,D:null}),e+=d;return e};la.Iu=function(){var a,b,c,d;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],d=this.b.Sk+c.filename,c.D=this.Ci(d,!1)};la.Ys=function(){var a=0,b,c,d;b=0;for(c=Pa.length;b<c;++b)d=Pa[b],d.D.Ft()||d.D.wt()||this.b.ka||this.b.Qi?a+=d.size:d.D.bo()&&(a+=Math.floor(d.size/2));return a};la.Ci=function(a,b){var c,d,g,f=null;c=0;for(d=va.length;c<d;c++)if(g=va[c],g.src===a){f=g;break}f||(f=new v(a,
b),va.push(f));return f};la.Ln=function(a,b,c,d,g){var f,e,h;f=0;for(e=N.length;f<e;f++)if(h=N[f],h.src===a&&(h.Er()||c))return h.tag=b,h;a=this.Ci(a,c);if(!a.Y)return"<preload>"!==b&&(a.uj=b,a.Ll=d,a.Rm=g),null;h=new u(a,b);N.push(h);return h};var Ga=[];H.prototype.fk=function(a){return fb(C,a)};w.j=new H;R.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.Ln(this.b.Sk+a[0]+(E?".ogg":".m4a"),d,a[1],0!==b,c))&&(Q.wm(!1),Q.play(0!==b,c))};w.la=new R;w.ab=new function(){}})();
function ic(k){this.b=k}
(function(){function k(){}var m=ic.prototype;m.Za=function(e){this.qa=e;this.b=e.b};m.Za.prototype.ea=function(){};m.Aa=function(e){this.type=e;this.b=e.b;this.Bl=Array(256);this.Zj=Array(256);this.Ee=0};var e=m.Aa.prototype;e.ea=function(){var e=this;this.b.ka||(jQuery(document).keydown(function(c){e.Yt(c)}),jQuery(document).keyup(function(c){e.Zt(c)}))};var r=[32,33,34,35,36,37,38,39,40,44];e.Yt=function(e){var c=!1;window!=window.top&&-1<r.indexOf(e.which)&&(e.preventDefault(),c=!0,e.stopPropagation());
if(this.Bl[e.which])this.Zj[e.which]&&!c&&e.preventDefault();else{this.Bl[e.which]=!0;this.Ee=e.which;this.b.na=!0;this.b.trigger(ic.prototype.j.Eq,this);var a=this.b.trigger(ic.prototype.j.Nq,this),b=this.b.trigger(ic.prototype.j.Oq,this);this.b.na=!1;if(a||b)this.Zj[e.which]=!0,c||e.preventDefault()}};e.Zt=function(e){this.Bl[e.which]=!1;this.Ee=e.which;this.b.na=!0;this.b.trigger(ic.prototype.j.Fq,this);var c=this.b.trigger(ic.prototype.j.Qq,this),a=this.b.trigger(ic.prototype.j.Pq,this);this.b.na=
!1;if(c||a||this.Zj[e.which])this.Zj[e.which]=!0,e.preventDefault()};e.Pb=function(){return{triggerKey:this.Ee}};e.qc=function(e){this.Ee=e.triggerKey};k.prototype.Nq=function(e){return e===this.Ee};k.prototype.Eq=function(){return!0};k.prototype.Fq=function(){return!0};k.prototype.Qq=function(e){return e===this.Ee};k.prototype.Oq=function(e){return e===this.Ee};k.prototype.Pq=function(e){return e===this.Ee};m.j=new k;m.la=new function(){};m.ab=new function(){}})();function jc(k){this.b=k}
(function(){function k(){}function m(){}var e=jc.prototype;e.Za=function(c){this.qa=c;this.b=c.b};e.Za.prototype.ea=function(){};e.Aa=function(c){this.type=c;this.b=c.b;this.ci=Array(4);this.Pp=this.Uj=this.ng=this.Nd=this.Md=0;this.jl=!1};var r=e.Aa.prototype;r.ea=function(){var c=this;if(!this.b.ka){jQuery(document).mousemove(function(a){c.uh(a)});jQuery(document).mousedown(function(a){c.sh(a)});jQuery(document).mouseup(function(a){c.vh(a)});jQuery(document).dblclick(function(a){c.Vt(a)});var a=
function(a){c.du(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var s={left:0,top:0};r.uh=function(c){var a=this.b.ka?s:jQuery(this.b.canvas).offset();this.Md=c.pageX-a.left;this.Nd=c.pageY-a.top};r.Mo=function(){return 0<this.b.yb?!0:0<=this.Md&&0<=this.Nd&&this.Md<this.b.width&&this.Nd<this.b.height};r.sh=function(c){this.Mo()&&(this.b.Cf&&!this.b.Rc&&c.preventDefault(),this.ci[c.which]=!0,this.b.na=!0,this.b.trigger(jc.prototype.j.Dq,this),this.ng=
c.which-1,this.Uj=0,this.b.trigger(jc.prototype.j.Wm,this),this.b.trigger(jc.prototype.j.hk,this),this.b.na=!1)};r.vh=function(c){this.ci[c.which]&&(this.b.Cf&&!this.b.Rc&&c.preventDefault(),this.b.Cf=!0,this.ci[c.which]=!1,this.b.na=!0,this.ng=c.which-1,this.b.trigger(jc.prototype.j.Tq,this),this.b.na=!1)};r.Vt=function(c){this.Mo()&&(c.preventDefault(),this.b.na=!0,this.ng=c.which-1,this.Uj=1,this.b.trigger(jc.prototype.j.Wm,this),this.b.trigger(jc.prototype.j.hk,this),this.b.na=!1)};r.du=function(c){this.Pp=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.jl=!1;this.b.na=!0;this.b.trigger(jc.prototype.j.Wq,this);this.b.na=!1;this.jl&&gb(c)&&c.preventDefault()};k.prototype.Wm=function(c,a){return c===this.ng&&a===this.Uj};k.prototype.Dq=function(){return!0};k.prototype.sq=function(c){return this.ci[c+1]};k.prototype.Tq=function(c){return c===this.ng};k.prototype.uq=function(c){var a=this.b.Ei();return Ra(this.b.lg(c,this.Md,this.Nd,a.Df),a.Df)};k.prototype.hk=function(c,a,b){return c!==this.ng||
a!==this.Uj?!1:this.b.lg(b,this.Md,this.Nd,!1)};k.prototype.Wq=function(c){this.jl=!0;return c===this.Pp};e.j=new k;e.la=new function(){};m.prototype.lk=function(c,a){var b,g,e,f,l;fa(a)?(b=this.b.Id(0),g=b.scale,e=b.xb,f=b.Lb,l=b.i,b.scale=1,b.xb=1,b.Lb=1,b.i=0,c.u(b.wa(this.Md,this.Nd,!0)),b.scale=g,b.xb=e,b.Lb=f,b.i=l):(b=ha(a)?this.b.Id(a):this.b.Ig(a))?c.u(b.wa(this.Md,this.Nd,!0)):c.u(0)};m.prototype.mk=function(c,a){var b,g,e,f,l;fa(a)?(b=this.b.Id(0),g=b.scale,e=b.xb,f=b.Mb,l=b.i,b.scale=
1,b.xb=1,b.Mb=1,b.i=0,c.u(b.wa(this.Md,this.Nd,!1)),b.scale=g,b.xb=e,b.Mb=f,b.i=l):(b=ha(a)?this.b.Id(a):this.b.Ig(a))?c.u(b.wa(this.Md,this.Nd,!1)):c.u(0)};e.ab=new m})();function kc(k){this.b=k}
(function(){function k(e){this.pa=e;this.$a=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.be=this.Bf=this.size=this.Ji=0}var m=kc.prototype;m.Za=function(e){this.qa=e;this.b=e.b};var e=m.Za.prototype;e.ea=function(){this.B||(this.I=new Image,this.I.Ek=this.Qj,this.O=null,this.b.Sm(this.I,this.Pj))};e.rh=function(){this.B||(this.O=null)};e.mj=function(){this.B||!this.d.length||this.O||(this.O=this.b.q.Of(this.I,!0,this.b.T,this.Qh))};e.gh=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Of(this.I,
!0,this.b.T,this.Qh))};e.Xj=function(){this.B||this.d.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};e.yj=function(e){e.drawImage(this.I,0,0)};k.prototype.init=function(){var e=this.pa;this.x=e.x-e.ck/2+Math.random()*e.ck;this.y=e.y-e.dk/2+Math.random()*e.dk;this.speed=e.ql-e.Jj/2+Math.random()*e.Jj;this.i=e.i-e.Kj/2+Math.random()*e.Kj;this.opacity=e.ol;this.size=e.pl-e.Hj/2+Math.random()*e.Hj;this.Ji=e.il-e.Ki/2+Math.random()*e.Ki;this.be=this.Bf=0};k.prototype.Ya=function(e){var c=
this.pa;this.x+=Math.cos(this.i)*this.speed*e;this.y+=Math.sin(this.i)*this.speed*e;this.y+=this.Bf*e;this.speed+=c.nk*e;this.size+=this.Ji*e;this.Bf+=c.Yk*e;this.be+=e;1>this.size?this.$a=!1:(0!==c.bh&&(this.i+=Math.random()*c.bh*e-c.bh*e/2),0!==c.eh&&(this.speed+=Math.random()*c.eh*e-c.eh*e/2),0!==c.dh&&(this.opacity+=Math.random()*c.dh*e-c.dh*e/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.vf&&this.be>=c.timeout&&(this.$a=!1),2===c.vf&&0>=this.speed&&(this.$a=!1))};k.prototype.jc=
function(e){var c=this.pa.opacity*this.opacity;if(0!==c){0===this.pa.vf&&(c*=1-this.be/this.pa.timeout);e.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.pa.b.Hc&&(c=c+.5|0,a=a+.5|0);e.drawImage(this.pa.type.I,c,a,this.size,this.size)}};k.prototype.Gb=function(e){var c=this.pa.opacity*this.opacity;0===this.pa.vf&&(c*=1-this.be/this.pa.timeout);var a=this.size,b=a*this.pa.gp,g=this.x-a/2,k=this.y-a/2;this.pa.b.Hc&&(g=g+.5|0,k=k+.5|0);1>b||0===c||(b<e.Qt||b>e.Nl?(e.ze(c),e.Gh(g,k,g+
a,k,g+a,k+a,g,k+a)):e.hu(this.x,this.y,b,c))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};m.Aa=function(e){this.type=e;this.b=e.b};var e=m.Aa.prototype,r=[];e.ea=function(){var e=this.aa;this.Bj=e[0];this.Kj=V(e[1]);this.ig=e[2];this.zm=!0;this.ql=e[3];this.pl=e[4];this.ol=e[5]/100;this.il=e[6];this.ck=e[7];this.dk=e[8];this.Jj=
e[9];this.Hj=e[10];this.Ki=e[11];this.nk=e[12];this.Yk=e[13];this.bh=e[14];this.eh=e[15];this.dh=e[16];this.vf=e[17];this.timeout=e[18];this.hf=0;this.gp=1;this.qj=this.x;this.sj=this.y;this.rj=this.x;this.pj=this.y;this.sr(function(c){c.Ba.set(c.qj,c.sj,c.rj,c.pj);c.ob.hg(c.Ba);c.bi=!1;c.Om()});this.rc||(this.Cb=[]);this.b.Sj(this);this.type.gh();if(1===this.ig)for(e=0;e<this.Bj;e++)this.pk().opacity=0;this.yi=!0};e.Pb=function(){var e={r:this.Bj,sc:this.Kj,st:this.ig,s:this.zm,isp:this.ql,isz:this.pl,
io:this.ol,gr:this.il,xr:this.ck,yr:this.dk,spr:this.Jj,szr:this.Hj,grnd:this.Ki,acc:this.nk,g:this.Yk,lar:this.bh,lsr:this.eh,lor:this.dh,dm:this.vf,to:this.timeout,pcc:this.hf,ft:this.yi,p:[]},c,a,b,g=e.p;c=0;for(a=this.Cb.length;c<a;c++)b=this.Cb[c],g.push([b.x,b.y,b.speed,b.i,b.opacity,b.Ji,b.size,b.Bf,b.be]);return e};e.qc=function(e){this.Bj=e.r;this.Kj=e.sc;this.ig=e.st;this.zm=e.s;this.ql=e.isp;this.pl=e.isz;this.ol=e.io;this.il=e.gr;this.ck=e.xr;this.dk=e.yr;this.Jj=e.spr;this.Hj=e.szr;this.Ki=
e.grnd;this.nk=e.acc;this.Yk=e.g;this.bh=e.lar;this.eh=e.lsr;this.dh=e.lor;this.vf=e.dm;this.timeout=e.to;this.hf=e.pcc;this.yi=e.ft;r.push.apply(r,this.Cb);this.Cb.length=0;var c,a,b,g=e.p;e=0;for(c=g.length;e<c;e++)a=this.pk(),b=g[e],a.x=b[0],a.y=b[1],a.speed=b[2],a.i=b[3],a.opacity=b[4],a.Ji=b[5],a.size=b[6],a.Bf=b[7],a.be=b[8]};e.Xf=function(){r.push.apply(r,this.Cb);this.Cb.length=0};e.pk=function(){var e;r.length?(e=r.pop(),e.pa=this):e=new k(this);this.Cb.push(e);e.$a=!0;return e};e.Ya=function(){var e=
this.b.$k(this),c,a,b,g;if(0===this.ig&&this.zm)for(this.hf+=e*this.Bj,a=S(this.hf),this.hf-=a,c=0;c<a;c++)b=this.pk(),b.init();this.qj=this.x;this.sj=this.y;this.rj=this.x;this.pj=this.y;g=c=0;for(a=this.Cb.length;c<a;c++)b=this.Cb[c],this.Cb[g]=b,this.b.fa=!0,1===this.ig&&this.yi&&b.init(),b.Ya(e),b.$a?(b.left()<this.qj&&(this.qj=b.left()),b.right()>this.rj&&(this.rj=b.right()),b.top()<this.sj&&(this.sj=b.top()),b.bottom()>this.pj&&(this.pj=b.bottom()),g++):r.push(b);this.Cb.length=g;this.za();
this.yi=!1;1===this.ig&&0===this.Cb.length&&this.b.Zd(this)};e.jc=function(e){var c,a,b,g=this.e;c=0;for(a=this.Cb.length;c<a;c++)b=this.Cb[c],b.right()>=g.ta&&b.bottom()>=g.ua&&b.left()<=g.Ja&&b.top()<=g.Ia&&b.jc(e)};e.Gb=function(e){this.gp=this.e.Xb();e.Qb(this.type.O);var c,a,b,g=this.e;c=0;for(a=this.Cb.length;c<a;c++)b=this.Cb[c],b.right()>=g.ta&&b.bottom()>=g.ua&&b.left()<=g.Ja&&b.top()<=g.Ia&&b.Gb(e)};m.j=new function(){};m.la=new function(){};m.ab=new function(){}})();
function gc(k){this.b=k}
(function(){function k(){if(0===this.Hk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.jg?b.drawImage(this.I,this.Vf,this.Wf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.Hk=a.toDataURL("image/png")}return this.Hk}function m(){}var e=gc.prototype;e.Za=function(a){this.qa=a;this.b=a.b};var r=e.Za.prototype;r.ea=function(){if(!this.B){var a,b,c,g,e,f,n,d,m;this.Mc=[];this.Og=
!1;a=0;for(b=this.Ub.length;a<b;a++){e=this.Ub[a];n={};n.name=e[0];n.speed=e[1];n.loop=e[2];n.mm=e[3];n.Cj=e[4];n.hp=e[5];n.P=e[6];n.frames=[];c=0;for(g=e[7].length;c<g;c++)f=e[7][c],d={},d.Pj=f[0],d.Qj=f[1],d.Vf=f[2],d.Wf=f[3],d.width=f[4],d.height=f[5],d.duration=f[6],d.Ib=f[7],d.Jb=f[8],d.nl=f[9],d.vj=f[10],d.ip=f[11],d.jg=0!==d.width,d.Hk="",d.bw=k,m={left:0,top:0,right:1,bottom:1},d.xm=m,d.O=null,(m=this.b.Ks(f[0]))?d.I=m:(d.I=new Image,d.I.Ir=f[0],d.I.Ek=f[1],d.I.Dr=null,this.b.Sm(d.I,f[0])),
n.frames.push(d),this.Mc.push(d);this.Ub[a]=n}}};r.Zp=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.li=c.vc.O};r.rh=function(){if(!this.B){var a,b,c;a=0;for(b=this.Mc.length;a<b;++a)c=this.Mc[a],c.I.Dr=null,c.O=null;this.Og=!1;this.Zp()}};r.mj=function(){if(!this.B&&this.d.length){var a,b,c;a=0;for(b=this.Mc.length;a<b;++a)c=this.Mc[a],c.O=this.b.q.Of(c.I,!1,this.b.T,c.ip);this.Zp()}};r.gh=function(){if(!this.B&&!this.Og&&this.b.q){var a,b,c;a=0;for(b=this.Mc.length;a<b;++a)c=
this.Mc[a],c.O=this.b.q.Of(c.I,!1,this.b.T,c.ip);this.Og=!0}};r.Xj=function(){if(!this.B&&!this.d.length&&this.Og){var a,b,c;a=0;for(b=this.Mc.length;a<b;++a)c=this.Mc[a],this.b.q.deleteTexture(c.O),c.O=null;this.Og=!1}};var s=[];r.yj=function(a){var b,c,g;b=s.length=0;for(c=this.Mc.length;b<c;++b)g=this.Mc[b].I,-1===s.indexOf(g)&&(a.drawImage(g,0,0),s.push(g))};e.Aa=function(a){this.type=a;this.b=a.b;a=this.type.Ub[0].frames[0].vj;this.rc?this.W.Kh(a):this.W=new $a(a)};var c=e.Aa.prototype;c.ea=
function(){this.visible=0===this.aa[0];this.Je=0!==this.aa[3];1===this.type.Ub.length&&1===this.type.Ub[0].frames.length||0===this.type.Ub[0].speed||this.b.Sj(this);this.Ca=this.Kn(this.aa[1])||this.type.Ub[0];this.A=this.aa[2];0>this.A&&(this.A=0);this.A>=this.Ca.frames.length&&(this.A=this.Ca.frames.length-1);var a=this.Ca.frames[this.A];this.W.Kh(a.vj);this.Ib=a.Ib;this.Jb=a.Jb;this.Dg=this.Ca.speed;this.rc?this.bd.reset():this.bd=new Ya;this.Hd=this.bd.ca;this.Ge=!0;this.vd=0;this.Fe=!0;this.Ak=
this.ln="";this.Fr=0;this.zk=-1;this.type.gh();var b,c,g,e,f,k,d,a=0;for(b=this.type.Ub.length;a<b;a++)for(e=this.type.Ub[a],c=0,g=e.frames.length;c<g;c++)f=e.frames[c],0===f.width&&(f.width=f.I.width,f.height=f.I.height),f.jg&&(d=f.I,k=f.xm,k.left=f.Vf/d.width,k.top=f.Wf/d.height,k.right=(f.Vf+f.width)/d.width,k.bottom=(f.Wf+f.height)/d.height,0===f.Vf&&0===f.Wf&&f.width===d.width&&f.height===d.height&&(f.jg=!1));this.vc=this.Ca.frames[this.A];this.li=this.vc.O};c.Pb=function(){var a={a:this.Ca.P,
f:this.A,cas:this.Dg,fs:this.Hd,ar:this.vd,at:this.bd.ca};this.Ge||(a.ap=this.Ge);this.Fe||(a.af=this.Fe);return a};c.qc=function(a){var b=this.Ps(a.a);b&&(this.Ca=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.Ca.frames.length&&(this.A=this.Ca.frames.length-1);this.Dg=a.cas;this.Hd=a.fs;this.vd=a.ar;this.bd.reset();this.bd.ca=a.at;this.Ge=a.hasOwnProperty("ap")?a.ap:!0;this.Fe=a.hasOwnProperty("af")?a.af:!0;this.vc=this.Ca.frames[this.A];this.li=this.vc.O;this.W.Kh(this.vc.vj);this.Ib=this.vc.Ib;
this.Jb=this.vc.Jb};c.sk=function(a){this.A=a?0:this.Ca.frames.length-1;this.Ge=!1;this.ln=this.Ca.name;this.b.trigger(gc.prototype.j.Cq,this);this.b.trigger(gc.prototype.j.Bq,this);this.vd=0};c.dw=function(){return this.bd.ca};c.Ya=function(){this.bd.add(this.b.$k(this));this.Ak.length&&this.Nr();0<=this.zk&&this.Or();var a=this.bd.ca,b=this.Ca,c=b.frames[this.A],g=c.duration/this.Dg;this.Ge&&a>=this.Hd+g&&(this.Fe?this.A++:this.A--,this.Hd+=g,this.A>=b.frames.length&&(b.hp?(this.Fe=!1,this.A=b.frames.length-
2):b.loop?this.A=b.Cj:(this.vd++,this.vd>=b.mm?this.sk(!1):this.A=b.Cj)),0>this.A&&(b.hp?(this.A=1,this.Fe=!0,b.loop||(this.vd++,this.vd>=b.mm&&this.sk(!0))):b.loop?this.A=b.Cj:(this.vd++,this.vd>=b.mm?this.sk(!0):this.A=b.Cj)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.Hd+b.frames[this.A].duration/this.Dg&&(this.Hd=a),a=b.frames[this.A],this.qf(c,a),this.b.fa=!0)};c.Kn=function(a){var b,c,g;b=0;for(c=this.type.Ub.length;b<c;b++)if(g=this.type.Ub[b],fb(g.name,a))return g;
return null};c.Ps=function(a){var b,c,g;b=0;for(c=this.type.Ub.length;b<c;b++)if(g=this.type.Ub[b],g.P===a)return g;return null};c.Nr=function(){var a=this.Ca.frames[this.A],b=this.Kn(this.Ak);this.Ak="";!b||fb(b.name,this.Ca.name)&&this.Ge||(this.Ca=b,this.Dg=b.speed,0>this.A&&(this.A=0),this.A>=this.Ca.frames.length&&(this.A=this.Ca.frames.length-1),1===this.Fr&&(this.A=0),this.Ge=!0,this.Hd=this.bd.ca,this.Fe=!0,this.qf(a,this.Ca.frames[this.A]),this.b.fa=!0)};c.Or=function(){var a=this.Ca.frames[this.A],
b=this.A;this.A=S(this.zk);0>this.A&&(this.A=0);this.A>=this.Ca.frames.length&&(this.A=this.Ca.frames.length-1);b!==this.A&&(this.qf(a,this.Ca.frames[this.A]),this.Hd=this.bd.ca,this.b.fa=!0);this.zk=-1};c.qf=function(a,b){var c=a.width,g=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);g!=f&&(this.height*=f/g);this.Ib=b.Ib;this.Jb=b.Jb;this.W.Kh(b.vj);this.za();this.vc=b;this.li=b.O;c=0;for(g=this.G.length;c<g;c++)e=this.G[c],e.au&&e.au(a,b);this.b.trigger(gc.prototype.j.qf,this)};c.jc=function(a){a.globalAlpha=
this.opacity;var b=this.vc,c=b.jg,g=b.I,e=this.x,f=this.y,k=this.width,d=this.height;if(0===this.i&&0<=k&&0<=d)e-=this.Ib*k,f-=this.Jb*d,this.b.Hc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(g,b.Vf,b.Wf,b.width,b.height,e,f,k,d):a.drawImage(g,e,f,k,d);else{this.b.Hc&&(e=Math.round(e),f=Math.round(f));a.save();var n=0<k?1:-1,u=0<d?1:-1;a.translate(e,f);1===n&&1===u||a.scale(n,u);a.rotate(this.i*n*u);e=0-this.Ib*ma(k);f=0-this.Jb*ma(d);c?a.drawImage(g,b.Vf,b.Wf,b.width,b.height,e,f,ma(k),ma(d)):
a.drawImage(g,e,f,ma(k),ma(d));a.restore()}};c.Gb=function(a){a.Qb(this.li);a.ze(this.opacity);var b=this.vc,c=this.ob;if(this.b.Hc){var g=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.jg?a.kd(c.Ga+g,c.Ha+e,c.ub+g,c.wb+e,c.pb+g,c.qb+e,c.mb+g,c.nb+e,b.xm):a.Gh(c.Ga+g,c.Ha+e,c.ub+g,c.wb+e,c.pb+g,c.qb+e,c.mb+g,c.nb+e)}else b.jg?a.kd(c.Ga,c.Ha,c.ub,c.wb,c.pb,c.qb,c.mb,c.nb,b.xm):a.Gh(c.Ga,c.Ha,c.ub,c.wb,c.pb,c.qb,c.mb,c.nb)};c.Us=function(a){var b=this.vc,c,g;c=0;for(g=b.nl.length;c<g;c++)if(fb(a,
b.nl[c][0]))return c;return-1};c.cl=function(a,b){var c=this.vc,g=c.nl,e;e=P(a)?this.Us(a):a-1;e=S(e);if(0>e||e>=g.length)return b?this.x:this.y;var f=(g[e][1]-c.Ib)*this.width,g=g[e][2],g=(g-c.Jb)*this.height,c=Math.cos(this.i);e=Math.sin(this.i);var k=f*c-g*e,g=g*c+f*e,f=k+this.x,g=g+this.y;return b?f:g};var a=null,b=new ba,g=!1,n=[],f=new U(0,0,0,0);r.finish=function(c){if(g){if(c){var e=this.b.zb().Wb.Tc;c=a.X();var f=b.$c(),k,n;if(c.ga){c.ga=!1;c.d.length=f.length;k=0;for(n=f.length;k<n;k++)c.d[k]=
f[k];if(e)for(k=c.R.length=0,n=a.d.length;k<n;k++)f=a.d[k],b.contains(f)||c.R.push(f)}else if(e)for(e=c.d.length,c.d.length=e+f.length,k=0,n=f.length;k<n;k++)c.d[e+k]=f[k],Aa(c.R,f[k]);else xa(c.d,f);a.wd()}b.clear();g=!1}};m.prototype.vq=function(c){if(c){var e=!1,h,k,m,r=this.b.Ei(),p=r.type,r=r.Df;h=c.X();k=this.b.zb().Wb.Tc;var d;h.ga?(this.ma(),f.Bg(this.Ba),f.offset(0,0),this.b.Rs(this.e,c,f,n),d=n):d=k?h.R:h.d;a=c;g=p!==c&&!r;h=0;for(k=d.length;h<k;h++)if(m=d[h],this.b.Ku(this,m)){e=!0;if(r)break;
p!==c&&b.add(m)}n.length=0;c=e}else c=!1;return c};m.prototype.Bq=function(a){return fb(this.ln,a)};m.prototype.Cq=function(){return!0};m.prototype.qf=function(){return!0};e.j=new m;e.la=new function(){};e.ab=new function(){}})();function lc(k){this.b=k}
(function(){function k(){return b.length?b.pop():{}}function m(a){var c,e;c=0;for(e=a.length;c<e;c++)b.push(a[c]);a.length=0}function e(){}function r(){}var s=lc.prototype;s.ea=function(){s.la.cn=function(a){this.width!==a&&(this.width=a,this.mf=!0,this.za())}};s.Za=function(a){this.qa=a;this.b=a.b};var c=s.Za.prototype;c.ea=function(){};c.rh=function(){if(!this.B){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.gd=null,c.ff=null,c.ac=null}};s.Aa=function(a){this.type=a;this.b=a.b;this.rc?
this.te.length=0:this.te=[];this.mf=!0};c=s.Aa.prototype;c.ea=function(){this.text=this.aa[0];this.visible=0===this.aa[1];this.font=this.aa[2];this.color=this.aa[3];this.Li=this.aa[4];this.$j=this.aa[5];this.Vm=0===this.aa[7];this.El=this.$i=this.width;this.Zi=this.height;this.Gl=this.aa[8];this.Ai=this.xf="";this.Kp=this.Lp=this.Eh=0;this.eu();this.ac=this.ff=this.gd=null;this.Po=!1;this.ah=this.b.pd;this.rc?this.we.set(0,0,1,1):this.we=new U(0,0,1,1);this.b.q&&this.b.Sj(this)};c.eu=function(){var a=
this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Eh=parseInt(a[b].substr(0,a[b].length-2));this.im=Math.ceil(this.Eh/72*96)+4;0<b&&(this.Ai=a[b-1]);this.xf=a[b+1];for(b+=2;b<a.length;b++)this.xf+=" "+a[b];break}};c.Pb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Li,va:this.$j,wr:this.Vm,lho:this.Gl,fn:this.xf,fs:this.Ai,ps:this.Eh,pxh:this.im,tw:this.Lp,th:this.Kp,lrt:this.ah}};c.qc=function(a){this.text=a.t;this.font=a.f;this.color=a.c;
this.Li=a.ha;this.$j=a.va;this.Vm=a.wr;this.Gl=a.lho;this.xf=a.fn;this.Ai=a.fs;this.Eh=a.ps;this.im=a.pxh;this.Lp=a.tw;this.Kp=a.th;this.ah=a.lrt;this.mf=!0;this.El=this.$i=this.width;this.Zi=this.height};c.Ya=function(){if(this.b.q&&this.ac&&300<=this.b.pd-this.ah){var a=this.e;this.ma();var b=this.Ba;if(b.right<a.ta||b.bottom<a.ua||b.left>a.Ja||b.top>a.Ia)this.b.q.deleteTexture(this.ac),this.gd=this.ff=this.ac=null}};c.Xf=function(){this.gd=this.ff=null;this.b.q&&this.ac&&this.b.q.deleteTexture(this.ac);
this.ac=null};c.mw=function(){this.font=this.Ai+" "+this.Eh.toString()+"pt "+this.xf;this.mf=!0;this.b.fa=!0};c.jc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.e.Xb(),a.save(),a.scale(c,c));if(this.mf||this.width!==this.El)this.type.qa.jr(this.text,this.te,a,this.width,this.Vm),this.mf=!1,this.El=this.width;this.ma();var c=b?0:this.ob.Ga,e=b?0:this.ob.Ha;this.b.Hc&&(c=c+.5|0,e=e+.5|0);0===this.i||b||(a.save(),a.translate(c,
e),a.rotate(this.i),e=c=0);var k=e+this.height,h=this.im,h=h+this.Gl,m,q;1===this.$j?e+=Math.max(this.height/2-this.te.length*h/2,0):2===this.$j&&(e+=Math.max(this.height-this.te.length*h-2,0));for(q=0;q<this.te.length&&!(m=c,1===this.Li?m=c+(this.width-this.te[q].width)/2:2===this.Li&&(m=c+(this.width-this.te[q].width)),a.fillText(this.te[q].text,m,e),e+=h,e>=k-h);q++);(0!==this.i||b)&&a.restore();this.ah=this.b.pd};c.Gb=function(a){if(!(1>this.width||1>this.height)){var b=this.mf||this.Po;this.Po=
!1;var c=this.e.Xb(),e=this.e.Pa(),k=this.we,h=c*this.width,m=c*this.height,q=Math.ceil(h),r=Math.ceil(m),p=this.b.L/2,d=this.b.K/2;this.ff||(this.gd=document.createElement("canvas"),this.gd.width=q,this.gd.height=r,this.$i=q,this.Zi=r,b=!0,this.ff=this.gd.getContext("2d"));if(q!==this.$i||r!==this.Zi)this.gd.width=q,this.gd.height=r,this.ac&&(a.deleteTexture(this.ac),this.ac=null),b=!0;b&&(this.ff.clearRect(0,0,q,r),this.jc(this.ff,!0),this.ac||(this.ac=a.zd(q,r,this.b.T,this.b.Rc)),a.Vu(this.gd,
this.ac,this.b.Rc));this.$i=q;this.Zi=r;a.Qb(this.ac);a.ze(this.opacity);a.ld();a.translate(-p,-d);a.rd();var s=this.ob,b=this.e.ya(s.Ga,s.Ha,!0,!0),p=this.e.ya(s.Ga,s.Ha,!1,!0),d=this.e.ya(s.ub,s.wb,!0,!0),u=this.e.ya(s.ub,s.wb,!1,!0),x=this.e.ya(s.pb,s.qb,!0,!0),H=this.e.ya(s.pb,s.qb,!1,!0),R=this.e.ya(s.mb,s.nb,!0,!0),s=this.e.ya(s.mb,s.nb,!1,!0);if(this.b.Hc||0===this.i&&0===e)var w=(b+.5|0)-b,z=(p+.5|0)-p,b=b+w,p=p+z,d=d+w,u=u+z,x=x+w,H=H+z,R=R+w,s=s+z;0===this.i&&0===e?(d=b+q,u=p,x=d,H=p+r,
R=b,s=H,k.right=1,k.bottom=1):(k.right=h/q,k.bottom=m/r);a.kd(b,p,d,u,x,H,R,s,k);a.ld();a.scale(c,c);a.om(-this.e.Pa());a.translate((this.e.ta+this.e.Ja)/-2,(this.e.ua+this.e.Ia)/-2);a.rd();this.ah=this.b.pd}};var a=[];s.er=function(b){a.length=0;for(var c="",e,k=0;k<b.length;)if(e=b.charAt(k),"\n"===e)c.length&&(a.push(c),c=""),a.push("\n"),++k;else if(" "===e||"\t"===e||"-"===e){do c+=b.charAt(k),k++;while(k<b.length&&(" "===b.charAt(k)||"\t"===b.charAt(k)));a.push(c);c=""}else k<b.length&&(c+=
e,k++);c.length&&a.push(c)};var b=[];s.jr=function(a,b,c,e,r){if(a&&a.length)if(2>=e)m(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=c.measureText(a).width;if(h<=e){m(b);b.push(k());b[0].text=a;b[0].width=h;return}}this.kr(a,b,c,e,r)}else m(b)};s.kr=function(c,e,f,l,m){m&&(this.er(c),c=a);var h="",r,q,s,p=0;for(s=0;s<c.length;s++)"\n"===c[s]?(p>=e.length&&e.push(k()),q=e[p],q.text=h,q.width=f.measureText(h).width,p++,h=""):(r=h,h+=c[s],q=f.measureText(h).width,q>=l&&(p>=e.length&&e.push(k()),
q=e[p],q.text=r,q.width=f.measureText(r).width,p++,h=c[s],m||" "!==h||(h="")));h.length&&(p>=e.length&&e.push(k()),q=e[p],q.text=h,q.width=f.measureText(h).width,p++);for(s=p;s<e.length;s++)b.push(e[s]);e.length=p};s.j=new function(){};e.prototype.br=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.mf=!0,this.b.fa=!0)};s.la=new e;r.prototype.Text=function(a){a.Rb(this.text)};s.ab=new r})();function mc(k){this.b=k}
(function(){var k=mc.prototype;k.Za=function(e){this.qa=e;this.b=e.b};var m=k.Za.prototype;m.ea=function(){this.B||(this.I=new Image,this.I.Ek=this.Qj,this.b.Sm(this.I,this.Pj),this.O=this.pattern=null)};m.rh=function(){this.B||(this.O=null)};m.mj=function(){if(!this.B&&this.d.length){this.O||(this.O=this.b.q.Of(this.I,!0,this.b.T,this.Qh));var e,k;e=0;for(k=this.d.length;e<k;e++)this.d[e].O=this.O}};m.gh=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Of(this.I,!0,this.b.T,this.Qh))};m.Xj=
function(){this.B||this.d.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};m.yj=function(e){e.drawImage(this.I,0,0)};k.Aa=function(e){this.type=e;this.b=e.b};m=k.Aa.prototype;m.ea=function(){this.visible=0===this.aa[0];this.we=new U(0,0,0,0);this.Vn=!1;this.I=this.type.I;this.b.q?(this.type.gh(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.da.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};m.ud=function(){this.Vn=!1;this.I=this.type.I};m.Xf=
function(){this.b.q&&this.Vn&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};m.jc=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var k=this.x,m=this.y;this.b.Hc&&(k=Math.round(k),m=Math.round(m));var c=-(this.Ib*this.width),a=-(this.Jb*this.height),b=c%this.I.width,g=a%this.I.height;0>b&&(b+=this.I.width);0>g&&(g+=this.I.height);e.translate(k,m);e.rotate(this.i);e.translate(b,g);e.fillRect(c-b,a-g,this.width,this.height);e.restore()};m.Gb=function(e){e.Qb(this.O);
e.ze(this.opacity);var k=this.we;k.right=this.width/this.I.width;k.bottom=this.height/this.I.height;var m=this.ob;if(this.b.Hc){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;e.kd(m.Ga+c,m.Ha+a,m.ub+c,m.wb+a,m.pb+c,m.qb+a,m.mb+c,m.nb+a,k)}else e.kd(m.Ga,m.Ha,m.ub,m.wb,m.pb,m.qb,m.mb,m.nb,k)};k.j=new function(){};k.la=new function(){};k.ab=new function(){}})();function Y(k){this.b=k}
(function(){function k(a){n=a.x;f=a.y;l=a.z}function m(a){t=a.x;h=a.y;A=a.z}function e(a,b,c,d){var e;e=q.length?q.pop():new r;e.init(a,b,c,d);return e}function r(){this.Mh=this.id=this.y=this.x=this.Nj=this.Mj=this.Dl=this.time=this.Bm=0;this.Sh=this.Vj=!1}function s(){}function c(){}var a=Y.prototype;a.Za=function(a){this.qa=a;this.b=a.b};a.Za.prototype.ea=function(){};a.Aa=function(a){this.type=a;this.b=a.b;this.touches=[];this.Pl=!1};var b=a.Aa.prototype,g={left:0,top:0};b.Hg=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 n=0,f=0,l=0,t=0,h=0,A=0,q=[];r.prototype.init=function(a,b,c,d){var e=Ua();this.Bm=this.Dl=this.time=e;this.Mj=a;this.Nj=b;this.x=a;this.y=b;this.id=c;this.Mh=d;this.Sh=this.Vj=!1};r.prototype.update=function(a,b,c){this.Dl=this.time;this.time=a;this.x=b;this.y=c;!this.Sh&&15<=Qa(this.Mj,this.Nj,this.x,this.y)&&(this.Sh=!0)};r.prototype.Ot=function(a,b){!this.Vj&&500<=Ua()-this.Bm&&!this.Sh&&15>Qa(this.Mj,this.Nj,
this.x,this.y)&&(this.Vj=!0,a.qd=this.Mh,a.pg=this.id,a.Af=b,a.b.trigger(Y.prototype.j.Lq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Mq,a),a.Af=0)};var B=-1E3,p=-1E3,d=-1E4;r.prototype.Jo=function(a,b){if(!this.Vj){var c=Ua();333>=c-this.Bm&&!this.Sh&&15>Qa(this.Mj,this.Nj,this.x,this.y)&&(a.qd=this.Mh,a.pg=this.id,a.Af=b,666>=c-d&&25>Qa(B,p,this.x,this.y)?(a.b.trigger(Y.prototype.j.Iq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Jq,a),p=B=-1E3,d=-1E4):(a.b.trigger(Y.prototype.j.Uq,
a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Vq,a),B=this.x,p=this.y,d=c),a.Af=0)}};b.ea=function(){this.Ht=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Af=this.pg=this.qd=this.Cd=this.Bd=this.gn=this.en=this.dn=this.or=this.nr=this.mr=this.Ah=this.zh=this.yh=0;this.Tu=0!==this.aa[0];var a=0<this.b.yb?document:this.b.canvas,b=document;this.b.ib?b=a=window.Canvas:this.b.mc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.xh(a)},
!1),a.addEventListener("pointermove",function(a){c.wh(a)},!1),b.addEventListener("pointerup",function(a){c.Qd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Qd(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.xh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.wh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Qd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Qd(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.oj(a)},
!1),a.addEventListener("touchmove",function(a){c.nj(a)},!1),b.addEventListener("touchend",function(a){c.Yf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Yf(a,!0)},!1));if(this.Ht){var d=function(a){a=a.reading;c.dn=a.accelerationX;c.en=a.accelerationY;c.gn=a.accelerationZ},e=function(a){a=a.reading;c.yh=a.yawDegrees;c.zh=a.pitchDegrees;c.Ah=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var f=Windows.Devices.Sensors.Inclinometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),f&&f.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),f&&f.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.yh=a.alpha||
0;c.zh=a.beta||0;c.Ah=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.mr=a.accelerationIncludingGravity.x||0,c.nr=a.accelerationIncludingGravity.y||0,c.or=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.dn=a.acceleration.x||0,c.en=a.acceleration.y||0,c.gn=a.acceleration.z||0)},!1);this.Tu&&!this.b.ka&&(jQuery(document).mousemove(function(a){c.uh(a)}),jQuery(document).mousedown(function(a){c.sh(a)}),jQuery(document).mouseup(function(a){c.vh(a)}));
this.b.Ef&&!this.b.ib&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.Dc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.Lu(this)};b.wh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Hg(a.pointerId),c=Ua();if(0<=b){var d=this.b.ka?g:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.xh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.ka?g:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.qd=this.touches.length;this.pg=a.pointerId;this.touches.push(e(c,b,a.pointerId,this.qd));this.b.na=!0;this.b.trigger(Y.prototype.j.an,this);this.b.trigger(Y.prototype.j.bn,this);this.Bd=c;this.Cd=b;this.b.trigger(Y.prototype.j.kk,this);
this.b.na=!1}};b.Qd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.Hg(a.pointerId);this.qd=0<=c?this.touches[c].Mh:-1;this.pg=0<=c?this.touches[c].id:-1;this.b.na=!0;this.b.trigger(Y.prototype.j.$m,this);this.b.trigger(Y.prototype.j.jk,this);0<=c&&(b||this.touches[c].Jo(this,c),100>q.length&&q.push(this.touches[c]),this.touches.splice(c,1));this.b.na=!1}};b.nj=function(a){a.preventDefault&&a.preventDefault();
var b=Ua(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Hg(e.identifier),0<=f){var h=this.b.ka?g:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-h.left,e.pageY-h.top)}};b.oj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.ka?g:jQuery(this.b.canvas).offset();Ua();this.b.na=!0;var c,d,f,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],h=this.Hg(f.identifier),-1===h){h=f.pageX-b.left;var k=f.pageY-
b.top;this.qd=this.touches.length;this.pg=f.identifier;this.touches.push(e(h,k,f.identifier,this.qd));this.b.trigger(Y.prototype.j.an,this);this.b.trigger(Y.prototype.j.bn,this);this.Bd=h;this.Cd=k;this.b.trigger(Y.prototype.j.kk,this)}this.b.na=!1};b.Yf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.na=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Hg(e.identifier),0<=e&&(this.qd=this.touches[e].Mh,this.pg=this.touches[e].id,this.b.trigger(Y.prototype.j.$m,
this),this.b.trigger(Y.prototype.j.jk,this),b||this.touches[e].Jo(this,e),100>q.length&&q.push(this.touches[e]),this.touches.splice(e,1));this.b.na=!1};b.Zv=function(){return this.b.Ef&&0===this.yh&&0!==l?90*l:this.b.Dc&&0===this.yh&&0!==A?90*A:this.yh};b.$v=function(){return this.b.Ef&&0===this.zh&&0!==f?-90*f:this.b.Dc&&0===this.zh&&0!==h?90*h:this.zh};b.cw=function(){return this.b.Ef&&0===this.Ah&&0!==n?90*n:this.b.Dc&&0===this.Ah&&0!==t?90*t:this.Ah};b.sh=function(a){a.preventDefault&&this.b.Cf&&
!this.b.Rc&&a.preventDefault();this.oj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Pl=!0};b.uh=function(a){this.Pl&&this.nj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.vh=function(a){a.preventDefault&&this.b.Cf&&!this.b.Rc&&a.preventDefault();this.b.Cf=!0;this.Yf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Pl=!1};b.Em=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Dl=d),c.Ot(this,
a)};s.prototype.bn=function(){return!0};s.prototype.jk=function(){return!0};s.prototype.kk=function(a){return a?this.b.lg(a,this.Bd,this.Cd,!1):!1};var v=[];s.prototype.wq=function(a){if(!a)return!1;var b=a.X(),c=b.Ac(),d,e,g,f,h,k;g=0;for(f=c.length;g<f;g++){var l=c[g];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.e.wa(e.x,e.y,!0),e=l.e.wa(e.x,e.y,!1),l.gb(d,e)){v.push(l);break}}return v.length?(b.ga=!1,xa(b.d,v),a.wd(),v.length=0,!0):!1};s.prototype.an=function(a){a=Math.floor(a);
return a===this.qd};s.prototype.$m=function(a){a=Math.floor(a);return a===this.qd};s.prototype.Lq=function(){return!0};s.prototype.Uq=function(){return!0};s.prototype.Iq=function(){return!0};s.prototype.Mq=function(a){return a?this.b.lg(a,this.Bd,this.Cd,!1):!1};s.prototype.Vq=function(a){return a?this.b.lg(a,this.Bd,this.Cd,!1):!1};s.prototype.Jq=function(a){return a?this.b.lg(a,this.Bd,this.Cd,!1):!1};a.j=new s;c.prototype.lk=function(a,b){var c=this.Af;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,g,f,h;fa(b)?(d=this.b.Id(0),e=d.scale,g=d.xb,f=d.Lb,h=d.i,d.scale=1,d.xb=1,d.Lb=1,d.i=0,a.u(d.wa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.xb=g,d.Lb=f,d.i=h):(d=ha(b)?this.b.Id(b):this.b.Ig(b))?a.u(d.wa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};c.prototype.mk=function(a,b){var c=this.Af;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,g,f,h;fa(b)?(d=this.b.Id(0),e=d.scale,g=d.xb,f=d.Mb,h=d.i,d.scale=1,d.xb=1,d.Mb=1,d.i=0,a.u(d.wa(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.xb=g,d.Mb=f,d.i=h):(d=ha(b)?this.b.Id(b):this.b.Ig(b))?a.u(d.wa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};a.ab=new c})();
function oc(k){this.b=k;var m=this;this.b.ka||(jQuery(document).mousemove(function(e){m.uh(e)}),jQuery(document).mousedown(function(e){m.sh(e)}),jQuery(document).mouseup(function(e){m.vh(e)}));k=0<this.b.yb?document:this.b.canvas;this.b.ib?k=window.Canvas:this.b.mc&&(k=window);window.navigator.pointerEnabled?(k.addEventListener("pointerdown",function(e){m.xh(e)},!1),k.addEventListener("pointermove",function(e){m.wh(e)},!1),k.addEventListener("pointerup",function(e){m.Qd(e)},!1),k.addEventListener("pointercancel",
function(e){m.Qd(e)},!1)):window.navigator.msPointerEnabled?(k.addEventListener("MSPointerDown",function(e){m.xh(e)},!1),k.addEventListener("MSPointerMove",function(e){m.wh(e)},!1),k.addEventListener("MSPointerUp",function(e){m.Qd(e)},!1),k.addEventListener("MSPointerCancel",function(e){m.Qd(e)},!1)):(k.addEventListener("touchstart",function(e){m.oj(e)},!1),k.addEventListener("touchmove",function(e){m.nj(e)},!1),k.addEventListener("touchend",function(e){m.Yf(e)},!1),k.addEventListener("touchcancel",
function(e){m.Yf(e)},!1))}
(function(){function k(a){var b,c;b=0;for(c=a.G.length;b<c;b++)if(a.G[b]instanceof r.Aa)return a.G[b];return null}function m(){}function e(){}var r=oc.prototype,s={left:0,top:0};r.sh=function(a){1===a.which&&this.Vl("leftmouse",a.pageX,a.pageY)};r.uh=function(a){1===a.which&&this.Wl("leftmouse",a.pageX,a.pageY)};r.vh=function(a){1===a.which&&this.Xl("leftmouse")};r.oj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,c,e,f;b=0;for(c=a.changedTouches.length;b<c;b++)e=a.changedTouches[b],
f=e.identifier,this.Vl(f?f.toString():"<none>",e.pageX,e.pageY)};r.nj=function(a){a.preventDefault&&a.preventDefault();var b,c,e,f;b=0;for(c=a.changedTouches.length;b<c;b++)e=a.changedTouches[b],f=e.identifier,this.Wl(f?f.toString():"<none>",e.pageX,e.pageY)};r.Yf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,c,e;b=0;for(c=a.changedTouches.length;b<c;b++)e=a.changedTouches[b],e=e.identifier,this.Xl(e?e.toString():"<none>")};r.xh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Vl(a.pointerId.toString(),a.pageX,a.pageY))};r.wh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Wl(a.pointerId.toString(),a.pageX,a.pageY))};r.Qd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Xl(a.pointerId.toString()))};r.Vl=function(a,b,c){var e=this.b.ka?s:jQuery(this.b.canvas).offset();
b-=e.left;c-=e.top;var f,l,m,h,e=this.Uf.$c(),r,q,B,p=null;r=0;for(q=e.length;r<q;r++)if(B=e[r],f=k(B),f.enabled&&!f.je&&(f=B.e.wa(b,c,!0),l=B.e.wa(b,c,!1),B.ma(),B.gb(f,l)))p?B.e.index>p.e.index?(p=B,m=f,h=l):B.e.index===p.e.index&&B.Bc()>p.Bc()&&(p=B,m=f,h=l):(p=B,m=f,h=l);p&&k(p).Wt(a,m,h)};r.Wl=function(a,b,c){var e=this.b.ka?s:jQuery(this.b.canvas).offset();b-=e.left;c-=e.top;var f,l=this.Uf.$c(),m,h,r;m=0;for(h=l.length;m<h;m++)f=l[m],r=k(f),!r.enabled||!r.je||r.je&&r.Lk!==a||(e=f.e.wa(b,c,
!0),f=f.e.wa(b,c,!1),r.$t(e,f))};r.Xl=function(a){var b=this.Uf.$c(),c,e,f;c=0;for(e=b.length;c<e;c++)f=b[c],f=k(f),f.je&&f.Lk===a&&f.cu()};r.Za=function(a){this.behavior=a;this.b=a.b};r.Za.prototype.ea=function(){};r.Aa=function(a,b){this.type=a;this.behavior=a.behavior;this.Kb=b;this.b=a.b};var c=r.Aa.prototype;c.ea=function(){this.je=!1;this.Cn=this.Bn=0;this.Lk="<none>";this.tk=this.aa[0];this.enabled=0!==this.aa[1]};c.Pb=function(){return{enabled:this.enabled}};c.qc=function(a){this.enabled=
a.enabled;this.je=!1};c.Wt=function(a,b,c){this.Bn=b-this.Kb.x;this.Cn=c-this.Kb.y;this.je=!0;this.Lk=a;this.b.na=!0;this.b.trigger(oc.prototype.j.Kq,this.Kb);this.b.na=!1};c.$t=function(a,b){var c=a-this.Bn,e=b-this.Cn;if(0===this.tk){if(this.Kb.x!==c||this.Kb.y!==e)this.Kb.x=c,this.Kb.y=e,this.Kb.za()}else 1===this.tk?this.Kb.x!==c&&(this.Kb.x=c,this.Kb.za()):2===this.tk&&this.Kb.y!==e&&(this.Kb.y=e,this.Kb.za())};c.cu=function(){this.je=!1;this.b.na=!0;this.b.trigger(oc.prototype.j.Xm,this.Kb);
this.b.na=!1};c.Ya=function(){};m.prototype.Kq=function(){return!0};m.prototype.Xm=function(){return!0};r.j=new m;e.prototype.Zq=function(a){this.enabled=0!==a;this.enabled||(this.je=!1)};r.la=new e;r.ab=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,mc,Y,oc,jc.prototype.j.uq,gc.prototype.la.$q,jc.prototype.j.hk,Y.prototype.j.wq,X.prototype.la.cr,jc.prototype.j.sq,X.prototype.j.kq,X.prototype.la.Aq,X.prototype.la.qq,X.prototype.j.fr,X.prototype.la.dq,hc.prototype.la.Play,Y.prototype.j.jk,gc.prototype.j.xq,gc.prototype.la.dr,X.prototype.la.hr,X.prototype.j.Ym,oc.prototype.la.Zq,mc.prototype.j.lq,mc.prototype.la.cn,mc.prototype.ab.ir,X.prototype.j.jq,gc.prototype.ab.mq,X.prototype.la.nq,gc.prototype.ab.lk,
gc.prototype.ab.mk,Y.prototype.j.kk,oc.prototype.j.Xm,gc.prototype.j.vq,gc.prototype.la.oq,X.prototype.la.Xq,X.prototype.la.Yq,lc.prototype.la.br]};
