-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2runtime.js
437 lines (437 loc) · 211 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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ea,fa,ga,ja,ka,la,ma,x,na,oa,pa,qa,sa,ta,J,ua,va,S,wa,xa,ya,za,V,Aa,Ba,Ca,Da,Fa,X,Ha,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={},gc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,d,b,g){this.set(a,d,b,g)}function k(){this.wb=this.ub=this.yb=this.xb=this.Jb=this.Ib=this.bb=this.ab=0}function l(a,d,b,g){a<d?b<g?(z=a<b?a:b,y=d>g?d:g):(z=a<g?a:g,y=d>b?d:b):b<g?(z=d<b?d:b,y=a>g?a:g):(z=d<g?d:g,y=a>b?a:b)}function n(){this.items=this.Ra=null;this.Sh=0;N&&(this.Ra=new Set);this.gh=[];this.Ce=!0}function q(a){v[E++]=a}function r(){this.aa=this.Nk=this.y=this.pl=0}function f(a){this.ob=[];this.Xi=this.Zi=this.$i=this.Yi=0;this.Ai(a)}function a(a,d){this.tl=
a;this.sl=d;this.cells={}}function b(a,d){this.tl=a;this.sl=d;this.cells={}}function c(a,d,b){var g;return w.length?(g=w.pop(),g.cm=a,g.x=d,g.y=b,g):new ea(a,d,b)}function d(a,d,b){this.cm=a;this.x=d;this.y=b;this.rb=new fa}function g(a,d,b){var g;return D.length?(g=D.pop(),g.cm=a,g.x=d,g.y=b,g):new ga(a,d,b)}function t(a,d,b){this.cm=a;this.x=d;this.y=b;this.rb=[];this.Eg=!0;this.Ld=new fa;this.kh=!1}function h(a,d){return a.wd-d.wd}ja=function(a){window.console&&window.console.log&&window.console.log(a)};
ka=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};la=function(a){return"undefined"===typeof a};ma=function(a){return"number"===typeof a};x=function(a){return"string"===typeof a};na=function(a){return 0<a&&0===(a-1&a)};oa=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};pa=function(a){return 0>a?-a:a};qa=function(a,d){return a>d?a:d};sa=function(a,d){return a<d?a:d};ta=Math.PI;J=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var d=
a|0;return d===a?d:d+1};va=function(a,d,b,g,h,c,f,m){var A,u,C,t;a<b?(u=a,A=b):(u=b,A=a);h<f?(t=h,C=f):(t=f,C=h);if(A<t||u>C)return!1;d<g?(u=d,A=g):(u=g,A=d);c<m?(t=c,C=m):(t=m,C=c);if(A<t||u>C)return!1;A=h-a+f-b;u=c-d+m-g;a=b-a;d=g-d;h=f-h;c=m-c;m=pa(d*h-c*a);return pa(h*u-c*A)>m?!1:pa(a*u-d*A)<=m};e.prototype.set=function(a,d,b,g){this.left=a;this.top=d;this.right=b;this.bottom=g};e.prototype.lg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=
function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.rp=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.sp=
function(a,d,b){return!(a.right+d<this.left||a.bottom+b<this.top||a.left+d>this.right||a.top+b>this.bottom)};e.prototype.Rb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};e.prototype.sh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};S=e;k.prototype.ef=function(a){this.ab=a.left;this.bb=a.top;this.Ib=a.right;this.Jb=a.top;this.xb=a.right;this.yb=a.bottom;this.ub=a.left;this.wb=a.bottom};k.prototype.Xq=function(a,
d){if(0===d)this.ef(a);else{var b=Math.sin(d),g=Math.cos(d),h=a.left*b,c=a.top*b,f=a.right*b,b=a.bottom*b,m=a.left*g,A=a.top*g,u=a.right*g,g=a.bottom*g;this.ab=m-c;this.bb=A+h;this.Ib=u-c;this.Jb=A+f;this.xb=u-b;this.yb=g+f;this.ub=m-b;this.wb=g+h}};k.prototype.offset=function(a,d){this.ab+=a;this.bb+=d;this.Ib+=a;this.Jb+=d;this.xb+=a;this.yb+=d;this.ub+=a;this.wb+=d;return this};var z=0,y=0;k.prototype.wo=function(a){l(this.ab,this.Ib,this.xb,this.ub);a.left=z;a.right=y;l(this.bb,this.Jb,this.yb,
this.wb);a.top=z;a.bottom=y};k.prototype.Rb=function(a,d){var b=this.ab,g=this.bb,h=this.Ib-b,c=this.Jb-g,f=this.xb-b,m=this.yb-g,A=a-b,u=d-g,C=h*h+c*c,t=h*f+c*m,c=h*A+c*u,e=f*f+m*m,p=f*A+m*u,z=1/(C*e-t*t),h=(e*c-t*p)*z,C=(C*p-t*c)*z;if(0<=h&&0<C&&1>h+C)return!0;h=this.ub-b;c=this.wb-g;C=h*h+c*c;t=h*f+c*m;c=h*A+c*u;z=1/(C*e-t*t);h=(e*c-t*p)*z;C=(C*p-t*c)*z;return 0<=h&&0<C&&1>h+C};k.prototype.Ae=function(a,d){if(d)switch(a){case 0:return this.ab;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;
case 4:return this.ab;default:return this.ab}else switch(a){case 0:return this.bb;case 1:return this.Jb;case 2:return this.yb;case 3:return this.wb;case 4:return this.bb;default:return this.bb}};k.prototype.aq=function(){return(this.ab+this.Ib+this.xb+this.ub)/4};k.prototype.bq=function(){return(this.bb+this.Jb+this.yb+this.wb)/4};k.prototype.nm=function(a){var d=a.aq(),b=a.bq();if(this.Rb(d,b))return!0;d=this.aq();b=this.bq();if(a.Rb(d,b))return!0;var g,h,c,f,m,A,u,t;for(u=0;4>u;u++)for(t=0;4>t;t++)if(d=
this.Ae(u,!0),b=this.Ae(u,!1),g=this.Ae(u+1,!0),h=this.Ae(u+1,!1),c=a.Ae(t,!0),f=a.Ae(t,!1),m=a.Ae(t+1,!0),A=a.Ae(t+1,!1),va(d,b,g,h,c,f,m,A))return!0;return!1};wa=k;xa=function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);return a};ya=function(a,d){var b,g;d=J(d);if(!(0>d||d>=a.length)){b=d;for(g=a.length-1;b<g;b++)a[b]=a[b+1];za(a,g)}};za=function(a,d){a.length=d};V=function(a){za(a,0)};Aa=function(a,d){V(a);var b,g;b=0;for(g=d.length;b<g;++b)a[b]=d[b]};Ba=function(a,d){a.push.apply(a,d)};
Ca=function(a,d){var b,g;b=0;for(g=a.length;b<g;++b)if(a[b]===d)return b;return-1};Da=function(a,d){var b=Ca(a,d);-1!==b&&ya(a,b)};Fa=function(a,d,b){return a<d?d:a>b?b:a};X=function(a){return a/(180/ta)};Ha=function(a){return 180/ta*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ta;0>a&&(a+=2*ta);return a};La=function(a){return Ia(Ha(a))};Ma=function(a){return Ja(X(a))};Na=function(a,d,b,g){return Math.atan2(g-d,b-a)};Oa=function(a,d){if(a===d)return 0;var b=Math.sin(a),g=Math.cos(a),
h=Math.sin(d),c=Math.cos(d),b=b*h+g*c;return 1<=b?0:-1>=b?ta:Math.acos(b)};Pa=function(a,d,b){var g=Math.sin(a),h=Math.cos(a),c=Math.sin(d),f=Math.cos(d);return Math.acos(g*c+h*f)>b?0<h*c-g*f?Ja(a+b):Ja(a-b):Ja(d)};Qa=function(a,d){var b=Math.sin(a),g=Math.cos(a),h=Math.sin(d),c=Math.cos(d);return 0>=g*h-b*c};Ra=function(a,d,b,g,h,c){if(0===b)return c?a:d;var f=Math.sin(b);b=Math.cos(b);a-=g;d-=h;var m=a*f;a=a*b-d*f;d=d*b+m;return c?a+g:d+h};Sa=function(a,d,b,g){a=b-a;d=g-d;return Math.sqrt(a*a+d*
d)};Ta=function(a,d){return!a!==!d};Wa=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Xa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var I=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-I};var m=!1,
p=m=!1,R=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),R=window.c2ejecta);var N=!m&&!R&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.$d()?!1:N?this.Ra.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(N)this.Ra.has(a)||(this.Ra.add(a),this.Ce=
!1);else{var d=a.toString(),b=this.items;b?b.hasOwnProperty(d)||(b[d]=a,this.Sh++,this.Ce=!1):(this.items={},this.items[d]=a,this.Sh=1,this.Ce=!1)}};n.prototype.remove=function(a){if(!this.$d())if(N)this.Ra.has(a)&&(this.Ra["delete"](a),this.Ce=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Sh--,this.Ce=!1)}};n.prototype.clear=function(){this.$d()||(N?this.Ra.clear():(this.items=null,this.Sh=0),V(this.gh),this.Ce=!0)};n.prototype.$d=function(){return 0===
this.count()};n.prototype.count=function(){return N?this.Ra.size:this.Sh};var v=null,E=0;n.prototype.Yw=function(){if(!this.Ce){if(N)V(this.gh),v=this.gh,E=0,this.Ra.forEach(q),v=null,E=0;else{var a=this.gh;V(a);var d,b=0,g=this.items;if(g)for(d in g)g.hasOwnProperty(d)&&(a[b++]=g[d])}this.Ce=!0}};n.prototype.pe=function(){this.Yw();return this.gh};fa=n;new fa;Za=function(a,d){N?$a(a,d.Ra):ab(a,d.pe())};$a=function(a,d){var b,g,h,c;g=b=0;for(h=a.length;b<h;++b)c=a[b],d.has(c)||(a[g++]=c);za(a,g)};
ab=function(a,d){var b,g,h,c;g=b=0;for(h=a.length;b<h;++b)c=a[b],-1===Ca(d,c)&&(a[g++]=c);za(a,g)};r.prototype.add=function(a){this.y=a-this.pl;this.Nk=this.aa+this.y;this.pl=this.Nk-this.aa-this.y;this.aa=this.Nk};r.prototype.reset=function(){this.aa=this.Nk=this.y=this.pl=0};bb=r;cb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.Ai=function(a){this.Gq=a;this.pd=a.length/2;this.ob.length=a.length;this.bj=this.cj=-1;this.zo=0};f.prototype.Hf=function(){return!this.Gq.length};
f.prototype.ta=function(){for(var a=this.ob,d=a[0],b=d,g=a[1],h=g,c,f,m=1,A=this.pd;m<A;++m)f=2*m,c=a[f],f=a[f+1],c<d&&(d=c),c>b&&(b=c),f<g&&(g=f),f>h&&(h=f);this.Yi=d;this.Zi=b;this.$i=g;this.Xi=h};f.prototype.ef=function(a,d,b){this.ob.length=8;this.pd=4;var g=this.ob;g[0]=a.left-d;g[1]=a.top-b;g[2]=a.right-d;g[3]=a.top-b;g[4]=a.right-d;g[5]=a.bottom-b;g[6]=a.left-d;g[7]=a.bottom-b;this.cj=a.right-a.left;this.bj=a.bottom-a.top;this.ta()};f.prototype.Xf=function(a,d,b,g,h){this.ob.length=8;this.pd=
4;var c=this.ob;c[0]=a.ab-d;c[1]=a.bb-b;c[2]=a.Ib-d;c[3]=a.Jb-b;c[4]=a.xb-d;c[5]=a.yb-b;c[6]=a.ub-d;c[7]=a.wb-b;this.cj=g;this.bj=h;this.ta()};f.prototype.Wq=function(a){this.pd=a.pd;Aa(this.ob,a.ob);this.Yi=a.Yi;this.$i-a.$i;this.Zi=a.Zi;this.Xi=a.Xi};f.prototype.pf=function(a,d,b){if(this.cj!==a||this.bj!==d||this.zo!==b){this.cj=a;this.bj=d;this.zo=b;var g,h,c,f,m,A=0,u=1,t=this.Gq,e=this.ob;0!==b&&(A=Math.sin(b),u=Math.cos(b));b=0;for(c=this.pd;b<c;b++)g=2*b,h=g+1,f=t[g]*a,m=t[h]*d,e[g]=f*u-m*
A,e[h]=m*u+f*A;this.ta()}};f.prototype.Rb=function(a,d){var b=this.ob;if(a===b[0]&&d===b[1])return!0;var g,h,c,f=this.pd,m=this.Yi-110,A=this.$i-101,u=this.Zi+131,t=this.Xi+120,e,p,z=0,O=0;for(g=0;g<f;g++)h=2*g,c=(g+1)%f*2,e=b[h],h=b[h+1],p=b[c],c=b[c+1],va(m,A,a,d,e,h,p,c)&&z++,va(u,t,a,d,e,h,p,c)&&O++;return 1===z%2||1===O%2};f.prototype.Ff=function(a,d,b){var g=a.ob,h=this.ob;if(this.Rb(g[0]+d,g[1]+b)||a.Rb(h[0]-d,h[1]-b))return!0;var c,f,m,A,u,t,e,p,z,O,y,v;c=0;for(A=this.pd;c<A;c++)for(f=2*c,
m=(c+1)%A*2,p=h[f],f=h[f+1],z=h[m],O=h[m+1],m=0,e=a.pd;m<e;m++)if(u=2*m,t=(m+1)%e*2,y=g[u]+d,u=g[u+1]+b,v=g[t]+d,t=g[t+1]+b,va(p,f,z,O,y,u,v,t))return!0;return!1};db=f;a.prototype.Ke=function(a,d,b){var g;g=this.cells[a];return g?(g=g[d])?g:b?(g=c(this,a,d),this.cells[a][d]=g):null:b?(g=c(this,a,d),this.cells[a]={},this.cells[a][d]=g):null};a.prototype.Vb=function(a){return J(a/this.tl)};a.prototype.Wb=function(a){return J(a/this.sl)};a.prototype.update=function(a,d,b){var g,h,c,f,m;if(d)for(g=d.left,
h=d.right;g<=h;++g)for(c=d.top,f=d.bottom;c<=f;++c)if(!b||!b.Rb(g,c))if(m=this.Ke(g,c,!1))m.remove(a),m.$d()&&(m.rb.clear(),1E3>w.length&&w.push(m),this.cells[g][c]=null);if(b)for(g=b.left,h=b.right;g<=h;++g)for(c=b.top,f=b.bottom;c<=f;++c)d&&d.Rb(g,c)||this.Ke(g,c,!0).lm(a)};a.prototype.uk=function(a,d){var b,g,h,c,f,m;b=this.Vb(a.left);h=this.Wb(a.top);g=this.Vb(a.right);for(f=this.Wb(a.bottom);b<=g;++b)for(c=h;c<=f;++c)(m=this.Ke(b,c,!1))&&m.dump(d)};eb=a;b.prototype.Ke=function(a,d,b){var h;h=
this.cells[a];return h?(h=h[d])?h:b?(h=g(this,a,d),this.cells[a][d]=h):null:b?(h=g(this,a,d),this.cells[a]={},this.cells[a][d]=h):null};b.prototype.Vb=function(a){return J(a/this.tl)};b.prototype.Wb=function(a){return J(a/this.sl)};b.prototype.update=function(a,d,b){var g,h,c,f,m;if(d)for(g=d.left,h=d.right;g<=h;++g)for(c=d.top,f=d.bottom;c<=f;++c)if(!b||!b.Rb(g,c))if(m=this.Ke(g,c,!1))m.remove(a),m.$d()&&(m.reset(),1E3>D.length&&D.push(m),this.cells[g][c]=null);if(b)for(g=b.left,h=b.right;g<=h;++g)for(c=
b.top,f=b.bottom;c<=f;++c)d&&d.Rb(g,c)||this.Ke(g,c,!0).lm(a)};b.prototype.uk=function(a,d,b,g,h){var c,f;a=this.Vb(a);d=this.Wb(d);b=this.Vb(b);for(c=this.Wb(g);a<=b;++a)for(g=d;g<=c;++g)(f=this.Ke(a,g,!1))&&f.dump(h)};b.prototype.Fv=function(a){var d,b,g,h,c;d=a.left;g=a.top;b=a.right;for(h=a.bottom;d<=b;++d)for(a=g;a<=h;++a)if(c=this.Ke(d,a,!1))c.Eg=!1};fb=b;var w=[];d.prototype.$d=function(){return this.rb.$d()};d.prototype.lm=function(a){this.rb.add(a)};d.prototype.remove=function(a){this.rb.remove(a)};
d.prototype.dump=function(a){Ba(a,this.rb.pe())};ea=d;var D=[];t.prototype.$d=function(){if(!this.rb.length)return!0;if(this.rb.length>this.Ld.count())return!1;this.Ql();return!0};t.prototype.lm=function(a){this.Ld.contains(a)?(this.Ld.remove(a),this.Ld.$d()&&(this.kh=!1)):this.rb.length?(this.rb[this.rb.length-1].Ed()>a.Ed()&&(this.Eg=!1),this.rb.push(a)):(this.rb.push(a),this.Eg=!0)};t.prototype.remove=function(a){this.Ld.add(a);this.kh=!0;30<=this.Ld.count()&&this.Ql()};t.prototype.Ql=function(){this.kh&&
(this.Ld.count()===this.rb.length?this.reset():(Za(this.rb,this.Ld),this.Ld.clear(),this.kh=!1))};t.prototype.Vt=function(){this.Eg||(this.rb.sort(h),this.Eg=!0)};t.prototype.reset=function(){V(this.rb);this.Eg=!0;this.Ld.clear();this.kh=!1};t.prototype.dump=function(a){this.Ql();this.Vt();this.rb.length&&a.push(this.rb)};ga=t;var L="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":
L[a-1]};hb=function(a,d,b){if(b)switch(a.Hb=b.ONE,a.Bb=b.ONE_MINUS_SRC_ALPHA,d){case 1:a.Hb=b.ONE;a.Bb=b.ONE;break;case 3:a.Hb=b.ONE;a.Bb=b.ZERO;break;case 4:a.Hb=b.ONE_MINUS_DST_ALPHA;a.Bb=b.ONE;break;case 5:a.Hb=b.DST_ALPHA;a.Bb=b.ZERO;break;case 6:a.Hb=b.ZERO;a.Bb=b.SRC_ALPHA;break;case 7:a.Hb=b.ONE_MINUS_DST_ALPHA;a.Bb=b.ZERO;break;case 8:a.Hb=b.ZERO;a.Bb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Hb=b.DST_ALPHA;a.Bb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Hb=b.ONE_MINUS_DST_ALPHA,a.Bb=b.SRC_ALPHA}};
ib=function(a){return Math.round(1E6*a)/1E6};lb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||lb(a.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(e){var k=new hc(3);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2]);return k}
function jc(e){var k=new hc(16);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2],k[3]=e[3],k[4]=e[4],k[5]=e[5],k[6]=e[6],k[7]=e[7],k[8]=e[8],k[9]=e[9],k[10]=e[10],k[11]=e[11],k[12]=e[12],k[13]=e[13],k[14]=e[14],k[15]=e[15]);return k}function kc(e,k){k[0]=e[0];k[1]=e[1];k[2]=e[2];k[3]=e[3];k[4]=e[4];k[5]=e[5];k[6]=e[6];k[7]=e[7];k[8]=e[8];k[9]=e[9];k[10]=e[10];k[11]=e[11];k[12]=e[12];k[13]=e[13];k[14]=e[14];k[15]=e[15]}
function lc(e,k){var l=k[0],n=k[1];k=k[2];e[0]*=l;e[1]*=l;e[2]*=l;e[3]*=l;e[4]*=n;e[5]*=n;e[6]*=n;e[7]*=n;e[8]*=k;e[9]*=k;e[10]*=k;e[11]*=k}
function mc(e,k,l,n){n||(n=jc());var q,r,f,a,b,c,d,g,t=e[0],h=e[1];e=e[2];r=l[0];f=l[1];q=l[2];l=k[1];c=k[2];t===k[0]&&h===l&&e===c?(e=n,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(l=t-k[0],c=h-k[1],d=e-k[2],g=1/Math.sqrt(l*l+c*c+d*d),l*=g,c*=g,d*=g,k=f*d-q*c,q=q*l-r*d,r=r*c-f*l,(g=Math.sqrt(k*k+q*q+r*r))?(g=1/g,k*=g,q*=g,r*=g):r=q=k=0,f=c*r-d*q,a=d*k-l*r,b=l*q-c*k,(g=Math.sqrt(f*f+a*a+b*b))?(g=1/g,f*=g,a*=g,b*=g):b=a=f=0,
n[0]=k,n[1]=f,n[2]=l,n[3]=0,n[4]=q,n[5]=a,n[6]=c,n[7]=0,n[8]=r,n[9]=b,n[10]=d,n[11]=0,n[12]=-(k*t+q*h+r*e),n[13]=-(f*t+a*h+b*e),n[14]=-(l*t+c*h+d*e),n[15]=1)}
(function(){function e(a,b,c){this.Gd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Aa=!!c;this.Lj=this.Kh=!1;this.Cl=0;this.bl=1;this.Yn=1E3;this.ix=(this.Yn-this.bl)/32768;this.ql=ic([0,0,100]);this.Kp=ic([0,0,0]);this.xr=ic([0,1,0]);this.Oi=ic([1,1,1]);this.Oo=!0;this.ik=jc();this.Ec=jc();this.xm=jc();this.Bl=jc();this.u=a;this.version=0===this.u.getParameter(this.u.VERSION).indexOf("WebGL 2")?2:1;this.np()}function k(a,b,c){this.u=a;this.Bi=
b;this.name=c;this.Qc=a.getAttribLocation(b,"aPos");this.Ve=a.getAttribLocation(b,"aTex");this.Ip=a.getUniformLocation(b,"matP");this.dk=a.getUniformLocation(b,"matMV");this.Mg=a.getUniformLocation(b,"opacity");this.Gm=a.getUniformLocation(b,"colorFill");this.Jp=a.getUniformLocation(b,"samplerFront");this.ai=a.getUniformLocation(b,"samplerBack");this.Mf=a.getUniformLocation(b,"destStart");this.Lf=a.getUniformLocation(b,"destEnd");this.ci=a.getUniformLocation(b,"seconds");this.Im=a.getUniformLocation(b,
"pixelWidth");this.Hm=a.getUniformLocation(b,"pixelHeight");this.$h=a.getUniformLocation(b,"layerScale");this.Zh=a.getUniformLocation(b,"layerAngle");this.di=a.getUniformLocation(b,"viewOrigin");this.bi=a.getUniformLocation(b,"scrollPos");this.lv=!!(this.Im||this.Hm||this.ci||this.ai||this.Mf||this.Lf||this.$h||this.Zh||this.di||this.bi);this.Sp=this.Tp=-999;this.hk=1;this.Op=this.Np=0;this.Qp=this.Mp=this.Lp=1;this.Wp=this.Vp=this.Up=this.Yp=this.Xp=this.Pp=0;this.wm=[];this.Rp=jc();this.Mg&&a.uniform1f(this.Mg,
1);this.Gm&&a.uniform4f(this.Gm,1,1,1,1);this.Jp&&a.uniform1i(this.Jp,0);this.ai&&a.uniform1i(this.ai,1);this.Mf&&a.uniform2f(this.Mf,0,0);this.Lf&&a.uniform2f(this.Lf,1,1);this.$h&&a.uniform1f(this.$h,1);this.Zh&&a.uniform1f(this.Zh,0);this.di&&a.uniform2f(this.di,0,0);this.bi&&a.uniform2f(this.bi,0,0);this.ci&&a.uniform1f(this.ci,0);this.Cf=!1}function l(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function n(a,b){this.type=a;this.q=b;this.u=b.u;this.Fd=this.Ub=this.rq=0;this.U=this.Xc=null;this.Yq=[]}var q=jc();e.prototype.np=function(){var a=this.u,b;this.Dp=1;this.If=this.Re=null;this.ij=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.STENCIL_TEST);a.disable(a.DITHER);this.Aa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Ep=a.ONE;this.Cp=a.ONE_MINUS_SRC_ALPHA;this.$k=new Float32Array(8E3*(this.Aa?3:2));this.Ok=new Float32Array(16E3);this.Cq=new Float32Array(32E3);this.Ym=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Ym);a.bufferData(a.ARRAY_BUFFER,this.Cq.byteLength,a.DYNAMIC_DRAW);this.Mi=Array(4);this.Gi=Array(4);for(b=0;4>b;b++)this.Mi[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Mi[b]),a.bufferData(a.ARRAY_BUFFER,this.$k.byteLength,a.DYNAMIC_DRAW),this.Gi[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Gi[b]),a.bufferData(a.ARRAY_BUFFER,this.Ok.byteLength,a.DYNAMIC_DRAW);this.Sd=0;this.ov=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ov);for(var c=new Uint16Array(12E3),d=b=0;12E3>b;)c[b++]=d,c[b++]=d+1,c[b++]=d+2,c[b++]=d,c[b++]=d+2,c[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.Zm=this.eh=this.qe=0;this.Oa=[];b=this.Aa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.oh({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}"},b,"<default>");this.Oa.push(c);c=this.oh({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.Oa.push(c);c=this.oh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Oa.push(c);c=this.oh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Oa.push(c);for(var g in nc)nc.hasOwnProperty(g)&&this.Oa.push(this.oh(nc[g],b,g));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Be=[];this.Rd=0;this.Nb=!1;this.Ko=this.Th=-1;this.ng=null;this.Ol=a.createFramebuffer();this.oj=this.vk=null;this.uo=!1;this.Aa&&(this.oj=a.createRenderbuffer());this.hf=ic([0,0,0]);this.Zp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Zp&&(this.Zp=2048);this.hc(0)};k.prototype.Qn=function(a){l(this.Rp,a)||(kc(a,this.Rp),this.u.uniformMatrix4fv(this.dk,
!1,a))};e.prototype.oh=function(a,b,c){var d=this.u,g=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(g,a.src);d.compileShader(g);if(!d.getShaderParameter(g,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(g),d.deleteShader(g),Error("error compiling fragment shader: "+a);var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,b);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(f),d.deleteShader(g),d.deleteShader(f),Error("error compiling vertex shader: "+a);b=
d.createProgram();d.attachShader(b,g);d.attachShader(b,f);d.linkProgram(b);if(!d.getProgramParameter(b,d.LINK_STATUS))throw a=d.getProgramInfoLog(b),d.deleteShader(g),d.deleteShader(f),d.deleteProgram(b),Error("error linking shader program: "+a);d.useProgram(b);d.deleteShader(g);d.deleteShader(f);g=new k(d,b,c);g.Ml=a.Ml||0;g.Nl=a.Nl||0;g.Jo=!!a.Jo;g.nd=!!a.nd;g.so=!!a.so;g.X=a.X||[];a=0;for(f=g.X.length;a<f;a++)g.X[a][1]=d.getUniformLocation(b,g.X[a][0]),g.wm.push(0),d.uniform1f(g.X[a][1],0);return g};
e.prototype.$l=function(a){var b,c;b=0;for(c=this.Oa.length;b<c;b++)if(this.Oa[b].name===a)return b;return-1};e.prototype.Fq=function(a,b,c){var d=this.Ec,g=this.ik,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*a+d[4]*b+d[12];f[1]=d[1]*a+d[5]*b+d[13];f[2]=d[2]*a+d[6]*b+d[14];f[3]=d[3]*a+d[7]*b+d[15];f[4]=g[0]*f[0]+g[4]*f[1]+g[8]*f[2]+g[12]*f[3];f[5]=g[1]*f[0]+g[5]*f[1]+g[9]*f[2]+g[13]*f[3];f[6]=g[2]*f[0]+g[6]*f[1]+g[10]*f[2]+g[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],c[0]=(.5*f[4]+
.5)*this.width,c[1]=(.5*f[5]+.5)*this.height)};e.prototype.Wf=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Ie();c=this.u;this.width=a;this.height=b;c.viewport(0,0,a,b);mc(this.ql,this.Kp,this.xr,this.Ec);if(this.Aa){var d=-a/2;a=a/2;var g=b/2;b=-b/2;var f=this.bl,h=this.Yn,e=this.ik;e||(e=jc());var y=a-d,k=b-g,m=h-f;e[0]=2/y;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/k;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/m;e[11]=0;e[12]=-(d+a)/y;e[13]=-(b+g)/k;e[14]=-(h+f)/m;e[15]=1;this.Oi[0]=1;this.Oi[1]=
1}else b=a/b,d=this.bl,a=this.Yn,e=this.ik,h=d*Math.tan(45*Math.PI/360),b*=h,g=-b,f=-h,e||(e=jc()),y=b-g,k=h-f,m=a-d,e[0]=2*d/y,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*d/k,e[6]=0,e[7]=0,e[8]=(b+g)/y,e[9]=(h+f)/k,e[10]=-(a+d)/m,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*d*2)/m,e[15]=0,d=[0,0],a=[0,0],this.Fq(0,0,d),this.Fq(1,1,a),this.Oi[0]=1/(a[0]-d[0]),this.Oi[1]=-1/(a[1]-d[1]);d=0;for(a=this.Oa.length;d<a;d++)g=this.Oa[d],g.Cf=!1,g.Ip&&(c.useProgram(g.Bi),c.uniformMatrix4fv(g.Ip,!1,this.ik));c.useProgram(this.Oa[this.Th].Bi);
c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.If=this.Re=null;this.oj&&(c.bindFramebuffer(c.FRAMEBUFFER,this.Ol),c.bindRenderbuffer(c.RENDERBUFFER,this.oj),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.uo||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.oj),this.uo=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),
this.vk=null)}};e.prototype.Uc=function(){mc(this.ql,this.Kp,this.xr,this.Ec);lc(this.Ec,this.Oi)};e.prototype.translate=function(a,b){if(0!==a||0!==b){this.hf[0]=a;this.hf[1]=b;this.hf[2]=0;var c=this.Ec,d=this.hf,g=d[0],f=d[1],d=d[2];c[12]=c[0]*g+c[4]*f+c[8]*d+c[12];c[13]=c[1]*g+c[5]*f+c[9]*d+c[13];c[14]=c[2]*g+c[6]*f+c[10]*d+c[14];c[15]=c[3]*g+c[7]*f+c[11]*d+c[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.hf[0]=a,this.hf[1]=b,this.hf[2]=1,lc(this.Ec,this.hf)};e.prototype.yk=function(a){if(0!==
a){var b=this.Ec,c,d=Math.sin(a);a=Math.cos(a);var g=b[0],f=b[1],h=b[2],e=b[3],y=b[4],k=b[5],m=b[6],p=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=g*a+y*d;c[1]=f*a+k*d;c[2]=h*a+m*d;c[3]=e*a+p*d;c[4]=g*-d+y*a;c[5]=f*-d+k*a;c[6]=h*-d+m*a;c[7]=e*-d+p*a}};e.prototype.Hc=function(){if(!l(this.xm,this.Ec)){var a=this.vc();a.type=5;a.U?kc(this.Ec,a.U):a.U=jc(this.Ec);kc(this.Ec,this.xm);this.Nb=!1}};e.prototype.Ek=function(a){this.Aa&&
(32760<a&&(a=32760),this.Cl=this.ql[2]-this.bl-a*this.ix)};n.prototype.Ft=function(){var a=this.u,b=this.q;0!==this.Ub?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.Ol),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Lj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Lj=!1)};n.prototype.Jt=function(){this.u.bindTexture(this.u.TEXTURE_2D,
this.Xc)};n.prototype.Kt=function(){var a=this.u;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Xc);a.activeTexture(a.TEXTURE0)};n.prototype.Gt=function(){var a=this.rq,b=this.q;b.ij=a;b=b.ng;b.Mg&&b.hk!==a&&(b.hk=a,this.u.uniform1f(b.Mg,a))};n.prototype.At=function(){this.u.drawElements(this.u.TRIANGLES,this.Fd,this.u.UNSIGNED_SHORT,this.Ub)};n.prototype.Ct=function(){this.u.blendFunc(this.Ub,this.Fd)};n.prototype.Lt=function(){var a,b,c,d=this.q.Oa,g=this.q.Ko;a=0;for(b=d.length;a<
b;a++)c=d[a],a===g&&c.dk?(c.Qn(this.U),c.Cf=!0):c.Cf=!1;kc(this.U,this.q.Bl)};n.prototype.Bt=function(){var a=this.u,b=this.q;this.Xc?(b.If===this.Xc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.If=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Ol),b.Lj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Xc,0)):(b.Aa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
n.prototype.xt=function(){var a=this.u,b=this.Ub;0===b?(a.clearColor(this.U[0],this.U[1],this.U[2],this.U[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.U[0],this.U[1],this.U[2],this.U[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};n.prototype.Et=function(){var a=this.u;0!==this.Ub?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};n.prototype.zt=function(){var a=this.u,b=this.q;b.Aa&&a.disable(a.DEPTH_TEST);
var c=b.Oa[1];a.useProgram(c.Bi);!c.Cf&&c.dk&&(c.Qn(b.Bl),c.Cf=!0);a.enableVertexAttribArray(c.Qc);a.bindBuffer(a.ARRAY_BUFFER,b.Ym);a.vertexAttribPointer(c.Qc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Ub/4,this.Fd);c=b.ng;a.useProgram(c.Bi);0<=c.Qc&&(a.enableVertexAttribArray(c.Qc),a.bindBuffer(a.ARRAY_BUFFER,b.Mi[b.Sd]),a.vertexAttribPointer(c.Qc,b.Aa?3:2,a.FLOAT,!1,0,0));0<=c.Ve&&(a.enableVertexAttribArray(c.Ve),a.bindBuffer(a.ARRAY_BUFFER,b.Gi[b.Sd]),a.vertexAttribPointer(c.Ve,2,a.FLOAT,!1,
0,0));b.Aa&&a.enable(a.DEPTH_TEST)};n.prototype.Ht=function(){var a=this.u,b=this.q,c=b.Oa[this.Ub];b.Ko=this.Ub;b.ng=c;a.useProgram(c.Bi);!c.Cf&&c.dk&&(c.Qn(b.Bl),c.Cf=!0);c.Mg&&c.hk!==b.ij&&(c.hk=b.ij,a.uniform1f(c.Mg,b.ij));0<=c.Qc&&(a.enableVertexAttribArray(c.Qc),a.bindBuffer(a.ARRAY_BUFFER,b.Mi[b.Sd]),a.vertexAttribPointer(c.Qc,b.Aa?3:2,a.FLOAT,!1,0,0));0<=c.Ve&&(a.enableVertexAttribArray(c.Ve),a.bindBuffer(a.ARRAY_BUFFER,b.Gi[b.Sd]),a.vertexAttribPointer(c.Ve,2,a.FLOAT,!1,0,0))};n.prototype.Dt=
function(){var a=this.U;this.u.uniform4f(this.q.ng.Gm,a[0],a[1],a[2],a[3])};n.prototype.It=function(){var a,b,c=this.q.ng,d=this.u;a=this.U;c.ai&&this.q.If!==this.Xc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Xc),this.q.If=this.Xc,d.activeTexture(d.TEXTURE0));var g=a[0];c.Im&&g!==c.Tp&&(c.Tp=g,d.uniform1f(c.Im,g));g=a[1];c.Hm&&g!==c.Sp&&(c.Sp=g,d.uniform1f(c.Hm,g));g=a[2];b=a[3];!c.Mf||g===c.Np&&b===c.Op||(c.Np=g,c.Op=b,d.uniform2f(c.Mf,g,b));g=a[4];b=a[5];!c.Lf||g===c.Lp&&b===
c.Mp||(c.Lp=g,c.Mp=b,d.uniform2f(c.Lf,g,b));g=a[6];c.$h&&g!==c.Qp&&(c.Qp=g,d.uniform1f(c.$h,g));g=a[7];c.Zh&&g!==c.Pp&&(c.Pp=g,d.uniform1f(c.Zh,g));g=a[8];b=a[9];!c.di||g===c.Xp&&b===c.Yp||(c.Xp=g,c.Yp=b,d.uniform2f(c.di,g,b));g=a[10];b=a[11];!c.bi||g===c.Up&&b===c.Vp||(c.Up=g,c.Vp=b,d.uniform2f(c.bi,g,b));g=a[12];c.ci&&g!==c.Wp&&(c.Wp=g,d.uniform1f(c.ci,g));if(c.X.length)for(a=0,b=c.X.length;a<b;a++)g=this.Yq[a],g!==c.wm[a]&&(c.wm[a]=g,d.uniform1f(c.X[a][1],g))};e.prototype.vc=function(){this.Rd===
this.Be.length&&this.Be.push(new n(0,this));return this.Be[this.Rd++]};e.prototype.Ie=function(){if(0!==this.Rd&&!this.u.isContextLost()){var a=this.u;0<this.Zm&&(a.bindBuffer(a.ARRAY_BUFFER,this.Ym),a.bufferSubData(a.ARRAY_BUFFER,0,this.Cq.subarray(0,this.Zm)),b&&0<=b.Qc&&"<point>"===b.name&&a.vertexAttribPointer(b.Qc,4,a.FLOAT,!1,0,0));if(0<this.qe){var b=this.ng;a.bindBuffer(a.ARRAY_BUFFER,this.Mi[this.Sd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.$k.subarray(0,this.qe));b&&0<=b.Qc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Qc,this.Aa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Gi[this.Sd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ok.subarray(0,this.eh));b&&0<=b.Ve&&"<point>"!==b.name&&a.vertexAttribPointer(b.Ve,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Rd;a<b;a++)switch(c=this.Be[a],c.type){case 1:c.At();break;case 2:c.Jt();break;case 3:c.Gt();break;case 4:c.Ct();break;case 5:c.Lt();break;case 6:c.Bt();break;case 7:c.xt();break;case 8:c.zt();break;case 9:c.Ht();break;case 10:c.It();break;
case 11:c.Kt();break;case 12:c.Dt();break;case 13:c.Et();break;case 14:c.Ft()}this.Zm=this.eh=this.qe=this.Rd=0;this.Lj=this.Nb=!1;this.Sd++;4<=this.Sd&&(this.Sd=0)}};e.prototype.df=function(a){if(a!==this.Dp&&!this.Kh){var b=this.vc();b.type=3;this.Dp=b.rq=a;this.Nb=!1}};e.prototype.gc=function(a){if(a!==this.Re){var b=this.vc();b.type=2;this.Re=b.Xc=a;this.Nb=!1}};e.prototype.ie=function(a,b){if((a!==this.Ep||b!==this.Cp)&&!this.Kh){var c=this.vc();c.type=4;c.Ub=a;c.Fd=b;this.Ep=a;this.Cp=b;this.Nb=
!1}};e.prototype.Nq=function(){this.ie(this.u.ONE,this.u.ONE_MINUS_SRC_ALPHA)};e.prototype.Wg=function(a,b,c,d,g,f,h,e){15992<=this.qe&&this.Ie();var y=this.qe,k=this.eh,m=this.$k,p=this.Ok,l=this.Cl;if(this.Nb)this.Be[this.Rd-1].Fd+=6;else{var N=this.vc();N.type=1;N.Ub=this.Aa?y:y/2*3;N.Fd=6;this.Nb=!0}this.Aa?(m[y++]=a,m[y++]=b,m[y++]=l,m[y++]=c,m[y++]=d,m[y++]=l,m[y++]=g,m[y++]=f,m[y++]=l,m[y++]=h,m[y++]=e,m[y++]=l):(m[y++]=a,m[y++]=b,m[y++]=c,m[y++]=d,m[y++]=g,m[y++]=f,m[y++]=h,m[y++]=e);p[k++]=
0;p[k++]=0;p[k++]=1;p[k++]=0;p[k++]=1;p[k++]=1;p[k++]=0;p[k++]=1;this.qe=y;this.eh=k};e.prototype.Md=function(a,b,c,d,g,f,h,e,k){15992<=this.qe&&this.Ie();var l=this.qe,m=this.eh,p=this.$k,n=this.Ok,N=this.Cl;if(this.Nb)this.Be[this.Rd-1].Fd+=6;else{var v=this.vc();v.type=1;v.Ub=this.Aa?l:l/2*3;v.Fd=6;this.Nb=!0}var v=k.left,E=k.top,r=k.right;k=k.bottom;this.Aa?(p[l++]=a,p[l++]=b,p[l++]=N,p[l++]=c,p[l++]=d,p[l++]=N,p[l++]=g,p[l++]=f,p[l++]=N,p[l++]=h,p[l++]=e,p[l++]=N):(p[l++]=a,p[l++]=b,p[l++]=c,
p[l++]=d,p[l++]=g,p[l++]=f,p[l++]=h,p[l++]=e);n[m++]=v;n[m++]=E;n[m++]=r;n[m++]=E;n[m++]=r;n[m++]=k;n[m++]=v;n[m++]=k;this.qe=l;this.eh=m};e.prototype.hc=function(a){if(this.Th!==a){if(!this.Oa[a]){if(0===this.Th)return;a=0}var b=this.vc();b.type=9;this.Th=b.Ub=a;this.Nb=!1}};e.prototype.pi=function(a){a=this.Oa[a];return!(!a.Mf&&!a.Lf)};e.prototype.bn=function(a){a=this.Oa[a];return!!(a.Mf||a.Lf||a.Jo)};e.prototype.an=function(a){return this.Oa[a].nd};e.prototype.kw=function(a){a=this.Oa[a];return 0!==
a.Ml||0!==a.Nl};e.prototype.Ru=function(a){return this.Oa[a].Ml};e.prototype.Su=function(a){return this.Oa[a].Nl};e.prototype.Tu=function(a,b){return this.Oa[a].X[b][2]};e.prototype.sk=function(a){return this.Oa[a].so};e.prototype.ah=function(a,b,c,d,g,f,h,e,k,l,m,p,n,N,v){var E=this.Oa[this.Th],r,q;if(E.lv||v.length){r=this.vc();r.type=10;r.U?kc(this.Ec,r.U):r.U=jc();q=r.U;q[0]=b;q[1]=c;q[2]=d;q[3]=g;q[4]=f;q[5]=h;q[6]=e;q[7]=k;q[8]=l;q[9]=m;q[10]=p;q[11]=n;q[12]=N;E.ai?r.Xc=a:r.Xc=null;if(v.length)for(c=
r.Yq,c.length=v.length,a=0,b=v.length;a<b;a++)c[a]=v[a];this.Nb=!1}};e.prototype.clear=function(a,b,c,d){var g=this.vc();g.type=7;g.Ub=0;g.U||(g.U=jc());g.U[0]=a;g.U[1]=b;g.U[2]=c;g.U[3]=d;this.Nb=!1};e.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var g=this.vc();g.type=7;g.Ub=1;g.U||(g.U=jc());g.U[0]=a;g.U[1]=b;g.U[2]=c;g.U[3]=d;this.Nb=!1}};e.prototype.Qq=function(a){if(this.Aa&&(a=!!a,this.Kh!==a)){var b=this.vc();b.type=14;b.Ub=a?1:0;this.Nb=!1;this.Kh=a;this.vk=null;this.Kh?this.hc(2):
this.hc(0)}};e.prototype.Pq=function(a){if(this.Aa){var b=this.vc();b.type=13;b.Ub=a?1:0;this.Nb=!1}};e.prototype.Yo=function(){kc(this.xm,q);this.Uc();this.Hc();var a=this.width/2,b=this.height/2;this.Wg(-a,b,a,b,a,-b,-a,-b);kc(q,this.Ec);this.Hc()};e.prototype.Oq=function(a,b,c){this.hc(3);var d=this.vc();d.type=12;d.U||(d.U=jc());d.U[0]=a;d.U[1]=b;d.U[2]=c;d.U[3]=1;this.Nb=!1};e.prototype.Lw=function(){this.hc(0)};e.prototype.ww=function(){this.hc(2)};e.prototype.jw=function(){this.Ie();this.u.flush()};
var r=[],f={};e.prototype.kt=function(){V(r);f={}};e.prototype.ak=function(a,b,c,d){b=!!b;c=!!c;var g=a.src+","+b+","+c+(b?",undefined":""),e=null;if("undefined"!==typeof a.src&&f.hasOwnProperty(g))return e=f[g],e.aj++,e;this.Ie();var h=this.u,k=na(a.width)&&na(a.height),e=h.createTexture();h.bindTexture(h.TEXTURE_2D,e);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=h.RGBA,n=h.RGBA,m=h.UNSIGNED_BYTE;if(d&&!this.Gd)switch(d){case 1:n=l=h.RGB;break;case 2:m=h.UNSIGNED_SHORT_4_4_4_4;break;
case 3:m=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=l=h.RGB,m=h.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&b){d=document.createElement("canvas");d.width=oa(a.width);d.height=oa(a.height);var p=d.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=c:(p.webkitImageSmoothingEnabled=c,p.mozImageSmoothingEnabled=c,p.msImageSmoothingEnabled=c);p.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);h.texImage2D(h.TEXTURE_2D,0,l,n,m,d)}else h.texImage2D(h.TEXTURE_2D,0,
l,n,m,a);b?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),(k||2<=this.version)&&this.Oo?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Re=null;e.of=a.width;e.nf=a.height;e.aj=1;e.yo=g;r.push(e);return f[g]=e};e.prototype.mc=function(a,b,c,d,g){this.Ie();var f=this.u;this.Gd&&(d=!1);var h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);g?(f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Re=null;h.of=a;h.nf=b;r.push(h);return h};e.prototype.Tn=function(a,b,f){this.Ie();var d=this.u;this.Gd&&(f=
!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,f?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(g){console&&console.error&&console.error("Error updating WebGL texture: ",g)}d.bindTexture(d.TEXTURE_2D,null);this.Re=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.aj&&1<a.aj?a.aj--:(this.Ie(),a===this.Re&&(this.u.bindTexture(this.u.TEXTURE_2D,null),this.Re=null),a===this.If&&(this.u.activeTexture(this.u.TEXTURE1),
this.u.bindTexture(this.u.TEXTURE_2D,null),this.u.activeTexture(this.u.TEXTURE0),this.If=null),Da(r,a),"undefined"!==typeof a.yo&&delete f[a.yo],this.u.deleteTexture(a)))};e.prototype.Vc=function(a){if(a!==this.vk){var b=this.vc();b.type=6;this.vk=b.Xc=a;this.Nb=!1}};nb=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Zd=(this.Jh=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Ob=!!a.dc;this.vp="undefined"!==typeof window.AppMobi||
this.Ob;this.Pc=!!window.c2cocoonjs;this.gd=!!window.c2ejecta;this.Pc&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.gd&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Wa=this.Ob||this.Pc||this.gd;this.Ag=
/edge\//i.test(navigator.userAgent);this.Gd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Ag;this.xp=/tizen/i.test(navigator.userAgent);this.zg=/android/i.test(navigator.userAgent)&&!this.xp&&!this.Gd&&!this.Ag;this.Bp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Gd&&!this.Ag;this.Bv=/ipad/i.test(navigator.userAgent);this.Gg=this.Bp||this.Bv||this.gd;this.Mj=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Gd&&!this.Ag;this.up=/amazonwebappplatform/i.test(navigator.userAgent);this.sv=/firefox/i.test(navigator.userAgent);this.wv=/safari/i.test(navigator.userAgent)&&!this.Mj&&!this.Gd&&!this.Ag;this.xv=/windows/i.test(navigator.userAgent);this.qm="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.zp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.yv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ph=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.um=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Pj=!!window.cr_windows10;this.yp=this.zp||this.yv||this.um||this.Pj;this.qv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Hh=this.zg&&!this.Mj&&!this.Jh&&!this.sv&&!this.up&&!this.Wa;this.devicePixelRatio=
1;this.Oe=this.Zd||this.Jh||this.vp||this.Pc||this.zg||this.Gg||this.Ph||this.um||this.qv||this.xp||this.gd;this.Oe||(this.Oe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Oh=!!(this.Gg&&this.Zd&&window.webkit);"undefined"===typeof cr_is_preview||this.qm||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.qm=!0);this.canvas=a;this.Co=document.getElementById("c2canvasdiv");
this.q=this.u=null;this.am="(unavailable)";this.Aa=!1;this.wf=0;this.Fa=null;this.wj=!1;this.oq=this.pq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ob&&(window.c2runtime=this);this.qm&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Hh&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.H=this.width;this.G=this.height;this.gj=this.width;this.qh=this.height;this.Kg=window.innerWidth;this.Jg=window.innerHeight;this.pa=!0;this.Nh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.r=[];this.Ia=[];this.Dm={};this.jd=[];this.Ll={};
this.Vd=[];this.ih=[];this.Vk=[];this.Ys=[];this.Zs=[];this.er=null;this.sf={};this.pm=this.Me=!1;this.Dc=0;this.om=this.tm=!1;this.dd=[];this.Lh=!1;this.Xh=this.Bk="";this.lb=null;this.ae="";this.Ei=this.br=!1;this.vj=[];this.vf=this.uf=0;this.cq=30;this.zl=this.ei=0;this.ag=1;this.ib=new bb;this.te=new bb;this.lk=this.zj=this.zf=this.Yc=this.Kf=this.Rl=this.Tj=0;this.qf=null;this.Gl=[];this.Kl=[];this.rj=-1;this.Jm=[[]];this.Ln=this.ek=0;this.tk(null);this.Lm=[];this.gk=-1;this.vh=this.iq=this.ji=
0;this.Fi=[];this.In=this.gn=-1;this.Hg=!0;this.ck=0;this.Nj=!1;this.Ow=0;this.jg=null;this.qc=this.ip=!1;this.mq=new fa;this.Pm=new fa;this.nq=new fa;this.Vf=[];this.ic=new db([]);this.Dn=new db([]);this.ze=[];this.Dh={};this.De={};this.ye={};this.hh={};this.vo={};this.Hp=this.Zj=this.Xa=this.jb=this.Gp=this.Yj=this.fa=null;this.fh=this.vm=!1;this.Sl=[null,null];this.ug=0;this.Pl="";this.fe={};this.Di=this.Te=null;this.dr="";this.kk=[];this.vw()}}function k(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=
d?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(a,d,b,g){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=n;h.onerror=g;h.onsuccess=function(h){h=h.target.result;h.onerror=g;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=b}}catch(f){g(f)}}function r(a,d,b){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=n;g.onerror=b;g.onsuccess=
function(g){g=g.target.result;g.onerror=b;var h=g.transaction(["saves"]).objectStore("saves").get(a);h.onsuccess=function(){h.result?d(h.result.data):d(null)}}}catch(h){b(h)}}function f(){ja("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,b={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof fa||a[d]&&"undefined"!==typeof a[d].uy||
"spriteCreatedDestroyCallback"!==d&&(b[d]=a[d]);return b}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.vw=function(){var a=this;if(this.Oh)this.zu(function(d){a.Yh(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.Ph?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var b="data.js";if(this.zp||this.Ph||this.um||this.Pj)b="data.json";
d.open("GET",b,!0);var g=!1;if(!this.Wa&&"response"in d&&"responseType"in d)try{d.responseType="json",g="json"===d.responseType}catch(h){g=!1}if(!g&&"responseType"in d)try{d.responseType="text"}catch(f){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.Ph?d.onreadystatechange=function(){4===d.readyState&&a.Yh(JSON.parse(d.responseText))}:(d.onload=function(){if(g)a.Yh(d.response);else if(a.gd){var b=d.responseText,b=b.substr(b.indexOf("{"));a.Yh(JSON.parse(b))}else a.Yh(JSON.parse(d.responseText))},
d.onerror=function(a){ka("Error requesting "+b+":");ka(a)});d.send()}};e.prototype.pv=function(){var a=this,d,b,g,h,f,c,m,e,p;this.Gf=(!this.Wa||this.gd||this.Zd)&&this.$w&&!this.Hh;0===this.Zb&&this.Gg&&(this.Gf=!1);this.devicePixelRatio=this.Gf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Kb();0<this.Zb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();
a.Lv();ja("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.np();a.q.Wf(a.q.width,a.q.height,!0);a.jb=null;a.Xa=null;a.Sl[0]=null;a.Sl[1]=null;a.Mv();a.pa=!0;ja("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Tt&&(this.Pc||this.gd||!this.Wa)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.zg||(this.u=this.canvas.getContext("webgl2",
d)),this.u||(this.u=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d)))}catch(t){}if(this.u){if(d=this.u.getExtension("WEBGL_debug_renderer_info"))this.am=this.u.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.u.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Aa&&(this.am+=" [front-to-back enabled]");this.Wa||(this.Eb=document.createElement("canvas"),jQuery(this.Eb).appendTo(this.canvas.parentNode),this.Eb.oncontextmenu=function(){return!1},this.Eb.onselectstart=function(){return!1},
this.Eb.width=Math.round(this.gj*this.devicePixelRatio),this.Eb.height=Math.round(this.qh*this.devicePixelRatio),jQuery(this.Eb).css({width:this.gj+"px",height:this.qh+"px"}),this.Dq(),this.Xm=this.Eb.getContext("2d"));this.q=new nb(this.u,this.Oe,this.Aa);this.q.Wf(this.canvas.width,this.canvas.height);this.q.Oo=0!==this.Mt;this.Fa=null;d=0;for(b=this.r.length;d<b;d++)for(f=this.r[d],g=0,h=f.P.length;g<h;g++)m=f.P[g],m.$a=this.q.$l(m.id),m.nd=this.q.an(m.$a),this.fh=this.fh||this.q.pi(m.$a);d=0;
for(b=this.jd.length;d<b;d++){e=this.jd[d];g=0;for(h=e.P.length;g<h;g++)m=e.P[g],m.$a=this.q.$l(m.id),m.nd=this.q.an(m.$a);e.vd();g=0;for(h=e.R.length;g<h;g++){p=e.R[g];f=0;for(c=p.P.length;f<c;f++)m=p.P[f],m.$a=this.q.$l(m.id),m.nd=this.q.an(m.$a),this.fh=this.fh||this.q.pi(m.$a);p.vd()}}}else{if(0<this.Zb&&this.Ob){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Fa=AppMobi.canvas.getContext("2d");try{this.Fa.samplingMode=this.Ea?"smooth":
"sharp",this.Fa.globalScale=1,this.Fa.HTML5CompatibilityMode=!0,this.Fa.imageSmoothingEnabled=this.Ea}catch(k){}0!==this.width&&0!==this.height&&(this.Fa.width=this.width,this.Fa.height=this.height)}this.Fa||(this.Pc?(d={antialias:!!this.Ea,alpha:!0},this.Fa=this.canvas.getContext("2d",d)):(d={alpha:!0},this.Fa=this.canvas.getContext("2d",d)),this.Dk(this.Fa,this.Ea));this.Xm=this.Eb=null}this.nr=function(d){a.Sa(!1,d)};window==window.top||this.Wa||this.yp||this.Ph||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Pc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ja("Reloading for continuous preview"),this.Xh="__c2_continuouspreview",this.Ei=!0),this.$v&&!this.Oe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));
window.addEventListener("blur",function(){a.Ze()});this.Wa||(d=function(a){if(mb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.Zb&&
this.Gf&&1<this.devicePixelRatio&&this.setSize(this.nb,this.mb,!0);this.sr();this.iv();this.go();this.F={}};e.prototype.setSize=function(a,d,b){var g=0,h=0,f=0,c=0,c=0;if(this.Kg!==a||this.Jg!==d||b){this.Kg=a;this.Jg=d;var m=this.Zb;if((f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Nj)&&!this.Zd)||0!==this.Zb||b)f&&(m=this.ug),b=this.devicePixelRatio,4<=m?(f=this.nb/this.mb,a/d>f?(f*=d,5===m?(c=f*b/this.nb,1<c?c=Math.floor(c):1>
c&&(c=1/Math.ceil(1/c)),f=this.nb*c/b,c=this.mb*c/b,g=(a-f)/2,h=(d-c)/2,a=f,d=c):(g=(a-f)/2,a=f)):(c=a/f,5===m?(c=c*b/this.mb,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),f=this.nb*c/b,c=this.mb*c/b,g=(a-f)/2,h=(d-c)/2,a=f):h=(d-c)/2,d=c)):f&&0===m&&(g=Math.floor((a-this.nb)/2),h=Math.floor((d-this.mb)/2),a=this.nb,d=this.mb),2>m&&(this.mh=b),this.gj=Math.round(a),this.qh=Math.round(d),this.width=Math.round(a*b),this.height=Math.round(d*b),this.pa=!0,this.Gr?(this.H=this.width,this.G=this.height,
this.Ac=!0):this.width<this.nb&&this.height<this.mb||1===m?(this.H=this.width,this.G=this.height,this.Ac=!0):(this.H=this.nb,this.G=this.mb,this.Ac=!1,2===m?(f=this.nb/this.mb,m=this.Kg/this.Jg,m<f?this.H=this.G*m:m>f&&(this.G=this.H/m)):3===m&&(f=this.nb/this.mb,m=this.Kg/this.Jg,m>f?this.H=this.G*m:m<f&&(this.G=this.H/m))),this.Co&&!this.Wa&&(jQuery(this.Co).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(d*b),this.gd?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.Gf&&!this.Wa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.Eb&&(this.Eb.width=Math.round(a*b),this.Eb.height=
Math.round(d*b),this.Eb.style.width=this.gj+"px",this.Eb.style.height=this.qh+"px"),this.q&&this.q.Wf(Math.round(a*b),Math.round(d*b)),this.Ob&&this.Fa&&(this.Fa.width=Math.round(a),this.Fa.height=Math.round(d)),this.Fa&&this.Dk(this.Fa,this.Ea),this.sr(),this.Bp&&!this.Zd&&window.scrollTo(0,0)}};e.prototype.sr=function(){if(this.bt&&0!==this.Wm){var a="portrait";2===this.Wm&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?
screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};e.prototype.Lv=function(){this.q.kt();this.vm=!0;var a,d,b;a=0;for(d=this.r.length;a<d;a++)b=this.r[a],b.mi&&b.mi()};e.prototype.Mv=function(){this.vm=!1;var a,d,b;a=0;for(d=this.r.length;a<d;a++)b=this.r[a],b.Tm&&b.Tm()};e.prototype.Dq=
function(){if(!this.Wa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Nj)&&!this.Zd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Eb).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var d;if(a&&!this.Nh)for(ja("[Construct 2] Suspending"),
this.Nh=!0,-1!==this.gn&&c&&c(this.gn),-1!==this.In&&clearTimeout(this.In),a=0,d=this.Fi.length;a<d;a++)this.Fi[a](!0);else if(!a&&this.Nh){ja("[Construct 2] Resuming");this.Nh=!1;this.Tj=Ya();this.Kf=Ya();a=this.ei=this.zj=0;for(d=this.Fi.length;a<d;a++)this.Fi[a](!1);this.Sa(!1)}};e.prototype.il=function(a){this.Fi.push(a)};e.prototype.ve=function(a){return this.kk[a]};e.prototype.Yh=function(a){a&&a.project||ka("Project model unavailable");a=a.project;this.name=a[0];this.Xo=a[1];this.Zb=a[12];
this.nb=a[10];this.mb=a[11];this.yq=this.nb/2;this.zq=this.mb/2;this.Wa&&!this.gd&&(4<=a[12]||0===a[12])&&(ja("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Zb=3);this.Sn=a[18];this.Ue=a[19];if(0===this.Ue){var d=new Image;d.crossOrigin="anonymous";this.Sq(d,"loading-logo.png");this.Te={fk:d}}else if(4===this.Ue){d=new Image;d.src="";var b=new Image;b.src="";var g=new Image;g.src="";var h=new Image;h.src="";var f=new Image;
f.src="";var c=new Image;c.src="";var m=new Image;m.src="";var e=new Image;e.src="";var p=new Image;p.src="";var t=new Image;t.src="";var k=new Image;k.src="";var l=new Image;l.src="";this.Te={fk:[d,b,g,h],gw:[f,c,m,e],hx:[p,t,k,l]}}this.ji=a[21];this.kk=oc();this.Od=new Y(this);d=0;for(b=a[2].length;d<b;d++)m=a[2][d],g=this.ve(m[0]),ob(m,g.prototype),e=new g(this),e.Lk=m[1],e.Qe=m[2],e.Av=m[5],e.fq=m[9],e.W&&e.W(),this.plugins.push(e);this.kk=oc();d=0;for(b=a[3].length;d<b;d++){m=a[3][d];f=this.ve(m[1]);
e=null;g=0;for(h=this.plugins.length;g<h;g++)if(this.plugins[g]instanceof f){e=this.plugins[g];break}p=new e.xa(e);p.name=m[0];p.I=m[2];p.mm=m[3].slice(0);p.cx=m[3].length;p.ct=m[4];p.Cu=m[5];p.Y=m[11];p.I?(p.Of=[],p.Wd=this.vh++,p.Ga=null):(p.Of=null,p.Wd=-1,p.Ga=[]);p.tj=null;p.sg=null;p.Po=null;p.Pb=!1;p.lc=null;m[6]?(p.Fn=m[6][0],p.Gn=m[6][1],p.Hn=m[6][2]):(p.Fn=null,p.Gn=0,p.Hn=0);m[7]?p.kc=m[7]:p.kc=null;p.index=d;p.d=[];p.kj=[];p.me=[new pb(p)];p.Bd=0;p.Nc=null;p.qt=0;p.dh=!0;p.Wk=qb;p.Ku=
rb;p.Pu=sb;p.T=tb;p.ri=ub;p.si=vb;p.bf=wb;p.Cj=Ab;p.Tl=Bb;p.Vl=Cb;p.Lc=Db;p.Wl=Eb;p.dj=new eb(this.nb,this.mb);p.Ui=!0;p.Vi=!1;p.F={};p.toString=Fb;p.Ia=[];g=0;for(h=m[8].length;g<h;g++){t=m[8][g];k=this.ve(t[1]);l=null;f=0;for(c=this.Ia.length;f<c;f++)if(this.Ia[f]instanceof k){l=this.Ia[f];break}l||(l=new k(this),l.Nm=[],l.jk=new fa,l.W&&l.W(),this.Ia.push(l),pc&&l instanceof pc&&(this.er=l));-1===l.Nm.indexOf(p)&&l.Nm.push(p);f=new l.xa(l,p);f.name=t[0];f.Y=t[2];f.W();p.Ia.push(f)}p.global=m[9];
p.rm=m[10];p.P=[];g=0;for(h=m[12].length;g<h;g++)p.P.push({id:m[12][g][0],name:m[12][g][1],$a:-1,nd:!1,yc:!0,index:g});p.By=m[13];this.Sn&&!p.I&&!p.rm&&e.Qe||p.W();p.name&&(this.types[p.name]=p);this.r.push(p);e.Lk&&(g=new e.ma(p),g.uid=this.ji++,g.Hq=this.iq++,g.Ef=0,g.Bh=Gb,g.toString=Hb,g.A=m[14],g.W(),p.d.push(g),this.fe[g.uid.toString()]=g)}d=0;for(b=a[4].length;d<b;d++)for(f=a[4][d],c=this.r[f[0]],g=1,h=f.length;g<h;g++)m=this.r[f[g]],m.Ga.push(c),c.Of.push(m);d=0;for(b=a[28].length;d<b;d++){f=
a[28][d];c=[];g=0;for(h=f.length;g<h;g++)c.push(this.r[f[g]]);g=0;for(h=c.length;g<h;g++)c[g].Pb=!0,c[g].lc=c}if(0<this.vh)for(d=0,b=this.r.length;d<b;d++)if(m=this.r[d],!m.I&&m.Ga.length){m.tj=Array(this.vh);m.sg=Array(this.vh);m.Po=Array(this.vh);p=[];g=l=k=t=0;for(h=m.Ga.length;g<h;g++)for(e=m.Ga[g],m.tj[e.Wd]=t,t+=e.cx,m.sg[e.Wd]=k,k+=e.ct,m.Po[e.Wd]=l,l+=e.Cu,f=0,c=e.P.length;f<c;f++)p.push(xa({},e.P[f]));m.P=p.concat(m.P);g=0;for(h=m.P.length;g<h;g++)m.P[g].index=g}d=0;for(b=a[5].length;d<b;d++)m=
a[5][d],g=new Ib(this,m),this.Dm[g.name]=g,this.jd.push(g);d=0;for(b=a[6].length;d<b;d++)m=a[6][d],g=new Jb(this,m),this.Ll[g.name]=g,this.Vd.push(g);d=0;for(b=this.Vd.length;d<b;d++)this.Vd[d].Qa();d=0;for(b=this.Vd.length;d<b;d++)this.Vd[d].Pn();d=0;for(b=this.Vk.length;d<b;d++)this.Vk[d].Qa();V(this.Vk);this.$s=a[7];this.Pl=a[8];this.md=a[9];this.mh=1;this.Tt=a[13];this.Ea=a[14];this.Eo=a[15];this.$w=a[17];this.Wm=a[20];this.bt=0<this.Wm;this.$v=a[22];this.Ac=this.Gr=a[23];this.Mt=a[24];this.hw=
a[25];this.Aa=a[27]&&!this.Gd;this.Mk=Date.now();V(this.kk);this.pv()};var d=!1,g=0,t=[];e.prototype.pw=function(a,d){function b(){g--;h.$p()}var h=this;a.addEventListener("load",b);a.addEventListener("error",b);t.push([a,d]);this.$p()};e.prototype.$p=function(){for(var a;t.length&&100>g;)g++,a=t.shift(),this.Sq(a[0],a[1])};e.prototype.Fr=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){d=a.xo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.gd?a.src=b:
a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(d){a.src=d},function(g){d=a.xo=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",g)}):(a.crossOrigin="anonymous",this.pw(a,b)));this.ih.push(a)};e.prototype.Au=function(a){var d,b;d=0;for(b=this.ih.length;d<b;d++)if(this.ih[d].mt===a)return this.ih[d];return null};var h=0,z=!1;e.prototype.iv=function(){this.jg&&(h=this.jg.Jw(this.$s))};e.prototype.to=function(){var a=h,d=0,b=0,g=!0,f,c,
b=0;for(f=this.ih.length;b<f;b++){c=this.ih[b];var m=c.Io;if(!m||0>=m)m=5E4;a+=m;c.src&&(c.complete||c.loaded)&&!c.xo?d+=m:g=!1}g&&this.hw&&this.jg&&(z||(this.jg.Pw(),z=!0),b=this.jg.Qu(),d+=b,b<h&&(g=!1));this.od=0==a?1:d/a;return g};var y=!1;e.prototype.go=function(){if(this.Fa||this.q){var a=this.Fa||this.Xm;this.Eb&&this.Dq();var g=window.innerWidth,h=window.innerHeight;this.Kg===g&&this.Jg===h||this.setSize(g,h);this.od=0;this.Fp=-1;var f=this;if(this.to()&&(4!==this.Ue||y))this.jv();else{h=
Date.now()-this.Mk;if(a){var c=this.width,m=this.height,g=this.devicePixelRatio;if(3>this.Ue&&(this.Pc||500<=h&&this.Fp!=this.od)){a.clearRect(0,0,c,m);var h=c/2,m=m/2,c=0===this.Ue&&this.Te.fk.complete,e=40*g,p=0,t=80*g,l;if(c){var k=this.Te.fk,t=k.width*g;l=k.height*g;e=t/2;p=l/2;a.drawImage(k,J(h-e),J(m-p),t,l)}1>=this.Ue?(h=J(h-e)+.5,m=J(m+(p+(c?12*g:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(h,m,Math.floor(t*this.od),6*g),a.strokeStyle="black",a.strokeRect(h,m,t,6*g),a.strokeStyle="white",
a.strokeRect(h-1*g,m-1*g,t+2*g,8*g)):2===this.Ue&&(a.font=this.gd?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Ay="middle",g=Math.round(100*this.od)+"%",c=a.measureText?a.measureText(g):null,a.fillText(g,h-(c?c.width:0)/2,m));this.Fp=this.od}else if(4===this.Ue){this.Rt(a);b?b(function(){f.go()}):setTimeout(function(){f.go()},16);return}}setTimeout(function(){f.go()},this.Pc?10:100)}}};var I=-1,m="undefined"===typeof cr_is_preview?200:0,p=!0,R=!1,N=0,v=0,E="undefined"===typeof cr_is_preview?
3E3:0,w=null,D=null,L=0;e.prototype.Rt=function(a){if(!y){for(var b=Math.ceil(this.width),g=Math.ceil(this.height),h=this.Te.fk,f=this.Te.gw,c=this.Te.hx,e=0;4>e;++e)if(!h[e].complete||!f[e].complete||!c[e].complete)return;0===L&&(I=Date.now());var e=Date.now(),t=!1,l=a,z,n;p||R?(a.clearRect(0,0,b,g),w&&w.width===b&&w.height===g||(w=document.createElement("canvas"),w.width=b,w.height=g,D=w.getContext("2d")),l=D,t=!0,p&&1===L&&(I=Date.now())):a.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,b,
g);256<this.qh?(z=Fa(.22*g,105,.6*b),n=.25*z,l.drawImage(k(f,z),.5*b-z/2,.2*g-n/2,z,n),n=z=Math.min(.395*g,.95*b),l.drawImage(k(h,z),.5*b-z/2,.485*g-n/2,z,n),z=Fa(.22*g,105,.6*b),n=.25*z,l.drawImage(k(c,z),.5*b-z/2,.868*g-n/2,z,n),l.fillStyle="#3C3C3C",z=b,n=Math.max(.005*g,2),l.fillRect(0,.8*g-n/2,z,n),l.fillStyle=d?"red":"#E0FF65",z=b*this.od,l.fillRect(.5*b-z/2,.8*g-n/2,z,n)):(n=z=.55*g,l.drawImage(k(h,z),.5*b-z/2,.45*g-n/2,z,n),l.fillStyle="#3C3C3C",z=b,n=Math.max(.005*g,2),l.fillRect(0,.85*g-
n/2,z,n),l.fillStyle=d?"red":"#E0FF65",z=b*this.od,l.fillRect(.5*b-z/2,.85*g-n/2,z,n));t&&(p?a.globalAlpha=0===L?0:Math.min((e-I)/300,1):R&&(a.globalAlpha=Math.max(1-(e-v)/300,0)),a.drawImage(w,0,0,b,g));p&&300<=e-I&&2<=L&&(p=!1,N=e);!p&&e-N>=E&&!R&&1<=this.od&&(R=!0,v=e);if(R&&e-v>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.od&&500>Date.now()-I)y=!0,R=p=!1,this.Te=D=w=null;++L}};e.prototype.jv=function(){this.Eb&&(this.canvas.parentNode.removeChild(this.Eb),this.Eb=this.Xm=null);this.Mk=
Date.now();this.Kf=Ya();var a,d,b;if(this.Sn)for(a=0,d=this.r.length;a<d;a++)b=this.r[a],b.I||b.rm||!b.na.Qe||b.W();else this.Hg=!1;a=0;for(d=this.jd.length;a<d;a++)this.jd[a].nt();2<=this.Zb&&(a=this.nb/this.mb,d=this.width/this.height,this.mh=2!==this.Zb&&d>a||2===this.Zb&&d<a?this.height/this.mb:this.width/this.nb);this.Xo?this.Dm[this.Xo].Cn():this.jd[0].Cn();this.Sn||(this.ck=1,this.trigger(Y.prototype.i.ho,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(d=this.r.length;a<d;a++)b=this.r[a],b.qq&&b.qq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Sa(!1);this.Ob&&AppMobi.webview.execute("onGameReady();")};e.prototype.Sa=function(a,d,g){if(this.fa){var h=Ya();if(g||!this.Nh||a){a||(b?this.gn=b(this.nr):this.In=setTimeout(this.nr,this.Oe?1:16));d=d||h;var f=this.Zb;((g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Zd)||this.Nj)&&0<this.ug&&(f=this.ug);if(0<f){var f=window.innerWidth,c=window.innerHeight;this.Kg===f&&this.Jg===c||this.setSize(f,c)}this.Wa||(g?this.wj||(this.wj=!0):this.wj?(this.wj=!1,0===this.Zb&&this.setSize(Math.round(this.pq/this.devicePixelRatio),Math.round(this.oq/this.devicePixelRatio),!0)):(this.pq=this.width,this.oq=this.height));this.Hg&&(g=this.to(),this.ck=this.od,g&&(this.Hg=!1,this.od=1,this.trigger(Y.prototype.i.ho,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ev(d);
!this.pa&&!this.Pc||this.vm||this.Ei||a||(this.pa=!1,this.q?this.Yb():this.ed(),this.Di&&(this.canvas&&this.canvas.toDataURL&&(this.dr=this.canvas.toDataURL(this.Di[0],this.Di[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.dr),this.trigger(Y.prototype.i.ls,null)),this.Di=null));this.wy||(this.Yc++,this.zf++,this.zj++);this.ei+=Ya()-h}}};e.prototype.Ev=function(a){var d,b,g,h,f,c,m,e;1E3<=a-this.Kf&&(this.Kf+=1E3,1E3<=a-this.Kf&&(this.Kf=a),this.Rl=this.zj,this.zj=0,this.zl=this.ei,this.ei=0);
d=0;0!==this.Tj&&(d=a-this.Tj,0>d&&(d=0),this.vf=d/=1E3,.5<this.vf?this.vf=0:this.vf>1/this.cq&&(this.vf=1/this.cq));this.Tj=a;this.uf=this.vf*this.ag;this.ib.add(this.uf);this.te.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Nj)&&!this.Zd;2<=this.Zb||a&&0<this.ug?(d=this.nb/this.mb,b=this.width/this.height,g=this.Zb,a&&0<this.ug&&(g=this.ug),this.mh=2!==g&&b>d||2===g&&b<d?this.height/this.mb:this.width/this.nb,this.fa&&(this.fa.sn(this.fa.scrollX),
this.fa.tn(this.fa.scrollY))):this.mh=this.Gf?this.devicePixelRatio:1;this.Kb();this.Dc++;this.Od.zw();this.Dc--;this.Kb();this.Dc++;b=this.mq.pe();a=0;for(d=b.length;a<d;a++)b[a].xy();a=0;for(d=this.r.length;a<d;a++)if(c=this.r[a],!c.I&&(c.Ia.length||c.Ga.length))for(b=0,g=c.d.length;b<g;b++)for(m=c.d[b],h=0,f=m.K.length;h<f;h++)m.K[h].Sa();a=0;for(d=this.r.length;a<d;a++)if(c=this.r[a],!c.I&&(c.Ia.length||c.Ga.length))for(b=0,g=c.d.length;b<g;b++)for(m=c.d[b],h=0,f=m.K.length;h<f;h++)e=m.K[h],e.fw&&
e.fw();b=this.Pm.pe();a=0;for(d=b.length;a<d;a++)b[a].Sa();this.Dc--;this.kv();for(a=0;this.qf&&10>a++;)this.Mo(this.qf);a=0;for(d=this.Vd.length;a<d;a++)this.Vd[a].fm=!1;this.fa.xf&&this.fa.xf.Za();V(this.Vf);this.Dc++;a=0;for(d=this.r.length;a<d;a++)if(c=this.r[a],!c.I&&(c.Ia.length||c.Ga.length))for(b=0,g=c.d.length;b<g;b++)for(m=c.d[b],h=0,f=m.K.length;h<f;h++)e=m.K[h],e.Qk&&e.Qk();b=this.nq.pe();a=0;for(d=b.length;a<d;a++)b[a].Qk();this.Dc--};e.prototype.Ze=function(){var a,d,b,g,h,f,c,m,e;a=
0;for(d=this.r.length;a<d;a++)if(c=this.r[a],!c.I)for(b=0,g=c.d.length;b<g;b++)if(m=c.d[b],m.Ze&&m.Ze(),m.K)for(h=0,f=m.K.length;h<f;h++)e=m.K[h],e.Ze&&e.Ze()};e.prototype.Mo=function(a){var d=this.fa;this.fa.Qw();var b,g,h;if(this.q)for(b=0,g=this.r.length;b<g;b++)h=this.r[b],h.I||!h.On||h.global&&0!==h.d.length||-1!==a.Gh.indexOf(h)||h.On();d==a&&V(this.Od.jc);V(this.Vf);this.Lq(!0);a.Cn();this.Lq(!1);this.pa=!0;this.Kb()};e.prototype.Lq=function(a){var d,b,g,h,f,c,m,e,p;d=0;for(b=this.Ia.length;d<
b;d++)g=this.Ia[d],a?g.Sg&&g.Sg():g.li&&g.li();d=0;for(b=this.r.length;d<b;d++)if(g=this.r[d],g.global||g.na.Lk)for(h=0,f=g.d.length;h<f;h++)if(c=g.d[h],a?c.Sg&&c.Sg():c.li&&c.li(),c.K)for(m=0,e=c.K.length;m<e;m++)p=c.K[m],a?p.Sg&&p.Sg():p.li&&p.li()};e.prototype.Rk=function(a){this.Pm.add(a)};e.prototype.xh=function(a){return a&&-1!==a.ii?this.vf*a.ii:this.uf};e.prototype.ed=function(){this.fa.ed(this.Fa);this.Ob&&this.Fa.present()};e.prototype.Yb=function(){this.Aa&&(this.wf=1,this.fa.tf(this.q));
this.fa.Yb(this.q);this.q.jw()};e.prototype.po=function(a){a&&this.Gl.push(a)};e.prototype.Gj=function(a){a=a.toString();return this.fe.hasOwnProperty(a)?this.fe[a]:null};var K=[];e.prototype.jf=function(a){var d,b;d=a.type.name;var g=null;if(this.sf.hasOwnProperty(d)){if(g=this.sf[d],g.contains(a))return}else g=K.length?K.pop():new fa,this.sf[d]=g;g.add(a);this.Me=!0;if(a.Pb)for(d=0,b=a.siblings.length;d<b;d++)this.jf(a.siblings[d]);this.pm&&g.gh.push(a);this.om||(this.Dc++,this.trigger(Object.getPrototypeOf(a.type.na).i.ao,
a),this.Dc--)};e.prototype.Kb=function(){if(this.Me){var a,d,b,g,h,f;this.pm=!0;b=0;for(h=this.dd.length;b<h;++b)for(a=this.dd[b],d=a.type,d.d.push(a),g=0,f=d.Ga.length;g<f;++g)d.Ga[g].d.push(a),d.Ga[g].dh=!0;V(this.dd);this.$r();Xa(this.sf);this.Me=this.pm=!1}};e.prototype.$r=function(){for(var a in this.sf)this.sf.hasOwnProperty(a)&&this.Lr(this.sf[a])};e.prototype.Lr=function(a){var d=a.pe(),b=d[0].type,g,h,f,c,m,e;Za(b.d,a);b.dh=!0;0===b.d.length&&(b.Vi=!1);g=0;for(h=b.Ga.length;g<h;++g)e=b.Ga[g],
Za(e.d,a),e.dh=!0;g=0;for(h=this.Od.jc.length;g<h;++g)if(m=this.Od.jc[g],m.Tb.hasOwnProperty(b.index)&&Za(m.Tb[b.index].Yd,a),!b.I)for(f=0,c=b.Ga.length;f<c;++f)e=b.Ga[f],m.Tb.hasOwnProperty(e.index)&&Za(m.Tb[e.index].Yd,a);if(m=d[0].n){if(m.Ic)for(f=m.d,g=0,h=f.length;g<h;++g)c=f[g],a.contains(c)&&(c.ta(),m.Fb.update(c,c.ec,null),c.ec.set(0,0,-1,-1));Za(m.d,a);m.yi(0)}for(g=0;g<d.length;++g)this.Kr(d[g],b);a.clear();K.push(a);this.pa=!0};e.prototype.Kr=function(a,d){var b,g,h;b=0;for(g=this.Gl.length;b<
g;++b)this.Gl[b](a);a.Ee&&d.dj.update(a,a.Ee,null);(b=a.n)&&b.Zg(a,!0);if(a.K)for(b=0,g=a.K.length;b<g;++b)h=a.K[b],h.Sf&&h.Sf(),h.behavior.jk.remove(a);this.mq.remove(a);this.Pm.remove(a);this.nq.remove(a);a.Sf&&a.Sf();this.fe.hasOwnProperty(a.uid.toString())&&delete this.fe[a.uid.toString()];this.lk--;100>d.kj.length&&d.kj.push(a)};e.prototype.Al=function(a,d,b,g){if(a.I){var h=J(Math.random()*a.Of.length);return this.Al(a.Of[h],d,b,g)}return a.Nc?this.Ge(a.Nc,d,!1,b,g,!1):null};var W=[];e.prototype.Ge=
function(a,d,b,g,h,f){var c,m,e,p;if(!a)return null;var t=this.r[a[1]],l=t.na.Qe;if(this.Hg&&l&&!t.rm||l&&!this.q&&11===a[0][11])return null;var z=d;l||(d=null);var k;t.kj.length?(k=t.kj.pop(),k.wc=!0,t.na.ma.call(k,t)):(k=new t.na.ma(t),k.wc=!1);!b||f||this.fe.hasOwnProperty(a[2].toString())?k.uid=this.ji++:k.uid=a[2];this.fe[k.uid.toString()]=k;k.Hq=this.iq++;k.Ef=t.d.length;c=0;for(m=this.dd.length;c<m;++c)this.dd[c].type===t&&k.Ef++;k.Bh=Gb;k.toString=Hb;e=a[3];if(k.wc)Xa(k.F);else{k.F={};if("undefined"!==
typeof cr_is_preview)for(k.qp=[],k.qp.length=e.length,c=0,m=e.length;c<m;c++)k.qp[c]=e[c][1];k.hb=[];k.hb.length=e.length}c=0;for(m=e.length;c<m;c++)k.hb[c]=e[c][0];if(l){var v=a[0];k.x=la(g)?v[0]:g;k.y=la(h)?v[1]:h;k.z=v[2];k.width=v[3];k.height=v[4];k.depth=v[5];k.j=v[6];k.opacity=v[7];k.$b=v[8];k.ac=v[9];k.Lb=v[10];c=v[11];!this.q&&t.P.length&&(k.Lb=c);k.nh=gb(k.Lb);this.u&&hb(k,k.Lb,this.u);if(k.wc){c=0;for(m=v[12].length;c<m;c++)for(e=0,p=v[12][c].length;e<p;e++)k.Ka[c][e]=v[12][c][e];k.Ca.set(0,
0,0,0);k.Ee.set(0,0,-1,-1);k.ec.set(0,0,-1,-1);k.Mb.ef(k.Ca);V(k.ol)}else{k.Ka=v[12].slice(0);c=0;for(m=k.Ka.length;c<m;c++)k.Ka[c]=v[12][c].slice(0);k.la=[];k.xe=[];k.xe.length=t.P.length;k.Ca=new S(0,0,0,0);k.Ee=new S(0,0,-1,-1);k.ec=new S(0,0,-1,-1);k.Mb=new wa;k.ol=[];k.N=Kb;k.ty=Lb;k.Rb=Mb;k.ta=Nb;k.Zw=Ob;k.Cr=Pb;k.Ed=Qb}k.$f=!1;k.Ww=0;k.Vw=0;k.Uw=null;14===v.length&&(k.$f=!0,k.Ww=v[13][0],k.Vw=v[13][1],k.Uw=v[13][2]);c=0;for(m=t.P.length;c<m;c++)k.xe[c]=!0;k.ke=!0;k.vd=Rb;k.vd();k.Dr=!!k.la.length;
k.nl=!0;k.rl=!0;t.Ui=!0;k.visible=!0;k.ii=-1;k.n=d;k.wd=d.d.length;k.wf=0;"undefined"===typeof k.ca&&(k.ca=null);this.pa=k.Ad=!0}var y;V(W);c=0;for(m=t.Ga.length;c<m;c++)W.push.apply(W,t.Ga[c].Ia);W.push.apply(W,t.Ia);if(k.wc)for(c=0,m=W.length;c<m;c++){var n=W[c];y=k.K[c];y.wc=!0;n.behavior.ma.call(y,n,k);v=a[4][c];e=0;for(p=v.length;e<p;e++)y.A[e]=v[e];y.W();n.behavior.jk.add(k)}else for(k.K=[],c=0,m=W.length;c<m;c++)n=W[c],y=new n.behavior.ma(n,k),y.wc=!1,y.A=a[4][c].slice(0),y.W(),k.K.push(y),
n.behavior.jk.add(k);v=a[5];if(k.wc)for(c=0,m=v.length;c<m;c++)k.A[c]=v[c];else k.A=v.slice(0);this.dd.push(k);this.Me=!0;d&&(d.lh(k,!0),1!==d.Sc||1!==d.Tc)&&(t.Vi=!0);this.lk++;if(t.Pb){if(k.Pb=!0,k.wc?V(k.siblings):k.siblings=[],!b&&!f){c=0;for(m=t.lc.length;c<m;c++)if(t.lc[c]!==t){if(!t.lc[c].Nc)return null;k.siblings.push(this.Ge(t.lc[c].Nc,z,!1,l?k.x:g,l?k.y:h,!0))}c=0;for(m=k.siblings.length;c<m;c++)for(k.siblings[c].siblings.push(k),e=0;e<m;e++)c!==e&&k.siblings[c].siblings.push(k.siblings[e])}}else k.Pb=
!1,k.siblings=null;k.W();c=0;for(m=k.K.length;c<m;c++)k.K[c].ew&&k.K[c].ew();return k};e.prototype.Xl=function(a){var d,b;d=0;for(b=this.fa.R.length;d<b;d++){var g=this.fa.R[d];if(lb(g.name,a))return g}return null};e.prototype.zh=function(a){a=J(a);0>a&&(a=0);a>=this.fa.R.length&&(a=this.fa.R.length-1);return this.fa.R[a]};e.prototype.xl=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].T().ka=!0};e.prototype.ri=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].ri()};e.prototype.si=function(a){var d,
b;d=0;for(b=a.length;d<b;d++)a[d].si()};e.prototype.bf=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].bf()};e.prototype.Ar=function(a){if(a.Ui){var d,b,g=a.d;d=0;for(b=g.length;d<b;++d)g[d].Cr();g=this.dd;d=0;for(b=g.length;d<b;++d)g[d].type===a&&g[d].Cr();a.Ui=!1}};e.prototype.Dj=function(a,d,b,g){var c,h,f=a?1!==a.Sc||1!==a.Tc:!1;if(d.I)for(a=0,c=d.Of.length;a<c;++a)h=d.Of[a],f||h.Vi?Ba(g,h.d):(this.Ar(h),h.dj.uk(b,g));else f||d.Vi?Ba(g,d.d):(this.Ar(d),d.dj.uk(b,g))};e.prototype.gp=function(a,
d,b,g){var h,c;h=0;for(c=d.length;h<c;++h)this.Dj(a,d[h],b,g)};e.prototype.fp=function(a,d,b){var g=this.er;g&&this.gp(a,g.Nm,d,b)};e.prototype.Sw=function(a,d,b){var g=a.T(),h,c,f,m,e=this.Pa().Ua.Fc,p,k,t;if(g.ka)for(g.ka=!1,V(g.d),h=0,m=a.d.length;h<m;h++)f=a.d[h],f.ta(),p=f.n.Qb(d,b,!0),k=f.n.Qb(d,b,!1),f.Rb(p,k)?g.d.push(f):e&&g.Z.push(f);else{c=0;t=e?g.Z:g.d;h=0;for(m=t.length;h<m;h++)f=t[h],f.ta(),p=f.n.Qb(d,b,!0),k=f.n.Qb(d,b,!1),f.Rb(p,k)&&(e?g.d.push(f):(g.d[c]=g.d[h],c++));t.length=c}a.Lc();
return g.em()};e.prototype.gf=function(a,d){if(!(a&&d&&a!==d&&a.Ad&&d.Ad))return!1;a.ta();d.ta();var b=a.n,g=d.n,h,c,f,m,e,p,k,t;if(b===g||b.Sc===g.Sc&&g.Tc===g.Tc&&b.scale===g.scale&&b.j===g.j&&b.xd===g.xd){if(!a.Ca.rp(d.Ca)||!a.Mb.nm(d.Mb)||a.$f&&d.$f)return!1;if(a.$f)return this.jr(a,d);if(d.$f)return this.jr(d,a);k=a.ca&&!a.ca.Hf();h=d.ca&&!d.ca.Hf();if(!k&&!h)return!0;k?(a.ca.pf(a.width,a.height,a.j),k=a.ca):(this.ic.Xf(a.Mb,a.x,a.y,a.width,a.height),k=this.ic);h?(d.ca.pf(d.width,d.height,d.j),
t=d.ca):(this.ic.Xf(d.Mb,d.x,d.y,d.width,d.height),t=this.ic);return k.Ff(t,d.x-a.x,d.y-a.y)}k=a.ca&&!a.ca.Hf();h=d.ca&&!d.ca.Hf();k?(a.ca.pf(a.width,a.height,a.j),this.ic.Wq(a.ca)):this.ic.Xf(a.Mb,a.x,a.y,a.width,a.height);k=this.ic;h?(d.ca.pf(d.width,d.height,d.j),this.Dn.Wq(d.ca)):this.Dn.Xf(d.Mb,d.x,d.y,d.width,d.height);t=this.Dn;h=0;for(c=k.pd;h<c;h++)f=2*h,m=f+1,e=k.ob[f],p=k.ob[m],k.ob[f]=b.Ha(e+a.x,p+a.y,!0),k.ob[m]=b.Ha(e+a.x,p+a.y,!1);k.ta();h=0;for(c=t.pd;h<c;h++)f=2*h,m=f+1,e=t.ob[f],
p=t.ob[m],t.ob[f]=g.Ha(e+d.x,p+d.y,!0),t.ob[m]=g.Ha(e+d.x,p+d.y,!1);t.ta();return k.Ff(t,0,0)};var T=new wa;new S(0,0,0,0);var Q=[];e.prototype.jr=function(a,d){var b,g,h,c,f=d.Ca,m=a.x,e=a.y;a.Hu(f,Q);var p=d.ca&&!d.ca.Hf();b=0;for(g=Q.length;b<g;++b)if(h=Q[b],c=h.qw,f.sp(c,m,e)&&(T.ef(c),T.offset(m,e),T.nm(d.Mb)))if(p)if(d.ca.pf(d.width,d.height,d.j),h.oi){if(h.oi.Ff(d.ca,d.x-(m+c.left),d.y-(e+c.top)))return V(Q),!0}else{if(this.ic.Xf(T,0,0,c.right-c.left,c.bottom-c.top),this.ic.Ff(d.ca,d.x,d.y))return V(Q),
!0}else if(h.oi){if(this.ic.Xf(d.Mb,0,0,d.width,d.height),h.oi.Ff(this.ic,-(m+c.left),-(e+c.top)))return V(Q),!0}else return V(Q),!0;V(Q);return!1};e.prototype.En=function(a,d){if(!d||!d.Ad)return!1;d.ta();if(!d.Ca.rp(a))return!1;if(d.$f){d.Hu(a,Q);var b,g,h,c,f=d.x,m=d.y;b=0;for(g=Q.length;b<g;++b)if(h=Q[b],c=h.qw,a.sp(c,f,m))if(h.oi){if(this.ic.ef(a,0,0),h.oi.Ff(this.ic,-(f+c.left),-(m+c.top)))return V(Q),!0}else return V(Q),!0;V(Q);return!1}T.ef(a);if(!d.Mb.nm(T))return!1;if(!d.ca||d.ca.Hf())return!0;
d.ca.pf(d.width,d.height,d.j);T.offset(-a.left,-a.top);this.ic.Xf(T,0,0,1,1);return d.ca.Ff(this.ic,a.left-d.x,a.top-d.y)};e.prototype.tr=function(a,d){if(!d)return!1;var b,g,h,c,f;b=0;for(g=a.Ia.length;b<g;b++)if(a.Ia[b].behavior instanceof d)return!0;if(!a.I)for(b=0,g=a.Ga.length;b<g;b++)for(f=a.Ga[b],h=0,c=f.Ia.length;h<c;h++)if(f.Ia[h].behavior instanceof d)return!0;return!1};e.prototype.Mn=function(a){return this.tr(a,gc.Nx)};e.prototype.Nn=function(a){return this.tr(a,gc.Ox)};var B=[];e.prototype.td=
function(a){var d,b,g;a.ta();this.fp(a.n,a.Ca,B);d=0;for(b=B.length;d<b;++d)if(g=B[d],g.F.solidEnabled&&this.gf(a,g))return V(B),g;V(B);return null};e.prototype.Tw=function(a){var d,b,g;this.fp(null,a,B);d=0;for(b=B.length;d<b;++d)if(g=B[d],g.F.solidEnabled&&this.En(a,g))return V(B),g;V(B);return null};e.prototype.cn=function(a,d,b,g){g=g||50;var h=a.x,c=a.y,f,m=null,e=null;for(f=0;f<g;f++)if(a.x=h+d*f,a.y=c+b*f,a.N(),!this.gf(a,m)&&((m=this.td(a))&&(e=m),!m&&!m))return e&&this.lw(a,d,b,e),!0;a.x=
h;a.y=c;a.N();return!1};e.prototype.lw=function(a,d,b,g){var h=2,c,f=!1;c=!1;for(var m=a.x,e=a.y;16>=h;)c=1/h,h*=2,a.x+=d*c*(f?1:-1),a.y+=b*c*(f?1:-1),a.N(),this.gf(a,g)?c=f=!0:(c=f=!1,m=a.x,e=a.y);c&&(a.x=m,a.y=e,a.N())};e.prototype.Iq=function(a,d){var b=la(d)?100:d,g=0,h=a.x,c=a.y,f=0,m=0,e=0,p=this.td(a);if(!p)return!0;for(;g<=b;){switch(f){case 0:m=0;e=-1;g++;break;case 1:m=1;e=-1;break;case 2:m=1;e=0;break;case 3:e=m=1;break;case 4:m=0;e=1;break;case 5:m=-1;e=1;break;case 6:m=-1;e=0;break;case 7:e=
m=-1}f=(f+1)%8;a.x=J(h+m*g);a.y=J(c+e*g);a.N();if(!this.gf(a,p)&&(p=this.td(a),!p))return!0}a.x=h;a.y=c;a.N();return!1};e.prototype.ti=function(a,d){a.Ad&&d.Ad&&this.Vf.push([a,d])};e.prototype.Xs=function(a,d,b){var g,h,c;g=0;for(h=this.Vf.length;g<h;++g){c=this.Vf[g];if(c[0]===a)c=c[1];else if(c[1]===a)c=c[0];else continue;if(d.I){if(-1===d.Of.indexOf(d))continue}else if(c.type!==d)continue;-1===b.indexOf(c)&&b.push(c)}};e.prototype.jt=function(a,d){var b,g,h;b=0;for(g=this.Vf.length;b<g;b++)if(h=
this.Vf[b],h[0]===a&&h[1]===d||h[0]===d&&h[1]===a)return!0;return!1};e.prototype.gt=function(a,d,b){var g=a.x,h=a.y,c=qa(10,Sa(d,b,g,h)),f=Na(d,b,g,h),m=this.td(a);if(!m)return Ja(f+ta);var e=m,p,k,t,l,z=X(5);for(p=1;36>p;p++)if(k=f-p*z,a.x=d+Math.cos(k)*c,a.y=b+Math.sin(k)*c,a.N(),!this.gf(a,e)&&(e=this.td(a),!e)){t=k;break}36===p&&(t=Ja(f+ta));e=m;for(p=1;36>p;p++)if(k=f+p*z,a.x=d+Math.cos(k)*c,a.y=b+Math.sin(k)*c,a.N(),!this.gf(a,e)&&(e=this.td(a),!e)){l=k;break}36===p&&(l=Ja(f+ta));a.x=g;a.y=
h;a.N();if(l===t)return l;a=Oa(l,t)/2;a=Qa(l,t)?Ja(t+a+ta):Ja(l+a);t=Math.cos(f);f=Math.sin(f);l=Math.cos(a);a=Math.sin(a);d=t*l+f*a;return Na(0,0,t-2*d*l,f-2*d*a)};var P=-1;e.prototype.trigger=function(a,d,b){if(!this.fa)return!1;var g=this.fa.xf;if(!g)return!1;var h=!1,c,f,m;P++;var e=g.El;f=0;for(m=e.length;f<m;++f)c=this.qr(a,d,e[f],b),h=h||c;c=this.qr(a,d,g,b);P--;return h||c};e.prototype.qr=function(a,d,b,g){var h=!1,c,f,m,e;if(d)for(m=this.Kn(a,d,d.type.name,b,g),h=h||m,e=d.type.Ga,c=0,f=e.length;c<
f;++c)m=this.Kn(a,d,e[c].name,b,g),h=h||m;else m=this.Kn(a,d,"system",b,g),h=h||m;return h};e.prototype.Kn=function(a,d,b,g,h){var c,f=!1,m=!1,m="undefined"!==typeof h,e=(m?g.Ro:g.rr)[b];if(!e)return f;var p=null;g=0;for(c=e.length;g<c;++g)if(e[g].method==a){p=e[g].uh;break}if(!p)return f;var k;m?k=p[h]:k=p;if(!k)return null;g=0;for(c=k.length;g<c;g++)a=k[g][0],h=k[g][1],m=this.yu(d,b,a,h),f=f||m;return f};e.prototype.yu=function(a,d,b,g){var h,c,f=!1;this.Ln++;var m=this.Pa().Ua;m&&this.ri(m.ff);
var e=1<this.Ln;this.ri(b.ff);e&&this.mw();var p=this.tk(b);p.Ua=b;a&&(h=this.types[d].T(),h.ka=!1,V(h.d),h.d[0]=a,this.types[d].Lc());a=!0;if(b.parent){d=p.ir;for(h=b.parent;h;)d.push(h),h=h.parent;d.reverse();h=0;for(c=d.length;h<c;h++)if(!d[h].Bw()){a=!1;break}}a&&(this.zf++,b.Fc?b.Aw(g):b.Za(),f=f||p.Jf);this.pk();e&&this.cw();this.bf(b.ff);m&&this.bf(m.ff);this.Me&&0===this.Dc&&0===P&&!this.tm&&this.Kb();this.Ln--;return f};e.prototype.Ej=function(){var a=this.Pa();return a.Ua.eb[a.Ta]};e.prototype.rv=
function(){return 0===this.Pa().Ta};e.prototype.Iu=function(){var a=this.Pa();return a.Ua.Kc[a.Xb]};e.prototype.mw=function(){this.ek++;this.ek>=this.Jm.length&&this.Jm.push([])};e.prototype.cw=function(){this.ek--};e.prototype.bp=function(){return this.Jm[this.ek]};e.prototype.tk=function(a){this.rj++;this.rj>=this.Kl.length&&this.Kl.push(new Sb);var d=this.Pa();d.reset(a);return d};e.prototype.pk=function(){this.rj--};e.prototype.Pa=function(){return this.Kl[this.rj]};e.prototype.ow=function(){this.gk++;
this.gk>=this.Lm.length&&this.Lm.push(aa({name:void 0,index:0,tb:!1}));var a=this.Ju();a.name=void 0;a.index=0;a.tb=!1;return a};e.prototype.dw=function(){this.gk--};e.prototype.Ju=function(){return this.Lm[this.gk]};e.prototype.cp=function(a,d){for(var b,g,h,c,f,m;d;){b=0;for(g=d.Wc.length;b<g;b++)if(m=d.Wc[b],m instanceof Tb&&lb(a,m.name))return m;d=d.parent}b=0;for(g=this.Vd.length;b<g;b++)for(f=this.Vd[b],h=0,c=f.Je.length;h<c;h++)if(m=f.Je[h],m instanceof Tb&&lb(a,m.name))return m;return null};
e.prototype.dp=function(a){var d,b;d=0;for(b=this.jd.length;d<b;d++)if(this.jd[d].Y===a)return this.jd[d];return null};e.prototype.vg=function(a){var d,b;d=0;for(b=this.r.length;d<b;d++)if(this.r[d].Y===a)return this.r[d];return null};e.prototype.Lu=function(a){var d,b;d=0;for(b=this.ze.length;d<b;d++)if(this.ze[d].Y===a)return this.ze[d];return null};e.prototype.tt=function(a,d){this.Di=[a,d];this.pa=!0};e.prototype.kv=function(){var a=this,d=this.Bk,b=this.ae,g=this.Xh,h=!1;this.br&&(h=!0,d="__c2_continuouspreview",
this.br=!1);if(d.length){this.Kb();b=this.Fw();if(l()&&!this.Pc)q(d,b,function(){ja("Saved state to IndexedDB storage ("+b.length+" bytes)");a.ae=b;a.trigger(Y.prototype.i.el,null);a.ae="";h&&f()},function(g){try{localStorage.setItem("__c2save_"+d,b),ja("Saved state to WebStorage ("+b.length+" bytes)"),a.ae=b,a.trigger(Y.prototype.i.el,null),a.ae="",h&&f()}catch(c){ja("Failed to save game state: "+g+"; "+c),a.trigger(Y.prototype.i.lo,null)}});else try{localStorage.setItem("__c2save_"+d,b),ja("Saved state to WebStorage ("+
b.length+" bytes)"),a.ae=b,this.trigger(Y.prototype.i.el,null),a.ae="",h&&f()}catch(c){ja("Error saving to WebStorage: "+c),a.trigger(Y.prototype.i.lo,null)}this.Xh=this.Bk="";this.lb=null}if(g.length){if(l()&&!this.Pc)r(g,function(d){d?(a.lb=d,ja("Loaded state from IndexedDB storage ("+a.lb.length+" bytes)")):(a.lb=localStorage.getItem("__c2save_"+g)||"",ja("Loaded state from WebStorage ("+a.lb.length+" bytes)"));a.Ei=!1;a.lb||(a.lb=null,a.trigger(Y.prototype.i.Ri,null))},function(){a.lb=localStorage.getItem("__c2save_"+
g)||"";ja("Loaded state from WebStorage ("+a.lb.length+" bytes)");a.Ei=!1;a.lb||(a.lb=null,a.trigger(Y.prototype.i.Ri,null))});else{try{this.lb=localStorage.getItem("__c2save_"+g)||"",ja("Loaded state from WebStorage ("+this.lb.length+" bytes)")}catch(m){this.lb=null}this.Ei=!1;a.lb||(a.lb=null,a.trigger(Y.prototype.i.Ri,null))}this.Bk=this.Xh=""}null!==this.lb&&(this.Kb(),this.Dv(this.lb)?(this.ae=this.lb,this.trigger(Y.prototype.i.ts,null),this.ae=""):a.trigger(Y.prototype.i.Ri,null),this.lb=null)};
e.prototype.Fw=function(){var d,b,g,h,c,f,m,e={c2save:!0,version:1,rt:{time:this.ib.aa,walltime:this.te.aa,timescale:this.ag,tickcount:this.Yc,execcount:this.zf,next_uid:this.ji,running_layout:this.fa.Y,start_time_offset:Date.now()-this.Mk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(b=this.r.length;d<b;d++)if(c=this.r[d],!c.I&&!this.Mn(c)){f={instances:[]};Wa(c.F)&&(f.ex=a(c.F));g=0;for(h=c.d.length;g<h;g++)f.instances.push(this.rn(c.d[g]));e.types[c.Y.toString()]=f}d=
0;for(b=this.jd.length;d<b;d++)g=this.jd[d],e.layouts[g.Y.toString()]=g.Gb();h=e.events.groups;d=0;for(b=this.ze.length;d<b;d++)g=this.ze[d],h[g.Y.toString()]=this.Dh[g.Ch].wg;b=e.events.cnds;for(m in this.De)this.De.hasOwnProperty(m)&&(d=this.De[m],Wa(d.F)&&(b[m]={ex:a(d.F)}));b=e.events.acts;for(m in this.ye)this.ye.hasOwnProperty(m)&&(d=this.ye[m],Wa(d.F)&&(b[m]={ex:a(d.F)}));b=e.events.vars;for(m in this.hh)this.hh.hasOwnProperty(m)&&(d=this.hh[m],d.Qj||d.parent&&!d.Rh||(b[m]=d.data));e.system=
this.Od.Gb();return JSON.stringify(e)};e.prototype.Kq=function(){var a,d,b,g,h,c;this.fe={};a=0;for(d=this.r.length;a<d;a++)if(b=this.r[a],!b.I)for(g=0,h=b.d.length;g<h;g++)c=b.d[g],this.fe[c.uid.toString()]=c};e.prototype.Dv=function(a){var d;try{d=JSON.parse(a)}catch(b){return!1}if(!d.c2save||1<d.version)return!1;this.Lh=!0;a=d.rt;this.ib.reset();this.ib.aa=a.time;this.te.reset();this.te.aa=a.walltime||0;this.ag=a.timescale;this.Yc=a.tickcount;this.zf=a.execcount;this.Mk=Date.now()-a.start_time_offset;
var g=a.running_layout;if(g!==this.fa.Y)if(g=this.dp(g))this.Mo(g);else return;var h,c,f,m,e,p,k;p=d.types;for(c in p)if(p.hasOwnProperty(c)&&(m=this.vg(parseInt(c,10)))&&!m.I&&!this.Mn(m)){p[c].ex?m.F=p[c].ex:Xa(m.F);e=m.d;f=p[c].instances;g=0;for(h=sa(e.length,f.length);g<h;g++)this.$j(e[g],f[g]);g=f.length;for(h=e.length;g<h;g++)this.jf(e[g]);g=e.length;for(h=f.length;g<h;g++){e=null;if(m.na.Qe&&(e=this.fa.Fj(f[g].w.l),!e))continue;e=this.Ge(m.Nc,e,!1,0,0,!0);this.$j(e,f[g])}m.dh=!0}this.Kb();
this.Kq();h=d.layouts;for(c in h)h.hasOwnProperty(c)&&(g=this.dp(parseInt(c,10)))&&g.Sb(h[c]);h=d.events.groups;for(c in h)h.hasOwnProperty(c)&&(g=this.Lu(parseInt(c,10)))&&this.Dh[g.Ch]&&this.Dh[g.Ch].Rq(h[c]);g=d.events.cnds;for(c in this.De)this.De.hasOwnProperty(c)&&(g.hasOwnProperty(c)?this.De[c].F=g[c].ex:this.De[c].F={});g=d.events.acts;for(c in this.ye)this.ye.hasOwnProperty(c)&&(g.hasOwnProperty(c)?this.ye[c].F=g[c].ex:this.ye[c].F={});g=d.events.vars;for(c in g)g.hasOwnProperty(c)&&this.hh.hasOwnProperty(c)&&
(this.hh[c].data=g[c]);this.ji=a.next_uid;this.Lh=!1;g=0;for(h=this.vj.length;g<h;++g)e=this.vj[g],this.trigger(Object.getPrototypeOf(e.type.na).i.hg,e);V(this.vj);this.Od.Sb(d.system);g=0;for(h=this.r.length;g<h;g++)if(m=this.r[g],!m.I&&!this.Mn(m))for(d=0,c=m.d.length;d<c;d++){e=m.d[d];if(m.Pb)for(p=e.Bh(),V(e.siblings),a=0,f=m.lc.length;a<f;a++)k=m.lc[a],m!==k&&e.siblings.push(k.d[p]);e.yd&&e.yd();if(e.K)for(a=0,f=e.K.length;a<f;a++)p=e.K[a],p.yd&&p.yd()}return this.pa=!0};e.prototype.rn=function(d,
b){var g,h,c,f,m;f=d.type;c=f.na;var e={};b?e.c2=!0:e.uid=d.uid;Wa(d.F)&&(e.ex=a(d.F));if(d.hb&&d.hb.length)for(e.ivs={},g=0,h=d.hb.length;g<h;g++)e.ivs[d.type.mm[g].toString()]=d.hb[g];if(c.Qe){c={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.Y,zi:d.Ed()};0!==d.j&&(c.a=d.j);1!==d.opacity&&(c.o=d.opacity);.5!==d.$b&&(c.hX=d.$b);.5!==d.ac&&(c.hY=d.ac);0!==d.Lb&&(c.bm=d.Lb);d.visible||(c.v=d.visible);d.Ad||(c.ce=d.Ad);-1!==d.ii&&(c.mts=d.ii);if(f.P.length)for(c.fx=[],g=0,h=f.P.length;g<h;g++)m=f.P[g],c.fx.push({name:m.name,
active:d.xe[m.index],params:d.Ka[m.index]});e.w=c}if(d.K&&d.K.length)for(e.behs={},g=0,h=d.K.length;g<h;g++)f=d.K[g],f.Gb&&(e.behs[f.type.Y.toString()]=f.Gb());d.Gb&&(e.data=d.Gb());return e};e.prototype.Nu=function(a,d){var b,g;b=0;for(g=a.mm.length;b<g;b++)if(a.mm[b]===d)return b;return-1};e.prototype.Gu=function(a,d){var b,g;b=0;for(g=a.K.length;b<g;b++)if(a.K[b].type.Y===d)return b;return-1};e.prototype.$j=function(a,d,b){var g,c,h,f,m;m=a.type;var e=m.na;if(b){if(!d.c2)return}else a.uid=d.uid;
d.ex?a.F=d.ex:Xa(a.F);if(c=d.ivs)for(g in c)c.hasOwnProperty(g)&&(h=this.Nu(m,parseInt(g,10)),0>h||h>=a.hb.length||(f=c[g],null===f&&(f=NaN),a.hb[h]=f));if(e.Qe){h=d.w;a.n.Y!==h.l&&(c=a.n,a.n=this.fa.Fj(h.l),a.n?(c.Zg(a,!0),a.n.lh(a,!0),a.N(),a.n.yi(0)):(a.n=c,b||this.jf(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.wd=h.zi;a.j=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.$b=h.hasOwnProperty("hX")?h.hX:.5;a.ac=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?
h.v:!0;a.Ad=h.hasOwnProperty("ce")?h.ce:!0;a.ii=h.hasOwnProperty("mts")?h.mts:-1;a.Lb=h.hasOwnProperty("bm")?h.bm:0;a.nh=gb(a.Lb);this.u&&hb(a,a.Lb,this.u);a.N();if(h.hasOwnProperty("fx"))for(b=0,c=h.fx.length;b<c;b++)f=m.Vl(h.fx[b].name),0>f||(a.xe[f]=h.fx[b].active,a.Ka[f]=h.fx[b].params);a.vd()}if(m=d.behs)for(g in m)m.hasOwnProperty(g)&&(b=this.Gu(a,parseInt(g,10)),0>b||a.K[b].Sb(m[g]));d.data&&a.Sb(d.data)};e.prototype.So=function(a,d,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+a,function(a){a.file(d,b)},b)};e.prototype.zu=function(a,d){this.So("data.js",function(b){var g=new FileReader;g.onload=function(d){a(d.target.result)};g.onerror=d;g.readAsText(b)},d)};var ha=[],ba=0;e.prototype.Mm=function(){if(ha.length&&!(8<=ba)){ba++;var a=ha.shift();this.yt(a.filename,a.Rw,a.Wt)}};e.prototype.To=function(a,d,b){var g=this;ha.push({filename:a,Rw:function(a){ba--;g.Mm();d(a)},Wt:function(a){ba--;g.Mm();b(a)}});this.Mm()};e.prototype.yt=function(a,d,b){this.So(a,function(a){var b=
new FileReader;b.onload=function(a){d(a.target.result)};b.readAsArrayBuffer(a)},b)};e.prototype.Uo=function(a,d,b){var g="",h=a.toLowerCase(),c=h.substr(h.length-4),h=h.substr(h.length-5);".mp4"===c?g="video/mp4":".webm"===h?g="video/webm":".m4a"===c?g="audio/mp4":".mp3"===c&&(g="audio/mpeg");this.To(a,function(a){a=URL.createObjectURL(new Blob([a],{type:g}));d(a)},b)};e.prototype.tp=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.Sq=function(a,
d){this.Oh&&!this.tp(d)?this.Uo(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};e.prototype.Dk=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Ub=function(a){return new e(document.getElementById(a))};Vb=function(a,d){return new e({dc:!0,width:a,height:d})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ml=!0;document.body.appendChild(a);a=new e(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,
window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,k){var l=window.cr_getC2Runtime();l&&l.tt(e,k)};window.cr_sizeCanvas=function(e,k){if(0!==e&&0!==k){var l=window.cr_getC2Runtime();l&&l.setSize(e,k)}};window.cr_setSuspended=function(e){var k=window.cr_getC2Runtime();k&&k.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.xf=null;this.scrollX=this.b.nb/2;this.scrollY=this.b.mb/2;this.scale=1;this.j=0;this.tg=!0;this.name=b[0];this.Wv=b[1];this.Vv=b[2];this.width=b[1];this.height=b[2];this.ur=b[3];this.Zq=b[4];this.Y=b[5];var c=b[6],h,f;this.R=[];this.Gh=[];h=0;for(f=c.length;h<f;h++){var e=new Wb(this,c[h]);e.kq=h;this.R.push(e)}c=b[7];this.Ne=[];h=0;for(f=c.length;h<f;h++){var e=c[h],k=this.b.r[e[1]];k.Nc||(k.Nc=e);this.Ne.push(e);-1===this.Gh.indexOf(k)&&this.Gh.push(k)}this.P=
[];this.la=[];this.ke=!0;this.Ka=[];h=0;for(f=b[8].length;h<f;h++)this.P.push({id:b[8][h][0],name:b[8][h][1],$a:-1,nd:!1,yc:!0,index:h}),this.Ka.push(b[8][h][2].slice(0));this.vd();this.cf=new S(0,0,1,1);this.hn=new S(0,0,1,1);this.$e={}}function k(a,b){return a.wd-b.wd}function l(a,b){this.kb=a;this.b=a.b;this.d=[];this.scale=1;this.j=0;this.Ud=!1;this.ne=new S(0,0,0,0);this.or=new wa;this.ya=this.wa=this.za=this.ua=0;this.eg=!1;this.ue=-1;this.yl=0;this.name=b[0];this.index=b[1];this.Y=b[2];this.visible=
b[3];this.ad=b[4];this.ud=b[5];this.Sc=b[6];this.Tc=b[7];this.opacity=b[8];this.yj=b[9];this.Ic=b[10];this.xd=b[11];this.Lb=b[12];this.St=b[13];this.nh="source-over";this.Bb=this.Hb=0;this.Fb=null;this.be=n();this.sd=!0;this.Lg=new S(0,0,-1,-1);this.Ab=new S(0,0,-1,-1);this.Ic&&(this.Fb=new fb(this.b.nb,this.b.mb));this.Nd=!1;var c=b[14],h,f;this.gr=[];this.Cc=[];this.ph=[];h=0;for(f=c.length;h<f;h++){var e=c[h],k=this.b.r[e[1]];k.Nc||(k.Nc=e,k.qt=this.index);this.Cc.push(e);-1===this.kb.Gh.indexOf(k)&&
this.kb.Gh.push(k)}Aa(this.gr,this.Cc);this.P=[];this.la=[];this.ke=!0;this.Ka=[];h=0;for(f=b[15].length;h<f;h++)this.P.push({id:b[15][h][0],name:b[15][h][1],$a:-1,nd:!1,yc:!0,index:h}),this.Ka.push(b[15][h][2].slice(0));this.vd();this.cf=new S(0,0,1,1);this.hn=new S(0,0,1,1)}function n(){return a.length?a.pop():[]}function q(d){V(d);a.push(d)}e.prototype.Ew=function(a){var b=a.type.Y.toString();this.$e.hasOwnProperty(b)||(this.$e[b]=[]);this.$e[b].push(this.b.rn(a))};e.prototype.jp=function(){var a=
this.R[0];return!a.ud&&1===a.opacity&&!a.yj&&a.visible};e.prototype.vd=function(){V(this.la);this.ke=!0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.yc&&(this.la.push(c),c.nd||(this.ke=!1))};e.prototype.Ul=function(a){var b,c,h;b=0;for(c=this.P.length;b<c;b++)if(h=this.P[b],h.name===a)return h;return null};var r=[],f=!0;e.prototype.Cn=function(){this.Zq&&(this.xf=this.b.Ll[this.Zq],this.xf.Pn());this.b.fa=this;this.width=this.Wv;this.height=this.Vv;this.scrollX=this.b.nb/2;this.scrollY=
this.b.mb/2;var a,b,c,h,e,l,n;a=0;for(c=this.b.r.length;a<c;a++)if(b=this.b.r[a],!b.I)for(e=b.d,b=0,h=e.length;b<h;b++)if(l=e[b],l.n){var m=l.n.kq;m>=this.R.length&&(m=this.R.length-1);l.n=this.R[m];-1===l.n.d.indexOf(l)&&l.n.d.push(l);l.n.eg=!0}if(!f)for(a=0,c=this.R.length;a<c;++a)this.R[a].d.sort(k);V(r);this.et();a=0;for(c=this.R.length;a<c;a++)l=this.R[a],l.ot(),l.Yk();e=!1;if(!this.tg){for(n in this.$e)if(this.$e.hasOwnProperty(n)&&(b=this.b.vg(parseInt(n,10)))&&!b.I&&this.b.Nn(b)){h=this.$e[n];
a=0;for(c=h.length;a<c;a++){l=null;if(b.na.Qe&&(l=this.Fj(h[a].w.l),!l))continue;l=this.b.Ge(b.Nc,l,!1,0,0,!0);this.b.$j(l,h[a]);e=!0;r.push(l)}V(h)}a=0;for(c=this.R.length;a<c;a++)this.R[a].d.sort(k),this.R[a].eg=!0}e&&(this.b.Kb(),this.b.Kq());for(a=0;a<r.length;a++)if(l=r[a],l.type.Pb)for(c=l.Bh(),b=0,h=l.type.lc.length;b<h;b++)n=l.type.lc[b],l.type!==n&&(n.d.length>c?l.siblings.push(n.d[c]):n.Nc&&(e=this.b.Ge(n.Nc,l.n,!0,l.x,l.y,!0),this.b.Kb(),n.Wk(),l.siblings.push(e),r.push(e)));a=0;for(c=
this.Ne.length;a<c;a++)l=this.Ne[a],b=this.b.r[l[1]],b.Pb||this.b.Ge(this.Ne[a],null,!0);this.b.qf=null;this.b.Kb();if(this.b.Fa&&!this.b.Wa)for(a=0,c=this.b.r.length;a<c;a++)n=this.b.r[a],!n.I&&n.d.length&&n.$m&&n.$m(this.b.Fa);if(this.b.Lh)Aa(this.b.vj,r);else for(a=0,c=r.length;a<c;a++)l=r[a],this.b.trigger(Object.getPrototypeOf(l.type.na).i.hg,l);V(r);this.b.Lh||this.b.trigger(Y.prototype.i.fo,null);this.tg=!1};e.prototype.nt=function(){var a,b,c,h,f;b=a=0;for(c=this.Ne.length;a<c;a++)h=this.Ne[a],
f=this.b.r[h[1]],f.global?f.Pb||this.b.Ge(h,null,!0):(this.Ne[b]=h,b++);za(this.Ne,b)};e.prototype.Qw=function(){this.b.Lh||this.b.trigger(Y.prototype.i.rs,null);this.b.om=!0;V(this.b.Od.jc);var a,b,c,h,e,k;if(!this.tg)for(a=0,b=this.R.length;a<b;a++)for(this.R[a].Rn(),e=this.R[a].d,c=0,h=e.length;c<h;c++)k=e[c],k.type.global||this.b.Nn(k.type)&&this.Ew(k);a=0;for(b=this.R.length;a<b;a++){e=this.R[a].d;c=0;for(h=e.length;c<h;c++)k=e[c],k.type.global||this.b.jf(k);this.b.Kb();V(e);this.R[a].eg=!0}a=
0;for(b=this.b.r.length;a<b;a++)if(e=this.b.r[a],!(e.global||e.na.Qe||e.na.Lk||e.I)){c=0;for(h=e.d.length;c<h;c++)this.b.jf(e.d[c]);this.b.Kb()}f=!1;this.b.om=!1};new S(0,0,0,0);e.prototype.ed=function(a){var b,c=a,h=!1,f=!this.b.Ac;f&&(this.b.Zj||(this.b.Zj=document.createElement("canvas"),b=this.b.Zj,b.width=this.b.H,b.height=this.b.G,this.b.Hp=b.getContext("2d"),h=!0),b=this.b.Zj,c=this.b.Hp,b.width!==this.b.H&&(b.width=this.b.H,h=!0),b.height!==this.b.G&&(b.height=this.b.G,h=!0),h&&this.b.Dk(c,
this.b.Ea));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Eo&&!this.jp()&&c.clearRect(0,0,this.b.H,this.b.G);var e,k,h=0;for(e=this.R.length;h<e;h++)k=this.R[h],k.visible&&0<k.opacity&&11!==k.Lb&&(k.d.length||!k.ud)?k.ed(c):k.Yk();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.tf=function(a){a.Qq(!0);this.b.Xa||(this.b.Xa=a.mc(this.b.H,this.b.G,this.b.Ea));if(this.b.Xa.of!==this.b.H||this.b.Xa.nf!==this.b.G)a.deleteTexture(this.b.Xa),this.b.Xa=a.mc(this.b.H,this.b.G,
this.b.Ea);a.Vc(this.b.Xa);this.b.Ac||a.Wf(this.b.H,this.b.G);var b,c;for(b=this.R.length-1;0<=b;--b)c=this.R[b],c.visible&&1===c.opacity&&c.ke&&0===c.Lb&&(c.d.length||!c.ud)?c.tf(a):c.Yk();a.Qq(!1)};e.prototype.Yb=function(a){var b=0<this.la.length||this.b.fh||!this.b.Ac||this.b.Aa;if(b){this.b.Xa||(this.b.Xa=a.mc(this.b.H,this.b.G,this.b.Ea));if(this.b.Xa.of!==this.b.H||this.b.Xa.nf!==this.b.G)a.deleteTexture(this.b.Xa),this.b.Xa=a.mc(this.b.H,this.b.G,this.b.Ea);a.Vc(this.b.Xa);this.b.Ac||a.Wf(this.b.H,
this.b.G)}else this.b.Xa&&(a.Vc(null),a.deleteTexture(this.b.Xa),this.b.Xa=null);this.b.Eo&&!this.jp()&&a.clear(0,0,0,0);var c,h,f;c=0;for(h=this.R.length;c<h;c++)f=this.R[c],f.visible&&0<f.opacity&&(f.d.length||!f.ud)?f.Yb(a):f.Yk();b&&(0===this.la.length||1===this.la.length&&this.b.Ac?(1===this.la.length?(b=this.la[0].index,a.hc(this.la[0].$a),a.ah(null,1/this.b.H,1/this.b.G,0,0,1,1,this.scale,this.j,0,0,this.b.H/2,this.b.G/2,this.b.ib.aa,this.Ka[b]),a.sk(this.la[0].$a)&&(this.b.pa=!0)):a.hc(0),
this.b.Ac||a.Wf(this.b.width,this.b.height),a.Vc(null),a.Pq(!1),a.df(1),a.gc(this.b.Xa),a.Nq(),a.Uc(),a.Hc(),b=this.b.width/2,c=this.b.height/2,a.Wg(-b,c,b,c,b,-c,-b,-c),a.gc(null),a.Pq(!0)):this.jn(a,null,null,null))};e.prototype.Ah=function(){return 0<this.la.length||this.b.fh||!this.b.Ac||this.b.Aa?this.b.Xa:null};e.prototype.ep=function(){var a=this.R[0].pc(),b,c,h;b=1;for(c=this.R.length;b<c;b++)h=this.R[b],(0!==h.Sc||0!==h.Tc)&&h.pc()<a&&(a=h.pc());return a};e.prototype.sn=function(a){if(!this.ur){var b=
1/this.ep()*this.b.H/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.pa=!0)};e.prototype.tn=function(a){if(!this.ur){var b=1/this.ep()*this.b.G/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.pa=!0)};e.prototype.et=function(){this.sn(this.scrollX);this.tn(this.scrollY)};e.prototype.jn=function(a,b,c,h){var f=c?c.la:b?b.la:this.la,e=1,k=0,m=0,p=0,l=this.b.H,n=this.b.G;c?(e=c.n.pc(),k=c.n.gb(),m=c.n.ua,p=c.n.wa,l=c.n.za,
n=c.n.ya):b&&(e=b.pc(),k=b.gb(),m=b.ua,p=b.wa,l=b.za,n=b.ya);var v=this.b.Sl,E,r,q,L,K=0,W=1,T,Q,B=this.b.H,P=this.b.G,ha=B/2,ba=P/2,A=b?b.cf:this.cf,u=b?b.hn:this.hn,C=0,F=0,H=0,G=0,O=B,ca=B,M=P,ia=P,da=q=0;L=c?c.n.gb():0;if(c){E=0;for(r=f.length;E<r;E++)q+=a.Ru(f[E].$a),da+=a.Su(f[E].$a);G=c.Ca;C=b.Ha(G.left,G.top,!0,!0);H=b.Ha(G.left,G.top,!1,!0);O=b.Ha(G.right,G.bottom,!0,!0);M=b.Ha(G.right,G.bottom,!1,!0);0!==L&&(E=b.Ha(G.right,G.top,!0,!0),r=b.Ha(G.right,G.top,!1,!0),F=b.Ha(G.left,G.bottom,
!0,!0),G=b.Ha(G.left,G.bottom,!1,!0),L=Math.min(C,O,E,F),O=Math.max(C,O,E,F),C=L,L=Math.min(H,M,r,G),M=Math.max(H,M,r,G),H=L);C-=q;H-=da;O+=q;M+=da;u.left=C/B;u.top=1-H/P;u.right=O/B;u.bottom=1-M/P;F=C=J(C);G=H=J(H);ca=O=ua(O);ia=M=ua(M);F-=q;G-=da;ca+=q;ia+=da;0>C&&(C=0);0>H&&(H=0);O>B&&(O=B);M>P&&(M=P);0>F&&(F=0);0>G&&(G=0);ca>B&&(ca=B);ia>P&&(ia=P);A.left=C/B;A.top=1-H/P;A.right=O/B;A.bottom=1-M/P}else A.left=u.left=0,A.top=u.top=0,A.right=u.right=1,A.bottom=u.bottom=1;da=c&&(a.pi(f[0].$a)||0!==
q||0!==da||1!==c.opacity||c.type.na.fq)||b&&!c&&1!==b.opacity;a.Nq();if(da){v[K]||(v[K]=a.mc(B,P,this.b.Ea));if(v[K].of!==B||v[K].nf!==P)a.deleteTexture(v[K]),v[K]=a.mc(B,P,this.b.Ea);a.hc(0);a.Vc(v[K]);Q=ia-G;a.clearRect(F,P-G-Q,ca-F,Q);c?c.Yb(a):(a.gc(this.b.jb),a.df(b.opacity),a.Uc(),a.translate(-ha,-ba),a.Hc(),a.Md(C,M,O,M,O,H,C,H,A));u.left=u.top=0;u.right=u.bottom=1;c&&(L=A.top,A.top=A.bottom,A.bottom=L);K=1;W=0}a.df(1);q=f.length-1;var Ea=a.bn(f[q].$a)||!b&&!c&&!this.b.Ac;E=L=0;for(r=f.length;E<
r;E++){v[K]||(v[K]=a.mc(B,P,this.b.Ea));if(v[K].of!==B||v[K].nf!==P)a.deleteTexture(v[K]),v[K]=a.mc(B,P,this.b.Ea);a.hc(f[E].$a);L=f[E].index;a.sk(f[E].$a)&&(this.b.pa=!0);0!=E||da?(a.ah(h,1/B,1/P,u.left,u.top,u.right,u.bottom,e,k,m,p,(m+l)/2,(p+n)/2,this.b.ib.aa,c?c.Ka[L]:b?b.Ka[L]:this.Ka[L]),a.gc(null),E!==q||Ea?(a.Vc(v[K]),Q=ia-G,T=P-G-Q,a.clearRect(F,T,ca-F,Q)):(c?a.ie(c.Hb,c.Bb):b&&a.ie(b.Hb,b.Bb),a.Vc(h)),a.gc(v[W]),a.Uc(),a.translate(-ha,-ba),a.Hc(),a.Md(C,M,O,M,O,H,C,H,A),E!==q||Ea||a.gc(null)):
(a.Vc(v[K]),Q=ia-G,T=P-G-Q,a.clearRect(F,T,ca-F,Q),c?(c.zb&&c.zb.ba?(T=c.zb.ba,W=1/T.width,T=1/T.height):(W=1/c.width,T=1/c.height),a.ah(h,W,T,u.left,u.top,u.right,u.bottom,e,k,m,p,(m+l)/2,(p+n)/2,this.b.ib.aa,c.Ka[L]),c.Yb(a)):(a.ah(h,1/B,1/P,0,0,1,1,e,k,m,p,(m+l)/2,(p+n)/2,this.b.ib.aa,b?b.Ka[L]:this.Ka[L]),a.gc(b?this.b.jb:this.b.Xa),a.Uc(),a.translate(-ha,-ba),a.Hc(),a.Md(C,M,O,M,O,H,C,H,A)),u.left=u.top=0,u.right=u.bottom=1,c&&!Ea&&(L=M,M=H,H=L));K=0===K?1:0;W=0===K?1:0}Ea&&(a.hc(0),c?a.ie(c.Hb,
c.Bb):b?a.ie(b.Hb,b.Bb):this.b.Ac||(a.Wf(this.b.width,this.b.height),ha=this.b.width/2,ba=this.b.height/2,H=C=0,O=this.b.width,M=this.b.height),a.Vc(h),a.gc(v[W]),a.Uc(),a.translate(-ha,-ba),a.Hc(),c&&1===f.length&&!da?a.Md(C,H,O,H,O,M,C,M,A):a.Md(C,M,O,M,O,H,C,H,A),a.gc(null))};e.prototype.Fj=function(a){var b,c;b=0;for(c=this.R.length;b<c;b++)if(this.R[b].Y===a)return this.R[b];return null};e.prototype.Gb=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,
h:this.height,fv:this.tg,persist:this.$e,fx:[],layers:{}};a=0;for(b=this.P.length;a<b;a++)c=this.P[a],h.fx.push({name:c.name,active:c.yc,params:this.Ka[c.index]});a=0;for(b=this.R.length;a<b;a++)c=this.R[a],h.layers[c.Y.toString()]=c.Gb();return h};e.prototype.Sb=function(a){var b,c,h,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.$e=a.persist;"undefined"!==typeof a.fv&&(this.tg=a.fv);var e=a.fx;b=0;for(c=e.length;b<c;b++)if(h=this.Ul(e[b].name))h.yc=
e[b].active,this.Ka[h.index]=e[b].params;this.vd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.Fj(parseInt(f,10)))&&a.Sb(b[f])};Ib=e;l.prototype.vd=function(){V(this.la);this.ke=!0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.yc&&(this.la.push(c),c.nd||(this.ke=!1))};l.prototype.Ul=function(a){var b,c,h;b=0;for(c=this.P.length;b<c;b++)if(h=this.P[b],h.name===a)return h;return null};l.prototype.ot=function(){var a,b,c,h,f,e;b=a=0;for(c=this.Cc.length;a<c;a++){h=this.Cc[a];f=this.b.r[h[1]];
e=this.b.Nn(f);f=!0;if(!e||this.kb.tg){h=this.b.Ge(h,this,!0);if(!h)continue;r.push(h);h.type.global&&(f=!1,this.ph.push(h.uid))}f&&(this.Cc[b]=this.Cc[a],b++)}this.Cc.length=b;this.b.Kb();!this.b.q&&this.P.length&&(this.Lb=this.St);this.nh=gb(this.Lb);this.b.u&&hb(this,this.Lb,this.b.u);this.sd=!0};l.prototype.Zg=function(a,b){var c=Ca(this.d,a);0>c||(b&&this.Ic&&a.ec&&a.ec.right>=a.ec.left&&(a.ta(),this.Fb.update(a,a.ec,null),a.ec.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(ya(this.d,c),this.yi(c)),
this.sd=!0)};l.prototype.lh=function(a,b){a.wd=this.d.length;this.d.push(a);b&&this.Ic&&a.ec&&a.N();this.sd=!0};l.prototype.iw=function(a){this.d.unshift(a);this.yi(0)};l.prototype.Hv=function(a,b,c){var h=a.Ed();b=b.Ed();ya(this.d,h);h<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.yi(h<b?h:b)};l.prototype.yi=function(a){-1===this.ue?this.ue=a:a<this.ue&&(this.ue=a);this.sd=this.eg=!0};l.prototype.Rn=function(){if(this.eg){-1===this.ue&&(this.ue=0);var a,b,c;if(this.Ic)for(a=
this.ue,b=this.d.length;a<b;++a)c=this.d[a],c.wd=a,this.Fb.Fv(c.ec);else for(a=this.ue,b=this.d.length;a<b;++a)this.d[a].wd=a;this.eg=!1;this.ue=-1}};l.prototype.pc=function(a){return this.Ou()*(this.b.Ac||a?this.b.mh:1)};l.prototype.Ou=function(){return(this.scale*this.kb.scale-1)*this.xd+1};l.prototype.gb=function(){return this.Ud?0:Ja(this.kb.j+this.j)};var a=[],b=[],c=[];l.prototype.Zl=function(){this.Rn();this.Fb.uk(this.ua,this.wa,this.za,this.ya,c);if(!c.length)return n();if(1===c.length){var a=
n();Aa(a,c[0]);V(c);return a}for(var g=!0;1<c.length;){for(var a=c,f=void 0,h=void 0,e=void 0,k=void 0,l=void 0,f=0,h=a.length;f<h-1;f+=2){var e=a[f],k=a[f+1],l=n(),m=e,p=k,r=l,N=0,v=0,E=0,w=m.length,D=p.length,L=void 0,K=void 0;for(r.length=w+D;N<w&&v<D;++E)L=m[N],K=p[v],L.wd<K.wd?(r[E]=L,++N):(r[E]=K,++v);for(;N<w;++N,++E)r[E]=m[N];for(;v<D;++v,++E)r[E]=p[v];g||(q(e),q(k));b.push(l)}1===h%2&&(g?(e=n(),Aa(e,a[h-1]),b.push(e)):b.push(a[h-1]));Aa(a,b);V(b);g=!1}a=c[0];V(c);return a};l.prototype.ed=
function(a){this.Nd=this.yj||1!==this.opacity||0!==this.Lb;var b=this.b.canvas,c=a,h=!1;this.Nd&&(this.b.Yj||(this.b.Yj=document.createElement("canvas"),b=this.b.Yj,b.width=this.b.H,b.height=this.b.G,this.b.Gp=b.getContext("2d"),h=!0),b=this.b.Yj,c=this.b.Gp,b.width!==this.b.H&&(b.width=this.b.H,h=!0),b.height!==this.b.G&&(b.height=this.b.G,h=!0),h&&this.b.Dk(c,this.b.Ea),this.ud&&c.clearRect(0,0,this.b.H,this.b.G));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ud||(c.fillStyle="rgb("+
this.ad[0]+","+this.ad[1]+","+this.ad[2]+")",c.fillRect(0,0,this.b.H,this.b.G));c.save();this.Ud=!0;var h=this.Qb(0,0,!0,!0),f=this.Qb(0,0,!1,!0);this.Ud=!1;this.b.md&&(h=Math.round(h),f=Math.round(f));this.xk(h,f,c);var e=this.pc();c.scale(e,e);c.translate(-h,-f);this.Ic?(this.Ab.left=this.Fb.Vb(this.ua),this.Ab.top=this.Fb.Wb(this.wa),this.Ab.right=this.Fb.Vb(this.za),this.Ab.bottom=this.Fb.Wb(this.ya),this.sd||!this.Ab.sh(this.Lg)?(q(this.be),h=this.Zl(),this.sd=!1,this.Lg.lg(this.Ab)):h=this.be):
h=this.d;for(var k,m=null,f=0,e=h.length;f<e;++f)k=h[f],k!==m&&(this.Nt(k,c),m=k);this.Ic&&(this.be=h);c.restore();this.Nd&&(a.globalCompositeOperation=this.nh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};l.prototype.Nt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ca;c.right<this.ua||c.bottom<this.wa||c.left>this.za||c.top>this.ya||(b.globalCompositeOperation=a.nh,a.ed(b))}};l.prototype.Yk=function(){this.Ud=!0;var a=this.Qb(0,0,!0,!0),b=this.Qb(0,0,!1,!0);this.Ud=!1;this.b.md&&
(a=Math.round(a),b=Math.round(b));this.xk(a,b,null)};l.prototype.xk=function(a,b,c){var h=this.pc();this.ua=a;this.wa=b;this.za=a+1/h*this.b.H;this.ya=b+1/h*this.b.G;this.ua>this.za&&(a=this.ua,this.ua=this.za,this.za=a);this.wa>this.ya&&(a=this.wa,this.wa=this.ya,this.ya=a);a=this.gb();0!==a&&(c&&(c.translate(this.b.H/2,this.b.G/2),c.rotate(-a),c.translate(this.b.H/-2,this.b.G/-2)),this.ne.set(this.ua,this.wa,this.za,this.ya),this.ne.offset((this.ua+this.za)/-2,(this.wa+this.ya)/-2),this.or.Xq(this.ne,
a),this.or.wo(this.ne),this.ne.offset((this.ua+this.za)/2,(this.wa+this.ya)/2),this.ua=this.ne.left,this.wa=this.ne.top,this.za=this.ne.right,this.ya=this.ne.bottom)};l.prototype.tf=function(a){if(this.Nd=this.yj){this.b.jb||(this.b.jb=a.mc(this.b.H,this.b.G,this.b.Ea));if(this.b.jb.of!==this.b.H||this.b.jb.nf!==this.b.G)a.deleteTexture(this.b.jb),this.b.jb=a.mc(this.b.H,this.b.G,this.b.Ea);a.Vc(this.b.jb)}this.Ud=!0;var b=this.Qb(0,0,!0,!0),c=this.Qb(0,0,!1,!0);this.Ud=!1;this.b.md&&(b=Math.round(b),
c=Math.round(c));this.xk(b,c,null);b=this.pc();a.Uc();a.scale(b,b);a.yk(-this.gb());a.translate((this.ua+this.za)/-2,(this.wa+this.ya)/-2);a.Hc();this.Ic?(this.Ab.left=this.Fb.Vb(this.ua),this.Ab.top=this.Fb.Wb(this.wa),this.Ab.right=this.Fb.Vb(this.za),this.Ab.bottom=this.Fb.Wb(this.ya),this.sd||!this.Ab.sh(this.Lg)?(q(this.be),b=this.Zl(),this.sd=!1,this.Lg.lg(this.Ab)):b=this.be):b=this.d;for(var h,f=null,c=b.length-1;0<=c;--c)h=b[c],h!==f&&(this.Pt(b[c],a),f=h);this.Ic&&(this.be=b);this.ud||(this.yl=
this.b.wf++,a.Ek(this.yl),a.Oq(1,1,1),a.Yo(),a.ww())};l.prototype.Yb=function(a){var b=0,c=0;if(this.Nd=this.yj||1!==this.opacity||0<this.la.length||0!==this.Lb){this.b.jb||(this.b.jb=a.mc(this.b.H,this.b.G,this.b.Ea));if(this.b.jb.of!==this.b.H||this.b.jb.nf!==this.b.G)a.deleteTexture(this.b.jb),this.b.jb=a.mc(this.b.H,this.b.G,this.b.Ea);a.Vc(this.b.jb);this.ud&&a.clear(0,0,0,0)}this.ud||(this.b.Aa?(a.Ek(this.yl),a.Oq(this.ad[0]/255,this.ad[1]/255,this.ad[2]/255),a.Yo(),a.Lw()):a.clear(this.ad[0]/
255,this.ad[1]/255,this.ad[2]/255,1));this.Ud=!0;var h=this.Qb(0,0,!0,!0),b=this.Qb(0,0,!1,!0);this.Ud=!1;this.b.md&&(h=Math.round(h),b=Math.round(b));this.xk(h,b,null);h=this.pc();a.Uc();a.scale(h,h);a.yk(-this.gb());a.translate((this.ua+this.za)/-2,(this.wa+this.ya)/-2);a.Hc();this.Ic?(this.Ab.left=this.Fb.Vb(this.ua),this.Ab.top=this.Fb.Wb(this.wa),this.Ab.right=this.Fb.Vb(this.za),this.Ab.bottom=this.Fb.Wb(this.ya),this.sd||!this.Ab.sh(this.Lg)?(q(this.be),b=this.Zl(),this.sd=!1,this.Lg.lg(this.Ab)):
b=this.be):b=this.d;var f,e,k=null,c=0;for(f=b.length;c<f;++c)e=b[c],e!==k&&(this.Ot(b[c],a),k=e);this.Ic&&(this.be=b);this.Nd&&(b=this.la.length?this.la[0].$a:0,c=this.la.length?this.la[0].index:0,0===this.la.length||1===this.la.length&&!a.bn(b)&&1===this.opacity?(1===this.la.length?(a.hc(b),a.ah(this.kb.Ah(),1/this.b.H,1/this.b.G,0,0,1,1,h,this.gb(),this.ua,this.wa,(this.ua+this.za)/2,(this.wa+this.ya)/2,this.b.ib.aa,this.Ka[c]),a.sk(b)&&(this.b.pa=!0)):a.hc(0),a.Vc(this.kb.Ah()),a.df(this.opacity),
a.gc(this.b.jb),a.ie(this.Hb,this.Bb),a.Uc(),a.Hc(),h=this.b.H/2,b=this.b.G/2,a.Wg(-h,b,h,b,h,-b,-h,-b),a.gc(null)):this.kb.jn(a,this,null,this.kb.Ah()))};l.prototype.Ot=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ca;c.right<this.ua||c.bottom<this.wa||c.left>this.za||c.top>this.ya||(b.Ek(a.wf),a.Dr?this.Qt(a,b):(b.hc(0),b.ie(a.Hb,a.Bb),a.Yb(b)))}};l.prototype.Pt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ca;c.right<this.ua||c.bottom<this.wa||c.left>
this.za||c.top>this.ya||(a.wf=this.b.wf++,0===a.Lb&&1===a.opacity&&a.ke&&a.tf&&(b.Ek(a.wf),a.tf(b)))}};l.prototype.Qt=function(a,b){var c=a.la[0].$a,h=a.la[0].index,f=this.pc();if(1!==a.la.length||b.bn(c)||b.kw(c)||(a.j||a.n.gb())&&b.pi(c)||1!==a.opacity||a.type.na.fq)this.kb.jn(b,this,a,this.Nd?this.b.jb:this.kb.Ah()),b.Uc(),b.scale(f,f),b.yk(-this.gb()),b.translate((this.ua+this.za)/-2,(this.wa+this.ya)/-2),b.Hc();else{b.hc(c);b.ie(a.Hb,a.Bb);b.sk(c)&&(this.b.pa=!0);var e=0,k=0,m=0,p=0;b.pi(c)&&
(p=a.Ca,e=this.Ha(p.left,p.top,!0,!0),k=this.Ha(p.left,p.top,!1,!0),m=this.Ha(p.right,p.bottom,!0,!0),p=this.Ha(p.right,p.bottom,!1,!0),e=e/windowWidth,k=1-k/windowHeight,m=m/windowWidth,p=1-p/windowHeight);var l;a.zb&&a.zb.ba?(l=a.zb.ba,c=1/l.width,l=1/l.height):(c=1/a.width,l=1/a.height);b.ah(this.Nd?this.b.jb:this.kb.Ah(),c,l,e,k,m,p,f,this.gb(),this.ua,this.wa,(this.ua+this.za)/2,(this.wa+this.ya)/2,this.b.ib.aa,a.Ka[h]);a.Yb(b)}};l.prototype.Qb=function(a,b,c,h){var f=this.b.devicePixelRatio;
this.b.Gf&&(a*=f,b*=f);var f=this.b.yq,e=this.b.zq,f=(this.kb.scrollX-f)*this.Sc+f,e=(this.kb.scrollY-e)*this.Tc+e,k=f,m=e,p=1/this.pc(!h);h?(k-=this.b.H*p/2,m-=this.b.G*p/2):(k-=this.b.width*p/2,m-=this.b.height*p/2);k+=a*p;m+=b*p;b=this.gb();0!==b&&(k-=f,m-=e,a=Math.cos(b),b=Math.sin(b),h=k*a-m*b,m=m*a+k*b,k=h+f,m+=e);return c?k:m};l.prototype.Ha=function(a,b,c,h){var f=this.b.yq,e=this.b.zq,k=(this.kb.scrollX-f)*this.Sc+f,m=(this.kb.scrollY-e)*this.Tc+e,e=k,f=m,p=this.gb();if(0!==p){a-=k;b-=m;
var l=Math.cos(-p),p=Math.sin(-p),n=a*l-b*p;b=b*l+a*p;a=n+k;b+=m}k=1/this.pc(!h);h?(e-=this.b.H*k/2,f-=this.b.G*k/2):(e-=this.b.width*k/2,f-=this.b.height*k/2);e=(a-e)/k;f=(b-f)/k;a=this.b.devicePixelRatio;this.b.Gf&&!h&&(e/=a,f/=a);return c?e:f};l.prototype.Gb=function(){var a,b,c,h={s:this.scale,a:this.j,vl:this.ua,vt:this.wa,vr:this.za,vb:this.ya,v:this.visible,bc:this.ad,t:this.ud,px:this.Sc,py:this.Tc,o:this.opacity,zr:this.xd,fx:[],cg:this.ph,instances:[]};a=0;for(b=this.P.length;a<b;a++)c=
this.P[a],h.fx.push({name:c.name,active:c.yc,params:this.Ka[c.index]});return h};l.prototype.Sb=function(a){var b,c,h;this.scale=a.s;this.j=a.a;this.ua=a.vl;this.wa=a.vt;this.za=a.vr;this.ya=a.vb;this.visible=a.v;this.ad=a.bc;this.ud=a.t;this.Sc=a.px;this.Tc=a.py;this.opacity=a.o;this.xd=a.zr;this.ph=a.cg||[];Aa(this.Cc,this.gr);var f=new fa;b=0;for(h=this.ph.length;b<h;++b)f.add(this.ph[b]);c=b=0;for(h=this.Cc.length;b<h;++b)f.contains(this.Cc[b][2])||(this.Cc[c]=this.Cc[b],++c);za(this.Cc,c);c=
a.fx;b=0;for(h=c.length;b<h;b++)if(a=this.Ul(c[b].name))a.yc=c[b].active,this.Ka[a.index]=c[b].params;this.vd();this.d.sort(k);this.eg=!0};Wb=l})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function k(a,b){return a.index-b.index}function l(a){var b,c,d,h;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(k);a.length>=z.length&&(z.length=a.length+1);z[a.length]||(z[a.length]=[]);h=z[a.length];b=0;for(c=h.length;b<c;b++)if(d=h[b],e(a,d))return d;h.push(a);return a}
function n(a,b){this.b=a;this.rr={};this.Ro={};this.fm=!1;this.mp=new fa;this.El=[];this.jl=[];this.name=b[0];var c=b[1];this.Je=[];var d,h;d=0;for(h=c.length;d<h;d++)this.op(c[d],null,this.Je)}function q(a){this.type=a;this.d=[];this.Z=[];this.ka=!0}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.ff=[];this.kp=this.Sk=this.Jn=this.Jj=this.group=this.Bn=!1;this.eb=[];this.Kc=[];this.Wc=[];this.Ch="";this.wg=this.Jj=this.group=!1;this.ej=null;c[1]&&(this.Ch=c[1][1].toLowerCase(),
this.group=!0,this.Jj=!!c[1][0],this.ej=[],this.wg=this.Jj,this.b.ze.push(this),this.b.Dh[this.Ch]=this);this.Fc=c[2];this.Y=c[4];this.group||(this.b.vo[this.Y.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var h=new Xb(this,d[a]);h.index=a;this.eb.push(h);this.qo(h.type)}d=c[6];a=0;for(b=d.length;a<b;a++)h=new Yb(this,d[a]),h.index=a,this.Kc.push(h);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.op(c[a],this,this.Wc);this.Sj=!1;this.eb.length&&(this.Sj=null==this.eb[0].type&&
this.eb[0].Cb==Y.prototype.i.Qr)}function f(a,b){var c,d,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Pb))for(c=0,d=a.lc.length;c<d;c++)h=a.lc[c],a!==h&&-1===b.indexOf(h)&&b.push(h)}function a(a,b){this.zc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Na=[];this.F={};this.index=-1;this.jh=!1;this.Cb=this.b.ve(b[1]);this.trigger=0<b[3];this.Qo=2===b[3];this.kd=b[4];this.Kj=b[5];this.Cv=b[6];this.Y=b[7];this.b.De[this.Y.toString()]=this;-1===b[0]?(this.type=null,this.Za=this.qn,this.mf=null,this.bd=-1):
(this.type=this.b.r[b[0]],this.Za=this.Cv?this.Cw:this.pn,b[2]?(this.mf=this.type.Cj(b[2]),this.bd=this.type.Tl(b[2])):(this.mf=null,this.bd=-1),this.zc.parent&&this.zc.parent.Fk());this.Qo&&(this.Za=this.Dw);if(10===b.length){var c,d,h=b[9];c=0;for(d=h.length;c<d;c++){var f=new Zb(this,h[c]);this.X.push(f)}this.Na.length=h.length}}function b(a,b){this.zc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Na=[];this.F={};this.index=-1;this.jh=!1;this.Cb=this.b.ve(b[1]);-1===b[0]?(this.type=null,this.Za=
this.qn,this.mf=null,this.bd=-1):(this.type=this.b.r[b[0]],this.Za=this.pn,b[2]?(this.mf=this.type.Cj(b[2]),this.bd=this.type.Tl(b[2])):(this.mf=null,this.bd=-1));this.Y=b[3];this.b.ye[this.Y.toString()]=this;if(6===b.length){var c,d,h=b[5];c=0;for(d=h.length;c<d;c++){var f=new Zb(this,h[c]);this.X.push(f)}this.Na.length=h.length}}function c(){I++;y.length===I&&y.push(new $b);return y[I]}function d(a,b){this.Rc=a;this.zc=a.zc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Cd=null;this.le=0;this.get=
null;this.Go=0;this.kb=null;this.key=0;this.object=null;this.index=0;this.Ji=this.Yf=this.Ji=this.Yf=this.Vo=this.yf=this.Ki=null;this.Zc=!1;var c,d,h;switch(b[0]){case 0:case 7:this.Cd=new ac(this,b[1]);this.le=0;this.get=this.Xu;break;case 1:this.Cd=new ac(this,b[1]);this.le=0;this.get=this.Yu;break;case 5:this.Cd=new ac(this,b[1]);this.le=0;this.get=this.cv;break;case 3:case 8:this.Go=b[1];this.get=this.Vu;break;case 6:this.kb=this.b.Dm[b[1]];this.get=this.dv;break;case 9:this.key=b[1];this.get=
this.bv;break;case 4:this.object=this.b.r[b[1]];this.get=this.gv;this.zc.qo(this.object);this.Rc instanceof Yb?this.zc.Fk():this.zc.parent&&this.zc.parent.Fk();break;case 10:this.index=b[1];a.type&&a.type.I?(this.get=this.Zu,this.Zc=!0):this.get=this.$u;break;case 11:this.Ki=b[1];this.yf=null;this.get=this.Wu;break;case 2:case 12:this.Vo=b[1];this.get=this.Uu;break;case 13:for(this.get=this.hv,this.Yf=[],this.Ji=[],c=1,d=b.length;c<d;c++)h=new Zb(this.Rc,b[c]),this.Yf.push(h),this.Ji.push(0)}}function g(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.name=c[1];this.Li=c[2];this.km=c[3];this.Rh=!!c[4];this.Qj=!!c[5];this.Y=c[6];this.b.hh[this.Y.toString()]=this;this.data=this.km;this.parent?(this.Nf=this.Rh||this.Qj?-1:this.b.Ow++,this.b.Zs.push(this)):(this.Nf=-1,this.b.Ys.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.Fh=null;this.nv=c[1];this.yc=!0}function h(){this.ir=[];this.reset(null)}var z=[];n.prototype.toString=function(){return this.name};
n.prototype.op=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Fc)for(c.push(a),c=0,b=a.eb.length;c<b;c++)a.eb[c].trigger&&this.pp(a,c);else a.Ap()?this.pp(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};n.prototype.Qa=function(){var a,b;a=0;for(b=this.Je.length;a<b;a++)this.Je[a].Qa(a<b-1&&this.Je[a+1].Sj)};n.prototype.Pn=function(){V(this.El);V(this.jl);this.oo(this);V(this.jl)};n.prototype.oo=function(a){var b,c,d,h,f=a.El,g=a.jl,
e=this.mp.pe();b=0;for(c=e.length;b<c;++b)d=e[b],h=d.Fh,!d.yc||a===h||-1<g.indexOf(h)||(g.push(h),h.oo(a),f.push(h))};n.prototype.Za=function(a){this.b.yy||(this.fm=!0,a||(this.b.tm=!0));var b,c;b=0;for(c=this.Je.length;b<c;b++){var d=this.Je[b];d.Za();this.b.xl(d.qa);this.b.Me&&this.b.Kb()}a||(this.b.tm=!1)};n.prototype.pp=function(a,b){a.Fc||this.b.Vk.push(a);var c,d,h=a.eb[b],f;h.type?f=h.type.name:f="system";var g=(c=h.Qo)?this.Ro:this.rr;g[f]||(g[f]=[]);f=g[f];g=h.Cb;if(c){if(h.X.length&&(h=
h.X[0],1===h.type&&2===h.Cd.type)){h=h.Cd.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==g){c=f[c].uh;c[h]?c[h].push([a,b]):c[h]=[[a,b]];return}c={};c[h]=[[a,b]];f.push({method:g,uh:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==g){f[c].uh.push([a,b]);return}Z&&g===Z.prototype.i.ig?f.unshift({method:g,uh:[[a,b]]}):f.push({method:g,uh:[[a,b]]})}};Jb=n;q.prototype.em=function(){return this.ka?this.type.d.length:this.d.length};q.prototype.oc=function(){return this.ka?this.type.d:
this.d};q.prototype.Vg=function(a){a&&(a.b.Pa().Ua.Fc?(this.ka&&(V(this.d),Aa(this.Z,a.type.d),this.ka=!1),a=this.Z.indexOf(a),-1!==a&&(this.d.push(this.Z[a]),this.Z.splice(a,1))):(this.ka=!1,V(this.d),this.d[0]=a))};pb=q;window._c2hh_="224BEFD1D9077394F65EB9828C9A4AF53503BE46";r.prototype.Qa=function(a){var b,c=this.parent;if(this.group)for(this.Sk=!0;c;){if(!c.group){this.Sk=!1;break}c=c.parent}this.Jn=!this.Ap()&&(!this.parent||this.parent.group&&this.parent.Sk);this.kp=!!a;this.ff=this.qa.slice(0);
for(c=this.parent;c;){a=0;for(b=c.qa.length;a<b;a++)this.Ws(c.qa[a]);c=c.parent}this.qa=l(this.qa);this.ff=l(this.ff);a=0;for(b=this.eb.length;a<b;a++)this.eb[a].Qa();a=0;for(b=this.Kc.length;a<b;a++)this.Kc[a].Qa();a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].Qa(a<b-1&&this.Wc[a+1].Sj)};r.prototype.Rq=function(a){if(this.wg!==!!a){this.wg=!!a;var b;a=0;for(b=this.ej.length;a<b;++a)this.ej[a].yr();0<b&&this.b.fa.xf&&this.b.fa.xf.Pn()}};r.prototype.qo=function(a){f(a,this.qa)};r.prototype.Ws=function(a){f(a,
this.ff)};r.prototype.Fk=function(){this.Bn=!0;this.parent&&this.parent.Fk()};r.prototype.Ap=function(){return this.eb.length?this.eb[0].trigger:!1};r.prototype.Za=function(){var a,b,c=!1,d=this.b,h=this.b.Pa();h.Ua=this;var f=this.eb;this.Sj||(h.Jl=!1);if(this.Fc){0===f.length&&(c=!0);h.Ta=0;for(a=f.length;h.Ta<a;h.Ta++)b=f[h.Ta],b.trigger||(b=b.Za())&&(c=!0);(h.Jf=c)&&this.zk()}else{h.Ta=0;for(a=f.length;h.Ta<a;h.Ta++)if(b=f[h.Ta].Za(),!b){h.Jf=!1;this.Jn&&d.Me&&d.Kb();return}h.Jf=!0;this.zk()}this.Ut(h)};
r.prototype.Ut=function(a){a.Jf&&this.kp&&(a.Jl=!0);this.Jn&&this.b.Me&&this.b.Kb()};r.prototype.Aw=function(a){this.b.Pa().Ua=this;this.eb[a].Za()&&(this.zk(),this.b.Pa().Jf=!0)};r.prototype.zk=function(){var a=this.b.Pa(),b;a.Xb=0;for(b=this.Kc.length;a.Xb<b;a.Xb++)if(this.Kc[a.Xb].Za())return;this.Mq()};r.prototype.yw=function(){var a=this.b.Pa(),b;for(b=this.Kc.length;a.Xb<b;a.Xb++)if(this.Kc[a.Xb].Za())return;this.Mq()};r.prototype.Mq=function(){if(this.Wc.length){var a,b,c,d,h=this.Wc.length-
1;this.b.tk(this);if(this.Bn)for(a=0,b=this.Wc.length;a<b;a++)c=this.Wc[a],(d=!this.Sk||!this.group&&a<h)&&this.b.si(c.qa),c.Za(),d?this.b.bf(c.qa):this.b.xl(c.qa);else for(a=0,b=this.Wc.length;a<b;a++)this.Wc[a].Za();this.b.pk()}};r.prototype.Bw=function(){var a=this.b.Pa();a.Ua=this;var b=!1,c;a.Ta=0;for(c=this.eb.length;a.Ta<c;a.Ta++)if(this.eb[a.Ta].Za())b=!0;else if(!this.Fc)return!1;return this.Fc?b:!0};r.prototype.nn=function(){this.b.zf++;var a=this.b.Pa().Ta,b=this.b.tk(this);if(!this.Fc)for(b.Ta=
a+1,a=this.eb.length;b.Ta<a;b.Ta++)if(!this.eb[b.Ta].Za()){this.b.pk();return}this.zk();this.b.pk()};r.prototype.tv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.eb[b].type===a.type)return!1;return!0};bc=r;a.prototype.Qa=function(){var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Qa(),c.Zc&&(this.jh=!0)};a.prototype.Dw=function(){return!0};a.prototype.qn=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Na[a]=this.X[a].get();return Ta(this.Cb.apply(this.b.Od,this.Na),
this.Kj)};a.prototype.Cw=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Na[a]=this.X[a].get();a=this.Cb.apply(this.mf?this.mf:this.type,this.Na);this.type.Lc();return a};a.prototype.pn=function(){var a,b,c,d,h,f,g,e,k=this.type,l=k.T(),n=this.zc.Fc&&!this.trigger;b=0;var r=k.Pb,z=k.I,q=k.Wd,t=this.bd,y=-1<t,I=this.jh,A=this.X,u=this.Na,C=this.Kj,F=this.Cb,H;if(I)for(b=0,h=A.length;b<h;++b)f=A[b],f.Zc||(u[b]=f.get(0));else for(b=0,h=A.length;b<h;++b)u[b]=A[b].get(0);if(l.ka){V(l.d);V(l.Z);
H=k.d;a=0;for(d=H.length;a<d;++a){e=H[a];if(I)for(b=0,h=A.length;b<h;++b)f=A[b],f.Zc&&(u[b]=f.get(a));y?(b=0,z&&(b=e.type.sg[q]),b=F.apply(e.K[t+b],u)):b=F.apply(e,u);(g=Ta(b,C))?l.d.push(e):n&&l.Z.push(e)}k.finish&&k.finish(!0);l.ka=!1;k.Lc();return l.em()}c=0;H=(g=n&&!this.zc.tv(this))?l.Z:l.d;var G=!1;a=0;for(d=H.length;a<d;++a){e=H[a];if(I)for(b=0,h=A.length;b<h;++b)f=A[b],f.Zc&&(u[b]=f.get(a));y?(b=0,z&&(b=e.type.sg[q]),b=F.apply(e.K[t+b],u)):b=F.apply(e,u);if(Ta(b,C))if(G=!0,g){if(l.d.push(e),
r)for(b=0,h=e.siblings.length;b<h;b++)f=e.siblings[b],f.type.T().d.push(f)}else{H[c]=e;if(r)for(b=0,h=e.siblings.length;b<h;b++)f=e.siblings[b],f.type.T().d[c]=f;c++}else if(g){H[c]=e;if(r)for(b=0,h=e.siblings.length;b<h;b++)f=e.siblings[b],f.type.T().Z[c]=f;c++}else if(n&&(l.Z.push(e),r))for(b=0,h=e.siblings.length;b<h;b++)f=e.siblings[b],f.type.T().Z.push(f)}za(H,c);if(r)for(z=k.lc,a=0,d=z.length;a<d;a++)e=z[a].T(),g?za(e.Z,c):za(e.d,c);c=G;if(g&&!G)for(a=0,d=l.d.length;a<d;a++){e=l.d[a];if(I)for(b=
0,h=A.length;b<h;b++)f=A[b],f.Zc&&(u[b]=f.get(a));b=y?F.apply(e.K[t],u):F.apply(e,u);if(Ta(b,C)){G=!0;break}}k.finish&&k.finish(c||n);return n?G:l.em()};Xb=a;b.prototype.Qa=function(){var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Qa(),c.Zc&&(this.jh=!0)};b.prototype.qn=function(){var a=this.b,b,c,d=this.X,h=this.Na;b=0;for(c=d.length;b<c;++b)h[b]=d[b].get();return this.Cb.apply(a.Od,h)};b.prototype.pn=function(){var a=this.type,b=this.bd,c=a.Wd,d=this.jh,h=this.X,f=this.Na,g=this.Cb,e=a.T().oc(),
a=a.I,k=-1<b,l,n,r,z,q,t;if(d)for(n=0,z=h.length;n<z;++n)q=h[n],q.Zc||(f[n]=q.get(0));else for(n=0,z=h.length;n<z;++n)f[n]=h[n].get(0);l=0;for(r=e.length;l<r;++l){t=e[l];if(d)for(n=0,z=h.length;n<z;++n)q=h[n],q.Zc&&(f[n]=q.get(l));k?(n=0,a&&(n=t.type.sg[c]),g.apply(t.K[b+n],f)):g.apply(t,f)}return!1};Yb=b;var y=[],I=-1;d.prototype.Qa=function(){var a,b;if(11===this.type)this.yf=this.b.cp(this.Ki,this.zc.parent);else if(13===this.type)for(a=0,b=this.Yf.length;a<b;a++)this.Yf[a].Qa();this.Cd&&this.Cd.Qa()};
d.prototype.Gv=function(a){this.Zc||!a||a.na.Lk||(this.Zc=!0)};d.prototype.Vq=function(){this.Zc=!0};d.prototype.Xu=function(a){this.le=a||0;a=c();this.Cd.get(a);I--;return a.data};d.prototype.Yu=function(a){this.le=a||0;a=c();this.Cd.get(a);I--;return x(a.data)?a.data:""};d.prototype.gv=function(){return this.object};d.prototype.Vu=function(){return this.Go};d.prototype.cv=function(a){this.le=a||0;a=c();this.Cd.get(a);I--;return a.qb()?this.b.zh(a.data):this.b.Xl(a.data)};d.prototype.dv=function(){return this.kb};
d.prototype.bv=function(){return this.key};d.prototype.$u=function(){return this.index};d.prototype.Zu=function(a){a=a||0;var b=this.Rc.type,c=null,c=b.T(),d=c.oc();if(d.length)c=d[a%d.length].type;else if(c.Z.length)c=c.Z[a%c.Z.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.tj[b.Wd]};d.prototype.Wu=function(){return this.yf};d.prototype.Uu=function(){return this.Vo};d.prototype.hv=function(){var a,b;a=0;for(b=this.Yf.length;a<b;a++)this.Ji[a]=this.Yf[a].get();
return this.Ji};Zb=d;g.prototype.Qa=function(){this.qa=l(this.qa)};g.prototype.je=function(a){var b=this.b.bp();this.parent&&!this.Rh&&b?(this.Nf>=b.length&&(b.length=this.Nf+1),b[this.Nf]=a):this.data=a};g.prototype.Bf=function(){var a=this.b.bp();return!this.parent||this.Rh||!a||this.Qj?this.data:this.Nf>=a.length||"undefined"===typeof a[this.Nf]?this.km:a[this.Nf]};g.prototype.Za=function(){!this.parent||this.Rh||this.Qj||this.je(this.km)};Tb=g;t.prototype.toString=function(){return"include:"+
this.Fh.toString()};t.prototype.Qa=function(){this.Fh=this.b.Ll[this.nv];this.sheet.mp.add(this);this.qa=l(this.qa);for(var a=this.parent;a;)a.group&&a.ej.push(this),a=a.parent;this.yr()};t.prototype.Za=function(){this.parent&&this.b.ri(this.b.r);this.Fh.fm||this.Fh.Za(!0);this.parent&&this.b.bf(this.b.r)};t.prototype.yr=function(){for(var a=this.parent;a;){if(a.group&&!a.wg){this.yc=!1;return}a=a.parent}this.yc=!0};cc=t;h.prototype.reset=function(a){this.Ua=a;this.Xb=this.Ta=0;V(this.ir);this.Jl=
this.Jf=!1};h.prototype.vv=function(){return this.Ua.Bn?!0:this.Ta<this.Ua.eb.length-1?!!this.Ua.qa.length:!1};Sb=h})();
(function(){function e(f,a){this.Rc=f;this.b=f.b;this.type=a[0];this.get=[this.lu,this.hu,this.uu,this.xu,this.Xt,this.vu,this.pu,this.eu,this.ou,this.tu,this.Yt,this.su,this.fu,this.qu,this.mu,this.nu,this.iu,this.ju,this.du,this.wu,this.ru,this.ku,this.cu,this.gu][this.type];var b=null;this.ee=this.X=this.Na=this.Cb=this.Pk=this.second=this.first=this.value=null;this.bd=-1;this.fd=null;this.Er=-1;this.yf=this.Ki=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(f,a[1]);break;case 18:this.first=new ac(f,a[1]);this.second=new ac(f,a[2]);this.Pk=new ac(f,a[3]);break;case 19:this.Cb=this.b.ve(a[1]);this.Cb!==Y.prototype.La.random&&this.Cb!==Y.prototype.La.Do||this.Rc.Vq();this.Na=[];this.X=[];3===a.length?(b=a[2],this.Na.length=b.length+1):this.Na.length=1;break;case 20:this.ee=this.b.r[a[1]];this.bd=-1;this.Cb=this.b.ve(a[2]);this.$g=a[3];fc.Function&&this.Cb===fc.Function.prototype.La.tx&&this.Rc.Vq();a[4]?this.fd=new ac(f,a[4]):this.fd=null;this.Na=
[];this.X=[];6===a.length?(b=a[5],this.Na.length=b.length+1):this.Na.length=1;break;case 21:this.ee=this.b.r[a[1]];this.$g=a[2];a[3]?this.fd=new ac(f,a[3]):this.fd=null;this.Er=a[4];break;case 22:this.ee=this.b.r[a[1]];this.ee.Cj(a[2]);this.bd=this.ee.Tl(a[2]);this.Cb=this.b.ve(a[3]);this.$g=a[4];a[5]?this.fd=new ac(f,a[5]):this.fd=null;this.Na=[];this.X=[];7===a.length?(b=a[6],this.Na.length=b.length+1):this.Na.length=1;break;case 23:this.Ki=a[1],this.yf=null}this.Rc.Gv(this.ee);4<=this.type&&17>=
this.type&&(this.first=new ac(f,a[1]),this.second=new ac(f,a[2]));if(b){var c,d;c=0;for(d=b.length;c<d;c++)this.X.push(new ac(f,b[c]))}}function k(){++r;q.length===r&&q.push(new $b);return q[r]}function l(f,a,b){var c,d;c=0;for(d=f.length;c<d;++c)f[c].get(b),a[c+1]=b.data}function n(f,a){this.type=f||dc.gg;this.data=a||0;this.Rf=null;this.type==dc.gg&&(this.data=Math.floor(this.data))}e.prototype.Qa=function(){23===this.type&&(this.yf=this.Rc.b.cp(this.Ki,this.Rc.zc.parent));this.first&&this.first.Qa();
this.second&&this.second.Qa();this.Pk&&this.Pk.Qa();this.fd&&this.fd.Qa();if(this.X){var f,a;f=0;for(a=this.X.length;f<a;f++)this.X[f].Qa()}};var q=[],r=-1;e.prototype.wu=function(f){var a=this.X,b=this.Na;b[0]=f;f=k();l(a,b,f);--r;this.Cb.apply(this.b.Od,b)};e.prototype.ru=function(f){var a=this.ee,b=this.Na,c=this.X,d=this.fd,g=this.Cb,e=this.Rc.le,h=a.T(),n=h.oc();if(!n.length)if(h.Z.length)n=h.Z;else{this.$g?f.xc(""):f.Ba(0);return}b[0]=f;f.Rf=a;f=k();l(c,b,f);d&&(d.get(f),f.qb()&&(e=f.data,n=
a.d));--r;a=n.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);g.apply(n[e],b)};e.prototype.cu=function(f){var a=this.ee,b=this.Na,c=this.X,d=this.fd,g=this.bd,e=this.Cb,h=this.Rc.le,n=a.T(),q=n.oc();if(!q.length)if(n.Z.length)q=n.Z;else{this.$g?f.xc(""):f.Ba(0);return}b[0]=f;f.Rf=a;f=k();l(c,b,f);d&&(d.get(f),f.qb()&&(h=f.data,q=a.d));--r;c=q.length;if(h>=c||h<=-c)h%=c;0>h&&(h+=c);h=q[h];q=0;a.I&&(q=h.type.sg[a.Wd]);e.apply(h.K[g+q],b)};e.prototype.ku=function(f){var a=this.fd,b=this.ee,c=this.Er,d=this.Rc.le,
g=b.T(),e=g.oc();if(!e.length)if(g.Z.length)e=g.Z;else{this.$g?f.xc(""):f.Ba(0);return}if(a){g=k();a.get(g);if(g.qb()){d=g.data;e=b.d;0!==e.length&&(d%=e.length,0>d&&(d+=e.length));d=b.Wl(d);b=d.hb[c];x(b)?f.xc(b):f.L(b);--r;return}--r}a=e.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=e[d];e=0;b.I&&(e=d.type.tj[b.Wd]);b=d.hb[c+e];x(b)?f.xc(b):f.L(b)};e.prototype.lu=function(f){f.type=dc.gg;f.data=this.value};e.prototype.hu=function(f){f.type=dc.fg;f.data=this.value};e.prototype.uu=function(f){f.type=dc.String;
f.data=this.value};e.prototype.xu=function(f){this.first.get(f);f.qb()&&(f.data=-f.data)};e.prototype.Xt=function(f){this.first.get(f);var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data+=a.data,a.Cg()&&f.Ng());--r};e.prototype.vu=function(f){this.first.get(f);var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data-=a.data,a.Cg()&&f.Ng());--r};e.prototype.pu=function(f){this.first.get(f);var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data*=a.data,a.Cg()&&f.Ng());--r};e.prototype.eu=function(f){this.first.get(f);
var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data/=a.data,f.Ng());--r};e.prototype.ou=function(f){this.first.get(f);var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data%=a.data,a.Cg()&&f.Ng());--r};e.prototype.tu=function(f){this.first.get(f);var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data=Math.pow(f.data,a.data),a.Cg()&&f.Ng());--r};e.prototype.Yt=function(f){this.first.get(f);var a=k();this.second.get(a);a.Fg()||f.Fg()?this.$t(f,a):this.Zt(f,a);--r};e.prototype.$t=function(f,a){f.Fg()&&
a.Fg()?this.bu(f,a):this.au(f,a)};e.prototype.bu=function(f,a){f.data+=a.data};e.prototype.au=function(f,a){f.Fg()?f.data+=(Math.round(1E10*a.data)/1E10).toString():f.xc(f.data.toString()+a.data)};e.prototype.Zt=function(f,a){f.Ba(f.data&&a.data?1:0)};e.prototype.su=function(f){this.first.get(f);var a=k();this.second.get(a);f.qb()&&a.qb()&&(f.data||a.data?f.Ba(1):f.Ba(0));--r};e.prototype.du=function(f){this.first.get(f);f.data?this.second.get(f):this.Pk.get(f)};e.prototype.fu=function(f){this.first.get(f);
var a=k();this.second.get(a);f.Ba(f.data===a.data?1:0);--r};e.prototype.qu=function(f){this.first.get(f);var a=k();this.second.get(a);f.Ba(f.data!==a.data?1:0);--r};e.prototype.mu=function(f){this.first.get(f);var a=k();this.second.get(a);f.Ba(f.data<a.data?1:0);--r};e.prototype.nu=function(f){this.first.get(f);var a=k();this.second.get(a);f.Ba(f.data<=a.data?1:0);--r};e.prototype.iu=function(f){this.first.get(f);var a=k();this.second.get(a);f.Ba(f.data>a.data?1:0);--r};e.prototype.ju=function(f){this.first.get(f);
var a=k();this.second.get(a);f.Ba(f.data>=a.data?1:0);--r};e.prototype.gu=function(f){var a=this.yf.Bf();ma(a)?f.L(a):f.xc(a)};ac=e;n.prototype.Cg=function(){return this.type===dc.fg};n.prototype.qb=function(){return this.type===dc.gg||this.type===dc.fg};n.prototype.Fg=function(){return this.type===dc.String};n.prototype.Ng=function(){this.Cg()||(this.Fg()&&(this.data=parseFloat(this.data)),this.type=dc.fg)};n.prototype.Ba=function(f){this.type=dc.gg;this.data=Math.floor(f)};n.prototype.L=function(f){this.type=
dc.fg;this.data=f};n.prototype.xc=function(f){this.type=dc.String;this.data=f};n.prototype.Mw=function(f){ma(f)?(this.type=dc.fg,this.data=f):x(f)?(this.type=dc.String,this.data=f.toString()):(this.type=dc.gg,this.data=0)};$b=n;dc={gg:0,fg:1,String:2}})();function Y(e){this.b=e;this.jc=[]}
Y.prototype.Gb=function(){var e={},k,l,n,q,r,f,a,b;e.waits=[];var c=e.waits,d;k=0;for(l=this.jc.length;k<l;k++){f=this.jc[k];d={t:f.time,st:f.cr,s:f.An,ev:f.qg.Y,sm:[],sols:{}};f.qg.Kc[f.Xb]&&(d.act=f.qg.Kc[f.Xb].Y);n=0;for(q=f.qa.length;n<q;n++)d.sm.push(f.qa[n].Y);for(r in f.Tb)if(f.Tb.hasOwnProperty(r)){a=this.b.r[parseInt(r,10)];b={sa:f.Tb[r].Ak,insts:[]};n=0;for(q=f.Tb[r].Yd.length;n<q;n++)b.insts.push(f.Tb[r].Yd[n].uid);d.sols[a.Y.toString()]=b}c.push(d)}return e};
Y.prototype.Sb=function(e){e=e.waits;var k,l,n,q,r,f,a,b,c,d,g;V(this.jc);k=0;for(l=e.length;k<l;k++)if(f=e[k],b=this.b.vo[f.ev.toString()]){c=-1;n=0;for(q=b.Kc.length;n<q;n++)if(b.Kc[n].Y===f.act){c=n;break}if(-1!==c){a={Tb:{},qa:[],Fl:!1};a.time=f.t;a.cr=f.st||"";a.An=!!f.s;a.qg=b;a.Xb=c;n=0;for(q=f.sm.length;n<q;n++)(b=this.b.vg(f.sm[n]))&&a.qa.push(b);for(r in f.sols)if(f.sols.hasOwnProperty(r)&&(b=this.b.vg(parseInt(r,10)))){c=f.sols[r];d={Ak:c.sa,Yd:[]};n=0;for(q=c.insts.length;n<q;n++)(g=this.b.Gj(c.insts[n]))&&
d.Yd.push(g);a.Tb[b.index.toString()]=d}this.jc.push(a)}}};
(function(){function e(){}function k(){}function l(){}var n=Y.prototype;e.prototype.Sr=function(){return!0};e.prototype.fo=function(){return!0};e.prototype.rs=function(){return!0};e.prototype.Fs=function(f){var a=this.b.Pa(),b=a.Ua,c=a.vv(),a=this.b.ow();if(c)for(c=0;c<f&&!a.tb;c++)this.b.si(b.qa),a.index=c,b.nn(),this.b.bf(b.qa);else for(c=0;c<f&&!a.tb;c++)a.index=c,b.nn();this.b.dw();return!1};e.prototype.Rr=function(f){var a=this.b.Ej(),b=a.F.Every_lastTime||0,c=this.b.ib.aa;"undefined"===typeof a.F.Every_seconds&&
(a.F.Every_seconds=f);var d=a.F.Every_seconds;if(c>=b+d)return a.F.Every_lastTime=b+d,c>=a.F.Every_lastTime+.04&&(a.F.Every_lastTime=c),a.F.Every_seconds=f,!0;c<b-.1&&(a.F.Every_lastTime=c);return!1};e.prototype.Ds=function(f){if(!f)return!1;var a=f.T(),b=a.oc(),c=J(Math.random()*b.length);if(c>=b.length)return!1;a.Vg(b[c]);f.Lc();return!0};e.prototype.Nr=function(f,a,b){return ec(f.Bf(),a,b)};e.prototype.Xr=function(f){return(f=this.b.Dh[f.toLowerCase()])&&f.wg};e.prototype.Qr=function(){var f=this.b.Pa();
return f.Jl?!1:!f.Jf};e.prototype.ho=function(){return!0};e.prototype.ls=function(){return!0};e.prototype.el=function(){return!0};e.prototype.lo=function(){return!0};e.prototype.ts=function(){return!0};e.prototype.Ri=function(){return!0};e.prototype.Ir=function(f,a,b){return Oa(X(f),X(b))<=X(a)};e.prototype.Wr=function(f,a){return Qa(X(f),X(a))};e.prototype.Vr=function(f,a,b){f=Ma(f);a=Ma(a);b=Ma(b);return Qa(b,a)?Qa(f,a)&&!Qa(f,b):!(!Qa(f,a)&&Qa(f,b))};n.i=new e;k.prototype.Ur=function(f){this.b.Hg||
this.b.qf||(this.b.qf=f)};k.prototype.Or=function(f,a,b,c){if(a&&f&&(a=this.b.Al(f,a,b,c))){this.b.Dc++;var d;this.b.trigger(Object.getPrototypeOf(f.na).i.hg,a);if(a.Pb)for(b=0,c=a.siblings.length;b<c;b++)d=a.siblings[b],this.b.trigger(Object.getPrototypeOf(d.type.na).i.hg,d);this.b.Dc--;f=f.T();f.ka=!1;V(f.d);f.d[0]=a;if(a.Pb)for(b=0,c=a.siblings.length;b<c;b++)d=a.siblings[b],f=d.type.T(),f.ka=!1,V(f.d),f.d[0]=d}};k.prototype.Ks=function(f,a){0===f.Li?ma(a)?f.je(a):f.je(parseFloat(a)):1===f.Li&&
f.je(a.toString())};k.prototype.Hr=function(f,a){0===f.Li?ma(a)?f.je(f.Bf()+a):f.je(f.Bf()+parseFloat(a)):1===f.Li&&f.je(f.Bf()+a.toString())};k.prototype.Qs=function(f,a){0===f.Li&&(ma(a)?f.je(f.Bf()-a):f.je(f.Bf()-parseFloat(a)))};var q=[],r=[];k.prototype.Ss=function(f){if(!(0>f)){var a,b,c,d=this.b.Pa(),g;q.length?g=q.pop():g={Tb:{},qa:[]};g.Fl=!1;g.time=this.b.ib.aa+f;g.cr="";g.An=!1;g.qg=d.Ua;g.Xb=d.Xb+1;f=0;for(a=this.b.r.length;f<a;f++)c=this.b.r[f],b=c.T(),b.ka&&-1===d.Ua.qa.indexOf(c)||
(g.qa.push(c),c=void 0,r.length?c=r.pop():c={Yd:[]},c.Ak=!1,c.Ak=b.ka,Aa(c.Yd,b.d),g.Tb[f.toString()]=c);this.jc.push(g);return!0}};k.prototype.Gs=function(){if(!this.b.Hg&&!this.b.qf&&this.b.fa){this.b.qf=this.b.fa;var f,a,b;f=0;for(a=this.b.ze.length;f<a;f++)b=this.b.ze[f],b.Rq(b.Jj)}};k.prototype.Hs=function(f){this.b.Bk=f};k.prototype.bs=function(f){this.b.Xh=f};n.J=new k;l.prototype["int"]=function(f,a){x(a)?(f.Ba(parseInt(a,10)),isNaN(f.data)&&(f.data=0)):f.Ba(a)};l.prototype["float"]=function(f,
a){x(a)?(f.L(parseFloat(a)),isNaN(f.data)&&(f.data=0)):f.L(a)};l.prototype.random=function(f,a,b){void 0===b?f.L(Math.random()*a):f.L(Math.random()*(b-a)+a)};l.prototype.sqrt=function(f,a){f.L(Math.sqrt(a))};l.prototype.abs=function(f,a){f.L(Math.abs(a))};l.prototype.round=function(f,a){f.Ba(Math.round(a))};l.prototype.floor=function(f,a){f.Ba(Math.floor(a))};l.prototype.ceil=function(f,a){f.Ba(Math.ceil(a))};l.prototype.sin=function(f,a){f.L(Math.sin(X(a)))};l.prototype.cos=function(f,a){f.L(Math.cos(X(a)))};
l.prototype.tan=function(f,a){f.L(Math.tan(X(a)))};l.prototype.asin=function(f,a){f.L(Ha(Math.asin(a)))};l.prototype.acos=function(f,a){f.L(Ha(Math.acos(a)))};l.prototype.atan=function(f,a){f.L(Ha(Math.atan(a)))};l.prototype.exp=function(f,a){f.L(Math.exp(a))};l.prototype.log10=function(f,a){f.L(Math.log(a)/Math.LN10)};l.prototype.max=function(f){var a=arguments[1];"number"!==typeof a&&(a=0);var b,c,d;b=2;for(c=arguments.length;b<c;b++)d=arguments[b],"number"===typeof d&&a<d&&(a=d);f.L(a)};l.prototype.min=
function(f){var a=arguments[1];"number"!==typeof a&&(a=0);var b,c,d;b=2;for(c=arguments.length;b<c;b++)d=arguments[b],"number"===typeof d&&a>d&&(a=d);f.L(a)};l.prototype.uf=function(f){f.L(this.b.uf)};l.prototype.ag=function(f){f.L(this.b.ag)};l.prototype.time=function(f){f.L(this.b.ib.aa)};l.prototype.Yc=function(f){f.Ba(this.b.Yc)};l.prototype.lk=function(f){f.Ba(this.b.lk)};l.prototype.Rl=function(f){f.Ba(this.b.Rl)};l.prototype.j=function(f,a,b,c,d){f.L(Ha(Na(a,b,c,d)))};l.prototype.left=function(f,
a,b){f.xc(x(a)?a.substr(0,b):"")};l.prototype.right=function(f,a,b){f.xc(x(a)?a.substr(a.length-b):"")};l.prototype.replace=function(f,a,b,c){x(a)&&x(b)&&x(c)?f.xc(a.replace(new RegExp(cb(b),"gi"),c)):f.xc(x(a)?a:"")};l.prototype.trim=function(f,a){f.xc(x(a)?a.trim():"")};l.prototype.Do=function(f){var a=J(Math.random()*(arguments.length-1));f.Mw(arguments[a+1])};l.prototype.zl=function(f){f.L(this.b.zl/1E3)};l.prototype.ck=function(f){f.L(this.b.ck)};n.La=new l;n.zw=function(){var f,a,b,c,d,g,e=
this.b.Pa();f=0;for(b=this.jc.length;f<b;f++){c=this.jc[f];if(-1===c.time){if(!c.An)continue}else if(c.time>this.b.ib.aa)continue;e.Ua=c.qg;e.Xb=c.Xb;e.Ta=0;for(a in c.Tb)c.Tb.hasOwnProperty(a)&&(d=this.b.r[parseInt(a,10)].T(),g=c.Tb[a],d.ka=g.Ak,Aa(d.d,g.Yd),d=g,V(d.Yd),r.push(d));c.qg.yw();this.b.xl(c.qa);c.Fl=!0}a=f=0;for(b=this.jc.length;f<b;f++)c=this.jc[f],this.jc[a]=c,c.Fl?(Xa(c.Tb),V(c.qa),q.push(c)):a++;za(this.jc,a)}})();
(function(){ob=function(e,l){var n=e[1],q=e[3],r=e[4],f=e[5],a=e[6],b=e[7],c=e[8];l.i||(l.i={});l.J||(l.J={});l.La||(l.La={});var d=l.i,g=l.J,t=l.La;q&&(d.yx=function(a,b){return ec(this.x,a,b)},d.zx=function(a,b){return ec(this.y,a,b)},d.Zn=function(){var a=this.n;this.ta();var b=this.Ca;return!(b.right<a.ua||b.bottom<a.wa||b.left>a.za||b.top>a.ya)},d.Fx=function(){this.ta();var a=this.Ca,b=this.b.fa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Qx=function(a,b,c){var d=this.T(),
f=d.oc();if(!f.length)return!1;var g=f[0],e=g,k=Sa(g.x,g.y,b,c),l,n,r;l=1;for(n=f.length;l<n;l++)if(g=f[l],r=Sa(g.x,g.y,b,c),0===a&&r<k||1===a&&r>k)k=r,e=g;d.Vg(e);return!0},g.iy=function(a){this.x!==a&&(this.x=a,this.N())},g.jy=function(a){this.y!==a&&(this.y=a,this.N())},g.fy=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.N()},g.gy=function(a,b){var c=a.Pu(this);if(c){var d;c.yh?(d=c.yh(b,!0),c=c.yh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.N()}},g.Jx=
function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.N())},g.ds=function(a,b){0!==b&&(this.x+=Math.cos(X(a))*b,this.y+=Math.sin(X(a))*b,this.N())},t.gl=function(a){a.L(this.x)},t.hl=function(a){a.L(this.y)},t.uf=function(a){a.L(this.b.xh(this))});r&&(d.xx=function(a,b){return ec(this.width,a,b)},d.ux=function(a,b){return ec(this.height,a,b)},g.Ls=function(a){this.width!==a&&(this.width=a,this.N())},g.by=function(a){this.height!==a&&(this.height=a,this.N())},g.hy=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.N()},t.oy=function(a){a.L(this.width)},t.Bx=function(a){a.L(this.height)},t.nx=function(a){this.ta();a.L(this.Ca.left)},t.qx=function(a){this.ta();a.L(this.Ca.top)},t.ox=function(a){this.ta();a.L(this.Ca.right)},t.mx=function(a){this.ta();a.L(this.Ca.bottom)});f&&(d.Ir=function(a,b){return Oa(this.j,X(b))<=X(a)},d.Wr=function(a){return Qa(this.j,X(a))},d.Vr=function(a,b){var c=Ma(a),d=Ma(b),f=Ja(this.j);return Qa(d,c)?Qa(f,c)&&
!Qa(f,d):!(!Qa(f,c)&&Qa(f,d))},g.Yx=function(a){a=X(Ia(a));isNaN(a)||this.j===a||(this.j=a,this.N())},g.Ux=function(a){0===a||isNaN(a)||(this.j+=X(a),this.j=Ja(this.j),this.N())},g.Vx=function(a){0===a||isNaN(a)||(this.j-=X(a),this.j=Ja(this.j),this.N())},g.Wx=function(a,b){var c=Pa(this.j,X(b),X(a));isNaN(c)||this.j===c||(this.j=c,this.N())},g.Xx=function(a,b,c){a=Pa(this.j,Math.atan2(c-this.y,b-this.x),X(a));isNaN(a)||this.j===a||(this.j=a,this.N())},g.Js=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.j===c||(this.j=c,this.N())},t.kx=function(a){a.L(La(this.j))});n||(d.vx=function(a,b,c){return ec(this.hb[a],b,c)},d.Dx=function(a){return this.hb[a]},d.Rx=function(a,b){var c=this.T(),d=c.oc();if(!d.length)return!1;var f=d[0],g=f,e=f.hb[b],k,l,n;k=1;for(l=d.length;k<l;k++)if(f=d[k],n=f.hb[b],0===a&&n<e||1===a&&n>e)e=n,g=f;c.Vg(g);return!0},d.Px=function(a){var b,c,d,f,g;if(this.b.Ej().Kj){g=this.T();if(g.ka)for(g.ka=!1,V(g.d),V(g.Z),d=this.d,b=0,c=d.length;b<c;b++)f=d[b],
f.uid===a?g.Z.push(f):g.d.push(f);else{d=b=0;for(c=g.d.length;b<c;b++)f=g.d[b],g.d[d]=f,f.uid===a?g.Z.push(f):d++;za(g.d,d)}this.Lc();return!!g.d.length}f=this.b.Gj(a);if(!f)return!1;g=this.T();if(!g.ka&&-1===g.d.indexOf(f))return!1;if(this.I)for(a=f.type.Ga,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Vg(f),this.Lc(),!0}else if(f.type===this)return g.Vg(f),this.Lc(),!0;return!1},d.hg=function(){return!0},d.ao=function(){return!0},g.cy=function(a,b){var c=this.hb;ma(c[a])?c[a]=ma(b)?b:parseFloat(b):
x(c[a])&&(c[a]=x(b)?b:b.toString())},g.jx=function(a,b){var c=this.hb;ma(c[a])?c[a]=ma(b)?c[a]+b:c[a]+parseFloat(b):x(c[a])&&(c[a]=x(b)?c[a]+b:c[a]+b.toString())},g.ky=function(a,b){var c=this.hb;ma(c[a])&&(c[a]=ma(b)?c[a]-b:c[a]-parseFloat(b))},g.Zx=function(a,b){this.hb[a]=b?1:0},g.my=function(a){this.hb[a]=1-this.hb[a]},g.Pr=function(){this.b.jf(this)},g.as||(g.as=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.$j(this,b,!0);this.yd&&this.yd();if(this.K)for(a=0,b=this.K.length;a<
b;++a)c=this.K[a],c.yd&&c.yd()}),t.Ax=function(a){var b=a.Rf.d.length,c,d,f;c=0;for(d=this.b.dd.length;c<d;c++)f=this.b.dd[c],a.Rf.I?0<=f.type.Ga.indexOf(a.Rf)&&b++:f.type===a.Rf&&b++;a.Ba(b)},t.Tx=function(a){a.Ba(a.Rf.T().oc().length)},t.ny=function(a){a.Ba(this.uid)},t.Cx=function(a){a.Ba(this.Bh())},t.Jr||(t.Jr=function(a){a.xc(JSON.stringify(this.b.rn(this,!0)))}));a&&(d.Gx=function(){return this.visible},g.no=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.pa=!0)},d.wx=function(a,b){return ec(ib(100*
this.opacity),a,b)},g.ey=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.pa=!0)},t.Opacity=function(a){a.L(ib(100*this.opacity))});b&&(d.Ex=function(a){return a?this.n===a:!1},d.Sx=function(a){var b=this.T(),c=b.oc();if(!c.length)return!1;var d=c[0],f=d,g,e;g=1;for(e=c.length;g<e;g++)if(d=c[g],0===a){if(d.n.index>f.n.index||d.n.index===f.n.index&&d.Ed()>f.Ed())f=d}else if(d.n.index<f.n.index||d.n.index===f.n.index&&d.Ed()<f.Ed())f=d;b.Vg(f);return!0},g.Mx=function(){var a=
this.n,b=a.d;b.length&&b[b.length-1]===this||(a.Zg(this,!1),a.lh(this,!1),this.b.pa=!0)},g.Kx=function(){var a=this.n,b=a.d;b.length&&b[0]===this||(a.Zg(this,!1),a.iw(this),this.b.pa=!0)},g.Lx=function(a){a&&a!=this.n&&(this.n.Zg(this,!0),this.n=a,a.lh(this,!0),this.b.pa=!0)},g.Vs=function(a,b){var c=0===a;if(b){var d=b.Ku(this);d&&d.uid!==this.uid&&(this.n.index!==d.n.index&&(this.n.Zg(this,!0),this.n=d.n,d.n.lh(this,!0)),this.n.Hv(this,d,c),this.b.pa=!0)}},t.Ix=function(a){a.Ba(this.n.kq)},t.Hx=
function(a){a.xc(this.n.name)},t.qy=function(a){a.Ba(this.Ed())});c&&(g.$x=function(a,b){if(this.b.q){var c=this.type.Vl(b);if(!(0>c)){var d=1===a;this.xe[c]!==d&&(this.xe[c]=d,this.vd(),this.b.pa=!0)}}},g.ay=function(a,b,c){if(this.b.q){var d=this.type.Vl(a);0>d||(a=this.type.P[d],d=this.Ka[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.Tu(a.$a,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.yc&&(this.b.pa=!0))))}})};Kb=function(){this.rl=this.nl=!0;this.type.Ui=!0;this.b.pa=!0;var e,l,n=this.ol;e=0;for(l=
n.length;e<l;++e)n[e](this);this.n.Ic&&this.ta()};Lb=function(e){e&&this.ol.push(e)};Nb=function(){if(this.nl){var e=this.Ca,l=this.Mb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.$b*this.width,-this.ac*this.height);this.j?(e.offset(-this.x,-this.y),l.Xq(e,this.j),l.offset(this.x,this.y),l.wo(e)):l.ef(e);e.normalize();this.nl=!1;this.Zw()}};var e=new S(0,0,0,0);Ob=function(){if(this.n.Ic){var k=this.n.Fb,l=this.Ca;e.set(k.Vb(l.left),k.Wb(l.top),k.Vb(l.right),k.Wb(l.bottom));
this.ec.sh(e)||(this.ec.right<this.ec.left?k.update(this,null,e):k.update(this,this.ec,e),this.ec.lg(e),this.n.sd=!0)}};Pb=function(){if(this.rl&&this.Ad){this.ta();var k=this.type.dj,l=this.Ca;e.set(k.Vb(l.left),k.Wb(l.top),k.Vb(l.right),k.Wb(l.bottom));this.Ee.sh(e)||(this.Ee.right<this.Ee.left?k.update(this,null,e):k.update(this,this.Ee,e),this.Ee.lg(e),this.rl=!1)}};Mb=function(e,l){return this.Ca.Rb(e,l)&&this.Mb.Rb(e,l)?this.$f?this.zy(e,l):this.ca&&!this.ca.Hf()?(this.ca.pf(this.width,this.height,
this.j),this.ca.Rb(e-this.x,l-this.y)):!0:!1};Gb=function(){this.type.Wk();return this.Ef};Qb=function(){this.n.Rn();return this.wd};Rb=function(){V(this.la);var e,l,n,q=!0;e=0;for(l=this.xe.length;e<l;e++)this.xe[e]&&(n=this.type.P[e],this.la.push(n),n.nd||(q=!1));this.Dr=!!this.la.length;this.ke=q};Hb=function(){return"Inst"+this.Hq};rb=function(e){if(e&&e.Pb&&e.type!=this){var l,n,q;l=0;for(n=e.siblings.length;l<n;l++)if(q=e.siblings[l],q.type==this)return q}e=this.T().oc();return e.length?e[0]:
null};sb=function(e){var l=this.T().oc();return l.length?l[e.Bh()%l.length]:null};qb=function(){if(this.dh&&!this.I){var e,l;e=0;for(l=this.d.length;e<l;e++)this.d[e].Ef=e;var n=e,q=this.b.dd;e=0;for(l=q.length;e<l;++e)q[e].type===this&&(q[e].Ef=n++);this.dh=!1}};Eb=function(e){if(e<this.d.length)return this.d[e];e-=this.d.length;var l=this.b.dd,n,q;n=0;for(q=l.length;n<q;++n)if(l[n].type===this){if(0===e)return l[n];--e}return null};tb=function(){return this.me[this.Bd]};ub=function(){this.Bd++;
this.Bd===this.me.length?this.me.push(new pb(this)):(this.me[this.Bd].ka=!0,V(this.me[this.Bd].Z))};vb=function(){this.Bd++;this.Bd===this.me.length&&this.me.push(new pb(this));var e=this.me[this.Bd],l=this.me[this.Bd-1];l.ka?e.ka=!0:(e.ka=!1,Aa(e.d,l.d));V(e.Z)};wb=function(){this.Bd--};Ab=function(e){var l,n,q,r,f,a=0;if(!this.I)for(l=0,n=this.Ga.length;l<n;l++)for(f=this.Ga[l],q=0,r=f.Ia.length;q<r;q++){if(e===f.Ia[q].name)return this.F.lastBehIndex=a,f.Ia[q];a++}l=0;for(n=this.Ia.length;l<n;l++){if(e===
this.Ia[l].name)return this.F.lastBehIndex=a,this.Ia[l];a++}return null};Bb=function(e){return this.Cj(e)?this.F.lastBehIndex:-1};Cb=function(e){var l,n;l=0;for(n=this.P.length;l<n;l++)if(this.P[l].name===e)return l;return-1};Db=function(){if(this.Pb&&!this.I){var e,l,n,q,r,f,a;this.Wk();f=this.T();var b=f.ka,c=(e=this.b.Pa())&&e.Ua&&e.Ua.Fc;e=0;for(l=this.lc.length;e<l;e++)if(r=this.lc[e],r!==this&&(r.Wk(),a=r.T(),a.ka=b,!b)){V(a.d);n=0;for(q=f.d.length;n<q;++n)a.d[n]=r.Wl(f.d[n].Ef);if(c)for(V(a.Z),
n=0,q=f.Z.length;n<q;++n)a.Z[n]=r.Wl(f.Z[n].Ef)}}};Fb=function(){return"Type"+this.Y};ec=function(e,l,n){if("undefined"===typeof e||"undefined"===typeof n)return!1;switch(l){case 0:return e===n;case 1:return e!==n;case 2:return e<n;case 3:return e<=n;case 4:return e>n;case 5:return e>=n;default:return!1}}})();var nc={};function qc(e){this.b=e}
(function(){function e(a){-1===jb.indexOf(a)&&jb.push(a)}function k(a){var b=a.m,c;try{c=b.play()}catch(d){e(a);return}c?c.catch(function(){e(a)}):Cc&&!B.qc&&e(a)}function l(){var a,b,c,d;Dc||Ea||!u||(n(),"running"===u.state&&(Dc=!0));var f=jb.slice(0);V(jb);if(!ca)for(a=0,b=f.length;a<b;++a)c=f[a],c.tb||c.rc||(d=c.m.play())&&d.catch(function(){e(c)})}function n(){"suspended"===u.state&&u.resume&&u.resume();if(u.createBuffer){var a=u.createBuffer(1,220,22050),c=u.createBufferSource();c.buffer=a;c.connect(u.destination);
b(c)}}function q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].Bc():u.destination}function f(){return u.createGain?u.createGain():u.createGainNode()}function a(a){return u.createDelay?u.createDelay(a):u.createDelayNode(a)}function b(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function c(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function d(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function g(a,
b,c,d,g,e){this.type="filter";this.ld=[a,b,c,d,g,e];this.da=f();this.O=f();this.O.gain.value=e;this.M=f();this.M.gain.value=1-e;this.Va=u.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?a:Gc[a];this.Va.frequency.value=b;this.Va.detune&&(this.Va.detune.value=c);this.Va.Q.value=d;this.Va.gain.value=g;this.da.connect(this.Va);this.da.connect(this.M);this.Va.connect(this.O)}function t(b,c,d){this.type="delay";this.ld=[b,c,d];this.da=f();this.O=f();this.O.gain.value=d;this.M=f();this.M.gain.value=
1-d;this.fi=f();this.Oc=a(b);this.Oc.delayTime.value=b;this.lj=f();this.lj.gain.value=c;this.da.connect(this.fi);this.da.connect(this.M);this.fi.connect(this.O);this.fi.connect(this.Oc);this.Oc.connect(this.lj);this.lj.connect(this.fi)}function h(a,b,c,d){this.type="convolve";this.ld=[b,c,d];this.da=f();this.O=f();this.O.gain.value=c;this.M=f();this.M.gain.value=1-c;this.rf=u.createConvolver();a&&(this.rf.normalize=b,this.rf.buffer=a);this.da.connect(this.rf);this.da.connect(this.M);this.rf.connect(this.O)}
function z(c,d,g,e,h){this.type="flanger";this.ld=[c,d,g,e,h];this.da=f();this.M=f();this.M.gain.value=1-h/2;this.O=f();this.O.gain.value=h/2;this.uj=f();this.uj.gain.value=e;this.Oc=a(c+d);this.Oc.delayTime.value=c;this.sb=u.createOscillator();this.sb.frequency.value=g;this.uc=f();this.uc.gain.value=d;this.da.connect(this.Oc);this.da.connect(this.M);this.Oc.connect(this.O);this.Oc.connect(this.uj);this.uj.connect(this.Oc);this.sb.connect(this.uc);this.uc.connect(this.Oc.delayTime);b(this.sb)}function y(a,
c,d,g,e,h){this.type="phaser";this.ld=[a,c,d,g,e,h];this.da=f();this.M=f();this.M.gain.value=1-h/2;this.O=f();this.O.gain.value=h/2;this.Va=u.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?7:"allpass";this.Va.frequency.value=a;this.Va.detune&&(this.Va.detune.value=c);this.Va.Q.value=d;this.sb=u.createOscillator();this.sb.frequency.value=e;this.uc=f();this.uc.gain.value=g;this.da.connect(this.Va);this.da.connect(this.M);this.Va.connect(this.O);this.sb.connect(this.uc);this.uc.connect(this.Va.frequency);
b(this.sb)}function I(a){this.type="gain";this.ld=[a];this.ja=f();this.ja.gain.value=a}function m(a,c){this.type="tremolo";this.ld=[a,c];this.ja=f();this.ja.gain.value=1-c/2;this.sb=u.createOscillator();this.sb.frequency.value=a;this.uc=f();this.uc.gain.value=c/2;this.sb.connect(this.uc);this.uc.connect(this.ja.gain);b(this.sb)}function p(a,c){this.type="ringmod";this.ld=[a,c];this.da=f();this.O=f();this.O.gain.value=c;this.M=f();this.M.gain.value=1-c;this.wi=f();this.wi.gain.value=0;this.sb=u.createOscillator();
this.sb.frequency.value=a;this.sb.connect(this.wi.gain);b(this.sb);this.da.connect(this.wi);this.da.connect(this.M);this.wi.connect(this.O)}function R(a,b,c,d,g){this.type="distortion";this.ld=[a,b,c,d,g];this.da=f();this.rk=f();this.qk=f();this.Gw(c,Math.pow(10,d/20));this.O=f();this.O.gain.value=g;this.M=f();this.M.gain.value=1-g;this.al=u.createWaveShaper();this.jj=new Float32Array(65536);this.Du(a,b);this.al.jj=this.jj;this.da.connect(this.rk);this.da.connect(this.M);this.rk.connect(this.al);
this.al.connect(this.qk);this.qk.connect(this.O)}function N(a,b,c,d,f){this.type="compressor";this.ld=[a,b,c,d,f];this.ja=u.createDynamicsCompressor();try{this.ja.threshold.value=a,this.ja.knee.value=b,this.ja.ratio.value=c,this.ja.attack.value=d,this.ja.release.value=f}catch(g){}}function v(a,b){this.type="analyser";this.ld=[a,b];this.ja=u.createAnalyser();this.ja.fftSize=a;this.ja.smoothingTimeConstant=b;this.Bu=new Float32Array(this.ja.frequencyBinCount);this.$q=new Uint8Array(a);this.ni=0}function E(){this.ea=
null;this.bk=0}function w(a,b){this.src=a;this.V=A;this.Hd=b;this.Ti=!1;var c=this;this.Og=this.Tg=null;this.Ug=[];this.Ck=0;this.Wn=this.sj=this.hr=this.mk=!1;1===A&&b&&!kb&&(this.V=0,this.Tg=f());this.Qd=this.ga=null;var d;switch(this.V){case 0:this.ga=new Audio;this.ga.crossOrigin="anonymous";this.ga.addEventListener("canplaythrough",function(){c.Wn=!0});1===A&&u.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.hr=!0,this.ga.addEventListener("canplay",function(){!c.Og&&c.ga&&
(c.Og=u.createMediaElementSource(c.ga),c.Og.connect(c.Tg))}));this.ga.autoplay=!1;this.ga.Eq="auto";this.ga.src=a;break;case 1:B.Oh?B.To(a,function(a){c.Qd=a;c.Lo()},function(){c.sj=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Qd=d.response;c.Lo()},d.onerror=function(){c.sj=!0},d.send());break;case 2:this.ga=!0;break;case 3:this.ga=!0}}function D(a,b){var c=this;this.tag=b;this.tb=this.Dd=!0;this.src=a.src;this.buffer=a;this.V=A;this.Hd=a.Hd;this.playbackRate=
1;this.yg=!0;this.rc=this.Gc=!1;this.fc=0;this.Qh=this.Dg=this.kd=!1;this.volume=1;this.Vm=function(a){if(!c.rc&&!c.Gc){var b=this;b||(b=a.target);b===c.Si&&(c.yg=!0,c.tb=!0,ha=c.tag,B.trigger(qc.prototype.i.Qi,P))}};this.Si=null;this.Bg=1===O&&!this.Hd||2===O;this.Pg=1;this.startTime=this.Bg?B.ib.aa:B.te.aa;this.Ya=this.fb=null;this.Kd=!1;this.Db=null;this.vq=this.uq=this.tq=this.sq=this.xq=this.wq=0;this.m=null;var d=!1;1!==this.V||0!==this.buffer.V||this.buffer.hr||(this.V=0);switch(this.V){case 0:this.Hd?
(this.m=a.ga,d=!a.Ti,a.Ti=!0):(this.m=new Audio,this.m.crossOrigin="anonymous",this.m.autoplay=!1,this.m.src=a.ga.src,d=!0);d&&this.m.addEventListener("ended",function(){ha=c.tag;c.tb=!0;B.trigger(qc.prototype.i.Qi,P)});break;case 1:this.fb=f();this.fb.connect(r(b));1===this.buffer.V?a.ga&&(this.m=u.createBufferSource(),this.m.buffer=a.ga,this.m.connect(this.fb)):(this.m=this.buffer.ga,this.buffer.Tg.connect(this.fb),this.buffer.Ti||(this.buffer.Ti=!0,this.buffer.ga.addEventListener("ended",function(){ha=
c.tag;c.tb=!0;B.trigger(qc.prototype.i.Qi,P)})));break;case 2:this.m=new window.Media(ba+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.yg=!0,c.tb=!0,ha=c.tag,B.trigger(qc.prototype.i.Qi,P))});break;case 3:this.m=!0}}function L(a){V(Ga);if(a.length){var b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],lb(a,d.tag)&&Ga.push(d)}else H&&!H.Df()&&(V(Ga),Ga[0]=H)}function K(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var c,d,f,g,e=u.destination;if(U.hasOwnProperty(a)&&(f=U[a],f.length))for(e=
f[0].Bc(),c=0,d=f.length;c<d;c++)g=f[c],c+1===d?g.Mc(u.destination):g.Mc(f[c+1].Bc());L(a);c=0;for(d=Ga.length;c<d;c++)Ga[c].rw(e);Ka&&zb===a&&(Ka.disconnect(),Ka.connect(e))}function W(){}function T(){}var Q=qc.prototype;Q.xa=function(a){this.na=a;this.b=a.b};Q.xa.prototype.W=function(){};var B=null,P=null,ha="",ba="",A=0,u=null,C=[],F=[],H=null,G=!1,O=0,ca=!1,M=1,ia=0,da=0,Ea=!1,xb=1,yb=1,zc=10,Ac=1E4,Bc=1,Ka=null,zb="",Cc=!1,jb=[],kb=!1,Dc=!1;document.addEventListener("pointerup",l,!0);document.addEventListener("touchend",
l,!0);document.addEventListener("click",l,!0);document.addEventListener("keydown",l,!0);document.addEventListener("gamepadconnected",l,!0);var U={},Gc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");g.prototype.Mc=function(a){this.O.disconnect();this.O.connect(a);this.M.disconnect();this.M.connect(a)};g.prototype.remove=function(){this.da.disconnect();this.Va.disconnect();this.O.disconnect();this.M.disconnect()};g.prototype.Bc=function(){return this.da};t.prototype.Mc=
function(a){this.O.disconnect();this.O.connect(a);this.M.disconnect();this.M.connect(a)};t.prototype.remove=function(){this.da.disconnect();this.fi.disconnect();this.Oc.disconnect();this.lj.disconnect();this.O.disconnect();this.M.disconnect()};t.prototype.Bc=function(){return this.da};h.prototype.Mc=function(a){this.O.disconnect();this.O.connect(a);this.M.disconnect();this.M.connect(a)};h.prototype.remove=function(){this.da.disconnect();this.rf.disconnect();this.O.disconnect();this.M.disconnect()};
h.prototype.Bc=function(){return this.da};z.prototype.Mc=function(a){this.M.disconnect();this.M.connect(a);this.O.disconnect();this.O.connect(a)};z.prototype.remove=function(){this.da.disconnect();this.Oc.disconnect();this.sb.disconnect();this.uc.disconnect();this.M.disconnect();this.O.disconnect();this.uj.disconnect()};z.prototype.Bc=function(){return this.da};y.prototype.Mc=function(a){this.M.disconnect();this.M.connect(a);this.O.disconnect();this.O.connect(a)};y.prototype.remove=function(){this.da.disconnect();
this.Va.disconnect();this.sb.disconnect();this.uc.disconnect();this.M.disconnect();this.O.disconnect()};y.prototype.Bc=function(){return this.da};I.prototype.Mc=function(a){this.ja.disconnect();this.ja.connect(a)};I.prototype.remove=function(){this.ja.disconnect()};I.prototype.Bc=function(){return this.ja};m.prototype.Mc=function(a){this.ja.disconnect();this.ja.connect(a)};m.prototype.remove=function(){this.sb.disconnect();this.uc.disconnect();this.ja.disconnect()};m.prototype.Bc=function(){return this.ja};
p.prototype.Mc=function(a){this.O.disconnect();this.O.connect(a);this.M.disconnect();this.M.connect(a)};p.prototype.remove=function(){this.sb.disconnect();this.wi.disconnect();this.da.disconnect();this.O.disconnect();this.M.disconnect()};p.prototype.Bc=function(){return this.da};R.prototype.Gw=function(a,b){.01>a&&(a=.01);this.rk.gain.value=a;this.qk.gain.value=Math.pow(1/a,.6)*b};R.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};R.prototype.Du=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,g=0;32768>g;++g)f=g/32768,f=this.shape(f,c,d),this.jj[32768+g]=f,this.jj[32768-g-1]=-f};R.prototype.Mc=function(a){this.O.disconnect();this.O.connect(a);this.M.disconnect();this.M.connect(a)};R.prototype.remove=function(){this.da.disconnect();this.rk.disconnect();this.al.disconnect();this.qk.disconnect();this.O.disconnect();this.M.disconnect()};R.prototype.Bc=function(){return this.da};N.prototype.Mc=function(a){this.ja.disconnect();
this.ja.connect(a)};N.prototype.remove=function(){this.ja.disconnect()};N.prototype.Bc=function(){return this.ja};v.prototype.Sa=function(){this.ja.getFloatFrequencyData(this.Bu);this.ja.getByteTimeDomainData(this.$q);for(var a=this.ja.fftSize,b=0,c=this.ni=0,d=0;b<a;b++)d=(this.$q[b]-128)/128,0>d&&(d=-d),this.ni<d&&(this.ni=d),c+=d*d;this.ni=q(this.ni);q(Math.sqrt(c/a))};v.prototype.Mc=function(a){this.ja.disconnect();this.ja.connect(a)};v.prototype.remove=function(){this.ja.disconnect()};v.prototype.Bc=
function(){return this.ja};E.prototype.xi=function(a){this.ea=a};E.prototype.Ij=function(){return!!this.ea};E.prototype.Sa=function(){};w.prototype.sw=function(){var a,b,c,d;c=a=0;for(b=F.length;a<b;++a)d=F[a],F[c]=d,d.buffer===this?d.stop():++c;F.length=c;this.Og&&(this.Og.disconnect(),this.Og=null);this.Tg&&(this.Tg.disconnect(),this.Tg=null);this.Qd=this.ga=null};w.prototype.Lo=function(){if(!this.ga&&this.Qd){var a=this;if(u.decodeAudioData)u.decodeAudioData(this.Qd,function(b){a.ga=b;a.Qd=null;
var c,d,f;if(la(a.nk)||ca)la(a.fj)||(c=a.fj.rf,c.normalize=a.jq,c.buffer=b);else if(a.Ug.length){c=0;for(d=a.Ug.length;c<d;c++){b=a.Ug[c];f=new D(a,b.mr);f.wn(!0);if("undefined"!==typeof b.lq&&(b.ea=B.Gj(b.lq),!b.ea))continue;if(b.ea){var g=Ra(b.ea.x,b.ea.y,-b.ea.n.gb(),ia,da,!0),e=Ra(b.ea.x,b.ea.y,-b.ea.n.gb(),ia,da,!1);f.vn(g,e,Ha(b.ea.j-b.ea.n.gb()),b.gm,b.Om,b.Qm);f.xi(b.ea)}else f.vn(b.x,b.y,b.Jc,b.gm,b.Om,b.Qm);f.play(a.Km,a.Vn,a.Ck);a.mk&&f.pause();F.push(f)}V(a.Ug)}else f=new D(a,a.nk||""),
f.play(a.Km,a.Vn,a.Ck),a.mk&&f.pause(),F.push(f)},function(){a.sj=!0});else if(this.ga=u.createBuffer(this.Qd,!1),this.Qd=null,la(this.nk)||ca)la(this.fj)||(b=this.fj.rf,b.normalize=this.jq,b.buffer=this.ga);else{var b=new D(this,this.nk);b.play(this.Km,this.Vn,this.Ck);this.mk&&b.pause();F.push(b)}}};w.prototype.wp=function(){switch(this.V){case 0:var a=4<=this.ga.readyState;a&&(this.Wn=!0);return a||this.Wn;case 1:return!!this.Qd||!!this.ga;case 2:return!0;case 3:return!0}return!1};w.prototype.uv=
function(){switch(this.V){case 0:return this.wp();case 1:return!!this.ga;case 2:return!0;case 3:return!0}return!1};w.prototype.mv=function(){switch(this.V){case 0:return!!this.ga.error;case 1:return this.sj}return!1};D.prototype.Df=function(){switch(this.V){case 0:return this.m.ended;case 1:return 1===this.buffer.V?!this.Dd&&!this.tb&&this.m.loop||this.rc?!1:this.yg:this.m.ended;case 2:return this.yg;case 3:!0}return!0};D.prototype.ht=function(){return this.Dd||this.tb?!0:this.Df()};D.prototype.wn=
function(a){1===A&&(!this.Kd&&a?this.fb&&(this.Ya||(this.Ya=u.createPanner(),this.Ya.panningModel="number"===typeof this.Ya.panningModel?xb:["equalpower","HRTF","soundfield"][xb],this.Ya.distanceModel="number"===typeof this.Ya.distanceModel?yb:["linear","inverse","exponential"][yb],this.Ya.refDistance=zc,this.Ya.maxDistance=Ac,this.Ya.rolloffFactor=Bc),this.fb.disconnect(),this.fb.connect(this.Ya),this.Ya.connect(r(this.tag)),this.Kd=!0):this.Kd&&!a&&this.fb&&(this.Ya.disconnect(),this.fb.disconnect(),
this.fb.connect(r(this.tag)),this.Kd=!1))};D.prototype.vn=function(a,b,c,d,f,g){this.Kd&&1===A&&(this.Ya.setPosition(a,b,0),this.Ya.setOrientation(Math.cos(X(c)),Math.sin(X(c)),0),this.Ya.coneInnerAngle=d,this.Ya.coneOuterAngle=f,this.Ya.coneOuterGain=g,this.wq=a,this.xq=b,this.sq=c,this.tq=d,this.uq=f,this.vq=g)};D.prototype.xi=function(a){this.Kd&&1===A&&(this.Db||(this.Db=new E),this.Db.xi(a))};D.prototype.Sa=function(a){if(this.Kd&&1===A&&this.Db&&this.Db.Ij()&&this.Mh()){this.Db.Sa(a);a=this.Db.ea;
var b=Ra(a.x,a.y,-a.n.gb(),ia,da,!0),c=Ra(a.x,a.y,-a.n.gb(),ia,da,!1);this.Ya.setPosition(b,c,0);b=0;"undefined"!==typeof this.Db.ea.j&&(b=a.j-a.n.gb(),this.Ya.setOrientation(Math.cos(b),Math.sin(b),0))}};D.prototype.play=function(a,d,f,g){var e=this.m;this.kd=a;this.volume=d;f=f||0;g=g||0;switch(this.V){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==d*M&&(e.volume=d*M);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==f)try{e.currentTime=f}catch(h){}k(this);break;case 1:this.muted=
!1;this.Pg=1;if(1===this.buffer.V)this.fb.gain.value=d*M,this.Dd||(this.m=u.createBufferSource(),this.m.buffer=this.buffer.ga,this.m.connect(this.fb)),this.m.onended=this.Vm,this.Si=this.m,this.m.loop=a,this.yg=!1,0===f?b(this.m,g):c(this.m,f,this.Af(),g);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=d*M;if(e.currentTime!==f)try{e.currentTime=f}catch(m){}k(this)}break;case 2:(!this.Dd&&this.tb||0!==f)&&e.seekTo(f);e.play();this.yg=!1;break;case 3:B.Ob?AppMobi.context.playSound(this.src,
a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Bg?B.ib.aa:B.te.aa)-f;this.rc=this.tb=this.Dd=!1};D.prototype.stop=function(){switch(this.V){case 0:this.m.paused||this.m.pause();break;case 1:1===this.buffer.V?d(this.m):this.m.paused||this.m.pause();break;case 2:this.m.stop();break;case 3:B.Ob&&AppMobi.context.stopSound(this.src)}this.tb=!0;this.rc=!1};D.prototype.pause=function(){if(!(this.Dd||this.tb||this.Df()||this.rc)){switch(this.V){case 0:this.m.paused||this.m.pause();
break;case 1:1===this.buffer.V?(this.fc=this.Yl(!0),this.kd&&(this.fc=this.fc%this.Af()),this.rc=!0,d(this.m)):this.m.paused||this.m.pause();break;case 2:this.m.pause();break;case 3:B.Ob&&AppMobi.context.stopSound(this.src)}this.rc=!0}};D.prototype.xw=function(){if(!(this.Dd||this.tb||this.Df())&&this.rc){switch(this.V){case 0:k(this);break;case 1:1===this.buffer.V?(this.m=u.createBufferSource(),this.m.buffer=this.buffer.ga,this.m.connect(this.fb),this.m.onended=this.Vm,this.Si=this.m,this.m.loop=
this.kd,this.fb.gain.value=M*this.volume*this.Pg,this.Xk(),this.startTime=(this.Bg?B.ib.aa:B.te.aa)-this.fc/(this.playbackRate||.001),c(this.m,this.fc,this.Af())):k(this);break;case 2:this.m.play();break;case 3:B.Ob&&AppMobi.context.resumeSound(this.src)}this.rc=!1}};D.prototype.seek=function(a){if(!(this.Dd||this.tb||this.Df()))switch(this.V){case 0:try{this.m.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.V)this.rc?this.fc=a:(this.pause(),this.fc=a,this.xw());else try{this.m.currentTime=
a}catch(c){}break;case 3:B.Ob&&AppMobi.context.seekSound(this.src,a)}};D.prototype.rw=function(a){1===this.V&&(this.Kd?(this.Ya.disconnect(),this.Ya.connect(a)):(this.fb.disconnect(),this.fb.connect(a)))};D.prototype.Af=function(){var a=0;switch(this.V){case 0:"undefined"!==typeof this.m.duration&&(a=this.m.duration);break;case 1:a=this.buffer.ga.duration;break;case 2:a=this.m.getDuration();break;case 3:B.Ob&&(a=AppMobi.context.getDurationSound(this.src))}return a};D.prototype.Yl=function(a){var b=
this.Af(),c=0;switch(this.V){case 0:"undefined"!==typeof this.m.currentTime&&(c=this.m.currentTime);break;case 1:if(1===this.buffer.V){if(this.rc)return this.fc;c=(this.Bg?B.ib.aa:B.te.aa)-this.startTime}else"undefined"!==typeof this.m.currentTime&&(c=this.m.currentTime);break;case 3:B.Ob&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.kd&&c>b&&(c=b);return c};D.prototype.Mh=function(){return!this.rc&&!this.Dd&&!this.tb&&!this.Df()};D.prototype.Nw=function(){return!this.Dd&&
!this.tb&&!this.Df()};D.prototype.Xw=function(){var a=this.volume*M;isFinite(a)||(a=0);switch(this.V){case 0:"undefined"!==typeof this.m.volume&&this.m.volume!==a&&(this.m.volume=a);break;case 1:1===this.buffer.V?this.fb.gain.value=a*this.Pg:"undefined"!==typeof this.m.volume&&this.m.volume!==a&&(this.m.volume=a)}};D.prototype.qj=function(a){switch(this.V){case 0:this.m.muted!==!!a&&(this.m.muted=!!a);break;case 1:1===this.buffer.V?(this.Pg=a?0:1,this.fb.gain.value=M*this.volume*this.Pg):this.m.muted!==
!!a&&(this.m.muted=!!a)}};D.prototype.Iw=function(){this.Dg=!0;this.qj(this.Dg||this.Qh)};D.prototype.Tq=function(a){this.Qh=!!a;this.qj(this.Dg||this.Qh)};D.prototype.Hw=function(a){this.kd=a;switch(this.V){case 0:this.m.loop!==!!a&&(this.m.loop=!!a);break;case 1:this.m.loop!==!!a&&(this.m.loop=!!a);break;case 3:B.Ob&&AppMobi.context.setLoopingSound(this.src,a)}};D.prototype.Xk=function(){var a=this.playbackRate;this.Bg&&(a*=B.ag);switch(this.V){case 0:this.m.playbackRate!==a&&(this.m.playbackRate=
a);break;case 1:1===this.buffer.V?this.m.playbackRate.value!==a&&(this.m.playbackRate.value=a):this.m.playbackRate!==a&&(this.m.playbackRate=a)}};D.prototype.Kw=function(a){switch(this.V){case 0:a?this.Mh()?(this.Gc=!0,this.m.pause()):this.Gc=!1:this.Gc&&(this.m.play(),this.Gc=!1);break;case 1:a?this.Mh()?(this.Gc=!0,1===this.buffer.V?(this.fc=this.Yl(!0),this.kd&&(this.fc=this.fc%this.Af()),d(this.m)):this.m.pause()):this.Gc=!1:this.Gc&&(1===this.buffer.V?(this.m=u.createBufferSource(),this.m.buffer=
this.buffer.ga,this.m.connect(this.fb),this.m.onended=this.Vm,this.Si=this.m,this.m.loop=this.kd,this.fb.gain.value=M*this.volume*this.Pg,this.Xk(),this.startTime=(this.Bg?B.ib.aa:B.te.aa)-this.fc/(this.playbackRate||.001),c(this.m,this.fc,this.Af())):this.m.play(),this.Gc=!1);break;case 2:a?this.Mh()?(this.m.pause(),this.Gc=!0):this.Gc=!1:this.Gc&&(this.Gc=!1,this.m.play())}};Q.ma=function(a){this.type=a;B=this.b=a.b;P=this;this.sc=null;this.Wh=-600;this.b.Oh&&(kb=!0);!(this.b.Gg||this.b.zg&&(this.b.Mj||
this.b.Hh))||this.b.Jh||this.b.Wa||this.b.up||kb||(Cc=!0);u=null;"undefined"!==typeof AudioContext?(A=1,u=new AudioContext):"undefined"!==typeof webkitAudioContext&&(A=1,u=new webkitAudioContext);this.b.Gg&&u&&(u.close&&u.close(),"undefined"!==typeof AudioContext?u=new AudioContext:"undefined"!==typeof webkitAudioContext&&(u=new webkitAudioContext));1!==A&&(this.b.Zd&&"undefined"!==typeof window.Media?A=2:this.b.vp&&(A=3));2===A&&(ba=location.href,a=ba.lastIndexOf("/"),-1<a&&(ba=ba.substr(0,a+1)),
ba=ba.replace("file://",""));if(this.b.wv&&this.b.xv&&"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.jf(this);else{if(this.b.Ob)G=this.b.zg;else try{G=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Pj}catch(b){G=!1}this.b.Rk(this)}};var ra=Q.ma.prototype;ra.W=function(){this.b.jg=this;O=this.A[0];this.he=this.A[1];this.bw=0!==this.A[2];this.hq=0;xb=this.A[3];yb=this.A[4];
this.Wh=-this.A[5];zc=this.A[6];Ac=this.A[7];Bc=this.A[8];this.sc=new E;var a=this.b.H||this.b.width,b=this.b.G||this.b.height;1===A&&(u.listener.setPosition(a/2,b/2,this.Wh),u.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ka&&Ka.disconnect();zb=b.toLowerCase();Ka=u.createMediaStreamSource(a);Ka.connect(r(zb))});this.b.il(function(a){P.Um(a)});var c=this;this.b.po(function(a){c.Ov(a)})};ra.Ov=function(a){var b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],d.Db&&d.Db.ea===a&&
(d.Db.ea=null,d.Kd&&d.Mh()&&d.kd&&d.stop());this.sc.ea===a&&(this.sc.ea=null)};ra.Gb=function(){var a={silent:ca,masterVolume:M,listenerZ:this.Wh,listenerUid:this.sc.Ij()?this.sc.ea.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,g,e,h;c=0;for(d=F.length;c<d;c++)f=F[c],!f.Nw()||3===this.he||f.Hd&&1===this.he||!f.Hd&&2===this.he||(g=f.Yl(),f.kd&&(g=g%f.Af()),g={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Hd,playbackTime:g,volume:f.volume,looping:f.kd,muted:f.Dg,playbackRate:f.playbackRate,paused:f.rc,
resume_position:f.fc},f.Kd&&(g.pan={},h=g.pan,f.Db&&f.Db.Ij()?h.objUid=f.Db.ea.uid:(h.x=f.wq,h.y=f.xq,h.a=f.sq),h.ia=f.tq,h.oa=f.uq,h.og=f.vq),b.push(g));b=a.effects;for(e in U)if(U.hasOwnProperty(e)){f=[];c=0;for(d=U[e].length;c<d;c++)f.push({type:U[e][c].type,params:U[e][c].ld});b[e]=f}return a};var Ua=[];ra.Sb=function(a){var b=a.silent;M=a.masterVolume;this.Wh=a.listenerZ;this.sc.xi(null);var c=a.listenerUid;-1!==c&&(this.sc.bk=c,Ua.push(this.sc));var c=a.playing,d,f,e,k,l,n,r,q,u,w,D;if(3!==
this.he)for(d=0,f=F.length;d<f;d++)u=F[d],u.Hd&&1===this.he||(u.Hd||2!==this.he)&&u.stop();for(l in U)if(U.hasOwnProperty(l))for(d=0,f=U[l].length;d<f;d++)U[l][d].remove();Xa(U);for(l in a.effects)if(a.effects.hasOwnProperty(l))for(n=a.effects[l],d=0,f=n.length;d<f;d++)switch(e=n[d].type,w=n[d].params,e){case "filter":K(l,new g(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":K(l,new t(w[0],w[1],w[2]));break;case "convolve":e=w[2];u=this.Bj(e,!1);u.ga?e=new h(u.ga,w[0],w[1],e):(e=new h(null,w[0],
w[1],e),u.jq=w[0],u.fj=e);K(l,e);break;case "flanger":K(l,new z(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":K(l,new y(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":K(l,new I(w[0]));break;case "tremolo":K(l,new m(w[0],w[1]));break;case "ringmod":K(l,new p(w[0],w[1]));break;case "distortion":K(l,new R(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":K(l,new N(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":K(l,new v(w[0],w[1]))}d=0;for(f=c.length;d<f;d++)3===this.he||(a=c[d],e=a.buffersrc,
k=a.is_music,l=a.tag,n=a.playbackTime,r=a.looping,q=a.volume,D=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,k&&1===this.he)||!k&&2===this.he||((u=this.$o(e,l,k,r,q))?(u.fc=a.resume_position,u.wn(!!w),u.play(r,q,n),u.Xk(),u.Xw(),u.qj(u.Dg||u.Qh),a.paused&&u.pause(),a.muted&&u.Iw(),u.qj(u.Dg||u.Qh),w&&(-1!==D?(u.Db=u.Db||new E,u.Db.bk=D,Ua.push(u.Db)):u.vn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(u=this.Bj(e,k),u.Ck=n,u.mk=a.paused,w&&(-1!==D?u.Ug.push({lq:D,gm:w.ia,Om:w.oa,Qm:w.og,mr:l}):u.Ug.push({x:w.x,
y:w.y,Jc:w.a,gm:w.ia,Om:w.oa,Qm:w.og,mr:l}))));if(b&&!ca){d=0;for(f=F.length;d<f;d++)F[d].Tq(!0);ca=!0}else if(!b&&ca){d=0;for(f=F.length;d<f;d++)F[d].Tq(!1);ca=!1}};ra.yd=function(){var a,b,c,d;a=0;for(b=Ua.length;a<b;a++)c=Ua[a],d=this.b.Gj(c.bk),c.xi(d),c.bk=-1,d&&(ia=d.x,da=d.y);V(Ua)};ra.Um=function(a){if(!this.bw){!a&&u&&u.resume&&(u.resume(),Ea=!1);var b,c;b=0;for(c=F.length;b<c;b++)F[b].Kw(a);a&&u&&u.suspend&&(u.suspend(),Ea=!0)}};ra.Sa=function(){var a=this.b.uf,b,c,d;b=0;for(c=F.length;b<
c;b++)d=F[b],d.Sa(a),0!==O&&d.Xk();var f,e;for(f in U)if(U.hasOwnProperty(f))for(d=U[f],b=0,c=d.length;b<c;b++)e=d[b],e.Sa&&e.Sa();1===A&&this.sc.Ij()&&(this.sc.Sa(a),ia=this.sc.ea.x,da=this.sc.ea.y,u.listener.setPosition(this.sc.ea.x,this.sc.ea.y,this.Wh))};var Va=[];ra.Jw=function(a){var b,c,d,f,e,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&G||!e&&!G)Va.push({filename:f,size:d,ea:null}),g+=d;return g};ra.Pw=function(){var a,b,c,d;a=0;for(b=
Va.length;a<b;++a)c=Va[a],d=this.b.Pl+c.filename,c.ea=this.Bj(d,!1)};ra.Qu=function(){var a=0,b,c,d;b=0;for(c=Va.length;b<c;++b)d=Va[b],d.ea.uv()||d.ea.mv()||this.b.Wa||this.b.Hh?a+=d.size:d.ea.wp()&&(a+=Math.floor(d.size/2));return a};ra.uw=function(){var a,b,c,d;c=a=0;for(b=C.length;a<b;++a)d=C[a],C[c]=d,d.Hd?d.sw():++c;C.length=c};ra.Bj=function(a,b){var c,d,f,e=null;c=0;for(d=C.length;c<d;c++)if(f=C[c],f.src===a){e=f;break}e||(kb&&b&&this.uw(),e=new w(a,b),C.push(e));return e};ra.$o=function(a,
b,c,d,f){var e,g,h;e=0;for(g=F.length;e<g;e++)if(h=F[e],h.src===a&&(h.ht()||c))return h.tag=b,h;a=this.Bj(a,c);if(!a.ga)return"<preload>"!==b&&(a.nk=b,a.Km=d,a.Vn=f),null;h=new D(a,b);F.push(h);return h};var Ga=[];W.prototype.Qi=function(a){return lb(ha,a)};Q.i=new W;T.prototype.Play=function(a,b,c,d){!ca&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),H=this.$o(this.b.Pl+a[0]+(G?".ogg":".m4a"),d,a[1],0!==b,c))&&(H.wn(!1),H.play(0!==b,c,0,this.hq),this.hq=0)};T.prototype.mo=function(a,
b){L(a);var c,d;c=0;for(d=Ga.length;c<d;c++)Ga[c].Hw(0===b)};T.prototype.Ps=function(){var a,b;a=0;for(b=F.length;a<b;a++)F[a].stop()};Q.J=new T;Q.La=new function(){}})();function rc(e){this.b=e}
(function(){function e(){r&&f&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){a.Sv(b)})}function k(){}function l(){}var n=rc.prototype;n.xa=function(a){this.na=a;this.b=a.b};var q=n.xa.prototype;q.W=function(){};var r=!1,f=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){r=!0;e()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;
q.qq=function(){f=!0;e()};n.ma=function(a){this.type=a;this.b=a.b};q=n.ma.prototype;q.W=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(rc.prototype.i.zs,b)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(rc.prototype.i.ws,b)}),window.addEventListener("offline",function(){b.b.trigger(rc.prototype.i.us,b)}));this.b.Ob||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(rc.prototype.i.fl,
b)}),document.addEventListener("backbutton",function(){b.b.trigger(rc.prototype.i.Pi,b)}),document.addEventListener("menubutton",function(){b.b.trigger(rc.prototype.i.io,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(rc.prototype.i.As,b)}),document.addEventListener("tizenhwkey",function(a){var d;switch(a.keyName){case "back":d=b.b.trigger(rc.prototype.i.Pi,b);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=b.b.trigger(rc.prototype.i.io,
b))||a.preventDefault()}}));this.b.Pj&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){b.b.trigger(rc.prototype.i.Pi,b)&&(a.handled=!0)}):this.b.yp&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(rc.prototype.i.Pi,b)});this.b.il(function(a){a?b.b.trigger(rc.prototype.i.xs,b):b.b.trigger(rc.prototype.i.ys,b)});this.zv="undefined"!==typeof window.is_scirra_arcade};q.Sv=function(a){a=
a.data.type;"downloading-update"===a?this.b.trigger(rc.prototype.i.Bs,this):"update-ready"===a||"update-pending"===a?this.b.trigger(rc.prototype.i.fl,this):"offline-ready"===a&&this.b.trigger(rc.prototype.i.vs,this)};k.prototype.ws=function(){return!0};k.prototype.us=function(){return!0};k.prototype.fl=function(){return!0};k.prototype.ys=function(){return!0};k.prototype.xs=function(){return!0};k.prototype.zs=function(){return!0};k.prototype.Pi=function(){return!0};k.prototype.io=function(){return!0};
k.prototype.As=function(){return!0};k.prototype.Bs=function(){return!0};k.prototype.fl=function(){return!0};k.prototype.vs=function(){return!0};n.i=new k;l.prototype.Mr=function(){this.b.Pc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.zv||this.b.Wa||window.close()};n.J=new l;n.La=new function(){}})();
function sc(e){this.b=e}
(function(){function e(){}var k=sc.prototype;k.xa=function(e){this.na=e;this.b=e.b};k.xa.prototype.W=function(){};k.ma=function(e){this.type=e;this.b=e.b;this.Ig=Array(256);this.Ii=Array(256);this.oe=0};var l=k.ma.prototype;l.W=function(){var e=this;this.b.Wa||(jQuery(document).keydown(function(k){e.Rm(k)}),jQuery(document).keyup(function(k){e.Sm(k)}))};var n=[32,33,34,35,36,37,38,39,40,44];l.Rm=function(e){var k=!1;window!=window.top&&-1<n.indexOf(e.which)&&(e.preventDefault(),k=!0,e.stopPropagation());
if(this.Ig[e.which])this.Ii[e.which]&&!k&&e.preventDefault();else{this.Ig[e.which]=!0;this.oe=e.which;this.b.qc=!0;this.b.trigger(sc.prototype.i.js,this);var f=this.b.trigger(sc.prototype.i.bo,this),a=this.b.trigger(sc.prototype.i.qs,this);this.b.qc=!1;if(f||a)this.Ii[e.which]=!0,k||e.preventDefault()}};l.Sm=function(e){this.Ig[e.which]=!1;this.oe=e.which;this.b.qc=!0;this.b.trigger(sc.prototype.i.$n,this);var k=this.b.trigger(sc.prototype.i.eo,this),f=this.b.trigger(sc.prototype.i.co,this);this.b.qc=
!1;if(k||f||this.Ii[e.which])this.Ii[e.which]=!0,e.preventDefault()};l.Ze=function(){var e;for(e=0;256>e;++e)if(this.Ig[e]){this.Ig[e]=!1;this.oe=e;this.b.trigger(sc.prototype.i.$n,this);var k=this.b.trigger(sc.prototype.i.eo,this),f=this.b.trigger(sc.prototype.i.co,this);if(k||f)this.Ii[e]=!0}};l.Gb=function(){return{triggerKey:this.oe}};l.Sb=function(e){this.oe=e.triggerKey};e.prototype.Yr=function(e){return this.Ig[e]};e.prototype.bo=function(e){return e===this.oe};e.prototype.js=function(){return!0};
e.prototype.$n=function(){return!0};e.prototype.eo=function(e){return e===this.oe};e.prototype.qs=function(e){return e===this.oe};e.prototype.co=function(e){return e===this.oe};k.i=new e;k.J=new function(){};k.La=new function(){}})();function tc(e){this.b=e}
(function(){function e(){}function k(){}var l=tc.prototype;l.xa=function(e){this.na=e;this.b=e.b};l.xa.prototype.W=function(){};l.ma=function(e){this.type=e;this.b=e.b;this.kg=Array(4);this.pr=this.Uk=this.bg=this.Xe=this.We=0;this.dm=!1};var n=l.ma.prototype;n.W=function(){var e=this;if(!this.b.Wa){jQuery(document).mousemove(function(a){e.Qv(a)});jQuery(document).mousedown(function(a){e.Pv(a)});jQuery(document).mouseup(function(a){e.Rv(a)});jQuery(document).dblclick(function(a){e.Nv(a)});var f=function(a){e.Uv(a)};
document.addEventListener("mousewheel",f,!1);document.addEventListener("DOMMouseScroll",f,!1)}};var q={left:0,top:0};n.Qv=function(e){var f=this.b.Wa?q:jQuery(this.b.canvas).offset();this.We=e.pageX-f.left;this.Xe=e.pageY-f.top};n.dq=function(){return 0<this.b.Zb?!0:0<=this.We&&0<=this.Xe&&this.We<this.b.width&&this.Xe<this.b.height};n.Pv=function(e){this.dq()&&(this.kg[e.which]=!0,this.b.qc=!0,this.b.trigger(tc.prototype.i.hs,this),this.bg=e.which-1,this.Uk=0,this.b.trigger(tc.prototype.i.cl,this),
this.b.trigger(tc.prototype.i.dl,this),this.b.qc=!1)};n.Rv=function(e){this.kg[e.which]&&(this.b.ip&&!this.b.Oe&&e.preventDefault(),this.b.ip=!0,this.kg[e.which]=!1,this.b.qc=!0,this.bg=e.which-1,this.b.trigger(tc.prototype.i.ko,this),this.b.qc=!1)};n.Nv=function(e){this.dq()&&(e.preventDefault(),this.b.qc=!0,this.bg=e.which-1,this.Uk=1,this.b.trigger(tc.prototype.i.cl,this),this.b.trigger(tc.prototype.i.dl,this),this.b.qc=!1)};n.Uv=function(e){this.pr=0>(e.wheelDelta?e.wheelDelta:e.detail?-e.detail:
0)?0:1;this.dm=!1;this.b.qc=!0;this.b.trigger(tc.prototype.i.Cs,this);this.b.qc=!1;this.dm&&mb(e)&&e.preventDefault()};n.Ze=function(){var e,f;e=0;for(f=this.kg.length;e<f;++e)this.kg[e]&&(this.kg[e]=!1,this.bg=e-1,this.b.trigger(tc.prototype.i.ko,this))};e.prototype.cl=function(e,f){return e===this.bg&&f===this.Uk};e.prototype.hs=function(){return!0};e.prototype.ko=function(e){return e===this.bg};e.prototype.dl=function(e,f,a){return e!==this.bg||f!==this.Uk?!1:this.b.Sw(a,this.We,this.Xe)};e.prototype.Cs=
function(e){this.dm=!0;return e===this.pr};l.i=new e;l.J=new function(){};k.prototype.gl=function(e,f){var a,b,c,d,g;la(f)?(a=this.b.zh(0),b=a.scale,c=a.xd,d=a.Sc,g=a.j,a.scale=1,a.xd=1,a.Sc=1,a.j=0,e.L(a.Qb(this.We,this.Xe,!0)),a.scale=b,a.xd=c,a.Sc=d,a.j=g):(a=ma(f)?this.b.zh(f):this.b.Xl(f))?e.L(a.Qb(this.We,this.Xe,!0)):e.L(0)};k.prototype.hl=function(e,f){var a,b,c,d,g;la(f)?(a=this.b.zh(0),b=a.scale,c=a.xd,d=a.Tc,g=a.j,a.scale=1,a.xd=1,a.Tc=1,a.j=0,e.L(a.Qb(this.We,this.Xe,!1)),a.scale=b,a.xd=
c,a.Tc=d,a.j=g):(a=ma(f)?this.b.zh(f):this.b.Xl(f))?e.L(a.Qb(this.We,this.Xe,!1)):e.L(0)};l.La=new k})();function Z(e){this.b=e}
(function(){function e(){if(0===this.Dl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.bh?b.drawImage(this.ba,this.Qg,this.Rg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ba,0,0,this.width,this.height);this.Dl=a.toDataURL("image/png")}return this.Dl}function k(){}function l(a){a[0]=0;a[1]=0;a[2]=0;t.push(a)}function n(a,b){return a<b?""+a+","+b:""+b+","+a}function q(a,b,c,d){b=b.uid;c=c.uid;var f=n(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=t.length?t.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function r(a,b,c){b=n(b.uid,c.uid);a.hasOwnProperty(b)&&(l(a[b]),delete a[b])}function f(a,b,c){b=n(b.uid,c.uid);if(a.hasOwnProperty(b))return h=a[b][2],!0;h=-2;return!1}function a(){}var b=Z.prototype;b.xa=function(a){this.na=a;this.b=a.b};var c=b.xa.prototype;c.W=function(){if(!this.I){var a,b,c,d,f,g,h,k,l;this.$c=[];this.Eh=!1;a=0;for(b=this.kc.length;a<b;a++){f=this.kc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.kn=f[3];h.ln=
f[4];h.Aq=f[5];h.Y=f[6];h.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],k={},k.Fn=g[0],k.Gn=g[1],k.Qg=g[2],k.Rg=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.$b=g[7],k.ac=g[8],k.jm=g[9],k.ok=g[10],k.Bq=g[11],k.bh=0!==k.width,k.Dl="",k.vy=e,l={left:0,top:0,right:1,bottom:1},k.zn=l,k.S=null,(l=this.b.Au(g[0]))?k.ba=l:(k.ba=new Image,k.ba.mt=g[0],k.ba.Io=g[1],k.ba.ft=null,this.b.Fr(k.ba,g[0])),h.frames.push(k),this.$c.push(k);this.kc[a]=h}}};c.Br=function(){var a,b,c;a=0;for(b=this.d.length;a<
b;a++)c=this.d[a],c.hj=c.zb.S};c.mi=function(){if(!this.I){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],c.ba.ft=null,c.S=null;this.Eh=!1;this.Br()}};c.Tm=function(){if(!this.I&&this.d.length){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],c.S=this.b.q.ak(c.ba,!1,this.b.Ea,c.Bq);this.Br()}};c.Fm=function(){if(!this.I&&!this.Eh&&this.b.q){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],c.S=this.b.q.ak(c.ba,!1,this.b.Ea,c.Bq);this.Eh=!0}};c.On=function(){if(!this.I&&!this.d.length&&
this.Eh){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],this.b.q.deleteTexture(c.S),c.S=null;this.Eh=!1}};var d=[];c.$m=function(a){var b,c,f;V(d);b=0;for(c=this.$c.length;b<c;++b)f=this.$c[b].ba,-1===d.indexOf(f)&&(a.drawImage(f,0,0),d.push(f))};b.ma=function(a){this.type=a;this.b=a.b;a=this.type.kc[0].frames[0].ok;this.wc?this.ca.Ai(a):this.ca=new db(a)};var g=b.ma.prototype;g.W=function(){this.visible=0===this.A[0];this.Ad=0!==this.A[3];this.Da=this.Zo(this.A[1])||this.type.kc[0];this.C=
this.A[2];0>this.C&&(this.C=0);this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1);var a=this.Da.frames[this.C];this.ca.Ai(a.ok);this.$b=a.$b;this.ac=a.ac;this.mg=this.Da.speed;this.He=this.Da.ln;1===this.type.kc.length&&1===this.type.kc[0].frames.length||0===this.mg||this.b.Rk(this);this.wc?this.zd.reset():this.zd=new bb;this.Xd=this.zd.aa;this.lf=!0;this.Pd=0;this.kf=!0;this.wl=this.ro="";this.it=0;this.ul=-1;this.type.Fm();var b,c,d,f,e,g,h,a=0;for(b=this.type.kc.length;a<b;a++)for(f=
this.type.kc[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.ba.width,e.height=e.ba.height),e.bh&&(h=e.ba,g=e.zn,g.left=e.Qg/h.width,g.top=e.Rg/h.height,g.right=(e.Qg+e.width)/h.width,g.bottom=(e.Rg+e.height)/h.height,0===e.Qg&&0===e.Rg&&e.width===h.width&&e.height===h.height&&(e.bh=!1));this.zb=this.Da.frames[this.C];this.hj=this.zb.S};g.Gb=function(){var a={a:this.Da.Y,f:this.C,cas:this.mg,fs:this.Xd,ar:this.Pd,at:this.zd.aa,rt:this.He};this.lf||(a.ap=this.lf);this.kf||(a.af=
this.kf);return a};g.Sb=function(a){var b=this.Fu(a.a);b&&(this.Da=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1);this.mg=a.cas;this.Xd=a.fs;this.Pd=a.ar;this.zd.reset();this.zd.aa=a.at;this.lf=a.hasOwnProperty("ap")?a.ap:!0;this.kf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.He=a.rt:this.He=this.Da.ln;this.zb=this.Da.frames[this.C];this.hj=this.zb.S;this.ca.Ai(this.zb.ok);this.$b=this.zb.$b;this.ac=this.zb.ac};g.ll=function(a){this.C=
a?0:this.Da.frames.length-1;this.lf=!1;this.ro=this.Da.name;this.b.trigger(Z.prototype.i.gs,this);this.b.trigger(Z.prototype.i.es,this);this.Pd=0};g.ml=function(){return this.zd.aa};g.Sa=function(){this.zd.add(this.b.xh(this));this.wl.length&&this.ut();0<=this.ul&&this.wt();var a=this.zd.aa,b=this.Da,c=b.frames[this.C],d=c.duration/this.mg;this.lf&&a>=this.Xd+d&&(this.kf?this.C++:this.C--,this.Xd+=d,this.C>=b.frames.length&&(b.Aq?(this.kf=!1,this.C=b.frames.length-2):b.loop?this.C=this.He:(this.Pd++,
this.Pd>=b.kn?this.ll(!1):this.C=this.He)),0>this.C&&(b.Aq?(this.C=1,this.kf=!0,b.loop||(this.Pd++,this.Pd>=b.kn&&this.ll(!0))):b.loop?this.C=this.He:(this.Pd++,this.Pd>=b.kn?this.ll(!0):this.C=this.He)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.Xd+b.frames[this.C].duration/this.mg&&(this.Xd=a),a=b.frames[this.C],this.ig(c,a),this.b.pa=!0)};g.Zo=function(a){var b,c,d;b=0;for(c=this.type.kc.length;b<c;b++)if(d=this.type.kc[b],lb(d.name,a))return d;return null};g.Fu=
function(a){var b,c,d;b=0;for(c=this.type.kc.length;b<c;b++)if(d=this.type.kc[b],d.Y===a)return d;return null};g.ut=function(){var a=this.Da.frames[this.C],b=this.Zo(this.wl);this.wl="";!b||lb(b.name,this.Da.name)&&this.lf||(this.Da=b,this.mg=b.speed,this.He=b.ln,0>this.C&&(this.C=0),this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1),1===this.it&&(this.C=0),this.lf=!0,this.Xd=this.zd.aa,this.kf=!0,this.ig(a,this.Da.frames[this.C]),this.b.pa=!0)};g.wt=function(){var a=this.Da.frames[this.C],
b=this.C;this.C=J(this.ul);0>this.C&&(this.C=0);this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1);b!==this.C&&(this.ig(a,this.Da.frames[this.C]),this.Xd=this.zd.aa,this.b.pa=!0);this.ul=-1};g.ig=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.$b=b.$b;this.ac=b.ac;this.ca.Ai(b.ok);this.N();this.zb=b;this.hj=b.S;c=0;for(d=this.K.length;c<d;c++)f=this.K[c],f.Tv&&f.Tv(a,b);this.b.trigger(Z.prototype.i.ig,this)};g.ed=function(a){a.globalAlpha=
this.opacity;var b=this.zb,c=b.bh,d=b.ba,f=this.x,e=this.y,g=this.width,h=this.height;if(0===this.j&&0<=g&&0<=h)f-=this.$b*g,e-=this.ac*h,this.b.md&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.Qg,b.Rg,b.width,b.height,f,e,g,h):a.drawImage(d,f,e,g,h);else{this.b.md&&(f=Math.round(f),e=Math.round(e));a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(f,e);1===k&&1===l||a.scale(k,l);a.rotate(this.j*k*l);f=0-this.$b*pa(g);e=0-this.ac*pa(h);c?a.drawImage(d,b.Qg,b.Rg,b.width,b.height,f,e,pa(g),pa(h)):
a.drawImage(d,f,e,pa(g),pa(h));a.restore()}};g.tf=function(a){this.Yb(a)};g.Yb=function(a){a.gc(this.hj);a.df(this.opacity);var b=this.zb,c=this.Mb;if(this.b.md){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.bh?a.Md(c.ab+d,c.bb+f,c.Ib+d,c.Jb+f,c.xb+d,c.yb+f,c.ub+d,c.wb+f,b.zn):a.Wg(c.ab+d,c.bb+f,c.Ib+d,c.Jb+f,c.xb+d,c.yb+f,c.ub+d,c.wb+f)}else b.bh?a.Md(c.ab,c.bb,c.Ib,c.Jb,c.xb,c.yb,c.ub,c.wb,b.zn):a.Wg(c.ab,c.bb,c.Ib,c.Jb,c.xb,c.yb,c.ub,c.wb)};g.Mu=function(a){var b=this.zb,c,d;c=
0;for(d=b.jm.length;c<d;c++)if(lb(a,b.jm[c][0]))return c;return-1};g.yh=function(a,b){var c=this.zb,d=c.jm,f;x(a)?f=this.Mu(a):f=a-1;f=J(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.$b)*this.width,d=d[f][2],d=(d-c.ac)*this.height,c=Math.cos(this.j);f=Math.sin(this.j);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var t=[],h=-2,z=[];k.prototype.ns=function(a){if(!a)return!1;var b=this.b,c=b.Ej(),d=c.type,e=null;c.F.collmemory?e=c.F.collmemory:(e={},c.F.collmemory=e);
c.F.spriteCreatedDestroyCallback||(c.F.spriteCreatedDestroyCallback=!0,b.po(function(a){var b=c.F.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(l(b[d]),delete b[d])}));var g=d.T(),k=a.T(),g=g.oc(),m,n,p,t,y,I,R,A=this.b.Yc,u=A-1,C=b.Pa().Ua;for(n=0;n<g.length;n++){p=g[n];k.ka?(p.ta(),this.b.Dj(p.n,a,p.Ca,z),m=z,this.b.Xs(p,a,m)):m=k.oc();for(t=0;t<m.length;t++)y=m[t],b.gf(p,y)||b.jt(p,y)?(I=f(e,p,y),I=!I||h<u,q(e,p,y,A),I&&(b.si(C.qa),I=d.T(),R=a.T(),I.ka=
!1,R.ka=!1,d===a?(I.d.length=2,I.d[0]=p,I.d[1]=y,d.Lc()):(I.d.length=1,R.d.length=1,I.d[0]=p,R.d[0]=y,d.Lc(),a.Lc()),C.nn(),b.bf(C.qa))):r(e,p,y);V(z)}return!1};var y=null,I=new fa,m=!1,p=[],R=new S(0,0,0,0);c.finish=function(a){if(m){if(a){var b=this.b.Pa().Ua.Fc;a=y.T();var c=I.pe(),d,f;if(a.ka){a.ka=!1;V(a.d);d=0;for(f=c.length;d<f;++d)a.d[d]=c[d];if(b)for(V(a.Z),d=0,f=y.d.length;d<f;++d)c=y.d[d],I.contains(c)||a.Z.push(c)}else if(b)for(b=a.d.length,d=0,f=c.length;d<f;++d)a.d[b+d]=c[d],Da(a.Z,
c[d]);else Aa(a.d,c);y.Lc()}I.clear();m=!1}};k.prototype.Zr=function(a){if(a){var b=!1,c,d,f,e=this.b.Ej(),g=e.type,e=e.Kj;c=a.T();d=this.b.Pa().Ua.Fc;var h;c.ka?(this.ta(),R.lg(this.Ca),R.offset(0,0),this.b.Dj(this.n,a,R,p),h=p):h=d?this.b.rv()&&!c.Z.length&&c.d.length?c.d:c.Z:c.d;y=a;m=g!==a&&!e;c=0;for(d=h.length;c<d;c++)if(f=h[c],this.b.gf(this,f)){b=!0;if(e)break;g!==a&&I.add(f)}V(p);a=b}else a=!1;return a};k.prototype.es=function(a){return lb(this.ro,a)};k.prototype.gs=function(){return!0};
k.prototype.ig=function(){return!0};b.i=new k;a.prototype.Ns=function(a,b,c){if(a&&b&&(b=this.b.Al(a,b,this.yh(c,!0),this.yh(c,!1)))){"undefined"!==typeof b.j&&(b.j=this.j,b.N());this.b.Dc++;var d,f,e;this.b.trigger(Object.getPrototypeOf(a.na).i.hg,b);if(b.Pb)for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.na).i.hg,e);this.b.Dc--;d=this.b.Iu();c=!1;if(la(d.F.Spawn_LastExec)||d.F.Spawn_LastExec<this.b.zf)c=!0,d.F.Spawn_LastExec=this.b.zf;if(a!=this.type&&
(a=a.T(),a.ka=!1,c?(V(a.d),a.d[0]=b):a.d.push(b),b.Pb))for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],a=e.type.T(),a.ka=!1,c?(V(a.d),a.d[0]=e):a.d.push(e)}};b.J=new a;b.La=new function(){}})();function uc(e){this.b=e}
(function(){function e(){return a.length?a.pop():{}}function k(b){var c,d;c=0;for(d=b.length;c<d;c++)a.push(b[c]);V(b)}function l(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function n(){}var q=uc.prototype;q.W=function(){q.J.Ls=function(a){this.width!==a&&(this.width=a,this.Zf=!0,this.N())}};q.xa=function(a){this.na=a;this.b=a.b};var r=q.xa.prototype;r.W=function(){};r.mi=function(){if(!this.I){var a,c,d;a=0;for(c=this.d.length;a<c;a++)d=this.d[a],d.Jd=null,d.Qf=null,
d.tc=null}};q.ma=function(a){this.type=a;this.b=a.b;this.wc?V(this.Se):this.Se=[];this.Zf=!0};r=q.ma.prototype;r.W=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.Hj=this.A[4];this.Zk=this.A[5];this.Xn=0===this.A[7];this.Cm=this.Vj=this.width;this.Uj=this.height;this.Em=this.A[8];this.xj=this.rg="";this.kr=this.lr=this.qi=0;this.Xv();this.tc=this.Qf=this.Jd=null;this.gq=!1;this.Uh=this.b.Yc;this.wc?this.cf.set(0,0,1,1):this.cf=new S(0,0,1,1);
this.b.q&&this.b.Rk(this)};r.Xv=function(){var a=this.font.split(" "),c;for(c=0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.qi=parseInt(a[c].substr(0,a[c].length-2));this.dn=Math.ceil(this.qi/72*96)+4;0<c&&(this.xj=a[c-1]);this.rg=a[c+1];for(c+=2;c<a.length;c++)this.rg+=" "+a[c];break}};r.Gb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Hj,va:this.Zk,wr:this.Xn,lho:this.Em,fn:this.rg,fs:this.xj,ps:this.qi,pxh:this.dn,tw:this.lr,th:this.kr,lrt:this.Uh}};r.Sb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Hj=a.ha;this.Zk=a.va;this.Xn=a.wr;this.Em=a.lho;this.rg=a.fn;this.xj=a.fs;this.qi=a.ps;this.dn=a.pxh;this.lr=a.tw;this.kr=a.th;this.Uh=a.lrt;this.Zf=!0;this.Cm=this.Vj=this.width;this.Uj=this.height};r.Sa=function(){if(this.b.q&&this.tc&&300<=this.b.Yc-this.Uh){var a=this.n;this.ta();var c=this.Ca;if(c.right<a.ua||c.bottom<a.wa||c.left>a.za||c.top>a.ya)this.b.q.deleteTexture(this.tc),this.Jd=this.Qf=this.tc=null}};r.Sf=function(){this.Jd=this.Qf=null;this.b.q&&
this.tc&&this.b.q.deleteTexture(this.tc);this.tc=null};r.ml=function(){this.font=this.xj+" "+this.qi.toString()+"pt "+this.rg;this.Zf=!0;this.b.pa=!0};r.ed=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var d=1;c&&(d=Math.abs(this.n.pc()),a.save(),a.scale(d,d));if(this.Zf||this.width!==this.Cm)this.type.na.Ts(this.text,this.Se,a,this.width,this.Xn),this.Zf=!1,this.Cm=this.width;this.ta();var d=c?0:this.Mb.ab,f=c?0:this.Mb.bb;this.b.md&&(d=
d+.5|0,f=f+.5|0);0===this.j||c||(a.save(),a.translate(d,f),a.rotate(this.j),f=d=0);var e=f+this.height,h=this.dn,h=h+this.Em,k,l;1===this.Zk?f+=Math.max(this.height/2-this.Se.length*h/2,0):2===this.Zk&&(f+=Math.max(this.height-this.Se.length*h-2,0));for(l=0;l<this.Se.length&&!(k=d,1===this.Hj?k=d+(this.width-this.Se[l].width)/2:2===this.Hj&&(k=d+(this.width-this.Se[l].width)),a.fillText(this.Se[l].text,k,f),f+=h,f>=e-h);l++);(0!==this.j||c)&&a.restore();this.Uh=this.b.Yc};r.Yb=function(a){if(!(1>
this.width||1>this.height)){var c=this.Zf||this.gq;this.gq=!1;var d=this.n.pc(),f=this.n.gb(),e=this.cf,h=d*this.width,k=d*this.height,l=Math.ceil(h),n=Math.ceil(k),m=Math.abs(l),p=Math.abs(n),q=this.b.H/2,r=this.b.G/2;this.Qf||(this.Jd=document.createElement("canvas"),this.Jd.width=m,this.Jd.height=p,this.Vj=m,this.Uj=p,c=!0,this.Qf=this.Jd.getContext("2d"));if(m!==this.Vj||p!==this.Uj)this.Jd.width=m,this.Jd.height=p,this.tc&&(a.deleteTexture(this.tc),this.tc=null),c=!0;c&&(this.Qf.clearRect(0,
0,m,p),this.ed(this.Qf,!0),this.tc||(this.tc=a.mc(m,p,this.b.Ea,this.b.Oe)),a.Tn(this.Jd,this.tc,this.b.Oe));this.Vj=m;this.Uj=p;a.gc(this.tc);a.df(this.opacity);a.Uc();a.translate(-q,-r);a.Hc();var v=this.Mb,c=this.n.Ha(v.ab,v.bb,!0,!0),m=this.n.Ha(v.ab,v.bb,!1,!0),p=this.n.Ha(v.Ib,v.Jb,!0,!0),q=this.n.Ha(v.Ib,v.Jb,!1,!0),r=this.n.Ha(v.xb,v.yb,!0,!0),E=this.n.Ha(v.xb,v.yb,!1,!0),w=this.n.Ha(v.ub,v.wb,!0,!0),v=this.n.Ha(v.ub,v.wb,!1,!0);if(this.b.md||0===this.j&&0===f)var D=(c+.5|0)-c,L=(m+.5|0)-
m,c=c+D,m=m+L,p=p+D,q=q+L,r=r+D,E=E+L,w=w+D,v=v+L;0===this.j&&0===f?(p=c+l,q=m,r=p,E=m+n,w=c,v=E,e.right=1,e.bottom=1):(e.right=h/l,e.bottom=k/n);a.Md(c,m,p,q,r,E,w,v,e);a.Uc();a.scale(d,d);a.yk(-this.n.gb());a.translate((this.n.ua+this.n.za)/-2,(this.n.wa+this.n.ya)/-2);a.Hc();this.Uh=this.b.Yc}};var f=[];q.Rs=function(a){V(f);for(var c="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)c.length&&(f.push(c),c=""),f.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(e),e++;while(e<a.length&&
(" "===a.charAt(e)||"\t"===a.charAt(e)));f.push(c);c=""}else e<a.length&&(c+=d,e++);c.length&&f.push(c)};var a=[];q.Ts=function(a,c,d,f,l){if(a&&a.length)if(2>=f)k(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=d.measureText(a).width;if(h<=f){k(c);c.push(e());c[0].text=a;c[0].width=h;return}}this.Us(a,c,d,f,l)}else k(c)};q.Us=function(b,c,d,g,k){k&&(this.Rs(b),b=f);var h="",n,q,r,m=0;for(r=0;r<b.length;r++)"\n"===b[r]?(m>=c.length&&c.push(e()),h=l(h),q=c[m],q.text=h,q.width=d.measureText(h).width,
m++,h=""):(n=h,h+=b[r],q=d.measureText(h).width,q>=g&&(m>=c.length&&c.push(e()),n=l(n),q=c[m],q.text=n,q.width=d.measureText(n).width,m++,h=b[r],k||" "!==h||(h="")));h.length&&(m>=c.length&&c.push(e()),h=l(h),q=c[m],q.text=h,q.width=d.measureText(h).width,m++);for(r=m;r<c.length;r++)a.push(c[r]);c.length=m};q.i=new function(){};n.prototype.Is=function(a){ma(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Zf=!0,this.b.pa=!0)};q.J=new n;q.La=new function(){}})();
function vc(e){this.b=e}
(function(){var e=vc.prototype;e.xa=function(e){this.na=e;this.b=e.b};var k=e.xa.prototype;k.W=function(){this.I||(this.ba=new Image,this.ba.Io=this.Gn,this.b.Fr(this.ba,this.Fn),this.S=this.pattern=null)};k.mi=function(){this.I||(this.S=null)};k.Tm=function(){if(!this.I&&this.d.length){this.S||(this.S=this.b.q.ak(this.ba,!0,this.b.Ea,this.Hn));var e,k;e=0;for(k=this.d.length;e<k;e++)this.d[e].S=this.S}};k.Fm=function(){this.I||this.S||!this.b.q||(this.S=this.b.q.ak(this.ba,!0,this.b.Ea,this.Hn))};
k.On=function(){this.I||this.d.length||!this.S||(this.b.q.deleteTexture(this.S),this.S=null)};k.$m=function(e){e.drawImage(this.ba,0,0)};e.ma=function(e){this.type=e;this.b=e.b};k=e.ma.prototype;k.W=function(){this.visible=0===this.A[0];this.cf=new S(0,0,0,0);this.lp=!1;this.ba=this.type.ba;this.b.q?(this.type.Fm(),this.S=this.type.S):(this.type.pattern||(this.type.pattern=this.b.Fa.createPattern(this.type.ba,"repeat")),this.pattern=this.type.pattern)};k.yd=function(){this.lp=!1;this.ba=this.type.ba};
k.Sf=function(){this.b.q&&this.lp&&this.S&&(this.b.q.deleteTexture(this.S),this.S=null)};k.ed=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var k=this.x,q=this.y;this.b.md&&(k=Math.round(k),q=Math.round(q));var r=-(this.$b*this.width),f=-(this.ac*this.height),a=r%this.ba.width,b=f%this.ba.height;0>a&&(a+=this.ba.width);0>b&&(b+=this.ba.height);e.translate(k,q);e.rotate(this.j);e.translate(a,b);e.fillRect(r-a,f-b,this.width,this.height);e.restore()};k.tf=function(e){this.Yb(e)};
k.Yb=function(e){e.gc(this.S);e.df(this.opacity);var k=this.cf;k.right=this.width/this.ba.width;k.bottom=this.height/this.ba.height;var q=this.Mb;if(this.b.md){var r=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;e.Md(q.ab+r,q.bb+f,q.Ib+r,q.Jb+f,q.xb+r,q.yb+f,q.ub+r,q.wb+f,k)}else e.Md(q.ab,q.bb,q.Ib,q.Jb,q.xb,q.yb,q.ub,q.wb,k)};e.i=new function(){};e.J=new function(){};e.La=new function(){}})();function wc(e){this.b=e}
(function(){function e(a){return a&&!a.paused&&!a.ended&&0<a.currentTime}function k(){var a=d.slice(0);V(d);var b,c,f,e;b=0;for(c=a.length;b<c;++b)e=a[b],(f=e.play())&&f.catch(function(){l(e)})}function l(a){-1===d.indexOf(a)&&d.push(a)}function n(){}function q(){}var r=wc.prototype;r.xa=function(a){this.na=a;this.b=a.b};var f=r.xa.prototype;f.W=function(){};f.mi=function(){if(!this.I){var a,b,c;a=0;for(b=this.d.length;a<b;++a)c=this.d[a],c.S=null}};var f=document.createElement("video"),a=!!f.canPlayType("video/webm"),
b=!!f.canPlayType("video/ogg"),c=!!f.canPlayType("video/mp4"),f=null;r.ma=function(a){this.type=a;this.b=a.b};var f=r.ma.prototype,d=[];document.addEventListener("touchend",k,!0);document.addEventListener("click",k,!0);document.addEventListener("keydown",k,!0);f.Tf=function(a){if(this.video){var b=this;if(a)if(0<this.Oj)l(this.video);else{var c;try{c=this.video.play()}catch(f){l(this.video);return}c?c.catch(function(){b.video&&l(b.video)}):this.ax&&!this.b.qc&&l(this.video)}else a=d.indexOf(this.video),
0<=a&&d.splice(a,1)}};f.W=function(){this.gx=this.A[0];this.Kv=this.A[1];this.Iv=this.A[2];this.autoplay=this.A[3];this.aw=0!==this.A[4];this.Un=!1;this.video=document.createElement("video");this.video.crossOrigin="anonymous";this.video.playsInline=!0;this.S=null;this.Td=-1;this.Ni=this.dg=null;this.bx=this.b.Gd||this.b.Ag;this.Oj=0;var a=this;this.video.addEventListener("canplay",function(){a.Td=0;a.b.trigger(wc.prototype.i.we,a)});this.video.addEventListener("canplaythrough",function(){a.Td=1;a.b.trigger(wc.prototype.i.we,
a)});this.video.addEventListener("ended",function(){a.Td=2;a.b.trigger(wc.prototype.i.we,a)});this.video.addEventListener("error",function(){a.Td=3;a.b.trigger(wc.prototype.i.we,a)});this.video.addEventListener("loadstart",function(){a.Td=4;a.b.trigger(wc.prototype.i.we,a)});this.video.addEventListener("playing",function(){a.Td=5;a.b.trigger(wc.prototype.i.we,a)});this.video.addEventListener("pause",function(){a.Td=6;a.b.trigger(wc.prototype.i.we,a)});this.video.addEventListener("stalled",function(){a.Td=
7;a.b.trigger(wc.prototype.i.we,a)});this.ax=(this.b.Gg||this.b.zg&&(this.b.Mj||this.b.Hh))&&!this.b.Jh&&!this.b.Wa;0===this.autoplay?(this.video.autoplay=!1,this.video.Eq="none"):1===this.autoplay?(this.video.autoplay=!1,this.video.Eq="auto"):2===this.autoplay&&(this.video.autoplay=!0);this.Uq(this.gx,this.Kv,this.Iv);2===this.autoplay&&this.Tf(!0);this.visible=0!==this.A[5];this.b.Rk(this);this.wc||(a=this,this.b.il(function(b){a.Um(b)}))};f.Um=function(a){!this.aw&&this.video&&(a?e(this.video)&&
(this.Tf(!1),this.video.pause(),this.Un=!0):this.Un&&(this.Tf(!0),this.Un=!1))};f.Uq=function(d,f,e){var g=this,l="";a&&d?l=d.toLowerCase():b&&f?l=f.toLowerCase():c&&e&&(l=e.toLowerCase());l&&(this.b.Oh&&!this.b.tp(l)?(this.Oj++,this.b.Uo(l,function(a){g.Oj--;g.video.src=a;k()},function(a){console.error("[Video] Failed to load video '"+l+"': ",a);g.Oj--;g.video.src=l})):this.video.src=l);this.b.q&&this.S&&(this.b.q.deleteTexture(this.S),this.S=null);this.Ni=this.dg=null};f.Sf=function(){this.Tf(!1);
e(this.video)&&this.video.pause();this.b.q&&this.S&&(this.b.q.deleteTexture(this.S),this.S=null);this.Ni=this.dg=null;this.video.src="";this.video=null};f.Sa=function(){e(this.video)&&(this.b.pa=!0)};f.Gb=function(){return{s:this.video.src||"",p:!!e(this.video),t:this.video.currentTime||0}};f.Sb=function(a){if(a&&"undefined"!==typeof a.s){var b=a.s;this.Uq(b,b,b);try{this.video.currentTime=a.t}catch(c){}a.p?this.Tf(!0):(this.Tf(!1),this.video.pause())}};f.ed=function(a){if(this.video){var b=this.video.videoWidth,
c=this.video.videoHeight;if(!(0>=b||0>=c)){var b=b/c,c=this.width,d=this.height,f=0,e=0,g=0,k=0;c/d>b?(g=d*b,k=d,f=Math.floor((c-g)/2),0>f&&(f=0)):(g=c,k=c/b,e=Math.floor((d-k)/2),0>e&&(e=0));a.globalAlpha=this.opacity;a.drawImage(this.video,this.x+f,this.y+e,g,k)}}};var g=new S(0,0,0,0),t=new wa;f.Yb=function(a){if(this.video){var b=this.video.videoWidth,c=this.video.videoHeight;if(!(0>=b||0>=c)){var d=b/c,f=this.width,e=this.height,k=0,l=0,n=0,q=0;f/e>d?(n=e*d,q=e,k=Math.floor((f-n)/2),0>k&&(k=
0)):(n=f,q=f/d,l=Math.floor((e-q)/2),0>l&&(l=0));this.S||(this.S=a.mc(b,c,this.b.Ea,!1,!1));this.bx?(this.Ni||(this.dg=document.createElement("canvas"),this.dg.width=b,this.dg.height=c,this.Ni=this.dg.getContext("2d")),this.Ni.drawImage(this.video,0,0),a.Tn(this.dg,this.S)):a.Tn(this.video,this.S);a.ie(this.Hb,this.Bb);a.df(this.opacity);a.gc(this.S);g.set(this.x+k,this.y+l,this.x+k+n,this.y+l+q);t.ef(g);a.Wg(t.ab,t.bb,t.Ib,t.Jb,t.xb,t.yb,t.ub,t.wb)}}};n.prototype.we=function(a){return this.Td===
a};r.i=new n;q.prototype.mo=function(a){this.video.loop=0!==a};q.prototype.Play=function(){this.Tf(!0)};r.J=new q;r.La=new function(){}})();function xc(e){this.b=e}
(function(){var e=xc.prototype;e.xa=function(e){this.behavior=e;this.b=e.b};e.xa.prototype.W=function(){};e.ma=function(e,k){this.type=e;this.behavior=e.behavior;this.k=k;this.b=e.b};var k=e.ma.prototype;k.W=function(){var e=this.A[0];this.pb=this.A[1];this.Aj=this.A[2];this.dt=0!==this.A[3];this.un=0!==this.A[4];this.D=Math.cos(this.k.j)*e;this.B=Math.sin(this.k.j)*e;this.Wj=this.k.x;this.Xj=this.k.y;this.hd=this.k.j;this.Tk=0;this.enabled=0!==this.A[5]};k.Gb=function(){return{acc:this.pb,g:this.Aj,
dx:this.D,dy:this.B,lx:this.Wj,ly:this.Xj,lka:this.hd,t:this.Tk,e:this.enabled}};k.Sb=function(e){this.pb=e.acc;this.Aj=e.g;this.D=e.dx;this.B=e.dy;this.Wj=e.lx;this.Xj=e.ly;this.hd=e.lka;this.Tk=e.t;this.enabled=e.e};k.Sa=function(){if(this.enabled){var e=this.b.xh(this.k),k,q;this.k.j!==this.hd&&(this.un&&(k=Sa(0,0,this.D,this.B),this.D=Math.cos(this.k.j)*k,this.B=Math.sin(this.k.j)*k),this.hd=this.k.j);0!==this.pb&&(k=Sa(0,0,this.D,this.B),q=0===this.D&&0===this.B?this.k.j:Na(0,0,this.D,this.B),
k+=this.pb*e,0>k&&(k=0),this.D=Math.cos(q)*k,this.B=Math.sin(q)*k);0!==this.Aj&&(this.B+=this.Aj*e);this.Wj=this.k.x;this.Xj=this.k.y;if(0!==this.D||0!==this.B)if(this.k.x+=this.D*e,this.k.y+=this.B*e,this.Tk+=Sa(0,0,this.D*e,this.B*e),this.un&&(this.k.j=Na(0,0,this.D,this.B),this.k.N(),this.hd=this.k.j),this.k.N(),this.dt&&(k=this.b.td(this.k)))this.b.ti(this.k,k),k=Sa(0,0,this.D,this.B),q=this.b.gt(this.k,this.Wj,this.Xj),this.D=Math.cos(q)*k,this.B=Math.sin(q)*k,this.k.x+=this.D*e,this.k.y+=this.B*
e,this.k.N(),this.un&&(this.hd=this.k.j=q,this.k.N()),this.b.cn(this.k,this.D/k,this.B/k,Math.max(2.5*k*e,30))||this.b.Iq(this.k,100)}};e.i=new function(){};e.J=new function(){};e.La=new function(){}})();function yc(e){this.b=e}
(function(){function e(){}var k=yc.prototype;k.xa=function(e){this.behavior=e;this.b=e.b};k.xa.prototype.W=function(){};k.ma=function(e,k){this.type=e;this.behavior=e.behavior;this.k=k;this.b=e.b;this.Jk=this.Ik=this.Hk=this.Kk=this.hm=this.vi=this.Vh=this.rh=this.Hi=!1;this.Am=this.zm=this.ym=this.Bm=-1;this.B=this.D=0};var l=k.ma.prototype;l.W=function(){this.gi=this.A[0];this.pb=this.A[1];this.nc=this.A[2];this.Hl=this.A[3];this.kl=this.A[4];this.pt=1===this.A[5];this.enabled=0!==this.A[6];this.pt&&
!this.b.Wa&&(jQuery(document).keydown(function(e){return function(k){e.Rm(k)}}(this)),jQuery(document).keyup(function(e){return function(k){e.Sm(k)}}(this)))};l.Gb=function(){return{dx:this.D,dy:this.B,enabled:this.enabled,maxspeed:this.gi,acc:this.pb,dec:this.nc,ignoreInput:this.hm}};l.Sb=function(e){this.D=e.dx;this.B=e.dy;this.enabled=e.enabled;this.gi=e.maxspeed;this.pb=e.acc;this.nc=e.dec;this.hm=e.ignoreInput;this.Jk=this.Ik=this.Hk=this.Kk=this.vi=this.Vh=this.rh=this.Hi=!1;this.Am=this.zm=
this.ym=this.Bm=-1};l.Rm=function(e){var k=this.b.Yc;switch(e.which){case 37:e.preventDefault();this.zm<k&&(this.Vh=!0);break;case 38:e.preventDefault();this.Bm<k&&(this.Hi=!0);break;case 39:e.preventDefault();this.Am<k&&(this.vi=!0);break;case 40:e.preventDefault(),this.ym<k&&(this.rh=!0)}};l.Sm=function(e){var k=this.b.Yc;switch(e.which){case 37:e.preventDefault();this.Vh=!1;this.zm=k;break;case 38:e.preventDefault();this.Hi=!1;this.Bm=k;break;case 39:e.preventDefault();this.vi=!1;this.Am=k;break;
case 40:e.preventDefault(),this.rh=!1,this.ym=k}};l.Ze=function(){this.vi=this.Vh=this.rh=this.Hi=!1};l.Sa=function(){var e=this.b.xh(this.k),k=this.Vh||this.Ik,l=this.vi||this.Jk,f=this.Hi||this.Kk,a=this.rh||this.Hk;this.Hk=this.Kk=this.Jk=this.Ik=!1;if(this.enabled){var b=this.b.td(this.k);if(b&&(this.b.ti(this.k,b),!this.b.Iq(this.k)))return;this.hm&&(a=f=l=k=!1);0===this.Hl?l=k=!1:1===this.Hl&&(a=f=!1);2===this.Hl&&(f||a)&&(l=k=!1);k==l&&(0>this.D?(this.D+=this.nc*e,0<this.D&&(this.D=0)):0<this.D&&
(this.D-=this.nc*e,0>this.D&&(this.D=0)));f==a&&(0>this.B?(this.B+=this.nc*e,0<this.B&&(this.B=0)):0<this.B&&(this.B-=this.nc*e,0>this.B&&(this.B=0)));k&&!l&&(this.D=0<this.D?this.D-(this.pb+this.nc)*e:this.D-this.pb*e);l&&!k&&(this.D=0>this.D?this.D+(this.pb+this.nc)*e:this.D+this.pb*e);f&&!a&&(this.B=0<this.B?this.B-(this.pb+this.nc)*e:this.B-this.pb*e);a&&!f&&(this.B=0>this.B?this.B+(this.pb+this.nc)*e:this.B+this.pb*e);if(0!==this.D||0!==this.B){Math.sqrt(this.D*this.D+this.B*this.B)>this.gi&&
(b=Math.atan2(this.B,this.D),this.D=this.gi*Math.cos(b),this.B=this.gi*Math.sin(b));l=this.k.x;f=this.k.y;k=this.k.j;this.k.x+=this.D*e;this.k.N();if(b=this.b.td(this.k))this.b.cn(this.k,0>this.D?1:-1,0,Math.abs(Math.floor(this.D*e)))||(this.k.x=l),this.D=0,this.k.N(),this.b.ti(this.k,b);this.k.y+=this.B*e;this.k.N();if(b=this.b.td(this.k))this.b.cn(this.k,0,0>this.B?1:-1,Math.abs(Math.floor(this.B*e)))||(this.k.y=f),this.B=0,this.k.N(),this.b.ti(this.k,b);e=ib(this.D);b=ib(this.B);0===e&&0===b||
!this.k.type.na.Av||(1===this.kl?this.k.j=Ma(90*Math.round(Ha(Math.atan2(b,e))/90)):2===this.kl?this.k.j=Ma(45*Math.round(Ha(Math.atan2(b,e))/45)):3===this.kl&&(this.k.j=Math.atan2(b,e)));this.k.N();this.k.j!=k&&(b=this.b.td(this.k))&&(this.k.j=k,this.k.N(),this.b.ti(this.k,b))}}};k.i=new function(){};e.prototype.Ms=function(e){switch(e){case 0:this.Ik=!0;break;case 1:this.Jk=!0;break;case 2:this.Kk=!0;break;case 3:this.Hk=!0}};k.J=new e;k.La=new function(){}})();function Ec(e){this.b=e}
(function(){function e(){}function k(){}var l={},n=Ec.prototype;n.Sg=function(){var a,b;for(a in l)l.hasOwnProperty(a)&&(b=l[a],b.ge.unsetReady(),b.Yg=!0)};n.xa=function(a){this.behavior=a;this.b=a.b};n.xa.prototype.W=function(){this.ki=[];this.Fe=[]};n.ma=function(a,b){this.type=a;this.behavior=a.behavior;this.k=b;this.b=a.b};var q=n.ma.prototype;q.W=function(){this.Ja=this.A[0];3>this.Ja&&(this.Ja=3);this.cd=this.A[1];this.Jv=this.A[2];this.Id=this.A[3];this.pb=this.A[4];this.nc=this.A[5];this.Wi=
X(this.A[6]);this.wk=0!==this.A[7];this.pj=0!==this.A[8];this.enabled=0!==this.A[9];this.xg=this.wh=this.hi=this.Pe=!1;this.cc=0;this.hd=this.Jc=this.k.j;this.Xg=this.rd=this.qd=this.Ra=0;this.Ye=Math.ceil(this.b.fa.width/this.Ja);this.Pf=Math.ceil(this.b.fa.height/this.Ja);this.Ma=[];this.pg=!1;this.nj=this.mj=0;this.Ih=this.Rj=!1;this.Bo=this.Ao=0;this.Wo=!0;var a=this;this.wc||(this.Zv=function(){a.Rj||(a.Ih=!1,a.lt(),a.xg=0<a.Ma.length,a.cc=0,a.b.trigger(Ec.prototype.i.jo,a.k),a.Il())},this.Yv=
function(){a.Rj||(a.Ih=!1,a.Fo(),a.xg=!1,a.Pe=!1,a.cc=0,a.b.trigger(Ec.prototype.i.os,a.k),a.Il())})};q.Sf=function(){this.Rj=!0;this.pg=!1};q.Gb=function(){var a={cs:this.Ja,cb:this.cd,ms:this.Id,acc:this.pb,dec:this.nc,av:this.Wi,re:this.wk,de:this.pj,im:this.Pe,mfs:this.hi,ftmwm:this.wh,hp:this.xg,mn:this.cc,a:this.Jc,lka:this.hd,s:this.Ra,rx:this.qd,ry:this.rd,ra:this.Xg,myhc:this.Ye,myvc:this.Pf,path:this.Ma,en:this.enabled,fr:this.Wo,obs:[],costs:[]};this.Ih?(a.dfp=!0,a.dpx=this.Ao,a.dpy=this.Bo):
(a.dfp=this.pg,a.dpx=this.mj,a.dpy=this.nj);var b,c;b=0;for(c=this.type.ki.length;b<c;b++)a.obs.push(this.type.ki[b].Y);b=0;for(c=this.type.Fe.length;b<c;b++)a.costs.push({sid:this.type.Fe[b].ea.Y,cost:this.type.Fe[b].Ho});return a};q.Sb=function(a){this.Ja=a.cs;this.cd=a.cb;this.Id=a.ms;this.pb=a.acc;this.nc=a.dec;this.Wi=a.av;this.wk=a.re;this.pj=a.de;this.Pe=a.im;this.hi=a.mfs;this.wh=a.ftmwm;this.xg=a.hp;this.cc=a.mn;this.Jc=a.a;this.hd=a.lka;this.Ra=a.s;this.qd=a.rx;this.rd=a.ry;this.Xg=a.ra;
this.Ye=a.myhc;this.Pf=a.myvc;this.Ma=a.path;this.enabled=a.en;this.Wo=a.fr;this.pg=a.dfp;this.mj=a.dpx;this.nj=a.dpy;V(this.type.ki);var b=a.obs,c,d,e;c=0;for(d=b.length;c<d;c++)(e=this.b.vg(b[c]))&&this.type.ki.push(e);V(this.type.Fe);a=a.costs;c=0;for(d=a.length;c<d;c++)(e=this.b.vg(a[c].sid))&&this.type.Fe.push({ea:e,Ho:a[c].cost});this.Le().ge.setDiagonals(this.pj)};q.yd=function(){this.Le().Yg=!0};q.Sa=function(){if(this.enabled&&this.Pe){this.wk&&this.k.j!==this.hd&&(this.Jc=this.k.j);var a=
this.b.xh(this.k),b,c,d,e,f,h=this.k,k=Math.min(.4*this.Id,2*Math.abs(this.k.width)),l=Math.max(1.5*this.Ra,30);this.cc<this.Ma.length?(e=this.Ma[this.cc].x,f=this.Ma[this.cc].y,d=Sa(this.qd,this.rd,e,f),d<3*l*a&&(this.cc++,this.qd=e,this.rd=f,this.cc<this.Ma.length&&(e=this.Ma[this.cc].x,f=this.Ma[this.cc].y))):(e=this.Ma[this.Ma.length-1].x,f=this.Ma[this.Ma.length-1].y);this.Xg=Na(this.qd,this.rd,e,f);d=Sa(h.x,h.y,this.qd,this.rd);d<k&&this.cc<this.Ma.length&&(this.wh?this.wh=!1:k=l*a,this.qd+=
Math.cos(this.Xg)*k,this.rd+=Math.sin(this.Xg)*k);b=Na(h.x,h.y,this.qd,this.rd);c=Oa(this.Jc,b);k=Sa(h.x,h.y,this.Ma[this.Ma.length-1].x,this.Ma[this.Ma.length-1].y);l=this.Id*this.Id/(2*this.nc);1<d&&(this.Jc=Pa(this.Jc,b,this.Wi*a),.5>=Ha(c)?c=this.Id:120<=Ha(c)||this.hi&&0===this.cc?(c=0,this.hi=!0):(b=c/this.Wi,d=Sa(h.x,h.y,this.qd,this.rd),d=d/(2*Math.sin(c)),c=d*c/b,0>c&&(c=0),c>this.Id&&(c=this.Id)),k<l&&(c=Math.min(c,k/l*this.Id+this.Id/40)),this.Ra+=this.pb*a,this.Ra>c&&(this.Ra=c));h.x+=
Math.cos(this.Jc)*this.Ra*a;h.y+=Math.sin(this.Jc)*this.Ra*a;this.wk&&(this.hd=h.j=this.Jc);h.N();this.cc===this.Ma.length&&Sa(h.x,h.y,e,f)<Math.max(3*this.Ra*a,10)&&(this.xg=this.Pe=!1,this.Ra=this.cc=0,this.b.trigger(Ec.prototype.i.ks,h))}};q.Qk=function(){this.enabled&&(this.Eu(),this.Il())};q.Il=function(){this.pg&&!this.Rj&&(this.pg=!1,this.No(this.k.x,this.k.y,this.mj,this.nj))};q.Le=function(){var a=""+this.Ja+","+this.cd;l.hasOwnProperty(a)||(l[a]={ge:new window.Pathfinder,cells:null,Yg:!1,
Uf:[]});return l[a]};q.Eu=function(){var a=this.Le();if(!a.ge.isReady()||a.Yg||a.Uf.length){var b,c,d,e,f,h,k,l,n,m;if(!a.ge.isReady()||a.Yg){this.Ye=Math.ceil(this.b.fa.width/this.Ja);this.Pf=Math.ceil(this.b.fa.height/this.Ja);b=[];e=b.length=this.Ye;f=this.Pf;for(c=0;c<e;++c)for(b[c]=[],b[c].length=f,d=0;d<f;++d)b[c][d]=this.Jq(c,d);a.cells=b;a.ge.init(this.Ye,this.Pf,b,this.pj);a.Yg=!1;V(a.Uf)}else if(a.Uf.length){h=0;for(k=a.Uf.length;h<k;++h){b=a.Uf[h];l=b[0];n=b[1];e=b[2];c=b[3];b=[];e=e-l;
f=c-n;b.length=e;for(c=0;c<e;++c)for(b[c]=[],b[c].length=f,d=0;d<f;++d)m=this.Jq(l+c,n+d),b[c][d]=m,a.cells[l+c][n+d]=m;a.ge.updateRegion(l,n,e,f,b)}V(a.Uf)}}};q.Fo=function(){var a,b;a=0;for(b=this.Ma.length;a<b;a++)window.freeResultNode(this.Ma[a]);V(this.Ma)};q.lt=function(){var a=this.Le().ge.pathList;this.Fo();var b,c,d,e;b=0;for(c=a.length;b<c;b++)d=a[b],e=window.allocResultNode(),e.x=(d.x+.5)*this.Ja,e.y=(d.y+.5)*this.Ja,this.Ma.push(e)};var r=[],f=new S;q.Jq=function(a,b){var c,d,e,k,h,l=
0;f.left=a*this.Ja-this.cd;f.top=b*this.Ja-this.cd;f.right=(a+1)*this.Ja+this.cd;f.bottom=(b+1)*this.Ja+this.cd;if(0===this.Jv){if(this.b.Tw(f))return window.PF_OBSTACLE}else{this.b.gp(this.k.n,this.type.ki,f,r);c=0;for(d=r.length;c<d;++c)if(this.b.En(f,r[c]))return V(r),window.PF_OBSTACLE;r.length=0}c=0;for(d=this.type.Fe.length;c<d;c++){e=this.type.Fe[c].ea;h=this.type.Fe[c].Ho;this.b.Dj(this.k.n,e,f,r);e=0;for(k=r.length;e<k;++e)this.b.En(f,r[e])&&(l+=h);V(r)}return l};q.No=function(a,b,c,d){var e=
this.Le().ge;if(e.isReady()){this.Ih=!0;this.Ao=c;this.Bo=d;a=Math.floor(a/this.Ja);b=Math.floor(b/this.Ja);c=Math.floor(c/this.Ja);d=Math.floor(d/this.Ja);var f,h,k,l,n,m,p;if(e.at(c,d)===window.PF_OBSTACLE){f=1E6;for(l=k=h=0;l<this.Ye;l++)for(n=0;n<this.Pf;n++)e.at(l,n)!==window.PF_OBSTACLE&&(m=c-l,p=d-n,m=m*m+p*p,m<f&&(f=m,h=l,k=n));c=h;d=k}e.findPath(a,b,c,d,this.Zv,this.Yv)}};e.prototype.jo=function(){return!0};e.prototype.os=function(){return!0};e.prototype.ks=function(){return!0};n.i=new e;
k.prototype.Tr=function(a,b){this.enabled&&(this.Ih||!this.Le().ge.isReady()?(this.pg=!0,this.mj=a,this.nj=b):this.No(this.k.x,this.k.y,a,b))};k.prototype.Os=function(){this.xg&&(this.Pe&&(this.wh=!0),this.hi=!this.Pe,this.Pe=!0,this.qd=this.k.x,this.rd=this.k.y,this.Xg=this.k.j)};k.prototype.Es=function(){this.Le().Yg=!0};q.ml=function(a,b,c,d){var e=Math.min(a,c)-this.cd,f=Math.min(b,d)-this.cd;a=Math.max(a,c)+this.cd;b=Math.max(b,d)+this.cd;e=Math.max(Math.floor(e/this.Ja),0);f=Math.max(Math.floor(f/
this.Ja),0);a=Math.min(Math.ceil(a/this.Ja),this.Ye);b=Math.min(Math.ceil(b/this.Ja),this.Pf);e>=a||f>=b||this.Le().Uf.push([e,f,a,b])};n.J=new k;n.La=new function(){}})();function Fc(e){this.b=e;this.yn=this.Gk=this.Ci=this.xn=0}
(function(){var e=Fc.prototype;e.xa=function(e){this.behavior=e;this.b=e.b};e.xa.prototype.W=function(){};e.ma=function(e,k){this.type=e;this.behavior=e.behavior;this.k=k;this.b=e.b};var k=e.ma.prototype;k.W=function(){this.enabled=0!==this.A[0]};k.Gb=function(){return{smg:this.behavior.xn,ss:this.behavior.Ci,se:this.behavior.Gk,smd:this.behavior.yn}};k.Sb=function(e){this.behavior.xn=e.smg;this.behavior.Ci=e.ss;this.behavior.Gk=e.se;this.behavior.yn=e.smd};k.Sa=function(){};k.Qk=function(){if(this.enabled){var e=
this.behavior.jk.pe(),k=0,q=0,r,f,a,b=0;r=0;for(f=e.length;r<f;r++){a:{a=e[r];for(var c=void 0,d=void 0,g=void 0,c=0,d=a.K.length;c<d;++c)if(g=a.K[c],g.behavior instanceof Fc){a=g;break a}a=null}a&&a.enabled&&(k+=e[r].x,q+=e[r].y,++b)}e=this.k.n.kb;f=this.b.ib.aa;a=r=0;f>=this.behavior.Ci&&f<this.behavior.Gk&&(r=this.behavior.xn*Math.min(this.b.ag,1),0===this.behavior.yn&&(r*=1-(f-this.behavior.Ci)/(this.behavior.Gk-this.behavior.Ci)),f=Math.random()*Math.PI*2,a=Math.random()*r,r=Math.cos(f)*a,a*=
Math.sin(f));e.sn(k/b+r);e.tn(q/b+a)}};e.J=new function(){}})();function pc(e){this.b=e}(function(){var e=pc.prototype;e.xa=function(e){this.behavior=e;this.b=e.b};e.xa.prototype.W=function(){};e.ma=function(e,k){this.type=e;this.behavior=e.behavior;this.k=k;this.b=e.b};var k=e.ma.prototype;k.W=function(){this.k.F.solidEnabled=0!==this.A[0]};k.Sa=function(){};e.i=new function(){};e.J=new function(){}})();
function oc(){return[qc,rc,sc,tc,uc,vc,wc,Z,pc,yc,Fc,xc,Ec,Y.prototype.i.Xr,Y.prototype.i.fo,Y.prototype.i.Fs,Y.prototype.La.Do,Y.prototype.i.Ds,Y.prototype.J.Or,Z.prototype.La.gl,Z.prototype.La.hl,Y.prototype.i.Rr,Y.prototype.J.Ks,Y.prototype.i.Nr,Z.prototype.J.no,Y.prototype.J.Ur,uc.prototype.J.Is,qc.prototype.J.Ps,Z.prototype.i.ns,sc.prototype.i.Yr,yc.prototype.J.Ms,Y.prototype.i.Sr,Z.prototype.J.Js,tc.prototype.La.gl,tc.prototype.La.hl,Ec.prototype.J.Es,Ec.prototype.J.Tr,Ec.prototype.i.jo,Ec.prototype.J.Os,
qc.prototype.J.Play,Z.prototype.J.Ns,Z.prototype.J.Pr,Y.prototype.J.Qs,Y.prototype.J.Gs,Z.prototype.i.Zr,sc.prototype.i.bo,tc.prototype.i.cl,Y.prototype.J.Ss,Y.prototype.J.Hs,Y.prototype.J.Hr,Z.prototype.i.ao,Z.prototype.i.Zn,tc.prototype.i.dl,Y.prototype.J.bs,wc.prototype.J.mo,wc.prototype.J.Play,rc.prototype.J.Mr,uc.prototype.J.no,uc.prototype.i.Zn,Z.prototype.J.Vs,Z.prototype.J.ds,Y.prototype.La.random]};