-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
587 lines (587 loc) · 283 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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ca,ea,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,z,sa,ta,ua,va,wa,za,Aa,R,Ba,Ca,Da,Ea,Fa,S,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,d,b,h){this.set(a,d,b,h)}function p(){this.kb=this.jb=this.mb=this.lb=this.tb=this.sb=this.Xa=this.Wa=0}function r(a,d,b,h){a<d?b<h?(M=a<b?a:b,P=d>h?d:h):(M=a<h?a:h,P=d>b?d:b):b<h?(M=d<b?d:b,P=a>h?a:h):(M=d<h?d:h,P=a>b?a:b)}function q(){this.items=this.Ge=null;this.Qj=0;Q&&(this.Ge=new Set);this.Xi=[];this.Of=!0}function m(a){B[y++]=a}function n(){this.Y=this.Sn=this.y=this.kj=0}function f(a){this.Sa=[];this.ql=this.sl=this.tl=this.rl=0;this.Ek(a)}function a(a,d){this.Hb=
a;this.Ub=d;this.cells={}}function b(a,d){this.Hb=a;this.Ub=d;this.cells={}}function c(a,d,b){var h;return x.length?(h=x.pop(),h.rp=a,h.x=d,h.y=b,h):new ca(a,d,b)}function d(a,d,b){this.rp=a;this.x=d;this.y=b;this.Xb=new ea}function k(a,d,b){var h;return w.length?(h=w.pop(),h.rp=a,h.x=d,h.y=b,h):new ga(a,d,b)}function g(a,d,b){this.rp=a;this.x=d;this.y=b;this.Xb=[];this.hi=!0;this.Ce=new ea;this.hj=!1}function l(a,d){return a.ke-d.ke}ha=function(a){window.console&&window.console.log&&window.console.log(a)};
ia=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ja=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,d){return a>d?a:d};qa=function(a,d){return a<d?a:d};ra=Math.PI;z=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var d=
a|0;return d===a?d:d+1};ta=function(a,d,b,h,k,c,l,g){var t,u,A,f;a<b?(u=a,t=b):(u=b,t=a);k<l?(f=k,A=l):(f=l,A=k);if(t<f||u>A)return!1;d<h?(u=d,t=h):(u=h,t=d);c<g?(f=c,A=g):(f=g,A=c);if(t<f||u>A)return!1;t=k-a+l-b;u=c-d+g-h;a=b-a;d=h-d;k=l-k;c=g-c;g=oa(d*k-c*a);return oa(k*u-c*t)>g?!1:oa(a*u-d*t)<=g};e.prototype.set=function(a,d,b,h){this.left=a;this.top=d;this.right=b;this.bottom=h};e.prototype.Kh=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.fB=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.gB=
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.ac=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};e.prototype.sj=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=e;p.prototype.Ni=function(a){this.Wa=a.left;this.Xa=a.top;this.sb=a.right;this.tb=a.top;this.lb=a.right;this.mb=a.bottom;this.jb=a.left;this.kb=a.bottom};p.prototype.kv=function(a,
d){if(0===d)this.Ni(a);else{var b=Math.sin(d),h=Math.cos(d),k=a.left*b,c=a.top*b,l=a.right*b,b=a.bottom*b,g=a.left*h,t=a.top*h,u=a.right*h,h=a.bottom*h;this.Wa=g-c;this.Xa=t+k;this.sb=u-c;this.tb=t+l;this.lb=u-b;this.mb=h+l;this.jb=g-b;this.kb=h+k}};p.prototype.offset=function(a,d){this.Wa+=a;this.Xa+=d;this.sb+=a;this.tb+=d;this.lb+=a;this.mb+=d;this.jb+=a;this.kb+=d;return this};var M=0,P=0;p.prototype.vs=function(a){r(this.Wa,this.sb,this.lb,this.jb);a.left=M;a.right=P;r(this.Xa,this.tb,this.mb,
this.kb);a.top=M;a.bottom=P};p.prototype.ac=function(a,d){var b=this.Wa,h=this.Xa,k=this.sb-b,c=this.tb-h,l=this.lb-b,g=this.mb-h,t=a-b,u=d-h,A=k*k+c*c,f=k*l+c*g,c=k*t+c*u,v=l*l+g*g,e=l*t+g*u,n=1/(A*v-f*f),k=(v*c-f*e)*n,A=(A*e-f*c)*n;if(0<=k&&0<A&&1>k+A)return!0;k=this.jb-b;c=this.kb-h;A=k*k+c*c;f=k*l+c*g;c=k*t+c*u;n=1/(A*v-f*f);k=(v*c-f*e)*n;A=(A*e-f*c)*n;return 0<=k&&0<A&&1>k+A};p.prototype.Mf=function(a,d){if(d)switch(a){case 0:return this.Wa;case 1:return this.sb;case 2:return this.lb;case 3:return this.jb;
case 4:return this.Wa;default:return this.Wa}else switch(a){case 0:return this.Xa;case 1:return this.tb;case 2:return this.mb;case 3:return this.kb;case 4:return this.Xa;default:return this.Xa}};p.prototype.gu=function(){return(this.Wa+this.sb+this.lb+this.jb)/4};p.prototype.hu=function(){return(this.Xa+this.tb+this.mb+this.kb)/4};p.prototype.lt=function(a){var d=a.gu(),b=a.hu();if(this.ac(d,b))return!0;d=this.gu();b=this.hu();if(a.ac(d,b))return!0;var h,k,c,l,g,t,u,A;for(u=0;4>u;u++)for(A=0;4>A;A++)if(d=
this.Mf(u,!0),b=this.Mf(u,!1),h=this.Mf(u+1,!0),k=this.Mf(u+1,!1),c=a.Mf(A,!0),l=a.Mf(A,!1),g=a.Mf(A+1,!0),t=a.Mf(A+1,!1),ta(d,b,h,k,c,l,g,t))return!0;return!1};va=p;wa=function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);return a};za=function(a,d){var b,h;d=z(d);if(!(0>d||d>=a.length)){b=d;for(h=a.length-1;b<h;b++)a[b]=a[b+1];Aa(a,h)}};Aa=function(a,d){a.length=d};R=function(a){Aa(a,0)};Ba=function(a,d){R(a);var b,h;b=0;for(h=d.length;b<h;++b)a[b]=d[b]};Ca=function(a,d){a.push.apply(a,d)};
Da=function(a,d){var b,h;b=0;for(h=a.length;b<h;++b)if(a[b]===d)return b;return-1};Ea=function(a,d){var b=Da(a,d);-1!==b&&za(a,b)};Fa=function(a,d,b){return a<d?d:a>b?b:a};S=function(a){return a/(180/ra)};Ha=function(a){return 180/ra*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ka=function(a){return Ia(Ha(a))};La=function(a){return Ja(S(a))};Ma=function(a,d,b,h){return Math.atan2(h-d,b-a)};Na=function(a,d){if(a===d)return 0;var b=Math.sin(a),h=Math.cos(a),
k=Math.sin(d),c=Math.cos(d),b=b*k+h*c;return 1<=b?0:-1>=b?ra:Math.acos(b)};Oa=function(a,d,b){var h=Math.sin(a),k=Math.cos(a),c=Math.sin(d),l=Math.cos(d);return Math.acos(h*c+k*l)>b?0<k*c-h*l?Ja(a+b):Ja(a-b):Ja(d)};Qa=function(a,d){var b=Math.sin(a),h=Math.cos(a),k=Math.sin(d),c=Math.cos(d);return 0>=h*k-b*c};Ra=function(a,d,b,h,k,c){if(0===b)return c?a:d;var l=Math.sin(b);b=Math.cos(b);a-=h;d-=k;var g=a*l;a=a*b-d*l;d=d*b+g;return c?a+h:d+k};Sa=function(a,d,b,h){a=b-a;d=h-d;return Math.sqrt(a*a+d*
d)};Ta=function(a,d){return!a!==!d};Ua=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Va=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var v=+new Date;Wa=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()-v};var h=!1,
t=h=!1,K=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),K=window.c2ejecta);var Q=!h&&!K&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.cf()?!1:Q?this.Ge.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(Q)this.Ge.has(a)||(this.Ge.add(a),this.Of=
!1);else{var d=a.toString(),b=this.items;b?b.hasOwnProperty(d)||(b[d]=a,this.Qj++,this.Of=!1):(this.items={},this.items[d]=a,this.Qj=1,this.Of=!1)}};q.prototype.remove=function(a){if(!this.cf())if(Q)this.Ge.has(a)&&(this.Ge["delete"](a),this.Of=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Qj--,this.Of=!1)}};q.prototype.clear=function(){this.cf()||(Q?this.Ge.clear():(this.items=null,this.Qj=0),R(this.Xi),this.Of=!0)};q.prototype.cf=function(){return 0===
this.count()};q.prototype.count=function(){return Q?this.Ge.size:this.Qj};var B=null,y=0;q.prototype.EC=function(){if(!this.Of){if(Q)R(this.Xi),B=this.Xi,y=0,this.Ge.forEach(m),B=null,y=0;else{var a=this.Xi;R(a);var d,b=0,h=this.items;if(h)for(d in h)h.hasOwnProperty(d)&&(a[b++]=h[d])}this.Of=!0}};q.prototype.Bf=function(){this.EC();return this.Xi};ea=q;new ea;Xa=function(a,d){Q?Ya(a,d.Ge):Za(a,d.Bf())};Ya=function(a,d){var b,h,k,c;h=b=0;for(k=a.length;b<k;++b)c=a[b],d.has(c)||(a[h++]=c);Aa(a,h)};
Za=function(a,d){var b,h,k,c;h=b=0;for(k=a.length;b<k;++b)c=a[b],-1===Da(d,c)&&(a[h++]=c);Aa(a,h)};n.prototype.add=function(a){this.y=a-this.kj;this.Sn=this.Y+this.y;this.kj=this.Sn-this.Y-this.y;this.Y=this.Sn};n.prototype.reset=function(){this.Y=this.Sn=this.y=this.kj=0};$a=n;ab=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.Ek=function(a){this.Pu=a;this.hd=a.length/2;this.Sa.length=a.length;this.xl=this.yl=-1;this.ys=0};f.prototype.ei=function(){return!this.Pu.length};
f.prototype.Fa=function(){for(var a=this.Sa,d=a[0],b=d,h=a[1],k=h,c,l,g=1,t=this.hd;g<t;++g)l=2*g,c=a[l],l=a[l+1],c<d&&(d=c),c>b&&(b=c),l<h&&(h=l),l>k&&(k=l);this.rl=d;this.sl=b;this.tl=h;this.ql=k};f.prototype.Ni=function(a,d,b){this.Sa.length=8;this.hd=4;var h=this.Sa;h[0]=a.left-d;h[1]=a.top-b;h[2]=a.right-d;h[3]=a.top-b;h[4]=a.right-d;h[5]=a.bottom-b;h[6]=a.left-d;h[7]=a.bottom-b;this.yl=a.right-a.left;this.xl=a.bottom-a.top;this.Fa()};f.prototype.Mi=function(a,d,b,h,k){this.Sa.length=8;this.hd=
4;var c=this.Sa;c[0]=a.Wa-d;c[1]=a.Xa-b;c[2]=a.sb-d;c[3]=a.tb-b;c[4]=a.lb-d;c[5]=a.mb-b;c[6]=a.jb-d;c[7]=a.kb-b;this.yl=h;this.xl=k;this.Fa()};f.prototype.jv=function(a){this.hd=a.hd;Ba(this.Sa,a.Sa);this.rl=a.rl;this.tl=a.tl;this.sl=a.sl;this.ql=a.ql};f.prototype.Cg=function(a,d,b){if(this.yl!==a||this.xl!==d||this.ys!==b){this.yl=a;this.xl=d;this.ys=b;var h,k,c,l,g,t=0,u=1,A=this.Pu,f=this.Sa;0!==b&&(t=Math.sin(b),u=Math.cos(b));b=0;for(c=this.hd;b<c;b++)h=2*b,k=h+1,l=A[h]*a,g=A[k]*d,f[h]=l*u-g*
t,f[k]=g*u+l*t;this.Fa()}};f.prototype.ac=function(a,d){var b=this.Sa;if(a===b[0]&&d===b[1])return!0;var h,k,c,l=this.hd,g=this.rl-110,t=this.tl-101,u=this.sl+131,A=this.ql+120,f,v,e=0,n=0;for(h=0;h<l;h++)k=2*h,c=(h+1)%l*2,f=b[k],k=b[k+1],v=b[c],c=b[c+1],ta(g,t,a,d,f,k,v,c)&&e++,ta(u,A,a,d,f,k,v,c)&&n++;return 1===e%2||1===n%2};f.prototype.Hj=function(a,d,b){var h=a.Sa,k=this.Sa;if(this.ac(h[0]+d,h[1]+b)||a.ac(k[0]-d,k[1]-b))return!0;var c,l,g,t,u,A,f,v,e,n,K,M;c=0;for(t=this.hd;c<t;c++)for(l=2*c,
g=(c+1)%t*2,v=k[l],l=k[l+1],e=k[g],n=k[g+1],g=0,f=a.hd;g<f;g++)if(u=2*g,A=(g+1)%f*2,K=h[u]+d,u=h[u+1]+b,M=h[A]+d,A=h[A+1]+b,ta(v,l,e,n,K,u,M,A))return!0;return!1};f.prototype.BB=function(a){var d,b,h;d=0;for(b=this.hd;d<b;++d)h=2*d,this.Sa[h]=2*a-this.Sa[h]};f.prototype.rA=function(a){var d,b,h;d=0;for(b=this.hd;d<b;++d)h=2*d+1,this.Sa[h]=2*a-this.Sa[h]};f.prototype.jz=function(){var a,d,b,h,k;a=0;for(d=this.hd;a<d;++a)b=2*a,h=b+1,k=this.Sa[b],this.Sa[b]=this.Sa[h],this.Sa[h]=k};bb=f;a.prototype.Zf=
function(a,d,b){var h;h=this.cells[a];return h?(h=h[d])?h:b?(h=c(this,a,d),this.cells[a][d]=h):null:b?(h=c(this,a,d),this.cells[a]={},this.cells[a][d]=h):null};a.prototype.Lc=function(a){return z(a/this.Hb)};a.prototype.Mc=function(a){return z(a/this.Ub)};a.prototype.update=function(a,d,b){var h,k,c,l,g;if(d)for(h=d.left,k=d.right;h<=k;++h)for(c=d.top,l=d.bottom;c<=l;++c)if(!b||!b.ac(h,c))if(g=this.Zf(h,c,!1))g.remove(a),g.cf()&&(g.Xb.clear(),1E3>x.length&&x.push(g),this.cells[h][c]=null);if(b)for(h=
b.left,k=b.right;h<=k;++h)for(c=b.top,l=b.bottom;c<=l;++c)d&&d.ac(h,c)||this.Zf(h,c,!0).Dp(a)};a.prototype.tn=function(a,d){var b,h,k,c,l,g;b=this.Lc(a.left);k=this.Mc(a.top);h=this.Lc(a.right);for(l=this.Mc(a.bottom);b<=h;++b)for(c=k;c<=l;++c)(g=this.Zf(b,c,!1))&&g.dump(d)};eb=a;b.prototype.Zf=function(a,d,b){var h;h=this.cells[a];return h?(h=h[d])?h:b?(h=k(this,a,d),this.cells[a][d]=h):null:b?(h=k(this,a,d),this.cells[a]={},this.cells[a][d]=h):null};b.prototype.Lc=function(a){return z(a/this.Hb)};
b.prototype.Mc=function(a){return z(a/this.Ub)};b.prototype.update=function(a,d,b){var h,k,c,l,g;if(d)for(h=d.left,k=d.right;h<=k;++h)for(c=d.top,l=d.bottom;c<=l;++c)if(!b||!b.ac(h,c))if(g=this.Zf(h,c,!1))g.remove(a),g.cf()&&(g.reset(),1E3>w.length&&w.push(g),this.cells[h][c]=null);if(b)for(h=b.left,k=b.right;h<=k;++h)for(c=b.top,l=b.bottom;c<=l;++c)d&&d.ac(h,c)||this.Zf(h,c,!0).Dp(a)};b.prototype.tn=function(a,d,b,h,c){var k,l;a=this.Lc(a);d=this.Mc(d);b=this.Lc(b);for(k=this.Mc(h);a<=b;++a)for(h=
d;h<=k;++h)(l=this.Zf(a,h,!1))&&l.dump(c)};b.prototype.xB=function(a){var d,b,h,c,k;d=a.left;h=a.top;b=a.right;for(c=a.bottom;d<=b;++d)for(a=h;a<=c;++a)if(k=this.Zf(d,a,!1))k.hi=!1};fb=b;var x=[];d.prototype.cf=function(){return this.Xb.cf()};d.prototype.Dp=function(a){this.Xb.add(a)};d.prototype.remove=function(a){this.Xb.remove(a)};d.prototype.dump=function(a){Ca(a,this.Xb.Bf())};ca=d;var w=[];g.prototype.cf=function(){if(!this.Xb.length)return!0;if(this.Xb.length>this.Ce.count())return!1;this.bp();
return!0};g.prototype.Dp=function(a){this.Ce.contains(a)?(this.Ce.remove(a),this.Ce.cf()&&(this.hj=!1)):this.Xb.length?(this.Xb[this.Xb.length-1].ve()>a.ve()&&(this.hi=!1),this.Xb.push(a)):(this.Xb.push(a),this.hi=!0)};g.prototype.remove=function(a){this.Ce.add(a);this.hj=!0;30<=this.Ce.count()&&this.bp()};g.prototype.bp=function(){this.hj&&(this.Ce.count()===this.Xb.length?this.reset():(Xa(this.Xb,this.Ce),this.Ce.clear(),this.hj=!1))};g.prototype.Kz=function(){this.hi||(this.Xb.sort(l),this.hi=
!0)};g.prototype.reset=function(){R(this.Xb);this.hi=!0;this.Ce.clear();this.hj=!1};g.prototype.dump=function(a){this.bp();this.Kz();this.Xb.length&&a.push(this.Xb)};ga=g;var H="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":H[a-1]};hb=function(a,d,b){if(b)switch(a.xc=b.ONE,a.tc=b.ONE_MINUS_SRC_ALPHA,d){case 1:a.xc=b.ONE;a.tc=b.ONE;break;case 3:a.xc=b.ONE;a.tc=b.ZERO;break;
case 4:a.xc=b.ONE_MINUS_DST_ALPHA;a.tc=b.ONE;break;case 5:a.xc=b.DST_ALPHA;a.tc=b.ZERO;break;case 6:a.xc=b.ZERO;a.tc=b.SRC_ALPHA;break;case 7:a.xc=b.ONE_MINUS_DST_ALPHA;a.tc=b.ZERO;break;case 8:a.xc=b.ZERO;a.tc=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.xc=b.DST_ALPHA;a.tc=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.xc=b.ONE_MINUS_DST_ALPHA,a.tc=b.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===
d.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(e){var p=new gc(3);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2]);return p}
function ic(e){var p=new gc(16);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2],p[3]=e[3],p[4]=e[4],p[5]=e[5],p[6]=e[6],p[7]=e[7],p[8]=e[8],p[9]=e[9],p[10]=e[10],p[11]=e[11],p[12]=e[12],p[13]=e[13],p[14]=e[14],p[15]=e[15]);return p}function jc(e,p){p[0]=e[0];p[1]=e[1];p[2]=e[2];p[3]=e[3];p[4]=e[4];p[5]=e[5];p[6]=e[6];p[7]=e[7];p[8]=e[8];p[9]=e[9];p[10]=e[10];p[11]=e[11];p[12]=e[12];p[13]=e[13];p[14]=e[14];p[15]=e[15]}
function kc(e,p){var r=p[0],q=p[1];p=p[2];e[0]*=r;e[1]*=r;e[2]*=r;e[3]*=r;e[4]*=q;e[5]*=q;e[6]*=q;e[7]*=q;e[8]*=p;e[9]*=p;e[10]*=p;e[11]*=p}
function lc(e,p,r,q){q||(q=ic());var m,n,f,a,b,c,d,k,g=e[0],l=e[1];e=e[2];n=r[0];f=r[1];m=r[2];r=p[1];c=p[2];g===p[0]&&l===r&&e===c?(e=q,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):(r=g-p[0],c=l-p[1],d=e-p[2],k=1/Math.sqrt(r*r+c*c+d*d),r*=k,c*=k,d*=k,p=f*d-m*c,m=m*r-n*d,n=n*c-f*r,(k=Math.sqrt(p*p+m*m+n*n))?(k=1/k,p*=k,m*=k,n*=k):n=m=p=0,f=c*n-d*m,a=d*p-r*n,b=r*m-c*p,(k=Math.sqrt(f*f+a*a+b*b))?(k=1/k,f*=k,a*=k,b*=k):b=a=f=0,
q[0]=p,q[1]=f,q[2]=r,q[3]=0,q[4]=m,q[5]=a,q[6]=c,q[7]=0,q[8]=n,q[9]=b,q[10]=d,q[11]=0,q[12]=-(p*g+m*l+n*e),q[13]=-(f*g+a*l+b*e),q[14]=-(r*g+c*l+d*e),q[15]=1)}
(function(){function e(a,b,c){this.df=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Qa=!!c;this.ym=this.Jj=!1;this.Ll=0;this.no=1;this.Ar=1E3;this.LC=(this.Ar-this.no)/32768;this.Io=hc([0,0,100]);this.Qt=hc([0,0,0]);this.Jv=hc([0,1,0]);this.Zk=hc([1,1,1]);this.Js=!0;this.Rm=ic();this.rd=ic();this.Rp=ic();this.Qo=ic();this.K=a;this.version=0===this.K.getParameter(this.K.VERSION).indexOf("WebGL 2")?2:1;this.ht()}function p(a,b,c){this.K=a;this.Fk=
b;this.name=c;this.Gd=a.getAttribLocation(b,"aPos");this.lg=a.getAttribLocation(b,"aTex");this.Ot=a.getUniformLocation(b,"matP");this.Mm=a.getUniformLocation(b,"matMV");this.ti=a.getUniformLocation(b,"opacity");this.Xp=a.getUniformLocation(b,"colorFill");this.Pt=a.getUniformLocation(b,"samplerFront");this.bk=a.getUniformLocation(b,"samplerBack");this.fh=a.getUniformLocation(b,"destStart");this.eh=a.getUniformLocation(b,"destEnd");this.dk=a.getUniformLocation(b,"seconds");this.Zp=a.getUniformLocation(b,
"pixelWidth");this.Yp=a.getUniformLocation(b,"pixelHeight");this.ak=a.getUniformLocation(b,"layerScale");this.$j=a.getUniformLocation(b,"layerAngle");this.ek=a.getUniformLocation(b,"viewOrigin");this.ck=a.getUniformLocation(b,"scrollPos");this.aB=!!(this.Zp||this.Yp||this.dk||this.bk||this.fh||this.eh||this.ak||this.$j||this.ek||this.ck);this.Yt=this.Zt=-999;this.Qm=1;this.Ut=this.Tt=0;this.Wt=this.St=this.Rt=1;this.bu=this.au=this.$t=this.du=this.cu=this.Vt=0;this.Qp=[];this.Xt=ic();this.ti&&a.uniform1f(this.ti,
1);this.Xp&&a.uniform4f(this.Xp,1,1,1,1);this.Pt&&a.uniform1i(this.Pt,0);this.bk&&a.uniform1i(this.bk,1);this.fh&&a.uniform2f(this.fh,0,0);this.eh&&a.uniform2f(this.eh,1,1);this.ak&&a.uniform1f(this.ak,1);this.$j&&a.uniform1f(this.$j,0);this.ek&&a.uniform2f(this.ek,0,0);this.ck&&a.uniform2f(this.ck,0,0);this.dk&&a.uniform1f(this.dk,0);this.Rg=!1}function r(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 q(a,b){this.type=a;this.D=b;this.K=b.K;this.Qc=this.oc=this.Au=0;this.la=this.Qd=null;this.lv=[]}var m=ic();e.prototype.ht=function(){var a=this.K,b;this.Ft=1;this.Xg=this.hg=null;this.Kl=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.Qa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Ht=a.ONE;this.Dt=a.ONE_MINUS_SRC_ALPHA;this.Wk=new Float32Array(8E3*(this.Qa?3:2));this.Nk=new Float32Array(16E3);this.Aq=new Float32Array(32E3);this.zq=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.zq);a.bufferData(a.ARRAY_BUFFER,this.Aq.byteLength,a.DYNAMIC_DRAW);this.Vk=Array(4);this.Mk=Array(4);for(b=0;4>b;b++)this.Vk[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Vk[b]),a.bufferData(a.ARRAY_BUFFER,this.Wk.byteLength,a.DYNAMIC_DRAW),this.Mk[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Mk[b]),a.bufferData(a.ARRAY_BUFFER,this.Nk.byteLength,a.DYNAMIC_DRAW);this.Se=0;this.dB=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.dB);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.Gi=this.ug=this.Sd=0;this.ib=[];b=this.Qa?"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.oj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.ib.push(c);c=this.oj({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.ib.push(c);c=this.oj({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.ib.push(c);c=this.oj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.ib.push(c);for(var k in mc)mc.hasOwnProperty(k)&&this.ib.push(this.oj(mc[k],b,k));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Xd=[];this.zd=0;this.hc=this.Lb=!1;this.Ds=this.Tj=-1;this.Lh=null;this.Zo=a.createFramebuffer();this.Pl=this.vn=null;this.ts=!1;this.Qa&&(this.Pl=a.createRenderbuffer());this.wg=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.AB=a[0];this.cq=a[1];2048<this.cq&&(this.cq=2048);this.Wc(0)};p.prototype.or=function(a){r(this.Xt,
a)||(jc(a,this.Xt),this.K.uniformMatrix4fv(this.Mm,!1,a))};e.prototype.oj=function(a,b,c){var d=this.K,k=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(k,a.src);d.compileShader(k);if(!d.getShaderParameter(k,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(k),d.deleteShader(k),Error("error compiling fragment shader: "+a);var g=d.createShader(d.VERTEX_SHADER);d.shaderSource(g,b);d.compileShader(g);if(!d.getShaderParameter(g,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(g),d.deleteShader(k),d.deleteShader(g),
Error("error compiling vertex shader: "+a);b=d.createProgram();d.attachShader(b,k);d.attachShader(b,g);d.linkProgram(b);if(!d.getProgramParameter(b,d.LINK_STATUS))throw a=d.getProgramInfoLog(b),d.deleteShader(k),d.deleteShader(g),d.deleteProgram(b),Error("error linking shader program: "+a);d.useProgram(b);d.deleteShader(k);d.deleteShader(g);k=new p(d,b,c);k.Ul=a.Ul||0;k.Vl=a.Vl||0;k.Po=!!a.Po;k.Jd=!!a.Jd;k.Fo=!!a.Fo;k.ja=a.ja||[];a=0;for(g=k.ja.length;a<g;a++)k.ja[a][1]=d.getUniformLocation(b,k.ja[a][0]),
k.Qp.push(0),d.uniform1f(k.ja[a][1],0);return k};e.prototype.op=function(a){var b,c;b=0;for(c=this.ib.length;b<c;b++)if(this.ib[b].name===a)return b;return-1};e.prototype.Ou=function(a,b,c){var d=this.rd,k=this.Rm,g=[0,0,0,0,0,0,0,0];g[0]=d[0]*a+d[4]*b+d[12];g[1]=d[1]*a+d[5]*b+d[13];g[2]=d[2]*a+d[6]*b+d[14];g[3]=d[3]*a+d[7]*b+d[15];g[4]=k[0]*g[0]+k[4]*g[1]+k[8]*g[2]+k[12]*g[3];g[5]=k[1]*g[0]+k[5]*g[1]+k[9]*g[2]+k[13]*g[3];g[6]=k[2]*g[0]+k[6]*g[1]+k[10]*g[2]+k[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/
g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],c[0]=(.5*g[4]+.5)*this.width,c[1]=(.5*g[5]+.5)*this.height)};e.prototype.rh=function(a,b,c){if(this.width!==a||this.height!==b||c){this.qe();c=this.K;this.width=a;this.height=b;c.viewport(0,0,a,b);lc(this.Io,this.Qt,this.Jv,this.rd);if(this.Qa){var d=-a/2;a=a/2;var k=b/2;b=-b/2;var g=this.no,l=this.Ar,f=this.Rm;f||(f=ic());var e=a-d,v=b-k,h=l-g;f[0]=2/e;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/v;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/h;f[11]=0;f[12]=-(d+a)/e;f[13]=-(b+
k)/v;f[14]=-(l+g)/h;f[15]=1;this.Zk[0]=1;this.Zk[1]=1}else b=a/b,d=this.no,a=this.Ar,f=this.Rm,l=d*Math.tan(45*Math.PI/360),b*=l,k=-b,g=-l,f||(f=ic()),e=b-k,v=l-g,h=a-d,f[0]=2*d/e,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*d/v,f[6]=0,f[7]=0,f[8]=(b+k)/e,f[9]=(l+g)/v,f[10]=-(a+d)/h,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(a*d*2)/h,f[15]=0,d=[0,0],a=[0,0],this.Ou(0,0,d),this.Ou(1,1,a),this.Zk[0]=1/(a[0]-d[0]),this.Zk[1]=-1/(a[1]-d[1]);d=0;for(a=this.ib.length;d<a;d++)k=this.ib[d],k.Rg=!1,k.Ot&&(c.useProgram(k.Fk),
c.uniformMatrix4fv(k.Ot,!1,this.Rm));c.useProgram(this.ib[this.Tj].Fk);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Xg=this.hg=null;this.Pl&&(c.bindFramebuffer(c.FRAMEBUFFER,this.Zo),c.bindRenderbuffer(c.RENDERBUFFER,this.Pl),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.ts||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Pl),this.ts=!0),c.bindRenderbuffer(c.RENDERBUFFER,
null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.vn=null)}};e.prototype.Md=function(){lc(this.Io,this.Qt,this.Jv,this.rd);kc(this.rd,this.Zk)};e.prototype.translate=function(a,b){if(0!==a||0!==b){this.wg[0]=a;this.wg[1]=b;this.wg[2]=0;var c=this.rd,d=this.wg,k=d[0],g=d[1],d=d[2];c[12]=c[0]*k+c[4]*g+c[8]*d+c[12];c[13]=c[1]*k+c[5]*g+c[9]*d+c[13];c[14]=c[2]*k+c[6]*g+c[10]*d+c[14];c[15]=c[3]*k+c[7]*g+c[11]*d+c[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.wg[0]=a,this.wg[1]=b,this.wg[2]=
1,kc(this.rd,this.wg)};e.prototype.xn=function(a){if(0!==a){var b=this.rd,c,d=Math.sin(a);a=Math.cos(a);var k=b[0],g=b[1],l=b[2],f=b[3],e=b[4],v=b[5],h=b[6],t=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]=k*a+e*d;c[1]=g*a+v*d;c[2]=l*a+h*d;c[3]=f*a+t*d;c[4]=k*-d+e*a;c[5]=g*-d+v*a;c[6]=l*-d+h*a;c[7]=f*-d+t*a}};e.prototype.vd=function(){if(!r(this.Rp,this.rd)){var a=this.Hc();a.type=5;a.la?jc(this.rd,a.la):a.la=ic(this.rd);jc(this.rd,
this.Rp);this.hc=this.Lb=!1}};e.prototype.Dn=function(a){this.Qa&&(32760<a&&(a=32760),this.Ll=this.Io[2]-this.no-a*this.LC)};q.prototype.uz=function(){var a=this.K,b=this.D;0!==this.oc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.Zo),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.ym=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.ym=
!1)};q.prototype.yz=function(){this.K.bindTexture(this.K.TEXTURE_2D,this.Qd)};q.prototype.zz=function(){var a=this.K;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Qd);a.activeTexture(a.TEXTURE0)};q.prototype.vz=function(){var a=this.Au,b=this.D;b.Kl=a;b=b.Lh;b.ti&&b.Qm!==a&&(b.Qm=a,this.K.uniform1f(b.ti,a))};q.prototype.oz=function(){this.K.drawElements(this.K.TRIANGLES,this.Qc,this.K.UNSIGNED_SHORT,this.oc)};q.prototype.qz=function(){this.K.blendFunc(this.oc,this.Qc)};q.prototype.Az=
function(){var a,b,c,d=this.D.ib,k=this.D.Ds;a=0;for(b=d.length;a<b;a++)c=d[a],a===k&&c.Mm?(c.or(this.la),c.Rg=!0):c.Rg=!1;jc(this.la,this.D.Qo)};q.prototype.pz=function(){var a=this.K,b=this.D;this.Qd?(b.Xg===this.Qd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Xg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Zo),b.ym||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Qd,0)):(b.Qa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};q.prototype.lz=function(){var a=this.K,b=this.oc;0===b?(a.clearColor(this.la[0],this.la[1],this.la[2],this.la[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.la[0],this.la[1],this.la[2],this.la[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.sz=function(){var a=this.K;0!==this.oc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.nz=
function(){var a=this.K,b=this.D;b.Qa&&a.disable(a.DEPTH_TEST);var c=b.ib[1];a.useProgram(c.Fk);!c.Rg&&c.Mm&&(c.or(b.Qo),c.Rg=!0);a.enableVertexAttribArray(c.Gd);a.bindBuffer(a.ARRAY_BUFFER,b.zq);a.vertexAttribPointer(c.Gd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.oc/4,this.Qc);c=b.Lh;a.useProgram(c.Fk);0<=c.Gd&&(a.enableVertexAttribArray(c.Gd),a.bindBuffer(a.ARRAY_BUFFER,b.Vk[b.Se]),a.vertexAttribPointer(c.Gd,b.Qa?3:2,a.FLOAT,!1,0,0));0<=c.lg&&(a.enableVertexAttribArray(c.lg),a.bindBuffer(a.ARRAY_BUFFER,
b.Mk[b.Se]),a.vertexAttribPointer(c.lg,2,a.FLOAT,!1,0,0));b.Qa&&a.enable(a.DEPTH_TEST)};q.prototype.wz=function(){var a=this.K,b=this.D,c=b.ib[this.oc];b.Ds=this.oc;b.Lh=c;a.useProgram(c.Fk);!c.Rg&&c.Mm&&(c.or(b.Qo),c.Rg=!0);c.ti&&c.Qm!==b.Kl&&(c.Qm=b.Kl,a.uniform1f(c.ti,b.Kl));0<=c.Gd&&(a.enableVertexAttribArray(c.Gd),a.bindBuffer(a.ARRAY_BUFFER,b.Vk[b.Se]),a.vertexAttribPointer(c.Gd,b.Qa?3:2,a.FLOAT,!1,0,0));0<=c.lg&&(a.enableVertexAttribArray(c.lg),a.bindBuffer(a.ARRAY_BUFFER,b.Mk[b.Se]),a.vertexAttribPointer(c.lg,
2,a.FLOAT,!1,0,0))};q.prototype.rz=function(){var a=this.la;this.K.uniform4f(this.D.Lh.Xp,a[0],a[1],a[2],a[3])};q.prototype.xz=function(){var a,b,c=this.D.Lh,d=this.K;a=this.la;c.bk&&this.D.Xg!==this.Qd&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Qd),this.D.Xg=this.Qd,d.activeTexture(d.TEXTURE0));var k=a[0];c.Zp&&k!==c.Zt&&(c.Zt=k,d.uniform1f(c.Zp,k));k=a[1];c.Yp&&k!==c.Yt&&(c.Yt=k,d.uniform1f(c.Yp,k));k=a[2];b=a[3];!c.fh||k===c.Tt&&b===c.Ut||(c.Tt=k,c.Ut=b,d.uniform2f(c.fh,k,b));
k=a[4];b=a[5];!c.eh||k===c.Rt&&b===c.St||(c.Rt=k,c.St=b,d.uniform2f(c.eh,k,b));k=a[6];c.ak&&k!==c.Wt&&(c.Wt=k,d.uniform1f(c.ak,k));k=a[7];c.$j&&k!==c.Vt&&(c.Vt=k,d.uniform1f(c.$j,k));k=a[8];b=a[9];!c.ek||k===c.cu&&b===c.du||(c.cu=k,c.du=b,d.uniform2f(c.ek,k,b));k=a[10];b=a[11];!c.ck||k===c.$t&&b===c.au||(c.$t=k,c.au=b,d.uniform2f(c.ck,k,b));k=a[12];c.dk&&k!==c.bu&&(c.bu=k,d.uniform1f(c.dk,k));if(c.ja.length)for(a=0,b=c.ja.length;a<b;a++)k=this.lv[a],k!==c.Qp[a]&&(c.Qp[a]=k,d.uniform1f(c.ja[a][1],
k))};e.prototype.Hc=function(){this.zd===this.Xd.length&&this.Xd.push(new q(0,this));return this.Xd[this.zd++]};e.prototype.qe=function(){if(0!==this.zd&&!this.K.isContextLost()){var a=this.K;0<this.Gi&&(a.bindBuffer(a.ARRAY_BUFFER,this.zq),a.bufferSubData(a.ARRAY_BUFFER,0,this.Aq.subarray(0,this.Gi)),b&&0<=b.Gd&&"<point>"===b.name&&a.vertexAttribPointer(b.Gd,4,a.FLOAT,!1,0,0));if(0<this.Sd){var b=this.Lh;a.bindBuffer(a.ARRAY_BUFFER,this.Vk[this.Se]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Wk.subarray(0,
this.Sd));b&&0<=b.Gd&&"<point>"!==b.name&&a.vertexAttribPointer(b.Gd,this.Qa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Mk[this.Se]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Nk.subarray(0,this.ug));b&&0<=b.lg&&"<point>"!==b.name&&a.vertexAttribPointer(b.lg,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.zd;a<b;a++)switch(c=this.Xd[a],c.type){case 1:c.oz();break;case 2:c.yz();break;case 3:c.vz();break;case 4:c.qz();break;case 5:c.Az();break;case 6:c.pz();break;case 7:c.lz();break;case 8:c.nz();break;
case 9:c.wz();break;case 10:c.xz();break;case 11:c.zz();break;case 12:c.rz();break;case 13:c.sz();break;case 14:c.uz()}this.Gi=this.ug=this.Sd=this.zd=0;this.ym=this.hc=this.Lb=!1;this.Se++;4<=this.Se&&(this.Se=0)}};e.prototype.He=function(a){if(a!==this.Ft&&!this.Jj){var b=this.Hc();b.type=3;this.Ft=b.Au=a;this.hc=this.Lb=!1}};e.prototype.wc=function(a){if(a!==this.hg){var b=this.Hc();b.type=2;this.hg=b.Qd=a;this.hc=this.Lb=!1}};e.prototype.sg=function(a,b){if((a!==this.Ht||b!==this.Dt)&&!this.Jj){var c=
this.Hc();c.type=4;c.oc=a;c.Qc=b;this.Ht=a;this.Dt=b;this.hc=this.Lb=!1}};e.prototype.Xu=function(){this.sg(this.K.ONE,this.K.ONE_MINUS_SRC_ALPHA)};e.prototype.Ii=function(a,b,c,d,k,g,l,f){15992<=this.Sd&&this.qe();var e=this.Sd,v=this.ug,h=this.Wk,t=this.Nk,n=this.Ll;if(this.Lb)this.Xd[this.zd-1].Qc+=6;else{var m=this.Hc();m.type=1;m.oc=this.Qa?e:e/2*3;m.Qc=6;this.Lb=!0;this.hc=!1}this.Qa?(h[e++]=a,h[e++]=b,h[e++]=n,h[e++]=c,h[e++]=d,h[e++]=n,h[e++]=k,h[e++]=g,h[e++]=n,h[e++]=l,h[e++]=f,h[e++]=n):
(h[e++]=a,h[e++]=b,h[e++]=c,h[e++]=d,h[e++]=k,h[e++]=g,h[e++]=l,h[e++]=f);t[v++]=0;t[v++]=0;t[v++]=1;t[v++]=0;t[v++]=1;t[v++]=1;t[v++]=0;t[v++]=1;this.Sd=e;this.ug=v};e.prototype.Ld=function(a,b,c,d,k,g,l,f,e){15992<=this.Sd&&this.qe();var v=this.Sd,h=this.ug,t=this.Wk,n=this.Nk,m=this.Ll;if(this.Lb)this.Xd[this.zd-1].Qc+=6;else{var p=this.Hc();p.type=1;p.oc=this.Qa?v:v/2*3;p.Qc=6;this.Lb=!0;this.hc=!1}var p=e.left,y=e.top,q=e.right;e=e.bottom;this.Qa?(t[v++]=a,t[v++]=b,t[v++]=m,t[v++]=c,t[v++]=d,
t[v++]=m,t[v++]=k,t[v++]=g,t[v++]=m,t[v++]=l,t[v++]=f,t[v++]=m):(t[v++]=a,t[v++]=b,t[v++]=c,t[v++]=d,t[v++]=k,t[v++]=g,t[v++]=l,t[v++]=f);n[h++]=p;n[h++]=y;n[h++]=q;n[h++]=y;n[h++]=q;n[h++]=e;n[h++]=p;n[h++]=e;this.Sd=v;this.ug=h};e.prototype.bC=function(a,b,c,d,k,g,l,f,e,v,h,t,n,m,p,y){15992<=this.Sd&&this.qe();var q=this.Sd,w=this.ug,r=this.Wk,G=this.Nk,C=this.Ll;if(this.Lb)this.Xd[this.zd-1].Qc+=6;else{var O=this.Hc();O.type=1;O.oc=this.Qa?q:q/2*3;O.Qc=6;this.Lb=!0;this.hc=!1}this.Qa?(r[q++]=a,
r[q++]=b,r[q++]=C,r[q++]=c,r[q++]=d,r[q++]=C,r[q++]=k,r[q++]=g,r[q++]=C,r[q++]=l,r[q++]=f,r[q++]=C):(r[q++]=a,r[q++]=b,r[q++]=c,r[q++]=d,r[q++]=k,r[q++]=g,r[q++]=l,r[q++]=f);G[w++]=e;G[w++]=v;G[w++]=h;G[w++]=t;G[w++]=n;G[w++]=m;G[w++]=p;G[w++]=y;this.Sd=q;this.ug=w};e.prototype.QB=function(a,b,c,d){7996<=this.Gi&&this.qe();var k=this.Gi,g=this.Aq;if(this.hc)this.Xd[this.zd-1].Qc++;else{var l=this.Hc();l.type=8;l.oc=k;l.Qc=1;this.hc=!0;this.Lb=!1}g[k++]=a;g[k++]=b;g[k++]=c;g[k++]=d;this.Gi=k};e.prototype.Wc=
function(a){if(this.Tj!==a){if(!this.ib[a]){if(0===this.Tj)return;a=0}var b=this.Hc();b.type=9;this.Tj=b.oc=a;this.hc=this.Lb=!1}};e.prototype.sk=function(a){a=this.ib[a];return!(!a.fh&&!a.eh)};e.prototype.Cq=function(a){a=this.ib[a];return!!(a.fh||a.eh||a.Po)};e.prototype.Bq=function(a){return this.ib[a].Jd};e.prototype.ZB=function(a){a=this.ib[a];return 0!==a.Ul||0!==a.Vl};e.prototype.HA=function(a){return this.ib[a].Ul};e.prototype.IA=function(a){return this.ib[a].Vl};e.prototype.JA=function(a,
b){return this.ib[a].ja[b][2]};e.prototype.qn=function(a){return this.ib[a].Fo};e.prototype.Li=function(a,b,c,d,k,g,l,f,e,v,h,t,n,m,q){var y=this.ib[this.Tj],p,w;if(y.aB||q.length){p=this.Hc();p.type=10;p.la?jc(this.rd,p.la):p.la=ic();w=p.la;w[0]=b;w[1]=c;w[2]=d;w[3]=k;w[4]=g;w[5]=l;w[6]=f;w[7]=e;w[8]=v;w[9]=h;w[10]=t;w[11]=n;w[12]=m;y.bk?p.Qd=a:p.Qd=null;if(q.length)for(c=p.lv,c.length=q.length,a=0,b=q.length;a<b;a++)c[a]=q[a];this.hc=this.Lb=!1}};e.prototype.clear=function(a,b,c,d){var k=this.Hc();
k.type=7;k.oc=0;k.la||(k.la=ic());k.la[0]=a;k.la[1]=b;k.la[2]=c;k.la[3]=d;this.hc=this.Lb=!1};e.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var k=this.Hc();k.type=7;k.oc=1;k.la||(k.la=ic());k.la[0]=a;k.la[1]=b;k.la[2]=c;k.la[3]=d;this.hc=this.Lb=!1}};e.prototype.av=function(a){if(this.Qa&&(a=!!a,this.Jj!==a)){var b=this.Hc();b.type=14;b.oc=a?1:0;this.hc=this.Lb=!1;this.Jj=a;this.vn=null;this.Jj?this.Wc(2):this.Wc(0)}};e.prototype.Zu=function(a){if(this.Qa){var b=this.Hc();b.type=13;b.oc=
a?1:0;this.hc=this.Lb=!1}};e.prototype.Rs=function(){jc(this.Rp,m);this.Md();this.vd();var a=this.width/2,b=this.height/2;this.Ii(-a,b,a,b,a,-b,-a,-b);jc(m,this.rd);this.vd()};e.prototype.Yu=function(a,b,c){this.Wc(3);var d=this.Hc();d.type=12;d.la||(d.la=ic());d.la[0]=a;d.la[1]=b;d.la[2]=c;d.la[3]=1;this.hc=this.Lb=!1};e.prototype.uC=function(){this.Wc(0)};e.prototype.hC=function(){this.Wc(2)};e.prototype.YB=function(){this.qe();this.K.flush()};var n=[],f={};e.prototype.bz=function(){R(n);f={}};
e.prototype.ig=function(a,b,c,d){b=!!b;c=!!c;var k=a.src+","+b+","+c+(b?",undefined":""),g=null;if("undefined"!==typeof a.src&&f.hasOwnProperty(k))return g=f[k],g.wl++,g;this.qe();var l=this.K,e=ma(a.width)&&ma(a.height),g=l.createTexture();l.bindTexture(l.TEXTURE_2D,g);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=l.RGBA,v=l.RGBA,h=l.UNSIGNED_BYTE;if(d&&!this.df)switch(d){case 1:v=m=l.RGB;break;case 2:h=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:v=m=
l.RGB,h=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!e&&b){d=document.createElement("canvas");d.width=na(a.width);d.height=na(a.height);var t=d.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=c:(t.webkitImageSmoothingEnabled=c,t.mozImageSmoothingEnabled=c,t.msImageSmoothingEnabled=c);t.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,0,m,v,h,d)}else l.texImage2D(l.TEXTURE_2D,0,m,v,h,a);b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,
l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),(e||2<=this.version)&&this.Js?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,
l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.hg=null;g.Bg=a.width;g.Ag=a.height;g.wl=1;g.xs=k;n.push(g);return f[k]=g};e.prototype.$c=function(a,b,c,d,k){this.qe();var g=this.K;this.df&&(d=!1);var l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,a,b,0,g.RGBA,d?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);k?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,
g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,c?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,c?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.hg=null;l.Bg=a;l.Ag=b;n.push(l);return l};e.prototype.Sv=function(a,b,c){this.qe();var d=this.K;this.df&&(c=!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,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(k){console&&console.error&&console.error("Error updating WebGL texture: ",k)}d.bindTexture(d.TEXTURE_2D,null);this.hg=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.wl&&1<a.wl?a.wl--:(this.qe(),a===this.hg&&(this.K.bindTexture(this.K.TEXTURE_2D,null),this.hg=null),a===this.Xg&&(this.K.activeTexture(this.K.TEXTURE1),this.K.bindTexture(this.K.TEXTURE_2D,null),this.K.activeTexture(this.K.TEXTURE0),
this.Xg=null),Ea(n,a),"undefined"!==typeof a.xs&&delete f[a.xs],this.K.deleteTexture(a)))};e.prototype.Nd=function(a){if(a!==this.vn){var b=this.Hc();b.type=6;this.vn=b.Qd=a;this.hc=this.Lb=!1}};lb=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.nd=(this.zm=/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.uc=!!a.dc;this.nt="undefined"!==typeof window.AppMobi||
this.uc;this.ad=!!window.c2cocoonjs;this.Fd=!!window.c2ejecta;this.ad&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Fd&&(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.Ea=this.uc||this.ad||this.Fd;this.Lj=
/edge\//i.test(navigator.userAgent);this.df=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Lj;this.qt=/tizen/i.test(navigator.userAgent);this.Ij=/android/i.test(navigator.userAgent)&&!this.qt&&!this.df&&!this.Lj;this.yt=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.df&&!this.Lj;this.sB=/ipad/i.test(navigator.userAgent);this.ki=this.yt||this.sB||this.Fd;this.Fp=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.df&&!this.Lj;this.mt=/amazonwebappplatform/i.test(navigator.userAgent);this.kB=/firefox/i.test(navigator.userAgent);this.oB=/safari/i.test(navigator.userAgent)&&!this.Fp&&!this.df&&!this.Lj;this.pB=/windows/i.test(navigator.userAgent);this.Ip="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.tt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.rB=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Nj=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Mp=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Cm=!!window.cr_windows10;this.Lp=this.tt||this.rB||this.Mp||this.Cm;this.iB=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.xm=this.Ij&&!this.Fp&&!this.zm&&!this.kB&&!this.mt&&!this.Ea;this.devicePixelRatio=
1;this.we=this.nd||this.zm||this.nt||this.ad||this.Ij||this.ki||this.Nj||this.Mp||this.iB||this.qt||this.Fd;this.we||(this.we=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Bm=!!(this.ki&&this.nd&&window.webkit);"undefined"===typeof cr_is_preview||this.Ip||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ip=!0);this.canvas=a;this.zl=document.getElementById("c2canvasdiv");
this.D=this.K=null;this.qp="(unavailable)";this.Qa=!1;this.Ig=0;this.Ta=null;this.cm=!1;this.su=this.tu=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.uc&&(window.c2runtime=this);this.Ip&&(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.xm&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.W=this.width;this.V=this.height;this.Il=this.width;this.qj=this.height;this.pi=window.innerWidth;this.oi=window.innerHeight;this.ca=!0;this.Mj=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.eb=[];this.ri={};this.dd=[];this.Yo={};
this.We=[];this.Zi=[];this.ao=[];this.My=[];this.Ny=[];this.At=this.sv=null;this.Gg={};this.Hp=this.ag=!1;this.od=0;this.Gp=this.Kp=!1;this.$d=[];this.Kj=!1;this.Im=this.Oq="";this.Pb=null;this.ef="";this.Kk=this.pv=!1;this.$l=[];this.Hg=this.Wf=0;this.iu=30;this.Oo=this.fk=0;this.yh=1;this.zb=new $a;this.Cf=new $a;this.Vm=this.km=this.Mg=this.ge=this.Zg=this.cp=this.Fm=0;this.Zd=null;this.Rl=[];this.Xo=[];this.Tl=-1;this.$p=[[]];this.jr=this.Nm=0;this.rn(null);this.bq=[];this.Pm=-1;this.nu=this.kk=
0;this.Tp=!0;this.vj=0;this.Lk=[];this.fr=this.Fq=-1;this.eg=!0;this.Lm=0;this.Am=!1;this.wC=0;this.Gh=null;this.Ya=this.tm=!1;this.ru=new ea;this.lq=new ea;this.mq=new ea;this.ph=[];this.fe=new bb([]);this.$q=new bb([]);this.Kf=[];this.Zh={};this.Sf={};this.If={};this.Yi={};this.us={};this.Nt=this.Hm=this.Bb=this.Ob=this.Mt=this.Gm=this.Aa=null;this.Wi=this.Np=!1;this.ep=[null,null];this.Vh=0;this.$o="";this.of={};this.Ik=this.jg=null;this.rv="";this.Um=[];this.gC()}}function p(a,d){return 128>=
d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function r(){try{return!!window.indexedDB}catch(a){return!1}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,d,b,h){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=h;c.onsuccess=function(c){c=c.target.result;c.onerror=h;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=b}}catch(k){h(k)}}function n(a,d,b){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=
q;h.onerror=b;h.onsuccess=function(h){h=h.target.result;h.onerror=b;var c=h.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?d(c.result.data):d(null)}}}catch(c){b(c)}}function f(){ha("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 ea||a[d]&&"undefined"!==
typeof a[d].BD||"spriteCreatedDestroyCallback"!==d&&(b[d]=a[d]);return b}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.gC=function(){var a=this;if(this.Bm)this.oA(function(d){a.Zj(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.Nj?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var b="data.js";if(this.tt||this.Nj||this.Mp||
this.Cm)b="data.json";d.open("GET",b,!0);var h=!1;if(!this.Ea&&"response"in d&&"responseType"in d)try{d.responseType="json",h="json"===d.responseType}catch(c){h=!1}if(!h&&"responseType"in d)try{d.responseType="text"}catch(k){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(l){}this.Nj?d.onreadystatechange=function(){4===d.readyState&&a.Zj(JSON.parse(d.responseText))}:(d.onload=function(){if(h)a.Zj(d.response);else if(a.Fd){var b=d.responseText,b=b.substr(b.indexOf("{"));
a.Zj(JSON.parse(b))}else a.Zj(JSON.parse(d.responseText))},d.onerror=function(a){ia("Error requesting "+b+":");ia(a)});d.send()}};e.prototype.eB=function(){var a=this,d,b,h,c,k,l,g,t,f;this.Vg=(!this.Ea||this.Fd||this.nd)&&this.FC&&!this.xm;0===this.Bc&&this.ki&&(this.Vg=!1);this.devicePixelRatio=this.Vg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.qc();0<this.Bc&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.EB();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.ht();a.D.rh(a.D.width,a.D.height,!0);a.Ob=null;a.Bb=null;a.ep[0]=null;a.ep[1]=null;a.GB();a.ca=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Iz&&(this.ad||this.Fd||!this.Ea)&&(d={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Ij||(this.K=this.canvas.getContext("webgl2",d)),this.K||(this.K=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d)))}catch(e){}if(this.K){if(d=this.K.getExtension("WEBGL_debug_renderer_info"))this.qp=this.K.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.K.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Qa&&(this.qp+=" [front-to-back enabled]");this.Ea||(this.kc=document.createElement("canvas"),
jQuery(this.kc).appendTo(this.canvas.parentNode),this.kc.oncontextmenu=function(){return!1},this.kc.onselectstart=function(){return!1},this.kc.width=Math.round(this.Il*this.devicePixelRatio),this.kc.height=Math.round(this.qj*this.devicePixelRatio),jQuery(this.kc).css({width:this.Il+"px",height:this.qj+"px"}),this.Mu(),this.wq=this.kc.getContext("2d"));this.D=new lb(this.K,this.we,this.Qa);this.D.rh(this.canvas.width,this.canvas.height);this.D.Js=0!==this.Bz;this.Ta=null;d=0;for(b=this.G.length;d<
b;d++)for(k=this.G[d],h=0,c=k.ea.length;h<c;h++)g=k.ea[h],g.Gb=this.D.op(g.id),g.Jd=this.D.Bq(g.Gb),this.Wi=this.Wi||this.D.sk(g.Gb);d=0;for(b=this.dd.length;d<b;d++){t=this.dd[d];h=0;for(c=t.ea.length;h<c;h++)g=t.ea[h],g.Gb=this.D.op(g.id),g.Jd=this.D.Bq(g.Gb);t.je();h=0;for(c=t.fa.length;h<c;h++){f=t.fa[h];k=0;for(l=f.ea.length;k<l;k++)g=f.ea[k],g.Gb=this.D.op(g.id),g.Jd=this.D.Bq(g.Gb),this.Wi=this.Wi||this.D.sk(g.Gb);f.je()}}}else{if(0<this.Bc&&this.uc){this.canvas=null;document.oncontextmenu=
function(){return!1};document.onselectstart=function(){return!1};this.Ta=AppMobi.canvas.getContext("2d");try{this.Ta.samplingMode=this.Na?"smooth":"sharp",this.Ta.globalScale=1,this.Ta.HTML5CompatibilityMode=!0,this.Ta.imageSmoothingEnabled=this.Na}catch(v){}0!==this.width&&0!==this.height&&(this.Ta.width=this.width,this.Ta.height=this.height)}this.Ta||(this.ad?(d={antialias:!!this.Na,alpha:!0},this.Ta=this.canvas.getContext("2d",d)):(d={alpha:!0},this.Ta=this.canvas.getContext("2d",d)),this.Cn(this.Ta,
this.Na));this.wq=this.kc=null}this.yv=function(d){a.Ma(!1,d)};window==window.top||this.Ea||this.Lp||this.Nj||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ad&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.Im="__c2_continuouspreview",this.Kk=!0),this.OB&&
!this.we&&(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.mg()});this.Ea||(d=function(a){if(kb(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.Bc&&this.Vg&&1<this.devicePixelRatio&&this.setSize(this.Db,this.Cb,!0);this.Hv();this.YA();this.go();this.O={}};e.prototype.setSize=function(a,d,b){var h=0,c=0,k=0,l=0,l=0;if(this.pi!==a||this.oi!==d||b){this.pi=a;this.oi=d;var g=this.Bc;if((k=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Am)&&!this.nd)||
0!==this.Bc||b)k&&(g=this.Vh),b=this.devicePixelRatio,4<=g?(5===g&&1!==b&&(a+=1,d+=1),k=this.Db/this.Cb,a/d>k?(k*=d,5===g?(l=k*b/this.Db,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),k=this.Db*l/b,l=this.Cb*l/b,h=(a-k)/2,c=(d-l)/2,a=k,d=l):(h=(a-k)/2,a=k)):(l=a/k,5===g?(l=l*b/this.Cb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),k=this.Db*l/b,l=this.Cb*l/b,h=(a-k)/2,c=(d-l)/2,a=k):c=(d-l)/2,d=l)):k&&0===g&&(h=Math.floor((a-this.Db)/2),c=Math.floor((d-this.Cb)/2),a=this.Db,d=this.Cb),2>g&&(this.jj=
b),this.Il=Math.round(a),this.qj=Math.round(d),this.width=Math.round(a*b),this.height=Math.round(d*b),this.ca=!0,this.Tv?(this.W=this.width,this.V=this.height,this.kd=!0):this.width<this.Db&&this.height<this.Cb||1===g?(this.W=this.width,this.V=this.height,this.kd=!0):(this.W=this.Db,this.V=this.Cb,this.kd=!1,2===g?(k=this.Db/this.Cb,g=this.pi/this.oi,g<k?this.W=this.V*g:g>k&&(this.V=this.W/g)):3===g&&(k=this.Db/this.Cb,g=this.pi/this.oi,g>k?this.W=this.V*g:g<k&&(this.V=this.W/g))),this.zl&&!this.Ea&&
(jQuery(this.zl).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(h)+"px","margin-top":Math.floor(c)+"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.Fd?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+
"px"):this.Vg&&!this.Ea&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.kc&&(this.kc.width=Math.round(a*b),this.kc.height=Math.round(d*b),this.kc.style.width=this.Il+"px",this.kc.style.height=this.qj+"px"),this.D&&this.D.rh(Math.round(a*b),Math.round(d*b)),this.uc&&this.Ta&&(this.Ta.width=Math.round(a),this.Ta.height=Math.round(d)),this.Ta&&this.Cn(this.Ta,this.Na),this.Hv(),this.yt&&!this.nd&&window.scrollTo(0,0)}};e.prototype.Hv=function(){if(this.Ry&&
0!==this.vq){var a="portrait";2===this.vq&&(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.EB=function(){this.D.bz();this.Np=
!0;var a,d,b;a=0;for(d=this.G.length;a<d;a++)b=this.G[a],b.nh&&b.nh()};e.prototype.GB=function(){this.Np=!1;var a,d,b;a=0;for(d=this.G.length;a<d;a++)b=this.G[a],b.Di&&b.Di()};e.prototype.Mu=function(){if(!this.Ea){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Am)&&!this.nd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.kc).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var d;if(a&&!this.Mj)for(ha("[Construct 2] Suspending"),this.Mj=!0,-1!==this.Fq&&c&&c(this.Fq),-1!==this.fr&&clearTimeout(this.fr),a=0,d=this.Lk.length;a<d;a++)this.Lk[a](!0);else if(!a&&this.Mj){ha("[Construct 2] Resuming");this.Mj=!1;this.Fm=Wa();this.Zg=Wa();a=this.fk=this.km=0;for(d=this.Lk.length;a<d;a++)this.Lk[a](!1);this.Ma(!1)}};e.prototype.ns=function(a){this.Lk.push(a)};
e.prototype.Ff=function(a){return this.Um[a]};e.prototype.Zj=function(a){a&&a.project||ia("Project model unavailable");a=a.project;this.name=a[0];this.Qs=a[1];this.Bc=a[12];this.Db=a[10];this.Cb=a[11];this.Hu=this.Db/2;this.Iu=this.Cb/2;this.Ea&&!this.Fd&&(4<=a[12]||0===a[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Bc=3);this.rr=a[18];this.kg=a[19];if(0===this.kg){var d=new Image;d.crossOrigin="anonymous";this.bv(d,
"loading-logo.png");this.jg={Om:d}}else if(4===this.kg){d=new Image;d.src="";var b=new Image;b.src="";var h=new Image;h.src="";var k=new Image;k.src="";var c=new Image;c.src="";var l=new Image;l.src="";var g=new Image;g.src="";var t=new Image;t.src="";var f=new Image;f.src="";var e=new Image;e.src="";var v=new Image;v.src="";var n=new Image;n.src="";this.jg={Om:[d,b,h,k],VB:[c,l,g,t],IC:[f,e,v,n]}}this.kk=a[21];this.Um=nc();this.Je=new X(this);d=0;for(b=a[2].length;d<b;d++)g=a[2][d],h=this.Ff(g[0]),
mb(g,h.prototype),t=new h(this),t.Kn=g[1],t.dg=g[2],t.GD=g[5],t.ku=g[9],t.H&&t.H(),this.plugins.push(t);this.Um=nc();d=0;for(b=a[3].length;d<b;d++){g=a[3][d];c=this.Ff(g[1]);t=null;h=0;for(k=this.plugins.length;h<k;h++)if(this.plugins[h]instanceof c){t=this.plugins[h];break}f=new t.S(t);f.name=g[0];f.M=g[2];f.Ep=g[3].slice(0);f.HC=g[3].length;f.Sy=g[4];f.tA=g[5];f.ra=g[11];f.M?(f.jh=[],f.Xe=this.vj++,f.cb=null):(f.jh=null,f.Xe=-1,f.cb=[]);f.Yl=null;f.Th=null;f.Ks=null;f.ic=!1;f.Zc=null;g[6]?(f.Si=
g[6][0],f.Ok=g[6][1],f.xh=g[6][2]):(f.Si=null,f.Ok=0,f.xh=0);g[7]?f.Yc=g[7]:f.Yc=null;f.index=d;f.k=[];f.Nl=[];f.wf=[new nb(f)];f.pe=0;f.Dd=null;f.gz=0;f.Qi=!0;f.bo=ob;f.Xs=pb;f.FA=qb;f.ba=rb;f.uk=sb;f.vk=vb;f.pg=wb;f.mm=xb;f.gp=yb;f.kp=zb;f.yd=Ab;f.lp=Bb;f.mj=new eb(this.Db,this.Cb);f.nl=!0;f.ol=!1;f.O={};f.toString=Cb;f.eb=[];h=0;for(k=g[8].length;h<k;h++){e=g[8][h];v=this.Ff(e[1]);n=null;c=0;for(l=this.eb.length;c<l;c++)if(this.eb[c]instanceof v){n=this.eb[c];break}n||(n=new v(this),n.Tm=[],n.Sm=
new ea,n.H&&n.H(),this.eb.push(n),oc&&n instanceof oc&&(this.sv=n),pc&&n instanceof pc&&(this.At=n));-1===n.Tm.indexOf(f)&&n.Tm.push(f);c=new n.S(n,f);c.name=e[0];c.ra=e[2];c.H();f.eb.push(c)}f.global=g[9];f.Jp=g[10];f.ea=[];h=0;for(k=g[12].length;h<k;h++)f.ea.push({id:g[12][h][0],name:g[12][h][1],Gb:-1,Jd:!1,$a:!0,index:h});f.Vn=g[13];this.rr&&!f.M&&!f.Jp&&t.dg||f.H();f.name&&(this.types[f.name]=f);this.G.push(f);t.Kn&&(h=new t.N(f),h.uid=this.kk++,h.Qu=this.nu++,h.Tg=0,h.Bj=Db,h.toString=Eb,h.A=
g[14],h.H(),f.k.push(h),this.of[h.uid.toString()]=h)}d=0;for(b=a[4].length;d<b;d++)for(c=a[4][d],l=this.G[c[0]],h=1,k=c.length;h<k;h++)g=this.G[c[h]],g.cb.push(l),l.jh.push(g);d=0;for(b=a[28].length;d<b;d++){c=a[28][d];l=[];h=0;for(k=c.length;h<k;h++)l.push(this.G[c[h]]);h=0;for(k=l.length;h<k;h++)l[h].ic=!0,l[h].Zc=l}if(0<this.vj)for(d=0,b=this.G.length;d<b;d++)if(g=this.G[d],!g.M&&g.cb.length){g.Yl=Array(this.vj);g.Th=Array(this.vj);g.Ks=Array(this.vj);f=[];h=n=v=e=0;for(k=g.cb.length;h<k;h++)for(t=
g.cb[h],g.Yl[t.Xe]=e,e+=t.HC,g.Th[t.Xe]=v,v+=t.Sy,g.Ks[t.Xe]=n,n+=t.tA,c=0,l=t.ea.length;c<l;c++)f.push(wa({},t.ea[c]));g.ea=f.concat(g.ea);h=0;for(k=g.ea.length;h<k;h++)g.ea[h].index=h}d=0;for(b=a[5].length;d<b;d++)g=a[5][d],h=new Fb(this,g),this.ri[h.name]=h,this.dd.push(h);d=0;for(b=a[6].length;d<b;d++)g=a[6][d],h=new Gb(this,g),this.Yo[h.name]=h,this.We.push(h);d=0;for(b=this.We.length;d<b;d++)this.We[d].qb();d=0;for(b=this.We.length;d<b;d++)this.We[d].nr();d=0;for(b=this.ao.length;d<b;d++)this.ao[d].qb();
R(this.ao);this.Py=a[7];this.$o=a[8];this.vc=a[9];this.jj=1;this.Iz=a[13];this.Na=a[14];this.As=a[15];this.FC=a[17];this.vq=a[20];this.Ry=0<this.vq;this.OB=a[22];this.kd=this.Tv=a[23];this.Bz=a[24];this.WB=a[25];this.Qa=a[27]&&!this.df;this.Pn=Date.now();R(this.Um);this.eB()};var d=!1,k=0,g=[];e.prototype.cC=function(a,d){function b(){k--;h.eu()}var h=this;a.addEventListener("load",b);a.addEventListener("error",b);g.push([a,d]);this.eu()};e.prototype.eu=function(){for(var a;g.length&&100>k;)k++,a=
g.shift(),this.bv(a[0],a[1])};e.prototype.Xk=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){d=a.ws=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Fd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(d){a.src=d},function(h){d=a.ws=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",this.cC(a,b)));this.Zi.push(a)};e.prototype.qA=function(a){var d,b;d=0;
for(b=this.Zi.length;d<b;d++)if(this.Zi[d].cz===a)return this.Zi[d];return null};var l=0,M=!1;e.prototype.YA=function(){this.Gh&&(l=this.Gh.sC(this.Py))};e.prototype.rs=function(){var a=l,d=0,b=0,h=!0,c,k,b=0;for(c=this.Zi.length;b<c;b++){k=this.Zi[b];var g=k.Gl;if(!g||0>=g)g=5E4;a+=g;k.src&&(k.complete||k.loaded)&&!k.ws?d+=g:h=!1}h&&this.WB&&this.Gh&&(M||(this.Gh.xC(),M=!0),b=this.Gh.GA(),d+=b,b<l&&(h=!1));this.de=0==a?1:d/a;return h};var P=!1;e.prototype.go=function(){if(this.Ta||this.D){var a=
this.Ta||this.wq;this.kc&&this.Mu();var h=window.innerWidth,k=window.innerHeight;this.pi===h&&this.oi===k||this.setSize(h,k);this.de=0;this.Lt=-1;var c=this;if(this.rs()&&(4!==this.kg||P))this.ZA();else{k=Date.now()-this.Pn;if(a){var g=this.width,l=this.height,h=this.devicePixelRatio;if(3>this.kg&&(this.ad||500<=k&&this.Lt!=this.de)){a.clearRect(0,0,g,l);var k=g/2,l=l/2,g=0===this.kg&&this.jg.Om.complete,f=40*h,t=0,e=80*h,v;if(g){var n=this.jg.Om,e=n.width*h;v=n.height*h;f=e/2;t=v/2;a.drawImage(n,
z(k-f),z(l-t),e,v)}1>=this.kg?(k=z(k-f)+.5,l=z(l+(t+(g?12*h:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(k,l,Math.floor(e*this.de),6*h),a.strokeStyle="black",a.strokeRect(k,l,e,6*h),a.strokeStyle="white",a.strokeRect(k-1*h,l-1*h,e+2*h,8*h)):2===this.kg&&(a.font=this.Fd?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.UD="middle",h=Math.round(100*this.de)+"%",g=a.measureText?a.measureText(h):null,a.fillText(h,k-(g?g.width:0)/2,l));this.Lt=this.de}else if(4===this.kg){this.Gz(a);b?b(function(){c.go()}):
setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.ad?10:100)}}};var v=-1,h="undefined"===typeof cr_is_preview?200:0,t=!0,K=!1,Q=0,B=0,y="undefined"===typeof cr_is_preview?3E3:0,x=null,w=null,H=0;e.prototype.Gz=function(a){if(!P){for(var b=Math.ceil(this.width),k=Math.ceil(this.height),c=this.jg.Om,g=this.jg.VB,l=this.jg.IC,f=0;4>f;++f)if(!c[f].complete||!g[f].complete||!l[f].complete)return;0===H&&(v=Date.now());var f=Date.now(),e=!1,n=a,m,q;t||K?(a.clearRect(0,0,b,k),x&&
x.width===b&&x.height===k||(x=document.createElement("canvas"),x.width=b,x.height=k,w=x.getContext("2d")),n=w,e=!0,t&&1===H&&(v=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,b,k);256<this.qj?(m=Fa(.22*k,105,.6*b),q=.25*m,n.drawImage(p(g,m),.5*b-m/2,.2*k-q/2,m,q),q=m=Math.min(.395*k,.95*b),n.drawImage(p(c,m),.5*b-m/2,.485*k-q/2,m,q),m=Fa(.22*k,105,.6*b),q=.25*m,n.drawImage(p(l,m),.5*b-m/2,.868*k-q/2,m,q),n.fillStyle="#3C3C3C",m=b,q=Math.max(.005*k,2),n.fillRect(0,.8*k-q/2,m,q),
n.fillStyle=d?"red":"#E0FF65",m=b*this.de,n.fillRect(.5*b-m/2,.8*k-q/2,m,q)):(q=m=.55*k,n.drawImage(p(c,m),.5*b-m/2,.45*k-q/2,m,q),n.fillStyle="#3C3C3C",m=b,q=Math.max(.005*k,2),n.fillRect(0,.85*k-q/2,m,q),n.fillStyle=d?"red":"#E0FF65",m=b*this.de,n.fillRect(.5*b-m/2,.85*k-q/2,m,q));e&&(t?a.globalAlpha=0===H?0:Math.min((f-v)/300,1):K&&(a.globalAlpha=Math.max(1-(f-B)/300,0)),a.drawImage(x,0,0,b,k));t&&300<=f-v&&2<=H&&(t=!1,Q=f);!t&&f-Q>=y&&!K&&1<=this.de&&(K=!0,B=f);if(K&&f-B>=300+h||"undefined"!==
typeof cr_is_preview&&1<=this.de&&500>Date.now()-v)P=!0,K=t=!1,this.jg=w=x=null;++H}};e.prototype.ZA=function(){this.kc&&(this.canvas.parentNode.removeChild(this.kc),this.kc=this.wq=null);this.Pn=Date.now();this.Zg=Wa();var a,d,b;if(this.rr)for(a=0,d=this.G.length;a<d;a++)b=this.G[a],b.M||b.Jp||!b.qa.dg||b.H();else this.eg=!1;a=0;for(d=this.dd.length;a<d;a++)this.dd[a].dz();2<=this.Bc&&(a=this.Db/this.Cb,d=this.width/this.height,this.jj=2!==this.Bc&&d>a||2===this.Bc&&d<a?this.height/this.Cb:this.width/
this.Db);this.Qs?this.ri[this.Qs].Yq():this.dd[0].Yq();this.rr||(this.Lm=1,this.trigger(X.prototype.n.po,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.G.length;a<d;a++)b=this.G[a],b.uu&&b.uu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ma(!1);this.uc&&AppMobi.webview.execute("onGameReady();")};e.prototype.Ma=function(a,d,h){if(this.Aa){var k=
Wa();if(h||!this.Mj||a){a||(b?this.Fq=b(this.yv):this.fr=setTimeout(this.yv,this.we?1:16));d=d||k;var c=this.Bc;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.nd)||this.Am)&&0<this.Vh&&(c=this.Vh);if(0<c){var c=window.innerWidth,g=window.innerHeight;this.pi===c&&this.oi===g||this.setSize(c,g)}this.Ea||(h?this.cm||(this.cm=!0):this.cm?(this.cm=!1,0===this.Bc&&this.setSize(Math.round(this.tu/this.devicePixelRatio),Math.round(this.su/
this.devicePixelRatio),!0)):(this.tu=this.width,this.su=this.height));this.eg&&(h=this.rs(),this.Lm=this.de,h&&(this.eg=!1,this.de=1,this.trigger(X.prototype.n.po,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.wB(d);!this.ca&&!this.ad||this.Np||this.Kk||a||(this.ca=!1,this.D?this.xb():this.Ac(),this.Ik&&(this.canvas&&this.canvas.toDataURL&&(this.rv=this.canvas.toDataURL(this.Ik[0],this.Ik[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.rv),this.trigger(X.prototype.n.kx,null)),this.Ik=
null));this.ED||(this.ge++,this.Mg++,this.km++);this.fk+=Wa()-k}}};e.prototype.wB=function(a){var d,b,h,k,c,g,l,f;1E3<=a-this.Zg&&(this.Zg+=1E3,1E3<=a-this.Zg&&(this.Zg=a),this.cp=this.km,this.km=0,this.Oo=this.fk,this.fk=0);d=0;0!==this.Fm&&(d=a-this.Fm,0>d&&(d=0),this.Hg=d/=1E3,.5<this.Hg?this.Hg=0:this.Hg>1/this.iu&&(this.Hg=1/this.iu));this.Fm=a;this.Wf=this.Hg*this.yh;this.zb.add(this.Wf);this.Cf.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Am)&&!this.nd;2<=this.Bc||a&&0<this.Vh?(d=this.Db/this.Cb,b=this.width/this.height,h=this.Bc,a&&0<this.Vh&&(h=this.Vh),this.jj=2!==h&&b>d||2===h&&b<d?this.height/this.Cb:this.width/this.Db,this.Aa&&(this.Aa.Pq(this.Aa.scrollX),this.Aa.Qq(this.Aa.scrollY))):this.jj=this.Vg?this.devicePixelRatio:1;this.qc();this.od++;this.Je.kC();this.od--;this.qc();this.od++;b=this.ru.Bf();a=0;for(d=b.length;a<d;a++)b[a].PD();a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.M&&(g.eb.length||g.cb.length))for(b=
0,h=g.k.length;b<h;b++)for(l=g.k[b],k=0,c=l.X.length;k<c;k++)l.X[k].Ma();a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.M&&(g.eb.length||g.cb.length))for(b=0,h=g.k.length;b<h;b++)for(l=g.k[b],k=0,c=l.X.length;k<c;k++)f=l.X[k],f.Nu&&f.Nu();b=this.lq.Bf();a=0;for(d=b.length;a<d;a++)b[a].Ma();this.od--;this.$A();for(a=0;this.Zd&&10>a++;)this.Is(this.Zd);a=0;for(d=this.We.length;a<d;a++)this.We[a].vp=!1;this.Aa.Kg&&this.Aa.Kg.Fb();R(this.ph);this.Tp=!1;this.od++;a=0;for(d=this.G.length;a<d;a++)if(g=
this.G[a],!g.M&&(g.eb.length||g.cb.length))for(b=0,h=g.k.length;b<h;b++)for(l=g.k[b],k=0,c=l.X.length;k<c;k++)f=l.X[k],f.Pk&&f.Pk();b=this.mq.Bf();a=0;for(d=b.length;a<d;a++)b[a].Pk();this.od--};e.prototype.mg=function(){var a,d,b,h,k,c,g,l,f;a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.M)for(b=0,h=g.k.length;b<h;b++)if(l=g.k[b],l.mg&&l.mg(),l.X)for(k=0,c=l.X.length;k<c;k++)f=l.X[k],f.mg&&f.mg()};e.prototype.Is=function(a){var d=this.Aa;this.Aa.yC();var b,h,k;if(this.D)for(b=0,h=this.G.length;b<
h;b++)k=this.G[b],k.M||!k.Vi||k.global&&0!==k.k.length||-1!==a.Gj.indexOf(k)||k.Vi();d==a&&R(this.Je.Xc);R(this.ph);this.Vu(!0);a.Yq();this.Vu(!1);this.Tp=this.ca=!0;this.qc()};e.prototype.Vu=function(a){var d,b,h,k,c,g,l,f,t;d=0;for(b=this.eb.length;d<b;d++)h=this.eb[d],a?h.lk&&h.lk():h.nk&&h.nk();d=0;for(b=this.G.length;d<b;d++)if(h=this.G[d],h.global||h.qa.Kn)for(k=0,c=h.k.length;k<c;k++)if(g=h.k[k],a?g.lk&&g.lk():g.nk&&g.nk(),g.X)for(l=0,f=g.X.length;l<f;l++)t=g.X[l],a?t.lk&&t.lk():t.nk&&t.nk()};
e.prototype.vg=function(a){this.lq.add(a)};e.prototype.BC=function(a){this.mq.add(a)};e.prototype.$f=function(a){return a&&-1!==a.jk?this.Hg*a.jk:this.Wf};e.prototype.Ac=function(){this.Aa.Ac(this.Ta);this.uc&&this.Ta.present()};e.prototype.xb=function(){this.Qa&&(this.Ig=1,this.Aa.Vf(this.D));this.Aa.xb(this.D);this.D.YB()};e.prototype.ll=function(a){a&&this.Rl.push(a)};e.prototype.Uu=function(a){Ea(this.Rl,a)};e.prototype.Pg=function(a){a=a.toString();return this.of.hasOwnProperty(a)?this.of[a]:
null};var G=[];e.prototype.le=function(a){var d,b;d=a.type.name;var h=null;if(this.Gg.hasOwnProperty(d)){if(h=this.Gg[d],h.contains(a))return}else h=G.length?G.pop():new ea,this.Gg[d]=h;h.add(a);this.ag=!0;if(a.ic)for(d=0,b=a.siblings.length;d<b;d++)this.le(a.siblings[d]);this.Hp&&h.Xi.push(a);this.Gp||(this.od++,this.trigger(Object.getPrototypeOf(a.type.qa).n.Hr,a),this.od--)};e.prototype.qc=function(){if(this.ag){var a,d,b,h,k,c;this.Hp=!0;b=0;for(k=this.$d.length;b<k;++b)for(a=this.$d[b],d=a.type,
d.k.push(a),h=0,c=d.cb.length;h<c;++h)d.cb[h].k.push(a),d.cb[h].Qi=!0;R(this.$d);this.Zw();Va(this.Gg);this.ag=this.Hp=!1}};e.prototype.Zw=function(){for(var a in this.Gg)this.Gg.hasOwnProperty(a)&&this.ew(this.Gg[a])};e.prototype.ew=function(a){var d=a.Bf(),b=d[0].type,h,k,c,g,l,f;Xa(b.k,a);b.Qi=!0;0===b.k.length&&(b.ol=!1);h=0;for(k=b.cb.length;h<k;++h)f=b.cb[h],Xa(f.k,a),f.Qi=!0;h=0;for(k=this.Je.Xc.length;h<k;++h)if(l=this.Je.Xc[h],l.Jc.hasOwnProperty(b.index)&&Xa(l.Jc[b.index].bf,a),!b.M)for(c=
0,g=b.cb.length;c<g;++c)f=b.cb[c],l.Jc.hasOwnProperty(f.index)&&Xa(l.Jc[f.index].bf,a);if(l=d[0].u){if(l.wd)for(c=l.k,h=0,k=c.length;h<k;++h)g=c[h],a.contains(g)&&(g.Fa(),l.nc.update(g,g.Uc,null),g.Uc.set(0,0,-1,-1));Xa(l.k,a);l.Dk(0)}for(h=0;h<d.length;++h)this.dw(d[h],b);a.clear();G.push(a);this.ca=!0};e.prototype.dw=function(a,d){var b,h,k;b=0;for(h=this.Rl.length;b<h;++b)this.Rl[b](a);a.Ad&&d.mj.update(a,a.Ad,null);(b=a.u)&&b.Ji(a,!0);if(a.X)for(b=0,h=a.X.length;b<h;++b)k=a.X[b],k.Id&&k.Id(),
k.behavior.Sm.remove(a);this.ru.remove(a);this.lq.remove(a);this.mq.remove(a);a.Id&&a.Id();this.of.hasOwnProperty(a.uid.toString())&&delete this.of[a.uid.toString()];this.Vm--;100>d.Nl.length&&d.Nl.push(a)};e.prototype.Hl=function(a,d,b,h){if(a.M){var k=z(Math.random()*a.jh.length);return this.Hl(a.jh[k],d,b,h)}return a.Dd?this.Tf(a.Dd,d,!1,b,h,!1):null};var C=[];e.prototype.Tf=function(a,d,b,h,k,c){var g,l,f,t;if(!a)return null;var e=this.G[a[1]],n=e.qa.dg;if(this.eg&&n&&!e.Jp||n&&!this.D&&11===
a[0][11])return null;var v=d;n||(d=null);var m;e.Nl.length?(m=e.Nl.pop(),m.mc=!0,e.qa.N.call(m,e)):(m=new e.qa.N(e),m.mc=!1);!b||c||this.of.hasOwnProperty(a[2].toString())?m.uid=this.kk++:m.uid=a[2];this.of[m.uid.toString()]=m;m.Qu=this.nu++;m.Tg=e.k.length;g=0;for(l=this.$d.length;g<l;++g)this.$d[g].type===e&&m.Tg++;m.Bj=Db;m.toString=Eb;f=a[3];if(m.mc)Va(m.O);else{m.O={};if("undefined"!==typeof cr_is_preview)for(m.kt=[],m.kt.length=f.length,g=0,l=f.length;g<l;g++)m.kt[g]=f[g][1];m.Nb=[];m.Nb.length=
f.length}g=0;for(l=f.length;g<l;g++)m.Nb[g]=f[g][0];if(n){var y=a[0];m.x=ja(h)?y[0]:h;m.y=ja(k)?y[1]:k;m.z=y[2];m.width=y[3];m.height=y[4];m.depth=y[5];m.q=y[6];m.opacity=y[7];m.Dc=y[8];m.Ec=y[9];m.rc=y[10];g=y[11];!this.D&&e.ea.length&&(m.rc=g);m.nj=gb(m.rc);this.K&&hb(m,m.rc,this.K);if(m.mc){g=0;for(l=y[12].length;g<l;g++)for(f=0,t=y[12][g].length;f<t;f++)m.fb[g][f]=y[12][g][f];m.Pa.set(0,0,0,0);m.Ad.set(0,0,-1,-1);m.Uc.set(0,0,-1,-1);m.$b.Ni(m.Pa);R(m.Ho)}else{m.fb=y[12].slice(0);g=0;for(l=m.fb.length;g<
l;g++)m.fb[g]=y[12][g].slice(0);m.Da=[];m.Hf=[];m.Hf.length=e.ea.length;m.Pa=new ua(0,0,0,0);m.Ad=new ua(0,0,-1,-1);m.Uc=new ua(0,0,-1,-1);m.$b=new va;m.Ho=[];m.F=Hb;m.Ly=Ib;m.ac=Jb;m.Fa=Nb;m.Pv=Ob;m.qr=Pb;m.ve=Qb}m.Ti=!1;m.Cv=0;m.Bv=0;m.Av=null;14===y.length&&(m.Ti=!0,m.Cv=y[13][0],m.Bv=y[13][1],m.Av=y[13][2]);g=0;for(l=e.ea.length;g<l;g++)m.Hf[g]=!0;m.uf=!0;m.je=Rb;m.je();m.Qv=!!m.Da.length;m.ul=!0;m.Lo=!0;e.nl=!0;m.visible=!0;m.jk=-1;m.u=d;m.ke=d.k.length;m.Ig=0;"undefined"===typeof m.Ha&&(m.Ha=
null);this.ca=m.Bd=!0}var K;R(C);g=0;for(l=e.cb.length;g<l;g++)C.push.apply(C,e.cb[g].eb);C.push.apply(C,e.eb);if(m.mc)for(g=0,l=C.length;g<l;g++){var q=C[g];K=m.X[g];K.mc=!0;q.behavior.N.call(K,q,m);y=a[4][g];f=0;for(t=y.length;f<t;f++)K.A[f]=y[f];K.H();q.behavior.Sm.add(m)}else for(m.X=[],g=0,l=C.length;g<l;g++)q=C[g],K=new q.behavior.N(q,m),K.mc=!1,K.A=a[4][g].slice(0),K.H(),m.X.push(K),q.behavior.Sm.add(m);y=a[5];if(m.mc)for(g=0,l=y.length;g<l;g++)m.A[g]=y[g];else m.A=y.slice(0);this.$d.push(m);
this.ag=!0;d&&(d.ij(m,!0),1!==d.Sc||1!==d.Tc)&&(e.ol=!0);this.Vm++;if(e.ic){if(m.ic=!0,m.mc?R(m.siblings):m.siblings=[],!b&&!c){g=0;for(l=e.Zc.length;g<l;g++)if(e.Zc[g]!==e){if(!e.Zc[g].Dd)return null;m.siblings.push(this.Tf(e.Zc[g].Dd,v,!1,n?m.x:h,n?m.y:k,!0))}g=0;for(l=m.siblings.length;g<l;g++)for(m.siblings[g].siblings.push(m),f=0;f<l;f++)g!==f&&m.siblings[g].siblings.push(m.siblings[f])}}else m.ic=!1,m.siblings=null;m.H();g=0;for(l=m.X.length;g<l;g++)m.X[g].UB&&m.X[g].UB();return m};e.prototype.yj=
function(a){var d,b;d=0;for(b=this.Aa.fa.length;d<b;d++){var h=this.Aa.fa[d];if(jb(h.name,a))return h}return null};e.prototype.Ze=function(a){a=z(a);0>a&&(a=0);a>=this.Aa.fa.length&&(a=this.Aa.fa.length-1);return this.Aa.fa[a]};e.prototype.Mo=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].ba().ka=!0};e.prototype.uk=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].uk()};e.prototype.vk=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].vk()};e.prototype.pg=function(a){var d,b;d=0;for(b=a.length;d<
b;d++)a[d].pg()};e.prototype.Lv=function(a){if(a.nl){var d,b,h=a.k;d=0;for(b=h.length;d<b;++d)h[d].qr();h=this.$d;d=0;for(b=h.length;d<b;++d)h[d].type===a&&h[d].qr();a.nl=!1}};e.prototype.ip=function(a,d,b,h){var k,c,g=a?1!==a.Sc||1!==a.Tc:!1;if(d.M)for(a=0,k=d.jh.length;a<k;++a)c=d.jh[a],g||c.ol?Ca(h,c.k):(this.Lv(c),c.mj.tn(b,h));else g||d.ol?Ca(h,d.k):(this.Lv(d),d.mj.tn(b,h))};e.prototype.bt=function(a,d,b,h){var k,c;k=0;for(c=d.length;k<c;++k)this.ip(a,d[k],b,h)};e.prototype.KA=function(a,d,
b){var h=this.sv;h&&this.bt(a,h.Tm,d,b)};e.prototype.DA=function(a,d,b){var h=this.At;h&&this.bt(a,h.Tm,d,b)};e.prototype.Ri=function(a,d,b,h){var k=a.ba(),c,g,l,f,t=this.ob().wb.sd,e,m,n;if(k.ka)for(h||(k.ka=!1,R(k.k)),c=0,f=a.k.length;c<f;c++)if(l=a.k[c],l.Fa(),e=l.u.nb(d,b,!0),m=l.u.nb(d,b,!1),l.ac(e,m)){if(h)return!1;k.k.push(l)}else t&&k.ma.push(l);else{g=0;n=t?k.ma:k.k;c=0;for(f=n.length;c<f;c++)if(l=n[c],l.Fa(),e=l.u.nb(d,b,!0),m=l.u.nb(d,b,!1),l.ac(e,m)){if(h)return!1;t?k.k.push(l):(k.k[g]=
k.k[c],g++)}h||(n.length=g)}a.yd();return h?!0:k.up()};e.prototype.pc=function(a,d){if(!(a&&d&&a!==d&&a.Bd&&d.Bd))return!1;a.Fa();d.Fa();var b=a.u,h=d.u,k,c,g,l,f,t,e,m;if(b===h||b.Sc===h.Sc&&h.Tc===h.Tc&&b.scale===h.scale&&b.q===h.q&&b.yc===h.yc){if(!a.Pa.fB(d.Pa)||!a.$b.lt(d.$b)||a.Ti&&d.Ti)return!1;if(a.Ti)return this.wv(a,d);if(d.Ti)return this.wv(d,a);e=a.Ha&&!a.Ha.ei();k=d.Ha&&!d.Ha.ei();if(!e&&!k)return!0;e?(a.Ha.Cg(a.width,a.height,a.q),e=a.Ha):(this.fe.Mi(a.$b,a.x,a.y,a.width,a.height),e=
this.fe);k?(d.Ha.Cg(d.width,d.height,d.q),m=d.Ha):(this.fe.Mi(d.$b,d.x,d.y,d.width,d.height),m=this.fe);return e.Hj(m,d.x-a.x,d.y-a.y)}e=a.Ha&&!a.Ha.ei();k=d.Ha&&!d.Ha.ei();e?(a.Ha.Cg(a.width,a.height,a.q),this.fe.jv(a.Ha)):this.fe.Mi(a.$b,a.x,a.y,a.width,a.height);e=this.fe;k?(d.Ha.Cg(d.width,d.height,d.q),this.$q.jv(d.Ha)):this.$q.Mi(d.$b,d.x,d.y,d.width,d.height);m=this.$q;k=0;for(c=e.hd;k<c;k++)g=2*k,l=g+1,f=e.Sa[g],t=e.Sa[l],e.Sa[g]=b.Ra(f+a.x,t+a.y,!0),e.Sa[l]=b.Ra(f+a.x,t+a.y,!1);e.Fa();k=
0;for(c=m.hd;k<c;k++)g=2*k,l=g+1,f=m.Sa[g],t=m.Sa[l],m.Sa[g]=h.Ra(f+d.x,t+d.y,!0),m.Sa[l]=h.Ra(f+d.x,t+d.y,!1);m.Fa();return e.Hj(m,0,0)};var O=new va;new ua(0,0,0,0);var T=[];e.prototype.wv=function(a,d){var b,h,k,c,g=d.Pa,l=a.x,f=a.y;a.xA(g,T);var t=d.Ha&&!d.Ha.ei();b=0;for(h=T.length;b<h;++b)if(k=T[b],c=k.Ja,g.gB(c,l,f)&&(O.Ni(c),O.offset(l,f),O.lt(d.$b)))if(t)if(d.Ha.Cg(d.width,d.height,d.q),k.rf){if(k.rf.Hj(d.Ha,d.x-(l+c.left),d.y-(f+c.top)))return R(T),!0}else{if(this.fe.Mi(O,0,0,c.right-c.left,
c.bottom-c.top),this.fe.Hj(d.Ha,d.x,d.y))return R(T),!0}else if(k.rf){if(this.fe.Mi(d.$b,0,0,d.width,d.height),k.rf.Hj(this.fe,-(l+c.left),-(f+c.top)))return R(T),!0}else return R(T),!0;R(T);return!1};e.prototype.kr=function(a,d){if(!d)return!1;var b,h,k,c,g;b=0;for(h=a.eb.length;b<h;b++)if(a.eb[b].behavior instanceof d)return!0;if(!a.M)for(b=0,h=a.cb.length;b<h;b++)for(g=a.cb[b],k=0,c=g.eb.length;k<c;k++)if(g.eb[k].behavior instanceof d)return!0;return!1};e.prototype.lr=function(a){return this.kr(a,
fc.eD)};e.prototype.mr=function(a){return this.kr(a,fc.fD)};var D=[];e.prototype.rb=function(a){var d,b,h;a.Fa();this.KA(a.u,a.Pa,D);d=0;for(b=D.length;d<b;++d)if(h=D[d],h.O.solidEnabled&&this.pc(a,h))return R(D),h;R(D);return null};var U=[];e.prototype.Ke=function(a,d){var b=null;d&&(b=U,R(b));a.Fa();this.DA(a.u,a.Pa,D);var h,k,c;h=0;for(k=D.length;h<k;++h)if(c=D[h],c.O.jumpthruEnabled&&this.pc(a,c))if(d)b.push(c);else return R(D),c;R(D);return b};e.prototype.Kd=function(a,d,b,h,k,c){h=h||50;var g=
a.x,l=a.y,f,t=null,e=null;for(f=0;f<h;f++)if(a.x=g+d*f,a.y=l+b*f,a.F(),!this.pc(a,t)&&((t=this.rb(a))&&(e=t),!t&&(k&&(c?t=this.pc(a,c)?c:null:t=this.Ke(a),t&&(e=t)),!t)))return e&&this.sn(a,d,b,e),!0;a.x=g;a.y=l;a.F();return!1};e.prototype.Dq=function(a,d,b,h){h=h||50;var k=a.x,c=a.y,g=null,l=null,f,t,e;for(f=0;f<h;++f)for(t=0;2>t;++t)if(e=2*t-1,a.x=k+d*f*e,a.y=c+b*f*e,a.F(),!this.pc(a,g))if(g=this.rb(a))l=g;else return l&&this.sn(a,d*e,b*e,l),!0;a.x=k;a.y=c;a.F();return!1};e.prototype.sn=function(a,
d,b,h){var k=2,c,g=!1;c=!1;for(var l=a.x,f=a.y;16>=k;)c=1/k,k*=2,a.x+=d*c*(g?1:-1),a.y+=b*c*(g?1:-1),a.F(),this.pc(a,h)?c=g=!0:(c=g=!1,l=a.x,f=a.y);c&&(a.x=l,a.y=f,a.F())};e.prototype.Ru=function(a,d){var b=ja(d)?100:d,h=0,k=a.x,c=a.y,g=0,l=0,f=0,t=this.rb(a);if(!t)return!0;for(;h<=b;){switch(g){case 0:l=0;f=-1;h++;break;case 1:l=1;f=-1;break;case 2:l=1;f=0;break;case 3:f=l=1;break;case 4:l=0;f=1;break;case 5:l=-1;f=1;break;case 6:l=-1;f=0;break;case 7:f=l=-1}g=(g+1)%8;a.x=z(k+l*h);a.y=z(c+f*h);a.F();
if(!this.pc(a,t)&&(t=this.rb(a),!t))return!0}a.x=k;a.y=c;a.F();return!1};e.prototype.sf=function(a,d){a.Bd&&d.Bd&&this.ph.push([a,d])};e.prototype.Ky=function(a,d,b){var h,k,c;h=0;for(k=this.ph.length;h<k;++h){c=this.ph[h];if(c[0]===a)c=c[1];else if(c[1]===a)c=c[0];else continue;if(d.M){if(-1===d.jh.indexOf(d))continue}else if(c.type!==d)continue;-1===b.indexOf(c)&&b.push(c)}};e.prototype.Zy=function(a,d){var b,h,k;b=0;for(h=this.ph.length;b<h;b++)if(k=this.ph[b],k[0]===a&&k[1]===d||k[0]===d&&k[1]===
a)return!0;return!1};e.prototype.Wy=function(a,d,b){var h=a.x,k=a.y,c=pa(10,Sa(d,b,h,k)),g=Ma(d,b,h,k),l=this.rb(a);if(!l)return Ja(g+ra);var f=l,t,e,m,n,v=S(5);for(t=1;36>t;t++)if(e=g-t*v,a.x=d+Math.cos(e)*c,a.y=b+Math.sin(e)*c,a.F(),!this.pc(a,f)&&(f=this.rb(a),!f)){m=e;break}36===t&&(m=Ja(g+ra));f=l;for(t=1;36>t;t++)if(e=g+t*v,a.x=d+Math.cos(e)*c,a.y=b+Math.sin(e)*c,a.F(),!this.pc(a,f)&&(f=this.rb(a),!f)){n=e;break}36===t&&(n=Ja(g+ra));a.x=h;a.y=k;a.F();if(n===m)return n;a=Na(n,m)/2;a=Qa(n,m)?
Ja(m+a+ra):Ja(n+a);m=Math.cos(g);g=Math.sin(g);n=Math.cos(a);a=Math.sin(a);d=m*n+g*a;return Ma(0,0,m-2*d*n,g-2*d*a)};var V=-1;e.prototype.trigger=function(a,d,b){if(!this.Aa)return!1;var h=this.Aa.Kg;if(!h)return!1;var k=!1,c,g,l;V++;var f=h.To;g=0;for(l=f.length;g<l;++g)c=this.Fv(a,d,f[g],b),k=k||c;c=this.Fv(a,d,h,b);V--;return k||c};e.prototype.Fv=function(a,d,b,h){var k=!1,c,g,l,f;if(d)for(l=this.ir(a,d,d.type.name,b,h),k=k||l,f=d.type.cb,c=0,g=f.length;c<g;++c)l=this.ir(a,d,f[c].name,b,h),k=k||
l;else l=this.ir(a,d,"system",b,h),k=k||l;return k};e.prototype.ir=function(a,d,b,h,k){var c,g=!1,l=!1,l="undefined"!==typeof k,f=(l?h.Ms:h.Gv)[b];if(!f)return g;var t=null;h=0;for(c=f.length;h<c;++h)if(f[h].method==a){t=f[h].tj;break}if(!t)return g;var e;l?e=t[k]:e=t;if(!e)return null;h=0;for(c=e.length;h<c;h++)a=e[h][0],k=e[h][1],l=this.nA(d,b,a,k),g=g||l;return g};e.prototype.nA=function(a,d,b,h){var k,c,g=!1;this.jr++;var l=this.ob().wb;l&&this.uk(l.tg);var f=1<this.jr;this.uk(b.tg);f&&this.$B();
var t=this.rn(b);t.wb=b;a&&(k=this.types[d].ba(),k.ka=!1,R(k.k),k.k[0]=a,this.types[d].yd());a=!0;if(b.parent){d=t.vv;for(k=b.parent;k;)d.push(k),k=k.parent;d.reverse();k=0;for(c=d.length;k<c;k++)if(!d[k].mC()){a=!1;break}}a&&(this.Mg++,b.sd?b.lC(h):b.Fb(),g=g||t.Yg);this.mn();f&&this.SB();this.pg(b.tg);l&&this.pg(l.tg);this.ag&&0===this.od&&0===V&&!this.Kp&&this.qc();this.jr--;return g};e.prototype.Xh=function(){var a=this.ob();return a.wb.Ib[a.ub]};e.prototype.jB=function(){return 0===this.ob().ub};
e.prototype.yA=function(){var a=this.ob();return a.wb.xd[a.Oc]};e.prototype.$B=function(){this.Nm++;this.Nm>=this.$p.length&&this.$p.push([])};e.prototype.SB=function(){this.Nm--};e.prototype.Us=function(){return this.$p[this.Nm]};e.prototype.rn=function(a){this.Tl++;this.Tl>=this.Xo.length&&this.Xo.push(new Sb);var d=this.ob();d.reset(a);return d};e.prototype.mn=function(){this.Tl--};e.prototype.ob=function(){return this.Xo[this.Tl]};e.prototype.aC=function(){this.Pm++;this.Pm>=this.bq.length&&this.bq.push(aa({name:void 0,
index:0,Zb:!1}));var a=this.zA();a.name=void 0;a.index=0;a.Zb=!1;return a};e.prototype.TB=function(){this.Pm--};e.prototype.zA=function(){return this.bq[this.Pm]};e.prototype.Ws=function(a,d){for(var b,h,k,c,g,l;d;){b=0;for(h=d.Pd.length;b<h;b++)if(l=d.Pd[b],l instanceof Tb&&jb(a,l.name))return l;d=d.parent}b=0;for(h=this.We.length;b<h;b++)for(g=this.We[b],k=0,c=g.Xf.length;k<c;k++)if(l=g.Xf[k],l instanceof Tb&&jb(a,l.name))return l;return null};e.prototype.Ys=function(a){var d,b;d=0;for(b=this.dd.length;d<
b;d++)if(this.dd[d].ra===a)return this.dd[d];return null};e.prototype.om=function(a){var d,b;d=0;for(b=this.G.length;d<b;d++)if(this.G[d].ra===a)return this.G[d];return null};e.prototype.AA=function(a){var d,b;d=0;for(b=this.Kf.length;d<b;d++)if(this.Kf[d].ra===a)return this.Kf[d];return null};e.prototype.kz=function(a,d){this.Ik=[a,d];this.ca=!0};e.prototype.$A=function(){var a=this,d=this.Oq,b=this.ef,h=this.Im,k=!1;this.pv&&(k=!0,d="__c2_continuouspreview",this.pv=!1);if(d.length){this.qc();b=
this.qC();if(r()&&!this.ad)m(d,b,function(){ha("Saved state to IndexedDB storage ("+b.length+" bytes)");a.ef=b;a.trigger(X.prototype.n.ro,null);b=a.ef="";k&&f()},function(h){try{localStorage.setItem("__c2save_"+d,b),ha("Saved state to WebStorage ("+b.length+" bytes)"),a.ef=b,a.trigger(X.prototype.n.ro,null),b=a.ef="",k&&f()}catch(c){ha("Failed to save game state: "+h+"; "+c),a.trigger(X.prototype.n.Wr,null)}});else try{localStorage.setItem("__c2save_"+d,b),ha("Saved state to WebStorage ("+b.length+
" bytes)"),a.ef=b,this.trigger(X.prototype.n.ro,null),b=a.ef="",k&&f()}catch(c){ha("Error saving to WebStorage: "+c),a.trigger(X.prototype.n.Wr,null)}this.Im=this.Oq="";this.Pb=null}if(h.length){if(r()&&!this.ad)n(h,function(d){d?(a.Pb=d,ha("Loaded state from IndexedDB storage ("+a.Pb.length+" bytes)")):(a.Pb=localStorage.getItem("__c2save_"+h)||"",ha("Loaded state from WebStorage ("+a.Pb.length+" bytes)"));a.Kk=!1;a.Pb||(a.Pb=null,a.trigger(X.prototype.n.el,null))},function(){a.Pb=localStorage.getItem("__c2save_"+
h)||"";ha("Loaded state from WebStorage ("+a.Pb.length+" bytes)");a.Kk=!1;a.Pb||(a.Pb=null,a.trigger(X.prototype.n.el,null))});else{try{this.Pb=localStorage.getItem("__c2save_"+h)||"",ha("Loaded state from WebStorage ("+this.Pb.length+" bytes)")}catch(g){this.Pb=null}this.Kk=!1;a.Pb||(a.Pb=null,a.trigger(X.prototype.n.el,null))}this.Oq=this.Im=""}null!==this.Pb&&(this.qc(),this.vB(this.Pb)?(this.ef=this.Pb,this.trigger(X.prototype.n.Bx,null),this.ef=""):a.trigger(X.prototype.n.el,null),this.Pb=null)};
e.prototype.qC=function(){var d,b,h,k,c,g,l,f={c2save:!0,version:1,rt:{time:this.zb.Y,walltime:this.Cf.Y,timescale:this.yh,tickcount:this.ge,execcount:this.Mg,next_uid:this.kk,running_layout:this.Aa.ra,start_time_offset:Date.now()-this.Pn},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(b=this.G.length;d<b;d++)if(c=this.G[d],!c.M&&!this.lr(c)){g={instances:[]};Ua(c.O)&&(g.ex=a(c.O));h=0;for(k=c.k.length;h<k;h++)g.instances.push(this.Nq(c.k[h]));f.types[c.ra.toString()]=g}d=
0;for(b=this.dd.length;d<b;d++)h=this.dd[d],f.layouts[h.ra.toString()]=h.Za();k=f.events.groups;d=0;for(b=this.Kf.length;d<b;d++)h=this.Kf[d],k[h.ra.toString()]=this.Zh[h.Cj].Qg;b=f.events.cnds;for(l in this.Sf)this.Sf.hasOwnProperty(l)&&(d=this.Sf[l],Ua(d.O)&&(b[l]={ex:a(d.O)}));b=f.events.acts;for(l in this.If)this.If.hasOwnProperty(l)&&(d=this.If[l],Ua(d.O)&&(b[l]={ex:a(d.O)}));b=f.events.vars;for(l in this.Yi)this.Yi.hasOwnProperty(l)&&(d=this.Yi[l],d.Dm||d.parent&&!d.Pj||(b[l]=d.data));f.system=
this.Je.Za();return JSON.stringify(f)};e.prototype.Tu=function(){var a,d,b,h,k,c;this.of={};a=0;for(d=this.G.length;a<d;a++)if(b=this.G[a],!b.M)for(h=0,k=b.k.length;h<k;h++)c=b.k[h],this.of[c.uid.toString()]=c};e.prototype.vB=function(a){var d;try{d=JSON.parse(a)}catch(b){return!1}if(!d.c2save||1<d.version)return!1;this.Kj=!0;a=d.rt;this.zb.reset();this.zb.Y=a.time;this.Cf.reset();this.Cf.Y=a.walltime||0;this.yh=a.timescale;this.ge=a.tickcount;this.Mg=a.execcount;this.Pn=Date.now()-a.start_time_offset;
var h=a.running_layout;if(h!==this.Aa.ra)if(h=this.Ys(h))this.Is(h);else return;var k,c,g,l,f,t,e;t=d.types;for(c in t)if(t.hasOwnProperty(c)&&(l=this.om(parseInt(c,10)))&&!l.M&&!this.lr(l)){t[c].ex?l.O=t[c].ex:Va(l.O);f=l.k;g=t[c].instances;h=0;for(k=qa(f.length,g.length);h<k;h++)this.Jm(f[h],g[h]);h=g.length;for(k=f.length;h<k;h++)this.le(f[h]);h=f.length;for(k=g.length;h<k;h++){f=null;if(l.qa.dg&&(f=this.Aa.nm(g[h].w.l),!f))continue;f=this.Tf(l.Dd,f,!1,0,0,!0);this.Jm(f,g[h])}l.Qi=!0}this.qc();
this.Tu();k=d.layouts;for(c in k)k.hasOwnProperty(c)&&(h=this.Ys(parseInt(c,10)))&&h.gb(k[c]);k=d.events.groups;for(c in k)k.hasOwnProperty(c)&&(h=this.AA(parseInt(c,10)))&&this.Zh[h.Cj]&&this.Zh[h.Cj].Bk(k[c]);h=d.events.cnds;for(c in this.Sf)this.Sf.hasOwnProperty(c)&&(h.hasOwnProperty(c)?this.Sf[c].O=h[c].ex:this.Sf[c].O={});h=d.events.acts;for(c in this.If)this.If.hasOwnProperty(c)&&(h.hasOwnProperty(c)?this.If[c].O=h[c].ex:this.If[c].O={});h=d.events.vars;for(c in h)h.hasOwnProperty(c)&&this.Yi.hasOwnProperty(c)&&
(this.Yi[c].data=h[c]);this.kk=a.next_uid;this.Kj=!1;h=0;for(k=this.$l.length;h<k;++h)f=this.$l[h],this.trigger(Object.getPrototypeOf(f.type.qa).n.Dh,f);R(this.$l);this.Je.gb(d.system);h=0;for(k=this.G.length;h<k;h++)if(l=this.G[h],!l.M&&!this.lr(l))for(d=0,c=l.k.length;d<c;d++){f=l.k[d];if(l.ic)for(t=f.Bj(),R(f.siblings),a=0,g=l.Zc.length;a<g;a++)e=l.Zc[a],l!==e&&f.siblings.push(e.k[t]);f.Td&&f.Td();if(f.X)for(a=0,g=f.X.length;a<g;a++)t=f.X[a],t.Td&&t.Td()}return this.ca=!0};e.prototype.Nq=function(d,
b){var h,k,c,g,l;g=d.type;c=g.qa;var f={};b?f.c2=!0:f.uid=d.uid;Ua(d.O)&&(f.ex=a(d.O));if(d.Nb&&d.Nb.length)for(f.ivs={},h=0,k=d.Nb.length;h<k;h++)f.ivs[d.type.Ep[h].toString()]=d.Nb[h];if(c.dg){c={x:d.x,y:d.y,w:d.width,h:d.height,l:d.u.ra,zi:d.ve()};0!==d.q&&(c.a=d.q);1!==d.opacity&&(c.o=d.opacity);.5!==d.Dc&&(c.hX=d.Dc);.5!==d.Ec&&(c.hY=d.Ec);0!==d.rc&&(c.bm=d.rc);d.visible||(c.v=d.visible);d.Bd||(c.ce=d.Bd);-1!==d.jk&&(c.mts=d.jk);if(g.ea.length)for(c.fx=[],h=0,k=g.ea.length;h<k;h++)l=g.ea[h],
c.fx.push({name:l.name,active:d.Hf[l.index],params:d.fb[l.index]});f.w=c}if(d.X&&d.X.length)for(f.behs={},h=0,k=d.X.length;h<k;h++)g=d.X[h],g.Za&&(f.behs[g.type.ra.toString()]=g.Za());d.Za&&(f.data=d.Za());return f};e.prototype.CA=function(a,d){var b,h;b=0;for(h=a.Ep.length;b<h;b++)if(a.Ep[b]===d)return b;return-1};e.prototype.wA=function(a,d){var b,h;b=0;for(h=a.X.length;b<h;b++)if(a.X[b].type.ra===d)return b;return-1};e.prototype.Jm=function(a,d,b){var h,k,c,g,l;l=a.type;var f=l.qa;if(b){if(!d.c2)return}else a.uid=
d.uid;d.ex?a.O=d.ex:Va(a.O);if(k=d.ivs)for(h in k)k.hasOwnProperty(h)&&(c=this.CA(l,parseInt(h,10)),0>c||c>=a.Nb.length||(g=k[h],null===g&&(g=NaN),a.Nb[c]=g));if(f.dg){c=d.w;a.u.ra!==c.l&&(k=a.u,a.u=this.Aa.nm(c.l),a.u?(k.Ji(a,!0),a.u.ij(a,!0),a.F(),a.u.Dk(0)):(a.u=k,b||this.le(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.ke=c.zi;a.q=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Dc=c.hasOwnProperty("hX")?c.hX:.5;a.Ec=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?
c.v:!0;a.Bd=c.hasOwnProperty("ce")?c.ce:!0;a.jk=c.hasOwnProperty("mts")?c.mts:-1;a.rc=c.hasOwnProperty("bm")?c.bm:0;a.nj=gb(a.rc);this.K&&hb(a,a.rc,this.K);a.F();if(c.hasOwnProperty("fx"))for(b=0,k=c.fx.length;b<k;b++)g=l.kp(c.fx[b].name),0>g||(a.Hf[g]=c.fx[b].active,a.fb[g]=c.fx[b].params);a.je()}if(l=d.behs)for(h in l)l.hasOwnProperty(h)&&(b=this.wA(a,parseInt(h,10)),0>b||a.X[b].gb(l[h]));d.data&&a.gb(d.data)};e.prototype.Ns=function(a,d,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+a,function(a){a.file(d,b)},b)};e.prototype.oA=function(a,d){this.Ns("data.js",function(b){var h=new FileReader;h.onload=function(d){a(d.target.result)};h.onerror=d;h.readAsText(b)},d)};var J=[],E=0;e.prototype.hq=function(){if(J.length&&!(8<=E)){E++;var a=J.shift();this.mz(a.filename,a.zC,a.Lz)}};e.prototype.Os=function(a,d,b){var h=this;J.push({filename:a,zC:function(a){E--;h.hq();d(a)},Lz:function(a){E--;h.hq();b(a)}});this.hq()};e.prototype.mz=function(a,d,b){this.Ns(a,function(a){var b=
new FileReader;b.onload=function(a){d(a.target.result)};b.readAsArrayBuffer(a)},b)};e.prototype.pA=function(a,d,b){var h="",k=a.toLowerCase(),c=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===c?h="video/mp4":".webm"===k?h="video/webm":".m4a"===c?h="audio/mp4":".mp3"===c&&(h="audio/mpeg");this.Os(a,function(a){a=URL.createObjectURL(new Blob([a],{type:h}));d(a)},b)};e.prototype.hB=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.bv=function(a,
d){this.Bm&&!this.hB(d)?this.pA(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};e.prototype.Cn=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.oe=!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,p){var r=window.cr_getC2Runtime();r&&r.kz(e,p)};window.cr_sizeCanvas=function(e,p){if(0!==e&&0!==p){var r=window.cr_getC2Runtime();r&&r.setSize(e,p)}};window.cr_setSuspended=function(e){var p=window.cr_getC2Runtime();p&&p.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.Kg=null;this.scrollX=this.b.Db/2;this.scrollY=this.b.Cb/2;this.scale=1;this.q=0;this.Uh=!0;this.name=b[0];this.MB=b[1];this.LB=b[2];this.width=b[1];this.height=b[2];this.Iv=b[3];this.nv=b[4];this.ra=b[5];var c=b[6],l,f;this.fa=[];this.Gj=[];l=0;for(f=c.length;l<f;l++){var e=new Wb(this,c[l]);e.pu=l;this.fa.push(e)}c=b[7];this.bg=[];l=0;for(f=c.length;l<f;l++){var e=c[l],m=this.b.G[e[1]];m.Dd||(m.Dd=e);this.bg.push(e);-1===this.Gj.indexOf(m)&&this.Gj.push(m)}this.ea=
[];this.Da=[];this.uf=!0;this.fb=[];l=0;for(f=b[8].length;l<f;l++)this.ea.push({id:b[8][l][0],name:b[8][l][1],Gb:-1,Jd:!1,$a:!0,index:l}),this.fb.push(b[8][l][2].slice(0));this.je();this.qg=new ua(0,0,1,1);this.Gq=new ua(0,0,1,1);this.ng={}}function p(a,b){return a.ke-b.ke}function r(a,b){this.Ab=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.Ve=!1;this.yf=new ua(0,0,0,0);this.Dv=new va;this.Ba=this.ua=this.Ca=this.ta=0;this.Ah=!1;this.Ef=-1;this.No=0;this.name=b[0];this.index=b[1];this.ra=b[2];
this.visible=b[3];this.Wd=b[4];this.ie=b[5];this.Sc=b[6];this.Tc=b[7];this.opacity=b[8];this.jm=b[9];this.wd=b[10];this.yc=b[11];this.rc=b[12];this.Hz=b[13];this.nj="source-over";this.tc=this.xc=0;this.nc=null;this.ff=q();this.ee=!0;this.qi=new ua(0,0,-1,-1);this.ec=new ua(0,0,-1,-1);this.wd&&(this.nc=new fb(this.b.Db,this.b.Cb));this.De=!1;var c=b[14],l,f;this.tv=[];this.md=[];this.pj=[];l=0;for(f=c.length;l<f;l++){var e=c[l],m=this.b.G[e[1]];m.Dd||(m.Dd=e,m.gz=this.index);this.md.push(e);-1===this.Ab.Gj.indexOf(m)&&
this.Ab.Gj.push(m)}Ba(this.tv,this.md);this.ea=[];this.Da=[];this.uf=!0;this.fb=[];l=0;for(f=b[15].length;l<f;l++)this.ea.push({id:b[15][l][0],name:b[15][l][1],Gb:-1,Jd:!1,$a:!0,index:l}),this.fb.push(b[15][l][2].slice(0));this.je();this.qg=new ua(0,0,1,1);this.Gq=new ua(0,0,1,1)}function q(){return a.length?a.pop():[]}function m(d){R(d);a.push(d)}e.prototype.pC=function(a){var b=a.type.ra.toString();this.ng.hasOwnProperty(b)||(this.ng[b]=[]);this.ng[b].push(this.b.Nq(a))};e.prototype.ct=function(){var a=
this.fa[0];return!a.ie&&1===a.opacity&&!a.jm&&a.visible};e.prototype.je=function(){R(this.Da);this.uf=!0;var a,b,c;a=0;for(b=this.ea.length;a<b;a++)c=this.ea[a],c.$a&&(this.Da.push(c),c.Jd||(this.uf=!1))};e.prototype.jp=function(a){var b,c,l;b=0;for(c=this.ea.length;b<c;b++)if(l=this.ea[b],l.name===a)return l;return null};var n=[],f=!0;e.prototype.Yq=function(){this.nv&&(this.Kg=this.b.Yo[this.nv],this.Kg.nr());this.b.Aa=this;this.width=this.MB;this.height=this.LB;this.scrollX=this.b.Db/2;this.scrollY=
this.b.Cb/2;var a,b,c,l,e,m,v;a=0;for(c=this.b.G.length;a<c;a++)if(b=this.b.G[a],!b.M)for(e=b.k,b=0,l=e.length;b<l;b++)if(m=e[b],m.u){var h=m.u.pu;h>=this.fa.length&&(h=this.fa.length-1);m.u=this.fa[h];-1===m.u.k.indexOf(m)&&m.u.k.push(m);m.u.Ah=!0}if(!f)for(a=0,c=this.fa.length;a<c;++a)this.fa[a].k.sort(p);R(n);this.Uy();a=0;for(c=this.fa.length;a<c;a++)m=this.fa[a],m.ez(),m.eo();e=!1;if(!this.Uh){for(v in this.ng)if(this.ng.hasOwnProperty(v)&&(b=this.b.om(parseInt(v,10)))&&!b.M&&this.b.mr(b)){l=
this.ng[v];a=0;for(c=l.length;a<c;a++){m=null;if(b.qa.dg&&(m=this.nm(l[a].w.l),!m))continue;m=this.b.Tf(b.Dd,m,!1,0,0,!0);this.b.Jm(m,l[a]);e=!0;n.push(m)}R(l)}a=0;for(c=this.fa.length;a<c;a++)this.fa[a].k.sort(p),this.fa[a].Ah=!0}e&&(this.b.qc(),this.b.Tu());for(a=0;a<n.length;a++)if(m=n[a],m.type.ic)for(c=m.Bj(),b=0,l=m.type.Zc.length;b<l;b++)v=m.type.Zc[b],m.type!==v&&(v.k.length>c?m.siblings.push(v.k[c]):v.Dd&&(e=this.b.Tf(v.Dd,m.u,!0,m.x,m.y,!0),this.b.qc(),v.bo(),m.siblings.push(e),n.push(e)));
a=0;for(c=this.bg.length;a<c;a++)m=this.bg[a],b=this.b.G[m[1]],b.ic||this.b.Tf(this.bg[a],null,!0);this.b.Zd=null;this.b.qc();if(this.b.Ta&&!this.b.Ea)for(a=0,c=this.b.G.length;a<c;a++)v=this.b.G[a],!v.M&&v.k.length&&v.Hi&&v.Hi(this.b.Ta);if(this.b.Kj)Ba(this.b.$l,n);else for(a=0,c=n.length;a<c;a++)m=n[a],this.b.trigger(Object.getPrototypeOf(m.type.qa).n.Dh,m);R(n);this.b.Kj||this.b.trigger(X.prototype.n.Rr,null);this.Uh=!1};e.prototype.dz=function(){var a,b,c,l,f;b=a=0;for(c=this.bg.length;a<c;a++)l=
this.bg[a],f=this.b.G[l[1]],f.global?f.ic||this.b.Tf(l,null,!0):(this.bg[b]=l,b++);Aa(this.bg,b)};e.prototype.yC=function(){this.b.Kj||this.b.trigger(X.prototype.n.Ax,null);this.b.Gp=!0;R(this.b.Je.Xc);var a,b,c,l,e,m;if(!this.Uh)for(a=0,b=this.fa.length;a<b;a++)for(this.fa[a].pr(),e=this.fa[a].k,c=0,l=e.length;c<l;c++)m=e[c],m.type.global||this.b.mr(m.type)&&this.pC(m);a=0;for(b=this.fa.length;a<b;a++){e=this.fa[a].k;c=0;for(l=e.length;c<l;c++)m=e[c],m.type.global||this.b.le(m);this.b.qc();R(e);
this.fa[a].Ah=!0}a=0;for(b=this.b.G.length;a<b;a++)if(e=this.b.G[a],!(e.global||e.qa.dg||e.qa.Kn||e.M)){c=0;for(l=e.k.length;c<l;c++)this.b.le(e.k[c]);this.b.qc()}f=!1;this.b.Gp=!1};new ua(0,0,0,0);e.prototype.Ac=function(a){var b,c=a,l=!1,f=!this.b.kd;f&&(this.b.Hm||(this.b.Hm=document.createElement("canvas"),b=this.b.Hm,b.width=this.b.W,b.height=this.b.V,this.b.Nt=b.getContext("2d"),l=!0),b=this.b.Hm,c=this.b.Nt,b.width!==this.b.W&&(b.width=this.b.W,l=!0),b.height!==this.b.V&&(b.height=this.b.V,
l=!0),l&&this.b.Cn(c,this.b.Na));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.As&&!this.ct()&&c.clearRect(0,0,this.b.W,this.b.V);var e,m,l=0;for(e=this.fa.length;l<e;l++)m=this.fa[l],m.visible&&0<m.opacity&&11!==m.rc&&(m.k.length||!m.ie)?m.Ac(c):m.eo();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.Vf=function(a){a.av(!0);this.b.Bb||(this.b.Bb=a.$c(this.b.W,this.b.V,this.b.Na));if(this.b.Bb.Bg!==this.b.W||this.b.Bb.Ag!==this.b.V)a.deleteTexture(this.b.Bb),this.b.Bb=
a.$c(this.b.W,this.b.V,this.b.Na);a.Nd(this.b.Bb);this.b.kd||a.rh(this.b.W,this.b.V);var b,c;for(b=this.fa.length-1;0<=b;--b)c=this.fa[b],c.visible&&1===c.opacity&&c.uf&&0===c.rc&&(c.k.length||!c.ie)?c.Vf(a):c.eo();a.av(!1)};e.prototype.xb=function(a){var b=0<this.Da.length||this.b.Wi||!this.b.kd||this.b.Qa;if(b){this.b.Bb||(this.b.Bb=a.$c(this.b.W,this.b.V,this.b.Na));if(this.b.Bb.Bg!==this.b.W||this.b.Bb.Ag!==this.b.V)a.deleteTexture(this.b.Bb),this.b.Bb=a.$c(this.b.W,this.b.V,this.b.Na);a.Nd(this.b.Bb);
this.b.kd||a.rh(this.b.W,this.b.V)}else this.b.Bb&&(a.Nd(null),a.deleteTexture(this.b.Bb),this.b.Bb=null);this.b.As&&!this.ct()&&a.clear(0,0,0,0);var c,l,f;c=0;for(l=this.fa.length;c<l;c++)f=this.fa[c],f.visible&&0<f.opacity&&(f.k.length||!f.ie)?f.xb(a):f.eo();b&&(0===this.Da.length||1===this.Da.length&&this.b.kd?(1===this.Da.length?(b=this.Da[0].index,a.Wc(this.Da[0].Gb),a.Li(null,1/this.b.W,1/this.b.V,0,0,1,1,this.scale,this.q,0,0,this.b.W/2,this.b.V/2,this.b.zb.Y,this.fb[b]),a.qn(this.Da[0].Gb)&&
(this.b.ca=!0)):a.Wc(0),this.b.kd||a.rh(this.b.width,this.b.height),a.Nd(null),a.Zu(!1),a.He(1),a.wc(this.b.Bb),a.Xu(),a.Md(),a.vd(),b=this.b.width/2,c=this.b.height/2,a.Ii(-b,c,b,c,b,-c,-b,-c),a.wc(null),a.Zu(!0)):this.Hq(a,null,null,null))};e.prototype.zj=function(){return 0<this.Da.length||this.b.Wi||!this.b.kd||this.b.Qa?this.b.Bb:null};e.prototype.Zs=function(){var a=this.fa[0].Cc(),b,c,l;b=1;for(c=this.fa.length;b<c;b++)l=this.fa[b],(0!==l.Sc||0!==l.Tc)&&l.Cc()<a&&(a=l.Cc());return a};e.prototype.Pq=
function(a){if(!this.Iv){var b=1/this.Zs()*this.b.W/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ca=!0)};e.prototype.Qq=function(a){if(!this.Iv){var b=1/this.Zs()*this.b.V/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ca=!0)};e.prototype.Uy=function(){this.Pq(this.scrollX);this.Qq(this.scrollY)};e.prototype.Hq=function(a,b,c,l){var f=c?c.Da:b?b.Da:this.Da,e=1,m=0,h=0,t=0,n=this.b.W,q=this.b.V;c?(e=c.u.Cc(),m=c.u.Kb(),
h=c.u.ta,t=c.u.ua,n=c.u.Ca,q=c.u.Ba):b&&(e=b.Cc(),m=b.Kb(),h=b.ta,t=b.ua,n=b.Ca,q=b.Ba);var p=this.b.ep,y,r,w,H,G=0,C=1,O,T,D=this.b.W,U=this.b.V,V=D/2,J=U/2,E=b?b.qg:this.qg,u=b?b.Gq:this.Gq,A=0,F=0,I=0,N=0,W=D,Z=D,L=U,fa=U,ba=w=0;H=c?c.u.Kb():0;if(c){y=0;for(r=f.length;y<r;y++)w+=a.HA(f[y].Gb),ba+=a.IA(f[y].Gb);N=c.Pa;A=b.Ra(N.left,N.top,!0,!0);I=b.Ra(N.left,N.top,!1,!0);W=b.Ra(N.right,N.bottom,!0,!0);L=b.Ra(N.right,N.bottom,!1,!0);0!==H&&(y=b.Ra(N.right,N.top,!0,!0),r=b.Ra(N.right,N.top,!1,!0),
F=b.Ra(N.left,N.bottom,!0,!0),N=b.Ra(N.left,N.bottom,!1,!0),H=Math.min(A,W,y,F),W=Math.max(A,W,y,F),A=H,H=Math.min(I,L,r,N),L=Math.max(I,L,r,N),I=H);A-=w;I-=ba;W+=w;L+=ba;u.left=A/D;u.top=1-I/U;u.right=W/D;u.bottom=1-L/U;F=A=z(A);N=I=z(I);Z=W=sa(W);fa=L=sa(L);F-=w;N-=ba;Z+=w;fa+=ba;0>A&&(A=0);0>I&&(I=0);W>D&&(W=D);L>U&&(L=U);0>F&&(F=0);0>N&&(N=0);Z>D&&(Z=D);fa>U&&(fa=U);E.left=A/D;E.top=1-I/U;E.right=W/D;E.bottom=1-L/U}else E.left=u.left=0,E.top=u.top=0,E.right=u.right=1,E.bottom=u.bottom=1;ba=c&&
(a.sk(f[0].Gb)||0!==w||0!==ba||1!==c.opacity||c.type.qa.ku)||b&&!c&&1!==b.opacity;a.Xu();if(ba){p[G]||(p[G]=a.$c(D,U,this.b.Na));if(p[G].Bg!==D||p[G].Ag!==U)a.deleteTexture(p[G]),p[G]=a.$c(D,U,this.b.Na);a.Wc(0);a.Nd(p[G]);T=fa-N;a.clearRect(F,U-N-T,Z-F,T);c?c.xb(a):(a.wc(this.b.Ob),a.He(b.opacity),a.Md(),a.translate(-V,-J),a.vd(),a.Ld(A,L,W,L,W,I,A,I,E));u.left=u.top=0;u.right=u.bottom=1;c&&(H=E.top,E.top=E.bottom,E.bottom=H);G=1;C=0}a.He(1);w=f.length-1;var xa=a.Cq(f[w].Gb)||!b&&!c&&!this.b.kd;
y=H=0;for(r=f.length;y<r;y++){p[G]||(p[G]=a.$c(D,U,this.b.Na));if(p[G].Bg!==D||p[G].Ag!==U)a.deleteTexture(p[G]),p[G]=a.$c(D,U,this.b.Na);a.Wc(f[y].Gb);H=f[y].index;a.qn(f[y].Gb)&&(this.b.ca=!0);0!=y||ba?(a.Li(l,1/D,1/U,u.left,u.top,u.right,u.bottom,e,m,h,t,(h+n)/2,(t+q)/2,this.b.zb.Y,c?c.fb[H]:b?b.fb[H]:this.fb[H]),a.wc(null),y!==w||xa?(a.Nd(p[G]),T=fa-N,O=U-N-T,a.clearRect(F,O,Z-F,T)):(c?a.sg(c.xc,c.tc):b&&a.sg(b.xc,b.tc),a.Nd(l)),a.wc(p[C]),a.Md(),a.translate(-V,-J),a.vd(),a.Ld(A,L,W,L,W,I,A,I,
E),y!==w||xa||a.wc(null)):(a.Nd(p[G]),T=fa-N,O=U-N-T,a.clearRect(F,O,Z-F,T),c?(c.cc&&c.cc.I?(O=c.cc.I,C=1/O.width,O=1/O.height):(C=1/c.width,O=1/c.height),a.Li(l,C,O,u.left,u.top,u.right,u.bottom,e,m,h,t,(h+n)/2,(t+q)/2,this.b.zb.Y,c.fb[H]),c.xb(a)):(a.Li(l,1/D,1/U,0,0,1,1,e,m,h,t,(h+n)/2,(t+q)/2,this.b.zb.Y,b?b.fb[H]:this.fb[H]),a.wc(b?this.b.Ob:this.b.Bb),a.Md(),a.translate(-V,-J),a.vd(),a.Ld(A,L,W,L,W,I,A,I,E)),u.left=u.top=0,u.right=u.bottom=1,c&&!xa&&(H=L,L=I,I=H));G=0===G?1:0;C=0===G?1:0}xa&&
(a.Wc(0),c?a.sg(c.xc,c.tc):b?a.sg(b.xc,b.tc):this.b.kd||(a.rh(this.b.width,this.b.height),V=this.b.width/2,J=this.b.height/2,I=A=0,W=this.b.width,L=this.b.height),a.Nd(l),a.wc(p[C]),a.Md(),a.translate(-V,-J),a.vd(),c&&1===f.length&&!ba?a.Ld(A,I,W,I,W,L,A,L,E):a.Ld(A,L,W,L,W,I,A,I,E),a.wc(null))};e.prototype.nm=function(a){var b,c;b=0;for(c=this.fa.length;b<c;b++)if(this.fa[b].ra===a)return this.fa[b];return null};e.prototype.Za=function(){var a,b,c,l={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.q,w:this.width,h:this.height,fv:this.Uh,persist:this.ng,fx:[],layers:{}};a=0;for(b=this.ea.length;a<b;a++)c=this.ea[a],l.fx.push({name:c.name,active:c.$a,params:this.fb[c.index]});a=0;for(b=this.fa.length;a<b;a++)c=this.fa[a],l.layers[c.ra.toString()]=c.Za();return l};e.prototype.gb=function(a){var b,c,l,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.ng=a.persist;"undefined"!==typeof a.fv&&(this.Uh=a.fv);var e=a.fx;b=0;for(c=e.length;b<c;b++)if(l=
this.jp(e[b].name))l.$a=e[b].active,this.fb[l.index]=e[b].params;this.je();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.nm(parseInt(f,10)))&&a.gb(b[f])};Fb=e;r.prototype.je=function(){R(this.Da);this.uf=!0;var a,b,c;a=0;for(b=this.ea.length;a<b;a++)c=this.ea[a],c.$a&&(this.Da.push(c),c.Jd||(this.uf=!1))};r.prototype.jp=function(a){var b,c,l;b=0;for(c=this.ea.length;b<c;b++)if(l=this.ea[b],l.name===a)return l;return null};r.prototype.ez=function(){var a,b,c,l,f,e;b=a=0;for(c=this.md.length;a<
c;a++){l=this.md[a];f=this.b.G[l[1]];e=this.b.mr(f);f=!0;if(!e||this.Ab.Uh){l=this.b.Tf(l,this,!0);if(!l)continue;n.push(l);l.type.global&&(f=!1,this.pj.push(l.uid))}f&&(this.md[b]=this.md[a],b++)}this.md.length=b;this.b.qc();!this.b.D&&this.ea.length&&(this.rc=this.Hz);this.nj=gb(this.rc);this.b.K&&hb(this,this.rc,this.b.K);this.ee=!0};r.prototype.Ji=function(a,b){var c=Da(this.k,a);0>c||(b&&this.wd&&a.Uc&&a.Uc.right>=a.Uc.left&&(a.Fa(),this.nc.update(a,a.Uc,null),a.Uc.set(0,0,-1,-1)),c===this.k.length-
1?this.k.pop():(za(this.k,c),this.Dk(c)),this.ee=!0)};r.prototype.ij=function(a,b){a.ke=this.k.length;this.k.push(a);b&&this.wd&&a.Uc&&a.F();this.ee=!0};r.prototype.XB=function(a){this.k.unshift(a);this.Dk(0)};r.prototype.CB=function(a,b,c){var l=a.ve();b=b.ve();za(this.k,l);l<b&&b--;c&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.Dk(l<b?l:b)};r.prototype.Dk=function(a){-1===this.Ef?this.Ef=a:a<this.Ef&&(this.Ef=a);this.ee=this.Ah=!0};r.prototype.pr=function(){if(this.Ah){-1===this.Ef&&
(this.Ef=0);var a,b,c;if(this.wd)for(a=this.Ef,b=this.k.length;a<b;++a)c=this.k[a],c.ke=a,this.nc.xB(c.Uc);else for(a=this.Ef,b=this.k.length;a<b;++a)this.k[a].ke=a;this.Ah=!1;this.Ef=-1}};r.prototype.Cc=function(a){return this.EA()*(this.b.kd||a?this.b.jj:1)};r.prototype.EA=function(){return(this.scale*this.Ab.scale-1)*this.yc+1};r.prototype.Kb=function(){return this.Ve?0:Ja(this.Ab.q+this.q)};var a=[],b=[],c=[];r.prototype.np=function(){this.pr();this.nc.tn(this.ta,this.ua,this.Ca,this.Ba,c);if(!c.length)return q();
if(1===c.length){var a=q();Ba(a,c[0]);R(c);return a}for(var k=!0;1<c.length;){for(var a=c,f=void 0,l=void 0,e=void 0,n=void 0,v=void 0,f=0,l=a.length;f<l-1;f+=2){var e=a[f],n=a[f+1],v=q(),h=e,t=n,K=v,p=0,r=0,y=0,x=h.length,w=t.length,H=void 0,G=void 0;for(K.length=x+w;p<x&&r<w;++y)H=h[p],G=t[r],H.ke<G.ke?(K[y]=H,++p):(K[y]=G,++r);for(;p<x;++p,++y)K[y]=h[p];for(;r<w;++r,++y)K[y]=t[r];k||(m(e),m(n));b.push(v)}1===l%2&&(k?(e=q(),Ba(e,a[l-1]),b.push(e)):b.push(a[l-1]));Ba(a,b);R(b);k=!1}a=c[0];R(c);return a};
r.prototype.Ac=function(a){this.De=this.jm||1!==this.opacity||0!==this.rc;var b=this.b.canvas,c=a,l=!1;this.De&&(this.b.Gm||(this.b.Gm=document.createElement("canvas"),b=this.b.Gm,b.width=this.b.W,b.height=this.b.V,this.b.Mt=b.getContext("2d"),l=!0),b=this.b.Gm,c=this.b.Mt,b.width!==this.b.W&&(b.width=this.b.W,l=!0),b.height!==this.b.V&&(b.height=this.b.V,l=!0),l&&this.b.Cn(c,this.b.Na),this.ie&&c.clearRect(0,0,this.b.W,this.b.V));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ie||
(c.fillStyle="rgb("+this.Wd[0]+","+this.Wd[1]+","+this.Wd[2]+")",c.fillRect(0,0,this.b.W,this.b.V));c.save();this.Ve=!0;var l=this.nb(0,0,!0,!0),f=this.nb(0,0,!1,!0);this.Ve=!1;this.b.vc&&(l=Math.round(l),f=Math.round(f));this.wn(l,f,c);var e=this.Cc();c.scale(e,e);c.translate(-l,-f);this.wd?(this.ec.left=this.nc.Lc(this.ta),this.ec.top=this.nc.Mc(this.ua),this.ec.right=this.nc.Lc(this.Ca),this.ec.bottom=this.nc.Mc(this.Ba),this.ee||!this.ec.sj(this.qi)?(m(this.ff),l=this.np(),this.ee=!1,this.qi.Kh(this.ec)):
l=this.ff):l=this.k;for(var n,h=null,f=0,e=l.length;f<e;++f)n=l[f],n!==h&&(this.Cz(n,c),h=n);this.wd&&(this.ff=l);c.restore();this.De&&(a.globalCompositeOperation=this.nj,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};r.prototype.Cz=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var c=a.Pa;c.right<this.ta||c.bottom<this.ua||c.left>this.Ca||c.top>this.Ba||(b.globalCompositeOperation=a.nj,a.Ac(b))}};r.prototype.eo=function(){this.Ve=!0;var a=this.nb(0,0,!0,!0),b=this.nb(0,0,!1,!0);this.Ve=
!1;this.b.vc&&(a=Math.round(a),b=Math.round(b));this.wn(a,b,null)};r.prototype.wn=function(a,b,c){var l=this.Cc();this.ta=a;this.ua=b;this.Ca=a+1/l*this.b.W;this.Ba=b+1/l*this.b.V;this.ta>this.Ca&&(a=this.ta,this.ta=this.Ca,this.Ca=a);this.ua>this.Ba&&(a=this.ua,this.ua=this.Ba,this.Ba=a);a=this.Kb();0!==a&&(c&&(c.translate(this.b.W/2,this.b.V/2),c.rotate(-a),c.translate(this.b.W/-2,this.b.V/-2)),this.yf.set(this.ta,this.ua,this.Ca,this.Ba),this.yf.offset((this.ta+this.Ca)/-2,(this.ua+this.Ba)/-2),
this.Dv.kv(this.yf,a),this.Dv.vs(this.yf),this.yf.offset((this.ta+this.Ca)/2,(this.ua+this.Ba)/2),this.ta=this.yf.left,this.ua=this.yf.top,this.Ca=this.yf.right,this.Ba=this.yf.bottom)};r.prototype.Vf=function(a){if(this.De=this.jm){this.b.Ob||(this.b.Ob=a.$c(this.b.W,this.b.V,this.b.Na));if(this.b.Ob.Bg!==this.b.W||this.b.Ob.Ag!==this.b.V)a.deleteTexture(this.b.Ob),this.b.Ob=a.$c(this.b.W,this.b.V,this.b.Na);a.Nd(this.b.Ob)}this.Ve=!0;var b=this.nb(0,0,!0,!0),c=this.nb(0,0,!1,!0);this.Ve=!1;this.b.vc&&
(b=Math.round(b),c=Math.round(c));this.wn(b,c,null);b=this.Cc();a.Md();a.scale(b,b);a.xn(-this.Kb());a.translate((this.ta+this.Ca)/-2,(this.ua+this.Ba)/-2);a.vd();this.wd?(this.ec.left=this.nc.Lc(this.ta),this.ec.top=this.nc.Mc(this.ua),this.ec.right=this.nc.Lc(this.Ca),this.ec.bottom=this.nc.Mc(this.Ba),this.ee||!this.ec.sj(this.qi)?(m(this.ff),b=this.np(),this.ee=!1,this.qi.Kh(this.ec)):b=this.ff):b=this.k;for(var l,f=null,c=b.length-1;0<=c;--c)l=b[c],l!==f&&(this.Ez(b[c],a),f=l);this.wd&&(this.ff=
b);this.ie||(this.No=this.b.Ig++,a.Dn(this.No),a.Yu(1,1,1),a.Rs(),a.hC())};r.prototype.xb=function(a){var b=0,c=0;if(this.De=this.jm||1!==this.opacity||0<this.Da.length||0!==this.rc){this.b.Ob||(this.b.Ob=a.$c(this.b.W,this.b.V,this.b.Na));if(this.b.Ob.Bg!==this.b.W||this.b.Ob.Ag!==this.b.V)a.deleteTexture(this.b.Ob),this.b.Ob=a.$c(this.b.W,this.b.V,this.b.Na);a.Nd(this.b.Ob);this.ie&&a.clear(0,0,0,0)}this.ie||(this.b.Qa?(a.Dn(this.No),a.Yu(this.Wd[0]/255,this.Wd[1]/255,this.Wd[2]/255),a.Rs(),a.uC()):
a.clear(this.Wd[0]/255,this.Wd[1]/255,this.Wd[2]/255,1));this.Ve=!0;var l=this.nb(0,0,!0,!0),b=this.nb(0,0,!1,!0);this.Ve=!1;this.b.vc&&(l=Math.round(l),b=Math.round(b));this.wn(l,b,null);l=this.Cc();a.Md();a.scale(l,l);a.xn(-this.Kb());a.translate((this.ta+this.Ca)/-2,(this.ua+this.Ba)/-2);a.vd();this.wd?(this.ec.left=this.nc.Lc(this.ta),this.ec.top=this.nc.Mc(this.ua),this.ec.right=this.nc.Lc(this.Ca),this.ec.bottom=this.nc.Mc(this.Ba),this.ee||!this.ec.sj(this.qi)?(m(this.ff),b=this.np(),this.ee=
!1,this.qi.Kh(this.ec)):b=this.ff):b=this.k;var f,e,n=null,c=0;for(f=b.length;c<f;++c)e=b[c],e!==n&&(this.Dz(b[c],a),n=e);this.wd&&(this.ff=b);this.De&&(b=this.Da.length?this.Da[0].Gb:0,c=this.Da.length?this.Da[0].index:0,0===this.Da.length||1===this.Da.length&&!a.Cq(b)&&1===this.opacity?(1===this.Da.length?(a.Wc(b),a.Li(this.Ab.zj(),1/this.b.W,1/this.b.V,0,0,1,1,l,this.Kb(),this.ta,this.ua,(this.ta+this.Ca)/2,(this.ua+this.Ba)/2,this.b.zb.Y,this.fb[c]),a.qn(b)&&(this.b.ca=!0)):a.Wc(0),a.Nd(this.Ab.zj()),
a.He(this.opacity),a.wc(this.b.Ob),a.sg(this.xc,this.tc),a.Md(),a.vd(),l=this.b.W/2,b=this.b.V/2,a.Ii(-l,b,l,b,l,-b,-l,-b),a.wc(null)):this.Ab.Hq(a,this,null,this.Ab.zj()))};r.prototype.Dz=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var c=a.Pa;c.right<this.ta||c.bottom<this.ua||c.left>this.Ca||c.top>this.Ba||(b.Dn(a.Ig),a.Qv?this.Fz(a,b):(b.Wc(0),b.sg(a.xc,a.tc),a.xb(b)))}};r.prototype.Ez=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var c=a.Pa;c.right<this.ta||c.bottom<
this.ua||c.left>this.Ca||c.top>this.Ba||(a.Ig=this.b.Ig++,0===a.rc&&1===a.opacity&&a.uf&&a.Vf&&(b.Dn(a.Ig),a.Vf(b)))}};r.prototype.Fz=function(a,b){var c=a.Da[0].Gb,l=a.Da[0].index,f=this.Cc();if(1!==a.Da.length||b.Cq(c)||b.ZB(c)||(a.q||a.u.Kb())&&b.sk(c)||1!==a.opacity||a.type.qa.ku)this.Ab.Hq(b,this,a,this.De?this.b.Ob:this.Ab.zj()),b.Md(),b.scale(f,f),b.xn(-this.Kb()),b.translate((this.ta+this.Ca)/-2,(this.ua+this.Ba)/-2),b.vd();else{b.Wc(c);b.sg(a.xc,a.tc);b.qn(c)&&(this.b.ca=!0);var e=0,m=0,
h=0,t=0;b.sk(c)&&(t=a.Pa,e=this.Ra(t.left,t.top,!0,!0),m=this.Ra(t.left,t.top,!1,!0),h=this.Ra(t.right,t.bottom,!0,!0),t=this.Ra(t.right,t.bottom,!1,!0),e=e/windowWidth,m=1-m/windowHeight,h=h/windowWidth,t=1-t/windowHeight);var n;a.cc&&a.cc.I?(n=a.cc.I,c=1/n.width,n=1/n.height):(c=1/a.width,n=1/a.height);b.Li(this.De?this.b.Ob:this.Ab.zj(),c,n,e,m,h,t,f,this.Kb(),this.ta,this.ua,(this.ta+this.Ca)/2,(this.ua+this.Ba)/2,this.b.zb.Y,a.fb[l]);a.xb(b)}};r.prototype.nb=function(a,b,c,l){var f=this.b.devicePixelRatio;
this.b.Vg&&(a*=f,b*=f);var f=this.b.Hu,e=this.b.Iu,f=(this.Ab.scrollX-f)*this.Sc+f,e=(this.Ab.scrollY-e)*this.Tc+e,m=f,h=e,t=1/this.Cc(!l);l?(m-=this.b.W*t/2,h-=this.b.V*t/2):(m-=this.b.width*t/2,h-=this.b.height*t/2);m+=a*t;h+=b*t;b=this.Kb();0!==b&&(m-=f,h-=e,a=Math.cos(b),b=Math.sin(b),l=m*a-h*b,h=h*a+m*b,m=l+f,h+=e);return c?m:h};r.prototype.Ra=function(a,b,c,l){var f=this.b.Hu,e=this.b.Iu,m=(this.Ab.scrollX-f)*this.Sc+f,h=(this.Ab.scrollY-e)*this.Tc+e,e=m,f=h,t=this.Kb();if(0!==t){a-=m;b-=h;
var n=Math.cos(-t),t=Math.sin(-t),q=a*n-b*t;b=b*n+a*t;a=q+m;b+=h}m=1/this.Cc(!l);l?(e-=this.b.W*m/2,f-=this.b.V*m/2):(e-=this.b.width*m/2,f-=this.b.height*m/2);e=(a-e)/m;f=(b-f)/m;a=this.b.devicePixelRatio;this.b.Vg&&!l&&(e/=a,f/=a);return c?e:f};r.prototype.Za=function(){var a,b,c,f={s:this.scale,a:this.q,vl:this.ta,vt:this.ua,vr:this.Ca,vb:this.Ba,v:this.visible,bc:this.Wd,t:this.ie,px:this.Sc,py:this.Tc,o:this.opacity,zr:this.yc,fx:[],cg:this.pj,instances:[]};a=0;for(b=this.ea.length;a<b;a++)c=
this.ea[a],f.fx.push({name:c.name,active:c.$a,params:this.fb[c.index]});return f};r.prototype.gb=function(a){var b,c,f;this.scale=a.s;this.q=a.a;this.ta=a.vl;this.ua=a.vt;this.Ca=a.vr;this.Ba=a.vb;this.visible=a.v;this.Wd=a.bc;this.ie=a.t;this.Sc=a.px;this.Tc=a.py;this.opacity=a.o;this.yc=a.zr;this.pj=a.cg||[];Ba(this.md,this.tv);var e=new ea;b=0;for(f=this.pj.length;b<f;++b)e.add(this.pj[b]);c=b=0;for(f=this.md.length;b<f;++b)e.contains(this.md[b][2])||(this.md[c]=this.md[b],++c);Aa(this.md,c);c=
a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.jp(c[b].name))a.$a=c[b].active,this.fb[a.index]=c[b].params;this.je();this.k.sort(p);this.Ah=!0};Wb=r})();
(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 p(a,b){return a.index-b.index}function r(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=M.length&&(M.length=a.length+1);M[a.length]||(M[a.length]=[]);f=M[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a}
function q(a,b){this.b=a;this.Gv={};this.Ms={};this.vp=!1;this.gt=new ea;this.To=[];this.Eo=[];this.name=b[0];var c=b[1];this.Xf=[];var d,f;d=0;for(f=c.length;d<f;d++)this.it(c[d],null,this.Xf)}function m(a){this.type=a;this.k=[];this.ma=[];this.ka=!0}function n(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.La=[];this.tg=[];this.dt=this.Xn=this.hr=this.wm=this.group=this.Xq=!1;this.Ib=[];this.xd=[];this.Pd=[];this.Cj="";this.Qg=this.wm=this.group=!1;this.El=null;c[1]&&(this.Cj=c[1][1].toLowerCase(),
this.group=!0,this.wm=!!c[1][0],this.El=[],this.Qg=this.wm,this.b.Kf.push(this),this.b.Zh[this.Cj]=this);this.sd=c[2];this.ra=c[4];this.group||(this.b.us[this.ra.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Xb(this,d[a]);f.index=a;this.Ib.push(f);this.ls(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Yb(this,d[a]),f.index=a,this.xd.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.it(c[a],this,this.Pd);this.Em=!1;this.Ib.length&&(this.Em=null==this.Ib[0].type&&
this.Ib[0].fc==X.prototype.n.Br)}function f(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.ic))for(c=0,d=a.Zc.length;c<d;c++)f=a.Zc[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.jd=a;this.sheet=a.sheet;this.b=a.b;this.ja=[];this.hb=[];this.O={};this.index=-1;this.gj=!1;this.fc=this.b.Ff(b[1]);this.trigger=0<b[3];this.Ls=2===b[3];this.ze=b[4];this.bi=b[5];this.tB=b[6];this.ra=b[7];this.b.Sf[this.ra.toString()]=this;-1===b[0]?(this.type=null,this.Fb=this.Mq,this.zg=null,this.Yd=
-1):(this.type=this.b.G[b[0]],this.Fb=this.tB?this.nC:this.Lq,b[2]?(this.zg=this.type.mm(b[2]),this.Yd=this.type.gp(b[2])):(this.zg=null,this.Yd=-1),this.jd.parent&&this.jd.parent.En());this.Ls&&(this.Fb=this.oC);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var l=new Zb(this,f[c]);this.ja.push(l)}this.hb.length=f.length}}function b(a,b){this.jd=a;this.sheet=a.sheet;this.b=a.b;this.ja=[];this.hb=[];this.O={};this.index=-1;this.gj=!1;this.fc=this.b.Ff(b[1]);-1===b[0]?(this.type=null,
this.Fb=this.Mq,this.zg=null,this.Yd=-1):(this.type=this.b.G[b[0]],this.Fb=this.Lq,b[2]?(this.zg=this.type.mm(b[2]),this.Yd=this.type.gp(b[2])):(this.zg=null,this.Yd=-1));this.ra=b[3];this.b.If[this.ra.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var l=new Zb(this,f[c]);this.ja.push(l)}this.hb.length=f.length}}function c(){v++;P.length===v&&P.push(new $b);return P[v]}function d(a,b){this.Va=a;this.jd=a.jd;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.te=null;this.vf=
0;this.get=null;this.Bs=0;this.Ab=null;this.key=0;this.object=null;this.index=0;this.Sk=this.vh=this.Sk=this.vh=this.Ps=this.Lg=this.Tk=null;this.Rd=!1;var c,d,f;switch(b[0]){case 0:case 7:this.te=new ac(this,b[1]);this.vf=0;this.get=this.PA;break;case 1:this.te=new ac(this,b[1]);this.vf=0;this.get=this.QA;break;case 5:this.te=new ac(this,b[1]);this.vf=0;this.get=this.UA;break;case 3:case 8:this.Bs=b[1];this.get=this.NA;break;case 6:this.Ab=this.b.ri[b[1]];this.get=this.VA;break;case 9:this.key=b[1];
this.get=this.TA;break;case 4:this.object=this.b.G[b[1]];this.get=this.WA;this.jd.ls(this.object);this.Va instanceof Yb?this.jd.En():this.jd.parent&&this.jd.parent.En();break;case 10:this.index=b[1];a.type&&a.type.M?(this.get=this.RA,this.Rd=!0):this.get=this.SA;break;case 11:this.Tk=b[1];this.Lg=null;this.get=this.OA;break;case 2:case 12:this.Ps=b[1];this.get=this.MA;break;case 13:for(this.get=this.XA,this.vh=[],this.Sk=[],c=1,d=b.length;c<d;c++)f=new Zb(this.Va,b[c]),this.vh.push(f),this.Sk.push(0)}}
function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.La=[];this.name=c[1];this.fo=c[2];this.zp=c[3];this.Pj=!!c[4];this.Dm=!!c[5];this.ra=c[6];this.b.Yi[this.ra.toString()]=this;this.data=this.zp;this.parent?(this.gh=this.Pj||this.Dm?-1:this.b.wC++,this.b.Ny.push(this)):(this.gh=-1,this.b.My.push(this))}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.La=[];this.Fj=null;this.cB=c[1];this.$a=!0}function l(){this.vv=[];this.reset(null)}var M=[];q.prototype.toString=function(){return this.name};
q.prototype.it=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.sd)for(c.push(a),c=0,b=a.Ib.length;c<b;c++)a.Ib[c].trigger&&this.jt(a,c);else a.xt()?this.jt(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)}};q.prototype.qb=function(){var a,b;a=0;for(b=this.Xf.length;a<b;a++)this.Xf[a].qb(a<b-1&&this.Xf[a+1].Em)};q.prototype.nr=function(){R(this.To);R(this.Eo);this.ks(this);R(this.Eo)};q.prototype.ks=function(a){var b,c,d,f,l=a.To,k=a.Eo,
g=this.gt.Bf();b=0;for(c=g.length;b<c;++b)d=g[b],f=d.Fj,!d.$a||a===f||-1<k.indexOf(f)||(k.push(f),f.ks(a),l.push(f))};q.prototype.Fb=function(a){this.b.SD||(this.vp=!0,a||(this.b.Kp=!0));var b,c;b=0;for(c=this.Xf.length;b<c;b++){var d=this.Xf[b];d.Fb();this.b.Mo(d.La);this.b.ag&&this.b.qc()}a||(this.b.Kp=!1)};q.prototype.jt=function(a,b){a.sd||this.b.ao.push(a);var c,d,f=a.Ib[b],l;f.type?l=f.type.name:l="system";var k=(c=f.Ls)?this.Ms:this.Gv;k[l]||(k[l]=[]);l=k[l];k=f.fc;if(c){if(f.ja.length&&(f=
f.ja[0],1===f.type&&2===f.te.type)){f=f.te.value.toLowerCase();c=0;for(d=l.length;c<d;c++)if(l[c].method==k){c=l[c].tj;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];l.push({method:k,tj:c})}}else{c=0;for(d=l.length;c<d;c++)if(l[c].method==k){l[c].tj.push([a,b]);return}Y&&k===Y.prototype.n.Eh?l.unshift({method:k,tj:[[a,b]]}):l.push({method:k,tj:[[a,b]]})}};Gb=q;m.prototype.up=function(){return this.ka?this.type.k.length:this.k.length};m.prototype.Pc=function(){return this.ka?this.type.k:
this.k};m.prototype.qk=function(a){a&&(a.b.ob().wb.sd?(this.ka&&(R(this.k),Ba(this.ma,a.type.k),this.ka=!1),a=this.ma.indexOf(a),-1!==a&&(this.k.push(this.ma[a]),this.ma.splice(a,1))):(this.ka=!1,R(this.k),this.k[0]=a))};nb=m;window._c2hh_="25393FB06DF78920331A8DB6FB7175B2B6E939D5";n.prototype.qb=function(a){var b,c=this.parent;if(this.group)for(this.Xn=!0;c;){if(!c.group){this.Xn=!1;break}c=c.parent}this.hr=!this.xt()&&(!this.parent||this.parent.group&&this.parent.Xn);this.dt=!!a;this.tg=this.La.slice(0);
for(c=this.parent;c;){a=0;for(b=c.La.length;a<b;a++)this.Jy(c.La[a]);c=c.parent}this.La=r(this.La);this.tg=r(this.tg);a=0;for(b=this.Ib.length;a<b;a++)this.Ib[a].qb();a=0;for(b=this.xd.length;a<b;a++)this.xd[a].qb();a=0;for(b=this.Pd.length;a<b;a++)this.Pd[a].qb(a<b-1&&this.Pd[a+1].Em)};n.prototype.Bk=function(a){if(this.Qg!==!!a){this.Qg=!!a;var b;a=0;for(b=this.El.length;a<b;++a)this.El[a].Kv();0<b&&this.b.Aa.Kg&&this.b.Aa.Kg.nr()}};n.prototype.ls=function(a){f(a,this.La)};n.prototype.Jy=function(a){f(a,
this.tg)};n.prototype.En=function(){this.Xq=!0;this.parent&&this.parent.En()};n.prototype.xt=function(){return this.Ib.length?this.Ib[0].trigger:!1};n.prototype.Fb=function(){var a,b,c=!1,d=this.b,f=this.b.ob();f.wb=this;var l=this.Ib;this.Em||(f.Vo=!1);if(this.sd){0===l.length&&(c=!0);f.ub=0;for(a=l.length;f.ub<a;f.ub++)b=l[f.ub],b.trigger||(b=b.Fb())&&(c=!0);(f.Yg=c)&&this.yn()}else{f.ub=0;for(a=l.length;f.ub<a;f.ub++)if(b=l[f.ub].Fb(),!b){f.Yg=!1;this.hr&&d.ag&&d.qc();return}f.Yg=!0;this.yn()}this.Jz(f)};
n.prototype.Jz=function(a){a.Yg&&this.dt&&(a.Vo=!0);this.hr&&this.b.ag&&this.b.qc()};n.prototype.lC=function(a){this.b.ob().wb=this;this.Ib[a].Fb()&&(this.yn(),this.b.ob().Yg=!0)};n.prototype.yn=function(){var a=this.b.ob(),b;a.Oc=0;for(b=this.xd.length;a.Oc<b;a.Oc++)if(this.xd[a.Oc].Fb())return;this.Wu()};n.prototype.jC=function(){var a=this.b.ob(),b;for(b=this.xd.length;a.Oc<b;a.Oc++)if(this.xd[a.Oc].Fb())return;this.Wu()};n.prototype.Wu=function(){if(this.Pd.length){var a,b,c,d,f=this.Pd.length-
1;this.b.rn(this);if(this.Xq)for(a=0,b=this.Pd.length;a<b;a++)c=this.Pd[a],(d=!this.Xn||!this.group&&a<f)&&this.b.vk(c.La),c.Fb(),d?this.b.pg(c.La):this.b.Mo(c.La);else for(a=0,b=this.Pd.length;a<b;a++)this.Pd[a].Fb();this.b.mn()}};n.prototype.mC=function(){var a=this.b.ob();a.wb=this;var b=!1,c;a.ub=0;for(c=this.Ib.length;a.ub<c;a.ub++)if(this.Ib[a.ub].Fb())b=!0;else if(!this.sd)return!1;return this.sd?b:!0};n.prototype.Kq=function(){this.b.Mg++;var a=this.b.ob().ub,b=this.b.rn(this);if(!this.sd)for(b.ub=
a+1,a=this.Ib.length;b.ub<a;b.ub++)if(!this.Ib[b.ub].Fb()){this.b.mn();return}this.yn();this.b.mn()};n.prototype.lB=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ib[b].type===a.type)return!1;return!0};bc=n;a.prototype.qb=function(){var a,b,c;a=0;for(b=this.ja.length;a<b;a++)c=this.ja[a],c.qb(),c.Rd&&(this.gj=!0)};a.prototype.oC=function(){return!0};a.prototype.Mq=function(){var a,b;a=0;for(b=this.ja.length;a<b;a++)this.hb[a]=this.ja[a].get();return Ta(this.fc.apply(this.b.Je,
this.hb),this.bi)};a.prototype.nC=function(){var a,b;a=0;for(b=this.ja.length;a<b;a++)this.hb[a]=this.ja[a].get();a=this.fc.apply(this.zg?this.zg:this.type,this.hb);this.type.yd();return a};a.prototype.Lq=function(){var a,b,c,d,f,l,k,g,e=this.type,m=e.ba(),n=this.jd.sd&&!this.trigger;b=0;var v=e.ic,q=e.M,p=e.Xe,r=this.Yd,M=-1<r,P=this.gj,E=this.ja,u=this.hb,A=this.bi,F=this.fc,I;if(P)for(b=0,f=E.length;b<f;++b)l=E[b],l.Rd||(u[b]=l.get(0));else for(b=0,f=E.length;b<f;++b)u[b]=E[b].get(0);if(m.ka){R(m.k);
R(m.ma);I=e.k;a=0;for(d=I.length;a<d;++a){g=I[a];if(P)for(b=0,f=E.length;b<f;++b)l=E[b],l.Rd&&(u[b]=l.get(a));M?(b=0,q&&(b=g.type.Th[p]),b=F.apply(g.X[r+b],u)):b=F.apply(g,u);(k=Ta(b,A))?m.k.push(g):n&&m.ma.push(g)}e.finish&&e.finish(!0);m.ka=!1;e.yd();return m.up()}c=0;I=(k=n&&!this.jd.lB(this))?m.ma:m.k;var N=!1;a=0;for(d=I.length;a<d;++a){g=I[a];if(P)for(b=0,f=E.length;b<f;++b)l=E[b],l.Rd&&(u[b]=l.get(a));M?(b=0,q&&(b=g.type.Th[p]),b=F.apply(g.X[r+b],u)):b=F.apply(g,u);if(Ta(b,A))if(N=!0,k){if(m.k.push(g),
v)for(b=0,f=g.siblings.length;b<f;b++)l=g.siblings[b],l.type.ba().k.push(l)}else{I[c]=g;if(v)for(b=0,f=g.siblings.length;b<f;b++)l=g.siblings[b],l.type.ba().k[c]=l;c++}else if(k){I[c]=g;if(v)for(b=0,f=g.siblings.length;b<f;b++)l=g.siblings[b],l.type.ba().ma[c]=l;c++}else if(n&&(m.ma.push(g),v))for(b=0,f=g.siblings.length;b<f;b++)l=g.siblings[b],l.type.ba().ma.push(l)}Aa(I,c);if(v)for(q=e.Zc,a=0,d=q.length;a<d;a++)g=q[a].ba(),k?Aa(g.ma,c):Aa(g.k,c);c=N;if(k&&!N)for(a=0,d=m.k.length;a<d;a++){g=m.k[a];
if(P)for(b=0,f=E.length;b<f;b++)l=E[b],l.Rd&&(u[b]=l.get(a));b=M?F.apply(g.X[r],u):F.apply(g,u);if(Ta(b,A)){N=!0;break}}e.finish&&e.finish(c||n);return n?N:m.up()};Xb=a;b.prototype.qb=function(){var a,b,c;a=0;for(b=this.ja.length;a<b;a++)c=this.ja[a],c.qb(),c.Rd&&(this.gj=!0)};b.prototype.Mq=function(){var a=this.b,b,c,d=this.ja,f=this.hb;b=0;for(c=d.length;b<c;++b)f[b]=d[b].get();return this.fc.apply(a.Je,f)};b.prototype.Lq=function(){var a=this.type,b=this.Yd,c=a.Xe,d=this.gj,f=this.ja,l=this.hb,
k=this.fc,g=a.ba().Pc(),a=a.M,e=-1<b,m,n,v,q,p,r;if(d)for(n=0,q=f.length;n<q;++n)p=f[n],p.Rd||(l[n]=p.get(0));else for(n=0,q=f.length;n<q;++n)l[n]=f[n].get(0);m=0;for(v=g.length;m<v;++m){r=g[m];if(d)for(n=0,q=f.length;n<q;++n)p=f[n],p.Rd&&(l[n]=p.get(m));e?(n=0,a&&(n=r.type.Th[c]),k.apply(r.X[b+n],l)):k.apply(r,l)}return!1};Yb=b;var P=[],v=-1;d.prototype.qb=function(){var a,b;if(11===this.type)this.Lg=this.b.Ws(this.Tk,this.jd.parent);else if(13===this.type)for(a=0,b=this.vh.length;a<b;a++)this.vh[a].qb();
this.te&&this.te.qb()};d.prototype.zB=function(a){this.Rd||!a||a.qa.Kn||(this.Rd=!0)};d.prototype.hv=function(){this.Rd=!0};d.prototype.PA=function(a){this.vf=a||0;a=c();this.te.get(a);v--;return a.data};d.prototype.QA=function(a){this.vf=a||0;a=c();this.te.get(a);v--;return la(a.data)?a.data:""};d.prototype.WA=function(){return this.object};d.prototype.NA=function(){return this.Bs};d.prototype.UA=function(a){this.vf=a||0;a=c();this.te.get(a);v--;return a.Vb()?this.b.Ze(a.data):this.b.yj(a.data)};
d.prototype.VA=function(){return this.Ab};d.prototype.TA=function(){return this.key};d.prototype.SA=function(){return this.index};d.prototype.RA=function(a){a=a||0;var b=this.Va.type,c=null,c=b.ba(),d=c.Pc();if(d.length)c=d[a%d.length].type;else if(c.ma.length)c=c.ma[a%c.ma.length].type;else if(b.k.length)c=b.k[a%b.k.length].type;else return 0;return this.index+c.Yl[b.Xe]};d.prototype.OA=function(){return this.Lg};d.prototype.MA=function(){return this.Ps};d.prototype.XA=function(){var a,b;a=0;for(b=
this.vh.length;a<b;a++)this.Sk[a]=this.vh[a].get();return this.Sk};Zb=d;k.prototype.qb=function(){this.La=r(this.La)};k.prototype.sh=function(a){var b=this.b.Us();this.parent&&!this.Pj&&b?(this.gh>=b.length&&(b.length=this.gh+1),b[this.gh]=a):this.data=a};k.prototype.Aj=function(){var a=this.b.Us();return!this.parent||this.Pj||!a||this.Dm?this.data:this.gh>=a.length||"undefined"===typeof a[this.gh]?this.zp:a[this.gh]};k.prototype.Fb=function(){!this.parent||this.Pj||this.Dm||this.sh(this.zp)};Tb=
k;g.prototype.toString=function(){return"include:"+this.Fj.toString()};g.prototype.qb=function(){this.Fj=this.b.Yo[this.cB];this.sheet.gt.add(this);this.La=r(this.La);for(var a=this.parent;a;)a.group&&a.El.push(this),a=a.parent;this.Kv()};g.prototype.Fb=function(){this.parent&&this.b.uk(this.b.G);this.Fj.vp||this.Fj.Fb(!0);this.parent&&this.b.pg(this.b.G)};g.prototype.Kv=function(){for(var a=this.parent;a;){if(a.group&&!a.Qg){this.$a=!1;return}a=a.parent}this.$a=!0};cc=g;l.prototype.reset=function(a){this.wb=
a;this.Oc=this.ub=0;R(this.vv);this.Vo=this.Yg=!1};l.prototype.nB=function(){return this.wb.Xq?!0:this.ub<this.wb.Ib.length-1?!!this.wb.La.length:!1};Sb=l})();
(function(){function e(f,a){this.Va=f;this.b=f.b;this.type=a[0];this.get=[this.aA,this.Xz,this.jA,this.mA,this.Mz,this.kA,this.eA,this.Uz,this.dA,this.iA,this.Nz,this.hA,this.Vz,this.fA,this.bA,this.cA,this.Yz,this.Zz,this.Tz,this.lA,this.gA,this.$z,this.Sz,this.Wz][this.type];var b=null;this.nf=this.ja=this.hb=this.fc=this.Un=this.second=this.first=this.value=null;this.Yd=-1;this.ae=null;this.Rv=-1;this.Lg=this.Tk=null;this.Ki=!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.Un=new ac(f,a[3]);break;case 19:this.fc=this.b.Ff(a[1]);this.fc!==X.prototype.aa.random&&this.fc!==X.prototype.aa.$y||this.Va.hv();this.hb=[];this.ja=[];3===a.length?(b=a[2],this.hb.length=b.length+1):this.hb.length=1;break;case 20:this.nf=this.b.G[a[1]];this.Yd=-1;this.fc=this.b.Ff(a[2]);this.Ki=a[3];qc&&this.fc===qc.prototype.aa.aw&&this.Va.hv();a[4]?this.ae=new ac(f,a[4]):this.ae=null;this.hb=[];this.ja=[];6===
a.length?(b=a[5],this.hb.length=b.length+1):this.hb.length=1;break;case 21:this.nf=this.b.G[a[1]];this.Ki=a[2];a[3]?this.ae=new ac(f,a[3]):this.ae=null;this.Rv=a[4];break;case 22:this.nf=this.b.G[a[1]];this.nf.mm(a[2]);this.Yd=this.nf.gp(a[2]);this.fc=this.b.Ff(a[3]);this.Ki=a[4];a[5]?this.ae=new ac(f,a[5]):this.ae=null;this.hb=[];this.ja=[];7===a.length?(b=a[6],this.hb.length=b.length+1):this.hb.length=1;break;case 23:this.Tk=a[1],this.Lg=null}this.Va.zB(this.nf);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.ja.push(new ac(f,b[c]))}}function p(){++n;m.length===n&&m.push(new $b);return m[n]}function r(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 q(f,a){this.type=f||dc.Ch;this.data=a||0;this.mh=null;this.type==dc.Ch&&(this.data=Math.floor(this.data))}e.prototype.qb=function(){23===this.type&&(this.Lg=this.Va.b.Ws(this.Tk,this.Va.jd.parent));this.first&&this.first.qb();this.second&&this.second.qb();
this.Un&&this.Un.qb();this.ae&&this.ae.qb();if(this.ja){var f,a;f=0;for(a=this.ja.length;f<a;f++)this.ja[f].qb()}};var m=[],n=-1;e.prototype.lA=function(f){var a=this.ja,b=this.hb;b[0]=f;f=p();r(a,b,f);--n;this.fc.apply(this.b.Je,b)};e.prototype.gA=function(f){var a=this.nf,b=this.hb,c=this.ja,d=this.ae,k=this.fc,g=this.Va.vf,l=a.ba(),e=l.Pc();if(!e.length)if(l.ma.length)e=l.ma;else{this.Ki?f.Ic(""):f.Oa(0);return}b[0]=f;f.mh=a;f=p();r(c,b,f);d&&(d.get(f),f.Vb()&&(g=f.data,e=a.k));--n;a=e.length;
if(g>=a||g<=-a)g%=a;0>g&&(g+=a);k.apply(e[g],b)};e.prototype.Sz=function(f){var a=this.nf,b=this.hb,c=this.ja,d=this.ae,k=this.Yd,g=this.fc,l=this.Va.vf,e=a.ba(),m=e.Pc();if(!m.length)if(e.ma.length)m=e.ma;else{this.Ki?f.Ic(""):f.Oa(0);return}b[0]=f;f.mh=a;f=p();r(c,b,f);d&&(d.get(f),f.Vb()&&(l=f.data,m=a.k));--n;c=m.length;if(l>=c||l<=-c)l%=c;0>l&&(l+=c);l=m[l];m=0;a.M&&(m=l.type.Th[a.Xe]);g.apply(l.X[k+m],b)};e.prototype.$z=function(f){var a=this.ae,b=this.nf,c=this.Rv,d=this.Va.vf,k=b.ba(),g=k.Pc();
if(!g.length)if(k.ma.length)g=k.ma;else{this.Ki?f.Ic(""):f.Oa(0);return}if(a){k=p();a.get(k);if(k.Vb()){d=k.data;g=b.k;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=b.lp(d);b=d.Nb[c];la(b)?f.Ic(b):f.P(b);--n;return}--n}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;b.M&&(g=d.type.Yl[b.Xe]);b=d.Nb[c+g];la(b)?f.Ic(b):f.P(b)};e.prototype.aA=function(f){f.type=dc.Ch;f.data=this.value};e.prototype.Xz=function(f){f.type=dc.Bh;f.data=this.value};e.prototype.jA=function(f){f.type=dc.String;f.data=
this.value};e.prototype.mA=function(f){this.first.get(f);f.Vb()&&(f.data=-f.data)};e.prototype.Mz=function(f){this.first.get(f);var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data+=a.data,a.fi()&&f.vi());--n};e.prototype.kA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data-=a.data,a.fi()&&f.vi());--n};e.prototype.eA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data*=a.data,a.fi()&&f.vi());--n};e.prototype.Uz=function(f){this.first.get(f);
var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data/=a.data,f.vi());--n};e.prototype.dA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data%=a.data,a.fi()&&f.vi());--n};e.prototype.iA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data=Math.pow(f.data,a.data),a.fi()&&f.vi());--n};e.prototype.Nz=function(f){this.first.get(f);var a=p();this.second.get(a);a.ji()||f.ji()?this.Pz(f,a):this.Oz(f,a);--n};e.prototype.Pz=function(f,a){f.ji()&&
a.ji()?this.Rz(f,a):this.Qz(f,a)};e.prototype.Rz=function(f,a){f.data+=a.data};e.prototype.Qz=function(f,a){f.ji()?f.data+=(Math.round(1E10*a.data)/1E10).toString():f.Ic(f.data.toString()+a.data)};e.prototype.Oz=function(f,a){f.Oa(f.data&&a.data?1:0)};e.prototype.hA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Vb()&&a.Vb()&&(f.data||a.data?f.Oa(1):f.Oa(0));--n};e.prototype.Tz=function(f){this.first.get(f);f.data?this.second.get(f):this.Un.get(f)};e.prototype.Vz=function(f){this.first.get(f);
var a=p();this.second.get(a);f.Oa(f.data===a.data?1:0);--n};e.prototype.fA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Oa(f.data!==a.data?1:0);--n};e.prototype.bA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Oa(f.data<a.data?1:0);--n};e.prototype.cA=function(f){this.first.get(f);var a=p();this.second.get(a);f.Oa(f.data<=a.data?1:0);--n};e.prototype.Yz=function(f){this.first.get(f);var a=p();this.second.get(a);f.Oa(f.data>a.data?1:0);--n};e.prototype.Zz=function(f){this.first.get(f);
var a=p();this.second.get(a);f.Oa(f.data>=a.data?1:0);--n};e.prototype.Wz=function(f){var a=this.Lg.Aj();ka(a)?f.P(a):f.Ic(a)};ac=e;q.prototype.fi=function(){return this.type===dc.Bh};q.prototype.Vb=function(){return this.type===dc.Ch||this.type===dc.Bh};q.prototype.ji=function(){return this.type===dc.String};q.prototype.vi=function(){this.fi()||(this.ji()&&(this.data=parseFloat(this.data)),this.type=dc.Bh)};q.prototype.Oa=function(f){this.type=dc.Ch;this.data=Math.floor(f)};q.prototype.P=function(f){this.type=
dc.Bh;this.data=f};q.prototype.Ic=function(f){this.type=dc.String;this.data=f};q.prototype.Fn=function(f){ka(f)?(this.type=dc.Bh,this.data=f):la(f)?(this.type=dc.String,this.data=f.toString()):(this.type=dc.Ch,this.data=0)};$b=q;dc={Ch:0,Bh:1,String:2}})();function X(e){this.b=e;this.Xc=[]}
X.prototype.Za=function(){var e={},p,r,q,m,n,f,a,b;e.waits=[];var c=e.waits,d;p=0;for(r=this.Xc.length;p<r;p++){f=this.Xc[p];d={t:f.time,st:f.qv,s:f.Wq,ev:f.Rh.ra,sm:[],sols:{}};f.Rh.xd[f.Oc]&&(d.act=f.Rh.xd[f.Oc].ra);q=0;for(m=f.La.length;q<m;q++)d.sm.push(f.La[q].ra);for(n in f.Jc)if(f.Jc.hasOwnProperty(n)){a=this.b.G[parseInt(n,10)];b={sa:f.Jc[n].zn,insts:[]};q=0;for(m=f.Jc[n].bf.length;q<m;q++)b.insts.push(f.Jc[n].bf[q].uid);d.sols[a.ra.toString()]=b}c.push(d)}return e};
X.prototype.gb=function(e){e=e.waits;var p,r,q,m,n,f,a,b,c,d,k;R(this.Xc);p=0;for(r=e.length;p<r;p++)if(f=e[p],b=this.b.us[f.ev.toString()]){c=-1;q=0;for(m=b.xd.length;q<m;q++)if(b.xd[q].ra===f.act){c=q;break}if(-1!==c){a={Jc:{},La:[],Uo:!1};a.time=f.t;a.qv=f.st||"";a.Wq=!!f.s;a.Rh=b;a.Oc=c;q=0;for(m=f.sm.length;q<m;q++)(b=this.b.om(f.sm[q]))&&a.La.push(b);for(n in f.sols)if(f.sols.hasOwnProperty(n)&&(b=this.b.om(parseInt(n,10)))){c=f.sols[n];d={zn:c.sa,bf:[]};q=0;for(m=c.insts.length;q<m;q++)(k=
this.b.Pg(c.insts[q]))&&d.bf.push(k);a.Jc[b.index.toString()]=d}this.Xc.push(a)}}};
(function(){function e(){}function p(){}function r(){}var q=X.prototype;e.prototype.uw=function(){return!0};e.prototype.Rr=function(){return!0};e.prototype.Ax=function(){return!0};e.prototype.gw=function(a,c,d){return ec(a,c,d)};var m=[],n=-1;e.prototype.xw=function(a){var c=a.ba();n++;m.length===n&&m.push([]);var d=m[n];Ba(d,c.Pc());var f=this.b.ob(),g=f.wb,l=f.nB(),f=this.b.aC(),e,q,v,h,t,p,r=a.ic;if(l)for(l=0,e=d.length;l<e&&!f.Zb;l++){this.b.vk(g.La);h=d[l];c=a.ba();c.ka=!1;R(c.k);c.k[0]=h;if(r)for(q=
0,v=h.siblings.length;q<v;q++)t=h.siblings[q],p=t.type.ba(),p.ka=!1,R(p.k),p.k[0]=t;f.index=l;g.Kq();this.b.pg(g.La)}else for(c.ka=!1,R(c.k),l=0,e=d.length;l<e&&!f.Zb;l++){h=d[l];c.k[0]=h;if(r)for(q=0,v=h.siblings.length;q<v;q++)t=h.siblings[q],p=t.type.ba(),p.ka=!1,R(p.k),p.k[0]=t;f.index=l;g.Kq()}R(d);this.b.TB();n--;return!1};e.prototype.zy=function(){var a=this.b.Xh().O;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,d=this.b.ge;a.TriggerOnce_lastTick=
d;return this.b.Tp||c!==d-1};e.prototype.sw=function(a){var c=this.b.Xh(),d=c.O.Every_lastTime||0,f=this.b.zb.Y;"undefined"===typeof c.O.Every_seconds&&(c.O.Every_seconds=a);var g=c.O.Every_seconds;if(f>=d+g)return c.O.Every_lastTime=d+g,f>=c.O.Every_lastTime+.04&&(c.O.Every_lastTime=f),c.O.Every_seconds=a,!0;f<d-.1&&(c.O.Every_lastTime=f);return!1};e.prototype.kw=function(a,c,d){return ec(a.Aj(),c,d)};e.prototype.Lw=function(a){return(a=this.b.Zh[a.toLowerCase()])&&a.Qg};e.prototype.Pw=function(){return this.b.we};
e.prototype.Br=function(){var a=this.b.ob();return a.Vo?!1:!a.Yg};e.prototype.po=function(){return!0};e.prototype.kx=function(){return!0};e.prototype.ro=function(){return!0};e.prototype.Wr=function(){return!0};e.prototype.Bx=function(){return!0};e.prototype.el=function(){return!0};e.prototype.Yv=function(a,c,d){return Na(S(a),S(d))<=S(c)};e.prototype.Jw=function(a,c){return Qa(S(a),S(c))};e.prototype.Gw=function(a,c,d){a=La(a);c=La(c);d=La(d);return Qa(d,c)?Qa(a,c)&&!Qa(a,d):!(!Qa(a,c)&&Qa(a,d))};
q.n=new e;p.prototype.zw=function(a){this.b.eg||this.b.Zd||(this.b.Zd=a)};p.prototype.ax=function(a){if(!this.b.eg&&!this.b.Zd){var c=this.b.dd.indexOf(this.b.Aa);if(!a||0!==c)if(a||c!==this.b.dd.length-1)this.b.Zd=this.b.dd[c+(a?-1:1)]}};p.prototype.pw=function(a,c,d,f){if(c&&a&&(c=this.b.Hl(a,c,d,f))){this.b.od++;var g;this.b.trigger(Object.getPrototypeOf(a.qa).n.Dh,c);if(c.ic)for(d=0,f=c.siblings.length;d<f;d++)g=c.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.qa).n.Dh,g);this.b.od--;
a=a.ba();a.ka=!1;R(a.k);a.k[0]=c;if(c.ic)for(d=0,f=c.siblings.length;d<f;d++)g=c.siblings[d],a=g.type.ba(),a.ka=!1,R(a.k),a.k[0]=g}};p.prototype.oy=function(a,c){0===a.fo?ka(c)?a.sh(c):a.sh(parseFloat(c)):1===a.fo&&a.sh(c.toString())};p.prototype.Wv=function(a,c){0===a.fo?ka(c)?a.sh(a.Aj()+c):a.sh(a.Aj()+parseFloat(c)):1===a.fo&&a.sh(a.Aj()+c.toString())};p.prototype.by=function(a,c){var d=this.b.Zh[a.toLowerCase()];if(d)switch(c){case 0:d.Bk(!1);break;case 1:d.Bk(!0);break;case 2:d.Bk(!d.Qg)}};var f=
[],a=[];p.prototype.By=function(b){if(!(0>b)){var c,d,k,g=this.b.ob(),l;f.length?l=f.pop():l={Jc:{},La:[]};l.Uo=!1;l.time=this.b.zb.Y+b;l.qv="";l.Wq=!1;l.Rh=g.wb;l.Oc=g.Oc+1;b=0;for(c=this.b.G.length;b<c;b++)k=this.b.G[b],d=k.ba(),d.ka&&-1===g.wb.La.indexOf(k)||(l.La.push(k),k=void 0,a.length?k=a.pop():k={bf:[]},k.zn=!1,k.zn=d.ka,Ba(k.bf,d.k),l.Jc[b.toString()]=k);this.Xc.push(l);return!0}};p.prototype.Aw=function(a){if(!this.b.eg&&!this.b.Zd)for(var c in this.b.ri)if(this.b.ri.hasOwnProperty(c)&&
jb(c,a)){this.b.Zd=this.b.ri[c];break}};p.prototype.Tx=function(){if(!this.b.eg&&!this.b.Zd&&this.b.Aa){this.b.Zd=this.b.Aa;var a,c,d;a=0;for(c=this.b.Kf.length;a<c;a++)d=this.b.Kf[a],d.Bk(d.wm)}};q.C=new p;r.prototype["int"]=function(a,c){la(c)?(a.Oa(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.Oa(c)};r.prototype["float"]=function(a,c){la(c)?(a.P(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.P(c)};r.prototype.random=function(a,c,d){void 0===d?a.P(Math.random()*c):a.P(Math.random()*(d-c)+c)};r.prototype.sqrt=
function(a,c){a.P(Math.sqrt(c))};r.prototype.abs=function(a,c){a.P(Math.abs(c))};r.prototype.round=function(a,c){a.Oa(Math.round(c))};r.prototype.floor=function(a,c){a.Oa(Math.floor(c))};r.prototype.ceil=function(a,c){a.Oa(Math.ceil(c))};r.prototype.sin=function(a,c){a.P(Math.sin(S(c)))};r.prototype.cos=function(a,c){a.P(Math.cos(S(c)))};r.prototype.tan=function(a,c){a.P(Math.tan(S(c)))};r.prototype.asin=function(a,c){a.P(Ha(Math.asin(c)))};r.prototype.acos=function(a,c){a.P(Ha(Math.acos(c)))};r.prototype.atan=
function(a,c){a.P(Ha(Math.atan(c)))};r.prototype.exp=function(a,c){a.P(Math.exp(c))};r.prototype.log10=function(a,c){a.P(Math.log(c)/Math.LN10)};r.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,f,g;d=2;for(f=arguments.length;d<f;d++)g=arguments[d],"number"===typeof g&&c<g&&(c=g);a.P(c)};r.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,f,g;d=2;for(f=arguments.length;d<f;d++)g=arguments[d],"number"===typeof g&&c>g&&(c=g);a.P(c)};r.prototype.Wf=
function(a){a.P(this.b.Wf)};r.prototype.yh=function(a){a.P(this.b.yh)};r.prototype.time=function(a){a.P(this.b.zb.Y)};r.prototype.ge=function(a){a.Oa(this.b.ge)};r.prototype.Vm=function(a){a.Oa(this.b.Vm)};r.prototype.cp=function(a){a.Oa(this.b.cp)};r.prototype.q=function(a,c,d,f,g){a.P(Ha(Ma(c,d,f,g)))};r.prototype.left=function(a,c,d){a.Ic(la(c)?c.substr(0,d):"")};r.prototype.right=function(a,c,d){a.Ic(la(c)?c.substr(c.length-d):"")};r.prototype.replace=function(a,c,d,f){la(c)&&la(d)&&la(f)?a.Ic(c.replace(new RegExp(ab(d),
"gi"),f)):a.Ic(la(c)?c:"")};r.prototype.trim=function(a,c){a.Ic(la(c)?c.trim():"")};r.prototype.uB=function(a){this.b.Aa?a.Ic(this.b.Aa.name):a.Ic("")};r.prototype.$y=function(a){var c=z(Math.random()*(arguments.length-1));a.Fn(arguments[c+1])};r.prototype.Oo=function(a){a.P(this.b.Oo/1E3)};r.prototype.Lm=function(a){a.P(this.b.Lm)};q.aa=new r;q.kC=function(){var b,c,d,k,g,l,e=this.b.ob();b=0;for(d=this.Xc.length;b<d;b++){k=this.Xc[b];if(-1===k.time){if(!k.Wq)continue}else if(k.time>this.b.zb.Y)continue;
e.wb=k.Rh;e.Oc=k.Oc;e.ub=0;for(c in k.Jc)k.Jc.hasOwnProperty(c)&&(g=this.b.G[parseInt(c,10)].ba(),l=k.Jc[c],g.ka=l.zn,Ba(g.k,l.bf),g=l,R(g.bf),a.push(g));k.Rh.jC();this.b.Mo(k.La);k.Uo=!0}c=b=0;for(d=this.Xc.length;b<d;b++)k=this.Xc[b],this.Xc[c]=k,k.Uo?(Va(k.Jc),R(k.La),f.push(k)):c++;Aa(this.Xc,c)}})();
(function(){mb=function(e,r){var q=e[1],m=e[3],n=e[4],f=e[5],a=e[6],b=e[7],c=e[8];r.n||(r.n={});r.C||(r.C={});r.aa||(r.aa={});var d=r.n,k=r.C,g=r.aa;m&&(d.TC=function(a,b){return ec(this.x,a,b)},d.mw=function(a,b){return ec(this.y,a,b)},d.WC=function(){var a=this.u;this.Fa();var b=this.Pa;return!(b.right<a.ta||b.bottom<a.ua||b.left>a.Ca||b.top>a.Ba)},d.XC=function(){this.Fa();var a=this.Pa,b=this.b.Aa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.hD=function(a,b,c){var d=this.ba(),
f=d.Pc();if(!f.length)return!1;var g=f[0],k=g,e=Sa(g.x,g.y,b,c),m,n,q;m=1;for(n=f.length;m<n;m++)if(g=f[m],q=Sa(g.x,g.y,b,c),0===a&&q<e||1===a&&q>e)e=q,k=g;d.qk(k);return!0},k.tD=function(a){this.x!==a&&(this.x=a,this.F())},k.ty=function(a){this.y!==a&&(this.y=a,this.F())},k.jy=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},k.ky=function(a,b){var c=a.FA(this);if(c){var d;c.Og?(d=c.Og(b,!0),c=c.Og(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.F()}},k.aD=
function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},k.$C=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.F())},g.fl=function(a){a.P(this.x)},g.gl=function(a){a.P(this.y)},g.Wf=function(a){a.P(this.b.$f(this))});n&&(d.lw=function(a,b){return ec(this.width,a,b)},d.RC=function(a,b){return ec(this.height,a,b)},k.$r=function(a){this.width!==a&&(this.width=a,this.F())},k.qD=function(a){this.height!==a&&(this.height=a,this.F())},k.my=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},g.Cy=function(a){a.P(this.width)},g.Cw=function(a){a.P(this.height)},g.OC=function(a){this.Fa();a.P(this.Pa.left)},g.QC=function(a){this.Fa();a.P(this.Pa.top)},g.PC=function(a){this.Fa();a.P(this.Pa.right)},g.NC=function(a){this.Fa();a.P(this.Pa.bottom)});f&&(d.Yv=function(a,b){return Na(this.q,S(b))<=S(a)},d.Jw=function(a){return Qa(this.q,S(a))},d.Gw=function(a,b){var c=La(a),d=La(b),f=Ja(this.q);return Qa(d,c)?Qa(f,c)&&
!Qa(f,d):!(!Qa(f,c)&&Qa(f,d))},k.Zr=function(a){a=S(Ia(a));isNaN(a)||this.q===a||(this.q=a,this.F())},k.lD=function(a){0===a||isNaN(a)||(this.q+=S(a),this.q=Ja(this.q),this.F())},k.mD=function(a){0===a||isNaN(a)||(this.q-=S(a),this.q=Ja(this.q),this.F())},k.nD=function(a,b){var c=Oa(this.q,S(b),S(a));isNaN(c)||this.q===c||(this.q=c,this.F())},k.oD=function(a,b,c){a=Oa(this.q,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.q===a||(this.q=a,this.F())},k.sD=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.q===c||(this.q=c,this.F())},g.Xv=function(a){a.P(Ka(this.q))});q||(d.iw=function(a,b,c){return ec(this.Nb[a],b,c)},d.Hw=function(a){return this.Nb[a]},d.iD=function(a,b){var c=this.ba(),d=c.Pc();if(!d.length)return!1;var f=d[0],g=f,k=f.Nb[b],e,m,n;e=1;for(m=d.length;e<m;e++)if(f=d[e],n=f.Nb[b],0===a&&n<k||1===a&&n>k)k=n,g=f;c.qk(g);return!0},d.gD=function(a){var b,c,d,f,g;if(this.b.Xh().bi){g=this.ba();if(g.ka)for(g.ka=!1,R(g.k),R(g.ma),d=this.k,b=0,c=d.length;b<c;b++)f=d[b],
f.uid===a?g.ma.push(f):g.k.push(f);else{d=b=0;for(c=g.k.length;b<c;b++)f=g.k[b],g.k[d]=f,f.uid===a?g.ma.push(f):d++;Aa(g.k,d)}this.yd();return!!g.k.length}f=this.b.Pg(a);if(!f)return!1;g=this.ba();if(!g.ka&&-1===g.k.indexOf(f))return!1;if(this.M)for(a=f.type.cb,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.qk(f),this.yd(),!0}else if(f.type===this)return g.qk(f),this.yd(),!0;return!1},d.Dh=function(){return!0},d.Hr=function(){return!0},k.cy=function(a,b){var c=this.Nb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},k.MC=function(a,b){var c=this.Nb;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},k.yy=function(a,b){var c=this.Nb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},k.Zx=function(a,b){this.Nb[a]=b?1:0},k.uD=function(a){this.Nb[a]=1-this.Nb[a]},k.rw=function(){this.b.le(this)},k.$w||(k.$w=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Jm(this,b,!0);this.Td&&this.Td();if(this.X)for(a=0,b=this.X.length;a<
b;++a)c=this.X[a],c.Td&&c.Td()}),g.ow=function(a){var b=a.mh.k.length,c,d,f;c=0;for(d=this.b.$d.length;c<d;c++)f=this.b.$d[c],a.mh.M?0<=f.type.cb.indexOf(a.mh)&&b++:f.type===a.mh&&b++;a.Oa(b)},g.kD=function(a){a.Oa(a.mh.ba().Pc().length)},g.vD=function(a){a.Oa(this.uid)},g.UC=function(a){a.Oa(this.Bj())},g.$v||(g.$v=function(a){a.Ic(JSON.stringify(this.b.Nq(this,!0)))}));a&&(d.Xw=function(){return this.visible},k.wo=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ca=!0)},d.SC=function(a,
b){return ec(ib(100*this.opacity),a,b)},k.rD=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ca=!0)},g.Opacity=function(a){a.P(ib(100*this.opacity))});b&&(d.VC=function(a){return a?this.u===a:!1},d.jD=function(a){var b=this.ba(),c=b.Pc();if(!c.length)return!1;var d=c[0],f=d,g,k;g=1;for(k=c.length;g<k;g++)if(d=c[g],0===a){if(d.u.index>f.u.index||d.u.index===f.u.index&&d.ve()>f.ve())f=d}else if(d.u.index<f.u.index||d.u.index===f.u.index&&d.ve()<f.ve())f=d;b.qk(f);return!0},
k.dD=function(){var a=this.u,b=a.k;b.length&&b[b.length-1]===this||(a.Ji(this,!1),a.ij(this,!1),this.b.ca=!0)},k.bD=function(){var a=this.u,b=a.k;b.length&&b[0]===this||(a.Ji(this,!1),a.XB(this),this.b.ca=!0)},k.cD=function(a){a&&a!=this.u&&(this.u.Ji(this,!0),this.u=a,a.ij(this,!0),this.b.ca=!0)},k.xD=function(a,b){var c=0===a;if(b){var d=b.Xs(this);d&&d.uid!==this.uid&&(this.u.index!==d.u.index&&(this.u.Ji(this,!0),this.u=d.u,d.u.ij(this,!0)),this.u.CB(this,d,c),this.b.ca=!0)}},g.ZC=function(a){a.Oa(this.u.pu)},
g.YC=function(a){a.Ic(this.u.name)},g.wD=function(a){a.Oa(this.ve())});c&&(k.ay=function(a,b){if(this.b.D){var c=this.type.kp(b);if(!(0>c)){var d=1===a;this.Hf[c]!==d&&(this.Hf[c]=d,this.je(),this.b.ca=!0)}}},k.pD=function(a,b,c){if(this.b.D){var d=this.type.kp(a);0>d||(a=this.type.ea[d],d=this.fb[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.D.JA(a.Gb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.$a&&(this.b.ca=!0))))}})};Hb=function(){this.Lo=this.ul=!0;this.type.nl=!0;this.b.ca=!0;var e,r,q=this.Ho;e=0;
for(r=q.length;e<r;++e)q[e](this);this.u.wd&&this.Fa()};Ib=function(e){e&&this.Ho.push(e)};Nb=function(){if(this.ul){var e=this.Pa,r=this.$b;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Dc*this.width,-this.Ec*this.height);this.q?(e.offset(-this.x,-this.y),r.kv(e,this.q),r.offset(this.x,this.y),r.vs(e)):r.Ni(e);e.normalize();this.ul=!1;this.Pv()}};var e=new ua(0,0,0,0);Ob=function(){if(this.u.wd){var p=this.u.nc,r=this.Pa;e.set(p.Lc(r.left),p.Mc(r.top),p.Lc(r.right),p.Mc(r.bottom));
this.Uc.sj(e)||(this.Uc.right<this.Uc.left?p.update(this,null,e):p.update(this,this.Uc,e),this.Uc.Kh(e),this.u.ee=!0)}};Pb=function(){if(this.Lo&&this.Bd){this.Fa();var p=this.type.mj,r=this.Pa;e.set(p.Lc(r.left),p.Mc(r.top),p.Lc(r.right),p.Mc(r.bottom));this.Ad.sj(e)||(this.Ad.right<this.Ad.left?p.update(this,null,e):p.update(this,this.Ad,e),this.Ad.Kh(e),this.Lo=!1)}};Jb=function(e,r){return this.Pa.ac(e,r)&&this.$b.ac(e,r)?this.Ti?this.AC(e,r):this.Ha&&!this.Ha.ei()?(this.Ha.Cg(this.width,this.height,
this.q),this.Ha.ac(e-this.x,r-this.y)):!0:!1};Db=function(){this.type.bo();return this.Tg};Qb=function(){this.u.pr();return this.ke};Rb=function(){R(this.Da);var e,r,q,m=!0;e=0;for(r=this.Hf.length;e<r;e++)this.Hf[e]&&(q=this.type.ea[e],this.Da.push(q),q.Jd||(m=!1));this.Qv=!!this.Da.length;this.uf=m};Eb=function(){return"Inst"+this.Qu};pb=function(e){if(e&&e.ic&&e.type!=this){var r,q,m;r=0;for(q=e.siblings.length;r<q;r++)if(m=e.siblings[r],m.type==this)return m}e=this.ba().Pc();return e.length?e[0]:
null};qb=function(e){var r=this.ba().Pc();return r.length?r[e.Bj()%r.length]:null};ob=function(){if(this.Qi&&!this.M){var e,r;e=0;for(r=this.k.length;e<r;e++)this.k[e].Tg=e;var q=e,m=this.b.$d;e=0;for(r=m.length;e<r;++e)m[e].type===this&&(m[e].Tg=q++);this.Qi=!1}};Bb=function(e){if(e<this.k.length)return this.k[e];e-=this.k.length;var r=this.b.$d,q,m;q=0;for(m=r.length;q<m;++q)if(r[q].type===this){if(0===e)return r[q];--e}return null};rb=function(){return this.wf[this.pe]};sb=function(){this.pe++;
this.pe===this.wf.length?this.wf.push(new nb(this)):(this.wf[this.pe].ka=!0,R(this.wf[this.pe].ma))};vb=function(){this.pe++;this.pe===this.wf.length&&this.wf.push(new nb(this));var e=this.wf[this.pe],r=this.wf[this.pe-1];r.ka?e.ka=!0:(e.ka=!1,Ba(e.k,r.k));R(e.ma)};wb=function(){this.pe--};xb=function(e){var r,q,m,n,f,a=0;if(!this.M)for(r=0,q=this.cb.length;r<q;r++)for(f=this.cb[r],m=0,n=f.eb.length;m<n;m++){if(e===f.eb[m].name)return this.O.lastBehIndex=a,f.eb[m];a++}r=0;for(q=this.eb.length;r<q;r++){if(e===
this.eb[r].name)return this.O.lastBehIndex=a,this.eb[r];a++}return null};yb=function(e){return this.mm(e)?this.O.lastBehIndex:-1};zb=function(e){var r,q;r=0;for(q=this.ea.length;r<q;r++)if(this.ea[r].name===e)return r;return-1};Ab=function(){if(this.ic&&!this.M){var e,r,q,m,n,f,a;this.bo();f=this.ba();var b=f.ka,c=(e=this.b.ob())&&e.wb&&e.wb.sd;e=0;for(r=this.Zc.length;e<r;e++)if(n=this.Zc[e],n!==this&&(n.bo(),a=n.ba(),a.ka=b,!b)){R(a.k);q=0;for(m=f.k.length;q<m;++q)a.k[q]=n.lp(f.k[q].Tg);if(c)for(R(a.ma),
q=0,m=f.ma.length;q<m;++q)a.ma[q]=n.lp(f.ma[q].Tg)}}};Cb=function(){return"Type"+this.ra};ec=function(e,r,q){if("undefined"===typeof e||"undefined"===typeof q)return!1;switch(r){case 0:return e===q;case 1:return e!==q;case 2:return e<q;case 3:return e<=q;case 4:return e>q;case 5:return e>=q;default:return!1}}})();
var mc={replacecolor:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float rsource;\nuniform mediump float gsource;\nuniform mediump float bsource;\nuniform mediump float rdest;\nuniform mediump float gdest;\nuniform mediump float bdest;\nuniform lowp float tolerance;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= a;\nlowp float diff = length(front.rgb - vec3(rsource, gsource, bsource) / 255.0);\nif (diff <= tolerance)\n{\nfront.rgb = mix(front.rgb, vec3(rdest, gdest, bdest) / 255.0, 1.0 - diff / tolerance);\n}\nfront.rgb *= a;\ngl_FragColor = front;\n}",Ul:0,
Vl:0,Po:!1,Jd:!0,Fo:!1,ja:[["rsource",0,0],["gsource",0,0],["bsource",0,0],["rdest",0,0],["gdest",0,0],["bdest",0,0],["tolerance",0,1]]}};function rc(e){this.b=e}
(function(){function e(a){-1===tb.indexOf(a)&&tb.push(a)}function p(a){var b=a.B,c;try{c=b.play()}catch(d){e(a);return}c?c.catch(function(){e(a)}):Nc&&!D.Ya&&e(a)}function r(){var a,b,c,d;Oc||xa||!u||(q(),"running"===u.state&&(Oc=!0));var f=tb.slice(0);R(tb);if(!Z)for(a=0,b=f.length;a<b;++a)c=f[a],c.Zb||c.bd||(d=c.B.play())&&d.catch(function(){e(c)})}function q(){"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 m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return da.hasOwnProperty(a)&&da[a].length?da[a][0].ld():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 k(a,b,c,d,h,e){this.type="filter";this.pb=[a,b,c,d,h,e];this.xa=f();this.da=f();this.da.gain.value=e;this.Z=f();this.Z.gain.value=1-e;this.yb=u.createBiquadFilter();this.yb.type="number"===typeof this.yb.type?a:Sc[a];this.yb.frequency.value=b;this.yb.detune&&(this.yb.detune.value=c);this.yb.Q.value=d;this.yb.gain.value=h;this.xa.connect(this.yb);this.xa.connect(this.Z);this.yb.connect(this.da)}function g(b,c,d){this.type="delay";this.pb=[b,c,d];this.xa=f();this.da=f();this.da.gain.value=
d;this.Z=f();this.Z.gain.value=1-d;this.gk=f();this.Ed=a(b);this.Ed.delayTime.value=b;this.Ol=f();this.Ol.gain.value=c;this.xa.connect(this.gk);this.xa.connect(this.Z);this.gk.connect(this.da);this.gk.connect(this.Ed);this.Ed.connect(this.Ol);this.Ol.connect(this.gk)}function l(a,b,c,d){this.type="convolve";this.pb=[b,c,d];this.xa=f();this.da=f();this.da.gain.value=c;this.Z=f();this.Z.gain.value=1-c;this.Dg=u.createConvolver();a&&(this.Dg.normalize=b,this.Dg.buffer=a);this.xa.connect(this.Dg);this.xa.connect(this.Z);
this.Dg.connect(this.da)}function M(c,d,h,e,g){this.type="flanger";this.pb=[c,d,h,e,g];this.xa=f();this.Z=f();this.Z.gain.value=1-g/2;this.da=f();this.da.gain.value=g/2;this.Zl=f();this.Zl.gain.value=e;this.Ed=a(c+d);this.Ed.delayTime.value=c;this.Yb=u.createOscillator();this.Yb.frequency.value=h;this.gd=f();this.gd.gain.value=d;this.xa.connect(this.Ed);this.xa.connect(this.Z);this.Ed.connect(this.da);this.Ed.connect(this.Zl);this.Zl.connect(this.Ed);this.Yb.connect(this.gd);this.gd.connect(this.Ed.delayTime);
b(this.Yb)}function P(a,c,d,h,e,g){this.type="phaser";this.pb=[a,c,d,h,e,g];this.xa=f();this.Z=f();this.Z.gain.value=1-g/2;this.da=f();this.da.gain.value=g/2;this.yb=u.createBiquadFilter();this.yb.type="number"===typeof this.yb.type?7:"allpass";this.yb.frequency.value=a;this.yb.detune&&(this.yb.detune.value=c);this.yb.Q.value=d;this.Yb=u.createOscillator();this.Yb.frequency.value=e;this.gd=f();this.gd.gain.value=h;this.xa.connect(this.yb);this.xa.connect(this.Z);this.yb.connect(this.da);this.Yb.connect(this.gd);
this.gd.connect(this.yb.frequency);b(this.Yb)}function v(a){this.type="gain";this.pb=[a];this.za=f();this.za.gain.value=a}function h(a,c){this.type="tremolo";this.pb=[a,c];this.za=f();this.za.gain.value=1-c/2;this.Yb=u.createOscillator();this.Yb.frequency.value=a;this.gd=f();this.gd.gain.value=c/2;this.Yb.connect(this.gd);this.gd.connect(this.za.gain);b(this.Yb)}function t(a,c){this.type="ringmod";this.pb=[a,c];this.xa=f();this.da=f();this.da.gain.value=c;this.Z=f();this.Z.gain.value=1-c;this.Ak=
f();this.Ak.gain.value=0;this.Yb=u.createOscillator();this.Yb.frequency.value=a;this.Yb.connect(this.Ak.gain);b(this.Yb);this.xa.connect(this.Ak);this.xa.connect(this.Z);this.Ak.connect(this.da)}function K(a,b,c,d,h){this.type="distortion";this.pb=[a,b,c,d,h];this.xa=f();this.pn=f();this.nn=f();this.rC(c,Math.pow(10,d/20));this.da=f();this.da.gain.value=h;this.Z=f();this.Z.gain.value=1-h;this.jo=u.createWaveShaper();this.Ml=new Float32Array(65536);this.uA(a,b);this.jo.Ml=this.Ml;this.xa.connect(this.pn);
this.xa.connect(this.Z);this.pn.connect(this.jo);this.jo.connect(this.nn);this.nn.connect(this.da)}function Q(a,b,c,d,f){this.type="compressor";this.pb=[a,b,c,d,f];this.za=u.createDynamicsCompressor();try{this.za.threshold.value=a,this.za.knee.value=b,this.za.ratio.value=c,this.za.attack.value=d,this.za.release.value=f}catch(h){}}function B(a,b){this.type="analyser";this.pb=[a,b];this.za=u.createAnalyser();this.za.fftSize=a;this.za.smoothingTimeConstant=b;this.sA=new Float32Array(this.za.frequencyBinCount);
this.ov=new Uint8Array(a);this.ok=0}function y(){this.Ia=null;this.Km=0}function x(a,b){this.src=a;this.na=E;this.xe=b;this.ml=!1;var c=this;this.wi=this.Ei=null;this.Fi=[];this.An=0;this.tr=this.Xl=this.uv=this.hn=!1;1===E&&b&&!ub&&(this.na=0,this.Ei=f());this.Re=this.ya=null;var d;switch(this.na){case 0:this.ya=new Audio;this.ya.crossOrigin="anonymous";this.ya.addEventListener("canplaythrough",function(){c.tr=!0});1===E&&u.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.uv=!0,
this.ya.addEventListener("canplay",function(){!c.wi&&c.ya&&(c.wi=u.createMediaElementSource(c.ya),c.wi.connect(c.Ei))}));this.ya.autoplay=!1;this.ya.OD="auto";this.ya.src=a;break;case 1:D.Bm?D.Os(a,function(a){c.Re=a;c.Es()},function(){c.Xl=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Re=d.response;c.Es()},d.onerror=function(){c.Xl=!0},d.send());break;case 2:this.ya=!0;break;case 3:this.ya=!0}}function w(a,b){var c=this;this.tag=b;this.Zb=this.ue=
!0;this.src=a.src;this.buffer=a;this.na=E;this.xe=a.xe;this.playbackRate=1;this.ai=!0;this.bd=this.td=!1;this.Vc=0;this.Oj=this.gi=this.ze=!1;this.volume=1;this.uq=function(a){if(!c.bd&&!c.td){var b=this;b||(b=a.target);b===c.kl&&(c.ai=!0,c.Zb=!0,V=c.tag,D.trigger(rc.prototype.n.bl,U))}};this.kl=null;this.di=1===W&&!this.xe||2===W;this.yi=1;this.startTime=this.di?D.zb.Y:D.Cf.Y;this.Eb=this.Jb=null;this.Be=!1;this.jc=null;this.Eu=this.Du=this.Cu=this.Bu=this.Gu=this.Fu=0;this.B=null;var d=!1;1!==this.na||
0!==this.buffer.na||this.buffer.uv||(this.na=0);switch(this.na){case 0:this.xe?(this.B=a.ya,d=!a.ml,a.ml=!0):(this.B=new Audio,this.B.crossOrigin="anonymous",this.B.autoplay=!1,this.B.src=a.ya.src,d=!0);d&&this.B.addEventListener("ended",function(){V=c.tag;c.Zb=!0;D.trigger(rc.prototype.n.bl,U)});break;case 1:this.Jb=f();this.Jb.connect(n(b));1===this.buffer.na?a.ya&&(this.B=u.createBufferSource(),this.B.buffer=a.ya,this.B.connect(this.Jb)):(this.B=this.buffer.ya,this.buffer.Ei.connect(this.Jb),this.buffer.ml||
(this.buffer.ml=!0,this.buffer.ya.addEventListener("ended",function(){V=c.tag;c.Zb=!0;D.trigger(rc.prototype.n.bl,U)})));break;case 2:this.B=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.ai=!0,c.Zb=!0,V=c.tag,D.trigger(rc.prototype.n.bl,U))});break;case 3:this.B=!0}}function H(a){R(Ga);if(a.length){var b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],jb(a,d.tag)&&Ga.push(d)}else I&&!I.Sg()&&(R(Ga),Ga[0]=I)}function G(a,b){da.hasOwnProperty(a)?da[a].push(b):da[a]=[b];
var c,d,f,h,e=u.destination;if(da.hasOwnProperty(a)&&(f=da[a],f.length))for(e=f[0].ld(),c=0,d=f.length;c<d;c++)h=f[c],c+1===d?h.Cd(u.destination):h.Cd(f[c+1].ld());H(a);c=0;for(d=Ga.length;c<d;c++)Ga[c].dC(e);Pa&&Mb===a&&(Pa.disconnect(),Pa.connect(e))}function C(){}function O(){}var T=rc.prototype;T.S=function(a){this.qa=a;this.b=a.b};T.S.prototype.H=function(){};var D=null,U=null,V="",J="",E=0,u=null,A=[],F=[],I=null,N=!1,W=0,Z=!1,L=1,fa=0,ba=0,xa=!1,Lb=1,Kb=1,Jc=10,Lc=1E4,Mc=1,Pa=null,Mb="",Nc=
!1,tb=[],ub=!1,Oc=!1;document.addEventListener("pointerup",r,!0);document.addEventListener("touchend",r,!0);document.addEventListener("click",r,!0);document.addEventListener("keydown",r,!0);document.addEventListener("gamepadconnected",r,!0);var da={},Sc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");k.prototype.Cd=function(a){this.da.disconnect();this.da.connect(a);this.Z.disconnect();this.Z.connect(a)};k.prototype.remove=function(){this.xa.disconnect();this.yb.disconnect();
this.da.disconnect();this.Z.disconnect()};k.prototype.ld=function(){return this.xa};g.prototype.Cd=function(a){this.da.disconnect();this.da.connect(a);this.Z.disconnect();this.Z.connect(a)};g.prototype.remove=function(){this.xa.disconnect();this.gk.disconnect();this.Ed.disconnect();this.Ol.disconnect();this.da.disconnect();this.Z.disconnect()};g.prototype.ld=function(){return this.xa};l.prototype.Cd=function(a){this.da.disconnect();this.da.connect(a);this.Z.disconnect();this.Z.connect(a)};l.prototype.remove=
function(){this.xa.disconnect();this.Dg.disconnect();this.da.disconnect();this.Z.disconnect()};l.prototype.ld=function(){return this.xa};M.prototype.Cd=function(a){this.Z.disconnect();this.Z.connect(a);this.da.disconnect();this.da.connect(a)};M.prototype.remove=function(){this.xa.disconnect();this.Ed.disconnect();this.Yb.disconnect();this.gd.disconnect();this.Z.disconnect();this.da.disconnect();this.Zl.disconnect()};M.prototype.ld=function(){return this.xa};P.prototype.Cd=function(a){this.Z.disconnect();
this.Z.connect(a);this.da.disconnect();this.da.connect(a)};P.prototype.remove=function(){this.xa.disconnect();this.yb.disconnect();this.Yb.disconnect();this.gd.disconnect();this.Z.disconnect();this.da.disconnect()};P.prototype.ld=function(){return this.xa};v.prototype.Cd=function(a){this.za.disconnect();this.za.connect(a)};v.prototype.remove=function(){this.za.disconnect()};v.prototype.ld=function(){return this.za};h.prototype.Cd=function(a){this.za.disconnect();this.za.connect(a)};h.prototype.remove=
function(){this.Yb.disconnect();this.gd.disconnect();this.za.disconnect()};h.prototype.ld=function(){return this.za};t.prototype.Cd=function(a){this.da.disconnect();this.da.connect(a);this.Z.disconnect();this.Z.connect(a)};t.prototype.remove=function(){this.Yb.disconnect();this.Ak.disconnect();this.xa.disconnect();this.da.disconnect();this.Z.disconnect()};t.prototype.ld=function(){return this.xa};K.prototype.rC=function(a,b){.01>a&&(a=.01);this.pn.gain.value=a;this.nn.gain.value=Math.pow(1/a,.6)*
b};K.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};K.prototype.uA=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,h=0;32768>h;++h)f=h/32768,f=this.shape(f,c,d),this.Ml[32768+h]=f,this.Ml[32768-h-1]=-f};K.prototype.Cd=function(a){this.da.disconnect();this.da.connect(a);this.Z.disconnect();this.Z.connect(a)};K.prototype.remove=function(){this.xa.disconnect();this.pn.disconnect();this.jo.disconnect();this.nn.disconnect();
this.da.disconnect();this.Z.disconnect()};K.prototype.ld=function(){return this.xa};Q.prototype.Cd=function(a){this.za.disconnect();this.za.connect(a)};Q.prototype.remove=function(){this.za.disconnect()};Q.prototype.ld=function(){return this.za};B.prototype.Ma=function(){this.za.getFloatFrequencyData(this.sA);this.za.getByteTimeDomainData(this.ov);for(var a=this.za.fftSize,b=0,c=this.ok=0,d=0;b<a;b++)d=(this.ov[b]-128)/128,0>d&&(d=-d),this.ok<d&&(this.ok=d),c+=d*d;this.ok=m(this.ok);m(Math.sqrt(c/
a))};B.prototype.Cd=function(a){this.za.disconnect();this.za.connect(a)};B.prototype.remove=function(){this.za.disconnect()};B.prototype.ld=function(){return this.za};y.prototype.Ck=function(a){this.Ia=a};y.prototype.um=function(){return!!this.Ia};y.prototype.Ma=function(){};x.prototype.eC=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.wi&&(this.wi.disconnect(),this.wi=null);this.Ei&&(this.Ei.disconnect(),this.Ei=null);this.Re=this.ya=
null};x.prototype.Es=function(){if(!this.ya&&this.Re){var a=this;if(u.decodeAudioData)u.decodeAudioData(this.Re,function(b){a.ya=b;a.Re=null;var c,d,f;if(ja(a.kn)||Z)ja(a.Fl)||(c=a.Fl.Dg,c.normalize=a.ou,c.buffer=b);else if(a.Fi.length){c=0;for(d=a.Fi.length;c<d;c++){b=a.Fi[c];f=new w(a,b.xv);f.Tq(!0);if("undefined"!==typeof b.qu&&(b.Ia=D.Pg(b.qu),!b.Ia))continue;if(b.Ia){var h=Ra(b.Ia.x,b.Ia.y,-b.Ia.u.Kb(),fa,ba,!0),e=Ra(b.Ia.x,b.Ia.y,-b.Ia.u.Kb(),fa,ba,!1);f.Sq(h,e,Ha(b.Ia.q-b.Ia.u.Kb()),b.wp,b.kq,
b.nq);f.Ck(b.Ia)}else f.Sq(b.x,b.y,b.Fy,b.wp,b.kq,b.nq);f.play(a.aq,a.sr,a.An);a.hn&&f.pause();F.push(f)}R(a.Fi)}else f=new w(a,a.kn||""),f.play(a.aq,a.sr,a.An),a.hn&&f.pause(),F.push(f)},function(){a.Xl=!0});else if(this.ya=u.createBuffer(this.Re,!1),this.Re=null,ja(this.kn)||Z)ja(this.Fl)||(b=this.Fl.Dg,b.normalize=this.ou,b.buffer=this.ya);else{var b=new w(this,this.kn);b.play(this.aq,this.sr,this.An);this.hn&&b.pause();F.push(b)}}};x.prototype.ot=function(){switch(this.na){case 0:var a=4<=this.ya.readyState;
a&&(this.tr=!0);return a||this.tr;case 1:return!!this.Re||!!this.ya;case 2:return!0;case 3:return!0}return!1};x.prototype.mB=function(){switch(this.na){case 0:return this.ot();case 1:return!!this.ya;case 2:return!0;case 3:return!0}return!1};x.prototype.bB=function(){switch(this.na){case 0:return!!this.ya.error;case 1:return this.Xl}return!1};w.prototype.Sg=function(){switch(this.na){case 0:return this.B.ended;case 1:return 1===this.buffer.na?!this.ue&&!this.Zb&&this.B.loop||this.bd?!1:this.ai:this.B.ended;
case 2:return this.ai;case 3:!0}return!0};w.prototype.Yy=function(){return this.ue||this.Zb?!0:this.Sg()};w.prototype.Tq=function(a){1===E&&(!this.Be&&a?this.Jb&&(this.Eb||(this.Eb=u.createPanner(),this.Eb.panningModel="number"===typeof this.Eb.panningModel?Lb:["equalpower","HRTF","soundfield"][Lb],this.Eb.distanceModel="number"===typeof this.Eb.distanceModel?Kb:["linear","inverse","exponential"][Kb],this.Eb.refDistance=Jc,this.Eb.maxDistance=Lc,this.Eb.rolloffFactor=Mc),this.Jb.disconnect(),this.Jb.connect(this.Eb),
this.Eb.connect(n(this.tag)),this.Be=!0):this.Be&&!a&&this.Jb&&(this.Eb.disconnect(),this.Jb.disconnect(),this.Jb.connect(n(this.tag)),this.Be=!1))};w.prototype.Sq=function(a,b,c,d,f,h){this.Be&&1===E&&(this.Eb.setPosition(a,b,0),this.Eb.setOrientation(Math.cos(S(c)),Math.sin(S(c)),0),this.Eb.coneInnerAngle=d,this.Eb.coneOuterAngle=f,this.Eb.coneOuterGain=h,this.Fu=a,this.Gu=b,this.Bu=c,this.Cu=d,this.Du=f,this.Eu=h)};w.prototype.Ck=function(a){this.Be&&1===E&&(this.jc||(this.jc=new y),this.jc.Ck(a))};
w.prototype.Ma=function(a){if(this.Be&&1===E&&this.jc&&this.jc.um()&&this.ci()){this.jc.Ma(a);a=this.jc.Ia;var b=Ra(a.x,a.y,-a.u.Kb(),fa,ba,!0),c=Ra(a.x,a.y,-a.u.Kb(),fa,ba,!1);this.Eb.setPosition(b,c,0);b=0;"undefined"!==typeof this.jc.Ia.q&&(b=a.q-a.u.Kb(),this.Eb.setOrientation(Math.cos(b),Math.sin(b),0))}};w.prototype.play=function(a,d,f,h){var e=this.B;this.ze=a;this.volume=d;f=f||0;h=h||0;switch(this.na){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==d*L&&(e.volume=d*L);e.loop!==a&&
(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==f)try{e.currentTime=f}catch(g){}p(this);break;case 1:this.muted=!1;this.yi=1;if(1===this.buffer.na)this.Jb.gain.value=d*L,this.ue||(this.B=u.createBufferSource(),this.B.buffer=this.buffer.ya,this.B.connect(this.Jb)),this.B.onended=this.uq,this.kl=this.B,this.B.loop=a,this.ai=!1,0===f?b(this.B,h):c(this.B,f,this.Ng(),h);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=d*L;if(e.currentTime!==f)try{e.currentTime=f}catch(k){}p(this)}break;
case 2:(!this.ue&&this.Zb||0!==f)&&e.seekTo(f);e.play();this.ai=!1;break;case 3:D.uc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.di?D.zb.Y:D.Cf.Y)-f;this.bd=this.Zb=this.ue=!1};w.prototype.stop=function(){switch(this.na){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.na?d(this.B):this.B.paused||this.B.pause();break;case 2:this.B.stop();break;case 3:D.uc&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.bd=
!1};w.prototype.pause=function(){if(!(this.ue||this.Zb||this.Sg()||this.bd)){switch(this.na){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.na?(this.Vc=this.mp(!0),this.ze&&(this.Vc=this.Vc%this.Ng()),this.bd=!0,d(this.B)):this.B.paused||this.B.pause();break;case 2:this.B.pause();break;case 3:D.uc&&AppMobi.context.stopSound(this.src)}this.bd=!0}};w.prototype.iC=function(){if(!(this.ue||this.Zb||this.Sg())&&this.bd){switch(this.na){case 0:p(this);break;case 1:1===this.buffer.na?
(this.B=u.createBufferSource(),this.B.buffer=this.buffer.ya,this.B.connect(this.Jb),this.B.onended=this.uq,this.kl=this.B,this.B.loop=this.ze,this.Jb.gain.value=L*this.volume*this.yi,this.co(),this.startTime=(this.di?D.zb.Y:D.Cf.Y)-this.Vc/(this.playbackRate||.001),c(this.B,this.Vc,this.Ng())):p(this);break;case 2:this.B.play();break;case 3:D.uc&&AppMobi.context.resumeSound(this.src)}this.bd=!1}};w.prototype.seek=function(a){if(!(this.ue||this.Zb||this.Sg()))switch(this.na){case 0:try{this.B.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.na)this.bd?this.Vc=a:(this.pause(),this.Vc=a,this.iC());else try{this.B.currentTime=a}catch(c){}break;case 3:D.uc&&AppMobi.context.seekSound(this.src,a)}};w.prototype.dC=function(a){1===this.na&&(this.Be?(this.Eb.disconnect(),this.Eb.connect(a)):(this.Jb.disconnect(),this.Jb.connect(a)))};w.prototype.Ng=function(){var a=0;switch(this.na){case 0:"undefined"!==typeof this.B.duration&&(a=this.B.duration);break;case 1:a=this.buffer.ya.duration;break;case 2:a=
this.B.getDuration();break;case 3:D.uc&&(a=AppMobi.context.getDurationSound(this.src))}return a};w.prototype.mp=function(a){var b=this.Ng(),c=0;switch(this.na){case 0:"undefined"!==typeof this.B.currentTime&&(c=this.B.currentTime);break;case 1:if(1===this.buffer.na){if(this.bd)return this.Vc;c=(this.di?D.zb.Y:D.Cf.Y)-this.startTime}else"undefined"!==typeof this.B.currentTime&&(c=this.B.currentTime);break;case 3:D.uc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.ze&&
c>b&&(c=b);return c};w.prototype.ci=function(){return!this.bd&&!this.ue&&!this.Zb&&!this.Sg()};w.prototype.vC=function(){return!this.ue&&!this.Zb&&!this.Sg()};w.prototype.DC=function(){var a=this.volume*L;isFinite(a)||(a=0);switch(this.na){case 0:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a);break;case 1:1===this.buffer.na?this.Jb.gain.value=a*this.yi:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a)}};w.prototype.Sl=function(a){switch(this.na){case 0:this.B.muted!==
!!a&&(this.B.muted=!!a);break;case 1:1===this.buffer.na?(this.yi=a?0:1,this.Jb.gain.value=L*this.volume*this.yi):this.B.muted!==!!a&&(this.B.muted=!!a)}};w.prototype.cv=function(a){this.gi=!!a;this.Sl(this.gi||this.Oj)};w.prototype.dv=function(a){this.Oj=!!a;this.Sl(this.gi||this.Oj)};w.prototype.co=function(){var a=this.playbackRate;this.di&&(a*=D.yh);switch(this.na){case 0:this.B.playbackRate!==a&&(this.B.playbackRate=a);break;case 1:1===this.buffer.na?this.B.playbackRate.value!==a&&(this.B.playbackRate.value=
a):this.B.playbackRate!==a&&(this.B.playbackRate=a)}};w.prototype.tC=function(a){switch(this.na){case 0:a?this.ci()?(this.td=!0,this.B.pause()):this.td=!1:this.td&&(this.B.play(),this.td=!1);break;case 1:a?this.ci()?(this.td=!0,1===this.buffer.na?(this.Vc=this.mp(!0),this.ze&&(this.Vc=this.Vc%this.Ng()),d(this.B)):this.B.pause()):this.td=!1:this.td&&(1===this.buffer.na?(this.B=u.createBufferSource(),this.B.buffer=this.buffer.ya,this.B.connect(this.Jb),this.B.onended=this.uq,this.kl=this.B,this.B.loop=
this.ze,this.Jb.gain.value=L*this.volume*this.yi,this.co(),this.startTime=(this.di?D.zb.Y:D.Cf.Y)-this.Vc/(this.playbackRate||.001),c(this.B,this.Vc,this.Ng())):this.B.play(),this.td=!1);break;case 2:a?this.ci()?(this.B.pause(),this.td=!0):this.td=!1:this.td&&(this.td=!1,this.B.play())}};T.N=function(a){this.type=a;D=this.b=a.b;U=this;this.ed=null;this.Yj=-600;this.b.Bm&&(ub=!0);!(this.b.ki||this.b.Ij&&(this.b.Fp||this.b.xm))||this.b.zm||this.b.Ea||this.b.mt||ub||(Nc=!0);u=null;"undefined"!==typeof AudioContext?
(E=1,u=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,u=new webkitAudioContext);this.b.ki&&u&&(u.close&&u.close(),"undefined"!==typeof AudioContext?u=new AudioContext:"undefined"!==typeof webkitAudioContext&&(u=new webkitAudioContext));1!==E&&(this.b.nd&&"undefined"!==typeof window.Media?E=2:this.b.nt&&(E=3));2===E&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.oB&&this.b.pB&&"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.le(this);else{if(this.b.uc)N=this.b.Ij;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Cm}catch(b){N=!1}this.b.vg(this)}};var ya=T.N.prototype;ya.H=function(){this.b.Gh=this;W=this.A[0];this.tf=this.A[1];this.PB=0!==this.A[2];this.mu=0;Lb=this.A[3];Kb=this.A[4];this.Yj=-this.A[5];Jc=this.A[6];Lc=this.A[7];Mc=this.A[8];this.ed=new y;var a=this.b.W||this.b.width,b=this.b.V||this.b.height;1===E&&(u.listener.setPosition(a/2,b/2,this.Yj),u.listener.setOrientation(0,0,
1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Pa&&Pa.disconnect();Mb=b.toLowerCase();Pa=u.createMediaStreamSource(a);Pa.connect(n(Mb))});this.b.ns(function(a){U.JB(a)});var c=this;this.b.ll(function(a){c.mk(a)})};ya.mk=function(a){var b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],d.jc&&d.jc.Ia===a&&(d.jc.Ia=null,d.Be&&d.ci()&&d.ze&&d.stop());this.ed.Ia===a&&(this.ed.Ia=null)};ya.Za=function(){var a={silent:Z,masterVolume:L,listenerZ:this.Yj,listenerUid:this.ed.um()?this.ed.Ia.uid:-1,playing:[],effects:{}},
b=a.playing,c,d,f,h,e,g;c=0;for(d=F.length;c<d;c++)f=F[c],!f.vC()||3===this.tf||f.xe&&1===this.tf||!f.xe&&2===this.tf||(h=f.mp(),f.ze&&(h=h%f.Ng()),h={tag:f.tag,buffersrc:f.buffer.src,is_music:f.xe,playbackTime:h,volume:f.volume,looping:f.ze,muted:f.gi,playbackRate:f.playbackRate,paused:f.bd,resume_position:f.Vc},f.Be&&(h.pan={},g=h.pan,f.jc&&f.jc.um()?g.objUid=f.jc.Ia.uid:(g.x=f.Fu,g.y=f.Gu,g.a=f.Bu),g.ia=f.Cu,g.oa=f.Du,g.og=f.Eu),b.push(h));b=a.effects;for(e in da)if(da.hasOwnProperty(e)){f=[];
c=0;for(d=da[e].length;c<d;c++)f.push({type:da[e][c].type,params:da[e][c].pb});b[e]=f}return a};var cb=[];ya.gb=function(a){var b=a.silent;L=a.masterVolume;this.Yj=a.listenerZ;this.ed.Ck(null);var c=a.listenerUid;-1!==c&&(this.ed.Km=c,cb.push(this.ed));var c=a.playing,d,f,e,m,n,q,r,p,w,x,C;if(3!==this.tf)for(d=0,f=F.length;d<f;d++)w=F[d],w.xe&&1===this.tf||(w.xe||2!==this.tf)&&w.stop();for(n in da)if(da.hasOwnProperty(n))for(d=0,f=da[n].length;d<f;d++)da[n][d].remove();Va(da);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(q=
a.effects[n],d=0,f=q.length;d<f;d++)switch(e=q[d].type,x=q[d].params,e){case "filter":G(n,new k(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":G(n,new g(x[0],x[1],x[2]));break;case "convolve":e=x[2];w=this.lm(e,!1);w.ya?e=new l(w.ya,x[0],x[1],e):(e=new l(null,x[0],x[1],e),w.ou=x[0],w.Fl=e);G(n,e);break;case "flanger":G(n,new M(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":G(n,new P(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":G(n,new v(x[0]));break;case "tremolo":G(n,new h(x[0],x[1]));break;
case "ringmod":G(n,new t(x[0],x[1]));break;case "distortion":G(n,new K(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":G(n,new Q(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":G(n,new B(x[0],x[1]))}d=0;for(f=c.length;d<f;d++)3===this.tf||(a=c[d],e=a.buffersrc,m=a.is_music,n=a.tag,q=a.playbackTime,r=a.looping,p=a.volume,C=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,m&&1===this.tf)||!m&&2===this.tf||((w=this.Ts(e,n,m,r,p))?(w.Vc=a.resume_position,w.Tq(!!x),w.play(r,p,q),w.co(),w.DC(),w.Sl(w.gi||
w.Oj),a.paused&&w.pause(),a.muted&&w.cv(!0),w.Sl(w.gi||w.Oj),x&&(-1!==C?(w.jc=w.jc||new y,w.jc.Km=C,cb.push(w.jc)):w.Sq(x.x,x.y,x.a,x.ia,x.oa,x.og))):(w=this.lm(e,m),w.An=q,w.hn=a.paused,x&&(-1!==C?w.Fi.push({qu:C,wp:x.ia,kq:x.oa,nq:x.og,xv:n}):w.Fi.push({x:x.x,y:x.y,Fy:x.a,wp:x.ia,kq:x.oa,nq:x.og,xv:n}))));if(b&&!Z){d=0;for(f=F.length;d<f;d++)F[d].dv(!0);Z=!0}else if(!b&&Z){d=0;for(f=F.length;d<f;d++)F[d].dv(!1);Z=!1}};ya.Td=function(){var a,b,c,d;a=0;for(b=cb.length;a<b;a++)c=cb[a],d=this.b.Pg(c.Km),
c.Ck(d),c.Km=-1,d&&(fa=d.x,ba=d.y);R(cb)};ya.JB=function(a){if(!this.PB){!a&&u&&u.resume&&(u.resume(),xa=!1);var b,c;b=0;for(c=F.length;b<c;b++)F[b].tC(a);a&&u&&u.suspend&&(u.suspend(),xa=!0)}};ya.Ma=function(){var a=this.b.Wf,b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],d.Ma(a),0!==W&&d.co();var f,h;for(f in da)if(da.hasOwnProperty(f))for(d=da[f],b=0,c=d.length;b<c;b++)h=d[b],h.Ma&&h.Ma();1===E&&this.ed.um()&&(this.ed.Ma(a),fa=this.ed.Ia.x,ba=this.ed.Ia.y,u.listener.setPosition(this.ed.Ia.x,this.ed.Ia.y,
this.Yj))};var db=[];ya.sC=function(a){var b,c,d,f,h,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(h=4<f.length&&".ogg"===f.substr(f.length-4))&&N||!h&&!N)db.push({filename:f,size:d,Ia:null}),e+=d;return e};ya.xC=function(){var a,b,c,d;a=0;for(b=db.length;a<b;++a)c=db[a],d=this.b.$o+c.filename,c.Ia=this.lm(d,!1)};ya.GA=function(){var a=0,b,c,d;b=0;for(c=db.length;b<c;++b)d=db[b],d.Ia.mB()||d.Ia.bB()||this.b.Ea||this.b.xm?a+=d.size:d.Ia.ot()&&(a+=Math.floor(d.size/2));return a};ya.fC=function(){var a,
b,c,d;c=a=0;for(b=A.length;a<b;++a)d=A[a],A[c]=d,d.xe?d.eC():++c;A.length=c};ya.lm=function(a,b){var c,d,f,h=null;c=0;for(d=A.length;c<d;c++)if(f=A[c],f.src===a){h=f;break}h||(ub&&b&&this.fC(),h=new x(a,b),A.push(h));return h};ya.Ts=function(a,b,c,d,f){var h,e,g;h=0;for(e=F.length;h<e;h++)if(g=F[h],g.src===a&&(g.Yy()||c))return g.tag=b,g;a=this.lm(a,c);if(!a.ya)return"<preload>"!==b&&(a.kn=b,a.aq=d,a.sr=f),null;g=new w(a,b);F.push(g);return g};var Ga=[];C.prototype.bl=function(a){return jb(V,a)};
C.prototype.Vw=function(a){H(a);var b;a=0;for(b=Ga.length;a<b;a++)if(Ga[a].ci())return!0;return!1};T.n=new C;O.prototype.Play=function(a,b,c,d){!Z&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),I=this.Ts(this.b.$o+a[0]+(N?".ogg":".m4a"),d,a[1],0!==b,c))&&(I.Tq(!1),I.play(0!==b,c,0,this.mu),this.mu=0)};O.prototype.iy=function(a,b){H(a);var c,d;c=0;for(d=Ga.length;c<d;c++)Ga[c].cv(0===b)};T.C=new O;T.aa=new function(){}})();function sc(e){this.b=e}
(function(){function e(){n&&f&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){a.IB(b)})}function p(){}function r(){}var q=sc.prototype;q.S=function(a){this.qa=a;this.b=a.b};var m=q.S.prototype;m.H=function(){};var n=!1,f=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){n=!0;e()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;
m.uu=function(){f=!0;e()};q.N=function(a){this.type=a;this.b=a.b};m=q.N.prototype;m.H=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(sc.prototype.n.Ix,b)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(sc.prototype.n.Fx,b)}),window.addEventListener("offline",function(){b.b.trigger(sc.prototype.n.Dx,b)}));this.b.uc||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(sc.prototype.n.uo,
b)}),document.addEventListener("backbutton",function(){b.b.trigger(sc.prototype.n.al,b)}),document.addEventListener("menubutton",function(){b.b.trigger(sc.prototype.n.Sr,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(sc.prototype.n.Jx,b)}),document.addEventListener("tizenhwkey",function(a){var d;switch(a.keyName){case "back":d=b.b.trigger(sc.prototype.n.al,b);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=b.b.trigger(sc.prototype.n.Sr,
b))||a.preventDefault()}}));this.b.Cm&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){b.b.trigger(sc.prototype.n.al,b)&&(a.handled=!0)}):this.b.Lp&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(sc.prototype.n.al,b)});this.b.ns(function(a){a?b.b.trigger(sc.prototype.n.Gx,b):b.b.trigger(sc.prototype.n.Hx,b)});this.ut="undefined"!==typeof window.is_scirra_arcade};m.IB=function(a){a=
a.data.type;"downloading-update"===a?this.b.trigger(sc.prototype.n.Ox,this):"update-ready"===a||"update-pending"===a?this.b.trigger(sc.prototype.n.uo,this):"offline-ready"===a&&this.b.trigger(sc.prototype.n.Ex,this)};p.prototype.Fx=function(){return!0};p.prototype.Dx=function(){return!0};p.prototype.uo=function(){return!0};p.prototype.Hx=function(){return!0};p.prototype.Gx=function(){return!0};p.prototype.Ix=function(){return!0};p.prototype.al=function(){return!0};p.prototype.Sr=function(){return!0};
p.prototype.Jx=function(){return!0};p.prototype.Ox=function(){return!0};p.prototype.uo=function(){return!0};p.prototype.Ex=function(){return!0};q.n=new p;r.prototype.fw=function(){this.b.ad?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.ut||this.b.Ea||window.close()};r.prototype.Bw=function(a,c){this.b.ad?CocoonJS.App.openURL(a):
this.b.Fd?ejecta.openURL(a):this.b.Lp?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):self.cordova&&self.cordova.InAppBrowser?self.cordova.InAppBrowser.open(a,"_system"):this.ut||this.b.Ea||window.open(a,c)};q.C=new r;q.aa=new function(){}})();function qc(e){this.b=e}
(function(){function e(){this.name="";this.yk=0;this.pb=[]}function p(){a++;a===f.length&&f.push(new e);return f[a]}function r(){}function q(){}function m(){}var n=qc.prototype;n.S=function(a){this.qa=a;this.b=a.b};n.S.prototype.H=function(){};n.N=function(a){this.type=a;this.b=a.b};var f=[],a=-1;n.N.prototype.H=function(){var b=this;window.c2_callFunction=function(c,d){var f,e,l,m=p();m.name=c.toLowerCase();m.yk=0;if(d)for(m.pb.length=d.length,f=0,e=d.length;f<e;++f)l=d[f],m.pb[f]="number"===typeof l||
"string"===typeof l?l:"boolean"===typeof l?l?1:0:0;else R(m.pb);b.b.trigger(qc.prototype.n.dl,b,m.name);a--;return m.yk}};r.prototype.dl=function(b){var c=0>a?null:f[a];return c?jb(b,c.name):!1};r.prototype.jw=function(b,c,d){var e=0>a?null:f[a];if(!e)return!1;b=z(b);return 0>b||b>=e.pb.length?!1:ec(e.pb[b],c,d)};n.n=new r;q.prototype.CallFunction=function(b,c){var d=p();d.name=b.toLowerCase();d.yk=0;Ba(d.pb,c);this.b.trigger(qc.prototype.n.dl,this,d.name);a--};n.C=new q;m.prototype.Rx=function(b,
c){c=z(c);var d=0>a?null:f[a];d?0<=c&&c<d.pb.length?b.Fn(d.pb[c]):b.Oa(0):b.Oa(0)};m.prototype.aw=function(b,c){var d=p();d.name=c.toLowerCase();d.yk=0;R(d.pb);var f,e;f=2;for(e=arguments.length;f<e;f++)d.pb.push(arguments[f]);this.b.trigger(qc.prototype.n.dl,this,d.name);a--;b.Fn(d.yk)};n.aa=new m})();function tc(e){this.b=e}
(function(){function e(){}var p=tc.prototype;p.S=function(e){this.qa=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e){this.type=e;this.b=e.b;this.ni=Array(256);this.Rk=Array(256);this.zf=0};var r=p.N.prototype;r.H=function(){var e=this;this.b.Ea||(jQuery(document).keydown(function(n){e.oq(n)}),jQuery(document).keyup(function(n){e.pq(n)}))};var q=[32,33,34,35,36,37,38,39,40,44];r.oq=function(e){var n=!1;window!=window.top&&-1<q.indexOf(e.which)&&(e.preventDefault(),n=!0,e.stopPropagation());
if(this.ni[e.which])this.Rk[e.which]&&!n&&e.preventDefault();else{this.ni[e.which]=!0;this.zf=e.which;this.b.Ya=!0;this.b.trigger(tc.prototype.n.jx,this);var f=this.b.trigger(tc.prototype.n.Nr,this),a=this.b.trigger(tc.prototype.n.zx,this);this.b.Ya=!1;if(f||a)this.Rk[e.which]=!0,n||e.preventDefault()}};r.pq=function(e){this.ni[e.which]=!1;this.zf=e.which;this.b.Ya=!0;this.b.trigger(tc.prototype.n.Fr,this);var n=this.b.trigger(tc.prototype.n.Pr,this),f=this.b.trigger(tc.prototype.n.Or,this);this.b.Ya=
!1;if(n||f||this.Rk[e.which])this.Rk[e.which]=!0,e.preventDefault()};r.mg=function(){var e;for(e=0;256>e;++e)if(this.ni[e]){this.ni[e]=!1;this.zf=e;this.b.trigger(tc.prototype.n.Fr,this);var n=this.b.trigger(tc.prototype.n.Pr,this),f=this.b.trigger(tc.prototype.n.Or,this);if(n||f)this.Rk[e]=!0}};r.Za=function(){return{triggerKey:this.zf}};r.gb=function(e){this.zf=e.triggerKey};e.prototype.Nw=function(e){return this.ni[e]};e.prototype.Nr=function(e){return e===this.zf};e.prototype.jx=function(){return!0};
e.prototype.Fr=function(){return!0};e.prototype.Pr=function(e){return e===this.zf};e.prototype.zx=function(e){return e===this.zf};e.prototype.Or=function(e){return e===this.zf};p.n=new e;p.C=new function(){};p.aa=new function(){}})();var uc=!1;
try{!function(){var e,p,r;!function(){var q={},m={};e=function(e,f,a){q[e]={hz:f,Xy:a}};r=p=function(e){function f(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=e.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var f=a[c];".."===f?b.pop():"."!==f&&b.push(f)}return b.join("/")}if(r.yD=q,m[e])return m[e];if(m[e]={},!q[e])throw Error("Could not find module "+e);for(var a,b=q[e],c=b.hz,b=b.Xy,d=[],k=0,g=c.length;g>k;k++)"exports"===c[k]?d.push(a={}):d.push(p(f(c[k])));c=b.apply(this,d);return m[e]=
a||c}}();e("promise/all",["./utils","exports"],function(e,m){var n=e.isArray,f=e.isFunction;m.all=function(a){if(!n(a))throw new TypeError("You must pass an array to all.");return new this(function(b,c){function d(a){return function(c){g[a]=c;0===--l&&b(g)}}var e,g=[],l=a.length;0===l&&b([]);for(var m=0;m<a.length;m++)(e=a[m])&&f(e.then)?e.then(d(m),c):(g[m]=e,0===--l&&b(g))})}});e("promise/asap",["exports"],function(e){function m(){return function(){process.ND(a)}}function n(){var b=0,c=new d(a),
f=document.createTextNode("");return c.observe(f,{characterData:!0}),function(){f.data=b=++b%2}}function f(){return function(){k.setTimeout(a,1)}}function a(){for(var a=0;a<g.length;a++){var b=g[a];(0,b[0])(b[1])}g=[]}var b,c="undefined"!=typeof window?window:{},d=c.MutationObserver||c.WebKitMutationObserver,k="undefined"!=typeof global?global:void 0===this?window:this,g=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?m():d?n():f();e.Oy=function(a,c){1===g.push([a,
c])&&b()}});e("promise/config",["exports"],function(e){var m={FD:!1};e.Cs=m;e.az=function(e,f){return 2!==arguments.length?m[e]:void(m[e]=f)}});e("promise/polyfill",["./promise","./utils","exports"],function(e,m,n){var f=e.Promise,a=m.isFunction;n.RB=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var c;return new b.Promise(function(a){c=
a}),a(c)}()||(b.Promise=f)}});e("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(e,m,n,f,a,b,c,d){function k(a){if(!w(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof k))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.jl=[];g(a,this)}function g(a,b){function c(a){h(b,
a)}function d(a){K(b,a)}try{a(c,d)}catch(f){d(f)}}function l(a,b,c,d){var f,e,g,k,l=w(c);if(l)try{f=c(d),g=!0}catch(m){k=!0,e=m}else f=d,g=!0;v(b,f)||(l&&g?h(b,f):k?K(b,e):a===C?h(b,f):a===O&&K(b,f))}function r(a,b,c,d){a=a.jl;var f=a.length;a[f]=b;a[f+C]=c;a[f+O]=d}function p(a,b){for(var c,d,f=a.jl,h=a.il,e=0;e<f.length;e+=3)c=f[e],d=f[e+b],l(b,c,d,h);a.jl=null}function v(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(x(b)&&(d=b.then,
w(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?h(a,d):t(a,d)))},function(b){return c?!0:(c=!0,void K(a,b))}),!0}catch(f){return c?!0:(K(a,f),!0)}return!1}function h(a,b){a===b?t(a,b):v(a,b)||t(a,b)}function t(a,b){a.Pe===H&&(a.Pe=G,a.il=b,y.async(Q,a))}function K(a,b){a.Pe===H&&(a.Pe=G,a.il=b,y.async(B,a))}function Q(a){p(a,a.Pe=C)}function B(a){p(a,a.Pe=O)}var y=e.Cs,x=(e.az,m.DB),w=m.isFunction;e=(m.now,n.all);f=f.race;a=a.resolve;b=b.reject;y.async=c.Oy;var H=void 0,G=0,C=1,O=2;
k.prototype={constructor:k,Pe:void 0,il:void 0,jl:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Pe){var f=arguments;y.async(function(){l(c.Pe,d,f[c.Pe-1],c.il)})}else r(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};k.all=e;k.race=f;k.resolve=a;k.reject=b;d.Promise=k});e("promise/race",["./utils","exports"],function(e,m){var n=e.isArray;m.race=function(f){if(!n(f))throw new TypeError("You must pass an array to race.");return new this(function(a,
b){for(var c,d=0;d<f.length;d++)(c=f[d])&&"function"==typeof c.then?c.then(a,b):a(c)})}});e("promise/reject",["exports"],function(e){e.reject=function(e){return new this(function(n,f){f(e)})}});e("promise/resolve",["exports"],function(e){e.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this(function(n){n(e)})}});e("promise/utils",["exports"],function(e){function m(f){return"function"==typeof f}var n=Date.now||function(){return(new Date).getTime()};e.DB=function(f){return m(f)||
"object"==typeof f&&null!==f};e.isFunction=m;e.isArray=function(f){return"[object Array]"===Object.prototype.toString.call(f)};e.now=n});p("promise/polyfill").RB()}();var vc=function(){return function(e){function p(q){if(r[q])return r[q].re;var m=r[q]={re:{},id:q,loaded:!1};return e[q].call(m.re,m,m.re,p),m.loaded=!0,m.re}var r={};return p.oe=e,p.kj=r,p.Op="",p(0)}([function(e,p,r){p.hl=!0;var q=function(e){function n(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function f(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(l(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in c)if(c.hasOwnProperty(b)&&c[b]===a)return!0;return!1}var b={},c={bj:"asyncStorage",cj:"localStorageWrapper",ej:"webSQLStorage"},d="clear getItem iterate key keys length removeItem setItem".split(" "),k={description:"",Qh:[c.bj,c.ej,c.cj].slice(),name:"localforage",size:4980736,Ka:"keyvaluepairs",
version:1},g=function(a){var b={},d;try{var f=f||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Bt||a.msIndexedDB;d="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:f&&"function"==typeof f.open&&"undefined"!=typeof a.IDBKeyRange}catch(e){d=!1}b[c.bj]=!!d;var g;try{g=a.openDatabase}catch(k){g=!1}b[c.ej]=!!g;var l;try{l=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){l=
!1}return b[c.cj]=!!l,b}(e),l=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.bj=c.bj;this.cj=c.cj;this.ej=c.ej;this.Ao=f({},k);this.xg=f({},this.Ao,a);this.bs=this.me=null;this.Gf=!1;this.Ga=null;this.cs();this.$u(this.xg.Qh)}return e.prototype.Cs=function(a){if("object"==typeof a){if(this.Gf)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.xg[b]=a[b];return"driver"in a&&a.Qh&&this.$u(this.xg.Qh),!0}return"string"==typeof a?this.xg[a]:this.xg},e.prototype.Qh=function(){return this.fj||null},e.prototype.Vs=function(c,d,f){var e=this,g=function(){if(a(c))switch(c){case e.bj:return new Promise(function(a){a(r(1))});case e.cj:return new Promise(function(a){a(r(2))});case e.ej:return new Promise(function(a){a(r(4))})}else if(b[c])return Promise.resolve(b[c]);return Promise.reject(Error("Driver not found."))}();
return g.then(d,f),g},e.prototype.ready=function(a){var b=this,c=b.me.then(function(){return null===b.Gf&&(b.Gf=b.bs()),b.Gf});return c.then(a,a),c},e.prototype.$u=function(a,b,c){function d(){e.xg.Qh=e.Qh()}function f(a){return function(){function b(){for(;c<a.length;){var f=a[c];return c++,e.Ga=null,e.Gf=null,e.Vs(f).then(function(a){return e.Dy(a),d(),e.Gf=e.Co(e.xg),e.Gf})["catch"](b)}d();return e.me=Promise.reject(Error("No available storage method found.")),e.me}var c=0;return b()}}var e=this;
l(a)||(a=[a]);var g=this.Ey(a);return this.me=(null!==this.me?this.me["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return e.Ga=null,e.Gf=null,e.Vs(a).then(function(a){e.fj=a.fj;d();e.cs();e.bs=f(g)})})["catch"](function(){d();return e.me=Promise.reject(Error("No available storage method found.")),e.me}),this.me.then(b,c),this.me},e.prototype.supports=function(a){return!!g[a]},e.prototype.Dy=function(a){f(this,a)},e.prototype.Ey=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var f=a[c];this.supports(f)&&b.push(f)}return b},e.prototype.cs=function(){for(var a=0;a<d.length;a++)n(this,d[a])},e.prototype.Hl=function(a){return new e(a)},e}())}("undefined"!=typeof window?window:self);p["default"]=q;e.re=p["default"]},function(e,p){p.hl=!0;p["default"]=function(e){function q(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (e.BlobBuilder||e.oe||e.Op||e.WebKitBlobBuilder),f=0;f<a.length;f+=1)d.append(a[f]);
return d.getBlob(b.type)}}function m(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function n(a){return(new Promise(function(b,c){var d=q([""],{type:"image/png"}),f=a.transaction([H],"readwrite");f.objectStore(H).put(d,
"key");f.oncomplete=function(){var d=a.transaction([H],"readwrite").objectStore(H).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);m(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};f.onerror=f.onabort=c}))["catch"](function(){return!1})}function f(a){return"boolean"==typeof x?Promise.resolve(x):n(a).then(function(a){return x=a})}function a(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({as:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),f=new Uint8Array(d),h=0;c>h;h++)f[h]=b.charCodeAt(h);return q([d],{type:a.type})}function c(a){var b=this,c=b.Bo().then(function(){var a=w[b.Ga.name];return a&&a.Mh?a.Mh:void 0});return c.then(a,a),c}function d(a){a=w[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Fs.push(b);a.Mh?a.Mh=a.Mh.then(function(){return b.promise}):
a.Mh=b.promise}function k(a){function b(){return Promise.resolve()}var d=this,f={db:null};if(a)for(var h in a)f[h]=a[h];w||(w={});var l=w[f.name];l||(l={im:[],db:null,Mh:null,Fs:[]},w[f.name]=l);l.im.push(d);d.Bo||(d.Bo=d.ready,d.ready=c);a=[];for(h=0;h<l.im.length;h++){var k=l.im[h];k!==d&&a.push(k.Bo()["catch"](b))}var m=l.im.slice(0);return Promise.all(a).then(function(){return f.db=l.db,g(f,!1)}).then(function(a){f.db=a;var b;b=d.Ao.version;if(f.db){var c=!f.db.objectStoreNames.contains(f.Ka),
h=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&e.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),h||c)?(c&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?g(f,!0):a}).then(function(a){f.db=l.db=a;d.Ga=f;for(a=0;a<m.length;a++){var b=m[a];b!==d&&(b.Ga.db=f.db,b.Ga.version=f.version)}})}function g(a,b){return new Promise(function(c,f){if(a.db){if(!b)return c(a.db);
d(a);a.db.close()}var h=[a.name];b&&h.push(a.version);var g=y.open.apply(y,h);b&&(g.onupgradeneeded=function(b){var c=g.result;try{c.createObjectStore(a.Ka),1>=b.oldVersion&&c.createObjectStore(H)}catch(d){if("ConstraintError"!==d.name)throw d;e.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ka+'" already exists.')}});g.onerror=function(){f(g.error)};g.onsuccess=function(){c(g.result);var b=w[a.name].Fs.pop();
b&&b.resolve()}})}function l(a,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,f){d.ready().then(function(){var h=d.Ga,e=h.db.transaction(h.Ka,"readonly").objectStore(h.Ka).get(a);e.onsuccess=function(){var a=e.result;void 0===a&&(a=null);a&&a.as&&(a=b(a));c(a)};e.onerror=function(){f(e.error)}})["catch"](f)});return B(f,c),f}function p(a,c){var d=this,f=new Promise(function(c,f){d.ready().then(function(){var h=
d.Ga,e=h.db.transaction(h.Ka,"readonly").objectStore(h.Ka).openCursor(),g=1;e.onsuccess=function(){var d=e.result;if(d){var f=d.value;f&&f.as&&(f=b(f));f=a(f,d.key,g++);void 0!==f?c(f):d["continue"]()}else c()};e.onerror=function(){f(e.error)}})["catch"](f)});return B(f,c),f}function P(b,c,d){var h=this;"string"!=typeof b&&(e.console.warn(b+" used as a key, but it is not a string."),b=String(b));var g=new Promise(function(d,e){var g;h.ready().then(function(){return g=h.Ga,c instanceof Blob?f(g.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=g.db.transaction(g.Ka,"readwrite"),f=c.objectStore(g.Ka);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){e(h.error?h.error:h.transaction.error)};var h=f.put(a,b)})["catch"](e)});return B(g,d),g}function v(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.Ga,h=f.db.transaction(f.Ka,"readwrite"),
e=h.objectStore(f.Ka)["delete"](a);h.oncomplete=function(){b()};h.onerror=function(){d(e.error)};h.onabort=function(){d(e.error?e.error:e.transaction.error)}})["catch"](d)});return B(d,b),d}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ga,f=d.db.transaction(d.Ka,"readwrite"),h=f.objectStore(d.Ka).clear();f.oncomplete=function(){a()};f.onabort=f.onerror=function(){c(h.error?h.error:h.transaction.error)}})["catch"](c)});return B(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ga,f=d.db.transaction(d.Ka,"readonly").objectStore(d.Ka).count();f.onsuccess=function(){a(f.result)};f.onerror=function(){c(f.error)}})["catch"](c)});return B(c,a),c}function K(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var f=c.Ga,h=!1,e=f.db.transaction(f.Ka,"readonly").objectStore(f.Ka).openCursor();e.onsuccess=function(){var c=e.result;return c?void(0===a?b(c.key):h?b(c.key):(h=
!0,c.advance(a))):void b(null)};e.onerror=function(){d(e.error)}})["catch"](d)});return B(d,b),d}function Q(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ga,f=d.db.transaction(d.Ka,"readonly").objectStore(d.Ka).openCursor(),h=[];f.onsuccess=function(){var b=f.result;return b?(h.push(b.key),void b["continue"]()):void a(h)};f.onerror=function(){c(f.error)}})["catch"](c)});return B(c,a),c}function B(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var y=y||e.indexedDB||
e.webkitIndexedDB||e.mozIndexedDB||e.Bt||e.msIndexedDB;if(y){var x,w,H="local-forage-detect-blob-support";return{fj:"asyncStorage",Co:k,zt:p,getItem:l,setItem:P,removeItem:v,clear:h,length:t,key:K,keys:Q}}}("undefined"!=typeof window?window:self);e.re=p["default"]},function(e,p,r){p.hl=!0;p["default"]=function(e){function m(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var n=null;try{if(!(e.localStorage&&"setItem"in e.localStorage))return;n=e.localStorage}catch(f){return}return{fj:"localStorageWrapper",
Co:function(a){var b={};if(a)for(var c in a)b[c]=a[c];return b.ye=b.name+"/",b.Ka!==this.Ao.Ka&&(b.ye+=b.Ka+"/"),this.Ga=b,(new Promise(function(a){a(r(3))})).then(function(a){return b.qh=a,Promise.resolve()})},zt:function(a,b){var c=this,d=c.ready().then(function(){for(var b=c.Ga,d=b.ye,f=d.length,e=n.length,m=1,q=0;e>q;q++){var h=n.key(q);if(0===h.indexOf(d)){var t=n.getItem(h);if(t&&(t=b.qh.Ql(t)),t=a(t,h.substring(f),m++),void 0!==t)return t}}});return m(d,b),d},getItem:function(a,b){var c=this;
"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=c.ready().then(function(){var b=c.Ga,d=n.getItem(b.ye+a);return d&&(d=b.qh.Ql(d)),d});return m(d,b),d},setItem:function(a,b,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=d.ready().then(function(){void 0===b&&(b=null);var c=b;return new Promise(function(f,e){var k=d.Ga;k.qh.serialize(b,function(b,d){if(d)e(d);else try{n.setItem(k.ye+
a,b),f(c)}catch(m){"QuotaExceededError"!==m.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==m.name||e(m),e(m)}})})});return m(f,c),f},removeItem:function(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=c.ready().then(function(){n.removeItem(c.Ga.ye+a)});return m(d,b),d},clear:function(a){var b=this,c=b.ready().then(function(){for(var a=b.Ga.ye,c=n.length-1;0<=c;c--){var f=n.key(c);0===f.indexOf(a)&&n.removeItem(f)}});return m(c,a),c},length:function(a){var b=
this.keys().then(function(a){return a.length});return m(b,a),b},key:function(a,b){var c=this,d=c.ready().then(function(){var b,d=c.Ga;try{b=n.key(a)}catch(f){b=null}return b&&(b=b.substring(d.ye.length)),b});return m(d,b),d},keys:function(a){var b=this,c=b.ready().then(function(){for(var a=b.Ga,c=n.length,f=[],e=0;c>e;e++)0===n.key(e).indexOf(a.ye)&&f.push(n.key(e).substring(a.ye.length));return f});return m(c,a),c}}}("undefined"!=typeof window?window:self);e.re=p["default"]},function(e,p){p.hl=!0;
p["default"]=function(e){function q(a){var b,c,d,f,e;b=.75*a.length;var l=a.length,m=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var q=new ArrayBuffer(b),v=new Uint8Array(q);for(b=0;l>b;b+=4)c=n.indexOf(a[b]),d=n.indexOf(a[b+1]),f=n.indexOf(a[b+2]),e=n.indexOf(a[b+3]),v[m++]=c<<2|d>>4,v[m++]=(15&d)<<4|f>>2,v[m++]=(3&f)<<6|63&e;return q}function m(a){var b=new Uint8Array(a),c="";for(a=0;a<b.length;a+=3)c+=n[b[a]>>2],c+=n[(3&b[a])<<4|b[a+1]>>4],c+=n[(15&b[a+1])<<2|b[a+2]>>6],c+=n[63&b[a+2]];
return 2===b.length%3?c=c.substring(0,c.length-1)+"=":1===b.length%3&&(c=c.substring(0,c.length-2)+"=="),c}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,f="__lfsc__:";a instanceof ArrayBuffer?(d=a,f+="arbf"):(d=a.buffer,"[object Int8Array]"===c?f+="si08":"[object Uint8Array]"===
c?f+="ui08":"[object Uint8ClampedArray]"===c?f+="uic8":"[object Int16Array]"===c?f+="si16":"[object Uint16Array]"===c?f+="ur16":"[object Int32Array]"===c?f+="si32":"[object Uint32Array]"===c?f+="ui32":"[object Float32Array]"===c?f+="fl32":"[object Float64Array]"===c?f+="fl64":b(Error("Failed to get type for BinaryArray")));b(f+m(d))}else if("[object Blob]"===c)c=new FileReader,c.onload=function(){var c="~~local_forage_type~"+a.type+"~"+m(this.result);b("__lfsc__:blob"+c)},c.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(e){console.error("Couldn't convert value into a JSON string: ",
a),b(null,e)}},Ql:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,c=a.substring(13);a=a.substring(9,13);if("blob"===a&&f.test(c)){var d=c.match(f);b=d[1];c=c.substring(d[0].length)}c=q(c);switch(a){case "arbf":return c;case "blob":var k;c=[c];b={type:b};c=c||[];b=b||{};try{k=new Blob(c,b)}catch(g){if("TypeError"!==g.name)throw g;k=new (e.BlobBuilder||e.oe||e.Op||e.WebKitBlobBuilder);for(a=0;a<c.length;a+=1)k.append(c[a]);k=k.getBlob(b.type)}return k;case "si08":return new Int8Array(c);
case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+a);}},TD:q,AD:m}}("undefined"!=typeof window?window:self);e.re=p["default"]},function(e,p,r){p.hl=!0;p["default"]=function(e){function m(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var f=new Promise(function(a,d){try{c.db=p(c.name,String(c.version),c.description,c.size)}catch(f){return d(f)}c.db.transaction(function(f){f.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ka+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Ga=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(r(3))})).then(function(a){return c.qh=a,f})}function n(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.Ga;f.db.transaction(function(c){c.executeSql("SELECT * FROM "+f.Ka+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=f.qh.Ql(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function f(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var f=c.Ga;f.db.transaction(function(c){c.executeSql("SELECT * FROM "+f.Ka,[],function(c,d){for(var e=d.rows,
h=e.length,g=0;h>g;g++){var l=e.item(g),k=l.value;if(k&&(k=f.qh.Ql(k)),k=a(k,l.key,g+1),void 0!==k)return void b(k)}b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,f){d.ready().then(function(){void 0===b&&(b=null);var e=b,h=d.Ga;h.qh.serialize(b,function(b,d){d?f(d):h.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+h.Ka+
" (key, value) VALUES (?, ?)",[a,b],function(){c(e)},function(a,b){f(b)})},function(a){a.code===a.QUOTA_ERR&&f(a)})})})["catch"](f)});return l(f,c),f}function b(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.Ga;f.db.transaction(function(c){c.executeSql("DELETE FROM "+f.Ka+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function c(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ga;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ka,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ga;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ka,[],function(b,c){var d=c.rows.item(0).kj;a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function k(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var f=c.Ga;f.db.transaction(function(c){c.executeSql("SELECT key FROM "+f.Ka+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function g(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ga;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ka,[],function(b,c){for(var d=[],f=0;f<c.rows.length;f++)d.push(c.rows.item(f).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var p=e.openDatabase;if(p)return{fj:"webSQLStorage",Co:m,zt:f,getItem:n,setItem:a,removeItem:b,clear:c,length:d,key:k,keys:g}}("undefined"!=typeof window?window:self);e.re=p["default"]}])};"object"==typeof exports&&"object"==typeof module?module.re=vc():"function"==typeof define&&define.zD?define([],vc):"object"==typeof exports?exports.localforage=vc():this.localforage=
vc()}catch(wc){uc=!0}function xc(e){this.b=e}
(function(){function e(a){a.b.trigger(xc.prototype.n.cl,a)}function p(){}function r(){}function q(){}var m="",n="",f="";"undefined"!==typeof window.is_scirra_arcade&&(f="sa"+window.scirra_arcade_id+"_");var a=xc.prototype;a.S=function(a){this.qa=a;this.b=a.b};a.S.prototype.H=function(){};a.N=function(a){this.type=a;this.b=a.b};var b=a.N.prototype;b.H=function(){this.xq=this.yq=0};b.Id=function(){};b.Za=function(){return{}};b.gb=function(){};p.prototype.yx=function(a){return m===a};p.prototype.ix=
function(){return!0};p.prototype.Kr=function(a){return m===a};p.prototype.hx=function(){return!0};p.prototype.cl=function(){return!0};p.prototype.Jr=function(a){return m===a};p.prototype.Lr=function(a){return m===a};p.prototype.cx=function(){return!0};p.prototype.bx=function(){return!0};a.n=new p;r.prototype.ey=function(a,b){if(uc)e(this);else{var k=f+a;this.yq++;var g=this;localforage.setItem(k,b,function(b,d){g.yq--;b?g.b.trigger(xc.prototype.n.cl,g):(m=a,n=d,g.b.trigger(xc.prototype.n.ix,g),g.b.trigger(xc.prototype.n.yx,
g),n=m="");0===g.yq&&g.b.trigger(xc.prototype.n.cx,g)})}};r.prototype.yw=function(a){if(uc)e(this);else{var b=f+a;this.xq++;var k=this;localforage.getItem(b,function(b,d){k.xq--;if(b)k.b.trigger(xc.prototype.n.cl,k);else{m=a;n=d;if("undefined"===typeof n||null===n)n="";k.b.trigger(xc.prototype.n.hx,k);k.b.trigger(xc.prototype.n.Kr,k);n=m=""}0===k.xq&&k.b.trigger(xc.prototype.n.bx,k)})}};r.prototype.bw=function(a){if(uc)e(this);else{var b=this;localforage.getItem(f+a,function(f,e){f?b.b.trigger(xc.prototype.n.cl,
b):(m=a,null===e?(n="",b.b.trigger(xc.prototype.n.Lr,b)):(n=e,b.b.trigger(xc.prototype.n.Jr,b)),n=m="")})}};a.C=new r;q.prototype.Yw=function(a){a.Fn(n)};a.aa=new q})();function yc(e){this.b=e}
(function(){function e(){}function p(){}var r=yc.prototype;r.S=function(e){this.qa=e;this.b=e.b};r.S.prototype.H=function(){};r.N=function(e){this.type=e;this.b=e.b;this.Hh=Array(4);this.Ev=this.Zn=this.zh=this.lf=this.kf=0;this.tp=!1};var q=r.N.prototype;q.H=function(){var e=this;if(!this.b.Ea){jQuery(document).mousemove(function(a){e.rq(a)});jQuery(document).mousedown(function(a){e.qq(a)});jQuery(document).mouseup(function(a){e.sq(a)});jQuery(document).dblclick(function(a){e.HB(a)});var f=function(a){e.KB(a)};
document.addEventListener("mousewheel",f,!1);document.addEventListener("DOMMouseScroll",f,!1)}};var m={left:0,top:0};q.rq=function(e){var f=this.b.Ea?m:jQuery(this.b.canvas).offset();this.kf=e.pageX-f.left;this.lf=e.pageY-f.top};q.ju=function(){return 0<this.b.Bc?!0:0<=this.kf&&0<=this.lf&&this.kf<this.b.width&&this.lf<this.b.height};q.qq=function(e){this.ju()&&(this.Hh[e.which]=!0,this.b.Ya=!0,this.b.trigger(yc.prototype.n.gx,this),this.zh=e.which-1,this.Zn=0,this.b.trigger(yc.prototype.n.Gr,this),
this.b.trigger(yc.prototype.n.qo,this),this.b.Ya=!1)};q.sq=function(e){this.Hh[e.which]&&(this.b.tm&&!this.b.we&&e.preventDefault(),this.b.tm=!0,this.Hh[e.which]=!1,this.b.Ya=!0,this.zh=e.which-1,this.b.trigger(yc.prototype.n.Vr,this),this.b.Ya=!1)};q.HB=function(e){this.ju()&&(e.preventDefault(),this.b.Ya=!0,this.zh=e.which-1,this.Zn=1,this.b.trigger(yc.prototype.n.Gr,this),this.b.trigger(yc.prototype.n.qo,this),this.b.Ya=!1)};q.KB=function(e){this.Ev=0>(e.wheelDelta?e.wheelDelta:e.detail?-e.detail:
0)?0:1;this.tp=!1;this.b.Ya=!0;this.b.trigger(yc.prototype.n.Qx,this);this.b.Ya=!1;this.tp&&kb(e)&&e.preventDefault()};q.mg=function(){var e,f;e=0;for(f=this.Hh.length;e<f;++e)this.Hh[e]&&(this.Hh[e]=!1,this.zh=e-1,this.b.trigger(yc.prototype.n.Vr,this))};e.prototype.Gr=function(e,f){return e===this.zh&&f===this.Zn};e.prototype.gx=function(){return!0};e.prototype.Vr=function(e){return e===this.zh};e.prototype.Sw=function(e){var f=this.b.Xh();return Ta(this.b.Ri(e,this.kf,this.lf,f.bi),f.bi)};e.prototype.qo=
function(e,f,a){return e!==this.zh||f!==this.Zn?!1:this.b.Ri(a,this.kf,this.lf,!1)};e.prototype.Qx=function(e){this.tp=!0;return e===this.Ev};r.n=new e;r.C=new function(){};p.prototype.fl=function(e,f){var a,b,c,d,k;ja(f)?(a=this.b.Ze(0),b=a.scale,c=a.yc,d=a.Sc,k=a.q,a.scale=1,a.yc=1,a.Sc=1,a.q=0,e.P(a.nb(this.kf,this.lf,!0)),a.scale=b,a.yc=c,a.Sc=d,a.q=k):(a=ka(f)?this.b.Ze(f):this.b.yj(f))?e.P(a.nb(this.kf,this.lf,!0)):e.P(0)};p.prototype.gl=function(e,f){var a,b,c,d,k;ja(f)?(a=this.b.Ze(0),b=a.scale,
c=a.yc,d=a.Tc,k=a.q,a.scale=1,a.yc=1,a.Tc=1,a.q=0,e.P(a.nb(this.kf,this.lf,!1)),a.scale=b,a.yc=c,a.Tc=d,a.q=k):(a=ka(f)?this.b.Ze(f):this.b.yj(f))?e.P(a.nb(this.kf,this.lf,!1)):e.P(0)};r.aa=new p})();function zc(e){this.b=e}
(function(){function e(e){this.Va=e;this.$a=!1;this.q=this.speed=this.y=this.x=0;this.opacity=1;this.Jf=this.$h=this.size=this.pm=0}function p(){}var r=zc.prototype;r.S=function(e){this.qa=e;this.b=e.b};var q=r.S.prototype;q.H=function(){this.M||(this.I=new Image,this.I.Gl=this.Ok,this.R=null,this.b.Xk(this.I,this.Si))};q.nh=function(){this.M||(this.R=null)};q.Di=function(){this.M||!this.k.length||this.R||(this.R=this.b.D.ig(this.I,!0,this.b.Na,this.xh))};q.si=function(){this.M||this.R||!this.b.D||
(this.R=this.b.D.ig(this.I,!0,this.b.Na,this.xh))};q.Vi=function(){this.M||this.k.length||!this.R||(this.b.D.deleteTexture(this.R),this.R=null)};q.Hi=function(e){e.drawImage(this.I,0,0)};e.prototype.init=function(){var e=this.Va;this.x=e.x-e.ko/2+Math.random()*e.ko;this.y=e.y-e.lo/2+Math.random()*e.lo;this.speed=e.Cp-e.Mn/2+Math.random()*e.Mn;this.q=e.q-e.Nn/2+Math.random()*e.Nn;this.opacity=e.Ap;this.size=e.Bp-e.Ln/2+Math.random()*e.Ln;this.pm=e.sp-e.qm/2+Math.random()*e.qm;this.Jf=this.$h=0};e.prototype.Ma=
function(e){var f=this.Va;this.x+=Math.cos(this.q)*this.speed*e;this.y+=Math.sin(this.q)*this.speed*e;this.y+=this.$h*e;this.speed+=f.Nc*e;this.size+=this.pm*e;this.$h+=f.gc*e;this.Jf+=e;1>this.size?this.$a=!1:(0!==f.Vj&&(this.q+=Math.random()*f.Vj*e-f.Vj*e/2),0!==f.Xj&&(this.speed+=Math.random()*f.Xj*e-f.Xj*e/2),0!==f.Wj&&(this.opacity+=Math.random()*f.Wj*e-f.Wj*e/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=f.Oh&&this.Jf>=f.timeout&&(this.$a=!1),2===f.Oh&&0>=this.speed&&
(this.$a=!1))};e.prototype.Ac=function(e){var f=this.Va.opacity*this.opacity;if(0!==f){0===this.Va.Oh&&(f*=1-this.Jf/this.Va.timeout);e.globalAlpha=f;var f=this.x-this.size/2,a=this.y-this.size/2;this.Va.b.vc&&(f=f+.5|0,a=a+.5|0);e.drawImage(this.Va.type.I,f,a,this.size,this.size)}};e.prototype.xb=function(e){var f=this.Va.opacity*this.opacity;0===this.Va.Oh&&(f*=1-this.Jf/this.Va.timeout);var a=this.size,b=a*this.Va.Ju,c=this.x-a/2,d=this.y-a/2;this.Va.b.vc&&(c=c+.5|0,d=d+.5|0);1>b||0===f||(b<e.AB||
b>e.cq?(e.He(f),e.Ii(c,d,c+a,d,c+a,d+a,c,d+a)):e.QB(this.x,this.y,b,f))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};r.N=function(e){this.type=e;this.b=e.b};var q=r.N.prototype,m=[];q.H=function(){var e=this.A;this.un=e[0];this.Nn=S(e[1]);this.Oi=e[2];this.On=!0;this.Cp=e[3];this.Bp=e[4];this.Ap=e[5]/100;this.sp=e[6];this.ko=
e[7];this.lo=e[8];this.Mn=e[9];this.Ln=e[10];this.qm=e[11];this.Nc=e[12];this.gc=e[13];this.Vj=e[14];this.Xj=e[15];this.Wj=e[16];this.Oh=e[17];this.timeout=e[18];this.oh=0;this.Ju=1;this.cn=this.x;this.gn=this.y;this.dn=this.x;this.bn=this.y;this.Ly(function(f){f.Pa.set(f.cn,f.gn,f.dn,f.bn);f.$b.Ni(f.Pa);f.ul=!1;f.qr();f.Pv()});this.mc||(this.Gc=[]);this.b.vg(this);this.type.si();if(1===this.Oi)for(e=0;e<this.un;e++)this.Do().opacity=0;this.fm=!0};q.Za=function(){var e={r:this.un,sc:this.Nn,st:this.Oi,
s:this.On,isp:this.Cp,isz:this.Bp,io:this.Ap,gr:this.sp,xr:this.ko,yr:this.lo,spr:this.Mn,szr:this.Ln,grnd:this.qm,acc:this.Nc,g:this.gc,lar:this.Vj,lsr:this.Xj,lor:this.Wj,dm:this.Oh,to:this.timeout,pcc:this.oh,ft:this.fm,p:[]},f,a,b,c=e.p;f=0;for(a=this.Gc.length;f<a;f++)b=this.Gc[f],c.push([b.x,b.y,b.speed,b.q,b.opacity,b.pm,b.size,b.$h,b.Jf]);return e};q.gb=function(e){this.un=e.r;this.Nn=e.sc;this.Oi=e.st;this.On=e.s;this.Cp=e.isp;this.Bp=e.isz;this.Ap=e.io;this.sp=e.gr;this.ko=e.xr;this.lo=
e.yr;this.Mn=e.spr;this.Ln=e.szr;this.qm=e.grnd;this.Nc=e.acc;this.gc=e.g;this.Vj=e.lar;this.Xj=e.lsr;this.Wj=e.lor;this.Oh=e.dm;this.timeout=e.to;this.oh=e.pcc;this.fm=e.ft;m.push.apply(m,this.Gc);R(this.Gc);var f,a,b,c=e.p;e=0;for(f=c.length;e<f;e++)a=this.Do(),b=c[e],a.x=b[0],a.y=b[1],a.speed=b[2],a.q=b[3],a.opacity=b[4],a.pm=b[5],a.size=b[6],a.$h=b[7],a.Jf=b[8]};q.Id=function(){m.push.apply(m,this.Gc);R(this.Gc)};q.Do=function(){var n;m.length?(n=m.pop(),n.Va=this):n=new e(this);this.Gc.push(n);
n.$a=!0;return n};q.Ma=function(){var e=this.b.$f(this),f,a,b,c;if(0===this.Oi&&this.On)for(this.oh+=e*this.un,a=z(this.oh),this.oh-=a,f=0;f<a;f++)b=this.Do(),b.init();this.cn=this.x;this.gn=this.y;this.dn=this.x;this.bn=this.y;c=f=0;for(a=this.Gc.length;f<a;f++)b=this.Gc[f],this.Gc[c]=b,this.b.ca=!0,1===this.Oi&&this.fm&&b.init(),b.Ma(e),b.$a?(b.left()<this.cn&&(this.cn=b.left()),b.right()>this.dn&&(this.dn=b.right()),b.top()<this.gn&&(this.gn=b.top()),b.bottom()>this.bn&&(this.bn=b.bottom()),c++):
m.push(b);Aa(this.Gc,c);this.F();this.fm=!1;1===this.Oi&&0===this.Gc.length&&this.b.le(this)};q.Ac=function(e){var f,a,b,c=this.u;f=0;for(a=this.Gc.length;f<a;f++)b=this.Gc[f],b.right()>=c.ta&&b.bottom()>=c.ua&&b.left()<=c.Ca&&b.top()<=c.Ba&&b.Ac(e)};q.xb=function(e){this.Ju=this.u.Cc();e.wc(this.type.R);var f,a,b,c=this.u;f=0;for(a=this.Gc.length;f<a;f++)b=this.Gc[f],b.right()>=c.ta&&b.bottom()>=c.ua&&b.left()<=c.Ca&&b.top()<=c.Ba&&b.xb(e)};r.n=new function(){};p.prototype.ny=function(e){this.On=
0!==e};r.C=new p;r.aa=new function(){}})();function Y(e){this.b=e}
(function(){function e(){if(0===this.So.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Pi?b.drawImage(this.I,this.Bi,this.Ci,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.So=a.toDataURL("image/png")}return this.So}function p(){}function r(a){a[0]=0;a[1]=0;a[2]=0;M.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,d){b=b.uid;c=c.uid;var f=q(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=M.length?M.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function n(a,b,c){b=q(b.uid,c.uid);a.hasOwnProperty(b)&&(r(a[b]),delete a[b])}function f(a,b,c){b=q(b.uid,c.uid);if(a.hasOwnProperty(b))return P=a[b][2],!0;P=-2;return!1}function a(a,b,c){if(!a)return!1;var d=0!==b||0!==c,f,e,g=!1,l,k=this.b.Xh(),m=k.type,k=k.bi,n=a.ba();l=this.b.ob().wb.sd;n.ka?(this.Fa(),B.Kh(this.Pa),B.offset(b,c),this.b.ip(this.u,a,B,Q),n=Q):n=l?this.b.jB()&&!n.ma.length&&n.k.length?n.k:n.ma:n.k;h=a;K=m!==a&&!k;
d&&(f=this.x,e=this.y,this.x+=b,this.y+=c,this.F());b=0;for(c=n.length;b<c;b++)if(l=n[b],this.b.pc(this,l)){g=!0;if(k)break;m!==a&&t.add(l)}d&&(this.x=f,this.y=e,this.F());R(Q);return g}function b(){}function c(){}var d=Y.prototype;d.S=function(a){this.qa=a;this.b=a.b};var k=d.S.prototype;k.H=function(){if(!this.M){var a,b,c,d,f,h,g,l,k;this.Ud=[];this.Dj=!1;a=0;for(b=this.Yc.length;a<b;a++){f=this.Yc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];g.Iq=f[3];g.Jq=f[4];g.Ku=f[5];g.ra=f[6];g.frames=[];
c=0;for(d=f[7].length;c<d;c++)h=f[7][c],l={},l.Si=h[0],l.Ok=h[1],l.Bi=h[2],l.Ci=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.Dc=h[7],l.Ec=h[8],l.yp=h[9],l.ln=h[10],l.Lu=h[11],l.Pi=0!==l.width,l.So="",l.DD=e,k={left:0,top:0,right:1,bottom:1},l.Vq=k,l.R=null,(k=this.b.qA(h[0]))?l.I=k:(l.I=new Image,l.I.cz=h[0],l.I.Gl=h[1],l.I.Vy=null,this.b.Xk(l.I,h[0])),g.frames.push(l),this.Ud.push(l);this.Yc[a]=g}}};k.Mv=function(){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.Jl=c.cc.R};k.nh=function(){if(!this.M){var a,
b,c;a=0;for(b=this.Ud.length;a<b;++a)c=this.Ud[a],c.I.Vy=null,c.R=null;this.Dj=!1;this.Mv()}};k.Di=function(){if(!this.M&&this.k.length){var a,b,c;a=0;for(b=this.Ud.length;a<b;++a)c=this.Ud[a],c.R=this.b.D.ig(c.I,!1,this.b.Na,c.Lu);this.Mv()}};k.si=function(){if(!this.M&&!this.Dj&&this.b.D){var a,b,c;a=0;for(b=this.Ud.length;a<b;++a)c=this.Ud[a],c.R=this.b.D.ig(c.I,!1,this.b.Na,c.Lu);this.Dj=!0}};k.Vi=function(){if(!this.M&&!this.k.length&&this.Dj){var a,b,c;a=0;for(b=this.Ud.length;a<b;++a)c=this.Ud[a],
this.b.D.deleteTexture(c.R),c.R=null;this.Dj=!1}};var g=[];k.Hi=function(a){var b,c,d;R(g);b=0;for(c=this.Ud.length;b<c;++b)d=this.Ud[b].I,-1===g.indexOf(d)&&(a.drawImage(d,0,0),g.push(d))};d.N=function(a){this.type=a;this.b=a.b;a=this.type.Yc[0].frames[0].ln;this.mc?this.Ha.Ek(a):this.Ha=new bb(a)};var l=d.N.prototype;l.H=function(){this.visible=0===this.A[0];this.vm=this.Wg=!1;this.Bd=0!==this.A[3];this.Ua=this.Ss(this.A[1])||this.type.Yc[0];this.T=this.A[2];0>this.T&&(this.T=0);this.T>=this.Ua.frames.length&&
(this.T=this.Ua.frames.length-1);var a=this.Ua.frames[this.T];this.Ha.Ek(a.ln);this.Dc=a.Dc;this.Ec=a.Ec;this.Eg=this.Ua.speed;this.Uf=this.Ua.Jq;1===this.type.Yc.length&&1===this.type.Yc[0].frames.length||0===this.Eg||(this.b.vg(this),this.Wg=!0);this.mc?this.ne.reset():this.ne=new $a;this.Ye=this.ne.Y;this.yg=!0;this.Qe=0;this.Lf=!0;this.Ih=this.os="";this.zs=0;this.Al=-1;this.type.si();var b,c,d,f,e,h,g,a=0;for(b=this.type.Yc.length;a<b;a++)for(f=this.type.Yc[a],c=0,d=f.frames.length;c<d;c++)e=
f.frames[c],0===e.width&&(e.width=e.I.width,e.height=e.I.height),e.Pi&&(g=e.I,h=e.Vq,h.left=e.Bi/g.width,h.top=e.Ci/g.height,h.right=(e.Bi+e.width)/g.width,h.bottom=(e.Ci+e.height)/g.height,0===e.Bi&&0===e.Ci&&e.width===g.width&&e.height===g.height&&(e.Pi=!1));this.cc=this.Ua.frames[this.T];this.Jl=this.cc.R};l.Za=function(){var a={a:this.Ua.ra,f:this.T,cas:this.Eg,fs:this.Ye,ar:this.Qe,at:this.ne.Y,rt:this.Uf};this.yg||(a.ap=this.yg);this.Lf||(a.af=this.Lf);return a};l.gb=function(a){var b=this.vA(a.a);
b&&(this.Ua=b);this.T=a.f;0>this.T&&(this.T=0);this.T>=this.Ua.frames.length&&(this.T=this.Ua.frames.length-1);this.Eg=a.cas;this.Ye=a.fs;this.Qe=a.ar;this.ne.reset();this.ne.Y=a.at;this.yg=a.hasOwnProperty("ap")?a.ap:!0;this.Lf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Uf=a.rt:this.Uf=this.Ua.Jq;this.cc=this.Ua.frames[this.T];this.Jl=this.cc.R;this.Ha.Ek(this.cc.ln);this.Dc=this.cc.Dc;this.Ec=this.cc.Ec};l.Go=function(a){this.T=a?0:this.Ua.frames.length-1;this.yg=!1;this.os=this.Ua.name;
this.vm=!0;this.b.trigger(Y.prototype.n.Er,this);this.b.trigger(Y.prototype.n.Dr,this);this.vm=!1;this.Qe=0};l.oe=function(){return this.ne.Y};l.Ma=function(){this.ne.add(this.b.$f(this));this.Ih.length&&this.Gs();0<=this.Al&&this.Hs();var a=this.ne.Y,b=this.Ua,c=b.frames[this.T],d=c.duration/this.Eg;this.yg&&a>=this.Ye+d&&(this.Lf?this.T++:this.T--,this.Ye+=d,this.T>=b.frames.length&&(b.Ku?(this.Lf=!1,this.T=b.frames.length-2):b.loop?this.T=this.Uf:(this.Qe++,this.Qe>=b.Iq?this.Go(!1):this.T=this.Uf)),
0>this.T&&(b.Ku?(this.T=1,this.Lf=!0,b.loop||(this.Qe++,this.Qe>=b.Iq&&this.Go(!0))):b.loop?this.T=this.Uf:(this.Qe++,this.Qe>=b.Iq?this.Go(!0):this.T=this.Uf)),0>this.T?this.T=0:this.T>=b.frames.length&&(this.T=b.frames.length-1),a>this.Ye+b.frames[this.T].duration/this.Eg&&(this.Ye=a),a=b.frames[this.T],this.Eh(c,a),this.b.ca=!0)};l.Ss=function(a){var b,c,d;b=0;for(c=this.type.Yc.length;b<c;b++)if(d=this.type.Yc[b],jb(d.name,a))return d;return null};l.vA=function(a){var b,c,d;b=0;for(c=this.type.Yc.length;b<
c;b++)if(d=this.type.Yc[b],d.ra===a)return d;return null};l.Gs=function(){var a=this.Ua.frames[this.T],b=this.Ss(this.Ih);this.Ih="";!b||jb(b.name,this.Ua.name)&&this.yg||(this.Ua=b,this.Eg=b.speed,this.Uf=b.Jq,0>this.T&&(this.T=0),this.T>=this.Ua.frames.length&&(this.T=this.Ua.frames.length-1),1===this.zs&&(this.T=0),this.yg=!0,this.Ye=this.ne.Y,this.Lf=!0,this.Eh(a,this.Ua.frames[this.T]),this.b.ca=!0)};l.Hs=function(){var a=this.Ua.frames[this.T],b=this.T;this.T=z(this.Al);0>this.T&&(this.T=0);
this.T>=this.Ua.frames.length&&(this.T=this.Ua.frames.length-1);b!==this.T&&(this.Eh(a,this.Ua.frames[this.T]),this.Ye=this.ne.Y,this.b.ca=!0);this.Al=-1};l.Eh=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.Dc=b.Dc;this.Ec=b.Ec;this.Ha.Ek(b.ln);this.F();this.cc=b;this.Jl=b.R;c=0;for(d=this.X.length;c<d;c++)f=this.X[c],f.xu&&f.xu(a,b);this.b.trigger(Y.prototype.n.Eh,this)};l.Ac=function(a){a.globalAlpha=this.opacity;var b=this.cc,c=
b.Pi,d=b.I,f=this.x,e=this.y,h=this.width,g=this.height;if(0===this.q&&0<=h&&0<=g)f-=this.Dc*h,e-=this.Ec*g,this.b.vc&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.Bi,b.Ci,b.width,b.height,f,e,h,g):a.drawImage(d,f,e,h,g);else{this.b.vc&&(f=Math.round(f),e=Math.round(e));a.save();var l=0<h?1:-1,k=0<g?1:-1;a.translate(f,e);1===l&&1===k||a.scale(l,k);a.rotate(this.q*l*k);f=0-this.Dc*oa(h);e=0-this.Ec*oa(g);c?a.drawImage(d,b.Bi,b.Ci,b.width,b.height,f,e,oa(h),oa(g)):a.drawImage(d,f,e,oa(h),oa(g));
a.restore()}};l.Vf=function(a){this.xb(a)};l.xb=function(a){a.wc(this.Jl);a.He(this.opacity);var b=this.cc,c=this.$b;if(this.b.vc){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Pi?a.Ld(c.Wa+d,c.Xa+f,c.sb+d,c.tb+f,c.lb+d,c.mb+f,c.jb+d,c.kb+f,b.Vq):a.Ii(c.Wa+d,c.Xa+f,c.sb+d,c.tb+f,c.lb+d,c.mb+f,c.jb+d,c.kb+f)}else b.Pi?a.Ld(c.Wa,c.Xa,c.sb,c.tb,c.lb,c.mb,c.jb,c.kb,b.Vq):a.Ii(c.Wa,c.Xa,c.sb,c.tb,c.lb,c.mb,c.jb,c.kb)};l.BA=function(a){var b=this.cc,c,d;c=0;for(d=b.yp.length;c<d;c++)if(jb(a,
b.yp[c][0]))return c;return-1};l.Og=function(a,b){var c=this.cc,d=c.yp,f;la(a)?f=this.BA(a):f=a-1;f=z(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Dc)*this.width,d=d[f][2],d=(d-c.Ec)*this.height,c=Math.cos(this.q);f=Math.sin(this.q);var h=e*c-d*f,d=d*c+e*f,e=h+this.x,d=d+this.y;return b?e:d};var M=[],P=-2,v=[];p.prototype.nx=function(a){if(!a)return!1;var b=this.b,c=b.Xh(),d=c.type,e=null;c.O.collmemory?e=c.O.collmemory:(e={},c.O.collmemory=e);c.O.spriteCreatedDestroyCallback||(c.O.spriteCreatedDestroyCallback=
!0,b.ll(function(a){var b=c.O.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(r(b[d]),delete b[d])}));var h=d.ba(),g=a.ba(),h=h.Pc(),l,k,t,q,p,K,B,Q=this.b.ge,M=Q-1,I=b.ob().wb;for(k=0;k<h.length;k++){t=h[k];g.ka?(t.Fa(),this.b.ip(t.u,a,t.Pa,v),l=v,this.b.Ky(t,a,l)):l=g.Pc();for(q=0;q<l.length;q++)p=l[q],b.pc(t,p)||b.Zy(t,p)?(K=f(e,t,p),K=!K||P<M,m(e,t,p,Q),K&&(b.vk(I.La),K=d.ba(),B=a.ba(),K.ka=!1,B.ka=!1,d===a?(K.k.length=2,K.k[0]=t,K.k[1]=p,d.yd()):(K.k.length=
1,B.k.length=1,K.k[0]=t,B.k[0]=p,d.yd(),a.yd()),I.Kq(),b.pg(I.La))):n(e,t,p);R(v)}return!1};var h=null,t=new ea,K=!1,Q=[],B=new ua(0,0,0,0);k.finish=function(a){if(K){if(a){var b=this.b.ob().wb.sd;a=h.ba();var c=t.Bf(),d,f;if(a.ka){a.ka=!1;R(a.k);d=0;for(f=c.length;d<f;++d)a.k[d]=c[d];if(b)for(R(a.ma),d=0,f=h.k.length;d<f;++d)c=h.k[d],t.contains(c)||a.ma.push(c)}else if(b)for(b=a.k.length,d=0,f=c.length;d<f;++d)a.k[b+d]=c[d],Ea(a.ma,c[d]);else Ba(a.k,c);h.yd()}t.clear();K=!1}};p.prototype.Tw=function(b){return a.call(this,
b,0,0)};p.prototype.Uw=function(b,c,d){return a.call(this,b,c,d)};p.prototype.Fw=function(a){return this.Ih.length?jb(this.Ih,a):jb(this.Ua.name,a)};p.prototype.hw=function(a,b){return ec(this.T,a,b)};p.prototype.Dr=function(a){return jb(this.os,a)};p.prototype.Er=function(){return!0};p.prototype.Eh=function(){return!0};p.prototype.Ow=function(){return 0>this.width};d.n=new p;b.prototype.wy=function(a,b,c){if(a&&b&&(b=this.b.Hl(a,b,this.Og(c,!0),this.Og(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,
b.F());this.b.od++;var d,f,e;this.b.trigger(Object.getPrototypeOf(a.qa).n.Dh,b);if(b.ic)for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.qa).n.Dh,e);this.b.od--;d=this.b.yA();c=!1;if(ja(d.O.Spawn_LastExec)||d.O.Spawn_LastExec<this.b.Mg)c=!0,d.O.Spawn_LastExec=this.b.Mg;if(a!=this.type&&(a=a.ba(),a.ka=!1,c?(R(a.k),a.k[0]=b):a.k.push(b),b.ic))for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],a=e.type.ba(),a.ka=!1,c?(R(a.k),a.k[0]=e):a.k.push(e)}};b.prototype.Wx=
function(a,b){this.Ih=a;this.zs=b;this.Wg||(this.b.vg(this),this.Wg=!0);this.vm||this.Gs()};b.prototype.Xx=function(a){this.Al=a;this.Wg||(this.b.vg(this),this.Wg=!0);this.vm||this.Hs()};b.prototype.Yx=function(a){this.Eg=oa(a);this.Lf=0<=a;this.Wg||(this.b.vg(this),this.Wg=!0)};b.prototype.hy=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.F())};b.prototype.$x=function(a){this.Bd!==(0!==a)&&((this.Bd=0!==a)?this.F():(this.Ad.right>=this.Ad.left&&this.type.mj.update(this,
this.Ad,null),this.Ad.set(0,0,-1,-1)))};d.C=new b;c.prototype.Zv=function(a){a.Oa(this.T)};c.prototype.Dw=function(a,b){a.P(this.Og(b,!0))};c.prototype.Ew=function(a,b){a.P(this.Og(b,!1))};d.aa=new c})();function Ac(e){this.b=e}
(function(){function e(a,b){return a.length?a.pop():new b}function p(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<f&&a.push(b[c]);R(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<f&&a.push(b[d]),delete b[d])}function r(b,c,d){var f=b.Fc;d=d.replace(/\s\s*$/,"");c>=f.length&&f.push(e(a,Object));c=f[c];c.text=d;c.width=b.iq(d);b.xf=pa(b.xf,c.width)}function q(){}var m=Ac.prototype;m.H=function(){};m.S=function(a){this.qa=a;this.b=a.b};var n=m.S.prototype;n.H=function(){this.M||
(this.I=new Image,this.b.Xk(this.I,this.Si),this.R=null)};n.nh=function(){this.M||(this.R=null)};n.Di=function(){if(!this.M&&this.k.length){this.R||(this.R=this.b.D.ig(this.I,!1,this.b.Na,this.xh));var a,b;a=0;for(b=this.k.length;a<b;a++)this.k[a].R=this.R}};n.Vi=function(){this.M||this.k.length||!this.R||(this.b.D.deleteTexture(this.R),this.R=null)};n.Hi=function(a){a.drawImage(this.I,0,0)};m.N=function(a){this.type=a;this.b=a.b};n=m.N.prototype;n.Id=function(){p(a,this.Fc,!0);p(b,this.Cl,!1);p(c,
this.Dl,!1);Va(this.Rf)};n.H=function(){this.I=this.type.I;this.Bl=this.A[0];this.Pf=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.Qf=this.A[4];this.visible=0===this.A[5];this.$e=this.A[6]/2;this.Af=this.A[7]/2;this.$k=0===this.A[9];this.Jh=this.A[10];this.lineHeight=this.A[11];this.Le=this.xf=0;this.mc?(R(this.Fc),Va(this.Cl),Va(this.Dl),Va(this.Rf)):(this.Fc=[],this.Cl={},this.Dl={},this.Rf={});this.ud=!0;this.ah=this.width;this.b.D&&(this.type.R||(this.type.R=this.b.D.ig(this.type.I,
!1,this.b.Na,this.type.xh)),this.R=this.type.R);this.xy()};n.Za=function(){var a={t:this.text,csc:this.Qf,csp:this.Jh,lh:this.lineHeight,tw:this.xf,th:this.Le,lrt:this.$g,ha:this.$e,va:this.Af,cw:{}},b;for(b in this.Rf)a.cw[b]=this.Rf[b];return a};n.gb=function(a){this.text=a.t;this.Qf=a.csc;this.Jh=a.csp;this.lineHeight=a.lh;this.xf=a.tw;this.Le=a.th;this.$g=a.lrt;a.hasOwnProperty("ha")&&(this.$e=a.ha);a.hasOwnProperty("va")&&(this.Af=a.va);for(var b in a.cw)this.Rf[b]=a.cw[b];this.ud=!0;this.ah=
this.width};var f=1E3,a=[],b=[],c=[];n.xy=function(){for(var a=this.I,d=a.width,f=a.height,a=this.Bl,k=this.Pf,m=a/d,h=k/f,n=this.characterSet,d=Math.floor(d/a),f=Math.floor(f/k),q=0;q<n.length&&!(q>=d*f);q++){var p=q%d,r=Math.floor(q/d),y=n.charAt(q);if(this.b.D){var x=this.Dl,w=p*m,H=r*h,p=(p+1)*m,r=(r+1)*h;void 0===x[y]&&(x[y]=e(c,ua));x[y].left=w;x[y].top=H;x[y].right=p;x[y].bottom=r}else x=this.Cl,p=p*a,r=r*k,w=a,H=k,void 0===x[y]&&(x[y]=e(b,Object)),x[y].x=p,x[y].y=r,x[y].ho=w,x[y].rm=H}};var d=
[];m.xo=function(a){R(d);for(var b="",c,f=0;f<a.length;)if(c=a.charAt(f),"\n"===c)b.length&&(d.push(b),b=""),d.push("\n"),++f;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));d.push(b);b=""}else f<a.length&&(b+=c,f++);b.length&&d.push(b)};m.yo=function(b){var c=b.text,d=b.Fc;if(c&&c.length){var f=b.width;if(2>=f)p(a,d,!0);else{var k=b.Qf,h=b.Jh;if(c.length*(b.Bl*k+h)-h<=f&&-1===c.indexOf("\n")&&(h=b.iq(c),h<=f)){p(a,d,!0);d.push(e(a,
Object));d[0].text=c;d[0].width=h;b.xf=h;b.Le=b.Pf*k+b.lineHeight;return}this.zo(b);b.Le=d.length*(b.Pf*k+b.lineHeight)}}else p(a,d,!0)};m.zo=function(b){var c=b.$k,e=b.text,k=b.Fc,m=b.width;c&&(this.xo(e),e=d);var h="",n,q,p,B=0,y=!1;for(p=0;p<e.length;p++)"\n"===e[p]?(!0===y?y=!1:(r(b,B,h),B++),h=""):(y=!1,n=h,h+=e[p],q=b.iq(h.replace(/\s\s*$/,"")),q>m&&(""===n?(r(b,B,h),h="",y=!0):(r(b,B,n),h=e[p]),B++,c||" "!==h||(h="")));h.replace(/\s\s*$/,"").length&&(r(b,B,h),B++);for(p=B;p<k.length;p++)a.length<
f&&a.push(k[p]);k.length=B};n.iq=function(a){for(var b=this.Jh,c=a.length,d=0,f=0;f<c;f++)d+=this.hp(a.charAt(f))*this.Qf+b;return d-(0<d?b:0)};n.hp=function(a){var b=this.Rf;return void 0!==b[a]?b[a]:this.Bl};n.Su=function(){if(this.ud||this.width!==this.ah)this.Le=this.xf=0,this.type.qa.yo(this),this.ud=!1,this.ah=this.width};n.Ac=function(a){var b=this.I;if(""!==this.text&&null!=b&&(this.Su(),!(this.height<this.Pf*this.Qf+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.vc&&
(b=Math.round(b),c=Math.round(c));var d=this.u.ta,f=this.u.ua,e=this.u.Ca,k=this.u.Ba;a.save();a.translate(b,c);a.rotate(this.q);for(var m=this.q,n=this.$e,q=this.Qf,p=this.Pf*q,r=this.lineHeight,w=this.Jh,H=this.Fc,G,C=-(this.Dc*this.width),O=-(this.Ec*this.height),O=O+this.Af*pa(0,this.height-this.Le),T,D,U,V=0;V<H.length;V++){var J=H[V].text;G=n*pa(0,this.width-H[V].width);T=C+G;O+=r;if(0===m&&c+O+p<f)O+=p;else{for(var E=0;E<J.length;E++){D=J.charAt(E);G=this.hp(D);var u=this.Cl[D];if(0===m&&b+
T+G*q+w<d)T+=G*q+w;else{if(T+G*q>this.width+1E-5)break;void 0!==u&&(D=T,U=O,0===m&&1===q&&(D=Math.round(D),U=Math.round(U)),a.drawImage(this.I,u.x,u.y,u.ho,u.rm,D,U,u.ho*q,u.rm*q));T+=G*q+w;if(0===m&&b+T>e)break}}O+=p;if(0===m&&(O+p+r>this.height||c+O>k))break}}a.restore()}};var k=new va;n.xb=function(a){a.wc(this.R);a.He(this.opacity);if(this.text&&(this.Su(),!(this.height<this.Pf*this.Qf+this.lineHeight))){this.Fa();var b=this.$b,c=0,d=0;this.b.vc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var f=this.u.ta,e=this.u.ua,m=this.u.Ca,n=this.u.Ba,q=this.q,p=this.$e,r=this.Af,x=this.Qf,w=this.Pf*x,H=this.lineHeight,G=this.Jh,C=this.Fc,O=this.Le,T,D,U;0!==q&&(D=Math.cos(q),U=Math.sin(q));for(var c=b.Wa+c,b=b.Xa+d,V,r=r*pa(0,this.height-O),J,E,O=0;O<C.length;O++)if(d=C[O].text,V=T=p*pa(0,this.width-C[O].width),r+=H,0===q&&b+r+w<e)r+=w;else{for(var u=0;u<d.length;u++){var A=d.charAt(u);T=this.hp(A);A=this.Dl[A];if(0===q&&c+V+T*x+G<f)V+=T*x+G;else{if(V+T*x>this.width+1E-5)break;if(void 0!==
A){var F=this.Bl*x,I=this.Pf*x;J=V;E=r;0===q&&1===x&&(J=Math.round(J),E=Math.round(E));k.Wa=J;k.Xa=E;k.sb=J+F;k.tb=E;k.jb=J;k.kb=E+I;k.lb=J+F;k.mb=E+I;0!==q&&(J=k,E=D,F=U,I=void 0,I=J.Wa*E-J.Xa*F,J.Xa=J.Xa*E+J.Wa*F,J.Wa=I,I=J.sb*E-J.tb*F,J.tb=J.tb*E+J.sb*F,J.sb=I,I=J.jb*E-J.kb*F,J.kb=J.kb*E+J.jb*F,J.jb=I,I=J.lb*E-J.mb*F,J.mb=J.mb*E+J.lb*F,J.lb=I);k.offset(c,b);a.Ld(k.Wa,k.Xa,k.sb,k.tb,k.lb,k.mb,k.jb,k.kb,A)}V+=T*x+G;if(0===q&&c+V>m)break}}r+=w;if(0===q&&(r+w+H>this.height||b+r>n))break}}};m.n=new function(){};
q.prototype.vo=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.ud=!0,this.b.ca=!0)};n.oe=function(a,b){var c=parseInt(b,10);this.Rf[a]!==c&&(this.Rf[a]=c,this.ud=!0,this.b.ca=!0)};m.C=new q;m.aa=new function(){}})();function Bc(e){this.b=e}
(function(){function e(){return a.length?a.pop():{}}function p(b){var c,d;c=0;for(d=b.length;c<d;c++)a.push(b[c]);R(b)}function r(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function q(){}var m=Bc.prototype;m.H=function(){m.C.$r=function(a){this.width!==a&&(this.width=a,this.ud=!0,this.F())}};m.S=function(a){this.qa=a;this.b=a.b};var n=m.S.prototype;n.H=function(){};n.nh=function(){if(!this.M){var a,c,d;a=0;for(c=this.k.length;a<c;a++)d=this.k[a],d.Ae=null,d.kh=null,
d.fd=null}};m.N=function(a){this.type=a;this.b=a.b;this.mc?R(this.Fc):this.Fc=[];this.ud=!0};n=m.N.prototype;n.H=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.$e=this.A[4];this.Af=this.A[5];this.$k=0===this.A[7];this.ah=this.hf=this.width;this.gf=this.height;this.Up=this.A[8];this.hm=this.Sh="";this.Le=this.xf=this.tk=0;this.NB();this.fd=this.kh=this.Ae=null;this.lu=!1;this.$g=this.b.ge;this.mc?this.qg.set(0,0,1,1):this.qg=new ua(0,0,1,1);
this.b.D&&this.b.vg(this)};n.NB=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.tk=parseInt(a[c].substr(0,a[c].length-2));this.Eq=Math.ceil(this.tk/72*96)+4;0<c&&(this.hm=a[c-1]);this.Sh=a[c+1];for(c+=2;c<a.length;c++)this.Sh+=" "+a[c];break}};n.Za=function(){return{t:this.text,f:this.font,c:this.color,ha:this.$e,va:this.Af,wr:this.$k,lho:this.Up,fn:this.Sh,fs:this.hm,ps:this.tk,pxh:this.Eq,tw:this.xf,th:this.Le,lrt:this.$g}};n.gb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.$e=a.ha;this.Af=a.va;this.$k=a.wr;this.Up=a.lho;this.Sh=a.fn;this.hm=a.fs;this.tk=a.ps;this.Eq=a.pxh;this.xf=a.tw;this.Le=a.th;this.$g=a.lrt;this.ud=!0;this.ah=this.hf=this.width;this.gf=this.height};n.Ma=function(){if(this.b.D&&this.fd&&300<=this.b.ge-this.$g){var a=this.u;this.Fa();var c=this.Pa;if(c.right<a.ta||c.bottom<a.ua||c.left>a.Ca||c.top>a.Ba)this.b.D.deleteTexture(this.fd),this.Ae=this.kh=this.fd=null}};n.Id=function(){this.Ae=this.kh=null;this.b.D&&
this.fd&&this.b.D.deleteTexture(this.fd);this.fd=null};n.oe=function(){this.font=this.hm+" "+this.tk.toString()+"pt "+this.Sh;this.ud=!0;this.b.ca=!0};n.Ac=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.u.Cc()),a.save(),a.scale(d,d));if(this.ud||this.width!==this.ah)this.type.qa.yo(this.text,this.Fc,a,this.width,this.$k),this.ud=!1,this.ah=this.width;this.Fa();var d=c?0:this.$b.Wa,f=c?0:this.$b.Xa;this.b.vc&&(d=
d+.5|0,f=f+.5|0);0===this.q||c||(a.save(),a.translate(d,f),a.rotate(this.q),f=d=0);var e=f+this.height,l=this.Eq,l=l+this.Up,m,n;1===this.Af?f+=Math.max(this.height/2-this.Fc.length*l/2,0):2===this.Af&&(f+=Math.max(this.height-this.Fc.length*l-2,0));for(n=0;n<this.Fc.length&&!(m=d,1===this.$e?m=d+(this.width-this.Fc[n].width)/2:2===this.$e&&(m=d+(this.width-this.Fc[n].width)),a.fillText(this.Fc[n].text,m,f),f+=l,f>=e-l);n++);(0!==this.q||c)&&a.restore();this.$g=this.b.ge};n.xb=function(a){if(!(1>
this.width||1>this.height)){var c=this.ud||this.lu;this.lu=!1;var d=this.u.Cc(),f=this.u.Kb(),e=this.qg,l=d*this.width,m=d*this.height,n=Math.ceil(l),q=Math.ceil(m),h=Math.abs(n),t=Math.abs(q),p=this.b.W/2,r=this.b.V/2;this.kh||(this.Ae=document.createElement("canvas"),this.Ae.width=h,this.Ae.height=t,this.hf=h,this.gf=t,c=!0,this.kh=this.Ae.getContext("2d"));if(h!==this.hf||t!==this.gf)this.Ae.width=h,this.Ae.height=t,this.fd&&(a.deleteTexture(this.fd),this.fd=null),c=!0;c&&(this.kh.clearRect(0,
0,h,t),this.Ac(this.kh,!0),this.fd||(this.fd=a.$c(h,t,this.b.Na,this.b.we)),a.Sv(this.Ae,this.fd,this.b.we));this.hf=h;this.gf=t;a.wc(this.fd);a.He(this.opacity);a.Md();a.translate(-p,-r);a.vd();var B=this.$b,c=this.u.Ra(B.Wa,B.Xa,!0,!0),h=this.u.Ra(B.Wa,B.Xa,!1,!0),t=this.u.Ra(B.sb,B.tb,!0,!0),p=this.u.Ra(B.sb,B.tb,!1,!0),r=this.u.Ra(B.lb,B.mb,!0,!0),y=this.u.Ra(B.lb,B.mb,!1,!0),x=this.u.Ra(B.jb,B.kb,!0,!0),B=this.u.Ra(B.jb,B.kb,!1,!0);if(this.b.vc||0===this.q&&0===f)var w=(c+.5|0)-c,H=(h+.5|0)-
h,c=c+w,h=h+H,t=t+w,p=p+H,r=r+w,y=y+H,x=x+w,B=B+H;0===this.q&&0===f?(t=c+n,p=h,r=t,y=h+q,x=c,B=y,e.right=1,e.bottom=1):(e.right=l/n,e.bottom=m/q);a.Ld(c,h,t,p,r,y,x,B,e);a.Md();a.scale(d,d);a.xn(-this.u.Kb());a.translate((this.u.ta+this.u.Ca)/-2,(this.u.ua+this.u.Ba)/-2);a.vd();this.$g=this.b.ge}};var f=[];m.xo=function(a){R(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=[];m.yo=function(a,c,d,f,g){if(a&&a.length)if(2>=f)p(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=d.measureText(a).width;if(l<=f){p(c);c.push(e());c[0].text=a;c[0].width=l;return}}this.zo(a,c,d,f,g)}else p(c)};m.zo=function(b,c,d,k,g){g&&(this.xo(b),b=f);var l="",m,n,q,h=0;for(q=0;q<b.length;q++)"\n"===b[q]?(h>=c.length&&c.push(e()),l=r(l),n=c[h],n.text=l,n.width=d.measureText(l).width,
h++,l=""):(m=l,l+=b[q],n=d.measureText(l).width,n>=k&&(h>=c.length&&c.push(e()),m=r(m),n=c[h],n.text=m,n.width=d.measureText(m).width,h++,l=b[q],g||" "!==l||(l="")));l.length&&(h>=c.length&&c.push(e()),l=r(l),n=c[h],n.text=l,n.width=d.measureText(l).width,h++);for(q=h;q<c.length;q++)a.push(c[q]);c.length=h};m.n=new function(){};q.prototype.vo=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.ud=!0,this.b.ca=!0)};m.C=new q;m.aa=new function(){}})();
function Cc(e){this.b=e}
(function(){function e(){}function p(){}var r=Cc.prototype;r.S=function(e){this.qa=e;this.b=e.b};r.S.prototype.H=function(){};r.N=function(e){this.type=e;this.b=e.b};var q=r.N.prototype,m="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(m[2]="text",m[3]="text",m[4]="text",m[5]="text");q.H=function(){if(this.b.Ea)ha("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.A[7]?(this.U=document.createElement("textarea"),
jQuery(this.U).css("resize","none")):(this.U=document.createElement("input"),this.U.type=m[this.A[7]]);this.U.id=this.A[9];jQuery(this.U).appendTo(this.b.zl?this.b.zl:"body");this.U.autocomplete="off";this.U.value=this.A[0];this.U.placeholder=this.A[1];this.U.title=this.A[2];this.U.disabled=0===this.A[4];this.U.readOnly=1===this.A[5];this.U.spellcheck=1===this.A[6];this.Qy=0!==this.A[8];this.Jg=!1;0===this.A[3]&&(jQuery(this.U).hide(),this.visible=!1,this.Jg=!0);var e=function(f){return function(){f.b.trigger(Cc.prototype.n.Nx,
f)}}(this);this.U.oninput=e;-1!==navigator.userAgent.indexOf("MSIE")&&(this.U.oncut=e);this.U.onclick=function(f){return function(a){a.stopPropagation();f.b.Ya=!0;f.b.trigger(Cc.prototype.n.mx,f);f.b.Ya=!1}}(this);this.U.ondblclick=function(f){return function(a){a.stopPropagation();f.b.Ya=!0;f.b.trigger(Cc.prototype.n.ox,f);f.b.Ya=!1}}(this);this.U.addEventListener("touchstart",function(f){f.stopPropagation()},!1);this.U.addEventListener("touchmove",function(f){f.stopPropagation()},!1);this.U.addEventListener("touchend",
function(f){f.stopPropagation()},!1);jQuery(this.U).mousedown(function(f){f.stopPropagation()});jQuery(this.U).mouseup(function(f){f.stopPropagation()});jQuery(this.U).keydown(function(f){13!==f.which&&27!=f.which&&f.stopPropagation()});jQuery(this.U).keyup(function(f){13!==f.which&&27!=f.which&&f.stopPropagation()});this.Jt=this.Kt=this.Ct=this.Gt=this.It=this.Et=0;this.Ov(!0);this.b.vg(this)}};q.Za=function(){return{text:this.U.value,placeholder:this.U.placeholder,tooltip:this.U.title,disabled:!!this.U.disabled,
readonly:!!this.U.readOnly,spellcheck:!!this.U.spellcheck}};q.gb=function(e){this.U.value=e.text;this.U.placeholder=e.placeholder;this.U.title=e.tooltip;this.U.disabled=e.disabled;this.U.readOnly=e.readonly;this.U.spellcheck=e.spellcheck};q.Id=function(){this.b.Ea||(jQuery(this.U).remove(),this.U=null)};q.Ma=function(){this.Ov()};q.Ov=function(e){if(!this.b.Ea){var f=this.u.Ra(this.x,this.y,!0),a=this.u.Ra(this.x,this.y,!1),b=this.u.Ra(this.x+this.width,this.y+this.height,!0),c=this.u.Ra(this.x+this.width,
this.y+this.height,!1),d=this.b.width/this.b.devicePixelRatio,k=this.b.height/this.b.devicePixelRatio;!this.visible||!this.u.visible||0>=b||0>=c||f>=d||a>=k?(this.Jg||jQuery(this.U).hide(),this.Jg=!0):(1>f&&(f=1),1>a&&(a=1),b>=d&&(b=d-1),c>=k&&(c=k-1),d=window.innerWidth,k=window.innerHeight,e||this.Et!==f||this.It!==a||this.Gt!==b||this.Ct!==c||this.Kt!==d||this.Jt!==k?(this.Et=f,this.It=a,this.Gt=b,this.Ct=c,this.Kt=d,this.Jt=k,this.Jg&&(jQuery(this.U).show(),this.Jg=!1),e=Math.round(f)+jQuery(this.b.canvas).offset().left,
d=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.U).css("position","absolute"),jQuery(this.U).offset({left:e,top:d}),jQuery(this.U).width(Math.round(b-f)),jQuery(this.U).height(Math.round(c-a)),this.Qy&&jQuery(this.U).css("font-size",this.u.Cc(!0)/this.b.devicePixelRatio-.2+"em")):this.Jg&&(jQuery(this.U).show(),this.Jg=!1))}};q.Ac=function(){};q.xb=function(){};e.prototype.Nx=function(){return!0};e.prototype.mx=function(){return!0};e.prototype.ox=function(){return!0};r.n=new e;p.prototype.vo=
function(e){this.b.Ea||(this.U.value=e)};p.prototype.wo=function(e){this.b.Ea||(this.visible=0!==e)};p.prototype.Fh=function(e){this.b.Ea||(this.U.disabled=0===e)};r.C=new p;r.aa=new function(){}})();function Dc(e){this.b=e}
(function(){var e=Dc.prototype;e.S=function(e){this.qa=e;this.b=e.b};var p=e.S.prototype;p.H=function(){this.M||(this.I=new Image,this.I.Gl=this.Ok,this.b.Xk(this.I,this.Si),this.R=this.pattern=null)};p.nh=function(){this.M||(this.R=null)};p.Di=function(){if(!this.M&&this.k.length){this.R||(this.R=this.b.D.ig(this.I,!0,this.b.Na,this.xh));var e,q;e=0;for(q=this.k.length;e<q;e++)this.k[e].R=this.R}};p.si=function(){this.M||this.R||!this.b.D||(this.R=this.b.D.ig(this.I,!0,this.b.Na,this.xh))};p.Vi=
function(){this.M||this.k.length||!this.R||(this.b.D.deleteTexture(this.R),this.R=null)};p.Hi=function(e){e.drawImage(this.I,0,0)};e.N=function(e){this.type=e;this.b=e.b};p=e.N.prototype;p.H=function(){this.visible=0===this.A[0];this.qg=new ua(0,0,0,0);this.et=!1;this.I=this.type.I;this.b.D?(this.type.si(),this.R=this.type.R):(this.type.pattern||(this.type.pattern=this.b.Ta.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};p.Td=function(){this.et=!1;this.I=this.type.I};p.Id=function(){this.b.D&&
this.et&&this.R&&(this.b.D.deleteTexture(this.R),this.R=null)};p.Ac=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var q=this.x,m=this.y;this.b.vc&&(q=Math.round(q),m=Math.round(m));var n=-(this.Dc*this.width),f=-(this.Ec*this.height),a=n%this.I.width,b=f%this.I.height;0>a&&(a+=this.I.width);0>b&&(b+=this.I.height);e.translate(q,m);e.rotate(this.q);e.translate(a,b);e.fillRect(n-a,f-b,this.width,this.height);e.restore()};p.Vf=function(e){this.xb(e)};p.xb=function(e){e.wc(this.R);
e.He(this.opacity);var q=this.qg;q.right=this.width/this.I.width;q.bottom=this.height/this.I.height;var m=this.$b;if(this.b.vc){var n=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;e.Ld(m.Wa+n,m.Xa+f,m.sb+n,m.tb+f,m.lb+n,m.mb+f,m.jb+n,m.kb+f,q)}else e.Ld(m.Wa,m.Xa,m.sb,m.tb,m.lb,m.mb,m.jb,m.kb,q)};e.n=new function(){};e.C=new function(){};e.aa=new function(){}})();function Ec(e){this.b=e}
(function(){function e(){this.Wn=this.id=-1;this.qs=this.Ph=this.Uk=this.Ej=!1;this.Ja=new ua(0,0,0,0)}function p(a){1E4>g.length&&g.push(a)}function r(){this.id=-1;this.Ja=new ua(0,0,0,0);this.rf=null}function q(a){1E4>l.length&&l.push(a)}function m(a,b,c){var d;return M.length?(d=M.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.Hb*d.j.Tb,d.top=d.y*d.j.Ub*d.j.Sb,d.clear(),d.wk=!1,d):new n(a,b,c)}function n(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.Hb*this.j.Tb;this.top=this.y*this.j.Ub*this.j.Sb;
this.Me=[];this.lc=[];this.zc=[];this.wk=!1;var d,f;a=0;for(b=this.j.Ub;a<b;++a){f=[];c=0;for(d=this.j.Hb;c<d;++c)f.push(-1);this.Me.push(f)}}var f=Ec.prototype;f.S=function(a){this.qa=a;this.b=a.b};var a=f.S.prototype;a.H=function(){var a,b,c;if(!this.M&&(this.I=new Image,this.I.Gl=this.Ok,this.b.Xk(this.I,this.Si),this.Fg=[],this.Ro=!1,this.he=[],this.zv=!1,this.Vn&&this.Vn.length))for(a=0,b=this.Vn.length;a<b;++a)(c=this.Vn[a])?this.he.push({rf:c,gm:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.he.push(null)};a.Nf=function(a,b,c,d,f,e){if(!(0>a||a>=this.he.length)&&this.he[a]){var g=this.he[a].gm;a=new bb(this.he[a].rf);a.Cg(b,c,0);e&&a.jz();d&&a.BB(b/2);f&&a.rA(c/2);g[d?1:0][f?1:0][e?1:0]=a}};a.$s=function(a){if(-1===a)return null;var f=a&k;return 0>f||f>=this.he.length||!this.he[f]?null:this.he[f].gm[a&b?1:0][a&c?1:0][a&d?1:0]};a.dp=function(){var a,b,c=this.b.D;if(c)for(a=0,b=this.Fg.length;a<b;++a)c.deleteTexture(this.Fg[a]);R(this.Fg);this.Ro=!1};a.fq=function(a,b,c,
d,f,e,g){if(!(this.Ro||0>=a||0>=b)){this.dp();var k=this.I.width,l=this.I.height,m;for(m=d;m+b<=l;m+=b+e)for(d=c;d+a<=k;d+=a+f)this.Fg.push(this.qw(d,m,a,b,g));this.Ro=!0}};a.qw=function(a,b,c,d,f){if(this.b.D)return this.oo(a,b,c,d,!1,!1,!1,f);var e=[[[null,null],[null,null]],[[null,null],[null,null]]];e[0][0][0]=this.oo(a,b,c,d,!1,!1,!1,f);return{gm:e,x:a,y:b,ho:c,rm:d}};a.Cr=function(a,b,c,d,f){if(0>a||a>=this.Fg.length)return null;a=this.Fg[a];var e=a.gm;b=b?1:0;c=c?1:0;d=d?1:0;var g=e[b][c][d];
if(g)return g;g=this.oo(a.x,a.y,a.ho,a.rm,0!==b,0!==c,0!==d,f);return e[b][c][d]=g};a.oo=function(a,b,c,d,f,e,g,k){var l=c,m=d;this.b.D&&!k&&(ma(l)||(l=na(l)),ma(m)||(m=na(m)));var q=document.createElement("canvas");q.width=l;q.height=m;var n=q.getContext("2d");if(this.b.Ta)return f?e?(g?(n.rotate(Math.PI/2),n.scale(-1,1)):n.scale(-1,-1),n.translate(-l,-m)):g?(n.rotate(Math.PI/2),n.translate(0,-m)):(n.scale(-1,1),n.translate(-l,0)):e?g?(n.rotate(-Math.PI/2),n.translate(-l,0)):(n.scale(1,-1),n.translate(0,
-m)):g&&(n.scale(-1,1),n.rotate(Math.PI/2)),n.drawImage(this.I,a,b,c,d,0,0,l,m),k?q:this.b.Ta.createPattern(q,"repeat");n.drawImage(this.I,a,b,c,d,0,0,l,m);a=this.b.D.$c(l,m,this.b.Na,!1,!k);this.b.D.Sv(q,a);return a};a.nh=function(){this.M||this.dp()};a.Di=function(){};a.si=function(){};a.Vi=function(){this.M||this.k.length||this.dp()};a.Hi=function(){};f.N=function(a){this.type=a;this.b=a.b};var a=f.N.prototype,b=-2147483648,c=1073741824,d=536870912,k=536870911,g=[],l=[],M=[];n.prototype.clear=
function(){var a,b,c,d,f;this.Me.length=this.j.Ub;a=0;for(b=this.Me.length;a<b;++a)for(f=this.Me[a],f||(f=[],this.Me[a]=f),f.length=this.j.Hb,c=0,d=f.length;c<d;++c)f[c]=-1};n.prototype.hk=function(){if(!this.wk){var a=this.j.Tb,f=this.j.Sb;if(!(0>=a||0>=f)){var m,n,Q,B,y,x;m=0;for(n=this.lc.length;m<n;++m)p(this.lc[m]);m=0;for(n=this.zc.length;m<n;++m)q(this.zc[m]);R(this.lc);R(this.zc);var w=Math.min(this.j.Hd,Math.floor(this.j.width/a)),H=Math.min(this.j.be,Math.floor(this.j.height/f)),w=w-this.left/
a,H=H-this.top/f;w>this.j.Hb&&(w=this.j.Hb);H>this.j.Ub&&(H=this.j.Ub);var G=this.j.rg,C=null;m=0;for(n=H;m<n;++m){y=this.Me[m];Q=0;for(B=w;Q<B;++Q)x=y[Q],-1===x?C&&(this.lc.push(C),C=null):G||!C||x!==C.id?(C&&this.lc.push(C),C=g.length?g.pop():new e,C.id=x,C.Wn=x&k,C.Ej=0!==(x&b),C.Uk=0!==(x&c),C.Ph=0!==(x&d),C.qs=C.Ej||C.Uk||C.Ph,C.Ja.left=Q*a+this.left,C.Ja.top=m*f+this.top,C.Ja.right=C.Ja.left+a,C.Ja.bottom=C.Ja.top+f):C.Ja.right+=a;C&&(this.lc.push(C),C=null)}var C=null,O=!1;m=0;for(n=H;m<n;++m){y=
this.Me[m];Q=0;for(B=w;Q<B;++Q)x=y[Q],-1===x?C&&(this.zc.push(C),C=null,O=!1):(H=this.j.type.$s(x),!C||H||O?(C&&this.zc.push(C),C=l.length?l.pop():new r,C.id=x,C.rf=H?H:null,x=C.Ja,x.left=Q*a+this.left,x.top=m*f+this.top,x.right=x.left+a,x.bottom=x.top+f,O=!!H):C.Ja.right+=a);C&&(this.zc.push(C),C=null,O=!1)}if(!G)for(n=this.lc.length,m=0;m<n;++m)for(B=this.lc[m],a=m+1;a<n;++a)if(Q=this.lc[a],!(Q.Ja.top<B.Ja.bottom)){if(Q.Ja.top>B.Ja.bottom)break;if(Q.Ja.right>B.Ja.right||Q.Ja.left>B.Ja.left)break;
Q.id===B.id&&Q.Ja.left===B.Ja.left&&Q.Ja.right===B.Ja.right&&(p(this.lc[a]),this.lc.splice(a,1),--n,B.Ja.bottom+=f,--a)}n=this.zc.length;for(m=0;m<n;++m)if(B=this.zc[m],!B.rf)for(y=B.Ja,a=m+1;a<n;++a)if(Q=this.zc[a],B=Q.Ja,!(B.top<y.bottom)){if(B.top>y.bottom)break;if(B.right>y.right||B.left>y.left)break;Q.rf||B.left!==y.left||B.right!==y.right||(q(this.zc[a]),this.zc.splice(a,1),--n,y.bottom+=f,--a)}this.wk=!0}}};n.prototype.Uq=function(a,b,c){this.Me[b][a]!==c&&(this.Me[b][a]=c,this.wk=!1,this.j.pl=
!0,this.j.pk=!0,this.j.b.ca=!0)};a.H=function(){var a,b,c;this.visible=0===this.A[0];this.Tb=this.A[1];this.Sb=this.A[2];this.br=this.A[3];this.dr=this.A[4];this.cr=this.A[5];this.er=this.A[6];this.rg=0!==this.A[7];this.Hd=this.Cv;this.be=this.Bv;this.hf=this.width;this.gf=this.height;var d=this.Tb,f=this.Sb;0===d&&(d=1);0===f&&(f=1);this.Hb=Math.ceil(this.b.Db/d);this.Ub=Math.ceil(this.b.Cb/f);if(!this.type.zv)for(this.type.zv=!0,a=0,b=this.type.he.length;a<b;++a)if(c=this.type.he[a])this.type.Nf(a,
d,f,!1,!1,!1),this.type.Nf(a,d,f,!1,!1,!0),this.type.Nf(a,d,f,!1,!0,!1),this.type.Nf(a,d,f,!1,!0,!0),this.type.Nf(a,d,f,!0,!1,!1),this.type.Nf(a,d,f,!0,!1,!0),this.type.Nf(a,d,f,!0,!0,!1),this.type.Nf(a,d,f,!0,!0,!0);this.mc||(this.Kc=[]);this.gq(!0);this.gv(this.Av);this.type.fq(this.Tb,this.Sb,this.br,this.dr,this.cr,this.er,this.rg);this.pk=!1;this.pl=!0;this.dq()};a.dq=function(){if(this.pl){var a,b,c,d,f;a=0;for(b=this.Kc.length;a<b;++a)for(f=this.Kc[a],c=0,d=f.length;c<d;++c)f[c].hk();this.pl=
!1}};a.Bn=function(){var a,b,c,d,f;a=0;for(b=this.Kc.length;a<b;++a)for(f=this.Kc[a],c=0,d=f.length;c<d;++c)f[c].wk=!1;this.pl=!0};a.gq=function(a){var b=z(this.width/this.Tb),c=z(this.height/this.Sb);if(!(b<=this.Hd&&c<=this.be)||a){var d;a?(a=Math.ceil(this.be/this.Ub),d=Math.ceil(this.Hd/this.Hb)):(a=this.Kc.length,d=Math.ceil(this.Hd/this.Hb),c>this.be&&(this.be=c,a=Math.ceil(this.be/this.Ub)),b>this.Hd&&(this.Hd=b,d=Math.ceil(this.Hd/this.Hb)),this.Bn(),this.pk=!0,this.b.ca=!0);for(var f,b=0;b<
a;++b)if(f=this.Kc[b])for(c=f.length;c<d;++c)f.push(m(this,c,b));else{f=[];for(c=0;c<d;++c)f.push(m(this,c,b));this.Kc[b]=f}}};a.Jo=function(a,b){if(0>a||0>b)return null;var c=z(b/this.Ub);if(c>=this.Kc.length)return null;var c=this.Kc[c],d=z(a/this.Hb);return d>=c.length?null:c[d]};a.Ko=function(a,b){if(0>a||0>b||b>=this.Kc.length)return null;var c=this.Kc[b];return a>=c.length?null:c[a]};a.gv=function(a){var f=[];a=a.split(",");var e,g,l,k,m;e=0;for(g=a.length;e<g;++e)if(l=a[e],k=l.indexOf("x"),
-1<k)for(m=parseInt(l.substring(0,k),10),l=l.substring(k+1),k=parseInt(l,10),-1<l.indexOf("h")&&(k|=b),-1<l.indexOf("v")&&(k|=c),-1<l.indexOf("d")&&(k|=d);0<m;--m)f.push(k);else k=parseInt(l,10),-1<l.indexOf("h")&&(k|=b),-1<l.indexOf("v")&&(k|=c),-1<l.indexOf("d")&&(k|=d),f.push(k);for(e=a=0;e<this.be;++e)for(g=0;g<this.Hd;++g)m=f[a++],(l=this.Jo(g,e))&&l.Uq(g%this.Hb,e%this.Ub,m)};a.LA=function(){var a="";if(0>=this.Hd||0>=this.be)return a;var f=1,e=this.pp(0,0),g,l,m,n,q,p,r,G;n=z(this.width/this.Tb);
l=z(this.height/this.Sb);for(g=0;g<l;++g)for(m=0===g?1:0;m<n;++m)q=this.pp(m,g),q===e?++f:(-1===e?(p=-1,e=G=r=!1):(p=e&k,r=0!==(e&b),G=0!==(e&c),e=0!==(e&d)),a=1===f?a+(""+p):a+(""+f+"x"+p),r&&(a+="h"),G&&(a+="v"),e&&(a+="d"),a+=",",f=1,e=q);-1===e?(p=-1,e=G=r=!1):(p=e&k,r=0!==(e&b),G=0!==(e&c),e=0!==(e&d));a=1===f?a+(""+p):a+(""+f+"x"+p);r&&(a+="h");G&&(a+="v");e&&(a+="d");return a};a.pp=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Hd||b>=this.be)return-1;var c=this.Jo(a,b);
return c?c.Me[b%this.Ub][a%this.Hb]:-1};a.Uq=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Hd||b>=this.be)return-1;var d=this.Jo(a,b);if(!d)return-1;d.Uq(a%this.Hb,b%this.Ub,c)};a.Uv=function(a){return Math.floor((a-this.x)/(this.Hb*this.Tb))};a.Vv=function(a){return Math.floor((a-this.y)/(this.Ub*this.Sb))};a.JC=function(a){return Math.floor((a-this.x)/this.Tb)};a.KC=function(a){return Math.floor((a-this.y)/this.Sb)};a.xA=function(a,b){var c=this.Vv(a.top),d=this.Uv(a.right),
f=this.Vv(a.bottom),e,g,l;for(e=this.Uv(a.left);e<=d;++e)for(g=c;g<=f;++g)if(l=this.Ko(e,g))l.hk(),Ca(b,l.zc)};a.AC=function(a,b){var c=this.pp(this.JC(a),this.KC(b));if(-1===c)return!1;c=this.type.$s(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.Sb)*this.Sb+this.y;a-=Math.floor((a-this.x)/this.Tb)*this.Tb+this.x;return c.ac(a,b-d)};a.oe=function(a){var b,c,d,f,e,g;b=0;for(c=this.Kc.length;b<c;++b)for(e=this.Kc[b],d=0,f=e.length;d<f;++d)g=e[d],g.hk(),Ca(a,g.zc)};a.Id=function(){var a,b,c,d,f;
a=0;for(b=this.Kc.length;a<b;++a){f=this.Kc[a];c=0;for(d=f.length;c<d;++c){for(var e=f[c],g=void 0,l=void 0,g=0,l=e.lc.length;g<l;++g)p(e.lc[g]);R(e.lc);g=0;for(l=e.zc.length;g<l;++g)q(e.zc[g]);R(e.zc);1E3>M.length&&M.push(e)}R(f)}R(this.Kc)};a.Za=function(){this.gq();return{w:z(this.width/this.Tb),h:z(this.height/this.Sb),d:this.LA()}};a.gb=function(a){this.Hd=a.w;this.be=a.h;this.gq(!0);this.gv(a.d);this.pk=!0;this.Bn()};a.Ac=function(a){if(!(0>=this.Tb||0>=this.Sb)){this.type.fq(this.Tb,this.Sb,
this.br,this.dr,this.cr,this.er,this.rg);if(this.width!==this.hf||this.height!==this.gf)this.pk=!0,this.Bn(),this.dq(),this.hf=this.width,this.gf=this.height;a.globalAlpha=this.opacity;var b=this.u,c=b.ta,d=b.ua,f=b.Ca,b=b.Ba,e=this.x,g=this.y,l=this.rg,k;this.b.vc&&(e=Math.round(e),g=Math.round(g));var m=this.Hb*this.Tb,n=this.Ub*this.Sb,q=Math.floor((c-e)/m),m=Math.floor((f-e)/m),p=Math.floor((d-g)/n),n=Math.floor((b-g)/n),r=e%this.Tb,D=g%this.Sb;this.rg&&(D=r=0);if(0!==r||0!==D)a.save(),a.translate(r,
D),e-=r,g-=D,c-=r,d-=D,f-=r,b-=D;for(var P,M,J,E,u,A,F,I,N;q<=m;++q)for(P=p;P<=n;++P)if(M=this.Ko(q,P))for(M.hk(),J=0,E=M.lc.length;J<E;++J)u=M.lc[J],-1!==u.id&&(k=u.Ja,A=k.left+e,F=k.top+g,I=k.right+e,k=k.bottom+g,A>f||I<c||F>b||k<d||(N=this.type.Cr(u.Wn,u.Ej,u.Uk,u.Ph,this.rg),l?a.drawImage(N,A,F):(a.fillStyle=this.type.Cr(u.Wn,u.Ej,u.Uk,u.Ph,this.rg),a.fillRect(A,F,I-A,k-F))));0===r&&0===D||a.restore()}};var P=new ua(0,0,1,1);a.Vf=function(a){this.xb(a)};a.xb=function(a){if(!(0>=this.Tb||0>=this.Sb)){this.type.fq(this.Tb,
this.Sb,this.br,this.dr,this.cr,this.er,this.rg);if(this.width!==this.hf||this.height!==this.gf)this.pk=!0,this.Bn(),this.dq(),this.hf=this.width,this.gf=this.height;a.He(this.opacity);var b=this.type.Fg,c=this.u,d=c.ta,f=c.ua,e=c.Ca,c=c.Ba,g=this.x,l=this.y,k;this.b.vc&&(g=Math.round(g),l=Math.round(l));var m=this.Hb*this.Tb,n=this.Ub*this.Sb,q=Math.floor((e-g)/m),p=Math.floor((f-l)/n),n=Math.floor((c-l)/n),r,D,M,V,J,E,u,A,F,I,N,W,Z,L,fa,ba,xa;for(fa=Math.floor((d-g)/m);fa<=q;++fa)for(ba=p;ba<=n;++ba)if(xa=
this.Ko(fa,ba))for(xa.hk(),m=0,r=xa.lc.length;m<r;++m)D=xa.lc[m],-1!==D.id&&(k=D.Ja,M=k.left+g,V=k.top+l,J=k.right+g,k=k.bottom+l,M>e||J<d||V>c||k<f||(a.wc(b[D.Wn]),P.right=(J-M)/this.Tb,P.bottom=(k-V)/this.Sb,D.qs?(D.Ph&&(L=P.right,P.right=P.bottom,P.bottom=L),u=E=0,A=P.right,F=0,I=P.right,N=P.bottom,W=0,Z=P.bottom,D.Ph&&(L=W,W=A,A=L,L=Z,Z=F,F=L),D.Ej&&(L=E,E=A,A=L,L=u,u=F,F=L,L=W,W=I,I=L,L=Z,Z=N,N=L),D.Uk&&(L=E,E=W,W=L,L=u,u=Z,Z=L,L=A,A=I,I=L,L=F,F=N,N=L),a.bC(M,V,J,V,J,k,M,k,E,u,A,F,I,N,W,Z)):
a.Ld(M,V,J,V,J,k,M,k,P)))}};f.n=new function(){};f.C=new function(){};f.aa=new function(){}})();function Fc(e){this.b=e}
(function(){function e(a){c=a.x;d=a.y;k=a.z}function p(a,b,c,d){var f;f=g.length?g.pop():new r;f.init(a,b,c,d);return f}function r(){this.Jk=this.id=this.dh=this.bh=this.y=this.x=this.Rn=this.Qn=this.Sp=this.time=this.Zq=0;this.Qk=this.$n=!1}function q(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function m(){}function n(){}var f=Fc.prototype;f.S=function(a){this.qa=a;
this.b=a.b};f.S.prototype.H=function(){};f.N=function(a){this.type=a;this.b=a.b;this.touches=[];this.jq=!1};var a=f.N.prototype,b={left:0,top:0};a.wj=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,d=0,k=0,g=[];r.prototype.init=function(a,b,c,d){var f=Wa();this.Zq=this.Sp=this.time=f;this.Qn=a;this.Rn=b;this.x=a;this.y=b;this.bh=a;this.dh=b;this.pressure=this.height=this.width=0;this.id=c;this.Jk=d;this.Qk=this.$n=!1};r.prototype.update=
function(a,b,c,d,f,e){this.Sp=this.time;this.time=a;this.bh=this.x;this.dh=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.Qk&&15<=Sa(this.Qn,this.Rn,this.x,this.y)&&(this.Qk=!0)};r.prototype.yB=function(a,b){!this.$n&&500<=Wa()-this.Zq&&!this.Qk&&15>Sa(this.Qn,this.Rn,this.x,this.y)&&(this.$n=!0,a.Oe=this.Jk,a.Ui=this.id,a.Yh=b,a.b.trigger(Fc.prototype.n.wx,a),a.Te=this.x,a.Ue=this.y,a.b.trigger(Fc.prototype.n.xx,a),a.Yh=0)};var l=-1E3,M=-1E3,P=-1E4;r.prototype.fu=function(a,
b){if(!this.$n){var c=Wa();333>=c-this.Zq&&!this.Qk&&15>Sa(this.Qn,this.Rn,this.x,this.y)&&(a.Oe=this.Jk,a.Ui=this.id,a.Yh=b,666>=c-P&&25>Sa(l,M,this.x,this.y)?(a.b.trigger(Fc.prototype.n.qx,a),a.Te=this.x,a.Ue=this.y,a.b.trigger(Fc.prototype.n.Ir,a),M=l=-1E3,P=-1E4):(a.b.trigger(Fc.prototype.n.Lx,a),a.Te=this.x,a.Ue=this.y,a.b.trigger(Fc.prototype.n.Mx,a),l=this.x,M=this.y,P=c),a.Yh=0)}};a.H=function(){this.qB=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Yh=this.Ui=this.Oe=
this.Ue=this.Te=this.gs=this.es=this.ds=this.Iy=this.Hy=this.Gy=this.an=this.$m=this.Zm=0;this.GC=0!==this.A[0];var a=0<this.b.Bc?document:this.b.canvas,b=document;this.b.uc?b=a=window.Canvas:this.b.ad&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.wu(a)},!1),a.addEventListener("pointermove",function(a){c.vu(a)},!1),b.addEventListener("pointerup",function(a){c.Xm(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Xm(a,!0)},!1),this.b.canvas&&
(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.wu(a)},!1),a.addEventListener("MSPointerMove",function(a){c.vu(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Xm(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Xm(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.zu(a)},!1),a.addEventListener("touchmove",function(a){c.yu(a)},!1),b.addEventListener("touchend",function(a){c.tq(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tq(a,!0)},
!1));if(this.qB){var d=function(a){a=a.reading;c.ds=a.accelerationX;c.es=a.accelerationY;c.gs=a.accelerationZ},f=function(a){a=a.reading;c.Zm=a.yawDegrees;c.$m=a.pitchDegrees;c.an=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),k&&k.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),k&&k.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Zm=a.alpha||0;c.$m=a.beta||0;c.an=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Gy=a.accelerationIncludingGravity.x||0,c.Hy=a.accelerationIncludingGravity.y||
0,c.Iy=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.ds=a.acceleration.x||0,c.es=a.acceleration.y||0,c.gs=a.acceleration.z||0)},!1);this.GC&&!this.b.Ea&&(jQuery(document).mousemove(function(a){c.rq(a)}),jQuery(document).mousedown(function(a){c.qq(a)}),jQuery(document).mouseup(function(a){c.sq(a)}));!this.b.ki&&this.b.nd&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.BC(this)};a.vu=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.wj(a.pointerId),d=Wa();if(0<=c){var f=this.b.Ea?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-f.left,a.pageY-f.top,a.width||0,a.height||0,a.pressure||0)}}};a.wu=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.Ea?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Wa();
this.Oe=this.touches.length;this.Ui=a.pointerId;this.touches.push(p(d,c,a.pointerId,this.Oe));this.b.Ya=!0;this.b.trigger(Fc.prototype.n.Ur,this);this.b.trigger(Fc.prototype.n.Yr,this);this.Te=d;this.Ue=c;this.b.trigger(Fc.prototype.n.so,this);this.b.Ya=!1}};a.Xm=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.wj(a.pointerId);this.Oe=0<=c?this.touches[c].Jk:-1;this.Ui=0<=c?this.touches[c].id:-1;this.b.Ya=!0;this.b.trigger(Fc.prototype.n.Tr,
this);this.b.trigger(Fc.prototype.n.Xr,this);0<=c&&(b||this.touches[c].fu(this,c),100>g.length&&g.push(this.touches[c]),this.touches.splice(c,1));this.b.Ya=!1}};a.yu=function(a){a.preventDefault&&a.preventDefault();var c=Wa(),d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.wj(e.identifier),0<=g){var k=this.b.Ea?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,e.pageX-k.left,e.pageY-k.top,2*(e.QD||e.WD||e.ID||e.LD||0),2*(e.RD||e.XD||e.JD||
e.MD||0),e.CD||e.VD||e.HD||e.KD||0)}};a.zu=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.Ea?b:jQuery(this.b.canvas).offset();Wa();this.b.Ya=!0;var d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.wj(e.identifier),-1===g){g=e.pageX-c.left;var k=e.pageY-c.top;this.Oe=this.touches.length;this.Ui=e.identifier;this.touches.push(p(g,k,e.identifier,this.Oe));this.b.trigger(Fc.prototype.n.Ur,this);this.b.trigger(Fc.prototype.n.Yr,this);this.Te=g;this.Ue=
k;this.b.trigger(Fc.prototype.n.so,this)}this.b.Ya=!1};a.tq=function(a,b){a.preventDefault&&kb(a)&&a.preventDefault();this.b.Ya=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.wj(f.identifier),0<=f&&(this.Oe=this.touches[f].Jk,this.Ui=this.touches[f].id,this.b.trigger(Fc.prototype.n.Tr,this),this.b.trigger(Fc.prototype.n.Xr,this),b||this.touches[f].fu(this,f),100>g.length&&g.push(this.touches[f]),this.touches.splice(f,1));this.b.Ya=!1};a.oe=function(){return this.b.nd&&
0===this.Zm&&0!==k?90*k:this.Zm};a.Op=function(){return this.b.nd&&0===this.$m&&0!==d?90*d:this.$m};a.Bt=function(){return this.b.nd&&0===this.an&&0!==c?90*c:this.an};a.qq=function(a){q(a)||(this.zu({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.jq=!0)};a.rq=function(a){this.jq&&!q(a)&&this.yu({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.sq=function(a){a.preventDefault&&this.b.tm&&!this.b.we&&a.preventDefault();this.b.tm=!0;q(a)||(this.tq({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.jq=!1)};a.Pk=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Sp=d),c.yB(this,a)};m.prototype.Yr=function(){return!0};m.prototype.Xr=function(){return!0};m.prototype.Mw=function(){return this.touches.length};m.prototype.so=function(a){return a?this.b.Ri(a,this.Te,this.Ue,!1):!1};var v=[];m.prototype.Ww=function(a){if(!a)return!1;var b=a.ba(),c=b.Pc(),d,f,e,g,k,l;e=0;for(g=c.length;e<g;e++){var m=c[e];m.Fa();k=
0;for(l=this.touches.length;k<l;k++)if(f=this.touches[k],d=m.u.nb(f.x,f.y,!0),f=m.u.nb(f.x,f.y,!1),m.ac(d,f)){v.push(m);break}}return v.length?(b.ka=!1,Ba(b.k,v),a.yd(),R(v),!0):!1};m.prototype.Ur=function(a){a=Math.floor(a);return a===this.Oe};m.prototype.Tr=function(a){a=Math.floor(a);return a===this.Oe};m.prototype.wx=function(){return!0};m.prototype.Lx=function(){return!0};m.prototype.qx=function(){return!0};m.prototype.xx=function(a){return a?this.b.Ri(a,this.Te,this.Ue,!1):!1};m.prototype.Mx=
function(a){return a?this.b.Ri(a,this.Te,this.Ue,!1):!1};m.prototype.Ir=function(a){return a?this.b.Ri(a,this.Te,this.Ue,!1):!1};f.n=new m;f.C=new function(){};n.prototype.fl=function(a,b){var c=this.Yh;if(0>c||c>=this.touches.length)a.P(0);else{var d,f,e,g,k;ja(b)?(d=this.b.Ze(0),f=d.scale,e=d.yc,g=d.Sc,k=d.q,d.scale=1,d.yc=1,d.Sc=1,d.q=0,a.P(d.nb(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.yc=e,d.Sc=g,d.q=k):(d=ka(b)?this.b.Ze(b):this.b.yj(b))?a.P(d.nb(this.touches[c].x,this.touches[c].y,
!0)):a.P(0)}};n.prototype.gl=function(a,b){var c=this.Yh;if(0>c||c>=this.touches.length)a.P(0);else{var d,f,e,g,k;ja(b)?(d=this.b.Ze(0),f=d.scale,e=d.yc,g=d.Tc,k=d.q,d.scale=1,d.yc=1,d.Tc=1,d.q=0,a.P(d.nb(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.yc=e,d.Tc=g,d.q=k):(d=ka(b)?this.b.Ze(b):this.b.yj(b))?a.P(d.nb(this.touches[c].x,this.touches[c].y,!1)):a.P(0)}};f.aa=new n})();function Gc(e){this.b=e}
(function(){function e(){}var p=Gc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=p.N.prototype;r.H=function(){var e=this.A[0];this.Nc=this.A[1];this.gc=this.A[2];this.Ty=0!==this.A[3];this.Rq=0!==this.A[4];this.J=Math.cos(this.j.q)*e;this.L=Math.sin(this.j.q)*e;this.bh=this.j.x;this.dh=this.j.y;this.qd=this.j.q;this.Yn=0;this.enabled=0!==this.A[5]};r.Za=function(){return{acc:this.Nc,
g:this.gc,dx:this.J,dy:this.L,lx:this.bh,ly:this.dh,lka:this.qd,t:this.Yn,e:this.enabled}};r.gb=function(e){this.Nc=e.acc;this.gc=e.g;this.J=e.dx;this.L=e.dy;this.bh=e.lx;this.dh=e.ly;this.qd=e.lka;this.Yn=e.t;this.enabled=e.e};r.Ma=function(){if(this.enabled){var e=this.b.$f(this.j),m,n;this.j.q!==this.qd&&(this.Rq&&(m=Sa(0,0,this.J,this.L),this.J=Math.cos(this.j.q)*m,this.L=Math.sin(this.j.q)*m),this.qd=this.j.q);0!==this.Nc&&(m=Sa(0,0,this.J,this.L),n=0===this.J&&0===this.L?this.j.q:Ma(0,0,this.J,
this.L),m+=this.Nc*e,0>m&&(m=0),this.J=Math.cos(n)*m,this.L=Math.sin(n)*m);0!==this.gc&&(this.L+=this.gc*e);this.bh=this.j.x;this.dh=this.j.y;if(0!==this.J||0!==this.L)if(this.j.x+=this.J*e,this.j.y+=this.L*e,this.Yn+=Sa(0,0,this.J*e,this.L*e),this.Rq&&(this.j.q=Ma(0,0,this.J,this.L),this.j.F(),this.qd=this.j.q),this.j.F(),this.Ty&&(m=this.b.rb(this.j)))this.b.sf(this.j,m),m=Sa(0,0,this.J,this.L),n=this.b.Wy(this.j,this.bh,this.dh),this.J=Math.cos(n)*m,this.L=Math.sin(n)*m,this.j.x+=this.J*e,this.j.y+=
this.L*e,this.j.F(),this.Rq&&(this.qd=this.j.q=n,this.j.F()),this.b.Kd(this.j,this.J/m,this.L/m,Math.max(2.5*m*e,30))||this.b.Ru(this.j,100)}};p.n=new function(){};e.prototype.Vx=function(e){e=S(e);var m=Sa(0,0,this.J,this.L);this.J=Math.cos(e)*m;this.L=Math.sin(e)*m};e.prototype.Fh=function(e){this.enabled=1===e};p.C=new e;p.aa=new function(){}})();function Hc(e){this.b=e}
(function(){function e(){}var p=Hc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=p.N.prototype;r.H=function(){this.hs=1===this.A[0];this.uj=this.A[1];this.Yk=this.A[2];this.Wl=this.A[3];this.iz=this.A[4];this.Rb=this.hs?0:3;this.mc?this.Od.reset():this.Od=new $a;this.ih=this.j.opacity?this.j.opacity:1;this.hs&&(0===this.uj?(this.Rb=1,0===this.Yk&&(this.Rb=2)):(this.j.opacity=0,this.b.ca=
!0))};r.Za=function(){return{fit:this.uj,wt:this.Yk,fot:this.Wl,s:this.Rb,st:this.Od.Y,mo:this.ih}};r.gb=function(e){this.uj=e.fit;this.Yk=e.wt;this.Wl=e.fot;this.Rb=e.s;this.Od.reset();this.Od.Y=e.st;this.ih=e.mo};r.Ma=function(){this.Od.add(this.b.$f(this.j));0===this.Rb&&(this.j.opacity=this.Od.Y/this.uj*this.ih,this.b.ca=!0,this.j.opacity>=this.ih&&(this.j.opacity=this.ih,this.Rb=1,this.Od.reset(),this.b.trigger(Hc.prototype.n.rx,this.j)));1===this.Rb&&this.Od.Y>=this.Yk&&(this.Rb=2,this.Od.reset(),
this.b.trigger(Hc.prototype.n.Px,this.j));2===this.Rb&&0!==this.Wl&&(this.j.opacity=this.ih-this.Od.Y/this.Wl*this.ih,this.b.ca=!0,0>this.j.opacity&&(this.j.opacity=0,this.Rb=3,this.Od.reset(),this.b.trigger(Hc.prototype.n.tx,this.j),1===this.iz&&this.b.le(this.j)))};r.oe=function(){this.Rb=0;this.Od.reset();0===this.uj?(this.Rb=1,0===this.Yk&&(this.Rb=2)):(this.j.opacity=0,this.b.ca=!0)};e.prototype.tx=function(){return!0};e.prototype.rx=function(){return!0};e.prototype.Px=function(){return!0};p.n=
new e;p.C=new function(){};p.aa=new function(){}})();function Ic(e){this.b=e}
(function(){function e(){}function p(){}var r=Ic.prototype;r.S=function(e){this.behavior=e;this.b=e.b};r.S.prototype.H=function(){};r.N=function(e,n){this.type=e;this.behavior=e.behavior;this.j=n;this.b=e.b};var q=r.N.prototype;q.H=function(){this.Ne=this.Ie=this.Rb=this.Wm=this.Ym=0};q.Za=function(){return{ontime:this.Ym,offtime:this.Wm,stage:this.Rb,stagetimeleft:this.Ie,timeleft:this.Ne}};q.gb=function(e){this.Ym=e.ontime;this.Wm=e.offtime;this.Rb=e.stage;this.Ie=e.stagetimeleft;this.Ne=e.timeleft;
null===this.Ne&&(this.Ne=Infinity)};q.Ma=function(){if(!(0>=this.Ne)){var e=this.b.$f(this.j);this.Ne-=e;0>=this.Ne?(this.Ne=0,this.j.visible=!0,this.b.ca=!0,this.b.trigger(Ic.prototype.n.vx,this.j)):(this.Ie-=e,0>=this.Ie&&(0===this.Rb?(this.j.visible=!1,this.Rb=1,this.Ie+=this.Wm):(this.j.visible=!0,this.Rb=0,this.Ie+=this.Ym),this.b.ca=!0))}};e.prototype.vx=function(){return!0};r.n=new e;p.prototype.ww=function(e,n,f){this.Ym=e;this.Wm=n;this.Rb=1;this.Ie=n;this.Ne=f;this.j.visible=!1;this.b.ca=
!0};r.C=new p;r.aa=new function(){}})();function Kc(e){this.b=e}
(function(){function e(){}var p=Kc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=p.N.prototype;r.H=function(){this.Qb=null;this.jn=-1;this.mode=this.qd=this.Tn=this.Ai=this.qf=this.rk=0;var e=this;this.mc||(this.ik=function(m){e.mk(m)});this.b.ll(this.ik)};r.Za=function(){return{uid:this.Qb?this.Qb.uid:-1,pa:this.rk,pd:this.qf,msa:this.Ai,tsa:this.Tn,lka:this.qd,m:this.mode}};r.gb=
function(e){this.jn=e.uid;this.rk=e.pa;this.qf=e.pd;this.Ai=e.msa;this.Tn=e.tsa;this.qd=e.lka;this.mode=e.m};r.Td=function(){-1===this.jn?this.Qb=null:this.Qb=this.b.Pg(this.jn);this.jn=-1};r.mk=function(e){this.Qb==e&&(this.Qb=null)};r.Id=function(){this.Qb=null;this.b.Uu(this.ik)};r.Ma=function(){};r.Pk=function(){if(this.Qb){this.qd!==this.j.q&&(this.Ai=Ja(this.Ai+(this.j.q-this.qd)));var e=this.j.x,m=this.j.y;if(3===this.mode||4===this.mode){var n=Sa(this.j.x,this.j.y,this.Qb.x,this.Qb.y);if(n>
this.qf||4===this.mode&&n<this.qf)m=Ma(this.Qb.x,this.Qb.y,this.j.x,this.j.y),e=this.Qb.x+Math.cos(m)*this.qf,m=this.Qb.y+Math.sin(m)*this.qf}else e=this.Qb.x+Math.cos(this.Qb.q+this.rk)*this.qf,m=this.Qb.y+Math.sin(this.Qb.q+this.rk)*this.qf;this.qd=n=Ja(this.Ai+(this.Qb.q-this.Tn));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===e&&this.j.y===m||(this.j.x=e,this.j.y=m,this.j.F());0!==this.mode&&2!==this.mode||this.j.q===n||(this.j.q=n,this.j.F())}};p.n=new function(){};e.prototype.Sx=
function(e,m){if(e){var n=e.Xs(this.j);n&&(this.Qb=n,this.rk=Ma(n.x,n.y,this.j.x,this.j.y)-n.q,this.qf=Sa(n.x,n.y,this.j.x,this.j.y),this.qd=this.Ai=this.j.q,this.Tn=n.q,this.mode=m)}};p.C=new e;p.aa=new function(){}})();function Pc(e){this.b=e}
(function(){function e(){}function p(){}var r=Pc.prototype;r.S=function(e){this.behavior=e;this.b=e.b};r.S.prototype.H=function(){};r.N=function(e,n){this.type=e;this.behavior=e.behavior;this.j=n;this.b=e.b;this.Hk=this.Jn=this.In=this.xp=this.lj=this.rj=this.li=this.mi=this.zk=this.Uj=!1;this.Wb=null;this.Vp=-1;this.gg=this.fg=0;this.xj=!1;this.Yf=this.Vd=0;this.em=!0;this.L=this.J=0};var q=r.N.prototype;q.Nv=function(){this.ab=Math.cos(this.Wh);this.bb=Math.sin(this.Wh);this.Ee=Math.cos(this.Wh-
Math.PI/2);this.Fe=Math.sin(this.Wh-Math.PI/2);this.ab=ib(this.ab);this.bb=ib(this.bb);this.Ee=ib(this.Ee);this.Fe=ib(this.Fe);this.fp=this.gc;0>this.gc&&(this.ab*=-1,this.bb*=-1,this.gc=Math.abs(this.gc))};q.H=function(){this.jf=this.A[0];this.Nc=this.A[1];this.Nh=this.A[2];this.Rj=this.A[3];this.fp=this.gc=this.A[4];this.hh=this.A[5];this.Wo=0!==this.A[6];this.Pp=this.A[7]/1E3;this.fz=1===this.A[8];this.enabled=0!==this.A[9];this.$i=!1;this.aj=this.b.Ke(this.j);this.Wp=-1;this.wh=0;this.Wh=S(90);
this.Nv();var e=this;this.fz&&!this.b.Ea&&(jQuery(document).keydown(function(n){e.oq(n)}),jQuery(document).keyup(function(n){e.pq(n)}));this.mc||(this.ik=function(n){e.mk(n)});this.b.ll(this.ik);this.j.O.isPlatformBehavior=!0};q.Za=function(){return{ii:this.xp,lfx:this.fg,lfy:this.gg,lfo:this.Wb?this.Wb.uid:-1,am:this.Vd,en:this.enabled,fall:this.Yf,ft:this.em,dx:this.J,dy:this.L,ms:this.jf,acc:this.Nc,dec:this.Nh,js:this.Rj,g:this.gc,g1:this.fp,mf:this.hh,wof:this.$i,woj:this.aj?this.aj.uid:-1,ga:this.Wh,
edj:this.Wo,cdj:this.lj,dj:this.rj,sus:this.Pp}};q.gb=function(e){this.xp=e.ii;this.fg=e.lfx;this.gg=e.lfy;this.Vp=e.lfo;this.Vd=e.am;this.enabled=e.en;this.Yf=e.fall;this.em=e.ft;this.J=e.dx;this.L=e.dy;this.jf=e.ms;this.Nc=e.acc;this.Nh=e.dec;this.Rj=e.js;this.gc=e.g;this.fp=e.g1;this.hh=e.mf;this.$i=e.wof;this.Wp=e.woj;this.Wh=e.ga;this.Wo=e.edj;this.lj=e.cdj;this.rj=e.dj;this.Pp=e.sus;this.Hk=this.Jn=this.In=this.li=this.mi=this.zk=this.Uj=!1;this.wh=0;this.Nv()};q.Td=function(){-1===this.Vp?
this.Wb=null:this.Wb=this.b.Pg(this.Vp);-1===this.Wp?this.aj=null:this.aj=this.b.Pg(this.Wp)};q.mk=function(e){this.Wb==e&&(this.Wb=null)};q.Id=function(){this.Wb=null;this.b.Uu(this.ik)};q.oq=function(e){switch(e.which){case 38:e.preventDefault();this.mi=!0;break;case 37:e.preventDefault();this.Uj=!0;break;case 39:e.preventDefault(),this.zk=!0}};q.pq=function(e){switch(e.which){case 38:e.preventDefault();this.li=this.mi=!1;break;case 37:e.preventDefault();this.Uj=!1;break;case 39:e.preventDefault(),
this.zk=!1}};q.mg=function(){this.mi=this.zk=this.Uj=!1};q.oe=function(){return 0>this.gc?-1:1};q.pt=function(){var e=null,n=null,f,a;f=this.j.x;a=this.j.y;this.j.x+=this.ab;this.j.y+=this.bb;this.j.F();if(this.Wb&&this.b.pc(this.j,this.Wb)&&(!this.b.kr(this.Wb.type,oc)||this.Wb.O.solidEnabled))return this.j.x=f,this.j.y=a,this.j.F(),this.Wb;(e=this.b.rb(this.j))||0!==this.Yf||(n=this.b.Ke(this.j,!0));this.j.x=f;this.j.y=a;this.j.F();if(e){if(this.b.pc(this.j,e))return null;this.xj=!1;return e}if(n&&
n.length){a=e=0;for(f=n.length;e<f;e++)n[a]=n[e],this.b.pc(this.j,n[e])||a++;if(1<=a)return this.xj=!0,n[0]}return null};q.Ma=function(){};q.Nu=function(){var e=this.b.$f(this.j),n,f,a,b,c,d,k,g,l;this.mi||this.Hk||(this.li=!1);var q=this.Uj||this.In;a=this.zk||this.Jn;var p=(b=this.mi||this.Hk)&&!this.li;this.Hk=this.Jn=this.In=!1;if(this.enabled){this.xp&&(p=b=a=q=!1);b||(this.wh=0);g=this.Wb;l=!1;this.em&&((this.b.rb(this.j)||this.b.Ke(this.j))&&this.b.Kd(this.j,-this.ab,-this.bb,4,!0),this.em=
!1);!g||0!==this.L||g.y===this.gg&&g.x===this.fg||(n=g.x-this.fg,f=g.y-this.gg,this.j.x+=n,this.j.y+=f,this.j.F(),this.fg=g.x,this.gg=g.y,l=!0,this.b.rb(this.j)&&this.b.Kd(this.j,-n,-f,2.5*Math.sqrt(n*n+f*f)));var r=this.pt();if(f=this.b.rb(this.j))if(c=Math.abs(this.j.width),d=Math.abs(this.j.height),this.j.O.inputPredicted)this.b.Kd(this.j,-this.ab,-this.bb,10,!1);else if(this.b.Dq(this.j,-this.ab,-this.bb,d/8))this.b.sf(this.j,f);else if(this.b.Dq(this.j,this.Ee,this.Fe,c/2))this.b.sf(this.j,f);
else if(this.b.Dq(this.j,this.ab,this.bb,d/2))this.b.sf(this.j,f);else if(this.b.Ru(this.j,Math.max(c,d)/2))this.b.sf(this.j,f);else return;r?(this.lj=this.rj=!1,0<this.L&&(this.$i||(this.b.sn(this.j,-this.ab,-this.bb,r),this.$i=!0),this.L=0),g!=r)?(this.Wb=r,this.fg=r.x,this.gg=r.y,this.b.sf(this.j,r)):l&&(f=this.b.rb(this.j))&&(this.b.sf(this.j,f),0!==n&&(0<n?this.b.Kd(this.j,-this.Ee,-this.Fe):this.b.Kd(this.j,this.Ee,this.Fe)),this.b.Kd(this.j,-this.ab,-this.bb)):b||(this.lj=!0);if(r&&p||!r&&
this.Wo&&b&&this.lj&&!this.rj)g=this.j.x,l=this.j.y,this.j.x-=this.ab,this.j.y-=this.bb,this.j.F(),this.b.rb(this.j)?p=!1:(this.wh=this.Pp,this.b.trigger(Pc.prototype.n.Mr,this.j),this.Vd=2,this.L=-this.Rj,p=!0,r?this.li=!0:this.rj=!0),this.j.x=g,this.j.y=l,this.j.F();r||(b&&0<this.wh?(this.L=-this.Rj,this.wh-=e):(this.Wb=null,this.L+=this.gc*e,this.L>this.hh&&(this.L=this.hh)),p&&(this.li=!0));this.$i=!!r;q==a&&(0>this.J?(this.J+=this.Nh*e,0<this.J&&(this.J=0)):0<this.J&&(this.J-=this.Nh*e,0>this.J&&
(this.J=0)));q&&!a&&(this.J=0<this.J?this.J-(this.Nc+this.Nh)*e:this.J-this.Nc*e);a&&!q&&(this.J=0>this.J?this.J+(this.Nc+this.Nh)*e:this.J+this.Nc*e);this.J>this.jf?this.J=this.jf:this.J<-this.jf&&(this.J=-this.jf);q=!1;0!==this.J&&(g=this.j.x,l=this.j.y,n=this.J*e*this.Ee,f=this.J*e*this.Fe,this.j.x+=this.Ee*(1<this.J?1:-1)-this.ab,this.j.y+=this.Fe*(1<this.J?1:-1)-this.bb,this.j.F(),b=!1,c=this.b.rb(this.j),this.j.x=g+n,this.j.y=l+f,this.j.F(),a=this.b.rb(this.j),!a&&r&&(a=this.b.Ke(this.j))&&
(this.j.x=g,this.j.y=l,this.j.F(),this.b.pc(this.j,a)?(a=null,b=!1):b=!0,this.j.x=g+n,this.j.y=l+f,this.j.F()),a?(n=Math.abs(this.J*e)+2,c||!this.b.Kd(this.j,-this.ab,-this.bb,n,b,a))?(this.b.sf(this.j,a),n=Math.max(Math.abs(this.J*e*2.5),30),this.b.Kd(this.j,this.Ee*(0>this.J?1:-1),this.Fe*(0>this.J?1:-1),n,!1)?!r||b||this.xj||(g=this.j.x,l=this.j.y,this.j.x+=this.ab,this.j.y+=this.bb,this.b.rb(this.j)?this.b.Kd(this.j,-this.ab,-this.bb,3,!1)||(this.j.x=g,this.j.y=l,this.j.F()):(this.j.x=g,this.j.y=
l,this.j.F())):(this.j.x=g,this.j.y=l,this.j.F()),b||(this.J=0)):!c&&!p&&Math.abs(this.L)<Math.abs(this.Rj/4)&&(this.L=0,r||(q=!0)):(g=this.pt(),r&&!g?(f=Math.ceil(Math.abs(this.J*e))+2,g=this.j.x,l=this.j.y,this.j.x+=this.ab*f,this.j.y+=this.bb*f,this.j.F(),this.b.rb(this.j)||this.b.Ke(this.j)?this.b.Kd(this.j,-this.ab,-this.bb,f+2,!0):(this.j.x=g,this.j.y=l,this.j.F())):g&&(!r&&this.xj&&(this.Wb=g,this.fg=g.x,this.gg=g.y,this.L=0,q=!0),0===this.L&&this.b.sn(this.j,-this.ab,-this.bb,g))));if(0!==
this.L){g=this.j.x;l=this.j.y;this.j.x+=this.L*e*this.ab;this.j.y+=this.L*e*this.bb;n=this.j.x;a=this.j.y;this.j.F();f=this.b.rb(this.j);b=!1;if(!f&&0<this.L&&!r){if((b=0<this.Yf?null:this.b.Ke(this.j,!0))&&b.length){if(this.aj){this.j.x=g;this.j.y=l;this.j.F();k=c=0;for(d=b.length;c<d;c++)b[k]=b[c],this.b.pc(this.j,b[c])||k++;b.length=k;this.j.x=n;this.j.y=a;this.j.F()}1<=b.length&&(f=b[0])}b=!!f}f&&(this.b.sf(this.j,f),this.wh=0,n=b?Math.abs(this.L*e*2.5+10):Math.max(Math.abs(this.L*e*2.5+10),30),
this.b.Kd(this.j,this.ab*(0>this.L?1:-1),this.bb*(0>this.L?1:-1),n,b,f)?(this.Wb=f,this.fg=f.x,this.gg=f.y,(this.xj=b)&&(q=!0),this.L=0):(this.j.x=g,this.j.y=l,this.j.F(),this.$i=!0,b||(this.L=0)))}3!==this.Vd&&0<this.L&&!r&&(this.b.trigger(Pc.prototype.n.ux,this.j),this.Vd=3);(r||q)&&0<=this.L&&(3===this.Vd||q||p&&0===this.L?(this.b.trigger(Pc.prototype.n.Qr,this.j),this.Vd=0===this.J&&0===this.L?0:1):(0!==this.Vd&&0===this.J&&0===this.L&&(this.b.trigger(Pc.prototype.n.Kx,this.j),this.Vd=0),1===
this.Vd||0===this.J&&0===this.L||p||(this.b.trigger(Pc.prototype.n.Cx,this.j),this.Vd=1)));0<this.Yf&&this.Yf--;this.aj=this.b.Ke(this.j)}};e.prototype.Qw=function(){return 0!==this.J||0!==this.L};e.prototype.Rw=function(){if(0!==this.L)return!1;var e=null,n=null,f,a;f=this.j.x;a=this.j.y;this.j.x+=this.ab;this.j.y+=this.bb;this.j.F();(e=this.b.rb(this.j))||0!==this.Yf||(n=this.b.Ke(this.j,!0));this.j.x=f;this.j.y=a;this.j.F();if(e)return!this.b.pc(this.j,e);if(n&&n.length){a=e=0;for(f=n.length;e<
f;e++)n[a]=n[e],this.b.pc(this.j,n[e])||a++;if(1<=a)return!0}return!1};e.prototype.Iw=function(e){var n=!1,f=this.j.x,a=this.j.y;0===e?(this.j.x-=2*this.Ee,this.j.y-=2*this.Fe):(this.j.x+=2*this.Ee,this.j.y+=2*this.Fe);this.j.F();if(!this.b.rb(this.j))return this.j.x=f,this.j.y=a,this.j.F(),!1;this.j.x-=3*this.ab;this.j.y-=3*this.bb;this.j.F();n=this.b.rb(this.j);this.j.x=f;this.j.y=a;this.j.F();return n};e.prototype.Kw=function(){return 0<this.L};e.prototype.Mr=function(){return!0};e.prototype.ux=
function(){return!0};e.prototype.Kx=function(){return!0};e.prototype.Cx=function(){return!0};e.prototype.Qr=function(){return!0};r.n=new e;p.prototype.gy=function(e){this.jf=e;0>this.jf&&(this.jf=0)};p.prototype.fy=function(e){this.hh=e;0>this.hh&&(this.hh=0)};p.prototype.vy=function(e){switch(e){case 0:this.In=!0;break;case 1:this.Jn=!0;break;case 2:this.Hk=!0}};p.prototype.qy=function(e){this.J=e};p.prototype.ry=function(e){this.L=e};p.prototype.Fh=function(e){this.enabled!==(1===e)&&(this.enabled=
1===e,this.enabled||(this.Wb=null))};p.prototype.vw=function(){var e=this.j.x,n=this.j.y;this.j.x+=this.ab;this.j.y+=this.bb;this.j.F();var f=this.b.Ke(this.j,!1);this.j.x=e;this.j.y=n;this.j.F();f&&(this.Yf=3,this.Wb=null)};r.C=new p;r.aa=new function(){}})();function Qc(e){this.b=e}
(function(){function e(){}var p=Qc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,a){this.type=e;this.behavior=e.behavior;this.j=a;this.b=e.b;this.Mb=0};var r=p.N.prototype,q=2*Math.PI,m=Math.PI/2,n=3*Math.PI/2;r.H=function(){this.$a=1===this.A[0];this.xi=this.A[1];this.ur=this.A[2];this.pf=this.A[3];this.pf+=Math.random()*this.A[4];0===this.pf?this.Mb=0:(this.Mb=this.A[5]/this.pf*q,this.Mb+=Math.random()*this.A[6]/this.pf*q);this.Rc=this.A[7];this.Rc+=
Math.random()*this.A[8];this.xk=this.Ug=this.wa=0;5===this.xi&&(this.Rc=S(this.Rc));this.init()};r.Za=function(){return{i:this.Mb,a:this.$a,mv:this.xi,w:this.ur,p:this.pf,mag:this.Rc,iv:this.wa,iv2:this.Ug,r:this.xk,lkv:this.cd,lkv2:this.Sj}};r.gb=function(e){this.Mb=e.i;this.$a=e.a;this.xi=e.mv;this.ur=e.w;this.pf=e.p;this.Rc=e.mag;this.wa=e.iv;this.Ug=e.iv2||0;this.xk=e.r;this.cd=e.lkv;this.Sj=e.lkv2||0};r.init=function(){switch(this.xi){case 0:this.wa=this.j.x;break;case 1:this.wa=this.j.y;break;
case 2:this.wa=this.j.width;this.xk=this.j.height/this.j.width;break;case 3:this.wa=this.j.width;break;case 4:this.wa=this.j.height;break;case 5:this.wa=this.j.q;break;case 6:this.wa=this.j.opacity;break;case 7:this.wa=0;break;case 8:this.wa=this.j.x,this.Ug=this.j.y}this.cd=this.wa;this.Sj=this.Ug};r.Df=function(e){e=e%q;switch(this.ur){case 0:return Math.sin(e);case 1:return e<=m?e/m:e<=n?1-2*(e-m)/Math.PI:(e-n)/m-1;case 2:return 2*e/q-1;case 3:return-2*e/q+1;case 4:return e<Math.PI?-1:1}return 0};
r.Ma=function(){var e=this.b.$f(this.j);this.$a&&0!==e&&(0===this.pf?this.Mb=0:(this.Mb+=e/this.pf*q,this.Mb=this.Mb%q),this.CC())};r.CC=function(){switch(this.xi){case 0:this.j.x!==this.cd&&(this.wa+=this.j.x-this.cd);this.j.x=this.wa+this.Df(this.Mb)*this.Rc;this.cd=this.j.x;break;case 1:this.j.y!==this.cd&&(this.wa+=this.j.y-this.cd);this.j.y=this.wa+this.Df(this.Mb)*this.Rc;this.cd=this.j.y;break;case 2:this.j.width=this.wa+this.Df(this.Mb)*this.Rc;this.j.height=this.j.width*this.xk;break;case 3:this.j.width=
this.wa+this.Df(this.Mb)*this.Rc;break;case 4:this.j.height=this.wa+this.Df(this.Mb)*this.Rc;break;case 5:this.j.q!==this.cd&&(this.wa=Ja(this.wa+(this.j.q-this.cd)));this.j.q=Ja(this.wa+this.Df(this.Mb)*this.Rc);this.cd=this.j.q;break;case 6:this.j.opacity=this.wa+this.Df(this.Mb)*this.Rc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.cd&&(this.wa+=this.j.x-this.cd),this.j.y!==this.Sj&&(this.Ug+=this.j.y-this.Sj),this.j.x=this.wa+Math.cos(this.j.q)*
this.Df(this.Mb)*this.Rc,this.j.y=this.Ug+Math.sin(this.j.q)*this.Df(this.Mb)*this.Rc,this.cd=this.j.x,this.Sj=this.j.y}this.j.F()};r.xu=function(e,a){switch(this.xi){case 2:this.wa*=a.width/e.width;this.xk=a.height/a.width;break;case 3:this.wa*=a.width/e.width;break;case 4:this.wa*=a.height/e.height}};p.n=new function(){};e.prototype.Ux=function(e){this.$a=1===e};e.prototype.Ay=function(){this.init()};p.C=new e;p.aa=new function(){}})();function Rc(e){this.b=e}
(function(){var e=Rc.prototype;e.S=function(e){this.behavior=e;this.b=e.b};e.S.prototype.H=function(){};e.N=function(e,r){this.type=e;this.behavior=e.behavior;this.j=r;this.b=e.b};e=e.N.prototype;e.H=function(){};e.Ma=function(){this.j.Fa();var e=this.j.Pa,r=this.j.u.Ab;(0>e.right||0>e.bottom||e.left>r.width||e.top>r.height)&&this.b.le(this.j)}})();function pc(e){this.b=e}
(function(){function e(){}var p=pc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=p.N.prototype;r.H=function(){this.j.O.jumpthruEnabled=0!==this.A[0]};r.Ma=function(){};p.n=new function(){};e.prototype.Fh=function(e){this.j.O.jumpthruEnabled=!!e};p.C=new e})();function Tc(e){this.b=e;this.Hn=this.Gk=this.uh=this.Gn=0}
(function(){function e(){}var p=Tc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=p.N.prototype;r.H=function(){this.enabled=0!==this.A[0]};r.Za=function(){return{smg:this.behavior.Gn,ss:this.behavior.uh,se:this.behavior.Gk,smd:this.behavior.Hn}};r.gb=function(e){this.behavior.Gn=e.smg;this.behavior.uh=e.ss;this.behavior.Gk=e.se;this.behavior.Hn=e.smd};r.Ma=function(){};r.Pk=function(){if(this.enabled){var e=
this.behavior.Sm.Bf(),m=0,n=0,f,a,b,c=0;f=0;for(a=e.length;f<a;f++){a:{b=e[f];for(var d=void 0,k=void 0,g=void 0,d=0,k=b.X.length;d<k;++d)if(g=b.X[d],g.behavior instanceof Tc){b=g;break a}b=null}b&&b.enabled&&(m+=e[f].x,n+=e[f].y,++c)}e=this.j.u.Ab;a=this.b.zb.Y;b=f=0;a>=this.behavior.uh&&a<this.behavior.Gk&&(f=this.behavior.Gn*Math.min(this.b.yh,1),0===this.behavior.Hn&&(f*=1-(a-this.behavior.uh)/(this.behavior.Gk-this.behavior.uh)),a=Math.random()*Math.PI*2,b=Math.random()*f,f=Math.cos(a)*b,b*=
Math.sin(a));e.Pq(m/c+f);e.Qq(n/c+b)}};e.prototype.uy=function(e,m,n){this.behavior.Gn=e;this.behavior.uh=this.b.zb.Y;this.behavior.Gk=this.behavior.uh+m;this.behavior.Hn=n};e.prototype.Fh=function(e){this.enabled=0!==e};p.C=new e})();function oc(e){this.b=e}
(function(){function e(){}var p=oc.prototype;p.S=function(e){this.behavior=e;this.b=e.b};p.S.prototype.H=function(){};p.N=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=p.N.prototype;r.H=function(){this.j.O.solidEnabled=0!==this.A[0]};r.Ma=function(){};p.n=new function(){};e.prototype.Fh=function(e){this.j.O.solidEnabled=!!e};p.C=new e})();
function nc(){return[sc,rc,zc,tc,qc,xc,yc,Ac,Cc,Y,Ec,Bc,Dc,Fc,Gc,oc,Kc,Rc,Pc,pc,Qc,Hc,Tc,Ic,X.prototype.n.Rr,Kc.prototype.C.Sx,X.prototype.n.Lw,Y.prototype.n.iw,Y.prototype.C.yy,X.prototype.aa.Wf,Y.prototype.C.cy,Y.prototype.n.nx,Pc.prototype.n.Rw,Y.prototype.n.Fw,Pc.prototype.n.Kw,Tc.prototype.C.uy,Pc.prototype.C.ry,qc.prototype.C.CallFunction,Y.prototype.n.Hw,Y.prototype.C.Zx,Y.prototype.C.$x,Y.prototype.C.Wx,Y.prototype.C.Zr,Y.prototype.aa.Xv,Y.prototype.n.Ow,Pc.prototype.C.qy,Pc.prototype.n.Qw,
Y.prototype.n.Uw,X.prototype.n.zy,Y.prototype.C.hy,Pc.prototype.C.vy,Y.prototype.n.Tw,X.prototype.n.gw,Y.prototype.aa.fl,X.prototype.n.Br,X.prototype.n.xw,Y.prototype.n.Xw,X.prototype.n.uw,Dc.prototype.C.$r,Pc.prototype.C.gy,Y.prototype.n.Dr,Pc.prototype.n.Iw,X.prototype.C.By,X.prototype.C.by,Y.prototype.C.ky,Fc.prototype.n.Ww,Fc.prototype.n.so,tc.prototype.n.Nw,tc.prototype.n.Nr,Pc.prototype.C.fy,qc.prototype.n.dl,qc.prototype.n.jw,qc.prototype.aa.Rx,X.prototype.C.pw,Y.prototype.aa.gl,Pc.prototype.C.vw,
Pc.prototype.n.Mr,Y.prototype.aa.Dw,Y.prototype.aa.Ew,rc.prototype.C.Play,Y.prototype.C.rw,Y.prototype.n.hw,Pc.prototype.n.Qr,X.prototype.n.sw,zc.prototype.C.Zr,X.prototype.aa.uB,Qc.prototype.C.Ay,Qc.prototype.C.Ux,Pc.prototype.C.Fh,Y.prototype.C.Yx,zc.prototype.C.ny,Y.prototype.C.wo,Y.prototype.C.my,Ac.prototype.C.ay,Gc.prototype.C.Vx,Dc.prototype.n.mw,Dc.prototype.C.ty,yc.prototype.n.qo,X.prototype.C.oy,Ac.prototype.C.vo,xc.prototype.C.ey,xc.prototype.C.bw,xc.prototype.n.Jr,xc.prototype.C.yw,xc.prototype.n.Lr,
xc.prototype.n.Kr,xc.prototype.aa.Yw,X.prototype.n.kw,yc.prototype.n.Sw,X.prototype.C.zw,sc.prototype.C.Bw,Ic.prototype.C.ww,X.prototype.C.Aw,Y.prototype.aa.Zv,Fc.prototype.n.Mw,Y.prototype.C.jy,Fc.prototype.aa.fl,Fc.prototype.aa.gl,sc.prototype.C.fw,Fc.prototype.n.Ir,Y.prototype.n.lw,Y.prototype.aa.Cy,Y.prototype.aa.Cw,X.prototype.n.Pw,X.prototype.C.Tx,Y.prototype.n.Hr,X.prototype.C.Wv,X.prototype.C.ax,Y.prototype.aa.ow,Y.prototype.C.wy,Ac.prototype.C.wo,Y.prototype.n.Er,Y.prototype.C.Xx,rc.prototype.C.iy,
rc.prototype.n.Vw,X.prototype.n.po]};