// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa={},ba,ca,G,da,ea,fa,M,ga,ia,ja,ka,N,ma,oa,pa,qa,ra,sa,ua,va,wa,xa,O,ya,za,Aa,Ba,Ca,Da,Fa,Ga,Ha,Ia,S,Ja,La,Ma,Na,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,rb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(d,k,p,v){this.set(d,k,p,v)}function r(){this.cc=this.ac=this.gc=this.fc=this.pc=this.oc=this.mb=this.lb=0}function b(d,k,p,v){d<k?p<v?(t=d<p?d:p,z=k>v?k:v):(t=d<v?d:v,z=k>p?k:p):p<v?(t=k<p?k:p,z=d>v?d:v):(t=k<v?k:v,z=d>p?d:p)}function e(){this.items=this.Sc=null;this.vf=0;n&&(this.Sc=new Set);this.Xf=[];this.Md=!0}function q(d){l[y++]=d}function c(){this.fa=this.nj=this.y=this.Oj=0}function a(d){this.Na=[];this.Bh=this.Dh=this.Eh=this.Ch=0;this.ih(d)}function f(d,k){this.Oq=
d;this.Nq=k;this.cells={}}function s(d,k,p){var v;return E.length?(v=E.pop(),v.ks=d,v.x=k,v.y=p,v):new ba(d,k,p)}function h(d,k,p){this.ks=d;this.x=k;this.y=p;this.Sg=new ca}G=function(d){window.console&&window.console.log&&window.console.log(d)};da=function(d){window.console&&window.console.error&&window.console.error(d)};ea=function(d){return"undefined"===typeof d};fa=function(d){return"number"===typeof d};M=function(d){return"string"===typeof d};ga=function(d){return 0>d?-d:d};ia=function(d,k){return d>
k?d:k};ja=function(d,k){return d<k?d:k};ka=Math.PI;N=function(d){return 0<=d?d|0:(d|0)-1};ma=function(d){var k=d|0;return k===d?k:k+1};oa=function(d,k,p,v,a,c,l,b){var f,n,e,m;d<p?(n=d,f=p):(n=p,f=d);a<l?(m=a,e=l):(m=l,e=a);if(f<m||n>e)return!1;k<v?(n=k,f=v):(n=v,f=k);c<b?(m=c,e=b):(m=b,e=c);if(f<m||n>e)return!1;f=a-d+l-p;n=c-k+b-v;d=p-d;k=v-k;a=l-a;c=b-c;b=ga(k*a-c*d);return ga(a*n-c*f)>b?!1:ga(d*n-k*f)<=b};g.prototype.set=function(d,k,p,v){this.left=d;this.top=k;this.right=p;this.bottom=v};g.prototype.Qq=
function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(d,k){this.left+=d;this.top+=k;this.right+=d;this.bottom+=k;return this};g.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)};g.prototype.bn=function(d){return!(d.right<
this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};g.prototype.cn=function(d,k,p){return!(d.right+k<this.left||d.bottom+p<this.top||d.left+k>this.right||d.top+p>this.bottom)};g.prototype.cb=function(d,k){return d>=this.left&&d<=this.right&&k>=this.top&&k<=this.bottom};g.prototype.dr=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};pa=g;r.prototype.Nf=function(d){this.lb=d.left;this.mb=d.top;this.oc=d.right;this.pc=d.top;this.fc=
d.right;this.gc=d.bottom;this.ac=d.left;this.cc=d.bottom};r.prototype.po=function(d,k){if(0===k)this.Nf(d);else{var p=Math.sin(k),v=Math.cos(k),a=d.left*p,c=d.top*p,l=d.right*p,p=d.bottom*p,b=d.left*v,f=d.top*v,n=d.right*v,v=d.bottom*v;this.lb=b-c;this.mb=f+a;this.oc=n-c;this.pc=f+l;this.fc=n-p;this.gc=v+l;this.ac=b-p;this.cc=v+a}};r.prototype.offset=function(d,k){this.lb+=d;this.mb+=k;this.oc+=d;this.pc+=k;this.fc+=d;this.gc+=k;this.ac+=d;this.cc+=k;return this};var t=0,z=0;r.prototype.tm=function(d){b(this.lb,
this.oc,this.fc,this.ac);d.left=t;d.right=z;b(this.mb,this.pc,this.gc,this.cc);d.top=t;d.bottom=z};r.prototype.cb=function(d,k){var p=this.oc-this.lb,v=this.pc-this.mb,a=this.fc-this.lb,c=this.gc-this.mb,l=d-this.lb,b=k-this.mb,f=p*p+v*v,n=p*a+v*c,v=p*l+v*b,e=a*a+c*c,m=a*l+c*b,y=1/(f*e-n*n),p=(e*v-n*m)*y,f=(f*m-n*v)*y;if(0<=p&&0<f&&1>p+f)return!0;p=this.ac-this.lb;v=this.cc-this.mb;f=p*p+v*v;n=p*a+v*c;v=p*l+v*b;y=1/(f*e-n*n);p=(e*v-n*m)*y;f=(f*m-n*v)*y;return 0<=p&&0<f&&1>p+f};r.prototype.sc=function(d,
k){if(k)switch(d){case 0:return this.lb;case 1:return this.oc;case 2:return this.fc;case 3:return this.ac;case 4:return this.lb;default:return this.lb}else switch(d){case 0:return this.mb;case 1:return this.pc;case 2:return this.gc;case 3:return this.cc;case 4:return this.mb;default:return this.mb}};r.prototype.xn=function(){return(this.lb+this.oc+this.fc+this.ac)/4};r.prototype.yn=function(){return(this.mb+this.pc+this.gc+this.cc)/4};r.prototype.yg=function(d,k,p,a){if(this.cb(d,k)||this.cb(p,a))return!0;
var c,l,b,f,n;for(n=0;4>n;n++)if(c=this.sc(n,!0),l=this.sc(n,!1),b=this.sc(n+1,!0),f=this.sc(n+1,!1),oa(d,k,p,a,c,l,b,f))return!0;return!1};r.prototype.an=function(d){var k=d.xn(),p=d.yn();if(this.cb(k,p))return!0;k=this.xn();p=this.yn();if(d.cb(k,p))return!0;var a,c,l,b,f,n,e,m;for(e=0;4>e;e++)for(m=0;4>m;m++)if(k=this.sc(e,!0),p=this.sc(e,!1),a=this.sc(e+1,!0),c=this.sc(e+1,!1),l=d.sc(m,!0),b=d.sc(m,!1),f=d.sc(m+1,!0),n=d.sc(m+1,!1),oa(k,p,a,c,l,b,f,n))return!0;return!1};qa=r;ra=function(d,k){for(var p in k)k.hasOwnProperty(p)&&
(d[p]=k[p]);return d};sa=function(d,k){var p,a;k=N(k);if(!(0>k||k>=d.length)){p=k;for(a=d.length-1;p<a;p++)d[p]=d[p+1];d.length=a}};ua=function(d,k){d.length=k.length;var p,a;p=0;for(a=k.length;p<a;p++)d[p]=k[p]};va=function(d,k){d.push.apply(d,k)};wa=function(d,k){var p,a;p=0;for(a=d.length;p<a;++p)if(d[p]===k)return p;return-1};xa=function(d,k){var p=wa(d,k);-1!==p&&sa(d,p)};O=function(d){return d/(180/ka)};ya=function(d){return 180/ka*d};za=function(d){d%=360;0>d&&(d+=360);return d};Aa=function(d){d%=
2*ka;0>d&&(d+=2*ka);return d};Ba=function(d){return za(ya(d))};Ca=function(d){return Aa(O(d))};Da=function(d,k,p,a){return Math.atan2(a-k,p-d)};Fa=function(d,k){if(d===k)return 0;var p=Math.sin(d),a=Math.cos(d),c=Math.sin(k),l=Math.cos(k),p=p*c+a*l;return 1<=p?0:-1>=p?ka:Math.acos(p)};Ga=function(d,k,p){var a=Math.sin(d),c=Math.cos(d),l=Math.sin(k),b=Math.cos(k);return Math.acos(a*l+c*b)>p?0<c*l-a*b?Aa(d+p):Aa(d-p):Aa(k)};Ha=function(d,k){var p=Math.sin(d),a=Math.cos(d),c=Math.sin(k),l=Math.cos(k);
return 0>=a*c-p*l};Ia=function(d,k,p,a,c,l){if(0===p)return l?d:k;var b=Math.sin(p);p=Math.cos(p);d-=a;k-=c;var f=d*b;d=d*p-k*b;k=k*p+f;return l?d+a:k+c};S=function(d,k,p,a){d=p-d;k=a-k;return Math.sqrt(d*d+k*k)};Ja=function(d,k){return!d!==!k};La=function(d){for(var k in d)if(d.hasOwnProperty(k))return!0;return!1};Ma=function(d){for(var k in d)d.hasOwnProperty(k)&&delete d[k]};var x=+new Date;Na=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()-x};var u=!1,B=u=!1,C=!1;"undefined"!==typeof window&&(u=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),u=!u&&/safari/i.test(navigator.userAgent),B=/(iphone|ipod|ipad)/i.test(navigator.userAgent),C=window.c2ejecta);var n=!u&&!C&&!B&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;
e.prototype.contains=function(d){return this.rf()?!1:n?this.Sc.has(d):this.items&&this.items.hasOwnProperty(d)};e.prototype.add=function(d){if(n)this.Sc.has(d)||(this.Sc.add(d),this.Md=!1);else{var k=d.toString(),p=this.items;p?p.hasOwnProperty(k)||(p[k]=d,this.vf++,this.Md=!1):(this.items={},this.items[k]=d,this.vf=1,this.Md=!1)}};e.prototype.remove=function(d){if(!this.rf())if(n)this.Sc.has(d)&&(this.Sc["delete"](d),this.Md=!1);else if(this.items){d=d.toString();var k=this.items;k.hasOwnProperty(d)&&
(delete k[d],this.vf--,this.Md=!1)}};e.prototype.clear=function(){this.rf()||(n?this.Sc.clear():(this.items=null,this.vf=0),this.Xf.length=0,this.Md=!0)};e.prototype.rf=function(){return 0===this.count()};e.prototype.count=function(){return n?this.Sc.size:this.vf};var l=null,y=0;e.prototype.Nt=function(){if(!this.Md){if(n)this.Xf.length=this.Sc.size,l=this.Xf,y=0,this.Sc.forEach(q),l=null,y=0;else{var d=this.Xf;d.length=this.vf;var k,p=0,a=this.items;if(a)for(k in a)a.hasOwnProperty(k)&&(d[p++]=a[k])}this.Md=
!0}};e.prototype.Hc=function(){this.Nt();return this.Xf};ca=e;new ca;Ua=function(d,k){n?Sa(d,k.Sc):Ta(d,k.Hc())};Sa=function(d,k){var p,a,c,l;a=p=0;for(c=d.length;p<c;++p)l=d[p],k.has(l)||(d[a++]=l);d.length=a};Ta=function(d,k){var p,a,c,l;a=p=0;for(c=d.length;p<c;++p)l=d[p],-1===wa(k,l)&&(d[a++]=l);d.length=a};c.prototype.add=function(d){this.y=d-this.Oj;this.nj=this.fa+this.y;this.Oj=this.nj-this.fa-this.y;this.fa=this.nj};c.prototype.reset=function(){this.fa=this.nj=this.y=this.Oj=0};Va=c;Wa=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};a.prototype.ih=function(d){this.co=d;this.Dc=d.length/2;this.Na.length=d.length;this.Fh=this.Gh=-1;this.vm=0};a.prototype.Ge=function(){return!this.co.length};a.prototype.xa=function(){for(var d=this.Na,k=d[0],p=k,a=d[1],c=a,l,b,f=1,n=this.Dc;f<n;++f)b=2*f,l=d[b],b=d[b+1],l<k&&(k=l),l>p&&(p=l),b<a&&(a=b),b>c&&(c=b);this.Ch=k;this.Dh=p;this.Eh=a;this.Bh=c};a.prototype.Nf=function(d,k,p){this.Na.length=8;this.Dc=4;var a=this.Na;a[0]=d.left-k;a[1]=d.top-p;a[2]=d.right-k;a[3]=d.top-p;a[4]=d.right-
k;a[5]=d.bottom-p;a[6]=d.left-k;a[7]=d.bottom-p;this.Gh=d.right-d.left;this.Fh=d.bottom-d.top;this.xa()};a.prototype.Mf=function(d,k,p,a,c){this.Na.length=8;this.Dc=4;var l=this.Na;l[0]=d.lb-k;l[1]=d.mb-p;l[2]=d.oc-k;l[3]=d.pc-p;l[4]=d.fc-k;l[5]=d.gc-p;l[6]=d.ac-k;l[7]=d.cc-p;this.Gh=a;this.Fh=c;this.xa()};a.prototype.oo=function(d){this.Dc=d.Dc;ua(this.Na,d.Na);this.Ch=d.Ch;this.Eh-d.Eh;this.Dh=d.Dh;this.Bh=d.Bh};a.prototype.ke=function(d,k,p){if(this.Gh!==d||this.Fh!==k||this.vm!==p){this.Gh=d;
this.Fh=k;this.vm=p;var a,c,l,b,f,n=0,e=1,m=this.co,y=this.Na;0!==p&&(n=Math.sin(p),e=Math.cos(p));p=0;for(l=this.Dc;p<l;p++)a=2*p,c=a+1,b=m[a]*d,f=m[c]*k,y[a]=b*e-f*n,y[c]=f*e+b*n;this.xa()}};a.prototype.cb=function(d,k){var p=this.Na;if(d===p[0]&&k===p[1])return!0;var a,c,l,b=this.Dc,f=this.Ch-110,n=this.Eh-101,e=this.Dh+131,m=this.Bh+120,y,s,q=0,u=0;for(a=0;a<b;a++)c=2*a,l=(a+1)%b*2,y=p[c],c=p[c+1],s=p[l],l=p[l+1],oa(f,n,d,k,y,c,s,l)&&q++,oa(e,m,d,k,y,c,s,l)&&u++;return 1===q%2||1===u%2};a.prototype.xg=
function(d,k,p){var a=d.Na,c=this.Na;if(this.cb(a[0]+k,a[1]+p)||d.cb(c[0]-k,c[1]-p))return!0;var l,b,f,n,e,m,y,s,q,u,h,t;l=0;for(n=this.Dc;l<n;l++)for(b=2*l,f=(l+1)%n*2,s=c[b],b=c[b+1],q=c[f],u=c[f+1],f=0,y=d.Dc;f<y;f++)if(e=2*f,m=(f+1)%y*2,h=a[e]+k,e=a[e+1]+p,t=a[m]+k,m=a[m+1]+p,oa(s,b,q,u,h,e,t,m))return!0;return!1};a.prototype.yg=function(d,k,p,a,c,l){var b=this.Na;if(this.cb(p-d,a-k))return!0;var f,n,e,m,y,s;f=0;for(n=this.Dc;f<n;f++)if(e=2*f,m=(f+1)%n*2,y=b[e]+d,e=b[e+1]+k,s=b[m]+d,m=b[m+1]+
k,oa(p,a,c,l,y,e,s,m))return!0;return!1};Xa=a;f.prototype.kk=function(d,k,p){var a;a=this.cells[d];return a?(a=a[k])?a:p?(a=s(this,d,k),this.cells[d][k]=a):null:p?(a=s(this,d,k),this.cells[d]={},this.cells[d][k]=a):null};f.prototype.wh=function(d){return N(d/this.Oq)};f.prototype.xh=function(d){return N(d/this.Nq)};f.prototype.update=function(d,k,p){var a,c,l,b,f;if(k)for(a=k.left,c=k.right;a<=c;++a)for(l=k.top,b=k.bottom;l<=b;++l)if(!p||!p.cb(a,l))if(f=this.kk(a,l,!1))f.remove(d),f.rf()&&(f.Sg.clear(),
1E3>E.length&&E.push(f),this.cells[a][l]=null);if(p)for(a=p.left,c=p.right;a<=c;++a)for(l=p.top,b=p.bottom;l<=b;++l)k&&k.cb(a,l)||this.kk(a,l,!0).ts(d)};f.prototype.ho=function(d,k){var p,a,c,l,b,f;p=this.wh(d.left);c=this.xh(d.top);a=this.wh(d.right);for(b=this.xh(d.bottom);p<=a;++p)for(l=c;l<=b;++l)(f=this.kk(p,l,!1))&&f.dump(k)};Ya=f;var E=[];h.prototype.rf=function(){return this.Sg.rf()};h.prototype.ts=function(d){this.Sg.add(d)};h.prototype.remove=function(d){this.Sg.remove(d)};h.prototype.dump=
function(d){va(d,this.Sg.Hc())};ba=h;var m="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(d){return 0>=d||11<=d?"source-over":m[d-1]};$a=function(d,k,p){if(p)switch(d.sb=p.ONE,d.qb=p.ONE_MINUS_SRC_ALPHA,k){case 1:d.sb=p.ONE;d.qb=p.ONE;break;case 3:d.sb=p.ONE;d.qb=p.ZERO;break;case 4:d.sb=p.ONE_MINUS_DST_ALPHA;d.qb=p.ONE;break;case 5:d.sb=p.DST_ALPHA;d.qb=p.ZERO;break;case 6:d.sb=p.ZERO;d.qb=p.SRC_ALPHA;break;
case 7:d.sb=p.ONE_MINUS_DST_ALPHA;d.qb=p.ZERO;break;case 8:d.sb=p.ZERO;d.qb=p.ONE_MINUS_SRC_ALPHA;break;case 9:d.sb=p.DST_ALPHA;d.qb=p.ONE_MINUS_SRC_ALPHA;break;case 10:d.sb=p.ONE_MINUS_DST_ALPHA,d.qb=p.SRC_ALPHA}};ab=function(d){return Math.round(1E6*d)/1E6};bb=function(d,k){return"string"!==typeof d||"string"!==typeof k||d.length!==k.length?!1:d===k?!0:d.toLowerCase()===k.toLowerCase()};cb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||bb(d.tagName,
"canvas")?!0:!1}})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function r(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var k=this;this.Bc=(this.Ag=/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.c2isphonegap&&window.c2isphonegap;this.rb=!!d.dc;this.qf="undefined"!==typeof window.AppMobi||this.rb;this.ub=!!window.c2cocoonjs;this.Nc=!!window.c2ejecta;this.ub&&(CocoonJS.App.onSuspended.addEventListener(function(){k.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){k.setSuspended(!1)}));this.Nc&&(document.addEventListener("pagehide",function(){k.setSuspended(!0)}),document.addEventListener("pageshow",
function(){k.setSuspended(!1)}),document.addEventListener("resize",function(){k.setSize(window.innerWidth,window.innerHeight)}));this.wa=this.rb||this.ub||this.Nc;this.yk=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.mn=/tizen/i.test(navigator.userAgent);this.hi=/android/i.test(navigator.userAgent)&&!this.mn&&!this.yk;this.Ek=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.yk;this.qn=/ipad/i.test(navigator.userAgent);
this.oi=this.Ek||this.qn||this.Nc;this.Ds=this.Ek&&/os\s6/i.test(navigator.userAgent);this.zg=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.dn=/amazonwebappplatform/i.test(navigator.userAgent);this.ws=/firefox/i.test(navigator.userAgent);this.jn=/safari/i.test(navigator.userAgent)&&!this.zg&&!this.yk;this.zs=/windows/i.test(navigator.userAgent);this.Rd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.Bs=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Cs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ki=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.on=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.nn=this.Bs||this.Cs||this.on;this.us=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ji=this.hi&&!this.zg&&!this.Ag&&!this.ws&&!this.dn&&!this.wa;this.devicePixelRatio=1;this.$c=this.Bc||
this.Ag||this.qf||this.ub||this.hi||this.oi||this.ki||this.on||this.us||this.mn||this.Nc;this.$c||(this.$c=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Rd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Rd=!0);this.vs="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=d;this.wm=document.getElementById("c2canvasdiv");
this.ra=this.ja=this.sd=null;this.fk="";this.Vh=!1;this.Gn=this.Hn=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.rb&&(window.c2runtime=this);this.Rd&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());this.ji&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=d.width;this.height=d.height;this.S=this.width;this.R=this.height;this.Kh=this.width;this.Jh=this.height;this.Ig=window.innerWidth;this.Hg=window.innerHeight;this.Fr=!1;this.na=!0;this.Cg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.Ia=[];this.Ik={};this.Qc=[];this.bk={};this.nd=[];this.Zf=[];this.wj=[];this.Hj=[];this.Eq=[];this.rn=this.Bl=null;this.oe={};this.zk=this.Qd=!1;this.Oc=0;this.Bk=!1;this.Mc=[];this.vd=this.zb=this.xi=
this.rl="";this.mh=this.so=!1;this.Vj=this.Mg=this.md=this.re=0;this.Ve=1;this.Ib=new Va;this.gd=new Va;this.si=0;this.wn=!0;this.Gi=this.Yh=this.hf=this.Rf=this.Jg=this.ek=0;this.le=null;this.Ph=[];this.ak=[];this.Rh=-1;this.Mk=[[]];this.Il=this.Ci=0;this.Ti(null);this.ig=this.Bn=this.Rg=0;this.nh=[];this.rj=this.Ui=-1;this.uf=!0;this.Bi=0;this.Bg=!1;this.Bt=0;this.cf=null;this.ls=!1;this.Gk=0;this.Ea=this.of=this.il=!1;this.Fn=new ca;this.Sk=new ca;this.Tk=new ca;this.Wi=[];this.Uc=new Xa([]);this.El=
new Xa([]);this.Kd=[];this.tg={};this.ef={};this.bf={};this.Yf={};this.rm={};this.un=this.vi=this.Ub=this.mc=this.tn=this.ti=this.qa=null;this.Wf=this.Dk=!1;this.gk=[null,null];this.ve=0;this.Uh="";this.Vd={};this.jj=this.xf=null;this.Fi=[];this.gt()}}function e(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(d,k,p,a){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=e;c.onerror=a;c.onsuccess=function(c){c=c.target.result;c.onerror=a;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,
data:k}).onsuccess=p}}function c(d,k,p){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=e;a.onerror=p;a.onsuccess=function(a){a=a.target.result;a.onerror=p;var c=a.transaction(["saves"]).objectStore("saves").get(d);c.onsuccess=function(){c.result?k(c.result.data):k(null)}}}function a(){G("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function f(d){var k,p=
{};for(k in d)!d.hasOwnProperty(k)||d[k]instanceof ca||d[k]&&"undefined"!==typeof d[k].Uu||(p[k]=d[k]);return p}b.prototype.gt=function(){var d=this,k;k=this.ki?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;k.open("GET","data.js",!0);var p=!1;if(!this.wa&&"response"in k&&"responseType"in k)try{k.responseType="json",p="json"===k.responseType}catch(a){p=!1}if(!p&&"responseType"in k)try{k.responseType="text"}catch(c){}if("overrideMimeType"in k)try{k.overrideMimeType("application/json; charset=utf-8")}catch(l){}k.onload=
function(){if(p)d.Lk(k.response);else if(d.Nc){var a=k.responseText,a=a.substr(a.indexOf("{"));d.Lk(JSON.parse(a))}else d.Lk(JSON.parse(k.responseText))};k.onerror=function(d){da("Error requesting data.js:");da(d)};k.send()};b.prototype.rs=function(){var d=this,k,p,a,c,l,b,f,n,e;this.devicePixelRatio=(this.Ee=(!this.wa||this.Nc)&&this.Ot&&!this.ji)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.pb();p=!(!this.Fr&&(!this.Ij||
this.Rd||this.nn||this.ki||this.Ag||this.Bc||this.dn));0<this.Gb&&this.setSize(g(),r(),!0);try{this.br&&(this.ub||this.Nc||!this.wa)&&(k={alpha:p,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.sd=this.canvas.getContext("webgl",k)||this.canvas.getContext("experimental-webgl",k))}catch(m){}if(this.sd){this.wa||(this.gb=document.createElement("canvas"),jQuery(this.gb).appendTo(this.canvas.parentNode),this.gb.oncontextmenu=function(){return!1},this.gb.onselectstart=function(){return!1},this.gb.width=
this.Kh,this.gb.height=this.Jh,jQuery(this.gb).css({width:this.Kh+"px",height:this.Jh+"px"}),this.Zn(),this.dl=this.gb.getContext("2d"));this.ja=new aa.cu(this.sd,this.$c);this.ja.hh(this.canvas.width,this.canvas.height);this.ja.Wu=0!==this.Zq;this.ra=null;this.canvas.addEventListener("webglcontextlost",function(k){k.preventDefault();d.Os();G("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.ja.iv();d.ja.hh(d.ja.width,
d.ja.height,!0);d.mc=null;d.Ub=null;d.gk[0]=null;d.gk[1]=null;d.Ps();d.na=!0;G("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);k=0;for(p=this.u.length;k<p;k++)for(l=this.u[k],a=0,c=l.O.length;a<c;a++)f=l.O[a],f.jb=this.ja.Sm(f.id),this.Wf=this.Wf||this.ja.Ri(f.jb);k=0;for(p=this.Qc.length;k<p;k++){n=this.Qc[k];a=0;for(c=n.O.length;a<c;a++)f=n.O[a],f.jb=this.ja.Sm(f.id);a=0;for(c=n.T.length;a<c;a++)for(e=n.T[a],l=0,b=e.O.length;l<b;l++)f=e.O[l],f.jb=this.ja.Sm(f.id),this.Wf=
this.Wf||this.ja.Ri(f.jb)}}else{if(0<this.Gb&&this.rb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ra=AppMobi.canvas.getContext("2d");try{this.ra.samplingMode=this.la?"smooth":"sharp",this.ra.globalScale=1,this.ra.HTML5CompatibilityMode=!0,this.ra.imageSmoothingEnabled=this.la}catch(y){}0!==this.width&&0!==this.height&&(this.ra.width=this.width,this.ra.height=this.height)}this.ra||(k=this.ub?{antialias:!!this.la,alpha:p}:{alpha:p},
this.ra=this.canvas.getContext("2d",k),this.ra.webkitImageSmoothingEnabled=this.la,this.ra.mozImageSmoothingEnabled=this.la,this.ra.msImageSmoothingEnabled=this.la,this.ra.imageSmoothingEnabled=this.la);this.dl=this.gb=null}this.qj=function(){d.Ba(!1)};window==window.top||this.wa||this.nn||this.ki||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ub&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(G("Reloading for continuous preview"),this.xi="__c2_continuouspreview",this.mh=!0),this.Xs&&!this.$c&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.wa||(k=function(d){cb(d)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",
k):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",k):document.addEventListener("touchstart",k),document.addEventListener("mousedown",k));0===this.Gb&&this.Ee&&1<this.devicePixelRatio&&this.setSize(this.Za,this.Ya,!0);this.Go();this.gs();this.go();this.G={}};b.prototype.setSize=function(d,k,p){var a=0,c=0,l=0,f=0,f=0,b=this.Ds&&this.jn&&!navigator.standalone&&!this.wa&&!this.Bc;b&&(k+=60);if(this.Ig!==d||this.Hg!==k||p){this.Ig=d;this.Hg=k;var n=this.Gb,e=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Bg)&&!this.Bc;if(e||0!==this.Gb||p)e&&0<this.ve&&(n=this.ve),p=this.devicePixelRatio,4<=n?(l=this.Za/this.Ya,d/k>l?(l*=k,5===n?(f=l*p/this.Za,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),l=this.Za*f/p,f=this.Ya*f/p,a=(d-l)/2,c=(k-f)/2,d=l,k=f):(a=(d-l)/2,d=l)):(f=d/l,5===n?(f=f*p/this.Ya,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),l=this.Za*f/p,f=this.Ya*f/p,a=(d-l)/2,c=(k-f)/2,d=l):c=(k-f)/2,k=f),e&&!this.Rd&&
(c=a=0)):this.Rd&&this.Bg&&0===this.Jm&&(a=Math.floor((d-this.Za)/2),c=Math.floor((k-this.Ya)/2),d=this.Za,k=this.Ya),2>n&&(this.bg=p),this.Ee&&this.qn&&1<p&&(1024<=d&&(d=1023),1024<=k&&(k=1023)),this.Kh=Math.round(d),this.Jh=Math.round(k),this.width=Math.round(d*p),this.height=Math.round(k*p),this.na=!0,this.Uo?(this.S=this.width,this.R=this.height,this.yc=!0):this.width<this.Za&&this.height<this.Ya||1===n?(this.S=this.width,this.R=this.height,this.yc=!0):(this.S=this.Za,this.R=this.Ya,this.yc=!1,
2===n?(l=this.Za/this.Ya,n=this.Ig/this.Hg,n<l?this.S=this.R*n:n>l&&(this.R=this.S/n)):3===n&&(l=this.Za/this.Ya,n=this.Ig/this.Hg,n>l?this.S=this.R*n:n<l&&(this.R=this.S/n))),this.wm&&!this.wa&&(jQuery(this.wm).css({width:Math.round(d)+"px",height:Math.round(k)+"px","margin-left":Math.floor(a)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(k)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*p),this.canvas.height=
Math.round(k*p),this.Nc?(this.canvas.style.left=Math.floor(a)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(k)+"px"):this.Ee&&!this.wa&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(k)+"px"})),this.gb&&(this.gb.width=Math.round(d),this.gb.height=Math.round(k),jQuery(this.gb).css({width:Math.round(d)+"px",height:Math.round(k)+"px"})),this.ja&&this.ja.hh(Math.round(d*p),Math.round(k*p)),this.rb&&this.ra&&
(this.ra.width=Math.round(d),this.ra.height=Math.round(k)),this.ra&&(this.ra.webkitImageSmoothingEnabled=this.la,this.ra.mozImageSmoothingEnabled=this.la,this.ra.msImageSmoothingEnabled=this.la,this.ra.imageSmoothingEnabled=this.la),this.Go(),this.wa||!b&&!this.Ek||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.Go=function(){if(this.Gq&&0!==this.bl){var d="portrait";2===this.bl&&(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)}};b.prototype.Os=function(){this.ja.Vu();this.Dk=!0;var d,k,p;d=0;for(k=this.u.length;d<k;d++)p=this.u[d],p.Jn&&p.Jn()};b.prototype.Ps=function(){this.Dk=!1;var d,k,p;d=0;for(k=this.u.length;d<k;d++)p=this.u[d],p.Mn&&p.Mn()};b.prototype.Zn=function(){if(!this.wa){var d=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.Bg)&&!this.Bc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.gb).css(d)}};var s=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(d){var k;if(d&&!this.Cg)for(G("[Construct 2] Suspending"),this.Cg=!0,-1!==this.Ui&&s&&s(this.Ui),-1!==this.rj&&clearTimeout(this.rj),
d=0,k=this.nh.length;d<k;d++)this.nh[d](!0);else if(!d&&this.Cg){G("[Construct 2] Resuming");this.Cg=!1;this.si=Na();this.Jg=Na();d=this.Mg=this.Yh=0;for(k=this.nh.length;d<k;d++)this.nh[d](!1);this.Ba(!1)}};b.prototype.Dq=function(d){this.nh.push(d)};b.prototype.Id=function(d){return this.Fi[d]};b.prototype.Lk=function(d){d&&d.project||da("Project model unavailable");d=d.project;this.name=d[0];this.Im=d[1];this.Gb=d[12];this.Jm=d[12];this.Za=d[10];this.Ya=d[11];this.Vn=this.Za/2;this.Wn=this.Ya/
2;this.wa&&!this.Nc&&(4<=d[12]||0===d[12])&&(G("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Jm=this.Gb=3);this.Ml=d[18];this.Lg=d[19];0===this.Lg&&(this.xf=new Image,this.xf.src="loading-logo.png");this.Rg=d[21];this.Fi=Vb();this.ed=new U(this);var k,p,a,c,l,f,b,n,e;k=0;for(p=d[2].length;k<p;k++)b=d[2][k],a=this.Id(b[0]),db(b,a.prototype),e=new a(this),e.ij=b[1],e.Sd=b[2],e.An=b[9],e.J&&e.J(),this.plugins.push(e);this.Fi=
Vb();k=0;for(p=d[3].length;k<p;k++){b=d[3][k];l=this.Id(b[1]);e=null;a=0;for(c=this.plugins.length;a<c;a++)if(this.plugins[a]instanceof l){e=this.plugins[a];break}var m=new e.ba(e);m.name=b[0];m.Y=b[2];m.xk=b[3].slice(0);m.Qt=b[3].length;m.Hq=b[4];m.Hr=b[5];m.V=b[11];m.Y?(m.Af=[],m.od=this.ig++,m.za=null):(m.Af=null,m.od=-1,m.za=[]);m.Sh=null;m.kf=null;m.Em=null;m.jc=!1;m.Qb=null;b[6]?(m.zo=b[6][0],m.Ao=b[6][1],m.Ht=b[6][2]):(m.zo=null,m.Ao=0,m.Ht=0);m.Pb=b[7]?b[7]:null;m.index=k;m.i=[];m.Nh=[];m.$d=
[new eb(m)];m.ld=0;m.wc=null;m.Xq=0;m.Qf=!0;m.xj=fb;m.Om=gb;m.Sr=hb;m.X=ib;m.ah=jb;m.Si=kb;m.Oe=lb;m.$h=mb;m.jk=nb;m.mk=rb;m.rc=sb;m.Pm=tb;m.dg=new Ya(this.Za,this.Ya);m.zh=!0;m.Ah=!1;m.G={};m.toString=ub;m.Ia=[];a=0;for(c=b[8].length;a<c;a++){n=b[8][a];var y=this.Id(n[1]),s=null;l=0;for(f=this.Ia.length;l<f;l++)if(this.Ia[l]instanceof y){s=this.Ia[l];break}s||(s=new y(this),s.Ei=[],s.Pg=new ca,s.J&&s.J(),this.Ia.push(s),Wb&&s instanceof Wb&&(this.Bl=s),Xb&&s instanceof Xb&&(this.rn=s));-1===s.Ei.indexOf(m)&&
s.Ei.push(m);l=new s.ba(s,m);l.name=n[0];l.V=n[2];l.J();m.Ia.push(l)}m.global=b[9];m.Ak=b[10];m.O=[];a=0;for(c=b[12].length;a<c;a++)m.O.push({id:b[12][a][0],name:b[12][a][1],jb:-1,Zb:!0,index:a});m.qv=b[13];this.Ml&&!m.Y&&!m.Ak&&e.Sd||m.J();m.name&&(this.types[m.name]=m);this.u.push(m);e.ij&&(a=new e.P(m),a.uid=this.Rg++,a.eo=this.Bn++,a.Be=0,a.rg=vb,a.toString=wb,a.H=b[14],a.J(),m.i.push(a),this.Vd[a.uid.toString()]=a)}k=0;for(p=d[4].length;k<p;k++)for(l=d[4][k],f=this.u[l[0]],a=1,c=l.length;a<c;a++)b=
this.u[l[a]],b.za.push(f),f.Af.push(b);k=0;for(p=d[27].length;k<p;k++){l=d[27][k];f=[];a=0;for(c=l.length;a<c;a++)f.push(this.u[l[a]]);a=0;for(c=f.length;a<c;a++)f[a].jc=!0,f[a].Qb=f}if(0<this.ig)for(k=0,p=this.u.length;k<p;k++)if(b=this.u[k],!b.Y&&b.za.length){b.Sh=Array(this.ig);b.kf=Array(this.ig);b.Em=Array(this.ig);m=[];a=s=y=n=0;for(c=b.za.length;a<c;a++)for(e=b.za[a],b.Sh[e.od]=n,n+=e.Qt,b.kf[e.od]=y,y+=e.Hq,b.Em[e.od]=s,s+=e.Hr,l=0,f=e.O.length;l<f;l++)m.push(ra({},e.O[l]));b.O=m.concat(b.O);
a=0;for(c=b.O.length;a<c;a++)b.O[a].index=a}k=0;for(p=d[5].length;k<p;k++)b=d[5][k],a=new xb(this,b),this.Ik[a.name]=a,this.Qc.push(a);k=0;for(p=d[6].length;k<p;k++)b=d[6][k],a=new yb(this,b),this.bk[a.name]=a,this.nd.push(a);k=0;for(p=this.nd.length;k<p;k++)this.nd[k].Ha();k=0;for(p=this.nd.length;k<p;k++)this.nd[k].Kl();k=0;for(p=this.wj.length;k<p;k++)this.wj[k].Ha();this.wj.length=0;this.Fq=d[7];this.Uh=d[8];this.If=d[9];this.bg=1;this.br=d[13];this.la=d[14];this.Ij=d[15];this.Ot=d[17];this.bl=
d[20];this.Gq=0<this.bl;this.Xs=d[22];this.yc=this.Uo=d[23];this.Zq=d[24];this.bt=d[25];this.kj=Date.now();this.Fi.length=0;this.rs()};var h=!1;b.prototype.Rt=function(d,k){d.cocoonLazyLoad=!0;d.onerror=function(k){h=d.um=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",k)};this.Nc?d.src=k:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(k,function(k){d.src=k},function(a){h=d.um=!0;console&&console.error&&console.error("Error extracting image '"+k+"' from expansion file: ",
a)}):d.src=k);this.Zf.push(d)};b.prototype.Er=function(d){var k,a;k=0;for(a=this.Zf.length;k<a;k++)if(this.Zf[k].Sq===d)return this.Zf[k];return null};var t=0,z=!1;b.prototype.gs=function(){this.cf&&(t=this.cf.zt(this.Fq))};b.prototype.qm=function(){var d=t,k=0,a=0,c=!0,l,b,a=0;for(l=this.Zf.length;a<l;a++){b=this.Zf[a];var f=b.Rq;if(!f||0>=f)f=5E4;d+=f;b.src&&(b.complete||b.loaded)&&!b.um?k+=f:c=!1}c&&this.bt&&this.cf&&(z||(this.cf.Ct(),z=!0),a=this.cf.Tr(),k+=a,a<t&&(c=!1));this.Pe=0==d?0:k/d;return c};
b.prototype.go=function(){if(this.ra||this.ja){var d=this.ra||this.dl;this.gb&&this.Zn();this.Pe=0;this.sn=-1;if(this.qm())this.hs();else{var k=Date.now()-this.kj;if(d){var a=this.width,c=this.height,l=this.devicePixelRatio;this.gb&&(a=this.Kh,c=this.Jh,l=1);if(3!==this.Lg&&(this.ub||500<=k&&this.sn!=this.Pe)){d.clearRect(0,0,a,c);var k=a/2,c=c/2,a=0===this.Lg&&this.xf.complete,b=40*l,f=0,n=80*l,m;a&&(n=this.xf.width*l,m=this.xf.height*l,b=n/2,f=m/2,d.drawImage(this.xf,N(k-b),N(c-f),n,m));1>=this.Lg?
(k=N(k-b)+.5,c=N(c+(f+(a?12*l:0)))+.5,d.fillStyle=h?"red":"DodgerBlue",d.fillRect(k,c,Math.floor(n*this.Pe),6*l),d.strokeStyle="black",d.strokeRect(k,c,n,6*l),d.strokeStyle="white",d.strokeRect(k-1*l,c-1*l,n+2*l,8*l)):2===this.Lg&&(d.font=this.Nc?"12pt ArialMT":"12pt Arial",d.fillStyle=h?"#f00":"#999",d.pv="middle",l=Math.round(100*this.Pe)+"%",a=d.measureText?d.measureText(l):null,d.fillText(l,k-(a?a.width:0)/2,c))}this.sn=this.Pe}setTimeout(function(d){return function(){d.go()}}(this),this.ub?10:
100)}}};b.prototype.hs=function(){this.gb&&(this.canvas.parentNode.removeChild(this.gb),this.gb=this.dl=null);this.kj=Date.now();this.Jg=Na();var d,k,a;if(this.Ml)for(d=0,k=this.u.length;d<k;d++)a=this.u[d],a.Y||a.Ak||!a.Aa.Sd||a.J();else this.uf=!1;d=0;for(k=this.Qc.length;d<k;d++)this.Qc[d].Tq();2<=this.Gb&&(d=this.Za/this.Ya,k=this.width/this.height,this.bg=2!==this.Gb&&k>d||2===this.Gb&&k<d?this.height/this.Ya:this.width/this.Za);this.Im?this.Ik[this.Im].Cl():this.Qc[0].Cl();this.Ml||(this.Bi=
1,this.trigger(U.prototype.j.$l,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(k=this.u.length;d<k;d++)a=this.u[d],a.Ms&&a.Ms();this.Ba(!1);this.rb&&AppMobi.webview.execute("onGameReady();")};var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ba=function(d){if(this.qa){var k=Na();if(this.ls&&this.il&&29>k-this.Gk)this.il=
!1,this.Gk=k,x?this.Ui=x(this.qj,this.canvas):this.rj=setTimeout(this.qj,this.$c?1:16);else{this.il=!0;this.Gk=k;var a=this.Gb,c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Bc;(c||this.Bg)&&0<this.ve&&(a=this.ve);0<a&&(!this.oi||window.self!==window.top)&&(a=window.innerHeight,this.Ig===window.innerWidth&&this.Hg===a||this.setSize(g(),r()));this.wa||(c?(this.Vh||(this.fk=jQuery(this.canvas).css("margin")||"0",this.Vh=!0),this.zg||
this.Rd||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.Vh?(this.zg||this.Rd||jQuery(this.canvas).css("margin",this.fk),this.fk="",this.Vh=!1,0===this.Gb&&this.setSize(Math.round(this.Hn/this.devicePixelRatio),Math.round(this.Gn/this.devicePixelRatio),!0)):(this.Hn=this.width,this.Gn=this.height));this.uf&&(c=this.qm(),this.Bi=this.Pe,c&&(this.uf=
!1,this.Pe=1,this.trigger(U.prototype.j.$l,null)));this.Is();!this.na&&!this.ub||this.Dk||this.mh||d||(this.na=!1,this.ja?this.Xc():this.qe(),this.jj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.jj[0],this.jj[1]),this.trigger(U.prototype.j.Ap,null)),this.jj=null));this.hv||(this.Rf++,this.hf++,this.Yh++);this.Mg+=Na()-k;this.Cg||d||(x?this.Ui=x(this.qj,this.canvas):this.rj=setTimeout(this.qj,this.$c?1:16))}}};b.prototype.Is=function(){var d,k,a,c,l,b,f,n,m;d=Na();1E3<=d-this.Jg&&
(this.Jg+=1E3,this.ek=this.Yh,this.Yh=0,this.Vj=this.Mg,this.Mg=0);this.wn&&(0!==this.si&&(k=d-this.si,0!==k||this.vs?(this.md=k/1E3,.5<this.md?this.md=0:.1<this.md&&(this.md=.1)):(10<=this.rv&&(this.wn=!1),this.md=1/60)),this.si=d);this.re=this.md*this.Ve;this.Ib.add(this.re);this.gd.add(this.md);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Bg)&&!this.Bc;2<=this.Gb||d&&0<this.ve?(k=this.Za/this.Ya,a=this.width/this.height,c=this.Gb,
d&&0<this.ve&&(c=this.ve),this.bg=2!==c&&a>k||2===c&&a<k?this.height/this.Ya:this.width/this.Za,this.qa&&(this.qa.sl(this.qa.scrollX),this.qa.tl(this.qa.scrollY))):this.bg=this.Ee?this.devicePixelRatio:1;this.pb();this.Oc++;this.ed.lt();this.Oc--;this.pb();this.Oc++;a=this.Fn.Hc();d=0;for(k=a.length;d<k;d++)a[d].lv();d=0;for(k=this.u.length;d<k;d++)if(f=this.u[d],!f.Y&&(f.Ia.length||f.za.length))for(a=0,c=f.i.length;a<c;a++)for(n=f.i[a],l=0,b=n.K.length;l<b;l++)n.K[l].Ba();d=0;for(k=this.u.length;d<
k;d++)if(f=this.u[d],!f.Y&&(f.Ia.length||f.za.length))for(a=0,c=f.i.length;a<c;a++)for(n=f.i[a],l=0,b=n.K.length;l<b;l++)m=n.K[l],m.$n&&m.$n();a=this.Sk.Hc();d=0;for(k=a.length;d<k;d++)a[d].Ba();this.Oc--;this.ns();for(d=0;this.le&&10>d++;)this.Cm(this.le);d=0;for(k=this.nd.length;d<k;d++)this.nd[d].sk=!1;this.qa.te&&this.qa.te.Oa();this.Wi.length=0;this.Oc++;d=0;for(k=this.u.length;d<k;d++)if(f=this.u[d],!f.Y&&(f.Ia.length||f.za.length))for(a=0,c=f.i.length;a<c;a++)for(n=f.i[a],l=0,b=n.K.length;l<
b;l++)m=n.K[l],m.ph&&m.ph();a=this.Tk.Hc();d=0;for(k=a.length;d<k;d++)a[d].ph();this.Oc--};b.prototype.Cm=function(d){var k=this.qa;this.qa.Dt();var a,c,l,b,f,n,m;if(this.ja)for(a=0,c=this.u.length;a<c;a++)f=this.u[a],f.Y||!f.Ko||f.global&&0!==f.i.length||-1!==d.wg.indexOf(f)||f.Ko();k==d&&(this.ed.Ob.length=0);d.Cl();a=0;for(c=this.u.length;a<c;a++)if(f=this.u[a],f.global||f.Aa.ij)for(d=0,k=f.i.length;d<k;d++)if(n=f.i[d],n.Xk&&n.Xk(),n.K)for(l=0,b=n.K.length;l<b;l++)m=n.K[l],m.Xk&&m.Xk();this.na=
!0;this.pb()};b.prototype.Fl=function(d){this.Sk.add(d)};b.prototype.It=function(d){this.Tk.add(d)};b.prototype.lg=function(d){return d&&-1!==d.Qg?this.md*d.Qg:this.re};b.prototype.qe=function(){this.qa.qe(this.ra);this.rb&&this.ra.present()};b.prototype.Xc=function(){this.qa.Xc(this.ja);this.ja.kv()};b.prototype.yh=function(d){d&&this.Ph.push(d)};b.prototype.jo=function(d){xa(this.Ph,d)};b.prototype.xe=function(d){d=d.toString();return this.Vd.hasOwnProperty(d)?this.Vd[d]:null};var u=[];b.prototype.Hd=
function(d){var k,a;k=d.type.name;var c=null;if(this.oe.hasOwnProperty(k)){if(c=this.oe[k],c.contains(d))return}else c=u.length?u.pop():new ca,this.oe[k]=c;c.add(d);this.Qd=!0;if(d.jc)for(k=0,a=d.siblings.length;k<a;k++)this.Hd(d.siblings[k]);this.zk&&c.Xf.push(d);this.Oc++;this.trigger(Object.getPrototypeOf(d.type.Aa).j.Ul,d);this.Oc--};b.prototype.pb=function(){if(this.Qd){var d,k,a,c,l,f;this.zk=!0;a=0;for(l=this.Mc.length;a<l;++a)for(d=this.Mc[a],k=d.type,k.i.push(d),c=0,f=k.za.length;c<f;++c)k.za[c].i.push(d),
k.za[c].Qf=!0;this.Mc.length=0;this.tp();Ma(this.oe);this.Qd=this.zk=!1}};b.prototype.tp=function(){for(var d in this.oe)this.oe.hasOwnProperty(d)&&this.$o(this.oe[d])};b.prototype.$o=function(d){var k=d.Hc(),a=k[0].type,c,l,f,b,n,m;Ua(a.i,d);a.Qf=!0;0===a.i.length&&(a.Ah=!1);c=0;for(l=a.za.length;c<l;++c)m=a.za[c],Ua(m.i,d),m.Qf=!0;c=0;for(l=this.ed.Ob.length;c<l;++c)if(n=this.ed.Ob[c],n.Ab.hasOwnProperty(a.index)&&Ua(n.Ab[a.index].ud,d),!a.Y)for(f=0,b=a.za.length;f<b;++f)m=a.za[f],n.Ab.hasOwnProperty(m.index)&&
Ua(n.Ab[m.index].ud,d);(c=k[0].n)&&Ua(c.i,d);for(c=0;c<k.length;++c)this.Zo(k[c],a);d.clear();u.push(d);this.na=!0};b.prototype.Zo=function(d,a){var c,l,f;c=0;for(l=this.Ph.length;c<l;++c)this.Ph[c](d);d.Nd&&a.dg.update(d,d.Nd,null);if(c=d.n)xa(c.i,d),c.Yb=!0;if(d.K)for(c=0,l=d.K.length;c<l;++c)f=d.K[c],f.Gf&&f.Gf(),f.behavior.Pg.remove(d);this.Fn.remove(d);this.Sk.remove(d);this.Tk.remove(d);d.Gf&&d.Gf();this.Vd.hasOwnProperty(d.uid.toString())&&delete this.Vd[d.uid.toString()];this.Gi--;100>a.Nh.length&&
a.Nh.push(d)};b.prototype.Am=function(d,a,c,l){if(d.Y){var f=N(Math.random()*d.Af.length);return this.Am(d.Af[f],a,c,l)}return d.wc?this.Od(d.wc,a,!1,c,l,!1):null};var B=[];b.prototype.Od=function(d,a,c,l,f,b){var n,m,e,y;if(!d)return null;var s=this.u[d[1]],q=s.Aa.Sd;if(this.uf&&q&&!s.Ak||q&&!this.ja&&11===d[0][11])return null;var u=a;q||(a=null);var h;s.Nh.length?(h=s.Nh.pop(),h.Fc=!0,s.Aa.P.call(h,s)):(h=new s.Aa.P(s),h.Fc=!1);h.uid=c&&!b?d[2]:this.Rg++;this.Vd[h.uid.toString()]=h;h.eo=this.Bn++;
h.Be=s.i.length;n=0;for(m=this.Mc.length;n<m;++n)this.Mc[n].type===s&&h.Be++;h.rg=vb;e=d[3];if(h.Fc)Ma(h.G);else{h.G={};if("undefined"!==typeof cr_is_preview)for(h.$m=[],h.$m.length=e.length,n=0,m=e.length;n<m;n++)h.$m[n]=e[n][1];h.Ra=[];h.Ra.length=e.length}n=0;for(m=e.length;n<m;n++)h.Ra[n]=e[n][0];if(q){var t=d[0];h.x=ea(l)?t[0]:l;h.y=ea(f)?t[1]:f;h.z=t[2];h.width=t[3];h.height=t[4];h.depth=t[5];h.k=t[6];h.opacity=t[7];h.Sb=t[8];h.Tb=t[9];h.Eb=t[10];n=t[11];!this.ja&&s.O.length&&(h.Eb=n);h.eg=
Za(h.Eb);this.sd&&$a(h,h.Eb,this.sd);if(h.Fc){n=0;for(m=t[12].length;n<m;n++)for(e=0,y=t[12][n].length;e<y;e++)h.Da[n][e]=t[12][n][e];h.Ca.set(0,0,0,0);h.Nd.set(0,0,-1,-1);h.ec.Nf(h.Ca);h.Mj.length=0}else{h.Da=t[12].slice(0);n=0;for(m=h.Da.length;n<m;n++)h.Da[n]=t[12][n].slice(0);h.ea=[];h.Jd=[];h.Jd.length=s.O.length;h.Ca=new pa(0,0,0,0);h.Nd=new pa(0,0,-1,-1);h.ec=new qa;h.Mj=[];h.A=zb;h.Tu=Ab;h.cb=Bb;h.xa=Cb;h.Ro=Db;h.Ac=Eb}h.Sf=!1;h.Lt=0;h.Kt=0;h.Jt=null;14===t.length&&(h.Sf=!0,h.Lt=t[13][0],
h.Kt=t[13][1],h.Jt=t[13][2]);n=0;for(m=s.O.length;n<m;n++)h.Jd[n]=!0;h.Fd=Fb;h.Fd();h.To=!!h.ea.length;h.Lj=!0;h.Rj=!0;s.zh=!0;h.visible=!0;h.Qg=-1;h.n=a;h.Xe=a.i.length;"undefined"===typeof h.W&&(h.W=null);this.na=h.hc=!0}h.toString=wb;var E;n=B.length=0;for(m=s.za.length;n<m;n++)B.push.apply(B,s.za[n].Ia);B.push.apply(B,s.Ia);if(h.Fc)for(n=0,m=B.length;n<m;n++){var g=B[n];E=h.K[n];E.Fc=!0;g.behavior.P.call(E,g,h);t=d[4][n];e=0;for(y=t.length;e<y;e++)E.H[e]=t[e];E.J();g.behavior.Pg.add(h)}else for(h.K=
[],n=0,m=B.length;n<m;n++)g=B[n],E=new g.behavior.P(g,h),E.Fc=!1,E.H=d[4][n].slice(0),E.J(),h.K.push(E),g.behavior.Pg.add(h);t=d[5];if(h.Fc)for(n=0,m=t.length;n<m;n++)h.H[n]=t[n];else h.H=t.slice(0);this.Mc.push(h);this.Qd=!0;a&&(a.i.push(h),1!==a.Kb||1!==a.Lb)&&(s.Ah=!0);this.Gi++;if(s.jc){if(h.jc=!0,h.Fc?h.siblings.length=0:h.siblings=[],!c&&!b){n=0;for(m=s.Qb.length;n<m;n++)if(s.Qb[n]!==s){if(!s.Qb[n].wc)return null;h.siblings.push(this.Od(s.Qb[n].wc,u,!1,q?h.x:l,q?h.y:f,!0))}n=0;for(m=h.siblings.length;n<
m;n++)for(h.siblings[n].siblings.push(h),e=0;e<m;e++)n!==e&&h.siblings[n].siblings.push(h.siblings[e])}}else h.jc=!1,h.siblings=null;h.J();n=0;for(m=h.K.length;n<m;n++)h.K[n].$s&&h.K[n].$s();return h};b.prototype.ng=function(d){var a,c;a=0;for(c=this.qa.T.length;a<c;a++){var l=this.qa.T[a];if(bb(l.name,d))return l}return null};b.prototype.rd=function(d){d=N(d);0>d&&(d=0);d>=this.qa.T.length&&(d=this.qa.T.length-1);return this.qa.T[d]};b.prototype.Tj=function(d){var a,c;a=0;for(c=d.length;a<c;a++)d[a].X().Z=
!0};b.prototype.ah=function(d){var a,c;a=0;for(c=d.length;a<c;a++)d[a].ah()};b.prototype.Si=function(d){var a,c;a=0;for(c=d.length;a<c;a++)d[a].Si()};b.prototype.Oe=function(d){var a,c;a=0;for(c=d.length;a<c;a++)d[a].Oe()};b.prototype.Mo=function(d){if(d.zh){var a,c,l=d.i;a=0;for(c=l.length;a<c;++a)l[a].Ro();l=this.Mc;a=0;for(c=l.length;a<c;++a)l[a].type===d&&l[a].Ro();d.zh=!1}};b.prototype.Lm=function(d,a,c,l){var f,b,n=d?1!==d.Kb||1!==d.Lb:!1;if(a.Y)for(d=0,f=a.Af.length;d<f;++d)b=a.Af[d],n||b.Ah?
va(l,b.i):(this.Mo(b),b.dg.ho(c,l));else n||a.Ah?va(l,a.i):(this.Mo(a),a.dg.ho(c,l))};b.prototype.ok=function(d,a,c,l){var f,b;f=0;for(b=a.length;f<b;++f)this.Lm(d,a[f],c,l)};b.prototype.Tm=function(d,a,c){var l=this.Bl;l&&this.ok(d,l.Ei,a,c)};b.prototype.Qr=function(d,a,c){var l=this.rn;l&&this.ok(d,l.Ei,a,c)};b.prototype.oh=function(d,a,c){var l=d.X(),f,b,n,m,e,h;if(l.Z)for(l.Z=!1,f=l.i.length=0,m=d.i.length;f<m;f++)n=d.i[f],n.xa(),e=n.n.Pa(a,c,!0),h=n.n.Pa(a,c,!1),n.cb(e,h)&&l.i.push(n);else{f=
b=0;for(m=l.i.length;f<m;f++)n=l.i[f],n.xa(),e=n.n.Pa(a,c,!0),h=n.n.Pa(a,c,!1),n.cb(e,h)&&(l.i[b]=l.i[f],b++);l.i.length=b}d.rc();return l.di()};b.prototype.Xb=function(d,a){if(!(d&&a&&d!==a&&d.hc&&a.hc))return!1;d.xa();a.xa();var c=d.n,l=a.n,f,b,n,m,e,h,s,y;if(c===l||c.Kb===l.Kb&&l.Lb===l.Lb&&c.scale===l.scale&&c.k===l.k&&c.tb===l.tb){if(!d.Ca.bn(a.Ca)||!d.ec.an(a.ec)||d.Sf&&a.Sf)return!1;if(d.Sf)return this.yo(d,a);if(a.Sf)return this.yo(a,d);s=d.W&&!d.W.Ge();f=a.W&&!a.W.Ge();if(!s&&!f)return!0;
s?(d.W.ke(d.width,d.height,d.k),s=d.W):(this.Uc.Mf(d.ec,d.x,d.y,d.width,d.height),s=this.Uc);f?(a.W.ke(a.width,a.height,a.k),y=a.W):(this.Uc.Mf(a.ec,a.x,a.y,a.width,a.height),y=this.Uc);return s.xg(y,a.x-d.x,a.y-d.y)}s=d.W&&!d.W.Ge();f=a.W&&!a.W.Ge();s?(d.W.ke(d.width,d.height,d.k),this.Uc.oo(d.W)):this.Uc.Mf(d.ec,d.x,d.y,d.width,d.height);s=this.Uc;f?(a.W.ke(a.width,a.height,a.k),this.El.oo(a.W)):this.El.Mf(a.ec,a.x,a.y,a.width,a.height);y=this.El;f=0;for(b=s.Dc;f<b;f++)n=2*f,m=n+1,e=s.Na[n],h=s.Na[m],
s.Na[n]=c.wb(e+d.x,h+d.y,!0),s.Na[m]=c.wb(e+d.x,h+d.y,!1);s.xa();f=0;for(b=y.Dc;f<b;f++)n=2*f,m=n+1,e=y.Na[n],h=y.Na[m],y.Na[n]=l.wb(e+a.x,h+a.y,!0),y.Na[m]=l.wb(e+a.x,h+a.y,!1);y.xa();return s.xg(y,0,0)};var C=new qa,n=new pa(0,0,0,0),l=[];b.prototype.yo=function(d,a){var c,f,b,n,m=a.Ca,e=d.x,h=d.y;d.Lr(m,l);var s=a.W&&!a.W.Ge();c=0;for(f=l.length;c<f;++c)if(b=l[c],n=b.dt,m.cn(n,e,h)&&(C.Nf(n),C.offset(e,h),C.an(a.ec)))if(s)if(a.W.ke(a.width,a.height,a.k),b.$g){if(b.$g.xg(a.W,a.x-(e+n.left),a.y-
(h+n.top)))return l.length=0,!0}else{if(this.Uc.Mf(C,0,0,n.right-n.left,n.bottom-n.top),this.Uc.xg(a.W,a.x,a.y))return l.length=0,!0}else if(b.$g){if(this.Uc.Mf(a.ec,0,0,a.width,a.height),b.$g.xg(this.Uc,-(e+n.left),-(h+n.top)))return l.length=0,!0}else return l.length=0,!0;l.length=0;return!1};b.prototype.xo=function(d,a,c,f,b){if(!b||!b.hc)return!1;b.xa();n.set(ja(d,c),ja(a,f),ia(d,c),ia(a,f));if(!b.Ca.bn(n))return!1;if(b.Sf){b.Lr(n,l);var m,e,h,s=b.x,y=b.y;b=0;for(m=l.length;b<m;++b)if(e=l[b],
h=e.dt,n.cn(h,s,y)&&(C.Nf(h),C.offset(s,y),C.yg(d,a,c,f)))if(e.$g){if(e.$g.yg(s+h.left,y+h.top,d,a,c,f))return l.length=0,!0}else return l.length=0,!0;l.length=0;return!1}if(!b.ec.yg(d,a,c,f))return!1;if(!b.W||b.W.Ge())return!0;b.W.ke(b.width,b.height,b.k);return b.W.yg(b.x,b.y,d,a,c,f)};b.prototype.Ho=function(d,a){if(!a)return!1;var c,l,f,b,n;c=0;for(l=d.Ia.length;c<l;c++)if(d.Ia[c].behavior instanceof a)return!0;if(!d.Y)for(c=0,l=d.za.length;c<l;c++)for(n=d.za[c],f=0,b=n.Ia.length;f<b;f++)if(n.Ia[f].behavior instanceof
a)return!0;return!1};b.prototype.Io=function(d){return this.Ho(d,Ub.ru)};b.prototype.Jl=function(d){return this.Ho(d,Ub.su)};var y=[];b.prototype.kb=function(d){var a,c,l;d.xa();this.Tm(d.n,d.Ca,y);a=0;for(c=y.length;a<c;++a)if(l=y[a],l.G.solidEnabled&&this.Xb(d,l))return y.length=0,l;y.length=0;return null};var E=[];b.prototype.de=function(d,a){var c=null;a&&(c=E,c.length=0);d.xa();this.Qr(d.n,d.Ca,y);var l,f,b;l=0;for(f=y.length;l<f;++l)if(b=y[l],b.G.jumpthruEnabled&&this.Xb(d,b))if(a)c.push(b);
else return y.length=0,b;y.length=0;return c};b.prototype.Ec=function(d,a,c,l,f,b){l=l||50;var n=d.x,m=d.y,e,h=null,s=null;for(e=0;e<l;e++)if(d.x=n+a*e,d.y=m+c*e,d.A(),!this.Xb(d,h)&&((h=this.kb(d))&&(s=h),!h&&(f&&(h=b?this.Xb(d,b)?b:null:this.de(d))&&(s=h),!h)))return s&&this.gl(d,a,c,s),!0;d.x=n;d.y=m;d.A();return!1};b.prototype.gl=function(d,a,c,l){var f=2,b,n=!1;b=!1;for(var m=d.x,e=d.y;16>=f;)b=1/f,f*=2,d.x+=a*b*(n?1:-1),d.y+=c*b*(n?1:-1),d.A(),this.Xb(d,l)?b=n=!0:(b=n=!1,m=d.x,e=d.y);b&&(d.x=
m,d.y=e,d.A())};b.prototype.fo=function(d,a){var c=ea(a)?100:a,l=0,f=d.x,b=d.y,n=0,m=0,e=0,h=this.kb(d);if(!h)return!0;for(;l<=c;){switch(n){case 0:m=0;e=-1;l++;break;case 1:m=1;e=-1;break;case 2:m=1;e=0;break;case 3:e=m=1;break;case 4:m=0;e=1;break;case 5:m=-1;e=1;break;case 6:m=-1;e=0;break;case 7:e=m=-1}n=(n+1)%8;d.x=N(f+m*l);d.y=N(b+e*l);d.A();if(!this.Xb(d,h)&&(h=this.kb(d),!h))return!0}d.x=f;d.y=b;d.A();return!1};b.prototype.Kf=function(d,a){d.hc&&a.hc&&this.Wi.push([d,a])};b.prototype.Pq=function(d,
a){var c,l,f;c=0;for(l=this.Wi.length;c<l;c++)if(f=this.Wi[c],f[0]==d&&f[1]==a||f[0]==a&&f[1]==d)return!0;return!1};b.prototype.Lq=function(d,a,c){var l=d.x,f=d.y,b=ia(10,S(a,c,l,f)),n=Da(a,c,l,f),m=this.kb(d);if(!m)return Aa(n+ka);var e=m,h,s,y,q,u=O(5);for(h=1;36>h;h++)if(s=n-h*u,d.x=a+Math.cos(s)*b,d.y=c+Math.sin(s)*b,d.A(),!this.Xb(d,e)&&(e=this.kb(d),!e)){y=s;break}36===h&&(y=Aa(n+ka));e=m;for(h=1;36>h;h++)if(s=n+h*u,d.x=a+Math.cos(s)*b,d.y=c+Math.sin(s)*b,d.A(),!this.Xb(d,e)&&(e=this.kb(d),
!e)){q=s;break}36===h&&(q=Aa(n+ka));d.x=l;d.y=f;d.A();if(q===y)return q;d=Fa(q,y)/2;d=Ha(q,y)?Aa(y+d+ka):Aa(q+d);y=Math.cos(n);n=Math.sin(n);q=Math.cos(d);d=Math.sin(d);a=y*q+n*d;return Da(0,0,y-2*a*q,n-2*a*d)};var m=-1;b.prototype.trigger=function(d,a,c){if(!this.qa)return!1;var l=this.qa.te;if(!l)return!1;var f=!1,b,n,e;m++;var h=l.Xj;n=0;for(e=h.length;n<e;++n)b=this.Eo(d,a,h[n],c),f=f||b;b=this.Eo(d,a,l,c);m--;return f||b};b.prototype.Eo=function(d,a,c,l){var f=!1,b,n,m,e;if(a)for(m=this.Hl(d,
a,a.type.name,c,l),f=f||m,e=a.type.za,b=0,n=e.length;b<n;++b)m=this.Hl(d,a,e[b].name,c,l),f=f||m;else m=this.Hl(d,a,"system",c,l),f=f||m;return f};b.prototype.Hl=function(d,a,c,l,f){var b,n=!1,m=!1,m="undefined"!==typeof f,e=(m?l.Gm:l.Fo)[c];if(!e)return n;var h=null;l=0;for(b=e.length;l<b;++l)if(e[l].method==d){h=e[l].hg;break}if(!h)return n;d=m?h[f]:h;if(!d)return null;l=0;for(b=d.length;l<b;l++)f=d[l][0],m=d[l][1],m=this.Cr(a,c,f,m),n=n||m;return n};b.prototype.Cr=function(d,a,c,l){var f,b,n=!1;
this.Il++;var e=this.fb().Fb;e&&this.ah(e.Yd);var h=1<this.Il;this.ah(c.Yd);h&&this.ct();var s=this.Ti(c);s.Fb=c;d&&(f=this.types[a].X(),f.Z=!1,f.i.length=1,f.i[0]=d,this.types[a].rc());d=!0;if(c.parent){a=s.wo;for(f=c.parent;f;)a.push(f),f=f.parent;a.reverse();f=0;for(b=a.length;f<b;f++)if(!a[f].nt()){d=!1;break}}d&&(this.hf++,c.Rc?c.mt(l):c.Oa(),n=n||s.Je);this.Oi();h&&this.Zs();this.Oe(c.Yd);e&&this.Oe(e.Yd);this.Qd&&0===this.Oc&&0===m&&!this.Bk&&this.pb();this.Il--;return n};b.prototype.ai=function(){var d=
this.fb();return d.Fb.Ta[d.Qa]};b.prototype.Mr=function(){var d=this.fb();return d.Fb.qc[d.Db]};b.prototype.ct=function(){this.Ci++;this.Ci>=this.Mk.length&&this.Mk.push([])};b.prototype.Zs=function(){this.Ci--};b.prototype.Mm=function(){return this.Mk[this.Ci]};b.prototype.Ti=function(d){this.Rh++;this.Rh>=this.ak.length&&this.ak.push(new Gb);var a=this.fb();a.reset(d);return a};b.prototype.Oi=function(){this.Rh--};b.prototype.fb=function(){return this.ak[this.Rh]};b.prototype.Nm=function(d,a){for(var c,
l,f,b,n,m;a;){c=0;for(l=a.Gc.length;c<l;c++)if(m=a.Gc[c],m instanceof Hb&&bb(d,m.name))return m;a=a.parent}c=0;for(l=this.nd.length;c<l;c++)for(n=this.nd[c],f=0,b=n.Pd.length;f<b;f++)if(m=n.Pd[f],m instanceof Hb&&bb(d,m.name))return m;return null};b.prototype.Qm=function(d){var a,c;a=0;for(c=this.Qc.length;a<c;a++)if(this.Qc[a].V===d)return this.Qc[a];return null};b.prototype.pg=function(d){var a,c;a=0;for(c=this.u.length;a<c;a++)if(this.u[a].V===d)return this.u[a];return null};b.prototype.Nr=function(d){var a,
c;a=0;for(c=this.Kd.length;a<c;a++)if(this.Kd[a].V===d)return this.Kd[a];return null};b.prototype.ns=function(){var d=this,l=this.rl,f=this.vd,b=this.xi,n=!1;this.so&&(n=!0,l="__c2_continuouspreview",this.so=!1);if(l.length){this.pb();f=this.tt();if(window.indexedDB&&!this.ub)q(l,f,function(){G("Saved state to IndexedDB storage ("+f.length+" bytes)");d.vd=f;d.trigger(U.prototype.j.Ej,null);d.vd="";n&&a()},function(c){try{localStorage.setItem("__c2save_"+l,f),G("Saved state to WebStorage ("+f.length+
" bytes)"),d.vd=f,d.trigger(U.prototype.j.Ej,null),d.vd="",n&&a()}catch(b){G("Failed to save game state: "+c+"; "+b)}});else try{localStorage.setItem("__c2save_"+l,f),G("Saved state to WebStorage ("+f.length+" bytes)"),d.vd=f,this.trigger(U.prototype.j.Ej,null),d.vd="",n&&a()}catch(m){G("Error saving to WebStorage: "+m)}this.zb=this.xi=this.rl=""}b.length&&(window.indexedDB&&!this.ub?c(b,function(a){a?(d.zb=a,G("Loaded state from IndexedDB storage ("+d.zb.length+" bytes)")):(d.zb=localStorage.getItem("__c2save_"+
b)||"",G("Loaded state from WebStorage ("+d.zb.length+" bytes)"));d.mh=!1;d.zb.length||d.trigger(U.prototype.j.Cj,null)},function(){d.zb=localStorage.getItem("__c2save_"+b)||"";G("Loaded state from WebStorage ("+d.zb.length+" bytes)");d.mh=!1;d.zb.length||d.trigger(U.prototype.j.Cj,null)}):(this.zb=localStorage.getItem("__c2save_"+b)||"",G("Loaded state from WebStorage ("+this.zb.length+" bytes)"),this.mh=!1,d.zb.length||d.trigger(U.prototype.j.Cj,null)),this.rl=this.xi="");this.zb.length&&(this.pb(),
this.Fs(this.zb),this.vd=this.zb,this.trigger(U.prototype.j.Yp,null),this.zb=this.vd="")};b.prototype.tt=function(){var d,a,c,l,b,n,m,e={c2save:!0,version:1,rt:{time:this.Ib.fa,walltime:this.gd.fa,timescale:this.Ve,tickcount:this.Rf,execcount:this.hf,next_uid:this.Rg,running_layout:this.qa.V,start_time_offset:Date.now()-this.kj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.u.length;d<a;d++)if(b=this.u[d],!b.Y&&!this.Io(b)){n={instances:[]};La(b.G)&&(n.ex=f(b.G));
c=0;for(l=b.i.length;c<l;c++)n.instances.push(this.ql(b.i[c]));e.types[b.V.toString()]=n}d=0;for(a=this.Qc.length;d<a;d++)c=this.Qc[d],e.layouts[c.V.toString()]=c.ib();l=e.events.groups;d=0;for(a=this.Kd.length;d<a;d++)c=this.Kd[d],l[c.V.toString()]=this.tg[c.sg].ze;a=e.events.cnds;for(m in this.ef)this.ef.hasOwnProperty(m)&&(d=this.ef[m],La(d.G)&&(a[m]={ex:f(d.G)}));a=e.events.acts;for(m in this.bf)this.bf.hasOwnProperty(m)&&(d=this.bf[m],La(d.G)&&(a[m]={ex:d.G}));a=e.events.vars;for(m in this.Yf)this.Yf.hasOwnProperty(m)&&
(d=this.Yf[m],d.li||d.parent&&!d.Eg||(a[m]=d.data));e.system=this.ed.ib();return JSON.stringify(e)};b.prototype.io=function(){var d,a,c,l,f,b;this.Vd={};d=0;for(a=this.u.length;d<a;d++)if(c=this.u[d],!c.Y)for(l=0,f=c.i.length;l<f;l++)b=c.i[l],this.Vd[b.uid.toString()]=b};b.prototype.Fs=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var a=d.rt;this.Ib.reset();this.Ib.fa=a.time;this.gd.reset();this.gd.fa=a.walltime||0;this.Ve=a.timescale;this.Rf=a.tickcount;this.kj=Date.now()-a.start_time_offset;
var c=a.running_layout;if(c!==this.qa.V)if(c=this.Qm(c))this.Cm(c);else return;var l,f,b,n,m,e,h;e=d.types;for(f in e)if(e.hasOwnProperty(f)&&(n=this.pg(parseInt(f,10)))&&!n.Y&&!this.Io(n)){e[f].ex?n.G=e[f].ex:Ma(n.G);m=n.i;b=e[f].instances;c=0;for(l=ja(m.length,b.length);c<l;c++)this.yi(m[c],b[c]);c=b.length;for(l=m.length;c<l;c++)this.Hd(m[c]);c=m.length;for(l=b.length;c<l;c++){m=null;if(n.Aa.Sd&&(m=this.qa.bi(b[c].w.l),!m))continue;m=this.Od(n.wc,m,!1,0,0,!0);this.yi(m,b[c])}n.Qf=!0}this.pb();
this.io();l=d.layouts;for(f in l)l.hasOwnProperty(f)&&(c=this.Qm(parseInt(f,10)))&&c.yb(l[f]);l=d.events.groups;for(f in l)l.hasOwnProperty(f)&&(c=this.Nr(parseInt(f,10)))&&this.tg[c.sg]&&(this.tg[c.sg].ze=l[f]);c=d.events.cnds;for(f in c)c.hasOwnProperty(f)&&this.ef.hasOwnProperty(f)&&(this.ef[f].G=c[f].ex);c=d.events.acts;for(f in c)c.hasOwnProperty(f)&&this.bf.hasOwnProperty(f)&&(this.bf[f].G=c[f].ex);c=d.events.vars;for(f in c)c.hasOwnProperty(f)&&this.Yf.hasOwnProperty(f)&&(this.Yf[f].data=c[f]);
this.Rg=a.next_uid;this.ed.yb(d.system);c=0;for(l=this.u.length;c<l;c++)if(n=this.u[c],!n.Y)for(f=0,d=n.i.length;f<d;f++){m=n.i[f];if(n.jc)for(e=m.rg(),a=m.siblings.length=0,b=n.Qb.length;a<b;a++)h=n.Qb[a],n!==h&&m.siblings.push(h.i[e]);m.Vc&&m.Vc();if(m.K)for(a=0,b=m.K.length;a<b;a++)e=m.K[a],e.Vc&&e.Vc()}this.na=!0}};b.prototype.ql=function(d,a){var c,l,b,n,m;n=d.type;b=n.Aa;var e={};a?e.c2=!0:e.uid=d.uid;La(d.G)&&(e.ex=f(d.G));if(d.Ra&&d.Ra.length)for(e.ivs={},c=0,l=d.Ra.length;c<l;c++)e.ivs[d.type.xk[c].toString()]=
d.Ra[c];if(b.Sd){b={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.V,zi:d.Ac()};0!==d.k&&(b.a=d.k);1!==d.opacity&&(b.o=d.opacity);.5!==d.Sb&&(b.hX=d.Sb);.5!==d.Tb&&(b.hY=d.Tb);0!==d.Eb&&(b.bm=d.Eb);d.visible||(b.v=d.visible);d.hc||(b.ce=d.hc);-1!==d.Qg&&(b.mts=d.Qg);if(n.O.length)for(b.fx=[],c=0,l=n.O.length;c<l;c++)m=n.O[c],b.fx.push({name:m.name,active:d.Jd[m.index],params:d.Da[m.index]});e.w=b}if(d.K&&d.K.length)for(e.behs={},c=0,l=d.K.length;c<l;c++)n=d.K[c],n.ib&&(e.behs[n.type.V.toString()]=n.ib());
d.ib&&(e.data=d.ib());return e};b.prototype.Pr=function(d,a){var c,l;c=0;for(l=d.xk.length;c<l;c++)if(d.xk[c]===a)return c;return-1};b.prototype.Kr=function(d,a){var c,l;c=0;for(l=d.K.length;c<l;c++)if(d.K[c].type.V===a)return c;return-1};b.prototype.yi=function(d,a,c){var l,f,b,n,m;m=d.type;b=m.Aa;if(c){if(!a.c2)return}else d.uid=a.uid;a.ex?d.G=a.ex:Ma(d.G);if(f=a.ivs)for(l in f)f.hasOwnProperty(l)&&(c=this.Pr(m,parseInt(l,10)),0>c||c>=d.Ra.length||(d.Ra[c]=f[l]));if(b.Sd){b=a.w;d.n.V!==b.l&&(c=
d.n,d.n=this.qa.bi(b.l),d.n?(d.n.i.push(d),d.n.Yb=!0,xa(c.i,d),c.Yb=!0):(d.n=c,this.Hd(d)));d.x=b.x;d.y=b.y;d.width=b.w;d.height=b.h;d.Xe=b.zi;d.k=b.hasOwnProperty("a")?b.a:0;d.opacity=b.hasOwnProperty("o")?b.o:1;d.Sb=b.hasOwnProperty("hX")?b.hX:.5;d.Tb=b.hasOwnProperty("hY")?b.hY:.5;d.visible=b.hasOwnProperty("v")?b.v:!0;d.hc=b.hasOwnProperty("ce")?b.ce:!0;d.Qg=b.hasOwnProperty("mts")?b.mts:-1;d.Eb=b.hasOwnProperty("bm")?b.bm:0;d.eg=Za(d.Eb);this.sd&&$a(d,d.Eb,this.sd);d.A();if(b.hasOwnProperty("fx"))for(c=
0,f=b.fx.length;c<f;c++)n=m.mk(b.fx[c].name),0>n||(d.Jd[n]=b.fx[c].active,d.Da[n]=b.fx[c].params);d.Fd()}if(m=a.behs)for(l in m)m.hasOwnProperty(l)&&(b=this.Kr(d,parseInt(l,10)),0>b||d.K[b].yb(m[l]));a.data&&d.yb(a.data)};Ib=function(d){return new b(document.getElementById(d))};Jb=function(d,a){return new b({dc:!0,width:d,height:a})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");
d.ov=!0;document.body.appendChild(d);d=new b(d);window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new b(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})();
window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(g,r){if(0!==g&&0!==r){var b=window.cr_getC2Runtime();b&&b.setSize(g,r)}};window.cr_setSuspended=function(g){var r=window.cr_getC2Runtime();r&&r.setSuspended(g)};
(function(){function g(c,a){this.b=c;this.te=null;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;this.scale=1;this.k=0;this.kg=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.Jo=a[3];this.qo=a[4];this.V=a[5];var f=a[6],b,e;this.T=[];this.wg=[];b=0;for(e=f.length;b<e;b++){var q=new Kb(this,f[b]);q.Dn=b;this.T.push(q)}f=a[7];this.Ce=[];b=0;for(e=f.length;b<e;b++){var q=f[b],g=this.b.u[q[1]];g.wc||(g.wc=q);this.Ce.push(q);-1===this.wg.indexOf(g)&&this.wg.push(g)}this.O=[];this.ea=[];this.Da=
[];b=0;for(e=a[8].length;b<e;b++)this.O.push({id:a[8][b][0],name:a[8][b][1],jb:-1,Zb:!0,index:b}),this.Da.push(a[8][b][2].slice(0));this.Fd();this.jl=new pa(0,0,1,1);this.kl=new pa(0,0,1,1);this.Wd={}}function r(c,a){return c.Xe-a.Xe}function b(c,a){this.ka=c;this.b=c.b;this.i=[];this.scale=1;this.k=0;this.pe=!1;this.Dd=new pa(0,0,0,0);this.Co=new qa;this.Bb=this.ob=this.Cb=this.nb=0;this.Yb=!1;this.name=a[0];this.index=a[1];this.V=a[2];this.visible=a[3];this.Ld=a[4];this.Ed=a[5];this.Kb=a[6];this.Lb=
a[7];this.opacity=a[8];this.dk=a[9];this.tb=a[10];this.Eb=a[11];this.$q=a[12];this.eg="source-over";this.qb=this.sb=0;this.Xd=!1;var b=a[13],e,h;this.pf=[];e=0;for(h=b.length;e<h;e++){var q=b[e],g=this.b.u[q[1]];g.wc||(g.wc=q,g.Xq=this.index);this.pf.push(q);-1===this.ka.wg.indexOf(g)&&this.ka.wg.push(g)}this.O=[];this.ea=[];this.Da=[];e=0;for(h=a[14].length;e<h;e++)this.O.push({id:a[14][e][0],name:a[14][e][1],jb:-1,Zb:!0,index:e}),this.Da.push(a[14][e][2].slice(0));this.Fd();this.jl=new pa(0,0,1,
1);this.kl=new pa(0,0,1,1)}g.prototype.qt=function(c){var a=c.type.V.toString();this.Wd.hasOwnProperty(a)||(this.Wd[a]=[]);this.Wd[a].push(this.b.ql(c))};g.prototype.Vm=function(){var c=this.T[0];return!c.Ed&&1===c.opacity&&!c.dk&&c.visible};g.prototype.Fd=function(){this.ea.length=0;var c,a,b;c=0;for(a=this.O.length;c<a;c++)b=this.O[c],b.Zb&&this.ea.push(b)};g.prototype.lk=function(c){var a,b,e;a=0;for(b=this.O.length;a<b;a++)if(e=this.O[a],e.name===c)return e;return null};var e=[],q=!0;g.prototype.Cl=
function(){this.qo&&(this.te=this.b.bk[this.qo],this.te.Kl());this.b.qa=this;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;var c,a,b,s,h,t,g;c=0;for(b=this.b.u.length;c<b;c++)if(a=this.b.u[c],!a.Y)for(h=a.i,a=0,s=h.length;a<s;a++)if(t=h[a],t.n){var x=t.n.Dn;x>=this.T.length&&(x=this.T.length-1);t.n=this.T[x];-1===t.n.i.indexOf(t)&&t.n.i.push(t);t.n.Yb=!0}if(!q)for(c=0,b=this.T.length;c<b;++c)this.T[c].i.sort(r);e.length=0;this.Jq();c=0;for(b=this.T.length;c<b;c++)t=this.T[c],t.Uq(),t.Ll();h=!1;
if(!this.kg){for(g in this.Wd)if(this.Wd.hasOwnProperty(g)&&(a=this.b.pg(parseInt(g,10)))&&!a.Y&&this.b.Jl(a)){s=this.Wd[g];c=0;for(b=s.length;c<b;c++){t=null;if(a.Aa.Sd&&(t=this.bi(s[c].w.l),!t))continue;t=this.b.Od(a.wc,t,!1,0,0,!0);this.b.yi(t,s[c]);h=!0;e.push(t)}s.length=0}c=0;for(b=this.T.length;c<b;c++)this.T[c].i.sort(r),this.T[c].Yb=!0}h&&(this.b.pb(),this.b.io());for(c=0;c<e.length;c++)if(t=e[c],t.type.jc)for(b=t.rg(),a=0,s=t.type.Qb.length;a<s;a++)g=t.type.Qb[a],t.type!==g&&(g.i.length>
b?t.siblings.push(g.i[b]):g.wc&&(h=this.b.Od(g.wc,t.n,!0,t.x,t.y,!0),this.b.pb(),g.xj(),t.siblings.push(h),e.push(h)));c=0;for(b=this.Ce.length;c<b;c++)this.b.Od(this.Ce[c],null,!0);this.b.le=null;this.b.pb();if(this.b.ra&&!this.b.wa)for(c=0,b=this.b.u.length;c<b;c++)g=this.b.u[c],!g.Y&&g.i.length&&g.ao&&g.ao(this.b.ra);c=0;for(b=e.length;c<b;c++)t=e[c],this.b.trigger(Object.getPrototypeOf(t.type.Aa).j.Aj,t);e.length=0;this.b.trigger(U.prototype.j.Zl,null);this.kg=!1};g.prototype.Tq=function(){var c,
a,b,e,h;a=c=0;for(b=this.Ce.length;c<b;c++)e=this.Ce[c],h=this.b.u[e[1]],h.global?this.b.Od(e,null,!0):(this.Ce[a]=e,a++);this.Ce.length=a};g.prototype.Dt=function(){this.b.trigger(U.prototype.j.Yl,null);this.b.ed.Ob.length=0;var c,a,b,e,h,t;c=0;for(a=this.T.length;c<a;c++)for(this.T[c].Qo(),h=this.T[c].i,b=0,e=h.length;b<e;b++)t=h[b],t.type.global||this.b.Jl(t.type)&&this.qt(t);c=0;for(a=this.T.length;c<a;c++){h=this.T[c].i;b=0;for(e=h.length;b<e;b++)t=h[b],t.type.global||this.b.Hd(t);this.b.pb();
h.length=0;this.T[c].Yb=!0}c=0;for(a=this.b.u.length;c<a;c++)if(h=this.b.u[c],!(h.global||h.Aa.Sd||h.Aa.ij||h.Y)){b=0;for(e=h.i.length;b<e;b++)this.b.Hd(h.i[b]);this.b.pb()}q=!1};g.prototype.qe=function(c){var a,b=c,e=!1,h=!this.b.yc;h&&(this.b.vi||(this.b.vi=document.createElement("canvas"),a=this.b.vi,a.width=this.b.S,a.height=this.b.R,this.b.un=a.getContext("2d"),e=!0),a=this.b.vi,b=this.b.un,a.width!==this.b.S&&(a.width=this.b.S,e=!0),a.height!==this.b.R&&(a.height=this.b.R,e=!0),e&&(b.webkitImageSmoothingEnabled=
this.b.la,b.mozImageSmoothingEnabled=this.b.la,b.msImageSmoothingEnabled=this.b.la,b.imageSmoothingEnabled=this.b.la));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Ij&&!this.Vm()&&b.clearRect(0,0,this.b.S,this.b.R);var q,g,e=0;for(q=this.T.length;e<q;e++)g=this.T[e],g.visible&&0<g.opacity&&11!==g.Eb&&(g.i.length||!g.Ed)?g.qe(b):g.Ll();h&&c.drawImage(a,0,0,this.b.width,this.b.height)};g.prototype.Xc=function(c){var a=0<this.ea.length||this.b.Wf||!this.b.yc;if(a){this.b.Ub||(this.b.Ub=
c.ne(this.b.S,this.b.R,this.b.la));if(this.b.Ub.Qj!==this.b.S||this.b.Ub.Pj!==this.b.R)c.deleteTexture(this.b.Ub),this.b.Ub=c.ne(this.b.S,this.b.R,this.b.la);c.Bd(this.b.Ub);this.b.yc||c.hh(this.b.S,this.b.R)}else this.b.Ub&&(c.Bd(null),c.deleteTexture(this.b.Ub),this.b.Ub=null);this.b.Ij&&!this.Vm()&&c.clear(0,0,0,0);var b,e,h;b=0;for(e=this.T.length;b<e;b++)h=this.T[b],h.visible&&0<h.opacity&&(h.i.length||!h.Ed)?h.Xc(c):h.Ll();a&&(0===this.ea.length||1===this.ea.length&&this.b.yc?(1===this.ea.length?
(a=this.ea[0].index,c.be(this.ea[0].jb),c.gh(null,1/this.b.S,1/this.b.R,0,0,1,1,this.scale,this.k,0,0,this.b.S/2,this.b.R/2,this.Da[a]),c.fl(this.ea[0].jb)&&(this.b.na=!0)):c.be(0),this.b.yc||c.hh(this.b.width,this.b.height),c.Bd(null),c.bj(1),c.Tc(this.b.Ub),c.ut(),c.Qe(),c.We(),a=this.b.width/2,b=this.b.height/2,c.hl(-a,b,a,b,a,-b,-a,-b),c.Tc(null)):this.ll(c,null,null,null))};g.prototype.qg=function(){return 0<this.ea.length||this.b.Wf||!this.b.yc?this.b.Ub:null};g.prototype.Rm=function(){var c=
this.T[0].zc(),a,b,e;a=1;for(b=this.T.length;a<b;a++)e=this.T[a],(0!==e.Kb||0!==e.Lb)&&e.zc()<c&&(c=e.zc());return c};g.prototype.sl=function(c){if(!this.Jo){var a=1/this.Rm()*this.b.S/2;c>this.width-a&&(c=this.width-a);c<a&&(c=a)}this.scrollX!==c&&(this.scrollX=c,this.b.na=!0)};g.prototype.tl=function(c){if(!this.Jo){var a=1/this.Rm()*this.b.R/2;c>this.height-a&&(c=this.height-a);c<a&&(c=a)}this.scrollY!==c&&(this.scrollY=c,this.b.na=!0)};g.prototype.Jq=function(){this.sl(this.scrollX);this.tl(this.scrollY)};
g.prototype.ll=function(c,a,b,e){var h=b?b.ea:a?a.ea:this.ea,q=1,g=0,r=0,u=0,B=this.b.S,C=this.b.R;b?(q=b.n.zc(),g=b.n.Wa(),r=b.n.nb,u=b.n.ob,B=b.n.Cb,C=b.n.Bb):a&&(q=a.zc(),g=a.Wa(),r=a.nb,u=a.ob,B=a.Cb,C=a.Bb);var n=this.b.gk,l,y,E,m,d=0,k=1,p,v=this.b.S,H=this.b.R,la=v/2,w=H/2,P=a?a.jl:this.jl,K=a?a.kl:this.kl,J=0,I=0,A=0,V=0,D=v,R=v,F=H,Q=H,L=E=0,W=b?b.n.Wa():0;if(b){l=0;for(y=h.length;l<y;l++)E+=c.cv(h[l].jb),L+=c.dv(h[l].jb);m=b.Ca;J=a.wb(m.left,m.top,!0,!0);A=a.wb(m.left,m.top,!1,!0);D=a.wb(m.right,
m.bottom,!0,!0);F=a.wb(m.right,m.bottom,!1,!0);0!==W&&(l=a.wb(m.right,m.top,!0,!0),y=a.wb(m.right,m.top,!1,!0),I=a.wb(m.left,m.bottom,!0,!0),V=a.wb(m.left,m.bottom,!1,!0),m=Math.min(J,D,l,I),D=Math.max(J,D,l,I),J=m,m=Math.min(A,F,y,V),F=Math.max(A,F,y,V),A=m);J-=E;A-=L;D+=E;F+=L;K.left=J/v;K.top=1-A/H;K.right=D/v;K.bottom=1-F/H;I=J=N(J);V=A=N(A);R=D=ma(D);Q=F=ma(F);I-=E;V-=L;R+=E;Q+=L;0>J&&(J=0);0>A&&(A=0);D>v&&(D=v);F>H&&(F=H);0>I&&(I=0);0>V&&(V=0);R>v&&(R=v);Q>H&&(Q=H);P.left=J/v;P.top=1-A/H;P.right=
D/v;P.bottom=1-F/H}else P.left=K.left=0,P.top=K.top=0,P.right=K.right=1,P.bottom=K.bottom=1;L=b&&((b.k||W)&&c.Ri(h[0].jb)||0!==E||0!==L||1!==b.opacity||b.type.Aa.An)||a&&!b&&1!==a.opacity;c.ut();if(L){n[d]||(n[d]=c.ne(v,H,this.b.la));if(n[d].Qj!==v||n[d].Pj!==H)c.deleteTexture(n[d]),n[d]=c.ne(v,H,this.b.la);c.be(0);c.Bd(n[d]);p=Q-V;c.clearRect(I,H-V-p,R-I,p);b?b.Xc(c):(c.Tc(this.b.mc),c.bj(a.opacity),c.Qe(),c.translate(-la,-w),c.We(),c.Jf(J,F,D,F,D,A,J,A,P));K.left=K.top=0;K.right=K.bottom=1;b&&(m=
P.top,P.top=P.bottom,P.bottom=m);d=1;k=0}c.bj(1);E=h.length-1;var W=c.bo(h[E].jb)||!a&&!b&&!this.b.yc,ha=0;l=0;for(y=h.length;l<y;l++){n[d]||(n[d]=c.ne(v,H,this.b.la));if(n[d].Qj!==v||n[d].Pj!==H)c.deleteTexture(n[d]),n[d]=c.ne(v,H,this.b.la);c.be(h[l].jb);ha=h[l].index;c.fl(h[l].jb)&&(this.b.na=!0);0!=l||L?(c.gh(e,1/v,1/H,K.left,K.top,K.right,K.bottom,q,g,r,u,(r+B)/2,(u+C)/2,b?b.Da[ha]:a?a.Da[ha]:this.Da[ha]),c.Tc(null),l!==E||W?(c.Bd(n[d]),p=Q-V,m=H-V-p,c.clearRect(I,m,R-I,p)):(b?c.Lf(b.sb,b.qb):
a&&c.Lf(a.sb,a.qb),c.Bd(e)),c.Tc(n[k]),c.Qe(),c.translate(-la,-w),c.We(),c.Jf(J,F,D,F,D,A,J,A,P),l!==E||W||c.Tc(null)):(c.Bd(n[d]),p=Q-V,m=H-V-p,c.clearRect(I,m,R-I,p),b?(c.gh(e,1/b.width,1/b.height,K.left,K.top,K.right,K.bottom,q,g,r,u,(r+B)/2,(u+C)/2,b.Da[ha]),b.Xc(c)):(c.gh(e,1/v,1/H,0,0,1,1,q,g,r,u,(r+B)/2,(u+C)/2,a?a.Da[ha]:this.Da[ha]),c.Tc(a?this.b.mc:this.b.Ub),c.Qe(),c.translate(-la,-w),c.We(),c.Jf(J,F,D,F,D,A,J,A,P)),K.left=K.top=0,K.right=K.bottom=1,b&&!W&&(m=F,F=A,A=m));d=0===d?1:0;k=
0===d?1:0}W&&(c.be(0),b?c.Lf(b.sb,b.qb):a?c.Lf(a.sb,a.qb):this.b.yc||(c.hh(this.b.width,this.b.height),la=this.b.width/2,w=this.b.height/2,A=J=0,D=this.b.width,F=this.b.height),c.Bd(e),c.Tc(n[k]),c.Qe(),c.translate(-la,-w),c.We(),b&&1===h.length&&!L?c.Jf(J,A,D,A,D,F,J,F,P):c.Jf(J,F,D,F,D,A,J,A,P),c.Tc(null))};g.prototype.bi=function(c){var a,b;a=0;for(b=this.T.length;a<b;a++)if(this.T[a].V===c)return this.T[a];return null};g.prototype.ib=function(){var c,a,b,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.k,w:this.width,h:this.height,fv:this.kg,persist:this.Wd,fx:[],layers:{}};c=0;for(a=this.O.length;c<a;c++)b=this.O[c],e.fx.push({name:b.name,active:b.Zb,params:this.Da[b.index]});c=0;for(a=this.T.length;c<a;c++)b=this.T[c],e.layers[b.V.toString()]=b.ib();return e};g.prototype.yb=function(c){var a,b,e,h;this.scrollX=c.sx;this.scrollY=c.sy;this.scale=c.s;this.k=c.a;this.width=c.w;this.height=c.h;this.Wd=c.persist;"undefined"!==typeof c.fv&&(this.kg=c.fv);var q=c.fx;a=0;for(b=q.length;a<b;a++)if(e=
this.lk(q[a].name))e.Zb=q[a].active,this.Da[e.index]=q[a].params;this.Fd();a=c.layers;for(h in a)a.hasOwnProperty(h)&&(c=this.bi(parseInt(h,10)))&&c.yb(a[h])};xb=g;b.prototype.Fd=function(){this.ea.length=0;var c,a,b;c=0;for(a=this.O.length;c<a;c++)b=this.O[c],b.Zb&&this.ea.push(b)};b.prototype.lk=function(c){var a,b,e;a=0;for(b=this.O.length;a<b;a++)if(e=this.O[a],e.name===c)return e;return null};b.prototype.Uq=function(){var c,a,b,s,h,q;a=c=0;for(b=this.pf.length;c<b;c++){s=this.pf[c];h=this.b.u[s[1]];
q=this.b.Jl(h);h=!0;if(!q||this.ka.kg)s=this.b.Od(s,this,!0),e.push(s),s.type.global&&(h=!1);h&&(this.pf[a]=this.pf[c],a++)}this.pf.length=a;this.b.pb();!this.b.ja&&this.O.length&&(this.Eb=this.$q);this.eg=Za(this.Eb);this.b.sd&&$a(this,this.Eb,this.b.sd)};b.prototype.Qo=function(){if(this.Yb){var c,a;c=0;for(a=this.i.length;c<a;c++)this.i[c].Xe=c;this.Yb=!1}};b.prototype.zc=function(c){return this.Rr()*(this.b.yc||c?this.b.bg:1)};b.prototype.Rr=function(){return(this.scale*this.ka.scale-1)*this.tb+
1};b.prototype.Wa=function(){return this.pe?0:Aa(this.ka.k+this.k)};b.prototype.qe=function(c){this.Xd=this.dk||1!==this.opacity||0!==this.Eb;var a=this.b.canvas,b=c,e=!1;this.Xd&&(this.b.ti||(this.b.ti=document.createElement("canvas"),a=this.b.ti,a.width=this.b.S,a.height=this.b.R,this.b.tn=a.getContext("2d"),e=!0),a=this.b.ti,b=this.b.tn,a.width!==this.b.S&&(a.width=this.b.S,e=!0),a.height!==this.b.R&&(a.height=this.b.R,e=!0),e&&(b.webkitImageSmoothingEnabled=this.b.la,b.mozImageSmoothingEnabled=
this.b.la,b.msImageSmoothingEnabled=this.b.la,b.imageSmoothingEnabled=this.b.la),this.Ed&&b.clearRect(0,0,this.b.S,this.b.R));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Ed||(b.fillStyle="rgb("+this.Ld[0]+","+this.Ld[1]+","+this.Ld[2]+")",b.fillRect(0,0,this.b.S,this.b.R));b.save();this.pe=!0;var e=this.Pa(0,0,!0,!0),h=this.Pa(0,0,!1,!0);this.pe=!1;this.b.If&&(e=Math.round(e),h=Math.round(h));this.nl(e,h,b);var q=this.zc();b.scale(q,q);b.translate(-e,-h);for(var g,e=0,h=this.i.length;e<
h;e++)q=this.i[e],q.visible&&0!==q.width&&0!==q.height&&(q.xa(),g=q.Ca,g.right<this.nb||g.bottom<this.ob||g.left>this.Cb||g.top>this.Bb||(b.globalCompositeOperation=q.eg,q.qe(b)));b.restore();this.Xd&&(c.globalCompositeOperation=this.eg,c.globalAlpha=this.opacity,c.drawImage(a,0,0))};b.prototype.Ll=function(){this.pe=!0;var c=this.Pa(0,0,!0,!0),a=this.Pa(0,0,!1,!0);this.pe=!1;this.b.If&&(c=Math.round(c),a=Math.round(a));this.nl(c,a,null)};b.prototype.nl=function(c,a,b){var e=this.zc();this.nb=c;this.ob=
a;this.Cb=c+1/e*this.b.S;this.Bb=a+1/e*this.b.R;c=this.Wa();0!==c&&(b&&(b.translate(this.b.S/2,this.b.R/2),b.rotate(-c),b.translate(this.b.S/-2,this.b.R/-2)),this.Dd.set(this.nb,this.ob,this.Cb,this.Bb),this.Dd.offset((this.nb+this.Cb)/-2,(this.ob+this.Bb)/-2),this.Co.po(this.Dd,c),this.Co.tm(this.Dd),this.Dd.offset((this.nb+this.Cb)/2,(this.ob+this.Bb)/2),this.nb=this.Dd.left,this.ob=this.Dd.top,this.Cb=this.Dd.right,this.Bb=this.Dd.bottom)};b.prototype.Xc=function(c){var a=this.b.S,b=this.b.R,e=
0,h=0;if(this.Xd=this.dk||1!==this.opacity||0<this.ea.length||0!==this.Eb){this.b.mc||(this.b.mc=c.ne(this.b.S,this.b.R,this.b.la));if(this.b.mc.Qj!==this.b.S||this.b.mc.Pj!==this.b.R)c.deleteTexture(this.b.mc),this.b.mc=c.ne(this.b.S,this.b.R,this.b.la);c.Bd(this.b.mc);this.Ed&&c.clear(0,0,0,0)}this.Ed||c.clear(this.Ld[0]/255,this.Ld[1]/255,this.Ld[2]/255,1);this.pe=!0;var h=this.Pa(0,0,!0,!0),q=this.Pa(0,0,!1,!0);this.pe=!1;this.b.If&&(h=Math.round(h),q=Math.round(q));this.nl(h,q,null);q=this.zc();
c.Qe();c.scale(q,q);c.kt(-this.Wa());c.translate((this.nb+this.Cb)/-2,(this.ob+this.Bb)/-2);c.We();var g,r,u;g=0;for(r=this.i.length;g<r;g++)if(u=this.i[g],u.visible&&0!==u.width&&0!==u.height&&(u.xa(),e=u.Ca,!(e.right<this.nb||e.bottom<this.ob||e.left>this.Cb||e.top>this.Bb)))if(u.To)if(e=u.ea[0].jb,h=u.ea[0].index,1!==u.ea.length||c.bo(e)||c.mv(e)||(u.k||u.n.Wa())&&c.Ri(e)||1!==u.opacity||u.type.Aa.An)this.ka.ll(c,this,u,this.Xd?this.b.mc:this.ka.qg()),c.Qe(),c.scale(q,q),c.kt(-this.Wa()),c.translate((this.nb+
this.Cb)/-2,(this.ob+this.Bb)/-2),c.We();else{c.be(e);c.Lf(u.sb,u.qb);c.fl(e)&&(this.b.na=!0);var B=0,C=0,n=0,l=0;c.Ri(e)&&(e=u.Ca,B=this.wb(e.left,e.top,!0,!0),C=this.wb(e.left,e.top,!1,!0),n=this.wb(e.right,e.bottom,!0,!0),e=this.wb(e.right,e.bottom,!1,!0),B/=a,C=1-C/b,n/=a,l=1-e/b);c.gh(this.Xd?this.b.mc:this.ka.qg(),1/u.width,1/u.height,B,C,n,l,this.zc(),this.Wa(),this.nb,this.ob,(this.nb+this.Cb)/2,(this.ob+this.Bb)/2,u.Da[h]);u.Xc(c)}else c.be(0),c.Lf(u.sb,u.qb),u.Xc(c);this.Xd&&(e=this.ea.length?
this.ea[0].jb:0,h=this.ea.length?this.ea[0].index:0,0===this.ea.length||1===this.ea.length&&!c.bo(e)&&1===this.opacity?(1===this.ea.length?(c.be(e),c.gh(this.ka.qg(),1/this.b.S,1/this.b.R,0,0,1,1,this.zc(),this.Wa(),this.nb,this.ob,(this.nb+this.Cb)/2,(this.ob+this.Bb)/2,this.Da[h]),c.fl(e)&&(this.b.na=!0)):c.be(0),c.Bd(this.ka.qg()),c.bj(this.opacity),c.Tc(this.b.mc),c.Lf(this.sb,this.qb),c.Qe(),c.We(),a=this.b.S/2,b=this.b.R/2,c.hl(-a,b,a,b,a,-b,-a,-b),c.Tc(null)):this.ka.ll(c,this,null,this.ka.qg()))};
b.prototype.Pa=function(b,a,e,q){var h=this.b.devicePixelRatio;this.b.Ee&&(b*=h,a*=h);var h=this.b.Vn,g=this.b.Wn,h=(this.ka.scrollX-h)*this.Kb+h,g=(this.ka.scrollY-g)*this.Lb+g,r=1/this.zc(!q);q?(h-=this.b.S*r/2,g-=this.b.R*r/2):(h-=this.b.width*r/2,g-=this.b.height*r/2);h+=b*r;g+=a*r;a=this.Wa();0!==a&&(h-=this.ka.scrollX,g-=this.ka.scrollY,b=Math.cos(a),a=Math.sin(a),q=h*b-g*a,g=g*b+h*a,h=q+this.ka.scrollX,g+=this.ka.scrollY);return e?h:g};b.prototype.wb=function(b,a,e,q){var h=this.Wa();if(0!==
h){b-=this.ka.scrollX;a-=this.ka.scrollY;var g=Math.cos(-h),h=Math.sin(-h),r=b*g-a*h;a=a*g+b*h;b=r+this.ka.scrollX;a+=this.ka.scrollY}g=this.b.Vn;h=this.b.Wn;g=(this.ka.scrollX-g)*this.Kb+g;h=(this.ka.scrollY-h)*this.Lb+h;r=1/this.zc(!q);q?(g-=this.b.S*r/2,h-=this.b.R*r/2):(g-=this.b.width*r/2,h-=this.b.height*r/2);g=(b-g)/r;h=(a-h)/r;b=this.b.devicePixelRatio;this.b.Ee&&!q&&(g/=b,h/=b);return e?g:h};b.prototype.ib=function(){var b,a,e,q={s:this.scale,a:this.k,vl:this.nb,vt:this.ob,vr:this.Cb,vb:this.Bb,
v:this.visible,bc:this.Ld,t:this.Ed,px:this.Kb,py:this.Lb,o:this.opacity,zr:this.tb,fx:[],instances:[]};b=0;for(a=this.O.length;b<a;b++)e=this.O[b],q.fx.push({name:e.name,active:e.Zb,params:this.Da[e.index]});return q};b.prototype.yb=function(b){var a,e;this.scale=b.s;this.k=b.a;this.nb=b.vl;this.ob=b.vt;this.Cb=b.vr;this.Bb=b.vb;this.visible=b.v;this.Ld=b.bc;this.Ed=b.t;this.Kb=b.px;this.Lb=b.py;this.opacity=b.o;this.tb=b.zr;var q=b.fx;b=0;for(a=q.length;b<a;b++)if(e=this.lk(q[b].name))e.Zb=q[b].active,
this.Da[e.index]=q[b].params;this.Fd();this.i.sort(r);this.Yb=!0};Kb=b})();
(function(){function g(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function r(a,b){return a.index-b.index}function b(a){var b,c,e,m;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(r);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);m=u[a.length];b=0;for(c=m.length;b<c;b++)if(e=m[b],g(a,e))return e;m.push(a);return a}
function e(a,b){this.b=a;this.Fo={};this.Gm={};this.sk=!1;this.Xm=new ca;this.Xj=[];this.Jj=[];this.name=b[0];var c=b[1];this.Pd=[];var e,m;e=0;for(m=c.length;e<m;e++)this.Ym(c[e],null,this.Pd)}function q(a){this.type=a;this.i=[];this.ca=[];this.Z=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.va=[];this.Yd=[];this.Wm=this.sj=this.Gl=this.fi=this.group=this.uo=!1;this.Ta=[];this.qc=[];this.Gc=[];this.sg="";this.ze=this.fi=this.group=!1;this.Hh=null;c[1]&&(this.sg=c[1][1].toLowerCase(),
this.group=!0,this.fi=!!c[1][0],this.Hh=[],this.ze=this.fi,this.b.Kd.push(this),this.b.tg[this.sg]=this);this.Rc=c[2];this.V=c[4];this.group||(this.b.rm[this.V.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var m=new Lb(this,e[a]);m.index=a;this.Ta.push(m);this.nm(m.type)}e=c[6];a=0;for(b=e.length;a<b;a++)m=new Mb(this,e[a]),m.index=a,this.qc.push(m);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Ym(c[a],this,this.Gc);this.mi=!1;this.Ta.length&&(this.mi=null==this.Ta[0].type&&
this.Ta[0].eb==U.prototype.j.Rl)}function a(a,b){var c,e,m;if(a&&(-1===b.indexOf(a)&&b.push(a),a.jc))for(c=0,e=a.Qb.length;c<e;c++)m=a.Qb[c],a!==m&&-1===b.indexOf(m)&&b.push(m)}function f(a,b){this.$b=a;this.sheet=a.sheet;this.b=a.b;this.ma=[];this.ta=[];this.G={};this.index=-1;this.ag=!1;this.eb=this.b.Id(b[1]);this.trigger=0<b[3];this.Fm=2===b[3];this.ad=b[4];this.gi=b[5];this.Es=b[6];this.V=b[7];this.b.ef[this.V.toString()]=this;-1===b[0]?(this.type=null,this.Oa=this.pl,this.je=null,this.tc=-1):
(this.type=this.b.u[b[0]],this.Oa=this.Es?this.ot:this.ol,b[2]?(this.je=this.type.$h(b[2]),this.tc=this.type.jk(b[2])):(this.je=null,this.tc=-1),this.$b.parent&&this.$b.parent.ej());this.Fm&&(this.Oa=this.pt);if(10===b.length){var c,e,m=b[9];c=0;for(e=m.length;c<e;c++){var d=new Nb(this,m[c]);this.ma.push(d)}this.ta.length=m.length}}function s(a,b){this.$b=a;this.sheet=a.sheet;this.b=a.b;this.ma=[];this.ta=[];this.G={};this.index=-1;this.ag=!1;this.eb=this.b.Id(b[1]);-1===b[0]?(this.type=null,this.Oa=
this.pl,this.je=null,this.tc=-1):(this.type=this.b.u[b[0]],this.Oa=this.ol,b[2]?(this.je=this.type.$h(b[2]),this.tc=this.type.jk(b[2])):(this.je=null,this.tc=-1));this.V=b[3];this.b.bf[this.V.toString()]=this;if(6===b.length){var c,e,m=b[5];c=0;for(e=m.length;c<e;c++){var d=new Nb(this,m[c]);this.ma.push(d)}this.ta.length=m.length}}function h(a,b){this.F=a;this.$b=a.$b;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Yc=null;this.Zd=0;this.get=null;this.zm=0;this.ka=null;this.key=0;this.object=null;
this.index=0;this.rh=this.Te=this.rh=this.Te=this.Hm=this.ue=this.sh=null;this.Ic=!1;var c,e,m;switch(b[0]){case 0:case 7:this.Yc=new Ob(this,b[1]);this.Zd=0;this.get=this.Xr;break;case 1:this.Yc=new Ob(this,b[1]);this.Zd=0;this.get=this.Yr;break;case 5:this.Yc=new Ob(this,b[1]);this.Zd=0;this.get=this.bs;break;case 3:case 8:this.zm=b[1];this.get=this.Vr;break;case 6:this.ka=this.b.Ik[b[1]];this.get=this.cs;break;case 9:this.key=b[1];this.get=this.as;break;case 4:this.object=this.b.u[b[1]];this.get=
this.ds;this.$b.nm(this.object);this.F instanceof Mb?this.$b.ej():this.$b.parent&&this.$b.parent.ej();break;case 10:this.index=b[1];a.type.Y?(this.get=this.Zr,this.Ic=!0):this.get=this.$r;break;case 11:this.sh=b[1];this.ue=null;this.get=this.Wr;break;case 2:case 12:this.Hm=b[1];this.get=this.Ur;break;case 13:for(this.get=this.es,this.Te=[],this.rh=[],c=1,e=b.length;c<e;c++)m=new Nb(this.F,b[c]),this.Te.push(m),this.rh.push(0)}}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.va=[];this.name=
c[1];this.th=c[2];this.ei=c[3];this.Eg=!!c[4];this.li=!!c[5];this.V=c[6];this.b.Yf[this.V.toString()]=this;this.data=this.ei;this.parent?(this.Me=this.Eg||this.li?-1:this.b.Bt++,this.b.Eq.push(this)):(this.Me=-1,this.b.Hj.push(this))}function z(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.va=[];this.vg=null;this.qs=c[1];this.Zb=!0}function x(){this.wo=[];this.reset(null)}var u=[];e.prototype.toString=function(){return this.name};e.prototype.Ym=function(a,b,c){switch(a[0]){case 0:a=new Pb(this,
b,a);if(a.Rc)for(c.push(a),c=0,b=a.Ta.length;c<b;c++)a.Ta[c].trigger&&this.Zm(a,c);else a.pn()?this.Zm(a,0):c.push(a);break;case 1:a=new Hb(this,b,a);c.push(a);break;case 2:a=new Qb(this,b,a),c.push(a)}};e.prototype.Ha=function(){var a,b;a=0;for(b=this.Pd.length;a<b;a++)this.Pd[a].Ha(a<b-1&&this.Pd[a+1].mi)};e.prototype.Kl=function(){this.Xj.length=0;this.Jj.length=0;this.mm(this);this.Jj.length=0};e.prototype.mm=function(a){var b,c,e,m,d=a.Xj,f=a.Jj,h=this.Xm.Hc();b=0;for(c=h.length;b<c;++b)e=h[b],
m=e.vg,!e.Zb||a===m||-1<f.indexOf(m)||(f.push(m),m.mm(a),d.push(m))};e.prototype.Oa=function(a){this.b.nv||(this.sk=!0,a||(this.b.Bk=!0));var b,c;b=0;for(c=this.Pd.length;b<c;b++){var e=this.Pd[b];e.Oa();this.b.Tj(e.va);this.b.Qd&&this.b.pb()}a||(this.b.Bk=!1)};e.prototype.Zm=function(a,b){a.Rc||this.b.wj.push(a);var c,e,m=a.Ta[b],d;d=m.type?m.type.name:"system";var f=(c=m.Fm)?this.Gm:this.Fo;f[d]||(f[d]=[]);d=f[d];f=m.eb;if(c){if(m.ma.length&&(m=m.ma[0],1===m.type&&2===m.Yc.type)){m=m.Yc.value.toLowerCase();
c=0;for(e=d.length;c<e;c++)if(d[c].method==f){c=d[c].hg;c[m]?c[m].push([a,b]):c[m]=[[a,b]];return}c={};c[m]=[[a,b]];d.push({method:f,hg:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==f){d[c].hg.push([a,b]);return}X&&f===X.prototype.j.$e?d.unshift({method:f,hg:[[a,b]]}):d.push({method:f,hg:[[a,b]]})}};yb=e;q.prototype.di=function(){return this.Z?this.type.i.length:this.i.length};q.prototype.Hb=function(){return this.Z?this.type.i:this.i};q.prototype.Yg=function(a){a&&(a.b.fb().Fb.Rc?(this.Z&&
(this.i.length=0,ua(this.ca,a.type.i),this.Z=!1),a=this.ca.indexOf(a),-1!==a&&(this.i.push(this.ca[a]),this.ca.splice(a,1))):(this.Z=!1,this.i.length=1,this.i[0]=a))};eb=q;window._c2hh_="BF45BDA8D966A4625A10B275D0F38F8EE8238CA2";c.prototype.Ha=function(a){var c,e=this.parent;if(this.group)for(this.sj=!0;e;){if(!e.group){this.sj=!1;break}e=e.parent}this.Gl=!this.pn()&&(!this.parent||this.parent.group&&this.parent.sj);this.Wm=!!a;this.Yd=this.va.slice(0);for(e=this.parent;e;){a=0;for(c=e.va.length;a<
c;a++)this.Cq(e.va[a]);e=e.parent}this.va=b(this.va);this.Yd=b(this.Yd);a=0;for(c=this.Ta.length;a<c;a++)this.Ta[a].Ha();a=0;for(c=this.qc.length;a<c;a++)this.qc[a].Ha();a=0;for(c=this.Gc.length;a<c;a++)this.Gc[a].Ha(a<c-1&&this.Gc[a+1].mi)};c.prototype.xt=function(a){if(this.ze!==!!a){this.ze=!!a;var b;a=0;for(b=this.Hh.length;a<b;++a)this.Hh[a].Lo();0<b&&this.b.qa.te&&this.b.qa.te.Kl()}};c.prototype.nm=function(b){a(b,this.va)};c.prototype.Cq=function(b){a(b,this.Yd)};c.prototype.ej=function(){this.uo=
!0;this.parent&&this.parent.ej()};c.prototype.pn=function(){return this.Ta.length?this.Ta[0].trigger:!1};c.prototype.Oa=function(){var a,b=!1,c,e=this.b,m=this.b.fb();m.Fb=this;var d=this.Ta;this.mi||(m.Zj=!1);if(this.Rc){0===d.length&&(b=!0);m.Qa=0;for(a=d.length;m.Qa<a;m.Qa++)d[m.Qa].trigger||(c=d[m.Qa].Oa())&&(b=!0);(m.Je=b)&&this.Zi()}else{m.Qa=0;for(a=d.length;m.Qa<a;m.Qa++)if(c=d[m.Qa].Oa(),!c){m.Je=!1;this.Gl&&e.Qd&&e.pb();return}m.Je=!0;this.Zi()}this.cr(m)};c.prototype.cr=function(a){a.Je&&
this.Wm&&(a.Zj=!0);this.Gl&&this.b.Qd&&this.b.pb()};c.prototype.mt=function(a){this.b.fb().Fb=this;this.Ta[a].Oa()&&(this.Zi(),this.b.fb().Je=!0)};c.prototype.Zi=function(){var a=this.b.fb(),b;a.Db=0;for(b=this.qc.length;a.Db<b;a.Db++)if(this.qc[a.Db].Oa())return;this.ko()};c.prototype.it=function(){var a=this.b.fb(),b;for(b=this.qc.length;a.Db<b;a.Db++)if(this.qc[a.Db].Oa())return;this.ko()};c.prototype.ko=function(){if(this.Gc.length){var a,b,c,e,m=this.Gc.length-1;this.b.Ti(this);if(this.uo)for(a=
0,b=this.Gc.length;a<b;a++)c=this.Gc[a],(e=!this.sj||!this.group&&a<m)&&this.b.Si(c.va),c.Oa(),e?this.b.Oe(c.va):this.b.Tj(c.va);else for(a=0,b=this.Gc.length;a<b;a++)this.Gc[a].Oa();this.b.Oi()}};c.prototype.nt=function(){var a=this.b.fb();a.Fb=this;var b=!1,c;a.Qa=0;for(c=this.Ta.length;a.Qa<c;a.Qa++)if(this.Ta[a.Qa].Oa())b=!0;else if(!this.Rc)return!1;return this.Rc?b:!0};c.prototype.jt=function(){this.b.hf++;var a=this.b.fb().Qa,b=this.b.Ti(this);if(!this.Rc)for(b.Qa=a+1,a=this.Ta.length;b.Qa<
a;b.Qa++)if(!this.Ta[b.Qa].Oa()){this.b.Oi();return}this.Zi();this.b.Oi()};c.prototype.xs=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ta[b].type===a.type)return!1;return!0};Pb=c;f.prototype.Ha=function(){var a,b,c;a=0;for(b=this.ma.length;a<b;a++)c=this.ma[a],c.Ha(),c.Ic&&(this.ag=!0)};f.prototype.pt=function(){return!0};f.prototype.pl=function(){var a,b;a=0;for(b=this.ma.length;a<b;a++)this.ta[a]=this.ma[a].get();return Ja(this.eb.apply(this.b.ed,this.ta),this.gi)};f.prototype.ot=
function(){var a,b;a=0;for(b=this.ma.length;a<b;a++)this.ta[a]=this.ma[a].get();a=this.eb.apply(this.je?this.je:this.type,this.ta);this.type.rc();return a};f.prototype.ol=function(){var a,b,c,e,m,d,f,h,q=this.type,g=q.X(),u=this.$b.Rc&&!this.trigger;b=0;var s=q.jc,r=q.Y,t=q.od,B=this.tc,C=-1<B,z=this.ag,x=this.ma,D=this.ta,R=this.gi,F=this.eb,Q;if(z)for(b=0,m=x.length;b<m;++b)d=x[b],d.Ic||(D[b]=d.get(0));else for(b=0,m=x.length;b<m;++b)D[b]=x[b].get(0);if(g.Z){g.i.length=0;g.ca.length=0;Q=q.i;a=0;
for(e=Q.length;a<e;++a){h=Q[a];if(z)for(b=0,m=x.length;b<m;++b)d=x[b],d.Ic&&(D[b]=d.get(a));C?(b=0,r&&(b=h.type.kf[t]),b=F.apply(h.K[B+b],D)):b=F.apply(h,D);(f=Ja(b,R))?g.i.push(h):u&&g.ca.push(h)}q.finish&&q.finish(!0);g.Z=!1;q.rc();return g.di()}c=0;Q=(f=u&&!this.$b.xs(this))?g.ca:g.i;var L=!1;a=0;for(e=Q.length;a<e;++a){h=Q[a];if(z)for(b=0,m=x.length;b<m;++b)d=x[b],d.Ic&&(D[b]=d.get(a));C?(b=0,r&&(b=h.type.kf[t]),b=F.apply(h.K[B+b],D)):b=F.apply(h,D);if(Ja(b,R))if(L=!0,f){if(g.i.push(h),s)for(b=
0,m=h.siblings.length;b<m;b++)d=h.siblings[b],d.type.X().i.push(d)}else{Q[c]=h;if(s)for(b=0,m=h.siblings.length;b<m;b++)d=h.siblings[b],d.type.X().i[c]=d;c++}else if(f){Q[c]=h;if(s)for(b=0,m=h.siblings.length;b<m;b++)d=h.siblings[b],d.type.X().ca[c]=d;c++}else if(u&&(g.ca.push(h),s))for(b=0,m=h.siblings.length;b<m;b++)d=h.siblings[b],d.type.X().ca.push(d)}Q.length=c;if(s)for(r=q.Qb,a=0,e=r.length;a<e;a++)h=r[a].X(),f?h.ca.length=c:h.i.length=c;c=L;if(f&&!L)for(a=0,e=g.i.length;a<e;a++){h=g.i[a];if(z)for(b=
0,m=x.length;b<m;b++)d=x[b],d.Ic&&(D[b]=d.get(a));b=C?F.apply(h.K[B],D):F.apply(h,D);if(Ja(b,R)){L=!0;break}}q.finish&&q.finish(c||u);return u?L:g.di()};Lb=f;s.prototype.Ha=function(){var a,b,c;a=0;for(b=this.ma.length;a<b;a++)c=this.ma[a],c.Ha(),c.Ic&&(this.ag=!0)};s.prototype.pl=function(){var a,b;a=0;for(b=this.ma.length;a<b;a++)this.ta[a]=this.ma[a].get();return this.eb.apply(this.b.ed,this.ta)};s.prototype.ol=function(){var a=this.type.X().Hb(),b=this.type.Y,c=this.type.od,e=this.tc,f=-1<e,d=
this.ag,k=this.ma,h=this.ta,q=this.eb,g,u,s,r,t,B;if(d)for(u=0,r=k.length;u<r;++u)t=k[u],t.Ic||(h[u]=t.get(0));else for(u=0,r=k.length;u<r;++u)h[u]=k[u].get(0);g=0;for(s=a.length;g<s;++g){B=a[g];if(d)for(u=0,r=k.length;u<r;++u)t=k[u],t.Ic&&(h[u]=t.get(g));f?(u=0,b&&(u=B.type.kf[c]),q.apply(B.K[e+u],h)):q.apply(B,h)}return!1};Mb=s;var B=[],C=-1;h.prototype.Ha=function(){var a,b;if(11===this.type)this.ue=this.b.Nm(this.sh,this.$b.parent);else if(13===this.type)for(a=0,b=this.Te.length;a<b;a++)this.Te[a].Ha();
this.Yc&&this.Yc.Ha()};h.prototype.Ks=function(a){this.Ic||!a||a.Aa.ij||(this.Ic=!0)};h.prototype.mo=function(){this.Ic=!0};h.prototype.Sa=function(){C++;B.length===C&&B.push(new Rb);return B[C]};h.prototype.Ma=function(){C--};h.prototype.Xr=function(a){this.Zd=a||0;a=this.Sa();this.Yc.get(a);this.Ma();return a.data};h.prototype.Yr=function(a){this.Zd=a||0;a=this.Sa();this.Yc.get(a);this.Ma();return M(a.data)?a.data:""};h.prototype.ds=function(){return this.object};h.prototype.Vr=function(){return this.zm};
h.prototype.bs=function(a){this.Zd=a||0;a=this.Sa();this.Yc.get(a);this.Ma();return a.Xa()?this.b.rd(a.data):this.b.ng(a.data)};h.prototype.cs=function(){return this.ka};h.prototype.as=function(){return this.key};h.prototype.$r=function(){return this.index};h.prototype.Zr=function(a){a=a||0;var b=this.F.type,c=null,c=b.X(),e=c.Hb();if(e.length)c=e[a%e.length].type;else if(c.ca.length)c=c.ca[a%c.ca.length].type;else if(b.i.length)c=b.i[a%b.i.length].type;else return 0;return this.index+c.Sh[b.od]};
h.prototype.Wr=function(){return this.ue};h.prototype.Ur=function(){return this.Hm};h.prototype.es=function(){var a,b;a=0;for(b=this.Te.length;a<b;a++)this.rh[a]=this.Te[a].get();return this.rh};Nb=h;t.prototype.Ha=function(){this.va=b(this.va)};t.prototype.Cd=function(a){var b=this.b.Mm();this.parent&&!this.Eg&&b?(this.Me>=b.length&&(b.length=this.Me+1),b[this.Me]=a):this.data=a};t.prototype.ye=function(){var a=this.b.Mm();return!this.parent||this.Eg||!a||this.li?this.data:this.Me>=a.length||"undefined"===
typeof a[this.Me]?this.ei:a[this.Me]};t.prototype.Oa=function(){!this.parent||this.Eg||this.li||this.Cd(this.ei)};Hb=t;z.prototype.toString=function(){return"include:"+this.vg.toString()};z.prototype.Ha=function(){this.vg=this.b.bk[this.qs];this.sheet.Xm.add(this);this.va=b(this.va);for(var a=this.parent;a;)a.group&&a.Hh.push(this),a=a.parent;this.Lo()};z.prototype.Oa=function(){this.parent&&this.b.ah(this.b.u);this.vg.sk||this.vg.Oa(!0);this.parent&&this.b.Oe(this.b.u)};z.prototype.Lo=function(){for(var a=
this.parent;a;){if(a.group&&!a.ze){this.Zb=!1;return}a=a.parent}this.Zb=!0};Qb=z;x.prototype.reset=function(a){this.Fb=a;this.Db=this.Qa=0;this.wo.length=0;this.Zj=this.Je=!1};Gb=x})();
(function(){function g(b,e){this.F=b;this.b=b.b;this.type=e[0];this.get=[this.or,this.kr,this.xr,this.Br,this.er,this.yr,this.sr,this.hr,this.rr,this.wr,this.fr,this.ur,this.ir,this.tr,this.pr,this.qr,this.lr,this.mr,this.gr,this.Ar,this.Dm,this.nr,this.Dm,this.jr][this.type];var q=null;this.Jb=this.ma=this.ta=this.eb=this.pj=this.bb=this.first=this.value=null;this.tc=-1;this.td=null;this.Nl=-1;this.ue=this.sh=null;this.dh=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Ob(b,e[1]);break;case 18:this.first=new Ob(b,e[1]);this.bb=new Ob(b,e[2]);this.pj=new Ob(b,e[3]);break;case 19:this.eb=this.b.Id(e[1]);this.eb!==U.prototype.Ja.random&&this.eb!==U.prototype.Ja.ym||this.F.mo();this.ta=[];this.ma=[];3===e.length?(q=e[2],this.ta.length=q.length+1):this.ta.length=1;break;case 20:this.Jb=this.b.u[e[1]];this.tc=-1;this.eb=this.b.Id(e[2]);this.dh=e[3];Yb&&this.eb===Yb.prototype.Ja.Yo&&this.F.mo();this.td=e[4]?new Ob(b,e[4]):null;this.ta=[];this.ma=[];6===e.length?(q=
e[5],this.ta.length=q.length+1):this.ta.length=1;break;case 21:this.Jb=this.b.u[e[1]];this.dh=e[2];this.td=e[3]?new Ob(b,e[3]):null;this.Nl=e[4];break;case 22:this.Jb=this.b.u[e[1]];this.Jb.$h(e[2]);this.tc=this.Jb.jk(e[2]);this.eb=this.b.Id(e[3]);this.dh=e[4];this.td=e[5]?new Ob(b,e[5]):null;this.ta=[];this.ma=[];7===e.length?(q=e[6],this.ta.length=q.length+1):this.ta.length=1;break;case 23:this.sh=e[1],this.ue=null}this.F.Ks(this.Jb);4<=this.type&&17>=this.type&&(this.first=new Ob(b,e[1]),this.bb=
new Ob(b,e[2]));if(q){var c,a;c=0;for(a=q.length;c<a;c++)this.ma.push(new Ob(b,q[c]))}}function r(b,e){this.type=b||Sb.Ze;this.data=e||0;this.Df=null;this.type==Sb.Ze&&(this.data=Math.floor(this.data))}g.prototype.Ha=function(){23===this.type&&(this.ue=this.F.b.Nm(this.sh,this.F.$b.parent));this.first&&this.first.Ha();this.bb&&this.bb.Ha();this.pj&&this.pj.Ha();this.td&&this.td.Ha();if(this.ma){var b,e;b=0;for(e=this.ma.length;b<e;b++)this.ma[b].Ha()}};g.prototype.Ar=function(b){this.ta[0]=b;b=this.F.Sa();
var e,q;e=0;for(q=this.ma.length;e<q;e++)this.ma[e].get(b),this.ta[e+1]=b.data;this.F.Ma();this.eb.apply(this.b.ed,this.ta)};g.prototype.Dm=function(b){var e=this.Jb.X(),q=e.Hb();if(!q.length)if(e.ca.length)q=e.ca;else{this.dh?b.nc(""):b.ua(0);return}this.ta[0]=b;b.Df=this.Jb;b=this.F.Sa();var c,e=0;for(c=this.ma.length;e<c;e++)this.ma[e].get(b),this.ta[e+1]=b.data;e=this.F.Zd;this.td&&(this.td.get(b),b.Xa()&&(e=b.data,q=this.Jb.i));this.F.Ma();e%=q.length;0>e&&(e+=q.length);q=q[e];-1<this.tc?(b=
0,this.Jb.Y&&(b=q.type.kf[this.Jb.od]),this.eb.apply(q.K[this.tc+b],this.ta)):this.eb.apply(q,this.ta)};g.prototype.nr=function(b){var e=this.Jb.X(),q=e.Hb();if(!q.length)if(e.ca.length)q=e.ca;else{this.dh?b.nc(""):b.ua(0);return}e=this.F.Zd;if(this.td){var c=this.F.Sa();this.td.get(c);if(c.Xa()){e=c.data;q=this.Jb.i;e%=q.length;0>e&&(e+=q.length);q=q[e].Ra[this.Nl];M(q)?b.nc(q):b.C(q);this.F.Ma();return}this.F.Ma()}e%=q.length;0>e&&(e+=q.length);q=q[e];e=0;this.Jb.Y&&(e=q.type.Sh[this.Jb.od]);q=
q.Ra[this.Nl+e];M(q)?b.nc(q):b.C(q)};g.prototype.or=function(b){b.type=Sb.Ze;b.data=this.value};g.prototype.kr=function(b){b.type=Sb.Ye;b.data=this.value};g.prototype.xr=function(b){b.type=Sb.String;b.data=this.value};g.prototype.Br=function(b){this.first.get(b);b.Xa()&&(b.data=-b.data)};g.prototype.er=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.Xa()&&e.Xa()&&(b.data+=e.data,e.sf()&&b.yf());this.F.Ma()};g.prototype.yr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);
b.Xa()&&e.Xa()&&(b.data-=e.data,e.sf()&&b.yf());this.F.Ma()};g.prototype.sr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.Xa()&&e.Xa()&&(b.data*=e.data,e.sf()&&b.yf());this.F.Ma()};g.prototype.hr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.Xa()&&e.Xa()&&(b.data/=e.data,b.yf());this.F.Ma()};g.prototype.rr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.Xa()&&e.Xa()&&(b.data%=e.data,e.sf()&&b.yf());this.F.Ma()};g.prototype.wr=function(b){this.first.get(b);
var e=this.F.Sa();this.bb.get(e);b.Xa()&&e.Xa()&&(b.data=Math.pow(b.data,e.data),e.sf()&&b.yf());this.F.Ma()};g.prototype.fr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.Xa()?e.ni()?b.nc(b.data.toString()+e.data):b.data&&e.data?b.ua(1):b.ua(0):b.ni()&&(b.data=e.ni()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.F.Ma()};g.prototype.ur=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.Xa()&&e.Xa()&&(b.data||e.data?b.ua(1):b.ua(0));this.F.Ma()};
g.prototype.gr=function(b){this.first.get(b);b.data?this.bb.get(b):this.pj.get(b)};g.prototype.ir=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.ua(b.data===e.data?1:0);this.F.Ma()};g.prototype.tr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.ua(b.data!==e.data?1:0);this.F.Ma()};g.prototype.pr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.ua(b.data<e.data?1:0);this.F.Ma()};g.prototype.qr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);
b.ua(b.data<=e.data?1:0);this.F.Ma()};g.prototype.lr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.ua(b.data>e.data?1:0);this.F.Ma()};g.prototype.mr=function(b){this.first.get(b);var e=this.F.Sa();this.bb.get(e);b.ua(b.data>=e.data?1:0);this.F.Ma()};g.prototype.jr=function(b){var e=this.ue.ye();fa(e)?b.C(e):b.nc(e)};Ob=g;r.prototype.sf=function(){return this.type===Sb.Ye};r.prototype.Xa=function(){return this.type===Sb.Ze||this.type===Sb.Ye};r.prototype.ni=function(){return this.type===
Sb.String};r.prototype.yf=function(){this.sf()||(this.ni()&&(this.data=parseFloat(this.data)),this.type=Sb.Ye)};r.prototype.ua=function(b){this.type=Sb.Ze;this.data=Math.floor(b)};r.prototype.C=function(b){this.type=Sb.Ye;this.data=b};r.prototype.nc=function(b){this.type=Sb.String;this.data=b};r.prototype.no=function(b){fa(b)?(this.type=Sb.Ye,this.data=b):M(b)?(this.type=Sb.String,this.data=b.toString()):(this.type=Sb.Ze,this.data=0)};Rb=r;Sb={Ze:0,Ye:1,String:2}})();
function U(g){this.b=g;this.Ob=[]}U.prototype.ib=function(){var g={},r,b,e,q,c,a,f,s;g.waits=[];var h=g.waits,t;r=0;for(b=this.Ob.length;r<b;r++){a=this.Ob[r];t={t:a.time,st:a.to,s:a.Al,ev:a.gf.V,sm:[],sols:{}};a.gf.qc[a.Db]&&(t.act=a.gf.qc[a.Db].V);e=0;for(q=a.va.length;e<q;e++)t.sm.push(a.va[e].V);for(c in a.Ab)if(a.Ab.hasOwnProperty(c)){f=this.b.u[parseInt(c,10)];s={sa:a.Ab[c].$i,insts:[]};e=0;for(q=a.Ab[c].ud.length;e<q;e++)s.insts.push(a.Ab[c].ud[e].uid);t.sols[f.V.toString()]=s}h.push(t)}return g};
U.prototype.yb=function(g){g=g.waits;var r,b,e,q,c,a,f,s,h,t,z;r=this.Ob.length=0;for(b=g.length;r<b;r++)if(a=g[r],s=this.b.rm[a.ev.toString()]){h=-1;e=0;for(q=s.qc.length;e<q;e++)if(s.qc[e].V===a.act){h=e;break}if(-1!==h){f={Ab:{},va:[],Yj:!1};f.time=a.t;f.to=a.st||"";f.Al=!!a.s;f.gf=s;f.Db=h;e=0;for(q=a.sm.length;e<q;e++)(s=this.b.pg(a.sm[e]))&&f.va.push(s);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(s=this.b.pg(parseInt(c,10)))){h=a.sols[c];t={$i:h.sa,ud:[]};e=0;for(q=h.insts.length;e<q;e++)(z=
this.b.xe(h.insts[e]))&&t.ud.push(z);f.Ab[s.index.toString()]=t}this.Ob.push(f)}}};
(function(){function g(){}function r(){}function b(){}var e=U.prototype;g.prototype.gp=function(){return!0};g.prototype.Zl=function(){return!0};g.prototype.Yl=function(){return!0};g.prototype.fp=function(a){var b=this.b.ai(),c=b.G.Every_lastTime||0,e=this.b.Ib.fa;"undefined"===typeof b.G.Every_seconds&&(b.G.Every_seconds=a);var q=b.G.Every_seconds;if(e>=c+q)return b.G.Every_lastTime=c+q,e>=b.G.Every_lastTime+.04&&(b.G.Every_lastTime=e),b.G.Every_seconds=a,!0;e<c-.1&&(b.G.Every_lastTime=e);return!1};
g.prototype.cp=function(a,b,c){return Tb(a.ye(),b,c)};g.prototype.op=function(a){return(a=this.b.tg[a.toLowerCase()])&&a.ze};g.prototype.Rl=function(){var a=this.b.fb();return a.Zj?!1:!a.Je};g.prototype.$l=function(){return!0};g.prototype.Ap=function(){return!0};g.prototype.Ej=function(){return!0};g.prototype.Yp=function(){return!0};g.prototype.Cj=function(){return!0};g.prototype.Wo=function(a,b,c){return Fa(O(a),O(c))<=O(b)};g.prototype.np=function(a,b){return Ha(O(a),O(b))};g.prototype.mp=function(a,
b,c){a=Ca(a);b=Ca(b);c=Ca(c);return Ha(c,b)?Ha(a,b)&&!Ha(a,c):!(!Ha(a,b)&&Ha(a,c))};e.j=new g;r.prototype.ip=function(a){this.b.uf||this.b.le||(this.b.le=a)};r.prototype.pq=function(a,b){0===a.th?fa(b)?a.Cd(b):a.Cd(parseFloat(b)):1===a.th&&a.Cd(b.toString())};r.prototype.Vo=function(a,b){0===a.th?fa(b)?a.Cd(a.ye()+b):a.Cd(a.ye()+parseFloat(b)):1===a.th&&a.Cd(a.ye()+b.toString())};r.prototype.wq=function(a,b){0===a.th&&(fa(b)?a.Cd(a.ye()-b):a.Cd(a.ye()-parseFloat(b)))};var q=[],c=[];r.prototype.xq=
function(a){if(!(0>a)){var b,e,h,g=this.b.fb(),r;r=q.length?q.pop():{Ab:{},va:[]};r.Yj=!1;r.time=this.b.Ib.fa+a;r.to="";r.Al=!1;r.gf=g.Fb;r.Db=g.Db+1;a=0;for(b=this.b.u.length;a<b;a++)h=this.b.u[a],e=h.X(),e.Z&&-1===g.Fb.va.indexOf(h)||(r.va.push(h),h=void 0,h=c.length?c.pop():{ud:[]},h.$i=!1,h.$i=e.Z,ua(h.ud,e.i),r.Ab[a.toString()]=h);this.Ob.push(r);return!0}};r.prototype.iq=function(){var a,b,c;a=0;for(b=this.b.Hj.length;a<b;a++)c=this.b.Hj[a],c.data=c.ei};r.prototype.jq=function(){if(!this.b.uf&&
!this.b.le&&this.b.qa){this.b.le=this.b.qa;var a,b,c;a=0;for(b=this.b.Kd.length;a<b;a++)c=this.b.Kd[a],c.xt(c.fi)}};e.I=new r;b.prototype["int"]=function(a,b){M(b)?(a.ua(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ua(b)};b.prototype["float"]=function(a,b){M(b)?(a.C(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.C(b)};b.prototype.random=function(a,b,c){void 0===c?a.C(Math.random()*b):a.C(Math.random()*(c-b)+b)};b.prototype.sqrt=function(a,b){a.C(Math.sqrt(b))};b.prototype.abs=function(a,b){a.C(Math.abs(b))};
b.prototype.round=function(a,b){a.ua(Math.round(b))};b.prototype.floor=function(a,b){a.ua(Math.floor(b))};b.prototype.ceil=function(a,b){a.ua(Math.ceil(b))};b.prototype.sin=function(a,b){a.C(Math.sin(O(b)))};b.prototype.cos=function(a,b){a.C(Math.cos(O(b)))};b.prototype.tan=function(a,b){a.C(Math.tan(O(b)))};b.prototype.asin=function(a,b){a.C(ya(Math.asin(b)))};b.prototype.acos=function(a,b){a.C(ya(Math.acos(b)))};b.prototype.atan=function(a,b){a.C(ya(Math.atan(b)))};b.prototype.exp=function(a,b){a.C(Math.exp(b))};
b.prototype.log10=function(a,b){a.C(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,e,q;c=2;for(e=arguments.length;c<e;c++)q=arguments[c],"number"===typeof q&&b<q&&(b=q);a.C(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,e,q;c=2;for(e=arguments.length;c<e;c++)q=arguments[c],"number"===typeof q&&b>q&&(b=q);a.C(b)};b.prototype.re=function(a){a.C(this.b.re)};b.prototype.Ve=function(a){a.C(this.b.Ve)};b.prototype.time=
function(a){a.C(this.b.Ib.fa)};b.prototype.Rf=function(a){a.ua(this.b.Rf)};b.prototype.Gi=function(a){a.ua(this.b.Gi)};b.prototype.ek=function(a){a.ua(this.b.ek)};b.prototype.k=function(a,b,c,e,q){a.C(ya(Da(b,c,e,q)))};b.prototype.find=function(a,b,c){M(b)&&M(c)?a.ua(b.search(new RegExp(Wa(c),"i"))):a.ua(-1)};b.prototype.left=function(a,b,c){a.nc(M(b)?b.substr(0,c):"")};b.prototype.right=function(a,b,c){a.nc(M(b)?b.substr(b.length-c):"")};b.prototype.replace=function(a,b,c,e){M(b)&&M(c)&&M(e)?a.nc(b.replace(new RegExp(Wa(c),
"gi"),e)):a.nc(M(b)?b:"")};b.prototype.trim=function(a,b){a.nc(M(b)?b.trim():"")};b.prototype.ym=function(a){var b=N(Math.random()*(arguments.length-1));a.no(arguments[b+1])};b.prototype.Vj=function(a){a.C(this.b.Vj/1E3)};b.prototype.Bi=function(a){a.C(this.b.Bi)};e.Ja=new b;e.lt=function(){var a,b,e,h,g,r,x=this.b.fb();a=0;for(e=this.Ob.length;a<e;a++){h=this.Ob[a];if(-1===h.time){if(!h.Al)continue}else if(h.time>this.b.Ib.fa)continue;x.Fb=h.gf;x.Db=h.Db;x.Qa=0;for(b in h.Ab)h.Ab.hasOwnProperty(b)&&
(g=this.b.u[parseInt(b,10)].X(),r=h.Ab[b],g.Z=r.$i,ua(g.i,r.ud),g=r,g.ud.length=0,c.push(g));h.gf.it();this.b.Tj(h.va);h.Yj=!0}b=a=0;for(e=this.Ob.length;a<e;a++)h=this.Ob[a],this.Ob[b]=h,h.Yj?(Ma(h.Ab),h.va.length=0,q.push(h)):b++;this.Ob.length=b}})();
(function(){db=function(g,b){var e=g[1],q=g[3],c=g[4],a=g[5],f=g[6],s=g[7],h=g[8];b.j||(b.j={});b.I||(b.I={});b.Ja||(b.Ja={});var t=b.j,z=b.I,x=b.Ja;q&&(t.dp=function(a,b){return Tb(this.x,a,b)},t.au=function(a,b){return Tb(this.y,a,b)},t.hu=function(){var a=this.n;this.xa();var b=this.Ca;return!(b.right<a.nb||b.bottom<a.ob||b.left>a.Cb||b.top>a.Bb)},t.iu=function(){this.xa();var a=this.Ca,b=this.b.qa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},t.uu=function(a,b,c){var e=this.X(),
l=e.Hb();if(!l.length)return!1;var f=l[0],h=f,m=S(f.x,f.y,b,c),d,k,q;d=1;for(k=l.length;d<k;d++)if(f=l[d],q=S(f.x,f.y,b,c),0===a&&q<m||1===a&&q>m)m=q,h=f;e.Yg(h);return!0},z.Mu=function(a){this.x!==a&&(this.x=a,this.A())},z.Nu=function(a){this.y!==a&&(this.y=a,this.A())},z.Iu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.A()},z.Ju=function(a,b){var c=a.Sr(this);if(c){var e;c.mg?(e=c.mg(b,!0),c=c.mg(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.A()}},z.nu=function(a){0!==
a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.A())},z.mu=function(a,b){0!==b&&(this.x+=Math.cos(O(a))*b,this.y+=Math.sin(O(a))*b,this.A())},x.Fj=function(a){a.C(this.x)},x.Gj=function(a){a.C(this.y)},x.re=function(a){a.C(this.b.lg(this))});c&&(t.$t=function(a,b){return Tb(this.width,a,b)},t.Yt=function(a,b){return Tb(this.height,a,b)},z.qq=function(a){this.width!==a&&(this.width=a,this.A())},z.Gu=function(a){this.height!==a&&(this.height=a,this.A())},z.Ku=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.A()},x.Qu=function(a){a.C(this.width)},x.du=function(a){a.C(this.height)},x.Vt=function(a){this.xa();a.C(this.Ca.left)},x.Xt=function(a){this.xa();a.C(this.Ca.top)},x.Wt=function(a){this.xa();a.C(this.Ca.right)},x.Ut=function(a){this.xa();a.C(this.Ca.bottom)});a&&(t.Wo=function(a,b){return Fa(this.k,O(b))<=O(a)},t.np=function(a){return Ha(this.k,O(a))},t.mp=function(a,b){var c=Ca(a),e=Ca(b),l=Aa(this.k);return Ha(e,c)?Ha(l,c)&&!Ha(l,e):!(!Ha(l,c)&&
Ha(l,e))},z.Cu=function(a){a=O(za(a));isNaN(a)||this.k===a||(this.k=a,this.A())},z.yu=function(a){0===a||isNaN(a)||(this.k+=O(a),this.k=Aa(this.k),this.A())},z.zu=function(a){0===a||isNaN(a)||(this.k-=O(a),this.k=Aa(this.k),this.A())},z.Au=function(a,b){var c=Ga(this.k,O(b),O(a));isNaN(c)||this.k===c||(this.k=c,this.A())},z.Bu=function(a,b,c){a=Ga(this.k,Math.atan2(c-this.y,b-this.x),O(a));isNaN(a)||this.k===a||(this.k=a,this.A())},z.oq=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.k===c||(this.k=c,this.A())},x.Tt=function(a){a.C(Ba(this.k))});e||(t.bp=function(a,b,c){return Tb(this.Ra[a],b,c)},t.fu=function(a){return this.Ra[a]},t.vu=function(a,b){var c=this.X(),e=c.Hb();if(!e.length)return!1;var l=e[0],f=l,h=l.Ra[b],m,d,k;m=1;for(d=e.length;m<d;m++)if(l=e[m],k=l.Ra[b],0===a&&k<h||1===a&&k>h)h=k,f=l;c.Yg(f);return!0},t.tu=function(a){var b,c,e,l,f;if(this.b.ai().gi){f=this.X();if(f.Z)for(f.Z=!1,f.i.length=0,f.ca.length=0,e=this.i,b=0,c=e.length;b<c;b++)l=e[b],l.uid===
a?f.ca.push(l):f.i.push(l);else{e=b=0;for(c=f.i.length;b<c;b++)l=f.i[b],f.i[e]=l,l.uid===a?f.ca.push(l):e++;f.i.length=e}this.rc();return!!f.i.length}l=this.b.xe(a);if(!l)return!1;f=this.X();if(!f.Z&&-1===f.i.indexOf(l))return!1;if(this.Y)for(a=l.type.za,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Yg(l),this.rc(),!0}else if(l.type===this)return f.Yg(l),this.rc(),!0;return!1},t.Aj=function(){return!0},t.Ul=function(){return!0},z.mq=function(a,b){var c=this.Ra;fa(c[a])?c[a]=fa(b)?b:parseFloat(b):
M(c[a])&&(c[a]=M(b)?b:b.toString())},z.St=function(a,b){var c=this.Ra;fa(c[a])?c[a]=fa(b)?c[a]+b:c[a]+parseFloat(b):M(c[a])&&(c[a]=M(b)?c[a]+b:c[a]+b.toString())},z.vq=function(a,b){var c=this.Ra;fa(c[a])&&(c[a]=fa(b)?c[a]-b:c[a]-parseFloat(b))},z.Du=function(a,b){this.Ra[a]=b?1:0},z.Ou=function(a){this.Ra[a]=1-this.Ra[a]},z.ep=function(){this.b.Hd(this)},z.up||(z.up=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.yi(this,b,!0);this.Vc&&this.Vc();if(this.K)for(a=0,b=this.K.length;a<
b;++a)c=this.K[a],c.Vc&&c.Vc()}),x.bu=function(a){var b=a.Df.i.length,c,e,l;c=0;for(e=this.b.Mc.length;c<e;c++)l=this.b.Mc[c],a.Df.Y?0<=l.type.za.indexOf(a.Df)&&b++:l.type===a.Df&&b++;a.ua(b)},x.xu=function(a){a.ua(a.Df.X().Hb().length)},x.Pu=function(a){a.ua(this.uid)},x.eu=function(a){a.ua(this.rg())},x.Xo||(x.Xo=function(a){a.nc(JSON.stringify(this.b.ql(this,!0)))}));f&&(t.ju=function(){return this.visible},z.Lu=function(a){!a!==!this.visible&&(this.visible=a,this.b.na=!0)},t.Zt=function(a,b){return Tb(ab(100*
this.opacity),a,b)},z.Hu=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.na=!0)},x.Opacity=function(a){a.C(ab(100*this.opacity))});s&&(t.gu=function(a){return a?this.n===a:!1},t.wu=function(a){var b=this.X(),c=b.Hb();if(!c.length)return!1;var e=c[0],l=e,f,h;f=1;for(h=c.length;f<h;f++)if(e=c[f],0===a){if(e.n.index>l.n.index||e.n.index===l.n.index&&e.Ac()>l.Ac())l=e}else if(e.n.index<l.n.index||e.n.index===l.n.index&&e.Ac()<l.Ac())l=e;b.Yg(l);return!0},z.qu=function(){var a=
this.Ac();a!==this.n.i.length-1&&(sa(this.n.i,a),this.n.i.push(this),this.b.na=!0,this.n.Yb=!0)},z.ou=function(){var a=this.Ac();0!==a&&(sa(this.n.i,a),this.n.i.unshift(this),this.b.na=!0,this.n.Yb=!0)},z.pu=function(a){a&&a!=this.n&&(sa(this.n.i,this.Ac()),this.n.Yb=!0,this.n=a,this.Xe=a.i.length,a.i.push(this),this.b.na=!0)},z.Su=function(a,b){var c=0===a;if(b){var e=b.Om(this);if(e&&e.uid!==this.uid){this.n.index!==e.n.index&&(sa(this.n.i,this.Ac()),this.n.Yb=!0,this.n=e.n,this.Xe=e.n.i.length,
e.n.i.push(this));var l=this.Ac(),e=e.Ac();sa(this.n.i,l);l<e&&e--;c&&e++;e===this.n.i.length?this.n.i.push(this):this.n.i.splice(e,0,this);this.n.Yb=!0;this.b.na=!0}}},x.lu=function(a){a.ua(this.n.Dn)},x.ku=function(a){a.nc(this.n.name)},x.Ru=function(a){a.ua(this.Ac())});h&&(z.Eu=function(a,b){if(this.b.ja){var c=this.type.mk(b);if(!(0>c)){var e=1===a;this.Jd[c]!==e&&(this.Jd[c]=e,this.Fd(),this.b.na=!0)}}},z.Fu=function(a,b,c){if(this.b.ja){var e=this.type.mk(a);0>e||(a=this.type.O[e],e=this.Da[e],
b=Math.floor(b),0>b||b>=e.length||(1===this.b.ja.gv(a.jb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Zb&&(this.b.na=!0))))}})};zb=function(){this.Rj=this.Lj=!0;this.type.zh=!0;this.b.na=!0;var g,b,e=this.Mj;g=0;for(b=e.length;g<b;++g)e[g](this)};Ab=function(g){g&&this.Mj.push(g)};Cb=function(){if(this.Lj){var g=this.Ca,b=this.ec;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Sb*this.width,-this.Tb*this.height);this.k?(g.offset(-this.x,-this.y),b.po(g,this.k),b.offset(this.x,this.y),
b.tm(g)):b.Nf(g);g.normalize();this.Lj=!1}};var g=new pa(0,0,0,0);Db=function(){if(this.Rj&&this.hc){this.xa();var r=this.type.dg,b=this.Nd,e=this.Ca;g.set(r.wh(e.left),r.xh(e.top),r.wh(e.right),r.xh(e.bottom));b.dr(g)||(b.right<b.left?r.update(this,null,g):r.update(this,b,g),b.Qq(g),this.Rj=!1)}};Bb=function(g,b){return this.Ca.cb(g,b)&&this.ec.cb(g,b)?this.W&&!this.W.Ge()?(this.W.ke(this.width,this.height,this.k),this.W.cb(g-this.x,b-this.y)):!0:!1};vb=function(){this.type.xj();return this.Be};
Eb=function(){this.n.Qo();return this.Xe};Fb=function(){this.ea.length=0;var g,b;g=0;for(b=this.Jd.length;g<b;g++)this.Jd[g]&&this.ea.push(this.type.O[g]);this.To=!!this.ea.length};wb=function(){return"Inst"+this.eo};gb=function(g){if(g&&g.jc&&g.type!=this){var b,e,q;b=0;for(e=g.siblings.length;b<e;b++)if(q=g.siblings[b],q.type==this)return q}g=this.X().Hb();return g.length?g[0]:null};hb=function(g){var b=this.X().Hb();return b.length?b[g.rg()%b.length]:null};fb=function(){if(this.Qf&&!this.Y){var g,
b;g=0;for(b=this.i.length;g<b;g++)this.i[g].Be=g;var e=g,q=this.b.Mc;g=0;for(b=q.length;g<b;++g)q[g].type===this&&(q[g].Be=e++);this.Qf=!1}};tb=function(g){if(g<this.i.length)return this.i[g];g-=this.i.length;var b=this.b.Mc,e,q;e=0;for(q=b.length;e<q;++e)if(b[e].type===this){if(0===g)return b[e];--g}return null};ib=function(){return this.$d[this.ld]};jb=function(){this.ld++;this.ld===this.$d.length?this.$d.push(new eb(this)):this.$d[this.ld].Z=!0};kb=function(){this.ld++;this.ld===this.$d.length&&
this.$d.push(new eb(this));var g=this.$d[this.ld],b=this.$d[this.ld-1];b.Z?g.Z=!0:(g.Z=!1,ua(g.i,b.i),ua(g.ca,b.ca))};lb=function(){this.ld--};mb=function(g){var b,e,q,c,a,f=0;if(!this.Y)for(b=0,e=this.za.length;b<e;b++)for(a=this.za[b],q=0,c=a.Ia.length;q<c;q++){if(g===a.Ia[q].name)return this.G.lastBehIndex=f,a.Ia[q];f++}b=0;for(e=this.Ia.length;b<e;b++){if(g===this.Ia[b].name)return this.G.lastBehIndex=f,this.Ia[b];f++}return null};nb=function(g){return this.$h(g)?this.G.lastBehIndex:-1};rb=function(g){var b,
e;b=0;for(e=this.O.length;b<e;b++)if(this.O[b].name===g)return b;return-1};sb=function(){if(this.jc&&!this.Y){var g,b,e,q,c,a,f;this.xj();a=this.X();var s=a.Z,h=(g=this.b.fb())&&g.Fb&&g.Fb.Rc;g=0;for(b=this.Qb.length;g<b;g++)if(c=this.Qb[g],c!==this&&(c.xj(),f=c.X(),f.Z=s,!s)){f.i.length=a.i.length;e=0;for(q=a.i.length;e<q;e++)f.i[e]=c.Pm(a.i[e].Be);if(h)for(f.ca.length=a.ca.length,e=0,q=a.ca.length;e<q;e++)f.ca[e]=c.Pm(a.ca[e].Be)}}};ub=function(){return"Type"+this.V};Tb=function(g,b,e){if("undefined"===
typeof g||"undefined"===typeof e)return!1;switch(b){case 0:return g===e;case 1:return g!==e;case 2:return g<e;case 3:return g<=e;case 4:return g>e;case 5:return g>=e;default:return!1}}})();function Zb(g){this.b=g}
(function(){function g(a){a=Math.pow(10,a/20);0>a&&(a=0);1<a&&(a=1);return a}function r(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function b(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].ic():A.destination}function e(){return A.createGain?A.createGain():A.createGainNode()}function q(a){return A.createDelay?A.createDelay(a):A.createDelayNode(a)}function c(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,d){a.start?a.start(0,b):a.noteGrainOn(0,b,d-b)}function f(a){try{a.stop?
a.stop(0):a.noteOff(0)}catch(b){}}function s(a,b,d,c,m,l){this.type="filter";this.hb=[a,b,d,c,m,l];this.aa=e();this.N=e();this.N.gain.value=l;this.L=e();this.L.gain.value=1-l;this.Ka=A.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?a:mc[a];this.Ka.frequency.value=b;this.Ka.detune&&(this.Ka.detune.value=d);this.Ka.Q.value=c;this.Ka.gain.value=m;this.aa.connect(this.Ka);this.aa.connect(this.L);this.Ka.connect(this.N)}function h(a,b,d){this.type="delay";this.hb=[a,b,d];this.aa=e();
this.N=e();this.N.gain.value=d;this.L=e();this.L.gain.value=1-d;this.Ng=e();this.xc=q(a);this.xc.delayTime.value=a;this.Oh=e();this.Oh.gain.value=b;this.aa.connect(this.Ng);this.aa.connect(this.L);this.Ng.connect(this.N);this.Ng.connect(this.xc);this.xc.connect(this.Oh);this.Oh.connect(this.Ng)}function t(a,b,d,c){this.type="convolve";this.hb=[b,d,c];this.aa=e();this.N=e();this.N.gain.value=d;this.L=e();this.L.gain.value=1-d;this.me=A.createConvolver();a&&(this.me.normalize=b,this.me.buffer=a);this.aa.connect(this.me);
this.aa.connect(this.L);this.me.connect(this.N)}function z(a,b,d,m,l){this.type="flanger";this.hb=[a,b,d,m,l];this.aa=e();this.L=e();this.L.gain.value=1-l/2;this.N=e();this.N.gain.value=l/2;this.Th=e();this.Th.gain.value=m;this.xc=q(a+b);this.xc.delayTime.value=a;this.$a=A.createOscillator();this.$a.frequency.value=d;this.Vb=e();this.Vb.gain.value=b;this.aa.connect(this.xc);this.aa.connect(this.L);this.xc.connect(this.N);this.xc.connect(this.Th);this.Th.connect(this.xc);this.$a.connect(this.Vb);this.Vb.connect(this.xc.delayTime);
c(this.$a)}function x(a,b,d,m,l,k){this.type="phaser";this.hb=[a,b,d,m,l,k];this.aa=e();this.L=e();this.L.gain.value=1-k/2;this.N=e();this.N.gain.value=k/2;this.Ka=A.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?7:"allpass";this.Ka.frequency.value=a;this.Ka.detune&&(this.Ka.detune.value=b);this.Ka.Q.value=d;this.$a=A.createOscillator();this.$a.frequency.value=l;this.Vb=e();this.Vb.gain.value=m;this.aa.connect(this.Ka);this.aa.connect(this.L);this.Ka.connect(this.N);this.$a.connect(this.Vb);
this.Vb.connect(this.Ka.frequency);c(this.$a)}function u(a){this.type="gain";this.hb=[a];this.da=e();this.da.gain.value=a}function B(a,b){this.type="tremolo";this.hb=[a,b];this.da=e();this.da.gain.value=1-b/2;this.$a=A.createOscillator();this.$a.frequency.value=a;this.Vb=e();this.Vb.gain.value=b/2;this.$a.connect(this.Vb);this.Vb.connect(this.da.gain);c(this.$a)}function C(a,b){this.type="ringmod";this.hb=[a,b];this.aa=e();this.N=e();this.N.gain.value=b;this.L=e();this.L.gain.value=1-b;this.eh=e();
this.eh.gain.value=0;this.$a=A.createOscillator();this.$a.frequency.value=a;this.$a.connect(this.eh.gain);c(this.$a);this.aa.connect(this.eh);this.aa.connect(this.L);this.eh.connect(this.N)}function n(a,b,d,c,m){this.type="distortion";this.hb=[a,b,d,c,m];this.aa=e();this.Qi=e();this.Pi=e();this.wt(d,Math.pow(10,c/20));this.N=e();this.N.gain.value=m;this.L=e();this.L.gain.value=1-m;this.zj=A.createWaveShaper();this.Mh=new Float32Array(65536);this.Ir(a,b);this.zj.Mh=this.Mh;this.aa.connect(this.Qi);
this.aa.connect(this.L);this.Qi.connect(this.zj);this.zj.connect(this.Pi);this.Pi.connect(this.N)}function l(a,b,d,c,e){this.type="compressor";this.hb=[a,b,d,c,e];this.da=A.createDynamicsCompressor();try{this.da.threshold.value=a,this.da.knee.value=b,this.da.ratio.value=d,this.da.attack.value=c,this.da.release.value=e}catch(m){}}function y(a,b){this.type="analyser";this.hb=[a,b];this.da=A.createAnalyser();this.da.fftSize=a;this.da.smoothingTimeConstant=b;this.Gr=new Float32Array(this.da.frequencyBinCount);
this.ro=new Uint8Array(a);this.Xg=0}function E(){this.M=null;this.Ai=0;this.ae=[];this.Qk=this.ri=this.qi=0}function m(a,b){this.src=a;this.U=I;this.Pc=b;this.om=!1;var d=this;this.Ok=this.cl=null;this.Hf=[];this.aj=0;this.Pl=this.ck=this.vo=this.Ki=!1;1===I&&b&&(this.U=0,this.cl=e());this.ie=this.ha=null;var c;switch(this.U){case 0:this.ha=new Audio;this.ha.addEventListener("canplaythrough",function(){d.Pl=!0});1===I&&A.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.vo=!0,this.ha.addEventListener("canplay",
function(){d.Ok||(d.Ok=A.createMediaElementSource(d.ha),d.Ok.connect(d.cl))}));this.ha.autoplay=!1;this.ha.jv="auto";this.ha.src=a;break;case 1:c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){d.ie=c.response;d.Vq()};c.onerror=function(){d.ck=!0};c.send();break;case 2:this.ha=!0;break;case 3:this.ha=!0}}function d(a,d){var c=this;this.tag=d;this.Wb=this.Zc=!0;this.src=a.src;this.buffer=a;this.U=I;this.Pc=a.Pc;this.playbackRate=1;this.el=!0;this.Cc=this.yd=!1;
this.Mb=0;this.Dg=this.tf=this.ad=!1;this.volume=1;this.Fe=1===Q&&!this.Pc||2===Q;this.Bf=1;this.startTime=this.Fe?w.Ib.fa:w.gd.fa;this.Ga=this.La=null;this.bd=!1;this.Fa=null;this.Sn=this.Rn=this.Qn=this.Pn=this.Un=this.Tn=0;this.p=null;var m=!1;1!==this.U||0!==this.buffer.U||this.buffer.vo||(this.U=0);switch(this.U){case 0:this.Pc?(this.p=a.ha,m=!a.om,a.om=!0):(this.p=new Audio,this.p.autoplay=!1,this.p.src=a.ha.src,m=!0);m&&this.p.addEventListener("ended",function(){K=c.tag;c.Wb=!0;w.trigger(Zb.prototype.j.Bj,
P)});break;case 1:this.La=e();this.La.connect(b(d));1===this.buffer.U?a.ha&&(this.p=A.createBufferSource(),this.p.buffer=a.ha,this.p.connect(this.La)):(this.p=this.buffer.ha,this.buffer.cl.connect(this.La));break;case 2:this.p=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.el=!0,c.Wb=!0,K=c.tag,w.trigger(Zb.prototype.j.Bj,P))});break;case 3:this.p=!0}}function k(a){ta.length=0;if(a.length){var b,d,c;b=0;for(d=D.length;b<d;b++)c=D[b],bb(a,c.tag)&&ta.push(c)}else R&&
!R.Ae()&&(ta.length=1,ta[0]=R)}function p(a,b){T.hasOwnProperty(a)?T[a].push(b):T[a]=[b];var d,c,e,m,l=A.destination;if(T.hasOwnProperty(a)&&(e=T[a],e.length))for(l=e[0].ic(),d=0,c=e.length;d<c;d++)m=e[d],d+1===c?m.uc(A.destination):m.uc(e[d+1].ic());k(a);d=0;for(c=ta.length;d<c;d++)ta[d].et(l);Ea&&ob===a&&(Ea.disconnect(),Ea.connect(l))}function v(){}function H(){}var la=Zb.prototype;la.ba=function(a){this.Aa=a;this.b=a.b};la.ba.prototype.J=function(){};var w=null,P=null,K="",J="",I=0,A=null,V=[],
D=[],R=null,F=!1,Q=0,L=!1,W=1,ha=0,Ka=0,pb=1,qb=1,fc=10,gc=1E4,hc=1,Ea=null,ob="",Oa=!1,Pa=[],T={},mc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");s.prototype.uc=function(a){this.N.disconnect();this.N.connect(a);this.L.disconnect();this.L.connect(a)};s.prototype.remove=function(){this.aa.disconnect();this.Ka.disconnect();this.N.disconnect();this.L.disconnect()};s.prototype.ic=function(){return this.aa};h.prototype.uc=function(a){this.N.disconnect();this.N.connect(a);
this.L.disconnect();this.L.connect(a)};h.prototype.remove=function(){this.aa.disconnect();this.Ng.disconnect();this.xc.disconnect();this.Oh.disconnect();this.N.disconnect();this.L.disconnect()};h.prototype.ic=function(){return this.aa};t.prototype.uc=function(a){this.N.disconnect();this.N.connect(a);this.L.disconnect();this.L.connect(a)};t.prototype.remove=function(){this.aa.disconnect();this.me.disconnect();this.N.disconnect();this.L.disconnect()};t.prototype.ic=function(){return this.aa};z.prototype.uc=
function(a){this.L.disconnect();this.L.connect(a);this.N.disconnect();this.N.connect(a)};z.prototype.remove=function(){this.aa.disconnect();this.xc.disconnect();this.$a.disconnect();this.Vb.disconnect();this.L.disconnect();this.N.disconnect();this.Th.disconnect()};z.prototype.ic=function(){return this.aa};x.prototype.uc=function(a){this.L.disconnect();this.L.connect(a);this.N.disconnect();this.N.connect(a)};x.prototype.remove=function(){this.aa.disconnect();this.Ka.disconnect();this.$a.disconnect();
this.Vb.disconnect();this.L.disconnect();this.N.disconnect()};x.prototype.ic=function(){return this.aa};u.prototype.uc=function(a){this.da.disconnect();this.da.connect(a)};u.prototype.remove=function(){this.da.disconnect()};u.prototype.ic=function(){return this.da};B.prototype.uc=function(a){this.da.disconnect();this.da.connect(a)};B.prototype.remove=function(){this.$a.disconnect();this.Vb.disconnect();this.da.disconnect()};B.prototype.ic=function(){return this.da};C.prototype.uc=function(a){this.N.disconnect();
this.N.connect(a);this.L.disconnect();this.L.connect(a)};C.prototype.remove=function(){this.$a.disconnect();this.eh.disconnect();this.aa.disconnect();this.N.disconnect();this.L.disconnect()};C.prototype.ic=function(){return this.aa};n.prototype.wt=function(a,b){.01>a&&(a=.01);this.Qi.gain.value=a;this.Pi.gain.value=Math.pow(1/a,.6)*b};n.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};n.prototype.Ir=function(a,b){for(var d=Math.pow(10,
a/20),c=Math.pow(10,b/20),e=0,m=0;32768>m;++m)e=m/32768,e=this.shape(e,d,c),this.Mh[32768+m]=e,this.Mh[32768-m-1]=-e};n.prototype.uc=function(a){this.N.disconnect();this.N.connect(a);this.L.disconnect();this.L.connect(a)};n.prototype.remove=function(){this.aa.disconnect();this.Qi.disconnect();this.zj.disconnect();this.Pi.disconnect();this.N.disconnect();this.L.disconnect()};n.prototype.ic=function(){return this.aa};l.prototype.uc=function(a){this.da.disconnect();this.da.connect(a)};l.prototype.remove=
function(){this.da.disconnect()};l.prototype.ic=function(){return this.da};y.prototype.Ba=function(){this.da.getFloatFrequencyData(this.Gr);this.da.getByteTimeDomainData(this.ro);for(var a=this.da.fftSize,b=0,d=this.Xg=0,c=0;b<a;b++)c=(this.ro[b]-128)/128,0>c&&(c=-c),this.Xg<c&&(this.Xg=c),d+=c*c;this.Xg=r(this.Xg);r(Math.sqrt(d/a))};y.prototype.uc=function(a){this.da.disconnect();this.da.connect(a)};y.prototype.remove=function(){this.da.disconnect()};y.prototype.ic=function(){return this.da};E.prototype.fh=
function(a){if(this.M=a)this.qi=this.M.x,this.ri=this.M.y;this.ae.length=0};E.prototype.ci=function(){return!!this.M};E.prototype.Ba=function(a){this.M&&0!==a&&(this.Qk=Da(this.qi,this.ri,this.M.x,this.M.y),a=S(this.qi,this.ri,this.M.x,this.M.y)/a,4>this.ae.length||this.ae.shift(),this.ae.push(a),this.qi=this.M.x,this.ri=this.M.y)};E.prototype.Um=function(){if(!this.ae.length)return 0;var a,b,d=0;a=0;for(b=this.ae.length;a<b;a++)d+=this.ae[a];return d/this.ae.length};E.prototype.pk=function(){return Math.cos(this.Qk)*
this.Um()};E.prototype.qk=function(){return Math.sin(this.Qk)*this.Um()};var ic=!1;m.prototype.Vq=function(){if(!this.ha&&this.ie){var a=this;if(A.decodeAudioData)A.decodeAudioData(this.ie,function(b){a.ha=b;a.ie=null;var c,e,m;if(ea(a.Mi)||L)ea(a.Ih)||(c=a.Ih.me,c.normalize=a.Cn,c.buffer=b);else if(a.Hf.length){c=0;for(e=a.Hf.length;c<e;c++){b=a.Hf[c];m=new d(a,b.Bo);m.cj(!0);if("undefined"!==typeof b.En&&(b.M=w.xe(b.En),!b.M))continue;if(b.M){var l=Ia(b.M.x,b.M.y,-b.M.n.Wa(),ha,Ka,!0),k=Ia(b.M.x,
b.M.y,-b.M.n.Wa(),ha,Ka,!1);m.wl(l,k,ya(b.M.k-b.M.n.Wa()),b.tk,b.Rk,b.Uk);m.fh(b.M)}else m.wl(b.x,b.y,b.yq,b.tk,b.Rk,b.Uk);m.play(a.Nk,a.Ol,a.aj);a.Ki&&m.pause();D.push(m)}a.Hf.length=0}else m=new d(a,a.Mi),m.play(a.Nk,a.Ol,a.aj),a.Ki&&m.pause(),D.push(m)},function(){a.ck=!0});else if(this.ha=A.createBuffer(this.ie,!1),this.ie=null,ea(this.Mi)||L)ea(this.Ih)||(b=this.Ih.me,b.normalize=this.Cn,b.buffer=this.ha);else{var b=new d(this,this.Mi);b.play(this.Nk,this.Ol,this.aj);this.Ki&&b.pause();D.push(b)}}};
m.prototype.gn=function(){switch(this.U){case 0:var a=4<=this.ha.readyState;a&&(this.Pl=!0);return a||this.Pl;case 1:return!!this.ie||!!this.ha;case 2:return!0;case 3:return!0}return!1};m.prototype.ys=function(){switch(this.U){case 0:return this.gn();case 1:return!!this.ha;case 2:return!0;case 3:return!0}return!1};m.prototype.os=function(){switch(this.U){case 0:return!!this.ha.error;case 1:return this.ck}return!1};d.prototype.Ae=function(){var a;switch(this.U){case 0:return this.p.ended;case 1:if(1===
this.buffer.U){if(!this.Zc&&!this.Wb&&this.p.loop||this.Cc)return!1;a=this.Fe?w.Ib.fa:w.gd.fa;return a-this.startTime>this.buffer.ha.duration}return this.p.ended;case 2:return this.el;case 3:!0}return!0};d.prototype.Mq=function(){return this.Zc||this.Wb?!0:this.Ae()};d.prototype.cj=function(a){1===I&&(!this.bd&&a?this.La&&(this.Ga||(this.Ga=A.createPanner(),this.Ga.panningModel="number"===typeof this.Ga.panningModel?pb:["equalpower","HRTF","soundfield"][pb],this.Ga.distanceModel="number"===typeof this.Ga.distanceModel?
qb:["linear","inverse","exponential"][qb],this.Ga.refDistance=fc,this.Ga.maxDistance=gc,this.Ga.rolloffFactor=hc),this.La.disconnect(),this.La.connect(this.Ga),this.Ga.connect(b(this.tag)),this.bd=!0):this.bd&&!a&&this.La&&(this.Ga.disconnect(),this.La.disconnect(),this.La.connect(b(this.tag)),this.bd=!1))};d.prototype.wl=function(a,b,d,c,e,m){this.bd&&1===I&&(this.Ga.setPosition(a,b,0),this.Ga.setOrientation(Math.cos(O(d)),Math.sin(O(d)),0),this.Ga.coneInnerAngle=c,this.Ga.coneOuterAngle=e,this.Ga.coneOuterGain=
m,this.Tn=a,this.Un=b,this.Pn=d,this.Qn=c,this.Rn=e,this.Sn=m)};d.prototype.fh=function(a){this.bd&&1===I&&(this.Fa||(this.Fa=new E),this.Fa.fh(a))};d.prototype.Ba=function(a){if(this.bd&&1===I&&this.Fa&&this.Fa.ci()&&this.De()){this.Fa.Ba(a);a=this.Fa.M;var b=Ia(a.x,a.y,-a.n.Wa(),ha,Ka,!0),d=Ia(a.x,a.y,-a.n.Wa(),ha,Ka,!1);this.Ga.setPosition(b,d,0);b=0;"undefined"!==typeof this.Fa.M.k&&(b=a.k-a.n.Wa(),this.Ga.setOrientation(Math.cos(b),Math.sin(b),0));b=Ia(this.Fa.pk(),this.Fa.qk(),-a.n.Wa(),0,0,
!0);d=Ia(this.Fa.pk(),this.Fa.qk(),-a.n.Wa(),0,0,!1);this.Ga.setVelocity(b,d,0)}};d.prototype.play=function(b,d,e){var m=this.p;this.ad=b;this.volume=d;e=e||0;switch(this.U){case 0:1!==m.playbackRate&&(m.playbackRate=1);m.volume!==d*W&&(m.volume=d*W);m.loop!==b&&(m.loop=b);m.muted&&(m.muted=!1);if(m.currentTime!==e)try{m.currentTime=e}catch(l){}if(this.Pc&&Oa&&!w.Ea)Pa.push(this);else try{this.p.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+
"': ",k)}break;case 1:this.muted=!1;this.Bf=1;if(1===this.buffer.U)this.Zc||(this.p=A.createBufferSource(),this.p.buffer=this.buffer.ha,this.p.connect(this.La)),this.p.loop=b,this.La.gain.value=d*W,0===e?c(this.p):a(this.p,e,this.we());else{1!==m.playbackRate&&(m.playbackRate=1);m.loop!==b&&(m.loop=b);this.La.gain.value=d*W;if(m.currentTime!==e)try{m.currentTime=e}catch(f){}this.Pc&&Oa&&!w.Ea?Pa.push(this):m.play()}break;case 2:(!this.Zc&&this.Wb||0!==e)&&m.seekTo(e);m.play();this.el=!1;break;case 3:w.rb?
AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Fe?w.Ib.fa:w.gd.fa)-e;this.Cc=this.Wb=this.Zc=!1};d.prototype.stop=function(){switch(this.U){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.U?f(this.p):this.p.paused||this.p.pause();break;case 2:this.p.stop();break;case 3:w.rb&&AppMobi.context.stopSound(this.src)}this.Wb=!0;this.Cc=!1};d.prototype.pause=function(){if(!(this.Zc||this.Wb||this.Ae()||this.Cc)){switch(this.U){case 0:this.p.paused||
this.p.pause();break;case 1:1===this.buffer.U?(this.Mb=this.nk(),this.ad&&(this.Mb%=this.we()),f(this.p)):this.p.paused||this.p.pause();break;case 2:this.p.pause();break;case 3:w.rb&&AppMobi.context.stopSound(this.src)}this.Cc=!0}};d.prototype.ht=function(){if(!(this.Zc||this.Wb||this.Ae())&&this.Cc){switch(this.U){case 0:this.p.play();break;case 1:1===this.buffer.U?(this.p=A.createBufferSource(),this.p.buffer=this.buffer.ha,this.p.connect(this.La),this.p.loop=this.ad,this.La.gain.value=W*this.volume*
this.Bf,this.startTime=(this.Fe?w.Ib.fa:w.gd.fa)-this.Mb,a(this.p,this.Mb,this.we())):this.p.play();break;case 2:this.p.play();break;case 3:w.rb&&AppMobi.context.resumeSound(this.src)}this.Cc=!1}};d.prototype.seek=function(a){if(!(this.Zc||this.Wb||this.Ae()))switch(this.U){case 0:try{this.p.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.U)this.Cc?this.Mb=a:(this.pause(),this.Mb=a,this.ht());else try{this.p.currentTime=a}catch(d){}break;case 3:w.rb&&AppMobi.context.seekSound(this.src,a)}};
d.prototype.et=function(a){1===this.U&&(this.bd?(this.Ga.disconnect(),this.Ga.connect(a)):(this.La.disconnect(),this.La.connect(a)))};d.prototype.we=function(){switch(this.U){case 0:if("undefined"!==typeof this.p.duration)return this.p.duration;break;case 1:return this.buffer.ha.duration;case 2:return this.p.getDuration();case 3:if(w.rb)return AppMobi.context.getDurationSound(this.src)}return 0};d.prototype.nk=function(){var a=this.we(),b=0;switch(this.U){case 0:"undefined"!==typeof this.p.currentTime&&
(b=this.p.currentTime);break;case 1:if(1===this.buffer.U){if(this.Cc)return this.Mb;b=(this.Fe?w.Ib.fa:w.gd.fa)-this.startTime}else"undefined"!==typeof this.p.currentTime&&(b=this.p.currentTime);break;case 3:w.rb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.ad&&b>a&&(b=a);return b};d.prototype.De=function(){return!this.Cc&&!this.Zc&&!this.Wb&&!this.Ae()};d.prototype.Mt=function(){var a=this.volume*W;switch(this.U){case 0:this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case 1:this.La.gain.value=
a*this.Bf}};d.prototype.Qh=function(a){switch(this.U){case 0:this.p.muted!==!!a&&(this.p.muted=!!a);break;case 1:this.Bf=a?0:1,this.La.gain.value=W*this.volume*this.Bf}};d.prototype.yt=function(){this.tf=!0;this.Qh(this.tf||this.Dg)};d.prototype.lo=function(a){this.Dg=!!a;this.Qh(this.tf||this.Dg)};d.prototype.Po=function(){var a=this.playbackRate;this.Fe&&(a*=w.Ve);switch(this.U){case 0:this.p.playbackRate!==a&&(this.p.playbackRate=a);break;case 1:1===this.buffer.U?this.p.playbackRate.value!==a&&
(this.p.playbackRate.value=a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};d.prototype.At=function(b){switch(this.U){case 0:b?this.De()?(this.p.pause(),this.yd=!0):this.yd=!1:this.yd&&this.p.play();break;case 1:b?this.De()?(1===this.buffer.U?(this.Mb=this.nk(),this.ad&&(this.Mb%=this.we()),f(this.p)):this.p.pause(),this.yd=!0):this.yd=!1:this.yd&&(1===this.buffer.U?(this.p=A.createBufferSource(),this.p.buffer=this.buffer.ha,this.p.connect(this.La),this.p.loop=this.ad,this.La.gain.value=W*this.volume*
this.Bf,this.startTime=(this.Fe?w.Ib.fa:w.gd.fa)-this.Mb,a(this.p,this.Mb,this.we())):this.p.play());break;case 2:b?this.De()?(this.p.pause(),this.yd=!0):this.yd=!1:this.yd&&this.p.play()}};la.P=function(a){this.type=a;w=this.b=a.b;P=this;this.xb=null;this.Kg=-600;!(this.b.oi||this.b.hi&&(this.b.zg||this.b.ji))||this.b.Ag||this.b.wa||(Oa=!0);A=null;"undefined"!==typeof AudioContext?(I=1,A=new AudioContext):"undefined"!==typeof webkitAudioContext&&(I=1,A=new webkitAudioContext);(this.b.oi&&1===I||
Oa)&&document.addEventListener("touchstart",function(){var a,b,d;!ic&&A&&(a=A.createBuffer(1,1,22050),b=A.createBufferSource(),b.buffer=a,b.connect(A.destination),c(b),ic=!0);if(Oa){if(!L)for(a=0,b=Pa.length;a<b;++a)d=Pa[a],d.Wb||d.Cc||d.p.play();Pa.length=0}},!0);1!==I&&(this.b.Bc&&"undefined"!==typeof window.Media?I=2:this.b.qf&&(I=3));2===I&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.jn&&this.b.zs&&"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.Hd(this);else{if(this.b.rb)F=this.b.hi;else try{F=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){F=!1}this.b.Fl(this)}};var na=la.P.prototype;na.J=function(){this.b.cf=this;Q=this.H[0];this.zd=this.H[1];this.Ys=0!==this.H[2];pb=this.H[3];qb=this.H[4];this.Kg=-this.H[5];fc=this.H[6];gc=this.H[7];hc=this.H[8];this.xb=new E;var a=this.b.S||this.b.width,d=this.b.R||this.b.height;1===I&&(A.listener.speedOfSound=this.H[9],A.listener.dopplerFactor=this.H[10],A.listener.setPosition(a/
2,d/2,this.Kg),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,d){Ea&&Ea.disconnect();ob=d.toLowerCase();Ea=A.createMediaStreamSource(a);Ea.connect(b(ob))});this.b.Dq(function(a){P.Vs(a)});var c=this;this.b.yh(function(a){c.Tg(a)})};na.Tg=function(a){var b,d,c;b=0;for(d=D.length;b<d;b++)c=D[b],c.Fa&&c.Fa.M===a&&(c.Fa.M=null,c.bd&&c.De()&&c.ad&&c.stop());this.xb.M===a&&(this.xb.M=null)};na.ib=function(){var a={silent:L,masterVolume:W,listenerZ:this.Kg,listenerUid:this.xb.ci()?
this.xb.M.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,m,l,k;d=0;for(c=D.length;d<c;d++)e=D[d],!e.De()||3===this.zd||e.Pc&&1===this.zd||!e.Pc&&2===this.zd||(m=e.nk(),e.ad&&(m%=e.we()),m={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Pc,playbackTime:m,volume:e.volume,looping:e.ad,muted:e.tf,playbackRate:e.playbackRate,paused:e.Cc,resume_position:e.Mb},e.bd&&(m.pan={},k=m.pan,e.Fa&&e.Fa.ci()?k.objUid=e.Fa.M.uid:(k.x=e.Tn,k.y=e.Un,k.a=e.Pn),k.ia=e.Qn,k.oa=e.Rn,k.og=e.Sn),b.push(m));b=a.effects;for(l in T)if(T.hasOwnProperty(l)){e=
[];d=0;for(c=T[l].length;d<c;d++)e.push({type:T[l][d].type,params:T[l][d].hb});b[l]=e}return a};var Qa=[];na.yb=function(a){var b=a.silent;W=a.masterVolume;this.Kg=a.listenerZ;this.xb.fh(null);var d=a.listenerUid;-1!==d&&(this.xb.Ai=d,Qa.push(this.xb));var d=a.playing,c,e,m,k,f,g,q,r,v,w,H;if(3!==this.zd)for(c=0,e=D.length;c<e;c++)v=D[c],v.Pc&&1===this.zd||(v.Pc||2!==this.zd)&&v.stop();for(f in T)if(T.hasOwnProperty(f))for(c=0,e=T[f].length;c<e;c++)T[f][c].remove();Ma(T);for(f in a.effects)if(a.effects.hasOwnProperty(f))for(g=
a.effects[f],c=0,e=g.length;c<e;c++)switch(m=g[c].type,w=g[c].params,m){case "filter":p(f,new s(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":p(f,new h(w[0],w[1],w[2]));break;case "convolve":m=w[2];v=this.Zh(m,!1);v.ha?m=new t(v.ha,w[0],w[1],m):(m=new t(null,w[0],w[1],m),v.Cn=w[0],v.Ih=m);p(f,m);break;case "flanger":p(f,new z(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":p(f,new x(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":p(f,new u(w[0]));break;case "tremolo":p(f,new B(w[0],w[1]));break;
case "ringmod":p(f,new C(w[0],w[1]));break;case "distortion":p(f,new n(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":p(f,new l(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":p(f,new y(w[0],w[1]))}c=0;for(e=d.length;c<e;c++)3===this.zd||(a=d[c],m=a.buffersrc,k=a.is_music,f=a.tag,g=a.playbackTime,q=a.looping,r=a.volume,H=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,k&&1===this.zd)||!k&&2===this.zd||((v=this.ik(m,f,k,q,r))?(v.Mb=a.resume_position,v.cj(!!w),v.play(q,r,g),v.Po(),v.Mt(),v.Qh(v.tf||
v.Dg),a.paused&&v.pause(),a.muted&&v.yt(),v.Qh(v.tf||v.Dg),w&&(-1!==H?(v.Fa=v.Fa||new E,v.Fa.Ai=H,Qa.push(v.Fa)):v.wl(w.x,w.y,w.a,w.ia,w.oa,w.og))):(v=this.Zh(m,k),v.aj=g,v.Ki=a.paused,w&&(-1!==H?v.Hf.push({En:H,tk:w.ia,Rk:w.oa,Uk:w.og,Bo:f}):v.Hf.push({x:w.x,y:w.y,yq:w.a,tk:w.ia,Rk:w.oa,Uk:w.og,Bo:f}))));if(b&&!L){c=0;for(e=D.length;c<e;c++)D[c].lo(!0);L=!0}else if(!b&&L){c=0;for(e=D.length;c<e;c++)D[c].lo(!1);L=!1}};na.Vc=function(){var a,b,d,c;a=0;for(b=Qa.length;a<b;a++)d=Qa[a],c=this.b.xe(d.Ai),
d.fh(c),d.Ai=-1,c&&(ha=c.x,Ka=c.y);Qa.length=0};na.Vs=function(a){if(!this.Ys){!a&&A&&A.resume&&A.resume();var b,d;b=0;for(d=D.length;b<d;b++)D[b].At(a);a&&A&&A.suspend&&A.suspend()}};na.Ba=function(){var a=this.b.re,b,d,c;b=0;for(d=D.length;b<d;b++)c=D[b],c.Ba(a),0===c.U||3===c.U||c.Zc||c.Wb||!c.Ae()||(c.Wb=!0,K=c.tag,w.trigger(Zb.prototype.j.Bj,P)),0!==Q&&c.Po();var e,m;for(e in T)if(T.hasOwnProperty(e))for(c=T[e],b=0,d=c.length;b<d;b++)m=c[b],m.Ba&&m.Ba();1===I&&this.xb.ci()&&(this.xb.Ba(a),ha=
this.xb.M.x,Ka=this.xb.M.y,A.listener.setPosition(this.xb.M.x,this.xb.M.y,this.Kg),A.listener.setVelocity(this.xb.pk(),this.xb.qk(),0))};var Ra=[];na.zt=function(a){var b,d,c,e,m,l=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(m=4<e.length&&".ogg"===e.substr(e.length-4))&&F||!m&&!F)Ra.push({filename:e,size:c,M:null}),l+=c;return l};na.Ct=function(){var a,b,d,c;a=0;for(b=Ra.length;a<b;++a)d=Ra[a],c=this.b.Uh+d.filename,d.M=this.Zh(c,!1)};na.Tr=function(){var a=0,b,d,c;b=0;for(d=Ra.length;b<
d;++b)c=Ra[b],c.M.ys()||c.M.os()||this.b.wa||this.b.ji?a+=c.size:c.M.gn()&&(a+=Math.floor(c.size/2));return a};na.Zh=function(a,b){var d,c,e,l=null;d=0;for(c=V.length;d<c;d++)if(e=V[d],e.src===a){l=e;break}l||(l=new m(a,b),V.push(l));return l};na.ik=function(a,b,c,e,m){var l,k,f;l=0;for(k=D.length;l<k;l++)if(f=D[l],f.src===a&&(f.Mq()||c))return f.tag=b,f;a=this.Zh(a,c);if(!a.ha)return"<preload>"!==b&&(a.Mi=b,a.Nk=e,a.Ol=m),null;f=new d(a,b);D.push(f);return f};var ta=[];v.prototype.Bj=function(a){return bb(K,
a)};v.prototype.rp=function(a){k(a);var b;a=0;for(b=ta.length;a<b;a++)if(ta[a].De())return!0;return!1};la.j=new v;H.prototype.Play=function(a,b,d,c){!L&&(d=g(d),R=this.ik(this.b.Uh+a[0]+(F?".ogg":".m4a"),c,a[1],0!==b,d))&&(R.cj(!1),R.play(0!==b,d))};H.prototype.hq=function(a,b,d,c,e){!L&&(c=g(c),R=this.ik(this.b.Uh+b.toLowerCase()+(F?".ogg":".m4a"),e,1===a,0!==d,c))&&(R.cj(!1),R.play(0!==d,c))};H.prototype.uq=function(a){k(a);var b;a=0;for(b=ta.length;a<b;a++)ta[a].stop()};la.I=new H;la.Ja=new function(){}})();
function Y(g){this.b=g}
(function(){function g(){}function r(){}var b=0,e=!1,q=!1,c=Y.prototype;c.ba=function(a){this.Aa=a;this.b=a.b};c.ba.prototype.J=function(){};c.P=function(a){this.type=a;this.b=a.b};c.P.prototype.J=function(){this.ln=this.kn=!1;this.Uf="";this.cd=null;this.Gt=this.b.ub&&"undefined"!==typeof CocoonJS.Store.nativeExtensionObjectAvailable;this.Et=1!==this.H[0];this.Ft=0!==this.H[1];this.In="";var a=this;this.b.ub&&(CocoonJS.App.onTextDialogFinished.addEventListener(function(){a.b.trigger(Y.prototype.j.Xp,a)}),
CocoonJS.App.onTextDialogCancelled.addEventListener(function(){a.b.trigger(Y.prototype.j.Wp,a)}),CocoonJS.Ad.onBannerShown.addEventListener(function(){a.kn=!0;a.b.trigger(Y.prototype.j.zp,a)}),CocoonJS.Ad.onBannerReady.addEventListener(function(){q=!0;e||(CocoonJS.Ad.setBannerLayout(b),CocoonJS.Ad.showBanner())}),CocoonJS.Ad.onFullScreenShown.addEventListener(function(){a.ln=!0;a.b.trigger(Y.prototype.j.Hp,a)}),CocoonJS.Ad.onFullScreenHidden.addEventListener(function(){a.ln=!1;a.b.trigger(Y.prototype.j.Gp,
a)}),CocoonJS.Ad.onFullScreenReady.addEventListener(function(){preloadFullScreen||CocoonJS.Ad.showFullScreen()}),this.Gt&&(CocoonJS.Store.onProductPurchaseCompleted.addEventListener(function(b){a.Uf=b.productId;a.b.trigger(Y.prototype.j.Zp,a);CocoonJS.Store.addPurchase(b);CocoonJS.Store.consumePurchase(b.transactionId,b.productId);CocoonJS.Store.finishPurchase(b.transactionId)}),CocoonJS.Store.onConsumePurchaseFailed.addEventListener(function(){a.b.trigger(Y.prototype.j.Ns,a)}),CocoonJS.Store.onConsumePurchaseCompleted.addEventListener(function(b){this.In=
b;a.b.trigger(Y.prototype.j.In,a)}),CocoonJS.Store.onProductPurchaseFailed.addEventListener(function(b){a.Uf=b;a.b.trigger(Y.prototype.j.$p,a)}),CocoonJS.Store.onProductPurchaseStarted.addEventListener(function(b){a.Uf=b.productId;a.b.trigger(Y.prototype.j.aq,a)}),CocoonJS.Store.onProductsFetchStarted.addEventListener(function(){a.b.trigger(Y.prototype.j.Ts,a)}),CocoonJS.Store.onProductsFetchFailed.addEventListener(function(){a.b.trigger(Y.prototype.j.Ss,a)}),CocoonJS.Store.onProductsFetchCompleted.addEventListener(function(){a.b.trigger(Y.prototype.j.Rs,
a)}),CocoonJS.Store.requestInitialization({managed:this.Et,sandbox:this.Ft}),CocoonJS.Store.start()),this.cd=CocoonJS.SocialGaming.GameCenter,this.cd.onRequestLoginSucceed.addEventListener(function(){a.b.trigger(Y.prototype.j.Lp,a)}),this.cd.onRequestLoginFailed.addEventListener(function(){a.b.trigger(Y.prototype.j.Kp,a)}),this.cd.onLogout.addEventListener(function(){a.b.trigger(Y.prototype.j.Mp,a)}),this.cd.onRequestUserScoreSucceed.addEventListener(function(){a.b.trigger(Y.prototype.j.Np,a)}),this.cd.onRequestUserScoreFailed.addEventListener(function(){a.b.trigger(Y.prototype.j.Qp,
a)}),this.cd.onSubmitUserScoreSucceed.addEventListener(function(){a.b.trigger(Y.prototype.j.Pp,a)}),this.cd.onSubmitUserScoreFailed.addEventListener(function(){a.b.trigger(Y.prototype.j.Op,a)}),this.cd.onLeaderboardViewSucceed.addEventListener(function(){a.b.trigger(Y.prototype.j.Jp,a)}),this.cd.onLeaderboardViewClosed.addEventListener(function(){a.b.trigger(Y.prototype.j.Ip,a)}))};g.prototype.zp=function(){return!0};g.prototype.Hp=function(){return!0};g.prototype.Gp=function(){return!0};g.prototype.aq=
function(a){return this.Uf===a};g.prototype.Zp=function(a){return this.Uf===a};g.prototype.$p=function(a){return this.Uf===a};g.prototype.Ts=function(){return!0};g.prototype.Ns=function(){return!0};g.prototype.Rs=function(){return!0};g.prototype.Ss=function(){return!0};g.prototype.Wp=function(){return!0};g.prototype.Xp=function(){return!0};g.prototype.Lp=function(){return!0};g.prototype.Kp=function(){return!0};g.prototype.Mp=function(){return!0};g.prototype.Np=function(){return!0};g.prototype.Qp=
function(){return!0};g.prototype.Pp=function(){return!0};g.prototype.Op=function(){return!0};g.prototype.Jp=function(){return!0};g.prototype.Ip=function(){return!0};c.j=new g;r.prototype.rq=function(a){this.b.ub&&(b=0===a?CocoonJS.Ad.BannerLayout.TOP_CENTER:CocoonJS.Ad.BannerLayout.BOTTOM_CENTER,e=!1,q?(CocoonJS.Ad.setBannerLayout(b),CocoonJS.Ad.showBanner()):CocoonJS.Ad.preloadBanner())};r.prototype.kp=function(){this.b.ub&&(CocoonJS.Ad.hideBanner(),this.kn=!1)};c.I=new r;c.Ja=new function(){}})();
function Yb(g){this.b=g}
(function(){function g(){this.name="";this.bh=0;this.hb=[]}function r(){f++;f===a.length&&a.push(new g);return a[f]}function b(){}function e(){}function q(){}var c=Yb.prototype;c.ba=function(a){this.Aa=a;this.b=a.b};c.ba.prototype.J=function(){};c.P=function(a){this.type=a;this.b=a.b};var a=[],f=-1;c.P.prototype.J=function(){var a=this;window.c2_callFunction=function(b,c){var e,g,q,B=r();B.name=b.toLowerCase();B.bh=0;if(c)for(B.hb.length=c.length,e=0,g=c.length;e<g;++e)q=c[e],B.hb[e]="number"===typeof q||
"string"===typeof q?q:"boolean"===typeof q?q?1:0:0;else B.hb.length=0;a.b.trigger(Yb.prototype.j.vh,a,B.name);f--;return B.bh}};b.prototype.vh=function(b){var c=0>f?null:a[f];return c?bb(b,c.name):!1};c.j=new b;e.prototype.CallFunction=function(a,b){var c=r();c.name=a.toLowerCase();c.bh=0;ua(c.hb,b);this.b.trigger(Yb.prototype.j.vh,this,c.name);f--};c.I=new e;q.prototype.Yo=function(a,b){var c=r();c.name=b.toLowerCase();c.bh=0;c.hb.length=0;var e,g;e=2;for(g=arguments.length;e<g;e++)c.hb.push(arguments[e]);
this.b.trigger(Yb.prototype.j.vh,this,c.name);f--;a.no(c.bh)};c.Ja=new q})();function $b(g){this.b=g}
(function(){function g(){}var r=$b.prototype;r.ba=function(b){this.Aa=b;this.b=b.b};r.ba.prototype.J=function(){};r.P=function(b){this.type=b;this.b=b.b;this.pi=Array(256);this.yj=Array(256);this.fe=0};var b=r.P.prototype;b.J=function(){var b=this;this.b.wa||(jQuery(document).keydown(function(c){b.Vk(c)}),jQuery(document).keyup(function(c){b.Wk(c)}))};var e=[32,33,34,35,36,37,38,39,40,44];b.Vk=function(b){var c=!1;window!=window.top&&-1<e.indexOf(b.which)&&(b.preventDefault(),c=!0,b.stopPropagation());
if(this.pi[b.which])this.yj[b.which]&&!c&&b.preventDefault();else{this.pi[b.which]=!0;this.fe=b.which;this.b.Ea=!0;this.b.trigger($b.prototype.j.xp,this);var a=this.b.trigger($b.prototype.j.Wl,this),f=this.b.trigger($b.prototype.j.Tp,this);this.b.Ea=!1;if(a||f)this.yj[b.which]=!0,c||b.preventDefault()}};b.Wk=function(b){this.pi[b.which]=!1;this.fe=b.which;this.b.Ea=!0;this.b.trigger($b.prototype.j.yp,this);var c=this.b.trigger($b.prototype.j.Vp,this),a=this.b.trigger($b.prototype.j.Up,this);this.b.Ea=
!1;if(c||a||this.yj[b.which])this.yj[b.which]=!0,b.preventDefault()};b.ib=function(){return{triggerKey:this.fe}};b.yb=function(b){this.fe=b.triggerKey};g.prototype.pp=function(b){return this.pi[b]};g.prototype.Wl=function(b){return b===this.fe};g.prototype.xp=function(){return!0};g.prototype.yp=function(){return!0};g.prototype.Vp=function(b){return b===this.fe};g.prototype.Tp=function(b){return b===this.fe};g.prototype.Up=function(b){return b===this.fe};r.j=new g;r.I=new function(){};r.Ja=new function(){}})();
function ac(g){this.b=g}
(function(){function g(){}function r(){}var b=ac.prototype;b.ba=function(b){this.Aa=b;this.b=b.b};b.ba.prototype.J=function(){};b.P=function(b){this.type=b;this.b=b.b;this.Nj=Array(4);this.Do=this.uj=this.Tf=this.Ud=this.Td=0;this.rk=!1};var e=b.P.prototype;e.J=function(){var b=this;if(!this.b.wa){jQuery(document).mousemove(function(a){b.Zk(a)});jQuery(document).mousedown(function(a){b.Yk(a)});jQuery(document).mouseup(function(a){b.$k(a)});jQuery(document).dblclick(function(a){b.Qs(a)});var a=function(a){b.Ws(a)};
document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var q={left:0,top:0};e.Zk=function(b){var a=this.b.wa?q:jQuery(this.b.canvas).offset();this.Td=b.pageX-a.left;this.Ud=b.pageY-a.top};e.zn=function(){return 0<this.b.Gb?!0:0<=this.Td&&0<=this.Ud&&this.Td<this.b.width&&this.Ud<this.b.height};e.Yk=function(b){this.zn()&&(this.b.of&&!this.b.$c&&b.preventDefault(),this.Nj[b.which]=!0,this.b.Ea=!0,this.b.trigger(ac.prototype.j.wp,this),this.Tf=b.which-1,this.uj=
0,this.b.trigger(ac.prototype.j.Tl,this),this.b.trigger(ac.prototype.j.Dj,this),this.b.Ea=!1)};e.$k=function(b){this.Nj[b.which]&&(this.b.of&&!this.b.$c&&b.preventDefault(),this.b.of=!0,this.Nj[b.which]=!1,this.b.Ea=!0,this.Tf=b.which-1,this.b.trigger(ac.prototype.j.bq,this),this.b.Ea=!1)};e.Qs=function(b){this.zn()&&(b.preventDefault(),this.b.Ea=!0,this.Tf=b.which-1,this.uj=1,this.b.trigger(ac.prototype.j.Tl,this),this.b.trigger(ac.prototype.j.Dj,this),this.b.Ea=!1)};e.Ws=function(b){this.Do=0>(b.wheelDelta?
b.wheelDelta:b.detail?-b.detail:0)?0:1;this.rk=!1;this.b.Ea=!0;this.b.trigger(ac.prototype.j.fq,this);this.b.Ea=!1;this.rk&&b.preventDefault()};g.prototype.Tl=function(b,a){return b===this.Tf&&a===this.uj};g.prototype.wp=function(){return!0};g.prototype.bq=function(b){return b===this.Tf};g.prototype.Dj=function(b,a,e){return b!==this.Tf||a!==this.uj?!1:this.b.oh(e,this.Td,this.Ud)};g.prototype.fq=function(b){this.rk=!0;return b===this.Do};b.j=new g;b.I=new function(){};r.prototype.Fj=function(b,a){var e,
g,h,q,r;ea(a)?(e=this.b.rd(0),g=e.scale,h=e.tb,q=e.Kb,r=e.k,e.scale=1,e.tb=1,e.Kb=1,e.k=0,b.C(e.Pa(this.Td,this.Ud,!0)),e.scale=g,e.tb=h,e.Kb=q,e.k=r):(e=fa(a)?this.b.rd(a):this.b.ng(a))?b.C(e.Pa(this.Td,this.Ud,!0)):b.C(0)};r.prototype.Gj=function(b,a){var e,g,h,q,r;ea(a)?(e=this.b.rd(0),g=e.scale,h=e.tb,q=e.Lb,r=e.k,e.scale=1,e.tb=1,e.Lb=1,e.k=0,b.C(e.Pa(this.Td,this.Ud,!1)),e.scale=g,e.tb=h,e.Lb=q,e.k=r):(e=fa(a)?this.b.rd(a):this.b.ng(a))?b.C(e.Pa(this.Td,this.Ud,!1)):b.C(0)};b.Ja=new r})();
function X(g){this.b=g}
(function(){function g(){if(0===this.Wj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Of?b.drawImage(this.Nb,this.Ef,this.Ff,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Nb,0,0,this.width,this.height);this.Wj=a.toDataURL("image/png")}return this.Wj}function r(){}function b(a){a[0]=0;a[1]=0;a[2]=0;x.push(a)}function e(a,b){return a<b?""+a+","+b:""+b+","+a}function q(a,b,c,m){b=b.uid;c=c.uid;var d=e(b,c);if(a.hasOwnProperty(d))a[d][2]=
m;else{var k=x.length?x.pop():[0,0,0];k[0]=b;k[1]=c;k[2]=m;a[d]=k}}function c(a,c,f){c=e(c.uid,f.uid);a.hasOwnProperty(c)&&(b(a[c]),delete a[c])}function a(a,b,c){b=e(b.uid,c.uid);if(a.hasOwnProperty(b))return u=a[b][2],!0;u=-2;return!1}function f(){}var s=X.prototype;s.ba=function(a){this.Aa=a;this.b=a.b};var h=s.ba.prototype;h.J=function(){if(!this.Y){var a,b,c,e,d,k,f,h,q;this.Kc=[];this.ug=!1;a=0;for(b=this.Pb.length;a<b;a++){d=this.Pb[a];f={};f.name=d[0];f.speed=d[1];f.loop=d[2];f.ml=d[3];f.Xi=
d[4];f.Xn=d[5];f.V=d[6];f.frames=[];c=0;for(e=d[7].length;c<e;c++)k=d[7][c],h={},h.zo=k[0],h.Ao=k[1],h.Ef=k[2],h.Ff=k[3],h.width=k[4],h.height=k[5],h.duration=k[6],h.Sb=k[7],h.Tb=k[8],h.vk=k[9],h.Ni=k[10],h.Yn=k[11],h.Of=0!==h.width,h.Wj="",h.Zu=g,q={left:0,top:0,right:1,bottom:1},h.zl=q,h.Gd=null,(q=this.b.Er(k[0]))?h.Nb=q:(h.Nb=new Image,h.Nb.Sq=k[0],h.Nb.Rq=k[1],h.Nb.Kq=null,this.b.Rt(h.Nb,k[0])),f.frames.push(h),this.Kc.push(h);this.Pb[a]=f}}};h.No=function(){var a,b,c;a=0;for(b=this.i.length;a<
b;a++)c=this.i[a],c.Lh=c.vc.Gd};h.Jn=function(){if(!this.Y){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.Nb.Kq=null,c.Gd=null;this.ug=!1;this.No()}};h.Mn=function(){if(!this.Y&&this.i.length){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.Gd=this.b.ja.Gs(c.Nb,!1,this.b.la,c.Yn);this.No()}};h.Hs=function(){if(!this.Y&&!this.ug&&this.b.ja){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.Gd=this.b.ja.Gs(c.Nb,!1,this.b.la,c.Yn);this.ug=!0}};h.Ko=function(){if(!this.Y&&
!this.i.length&&this.ug){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],this.b.ja.deleteTexture(c.Gd),c.Gd=null;this.ug=!1}};var t=[];h.ao=function(a){var b,c,e;b=t.length=0;for(c=this.Kc.length;b<c;++b)e=this.Kc[b].Nb,-1===t.indexOf(e)&&(a.drawImage(e,0,0),t.push(e))};s.P=function(a){this.type=a;this.b=a.b;a=this.type.Pb[0].frames[0].Ni;this.Fc?this.W.ih(a):this.W=new Xa(a)};var z=s.P.prototype;z.J=function(){this.visible=0===this.H[0];this.wk=this.Ck=!1;this.hc=0!==this.H[3];1===this.type.Pb.length&&
1===this.type.Pb[0].frames.length||0===this.type.Pb[0].speed||(this.b.Fl(this),this.Ck=!0);this.ya=this.Km(this.H[1])||this.type.Pb[0];this.D=this.H[2];0>this.D&&(this.D=0);this.D>=this.ya.frames.length&&(this.D=this.ya.frames.length-1);var a=this.ya.frames[this.D];this.W.ih(a.Ni);this.Sb=a.Sb;this.Tb=a.Tb;this.fg=this.ya.speed;this.Fc?this.Wc.reset():this.Wc=new Va;this.qd=this.Wc.fa;this.he=!0;this.hd=0;this.ge=!0;this.df=this.pm="";this.xm=0;this.Sj=-1;this.type.Hs();var b,c,e,d,k,f,h,a=0;for(b=
this.type.Pb.length;a<b;a++)for(d=this.type.Pb[a],c=0,e=d.frames.length;c<e;c++)k=d.frames[c],0===k.width&&(k.width=k.Nb.width,k.height=k.Nb.height),k.Of&&(h=k.Nb,f=k.zl,f.left=k.Ef/h.width,f.top=k.Ff/h.height,f.right=(k.Ef+k.width)/h.width,f.bottom=(k.Ff+k.height)/h.height,0===k.Ef&&0===k.Ff&&k.width===h.width&&k.height===h.height&&(k.Of=!1));this.vc=this.ya.frames[this.D];this.Lh=this.vc.Gd};z.ib=function(){var a={a:this.ya.V,f:this.D,cas:this.fg,fs:this.qd,ar:this.hd,at:this.Wc.fa};this.he||(a.ap=
this.he);this.ge||(a.af=this.ge);return a};z.yb=function(a){var b=this.Jr(a.a);b&&(this.ya=b);this.D=a.f;0>this.D&&(this.D=0);this.D>=this.ya.frames.length&&(this.D=this.ya.frames.length-1);this.fg=a.cas;this.qd=a.fs;this.hd=a.ar;this.Wc.reset();this.Wc.fa=a.at;this.he=a.hasOwnProperty("ap")?a.ap:!0;this.ge=a.hasOwnProperty("af")?a.af:!0;this.vc=this.ya.frames[this.D];this.Lh=this.vc.Gd;this.W.ih(this.vc.Ni);this.Sb=this.vc.Sb;this.Tb=this.vc.Tb};z.Kj=function(a){this.D=a?0:this.ya.frames.length-
1;this.he=!1;this.pm=this.ya.name;this.wk=!0;this.b.trigger(X.prototype.j.vp,this);this.b.trigger(X.prototype.j.Sl,this);this.wk=!1;this.hd=0};z.bv=function(){return this.Wc.fa};z.Ba=function(){this.Wc.add(this.b.lg(this));this.df.length&&this.Bm();0<=this.Sj&&this.Yq();var a=this.Wc.fa,b=this.ya,c=b.frames[this.D],e=c.duration/this.fg;this.he&&a>=this.qd+e&&(this.ge?this.D++:this.D--,this.qd+=e,this.D>=b.frames.length&&(b.Xn?(this.ge=!1,this.D=b.frames.length-2):b.loop?this.D=b.Xi:(this.hd++,this.hd>=
b.ml?this.Kj(!1):this.D=b.Xi)),0>this.D&&(b.Xn?(this.D=1,this.ge=!0,b.loop||(this.hd++,this.hd>=b.ml&&this.Kj(!0))):b.loop?this.D=b.Xi:(this.hd++,this.hd>=b.ml?this.Kj(!0):this.D=b.Xi)),0>this.D?this.D=0:this.D>=b.frames.length&&(this.D=b.frames.length-1),a>this.qd+b.frames[this.D].duration/this.fg&&(this.qd=a),a=b.frames[this.D],this.$e(c,a),this.b.na=!0)};z.Km=function(a){var b,c,e;b=0;for(c=this.type.Pb.length;b<c;b++)if(e=this.type.Pb[b],bb(e.name,a))return e;return null};z.Jr=function(a){var b,
c,e;b=0;for(c=this.type.Pb.length;b<c;b++)if(e=this.type.Pb[b],e.V===a)return e;return null};z.Bm=function(){var a=this.ya.frames[this.D],b=this.Km(this.df);this.df="";!b||bb(b.name,this.ya.name)&&this.he||(this.ya=b,this.fg=b.speed,0>this.D&&(this.D=0),this.D>=this.ya.frames.length&&(this.D=this.ya.frames.length-1),1===this.xm&&(this.D=0),this.he=!0,this.qd=this.Wc.fa,this.ge=!0,this.$e(a,this.ya.frames[this.D]),this.b.na=!0)};z.Yq=function(){var a=this.ya.frames[this.D],b=this.D;this.D=N(this.Sj);
0>this.D&&(this.D=0);this.D>=this.ya.frames.length&&(this.D=this.ya.frames.length-1);b!==this.D&&(this.$e(a,this.ya.frames[this.D]),this.qd=this.Wc.fa,this.b.na=!0);this.Sj=-1};z.$e=function(a,b){var c=a.width,e=a.height,d=b.width,k=b.height;c!=d&&(this.width*=d/c);e!=k&&(this.height*=k/e);this.Sb=b.Sb;this.Tb=b.Tb;this.W.ih(b.Ni);this.A();this.vc=b;this.Lh=b.Gd;c=0;for(e=this.K.length;c<e;c++)d=this.K[c],d.Us&&d.Us(a,b);this.b.trigger(X.prototype.j.$e,this)};z.qe=function(a){a.globalAlpha=this.opacity;
var b=this.vc,c=b.Of,e=b.Nb,d=this.x,k=this.y,f=this.width,h=this.height;if(0===this.k&&0<=f&&0<=h)d-=this.Sb*f,k-=this.Tb*h,this.b.If&&(d=Math.round(d),k=Math.round(k)),c?a.drawImage(e,b.Ef,b.Ff,b.width,b.height,d,k,f,h):a.drawImage(e,d,k,f,h);else{this.b.If&&(d=Math.round(d),k=Math.round(k));a.save();var g=0<f?1:-1,q=0<h?1:-1;a.translate(d,k);1===g&&1===q||a.scale(g,q);a.rotate(this.k*g*q);d=0-this.Sb*ga(f);k=0-this.Tb*ga(h);c?a.drawImage(e,b.Ef,b.Ff,b.width,b.height,d,k,ga(f),ga(h)):a.drawImage(e,
d,k,ga(f),ga(h));a.restore()}};z.Xc=function(a){a.Tc(this.Lh);a.bj(this.opacity);var b=this.vc,c=this.ec;if(this.b.If){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.Of?a.Jf(c.lb+e,c.mb+d,c.oc+e,c.pc+d,c.fc+e,c.gc+d,c.ac+e,c.cc+d,b.zl):a.hl(c.lb+e,c.mb+d,c.oc+e,c.pc+d,c.fc+e,c.gc+d,c.ac+e,c.cc+d)}else b.Of?a.Jf(c.lb,c.mb,c.oc,c.pc,c.fc,c.gc,c.ac,c.cc,b.zl):a.hl(c.lb,c.mb,c.oc,c.pc,c.fc,c.gc,c.ac,c.cc)};z.Or=function(a){var b=this.vc,c,e;c=0;for(e=b.vk.length;c<e;c++)if(bb(a,b.vk[c][0]))return c;
return-1};z.mg=function(a,b){var c=this.vc,e=c.vk,d;d=M(a)?this.Or(a):a-1;d=N(d);if(0>d||d>=e.length)return b?this.x:this.y;var k=(e[d][1]-c.Sb)*this.width,e=e[d][2],e=(e-c.Tb)*this.height,c=Math.cos(this.k);d=Math.sin(this.k);var f=k*c-e*d,e=e*c+k*d,k=f+this.x,e=e+this.y;return b?k:e};var x=[],u=-2,B=[];r.prototype.Bp=function(e){if(!e)return!1;var f=this.b,h=f.ai(),m=h.type;h.G.collmemory||(h.G.collmemory={},f.yh(function(a){return function(d){d=d.uid;var c,e;for(c in a)a.hasOwnProperty(c)&&(e=
a[c],e[0]===d||e[1]===d)&&(b(a[c]),delete a[c])}}(h.G.collmemory)));var h=h.G.collmemory,d=m.X(),k=e.X(),d=d.Hb(),g,n,s,r,w,t,x,z=this.b.Rf,C=z-1,A=f.fb().Fb;for(n=0;n<d.length;n++){s=d[n];k.Z?(s.xa(),this.b.Lm(s.n,e,s.Ca,B),g=B):g=k.Hb();for(r=0;r<g.length;r++)w=g[r],f.Xb(s,w)||f.Pq(s,w)?(t=a(h,s,w),t=!t||u<C,q(h,s,w,z),t&&(f.Si(A.va),t=m.X(),x=e.X(),t.Z=!1,x.Z=!1,m===e?(t.i.length=2,t.i[0]=s,t.i[1]=w,m.rc()):(t.i.length=1,x.i.length=1,t.i[0]=s,x.i[0]=w,m.rc(),e.rc()),A.jt(),f.Oe(A.va))):c(h,s,w);
B.length=0}return!1};var C=new ca,n=!1;h.finish=function(a){if(n){if(a){var b=this.b.fb().Fb.Rc;a=null.X();var c=C.Hc(),e,d;if(a.Z){a.Z=!1;a.i.length=c.length;e=0;for(d=c.length;e<d;e++)a.i[e]=c[e];if(b)for(e=a.ca.length=0,d=null.i.length;e<d;e++)c=null.i[e],C.contains(c)||a.ca.push(c)}else if(b)for(b=a.i.length,a.i.length=b+c.length,e=0,d=c.length;e<d;e++)a.i[b+e]=c[e],xa(a.ca,c[e]);else ua(a.i,c);null.rc()}C.clear();n=!1}};r.prototype.lp=function(a){return this.df.length?bb(this.df,a):bb(this.ya.name,
a)};r.prototype.Sl=function(a){return bb(this.pm,a)};r.prototype.vp=function(){return!0};r.prototype.$e=function(){return!0};s.j=new r;f.prototype.tq=function(a,b,c){if(a&&b&&(b=this.b.Am(a,b,this.mg(c,!0),this.mg(c,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.A());this.b.Oc++;var e,d,k;this.b.trigger(Object.getPrototypeOf(a.Aa).j.Aj,b);if(b.jc)for(e=0,d=b.siblings.length;e<d;e++)k=b.siblings[e],this.b.trigger(Object.getPrototypeOf(k.type.Aa).j.Aj,k);this.b.Oc--;e=this.b.Mr();c=!1;if(ea(e.G.Spawn_LastExec)||
e.G.Spawn_LastExec<this.b.hf)c=!0,e.G.Spawn_LastExec=this.b.hf;if(a!=this.type&&(a=a.X(),a.Z=!1,c?(a.i.length=1,a.i[0]=b):a.i.push(b),b.jc))for(e=0,d=b.siblings.length;e<d;e++)k=b.siblings[e],a=k.type.X(),a.Z=!1,c?(a.i.length=1,a.i[0]=k):a.i.push(k)}};f.prototype.kq=function(a,b){this.df=a;this.xm=b;this.Ck||(this.b.Fl(this),this.Ck=!0);this.wk||this.Bm()};f.prototype.nq=function(a){a=ga(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.A())};f.prototype.lq=function(a){this.hc!==(0!==a)&&
((this.hc=0!==a)?this.A():(this.Nd.right>=this.Nd.left&&this.type.dg.update(this,this.Nd,null),this.Nd.set(0,0,-1,-1)))};s.I=new f;s.Ja=new function(){}})();function Z(g){this.b=g}
(function(){function g(a){h=a.x;t=a.y;z=a.z}function r(a){x=a.x;u=a.y;B=a.z}function b(a,b,c,f){var h;h=C.length?C.pop():new e;h.init(a,b,c,f);return h}function e(){this.lh=this.id=this.Le=this.Ke=this.y=this.x=this.mj=this.lj=this.Hk=this.time=this.Dl=0;this.qh=this.vj=!1}function q(){}function c(){}var a=Z.prototype;a.ba=function(a){this.Aa=a;this.b=a.b};a.ba.prototype.J=function(){};a.P=function(a){this.type=a;this.b=a.b;this.touches=[];this.Pk=!1};var f=a.P.prototype,s={left:0,top:0};f.jg=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var h=0,t=0,z=0,x=0,u=0,B=0,C=[];e.prototype.init=function(a,b,c,e){var f=Na();this.Dl=this.Hk=this.time=f;this.lj=a;this.mj=b;this.x=a;this.y=b;this.Ke=a;this.Le=b;this.id=c;this.lh=e;this.qh=this.vj=!1};e.prototype.update=function(a,b,c){this.Hk=this.time;this.time=a;this.Ke=this.x;this.Le=this.y;this.x=b;this.y=c;!this.qh&&15<=S(this.lj,this.mj,this.x,this.y)&&(this.qh=!0)};e.prototype.Js=function(a,b){!this.vj&&
500<=Na()-this.Dl&&!this.qh&&15>S(this.lj,this.mj,this.x,this.y)&&(this.vj=!0,a.fd=this.lh,a.Vf=this.id,a.nf=b,a.b.trigger(Z.prototype.j.Rp,a),a.jd=this.x,a.kd=this.y,a.b.trigger(Z.prototype.j.Sp,a),a.nf=0)};var n=-1E3,l=-1E3,y=-1E4;e.prototype.vn=function(a,b){if(!this.vj){var c=Na();333>=c-this.Dl&&!this.qh&&15>S(this.lj,this.mj,this.x,this.y)&&(a.fd=this.lh,a.Vf=this.id,a.nf=b,666>=c-y&&25>S(n,l,this.x,this.y)?(a.b.trigger(Z.prototype.j.Cp,a),a.jd=this.x,a.kd=this.y,a.b.trigger(Z.prototype.j.Dp,
a),l=n=-1E3,y=-1E4):(a.b.trigger(Z.prototype.j.cq,a),a.jd=this.x,a.kd=this.y,a.b.trigger(Z.prototype.j.dq,a),n=this.x,l=this.y,y=c),a.nf=0)}};f.J=function(){this.As=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.nf=this.Vf=this.fd=this.kd=this.jd=this.lm=this.km=this.jm=this.Bq=this.Aq=this.zq=this.Wg=this.Vg=this.Ug=0;this.Pt=0!==this.H[0];var a=0<this.b.Gb?document:this.b.canvas,b=document;this.b.rb?b=a=window.Canvas:this.b.ub&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.Ln(a)},!1),a.addEventListener("pointermove",function(a){c.Kn(a)},!1),b.addEventListener("pointerup",function(a){c.Ii(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ii(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.Ln(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Kn(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ii(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ii(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.On(a)},!1),a.addEventListener("touchmove",function(a){c.Nn(a)},!1),b.addEventListener("touchend",function(a){c.al(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.al(a,!0)},!1));if(this.As){var e=function(a){a=a.reading;c.jm=a.accelerationX;c.km=a.accelerationY;c.lm=a.accelerationZ},f=function(a){a=a.reading;c.Ug=a.yawDegrees;c.Vg=a.pitchDegrees;c.Wg=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),
h.addEventListener("readingchanged",e));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),l&&l.removeEventListener("readingchanged",f)):(h&&h.addEventListener("readingchanged",e),l&&l.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",
function(a){c.Ug=a.alpha||0;c.Vg=a.beta||0;c.Wg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.zq=a.accelerationIncludingGravity.x||0,c.Aq=a.accelerationIncludingGravity.y||0,c.Bq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.jm=a.acceleration.x||0,c.km=a.acceleration.y||0,c.lm=a.acceleration.z||0)},!1);this.Pt&&!this.b.wa&&(jQuery(document).mousemove(function(a){c.Zk(a)}),jQuery(document).mousedown(function(a){c.Yk(a)}),jQuery(document).mouseup(function(a){c.$k(a)}));
this.b.qf&&!this.b.rb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.Bc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(r,null,{frequency:40});this.b.It(this)};f.Kn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.jg(a.pointerId),c=Na();if(0<=b){var e=this.b.wa?s:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-e.left,a.pageY-e.top)}}};f.Ln=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.b.wa?s:jQuery(this.b.canvas).offset(),e=a.pageX-c.left,c=a.pageY-c.top;Na();this.fd=this.touches.length;this.Vf=a.pointerId;this.touches.push(b(e,c,a.pointerId,this.fd));this.b.Ea=!0;this.b.trigger(Z.prototype.j.em,this);this.b.trigger(Z.prototype.j.im,this);this.jd=e;this.kd=c;this.b.trigger(Z.prototype.j.hm,this);
this.b.Ea=!1}};f.Ii=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.jg(a.pointerId);this.fd=0<=c?this.touches[c].lh:-1;this.Vf=0<=c?this.touches[c].id:-1;this.b.Ea=!0;this.b.trigger(Z.prototype.j.dm,this);this.b.trigger(Z.prototype.j.gm,this);0<=c&&(b||this.touches[c].vn(this,c),100>C.length&&C.push(this.touches[c]),this.touches.splice(c,1));this.b.Ea=!1}};f.Nn=function(a){a.preventDefault&&a.preventDefault();
var b=Na(),c,e,f,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],h=this.jg(f.identifier),0<=h){var l=this.b.wa?s:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||h.update(b,f.pageX-l.left,f.pageY-l.top)}};f.On=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.b.wa?s:jQuery(this.b.canvas).offset();Na();this.b.Ea=!0;var e,f,h,l;e=0;for(f=a.changedTouches.length;e<f;e++)if(h=a.changedTouches[e],l=this.jg(h.identifier),-1===l){l=h.pageX-c.left;var g=h.pageY-
c.top;this.fd=this.touches.length;this.Vf=h.identifier;this.touches.push(b(l,g,h.identifier,this.fd));this.b.trigger(Z.prototype.j.em,this);this.b.trigger(Z.prototype.j.im,this);this.jd=l;this.kd=g;this.b.trigger(Z.prototype.j.hm,this)}this.b.Ea=!1};f.al=function(a,b){a.preventDefault&&cb(a)&&a.preventDefault();this.b.Ea=!0;var c,e,f;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],f=this.jg(f.identifier),0<=f&&(this.fd=this.touches[f].lh,this.Vf=this.touches[f].id,this.b.trigger(Z.prototype.j.dm,
this),this.b.trigger(Z.prototype.j.gm,this),b||this.touches[f].vn(this,f),100>C.length&&C.push(this.touches[f]),this.touches.splice(f,1));this.b.Ea=!1};f.Xu=function(){return this.b.qf&&0===this.Ug&&0!==z?90*z:this.b.Bc&&0===this.Ug&&0!==B?90*B:this.Ug};f.Yu=function(){return this.b.qf&&0===this.Vg&&0!==t?-90*t:this.b.Bc&&0===this.Vg&&0!==u?-90*u:this.Vg};f.av=function(){return this.b.qf&&0===this.Wg&&0!==h?90*h:this.b.Bc&&0===this.Wg&&0!==x?90*x:this.Wg};f.Yk=function(a){a.preventDefault&&this.b.of&&
!this.b.$c&&a.preventDefault();this.On({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Pk=!0};f.Zk=function(a){this.Pk&&this.Nn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};f.$k=function(a){a.preventDefault&&this.b.of&&!this.b.$c&&a.preventDefault();this.b.of=!0;this.al({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Pk=!1};f.ph=function(){var a,b,c,e=Na();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Hk=e),c.Js(this,
a)};q.prototype.im=function(){return!0};q.prototype.gm=function(){return!0};q.prototype.hm=function(a){return a?this.b.oh(a,this.jd,this.kd):!1};var E=[];q.prototype.sp=function(a){if(!a)return!1;var b=a.X(),c=b.Hb(),e,f,h,l,g,q;h=0;for(l=c.length;h<l;h++){var n=c[h];n.xa();g=0;for(q=this.touches.length;g<q;g++)if(f=this.touches[g],e=n.n.Pa(f.x,f.y,!0),f=n.n.Pa(f.x,f.y,!1),n.cb(e,f)){E.push(n);break}}return E.length?(b.Z=!1,ua(b.i,E),a.rc(),E.length=0,!0):!1};q.prototype.em=function(a){a=Math.floor(a);
return a===this.fd};q.prototype.dm=function(a){a=Math.floor(a);return a===this.fd};q.prototype.Rp=function(){return!0};q.prototype.cq=function(){return!0};q.prototype.Cp=function(){return!0};q.prototype.Sp=function(a){return a?this.b.oh(a,this.jd,this.kd):!1};q.prototype.dq=function(a){return a?this.b.oh(a,this.jd,this.kd):!1};q.prototype.Dp=function(a){return a?this.b.oh(a,this.jd,this.kd):!1};a.j=new q;c.prototype.Fj=function(a,b){var c=this.nf;if(0>c||c>=this.touches.length)a.C(0);else{var e,f,
h,l,g;ea(b)?(e=this.b.rd(0),f=e.scale,h=e.tb,l=e.Kb,g=e.k,e.scale=1,e.tb=1,e.Kb=1,e.k=0,a.C(e.Pa(this.touches[c].x,this.touches[c].y,!0)),e.scale=f,e.tb=h,e.Kb=l,e.k=g):(e=fa(b)?this.b.rd(b):this.b.ng(b))?a.C(e.Pa(this.touches[c].x,this.touches[c].y,!0)):a.C(0)}};c.prototype.Gj=function(a,b){var c=this.nf;if(0>c||c>=this.touches.length)a.C(0);else{var e,f,h,l,g;ea(b)?(e=this.b.rd(0),f=e.scale,h=e.tb,l=e.Lb,g=e.k,e.scale=1,e.tb=1,e.Lb=1,e.k=0,a.C(e.Pa(this.touches[c].x,this.touches[c].y,!1)),e.scale=
f,e.tb=h,e.Lb=l,e.k=g):(e=fa(b)?this.b.rd(b):this.b.ng(b))?a.C(e.Pa(this.touches[c].x,this.touches[c].y,!1)):a.C(0)}};a.Ja=new c})();function bc(g){this.b=g}
(function(){function g(){}var r=bc.prototype;r.ba=function(b,g){this.behavior=b;this.wd=g;this.b=b.b};r.ba.prototype.J=function(){};r.P=function(b,g){this.type=b;this.behavior=b.behavior;this.d=g;this.b=b.b};var b=r.P.prototype;b.J=function(){var b=this.H[0];this.Jc=this.H[1];this.Rb=this.H[2];this.Iq=0!==this.H[3];this.ul=0!==this.H[4];this.q=Math.cos(this.d.k)*b;this.B=Math.sin(this.d.k)*b;this.Ke=this.d.x;this.Le=this.d.y;this.lc=this.d.k;this.tj=0;this.enabled=0!==this.H[5]};b.ib=function(){return{acc:this.Jc,
g:this.Rb,dx:this.q,dy:this.B,lx:this.Ke,ly:this.Le,lka:this.lc,t:this.tj,e:this.enabled}};b.yb=function(b){this.Jc=b.acc;this.Rb=b.g;this.q=b.dx;this.B=b.dy;this.Ke=b.lx;this.Le=b.ly;this.lc=b.lka;this.tj=b.t;this.enabled=b.e};b.Ba=function(){if(this.enabled){var b=this.b.lg(this.d),g,c;this.d.k!==this.lc&&(this.ul&&(g=S(0,0,this.q,this.B),this.q=Math.cos(this.d.k)*g,this.B=Math.sin(this.d.k)*g),this.lc=this.d.k);0!==this.Jc&&(g=S(0,0,this.q,this.B),c=0===this.q&&0===this.B?this.d.k:Da(0,0,this.q,
this.B),g+=this.Jc*b,0>g&&(g=0),this.q=Math.cos(c)*g,this.B=Math.sin(c)*g);0!==this.Rb&&(this.B+=this.Rb*b);this.Ke=this.d.x;this.Le=this.d.y;if(0!==this.q||0!==this.B)if(this.d.x+=this.q*b,this.d.y+=this.B*b,this.tj+=S(0,0,this.q*b,this.B*b),this.ul&&(this.d.k=Da(0,0,this.q,this.B),this.d.A(),this.lc=this.d.k),this.d.A(),this.Iq&&(g=this.b.kb(this.d)))this.b.Kf(this.d,g),g=S(0,0,this.q,this.B),c=this.b.Lq(this.d,this.Ke,this.Le),this.q=Math.cos(c)*g,this.B=Math.sin(c)*g,this.d.x+=this.q*b,this.d.y+=
this.B*b,this.d.A(),this.ul&&(this.lc=this.d.k=c,this.d.A()),this.b.Ec(this.d,this.q/g,this.B/g,Math.max(2.5*g*b,30))||this.b.fo(this.d,100)}};g.prototype.Ql=function(b,g){return Tb(S(0,0,this.q,this.B),b,g)};r.j=new g;r.I=new function(){};r.Ja=new function(){}})();function cc(g){this.b=g}
(function(){function g(){}function r(){}var b=cc.prototype;b.ba=function(b,c){this.behavior=b;this.wd=c;this.b=b.b};b.ba.prototype.J=function(){};b.P=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b};var e=b.P.prototype;e.J=function(){this.ee=this.dd=this.Pf=this.Hi=this.Ji=0};e.ib=function(){return{ontime:this.Ji,offtime:this.Hi,stage:this.Pf,stagetimeleft:this.dd,timeleft:this.ee}};e.yb=function(b){this.Ji=b.ontime;this.Hi=b.offtime;this.Pf=b.stage;this.dd=b.stagetimeleft;
this.ee=b.timeleft};e.Ba=function(){if(!(0>=this.ee)){var b=this.b.lg(this.d);this.ee-=b;0>=this.ee?(this.ee=0,this.d.visible=!0,this.b.na=!0,this.b.trigger(cc.prototype.j.Fp,this.d)):(this.dd-=b,0>=this.dd&&(0===this.Pf?(this.d.visible=!1,this.Pf=1,this.dd+=this.Hi):(this.d.visible=!0,this.Pf=0,this.dd+=this.Ji),this.b.na=!0))}};g.prototype.Fp=function(){return!0};b.j=new g;r.prototype.hp=function(b,c,a){this.Ji=b;this.Hi=c;this.Pf=1;this.dd=c;this.ee=a;this.d.visible=!1;this.b.na=!0};b.I=new r;
b.Ja=new function(){}})();function dc(g){this.b=g}
(function(){function g(){}function r(){}var b=dc.prototype;b.ba=function(a,b){this.behavior=a;this.wd=b;this.b=a.b};var e=b.ba.prototype;e.J=function(){this.Ne=[]};e.Dr=function(a){var b,c,e;b=0;for(c=a.K.length;b<c;++b)if(e=a.K[b],e instanceof dc.prototype.P&&e.type===this)return e;return null};b.P=function(a,b){this.type=a;this.behavior=a.behavior;this.d=b;this.b=a.b};e=b.P.prototype;e.J=function(){this.Ls=this.H[0];this.Vi=this.H[1];this.Uj=O(this.H[2]);this.So=0!==this.H[3]};e.Gf=function(){};
e.ib=function(){var a={r:this.Vi,c:this.Uj,t:[]},b,c;b=0;for(c=this.type.Ne.length;b<c;b++)a.t.push(this.type.Ne[b].V);return a};e.yb=function(a){this.Vi=a.r;this.Uj=a.c;this.type.Ne.length=0;var b,c,e;b=0;for(c=a.t.length;b<c;b++)(e=this.b.pg(a.t[b]))&&this.type.Ne.push(e)};e.Ba=function(){};var q=[],c=new pa(0,0,0,0);e.ps=function(a,b){var e=this.d.x,f=this.d.y,g=this.d.k;0>this.d.width&&(g+=Math.PI);if(S(e,f,a,b)>this.Vi||Fa(g,Da(e,f,a,b))>this.Uj/2)return!1;var r,B;c.set(e,f,a,b);c.normalize();
if(0===this.Ls)for(this.So?this.b.Tm(this.d.n,c,q):(g=this.b.Bl)&&va(q,g.Pg.Hc()),g=0,r=q.length;g<r;++g){if(B=q[g],B.G.solidEnabled&&B!==this.d&&this.b.xo(e,f,a,b,B))return q.length=0,!1}else{if(this.So)this.b.ok(this.d.n,this.type.Ne,c,q);else for(g=0,r=this.type.Ne.length;g<r;++g)va(q,this.type.Ne[g].i);g=0;for(r=q.length;g<r;++g)if(B=q[g],B!==this.d&&this.b.xo(e,f,a,b,B))return q.length=0,!1}q.length=0;return!0};var a=new ca,f=new ca;g.prototype.jp=function(b){if(!b)return!1;var c,e,g,q,r,B,C,
n,l=this.wd.X();b=b.X();var y=l.Hb(),E=b.Hb();l.Z&&(l.ca.length=0);b.Z&&(b.ca.length=0);var m=this.b.ai().gi;c=0;for(g=y.length;c<g;++c){r=y[c];n=!1;B=this.Dr(r);e=0;for(q=E.length;e<q;++e)C=E[e],r!==C&&Ja(B.ps(C.x,C.y),m)&&(n=!0,f.add(C));n&&a.add(r)}c=a.Hc();e=f.Hc();l.Z=!1;b.Z=!1;ua(l.i,c);ua(b.i,e);a.clear();f.clear();return l.di()};b.j=new g;b.I=new function(){};r.prototype.Range=function(a){a.C(this.Vi)};b.Ja=new r})();function ec(g){this.b=g}
(function(){function g(){}var r=ec.prototype;r.ba=function(b,g){this.behavior=b;this.wd=g;this.b=b.b};r.ba.prototype.J=function(){};r.P=function(b,g){this.type=b;this.behavior=b.behavior;this.d=g;this.b=b.b};var b=r.P.prototype;b.J=function(){this.ab=null;this.Li=-1;this.mode=this.lc=this.oj=this.Cf=this.xd=this.Zg=0;var b=this;this.Fc||(this.Og=function(g){b.Tg(g)});this.b.yh(this.Og)};b.ib=function(){return{uid:this.ab?this.ab.uid:-1,pa:this.Zg,pd:this.xd,msa:this.Cf,tsa:this.oj,lka:this.lc,m:this.mode}};
b.yb=function(b){this.Li=b.uid;this.Zg=b.pa;this.xd=b.pd;this.Cf=b.msa;this.oj=b.tsa;this.lc=b.lka;this.mode=b.m};b.Vc=function(){this.ab=-1===this.Li?null:this.b.xe(this.Li);this.Li=-1};b.Tg=function(b){this.ab==b&&(this.ab=null)};b.Gf=function(){this.ab=null;this.b.jo(this.Og)};b.Ba=function(){};b.ph=function(){if(this.ab){this.lc!==this.d.k&&(this.Cf=Aa(this.Cf+(this.d.k-this.lc)));var b=this.d.x,g=this.d.y;if(3===this.mode||4===this.mode){var c=S(this.d.x,this.d.y,this.ab.x,this.ab.y);if(c>this.xd||
4===this.mode&&c<this.xd)g=Da(this.ab.x,this.ab.y,this.d.x,this.d.y),b=this.ab.x+Math.cos(g)*this.xd,g=this.ab.y+Math.sin(g)*this.xd}else b=this.ab.x+Math.cos(this.ab.k+this.Zg)*this.xd,g=this.ab.y+Math.sin(this.ab.k+this.Zg)*this.xd;this.lc=c=Aa(this.Cf+(this.ab.k-this.oj));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===b&&this.d.y===g||(this.d.x=b,this.d.y=g,this.d.A());0!==this.mode&&2!==this.mode||this.d.k===c||(this.d.k=c,this.d.A())}};r.j=new function(){};g.prototype.gq=
function(b,g){if(b){var c=b.Om(this.d);c&&(this.ab=c,this.Zg=Da(c.x,c.y,this.d.x,this.d.y)-c.k,this.xd=S(c.x,c.y,this.d.x,this.d.y),this.lc=this.Cf=this.d.k,this.oj=c.k,this.mode=g)}};r.I=new g;r.Ja=new function(){}})();function jc(g){this.b=g}
(function(){function g(){}function r(){}var b=jc.prototype;b.ba=function(b,c){this.behavior=b;this.wd=c;this.b=b.b};b.ba.prototype.J=function(){};b.P=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b;this.kh=this.hj=this.gj=this.uk=this.cg=this.gg=this.wf=this.Gg=this.Yi=this.wi=!1;this.kc=null;this.Jk=-1;this.Ie=this.He=0;this.Xh=!1;this.jf=this.Lc=0;this.Wh=!0;this.B=this.q=0};var e=b.P.prototype;e.Oo=function(){this.Ua=Math.cos(this.lf);this.Va=Math.sin(this.lf);this.Re=Math.cos(this.lf-
Math.PI/2);this.Se=Math.sin(this.lf-Math.PI/2);this.Ua=ab(this.Ua);this.Va=ab(this.Va);this.Re=ab(this.Re);this.Se=ab(this.Se);this.hk=this.Rb;0>this.Rb&&(this.Ua*=-1,this.Va*=-1,this.Rb=Math.abs(this.Rb))};e.J=function(){this.zf=this.H[0];this.Jc=this.H[1];this.ff=this.H[2];this.Fg=this.H[3];this.hk=this.Rb=this.H[4];this.Di=this.H[5];this.$j=0!==this.H[6];this.Fk=this.H[7]/1E3;this.Wq=1===this.H[8];this.enabled=0!==this.H[9];this.$f=!1;this.uh=this.b.de(this.d);this.Kk=-1;this.Ue=0;this.lf=O(90);
this.Oo();var b=this;this.Wq&&!this.b.wa&&(jQuery(document).keydown(function(c){b.Vk(c)}),jQuery(document).keyup(function(c){b.Wk(c)}));this.Fc||(this.Og=function(c){b.Tg(c)});this.b.yh(this.Og);this.d.G.isPlatformBehavior=!0};e.ib=function(){return{ii:this.uk,lfx:this.He,lfy:this.Ie,lfo:this.kc?this.kc.uid:-1,am:this.Lc,en:this.enabled,fall:this.jf,ft:this.Wh,dx:this.q,dy:this.B,ms:this.zf,acc:this.Jc,dec:this.ff,js:this.Fg,g:this.Rb,g1:this.hk,mf:this.Di,wof:this.$f,woj:this.uh?this.uh.uid:-1,ga:this.lf,
edj:this.$j,cdj:this.cg,dj:this.gg,sus:this.Fk}};e.yb=function(b){this.uk=b.ii;this.He=b.lfx;this.Ie=b.lfy;this.Jk=b.lfo;this.Lc=b.am;this.enabled=b.en;this.jf=b.fall;this.Wh=b.ft;this.q=b.dx;this.B=b.dy;this.zf=b.ms;this.Jc=b.acc;this.ff=b.dec;this.Fg=b.js;this.Rb=b.g;this.hk=b.g1;this.Di=b.mf;this.$f=b.wof;this.Kk=b.woj;this.lf=b.ga;this.$j=b.edj;this.cg=b.cdj;this.gg=b.dj;this.Fk=b.sus;this.kh=this.hj=this.gj=this.wf=this.Gg=this.Yi=this.wi=!1;this.Ue=0;this.Oo()};e.Vc=function(){this.kc=-1===
this.Jk?null:this.b.xe(this.Jk);this.uh=-1===this.Kk?null:this.b.xe(this.Kk)};e.Tg=function(b){this.kc==b&&(this.kc=null)};e.Gf=function(){this.kc=null;this.b.jo(this.Og)};e.Vk=function(b){switch(b.which){case 38:b.preventDefault();this.Gg=!0;break;case 37:b.preventDefault();this.wi=!0;break;case 39:b.preventDefault(),this.Yi=!0}};e.Wk=function(b){switch(b.which){case 38:b.preventDefault();this.wf=this.Gg=!1;break;case 37:b.preventDefault();this.wi=!1;break;case 39:b.preventDefault(),this.Yi=!1}};
e.$u=function(){return 0>this.Rb?-1:1};e.hn=function(){var b=null,c=null,a,e;a=this.d.x;e=this.d.y;this.d.x+=this.Ua;this.d.y+=this.Va;this.d.A();if(this.kc&&this.b.Xb(this.d,this.kc))return this.d.x=a,this.d.y=e,this.d.A(),this.kc;(b=this.b.kb(this.d))||0!==this.jf||(c=this.b.de(this.d,!0));this.d.x=a;this.d.y=e;this.d.A();if(b){if(this.b.Xb(this.d,b))return null;this.Xh=!1;return b}if(c&&c.length){e=b=0;for(a=c.length;b<a;b++)c[e]=c[b],this.b.Xb(this.d,c[b])||e++;if(1<=e)return this.Xh=!0,c[0]}return null};
e.Ba=function(){};e.$n=function(){var b=this.b.lg(this.d),c,a,e,g,h,r,z,x,u;this.Gg||this.kh||(this.wf=!1);var B=this.wi||this.gj;e=this.Yi||this.hj;var C=(g=this.Gg||this.kh)&&!this.wf;this.kh=this.hj=this.gj=!1;if(this.enabled){this.uk&&(C=g=e=B=!1);g||(this.Ue=0);x=this.kc;u=!1;this.Wh&&((this.b.kb(this.d)||this.b.de(this.d))&&this.b.Ec(this.d,-this.Ua,-this.Va,4,!0),this.Wh=!1);!x||0!==this.B||x.y===this.Ie&&x.x===this.He||(c=x.x-this.He,a=x.y-this.Ie,this.d.x+=c,this.d.y+=a,this.d.A(),this.He=
x.x,this.Ie=x.y,u=!0,this.b.kb(this.d)&&this.b.Ec(this.d,-c,-a,2.5*Math.sqrt(c*c+a*a)));var n=this.hn();if(a=this.b.kb(this.d))if(this.d.G.inputPredicted)this.b.Ec(this.d,-this.Ua,-this.Va,10,!1);else if(this.b.fo(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Kf(this.d,a);else return;n?(this.cg=this.gg=!1,0<this.B&&(this.$f||(this.b.gl(this.d,-this.Ua,-this.Va,n),this.$f=!0),this.B=0),x!=n)?(this.kc=n,this.He=n.x,this.Ie=n.y,this.b.Kf(this.d,n)):u&&(a=this.b.kb(this.d))&&(this.b.Kf(this.d,
a),0!==c&&(0<c?this.b.Ec(this.d,-this.Re,-this.Se):this.b.Ec(this.d,this.Re,this.Se)),this.b.Ec(this.d,-this.Ua,-this.Va)):g||(this.cg=!0);if(n&&C||!n&&this.$j&&g&&this.cg&&!this.gg)x=this.d.x,u=this.d.y,this.d.x-=this.Ua,this.d.y-=this.Va,this.d.A(),this.b.kb(this.d)?C=!1:(this.Ue=this.Fk,this.b.trigger(jc.prototype.j.Vl,this.d),this.Lc=2,this.B=-this.Fg,C=!0,n?this.wf=!0:this.gg=!0),this.d.x=x,this.d.y=u,this.d.A();n||(g&&0<this.Ue?(this.B=-this.Fg,this.Ue-=b):(this.kc=null,this.B+=this.Rb*b,this.B>
this.Di&&(this.B=this.Di)),C&&(this.wf=!0));this.$f=!!n;B==e&&(0>this.q?(this.q+=this.ff*b,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.ff*b,0>this.q&&(this.q=0)));B&&!e&&(this.q=0<this.q?this.q-(this.Jc+this.ff)*b:this.q-this.Jc*b);e&&!B&&(this.q=0>this.q?this.q+(this.Jc+this.ff)*b:this.q+this.Jc*b);this.q>this.zf?this.q=this.zf:this.q<-this.zf&&(this.q=-this.zf);B=!1;0!==this.q&&(x=this.d.x,u=this.d.y,c=this.q*b*this.Re,a=this.q*b*this.Se,this.d.x+=this.Re*(1<this.q?1:-1)-this.Ua,this.d.y+=this.Se*
(1<this.q?1:-1)-this.Va,this.d.A(),g=!1,h=this.b.kb(this.d),this.d.x=x+c,this.d.y=u+a,this.d.A(),e=this.b.kb(this.d),!e&&n&&(e=this.b.de(this.d))&&(this.d.x=x,this.d.y=u,this.d.A(),this.b.Xb(this.d,e)?(e=null,g=!1):g=!0,this.d.x=x+c,this.d.y=u+a,this.d.A()),e?(c=Math.abs(this.q*b)+2,h||!this.b.Ec(this.d,-this.Ua,-this.Va,c,g,e))?(this.b.Kf(this.d,e),c=Math.max(Math.abs(this.q*b*2.5),30),this.b.Ec(this.d,this.Re*(0>this.q?1:-1),this.Se*(0>this.q?1:-1),c,!1)?!n||g||this.Xh||(x=this.d.x,u=this.d.y,this.d.x+=
this.Ua,this.d.y+=this.Va,this.b.kb(this.d)?this.b.Ec(this.d,-this.Ua,-this.Va,3,!1)||(this.d.x=x,this.d.y=u,this.d.A()):(this.d.x=x,this.d.y=u,this.d.A())):(this.d.x=x,this.d.y=u,this.d.A()),g||(this.q=0)):!h&&!C&&Math.abs(this.B)<Math.abs(this.Fg/4)&&(this.B=0,n||(B=!0)):(x=this.hn(),n&&!x?(a=Math.ceil(Math.abs(this.q*b))+2,x=this.d.x,u=this.d.y,this.d.x+=this.Ua*a,this.d.y+=this.Va*a,this.d.A(),this.b.kb(this.d)||this.b.de(this.d)?this.b.Ec(this.d,-this.Ua,-this.Va,a+2,!0):(this.d.x=x,this.d.y=
u,this.d.A())):x&&0===this.B&&this.b.gl(this.d,-this.Ua,-this.Va,x)));if(0!==this.B){x=this.d.x;u=this.d.y;this.d.x+=this.B*b*this.Ua;this.d.y+=this.B*b*this.Va;c=this.d.x;e=this.d.y;this.d.A();a=this.b.kb(this.d);g=!1;if(!a&&0<this.B&&!n){if((g=0<this.jf?null:this.b.de(this.d,!0))&&g.length){if(this.uh){this.d.x=x;this.d.y=u;this.d.A();z=h=0;for(r=g.length;h<r;h++)g[z]=g[h],this.b.Xb(this.d,g[h])||z++;g.length=z;this.d.x=c;this.d.y=e;this.d.A()}1<=g.length&&(a=g[0])}g=!!a}a&&(this.b.Kf(this.d,a),
this.Ue=0,c=g?Math.abs(this.B*b*2.5+10):Math.max(Math.abs(this.B*b*2.5+10),30),this.b.Ec(this.d,this.Ua*(0>this.B?1:-1),this.Va*(0>this.B?1:-1),c,g,a)?(this.kc=a,this.He=a.x,this.Ie=a.y,(this.Xh=g)&&(B=!0),this.B=0):(this.d.x=x,this.d.y=u,this.d.A(),this.$f=!0,g||(this.B=0)))}3!==this.Lc&&0<this.B&&!n&&(this.b.trigger(jc.prototype.j.Ep,this.d),this.Lc=3);if(n||B)3===this.Lc||B||C&&0===this.B?(this.b.trigger(jc.prototype.j.Xl,this.d),this.Lc=0===this.q&&0===this.B?0:1):(0!==this.Lc&&0===this.q&&0===
this.B&&(this.b.trigger(jc.prototype.j.fm,this.d),this.Lc=0),1===this.Lc||0===this.q&&0===this.B||C||(this.b.trigger(jc.prototype.j.cm,this.d),this.Lc=1));0<this.jf&&this.jf--;this.uh=this.b.de(this.d)}};g.prototype.qp=function(){return 0!==this.q||0!==this.B};g.prototype.Ql=function(b,c){var a=Math.sqrt(this.q*this.q+this.B*this.B);return Tb(a,b,c)};g.prototype.Vl=function(){return!0};g.prototype.Ep=function(){return!0};g.prototype.fm=function(){return!0};g.prototype.cm=function(){return!0};g.prototype.Xl=
function(){return!0};b.j=new g;r.prototype.sq=function(b){switch(b){case 0:this.gj=!0;break;case 1:this.hj=!0;break;case 2:this.kh=!0}};b.I=new r;b.Ja=new function(){}})();function kc(g){this.b=g}
(function(){var g=kc.prototype;g.ba=function(g,b){this.behavior=g;this.wd=b;this.b=g.b};g.ba.prototype.J=function(){};g.P=function(g,b){this.type=g;this.behavior=g.behavior;this.d=b;this.b=g.b};g=g.P.prototype;g.J=function(){};g.Ba=function(){this.d.xa();var g=this.d.Ca,b=this.d.n.ka;(0>g.right||0>g.bottom||g.left>b.width||g.top>b.height)&&this.b.Hd(this.d)}})();function Xb(g){this.b=g}
(function(){var g=Xb.prototype;g.ba=function(b,e){this.behavior=b;this.wd=e;this.b=b.b};g.ba.prototype.J=function(){};g.P=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var r=g.P.prototype;r.J=function(){this.d.G.jumpthruEnabled=0!==this.H[0]};r.Ba=function(){};g.j=new function(){};g.I=new function(){}})();function lc(g){this.b=g;this.yl=this.fj=this.jh=this.xl=0}
(function(){var g=lc.prototype;g.ba=function(b,e){this.behavior=b;this.wd=e;this.b=b.b};g.ba.prototype.J=function(){};g.P=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var r=g.P.prototype;r.J=function(){this.enabled=0!==this.H[0]};r.ib=function(){return{smg:this.behavior.xl,ss:this.behavior.jh,se:this.behavior.fj,smd:this.behavior.yl}};r.yb=function(b){this.behavior.xl=b.smg;this.behavior.jh=b.ss;this.behavior.fj=b.se;this.behavior.yl=b.smd};r.Ba=function(){};r.ph=function(){if(this.enabled){var b=
this.behavior.Pg.Hc(),e=0,g=0,c,a,f,r=0;c=0;for(a=b.length;c<a;c++){a:{f=b[c];for(var h=void 0,t=void 0,z=void 0,h=0,t=f.K.length;h<t;++h)if(z=f.K[h],z.behavior instanceof lc){f=z;break a}f=null}f&&f.enabled&&(e+=b[c].x,g+=b[c].y,++r)}b=this.d.n.ka;a=this.b.Ib.fa;f=c=0;a>=this.behavior.jh&&a<this.behavior.fj&&(c=this.behavior.xl*Math.min(this.b.Ve,1),0===this.behavior.yl&&(c*=1-(a-this.behavior.jh)/(this.behavior.fj-this.behavior.jh)),a=Math.random()*Math.PI*2,f=Math.random()*c,c=Math.cos(a)*f,f*=
Math.sin(a));b.sl(e/r+c);b.tl(g/r+f)}};g.I=new function(){}})();function Wb(g){this.b=g}(function(){var g=Wb.prototype;g.ba=function(b,e){this.behavior=b;this.wd=e;this.b=b.b};g.ba.prototype.J=function(){};g.P=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var r=g.P.prototype;r.J=function(){this.d.G.solidEnabled=0!==this.H[0]};r.Ba=function(){};g.j=new function(){};g.I=new function(){}})();
function Vb(){return[Yb,Y,Zb,ac,$b,Z,X,ec,cc,Wb,jc,lc,Xb,dc,bc,kc,U.prototype.j.Zl,ec.prototype.I.gq,Zb.prototype.I.Play,Y.prototype.I.kp,$b.prototype.j.pp,X.prototype.I.nq,U.prototype.j.Yl,Zb.prototype.I.uq,U.prototype.j.op,X.prototype.j.Bp,cc.prototype.I.hp,X.prototype.j.Sl,X.prototype.I.kq,jc.prototype.j.Vl,jc.prototype.j.Xl,jc.prototype.j.Ql,U.prototype.j.Rl,jc.prototype.j.cm,jc.prototype.j.fm,Z.prototype.j.sp,Zb.prototype.j.rp,Zb.prototype.I.hq,U.prototype.Ja.ym,$b.prototype.j.Wl,jc.prototype.I.sq,
jc.prototype.j.qp,Yb.prototype.I.CallFunction,X.prototype.j.bp,X.prototype.j.lp,X.prototype.I.mq,X.prototype.I.ep,U.prototype.I.wq,X.prototype.I.vq,U.prototype.j.gp,X.prototype.I.qq,Yb.prototype.j.vh,U.prototype.j.cp,X.prototype.j.Ul,U.prototype.I.xq,U.prototype.I.ip,U.prototype.I.iq,dc.prototype.j.jp,X.prototype.j.dp,X.prototype.Ja.Fj,ac.prototype.j.Dj,U.prototype.I.Vo,U.prototype.I.pq,U.prototype.I.jq,U.prototype.j.fp,X.prototype.I.tq,X.prototype.I.oq,X.prototype.Ja.Gj,X.prototype.I.lq,Y.prototype.I.rq]}
;
