-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
373 lines (373 loc) · 181 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';function aa(){return function(){}}function F(d){return function(){return this[d]}}function J(d){return function(){return d}}var ba,da,ea,fa,ga,N,ha,ja,ka,la,na,oa,R,pa,qa,ua,va,xa,ya,za,Aa,Ca,S,Da,Ea,Ha,Ia,Ja,Ka,La,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,qb,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,Vb,T,Wb,Xb={},Yb={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(e,k,m,a){this.set(e,k,m,a)}function n(){this.rb=this.qb=this.tb=this.sb=this.Eb=this.Db=this.Ma=this.La=0}function c(e,k,m,a){e<k?m<a?(u=e<m?e:m,l=k>a?k:a):(u=e<a?e:a,l=k>m?k:m):m<a?(u=k<m?k:m,l=e>a?e:a):(u=k<a?k:a,l=e>m?e:m)}function h(){this.td=this.Wc=null;this.lf=0;q&&(this.Wc=new Set);this.If=[];this.Hd=!0}function b(e){r[k++]=e}function a(){this.Ea=this.Mi=this.y=this.hj=0}function g(e){this.Ia=[];this.jh=this.lh=this.mh=this.kh=0;this.Tg(e)}function f(e,k){this.mp=e;
this.lp=k;this.cells={}}function t(B,k,m){var a;return e.length?(a=e.pop(),a.Rq=B,a.x=k,a.y=m,a):new ba(B,k,m)}function p(e,k,m){this.Rq=e;this.x=k;this.y=m;this.Eg=new da}ea=function(e){window.console&&window.console.log&&window.console.log(e)};fa=function(e){return"undefined"===typeof e};ga=function(e){return"number"===typeof e};N=function(e){return"string"===typeof e};ha=function(e){return 0<e&&0===(e-1&e)};ja=function(e){--e;for(var k=1;32>k;k<<=1)e|=e>>k;return e+1};ka=function(e){return 0>e?
-e:e};la=function(e,k){return e<k?e:k};na=Math.PI;oa=function(e){return e+0.5|0};R=function(e){return 0<=e?e|0:(e|0)-1};pa=function(e){var k=e|0;return k===e?k:k+1};qa=function(e,k,m,a,g,f,b,c){var p,t,l,d;e<m?(t=e,p=m):(t=m,p=e);g<b?(d=g,l=b):(d=b,l=g);if(p<d||t>l)return!1;k<a?(t=k,p=a):(t=a,p=k);f<c?(d=f,l=c):(d=c,l=f);if(p<d||t>l)return!1;p=g-e+b-m;t=f-k+c-a;e=m-e;k=a-k;g=b-g;f=c-f;c=ka(k*g-f*e);return ka(g*t-f*p)>c?!1:ka(e*t-k*p)<=c};d.prototype.set=function(e,k,m,a){this.left=e;this.top=k;this.right=
m;this.bottom=a};d.prototype.copy=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(e,k){this.left+=e;this.top+=k;this.right+=e;this.bottom+=k;return this};d.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,
this.bottom=e)};d.prototype.Yq=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};d.prototype.Zq=function(e,k,m){return!(e.right+k<this.left||e.bottom+m<this.top||e.left+k>this.right||e.top+m>this.bottom)};d.prototype.Jb=function(e,k){return e>=this.left&&e<=this.right&&k>=this.top&&k<=this.bottom};d.prototype.Np=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};ua=d;n.prototype.Sg=function(e){this.La=
e.left;this.Ma=e.top;this.Db=e.right;this.Eb=e.top;this.sb=e.right;this.tb=e.bottom;this.qb=e.left;this.rb=e.bottom};n.prototype.Zn=function(e,k){if(0===k)this.Sg(e);else{var m=Math.sin(k),a=Math.cos(k),g=e.left*m,f=e.top*m,b=e.right*m,m=e.bottom*m,c=e.left*a,p=e.top*a,t=e.right*a,a=e.bottom*a;this.La=c-f;this.Ma=p+g;this.Db=t-f;this.Eb=p+b;this.sb=t-m;this.tb=a+b;this.qb=c-m;this.rb=a+g}};n.prototype.offset=function(e,k){this.La+=e;this.Ma+=k;this.Db+=e;this.Eb+=k;this.sb+=e;this.tb+=k;this.qb+=
e;this.rb+=k;return this};var u=0,l=0;n.prototype.Vl=function(e){c(this.La,this.Db,this.sb,this.qb);e.left=u;e.right=l;c(this.Ma,this.Eb,this.tb,this.rb);e.top=u;e.bottom=l};n.prototype.Jb=function(e,k){var m=this.Db-this.La,a=this.Eb-this.Ma,g=this.sb-this.La,f=this.tb-this.Ma,b=e-this.La,c=k-this.Ma,p=m*m+a*a,t=m*g+a*f,a=m*b+a*c,l=g*g+f*f,d=g*b+f*c,h=1/(p*l-t*t),m=(l*a-t*d)*h,p=(p*d-t*a)*h;if(0<=m&&0<p&&1>m+p)return!0;m=this.qb-this.La;a=this.rb-this.Ma;p=m*m+a*a;t=m*g+a*f;a=m*b+a*c;h=1/(p*l-t*
t);m=(l*a-t*d)*h;p=(p*d-t*a)*h;return 0<=m&&0<p&&1>m+p};n.prototype.Ed=function(e,k){if(k)switch(e){case 0:return this.La;case 1:return this.Db;case 2:return this.sb;case 3:return this.qb;case 4:return this.La;default:return this.La}else switch(e){case 0:return this.Ma;case 1:return this.Eb;case 2:return this.tb;case 3:return this.rb;case 4:return this.Ma;default:return this.Ma}};n.prototype.jn=function(){return(this.La+this.Db+this.sb+this.qb)/4};n.prototype.kn=function(){return(this.Ma+this.Eb+
this.tb+this.rb)/4};n.prototype.Km=function(e){var k=e.jn(),m=e.kn();if(this.Jb(k,m))return!0;k=this.jn();m=this.kn();if(e.Jb(k,m))return!0;var a,g,f,b,c,p,t,l;for(t=0;4>t;t++)for(l=0;4>l;l++)if(k=this.Ed(t,!0),m=this.Ed(t,!1),a=this.Ed(t+1,!0),g=this.Ed(t+1,!1),f=e.Ed(l,!0),b=e.Ed(l,!1),c=e.Ed(l+1,!0),p=e.Ed(l+1,!1),qa(k,m,a,g,f,b,c,p))return!0;return!1};va=n;xa=function(e,k){for(var m in k)k.hasOwnProperty(m)&&(e[m]=k[m]);return e};ya=function(e,k){var m,a;k=R(k);if(!(0>k||k>=e.length))if(0===k)e.shift();
else if(k===e.length-1)e.pop();else{m=k;for(a=e.length-1;m<a;m++)e[m]=e[m+1];e.length=a}};za=function(e,k){e.length=k.length;var m,a;m=0;for(a=k.length;m<a;m++)e[m]=k[m]};Aa=function(e,k){e.push.apply(e,k)};Ca=function(e,k){var m=e.indexOf(k);-1!==m&&ya(e,m)};S=function(e){return e/(180/na)};Da=function(e){return e*(180/na)};Ea=function(e){e%=360;0>e&&(e+=360);return e};Ha=function(e){e%=2*na;0>e&&(e+=2*na);return e};Ia=function(e){return Ea(Da(e))};Ja=function(e){return Ha(S(e))};Ka=function(e,k,
m,a){return Math.atan2(a-k,m-e)};La=function(e,k){if(e===k)return 0;var m=Math.sin(e),a=Math.cos(e),g=Math.sin(k),f=Math.cos(k),m=m*g+a*f;return 1<=m?0:-1>=m?na:Math.acos(m)};Pa=function(e,k,m){var a=Math.sin(e),g=Math.cos(e),f=Math.sin(k),b=Math.cos(k);return Math.acos(a*f+g*b)>m?0<g*f-a*b?Ha(e+m):Ha(e-m):Ha(k)};Qa=function(e,k){var m=Math.sin(e),a=Math.cos(e),g=Math.sin(k),f=Math.cos(k);return 0>=a*g-m*f};Ra=function(e,k,m,a,g,f){if(0===m)return f?e:k;var b=Math.sin(m);m=Math.cos(m);e-=a;k-=g;var c=
e*b;e=e*m-k*b;k=k*m+c;return f?e+a:k+g};Sa=function(e,k,m,a){e=m-e;k=a-k;return Math.sqrt(e*e+k*k)};Ta=function(e,k){return!e!==!k};Ua=function(e){for(var k in e)if(e.hasOwnProperty(k))return!0;return!1};Va=function(e){for(var k in e)e.hasOwnProperty(k)&&delete e[k]};var s=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();
if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-s};var q=("undefined"===typeof window||!window.c2ejecta)&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(e){return this.Ac()?!1:q?this.Wc.has(e):this.td&&this.td.hasOwnProperty(e)};h.prototype.add=function(e){if(q)this.Wc.has(e)||(this.Wc.add(e),this.Hd=!1);else{var k=e.toString(),m=this.td;m?m.hasOwnProperty(k)||(m[k]=e,this.lf++,this.Hd=!1):(this.td={},this.td[k]=e,this.lf=1,this.Hd=
!1)}};h.prototype.remove=function(e){if(!this.Ac())if(q)this.Wc.has(e)&&(this.Wc["delete"](e),this.Hd=!1);else if(this.td){e=e.toString();var k=this.td;k.hasOwnProperty(e)&&(delete k[e],this.lf--,this.Hd=!1)}};h.prototype.clear=function(){this.Ac()||(q?this.Wc.clear():(this.td=null,this.lf=0),this.If.length=0,this.Hd=!0)};h.prototype.Ac=function(){return 0===this.count()};h.prototype.count=function(){return q?this.Wc.size:this.lf};var r=null,k=0;h.prototype.ks=function(){if(!this.Hd){if(q)this.If.length=
this.Wc.size,r=this.If,k=0,this.Wc.forEach(b),r=null,k=0;else{var e=this.If;e.length=this.lf;var m,a=0,g=this.td;if(g)for(m in g)g.hasOwnProperty(m)&&(e[a++]=g[m])}this.Hd=!0}};h.prototype.Hf=function(){this.ks();return this.If};da=h;a.prototype.add=function(e){this.y=e-this.hj;this.Mi=this.Ea+this.y;this.hj=this.Mi-this.Ea-this.y;this.Ea=this.Mi};a.prototype.reset=function(){this.Ea=this.Mi=this.y=this.hj=0};Xa=a;Ya=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.Tg=
function(e){this.Mn=e;this.Gc=e.length/2;this.Ia.length=e.length;this.oh=this.ph=-1;this.Xl=0};g.prototype.hf=function(){return!this.Mn.length};g.prototype.ya=function(){for(var e=this.Ia,k=e[0],m=k,a=e[1],g=a,f,b,c=1,t=this.Gc;c<t;++c)b=2*c,f=e[b],b=e[b+1],f<k&&(k=f),f>m&&(m=f),b<a&&(a=b),b>g&&(g=b);this.kh=k;this.lh=m;this.mh=a;this.jh=g};g.prototype.Sg=function(e,k,m){this.Ia.length=8;this.Gc=4;var a=this.Ia;a[0]=e.left-k;a[1]=e.top-m;a[2]=e.right-k;a[3]=e.top-m;a[4]=e.right-k;a[5]=e.bottom-m;
a[6]=e.left-k;a[7]=e.bottom-m;this.ph=e.right-e.left;this.oh=e.bottom-e.top;this.ya()};g.prototype.Af=function(e,k,m,a,g){this.Ia.length=8;this.Gc=4;var f=this.Ia;f[0]=e.La-k;f[1]=e.Ma-m;f[2]=e.Db-k;f[3]=e.Eb-m;f[4]=e.sb-k;f[5]=e.tb-m;f[6]=e.qb-k;f[7]=e.rb-m;this.ph=a;this.oh=g;this.ya()};g.prototype.Yn=function(e){this.Gc=e.Gc;za(this.Ia,e.Ia);this.kh=e.kh;this.mh-e.mh;this.lh=e.lh;this.jh=e.jh};g.prototype.Ue=function(e,k,m){if(this.ph!==e||this.oh!==k||this.Xl!==m){this.ph=e;this.oh=k;this.Xl=
m;var a,g,f,b,c,t=0,p=1,l=this.Mn,d=this.Ia;0!==m&&(t=Math.sin(m),p=Math.cos(m));m=0;for(f=this.Gc;m<f;m++)a=2*m,g=a+1,b=l[a]*e,c=l[g]*k,d[a]=b*p-c*t,d[g]=c*p+b*t;this.ya()}};g.prototype.Jb=function(e,k){var m=this.Ia;if(e===m[0]&&k===m[1])return!0;var a,g,f,b=this.Gc,c=this.kh-110,t=this.mh-101,p=this.lh+131,l=this.jh+120,d,h,q=0,n=0;for(a=0;a<b;a++)g=2*a,f=2*((a+1)%b),d=m[g],g=m[g+1],h=m[f],f=m[f+1],qa(c,t,e,k,d,g,h,f)&&q++,qa(p,l,e,k,d,g,h,f)&&n++;return 1===q%2||1===n%2};g.prototype.gg=function(e,
k,m){var a=e.Ia,g=this.Ia;if(this.Jb(a[0]+k,a[1]+m)||e.Jb(g[0]-k,g[1]-m))return!0;var f,b,c,t,p,l,d,h,q,n,u,s;f=0;for(t=this.Gc;f<t;f++)for(b=2*f,c=2*((f+1)%t),h=g[b],b=g[b+1],q=g[c],n=g[c+1],c=0,d=e.Gc;c<d;c++)if(p=2*c,l=2*((c+1)%d),u=a[p]+k,p=a[p+1]+m,s=a[l]+k,l=a[l+1]+m,qa(h,b,q,n,u,p,s,l))return!0;return!1};Za=g;f.prototype.Hj=function(e,k,m){var a;a=this.cells[e];return a?(a=a[k])?a:m?(a=t(this,e,k),this.cells[e][k]=a):null:m?(a=t(this,e,k),this.cells[e]={},this.cells[e][k]=a):null};f.prototype.eh=
function(e){return R(e/this.mp)};f.prototype.fh=function(e){return R(e/this.lp)};f.prototype.update=function(k,m,a){var g,f,b,c,t;if(m)for(g=m.left,f=m.right;g<=f;++g)for(b=m.top,c=m.bottom;b<=c;++b)if(!a||!a.Jb(g,b))if(t=this.Hj(g,b,!1))t.remove(k),t.Ac()&&(t.Eg.clear(),1E3>e.length&&e.push(t),this.cells[g][b]=null);if(a)for(g=a.left,f=a.right;g<=f;++g)for(b=a.top,c=a.bottom;b<=c;++b)m&&m.Jb(g,b)||this.Hj(g,b,!0).Xq(k)};f.prototype.On=function(e,k){var m,a,g,f,b,c;m=this.eh(e.left);g=this.fh(e.top);
a=this.eh(e.right);for(b=this.fh(e.bottom);m<=a;++m)for(f=g;f<=b;++f)(c=this.Hj(m,f,!1))&&c.Jp(k)};bb=f;var e=[];p.prototype.Ac=function(){return this.Eg.Ac()};p.prototype.Xq=function(e){this.Eg.add(e)};p.prototype.remove=function(e){this.Eg.remove(e)};p.prototype.Jp=function(e){Aa(e,this.Eg.Hf())};ba=p;var m="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(e){return 0>=e||11<=e?"source-over":m[e-1]};db=function(e,
k,m){if(m)switch(e.fb=m.ONE,e.cb=m.ONE_MINUS_SRC_ALPHA,k){case 1:e.fb=m.ONE;e.cb=m.ONE;break;case 3:e.fb=m.ONE;e.cb=m.ZERO;break;case 4:e.fb=m.ONE_MINUS_DST_ALPHA;e.cb=m.ONE;break;case 5:e.fb=m.DST_ALPHA;e.cb=m.ZERO;break;case 6:e.fb=m.ZERO;e.cb=m.SRC_ALPHA;break;case 7:e.fb=m.ONE_MINUS_DST_ALPHA;e.cb=m.ZERO;break;case 8:e.fb=m.ZERO;e.cb=m.ONE_MINUS_SRC_ALPHA;break;case 9:e.fb=m.DST_ALPHA;e.cb=m.ONE_MINUS_SRC_ALPHA;break;case 10:e.fb=m.ONE_MINUS_DST_ALPHA,e.cb=m.SRC_ALPHA}};eb=function(e){return oa(1E6*
e)/1E6};fb=function(e,k){return"string"!==typeof e||"string"!==typeof k||e.length!==k.length?!1:e===k?!0:e.toLowerCase()===k.toLowerCase()}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(d){var n=new Zb(3);d&&(n[0]=d[0],n[1]=d[1],n[2]=d[2]);return n}function ac(d){var n=new Zb(16);d&&(n[0]=d[0],n[1]=d[1],n[2]=d[2],n[3]=d[3],n[4]=d[4],n[5]=d[5],n[6]=d[6],n[7]=d[7],n[8]=d[8],n[9]=d[9],n[10]=d[10],n[11]=d[11],n[12]=d[12],n[13]=d[13],n[14]=d[14],n[15]=d[15]);return n}
function bc(d,n){n[0]=d[0];n[1]=d[1];n[2]=d[2];n[3]=d[3];n[4]=d[4];n[5]=d[5];n[6]=d[6];n[7]=d[7];n[8]=d[8];n[9]=d[9];n[10]=d[10];n[11]=d[11];n[12]=d[12];n[13]=d[13];n[14]=d[14];n[15]=d[15]}function cc(d,n){var c=n[0],h=n[1];n=n[2];d[0]*=c;d[1]*=c;d[2]*=c;d[3]*=c;d[4]*=h;d[5]*=h;d[6]*=h;d[7]*=h;d[8]*=n;d[9]*=n;d[10]*=n;d[11]*=n}
function dc(d,n,c,h){h||(h=ac());var b,a,g,f,t,p,u,l,s=d[0],q=d[1];d=d[2];a=c[0];g=c[1];b=c[2];c=n[1];p=n[2];s===n[0]&&q===c&&d===p?(d=h,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(c=s-n[0],p=q-n[1],u=d-n[2],l=1/Math.sqrt(c*c+p*p+u*u),c*=l,p*=l,u*=l,n=g*u-b*p,b=b*c-a*u,a=a*p-g*c,(l=Math.sqrt(n*n+b*b+a*a))?(l=1/l,n*=l,b*=l,a*=l):a=b=n=0,g=p*a-u*b,f=u*n-c*a,t=c*b-p*n,(l=Math.sqrt(g*g+f*f+t*t))?(l=1/l,g*=l,f*=l,t*=l):t=f=g=0,
h[0]=n,h[1]=g,h[2]=c,h[3]=0,h[4]=b,h[5]=f,h[6]=p,h[7]=0,h[8]=a,h[9]=t,h[10]=u,h[11]=0,h[12]=-(n*s+b*q+a*d),h[13]=-(g*s+f*q+t*d),h[14]=-(c*s+p*q+u*d),h[15]=1)}
(function(){function d(a){this.$j=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Yl=$b([0,0,100]);this.gn=$b([0,0,0]);this.vo=$b([0,1,0]);this.zl=$b([1,1,1]);this.tk=ac();this.lc=ac();this.Xm=ac();this.rj=ac();this.m=a;this.Gm()}function n(a,g,f){this.m=a;this.Ug=g;this.name=f;this.kc=a.getAttribLocation(g,"aPos");this.Pd=a.getAttribLocation(g,"aTex");this.cn=a.getUniformLocation(g,"matP");this.pf=a.getUniformLocation(g,"matMV");this.qf=a.getUniformLocation(g,
"opacity");this.dn=a.getUniformLocation(g,"samplerFront");this.xg=a.getUniformLocation(g,"samplerBack");this.Fe=a.getUniformLocation(g,"destStart");this.Ee=a.getUniformLocation(g,"destEnd");this.qk=a.getUniformLocation(g,"seconds");this.pk=a.getUniformLocation(g,"pixelWidth");this.ok=a.getUniformLocation(g,"pixelHeight");this.wg=a.getUniformLocation(g,"layerScale");this.vg=a.getUniformLocation(g,"layerAngle");this.yg=a.getUniformLocation(g,"viewOrigin");this.Uq=!!(this.pk||this.ok||this.qk||this.xg||
this.Fe||this.Ee||this.wg||this.vg||this.yg);this.qf&&a.uniform1f(this.qf,1);this.dn&&a.uniform1i(this.dn,0);this.xg&&a.uniform1i(this.xg,1);this.Fe&&a.uniform2f(this.Fe,0,0);this.Ee&&a.uniform2f(this.Ee,1,1);this.wg&&a.uniform1f(this.wg,1);this.vg&&a.uniform1f(this.vg,0);this.yg&&a.uniform2f(this.yg,0,0);this.ue=!1}function c(a,g){this.type=a;this.u=g;this.m=g.m;this.Rc=this.oc=this.yn=0;this.Z=this.Lc=null;this.$n=[]}d.prototype.Gm=function(){var a=this.m,g;this.Ym=1;this.Ce=this.Be=null;this.fm=
1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.Zm=a.ONE;this.Wm=a.ONE_MINUS_SRC_ALPHA;this.Ok=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Ok);this.ah=Array(4);this.Xg=Array(4);for(g=0;4>g;g++)this.ah[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ah[g]),this.Xg[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Xg[g]);this.gd=0;this.Wq=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,
this.Wq);this.xl=new Float32Array(16E3);this.kl=new Float32Array(16E3);this.Ar=new Float32Array(32E3);for(var f=new Uint16Array(12E3),b=g=0;12E3>g;)f[g++]=b,f[g++]=b+1,f[g++]=b+2,f[g++]=b,f[g++]=b+2,f[g++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,f,a.STATIC_DRAW);this.Pk=this.$c=0;this.Ka=[];g=this.oj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");this.Ka.push(g);g=this.oj({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}",
"<point>");this.Ka.push(g);for(var c in ec)ec.hasOwnProperty(c)&&this.Ka.push(this.oj(ec[c],"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",c));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Gd=[];this.dd=0;this.Lb=!1;this.gm=this.pg=-1;this.Uf=null;this.lq=a.createFramebuffer();this.Qn=
null;this.ee=$b([0,0,0]);this.Yc(0)};d.prototype.oj=function(a,g,f){var b=this.m,c=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(c,a.src);b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return b.deleteShader(c),null;var d=b.createShader(b.VERTEX_SHADER);b.shaderSource(d,g);b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return b.deleteShader(c),b.deleteShader(d),null;g=b.createProgram();b.attachShader(g,c);b.attachShader(g,d);b.linkProgram(g);if(!b.getProgramParameter(g,
b.LINK_STATUS))return b.deleteShader(c),b.deleteShader(d),b.deleteProgram(g),null;b.useProgram(g);b.deleteShader(c);b.deleteShader(d);f=new n(b,g,f);f.yj=a.yj||0;f.zj=a.zj||0;f.em=!!a.em;f.Sl=!!a.Sl;f.H=a.H||[];a=0;for(c=f.H.length;a<c;a++)f.H[a][1]=b.getUniformLocation(g,f.H[a][0]),b.uniform1f(f.H[a][1],0);return f};d.prototype.Nj=function(a){var g,b;g=0;for(b=this.Ka.length;g<b;g++)if(this.Ka[g].name===a)return g;return-1};d.prototype.Ln=function(a,g,b){var c=this.lc,p=this.tk,d=[0,0,0,0,0,0,0,
0];d[0]=c[0]*a+c[4]*g+c[12];d[1]=c[1]*a+c[5]*g+c[13];d[2]=c[2]*a+c[6]*g+c[14];d[3]=c[3]*a+c[7]*g+c[15];d[4]=p[0]*d[0]+p[4]*d[1]+p[8]*d[2]+p[12]*d[3];d[5]=p[1]*d[0]+p[5]*d[1]+p[9]*d[2]+p[13]*d[3];d[6]=p[2]*d[0]+p[6]*d[1]+p[10]*d[2]+p[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],b[0]=(0.5*d[4]+0.5)*this.width,b[1]=(0.5*d[5]+0.5)*this.height)};d.prototype.zf=function(a,g,b){if(this.width!==a||this.height!==g||b){this.re();this.width=a;this.height=g;this.m.viewport(0,0,
a,g);g=a/g;var c=this.tk,d;d=1*Math.tan(45*Math.PI/360);g*=d;a=-g;b=-d;c||(c=ac());var h=g-a,l=d-b;c[0]=2/h;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/l;c[6]=0;c[7]=0;c[8]=(g+a)/h;c[9]=(d+b)/l;c[10]=-1001/999;c[11]=-1;c[12]=0;c[13]=0;c[14]=-2E3/999;c[15]=0;dc(this.Yl,this.gn,this.vo,this.lc);a=[0,0];g=[0,0];this.Ln(0,0,a);this.Ln(1,1,g);this.zl[0]=1/(g[0]-a[0]);this.zl[1]=-1/(g[1]-a[1]);a=0;for(g=this.Ka.length;a<g;a++)b=this.Ka[a],b.ue=!1,b.cn&&(this.m.useProgram(b.Ug),this.m.uniformMatrix4fv(b.cn,!1,this.tk));
this.m.useProgram(this.Ka[this.pg].Ug);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);this.Ce=this.Be=null}};d.prototype.Wd=function(){dc(this.Yl,this.gn,this.vo,this.lc);cc(this.lc,this.zl)};d.prototype.translate=function(a,g){if(0!==a||0!==g){this.ee[0]=a;this.ee[1]=g;this.ee[2]=0;var b=this.lc,c=this.ee,d=c[0],h=c[1],c=c[2];b[12]=b[0]*d+b[4]*h+b[8]*c+b[12];b[13]=b[1]*d+b[5]*h+b[9]*
c+b[13];b[14]=b[2]*d+b[6]*h+b[10]*c+b[14];b[15]=b[3]*d+b[7]*h+b[11]*c+b[15]}};d.prototype.scale=function(a,b){if(1!==a||1!==b)this.ee[0]=a,this.ee[1]=b,this.ee[2]=1,cc(this.lc,this.ee)};d.prototype.Rn=function(a){if(0!==a){var b=this.lc,f,c=Math.sin(a);a=Math.cos(a);var d=b[0],h=b[1],l=b[2],n=b[3],q=b[4],r=b[5],k=b[6],e=b[7];f?b!==f&&(f[8]=b[8],f[9]=b[9],f[10]=b[10],f[11]=b[11],f[12]=b[12],f[13]=b[13],f[14]=b[14],f[15]=b[15]):f=b;f[0]=d*a+q*c;f[1]=h*a+r*c;f[2]=l*a+k*c;f[3]=n*a+e*c;f[4]=d*-c+q*a;f[5]=
h*-c+r*a;f[6]=l*-c+k*a;f[7]=n*-c+e*a}};d.prototype.ge=function(){for(var a=!1,b=0;16>b;b++)if(this.Xm[b]!==this.lc[b]){a=!0;break}a&&(a=this.Hc(),a.type=5,a.Z?bc(this.lc,a.Z):a.Z=ac(this.lc),bc(this.lc,this.Xm),this.Lb=!1)};c.prototype.Gp=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Lc)};c.prototype.Hp=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Lc);a.activeTexture(a.TEXTURE0)};c.prototype.Dp=function(){var a=this.yn,b=this.u;b.fm=a;b=b.Uf;b.qf&&this.m.uniform1f(b.qf,
a)};c.prototype.Ap=function(){this.m.drawElements(this.m.TRIANGLES,this.Rc,this.m.UNSIGNED_SHORT,2*this.oc)};c.prototype.Cp=function(){this.m.blendFunc(this.oc,this.Rc)};c.prototype.Ip=function(){var a,b,f,c=this.u.Ka,d=this.u.gm;a=0;for(b=c.length;a<b;a++)f=c[a],a===d&&f.pf?(this.m.uniformMatrix4fv(f.pf,!1,this.Z),f.ue=!0):f.ue=!1;bc(this.Z,this.u.rj)};c.prototype.Bp=function(){var a=this.m,b=this.u;this.Lc?(b.Ce===this.Lc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Ce=null,
a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.lq),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Lc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};c.prototype.yp=function(){var a=this.m;0===this.oc?(a.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clearColor(0,0,0,0),
a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};c.prototype.zp=function(){var a=this.m,b=this.u,f=b.Ka[1];a.useProgram(f.Ug);!f.ue&&f.pf&&(a.uniformMatrix4fv(f.pf,!1,b.rj),f.ue=!0);a.enableVertexAttribArray(f.kc);a.bindBuffer(a.ARRAY_BUFFER,b.Ok);a.vertexAttribPointer(f.kc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.oc/4,this.Rc);f=b.Uf;a.useProgram(f.Ug);0<=f.kc&&(a.enableVertexAttribArray(f.kc),a.bindBuffer(a.ARRAY_BUFFER,b.ah[b.gd]),a.vertexAttribPointer(f.kc,2,a.FLOAT,!1,0,0));0<=
f.Pd&&(a.enableVertexAttribArray(f.Pd),a.bindBuffer(a.ARRAY_BUFFER,b.Xg[b.gd]),a.vertexAttribPointer(f.Pd,2,a.FLOAT,!1,0,0))};c.prototype.Ep=function(){var a=this.m,b=this.u,f=b.Ka[this.oc];b.gm=this.oc;b.Uf=f;a.useProgram(f.Ug);!f.ue&&f.pf&&(a.uniformMatrix4fv(f.pf,!1,b.rj),f.ue=!0);f.qf&&a.uniform1f(f.qf,b.fm);0<=f.kc&&(a.enableVertexAttribArray(f.kc),a.bindBuffer(a.ARRAY_BUFFER,b.ah[b.gd]),a.vertexAttribPointer(f.kc,2,a.FLOAT,!1,0,0));0<=f.Pd&&(a.enableVertexAttribArray(f.Pd),a.bindBuffer(a.ARRAY_BUFFER,
b.Xg[b.gd]),a.vertexAttribPointer(f.Pd,2,a.FLOAT,!1,0,0))};c.prototype.Fp=function(){var a,b,f=this.u.Uf,c=this.m;a=this.Z;f.xg&&this.u.Ce!==this.Lc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.Lc),this.u.Ce=this.Lc,c.activeTexture(c.TEXTURE0));f.pk&&c.uniform1f(f.pk,a[0]);f.ok&&c.uniform1f(f.ok,a[1]);f.Fe&&c.uniform2f(f.Fe,a[2],a[3]);f.Ee&&c.uniform2f(f.Ee,a[4],a[5]);f.wg&&c.uniform1f(f.wg,a[6]);f.vg&&c.uniform1f(f.vg,a[7]);f.yg&&c.uniform2f(f.yg,a[8],a[9]);f.qk&&c.uniform1f(f.qk,
Wa()/1E3);if(f.H.length)for(a=0,b=f.H.length;a<b;a++)c.uniform1f(f.H[a][1],this.$n[a])};d.prototype.Hc=function(){this.dd===this.Gd.length&&this.Gd.push(new c(0,this));return this.Gd[this.dd++]};d.prototype.re=function(){if(0!==this.dd&&!this.m.isContextLost()){var a=this.m;0<this.Pk&&(a.bindBuffer(a.ARRAY_BUFFER,this.Ok),a.bufferData(a.ARRAY_BUFFER,this.Ar.subarray(0,this.Pk),a.STREAM_DRAW),b&&0<=b.kc&&"<point>"===b.name&&a.vertexAttribPointer(b.kc,4,a.FLOAT,!1,0,0));if(0<this.$c){var b=this.Uf;
a.bindBuffer(a.ARRAY_BUFFER,this.ah[this.gd]);a.bufferData(a.ARRAY_BUFFER,this.xl.subarray(0,this.$c),a.STREAM_DRAW);b&&0<=b.kc&&"<point>"!==b.name&&a.vertexAttribPointer(b.kc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Xg[this.gd]);a.bufferData(a.ARRAY_BUFFER,this.kl.subarray(0,this.$c),a.STREAM_DRAW);b&&0<=b.Pd&&"<point>"!==b.name&&a.vertexAttribPointer(b.Pd,2,a.FLOAT,!1,0,0)}for(var f,a=0,b=this.dd;a<b;a++)switch(f=this.Gd[a],f.type){case 1:f.Ap();break;case 2:f.Gp();break;case 3:f.Dp();
break;case 4:f.Cp();break;case 5:f.Ip();break;case 6:f.Bp();break;case 7:f.yp();break;case 8:f.zp();break;case 9:f.Ep();break;case 10:f.Fp();break;case 11:f.Hp()}this.Pk=this.$c=this.dd=0;this.Lb=!1;this.gd++;4<=this.gd&&(this.gd=0)}};d.prototype.xf=function(a){if(a!==this.Ym){var b=this.Hc();b.type=3;this.Ym=b.yn=a;this.Lb=!1}};d.prototype.Yb=function(a){if(a!==this.Be){var b=this.Hc();b.type=2;this.Be=b.Lc=a;this.Lb=!1}};d.prototype.Xd=function(a,b){if(a!==this.Zm||b!==this.Wm){var f=this.Hc();
f.type=4;f.oc=a;f.Rc=b;this.Zm=a;this.Wm=b;this.Lb=!1}};d.prototype.Vn=function(){this.Xd(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};d.prototype.yi=function(a,b,f,c,d,h,l,n){15992<=this.$c&&this.re();var q=this.$c,r=this.xl,k=this.kl;if(this.Lb)this.Gd[this.dd-1].Rc+=6;else{var e=this.Hc();e.type=1;e.oc=3*(q/4);e.Rc=6;this.Lb=!0}r[q]=a;k[q++]=0;r[q]=b;k[q++]=0;r[q]=f;k[q++]=1;r[q]=c;k[q++]=0;r[q]=d;k[q++]=1;r[q]=h;k[q++]=1;r[q]=l;k[q++]=0;r[q]=n;k[q++]=1;this.$c=q};d.prototype.wd=function(a,b,f,c,d,
h,l,n,q){15992<=this.$c&&this.re();var r=this.$c,k=this.xl,e=this.kl;if(this.Lb)this.Gd[this.dd-1].Rc+=6;else{var m=this.Hc();m.type=1;m.oc=3*(r/4);m.Rc=6;this.Lb=!0}var m=q.left,B=q.top,K=q.right;q=q.bottom;k[r]=a;e[r++]=m;k[r]=b;e[r++]=B;k[r]=f;e[r++]=K;k[r]=c;e[r++]=B;k[r]=d;e[r++]=K;k[r]=h;e[r++]=q;k[r]=l;e[r++]=m;k[r]=n;e[r++]=q;this.$c=r};d.prototype.Yc=function(a){if(this.pg!==a){if(!this.Ka[a]){if(0===this.pg)return;a=0}var b=this.Hc();b.type=9;this.pg=b.oc=a;this.Lb=!1}};d.prototype.Lg=function(a){a=
this.Ka[a];return!(!a.Fe&&!a.Ee)};d.prototype.Sk=function(a){a=this.Ka[a];return!!(a.Fe||a.Ee||a.em)};d.prototype.Er=function(a){a=this.Ka[a];return 0!==a.yj||0!==a.zj};d.prototype.zq=function(a){return this.Ka[a].yj};d.prototype.Aq=function(a){return this.Ka[a].zj};d.prototype.Bq=function(a,b){return this.Ka[a].H[b][2]};d.prototype.vi=function(a){return this.Ka[a].Sl};d.prototype.yf=function(a,b,f,c,d,h,l,n,q,r,k,e){var m=this.Ka[this.pg],B,K;if(m.Uq||e.length){B=this.Hc();B.type=10;B.Z?bc(this.lc,
B.Z):B.Z=ac();K=B.Z;K[0]=b;K[1]=f;K[2]=c;K[3]=d;K[4]=h;K[5]=l;K[6]=n;K[7]=q;K[8]=r;K[9]=k;B.Lc=m.xg?a:null;if(e.length)for(f=B.$n,f.length=e.length,a=0,b=e.length;a<b;a++)f[a]=e[a];this.Lb=!1}};d.prototype.clear=function(a,b,f,c){var d=this.Hc();d.type=7;d.oc=0;d.Z||(d.Z=ac());d.Z[0]=a;d.Z[1]=b;d.Z[2]=f;d.Z[3]=c;this.Lb=!1};d.prototype.clearRect=function(a,b,f,c){if(!(0>f||0>c)){var d=this.Hc();d.type=7;d.oc=1;d.Z||(d.Z=ac());d.Z[0]=a;d.Z[1]=b;d.Z[2]=f;d.Z[3]=c;this.Lb=!1}};d.prototype.Dr=function(){this.re();
this.m.flush()};var h=[],b={};d.prototype.ei=function(a,g,f,c){g=!!g;f=!!f;var d=a.src+","+g+","+f+(g?",undefined":""),n=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(d))return n=b[d],n.nh++,n;this.re();var l=this.m,s=ha(a.width)&&ha(a.height),n=l.createTexture();l.bindTexture(l.TEXTURE_2D,n);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var q=l.RGBA,r=l.RGBA,k=l.UNSIGNED_BYTE;if(c&&!this.$j)switch(c){case 1:r=q=l.RGB;break;case 2:k=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=l.UNSIGNED_SHORT_5_5_5_1;
break;case 4:r=q=l.RGB,k=l.UNSIGNED_SHORT_5_6_5}if(!s&&g){c=document.createElement("canvas");c.width=ja(a.width);c.height=ja(a.height);var e=c.getContext("2d");e.webkitImageSmoothingEnabled=f;e.mozImageSmoothingEnabled=f;e.msImageSmoothingEnabled=f;e.imageSmoothingEnabled=f;e.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);l.texImage2D(l.TEXTURE_2D,0,q,r,k,c)}else l.texImage2D(l.TEXTURE_2D,0,q,r,k,a);g?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,
l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));f?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),s?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,
null);this.Be=null;n.Qf=a.width;n.Pf=a.height;n.nh=1;n.Wl=d;h.push(n);return b[d]=n};d.prototype.Id=function(a,b,f){var c;this.re();var d=this.m;this.$j&&(c=!1);var n=d.createTexture();d.bindTexture(d.TEXTURE_2D,n);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,f?d.LINEAR:d.NEAREST);
d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,f?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Be=null;n.Qf=a;n.Pf=b;h.push(n);return n};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.nh&&1<a.nh?a.nh--:(this.re(),a===this.Be&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Be=null),a===this.Ce&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Ce=null),Ca(h,a),"undefined"!==typeof a.Wl&&delete b[a.Wl],
this.m.deleteTexture(a)))};d.prototype.Xc=function(a){if(a!==this.Qn){var b=this.Hc();b.type=6;this.Qn=b.Lc=a;this.Lb=!1}};gb=d})();
(function(){function d(k){if(k&&(k.getContext||k.dc)&&!k.c2runtime){k.c2runtime=this;var e=this;this.Rh=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk);this.xe=!this.Rh&&"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap);this.zb=!!k.dc;this.ff="undefined"!==typeof window.AppMobi||this.zb;this.ic=!!window.c2cocoonjs;this.qd=!!window.c2ejecta;
this.ic&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.qd&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.ta=this.zb||this.ic||this.qd;this.Pm=/tizen/i.test(navigator.userAgent);this.Qh=/android/i.test(navigator.userAgent)&&
!this.Pm;this.$j=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.Vh=/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent);this.Tm=/ipad/i.test(navigator.userAgent);this.fk=this.Vh||this.Tm||this.qd;this.ir=this.Vh&&/os\s6/i.test(navigator.userAgent);this.hg=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.$q=/amazonwebappplatform/i.test(navigator.userAgent);this.Mm=/firefox/i.test(navigator.userAgent);this.Om=!this.hg&&/safari/i.test(navigator.userAgent);
this.er=/windows/i.test(navigator.userAgent);this.Nd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.gr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.hr=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.dk=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Rm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Qm=this.gr||this.hr||this.Rm;
this.br=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Lm=this.Qh&&!this.hg&&!this.Mm&&!this.$q&&!this.ta;this.devicePixelRatio=1;this.Sc=this.xe||this.Rh||this.ff||this.ic||this.Qh||this.fk||this.dk||this.Rm||this.br||this.Pm||this.qd;this.Sc||(this.Sc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Nd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||
(this.Nd=!0);this.cr="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=k;this.Zl=document.getElementById("c2canvasdiv");this.$=this.u=this.m=null;this.Cj="";this.Fh=!1;this.sn=this.tn=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.zb&&(window.c2runtime=this);this.Nd&&(window.Mt=function(e){e.preventDefault();return!1},window.Nt=
function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());this.width=k.width;this.height=k.height;this.N=this.width;this.M=this.height;this.uh=this.width;this.th=this.height;this.rg=window.innerWidth;this.qg=window.innerHeight;this.ka=!0;this.jg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Aa=[];this.kk={};this.Dc=[];this.xj={};this.jd=[];this.Kf=[];this.Si=[];this.dp=[];this.ep=[];this.Um=this.fo=null;this.Oc=new da;this.ak=!1;
this.rd=0;this.ck=!1;this.ub=[];this.ud=this.kb=this.ci=this.bl="";this.Vg=this.co=!1;this.nj=this.zg=this.Kd=this.qe=0;this.Ef=1;this.jc=new Xa;this.Yh=0;this.hn=!0;this.mi=this.Ih=this.Ch=this.Df=this.sg=this.Bj=0;this.Rf=null;this.zh=[];this.wj=[];this.Bh=-1;this.rk=[[]];this.rl=this.hi=0;this.xi(null);this.Xf=this.on=this.Dg=0;this.Wg=[];this.Pi=this.Ai=-1;this.mg=!0;this.gi=0;this.ig=!1;this.Yr=0;this.Sq=!1;this.hk=0;this.Za=this.df=this.Uk=!1;this.zk=new da;this.Ak=new da;this.Bi=[];this.Kc=
new Za([]);this.jl=new Za([]);this.Te=[];this.Nh={};this.Ve={};this.Se={};this.Jf={};this.Ul={};this.bn=this.ai=this.Nb=this.Xb=this.an=this.$h=this.T=null;this.Gf=this.ek=!1;this.Dj=[null,null];this.te=0;this.nm="";this.Sd={};this.Ki=this.of=null;this.load();this.devicePixelRatio=(this.ye=(!this.ta||this.qd)&&this.ls&&!this.Lm)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.bb();var m,a=this.bj&&!(this.Nd||this.Qm||this.dk||
this.Rh);0<this.wb&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Lp&&(this.ic||this.qd||!this.ta)&&(m={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=k.getContext("webgl",m)||k.getContext("experimental-webgl",m))}catch(b){}if(this.m){this.ta||(this.$a=document.createElement("canvas"),jQuery(this.$a).appendTo(this.canvas.parentNode),this.$a.oncontextmenu=J(!1),this.$a.onselectstart=J(!1),this.$a.width=this.uh,this.$a.height=this.th,jQuery(this.$a).css({width:this.uh+
"px",height:this.th+"px"}),this.Jn(),this.Mk=this.$a.getContext("2d"));this.u=new gb(this.m,this.Sc);this.u.zf(k.width,k.height);this.$=null;this.canvas.addEventListener("webglcontextlost",function(k){k.preventDefault();e.pr();console.log("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.u.Gm();e.u.zf(e.u.width,e.u.height,!0);e.Xb=null;e.Nb=null;e.Dj[0]=null;e.Dj[1]=null;e.qr();e.ka=!0;console.log("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);var f,c,g,d,l,h;k=0;for(m=this.n.length;k<m;k++)for(c=this.n[k],a=0,f=c.F.length;a<f;a++)d=c.F[a],d.ab=this.u.Nj(d.id),this.Gf=this.Gf||this.u.Lg(d.ab);k=0;for(m=this.Dc.length;k<m;k++){l=this.Dc[k];a=0;for(f=l.F.length;a<f;a++)d=l.F[a],d.ab=this.u.Nj(d.id);a=0;for(f=l.R.length;a<f;a++)for(h=l.R[a],c=0,g=h.F.length;c<g;c++)d=h.F[c],d.ab=this.u.Nj(d.id),this.Gf=this.Gf||this.u.Lg(d.ab)}}else{if(0<this.wb&&this.zb){this.canvas=null;document.oncontextmenu=J(!1);document.onselectstart=
J(!1);this.$=AppMobi.canvas.getContext("2d");try{this.$.samplingMode=this.X?"smooth":"sharp",this.$.globalScale=1,this.$.HTML5CompatibilityMode=!0,this.$.imageSmoothingEnabled=this.X}catch(p){}0!==this.width&&0!==this.height&&(this.$.width=this.width,this.$.height=this.height)}this.$||(m=this.ic?{antialias:!!this.X,alpha:a}:{alpha:a},this.$=k.getContext("2d",m),this.$.webkitImageSmoothingEnabled=this.X,this.$.mozImageSmoothingEnabled=this.X,this.$.msImageSmoothingEnabled=this.X,this.$.imageSmoothingEnabled=
this.X);this.Mk=this.$a=null}this.Oi=function(){e.mb(!1)};window==window.top||this.ta||this.Qm||this.dk||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ic&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.ci="__c2_continuouspreview",this.Vg=!0),this.yr&&
!this.Sc&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));0===this.wb&&this.ye&&1<this.devicePixelRatio&&this.setSize(this.Sa,this.Ra,!0);this.ro();this.go();this.ca={}}}function n(k){k.target.result.createObjectStore("saves",{keyPath:"slot"})}function c(k,e,m,a){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=n;b.onerror=a;b.onsuccess=function(b){b=b.target.result;b.onerror=a;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:k,
data:e}).onsuccess=m}}function h(k,e,m){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=n;a.onerror=m;a.onsuccess=function(a){a=a.target.result;a.onerror=m;var b=a.transaction(["saves"]).objectStore("saves").get(k);b.onsuccess=function(){b.result?e(b.result.data):e(null)}}}function b(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function a(k){var e,m=
{};for(e in k)!k.hasOwnProperty(e)||k[e]instanceof da||k[e]&&"undefined"!==typeof k[e].Ct||(m[e]=k[e]);return m}d.prototype.setSize=function(k,e,m){var a=0,b=0,f=0,c=0,c=0,g=this.ir&&this.Om&&!navigator.standalone&&!this.ta&&!this.xe;g&&(e+=60);if(this.rg!==k||this.qg!==e||m){this.rg=k;this.qg=e;var d=this.wb,l=document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.ig;if(l||0!==this.wb||m)l&&0<this.te&&(d=this.te),4<=d?(m=this.Sa/this.Ra,k/e>
m?(f=e*m,5===d?(c=f/this.Sa,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),f=this.Sa*c,c*=this.Ra,a=(k-f)/2,b=(e-c)/2,k=f,e=c):(a=(k-f)/2,k=f)):(c=k/m,5===d?(c/=this.Ra,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),f=this.Sa*c,c*=this.Ra,a=(k-f)/2,b=(e-c)/2,k=f):b=(e-c)/2,e=c),l&&!this.Nd&&(b=a=0),a=Math.floor(a),b=Math.floor(b),k=Math.floor(k),e=Math.floor(e)):this.Nd&&this.ig&&0===this.pm&&(a=Math.floor((k-this.Sa)/2),b=Math.floor((e-this.Ra)/2),k=this.Sa,e=this.Ra),2>d&&(this.Of=this.devicePixelRatio),
this.ye&&this.Tm&&1<this.devicePixelRatio&&(1024<=k&&(k=1023),1024<=e&&(e=1023)),l=this.devicePixelRatio,this.uh=k,this.th=e,this.width=Math.round(k*l),this.height=Math.round(e*l),this.ka=!0,this.Do?(this.N=this.width,this.M=this.height,this.fc=!0):this.width<this.Sa&&this.height<this.Ra||1===d?(this.N=this.width,this.M=this.height,this.fc=!0):(this.N=this.Sa,this.M=this.Ra,this.fc=!1,2===d?(m=this.Sa/this.Ra,d=this.rg/this.qg,d<m?this.N=this.M*d:d>m&&(this.M=this.N/d)):3===d&&(m=this.Sa/this.Ra,
d=this.rg/this.qg,d>m?this.N=this.M*d:d<m&&(this.M=this.N/d))),this.Zl&&!this.ta&&(jQuery(this.Zl).css({width:k+"px",height:e+"px","margin-left":a,"margin-top":b}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:k+"px",height:e+"px"})),this.canvas&&(this.canvas.width=Math.round(k*l),this.canvas.height=Math.round(e*l),this.qd?(this.canvas.style.left=a+"px",this.canvas.style.top=b+"px",this.canvas.style.width=k+"px",this.canvas.style.height=e+"px"):this.ye&&!this.ta&&jQuery(this.canvas).css({width:k+
"px",height:e+"px"})),this.$a&&(this.$a.width=k,this.$a.height=e,jQuery(this.$a).css({width:k+"px",height:e+"px"})),this.u&&this.u.zf(Math.round(k*l),Math.round(e*l)),this.zb&&this.$&&(this.$.width=k,this.$.height=e),this.$&&(this.$.webkitImageSmoothingEnabled=this.X,this.$.mozImageSmoothingEnabled=this.X,this.$.msImageSmoothingEnabled=this.X,this.$.imageSmoothingEnabled=this.X),this.ro(),this.ta||!g&&!this.Vh||window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.ro=function(){if(this.fp&&
0!==this.Kk){var k="portrait";2===this.Kk&&(k="landscape");screen.lockOrientation?screen.lockOrientation(k):screen.webkitLockOrientation?screen.webkitLockOrientation(k):screen.mozLockOrientation?screen.mozLockOrientation(k):screen.msLockOrientation&&screen.msLockOrientation(k)}};d.prototype.pr=function(){this.ek=!0;var k,e,m;k=0;for(e=this.n.length;k<e;k++)m=this.n[k],m.Ek&&m.Ek()};d.prototype.qr=function(){this.ek=!1;var k,e,m;k=0;for(e=this.n.length;k<e;k++)m=this.n[k],m.Ik&&m.Ik()};d.prototype.Jn=
function(){if(!this.ta){var k=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ig?jQuery(this.canvas).offset():jQuery(this.canvas).position();k.position="absolute";jQuery(this.$a).css(k)}};var g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(k){var e;if(k&&!this.jg)for(ea("[Construct 2] Suspending"),
this.jg=!0,-1!==this.Ai&&g&&g(this.Ai),-1!==this.Pi&&clearTimeout(this.Pi),k=0,e=this.Wg.length;k<e;k++)this.Wg[k](!0);else if(!k&&this.jg){ea("[Construct 2] Resuming");this.jg=!1;this.Yh=Wa();this.sg=Wa();k=this.zg=this.Ih=0;for(e=this.Wg.length;k<e;k++)this.Wg[k](!1);this.mb(!1)}};d.prototype.cp=function(k){this.Wg.push(k)};d.prototype.load=function(){var k=fc();this.name=k[0];this.om=k[1];this.wb=k[11];this.pm=k[11];this.Sa=k[9];this.Ra=k[10];this.Fn=this.Sa/2;this.Gn=this.Ra/2;this.ta&&!this.qd&&
(4<=k[11]||0===k[11])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.pm=this.wb=3);this.ul=k[17];this.ug=k[18];0===this.ug&&(this.of=new Image,this.of.src="loading-logo.png");this.Dg=k[20];this.Zc=new U(this);var e,m,a,b,c,f,g,d,l;e=0;for(m=k[2].length;e<m;e++)g=k[2][e],hb(g),l=new g[0](this),l.Ji=g[1],l.Od=g[2],l.mn=g[9],l.va&&l.va(),this.plugins.push(l);k=fc();e=0;for(m=k[3].length;e<m;e++){g=k[3][e];c=g[1];l=null;a=
0;for(b=this.plugins.length;a<b;a++)if(this.plugins[a]instanceof c){l=this.plugins[a];break}var h=new l.Rb(l);h.name=g[0];h.G=g[2];h.Yj=g[3].slice(0);h.os=g[3].length;h.gp=g[4];h.oq=g[5];h.O=g[11];h.G?(h.ki=[],h.kd=this.Xf++,h.na=null):(h.ki=null,h.kd=-1,h.na=[]);h.Dh=null;h.Ze=null;h.jm=null;h.Bc=!1;h.Ib=null;g[6]?(h.ll=g[6][0],h.ml=g[6][1],h.nl=g[6][2]):(h.ll=null,h.ml=0,h.nl=0);h.Hb=g[7]?g[7]:null;h.index=e;h.c=[];h.xh=[];h.$d=[new ib(h)];h.hd=0;h.Pc=null;h.vp=0;h.Cf=!0;h.Ti=jb;h.sq=kb;h.yq=lb;
h.Y=mb;h.Mg=qb;h.wi=rb;h.He=sb;h.Jh=tb;h.Gj=ub;h.Kj=vb;h.yc=wb;h.xm=xb;h.rh=new bb(this.Sa,this.Ra);h.gh=!0;h.hh=!1;h.ca={};h.toString=yb;h.Aa=[];a=0;for(b=g[8].length;a<b;a++){d=g[8][a];var p=d[1],q=null;c=0;for(f=this.Aa.length;c<f;c++)if(this.Aa[c]instanceof p){q=this.Aa[c];break}q||(q=new p(this),q.li=[],q.xk=new da,q.va&&q.va(),this.Aa.push(q),Yb.Xr&&q instanceof Yb.Xr&&(this.fo=q),Yb.kr&&q instanceof Yb.kr&&(this.Um=q));-1===q.li.indexOf(h)&&q.li.push(h);c=new q.Rb(q,h);c.name=d[0];c.O=d[2];
c.va();h.Aa.push(c)}h.global=g[9];h.bk=g[10];h.F=[];a=0;for(b=g[12].length;a<b;a++)h.F.push({id:g[12][a][0],name:g[12][a][1],ab:-1,Sb:!0,index:a});h.Ut=g[13];this.ul&&!h.G&&!h.bk&&l.Od||h.va();h.name&&(this.types[h.name]=h);this.n.push(h);l.Ji&&(a=new l.hb(h),a.uid=this.Dg++,a.Nn=this.on++,a.ve=0,a.bg=zb,a.toString=Ab,a.da=g[14],a.va(),h.c.push(a),this.Sd[a.uid.toString()]=a)}e=0;for(m=k[4].length;e<m;e++)for(c=k[4][e],f=this.n[c[0]],a=1,b=c.length;a<b;a++)g=this.n[c[a]],g.na.push(f),f.ki.push(g);
e=0;for(m=k[23].length;e<m;e++){c=k[23][e];f=[];a=0;for(b=c.length;a<b;a++)f.push(this.n[c[a]]);a=0;for(b=f.length;a<b;a++)f[a].Bc=!0,f[a].Ib=f}if(0<this.Xf)for(e=0,m=this.n.length;e<m;e++)if(g=this.n[e],!g.G&&g.na.length){g.Dh=Array(this.Xf);g.Ze=Array(this.Xf);g.jm=Array(this.Xf);h=[];a=q=p=d=0;for(b=g.na.length;a<b;a++)for(l=g.na[a],g.Dh[l.kd]=d,d+=l.os,g.Ze[l.kd]=p,p+=l.gp,g.jm[l.kd]=q,q+=l.oq,c=0,f=l.F.length;c<f;c++)h.push(xa({},l.F[c]));g.F=h.concat(g.F);a=0;for(b=g.F.length;a<b;a++)g.F[a].index=
a}e=0;for(m=k[5].length;e<m;e++)g=k[5][e],a=new Bb(this,g),this.kk[a.name]=a,this.Dc.push(a);e=0;for(m=k[6].length;e<m;e++)g=k[6][e],a=new Cb(this,g),this.xj[a.name]=a,this.jd.push(a);e=0;for(m=this.jd.length;e<m;e++)this.jd[e].xa();e=0;for(m=this.jd.length;e<m;e++)this.jd[e].xo();e=0;for(m=this.Si.length;e<m;e++)this.Si[e].xa();this.Si.length=0;this.nm=k[7];this.Ud=k[8];this.Of=1;this.Lp=k[12];this.X=k[13];this.bj=k[14];this.ls=k[16];this.Kk=k[19];this.fp=0<this.Kk;this.yr=k[21];this.fc=this.Do=
k[22];this.Li=Date.now()};var f=!1;d.prototype.Co=function(k){k.onerror=function(e){f=k.ip=!0;console&&console.error&&console.error("Error loading image '"+k.src+"': ",e)};this.Kf.push(k)};d.prototype.mq=function(k){var e,a;e=0;for(a=this.Kf.length;e<a;e++)if(this.Kf[e].qp===k)return this.Kf[e];return null};d.prototype.Tl=function(){var k=0,e=0,a=!0,b,c,g;b=0;for(c=this.Kf.length;b<c;b++){g=this.Kf[b];var f=g.dm;if(!f||0>=f)f=5E4;k+=f;!g.complete&&!g.loaded||g.ip?a=!1:e+=f}this.Ie=0==k?0:e/k;return a};
d.prototype.go=function(){if(this.$||this.u){var k=this.$||this.Mk;this.$a&&this.Jn();this.Ie=0;this.$m=-1;if(this.Tl())this.Qq();else{var e=Date.now()-this.Li;if(k){var a=this.width,b=this.height,c=this.devicePixelRatio;this.$a&&(a=this.uh,b=this.th,c=1);if(3!==this.ug&&(this.ic||500<=e&&this.$m!=this.Ie)){k.clearRect(0,0,a,b);var e=a/2,b=b/2,a=0===this.ug&&this.of.complete,g=40*c,d=0,l=80*c,h;a&&(l=this.of.width*c,h=this.of.height*c,g=l/2,d=h/2,k.drawImage(this.of,R(e-g),R(b-d),l,h));1>=this.ug?
(e=R(e-g)+0.5,b=R(b+(d+(a?12*c:0)))+0.5,k.fillStyle=f?"red":"DodgerBlue",k.fillRect(e,b,Math.floor(l*this.Ie),6*c),k.strokeStyle="black",k.strokeRect(e,b,l,6*c),k.strokeStyle="white",k.strokeRect(e-1*c,b-1*c,l+2*c,8*c)):2===this.ug&&(k.font=this.qd?"12pt ArialMT":"12pt Arial",k.fillStyle=f?"#f00":"#999",k.Tt="middle",c=Math.round(100*this.Ie)+"%",a=k.measureText?k.measureText(c):null,k.fillText(c,e-(a?a.width:0)/2,b))}this.$m=this.Ie}setTimeout(function(e){return function(){e.go()}}(this),this.ic?
10:100)}}};d.prototype.Qq=function(){this.$a&&(this.canvas.parentNode.removeChild(this.$a),this.$a=this.Mk=null);this.Li=Date.now();this.sg=Wa();var k,e,a;if(this.ul)for(k=0,e=this.n.length;k<e;k++)a=this.n[k],a.G||a.bk||!a.Ha.Od||a.va();else this.mg=!1;k=0;for(e=this.Dc.length;k<e;k++)this.Dc[k].rp();2<=this.wb&&(k=this.Sa/this.Ra,e=this.width/this.height,this.Of=2!==this.wb&&e>k||2===this.wb&&e<k?this.height/this.Ra:this.width/this.Sa);this.om?this.kk[this.om].hl():this.Dc[0].hl();this.ul||(this.gi=
1,this.trigger(U.prototype.i.Cl,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();k=0;for(e=this.n.length;k<e;k++)a=this.n[k],a.or&&a.or();this.mb(!1);this.zb&&AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.mb=function(k){if(this.T){var e=Wa();if(this.Sq&&this.Uk&&29>e-this.hk)this.Uk=
!1,this.hk=e,t?this.Ai=t(this.Oi,this.canvas):this.Pi=setTimeout(this.Oi,this.Sc?1:16);else{this.Uk=!0;this.hk=e;var a=this.wb,b=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement;(b||this.ig)&&0<this.te&&(a=this.te);if(0<a&&(!this.Vh||window.self!==window.top)){var a=window.innerWidth,c=window.innerHeight;this.rg===a&&this.qg===c||this.setSize(a,c)}this.ta||(b?(this.Fh||(this.Cj=jQuery(this.canvas).css("margin")||"0",this.Fh=!0),this.hg||this.Nd||
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.Fh?(this.hg||this.Nd||jQuery(this.canvas).css("margin",this.Cj),this.Cj="",this.Fh=!1,0===this.wb&&this.setSize(Math.round(this.tn/this.devicePixelRatio),Math.round(this.sn/this.devicePixelRatio),!0)):(this.tn=this.width,this.sn=this.height));this.mg&&(b=this.Tl(),this.gi=this.Ie,b&&(this.mg=!1,this.Ie=
1,this.trigger(U.prototype.i.Cl,null)));this.mr();!this.ka&&!this.ic||this.ek||this.Vg||k||(this.ka=!1,this.u?this.zc():this.Jd(),this.Ki&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Ki[0],this.Ki[1]),this.trigger(U.prototype.i.Ko,null)),this.Ki=null));this.Kt||(this.Df++,this.Ch++,this.Ih++);this.zg+=Wa()-e;this.jg||k||(t?this.Ai=t(this.Oi,this.canvas):this.Pi=setTimeout(this.Oi,this.Sc?1:16))}}};d.prototype.mr=function(){var k,e,a,b,c,g,f,d,l;k=Wa();1E3<=k-this.sg&&(this.sg+=
1E3,this.Bj=this.Ih,this.Ih=0,this.nj=this.zg,this.zg=0);this.hn&&(0!==this.Yh&&(e=k-this.Yh,0!==e||this.cr?(this.Kd=e/1E3,0.5<this.Kd?this.Kd=0:0.1<this.Kd&&(this.Kd=0.1)):(10<=this.Vt&&(this.hn=!1),this.Kd=1/60)),this.Yh=k);this.qe=this.Kd*this.Ef;this.jc.add(this.qe);k=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ig;2<=this.wb||k&&0<this.te?(e=this.Sa/this.Ra,a=this.width/this.height,b=this.wb,k&&0<this.te&&(b=this.te),this.Of=2!==
b&&a>e||2===b&&a<e?this.height/this.Ra:this.width/this.Sa,this.T&&(this.T.Tn(this.T.scrollX),this.T.Un(this.T.scrollY))):this.Of=this.ye?this.devicePixelRatio:1;this.bb();this.rd++;this.Zc.Lr();this.rd--;this.bb();this.rd++;k=0;for(e=this.n.length;k<e;k++)if(f=this.n[k],!f.G&&(f.Aa.length||f.na.length))for(a=0,b=f.c.length;a<b;a++)for(d=f.c[a],c=0,g=d.J.length;c<g;c++)d.J[c].mb();k=0;for(e=this.n.length;k<e;k++)if(f=this.n[k],!f.G&&(f.Aa.length||f.na.length))for(a=0,b=f.c.length;a<b;a++)for(d=f.c[a],
c=0,g=d.J.length;c<g;c++)l=d.J[c],l.Kn&&l.Kn();a=this.zk.Hf();k=0;for(e=a.length;k<e;k++)a[k].mb();this.rd--;this.Tq();for(k=0;this.Rf&&10>k++;)this.hm(this.Rf);k=0;for(e=this.jd.length;k<e;k++)this.jd[k].Sj=!1;this.T.Vf&&this.T.Vf.Da();this.Bi.length=0;this.rd++;k=0;for(e=this.n.length;k<e;k++)if(f=this.n[k],!f.G&&(f.Aa.length||f.na.length))for(a=0,b=f.c.length;a<b;a++)for(d=f.c[a],c=0,g=d.J.length;c<g;c++)l=d.J[c],l.ol&&l.ol();a=this.Ak.Hf();k=0;for(e=a.length;k<e;k++)a[k].ol();this.rd--};d.prototype.hm=
function(a){var e=this.T;this.T.Zr();var m,b,c,f,g,d,l;if(this.u)for(m=0,b=this.n.length;m<b;m++)g=this.n[m],g.G||!g.tl||g.global&&0!==g.c.length||-1!==a.fg.indexOf(g)||g.tl();e==a&&(this.Zc.Fb.length=0);a.hl();m=0;for(b=this.n.length;m<b;m++)if(g=this.n[m],g.global||g.Ha.Ji)for(a=0,e=g.c.length;a<e;a++)if(d=g.c[a],d.Dk&&d.Dk(),d.J)for(c=0,f=d.J.length;c<f;c++)l=d.J[c],l.Dk&&l.Dk();this.ka=!0;this.bb()};d.prototype.mo=function(a){this.zk.add(a)};d.prototype.$r=function(a){this.Ak.add(a)};d.prototype.Ij=
function(a){return a&&-1!==a.Cg?this.Kd*a.Cg:this.qe};d.prototype.Jd=function(){this.T.Jd(this.$);this.zb&&this.$.present()};d.prototype.zc=function(){this.T.zc(this.u);this.u.Dr()};d.prototype.aj=function(a){a&&this.zh.push(a)};d.prototype.Ir=function(a){Ca(this.zh,a)};d.prototype.cf=function(a){a=a.toString();return this.Sd.hasOwnProperty(a)?this.Sd[a]:null};d.prototype.he=function(a){var e,m;if(!this.Oc.contains(a)){this.Oc.add(a);if(a.Bc)for(e=0,m=a.siblings.length;e<m;e++)this.he(a.siblings[e]);
this.ak&&this.Oc.If.push(a);this.rd++;this.trigger(Object.getPrototypeOf(a.type.Ha).i.Mo,a);this.rd--}};d.prototype.bb=function(){var a,e,m,b,c,g,f,d,l,h;this.ak=!0;b=0;for(g=this.ub.length;b<g;b++)for(a=this.ub[b],e=a.type,e.c.push(a),c=0,f=e.na.length;c<f;c++)e.na[c].c.push(a),e.na[c].Cf=!0;this.ub.length=0;g=this.Oc.Hf();for(b=0;b<g.length;b++){a=g[b];e=a.type;m=e.c;c=0;for(f=this.zh.length;c<f;c++)this.zh[c](a);Ca(m,a);0===m.length&&(e.hh=!1);a.qh&&e.rh.update(a,a.qh,null);a.e&&(ya(a.e.c,a.Wb()),
a.e.Qb=!0);c=0;for(f=e.na.length;c<f;c++)Ca(e.na[c].c,a),e.na[c].Cf=!0;if(a.J)for(c=0,f=a.J.length;c<f;c++)m=a.J[c],m.Fg&&m.Fg(),m.ed.xk.remove(a);this.zk.remove(a);this.Ak.remove(a);c=0;for(f=this.Zc.Fb.length;c<f;c++)if(l=this.Zc.Fb[c],l.lb.hasOwnProperty(e.index)&&Ca(l.lb[e.index].pd,a),!e.G)for(m=0,d=e.na.length;m<d;m++)h=e.na[m],l.lb.hasOwnProperty(h.index)&&Ca(l.lb[h.index].pd,a);a.Fg&&a.Fg();this.Sd.hasOwnProperty(a.uid.toString())&&delete this.Sd[a.uid.toString()];this.mi--;64>e.xh.length&&
e.xh.push(a);e.Cf=!0}this.Oc.Ac()||(this.ka=!0);this.Oc.clear();this.ak=!1};var p=[];d.prototype.oe=function(a,e,m,b,c,g){var f,d,l,h;if(!a)return null;var q=this.n[a[1]],n=q.Ha.Od;if(this.mg&&n&&!q.bk||n&&!this.u&&11===a[0][11])return null;var t=e;n||(e=null);var r;q.xh.length?(r=q.xh.pop(),r.Ic=!0,q.Ha.hb.call(r,q)):(r=new q.Ha.hb(q),r.Ic=!1);r.uid=m&&!g?a[2]:this.Dg++;this.Sd[r.uid.toString()]=r;r.Nn=this.on++;r.ve=q.c.length;f=0;for(d=this.ub.length;f<d;++f)this.ub[f].type===q&&r.ve++;r.bg=zb;
l=a[3];if(r.Ic)Va(r.ca);else{r.ca={};if("undefined"!==typeof cr_is_preview)for(r.Jm=[],r.Jm.length=l.length,f=0,d=l.length;f<d;f++)r.Jm[f]=l[f][1];r.Ga=[];r.Ga.length=l.length}f=0;for(d=l.length;f<d;f++)r.Ga[f]=l[f][0];if(n){var s=a[0];r.x=fa(b)?s[0]:b;r.y=fa(c)?s[1]:c;r.z=s[2];r.width=s[3];r.height=s[4];r.depth=s[5];r.j=s[6];r.opacity=s[7];r.xb=s[8];r.yb=s[9];r.pb=s[10];f=s[11];!this.u&&q.F.length&&(r.pb=f);r.Sf=cb(r.pb);this.m&&db(r,r.pb,this.m);if(r.Ic){f=0;for(d=s[12].length;f<d;f++)for(l=0,h=
s[12][f].length;l<h;l++)r.ra[f][l]=s[12][f][l];r.za.set(0,0,0,0);r.qh.set(0,0,-1,-1);r.Ub.Sg(r.za);r.fj.length=0}else{r.ra=s[12].slice(0);f=0;for(d=r.ra.length;f<d;f++)r.ra[f]=s[12][f].slice(0);r.U=[];r.Dd=[];r.Dd.length=q.F.length;r.za=new ua(0,0,0,0);r.qh=new ua(0,0,-1,-1);r.Ub=new va;r.fj=[];r.B=Db;r.Bt=Eb;r.Jb=Fb;r.ya=Gb;r.Ao=Hb;r.Wb=Ib}r.Yg=!1;r.cs=0;r.bs=0;r.as=null;14===s.length&&(r.Yg=!0,r.cs=s[13][0],r.bs=s[13][1],r.as=s[13][2]);f=0;for(d=q.F.length;f<d;f++)r.Dd[f]=!0;r.Ad=Jb;r.Ad();r.Bo=
!!r.U.length;r.ej=!0;r.ij=!0;q.gh=!0;r.visible=!0;r.Cg=-1;r.e=e;r.Ne=e.c.length;"undefined"===typeof r.V&&(r.V=null);this.ka=r.fd=!0}r.toString=Ab;var u;f=p.length=0;for(d=q.na.length;f<d;f++)p.push.apply(p,q.na[f].Aa);p.push.apply(p,q.Aa);if(r.Ic)for(f=0,d=p.length;f<d;f++){var w=p[f];u=r.J[f];u.Ic=!0;w.ed.hb.call(u,w,r);s=a[4][f];l=0;for(h=s.length;l<h;l++)u.da[l]=s[l];u.va();w.ed.xk.add(r)}else for(r.J=[],f=0,d=p.length;f<d;f++)w=p[f],u=new w.ed.hb(w,r),u.Ic=!1,u.da=a[4][f].slice(0),u.va(),r.J.push(u),
w.ed.xk.add(r);s=a[5];if(r.Ic)for(f=0,d=s.length;f<d;f++)r.da[f]=s[f];else r.da=s.slice(0);this.ub.push(r);e&&(e.c.push(r),1!==e.Bb||1!==e.Cb)&&(q.hh=!0);this.mi++;if(q.Bc){if(r.Bc=!0,r.Ic?r.siblings.length=0:r.siblings=[],!m&&!g){f=0;for(d=q.Ib.length;f<d;f++)if(q.Ib[f]!==q){if(!q.Ib[f].Pc)return null;r.siblings.push(this.oe(q.Ib[f].Pc,t,!1,n?r.x:b,n?r.y:c,!0))}f=0;for(d=r.siblings.length;f<d;f++)for(r.siblings[f].siblings.push(r),l=0;l<d;l++)f!==l&&r.siblings[f].siblings.push(r.siblings[l])}}else r.Bc=
!1,r.siblings=null;r.va();f=0;for(d=r.J.length;f<d;f++)r.J[f].Cr&&r.J[f].Cr();return r};d.prototype.$f=function(a){var e,m;e=0;for(m=this.T.R.length;e<m;e++){var b=this.T.R[e];if(fb(b.name,a))return b}return null};d.prototype.nd=function(a){a=R(a);0>a&&(a=0);a>=this.T.R.length&&(a=this.T.R.length-1);return this.T.R[a]};d.prototype.lj=function(a){var e,m;e=0;for(m=a.length;e<m;e++)a[e].Y().fa=!0};d.prototype.Mg=function(a){var e,m;e=0;for(m=a.length;e<m;e++)a[e].Mg()};d.prototype.wi=function(a){var e,
m;e=0;for(m=a.length;e<m;e++)a[e].wi()};d.prototype.He=function(a){var e,m;e=0;for(m=a.length;e<m;e++)a[e].He()};d.prototype.wo=function(a){if(a.gh){var e,m,b=a.c;e=0;for(m=b.length;e<m;++e)b[e].Ao();b=this.ub;e=0;for(m=b.length;e<m;++e)b[e].type===a&&b[e].Ao();a.gh=!1}};d.prototype.tm=function(a,e,m,b){var f,c,g=a?1!==a.Bb||1!==a.Cb:!1;if(e.G)for(a=0,f=e.ki.length;a<f;++a)c=e.ki[a],g||c.hh?Aa(b,c.c):(this.wo(c),c.rh.On(m,b));else g||e.hh?Aa(b,e.c):(this.wo(e),e.rh.On(m,b))};d.prototype.Bm=function(a,
e,m,b){var f,c;f=0;for(c=e.length;f<c;++f)this.tm(a,e[f],m,b)};d.prototype.Cq=function(a,e,m){var b=this.fo;b&&this.Bm(a,b.li,e,m)};d.prototype.wq=function(a,e,m){var b=this.Um;b&&this.Bm(a,b.li,e,m)};d.prototype.jo=function(a,e,m){var b=a.Y(),f,c,g,d,l,h;if(b.fa)for(b.fa=!1,f=b.c.length=0,d=a.c.length;f<d;f++)g=a.c[f],g.ya(),l=g.e.Va(e,m,!0),h=g.e.Va(e,m,!1),g.Jb(l,h)&&b.c.push(g);else{f=c=0;for(d=b.c.length;f<d;f++)g=b.c[f],g.ya(),l=g.e.Va(e,m,!0),h=g.e.Va(e,m,!1),g.Jb(l,h)&&(b.c[c]=b.c[f],c++);
b.c.length=c}a.yc();return b.Rj()};d.prototype.rc=function(a,e){if(!(a&&e&&a!==e&&a.fd&&e.fd))return!1;a.ya();e.ya();var m=a.e,b=e.e,f,c,g,d,l,h,q,p;if(m===b||m.Bb===b.Bb&&b.Cb===b.Cb&&m.scale===b.scale&&m.j===b.j&&m.gb===b.gb){if(!a.za.Yq(e.za)||!a.Ub.Km(e.Ub)||a.Yg&&e.Yg)return!1;if(a.Yg)return this.ko(a,e);if(e.Yg)return this.ko(e,a);q=a.V&&!a.V.hf();f=e.V&&!e.V.hf();if(!q&&!f)return!0;q?(a.V.Ue(a.width,a.height,a.j),q=a.V):(this.Kc.Af(a.Ub,a.x,a.y,a.width,a.height),q=this.Kc);f?(e.V.Ue(e.width,
e.height,e.j),p=e.V):(this.Kc.Af(e.Ub,e.x,e.y,e.width,e.height),p=this.Kc);return q.gg(p,e.x-a.x,e.y-a.y)}q=a.V&&!a.V.hf();f=e.V&&!e.V.hf();q?(a.V.Ue(a.width,a.height,a.j),this.Kc.Yn(a.V)):this.Kc.Af(a.Ub,a.x,a.y,a.width,a.height);q=this.Kc;f?(e.V.Ue(e.width,e.height,e.j),this.jl.Yn(e.V)):this.jl.Af(e.Ub,e.x,e.y,e.width,e.height);p=this.jl;f=0;for(c=q.Gc;f<c;f++)g=2*f,d=g+1,l=q.Ia[g],h=q.Ia[d],q.Ia[g]=m.ib(l+a.x,h+a.y,!0),q.Ia[d]=m.ib(l+a.x,h+a.y,!1);q.ya();f=0;for(c=p.Gc;f<c;f++)g=2*f,d=g+1,l=p.Ia[g],
h=p.Ia[d],p.Ia[g]=b.ib(l+e.x,h+e.y,!0),p.Ia[d]=b.ib(l+e.x,h+e.y,!1);p.ya();return q.gg(p,0,0)};var u=new va;new ua(0,0,0,0);var l=[];d.prototype.ko=function(a,e){var m,b,f,c,g=e.za,d=a.x,h=a.y;a.Ft(g,l);var q=e.V&&!e.V.hf();m=0;for(b=l.length;m<b;++m)if(f=l[m],c=f.Pt,g.Zq(c,d,h)&&(u.Sg(c),u.offset(d,h),u.Km(e.Ub)))if(q)if(e.V.Ue(e.width,e.height,e.j),f.Qk){if(f.Qk.gg(e.V,e.x-(d+c.left),e.y-(h+c.top)))return l.length=0,!0}else{if(this.Kc.Af(u,0,0,c.right-c.left,c.bottom-c.top),this.Kc.gg(e.V,e.x,e.y))return l.length=
0,!0}else if(f.Qk){if(this.Kc.Af(e.Ub,0,0,e.width,e.height),f.Qk.gg(this.Kc,-(d+c.left),-(h+c.top)))return l.length=0,!0}else return l.length=0,!0;l.length=0;return!1};d.prototype.so=function(a,e){if(!e)return!1;var b,f,c,g,d;b=0;for(f=a.Aa.length;b<f;b++)if(a.Aa[b].ed instanceof e)return!0;if(!a.G)for(b=0,f=a.na.length;b<f;b++)for(d=a.na[b],c=0,g=d.Aa.length;c<g;c++)if(d.Aa[c].ed instanceof e)return!0;return!1};d.prototype.to=function(a){return this.so(a,Yb.Ts)};d.prototype.sl=function(a){return this.so(a,
Yb.Us)};var s=[];d.prototype.Pb=function(a){var e,b,f;a.ya();this.Cq(a.e,a.za,s);e=0;for(b=s.length;e<b;++e)if(f=s[e],f.ca.St&&this.rc(a,f))return s.length=0,f;s.length=0;return null};var q=[];d.prototype.de=function(a,e){var b=null;e&&(b=q,b.length=0);a.ya();this.wq(a.e,a.za,s);var f,c,g;f=0;for(c=s.length;f<c;++f)if(g=s[f],g.ca.Lt&&this.rc(a,g))if(e)b.push(g);else return s.length=0,g;s.length=0;return b};d.prototype.Vc=function(a,e,b,f,c,g){f=f||50;var d=a.x,l=a.y,h,q=null,p=null;for(h=0;h<f;h++)if(a.x=
d+e*h,a.y=l+b*h,a.B(),!this.rc(a,q)&&((q=this.Pb(a))&&(p=q),!q&&(c&&(q=g?this.rc(a,g)?g:null:this.de(a))&&(p=q),!q)))return p&&this.Tk(a,e,b,p),!0;a.x=d;a.y=l;a.B();return!1};d.prototype.Tk=function(a,e,b,f){var c=2,g,d=!1;g=!1;for(var l=a.x,h=a.y;16>=c;)g=1/c,c*=2,a.x+=e*g*(d?1:-1),a.y+=b*g*(d?1:-1),a.B(),this.rc(a,f)?g=d=!0:(g=d=!1,l=a.x,h=a.y);g&&(a.x=l,a.y=h,a.B())};d.prototype.Gr=function(a,e){var b=fa(e)?100:e,f=0,c=a.x,g=a.y,d=0,l=0,h=0,q=this.Pb(a);if(!q)return!0;for(;f<=b;){switch(d){case 0:l=
0;h=-1;f++;break;case 1:l=1;h=-1;break;case 2:l=1;h=0;break;case 3:h=l=1;break;case 4:l=0;h=1;break;case 5:l=-1;h=1;break;case 6:l=-1;h=0;break;case 7:h=l=-1}d=(d+1)%8;a.x=R(c+l*f);a.y=R(g+h*f);a.B();if(!this.rc(a,q)&&(q=this.Pb(a),!q))return!0}a.x=c;a.y=g;a.B();return!1};d.prototype.Og=function(a,e){a.fd&&e.fd&&this.Bi.push([a,e])};d.prototype.op=function(a,e){var b,f,c;b=0;for(f=this.Bi.length;b<f;b++)if(c=this.Bi[b],c[0]==a&&c[1]==e||c[0]==e&&c[1]==a)return!0;return!1};var r=-1;d.prototype.trigger=
function(a,e,b){if(!this.T)return!1;var f=this.T.Vf;if(!f)return!1;var c=!1,g,d,l;r++;var h=f.tj;d=0;for(l=h.length;d<l;++d)g=this.po(a,e,h[d],b),c=c||g;g=this.po(a,e,f,b);r--;return c||g};d.prototype.po=function(a,e,b,f){var c=!1,g,d,l,h;if(e)for(l=this.ql(a,e,e.type.name,b,f),c=c||l,h=e.type.na,g=0,d=h.length;g<d;++g)l=this.ql(a,e,h[g].name,b,f),c=c||l;else l=this.ql(a,e,"system",b,f),c=c||l;return c};d.prototype.ql=function(a,e,b,f,c){var g,d=!1,l=!1,l="undefined"!==typeof c,h=(l?f.lm:f.qo)[b];
if(!h)return d;var q=null;f=0;for(g=h.length;f<g;++f)if(h[f].method==a){q=h[f].Wf;break}if(!q)return d;a=l?q[c]:q;if(!a)return null;f=0;for(g=a.length;f<g;f++)c=a[f][0],l=a[f][1],l=this.kq(e,b,c,l),d=d||l;return d};d.prototype.kq=function(a,e,b,f){var c,g,d=!1;this.rl++;var l=this.eb().Kb;l&&this.Mg(l.Yd);var h=1<this.rl;this.Mg(b.Yd);h&&this.Fr();var q=this.xi(b);q.Kb=b;a&&(c=this.types[e].Y(),c.fa=!1,c.c.length=1,c.c[0]=a,this.types[e].yc());a=!0;if(b.parent){e=q.io;for(c=b.parent;c;)e.push(c),
c=c.parent;e.reverse();c=0;for(g=e.length;c<g;c++)if(!e[c].Nr()){a=!1;break}}a&&(this.Ch++,b.Ec?b.Mr(f):b.Da(),d=d||q.De);this.ri();h&&this.Br();this.He(b.Yd);l&&this.He(l.Yd);0!==this.rd||0!==r||this.ck||this.Oc.Ac()&&!this.ub.length||this.bb();this.rl--;return d};d.prototype.um=function(){var a=this.eb();return a.Kb.Na[a.Fa]};d.prototype.Fr=function(){this.hi++;this.hi>=this.rk.length&&this.rk.push([])};d.prototype.Br=function(){this.hi--};d.prototype.vm=function(){return this.rk[this.hi]};d.prototype.xi=
function(a){this.Bh++;this.Bh>=this.wj.length&&this.wj.push(new Kb);var e=this.eb();e.reset(a);return e};d.prototype.ri=function(){this.Bh--};d.prototype.eb=function(){return this.wj[this.Bh]};d.prototype.wm=function(a,e){for(var b,f,c,g,d,l;e;){b=0;for(f=e.qc.length;b<f;b++)if(l=e.qc[b],l instanceof Lb&&fb(a,l.name))return l;e=e.parent}b=0;for(f=this.jd.length;b<f;b++)for(d=this.jd[b],c=0,g=d.Ld.length;c<g;c++)if(l=d.Ld[c],l instanceof Lb&&fb(a,l.name))return l;return null};d.prototype.ym=function(a){var e,
b;e=0;for(b=this.Dc.length;e<b;e++)if(this.Dc[e].O===a)return this.Dc[e];return null};d.prototype.Lh=function(a){var e,b;e=0;for(b=this.n.length;e<b;e++)if(this.n[e].O===a)return this.n[e];return null};d.prototype.tq=function(a){var e,b;e=0;for(b=this.Te.length;e<b;e++)if(this.Te[e].O===a)return this.Te[e];return null};d.prototype.Tq=function(){var a=this,e=this.bl,m=this.ud,f=this.ci,g=!1;this.co&&(g=!0,e="__c2_continuouspreview",this.co=!1);if(e.length){this.bb();m=this.Rr();if(window.indexedDB&&
!this.ic)c(e,m,function(){ea("Saved state to IndexedDB storage ("+m.length+" bytes)");a.ud=m;a.trigger(U.prototype.i.Xi,null);a.ud="";g&&b()},function(f){try{localStorage.setItem("__c2save_"+e,m),ea("Saved state to WebStorage ("+m.length+" bytes)"),a.ud=m,a.trigger(U.prototype.i.Xi,null),a.ud="",g&&b()}catch(c){ea("Failed to save game state: "+f+"; "+c)}});else try{localStorage.setItem("__c2save_"+e,m),ea("Saved state to WebStorage ("+m.length+" bytes)"),a.ud=m,this.trigger(U.prototype.i.Xi,null),
a.ud="",g&&b()}catch(d){ea("Error saving to WebStorage: "+d)}this.kb=this.ci=this.bl=""}f.length&&(window.indexedDB&&!this.ic?h(f,function(e){e?(a.kb=e,ea("Loaded state from IndexedDB storage ("+a.kb.length+" bytes)")):(a.kb=localStorage.getItem("__c2save_"+f)||"",ea("Loaded state from WebStorage ("+a.kb.length+" bytes)"));a.Vg=!1;a.kb.length||a.trigger(U.prototype.i.Wi,null)},function(){a.kb=localStorage.getItem("__c2save_"+f)||"";ea("Loaded state from WebStorage ("+a.kb.length+" bytes)");a.Vg=!1;
a.kb.length||a.trigger(U.prototype.i.Wi,null)}):(this.kb=localStorage.getItem("__c2save_"+f)||"",ea("Loaded state from WebStorage ("+this.kb.length+" bytes)"),this.Vg=!1,a.kb.length||a.trigger(U.prototype.i.Wi,null)),this.bl=this.ci="");this.kb.length&&(this.bb(),this.lr(this.kb),this.ud=this.kb,this.trigger(U.prototype.i.So,null),this.kb=this.ud="")};d.prototype.Rr=function(){var b,e,m,f,c,g,d,l={c2save:!0,version:1,rt:{time:this.jc.Ea,timescale:this.Ef,tickcount:this.Df,execcount:this.Ch,next_uid:this.Dg,
running_layout:this.T.O,start_time_offset:Date.now()-this.Li},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(e=this.n.length;b<e;b++)if(c=this.n[b],!c.G&&!this.to(c)){g={instances:[]};Ua(c.ca)&&(g.ex=a(c.ca));m=0;for(f=c.c.length;m<f;m++)g.instances.push(this.al(c.c[m]));l.types[c.O.toString()]=g}b=0;for(e=this.Dc.length;b<e;b++)m=this.Dc[b],l.layouts[m.O.toString()]=m.mc();f=l.events.groups;b=0;for(e=this.Te.length;b<e;b++)m=this.Te[b],f[m.O.toString()]=this.Nh[m.cg].Mh;
e=l.events.cnds;for(d in this.Ve)this.Ve.hasOwnProperty(d)&&(b=this.Ve[d],Ua(b.ca)&&(e[d]={ex:a(b.ca)}));e=l.events.acts;for(d in this.Se)this.Se.hasOwnProperty(d)&&(b=this.Se[d],Ua(b.ca)&&(e[d]={ex:b.ca}));e=l.events.vars;for(d in this.Jf)this.Jf.hasOwnProperty(d)&&(b=this.Jf[d],b.Sh||b.parent&&!b.lg||(e[d]=b.data));l.system=this.Zc.mc();return JSON.stringify(l)};d.prototype.Pn=function(){var a,e,b,f,c,g;this.Sd={};a=0;for(e=this.n.length;a<e;a++)if(b=this.n[a],!b.G)for(f=0,c=b.c.length;f<c;f++)g=
b.c[f],this.Sd[g.uid.toString()]=g};d.prototype.lr=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var e=a.rt;this.jc.reset();this.jc.Ea=e.time;this.Ef=e.timescale;this.Df=e.tickcount;this.Li=Date.now()-e.start_time_offset;var b=e.running_layout;if(b!==this.T.O)if(b=this.ym(b))this.hm(b);else return;var f,c,g,d,l,h,q;h=a.types;for(c in h)if(h.hasOwnProperty(c)&&(d=this.Lh(parseInt(c,10)))&&!d.G&&!this.to(d)){h[c].ex?d.ca=h[c].ex:Va(d.ca);l=d.c;g=h[c].instances;b=0;for(f=la(l.length,g.length);b<
f;b++)this.di(l[b],g[b]);b=g.length;for(f=l.length;b<f;b++)this.he(l[b]);b=l.length;for(f=g.length;b<f;b++){l=null;if(d.Ha.Od&&(l=this.T.Kh(g[b].w.l),!l))continue;l=this.oe(d.Pc,l,!1,0,0,!0);this.di(l,g[b])}d.Cf=!0}this.bb();this.Pn();f=a.layouts;for(c in f)f.hasOwnProperty(c)&&(b=this.ym(parseInt(c,10)))&&b.Tc(f[c]);f=a.events.groups;for(c in f)f.hasOwnProperty(c)&&(b=this.tq(parseInt(c,10)))&&this.Nh[b.cg]&&(this.Nh[b.cg].Mh=f[c]);b=a.events.cnds;for(c in b)b.hasOwnProperty(c)&&this.Ve.hasOwnProperty(c)&&
(this.Ve[c].ca=b[c].ex);b=a.events.acts;for(c in b)b.hasOwnProperty(c)&&this.Se.hasOwnProperty(c)&&(this.Se[c].ca=b[c].ex);b=a.events.vars;for(c in b)b.hasOwnProperty(c)&&this.Jf.hasOwnProperty(c)&&(this.Jf[c].data=b[c]);this.Dg=e.next_uid;this.Zc.Tc(a.system);b=0;for(f=this.n.length;b<f;b++)if(d=this.n[b],!d.G)for(c=0,a=d.c.length;c<a;c++){l=d.c[c];if(d.Bc)for(h=l.bg(),e=l.siblings.length=0,g=d.Ib.length;e<g;e++)q=d.Ib[e],d!==q&&l.siblings.push(q.c[h]);l.Mc&&l.Mc();if(l.J)for(e=0,g=l.J.length;e<
g;e++)h=l.J[e],h.Mc&&h.Mc()}this.ka=!0}};d.prototype.al=function(b,e){var f,c,g,d,l;d=b.type;g=d.Ha;var h={};e?h.c2=!0:h.uid=b.uid;Ua(b.ca)&&(h.ex=a(b.ca));if(b.Ga&&b.Ga.length)for(h.ivs={},f=0,c=b.Ga.length;f<c;f++)h.ivs[b.type.Yj[f].toString()]=b.Ga[f];if(g.Od){g={x:b.x,y:b.y,w:b.width,h:b.height,l:b.e.O,zi:b.Wb()};0!==b.j&&(g.a=b.j);1!==b.opacity&&(g.o=b.opacity);0.5!==b.xb&&(g.hX=b.xb);0.5!==b.yb&&(g.hY=b.yb);0!==b.pb&&(g.bm=b.pb);b.visible||(g.v=b.visible);b.fd||(g.ce=b.fd);-1!==b.Cg&&(g.mts=
b.Cg);if(d.F.length)for(g.fx=[],f=0,c=d.F.length;f<c;f++)l=d.F[f],g.fx.push({name:l.name,active:b.Dd[l.index],params:b.ra[l.index]});h.w=g}if(b.J&&b.J.length)for(h.behs={},f=0,c=b.J.length;f<c;f++)d=b.J[f],d.mc&&(h.behs[d.type.O.toString()]=d.mc());b.mc&&(h.data=b.mc());return h};d.prototype.vq=function(a,e){var b,f;b=0;for(f=a.Yj.length;b<f;b++)if(a.Yj[b]===e)return b;return-1};d.prototype.rq=function(a,e){var b,f;b=0;for(f=a.J.length;b<f;b++)if(a.J[b].type.O===e)return b;return-1};d.prototype.di=
function(a,e,b){var f,c,g,d,l;l=a.type;g=l.Ha;if(b){if(!e.c2)return}else a.uid=e.uid;e.ex?a.ca=e.ex:Va(a.ca);if(c=e.ivs)for(f in c)c.hasOwnProperty(f)&&(b=this.vq(l,parseInt(f,10)),0>b||b>=a.Ga.length||(a.Ga[b]=c[f]));if(g.Od){g=e.w;a.e.O!==g.l&&(b=a.e,a.e=this.T.Kh(g.l),a.e?(a.e.c.push(a),a.e.Qb=!0,Ca(b.c,a),b.Qb=!0):(a.e=b,this.he(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Ne=g.zi;a.j=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.xb=g.hasOwnProperty("hX")?g.hX:0.5;a.yb=
g.hasOwnProperty("hY")?g.hY:0.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.fd=g.hasOwnProperty("ce")?g.ce:!0;a.Cg=g.hasOwnProperty("mts")?g.mts:-1;a.pb=g.hasOwnProperty("bm")?g.bm:0;a.Sf=cb(a.pb);this.m&&db(a,a.pb,this.m);a.B();if(g.hasOwnProperty("fx"))for(b=0,c=g.fx.length;b<c;b++)d=l.Kj(g.fx[b].name),0>d||(a.Dd[d]=g.fx[b].active,a.ra[d]=g.fx[b].params);a.Ad()}if(l=e.behs)for(f in l)l.hasOwnProperty(f)&&(g=this.rq(a,parseInt(f,10)),0>g||a.J[g].Tc(l[f]));e.data&&a.Tc(e.data)};Mb=function(a){return new d(document.getElementById(a))};
Nb=function(a,e){return new d({dc:!0,width:a,height:e})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Rt=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(d,n){if(0!==d&&0!==n){var c=window.cr_getC2Runtime();c&&c.setSize(d,n)}};window.cr_setSuspended=function(d){var n=window.cr_getC2Runtime();n&&n.setSuspended(d)};
(function(){function d(b,a){this.b=b;this.Vf=null;this.scrollX=this.b.Sa/2;this.scrollY=this.b.Ra/2;this.scale=1;this.j=0;this.Zf=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.uo=a[3];this.ao=a[4];this.O=a[5];var c=a[6],f,d;this.R=[];this.fg=[];f=0;for(d=c.length;f<d;f++){var h=new Ob(this,c[f]);h.qn=f;this.R.push(h)}c=a[7];this.we=[];f=0;for(d=c.length;f<d;f++){var h=c[f],n=this.b.n[h[1]];n.Pc||(n.Pc=h);this.we.push(h);-1===this.fg.indexOf(n)&&this.fg.push(n)}this.F=[];this.U=[];this.ra=
[];f=0;for(d=a[8].length;f<d;f++)this.F.push({id:a[8][f][0],name:a[8][f][1],ab:-1,Sb:!0,index:f}),this.ra.push(a[8][f][2].slice(0));this.Ad();this.Ng=new ua(0,0,1,1);this.Vk=new ua(0,0,1,1);this.Td={}}function n(b,a){this.ha=b;this.b=b.b;this.c=[];this.scale=1;this.j=0;this.pe=!1;this.zd=new ua(0,0,0,0);this.no=new va;this.tc=this.ob=this.uc=this.nb=0;this.Qb=!1;this.name=a[0];this.index=a[1];this.O=a[2];this.visible=a[3];this.Fd=a[4];this.Me=a[5];this.Bb=a[6];this.Cb=a[7];this.opacity=a[8];this.Aj=
a[9];this.gb=a[10];this.pb=a[11];this.Kp=a[12];this.Sf="source-over";this.cb=this.fb=0;this.Vd=!1;var c=a[13],f,d;this.ef=[];f=0;for(d=c.length;f<d;f++){var h=c[f],n=this.b.n[h[1]];n.Pc||(n.Pc=h,n.vp=this.index);this.ef.push(h);-1===this.ha.fg.indexOf(n)&&this.ha.fg.push(n)}this.F=[];this.U=[];this.ra=[];f=0;for(d=a[14].length;f<d;f++)this.F.push({id:a[14][f][0],name:a[14][f][1],ab:-1,Sb:!0,index:f}),this.ra.push(a[14][f][2].slice(0));this.Ad();this.Ng=new ua(0,0,1,1);this.Vk=new ua(0,0,1,1)}function c(b,
a){return b.Ne-a.Ne}d.prototype.Qr=function(b){var a=b.type.O.toString();this.Td.hasOwnProperty(a)||(this.Td[a]=[]);this.Td[a].push(this.b.al(b))};d.prototype.Cm=function(){var b=this.R[0];return!b.Me&&1===b.opacity&&!b.Aj&&b.visible};d.prototype.Ad=function(){this.U.length=0;var b,a,c;b=0;for(a=this.F.length;b<a;b++)c=this.F[b],c.Sb&&this.U.push(c)};d.prototype.Jj=function(b){var a,c,f;a=0;for(c=this.F.length;a<c;a++)if(f=this.F[a],f.name===b)return f;return null};var h=[];d.prototype.hl=function(){this.ao&&
(this.Vf=this.b.xj[this.ao],this.Vf.xo());this.b.T=this;this.scrollX=this.b.Sa/2;this.scrollY=this.b.Ra/2;var b,a,g,f,d,p,n;b=0;for(g=this.b.n.length;b<g;b++)if(a=this.b.n[b],!a.G)for(d=a.c,a=0,f=d.length;a<f;a++)if(p=d[a],p.e){var l=p.e.qn;l>=this.R.length&&(l=this.R.length-1);p.e=this.R[l];p.e.c.push(p);p.e.Qb=!0}h.length=0;this.hp();b=0;for(g=this.R.length;b<g;b++)p=this.R[b],p.sp(),p.pe=!0,a=p.Va(0,0,!0,!0),f=p.Va(0,0,!1,!0),p.pe=!1,this.b.Ud&&(a=a+0.5|0,f=f+0.5|0),p.Yk(a,f,null);d=!1;if(!this.Zf){for(n in this.Td)if(this.Td.hasOwnProperty(n)&&
(a=this.b.Lh(parseInt(n,10)))&&!a.G&&this.b.sl(a)){f=this.Td[n];b=0;for(g=f.length;b<g;b++){p=null;if(a.Ha.Od&&(p=this.Kh(f[b].w.l),!p))continue;p=this.b.oe(a.Pc,p,!1,0,0,!0);this.b.di(p,f[b]);d=!0;h.push(p)}f.length=0}b=0;for(g=this.R.length;b<g;b++)this.R[b].c.sort(c),this.R[b].Qb=!0}d&&(this.b.bb(),this.b.Pn());for(b=0;b<h.length;b++)if(p=h[b],p.type.Bc)for(g=p.bg(),a=0,f=p.type.Ib.length;a<f;a++)n=p.type.Ib[a],p.type!==n&&(n.c.length>g?p.siblings.push(n.c[g]):n.Pc&&(d=this.b.oe(n.Pc,p.e,!0,p.x,
p.y,!0),this.b.bb(),n.Ti(),p.siblings.push(d),h.push(d)));b=0;for(g=this.we.length;b<g;b++)this.b.oe(this.we[b],null,!0);this.b.Rf=null;this.b.bb();if(this.b.$&&!this.b.ta)for(b=0,g=this.b.n.length;b<g;b++)n=this.b.n[b],!n.G&&n.c.length&&n.Rk&&n.Rk(this.b.$);b=0;for(g=h.length;b<g;b++)p=h[b],this.b.trigger(Object.getPrototypeOf(p.type.Ha).i.Lo,p);h.length=0;this.b.trigger(U.prototype.i.Ro,null);this.Zf=!1};d.prototype.rp=function(){var b,a,c,f,d;a=b=0;for(c=this.we.length;b<c;b++)f=this.we[b],d=this.b.n[f[1]],
d.global?this.b.oe(f,null,!0):(this.we[a]=f,a++);this.we.length=a};d.prototype.Zr=function(){this.b.trigger(U.prototype.i.Qo,null);this.b.Zc.Fb.length=0;var b,a,c,f,d,h;b=0;for(a=this.R.length;b<a;b++){d=this.R[b].c;c=0;for(f=d.length;c<f;c++)h=d[c],h.type.global||(this.b.sl(h.type)&&this.Qr(h),this.b.he(h));this.b.bb();d.length=0;this.R[b].Qb=!0}b=0;for(a=this.b.n.length;b<a;b++)if(d=this.b.n[b],!(d.global||d.Ha.Od||d.Ha.Ji||d.G)){c=0;for(f=d.c.length;c<f;c++)this.b.he(d.c[c]);this.b.bb()}};d.prototype.Jd=
function(b){var a,c=b,f=!1,d=!this.b.fc;d&&(this.b.ai||(this.b.ai=document.createElement("canvas"),a=this.b.ai,a.width=this.b.N,a.height=this.b.M,this.b.bn=a.getContext("2d"),f=!0),a=this.b.ai,c=this.b.bn,a.width!==this.b.N&&(a.width=this.b.N,f=!0),a.height!==this.b.M&&(a.height=this.b.M,f=!0),f&&(c.webkitImageSmoothingEnabled=this.b.X,c.mozImageSmoothingEnabled=this.b.X,c.msImageSmoothingEnabled=this.b.X,c.imageSmoothingEnabled=this.b.X));c.globalAlpha=1;c.globalCompositeOperation="source-over";
this.b.bj&&!this.Cm()&&c.clearRect(0,0,this.b.N,this.b.M);var h,n,f=0;for(h=this.R.length;f<h;f++)n=this.R[f],n.visible&&0<n.opacity&&11!==n.pb&&n.Jd(c);d&&b.drawImage(a,0,0,this.b.width,this.b.height)};d.prototype.zc=function(b){var a=0<this.U.length||this.b.Gf||!this.b.fc;if(a){this.b.Nb||(this.b.Nb=b.Id(this.b.N,this.b.M,this.b.X));if(this.b.Nb.Qf!==this.b.N||this.b.Nb.Pf!==this.b.M)b.deleteTexture(this.b.Nb),this.b.Nb=b.Id(this.b.N,this.b.M,this.b.X);b.Xc(this.b.Nb);this.b.fc||b.zf(this.b.N,this.b.M)}else this.b.Nb&&
(b.Xc(null),b.deleteTexture(this.b.Nb),this.b.Nb=null);this.b.bj&&!this.Cm()&&b.clear(0,0,0,0);var c,f;c=0;for(f=this.R.length;c<f;c++)this.R[c].visible&&0<this.R[c].opacity&&this.R[c].zc(b);a&&(0===this.U.length||1===this.U.length&&this.b.fc?(1===this.U.length?(a=this.U[0].index,b.Yc(this.U[0].ab),b.yf(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.j,0,0,this.ra[a]),b.vi(this.U[0].ab)&&(this.b.ka=!0)):b.Yc(0),this.b.fc||b.zf(this.b.width,this.b.height),b.Xc(null),b.xf(1),b.Yb(this.b.Nb),b.Vn(),
b.Wd(),b.ge(),a=this.b.width/2,c=this.b.height/2,b.yi(-a,c,a,c,a,-c,-a,-c),b.Yb(null)):this.Wk(b,null,null,null))};d.prototype.ag=function(){return 0<this.U.length||this.b.Gf||!this.b.fc?this.b.Nb:null};d.prototype.zm=function(){var b=this.R[0].hc(),a,c,f;a=1;for(c=this.R.length;a<c;a++)f=this.R[a],(0!==f.Bb||0!==f.Cb)&&f.hc()<b&&(b=f.hc());return b};d.prototype.Tn=function(b){if(!this.uo){var a=this.b.N*(1/this.zm())/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,
this.b.ka=!0)};d.prototype.Un=function(b){if(!this.uo){var a=this.b.M*(1/this.zm())/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.ka=!0)};d.prototype.hp=function(){this.Tn(this.scrollX);this.Un(this.scrollY)};d.prototype.Wk=function(b,a,c,f){var d=c?c.U:a?a.U:this.U,h=1,n=0,l=0,s=0;c?(h=c.e.hc(),n=c.e.Pa(),l=c.e.nb,s=c.e.ob):a&&(h=a.hc(),n=a.Pa(),l=a.nb,s=a.ob);var q=this.b.Dj,r,k,e,m,B=0,K=1,y,L=this.b.N,H=this.b.M,ca=L/2,ma=H/2,M=a?a.Ng:this.Ng,z=a?a.Vk:
this.Vk,D=0,O=0,G=0,I=0,w=L,P=L,A=H,E=H,v=e=0,V=c?c.e.Pa():0;if(c){r=0;for(k=d.length;r<k;r++)e+=b.zq(d[r].ab),v+=b.Aq(d[r].ab);m=c.za;D=a.ib(m.left,m.top,!0,!0);G=a.ib(m.left,m.top,!1,!0);w=a.ib(m.right,m.bottom,!0,!0);A=a.ib(m.right,m.bottom,!1,!0);0!==V&&(r=a.ib(m.right,m.top,!0,!0),k=a.ib(m.right,m.top,!1,!0),O=a.ib(m.left,m.bottom,!0,!0),I=a.ib(m.left,m.bottom,!1,!0),m=Math.min(D,w,r,O),w=Math.max(D,w,r,O),D=m,m=Math.min(G,A,k,I),A=Math.max(G,A,k,I),G=m);D-=e;G-=v;w+=e;A+=v;z.left=D/L;z.top=
1-G/H;z.right=w/L;z.bottom=1-A/H;O=D=R(D);I=G=R(G);P=w=pa(w);E=A=pa(A);O-=e;I-=v;P+=e;E+=v;0>D&&(D=0);0>G&&(G=0);w>L&&(w=L);A>H&&(A=H);0>O&&(O=0);0>I&&(I=0);P>L&&(P=L);E>H&&(E=H);M.left=D/L;M.top=1-G/H;M.right=w/L;M.bottom=1-A/H}else M.left=z.left=0,M.top=z.top=0,M.right=z.right=1,M.bottom=z.bottom=1;v=c&&((c.j||V)&&b.Lg(d[0].ab)||0!==e||0!==v||1!==c.opacity||c.type.Ha.mn)||a&&!c&&1!==a.opacity;b.Vn();if(v){q[B]||(q[B]=b.Id(L,H,this.b.X));if(q[B].Qf!==L||q[B].Pf!==H)b.deleteTexture(q[B]),q[B]=b.Id(L,
H,this.b.X);b.Yc(0);b.Xc(q[B]);y=E-I;b.clearRect(O,H-I-y,P-O,y);c?c.zc(b):(b.Yb(this.b.Xb),b.xf(a.opacity),b.Wd(),b.translate(-ca,-ma),b.ge(),b.wd(D,A,w,A,w,G,D,G,M));z.left=z.top=0;z.right=z.bottom=1;c&&(m=M.top,M.top=M.bottom,M.bottom=m);B=1;K=0}b.xf(1);e=d.length-1;var V=b.Sk(d[e].ab)||!a&&!c&&!this.b.fc,C=0;r=0;for(k=d.length;r<k;r++){q[B]||(q[B]=b.Id(L,H,this.b.X));if(q[B].Qf!==L||q[B].Pf!==H)b.deleteTexture(q[B]),q[B]=b.Id(L,H,this.b.X);b.Yc(d[r].ab);C=d[r].index;b.vi(d[r].ab)&&(this.b.ka=!0);
0!=r||v?(b.yf(f,1/L,1/H,z.left,z.top,z.right,z.bottom,h,n,l,s,c?c.ra[C]:a?a.ra[C]:this.ra[C]),b.Yb(null),r!==e||V?(b.Xc(q[B]),y=E-I,m=H-I-y,b.clearRect(O,m,P-O,y)):(c?b.Xd(c.fb,c.cb):a&&b.Xd(a.fb,a.cb),b.Xc(f)),b.Yb(q[K]),b.Wd(),b.translate(-ca,-ma),b.ge(),b.wd(D,A,w,A,w,G,D,G,M),r!==e||V||b.Yb(null)):(b.Xc(q[B]),y=E-I,m=H-I-y,b.clearRect(O,m,P-O,y),c?(b.yf(f,1/c.width,1/c.height,z.left,z.top,z.right,z.bottom,h,n,l,s,c.ra[C]),c.zc(b)):(b.yf(f,1/L,1/H,0,0,1,1,h,n,l,s,a?a.ra[C]:this.ra[C]),b.Yb(a?this.b.Xb:
this.b.Nb),b.Wd(),b.translate(-ca,-ma),b.ge(),b.wd(D,A,w,A,w,G,D,G,M)),z.left=z.top=0,z.right=z.bottom=1,c&&!V&&(m=A,A=G,G=m));B=0===B?1:0;K=0===B?1:0}V&&(b.Yc(0),c?b.Xd(c.fb,c.cb):a?b.Xd(a.fb,a.cb):this.b.fc||(b.zf(this.b.width,this.b.height),ca=this.b.width/2,ma=this.b.height/2,G=D=0,w=this.b.width,A=this.b.height),b.Xc(f),b.Yb(q[K]),b.Wd(),b.translate(-ca,-ma),b.ge(),c&&1===d.length&&!v?b.wd(D,G,w,G,w,A,D,A,M):b.wd(D,A,w,A,w,G,D,G,M),b.Yb(null))};d.prototype.Kh=function(b){var a,c;a=0;for(c=this.R.length;a<
c;a++)if(this.R[a].O===b)return this.R[a];return null};d.prototype.mc=function(){var b,a,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.Zf,persist:this.Td,fx:[],layers:{}};b=0;for(a=this.F.length;b<a;b++)c=this.F[b],f.fx.push({name:c.name,active:c.Sb,params:this.ra[c.index]});b=0;for(a=this.R.length;b<a;b++)c=this.R[b],f.layers[c.O.toString()]=c.mc();return f};d.prototype.Tc=function(b){var a,c,f,d;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.j=
b.a;this.width=b.w;this.height=b.h;this.Td=b.persist;"undefined"!==typeof b.fv&&(this.Zf=b.fv);var h=b.fx;a=0;for(c=h.length;a<c;a++)if(f=this.Jj(h[a].name))f.Sb=h[a].active,this.ra[f.index]=h[a].params;this.Ad();a=b.layers;for(d in a)a.hasOwnProperty(d)&&(b=this.Kh(parseInt(d,10)))&&b.Tc(a[d])};Bb=d;n.prototype.Ad=function(){this.U.length=0;var b,a,c;b=0;for(a=this.F.length;b<a;b++)c=this.F[b],c.Sb&&this.U.push(c)};n.prototype.Jj=function(b){var a,c,f;a=0;for(c=this.F.length;a<c;a++)if(f=this.F[a],
f.name===b)return f;return null};n.prototype.sp=function(){var b,a,c,f,d,n;a=b=0;for(c=this.ef.length;b<c;b++){f=this.ef[b];d=this.b.n[f[1]];n=this.b.sl(d);d=!0;if(!n||this.ha.Zf)f=this.b.oe(f,this,!0),h.push(f),f.type.global&&(d=!1);d&&(this.ef[a]=this.ef[b],a++)}this.ef.length=a;this.b.bb();!this.b.u&&this.F.length&&(this.pb=this.Kp);this.Sf=cb(this.pb);this.b.m&&db(this,this.pb,this.b.m)};n.prototype.hs=function(){if(this.Qb){var b,a;b=0;for(a=this.c.length;b<a;b++)this.c[b].Ne=b;this.Qb=!1}};
n.prototype.hc=function(b){return this.xq()*(this.b.fc||b?this.b.Of:1)};n.prototype.xq=function(){return(this.scale*this.ha.scale-1)*this.gb+1};n.prototype.Pa=function(){return this.pe?0:Ha(this.ha.j+this.j)};n.prototype.Jd=function(b){this.Vd=this.Aj||1!==this.opacity||0!==this.pb;var a=this.b.canvas,c=b,f=!1;this.Vd&&(this.b.$h||(this.b.$h=document.createElement("canvas"),a=this.b.$h,a.width=this.b.N,a.height=this.b.M,this.b.an=a.getContext("2d"),f=!0),a=this.b.$h,c=this.b.an,a.width!==this.b.N&&
(a.width=this.b.N,f=!0),a.height!==this.b.M&&(a.height=this.b.M,f=!0),f&&(c.webkitImageSmoothingEnabled=this.b.X,c.mozImageSmoothingEnabled=this.b.X,c.msImageSmoothingEnabled=this.b.X,c.imageSmoothingEnabled=this.b.X),this.Me&&c.clearRect(0,0,this.b.N,this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Me||(c.fillStyle="rgb("+this.Fd[0]+","+this.Fd[1]+","+this.Fd[2]+")",c.fillRect(0,0,this.b.N,this.b.M));c.save();this.pe=!0;var f=this.Va(0,0,!0,!0),d=this.Va(0,0,!1,!0);this.pe=
!1;this.b.Ud&&(f=f+0.5|0,d=d+0.5|0);this.Yk(f,d,c);var h=this.hc();c.scale(h,h);c.translate(-f,-d);for(var n,f=0,d=this.c.length;f<d;f++)h=this.c[f],h.visible&&0!==h.width&&0!==h.height&&(h.ya(),n=h.za,n.right<this.nb||n.bottom<this.ob||n.left>this.uc||n.top>this.tc||(c.globalCompositeOperation=h.Sf,h.Jd(c)));c.restore();this.Vd&&(b.globalCompositeOperation=this.Sf,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};n.prototype.Yk=function(b,a,c){var f=this.hc();this.nb=b;this.ob=a;this.uc=b+this.b.N*
(1/f);this.tc=a+this.b.M*(1/f);b=this.Pa();0!==b&&(c&&(c.translate(this.b.N/2,this.b.M/2),c.rotate(-b),c.translate(this.b.N/-2,this.b.M/-2)),this.zd.set(this.nb,this.ob,this.uc,this.tc),this.zd.offset((this.nb+this.uc)/-2,(this.ob+this.tc)/-2),this.no.Zn(this.zd,b),this.no.Vl(this.zd),this.zd.offset((this.nb+this.uc)/2,(this.ob+this.tc)/2),this.nb=this.zd.left,this.ob=this.zd.top,this.uc=this.zd.right,this.tc=this.zd.bottom)};n.prototype.zc=function(b){var a=this.b.N,c=this.b.M,f=0,d=0;if(this.Vd=
this.Aj||1!==this.opacity||0<this.U.length||0!==this.pb){this.b.Xb||(this.b.Xb=b.Id(this.b.N,this.b.M,this.b.X));if(this.b.Xb.Qf!==this.b.N||this.b.Xb.Pf!==this.b.M)b.deleteTexture(this.b.Xb),this.b.Xb=b.Id(this.b.N,this.b.M,this.b.X);b.Xc(this.b.Xb);this.Me&&b.clear(0,0,0,0)}this.Me||b.clear(this.Fd[0]/255,this.Fd[1]/255,this.Fd[2]/255,1);this.pe=!0;var d=this.Va(0,0,!0,!0),h=this.Va(0,0,!1,!0);this.pe=!1;this.b.Ud&&(d=d+0.5|0,h=h+0.5|0);this.Yk(d,h,null);h=this.hc();b.Wd();b.scale(h,h);b.Rn(-this.Pa());
b.translate((this.nb+this.uc)/-2,(this.ob+this.tc)/-2);b.ge();var n,l,s;n=0;for(l=this.c.length;n<l;n++)if(s=this.c[n],s.visible&&0!==s.width&&0!==s.height&&(s.ya(),f=s.za,!(f.right<this.nb||f.bottom<this.ob||f.left>this.uc||f.top>this.tc)))if(s.Bo)if(f=s.U[0].ab,d=s.U[0].index,1!==s.U.length||b.Sk(f)||b.Er(f)||(s.j||s.e.Pa())&&b.Lg(f)||1!==s.opacity||s.type.Ha.mn)this.ha.Wk(b,this,s,this.Vd?this.b.Xb:this.ha.ag()),b.Wd(),b.scale(h,h),b.Rn(-this.Pa()),b.translate((this.nb+this.uc)/-2,(this.ob+this.tc)/
-2),b.ge();else{b.Yc(f);b.Xd(s.fb,s.cb);b.vi(f)&&(this.b.ka=!0);var q=0,r=0,k=0,e=0;b.Lg(f)&&(f=s.za,q=this.ib(f.left,f.top,!0,!0),r=this.ib(f.left,f.top,!1,!0),k=this.ib(f.right,f.bottom,!0,!0),f=this.ib(f.right,f.bottom,!1,!0),q/=a,r=1-r/c,k/=a,e=1-f/c);b.yf(this.Vd?this.b.Xb:this.ha.ag(),1/s.width,1/s.height,q,r,k,e,this.hc(),this.Pa(),this.nb,this.ob,s.ra[d]);s.zc(b)}else b.Yc(0),b.Xd(s.fb,s.cb),s.zc(b);this.Vd&&(f=this.U.length?this.U[0].ab:0,d=this.U.length?this.U[0].index:0,0===this.U.length||
1===this.U.length&&!b.Sk(f)&&1===this.opacity?(1===this.U.length?(b.Yc(f),b.yf(this.ha.ag(),1/this.b.N,1/this.b.M,0,0,1,1,this.hc(),this.Pa(),this.nb,this.ob,this.ra[d]),b.vi(f)&&(this.b.ka=!0)):b.Yc(0),b.Xc(this.ha.ag()),b.xf(this.opacity),b.Yb(this.b.Xb),b.Xd(this.fb,this.cb),b.Wd(),b.ge(),a=this.b.N/2,c=this.b.M/2,b.yi(-a,c,a,c,a,-c,-a,-c),b.Yb(null)):this.ha.Wk(b,this,null,this.ha.ag()))};n.prototype.Va=function(b,a,c,f){var d=this.b.devicePixelRatio;this.b.ye&&(b*=d,a*=d);var d=this.b.Fn,h=this.b.Gn,
d=(this.ha.scrollX-d)*this.Bb+d,h=(this.ha.scrollY-h)*this.Cb+h,n=1/this.hc(!f);f?(d-=this.b.N*n/2,h-=this.b.M*n/2):(d-=this.b.width*n/2,h-=this.b.height*n/2);d+=b*n;h+=a*n;a=this.Pa();0!==a&&(d-=this.ha.scrollX,h-=this.ha.scrollY,b=Math.cos(a),a=Math.sin(a),f=d*b-h*a,h=h*b+d*a,d=f+this.ha.scrollX,h+=this.ha.scrollY);return c?d:h};n.prototype.ib=function(b,a,c,f){var d=this.Pa();if(0!==d){b-=this.ha.scrollX;a-=this.ha.scrollY;var h=Math.cos(-d),d=Math.sin(-d),n=b*h-a*d;a=a*h+b*d;b=n+this.ha.scrollX;
a+=this.ha.scrollY}h=this.b.Fn;d=this.b.Gn;h=(this.ha.scrollX-h)*this.Bb+h;d=(this.ha.scrollY-d)*this.Cb+d;n=1/this.hc(!f);f?(h-=this.b.N*n/2,d-=this.b.M*n/2):(h-=this.b.width*n/2,d-=this.b.height*n/2);h=(b-h)/n;d=(a-d)/n;b=this.b.devicePixelRatio;this.b.ye&&(h/=b,d/=b);return c?h:d};n.prototype.mc=function(){var b,a,c,f={s:this.scale,a:this.j,vl:this.nb,vt:this.ob,vr:this.uc,vb:this.tc,v:this.visible,bc:this.Fd,t:this.Me,px:this.Bb,py:this.Cb,o:this.opacity,zr:this.gb,fx:[],instances:[]};b=0;for(a=
this.F.length;b<a;b++)c=this.F[b],f.fx.push({name:c.name,active:c.Sb,params:this.ra[c.index]});return f};n.prototype.Tc=function(b){var a,d;this.scale=b.s;this.j=b.a;this.nb=b.vl;this.ob=b.vt;this.uc=b.vr;this.tc=b.vb;this.visible=b.v;this.Fd=b.bc;this.Me=b.t;this.Bb=b.px;this.Cb=b.py;this.opacity=b.o;this.gb=b.zr;var f=b.fx;b=0;for(a=f.length;b<a;b++)if(d=this.Jj(f[b].name))d.Sb=f[b].active,this.ra[d.index]=f[b].params;this.Ad();this.c.sort(c);this.Qb=!0};Ob=n})();
(function(){function d(e,a){var b,c=e.length;switch(c){case 0:return!0;case 1:return e[0]===a[0];case 2:return e[0]===a[0]&&e[1]===a[1];default:for(b=0;b<c;b++)if(e[b]!==a[b])return!1;return!0}}function n(e,a){return e.index-a.index}function c(e){var a,b,c,f;2===e.length?e[0].index>e[1].index&&(a=e[0],e[0]=e[1],e[1]=a):2<e.length&&e.sort(n);e.length>=q.length&&(q.length=e.length+1);q[e.length]||(q[e.length]=[]);f=q[e.length];a=0;for(b=f.length;a<b;a++)if(c=f[a],d(e,c))return c;f.push(e);return e}
function h(a,b){this.b=a;this.qo={};this.lm={};this.Sj=!1;this.Fm=new da;this.tj=[];this.cj=[];this.name=b[0];var c=b[1];this.Ld=[];var f,d;f=0;for(d=c.length;f<d;f++)this.Hm(c[f],null,this.Ld)}function b(a){this.type=a;this.c=[];this.W=[];this.fa=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ja=[];this.Yd=[];this.Dm=this.Qi=this.pl=this.Xj=this.group=this.eo=!1;this.Na=[];this.vc=[];this.qc=[];this.cg="";this.Mh=this.Xj=this.group=!1;this.cm=null;c[1]&&(this.cg=c[1][1].toLowerCase(),
this.group=!0,this.Xj=!!c[1][0],this.cm=[],this.Mh=this.Xj,this.b.Te.push(this),this.b.Nh[this.cg]=this);this.Ec=c[2];this.O=c[4];this.group||(this.b.Ul[this.O.toString()]=this);var f=c[5];a=0;for(b=f.length;a<b;a++){var d=new Pb(this,f[a]);d.index=a;this.Na.push(d);this.Pl(d.type)}f=c[6];a=0;for(b=f.length;a<b;a++)d=new Qb(this,f[a]),d.index=a,this.vc.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Hm(c[a],this,this.qc);this.Th=!1;this.Na.length&&(this.Th=null==this.Na[0].type&&
this.Na[0].Ya==U.prototype.i.Fo)}function g(a,b){var c,f,d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Bc))for(c=0,f=a.Ib.length;c<f;c++)d=a.Ib[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function f(a,b){this.Tb=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ea=[];this.ca={};this.index=-1;this.Nf=!1;this.Ya=b[1];this.trigger=0<b[3];this.km=2===b[3];this.vd=b[4];this.Zj=b[5];this.jr=b[6];this.O=b[7];this.b.Ve[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Da=this.$k,this.me=null,this.Zb=-1):(this.type=
this.b.n[b[0]],this.Da=this.jr?this.Or:this.Zk,b[2]?(this.me=this.type.Jh(b[2]),this.Zb=this.type.Gj(b[2])):(this.me=null,this.Zb=-1),this.Tb.parent&&this.Tb.parent.Hi());this.km&&(this.Da=this.Pr);if(10===b.length){var c,f,d=b[9];c=0;for(f=d.length;c<f;c++){var g=new Rb(this,d[c]);this.H.push(g)}this.ea.length=d.length}}function t(a,b){this.Tb=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ea=[];this.ca={};this.index=-1;this.Nf=!1;this.Ya=b[1];-1===b[0]?(this.type=null,this.Da=this.$k,this.me=null,
this.Zb=-1):(this.type=this.b.n[b[0]],this.Da=this.Zk,b[2]?(this.me=this.type.Jh(b[2]),this.Zb=this.type.Gj(b[2])):(this.me=null,this.Zb=-1));this.O=b[3];this.b.Se[this.O.toString()]=this;if(6===b.length){var c,f,d=b[5];c=0;for(f=d.length;c<f;c++){var g=new Rb(this,d[c]);this.H.push(g)}this.ea.length=d.length}}function p(a,b){this.A=a;this.Tb=a.Tb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Qc=null;this.Zd=0;this.get=null;this.$l=0;this.ha=null;this.key=0;this.object=null;this.index=0;this.Zg=
this.Le=this.Zg=this.Le=this.mm=this.se=this.$g=null;this.sc=!1;var c,f,d;switch(b[0]){case 0:case 7:this.Qc=new Sb(this,b[1]);this.Zd=0;this.get=this.Hq;break;case 1:this.Qc=new Sb(this,b[1]);this.Zd=0;this.get=this.Iq;break;case 5:this.Qc=new Sb(this,b[1]);this.Zd=0;this.get=this.Mq;break;case 3:case 8:this.$l=b[1];this.get=this.Fq;break;case 6:this.ha=this.b.kk[b[1]];this.get=this.Nq;break;case 9:this.key=b[1];this.get=this.Lq;break;case 4:this.object=this.b.n[b[1]];this.get=this.Oq;this.Tb.Pl(this.object);
this.A instanceof Qb?this.Tb.Hi():this.Tb.parent&&this.Tb.parent.Hi();break;case 10:this.index=b[1];a.type.G?(this.get=this.Jq,this.sc=!0):this.get=this.Kq;break;case 11:this.$g=b[1];this.se=null;this.get=this.Gq;break;case 2:case 12:this.mm=b[1];this.get=this.Eq;break;case 13:for(this.get=this.Pq,this.Le=[],this.Zg=[],c=1,f=b.length;c<f;c++)d=new Rb(this.A,b[c]),this.Le.push(d),this.Zg.push(0)}}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ja=[];this.name=c[1];this.Wj=c[3];this.lg=
!!c[4];this.Sh=!!c[5];this.O=c[6];this.b.Jf[this.O.toString()]=this;this.data=this.Wj;this.parent?(this.Ge=this.lg||this.Sh?-1:this.b.Yr++,this.b.ep.push(this)):(this.Ge=-1,this.b.dp.push(this))}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ja=[];this.eg=null;this.Vq=c[1];this.Sb=!0}function s(){this.io=[];this.reset(null)}var q=[];h.prototype.toString=F("name");h.prototype.Hm=function(a,b,c){switch(a[0]){case 0:a=new Tb(this,b,a);if(a.Ec)for(c.push(a),c=0,b=a.Na.length;c<b;c++)a.Na[c].trigger&&
this.Im(a,c);else a.Sm()?this.Im(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Ub(this,b,a),c.push(a)}};h.prototype.xa=function(){var a,b;a=0;for(b=this.Ld.length;a<b;a++)this.Ld[a].xa(a<b-1&&this.Ld[a+1].Th)};h.prototype.xo=function(){this.tj.length=0;this.cj.length=0;this.Ol(this);this.cj.length=0};h.prototype.Ol=function(a){var b,c,f,d,g=a.tj,h=a.cj,k=this.Fm.Hf();b=0;for(c=k.length;b<c;++b)f=k[b],d=f.eg,!f.Sb||a===d||-1<h.indexOf(d)||(h.push(d),d.Ol(a),g.push(d))};
h.prototype.Da=function(a){this.b.Qt||(this.Sj=!0,a||(this.b.ck=!0));var b,c;b=0;for(c=this.Ld.length;b<c;b++){var f=this.Ld[b];f.Da();this.b.lj(f.ja);this.b.Oc.Ac()&&!this.b.ub.length||this.b.bb()}a||(this.b.ck=!1)};h.prototype.Im=function(a,b){a.Ec||this.b.Si.push(a);var c,f,d=a.Na[b],g;g=d.type?d.type.name:"system";var h=(c=d.km)?this.lm:this.qo;h[g]||(h[g]=[]);g=h[g];h=d.Ya;if(c){if(d.H.length&&(d=d.H[0],1===d.type&&2===d.Qc.type)){d=d.Qc.value.toLowerCase();c=0;for(f=g.length;c<f;c++)if(g[c].method==
h){c=g[c].Wf;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];g.push({method:h,Wf:c})}}else{c=0;for(f=g.length;c<f;c++)if(g[c].method==h){g[c].Wf.push([a,b]);return}W&&h===W.prototype.i.Qe?g.unshift({method:h,Wf:[[a,b]]}):g.push({method:h,Wf:[[a,b]]})}};Cb=h;b.prototype.Rj=function(){return this.fa?this.type.c.length:this.c.length};b.prototype.gc=function(){return this.fa?this.type.c:this.c};b.prototype.Kg=function(a){a&&(a.b.eb().Kb.Ec?(this.fa&&(this.c.length=0,za(this.W,a.type.c),this.fa=
!1),a=this.W.indexOf(a),-1!==a&&(this.c.push(this.W[a]),this.W.splice(a,1))):(this.fa=!1,this.c.length=1,this.c[0]=a))};ib=b;window._c2hh_="";a.prototype.xa=function(a){var b,f=this.parent;if(this.group)for(this.Qi=!0;f;){if(!f.group){this.Qi=!1;break}f=f.parent}this.pl=!this.Sm()&&(!this.parent||this.parent.group&&this.parent.Qi);this.Dm=!!a;this.Yd=this.ja.slice(0);for(f=this.parent;f;){a=0;for(b=f.ja.length;a<b;a++)this.bp(f.ja[a]);f=f.parent}this.ja=c(this.ja);this.Yd=c(this.Yd);a=0;for(b=this.Na.length;a<
b;a++)this.Na[a].xa();a=0;for(b=this.vc.length;a<b;a++)this.vc[a].xa();a=0;for(b=this.qc.length;a<b;a++)this.qc[a].xa(a<b-1&&this.qc[a+1].Th)};a.prototype.Pl=function(a){g(a,this.ja)};a.prototype.bp=function(a){g(a,this.Yd)};a.prototype.Hi=function(){this.eo=!0;this.parent&&this.parent.Hi()};a.prototype.Sm=function(){return this.Na.length?this.Na[0].trigger:!1};a.prototype.Da=function(){var a,b=!1,c,f=this.b,d=this.b.eb();d.Kb=this;var g=this.Na;this.Th||(d.vj=!1);if(this.Ec){0===g.length&&(b=!0);
d.Fa=0;for(a=g.length;d.Fa<a;d.Fa++)g[d.Fa].trigger||(c=g[d.Fa].Da())&&(b=!0);(d.De=b)&&this.Ei()}else{d.Fa=0;for(a=g.length;d.Fa<a;d.Fa++)if(c=g[d.Fa].Da(),!c){d.De=!1;!this.pl||f.Oc.Ac()&&!f.ub.length||f.bb();return}d.De=!0;this.Ei()}this.Mp(d)};a.prototype.Mp=function(a){a.De&&this.Dm&&(a.vj=!0);!this.pl||this.b.Oc.Ac()&&!this.b.ub.length||this.b.bb()};a.prototype.Mr=function(a){this.b.eb().Kb=this;this.Na[a].Da()&&(this.Ei(),this.b.eb().De=!0)};a.prototype.Ei=function(){var a=this.b.eb(),b;a.Gb=
0;for(b=this.vc.length;a.Gb<b;a.Gb++)if(this.vc[a.Gb].Da())return;this.Sn()};a.prototype.Jr=function(){var a=this.b.eb(),b;for(b=this.vc.length;a.Gb<b;a.Gb++)if(this.vc[a.Gb].Da())return;this.Sn()};a.prototype.Sn=function(){if(this.qc.length){var a,b,c,f,d=this.qc.length-1;this.b.xi(this);if(this.eo)for(a=0,b=this.qc.length;a<b;a++)c=this.qc[a],(f=!this.Qi||!this.group&&a<d)&&this.b.wi(c.ja),c.Da(),f?this.b.He(c.ja):this.b.lj(c.ja);else for(a=0,b=this.qc.length;a<b;a++)this.qc[a].Da();this.b.ri()}};
a.prototype.Nr=function(){var a=this.b.eb();a.Kb=this;var b=!1,c;a.Fa=0;for(c=this.Na.length;a.Fa<c;a.Fa++)if(this.Na[a.Fa].Da())b=!0;else if(!this.Ec)return!1;return this.Ec?b:!0};a.prototype.Kr=function(){this.b.Ch++;var a=this.b.eb().Fa,b=this.b.xi(this);if(!this.Ec)for(b.Fa=a+1,a=this.Na.length;b.Fa<a;b.Fa++)if(!this.Na[b.Fa].Da()){this.b.ri();return}this.Ei();this.b.ri()};a.prototype.dr=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Na[b].type===a.type)return!1;return!0};
Tb=a;f.prototype.xa=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.xa(),c.sc&&(this.Nf=!0)};f.prototype.Pr=J(!0);f.prototype.$k=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ea[a]=this.H[a].get();return Ta(this.Ya.apply(this.b.Zc,this.ea),this.Zj)};f.prototype.Or=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ea[a]=this.H[a].get();a=this.Ya.apply(this.me?this.me:this.type,this.ea);this.type.yc();return a};f.prototype.Zk=function(){var a,b,c,f,d,g,h,k,l=this.type,
q=l.Y(),n=this.Tb.Ec&&!this.trigger;b=0;var r=l.Bc,p=l.G,s=l.kd,t=this.Zb,u=-1<t,P=this.Nf,A=this.H,E=this.ea,v=this.Zj,V=this.Ya,C;if(P)for(b=0,d=A.length;b<d;++b)g=A[b],g.sc||(E[b]=g.get(0));else for(b=0,d=A.length;b<d;++b)E[b]=A[b].get(0);if(q.fa){q.c.length=0;q.W.length=0;C=l.c;a=0;for(f=C.length;a<f;++a){k=C[a];if(P)for(b=0,d=A.length;b<d;++b)g=A[b],g.sc&&(E[b]=g.get(a));u?(b=0,p&&(b=k.type.Ze[s]),b=V.apply(k.J[t+b],E)):b=V.apply(k,E);(h=Ta(b,v))?q.c.push(k):n&&q.W.push(k)}l.finish&&l.finish(!0);
q.fa=!1;l.yc();return q.Rj()}c=0;C=(h=n&&!this.Tb.dr(this))?q.W:q.c;var ia=!1;a=0;for(f=C.length;a<f;++a){k=C[a];if(P)for(b=0,d=A.length;b<d;++b)g=A[b],g.sc&&(E[b]=g.get(a));u?(b=0,p&&(b=k.type.Ze[s]),b=V.apply(k.J[t+b],E)):b=V.apply(k,E);if(Ta(b,v))if(ia=!0,h){if(q.c.push(k),r)for(b=0,d=k.siblings.length;b<d;b++)g=k.siblings[b],g.type.Y().c.push(g)}else{C[c]=k;if(r)for(b=0,d=k.siblings.length;b<d;b++)g=k.siblings[b],g.type.Y().c[c]=g;c++}else if(h){C[c]=k;if(r)for(b=0,d=k.siblings.length;b<d;b++)g=
k.siblings[b],g.type.Y().W[c]=g;c++}else if(n&&(q.W.push(k),r))for(b=0,d=k.siblings.length;b<d;b++)g=k.siblings[b],g.type.Y().W.push(g)}C.length=c;if(r)for(p=l.Ib,a=0,f=p.length;a<f;a++)k=p[a].Y(),h?k.W.length=c:k.c.length=c;c=ia;if(h&&!ia)for(a=0,f=q.c.length;a<f;a++){k=q.c[a];if(P)for(b=0,d=A.length;b<d;b++)g=A[b],g.sc&&(E[b]=g.get(a));b=u?V.apply(k.J[t],E):V.apply(k,E);if(Ta(b,v)){ia=!0;break}}l.finish&&l.finish(c||n);return n?ia:q.Rj()};Pb=f;t.prototype.xa=function(){var a,b,c;a=0;for(b=this.H.length;a<
b;a++)c=this.H[a],c.xa(),c.sc&&(this.Nf=!0)};t.prototype.$k=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ea[a]=this.H[a].get();return this.Ya.apply(this.b.Zc,this.ea)};t.prototype.Zk=function(){var a=this.type.Y().gc(),b=this.type.G,c=this.type.kd,f=this.Zb,d=-1<f,g=this.Nf,h=this.H,k=this.ea,l=this.Ya,q,n,r,p,s,t;if(g)for(n=0,p=h.length;n<p;++n)s=h[n],s.sc||(k[n]=s.get(0));else for(n=0,p=h.length;n<p;++n)k[n]=h[n].get(0);q=0;for(r=a.length;q<r;++q){t=a[q];if(g)for(n=0,p=h.length;n<p;++n)s=
h[n],s.sc&&(k[n]=s.get(q));d?(n=0,b&&(n=t.type.Ze[c]),l.apply(t.J[f+n],k)):l.apply(t,k)}return!1};Qb=t;var r=[],k=-1;p.prototype.xa=function(){var a,b;if(11===this.type)this.se=this.b.wm(this.$g,this.Tb.parent);else if(13===this.type)for(a=0,b=this.Le.length;a<b;a++)this.Le[a].xa();this.Qc&&this.Qc.xa()};p.prototype.nr=function(a){this.sc||!a||a.Ha.Ji||(this.sc=!0)};p.prototype.Xn=function(){this.sc=!0};p.prototype.Ja=function(){k++;r.length===k&&r.push(new Vb);return r[k]};p.prototype.Ca=function(){k--};
p.prototype.Hq=function(a){this.Zd=a||0;a=this.Ja();this.Qc.get(a);this.Ca();return a.data};p.prototype.Iq=function(a){this.Zd=a||0;a=this.Ja();this.Qc.get(a);this.Ca();return N(a.data)?a.data:""};p.prototype.Oq=F("object");p.prototype.Fq=F("$l");p.prototype.Mq=function(a){this.Zd=a||0;a=this.Ja();this.Qc.get(a);this.Ca();return a.Qa()?this.b.nd(a.data):this.b.$f(a.data)};p.prototype.Nq=F("ha");p.prototype.Lq=F("key");p.prototype.Kq=F("index");p.prototype.Jq=function(a){a=a||0;var b=this.A.type,c=
null,c=b.Y(),f=c.gc();if(f.length)c=f[a%f.length].type;else if(c.W.length)c=c.W[a%c.W.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.Dh[b.kd]};p.prototype.Gq=F("se");p.prototype.Eq=F("mm");p.prototype.Pq=function(){var a,b;a=0;for(b=this.Le.length;a<b;a++)this.Zg[a]=this.Le[a].get();return this.Zg};Rb=p;u.prototype.xa=function(){this.ja=c(this.ja)};u.prototype.Vr=function(a){var b=this.b.vm();this.parent&&!this.lg&&b?(this.Ge>=b.length&&(b.length=this.Ge+
1),b[this.Ge]=a):this.data=a};u.prototype.Dq=function(){var a=this.b.vm();return!this.parent||this.lg||!a||this.Sh?this.data:this.Ge>=a.length||"undefined"===typeof a[this.Ge]?this.Wj:a[this.Ge]};u.prototype.Da=function(){!this.parent||this.lg||this.Sh||this.Vr(this.Wj)};Lb=u;l.prototype.toString=function(){return"include:"+this.eg.toString()};l.prototype.xa=function(){this.eg=this.b.xj[this.Vq];this.sheet.Fm.add(this);this.ja=c(this.ja);for(var a=this.parent;a;)a.group&&a.cm.push(this),a=a.parent;
this.ds()};l.prototype.Da=function(){this.parent&&this.b.Mg(this.b.n);this.eg.Sj||this.eg.Da(!0);this.parent&&this.b.He(this.b.n)};l.prototype.ds=function(){for(var a=this.parent;a;){if(a.group&&!a.Mh){this.Sb=!1;return}a=a.parent}this.Sb=!0};Ub=l;s.prototype.reset=function(a){this.Kb=a;this.Gb=this.Fa=0;this.io.length=0;this.vj=this.De=!1};Kb=s})();
(function(){function d(c,d){this.A=c;this.b=c.b;this.type=d[0];this.get=[this.Yp,this.Up,this.gq,this.jq,this.Op,this.hq,this.bq,this.Rp,this.aq,this.fq,this.Pp,this.dq,this.Sp,this.cq,this.Zp,this.$p,this.Vp,this.Wp,this.Qp,this.iq,this.im,this.Xp,this.im,this.Tp][this.type];var b=null;this.Ab=this.H=this.ea=this.Ya=this.Ni=this.Ua=this.first=this.value=null;this.Zb=-1;this.od=null;this.wl=-1;this.se=this.$g=null;this.Pg=!1;switch(this.type){case 0:case 1:case 2:this.value=d[1];break;case 3:this.first=
new Sb(c,d[1]);break;case 18:this.first=new Sb(c,d[1]);this.Ua=new Sb(c,d[2]);this.Ni=new Sb(c,d[3]);break;case 19:this.Ya=d[1];this.Ya!==U.prototype.ec.random&&this.Ya!==U.prototype.ec.pp||this.A.Xn();this.ea=[];this.H=[];3===d.length?(b=d[2],this.ea.length=b.length+1):this.ea.length=1;break;case 20:this.Ab=this.b.n[d[1]];this.Zb=-1;this.Ya=d[2];this.Pg=d[3];Xb.Go&&this.Ya===Xb.Go.prototype.ec.ws&&this.A.Xn();this.od=d[4]?new Sb(c,d[4]):null;this.ea=[];this.H=[];6===d.length?(b=d[5],this.ea.length=
b.length+1):this.ea.length=1;break;case 21:this.Ab=this.b.n[d[1]];this.Pg=d[2];this.od=d[3]?new Sb(c,d[3]):null;this.wl=d[4];break;case 22:this.Ab=this.b.n[d[1]];this.Ab.Jh(d[2]);this.Zb=this.Ab.Gj(d[2]);this.Ya=d[3];this.Pg=d[4];this.od=d[5]?new Sb(c,d[5]):null;this.ea=[];this.H=[];7===d.length?(b=d[6],this.ea.length=b.length+1):this.ea.length=1;break;case 23:this.$g=d[1],this.se=null}this.A.nr(this.Ab);4<=this.type&&17>=this.type&&(this.first=new Sb(c,d[1]),this.Ua=new Sb(c,d[2]));if(b){var a,g;
a=0;for(g=b.length;a<g;a++)this.H.push(new Sb(c,b[a]))}}function n(c,d){this.type=c||T.Pe;this.data=d||0;this.tf=null;this.type==T.Pe&&(this.data=Math.floor(this.data))}d.prototype.xa=function(){23===this.type&&(this.se=this.A.b.wm(this.$g,this.A.Tb.parent));this.first&&this.first.xa();this.Ua&&this.Ua.xa();this.Ni&&this.Ni.xa();this.od&&this.od.xa();if(this.H){var c,d;c=0;for(d=this.H.length;c<d;c++)this.H[c].xa()}};d.prototype.iq=function(c){this.ea[0]=c;c=this.A.Ja();var d,b;d=0;for(b=this.H.length;d<
b;d++)this.H[d].get(c),this.ea[d+1]=c.data;this.A.Ca();this.Ya.apply(this.b.Zc,this.ea)};d.prototype.im=function(c){var d=this.Ab.Y(),b=d.gc();if(!b.length)if(d.W.length)b=d.W;else{this.Pg?c.nc(""):c.la(0);return}this.ea[0]=c;c.tf=this.Ab;c=this.A.Ja();var a,d=0;for(a=this.H.length;d<a;d++)this.H[d].get(c),this.ea[d+1]=c.data;d=this.A.Zd;this.od&&(this.od.get(c),c.Qa()&&(d=c.data,b=this.Ab.c));this.A.Ca();d%=b.length;0>d&&(d+=b.length);b=b[d];-1<this.Zb?(c=0,this.Ab.G&&(c=b.type.Ze[this.Ab.kd]),this.Ya.apply(b.J[this.Zb+
c],this.ea)):this.Ya.apply(b,this.ea)};d.prototype.Xp=function(c){var d=this.Ab.Y(),b=d.gc();if(!b.length)if(d.W.length)b=d.W;else{this.Pg?c.nc(""):c.la(0);return}d=this.A.Zd;if(this.od){var a=this.A.Ja();this.od.get(a);if(a.Qa()){d=a.data;b=this.Ab.c;d%=b.length;0>d&&(d+=b.length);b=b[d].Ga[this.wl];N(b)?c.nc(b):c.r(b);this.A.Ca();return}this.A.Ca()}d%=b.length;0>d&&(d+=b.length);b=b[d];d=0;this.Ab.G&&(d=b.type.Dh[this.Ab.kd]);b=b.Ga[this.wl+d];N(b)?c.nc(b):c.r(b)};d.prototype.Yp=function(c){c.type=
T.Pe;c.data=this.value};d.prototype.Up=function(c){c.type=T.Oe;c.data=this.value};d.prototype.gq=function(c){c.type=T.dh;c.data=this.value};d.prototype.jq=function(c){this.first.get(c);c.Qa()&&(c.data=-c.data)};d.prototype.Op=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data+=d.data,d.jf()&&c.rf());this.A.Ca()};d.prototype.hq=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data-=d.data,d.jf()&&c.rf());this.A.Ca()};d.prototype.bq=
function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data*=d.data,d.jf()&&c.rf());this.A.Ca()};d.prototype.Rp=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data/=d.data,c.rf());this.A.Ca()};d.prototype.aq=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data%=d.data,d.jf()&&c.rf());this.A.Ca()};d.prototype.fq=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data=Math.pow(c.data,
d.data),d.jf()&&c.rf());this.A.Ca()};d.prototype.Pp=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()?d.Uh()?c.nc(c.data.toString()+d.data):c.data&&d.data?c.la(1):c.la(0):c.Uh()&&(c.data=d.Uh()?c.data+d.data:c.data+(Math.round(1E10*d.data)/1E10).toString());this.A.Ca()};d.prototype.dq=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.Qa()&&d.Qa()&&(c.data||d.data?c.la(1):c.la(0));this.A.Ca()};d.prototype.Qp=function(c){this.first.get(c);c.data?this.Ua.get(c):this.Ni.get(c)};
d.prototype.Sp=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.la(c.data===d.data?1:0);this.A.Ca()};d.prototype.cq=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.la(c.data!==d.data?1:0);this.A.Ca()};d.prototype.Zp=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.la(c.data<d.data?1:0);this.A.Ca()};d.prototype.$p=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.la(c.data<=d.data?1:0);this.A.Ca()};d.prototype.Vp=function(c){this.first.get(c);
var d=this.A.Ja();this.Ua.get(d);c.la(c.data>d.data?1:0);this.A.Ca()};d.prototype.Wp=function(c){this.first.get(c);var d=this.A.Ja();this.Ua.get(d);c.la(c.data>=d.data?1:0);this.A.Ca()};d.prototype.Tp=function(c){var d=this.se.Dq();ga(d)?c.r(d):c.nc(d)};Sb=d;n.prototype.jf=function(){return this.type===T.Oe};n.prototype.Qa=function(){return this.type===T.Pe||this.type===T.Oe};n.prototype.Uh=function(){return this.type===T.dh};n.prototype.rf=function(){this.jf()||(this.Uh()&&(this.data=parseFloat(this.data)),
this.type=T.Oe)};n.prototype.la=function(c){this.type=T.Pe;this.data=Math.floor(c)};n.prototype.r=function(c){this.type=T.Oe;this.data=c};n.prototype.nc=function(c){this.type=T.dh;this.data=c};n.prototype.Wr=function(c){ga(c)?(this.type=T.Oe,this.data=c):N(c)?(this.type=T.dh,this.data=c.toString()):(this.type=T.Pe,this.data=0)};Vb=n;T={Pe:0,Oe:1,dh:2}})();function U(d){this.b=d;this.Fb=[]}
U.prototype.mc=function(){var d={},n,c,h,b,a,g,f,t;d.waits=[];var p=d.waits,u;n=0;for(c=this.Fb.length;n<c;n++){g=this.Fb[n];u={t:g.time,ev:g.Xe.O,sm:[],sols:{}};g.Xe.vc[g.Gb]&&(u.act=g.Xe.vc[g.Gb].O);h=0;for(b=g.ja.length;h<b;h++)u.sm.push(g.ja[h].O);for(a in g.lb)if(g.lb.hasOwnProperty(a)){f=this.b.n[parseInt(a,10)];t={sa:g.lb[a].Fi,insts:[]};h=0;for(b=g.lb[a].pd.length;h<b;h++)t.insts.push(g.lb[a].pd[h].uid);u.sols[f.O.toString()]=t}p.push(u)}return d};
U.prototype.Tc=function(d){d=d.waits;var n,c,h,b,a,g,f,t,p,u,l;n=this.Fb.length=0;for(c=d.length;n<c;n++)if(g=d[n],t=this.b.Ul[g.ev.toString()]){p=-1;h=0;for(b=t.vc.length;h<b;h++)if(t.vc[h].O===g.act){p=h;break}if(-1!==p){f={lb:{},ja:[],uj:!1};f.time=g.t;f.Xe=t;f.Gb=p;h=0;for(b=g.sm.length;h<b;h++)(t=this.b.Lh(g.sm[h]))&&f.ja.push(t);for(a in g.sols)if(g.sols.hasOwnProperty(a)&&(t=this.b.Lh(parseInt(a,10)))){p=g.sols[a];u={Fi:p.sa,pd:[]};h=0;for(b=p.insts.length;h<b;h++)(l=this.b.cf(p.insts[h]))&&
u.pd.push(l);f.lb[t.index.toString()]=u}this.Fb.push(f)}}};
(function(){function d(){}function n(){}function c(){}var h=U.prototype;d.prototype.Ro=J(!0);d.prototype.Qo=J(!0);d.prototype.Fo=function(){var a=this.b.eb();return a.vj?!1:!a.De};d.prototype.Cl=J(!0);d.prototype.Ko=J(!0);d.prototype.Xi=J(!0);d.prototype.So=J(!0);d.prototype.Wi=J(!0);h.i=new d;n.prototype.ad=function(a){this.b.mg||this.b.Rf||(this.b.Rf=a)};var b=[],a=[];n.prototype.bd=function(c){if(!(0>c)){var d,h,n,u=this.b.eb(),l;l=b.length?b.pop():{lb:{},ja:[]};l.uj=!1;l.time=this.b.jc.Ea+c;l.Xe=
u.Kb;l.Gb=u.Gb+1;c=0;for(d=this.b.n.length;c<d;c++)n=this.b.n[c],h=n.Y(),h.fa&&-1===u.Kb.ja.indexOf(n)||(l.ja.push(n),n=void 0,n=a.length?a.pop():{pd:[]},n.Fi=!1,n.Fi=h.fa,za(n.pd,h.c),l.lb[c.toString()]=n);this.Fb.push(l);return!0}};h.p=new n;c.prototype["int"]=function(a,b){N(b)?(a.la(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.la(b)};c.prototype["float"]=function(a,b){N(b)?(a.r(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.r(b)};c.prototype.random=function(a,b,c){void 0===c?a.r(Math.random()*b):
a.r(Math.random()*(c-b)+b)};c.prototype.sqrt=function(a,b){a.r(Math.sqrt(b))};c.prototype.abs=function(a,b){a.r(Math.abs(b))};c.prototype.round=function(a,b){a.la(Math.round(b))};c.prototype.floor=function(a,b){a.la(Math.floor(b))};c.prototype.ceil=function(a,b){a.la(Math.ceil(b))};c.prototype.sin=function(a,b){a.r(Math.sin(S(b)))};c.prototype.cos=function(a,b){a.r(Math.cos(S(b)))};c.prototype.tan=function(a,b){a.r(Math.tan(S(b)))};c.prototype.acos=function(a,b){a.r(Da(Math.acos(b)))};c.prototype.exp=
function(a,b){a.r(Math.exp(b))};c.prototype.max=function(a){var b=arguments[1],c,d;c=2;for(d=arguments.length;c<d;c++)b<arguments[c]&&(b=arguments[c]);a.r(b)};c.prototype.min=function(a){var b=arguments[1],c,d;c=2;for(d=arguments.length;c<d;c++)b>arguments[c]&&(b=arguments[c]);a.r(b)};c.prototype.qe=function(a){a.r(this.b.qe)};c.prototype.Ef=function(a){a.r(this.b.Ef)};c.prototype.time=function(a){a.r(this.b.jc.Ea)};c.prototype.Df=function(a){a.la(this.b.Df)};c.prototype.mi=function(a){a.la(this.b.mi)};
c.prototype.Bj=function(a){a.la(this.b.Bj)};c.prototype.j=function(a,b,c,d,h){a.r(Da(Ka(b,c,d,h)))};c.prototype.left=function(a,b,c){a.nc(N(b)?b.substr(0,c):"")};c.prototype.right=function(a,b,c){a.nc(N(b)?b.substr(b.length-c):"")};c.prototype.replace=function(a,b,c,d){N(b)&&N(c)&&N(d)?a.nc(b.replace(RegExp(Ya(c),"gi"),d)):a.nc(N(b)?b:"")};c.prototype.pp=function(a){var b=R(Math.random()*(arguments.length-1));a.Wr(arguments[b+1])};c.prototype.nj=function(a){a.r(this.b.nj/1E3)};c.prototype.gi=function(a){a.r(this.b.gi)};
h.ec=new c;h.Lr=function(){var c,d,h,n,u,l,s=this.b.eb();c=0;for(h=this.Fb.length;c<h;c++)if(n=this.Fb[c],!(n.time>this.b.jc.Ea)){s.Kb=n.Xe;s.Gb=n.Gb;s.Fa=0;for(d in n.lb)n.lb.hasOwnProperty(d)&&(u=this.b.n[parseInt(d,10)].Y(),l=n.lb[d],u.fa=l.Fi,za(u.c,l.pd),u=l,u.pd.length=0,a.push(u));n.Xe.Jr();this.b.lj(n.ja);n.uj=!0}d=c=0;for(h=this.Fb.length;c<h;c++)n=this.Fb[c],this.Fb[d]=n,n.uj?(Va(n.lb),n.ja.length=0,b.push(n)):d++;this.Fb.length=d}})();
(function(){hb=function(d){var c=d[0].prototype,h=d[1],b=d[3],a=d[4],g=d[5],f=d[6],t=d[7];d=d[8];c.i||(c.i={});c.p||(c.p={});c.ec||(c.ec={});var p=c.i,u=c.p,c=c.ec;b&&(p.Bs=function(a,b){return Wb(this.x,a,b)},p.Cs=function(a,b){return Wb(this.y,a,b)},p.Al=function(){var a=this.e;this.ya();var b=this.za;return!(b.right<a.nb||b.bottom<a.ob||b.left>a.uc||b.top>a.tc)},p.Ls=function(){this.ya();var a=this.za,b=this.b.T;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},p.Ws=function(a,b,c){var d=
this.Y(),f=d.gc();if(!f.length)return!1;var e=f[0],g=e,h=Sa(e.x,e.y,b,c),n,p,t;n=1;for(p=f.length;n<p;n++)if(e=f[n],t=Sa(e.x,e.y,b,c),0===a&&t<h||1===a&&t>h)h=t,g=e;d.Kg(g);return!0},u.tt=function(a){this.x!==a&&(this.x=a,this.B())},u.Zi=function(a){this.y!==a&&(this.y=a,this.B())},u.mt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.B()},u.nt=function(a,b){var c=a.yq(this);if(c){var d;c.Lj?(d=c.Lj(b,!0),c=c.Lj(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.B()}},
u.Mf=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.B())},u.Ps=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.B())},c.Jl=function(a){a.r(this.x)},c.Kl=function(a){a.r(this.y)},c.qe=function(a){a.r(this.b.Ij(this))});a&&(p.As=function(a,b){return Wb(this.width,a,b)},p.xs=function(a,b){return Wb(this.height,a,b)},u.st=function(a){this.width!==a&&(this.width=a,this.B())},u.jt=function(a){this.height!==a&&(this.height=a,this.B())},u.ot=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.B()},c.yt=function(a){a.r(this.width)},c.Fs=function(a){a.r(this.height)},c.ts=function(a){this.ya();a.r(this.za.left)},c.vs=function(a){this.ya();a.r(this.za.top)},c.us=function(a){this.ya();a.r(this.za.right)},c.ss=function(a){this.ya();a.r(this.za.bottom)});g&&(p.rs=function(a,b){return La(this.j,S(b))<=S(a)},p.Js=function(a){return Qa(this.j,S(a))},p.Hs=function(a,b){var c=Ja(a),d=Ja(b),f=Ha(this.j);return Qa(d,c)?Qa(f,c)&&
!Qa(f,d):!(!Qa(f,c)&&Qa(f,d))},u.et=function(a){a=S(Ea(a));isNaN(a)||this.j===a||(this.j=a,this.B())},u.$s=function(a){0===a||isNaN(a)||(this.j+=S(a),this.j=Ha(this.j),this.B())},u.bt=function(a){0===a||isNaN(a)||(this.j-=S(a),this.j=Ha(this.j),this.B())},u.ct=function(a,b){var c=Pa(this.j,S(b),S(a));isNaN(c)||this.j===c||(this.j=c,this.B())},u.dt=function(a,b,c){a=Pa(this.j,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.j===a||(this.j=a,this.B())},u.pt=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.j===c||(this.j=c,this.B())},c.qs=function(a){a.r(Ia(this.j))});h||(p.ys=function(a,b,c){return Wb(this.Ga[a],b,c)},p.Is=function(a){return this.Ga[a]},p.Xs=function(a,b){var c=this.Y(),d=c.gc();if(!d.length)return!1;var f=d[0],e=f,g=f.Ga[b],h,n,p;h=1;for(n=d.length;h<n;h++)if(f=d[h],p=f.Ga[b],0===a&&p<g||1===a&&p>g)g=p,e=f;c.Kg(e);return!0},p.Vs=function(a){var b,c,d,f,e;if(this.b.um().Zj){e=this.Y();if(e.fa)for(e.fa=!1,e.c.length=0,e.W.length=0,d=this.c,b=0,c=d.length;b<
c;b++)f=d[b],f.uid===a?e.W.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.W.push(f):d++;e.c.length=d}this.yc();return!!e.c.length}f=this.b.cf(a);if(!f)return!1;e=this.Y();if(!e.fa&&-1===e.c.indexOf(f))return!1;if(this.G)for(a=f.type.na,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.Kg(f),this.yc(),!0}else if(f.type===this)return e.Kg(f),this.yc(),!0;return!1},p.Lo=J(!0),p.Mo=J(!0),u.kt=function(a,b){var c=this.Ga;ga(c[a])?c[a]=ga(b)?b:parseFloat(b):N(c[a])&&
(c[a]=N(b)?b:b.toString())},u.ps=function(a,b){var c=this.Ga;ga(c[a])?c[a]=ga(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},u.ut=function(a,b){var c=this.Ga;ga(c[a])&&(c[a]=ga(b)?c[a]-b:c[a]-parseFloat(b))},u.gt=function(a,b){this.Ga[a]=b?1:0},u.wt=function(a){this.Ga[a]=1-this.Ga[a]},u.Es=function(){this.b.he(this)},u.Ho||(u.Ho=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.di(this,b,!0);this.Mc&&this.Mc();if(this.J)for(a=0,b=this.J.length;a<b;++a)c=
this.J[a],c.Mc&&c.Mc()}),c.Ds=function(a){var b=a.tf.c.length,c,d,f;c=0;for(d=this.b.ub.length;c<d;c++)f=this.b.ub[c],a.tf.G?0<=f.type.na.indexOf(a.tf)&&b++:f.type===a.tf&&b++;a.la(b)},c.Zs=function(a){a.la(a.tf.Y().gc().length)},c.xt=function(a){a.la(this.uid)},c.Gs=function(a){a.la(this.bg())},c.Eo||(c.Eo=function(a){a.nc(JSON.stringify(this.b.al(this,!0)))}));f&&(p.Ms=F("visible"),u.qt=function(a){!a!==!this.visible&&(this.visible=a,this.b.ka=!0)},p.zs=function(a,b){return Wb(eb(100*this.opacity),
a,b)},u.lt=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ka=!0)},c.Opacity=function(a){a.r(eb(100*this.opacity))});t&&(p.Ks=function(a){return a?this.e===a:!1},p.Ys=function(a){var b=this.Y(),c=b.gc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.e.index>f.e.index||d.e.index===f.e.index&&d.Wb()>f.Wb())f=d}else if(d.e.index<f.e.index||d.e.index===f.e.index&&d.Wb()<f.Wb())f=d;b.Kg(f);return!0},u.Ss=function(){var a=this.Wb();
a!==this.e.c.length-1&&(ya(this.e.c,a),this.e.c.push(this),this.b.ka=!0,this.e.Qb=!0)},u.Qs=function(){var a=this.Wb();0!==a&&(ya(this.e.c,a),this.e.c.unshift(this),this.b.ka=!0,this.e.Qb=!0)},u.Rs=function(a){a&&a!=this.e&&(ya(this.e.c,this.Wb()),this.e.Qb=!0,this.e=a,this.Ne=a.c.length,a.c.push(this),this.b.ka=!0)},u.At=function(a,b){var c=0===a;if(b){var d=b.sq(this);if(d&&d.uid!==this.uid){this.e.index!==d.e.index&&(ya(this.e.c,this.Wb()),this.e.Qb=!0,this.e=d.e,this.Ne=d.e.c.length,d.e.c.push(this));
var f=this.Wb(),d=d.Wb();ya(this.e.c,f);f<d&&d--;c&&d++;d===this.e.c.length?this.e.c.push(this):this.e.c.splice(d,0,this);this.e.Qb=!0;this.b.ka=!0}}},c.Os=function(a){a.la(this.e.qn)},c.Ns=function(a){a.nc(this.e.name)},c.zt=function(a){a.la(this.Wb())});d&&(u.ht=function(a,b){if(this.b.u){var c=this.type.Kj(b);if(!(0>c)){var d=1===a;this.Dd[c]!==d&&(this.Dd[c]=d,this.Ad(),this.b.ka=!0)}}},u.it=function(a,b,c){if(this.b.u){var d=this.type.Kj(a);0>d||(a=this.type.F[d],d=this.ra[d],b=Math.floor(b),
0>b||b>=d.length||(1===this.b.u.Bq(a.ab,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Sb&&(this.b.ka=!0))))}})};Db=function(){this.ij=this.ej=!0;this.type.gh=!0;this.b.ka=!0;var d,c,h=this.fj;d=0;for(c=h.length;d<c;++d)h[d](this)};Eb=function(d){d&&this.fj.push(d)};Gb=function(){if(this.ej){var d=this.za,c=this.Ub;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.xb*this.width,-this.yb*this.height);this.j?(d.offset(-this.x,-this.y),c.Zn(d,this.j),c.offset(this.x,this.y),c.Vl(d)):c.Sg(d);
d.normalize();this.ej=!1}};var d=new ua(0,0,0,0);Hb=function(){if(this.ij&&this.fd){this.ya();var n=this.type.rh,c=this.qh,h=this.za;d.set(n.eh(h.left),n.fh(h.top),n.eh(h.right),n.fh(h.bottom));c.Np(d)||(c.right<c.left?n.update(this,null,d):n.update(this,c,d),c.copy(d),this.ij=!1)}};Fb=function(d,c){return this.za.Jb(d,c)&&this.Ub.Jb(d,c)?this.V&&!this.V.hf()?(this.V.Ue(this.width,this.height,this.j),this.V.Jb(d-this.x,c-this.y)):!0:!1};zb=function(){this.type.Ti();return this.ve};Ib=function(){this.e.hs();
return this.Ne};Jb=function(){this.U.length=0;var d,c;d=0;for(c=this.Dd.length;d<c;d++)this.Dd[d]&&this.U.push(this.type.F[d]);this.Bo=!!this.U.length};Ab=function(){return"Inst"+this.Nn};kb=function(d){if(d&&d.Bc&&d.type!=this){var c,h,b;c=0;for(h=d.siblings.length;c<h;c++)if(b=d.siblings[c],b.type==this)return b}d=this.Y().gc();return d.length?d[0]:null};lb=function(d){var c=this.Y().gc();return c.length?c[d.bg()%c.length]:null};jb=function(){if(this.Cf&&!this.G){var d,c;d=0;for(c=this.c.length;d<
c;d++)this.c[d].ve=d;var h=d,b=this.b.ub;d=0;for(c=b.length;d<c;++d)b[d].type===this&&(b[d].ve=h++);this.Cf=!1}};xb=function(d){if(d<this.c.length)return this.c[d];d-=this.c.length;var c=this.b.ub,h,b;h=0;for(b=c.length;h<b;++h)if(c[h].type===this){if(0===d)return c[h];--d}return null};mb=function(){return this.$d[this.hd]};qb=function(){this.hd++;this.hd===this.$d.length?this.$d.push(new ib(this)):this.$d[this.hd].fa=!0};rb=function(){this.hd++;this.hd===this.$d.length&&this.$d.push(new ib(this));
var d=this.$d[this.hd],c=this.$d[this.hd-1];c.fa?d.fa=!0:(d.fa=!1,za(d.c,c.c),za(d.W,c.W))};sb=function(){this.hd--};tb=function(d){var c,h,b,a,g,f=0;if(!this.G)for(c=0,h=this.na.length;c<h;c++)for(g=this.na[c],b=0,a=g.Aa.length;b<a;b++){if(d===g.Aa[b].name)return this.ca.Vm=f,g.Aa[b];f++}c=0;for(h=this.Aa.length;c<h;c++){if(d===this.Aa[c].name)return this.ca.Vm=f,this.Aa[c];f++}return null};ub=function(d){return this.Jh(d)?this.ca.Vm:-1};vb=function(d){var c,h;c=0;for(h=this.F.length;c<h;c++)if(this.F[c].name===
d)return c;return-1};wb=function(){if(this.Bc&&!this.G){var d,c,h,b,a,g,f;this.Ti();g=this.Y();var t=g.fa,p=(d=this.b.eb())&&d.Kb&&d.Kb.Ec;d=0;for(c=this.Ib.length;d<c;d++)if(a=this.Ib[d],a!==this&&(a.Ti(),f=a.Y(),f.fa=t,!t)){f.c.length=g.c.length;h=0;for(b=g.c.length;h<b;h++)f.c[h]=a.xm(g.c[h].ve);if(p)for(f.W.length=g.W.length,h=0,b=g.W.length;h<b;h++)f.W[h]=a.xm(g.W[h].ve)}}};yb=function(){return"Type"+this.O};Wb=function(d,c,h){if("undefined"===typeof d||"undefined"===typeof h)return!1;switch(c){case 0:return d===
h;case 1:return d!==h;case 2:return d<h;case 3:return d<=h;case 4:return d>h;case 5:return d>=h;default:return!1}}})();var ec={};function gc(d){this.b=d}
(function(){function d(a){0>a&&(a=0);1<a&&(a=1);return 20*(Math.log(a)/Math.log(10))}function n(a){a=a.toLowerCase();return Q.hasOwnProperty(a)&&Q[a].length?Q[a][0].Vb():v.destination}function c(){return v.createGain?v.createGain():v.createGainNode()}function h(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function b(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function g(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function f(a,
b,d,e,f,g){this.type="filter";this.Fc=[a,b,d,e,f,g];this.P=c();this.D=c();this.D.gain.value=g;this.C=c();this.C.gain.value=1-g;this.Ba=v.createBiquadFilter();this.Ba.type="number"===typeof this.Ba.type?a:mc[a];this.Ba.frequency.value=b;this.Ba.detune&&(this.Ba.detune.value=d);this.Ba.Q.value=e;this.Ba.gain.value=f;this.P.connect(this.Ba);this.P.connect(this.C);this.Ba.connect(this.D)}function t(a,b,d){this.type="delay";this.Fc=[a,b,d];this.P=c();this.D=c();this.D.gain.value=d;this.C=c();this.C.gain.value=
1-d;this.Ag=c();this.cc=h(a);this.cc.delayTime.value=a;this.yh=c();this.yh.gain.value=b;this.P.connect(this.Ag);this.P.connect(this.C);this.Ag.connect(this.D);this.Ag.connect(this.cc);this.cc.connect(this.yh);this.yh.connect(this.Ag)}function p(a,b,d,e){this.type="convolve";this.Fc=[b,d,e];this.P=c();this.D=c();this.D.gain.value=d;this.C=c();this.C.gain.value=1-d;this.ne=v.createConvolver();a&&(this.ne.normalize=b,this.ne.buffer=a);this.P.connect(this.ne);this.P.connect(this.C);this.ne.connect(this.D)}
function u(a,d,e,f,g){this.type="flanger";this.Fc=[a,d,e,f,g];this.P=c();this.C=c();this.C.gain.value=1-g/2;this.D=c();this.D.gain.value=g/2;this.Eh=c();this.Eh.gain.value=f;this.cc=h(a+d);this.cc.delayTime.value=a;this.Ta=v.createOscillator();this.Ta.frequency.value=e;this.Ob=c();this.Ob.gain.value=d;this.P.connect(this.cc);this.P.connect(this.C);this.cc.connect(this.D);this.cc.connect(this.Eh);this.Eh.connect(this.cc);this.Ta.connect(this.Ob);this.Ob.connect(this.cc.delayTime);b(this.Ta)}function l(a,
d,e,f,g,k){this.type="phaser";this.Fc=[a,d,e,f,g,k];this.P=c();this.C=c();this.C.gain.value=1-k/2;this.D=c();this.D.gain.value=k/2;this.Ba=v.createBiquadFilter();this.Ba.type="number"===typeof this.Ba.type?7:"allpass";this.Ba.frequency.value=a;this.Ba.detune&&(this.Ba.detune.value=d);this.Ba.Q.value=e;this.Ta=v.createOscillator();this.Ta.frequency.value=g;this.Ob=c();this.Ob.gain.value=f;this.P.connect(this.Ba);this.P.connect(this.C);this.Ba.connect(this.D);this.Ta.connect(this.Ob);this.Ob.connect(this.Ba.frequency);
b(this.Ta)}function s(a){this.type="gain";this.Fc=[a];this.S=c();this.S.gain.value=a}function q(a,d){this.type="tremolo";this.Fc=[a,d];this.S=c();this.S.gain.value=1-d/2;this.Ta=v.createOscillator();this.Ta.frequency.value=a;this.Ob=c();this.Ob.gain.value=d/2;this.Ta.connect(this.Ob);this.Ob.connect(this.S.gain);b(this.Ta)}function r(a,d){this.type="ringmod";this.Fc=[a,d];this.P=c();this.D=c();this.D.gain.value=d;this.C=c();this.C.gain.value=1-d;this.Qg=c();this.Qg.gain.value=0;this.Ta=v.createOscillator();
this.Ta.frequency.value=a;this.Ta.connect(this.Qg.gain);b(this.Ta);this.P.connect(this.Qg);this.P.connect(this.C);this.Qg.connect(this.D)}function k(a,b,d,e,f){this.type="distortion";this.Fc=[a,b,d,e,f];this.P=c();this.ti=c();this.si=c();this.Sr(d,Math.pow(10,e/20));this.D=c();this.D.gain.value=f;this.C=c();this.C.gain.value=1-f;this.Ui=v.createWaveShaper();this.wh=new Float32Array(65536);this.pq(a,b);this.Ui.wh=this.wh;this.P.connect(this.ti);this.P.connect(this.C);this.ti.connect(this.Ui);this.Ui.connect(this.si);
this.si.connect(this.D)}function e(a,b,c,d,e){this.type="compressor";this.Fc=[a,b,c,d,e];this.S=v.createDynamicsCompressor();try{this.S.threshold.value=a,this.S.knee.value=b,this.S.ratio.value=c,this.S.attack.value=d,this.S.release.value=e}catch(f){}}function m(a,b){this.type="analyser";this.Fc=[a,b];this.S=v.createAnalyser();this.S.fftSize=a;this.S.smoothingTimeConstant=b;this.nq=new Float32Array(this.S.frequencyBinCount);this.bo=new Uint8Array(a);this.Jg=0}function B(){this.K=null;this.fi=0;this.ae=
[];this.wk=this.Xh=this.Wh=0}function K(a,b){this.src=a;this.ba=E;this.Cc=b;this.Ql=!1;var d=this;this.uk=this.Lk=null;this.wf=[];this.Gi=0;this.ho=this.oi=!1;E===w&&b&&(this.ba=I,this.Lk=c());this.ih=this.pa=null;var e;switch(this.ba){case I:this.pa=new Audio;E!==w||!v.createMediaElementSource||z.Mm||/wiiu/i.test(navigator.userAgent)||(this.ho=!0,this.pa.addEventListener("canplay",function(){d.uk||(d.uk=v.createMediaElementSource(d.pa),d.uk.connect(d.Lk))}));this.pa.autoplay=!1;this.pa.Ot="auto";
this.pa.src=a;break;case w:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.ih=e.response;d.tp()};e.send();break;case P:this.pa=!0;break;case A:this.pa=!0}}function y(a,b){var d=this;this.be=b;this.pc=this.Md=!0;this.src=a.src;this.buffer=a;this.ba=E;this.Cc=a.Cc;this.playbackRate=1;this.Nk=!0;this.sd=this.xd=!1;this.Jc=0;this.kg=this.kf=this.vd=!1;this.Bg=this.volume=1;this.startTime=z.jc.Ea;this.wa=this.Oa=null;this.Uc=!1;this.ua=null;this.Cn=this.Bn=this.An=
this.zn=this.En=this.Dn=0;this.k=null;var e=!1;this.ba!==w||this.buffer.ba!==I||this.buffer.ho||(this.ba=I);switch(this.ba){case I:this.Cc?(this.k=a.pa,e=!a.Ql,a.Ql=!0):(this.k=new Audio,this.k.autoplay=!1,this.k.src=a.pa.src,e=!0);e&&this.k.addEventListener("ended",function(){O=d.be;d.pc=!0;z.trigger(gc.prototype.i.Vi,D)});break;case w:this.Oa=c();this.Oa.connect(n(b));this.buffer.ba===w?a.pa&&(this.k=v.createBufferSource(),this.k.buffer=a.pa,this.k.connect(this.Oa)):(this.k=this.buffer.pa,this.buffer.Lk.connect(this.Oa));
break;case P:this.k=new window.Media(G+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Nk=!0,d.pc=!0,O=d.be,z.trigger(gc.prototype.i.Vi,D))});break;case A:this.k=!0}}function L(a){wa.length=0;if(a.length){var b,c,d;b=0;for(c=C.length;b<c;b++)d=C[b],fb(a,d.be)&&wa.push(d)}else ia&&!ia.dg()&&(wa.length=1,wa[0]=ia)}function H(a,b){Q.hasOwnProperty(a)?Q[a].push(b):Q[a]=[b];var c,d,e,f,g=v.destination;if(Q.hasOwnProperty(a)&&(e=Q[a],e.length))for(g=e[0].Vb(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.$b(v.destination):f.$b(e[c+1].Vb());L(a);c=0;for(d=wa.length;c<d;c++)wa[c].Hr(g);Ba&&nb===a&&(Ba.disconnect(),Ba.connect(g))}function ca(){}function ma(){}var M=gc.prototype;M.Rb=function(a){this.Ha=a;this.b=a.b};M.Rb.prototype.va=aa();var z=null,D=null,O="",G="",I=0,w=1,P=2,A=3,E=I,v=null,V=[],C=[],ia=null,$a=!1,ab=0,ra=!1,sa=1,Fa=0,Ga=0,ob=1,pb=1,ic=10,jc=1E4,kc=1,Ba=null,nb="",Ma=!1,Na=[],Q={},mc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.$b=
function(a){this.D.disconnect();this.D.connect(a);this.C.disconnect();this.C.connect(a)};f.prototype.remove=function(){this.P.disconnect();this.Ba.disconnect();this.D.disconnect();this.C.disconnect()};f.prototype.Vb=F("P");t.prototype.$b=function(a){this.D.disconnect();this.D.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.P.disconnect();this.Ag.disconnect();this.cc.disconnect();this.yh.disconnect();this.D.disconnect();this.C.disconnect()};t.prototype.Vb=F("P");
p.prototype.$b=function(a){this.D.disconnect();this.D.connect(a);this.C.disconnect();this.C.connect(a)};p.prototype.remove=function(){this.P.disconnect();this.ne.disconnect();this.D.disconnect();this.C.disconnect()};p.prototype.Vb=F("P");u.prototype.$b=function(a){this.C.disconnect();this.C.connect(a);this.D.disconnect();this.D.connect(a)};u.prototype.remove=function(){this.P.disconnect();this.cc.disconnect();this.Ta.disconnect();this.Ob.disconnect();this.C.disconnect();this.D.disconnect();this.Eh.disconnect()};
u.prototype.Vb=F("P");l.prototype.$b=function(a){this.C.disconnect();this.C.connect(a);this.D.disconnect();this.D.connect(a)};l.prototype.remove=function(){this.P.disconnect();this.Ba.disconnect();this.Ta.disconnect();this.Ob.disconnect();this.C.disconnect();this.D.disconnect()};l.prototype.Vb=F("P");s.prototype.$b=function(a){this.S.disconnect();this.S.connect(a)};s.prototype.remove=function(){this.S.disconnect()};s.prototype.Vb=F("S");q.prototype.$b=function(a){this.S.disconnect();this.S.connect(a)};
q.prototype.remove=function(){this.Ta.disconnect();this.Ob.disconnect();this.S.disconnect()};q.prototype.Vb=F("S");r.prototype.$b=function(a){this.D.disconnect();this.D.connect(a);this.C.disconnect();this.C.connect(a)};r.prototype.remove=function(){this.Ta.disconnect();this.Qg.disconnect();this.P.disconnect();this.D.disconnect();this.C.disconnect()};r.prototype.Vb=F("P");k.prototype.Sr=function(a,b){0.01>a&&(a=0.01);this.ti.gain.value=a;this.si.gain.value=Math.pow(1/a,0.6)*b};k.prototype.shape=function(a,
b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};k.prototype.pq=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.wh[32768+f]=e,this.wh[32768-f-1]=-e};k.prototype.$b=function(a){this.D.disconnect();this.D.connect(a);this.C.disconnect();this.C.connect(a)};k.prototype.remove=function(){this.P.disconnect();this.ti.disconnect();this.Ui.disconnect();this.si.disconnect();this.D.disconnect();
this.C.disconnect()};k.prototype.Vb=F("P");e.prototype.$b=function(a){this.S.disconnect();this.S.connect(a)};e.prototype.remove=function(){this.S.disconnect()};e.prototype.Vb=F("S");m.prototype.mb=function(){this.S.getFloatFrequencyData(this.nq);this.S.getByteTimeDomainData(this.bo);for(var a=this.S.fftSize,b=0,c=this.Jg=0,e=0;b<a;b++)e=(this.bo[b]-128)/128,0>e&&(e=-e),this.Jg<e&&(this.Jg=e),c+=e*e;this.Jg=d(this.Jg);d(Math.sqrt(c/a))};m.prototype.$b=function(a){this.S.disconnect();this.S.connect(a)};
m.prototype.remove=function(){this.S.disconnect()};m.prototype.Vb=F("S");B.prototype.Rg=function(a){if(this.K=a)this.Wh=this.K.x,this.Xh=this.K.y;this.ae.length=0};B.prototype.Oh=function(){return!!this.K};B.prototype.mb=function(a){this.K&&0!==a&&(this.wk=Ka(this.Wh,this.Xh,this.K.x,this.K.y),a=Sa(this.Wh,this.Xh,this.K.x,this.K.y)/a,4>this.ae.length||this.ae.shift(),this.ae.push(a),this.Wh=this.K.x,this.Xh=this.K.y)};B.prototype.Am=function(){if(!this.ae.length)return 0;var a,b,c=0;a=0;for(b=this.ae.length;a<
b;a++)c+=this.ae[a];return c/this.ae.length};B.prototype.Oj=function(){return Math.cos(this.wk)*this.Am()};B.prototype.Pj=function(){return Math.sin(this.wk)*this.Am()};var lc=!1;K.prototype.tp=function(){if(!this.pa&&this.ih){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.ih,function(b){a.pa=b;var c,d,e;if(fa(a.pi)||ra)fa(a.sh)||(c=a.sh.ne,c.normalize=a.pn,c.buffer=b);else if(a.wf.length){c=0;for(d=a.wf.length;c<d;c++){b=a.wf[c];e=new y(a,b.lo);e.dl(!0);if("undefined"!==typeof b.rn&&(b.K=
z.cf(b.rn),!b.K))continue;if(b.K){var f=Ra(b.K.x,b.K.y,-b.K.e.Pa(),Fa,Ga,!0),g=Ra(b.K.x,b.K.y,-b.K.e.Pa(),Fa,Ga,!1);e.cl(f,g,Da(b.K.j-b.K.e.Pa()),b.Tj,b.yk,b.Bk);e.Rg(b.K)}else e.cl(b.x,b.y,b.Xo,b.Tj,b.yk,b.Bk);e.play(a.sk,a.yl,a.Gi);a.oi&&e.pause();C.push(e)}a.wf.length=0}else e=new y(a,a.pi),e.play(a.sk,a.yl,a.Gi),a.oi&&e.pause(),C.push(e)});else if(this.pa=v.createBuffer(this.ih,!1),fa(this.pi)||ra)fa(this.sh)||(b=this.sh.ne,b.normalize=this.pn,b.buffer=this.pa);else{var b=new y(this,this.pi);
b.play(this.sk,this.yl,this.Gi);this.oi&&b.pause();C.push(b)}}};y.prototype.dg=function(){switch(this.ba){case I:return this.k.ended;case w:return this.buffer.ba===w?!this.Md&&!this.pc&&this.k.loop||this.sd?!1:z.jc.Ea-this.startTime>this.buffer.pa.duration:this.k.ended;case P:return this.Nk;case A:!0}return!0};y.prototype.kp=function(){return this.Md||this.pc?!0:this.dg()};y.prototype.dl=function(a){E===w&&(!this.Uc&&a?this.Oa&&(this.wa||(this.wa=v.createPanner(),this.wa.panningModel="number"===typeof this.wa.panningModel?
ob:["equalpower","HRTF","soundfield"][ob],this.wa.distanceModel="number"===typeof this.wa.distanceModel?pb:["linear","inverse","exponential"][pb],this.wa.refDistance=ic,this.wa.maxDistance=jc,this.wa.rolloffFactor=kc),this.Oa.disconnect(),this.Oa.connect(this.wa),this.wa.connect(n(this.be)),this.Uc=!0):this.Uc&&!a&&this.Oa&&(this.wa.disconnect(),this.Oa.disconnect(),this.Oa.connect(n(this.be)),this.Uc=!1))};y.prototype.cl=function(a,b,c,d,e,f){this.Uc&&E===w&&(this.wa.setPosition(a,b,0),this.wa.setOrientation(Math.cos(S(c)),
Math.sin(S(c)),0),this.wa.coneInnerAngle=d,this.wa.coneOuterAngle=e,this.wa.coneOuterGain=f,this.Dn=a,this.En=b,this.zn=c,this.An=d,this.Bn=e,this.Cn=f)};y.prototype.Rg=function(a){this.Uc&&E===w&&(this.ua||(this.ua=new B),this.ua.Rg(a))};y.prototype.mb=function(a){if(this.Uc&&E===w&&this.ua&&this.ua.Oh()&&this.gf()){this.ua.mb(a);a=this.ua.K;var b=Ra(a.x,a.y,-a.e.Pa(),Fa,Ga,!0),c=Ra(a.x,a.y,-a.e.Pa(),Fa,Ga,!1);this.wa.setPosition(b,c,0);b=0;"undefined"!==typeof this.ua.K.j&&(b=a.j-a.e.Pa(),this.wa.setOrientation(Math.cos(b),
Math.sin(b),0));b=Ra(this.ua.Oj(),this.ua.Pj(),-a.e.Pa(),0,0,!0);c=Ra(this.ua.Oj(),this.ua.Pj(),-a.e.Pa(),0,0,!1);this.wa.setVelocity(b,c,0)}};y.prototype.play=function(c,d,e){var f=this.k;this.vd=c;this.volume=d;e=e||0;switch(this.ba){case I:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==d*sa&&(f.volume=d*sa);f.loop!==c&&(f.loop=c);f.muted&&(f.muted=!1);if(f.currentTime!==e)try{f.currentTime=e}catch(g){}if(this.Cc&&Ma&&!z.Za)Na.push(this);else try{this.k.play()}catch(k){}break;case w:this.muted=
!1;this.Bg=1;if(this.buffer.ba===w)this.Md||(this.k=v.createBufferSource(),this.k.buffer=this.buffer.pa,this.k.connect(this.Oa)),this.k.loop=c,this.Oa.gain.value=d*sa,0===e?b(this.k):a(this.k,e,this.bf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==c&&(f.loop=c);this.Oa.gain.value=d*sa;if(f.currentTime!==e)try{f.currentTime=e}catch(m){}this.Cc&&Ma&&!z.Za?Na.push(this):f.play()}break;case P:(!this.Md&&this.pc||0!==e)&&f.seekTo(e);f.play();this.Nk=!1;break;case A:z.zb?AppMobi.context.playSound(this.src,
c):AppMobi.player.playSound(this.src,c)}this.playbackRate=1;this.startTime=z.jc.Ea-e;this.sd=this.pc=this.Md=!1};y.prototype.stop=function(){switch(this.ba){case I:this.k.paused||this.k.pause();break;case w:this.buffer.ba===w?g(this.k):this.k.paused||this.k.pause();break;case P:this.k.stop();break;case A:z.zb&&AppMobi.context.stopSound(this.src)}this.pc=!0;this.sd=!1};y.prototype.pause=function(){if(!(this.Md||this.pc||this.dg()||this.sd)){switch(this.ba){case I:this.k.paused||this.k.pause();break;
case w:this.buffer.ba===w?(this.Jc=this.Mj(),this.vd&&(this.Jc%=this.bf()),g(this.k)):this.k.paused||this.k.pause();break;case P:this.k.pause();break;case A:z.zb&&AppMobi.context.stopSound(this.src)}this.sd=!0}};y.prototype.Hr=function(a){this.ba===w&&(this.Uc?(this.wa.disconnect(),this.wa.connect(a)):(this.Oa.disconnect(),this.Oa.connect(a)))};y.prototype.bf=function(){switch(this.ba){case I:if("undefined"!==typeof this.k.duration)return this.k.duration;break;case w:return this.buffer.pa.duration;
case P:return this.k.getDuration();case A:if(z.zb)return AppMobi.context.getDurationSound(this.src)}return 0};y.prototype.Mj=function(){var a=this.bf(),b=0;switch(this.ba){case I:"undefined"!==typeof this.k.currentTime&&(b=this.k.currentTime);break;case w:if(this.buffer.ba===w){if(this.sd)return this.Jc;b=z.jc.Ea-this.startTime}else"undefined"!==typeof this.k.currentTime&&(b=this.k.currentTime);break;case A:z.zb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.vd&&b>a&&(b=a);return b};y.prototype.gf=
function(){return!this.sd&&!this.Md&&!this.pc&&!this.dg()};y.prototype.gs=function(){var a=this.volume*sa;switch(this.ba){case I:this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case w:this.Oa.gain.value=a*this.Bg}};y.prototype.Ah=function(a){switch(this.ba){case I:this.k.muted!==!!a&&(this.k.muted=!!a);break;case w:this.Bg=a?0:1,this.Oa.gain.value=sa*this.volume*this.Bg}};y.prototype.Tr=function(){this.kf=!0;this.Ah(this.kf||this.kg)};y.prototype.Wn=function(a){this.kg=!!a;this.Ah(this.kf||
this.kg)};y.prototype.zo=function(){var a=this.playbackRate;if(1===ab&&!this.Cc||2===ab)a*=z.Ef;switch(this.ba){case I:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case w:this.buffer.ba===w?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};y.prototype.Ur=function(b){switch(this.ba){case I:b?this.gf()?(this.k.pause(),this.xd=!0):this.xd=!1:this.xd&&this.k.play();break;case w:b?this.gf()?(this.buffer.ba===w?(this.Jc=this.Mj(),this.vd&&
(this.Jc%=this.bf()),g(this.k)):this.k.pause(),this.xd=!0):this.xd=!1:this.xd&&(this.buffer.ba===w?(this.k=v.createBufferSource(),this.k.buffer=this.buffer.pa,this.k.connect(this.Oa),this.k.loop=this.vd,this.Oa.gain.value=sa*this.volume*this.Bg,this.startTime=z.jc.Ea-this.Jc,a(this.k,this.Jc,this.bf())):this.k.play());break;case P:b?this.gf()?(this.k.pause(),this.xd=!0):this.xd=!1:this.xd&&this.k.play()}};M.hb=function(a){this.type=a;z=this.b=a.b;D=this;this.jb=null;this.tg=-600;!(this.b.fk||this.b.Qh&&
(this.b.hg||this.b.Lm))||this.b.Rh||this.b.ta||(Ma=!0);v=null;"undefined"!==typeof AudioContext?(E=w,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=w,v=new webkitAudioContext);(this.b.fk&&E===w||Ma)&&document.addEventListener("touchstart",function(){var a,c,d;!lc&&v&&(a=v.createBuffer(1,1,22050),c=v.createBufferSource(),c.buffer=a,c.connect(v.destination),b(c),lc=!0);if(Ma){if(!ra)for(a=0,c=Na.length;a<c;++a)d=Na[a],d.pc||d.sd||d.k.play();Na.length=0}},!0);E!==w&&(this.b.xe?E=P:this.b.ff&&
(E=A));E===P&&(G=location.href,a=G.lastIndexOf("/"),-1<a&&(G=G.substr(0,a+1)),G=G.replace("file://",""));if(this.b.Om&&this.b.er&&"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.he(this);else{if(this.b.zb)$a=this.b.Qh;else try{$a=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){$a=!1}this.b.mo(this)}};var ta=M.hb.prototype;ta.va=function(){ab=this.da[0];this.yd=this.da[1];
ob=this.da[2];pb=this.da[3];this.tg=-this.da[4];ic=this.da[5];jc=this.da[6];kc=this.da[7];this.jb=new B;E===w&&(v.listener.speedOfSound=this.da[8],v.listener.dopplerFactor=this.da[9],v.listener.setPosition(this.b.N/2,this.b.M/2,this.tg),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ba&&Ba.disconnect();nb=b.toLowerCase();Ba=v.createMediaStreamSource(a);Ba.connect(n(nb))});this.b.cp(function(a){D.wr(a)});var a=this;this.b.aj(function(b){a.Ck(b)})};ta.Ck=function(a){var b,
c,d;b=0;for(c=C.length;b<c;b++)d=C[b],d.ua&&d.ua.K===a&&(d.ua.K=null,d.Uc&&d.gf()&&d.vd&&d.stop());this.jb.K===a&&(this.jb.K=null)};ta.mc=function(){var a={silent:ra,masterVolume:sa,listenerZ:this.tg,listenerUid:this.jb.Oh()?this.jb.K.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,k;c=0;for(d=C.length;c<d;c++)e=C[c],!e.gf()||3===this.yd||e.Cc&&1===this.yd||!e.Cc&&2===this.yd||(f=e.Mj(),e.vd&&(f%=e.bf()),f={tag:e.be,buffersrc:e.buffer.src,is_music:e.Cc,playbackTime:f,volume:e.volume,looping:e.vd,
muted:e.kf,playbackRate:e.playbackRate,paused:e.sd,resume_position:e.Jc},e.Uc&&(f.pan={},k=f.pan,e.ua&&e.ua.Oh()?k.objUid=e.ua.K.uid:(k.x=e.Dn,k.y=e.En,k.a=e.zn),k.ia=e.An,k.oa=e.Bn,k.og=e.Cn),b.push(f));b=a.effects;for(g in Q)if(Q.hasOwnProperty(g)){e=[];c=0;for(d=Q[g].length;c<d;c++)e.push({type:Q[g][c].type,params:Q[g][c].Fc});b[g]=e}return a};var Oa=[];ta.Tc=function(a){var b=a.silent;sa=a.masterVolume;this.tg=a.listenerZ;this.jb.Rg(null);var c=a.listenerUid;-1!==c&&(this.jb.fi=c,Oa.push(this.jb));
var c=a.playing,d,g,h,n,y,K,L,w,v,x,ca;if(3!==this.yd)for(d=0,g=C.length;d<g;d++)v=C[d],v.Cc&&1===this.yd||(v.Cc||2!==this.yd)&&v.stop();for(y in Q)if(Q.hasOwnProperty(y))for(d=0,g=Q[y].length;d<g;d++)Q[y][d].remove();Va(Q);for(y in a.effects)if(a.effects.hasOwnProperty(y))for(K=a.effects[y],d=0,g=K.length;d<g;d++)switch(h=K[d].type,x=K[d].params,h){case "filter":H(y,new f(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":H(y,new t(x[0],x[1],x[2]));break;case "convolve":h=x[2];v=this.Fj(h,!1);v.pa?
h=new p(v.pa,x[0],x[1],h):(h=new p(null,x[0],x[1],h),v.pn=x[0],v.sh=h);H(y,h);break;case "flanger":H(y,new u(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":H(y,new l(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":H(y,new s(x[0]));break;case "tremolo":H(y,new q(x[0],x[1]));break;case "ringmod":H(y,new r(x[0],x[1]));break;case "distortion":H(y,new k(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":H(y,new e(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":H(y,new m(x[0],x[1]))}d=0;for(g=c.length;d<
g;d++)3===this.yd||(a=c[d],h=a.buffersrc,n=a.is_music,y=a.tag,K=a.playbackTime,L=a.looping,w=a.volume,ca=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,n&&1===this.yd)||!n&&2===this.yd||((v=this.rm(h,y,n,L,w))?(v.Jc=a.resume_position,v.dl(!!x),v.play(L,w,K),v.zo(),v.gs(),v.Ah(v.kf||v.kg),a.paused&&v.pause(),a.muted&&v.Tr(),v.Ah(v.kf||v.kg),x&&(-1!==ca?(v.ua=v.ua||new B,v.ua.fi=ca,Oa.push(v.ua)):v.cl(x.x,x.y,x.a,x.ia,x.oa,x.og))):(v=this.Fj(h,n),v.Gi=K,v.oi=a.paused,x&&(-1!==ca?v.wf.push({rn:ca,
Tj:x.ia,yk:x.oa,Bk:x.og,lo:y}):v.wf.push({x:x.x,y:x.y,Xo:x.a,Tj:x.ia,yk:x.oa,Bk:x.og,lo:y}))));if(b&&!ra){d=0;for(g=C.length;d<g;d++)C[d].Wn(!0);ra=!0}else if(!b&&ra){d=0;for(g=C.length;d<g;d++)C[d].Wn(!1);ra=!1}};ta.Mc=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],d=this.b.cf(c.fi),c.Rg(d),c.fi=-1,d&&(Fa=d.x,Ga=d.y);Oa.length=0};ta.wr=function(a){var b,c;b=0;for(c=C.length;b<c;b++)C[b].Ur(a)};ta.mb=function(){var a=this.b.qe,b,c,d;b=0;for(c=C.length;b<c;b++)d=C[b],d.mb(a),d.ba===I||
d.ba===A||d.Md||d.pc||!d.dg()||(d.pc=!0,O=d.be,z.trigger(gc.prototype.i.Vi,D)),0!==ab&&d.zo();var e,f;for(e in Q)if(Q.hasOwnProperty(e))for(d=Q[e],b=0,c=d.length;b<c;b++)f=d[b],f.mb&&f.mb();E===w&&this.jb.Oh()&&(this.jb.mb(a),Fa=this.jb.K.x,Ga=this.jb.K.y,v.listener.setPosition(this.jb.K.x,this.jb.K.y,this.tg),v.listener.setVelocity(this.jb.Oj(),this.jb.Pj(),0))};ta.Fj=function(a,b){var c,d,e,f=null;c=0;for(d=V.length;c<d;c++)if(e=V[c],e.src===a){f=e;break}f||(f=new K(a,b),V.push(f));return f};ta.rm=
function(a,b,c,d,e){var f,g,k;f=0;for(g=C.length;f<g;f++)if(k=C[f],k.src===a&&(k.kp()||c))return k.be=b,k;a=this.Fj(a,c);if(!a.pa)return"<preload>"!==b&&(a.pi=b,a.sk=d,a.yl=e),null;k=new y(a,b);C.push(k);return k};var wa=[];ca.prototype.Vi=function(a){return fb(O,a)};M.i=new ca;ma.prototype.Play=function(a,b,c,d){!ra&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),ia=this.rm(this.b.nm+a[0]+($a?".ogg":".m4a"),d,a[1],0!==b,c))&&(ia.dl(!1),ia.play(0!==b,c))};ma.prototype.$i=function(a){L(a);var b;a=0;for(b=
wa.length;a<b;a++)wa[a].stop()};ma.prototype.Il=function(){var a,b;a=0;for(b=C.length;a<b;a++)C[a].stop()};M.p=new ma;M.ec=new (aa())})();function X(d){this.b=d}
(function(){function d(){}function n(){}var c=X.prototype;c.Rb=function(a){this.Ha=a;this.b=a.b};c.Rb.prototype.va=aa();c.hb=function(a){this.type=a;this.b=a.b;this.gj=Array(4);this.oo=this.Ri=this.Ff=this.Rd=this.Qd=0;this.Qj=!1};var h=c.hb.prototype;h.va=function(){var a=this;if(!this.b.ta){jQuery(document).mousemove(function(b){a.Gk(b)});jQuery(document).mousedown(function(b){a.Fk(b)});jQuery(document).mouseup(function(b){a.Hk(b)});jQuery(document).dblclick(function(b){a.rr(b)});var b=function(b){a.xr(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var b={left:0,top:0};h.Gk=function(a){var c=this.b.ta?b:jQuery(this.b.canvas).offset();this.Qd=a.pageX-c.left;this.Rd=a.pageY-c.top};h.ln=function(){return 0<this.b.wb?!0:0<=this.Qd&&0<=this.Rd&&this.Qd<this.b.width&&this.Rd<this.b.height};h.Fk=function(a){this.ln()&&(this.b.df&&!this.b.Sc&&a.preventDefault(),this.gj[a.which]=!0,this.b.Za=!0,this.b.trigger(X.prototype.i.ie,this),this.Ff=a.which-1,this.Ri=
0,this.b.trigger(X.prototype.i.Bl,this),this.b.trigger(X.prototype.i.Fl,this),this.b.Za=!1)};h.Hk=function(a){this.gj[a.which]&&(this.b.df&&!this.b.Sc&&a.preventDefault(),this.b.df=!0,this.gj[a.which]=!1,this.b.Za=!0,this.Ff=a.which-1,this.b.trigger(X.prototype.i.Uo,this),this.b.Za=!1)};h.rr=function(a){this.ln()&&(a.preventDefault(),this.b.Za=!0,this.Ff=a.which-1,this.Ri=1,this.b.trigger(X.prototype.i.Bl,this),this.b.trigger(X.prototype.i.Fl,this),this.b.Za=!1)};h.xr=function(a){this.oo=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Qj=!1;this.b.Za=!0;this.b.trigger(X.prototype.i.Wo,this);this.b.Za=!1;this.Qj&&a.preventDefault()};d.prototype.Bl=function(a,b){return a===this.Ff&&b===this.Ri};d.prototype.ie=J(!0);d.prototype.Uo=function(a){return a===this.Ff};d.prototype.Fl=function(a,b,c){return a!==this.Ff||b!==this.Ri?!1:this.b.jo(c,this.Qd,this.Rd)};d.prototype.Wo=function(a){this.Qj=!0;return a===this.oo};c.i=new d;c.p=new (aa());n.prototype.Jl=function(a,b){var c,d,h,n,l;fa(b)?
(c=this.b.nd(0),d=c.scale,h=c.gb,n=c.Bb,l=c.j,c.scale=this.b.T.scale,c.gb=1,c.Bb=1,c.j=this.b.T.j,a.r(c.Va(this.Qd,this.Rd,!0)),c.scale=d,c.gb=h,c.Bb=n,c.j=l):(c=ga(b)?this.b.nd(b):this.b.$f(b))?a.r(c.Va(this.Qd,this.Rd,!0)):a.r(0)};n.prototype.Kl=function(a,b){var c,d,h,n,l;fa(b)?(c=this.b.nd(0),d=c.scale,h=c.gb,n=c.Cb,l=c.j,c.scale=this.b.T.scale,c.gb=1,c.Cb=1,c.j=this.b.T.j,a.r(c.Va(this.Qd,this.Rd,!1)),c.scale=d,c.gb=h,c.Cb=n,c.j=l):(c=ga(b)?this.b.nd(b):this.b.$f(b))?a.r(c.Va(this.Qd,this.Rd,
!1)):a.r(0)};c.ec=new n})();function W(d){this.b=d}
(function(){function d(){if(0===this.sj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Bf?b.drawImage(this.L,this.uf,this.vf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.L,0,0,this.width,this.height);this.sj=a.toDataURL("image/png")}return this.sj}function n(){}function c(a){a[0]=0;a[1]=0;a[2]=0;l.push(a)}function h(a,b){return a<b?""+a+","+b:""+b+","+a}function b(a,b,c,d){b=b.uid;c=c.uid;var f=h(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var g=l.length?l.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[f]=g}}function a(a,b,d){b=h(b.uid,d.uid);a.hasOwnProperty(b)&&(c(a[b]),delete a[b])}function g(a,b,c){b=h(b.uid,c.uid);if(a.hasOwnProperty(b))return s=a[b][2],!0;s=-2;return!1}var f=W.prototype;f.Rb=function(a){this.Ha=a;this.b=a.b};var t=f.Rb.prototype;t.va=function(){if(!this.G){var a,b,c,f,g,k,h,l,n;this.wc=[];this.Ph=!1;a=0;for(b=this.Hb.length;a<b;a++){g=this.Hb[a];h={};h.name=g[0];h.speed=g[1];h.loop=g[2];h.Xk=g[3];h.Ci=g[4];h.Hn=
g[5];h.O=g[6];h.frames=[];c=0;for(f=g[7].length;c<f;c++)k=g[7][c],l={},l.ll=k[0],l.ml=k[1],l.uf=k[2],l.vf=k[3],l.width=k[4],l.height=k[5],l.duration=k[6],l.xb=k[7],l.yb=k[8],l.Vj=k[9],l.qi=k[10],l.In=k[11],l.Bf=0!==l.width,l.sj="",l.Gt=d,n={left:0,top:0,right:1,bottom:1},l.el=n,l.ma=null,(n=this.b.mq(k[0]))?l.L=n:(l.L=new Image,l.L.idtkLoadDisposed=!0,l.L.src=k[0],l.L.qp=k[0],l.L.dm=k[1],l.L.jp=null,this.b.Co(l.L)),h.frames.push(l),this.wc.push(l);this.Hb[a]=h}}};t.es=function(){var a,b,c;a=0;for(b=
this.c.length;a<b;a++)c=this.c[a],c.vh=c.ac.ma};t.Ek=function(){if(!this.G){var a,b,c;a=0;for(b=this.wc.length;a<b;++a)c=this.wc[a],c.L.jp=null,c.ma=null}};t.Ik=function(){if(!this.G&&this.c.length){var a,b,c;a=0;for(b=this.wc.length;a<b;++a)c=this.wc[a],c.ma=this.b.u.ei(c.L,!1,this.b.X,c.In);this.es()}};t.nk=function(){if(!this.G&&!this.Ph&&this.b.u){var a,b,c;a=0;for(b=this.wc.length;a<b;++a)c=this.wc[a],c.ma=this.b.u.ei(c.L,!1,this.b.X,c.In);this.Ph=!0}};t.tl=function(){if(!this.G&&!this.c.length&&
this.Ph){var a,b,c;a=0;for(b=this.wc.length;a<b;++a)c=this.wc[a],this.b.u.deleteTexture(c.ma),c.ma=null;this.Ph=!1}};var p=[];t.Rk=function(a){var b,c,d;b=p.length=0;for(c=this.wc.length;b<c;++b)d=this.wc[b].L,-1===p.indexOf(d)&&(a.drawImage(d,0,0),p.push(d))};f.hb=function(a){this.type=a;this.b=a.b;a=this.type.Hb[0].frames[0].qi;this.Ic?this.V.Tg(a):this.V=new Za(a)};var u=f.hb.prototype;u.va=function(){this.visible=0===this.da[0];this.fd=0!==this.da[3];1===this.type.Hb.length&&1===this.type.Hb[0].frames.length||
0===this.type.Hb[0].speed||this.b.mo(this);this.qa=this.qm(this.da[1])||this.type.Hb[0];this.q=this.da[2];0>this.q&&(this.q=0);this.q>=this.qa.frames.length&&(this.q=this.qa.frames.length-1);var a=this.qa.frames[this.q];this.V.Tg(a.qi);this.xb=a.xb;this.yb=a.yb;this.Tf=this.qa.speed;this.Ic?this.Nc.reset():this.Nc=new Xa;this.ld=this.Nc.Ea;this.le=!0;this.cd=0;this.ke=!0;this.kj=this.Rl="";this.np=0;this.jj=-1;this.type.nk();var b,c,d,f,g,k,h,a=0;for(b=this.type.Hb.length;a<b;a++)for(f=this.type.Hb[a],
c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.L.width,g.height=g.L.height),g.Bf&&(h=g.L,k=g.el,k.left=g.uf/h.width,k.top=g.vf/h.height,k.right=(g.uf+g.width)/h.width,k.bottom=(g.vf+g.height)/h.height,0===g.uf&&0===g.vf&&g.width===h.width&&g.height===h.height&&(g.Bf=!1));this.ac=this.qa.frames[this.q];this.vh=this.ac.ma};u.mc=function(){var a={a:this.qa.O,f:this.q,cas:this.Tf,fs:this.ld,ar:this.cd,at:this.Nc.Ea};this.le||(a.ap=this.le);this.ke||(a.af=this.ke);return a};u.Tc=function(a){var b=
this.qq(a.a);b&&(this.qa=b);this.q=a.f;0>this.q&&(this.q=0);this.q>=this.qa.frames.length&&(this.q=this.qa.frames.length-1);this.Tf=a.cas;this.ld=a.fs;this.cd=a.ar;this.Nc.reset();this.Nc.Ea=a.at;this.le=a.hasOwnProperty("ap")?a.ap:!0;this.ke=a.hasOwnProperty("af")?a.af:!0;this.ac=this.qa.frames[this.q];this.vh=this.ac.ma;this.V.Tg(this.ac.qi);this.xb=this.ac.xb;this.yb=this.ac.yb};u.dj=function(a){this.q=a?0:this.qa.frames.length-1;this.le=!1;this.Rl=this.qa.name;this.b.trigger(W.prototype.i.Jo,
this);this.b.trigger(W.prototype.i.Io,this);this.cd=0};u.Jt=function(){return this.Nc.Ea};u.mb=function(){this.Nc.add(this.b.Ij(this));this.kj.length&&this.wp();0<=this.jj&&this.xp();var a=this.Nc.Ea,b=this.qa,c=b.frames[this.q],d=c.duration/this.Tf;this.le&&a>=this.ld+d&&(this.ke?this.q++:this.q--,this.ld+=d,this.q>=b.frames.length&&(b.Hn?(this.ke=!1,this.q=b.frames.length-2):b.loop?this.q=b.Ci:(this.cd++,this.cd>=b.Xk?this.dj(!1):this.q=b.Ci)),0>this.q&&(b.Hn?(this.q=1,this.ke=!0,b.loop||(this.cd++,
this.cd>=b.Xk&&this.dj(!0))):b.loop?this.q=b.Ci:(this.cd++,this.cd>=b.Xk?this.dj(!0):this.q=b.Ci)),0>this.q?this.q=0:this.q>=b.frames.length&&(this.q=b.frames.length-1),a>this.ld+b.frames[this.q].duration/this.Tf&&(this.ld=a),a=b.frames[this.q],this.Qe(c,a),this.b.ka=!0)};u.qm=function(a){var b,c,d;b=0;for(c=this.type.Hb.length;b<c;b++)if(d=this.type.Hb[b],fb(d.name,a))return d;return null};u.qq=function(a){var b,c,d;b=0;for(c=this.type.Hb.length;b<c;b++)if(d=this.type.Hb[b],d.O===a)return d;return null};
u.wp=function(){var a=this.qa.frames[this.q],b=this.qm(this.kj);this.kj="";!b||fb(b.name,this.qa.name)&&this.le||(this.qa=b,this.Tf=b.speed,0>this.q&&(this.q=0),this.q>=this.qa.frames.length&&(this.q=this.qa.frames.length-1),1===this.np&&(this.q=0),this.le=!0,this.ld=this.Nc.Ea,this.ke=!0,this.Qe(a,this.qa.frames[this.q]),this.b.ka=!0)};u.xp=function(){var a=this.qa.frames[this.q],b=this.q;this.q=R(this.jj);0>this.q&&(this.q=0);this.q>=this.qa.frames.length&&(this.q=this.qa.frames.length-1);b!==this.q&&
(this.Qe(a,this.qa.frames[this.q]),this.ld=this.Nc.Ea,this.b.ka=!0);this.jj=-1};u.Qe=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.xb=b.xb;this.yb=b.yb;this.V.Tg(b.qi);this.B();this.ac=b;this.vh=b.ma;c=0;for(d=this.J.length;c<d;c++)f=this.J[c],f.ur&&f.ur(a,b);this.b.trigger(W.prototype.i.Qe,this)};u.Jd=function(a){a.globalAlpha=this.opacity;var b=this.ac,c=b.Bf,d=b.L,f=this.x,g=this.y,k=this.width,h=this.height;if(0===this.j&&0<=
k&&0<=h)f-=this.xb*k,g-=this.yb*h,this.b.Ud&&(f=f+0.5|0,g=g+0.5|0),c?a.drawImage(d,b.uf,b.vf,b.width,b.height,f,g,k,h):a.drawImage(d,f,g,k,h);else{this.b.Ud&&(f=f+0.5|0,g=g+0.5|0);a.save();var l=0<k?1:-1,n=0<h?1:-1;a.translate(f,g);1===l&&1===n||a.scale(l,n);a.rotate(this.j*l*n);f=0-this.xb*ka(k);g=0-this.yb*ka(h);c?a.drawImage(d,b.uf,b.vf,b.width,b.height,f,g,ka(k),ka(h)):a.drawImage(d,f,g,ka(k),ka(h));a.restore()}};u.zc=function(a){a.Yb(this.vh);a.xf(this.opacity);var b=this.ac,c=this.Ub;if(this.b.Ud){var d=
(this.x+0.5|0)-this.x,f=(this.y+0.5|0)-this.y;b.Bf?a.wd(c.La+d,c.Ma+f,c.Db+d,c.Eb+f,c.sb+d,c.tb+f,c.qb+d,c.rb+f,b.el):a.yi(c.La+d,c.Ma+f,c.Db+d,c.Eb+f,c.sb+d,c.tb+f,c.qb+d,c.rb+f)}else b.Bf?a.wd(c.La,c.Ma,c.Db,c.Eb,c.sb,c.tb,c.qb,c.rb,b.el):a.yi(c.La,c.Ma,c.Db,c.Eb,c.sb,c.tb,c.qb,c.rb)};u.uq=function(a){var b=this.ac,c,d;c=0;for(d=b.Vj.length;c<d;c++)if(fb(a,b.Vj[c][0]))return c;return-1};u.Lj=function(a,b){var c=this.ac,d=c.Vj,f;f=N(a)?this.uq(a):a-1;f=R(f);if(0>f||f>=d.length)return b?this.x:this.y;
var g=(d[f][1]-c.xb)*this.width,d=d[f][2],d=(d-c.yb)*this.height,c=Math.cos(this.j);f=Math.sin(this.j);var k=g*c-d*f,d=d*c+g*f,g=k+this.x,d=d+this.y;return b?g:d};var l=[],s=-2,q=[];n.prototype.Bd=function(d){if(!d)return!1;var f=this.b,k=f.um(),h=k.type;k.ca.mj||(k.ca.mj={},f.aj(function(a){return function(b){b=b.uid;var d,e;for(d in a)a.hasOwnProperty(d)&&(e=a[d],e[0]===b||e[1]===b)&&(c(a[d]),delete a[d])}}(k.ca.mj)));var k=k.ca.mj,l=h.Y(),n=d.Y(),l=l.gc(),r,p,t,u,z,D,O,G=this.b.Df,I=G-1,w=f.eb().Kb;
for(p=0;p<l.length;p++){t=l[p];n.fa?(t.ya(),this.b.tm(t.e,d,t.za,q),r=q):r=n.gc();for(u=0;u<r.length;u++)z=r[u],f.rc(t,z)||f.op(t,z)?(D=g(k,t,z),D=!D||s<I,b(k,t,z,G),D&&(f.wi(w.ja),D=h.Y(),O=d.Y(),D.fa=!1,O.fa=!1,h===d?(D.c.length=2,D.c[0]=t,D.c[1]=z,h.yc()):(D.c.length=1,O.c.length=1,D.c[0]=t,O.c[0]=z,h.yc(),d.yc()),w.Kr(),f.He(w.ja))):a(k,t,z);q.length=0}return!1};var r=new da,k=!1;t.finish=function(a){if(k){if(a){var b=this.b.eb().Kb.Ec;a=null.Y();var c=r.Hf(),d,f;if(a.fa){a.fa=!1;a.c.length=c.length;
d=0;for(f=c.length;d<f;d++)a.c[d]=c[d];if(b)for(d=a.W.length=0,f=null.c.length;d<f;d++)c=null.c[d],r.contains(c)||a.W.push(c)}else if(b)for(b=a.c.length,a.c.length=b+c.length,d=0,f=c.length;d<f;d++)a.c[b+d]=c[d],Ca(a.W,c[d]);else za(a.c,c);null.yc()}r.clear();k=!1}};n.prototype.Io=function(a){return fb(this.Rl,a)};n.prototype.Jo=J(!0);n.prototype.Qe=J(!0);f.i=new n;f.p=new (aa());f.ec=new (aa())})();function hc(d){this.b=d}
(function(){var d=hc.prototype;d.Rb=function(c){this.Ha=c;this.b=c.b};var n=d.Rb.prototype;n.va=function(){this.G||(this.L=new Image,this.L.idtkLoadDisposed=!0,this.L.src=this.ll,this.L.dm=this.ml,this.b.Co(this.L),this.ma=this.pattern=null)};n.Ek=function(){this.G||(this.ma=null)};n.Ik=function(){if(!this.G&&this.c.length){this.ma||(this.ma=this.b.u.ei(this.L,!0,this.b.X,this.nl));var c,d;c=0;for(d=this.c.length;c<d;c++)this.c[c].ma=this.ma}};n.nk=function(){this.G||this.ma||!this.b.u||(this.ma=
this.b.u.ei(this.L,!0,this.b.X,this.nl))};n.tl=function(){this.G||this.c.length||!this.ma||(this.b.u.deleteTexture(this.ma),this.ma=null)};n.Rk=function(c){c.drawImage(this.L,0,0)};d.hb=function(c){this.type=c;this.b=c.b};n=d.hb.prototype;n.va=function(){this.visible=0===this.da[0];this.Ng=new ua(0,0,0,0);this.Em=!1;this.L=this.type.L;this.b.u?(this.type.nk(),this.ma=this.type.ma):(this.type.pattern||(this.type.pattern=this.b.$.createPattern(this.type.L,"repeat")),this.pattern=this.type.pattern)};
n.Mc=function(){this.Em=!1;this.L=this.type.L};n.Fg=function(){this.b.u&&this.Em&&this.ma&&(this.b.u.deleteTexture(this.ma),this.ma=null)};n.Jd=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var d=this.x,b=this.y;this.b.Ud&&(d=d+0.5|0,b=b+0.5|0);var a=-(this.xb*this.width),g=-(this.yb*this.height),f=a%this.L.width,n=g%this.L.height;0>f&&(f+=this.L.width);0>n&&(n+=this.L.height);c.translate(d,b);c.rotate(this.j);c.translate(f,n);c.fillRect(a-f,g-n,this.width,this.height);
c.restore()};n.zc=function(c){c.Yb(this.ma);c.xf(this.opacity);var d=this.Ng;d.right=this.width/this.L.width;d.bottom=this.height/this.L.height;var b=this.Ub;if(this.b.Ud){var a=(this.x+0.5|0)-this.x,g=(this.y+0.5|0)-this.y;c.wd(b.La+a,b.Ma+g,b.Db+a,b.Eb+g,b.sb+a,b.tb+g,b.qb+a,b.rb+g,d)}else c.wd(b.La,b.Ma,b.Db,b.Eb,b.sb,b.tb,b.qb,b.rb,d)};d.i=new (aa());d.p=new (aa());d.ec=new (aa())})();function Y(d){this.b=d}
(function(){function d(a){f=a.x;t=a.y;p=a.z}function n(a){u=a.x;l=a.y;s=a.z}function c(){}function h(){}var b=Y.prototype;b.Rb=function(a){this.Ha=a;this.b=a.b};b.Rb.prototype.va=aa();b.hb=function(a){this.type=a;this.b=a.b;this.touches=[];this.vk=!1};var a=b.hb.prototype,g={left:0,top:0};a.Yf=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 f=0,t=0,p=0,u=0,l=0,s=0;a.va=function(){this.fr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.fe=this.qj=this.pj=this.Nl=this.Ml=this.Ll=this.$o=this.Zo=this.Yo=this.Ig=this.Hg=this.Gg=0;this.ns=0!==this.da[0];var a=0<this.b.wb?document:this.b.canvas,b=document;this.b.zb?b=a=window.Canvas:this.b.ic&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.vn(a)},!1),a.addEventListener("pointermove",function(a){c.un(a)},!1),b.addEventListener("pointerup",function(a){c.ni(a)},!1),b.addEventListener("pointercancel",function(a){c.ni(a)},!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.vn(a)},!1),a.addEventListener("MSPointerMove",function(a){c.un(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.ni(a)},!1),b.addEventListener("MSPointerCancel",function(a){c.ni(a)},!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.xn(a)},!1),a.addEventListener("touchmove",function(a){c.wn(a)},!1),b.addEventListener("touchend",function(a){c.Jk(a)},!1),b.addEventListener("touchcancel",function(a){c.Jk(a)},!1));if(this.fr){var e=
function(a){a=a.reading;c.Ll=a.accelerationX;c.Ml=a.accelerationY;c.Nl=a.accelerationZ},f=function(a){a=a.reading;c.Gg=a.yawDegrees;c.Hg=a.pitchDegrees;c.Ig=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Gg=a.alpha||0;c.Hg=a.beta||0;c.Ig=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Yo=a.accelerationIncludingGravity.x||0,c.Zo=a.accelerationIncludingGravity.y||
0,c.$o=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Ll=a.acceleration.x||0,c.Ml=a.acceleration.y||0,c.Nl=a.acceleration.z||0)},!1);this.ns&&!this.b.ta&&(jQuery(document).mousemove(function(a){c.Gk(a)}),jQuery(document).mousedown(function(a){c.Fk(a)}),jQuery(document).mouseup(function(a){c.Hk(a)}));this.b.ff&&!this.b.zb&&AppMobi.accelerometer.watchAcceleration(d,{frequency:40,adjustForRotation:!0});this.b.xe&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(n,
null,{frequency:40});this.b.$r(this)};a.un=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Yf(a.pointerId),c=Wa();if(0<=b){var d=this.b.ta?g:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||(b.Zh=b.time,b.ik=b.x,b.jk=b.y,b.time=c,b.x=a.pageX-d.left,b.y=a.pageY-d.top)}}};a.vn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.b.ta?
g:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top,d=Wa();this.fe=this.touches.length;this.touches.push({time:d,x:c,y:b,Zh:d,ik:c,jk:b,id:a.pointerId,il:this.fe});this.b.Za=!0;this.b.trigger(Y.prototype.i.El,this);this.b.trigger(Y.prototype.i.Cd,this);this.pj=c;this.qj=b;this.b.trigger(Y.prototype.i.Hl,this);this.b.Za=!1}};a.ni=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),a=this.Yf(a.pointerId),this.fe=0<=a?this.touches[a].il:
-1,this.b.Za=!0,this.b.trigger(Y.prototype.i.Dl,this),this.b.trigger(Y.prototype.i.Gl,this),this.b.Za=!1,0<=a&&this.touches.splice(a,1))};a.wn=function(a){a.preventDefault&&a.preventDefault();var b=Wa(),c,d,f,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],h=this.Yf(f.identifier),0<=h){var l=this.b.ta?g:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||(h.Zh=h.time,h.ik=h.x,h.jk=h.y,h.time=b,h.x=f.pageX-l.left,h.y=f.pageY-l.top)}};a.xn=function(a){a.preventDefault&&
a.preventDefault();var b=this.b.ta?g:jQuery(this.b.canvas).offset(),c=Wa();this.b.Za=!0;var d,f,h,l;d=0;for(f=a.changedTouches.length;d<f;d++)if(h=a.changedTouches[d],l=this.Yf(h.identifier),-1===l){l=h.pageX-b.left;var n=h.pageY-b.top;this.fe=this.touches.length;this.touches.push({time:c,x:l,y:n,Zh:c,ik:l,jk:n,id:h.identifier,il:this.fe});this.b.trigger(Y.prototype.i.El,this);this.b.trigger(Y.prototype.i.Cd,this);this.pj=l;this.qj=n;this.b.trigger(Y.prototype.i.Hl,this)}this.b.Za=!1};a.Jk=function(a){a.preventDefault&&
a.preventDefault();this.b.Za=!0;var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=this.Yf(d.identifier),0<=d&&(this.fe=this.touches[d].il,this.b.trigger(Y.prototype.i.Dl,this),this.b.trigger(Y.prototype.i.Gl,this),this.touches.splice(d,1));this.b.Za=!1};a.Dt=function(){return this.b.ff&&0===this.Gg&&0!==p?90*p:this.b.xe&&0===this.Gg&&0!==s?90*s:this.Gg};a.Et=function(){return this.b.ff&&0===this.Hg&&0!==t?-90*t:this.b.xe&&0===this.Hg&&0!==l?-90*l:this.Hg};a.It=function(){return this.b.ff&&
0===this.Ig&&0!==f?90*f:this.b.xe&&0===this.Ig&&0!==u?90*u:this.Ig};a.Fk=function(a){a.preventDefault&&this.b.df&&!this.b.Sc&&a.preventDefault();this.xn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.vk=!0};a.Gk=function(a){this.vk&&this.wn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Hk=function(a){a.preventDefault&&this.b.df&&!this.b.Sc&&a.preventDefault();this.b.df=!0;this.Jk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.vk=!1};a.ol=
function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;a++)c=this.touches[a],c.time<=d-50&&(c.Zh=d)};c.prototype.Cd=J(!0);c.prototype.Gl=J(!0);c.prototype.Hl=function(a){return a?this.b.jo(a,this.pj,this.qj):!1};c.prototype.El=function(a){a=Math.floor(a);return a===this.fe};c.prototype.Dl=function(a){a=Math.floor(a);return a===this.fe};b.i=new c;h.prototype.Jl=function(a,b){if(this.touches.length){var c,d,f,g,h;fa(b)?(c=this.b.nd(0),d=c.scale,f=c.gb,g=c.Bb,h=c.j,c.scale=this.b.T.scale,c.gb=
1,c.Bb=1,c.j=this.b.T.j,a.r(c.Va(this.touches[0].x,this.touches[0].y,!0)),c.scale=d,c.gb=f,c.Bb=g,c.j=h):(c=ga(b)?this.b.nd(b):this.b.$f(b))?a.r(c.Va(this.touches[0].x,this.touches[0].y,!0)):a.r(0)}else a.r(0)};h.prototype.Kl=function(a,b){if(this.touches.length){var c,d,f,g,h;fa(b)?(c=this.b.nd(0),d=c.scale,f=c.gb,g=c.Cb,h=c.j,c.scale=this.b.T.scale,c.gb=1,c.Cb=1,c.j=this.b.T.j,a.r(c.Va(this.touches[0].x,this.touches[0].y,!1)),c.scale=d,c.gb=f,c.Cb=g,c.j=h):(c=ga(b)?this.b.nd(b):this.b.$f(b))?a.r(c.Va(this.touches[0].x,
this.touches[0].y,!1)):a.r(0)}else a.r(0)};b.ec=new h})();function Z(d){this.b=d}
(function(){function d(){}function n(){}var c=Z.prototype;c.Rb=function(b){this.ed=b;this.b=b.b};c.Rb.prototype.va=aa();c.hb=function(b,a){this.type=b;this.ed=b.ed;this.d=a;this.b=b.b;this.Ii=this.gl=this.fl=this.Uj=this.nf=this.ng=this.Di=this.bi=!1;this.Mb=null;this.lk=-1;this.Ae=this.ze=0;this.Hh=!1;this.Ye=this.xc=0;this.Gh=!0;this.aa=this.I=0};var h=c.hb.prototype;h.yo=function(){this.Wa=Math.cos(this.$e);this.Xa=Math.sin(this.$e);this.Je=Math.cos(this.$e-Math.PI/2);this.Ke=Math.sin(this.$e-
Math.PI/2);this.Wa=eb(this.Wa);this.Xa=eb(this.Xa);this.Je=eb(this.Je);this.Ke=eb(this.Ke);this.Ej=this.md;0>this.md&&(this.Wa*=-1,this.Xa*=-1,this.md=Math.abs(this.md))};h.va=function(){this.sf=this.da[0];this.Re=this.da[1];this.We=this.da[2];this.gk=this.da[3];this.Ej=this.md=this.da[4];this.ji=this.da[5];this.up=1===this.da[6];this.enabled=0!==this.da[7];this.Lf=!1;this.bh=this.b.de(this.d);this.mk=-1;this.$e=S(90);this.yo();var b=this;this.up&&!this.b.ta&&(jQuery(document).keydown(function(a){b.sr(a)}),
jQuery(document).keyup(function(a){b.tr(a)}));this.Ic||(this.nn=function(a){b.Ck(a)});this.b.aj(this.nn)};h.mc=function(){return{ii:this.Uj,lfx:this.ze,lfy:this.Ae,lfo:this.Mb?this.Mb.uid:-1,am:this.xc,en:this.enabled,fall:this.Ye,ft:this.Gh,dx:this.I,dy:this.aa,ms:this.sf,acc:this.Re,dec:this.We,js:this.gk,g:this.md,g1:this.Ej,mf:this.ji,wof:this.Lf,woj:this.bh?this.bh.uid:-1,ga:this.$e}};h.Tc=function(b){this.Uj=b.ii;this.ze=b.lfx;this.Ae=b.lfy;this.lk=b.lfo;this.xc=b.am;this.enabled=b.en;this.Ye=
b.fall;this.Gh=b.ft;this.I=b.dx;this.aa=b.dy;this.sf=b.ms;this.Re=b.acc;this.We=b.dec;this.gk=b.js;this.md=b.g;this.Ej=b.g1;this.ji=b.mf;this.Lf=b.wof;this.mk=b.woj;this.$e=b.ga;this.Ii=this.gl=this.fl=this.nf=this.ng=this.Di=this.bi=!1;this.yo()};h.Mc=function(){this.Mb=-1===this.lk?null:this.b.cf(this.lk);this.bh=-1===this.mk?null:this.b.cf(this.mk)};h.Ck=function(b){this.Mb==b&&(this.Mb=null)};h.Fg=function(){this.Mb=null;this.b.Ir(this.nn)};h.sr=function(b){switch(b.which){case 38:b.preventDefault();
this.ng=!0;break;case 37:b.preventDefault();this.bi=!0;break;case 39:b.preventDefault(),this.Di=!0}};h.tr=function(b){switch(b.which){case 38:b.preventDefault();this.nf=this.ng=!1;break;case 37:b.preventDefault();this.bi=!1;break;case 39:b.preventDefault(),this.Di=!1}};h.Ht=function(){return 0>this.md?-1:1};h.Nm=function(){var b=null,a=null,c,d;c=this.d.x;d=this.d.y;this.d.x+=this.Wa;this.d.y+=this.Xa;this.d.B();if(this.Mb&&this.b.rc(this.d,this.Mb))return this.d.x=c,this.d.y=d,this.d.B(),this.Mb;
(b=this.b.Pb(this.d))||0!==this.Ye||(a=this.b.de(this.d,!0));this.d.x=c;this.d.y=d;this.d.B();if(b){if(this.b.rc(this.d,b))return null;this.Hh=!1;return b}if(a&&a.length){d=b=0;for(c=a.length;b<c;b++)a[d]=a[b],this.b.rc(this.d,a[b])||d++;if(1<=d)return this.Hh=!0,a[0]}return null};h.mb=aa();h.Kn=function(){var b=this.b.Ij(this.d),a,c,d,h,n,u,l,s,q;this.ng||this.Ii||(this.nf=!1);var r=this.bi||this.fl;d=this.Di||this.gl;var k=(this.ng||this.Ii)&&!this.nf;this.Ii=this.gl=this.fl=!1;if(this.enabled){this.Uj&&
(k=d=r=!1);s=this.Mb;q=!1;this.Gh&&((this.b.Pb(this.d)||this.b.de(this.d))&&this.b.Vc(this.d,-this.Wa,-this.Xa,4,!0),this.Gh=!1);!s||0!==this.aa||s.y===this.Ae&&s.x===this.ze||(a=s.x-this.ze,c=s.y-this.Ae,this.d.x+=a,this.d.y+=c,this.d.B(),this.ze=s.x,this.Ae=s.y,q=!0,this.b.Pb(this.d)&&this.b.Vc(this.d,-a,-c,2.5*Math.sqrt(a*a+c*c)));var e=this.Nm();if(c=this.b.Pb(this.d))if(this.b.Gr(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Og(this.d,c);else return;e?(0<this.aa&&(this.Lf||(this.b.Tk(this.d,
-this.Wa,-this.Xa,e),this.Lf=!0),this.aa=0),s!=e?(this.Mb=e,this.ze=e.x,this.Ae=e.y,this.b.Og(this.d,e)):q&&(c=this.b.Pb(this.d))&&(this.b.Og(this.d,c),0!==a&&(0<a?this.b.Vc(this.d,-this.Je,-this.Ke):this.b.Vc(this.d,this.Je,this.Ke)),this.b.Vc(this.d,-this.Wa,-this.Xa)),k&&(s=this.d.x,q=this.d.y,this.d.x-=this.Wa,this.d.y-=this.Xa,this.d.B(),this.b.Pb(this.d)?k=!1:(this.b.trigger(Z.prototype.i.Oo,this.d),this.xc=2,this.aa=-this.gk,this.nf=!0),this.d.x=s,this.d.y=q,this.d.B())):(this.Mb=null,this.aa+=
this.md*b,this.aa>this.ji&&(this.aa=this.ji),k&&(this.nf=!0));this.Lf=!!e;r==d&&(0>this.I?(this.I+=this.We*b,0<this.I&&(this.I=0)):0<this.I&&(this.I-=this.We*b,0>this.I&&(this.I=0)));r&&!d&&(this.I=0<this.I?this.I-(this.Re+this.We)*b:this.I-this.Re*b);d&&!r&&(this.I=0>this.I?this.I+(this.Re+this.We)*b:this.I+this.Re*b);this.I>this.sf?this.I=this.sf:this.I<-this.sf&&(this.I=-this.sf);r=!1;0!==this.I&&(s=this.d.x,q=this.d.y,a=this.I*b*this.Je,c=this.I*b*this.Ke,this.d.x+=this.Je*(1<this.I?1:-1)-this.Wa,
this.d.y+=this.Ke*(1<this.I?1:-1)-this.Xa,this.d.B(),h=!1,n=this.b.Pb(this.d),this.d.x=s+a,this.d.y=q+c,this.d.B(),d=this.b.Pb(this.d),!d&&e&&(d=this.b.de(this.d))&&(this.d.x=s,this.d.y=q,this.d.B(),this.b.rc(this.d,d)?(d=null,h=!1):h=!0,this.d.x=s+a,this.d.y=q+c,this.d.B()),d?(a=Math.abs(this.I*b)+2,n||!this.b.Vc(this.d,-this.Wa,-this.Xa,a,h,d))?(this.b.Og(this.d,d),a=Math.max(Math.abs(2.5*this.I*b),30),this.b.Vc(this.d,this.Je*(0>this.I?1:-1),this.Ke*(0>this.I?1:-1),a,!1)?!e||h||this.Hh||(s=this.d.x,
q=this.d.y,this.d.x+=this.Wa,this.d.y+=this.Xa,this.b.Pb(this.d)?this.b.Vc(this.d,-this.Wa,-this.Xa,3,!1)||(this.d.x=s,this.d.y=q,this.d.B()):(this.d.x=s,this.d.y=q,this.d.B())):(this.d.x=s,this.d.y=q,this.d.B()),h||(this.I=0)):!n&&15>Math.abs(this.aa)&&(this.aa=0,e||(r=!0)):(s=this.Nm(),e&&!s?(c=Math.ceil(Math.abs(this.I*b))+2,s=this.d.x,q=this.d.y,this.d.x+=this.Wa*c,this.d.y+=this.Xa*c,this.d.B(),this.b.Pb(this.d)||this.b.de(this.d)?this.b.Vc(this.d,-this.Wa,-this.Xa,c+2,!0):(this.d.x=s,this.d.y=
q,this.d.B())):s&&0===this.aa&&this.b.Tk(this.d,-this.Wa,-this.Xa,s)));if(0!==this.aa){s=this.d.x;q=this.d.y;this.d.x+=this.aa*b*this.Wa;this.d.y+=this.aa*b*this.Xa;a=this.d.x;d=this.d.y;this.d.B();c=this.b.Pb(this.d);h=!1;if(!c&&0<this.aa&&!e){if((h=0<this.Ye?null:this.b.de(this.d,!0))&&h.length){if(this.bh){this.d.x=s;this.d.y=q;this.d.B();l=n=0;for(u=h.length;n<u;n++)h[l]=h[n],this.b.rc(this.d,h[n])||l++;h.length=l;this.d.x=a;this.d.y=d;this.d.B()}1<=h.length&&(c=h[0])}h=!!c}c&&(this.b.Og(this.d,
c),a=h?Math.abs(2.5*this.aa*b+10):Math.max(Math.abs(2.5*this.aa*b+10),30),this.b.Vc(this.d,this.Wa*(0>this.aa?1:-1),this.Xa*(0>this.aa?1:-1),a,h,c)?(this.Mb=c,this.ze=c.x,this.Ae=c.y,(this.Hh=h)&&(r=!0),this.aa=0):(this.d.x=s,this.d.y=q,this.d.B(),this.Lf=!0,h||(this.aa=0)))}3!==this.xc&&0<this.aa&&!e&&(this.b.trigger(Z.prototype.i.No,this.d),this.xc=3);if(e||r)3===this.xc||r||k&&0===this.aa?(this.b.trigger(Z.prototype.i.Po,this.d),this.xc=0===this.I&&0===this.aa?0:1):(0!==this.xc&&0===this.I&&0===
this.aa&&(this.b.trigger(Z.prototype.i.Vo,this.d),this.xc=0),1===this.xc||0===this.I&&0===this.aa||k||(this.b.trigger(Z.prototype.i.To,this.d),this.xc=1));0<this.Ye&&this.Ye--;this.bh=this.b.de(this.d)}};d.prototype.Oo=J(!0);d.prototype.No=J(!0);d.prototype.Vo=J(!0);d.prototype.To=J(!0);d.prototype.Po=J(!0);c.i=new d;n.prototype.je=function(b){this.aa=b};n.prototype.Yi=function(b){this.enabled!==(1===b)&&(this.enabled=1===b,this.enabled||(this.Mb=null))};c.p=new n;c.ec=new (aa())})();
function fc(){return[null,"Layout 1",[[gc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[X,!0,!1,!1,!1,!1,!1,!1,!1,!1],[W,!1,!0,!0,!0,!0,!0,!0,!0,!1],[hc,!1,!0,!0,!0,!0,!0,!0,!0,!0],[Y,!0,!1,!1,!1,!1,!1,!1,!1,!1]],[["t0",hc,!1,[],0,0,["pics/tiledbackground.png",199430,1],null,[],!1,!1,0xa93f6da71730d,[],null],["t1",X,!1,[],0,0,null,null,[],!1,!1,0x90f201862a87e,[],null,[]],["t2",hc,!1,[],0,0,["pics/tiledbackground2.png",676588,0],null,[],!1,!1,0x84102c7193b51,[],null],["t3",W,!1,[],1,0,null,[["Default",5,!1,1,0,!1,
0x832c898c1b714,[["pics/sprite-sheet0.png",115783,0,0,400,400,1,0.5,0.5,[],[-0.2450000047683716,-0.2450000047683716,0,-0.4025000035762787,0.3725000023841858,-0.3725000023841858,0.2450000047683716,0,0.1349999904632568,0.1349999904632568,0,0.45250004529953,-0.4000000059604645,0.3999999761581421,-0.01750001311302185,0],0]]]],[["Platform",Z,4934124967757751]],!1,!1,7519633004166986,[],null],["t4",W,!1,[],0,0,null,[["Default",5,!1,1,0,!1,9957705043435168,[["pics/sprite2-sheet0.png",1702,0,0,233,530,1,
0.5021459460258484,0.5,[],[-0.2875539660453796,-0.4056603908538818,-0.004291951656341553,-0.475471705198288,0.2918450832366943,-0.4094339907169342,0.1244630813598633,0,0.2918450832366943,0.4094340205192566,-0.004291951656341553,0.4698110222816467,-0.2746779322624207,0.3999999761581421,-0.1416309475898743,0],0]]]],[],!1,!1,7827951559363234,[],null],["t5",Y,!1,[],0,0,null,null,[],!1,!1,742011986753553,[],null,[1]],["t6",W,!1,[],0,0,null,[["Default",5,!1,1,0,!1,0xfe6a3df2f5125,[["pics/sprite3-sheet0.png",
22228,0,0,317,374,1,0.5015772581100464,0.5,[],[-0.3911672532558441,-0.4064171016216278,-0.003154247999191284,-0.4197860956192017,0.3753947615623474,-0.3957220017910004,0.2996847629547119,0,0.2712937593460083,0.3074870109558106,-0.003154247999191284,0.4946519732475281,-0.2807572484016419,0.3128340244293213,-0.2681392431259155,0],0]]]],[],!1,!1,5759261498212017,[],null],["t7",W,!1,[],0,0,null,[["Default",5,!1,1,0,!1,6497593185306985,[["pics/sprite5-sheet0.png",271268,0,0,400,500,1,0.5,0.5,[],[],1]]]],
[],!1,!1,4874487608392214,[],null],["t8",hc,!1,[],0,0,["pics/tiledbackground3.png",64850,0],null,[],!1,!1,5500782570653266,[],null],["t9",W,!1,[],0,0,null,[["Default",5,!1,1,0,!1,7465554506577799,[["pics/sprite4-sheet0.png",20786,0,0,574,554,1,0.5,0.5,[],[-0.07665500044822693,-0.06137201189994812,0,-0.3375450074672699,0.06097602844238281,-0.04512599110603333,0.05923300981521606,0.04332101345062256,0,0.258122980594635],0]]]],[],!1,!1,0x8325287c8a61e,[],null],["t10",W,!1,[],0,0,null,[["Default",5,!1,
1,0,!1,7689553259054695,[["pics/sprite6-sheet0.png",74723,0,0,250,450,1,0.5,0.5,[],[-0.3320000171661377,-0.4066666960716248,0,-0.4688889086246491,0.2360000014305115,-0.3533329963684082,0.2599999904632568,0,0.4480000138282776,0.471110999584198,0,0.4377779960632324,-0.4000000059604645,0.4444440007209778,-0.2960000038146973,0],0]]]],[],!1,!1,6656471616203841,[],null],["t11",W,!1,[],0,0,null,[["Default",5,!1,1,0,!1,290321356694888,[["pics/sprite7-sheet0.png",20779,0,0,574,554,1,0.5,0.5,[],[0.07665497064590454,
0.06137198209762573,0,0.3375449776649475,-0.06097599864006043,0.04512602090835571,-0.05923300981521606,-0.04332101345062256,0,-0.258122980594635],0]]]],[],!1,!1,6343643302324454,[],null],["t12",W,!1,[],0,0,null,[["Default",5,!1,1,0,!1,5307167453632507,[["pics/sprite8-sheet0.png",217746,0,0,420,520,1,0.5,0.5,[],[],0]]]],[],!1,!1,6803685566566839,[],null],["t13",gc,!1,[],0,0,null,null,[],!1,!1,0xdd38d994d4ceb,[],null,[0,0,1,1,600,600,1E4,1,5E3,1]]],[],[["Layout 1",1708,960,!1,"Event sheet 1",6138602252332063,
[["Layer 0",0,7992683408168011,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[-2,-5,0,406,511,0,0,1,0,0,0,0,[]],0,0,[],[],[0,0]]],[]]],[],[]],["Layout 2",1E4,550,!1,"Event sheet 2",0xf29e7411ec93,[["Layer 0",0,7008927639461681,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[-26,-20,0,2674,545,0,0,1,0,0,0,0,[]],2,2,[],[],[0,0]],[[19,113,0,47,56,0,0,1,0.5,0.5,0,0,[]],3,3,[],[[330,1500,1500,650,1500,1E3,1,1]],[0,"Default",0,1]],[[217,-8,0,82,241,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,4,[],[],[0,"Default",
0,1]],[[339,500,0,78,187,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,6,[],[],[0,"Default",0,1]],[[336,80,0,87,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,7,[],[],[0,"Default",0,1]],[[823,469,0,81,206,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,8,[],[],[0,"Default",0,1]],[[498,444,0,94,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,9,[],[],[0,"Default",0,1]],[[672.9203491210938,455.468994140625,0,87,256,0,-3.135450839996338,1,0.5021459460258484,
0.5,0,0,[]],4,10,[],[],[0,"Default",0,1]],[[680,44,0,79,227,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,11,[],[],[0,"Default",0,1]],[[494,48,0,83,158,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,12,[],[],[0,"Default",0,1]],[[831,69,0,83,216,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,13,[],[],[0,"Default",0,1]],[[968,531,0,75,210,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,15,[],[],[0,"Default",0,1]],[[1122,567,0,74,212,0,-3.135450839996338,1,0.5021459460258484,
0.5,0,0,[]],4,16,[],[],[0,"Default",0,1]],[[970.4370727539062,110.9844818115234,0,89,250,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,17,[],[],[0,"Default",0,1]],[[1114,46,0,99,315,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,18,[],[],[0,"Default",0,1]],[[1260,-11,0,94,263,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,19,[],[],[0,"Default",0,1]],[[1261,532,0,94,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,20,[],[],[0,"Default",0,1]],[[1399,479,0,94,226,
0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,21,[],[],[0,"Default",0,1]],[[1398,56,0,81,216,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,22,[],[],[0,"Default",0,1]],[[1549,453,0,89,230,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,23,[],[],[0,"Default",0,1]],[[1551,85,0,94,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,24,[],[],[0,"Default",0,1]],[[1721.517578125,90.03390502929688,0,83,228,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,25,[],[],
[0,"Default",0,1]],[[1728,458,0,94,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,26,[],[],[0,"Default",0,1]],[[1888,90,0,94,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,27,[],[],[0,"Default",0,1]],[[1883,470,0,94,226,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,28,[],[],[0,"Default",0,1]],[[2145.1640625,228,0,268,346,0,0,1,0.5015772581100464,0.5,0,0,[]],6,39,[],[],[0,"Default",0,1]],[[206,549,0,78,187,0,-3.135450839996338,1,0.5021459460258484,0.5,0,0,[]],4,
5,[],[],[0,"Default",0,1]]],[]]],[],[]],["Layout 3",1708,960,!1,"Event sheet 3",0x94780da5af5d3,[["Layer 0",0,9187957749529808,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[201,250,0,402,504,0,0,1,0.5,0.5,0,0,[]],7,40,[],[],[0,"Default",0,1]]],[]]],[],[]],["Layout 4",1E4,550,!1,"Event sheet 4",7696673758242649,[["Layer 0",0,6654882254155962,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[-5,3,0,415,508,0,0,1,0,0,0,0,[]],8,29,[],[],[0,0]],[[37,180,0,47,56,0,0,1,0.5,0.5,0,0,[]],3,30,[],[[330,1500,1500,650,1500,1E3,1,
1]],[0,"Default",0,1]],[[121,81,0,104,256,0,0,1,0.5,0.5,0,0,[]],9,31,[],[],[0,"Default",0,1]],[[206,96,0,103,385,0,0,1,0.5,0.5,0,0,[]],9,32,[],[],[0,"Default",0,1]],[[421,79,0,122,309,0,0,1,0.5,0.5,0,0,[]],9,33,[],[],[0,"Default",0,1]],[[528.5,53.5,0,71,246,0,0,1,0.5,0.5,0,0,[]],9,34,[],[],[0,"Default",0,1]],[[704.5,94,0,148,378,0,0,1,0.5,0.5,0,0,[]],9,35,[],[],[0,"Default",0,1]],[[944,91,0,136,438,0,0,1,0.5,0.5,0,0,[]],9,36,[],[],[0,"Default",0,1]],[[1026,59,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,37,[],
[],[0,"Default",0,1]],[[780,80,0,78,228,0,0,1,0.5,0.5,0,0,[]],9,38,[],[],[0,"Default",0,1]],[[836,81,0,78,278,0,0,1,0.5,0.5,0,0,[]],9,41,[],[],[0,"Default",0,1]],[[603,46.5,0,53,168,0,0,1,0.5,0.5,0,0,[]],9,42,[],[],[0,"Default",0,1]],[[989,57,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,50,[],[],[0,"Default",0,1]],[[885,66,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,51,[],[],[0,"Default",0,1]],[[1073,57,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,57,[],[],[0,"Default",0,1]],[[1122,55,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,58,[],[],[0,"Default",
0,1]],[[1164,52,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,59,[],[],[0,"Default",0,1]],[[1217,57,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,60,[],[],[0,"Default",0,1]],[[1271,57,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,61,[],[],[0,"Default",0,1]],[[1324,51,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,62,[],[],[0,"Default",0,1]],[[1370,60,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,63,[],[],[0,"Default",0,1]],[[1432,43,0,87,290,0,0,1,0.5,0.5,0,0,[]],9,70,[],[],[0,"Default",0,1]],[[1605,27,0,167,427,0,0,1,0.5,0.5,0,0,[]],9,71,[],[],[0,"Default",0,1]],
[[1512,66,0,46,180,0,0,1,0.5,0.5,0,0,[]],9,72,[],[],[0,"Default",0,1]],[[1907.5,225.5,0,189,351,0,0,1,0.5,0.5,0,0,[]],10,73,[],[],[0,"Default",0,1]],[[1433,520,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,43,[],[],[0,"Default",0,1]],[[1712,498,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,44,[],[],[0,"Default",0,1]],[[1650,530,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,45,[],[],[0,"Default",0,1]],[[1543,482,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,46,[],[],[0,"Default",0,1]],[[1487,537,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,47,[],[],[0,"Default",
0,1]],[[1592,539,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,48,[],[],[0,"Default",0,1]],[[1354,499,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,49,[],[],[0,"Default",0,1]],[[1271,472,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,52,[],[],[0,"Default",0,1]],[[1227,529,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,53,[],[],[0,"Default",0,1]],[[1166,466,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,54,[],[],[0,"Default",0,1]],[[868,538,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,55,[],[],[0,"Default",0,1]],[[1116,489,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,56,[],[],[0,
"Default",0,1]],[[1023,579,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,64,[],[],[0,"Default",0,1]],[[940,580,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,65,[],[],[0,"Default",0,1]],[[785,565,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,66,[],[],[0,"Default",0,1]],[[827,529,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,67,[],[],[0,"Default",0,1]],[[899,539,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,68,[],[],[0,"Default",0,1]],[[402,531,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,69,[],[],[0,"Default",0,1]],[[478,526,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,74,[],
[],[0,"Default",0,1]],[[617,562,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,75,[],[],[0,"Default",0,1]],[[703,551,0,52,236,0,0,1,0.5,0.5,0,0,[]],11,76,[],[],[0,"Default",0,1]],[[551,493,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,77,[],[],[0,"Default",0,1]],[[307,77,0,71,246,0,0,1,0.5,0.5,0,0,[]],9,78,[],[],[0,"Default",0,1]],[[280,549,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,79,[],[],[0,"Default",0,1]],[[102,575,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,80,[],[],[0,"Default",0,1]],[[197,597,0,118,399,0,0,1,0.5,0.5,0,0,[]],11,
81,[],[],[0,"Default",0,1]]],[]]],[],[]],["Layout 5",1708,960,!1,"Event sheet 5",8159275080659576,[["Layer 0",0,0x6efb9f928590a,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[206,256,0,420,520,0,0,1,0.5,0.5,0,0,[]],12,82,[],[],[0,"Default",0,1]]],[]]],[],[]]],[["Event sheet 1",[[0,null,!1,null,5961932401355009,[[1,X.prototype.i.ie,null,1,!1,!1,!1,0xef1dd129d5170,!1]],[[-1,U.prototype.p.ad,null,8696560824690897,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,7781221302174922,[[1,X.prototype.i.ie,null,1,!1,!1,!1,8591454678647097,
!1]],[[13,gc.prototype.p.Play,null,5134913567670302,!1,[[2,["the popeye show theme song ",!0]],[3,1],[0,[0,150]],[1,[2,""]]]]]],[0,null,!1,null,0x97cf38b6b7ca7,[],[]],[0,null,!1,null,8741239553943276,[[5,Y.prototype.i.Cd,null,1,!1,!1,!1,6195034292610167,!1]],[[-1,U.prototype.p.ad,null,5160567064112253,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,5798730153161149,[[5,Y.prototype.i.Cd,null,1,!1,!1,!1,9500426875568784,!1]],[[13,gc.prototype.p.Play,null,5995509512488649,!1,[[2,["the popeye show theme song ",
!0]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],["Event sheet 2",[[0,null,!1,null,686951102170226,[[1,X.prototype.i.ie,null,1,!1,!1,!1,389897071459743,!1]],[[3,Z.prototype.p.je,"Platform",0xeeb2562497d69,!1,[[0,[0,-300]]]]]],[0,null,!1,null,8726162428581426,[[5,Y.prototype.i.Cd,null,1,!1,!1,!1,7783542370286886,!1]],[[3,Z.prototype.p.je,"Platform",5654066534726653,!1,[[0,[0,-300]]]]]],[0,null,!1,null,0xb34257a75a56b,[[3,W.prototype.i.Al,null,0,!1,!1,!1,8651917149016866,!1]],[[6,W.prototype.p.Mf,null,0xc3ebebabccfcf,
!1,[[0,[0,-3]]]],[4,W.prototype.p.Mf,null,0xf49368ca7749c,!1,[[0,[0,3]]]]],[[0,null,!1,null,0xbc013f24a0464,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,6919774151996028,!1,[[4,4]]]],[[3,Z.prototype.p.je,"Platform",7166035943316864,!1,[[0,[0,2E3]]]],[-1,U.prototype.p.bd,null,0x88a07f1c6665c,!1,[[0,[1,0.75]]]],[3,W.prototype.p.Zi,null,8183363410220356,!1,[[0,[0,2E3]]]],[-1,U.prototype.p.bd,null,0xd05597f0cab0d,!1,[[0,[1,0.75]]]],[3,Z.prototype.p.Yi,"Platform",4860901037546203,!1,[[3,0]]],[-1,U.prototype.p.bd,
null,0x618d97079496b,!1,[[0,[1,0.75]]]]]],[0,null,!1,null,4528574245093992,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,5598501529083946,!1,[[4,4]]]],[[-1,U.prototype.p.ad,null,7595481868573877,!1,[[6,"Layout 1"]]],[13,gc.prototype.p.$i,null,7723645698777531,!1,[[1,[2,""]]]]]],[0,null,!1,null,0x3c667f170fe6d,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,7093403538128061,!1,[[4,6]]]],[[-1,U.prototype.p.ad,null,7657321177724294,!1,[[6,"Layout 3"]]]]]]]]],["Event sheet 3",[[0,null,!1,null,5629090362860053,[[1,X.prototype.i.ie,
null,1,!1,!1,!1,0xd25f0c198f6f1,!1]],[[-1,U.prototype.p.ad,null,7139115764945823,!1,[[6,"Layout 4"]]]]],[0,null,!1,null,6294531209264346,[[5,Y.prototype.i.Cd,null,1,!1,!1,!1,8370786429217726,!1]],[[-1,U.prototype.p.ad,null,8154618606587812,!1,[[6,"Layout 4"]]]]]]],["Event sheet 4",[[0,null,!1,null,405756249446378,[[1,X.prototype.i.ie,null,1,!1,!1,!1,7766359648708845,!1]],[[3,Z.prototype.p.je,"Platform",343252485296165,!1,[[0,[0,-300]]]]]],[0,null,!1,null,0xf105ffc533933,[[3,W.prototype.i.Al,null,
0,!1,!1,!1,9937734038307276,!1]],[[10,W.prototype.p.Mf,null,0xf8bf2550b4dbd,!1,[[0,[0,-3]]]],[9,W.prototype.p.Mf,null,0xd621c01cc5da5,!1,[[0,[0,-3]]]],[11,W.prototype.p.Mf,null,9685629535161564,!1,[[0,[0,-3]]]]]],[0,null,!1,null,8779616319930834,[[5,Y.prototype.i.Cd,null,1,!1,!1,!1,0x7bee746d621c0,!1]],[[3,Z.prototype.p.je,"Platform",0x3e22a71d6acfc,!1,[[0,[0,-300]]]]]],[0,null,!1,null,0xf24225d101138,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,7062331531576368,!1,[[4,11]]]],[[3,Z.prototype.p.je,"Platform",
8809411411244497,!1,[[0,[0,2E3]]]],[-1,U.prototype.p.bd,null,865768344966701,!1,[[0,[1,0.75]]]],[3,W.prototype.p.Zi,null,7780188929883061,!1,[[0,[0,2E3]]]],[-1,U.prototype.p.bd,null,544709217659609,!1,[[0,[1,0.75]]]],[3,Z.prototype.p.Yi,"Platform",8026614889967994,!1,[[3,0]]],[-1,U.prototype.p.bd,null,9118081325853552,!1,[[0,[1,0.75]]]],[13,gc.prototype.p.$i,null,6837599193932387,!1,[[1,[2,""]]]]]],[0,null,!1,null,9238143548225712,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,8027989702484112,!1,[[4,9]]]],
[[3,Z.prototype.p.je,"Platform",860055534831287,!1,[[0,[0,2E3]]]],[-1,U.prototype.p.bd,null,9882554989131292,!1,[[0,[1,0.75]]]],[3,W.prototype.p.Zi,null,8288603681957796,!1,[[0,[0,2E3]]]],[-1,U.prototype.p.bd,null,5555150917318617,!1,[[0,[1,0.75]]]],[3,Z.prototype.p.Yi,"Platform",6883104491100725,!1,[[3,0]]],[-1,U.prototype.p.bd,null,9326520985264002,!1,[[0,[1,0.75]]]],[13,gc.prototype.p.$i,null,4805656546682146,!1,[[1,[2,""]]]]]],[0,null,!1,null,5405756818660168,[[3,W.prototype.i.Bd,null,0,!1,!1,
!0,4804270614572928,!1,[[4,9]]]],[[-1,U.prototype.p.ad,null,8791739029281452,!1,[[6,"Layout 1"]]]]],[0,null,!1,null,0xf990558d07b04,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,6484302770889248,!1,[[4,11]]]],[[-1,U.prototype.p.ad,null,9747175919196888,!1,[[6,"Layout 1"]]]]],[0,null,!1,null,6089207579245358,[[3,W.prototype.i.Bd,null,0,!1,!1,!0,0x419fae6e228bf,!1,[[4,10]]]],[[-1,U.prototype.p.ad,null,7964052176397929,!1,[[6,"Layout 5"]]]]]]],["Event sheet 5",[[0,null,!1,null,654990347026305,[[1,X.prototype.i.ie,
null,1,!1,!1,!1,8902427715135021,!1]],[[13,gc.prototype.p.Il,null,9828812648448440,!1]]],[0,null,!1,null,9069380720046332,[[5,Y.prototype.i.Cd,null,1,!1,!1,!1,0xefed7f8ebc56f,!1]],[[13,gc.prototype.p.Il,null,4704165261536478,!1]]]]]],"",!1,400,500,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,84,!1,!0,[]]};