-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc2runtime.js
More file actions
627 lines (627 loc) · 301 KB
/
c2runtime.js
File metadata and controls
627 lines (627 loc) · 301 KB
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
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var ca,da,ea,fa,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ua,x,va,wa,xa,ya,Aa,Ba,Ca,Da,Ea,Fa,Ga,I,Ha,Ia,Ja,La,Ma,J,Na,Oa,Pa,Sa,Ta,Ua,Va,Wa,Xa,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,d,b,f){this.set(a,d,b,f)}function p(){this.ec=this.cc=this.hc=this.gc=this.vc=this.uc=this.xb=this.wb=0}function n(a,d,b,f){a<d?b<f?(l=a<b?a:b,F=d>f?d:f):(l=a<f?a:f,F=d>b?d:b):b<f?(l=d<b?d:b,F=a>f?a:f):(l=d<f?d:f,F=a>b?a:b)}function k(){this.items=this.ub=null;this.Gk=0;q&&(this.ub=new Set);this.Dj=[];this.ug=!0}function e(a){D[aa++]=a}function t(){this.ea=this.No=this.y=this.Gp=0}function b(a){this.Xa=[];this.Am=this.Cm=this.Dm=this.Bm=0;this.Il(a)}function a(a,d){this.Jb=
a;this.Sb=d;this.cells={}}function r(a,d){this.Jb=a;this.Sb=d;this.cells={}}function c(a,d,b){var f;return M.length?(f=M.pop(),f.wq=a,f.x=d,f.y=b,f):new da(a,d,b)}function d(a,d,b){this.wq=a;this.x=d;this.y=b;this.Xb=new ea}function h(a,d,b){var f;return B.length?(f=B.pop(),f.wq=a,f.x=d,f.y=b,f):new fa(a,d,b)}function u(a,d,b){this.wq=a;this.x=d;this.y=b;this.Xb=[];this.Si=!0;this.lf=new ea;this.Pj=!1}function f(a,d){return a.Te-d.Te}ja=function(a){window.console&&window.console.log&&window.console.log(a)};
ka=function(a){window.console&&window.console.error&&window.console.error(a)};ca=function(a){return a};la=function(a){return"undefined"===typeof a};ma=function(a){return"number"===typeof a};na=function(a){return"string"===typeof a};oa=function(a){return 0<a&&0===(a-1&a)};pa=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};qa=function(a){return 0>a?-a:a};ra=function(a,d){return a>d?a:d};sa=function(a,d){return a<d?a:d};ua=Math.PI;x=function(a){return 0<=a?a|0:(a|0)-1};va=function(a){var d=
a|0;return d===a?d:d+1};wa=function(a,d,b,f,h,r,m,c){var q,A,w,l;a<b?(A=a,q=b):(A=b,q=a);h<m?(l=h,w=m):(l=m,w=h);if(q<l||A>w)return!1;d<f?(A=d,q=f):(A=f,q=d);r<c?(l=r,w=c):(l=c,w=r);if(q<l||A>w)return!1;q=h-a+m-b;A=r-d+c-f;a=b-a;d=f-d;h=m-h;r=c-r;c=qa(d*h-r*a);return qa(h*A-r*q)>c?!1:qa(a*A-d*q)<=c};g.prototype.set=function(a,d,b,f){this.left=a;this.top=d;this.right=b;this.bottom=f};g.prototype.ri=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=
function(){return this.right-this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};g.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)};g.prototype.Uu=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.Vu=
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)};g.prototype.Tb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};g.prototype.ak=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};xa=g;p.prototype.Yg=function(a){this.wb=a.left;this.xb=a.top;this.uc=a.right;this.vc=a.top;this.gc=a.right;this.hc=a.bottom;this.cc=a.left;this.ec=a.bottom};p.prototype.Ow=function(a,
d){if(0===d)this.Yg(a);else{var b=Math.sin(d),f=Math.cos(d),h=a.left*b,r=a.top*b,m=a.right*b,b=a.bottom*b,c=a.left*f,q=a.top*f,A=a.right*f,f=a.bottom*f;this.wb=c-r;this.xb=q+h;this.uc=A-r;this.vc=q+m;this.gc=A-b;this.hc=f+m;this.cc=c-b;this.ec=f+h}};p.prototype.offset=function(a,d){this.wb+=a;this.xb+=d;this.uc+=a;this.vc+=d;this.gc+=a;this.hc+=d;this.cc+=a;this.ec+=d;return this};var l=0,F=0;p.prototype.Ut=function(a){n(this.wb,this.uc,this.gc,this.cc);a.left=l;a.right=F;n(this.xb,this.vc,this.hc,
this.ec);a.top=l;a.bottom=F};p.prototype.Tb=function(a,d){var b=this.wb,f=this.xb,h=this.uc-b,r=this.vc-f,m=this.gc-b,c=this.hc-f,q=a-b,A=d-f,w=h*h+r*r,l=h*m+r*c,r=h*q+r*A,u=m*m+c*c,e=m*q+c*A,g=1/(w*u-l*l),h=(u*r-l*e)*g,w=(w*e-l*r)*g;if(0<=h&&0<w&&1>h+w)return!0;h=this.cc-b;r=this.ec-f;w=h*h+r*r;l=h*m+r*c;r=h*q+r*A;g=1/(w*u-l*l);h=(u*r-l*e)*g;w=(w*e-l*r)*g;return 0<=h&&0<w&&1>h+w};p.prototype.rg=function(a,d){if(d)switch(a){case 0:return this.wb;case 1:return this.uc;case 2:return this.gc;case 3:return this.cc;
case 4:return this.wb;default:return this.wb}else switch(a){case 0:return this.xb;case 1:return this.vc;case 2:return this.hc;case 3:return this.ec;case 4:return this.xb;default:return this.xb}};p.prototype.Mv=function(){return(this.wb+this.uc+this.gc+this.cc)/4};p.prototype.Nv=function(){return(this.xb+this.vc+this.hc+this.ec)/4};p.prototype.Gq=function(a){var d=a.Mv(),b=a.Nv();if(this.Tb(d,b))return!0;d=this.Mv();b=this.Nv();if(a.Tb(d,b))return!0;var f,h,r,m,c,q,A,w;for(A=0;4>A;A++)for(w=0;4>w;w++)if(d=
this.rg(A,!0),b=this.rg(A,!1),f=this.rg(A+1,!0),h=this.rg(A+1,!1),r=a.rg(w,!0),m=a.rg(w,!1),c=a.rg(w+1,!0),q=a.rg(w+1,!1),wa(d,b,f,h,r,m,c,q))return!0;return!1};ya=p;Aa=function(a,d,b){return Math.max(Math.min(a,255),0)|Math.max(Math.min(d,255),0)<<8|Math.max(Math.min(b,255),0)<<16};Ba=function(a){return a&255};Ca=function(a){return(a&65280)>>8};Da=function(a){return(a&16711680)>>16};Ea=function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);return a};Fa=function(a,d){var b,f;d=x(d);if(!(0>
d||d>=a.length)){b=d;for(f=a.length-1;b<f;b++)a[b]=a[b+1];Ga(a,f)}};Ga=function(a,d){a.length=d};I=function(a){Ga(a,0)};Ha=function(a,d){I(a);var b,f;b=0;for(f=d.length;b<f;++b)a[b]=d[b]};Ia=function(a,d){a.push.apply(a,d)};Ja=function(a,d){var b,f;b=0;for(f=a.length;b<f;++b)if(a[b]===d)return b;return-1};La=function(a,d){var b=Ja(a,d);-1!==b&&Fa(a,b)};Ma=function(a,d,b){return a<d?d:a>b?b:a};J=function(a){return a/(180/ua)};Na=function(a){return 180/ua*a};Oa=function(a){a%=360;0>a&&(a+=360);return a};
Pa=function(a){a%=2*ua;0>a&&(a+=2*ua);return a};Sa=function(a){return Oa(Na(a))};Ta=function(a){return Pa(J(a))};Ua=function(a,d,b,f){return Math.atan2(f-d,b-a)};Va=function(a,d){if(a===d)return 0;var b=Math.sin(a),f=Math.cos(a),h=Math.sin(d),r=Math.cos(d),b=b*h+f*r;return 1<=b?0:-1>=b?ua:Math.acos(b)};Wa=function(a,d,b){var f=Math.sin(a),h=Math.cos(a),r=Math.sin(d),m=Math.cos(d);return Math.acos(f*r+h*m)>b?0<h*r-f*m?Pa(a+b):Pa(a-b):Pa(d)};Xa=function(a,d){var b=Math.sin(a),f=Math.cos(a),h=Math.sin(d),
r=Math.cos(d);return 0>=f*h-b*r};$a=function(a,d,b,f,h,r){if(0===b)return r?a:d;var m=Math.sin(b);b=Math.cos(b);a-=f;d-=h;var c=a*m;a=a*b-d*m;d=d*b+c;return r?a+f:d+h};ab=function(a,d,b,f){a=b-a;d=f-d;return Math.sqrt(a*a+d*d)};bb=function(a,d){return!a!==!d};cb=function(a,d,b){return a===d?0:(b-a)/(d-a)};db=function(a,d,b){var f=Va(a,d);return Xa(d,a)?a+f*b:a-f*b};eb=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};fb=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};
var z=+new Date;gb=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()-z};var m=!1,v=m=!1,E=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),
E=window.c2ejecta);var q=!m&&!E&&!v&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(a){return this.If()?!1:q?this.ub.has(a):this.items&&this.items.hasOwnProperty(a)};k.prototype.add=function(a){if(q)this.ub.has(a)||(this.ub.add(a),this.ug=!1);else{var d=a.toString(),b=this.items;b?b.hasOwnProperty(d)||(b[d]=a,this.Gk++,this.ug=!1):(this.items={},this.items[d]=a,this.Gk=1,this.ug=!1)}};k.prototype.remove=function(a){if(!this.If())if(q)this.ub.has(a)&&
(this.ub["delete"](a),this.ug=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Gk--,this.ug=!1)}};k.prototype.clear=function(){this.If()||(q?this.ub.clear():(this.items=null,this.Gk=0),I(this.Dj),this.ug=!0)};k.prototype.If=function(){return 0===this.count()};k.prototype.count=function(){return q?this.ub.size:this.Gk};var D=null,aa=0;k.prototype.TE=function(){if(!this.ug){if(q)I(this.Dj),D=this.Dj,aa=0,this.ub.forEach(e),D=null,aa=0;else{var a=this.Dj;
I(a);var d,b=0,f=this.items;if(f)for(d in f)f.hasOwnProperty(d)&&(a[b++]=f[d])}this.ug=!0}};k.prototype.fe=function(){this.TE();return this.Dj};ea=k;new ea;hb=function(a,d){q?ib(a,d.ub):jb(a,d.fe())};ib=function(a,d){var b,f,h,r;f=b=0;for(h=a.length;b<h;++b)r=a[b],d.has(r)||(a[f++]=r);Ga(a,f)};jb=function(a,d){var b,f,h,r;f=b=0;for(h=a.length;b<h;++b)r=a[b],-1===Ja(d,r)&&(a[f++]=r);Ga(a,f)};t.prototype.add=function(a){this.y=a-this.Gp;this.No=this.ea+this.y;this.Gp=this.No-this.ea-this.y;this.ea=
this.No};t.prototype.reset=function(){this.ea=this.No=this.y=this.Gp=0};kb=t;lb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Il=function(a){this.vw=a;this.nd=a.length/2;this.Xa.length=a.length;this.Gm=this.Hm=-1;this.Xt=0};b.prototype.Hh=function(){return!this.vw.length};b.prototype.na=function(){for(var a=this.Xa,d=a[0],b=d,f=a[1],h=f,r,m,c=1,q=this.nd;c<q;++c)m=2*c,r=a[m],m=a[m+1],r<d&&(d=r),r>b&&(b=r),m<f&&(f=m),m>h&&(h=m);this.Bm=d;this.Cm=b;this.Dm=f;this.Am=h};
b.prototype.Yg=function(a,d,b){this.Xa.length=8;this.nd=4;var f=this.Xa;f[0]=a.left-d;f[1]=a.top-b;f[2]=a.right-d;f[3]=a.top-b;f[4]=a.right-d;f[5]=a.bottom-b;f[6]=a.left-d;f[7]=a.bottom-b;this.Hm=a.right-a.left;this.Gm=a.bottom-a.top;this.na()};b.prototype.ci=function(a,d,b,f,h){this.Xa.length=8;this.nd=4;var r=this.Xa;r[0]=a.wb-d;r[1]=a.xb-b;r[2]=a.uc-d;r[3]=a.vc-b;r[4]=a.gc-d;r[5]=a.hc-b;r[6]=a.cc-d;r[7]=a.ec-b;this.Hm=f;this.Gm=h;this.na()};b.prototype.Nw=function(a){this.nd=a.nd;Ha(this.Xa,a.Xa);
this.Bm=a.Bm;this.Dm=a.Dm;this.Cm=a.Cm;this.Am=a.Am};b.prototype.tg=function(a,d,b){if(this.Hm!==a||this.Gm!==d||this.Xt!==b){this.Hm=a;this.Gm=d;this.Xt=b;var f,h,r,m,c,q=0,A=1,w=this.vw,l=this.Xa;0!==b&&(q=Math.sin(b),A=Math.cos(b));b=0;for(r=this.nd;b<r;b++)f=2*b,h=f+1,m=w[f]*a,c=w[h]*d,l[f]=m*A-c*q,l[h]=c*A+m*q;this.na()}};b.prototype.Tb=function(a,d){var b=this.Xa;if(a===b[0]&&d===b[1])return!0;var f,h,r,m=this.nd,c=this.Bm-110,q=this.Dm-101,A=this.Cm+131,w=this.Am+120,l,u,e=0,g=0;for(f=0;f<
m;f++)h=2*f,r=(f+1)%m*2,l=b[h],h=b[h+1],u=b[r],r=b[r+1],wa(c,q,a,d,l,h,u,r)&&e++,wa(A,w,a,d,l,h,u,r)&&g++;return 1===e%2||1===g%2};b.prototype.Dh=function(a,d,b){var f=a.Xa,h=this.Xa;if(this.Tb(f[0]+d,f[1]+b)||a.Tb(h[0]-d,h[1]-b))return!0;var r,m,c,q,A,w,l,u,e,g,D,v;r=0;for(q=this.nd;r<q;r++)for(m=2*r,c=(r+1)%q*2,u=h[m],m=h[m+1],e=h[c],g=h[c+1],c=0,l=a.nd;c<l;c++)if(A=2*c,w=(c+1)%l*2,D=f[A]+d,A=f[A+1]+b,v=f[w]+d,w=f[w+1]+b,wa(u,m,e,g,D,A,v,w))return!0;return!1};b.prototype.wD=function(a){var d,b,
f;d=0;for(b=this.nd;d<b;++d)f=2*d,this.Xa[f]=2*a-this.Xa[f]};b.prototype.hC=function(a){var d,b,f;d=0;for(b=this.nd;d<b;++d)f=2*d+1,this.Xa[f]=2*a-this.Xa[f]};b.prototype.XA=function(){var a,d,b,f,h;a=0;for(d=this.nd;a<d;++a)b=2*a,f=b+1,h=this.Xa[b],this.Xa[b]=this.Xa[f],this.Xa[f]=h};mb=b;a.prototype.Dg=function(a,d,b){var f;f=this.cells[a];return f?(f=f[d])?f:b?(f=c(this,a,d),this.cells[a][d]=f):null:b?(f=c(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};a.prototype.Oc=function(a){return x(a/
this.Jb)};a.prototype.Pc=function(a){return x(a/this.Sb)};a.prototype.update=function(a,d,b){var f,h,r,m,c;if(d)for(f=d.left,h=d.right;f<=h;++f)for(r=d.top,m=d.bottom;r<=m;++r)if(!b||!b.Tb(f,r))if(c=this.Dg(f,r,!1))c.remove(a),c.If()&&(c.Xb.clear(),1E3>M.length&&M.push(c),this.cells[f][r]=null);if(b)for(f=b.left,h=b.right;f<=h;++f)for(r=b.top,m=b.bottom;r<=m;++r)d&&d.Tb(f,r)||this.Dg(f,r,!0).Dq(a)};a.prototype.ro=function(a,d){var b,f,h,r,m,c;b=this.Oc(a.left);h=this.Pc(a.top);f=this.Oc(a.right);
for(m=this.Pc(a.bottom);b<=f;++b)for(r=h;r<=m;++r)(c=this.Dg(b,r,!1))&&c.dump(d)};pb=a;r.prototype.Dg=function(a,d,b){var f;f=this.cells[a];return f?(f=f[d])?f:b?(f=h(this,a,d),this.cells[a][d]=f):null:b?(f=h(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};r.prototype.Oc=function(a){return x(a/this.Jb)};r.prototype.Pc=function(a){return x(a/this.Sb)};r.prototype.update=function(a,d,b){var f,h,r,m,c;if(d)for(f=d.left,h=d.right;f<=h;++f)for(r=d.top,m=d.bottom;r<=m;++r)if(!b||!b.Tb(f,r))if(c=this.Dg(f,
r,!1))c.remove(a),c.If()&&(c.reset(),1E3>B.length&&B.push(c),this.cells[f][r]=null);if(b)for(f=b.left,h=b.right;f<=h;++f)for(r=b.top,m=b.bottom;r<=m;++r)d&&d.Tb(f,r)||this.Dg(f,r,!0).Dq(a)};r.prototype.ro=function(a,d,b,f,h){var r,m;a=this.Oc(a);d=this.Pc(d);b=this.Oc(b);for(r=this.Pc(f);a<=b;++a)for(f=d;f<=r;++f)(m=this.Dg(a,f,!1))&&m.dump(h)};r.prototype.sD=function(a){var d,b,f,h,r;d=a.left;f=a.top;b=a.right;for(h=a.bottom;d<=b;++d)for(a=f;a<=h;++a)if(r=this.Dg(d,a,!1))r.Si=!1};qb=r;var M=[];d.prototype.If=
function(){return this.Xb.If()};d.prototype.Dq=function(a){this.Xb.add(a)};d.prototype.remove=function(a){this.Xb.remove(a)};d.prototype.dump=function(a){Ia(a,this.Xb.fe())};da=d;var B=[];u.prototype.If=function(){if(!this.Xb.length)return!0;if(this.Xb.length>this.lf.count())return!1;this.iq();return!0};u.prototype.Dq=function(a){this.lf.contains(a)?(this.lf.remove(a),this.lf.If()&&(this.Pj=!1)):this.Xb.length?(this.Xb[this.Xb.length-1].Ud()>a.Ud()&&(this.Si=!1),this.Xb.push(a)):(this.Xb.push(a),
this.Si=!0)};u.prototype.remove=function(a){this.lf.add(a);this.Pj=!0;30<=this.lf.count()&&this.iq()};u.prototype.iq=function(){this.Pj&&(this.lf.count()===this.Xb.length?this.reset():(hb(this.Xb,this.lf),this.lf.clear(),this.Pj=!1))};u.prototype.xB=function(){this.Si||(this.Xb.sort(f),this.Si=!0)};u.prototype.reset=function(){I(this.Xb);this.Si=!0;this.lf.clear();this.Pj=!1};u.prototype.dump=function(a){this.iq();this.xB();this.Xb.length&&a.push(this.Xb)};fa=u;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
rb=function(a){return 0>=a||11<=a?"source-over":C[a-1]};sb=function(a,d,b){if(b)switch(a.tc=b.ONE,a.jc=b.ONE_MINUS_SRC_ALPHA,d){case 1:a.tc=b.ONE;a.jc=b.ONE;break;case 3:a.tc=b.ONE;a.jc=b.ZERO;break;case 4:a.tc=b.ONE_MINUS_DST_ALPHA;a.jc=b.ONE;break;case 5:a.tc=b.DST_ALPHA;a.jc=b.ZERO;break;case 6:a.tc=b.ZERO;a.jc=b.SRC_ALPHA;break;case 7:a.tc=b.ONE_MINUS_DST_ALPHA;a.jc=b.ZERO;break;case 8:a.tc=b.ZERO;a.jc=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.tc=b.DST_ALPHA;a.jc=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.tc=
b.ONE_MINUS_DST_ALPHA,a.jc=b.SRC_ALPHA}};tb=function(a){return Math.round(1E6*a)/1E6};ub=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};vb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ub(a.tagName,"canvas")?!0:!1}})();var pc="undefined"!==typeof Float32Array?Float32Array:Array;function qc(g){var p=new pc(3);g&&(p[0]=g[0],p[1]=g[1],p[2]=g[2]);return p}
function rc(g){var p=new pc(16);g&&(p[0]=g[0],p[1]=g[1],p[2]=g[2],p[3]=g[3],p[4]=g[4],p[5]=g[5],p[6]=g[6],p[7]=g[7],p[8]=g[8],p[9]=g[9],p[10]=g[10],p[11]=g[11],p[12]=g[12],p[13]=g[13],p[14]=g[14],p[15]=g[15]);return p}function sc(g,p){p[0]=g[0];p[1]=g[1];p[2]=g[2];p[3]=g[3];p[4]=g[4];p[5]=g[5];p[6]=g[6];p[7]=g[7];p[8]=g[8];p[9]=g[9];p[10]=g[10];p[11]=g[11];p[12]=g[12];p[13]=g[13];p[14]=g[14];p[15]=g[15]}
function tc(g,p){var n=p[0],k=p[1];p=p[2];g[0]*=n;g[1]*=n;g[2]*=n;g[3]*=n;g[4]*=k;g[5]*=k;g[6]*=k;g[7]*=k;g[8]*=p;g[9]*=p;g[10]*=p;g[11]*=p}
function uc(g,p,n,k){k||(k=rc());var e,t,b,a,r,c,d,h,u=g[0],f=g[1];g=g[2];t=n[0];b=n[1];e=n[2];n=p[1];c=p[2];u===p[0]&&f===n&&g===c?(g=k,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(n=u-p[0],c=f-p[1],d=g-p[2],h=1/Math.sqrt(n*n+c*c+d*d),n*=h,c*=h,d*=h,p=b*d-e*c,e=e*n-t*d,t=t*c-b*n,(h=Math.sqrt(p*p+e*e+t*t))?(h=1/h,p*=h,e*=h,t*=h):t=e=p=0,b=c*t-d*e,a=d*p-n*t,r=n*e-c*p,(h=Math.sqrt(b*b+a*a+r*r))?(h=1/h,b*=h,a*=h,r*=h):r=a=b=0,
k[0]=p,k[1]=b,k[2]=n,k[3]=0,k[4]=e,k[5]=a,k[6]=c,k[7]=0,k[8]=t,k[9]=r,k[10]=d,k[11]=0,k[12]=-(p*u+e*f+t*g),k[13]=-(b*u+a*f+r*g),k[14]=-(n*u+c*f+d*g),k[15]=1)}
(function(){function g(a,b,c){this.bf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Va=!!c;this.An=this.Ak=!1;this.Qm=0;this.kp=1;this.Js=1E3;this.cF=(this.Js-this.kp)/32768;this.Hp=qc([0,0,100]);this.uv=qc([0,0,0]);this.vx=qc([0,1,0]);this.mm=qc([1,1,1]);this.pu=!0;this.Rn=rc();this.Cd=rc();this.Rq=rc();this.Pp=rc();this.S=a;this.version=0===this.S.getParameter(this.S.VERSION).indexOf("WebGL 2")?2:1;this.Qu()}function p(a,b,c){this.S=a;this.Jl=
b;this.name=c;this.Vd=a.getAttribLocation(b,"aPos");this.Qg=a.getAttribLocation(b,"aTex");this.sv=a.getUniformLocation(b,"matP");this.Nn=a.getUniformLocation(b,"matMV");this.bj=a.getUniformLocation(b,"opacity");this.dr=a.getUniformLocation(b,"colorFill");this.tv=a.getUniformLocation(b,"samplerFront");this.Sk=a.getUniformLocation(b,"samplerBack");this.Ph=a.getUniformLocation(b,"destStart");this.Oh=a.getUniformLocation(b,"destEnd");this.Uk=a.getUniformLocation(b,"seconds");this.gr=a.getUniformLocation(b,
"pixelWidth");this.er=a.getUniformLocation(b,"pixelHeight");this.Rk=a.getUniformLocation(b,"layerScale");this.Qk=a.getUniformLocation(b,"layerAngle");this.Vk=a.getUniformLocation(b,"viewOrigin");this.Tk=a.getUniformLocation(b,"scrollPos");this.RC=!!(this.gr||this.er||this.Uk||this.Sk||this.Ph||this.Oh||this.Rk||this.Qk||this.Vk||this.Tk);this.Cv=this.Dv=-999;this.Qn=1;this.yv=this.xv=0;this.Av=this.wv=this.vv=1;this.Gv=this.Fv=this.Ev=this.Iv=this.Hv=this.zv=0;this.Qq=[];this.Bv=rc();this.bj&&a.uniform1f(this.bj,
1);this.dr&&a.uniform4f(this.dr,1,1,1,1);this.tv&&a.uniform1i(this.tv,0);this.Sk&&a.uniform1i(this.Sk,1);this.Ph&&a.uniform2f(this.Ph,0,0);this.Oh&&a.uniform2f(this.Oh,1,1);this.Rk&&a.uniform1f(this.Rk,1);this.Qk&&a.uniform1f(this.Qk,0);this.Vk&&a.uniform2f(this.Vk,0,0);this.Tk&&a.uniform2f(this.Tk,0,0);this.Uk&&a.uniform1f(this.Uk,0);this.xh=!1}function n(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 k(a,b){this.type=a;this.I=b;this.S=b.S;this.wd=this.Hc=this.cw=0;this.ya=this.ee=null;this.Pw=[]}var e=rc();g.prototype.Qu=function(){var a=this.S,b;this.lv=1;this.Jh=this.Mg=null;this.Pm=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.Va?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.nv=a.ONE;this.kv=a.ONE_MINUS_SRC_ALPHA;this.em=new Float32Array(8E3*(this.Va?3:2));this.Rl=new Float32Array(16E3);this.ow=new Float32Array(32E3);this.Ar=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Ar);a.bufferData(a.ARRAY_BUFFER,this.ow.byteLength,a.DYNAMIC_DRAW);this.dm=Array(4);this.Ql=Array(4);for(b=0;4>b;b++)this.dm[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.dm[b]),a.bufferData(a.ARRAY_BUFFER,this.em.byteLength,a.DYNAMIC_DRAW),this.Ql[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Ql[b]),a.bufferData(a.ARRAY_BUFFER,this.Rl.byteLength,a.DYNAMIC_DRAW);this.xf=0;this.UC=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.UC);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.Br=this.ah=this.he=0;this.ob=[];b=this.Va?"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.Wj({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.ob.push(c);c=this.Wj({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.ob.push(c);c=this.Wj({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.ob.push(c);c=this.Wj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.ob.push(c);for(var h in vc)vc.hasOwnProperty(h)&&this.ob.push(this.Wj(vc[h],b,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Ue=[];this.le=0;this.Vb=!1;this.hu=this.Kk=-1;this.si=null;this.gq=a.createFramebuffer();this.Wm=this.to=null;this.Rt=!1;this.Va&&(this.Wm=a.createRenderbuffer());this.eh=qc([0,0,0]);this.Jv=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Jv&&(this.Jv=2048);this.$c(0)};p.prototype.As=function(a){n(this.Bv,a)||(sc(a,this.Bv),this.S.uniformMatrix4fv(this.Nn,
!1,a))};g.prototype.Wj=function(a,b,c){var d=this.S,h=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(h,a.src);d.compileShader(h);if(!d.getShaderParameter(h,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(h),d.deleteShader(h),Error("error compiling fragment shader: "+a);var u=d.createShader(d.VERTEX_SHADER);d.shaderSource(u,b);d.compileShader(u);if(!d.getShaderParameter(u,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(u),d.deleteShader(h),d.deleteShader(u),Error("error compiling vertex shader: "+a);b=
d.createProgram();d.attachShader(b,h);d.attachShader(b,u);d.linkProgram(b);if(!d.getProgramParameter(b,d.LINK_STATUS))throw a=d.getProgramInfoLog(b),d.deleteShader(h),d.deleteShader(u),d.deleteProgram(b),Error("error linking shader program: "+a);d.useProgram(b);d.deleteShader(h);d.deleteShader(u);h=new p(d,b,c);h.dq=a.dq||0;h.fq=a.fq||0;h.gu=!!a.gu;h.Je=!!a.Je;h.Ot=!!a.Ot;h.za=a.za||[];a=0;for(u=h.za.length;a<u;a++)h.za[a][1]=d.getUniformLocation(b,h.za[a][0]),h.Qq.push(0),d.uniform1f(h.za[a][1],
0);return h};g.prototype.tq=function(a){var b,c;b=0;for(c=this.ob.length;b<c;b++)if(this.ob[b].name===a)return b;return-1};g.prototype.uw=function(a,b,c){var d=this.Cd,h=this.Rn,u=[0,0,0,0,0,0,0,0];u[0]=d[0]*a+d[4]*b+d[12];u[1]=d[1]*a+d[5]*b+d[13];u[2]=d[2]*a+d[6]*b+d[14];u[3]=d[3]*a+d[7]*b+d[15];u[4]=h[0]*u[0]+h[4]*u[1]+h[8]*u[2]+h[12]*u[3];u[5]=h[1]*u[0]+h[5]*u[1]+h[9]*u[2]+h[13]*u[3];u[6]=h[2]*u[0]+h[6]*u[1]+h[10]*u[2]+h[14]*u[3];u[7]=-u[2];0!==u[7]&&(u[7]=1/u[7],u[4]*=u[7],u[5]*=u[7],u[6]*=u[7],
c[0]=(.5*u[4]+.5)*this.width,c[1]=(.5*u[5]+.5)*this.height)};g.prototype.ai=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Ef();c=this.S;this.width=a;this.height=b;c.viewport(0,0,a,b);uc(this.Hp,this.uv,this.vx,this.Cd);if(this.Va){var d=-a/2;a=a/2;var h=b/2;b=-b/2;var u=this.kp,f=this.Js,l=this.Rn;l||(l=rc());var e=a-d,g=b-h,m=f-u;l[0]=2/e;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2/g;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2/m;l[11]=0;l[12]=-(d+a)/e;l[13]=-(b+h)/g;l[14]=-(f+u)/m;l[15]=1;this.mm[0]=
1;this.mm[1]=1}else b=a/b,d=this.kp,a=this.Js,l=this.Rn,f=d*Math.tan(45*Math.PI/360),b*=f,h=-b,u=-f,l||(l=rc()),e=b-h,g=f-u,m=a-d,l[0]=2*d/e,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*d/g,l[6]=0,l[7]=0,l[8]=(b+h)/e,l[9]=(f+u)/g,l[10]=-(a+d)/m,l[11]=-1,l[12]=0,l[13]=0,l[14]=-(a*d*2)/m,l[15]=0,d=[0,0],a=[0,0],this.uw(0,0,d),this.uw(1,1,a),this.mm[0]=1/(a[0]-d[0]),this.mm[1]=-1/(a[1]-d[1]);d=0;for(a=this.ob.length;d<a;d++)h=this.ob[d],h.xh=!1,h.sv&&(c.useProgram(h.Jl),c.uniformMatrix4fv(h.sv,!1,this.Rn));c.useProgram(this.ob[this.Kk].Jl);
c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Jh=this.Mg=null;this.Wm&&(c.bindFramebuffer(c.FRAMEBUFFER,this.gq),c.bindRenderbuffer(c.RENDERBUFFER,this.Wm),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Rt||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Wm),this.Rt=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),
this.to=null)}};g.prototype.Zd=function(){uc(this.Hp,this.uv,this.vx,this.Cd);tc(this.Cd,this.mm)};g.prototype.translate=function(a,b){if(0!==a||0!==b){this.eh[0]=a;this.eh[1]=b;this.eh[2]=0;var c=this.Cd,d=this.eh,h=d[0],u=d[1],d=d[2];c[12]=c[0]*h+c[4]*u+c[8]*d+c[12];c[13]=c[1]*h+c[5]*u+c[9]*d+c[13];c[14]=c[2]*h+c[6]*u+c[10]*d+c[14];c[15]=c[3]*h+c[7]*u+c[11]*d+c[15]}};g.prototype.scale=function(a,b){if(1!==a||1!==b)this.eh[0]=a,this.eh[1]=b,this.eh[2]=1,tc(this.Cd,this.eh)};g.prototype.wo=function(a){if(0!==
a){var b=this.Cd,c,d=Math.sin(a);a=Math.cos(a);var h=b[0],u=b[1],f=b[2],l=b[3],e=b[4],g=b[5],m=b[6],v=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]=h*a+e*d;c[1]=u*a+g*d;c[2]=f*a+m*d;c[3]=l*a+v*d;c[4]=h*-d+e*a;c[5]=u*-d+g*a;c[6]=f*-d+m*a;c[7]=l*-d+v*a}};g.prototype.Jd=function(){if(!n(this.Rq,this.Cd)){var a=this.Xc();a.type=5;a.ya?sc(this.Cd,a.ya):a.ya=rc(this.Cd);sc(this.Cd,this.Rq);this.Vb=!1}};g.prototype.Co=function(a){this.Va&&
(32760<a&&(a=32760),this.Qm=this.Hp[2]-this.kp-a*this.cF)};k.prototype.gB=function(){var a=this.S,b=this.I;0!==this.Hc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.gq),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.An=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.An=!1)};k.prototype.kB=function(){this.S.bindTexture(this.S.TEXTURE_2D,
this.ee)};k.prototype.lB=function(){var a=this.S;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ee);a.activeTexture(a.TEXTURE0)};k.prototype.hB=function(){var a=this.cw,b=this.I;b.Pm=a;b=b.si;b.bj&&b.Qn!==a&&(b.Qn=a,this.S.uniform1f(b.bj,a))};k.prototype.bB=function(){this.S.drawElements(this.S.TRIANGLES,this.wd,this.S.UNSIGNED_SHORT,this.Hc)};k.prototype.dB=function(){this.S.blendFunc(this.Hc,this.wd)};k.prototype.nB=function(){var a,b,c,d=this.I.ob,h=this.I.hu;a=0;for(b=d.length;a<
b;a++)c=d[a],a===h&&c.Nn?(c.As(this.ya),c.xh=!0):c.xh=!1;sc(this.ya,this.I.Pp)};k.prototype.cB=function(){var a=this.S,b=this.I;this.ee?(b.Jh===this.ee&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Jh=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.gq),b.An||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ee,0)):(b.Va||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
k.prototype.ZA=function(){var a=this.S,b=this.Hc;0===b?(a.clearColor(this.ya[0],this.ya[1],this.ya[2],this.ya[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.ya[0],this.ya[1],this.ya[2],this.ya[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};k.prototype.fB=function(){var a=this.S;0!==this.Hc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};k.prototype.aB=function(){var a=this.S,b=this.I;b.Va&&a.disable(a.DEPTH_TEST);
var c=b.ob[1];a.useProgram(c.Jl);!c.xh&&c.Nn&&(c.As(b.Pp),c.xh=!0);a.enableVertexAttribArray(c.Vd);a.bindBuffer(a.ARRAY_BUFFER,b.Ar);a.vertexAttribPointer(c.Vd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Hc/4,this.wd);c=b.si;a.useProgram(c.Jl);0<=c.Vd&&(a.enableVertexAttribArray(c.Vd),a.bindBuffer(a.ARRAY_BUFFER,b.dm[b.xf]),a.vertexAttribPointer(c.Vd,b.Va?3:2,a.FLOAT,!1,0,0));0<=c.Qg&&(a.enableVertexAttribArray(c.Qg),a.bindBuffer(a.ARRAY_BUFFER,b.Ql[b.xf]),a.vertexAttribPointer(c.Qg,2,a.FLOAT,!1,
0,0));b.Va&&a.enable(a.DEPTH_TEST)};k.prototype.iB=function(){var a=this.S,b=this.I,c=b.ob[this.Hc];b.hu=this.Hc;b.si=c;a.useProgram(c.Jl);!c.xh&&c.Nn&&(c.As(b.Pp),c.xh=!0);c.bj&&c.Qn!==b.Pm&&(c.Qn=b.Pm,a.uniform1f(c.bj,b.Pm));0<=c.Vd&&(a.enableVertexAttribArray(c.Vd),a.bindBuffer(a.ARRAY_BUFFER,b.dm[b.xf]),a.vertexAttribPointer(c.Vd,b.Va?3:2,a.FLOAT,!1,0,0));0<=c.Qg&&(a.enableVertexAttribArray(c.Qg),a.bindBuffer(a.ARRAY_BUFFER,b.Ql[b.xf]),a.vertexAttribPointer(c.Qg,2,a.FLOAT,!1,0,0))};k.prototype.eB=
function(){var a=this.ya;this.S.uniform4f(this.I.si.dr,a[0],a[1],a[2],a[3])};k.prototype.jB=function(){var a,b,c=this.I.si,d=this.S;a=this.ya;c.Sk&&this.I.Jh!==this.ee&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.ee),this.I.Jh=this.ee,d.activeTexture(d.TEXTURE0));var h=a[0];c.gr&&h!==c.Dv&&(c.Dv=h,d.uniform1f(c.gr,h));h=a[1];c.er&&h!==c.Cv&&(c.Cv=h,d.uniform1f(c.er,h));h=a[2];b=a[3];!c.Ph||h===c.xv&&b===c.yv||(c.xv=h,c.yv=b,d.uniform2f(c.Ph,h,b));h=a[4];b=a[5];!c.Oh||h===c.vv&&b===
c.wv||(c.vv=h,c.wv=b,d.uniform2f(c.Oh,h,b));h=a[6];c.Rk&&h!==c.Av&&(c.Av=h,d.uniform1f(c.Rk,h));h=a[7];c.Qk&&h!==c.zv&&(c.zv=h,d.uniform1f(c.Qk,h));h=a[8];b=a[9];!c.Vk||h===c.Hv&&b===c.Iv||(c.Hv=h,c.Iv=b,d.uniform2f(c.Vk,h,b));h=a[10];b=a[11];!c.Tk||h===c.Ev&&b===c.Fv||(c.Ev=h,c.Fv=b,d.uniform2f(c.Tk,h,b));h=a[12];c.Uk&&h!==c.Gv&&(c.Gv=h,d.uniform1f(c.Uk,h));if(c.za.length)for(a=0,b=c.za.length;a<b;a++)h=this.Pw[a],h!==c.Qq[a]&&(c.Qq[a]=h,d.uniform1f(c.za[a][1],h))};g.prototype.Xc=function(){this.le===
this.Ue.length&&this.Ue.push(new k(0,this));return this.Ue[this.le++]};g.prototype.Ef=function(){if(0!==this.le&&!this.S.isContextLost()){var a=this.S;0<this.Br&&(a.bindBuffer(a.ARRAY_BUFFER,this.Ar),a.bufferSubData(a.ARRAY_BUFFER,0,this.ow.subarray(0,this.Br)),b&&0<=b.Vd&&"<point>"===b.name&&a.vertexAttribPointer(b.Vd,4,a.FLOAT,!1,0,0));if(0<this.he){var b=this.si;a.bindBuffer(a.ARRAY_BUFFER,this.dm[this.xf]);a.bufferSubData(a.ARRAY_BUFFER,0,this.em.subarray(0,this.he));b&&0<=b.Vd&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Vd,this.Va?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ql[this.xf]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Rl.subarray(0,this.ah));b&&0<=b.Qg&&"<point>"!==b.name&&a.vertexAttribPointer(b.Qg,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.le;a<b;a++)switch(c=this.Ue[a],c.type){case 1:c.bB();break;case 2:c.kB();break;case 3:c.hB();break;case 4:c.dB();break;case 5:c.nB();break;case 6:c.cB();break;case 7:c.ZA();break;case 8:c.aB();break;case 9:c.iB();break;case 10:c.jB();break;
case 11:c.lB();break;case 12:c.eB();break;case 13:c.fB();break;case 14:c.gB()}this.Br=this.ah=this.he=this.le=0;this.An=this.Vb=!1;this.xf++;4<=this.xf&&(this.xf=0)}};g.prototype.of=function(a){if(a!==this.lv&&!this.Ak){var b=this.Xc();b.type=3;this.lv=b.cw=a;this.Vb=!1}};g.prototype.sc=function(a){if(a!==this.Mg){var b=this.Xc();b.type=2;this.Mg=b.ee=a;this.Vb=!1}};g.prototype.Xf=function(a,b){if((a!==this.nv||b!==this.kv)&&!this.Ak){var c=this.Xc();c.type=4;c.Hc=a;c.wd=b;this.nv=a;this.kv=b;this.Vb=
!1}};g.prototype.Dw=function(){this.Xf(this.S.ONE,this.S.ONE_MINUS_SRC_ALPHA)};g.prototype.oj=function(a,b,c,d,h,u,f,l){15992<=this.he&&this.Ef();var e=this.he,g=this.ah,m=this.em,v=this.Rl,k=this.Qm;if(this.Vb)this.Ue[this.le-1].wd+=6;else{var q=this.Xc();q.type=1;q.Hc=this.Va?e:e/2*3;q.wd=6;this.Vb=!0}this.Va?(m[e++]=a,m[e++]=b,m[e++]=k,m[e++]=c,m[e++]=d,m[e++]=k,m[e++]=h,m[e++]=u,m[e++]=k,m[e++]=f,m[e++]=l,m[e++]=k):(m[e++]=a,m[e++]=b,m[e++]=c,m[e++]=d,m[e++]=h,m[e++]=u,m[e++]=f,m[e++]=l);v[g++]=
0;v[g++]=0;v[g++]=1;v[g++]=0;v[g++]=1;v[g++]=1;v[g++]=0;v[g++]=1;this.he=e;this.ah=g};g.prototype.Ed=function(a,b,c,d,h,e,f,l,g){15992<=this.he&&this.Ef();var k=this.he,m=this.ah,v=this.em,t=this.Rl,q=this.Qm;if(this.Vb)this.Ue[this.le-1].wd+=6;else{var D=this.Xc();D.type=1;D.Hc=this.Va?k:k/2*3;D.wd=6;this.Vb=!0}var D=g.left,aa=g.top,p=g.right;g=g.bottom;this.Va?(v[k++]=a,v[k++]=b,v[k++]=q,v[k++]=c,v[k++]=d,v[k++]=q,v[k++]=h,v[k++]=e,v[k++]=q,v[k++]=f,v[k++]=l,v[k++]=q):(v[k++]=a,v[k++]=b,v[k++]=
c,v[k++]=d,v[k++]=h,v[k++]=e,v[k++]=f,v[k++]=l);t[m++]=D;t[m++]=aa;t[m++]=p;t[m++]=aa;t[m++]=p;t[m++]=g;t[m++]=D;t[m++]=g;this.he=k;this.ah=m};g.prototype.hE=function(a,b,c,d,h,e,f,l,g,k,m,v,t,q,D,aa){15992<=this.he&&this.Ef();var p=this.he,n=this.ah,C=this.em,K=this.Rl,P=this.Qm;if(this.Vb)this.Ue[this.le-1].wd+=6;else{var Z=this.Xc();Z.type=1;Z.Hc=this.Va?p:p/2*3;Z.wd=6;this.Vb=!0}this.Va?(C[p++]=a,C[p++]=b,C[p++]=P,C[p++]=c,C[p++]=d,C[p++]=P,C[p++]=h,C[p++]=e,C[p++]=P,C[p++]=f,C[p++]=l,C[p++]=
P):(C[p++]=a,C[p++]=b,C[p++]=c,C[p++]=d,C[p++]=h,C[p++]=e,C[p++]=f,C[p++]=l);K[n++]=g;K[n++]=k;K[n++]=m;K[n++]=v;K[n++]=t;K[n++]=q;K[n++]=D;K[n++]=aa;this.he=p;this.ah=n};g.prototype.$c=function(a){if(this.Kk!==a){if(!this.ob[a]){if(0===this.Kk)return;a=0}var b=this.Xc();b.type=9;this.Kk=b.Hc=a;this.Vb=!1}};g.prototype.ul=function(a){a=this.ob[a];return!(!a.Ph&&!a.Oh)};g.prototype.Er=function(a){a=this.ob[a];return!!(a.Ph||a.Oh||a.gu)};g.prototype.Dr=function(a){return this.ob[a].Je};g.prototype.eE=
function(a){a=this.ob[a];return 0!==a.dq||0!==a.fq};g.prototype.yC=function(a){return this.ob[a].dq};g.prototype.zC=function(a){return this.ob[a].fq};g.prototype.AC=function(a,b){return this.ob[a].za[b][2]};g.prototype.oo=function(a){return this.ob[a].Ot};g.prototype.uj=function(a,b,c,d,h,e,f,l,g,k,m,v,t,q,D){var aa=this.ob[this.Kk],p,n;if(aa.RC||D.length){p=this.Xc();p.type=10;p.ya?sc(this.Cd,p.ya):p.ya=rc();n=p.ya;n[0]=b;n[1]=c;n[2]=d;n[3]=h;n[4]=e;n[5]=f;n[6]=l;n[7]=g;n[8]=k;n[9]=m;n[10]=v;n[11]=
t;n[12]=q;aa.Sk?p.ee=a:p.ee=null;if(D.length)for(c=p.Pw,c.length=D.length,a=0,b=D.length;a<b;a++)c[a]=D[a];this.Vb=!1}};g.prototype.clear=function(a,b,c,d){var h=this.Xc();h.type=7;h.Hc=0;h.ya||(h.ya=rc());h.ya[0]=a;h.ya[1]=b;h.ya[2]=c;h.ya[3]=d;this.Vb=!1};g.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var h=this.Xc();h.type=7;h.Hc=1;h.ya||(h.ya=rc());h.ya[0]=a;h.ya[1]=b;h.ya[2]=c;h.ya[3]=d;this.Vb=!1}};g.prototype.Gw=function(a){if(this.Va&&(a=!!a,this.Ak!==a)){var b=this.Xc();b.type=14;
b.Hc=a?1:0;this.Vb=!1;this.Ak=a;this.to=null;this.Ak?this.$c(2):this.$c(0)}};g.prototype.Fw=function(a){if(this.Va){var b=this.Xc();b.type=13;b.Hc=a?1:0;this.Vb=!1}};g.prototype.yu=function(){sc(this.Rq,e);this.Zd();this.Jd();var a=this.width/2,b=this.height/2;this.oj(-a,b,a,b,a,-b,-a,-b);sc(e,this.Cd);this.Jd()};g.prototype.Ew=function(a,b,c){this.$c(3);var d=this.Xc();d.type=12;d.ya||(d.ya=rc());d.ya[0]=a;d.ya[1]=b;d.ya[2]=c;d.ya[3]=1;this.Vb=!1};g.prototype.DE=function(){this.$c(0)};g.prototype.nE=
function(){this.$c(2)};g.prototype.bE=function(){this.Ef();this.S.flush()};var t=[],b={};g.prototype.PA=function(){I(t);b={}};g.prototype.Fe=function(a,e,c,d,h){e=!!e;c=!!c;var u=a.src+","+e+","+c+(e?","+h:""),f=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(u))return f=b[u],f.Fm++,f;this.Ef();var l=this.S,g=oa(a.width)&&oa(a.height),f=l.createTexture();l.bindTexture(l.TEXTURE_2D,f);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=l.RGBA,m=l.RGBA,v=l.UNSIGNED_BYTE;if(d&&!this.bf)switch(d){case 1:m=
k=l.RGB;break;case 2:v=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:v=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=k=l.RGB,v=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!g&&e){d=document.createElement("canvas");d.width=pa(a.width);d.height=pa(a.height);var p=d.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=c:(p.webkitImageSmoothingEnabled=c,p.mozImageSmoothingEnabled=c,p.msImageSmoothingEnabled=c);p.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,
0,k,m,v,d)}else l.texImage2D(l.TEXTURE_2D,0,k,m,v,a);e?"repeat-x"===h?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE)):("repeat-y"===h?l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE):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),(g||2<=this.version)&&this.pu?(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.Mg=null;f.pe=a.width;f.oe=a.height;f.Fm=1;f.Wt=u;t.push(f);return b[u]=f};g.prototype.Rc=
function(a,b,c,d,h){this.Ef();var e=this.S;this.bf&&(d=!1);var f=e.createTexture();e.bindTexture(e.TEXTURE_2D,f);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);h?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,
c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Mg=null;f.pe=a;f.oe=b;t.push(f);return f};g.prototype.cp=function(a,b,c){this.Ef();var d=this.S;this.bf&&(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(h){console&&console.error&&console.error("Error updating WebGL texture: ",h)}d.bindTexture(d.TEXTURE_2D,
null);this.Mg=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Fm&&1<a.Fm?a.Fm--:(this.Ef(),a===this.Mg&&(this.S.bindTexture(this.S.TEXTURE_2D,null),this.Mg=null),a===this.Jh&&(this.S.activeTexture(this.S.TEXTURE1),this.S.bindTexture(this.S.TEXTURE_2D,null),this.S.activeTexture(this.S.TEXTURE0),this.Jh=null),La(t,a),"undefined"!==typeof a.Wt&&delete b[a.Wt],this.S.deleteTexture(a)))};g.prototype.$d=function(a){if(a!==this.to){var b=this.Xc();b.type=6;this.to=b.ee=a;this.Vb=!1}};
wb=g})();
(function(){function g(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.zd=(this.zk=/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.Dc=!!a.dc;this.Yu="undefined"!==typeof window.AppMobi||this.Dc;
this.yd=!!window.c2cocoonjs;this.we=!!window.c2ejecta;this.yd&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.we&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.O=this.Dc||this.yd||this.we;this.Mi=/edge\//i.test(navigator.userAgent);
this.bf=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Mi;this.bv=/tizen/i.test(navigator.userAgent);this.Li=/android/i.test(navigator.userAgent)&&!this.bv&&!this.bf&&!this.Mi;this.gv=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.bf&&!this.Mi;this.kD=/ipad/i.test(navigator.userAgent);this.Ih=this.gv||this.kD||this.we;this.Bn=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&
!this.bf&&!this.Mi;this.Xu=/amazonwebappplatform/i.test(navigator.userAgent);this.ZC=/firefox/i.test(navigator.userAgent);this.dD=/safari/i.test(navigator.userAgent)&&!this.Bn&&!this.bf&&!this.Mi;this.gD=/windows/i.test(navigator.userAgent);this.Ck="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.cv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.iD=!("undefined"===typeof window.c2isWindows8Capable||
!window.c2isWindows8Capable);this.Dk=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Mq=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Lq=!!window.cr_windows10;this.fD=this.cv||this.iD||this.Mq||this.Lq;this.XC=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.xk=this.Li&&!this.Bn&&!this.zk&&!this.ZC&&!this.Xu&&!this.O;this.devicePixelRatio=1;this.cf=this.zd||this.zk||this.Yu||this.yd||this.Li||this.Ih||
this.Dk||this.Mq||this.XC||this.bv||this.we;this.cf||(this.cf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Dn=!!(this.Ih&&this.zd&&window.webkit);"undefined"===typeof cr_is_preview||this.Ck||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ck=!0);this.canvas=a;this.Qd=document.getElementById("c2canvasdiv");this.I=this.S=null;this.vq="(unavailable)";this.Va=
!1;this.ph=0;this.Ya=null;this.hn=!1;this.$v=this.aw=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.Dc&&(window.c2runtime=this);this.Ck&&(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.xk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.ba=this.width;this.aa=this.height;this.Nm=this.width;this.Yj=this.height;this.Zi=window.innerWidth;this.Yi=window.innerHeight;this.ma=!0;this.Gh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.P=[];this.hb=[];this.aj={};this.De=[];this.cq={};this.Ff=[];this.Fj=[];this.Vo=[];this.BA=[];this.CA=
[];this.hv=this.Ww=null;this.nh={};this.Iq=this.Gg=!1;this.Ad=0;this.Hq=this.Kq=!1;this.ue=[];this.Bk=!1;this.Nk=this.zo="";this.Rb=null;this.Kf="";this.Ol=this.Sw=!1;this.gn=[];this.Bg=this.oh=0;this.Ov=30;this.Op=this.Wk=0;this.dh=1;this.Ob=new kb;this.fg=new kb;this.Wn=this.pn=this.sh=this.Id=this.Lh=this.jq=this.Hn=0;this.jh=null;this.Xm=[];this.bq=[];this.an=-1;this.hr=[[]];this.vs=this.On=0;this.po(null);this.Xk=[];this.Yk=-1;this.Wv=this.el=0;this.Yq=!0;this.dk=0;this.Pl=[];this.qs=this.Ir=
-1;this.Ui=!0;this.Pk=0;this.Cn=!1;this.GE=0;this.pi=null;this.ua=this.vn=!1;this.nr=new ea;this.or=new ea;this.pr=new ea;this.$h=[];this.ad=new mb([]);this.ds=new mb([]);this.oi=[];this.Hi={};this.vg={};this.ng={};this.Ej={};this.St={};this.qv=this.Jn=this.Fb=this.Pb=this.pv=this.In=this.Ka=null;this.Cj=this.Nq=!1;this.lq=[null,null];this.Ci=0;this.fk="";this.Rf={};this.Ml=this.Og=null;this.Vw="";this.Vn=[];this.mE()}}function p(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}
function k(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function e(a,b,d,f){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=k;h.onerror=f;h.onsuccess=function(h){h=h.target.result;h.onerror=f;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=d}}catch(m){f(m)}}function t(a,b,d){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=k;f.onerror=d;f.onsuccess=function(f){f=f.target.result;f.onerror=d;var h=f.transaction(["saves"]).objectStore("saves").get(a);
h.onsuccess=function(){h.result?b(h.result.data):b(null)}}}catch(h){d(h)}}function b(){ja("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var b,d={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ea||a[b]&&"undefined"!==typeof a[b].WF||"spriteCreatedDestroyCallback"!==b&&(d[b]=a[b]);return d}var r=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.mE=function(){var a=this;if(this.Dn)this.eC(function(b){a.Ok(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.Dk?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var d="data.js";if(this.cv||this.Dk||this.Mq||this.Lq)d="data.json";b.open("GET",d,!0);var f=!1;if(!this.O&&"response"in b&&"responseType"in b)try{b.responseType="json",f="json"===b.responseType}catch(h){f=
!1}if(!f&&"responseType"in b)try{b.responseType="text"}catch(m){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.Dk?b.onreadystatechange=function(){4===b.readyState&&a.Ok(JSON.parse(b.responseText))}:(b.onload=function(){if(f)a.Ok(b.response);else if(a.we){var d=b.responseText,d=d.substr(d.indexOf("{"));a.Ok(JSON.parse(d))}else a.Ok(JSON.parse(b.responseText))},b.onerror=function(a){ka("Error requesting "+d+":");ka(a)});b.send()}};g.prototype.VC=
function(){var a=this,b,d,f,h,m,c,q,e,l;this.Fh=(!this.O||this.we||this.zd)&&this.VE&&!this.xk;0===this.Ac&&this.Ih&&(this.Fh=!1);this.devicePixelRatio=this.Fh?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.wc();0<this.Ac&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.ED();ja("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.I.Qu();a.I.ai(a.I.width,a.I.height,!0);a.Pb=null;a.Fb=null;a.lq[0]=null;a.lq[1]=null;a.FD();a.ma=!0;ja("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.vB&&(this.yd||this.we||!this.O)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Li||(this.S=this.canvas.getContext("webgl2",b)),this.S||(this.S=this.canvas.getContext("webgl",
b)||this.canvas.getContext("experimental-webgl",b)))}catch(r){}if(this.S){if(b=this.S.getExtension("WEBGL_debug_renderer_info"))this.vq=this.S.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.S.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Va&&(this.vq+=" [front-to-back enabled]");this.O||(this.oc=document.createElement("canvas"),jQuery(this.oc).appendTo(this.canvas.parentNode),this.oc.oncontextmenu=function(){return!1},this.oc.onselectstart=function(){return!1},this.oc.width=Math.round(this.Nm*
this.devicePixelRatio),this.oc.height=Math.round(this.Yj*this.devicePixelRatio),jQuery(this.oc).css({width:this.Nm+"px",height:this.Yj+"px"}),this.pw(),this.yr=this.oc.getContext("2d"));this.I=new wb(this.S,this.cf,this.Va);this.I.ai(this.canvas.width,this.canvas.height);this.I.pu=0!==this.oB;this.Ya=null;b=0;for(d=this.P.length;b<d;b++)for(m=this.P[b],f=0,h=m.ka.length;f<h;f++)q=m.ka[f],q.Ib=this.I.tq(q.id),q.Je=this.I.Dr(q.Ib),this.Cj=this.Cj||this.I.ul(q.Ib);b=0;for(d=this.De.length;b<d;b++){e=
this.De[b];f=0;for(h=e.ka.length;f<h;f++)q=e.ka[f],q.Ib=this.I.tq(q.id),q.Je=this.I.Dr(q.Ib);e.Se();f=0;for(h=e.la.length;f<h;f++){l=e.la[f];m=0;for(c=l.ka.length;m<c;m++)q=l.ka[m],q.Ib=this.I.tq(q.id),q.Je=this.I.Dr(q.Ib),this.Cj=this.Cj||this.I.ul(q.Ib);l.Se()}}}else{if(0<this.Ac&&this.Dc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ya=AppMobi.canvas.getContext("2d");try{this.Ya.samplingMode=this.Ua?"smooth":"sharp",this.Ya.globalScale=
1,this.Ya.HTML5CompatibilityMode=!0,this.Ya.imageSmoothingEnabled=this.Ua}catch(g){}0!==this.width&&0!==this.height&&(this.Ya.width=this.width,this.Ya.height=this.height)}this.Ya||(this.yd?(b={antialias:!!this.Ua,alpha:!0},this.Ya=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Ya=this.canvas.getContext("2d",b)),this.Bo(this.Ya,this.Ua));this.yr=this.oc=null}this.cx=function(b){a.Ha(!1,b)};window==window.top||this.O||this.fD||this.Dk||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.yd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ja("Reloading for continuous preview"),this.Nk="__c2_continuouspreview",this.Ol=!0),this.TD&&!this.cf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",
function(){a.Tf()});this.O||(b=function(a){if(vb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Ac&&this.Fh&&1<this.devicePixelRatio&&
this.setSize(this.fb,this.eb,!0);this.tx();this.NC();this.go();this.W={}};g.prototype.setSize=function(a,b,d){var f=0,h=0,m=0,c=0,c=0;if(this.Zi!==a||this.Yi!==b||d){this.Zi=a;this.Yi=b;var q=this.Ac;if((m=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Cn)&&!this.zd)||0!==this.Ac||d)m&&(q=this.Ci),d=this.devicePixelRatio,4<=q?(5===q&&1!==d&&(a+=1,b+=1),m=this.fb/this.eb,a/b>m?(m*=b,5===q?(c=m*d/this.fb,1<c?c=Math.floor(c):1>c&&(c=1/
Math.ceil(1/c)),m=this.fb*c/d,c=this.eb*c/d,f=(a-m)/2,h=(b-c)/2,a=m,b=c):(f=(a-m)/2,a=m)):(c=a/m,5===q?(c=c*d/this.eb,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),m=this.fb*c/d,c=this.eb*c/d,f=(a-m)/2,h=(b-c)/2,a=m):h=(b-c)/2,b=c)):m&&0===q&&(f=Math.floor((a-this.fb)/2),h=Math.floor((b-this.eb)/2),a=this.fb,b=this.eb),2>q&&(this.Rj=d),this.Nm=Math.round(a),this.Yj=Math.round(b),this.width=Math.round(a*d),this.height=Math.round(b*d),this.ma=!0,this.Dx?(this.ba=this.width,this.aa=this.height,this.ud=
!0):this.width<this.fb&&this.height<this.eb||1===q?(this.ba=this.width,this.aa=this.height,this.ud=!0):(this.ba=this.fb,this.aa=this.eb,this.ud=!1,2===q?(m=this.fb/this.eb,q=this.Zi/this.Yi,q<m?this.ba=this.aa*q:q>m&&(this.aa=this.ba/q)):3===q&&(m=this.fb/this.eb,q=this.Zi/this.Yi,q>m?this.ba=this.aa*q:q<m&&(this.aa=this.ba/q))),this.Qd&&!this.O&&(jQuery(this.Qd).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==
typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(b*d),this.we?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Fh&&!this.O&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.oc&&(this.oc.width=Math.round(a*
d),this.oc.height=Math.round(b*d),this.oc.style.width=this.Nm+"px",this.oc.style.height=this.Yj+"px"),this.I&&this.I.ai(Math.round(a*d),Math.round(b*d)),this.Dc&&this.Ya&&(this.Ya.width=Math.round(a),this.Ya.height=Math.round(b)),this.Ya&&this.Bo(this.Ya,this.Ua),this.tx(),this.gv&&!this.zd&&window.scrollTo(0,0)}};g.prototype.tx=function(){if(this.HA&&0!==this.xr){var a="portrait";2===this.xr&&(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(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};g.prototype.ED=function(){this.I.PA();this.Nq=!0;var a,b,d;a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.Wh&&d.Wh()};g.prototype.FD=function(){this.Nq=!1;var a,b,d;a=0;for(b=this.P.length;a<b;a++)d=this.P[a],
d.pl&&d.pl()};g.prototype.pw=function(){if(!this.O){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Cn)&&!this.zd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.oc).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var b;if(a&&!this.Gh)for(ja("[Construct 2] Suspending"),
this.Gh=!0,-1!==this.Ir&&c&&c(this.Ir),-1!==this.qs&&clearTimeout(this.qs),a=0,b=this.Pl.length;a<b;a++)this.Pl[a](!0);else if(!a&&this.Gh){ja("[Construct 2] Resuming");this.Gh=!1;this.Hn=gb();this.Lh=gb();a=this.Wk=this.pn=0;for(b=this.Pl.length;a<b;a++)this.Pl[a](!1);this.Ha(!1)}};g.prototype.yp=function(a){this.Pl.push(a)};g.prototype.jg=function(a){return this.Vn[a]};g.prototype.Ok=function(a){a&&a.project||ka("Project model unavailable");a=a.project;this.name=a[0];this.xu=a[1];this.Ac=a[12];
this.fb=a[10];this.eb=a[11];this.jw=this.fb/2;this.kw=this.eb/2;this.O&&!this.we&&(4<=a[12]||0===a[12])&&(ja("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Ac=3);this.Ds=a[18];this.Pg=a[19];if(0===this.Pg){var b=new Image;b.crossOrigin="anonymous";this.Hw(b,"loading-logo.png");this.Og={Pn:b}}else if(4===this.Pg){b=new Image;b.src="";var d=new Image;d.src="";var f=new Image;f.src="";var h=new Image;h.src="";var m=new Image;
m.src="";var c=new Image;c.src="";var q=new Image;q.src="";var e=new Image;e.src="";var l=new Image;l.src="";var r=new Image;r.src="";var g=new Image;g.src="";var u=new Image;u.src="";this.Og={Pn:[b,d,f,h],ZD:[m,c,q,e],bF:[l,r,g,u]}}this.el=a[21];this.Vn=wc();this.qf=new R(this);b=0;for(d=a[2].length;b<d;b++)q=a[2][b],f=this.jg(q[0]),xb(q,f.prototype),e=new f(this),e.Jo=q[1],e.Ig=q[2],e.jD=q[5],e.Uv=q[9],e.K&&e.K(),this.plugins.push(e);this.Vn=wc();b=0;for(d=a[3].length;b<d;b++){q=a[3][b];m=this.jg(q[1]);
e=null;f=0;for(h=this.plugins.length;f<h;f++)if(this.plugins[f]instanceof m){e=this.plugins[f];break}l=new e.N(e);l.name=q[0];l.V=q[2];l.Fq=q[3].slice(0);l.ZE=q[3].length;l.IA=q[4];l.jC=q[5];l.wa=q[11];l.V?(l.He=[],l.Ye=this.dk++,l.gb=null):(l.He=null,l.Ye=-1,l.gb=[]);l.ek=null;l.Ai=null;l.qu=null;l.Ec=!1;l.dd=null;q[6]?(l.Sl=q[6][0],l.Tl=q[6][1],l.yj=q[6][2]):(l.Sl=null,l.Tl=0,l.yj=0);q[7]?l.cd=q[7]:l.cd=null;l.index=b;l.u=[];l.Sm=[];l.bg=[new yb(l)];l.We=0;l.Sd=null;l.ju=0;l.wj=!0;l.Xo=zb;l.tn=
Ab;l.wC=Bb;l.xa=Cb;l.xl=Db;l.yl=Eb;l.Vg=Hb;l.rn=Ib;l.nq=Jb;l.pq=Kb;l.Pd=Lb;l.qq=Mb;l.Im=new pb(this.fb,this.eb);l.vm=!0;l.wm=!1;l.W={};l.toString=Nb;l.hb=[];f=0;for(h=q[8].length;f<h;f++){r=q[8][f];g=this.jg(r[1]);u=null;m=0;for(c=this.hb.length;m<c;m++)if(this.hb[m]instanceof g){u=this.hb[m];break}u||(u=new g(this),u.Tn=[],u.Th=new ea,u.K&&u.K(),this.hb.push(u),xc&&u instanceof xc&&(this.Ww=u),oc.mD&&u instanceof oc.mD&&(this.hv=u));-1===u.Tn.indexOf(l)&&u.Tn.push(l);m=new u.N(u,l);m.name=r[0];m.wa=
r[2];m.K();l.hb.push(m)}l.global=q[9];l.Jq=q[10];l.ka=[];f=0;for(h=q[12].length;f<h;f++)l.ka.push({id:q[12][f][0],name:q[12][f][1],Ib:-1,Je:!1,xc:!0,index:f});l.Po=q[13];this.Ds&&!l.V&&!l.Jq&&e.Ig||l.K();l.name&&(this.types[l.name]=l);this.P.push(l);e.Jo&&(f=new e.M(l),f.uid=this.el++,f.ww=this.Wv++,f.Bh=0,f.pk=Ob,f.toString=Pb,f.q=q[14],f.K(),l.u.push(f),this.Rf[f.uid.toString()]=f)}b=0;for(d=a[4].length;b<d;b++)for(m=a[4][b],c=this.P[m[0]],f=1,h=m.length;f<h;f++)q=this.P[m[f]],q.gb.push(c),c.He.push(q);
b=0;for(d=a[28].length;b<d;b++){m=a[28][b];c=[];f=0;for(h=m.length;f<h;f++)c.push(this.P[m[f]]);f=0;for(h=c.length;f<h;f++)c[f].Ec=!0,c[f].dd=c}if(0<this.dk)for(b=0,d=this.P.length;b<d;b++)if(q=this.P[b],!q.V&&q.gb.length){q.ek=Array(this.dk);q.Ai=Array(this.dk);q.qu=Array(this.dk);l=[];f=u=g=r=0;for(h=q.gb.length;f<h;f++)for(e=q.gb[f],q.ek[e.Ye]=r,r+=e.ZE,q.Ai[e.Ye]=g,g+=e.IA,q.qu[e.Ye]=u,u+=e.jC,m=0,c=e.ka.length;m<c;m++)l.push(Ea({},e.ka[m]));q.ka=l.concat(q.ka);f=0;for(h=q.ka.length;f<h;f++)q.ka[f].index=
f}b=0;for(d=a[5].length;b<d;b++)q=a[5][b],f=new Qb(this,q),this.aj[f.name]=f,this.De.push(f);b=0;for(d=a[6].length;b<d;b++)q=a[6][b],f=new Rb(this,q),this.cq[f.name]=f,this.Ff.push(f);b=0;for(d=this.Ff.length;b<d;b++)this.Ff[b].tb();b=0;for(d=this.Ff.length;b<d;b++)this.Ff[b].zs();b=0;for(d=this.Vo.length;b<d;b++)this.Vo[b].tb();I(this.Vo);this.GA=a[7];this.fk=a[8];this.Wc=a[9];this.Rj=1;this.vB=a[13];this.Ua=a[14];this.bu=a[15];this.VE=a[17];this.xr=a[20];this.HA=0<this.xr;this.TD=a[22];this.ud=
this.Dx=a[23];this.oB=a[24];this.$D=a[25];this.Va=a[27]&&!this.bf;this.Ko=Date.now();I(this.Vn);this.VC()};var d=!1,h=0,u=[];g.prototype.iE=function(a,b){function d(){h--;f.Kv()}var f=this;a.addEventListener("load",d);a.addEventListener("error",d);u.push([a,b]);this.Kv()};g.prototype.Kv=function(){for(var a;u.length&&100>h;)h++,a=u.shift(),this.Hw(a[0],a[1])};g.prototype.dp=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){d=a.Vt=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",b)};this.we?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(f){d=a.Vt=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.iE(a,b)));this.Fj.push(a)};g.prototype.gC=function(a){var b,d;b=0;for(d=this.Fj.length;b<d;b++)if(this.Fj[b].SA===a)return this.Fj[b];return null};var f=0,l=!1;g.prototype.NC=function(){this.pi&&(f=this.pi.BE(this.GA))};g.prototype.Qt=function(){var a=
f,b=0,d=0,h=!0,m,q,d=0;for(m=this.Fj.length;d<m;d++){q=this.Fj[d];var c=q.Lm;if(!c||0>=c)c=5E4;a+=c;q.src&&(q.complete||q.loaded)&&!q.Vt?b+=c:h=!1}h&&this.$D&&this.pi&&(l||(this.pi.HE(),l=!0),d=this.pi.xC(),b+=d,d<f&&(h=!1));this.Ke=0==a?1:b/a;return h};var F=!1;g.prototype.go=function(){if(this.Ya||this.I){var a=this.Ya||this.yr;this.oc&&this.pw();var b=window.innerWidth,f=window.innerHeight;this.Zi===b&&this.Yi===f||this.setSize(b,f);this.Ke=0;this.ov=-1;var h=this;if(this.Qt()&&(4!==this.Pg||F))this.OC();
else{f=Date.now()-this.Ko;if(a){var m=this.width,q=this.height,b=this.devicePixelRatio;if(3>this.Pg&&(this.yd||500<=f&&this.ov!=this.Ke)){a.clearRect(0,0,m,q);var f=m/2,q=q/2,m=0===this.Pg&&this.Og.Pn.complete,c=40*b,l=0,e=80*b,g;if(m){var u=this.Og.Pn,e=u.width*b;g=u.height*b;c=e/2;l=g/2;a.drawImage(u,x(f-c),x(q-l),e,g)}1>=this.Pg?(f=x(f-c)+.5,q=x(q+(l+(m?12*b:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(f,q,Math.floor(e*this.Ke),6*b),a.strokeStyle="black",a.strokeRect(f,q,e,6*b),a.strokeStyle=
"white",a.strokeRect(f-1*b,q-1*b,e+2*b,8*b)):2===this.Pg&&(a.font=this.we?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.oG="middle",b=Math.round(100*this.Ke)+"%",m=a.measureText?a.measureText(b):null,a.fillText(b,f-(m?m.width:0)/2,q));this.ov=this.Ke}else if(4===this.Pg){this.tB(a);r?r(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.yd?10:100)}}};var z=-1,m="undefined"===typeof cr_is_preview?200:0,v=!0,E=!1,q=0,D=0,aa="undefined"===typeof cr_is_preview?
3E3:0,M=null,B=null,C=0;g.prototype.tB=function(a){if(!F){for(var b=Math.ceil(this.width),f=Math.ceil(this.height),h=this.Og.Pn,c=this.Og.ZD,l=this.Og.bF,e=0;4>e;++e)if(!h[e].complete||!c[e].complete||!l[e].complete)return;0===C&&(z=Date.now());var e=Date.now(),r=!1,g=a,u,k;v||E?(a.clearRect(0,0,b,f),M&&M.width===b&&M.height===f||(M=document.createElement("canvas"),M.width=b,M.height=f,B=M.getContext("2d")),g=B,r=!0,v&&1===C&&(z=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,b,
f);256<this.Yj?(u=Ma(.22*f,105,.6*b),k=.25*u,g.drawImage(p(c,u),.5*b-u/2,.2*f-k/2,u,k),k=u=Math.min(.395*f,.95*b),g.drawImage(p(h,u),.5*b-u/2,.485*f-k/2,u,k),u=Ma(.22*f,105,.6*b),k=.25*u,g.drawImage(p(l,u),.5*b-u/2,.868*f-k/2,u,k),g.fillStyle="#3C3C3C",u=b,k=Math.max(.005*f,2),g.fillRect(0,.8*f-k/2,u,k),g.fillStyle=d?"red":"#E0FF65",u=b*this.Ke,g.fillRect(.5*b-u/2,.8*f-k/2,u,k)):(k=u=.55*f,g.drawImage(p(h,u),.5*b-u/2,.45*f-k/2,u,k),g.fillStyle="#3C3C3C",u=b,k=Math.max(.005*f,2),g.fillRect(0,.85*f-
k/2,u,k),g.fillStyle=d?"red":"#E0FF65",u=b*this.Ke,g.fillRect(.5*b-u/2,.85*f-k/2,u,k));r&&(v?a.globalAlpha=0===C?0:Math.min((e-z)/300,1):E&&(a.globalAlpha=Math.max(1-(e-D)/300,0)),a.drawImage(M,0,0,b,f));v&&300<=e-z&&2<=C&&(v=!1,q=e);!v&&e-q>=aa&&!E&&1<=this.Ke&&(E=!0,D=e);if(E&&e-D>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.Ke&&500>Date.now()-z)F=!0,E=v=!1,this.Og=B=M=null;++C}};g.prototype.OC=function(){this.oc&&(this.canvas.parentNode.removeChild(this.oc),this.oc=this.yr=null);this.Ko=
Date.now();this.Lh=gb();var a,b,d;if(this.Ds)for(a=0,b=this.P.length;a<b;a++)d=this.P[a],d.V||d.Jq||!d.da.Ig||d.K();else this.Ui=!1;a=0;for(b=this.De.length;a<b;a++)this.De[a].TA();2<=this.Ac&&(a=this.fb/this.eb,b=this.width/this.height,this.Rj=2!==this.Ac&&b>a||2===this.Ac&&b<a?this.height/this.eb:this.width/this.fb);this.xu?this.aj[this.xu].as():this.De[0].as();this.Ds||(this.Pk=1,this.trigger(R.prototype.k.$s,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.DD&&d.DD();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ha(!1);this.Dc&&AppMobi.webview.execute("onGameReady();")};g.prototype.Ha=function(a,b,d){if(this.Ka){var f=gb();if(d||!this.Gh||a){a||(r?this.Ir=r(this.cx):this.qs=setTimeout(this.cx,this.cf?1:16));b=b||f;var h=this.Ac;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.zd)||this.Cn)&&0<this.Ci&&(h=this.Ci);if(0<h){var h=window.innerWidth,m=window.innerHeight;this.Zi===h&&this.Yi===m||this.setSize(h,m)}this.O||(d?this.hn||(this.hn=!0):this.hn?(this.hn=!1,0===this.Ac&&this.setSize(Math.round(this.aw/this.devicePixelRatio),Math.round(this.$v/this.devicePixelRatio),!0)):(this.aw=this.width,this.$v=this.height));this.Ui&&(d=this.Qt(),this.Pk=this.Ke,d&&(this.Ui=!1,this.Ke=1,this.trigger(R.prototype.k.$s,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.pD(b);
!this.ma&&!this.yd||this.Nq||this.Ol||a||(this.ma=!1,this.I?this.bb():this.Ub(),this.Ml&&(this.canvas&&this.canvas.toDataURL&&(this.Vw=this.canvas.toDataURL(this.Ml[0],this.Ml[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Vw),this.trigger(R.prototype.k.Yy,null)),this.Ml=null));this.$F||(this.Id++,this.sh++,this.pn++);this.Wk+=gb()-f}}};g.prototype.pD=function(a){var b,d,f,h,m,q,c,l;1E3<=a-this.Lh&&(this.Lh+=1E3,1E3<=a-this.Lh&&(this.Lh=a),this.jq=this.pn,this.pn=0,this.Op=this.Wk,this.Wk=0);
b=0;0!==this.Hn&&(b=a-this.Hn,0>b&&(b=0),this.Bg=b/=1E3,.5<this.Bg?this.Bg=0:this.Bg>1/this.Ov&&(this.Bg=1/this.Ov));this.Hn=a;this.oh=this.Bg*this.dh;this.Ob.add(this.oh);this.fg.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Cn)&&!this.zd;2<=this.Ac||a&&0<this.Ci?(b=this.fb/this.eb,d=this.width/this.height,f=this.Ac,a&&0<this.Ci&&(f=this.Ci),this.Rj=2!==f&&d>b||2===f&&d<b?this.height/this.eb:this.width/this.fb,this.Ka&&(this.Ka.Sr(this.Ka.scrollX),
this.Ka.Tr(this.Ka.scrollY))):this.Rj=this.Fh?this.devicePixelRatio:1;this.wc();this.Ad++;this.qf.sE();this.Ad--;this.wc();this.Ad++;d=this.nr.fe();a=0;for(b=d.length;a<b;a++)d[a].cE();a=0;for(b=this.P.length;a<b;a++)if(q=this.P[a],!q.V&&(q.hb.length||q.gb.length))for(d=0,f=q.u.length;d<f;d++)for(c=q.u[d],h=0,m=c.Z.length;h<m;h++)c.Z[h].Ha();a=0;for(b=this.P.length;a<b;a++)if(q=this.P[a],!q.V&&(q.hb.length||q.gb.length))for(d=0,f=q.u.length;d<f;d++)for(c=q.u[d],h=0,m=c.Z.length;h<m;h++)l=c.Z[h],l.qw&&
l.qw();d=this.or.fe();a=0;for(b=d.length;a<b;a++)d[a].Ha();this.Ad--;this.QC();for(a=0;this.jh&&10>a++;)this.lu(this.jh);a=0;for(b=this.Ff.length;a<b;a++)this.Ff[a].zq=!1;this.Ka.qh&&this.Ka.qh.Hb();I(this.$h);this.Yq=!1;this.Ad++;a=0;for(b=this.P.length;a<b;a++)if(q=this.P[a],!q.V&&(q.hb.length||q.gb.length))for(d=0,f=q.u.length;d<f;d++)for(c=q.u[d],h=0,m=c.Z.length;h<m;h++)l=c.Z[h],l.zj&&l.zj();d=this.pr.fe();a=0;for(b=d.length;a<b;a++)d[a].zj();this.Ad--};g.prototype.Tf=function(){var a,b,d,f,
h,m,q,c,l;a=0;for(b=this.P.length;a<b;a++)if(q=this.P[a],!q.V)for(d=0,f=q.u.length;d<f;d++)if(c=q.u[d],c.Tf&&c.Tf(),c.Z)for(h=0,m=c.Z.length;h<m;h++)l=c.Z[h],l.Tf&&l.Tf()};g.prototype.lu=function(a){var b=this.Ka;this.Ka.IE();var d,f,h;if(this.I)for(d=0,f=this.P.length;d<f;d++)h=this.P[d],h.V||!h.Wl||h.global&&0!==h.u.length||-1!==a.vk.indexOf(h)||h.Wl();b==a&&I(this.qf.bd);I(this.$h);this.Bw(!0);a.as();this.Bw(!1);this.Yq=this.ma=!0;this.wc()};g.prototype.Bw=function(a){var b,d,f,h,m,q,c,l,e;b=0;
for(d=this.hb.length;b<d;b++)f=this.hb[b],a?f.kj&&f.kj():f.jl&&f.jl();b=0;for(d=this.P.length;b<d;b++)if(f=this.P[b],f.global||f.da.Jo)for(h=0,m=f.u.length;h<m;h++)if(q=f.u[h],a?q.kj&&q.kj():q.jl&&q.jl(),q.Z)for(c=0,l=q.Z.length;c<l;c++)e=q.Z[c],a?e.kj&&e.kj():e.jl&&e.jl()};g.prototype.dE=function(a){this.nr.add(a)};g.prototype.Hd=function(a){this.or.add(a)};g.prototype.ME=function(a){this.pr.add(a)};g.prototype.Eg=function(a){return a&&-1!==a.dl?this.Bg*a.dl:this.oh};g.prototype.Ub=function(){this.Ka.Ub(this.Ya);
this.Dc&&this.Ya.present()};g.prototype.bb=function(){this.Va&&(this.ph=1,this.Ka.Cf(this.I));this.Ka.bb(this.I);this.I.bE()};g.prototype.Nj=function(a){a&&this.Xm.push(a)};g.prototype.zw=function(a){La(this.Xm,a)};g.prototype.Fg=function(a){a=a.toString();return this.Rf.hasOwnProperty(a)?this.Rf[a]:null};var K=[];g.prototype.Ld=function(a){var b,d;b=a.type.name;var f=null;if(this.nh.hasOwnProperty(b)){if(f=this.nh[b],f.contains(a))return}else f=K.length?K.pop():new ea,this.nh[b]=f;f.add(a);this.Gg=
!0;if(a.Ec)for(b=0,d=a.siblings.length;b<d;b++)this.Ld(a.siblings[b]);this.Iq&&f.Dj.push(a);this.Hq||(this.Ad++,this.trigger(Object.getPrototypeOf(a.type.da).k.Ss,a),this.Ad--)};g.prototype.wc=function(){if(this.Gg){var a,b,d,f,h,q;this.Iq=!0;d=0;for(h=this.ue.length;d<h;++d)for(a=this.ue[d],b=a.type,b.u.push(a),f=0,q=b.gb.length;f<q;++f)b.gb[f].u.push(a),b.gb[f].wj=!0;I(this.ue);this.Iy();fb(this.nh);this.Gg=this.Iq=!1}};g.prototype.Iy=function(){for(var a in this.nh)this.nh.hasOwnProperty(a)&&this.Rx(this.nh[a])};
g.prototype.Rx=function(a){var b=a.fe(),d=b[0].type,f,h,q,m,c,l;hb(d.u,a);d.wj=!0;0===d.u.length&&(d.wm=!1);f=0;for(h=d.gb.length;f<h;++f)l=d.gb[f],hb(l.u,a),l.wj=!0;f=0;for(h=this.qf.bd.length;f<h;++f)if(c=this.qf.bd[f],c.Kc.hasOwnProperty(d.index)&&hb(c.Kc[d.index].Hf,a),!d.V)for(q=0,m=d.gb.length;q<m;++q)l=d.gb[q],c.Kc.hasOwnProperty(l.index)&&hb(c.Kc[l.index].Hf,a);if(c=b[0].A){if(c.Kd)for(q=c.u,f=0,h=q.length;f<h;++f)m=q[f],a.contains(m)&&(m.na(),c.rc.update(m,m.Yc,null),m.Yc.set(0,0,-1,-1));
hb(c.u,a);c.Hl(0)}for(f=0;f<b.length;++f)this.Qx(b[f],d);a.clear();K.push(a);this.ma=!0};g.prototype.Qx=function(a,b){var d,f,h;d=0;for(f=this.Xm.length;d<f;++d)this.Xm[d](a);a.wg&&b.Im.update(a,a.wg,null);(d=a.A)&&d.qj(a,!0);if(a.Z)for(d=0,f=a.Z.length;d<f;++d)h=a.Z[d],h.Gc&&h.Gc(),h.behavior.Th.remove(a);this.nr.remove(a);this.or.remove(a);this.pr.remove(a);a.Gc&&a.Gc();this.Rf.hasOwnProperty(a.uid.toString())&&delete this.Rf[a.uid.toString()];this.Wn--;100>b.Sm.length&&b.Sm.push(a)};g.prototype.Mm=
function(a,b,d,f){if(a.V){var h=x(Math.random()*a.He.length);return this.Mm(a.He[h],b,d,f)}return a.Sd?this.yg(a.Sd,b,!1,d,f,!1):null};var P=[];g.prototype.yg=function(a,b,d,f,h,q){var m,c,l,e;if(!a)return null;var g=this.P[a[1]],r=g.da.Ig;if(this.Ui&&r&&!g.Jq||r&&!this.I&&11===a[0][11])return null;var u=b;r||(b=null);var k;g.Sm.length?(k=g.Sm.pop(),k.$b=!0,g.da.M.call(k,g)):(k=new g.da.M(g),k.$b=!1);!d||q||this.Rf.hasOwnProperty(a[2].toString())?k.uid=this.el++:k.uid=a[2];this.Rf[k.uid.toString()]=
k;k.ww=this.Wv++;k.Bh=g.u.length;m=0;for(c=this.ue.length;m<c;++m)this.ue[m].type===g&&k.Bh++;k.pk=Ob;k.toString=Pb;l=a[3];if(k.$b)fb(k.W);else{k.W={};if("undefined"!==typeof cr_is_preview)for(k.Tu=[],k.Tu.length=l.length,m=0,c=l.length;m<c;m++)k.Tu[m]=l[m][1];k.Wa=[];k.Wa.length=l.length}m=0;for(c=l.length;m<c;m++)k.Wa[m]=l[m][0];if(r){var D=a[0];k.x=la(f)?D[0]:f;k.y=la(h)?D[1]:h;k.z=D[2];k.width=D[3];k.height=D[4];k.depth=D[5];k.B=D[6];k.opacity=D[7];k.Bc=D[8];k.Cc=D[9];k.zc=D[10];m=D[11];!this.I&&
g.ka.length&&(k.zc=m);k.Vj=rb(k.zc);this.S&&sb(k,k.zc,this.S);if(k.$b){m=0;for(c=D[12].length;m<c;m++)for(l=0,e=D[12][m].length;l<e;l++)k.jb[m][l]=D[12][m][l];k.qa.set(0,0,0,0);k.wg.set(0,0,-1,-1);k.Yc.set(0,0,-1,-1);k.fc.Yg(k.qa);I(k.Ep)}else{k.jb=D[12].slice(0);m=0;for(c=k.jb.length;m<c;m++)k.jb[m]=D[12][m].slice(0);k.La=[];k.mg=[];k.mg.length=g.ka.length;k.qa=new xa(0,0,0,0);k.wg=new xa(0,0,-1,-1);k.Yc=new xa(0,0,-1,-1);k.fc=new ya;k.Ep=[];k.J=Sb;k.VF=Tb;k.Tb=Ub;k.na=Wb;k.UE=Xb;k.Ax=Yb;k.Ud=Zb}k.fi=
!1;k.jx=0;k.ix=0;k.hx=null;14===D.length&&(k.fi=!0,k.jx=D[13][0],k.ix=D[13][1],k.hx=D[13][2]);m=0;for(c=g.ka.length;m<c;m++)k.mg[m]=!0;k.Yf=!0;k.Se=$b;k.Se();k.Bx=!!k.La.length;k.Dp=!0;k.Kp=!0;g.vm=!0;k.visible=!0;k.dl=-1;k.A=b;k.Te=b.u.length;k.ph=0;"undefined"===typeof k.Ca&&(k.Ca=null);this.ma=k.Ve=!0}var v;I(P);m=0;for(c=g.gb.length;m<c;m++)P.push.apply(P,g.gb[m].hb);P.push.apply(P,g.hb);if(k.$b)for(m=0,c=P.length;m<c;m++){var t=P[m];v=k.Z[m];v.$b=!0;t.behavior.M.call(v,t,k);D=a[4][m];l=0;for(e=
D.length;l<e;l++)v.q[l]=D[l];v.K();t.behavior.Th.add(k)}else for(k.Z=[],m=0,c=P.length;m<c;m++)t=P[m],v=new t.behavior.M(t,k),v.$b=!1,v.q=a[4][m].slice(0),v.K(),k.Z.push(v),t.behavior.Th.add(k);D=a[5];if(k.$b)for(m=0,c=D.length;m<c;m++)k.q[m]=D[m];else k.q=D.slice(0);this.ue.push(k);this.Gg=!0;b&&(b.Qj(k,!0),1!==b.Uc||1!==b.Vc)&&(g.wm=!0);this.Wn++;if(g.Ec){if(k.Ec=!0,k.$b?I(k.siblings):k.siblings=[],!d&&!q){m=0;for(c=g.dd.length;m<c;m++)if(g.dd[m]!==g){if(!g.dd[m].Sd)return null;k.siblings.push(this.yg(g.dd[m].Sd,
u,!1,r?k.x:f,r?k.y:h,!0))}m=0;for(c=k.siblings.length;m<c;m++)for(k.siblings[m].siblings.push(k),l=0;l<c;l++)m!==l&&k.siblings[m].siblings.push(k.siblings[l])}}else k.Ec=!1,k.siblings=null;k.K();m=0;for(c=k.Z.length;m<c;m++)k.Z[m].YD&&k.Z[m].YD();return k};g.prototype.lk=function(a){var b,d;b=0;for(d=this.Ka.la.length;b<d;b++){var f=this.Ka.la[b];if(ub(f.name,a))return f}return null};g.prototype.Gf=function(a){a=x(a);0>a&&(a=0);a>=this.Ka.la.length&&(a=this.Ka.la.length-1);return this.Ka.la[a]};g.prototype.Mp=
function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].xa().Ga=!0};g.prototype.xl=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].xl()};g.prototype.yl=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].yl()};g.prototype.Vg=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Vg()};g.prototype.xx=function(a){if(a.vm){var b,d,f=a.u;b=0;for(d=f.length;b<d;++b)f[b].Ax();f=this.ue;b=0;for(d=f.length;b<d;++b)f[b].type===a&&f[b].Ax();a.vm=!1}};g.prototype.sn=function(a,b,d,f){var h,m,c=a?1!==a.Uc||1!==
a.Vc:!1;if(b.V)for(a=0,h=b.He.length;a<h;++a)m=b.He[a],c||m.wm?Ia(f,m.u):(this.xx(m),m.Im.ro(d,f));else c||b.wm?Ia(f,b.u):(this.xx(b),b.Im.ro(d,f))};g.prototype.uq=function(a,b,d,f){var h,m;h=0;for(m=b.length;h<m;++h)this.sn(a,b[h],d,f)};g.prototype.Ju=function(a,b,d){var f=this.Ww;f&&this.uq(a,f.Tn,b,d)};g.prototype.uC=function(a,b,d){var f=this.hv;f&&this.uq(a,f.Tn,b,d)};g.prototype.xj=function(a,b,d,f){var h=a.xa(),m,c,q,l,e=this.sb().zb.Dd,k,g,r;if(h.Ga)for(f||(h.Ga=!1,I(h.u)),m=0,l=a.u.length;m<
l;m++)if(q=a.u[m],q.na(),k=q.A.$a(b,d,!0),g=q.A.$a(b,d,!1),q.Tb(k,g)){if(f)return!1;h.u.push(q)}else e&&h.Aa.push(q);else{c=0;r=e?h.Aa:h.u;m=0;for(l=r.length;m<l;m++)if(q=r[m],q.na(),k=q.A.$a(b,d,!0),g=q.A.$a(b,d,!1),q.Tb(k,g)){if(f)return!1;e?h.u.push(q):(h.u[c]=h.u[m],c++)}f||(r.length=c)}a.Pd();return f?!0:h.yq()};g.prototype.Lc=function(a,b){if(!(a&&b&&a!==b&&a.Ve&&b.Ve))return!1;a.na();b.na();var d=a.A,f=b.A,h,m,c,q,l,e,k,g;if(d===f||d.Uc===f.Uc&&f.Vc===f.Vc&&d.scale===f.scale&&d.B===f.B&&d.Ic===
f.Ic){if(!a.qa.Uu(b.qa)||!a.fc.Gq(b.fc)||a.fi&&b.fi)return!1;if(a.fi)return this.$w(a,b);if(b.fi)return this.$w(b,a);k=a.Ca&&!a.Ca.Hh();h=b.Ca&&!b.Ca.Hh();if(!k&&!h)return!0;k?(a.Ca.tg(a.width,a.height,a.B),k=a.Ca):(this.ad.ci(a.fc,a.x,a.y,a.width,a.height),k=this.ad);h?(b.Ca.tg(b.width,b.height,b.B),g=b.Ca):(this.ad.ci(b.fc,b.x,b.y,b.width,b.height),g=this.ad);return k.Dh(g,b.x-a.x,b.y-a.y)}k=a.Ca&&!a.Ca.Hh();h=b.Ca&&!b.Ca.Hh();k?(a.Ca.tg(a.width,a.height,a.B),this.ad.Nw(a.Ca)):this.ad.ci(a.fc,a.x,
a.y,a.width,a.height);k=this.ad;h?(b.Ca.tg(b.width,b.height,b.B),this.ds.Nw(b.Ca)):this.ds.ci(b.fc,b.x,b.y,b.width,b.height);g=this.ds;h=0;for(m=k.nd;h<m;h++)c=2*h,q=c+1,l=k.Xa[c],e=k.Xa[q],k.Xa[c]=d.ca(l+a.x,e+a.y,!0),k.Xa[q]=d.ca(l+a.x,e+a.y,!1);k.na();h=0;for(m=g.nd;h<m;h++)c=2*h,q=c+1,l=g.Xa[c],e=g.Xa[q],g.Xa[c]=f.ca(l+b.x,e+b.y,!0),g.Xa[q]=f.ca(l+b.x,e+b.y,!1);g.na();return k.Dh(g,0,0)};var Z=new ya;new xa(0,0,0,0);var S=[];g.prototype.$w=function(a,b){var d,f,h,m,c=b.qa,q=a.x,l=a.y;a.Bu(c,S);
var e=b.Ca&&!b.Ca.Hh();d=0;for(f=S.length;d<f;++d)if(h=S[d],m=h.Ma,c.Vu(m,q,l)&&(Z.Yg(m),Z.offset(q,l),Z.Gq(b.fc)))if(e)if(b.Ca.tg(b.width,b.height,b.B),h.Ie){if(h.Ie.Dh(b.Ca,b.x-(q+m.left),b.y-(l+m.top)))return I(S),!0}else{if(this.ad.ci(Z,0,0,m.right-m.left,m.bottom-m.top),this.ad.Dh(b.Ca,b.x,b.y))return I(S),!0}else if(h.Ie){if(this.ad.ci(b.fc,0,0,b.width,b.height),h.Ie.Dh(this.ad,-(q+m.left),-(l+m.top)))return I(S),!0}else return I(S),!0;I(S);return!1};g.prototype.es=function(a,b){if(!b||!b.Ve)return!1;
b.na();if(!b.qa.Uu(a))return!1;if(b.fi){b.Bu(a,S);var d,f,h,m,c=b.x,q=b.y;d=0;for(f=S.length;d<f;++d)if(h=S[d],m=h.Ma,a.Vu(m,c,q))if(h.Ie){if(this.ad.Yg(a,0,0),h.Ie.Dh(this.ad,-(c+m.left),-(q+m.top)))return I(S),!0}else return I(S),!0;I(S);return!1}Z.Yg(a);if(!b.fc.Gq(Z))return!1;if(!b.Ca||b.Ca.Hh())return!0;b.Ca.tg(b.width,b.height,b.B);Z.offset(-a.left,-a.top);this.ad.ci(Z,0,0,1,1);return b.Ca.Dh(this.ad,a.left-b.x,a.top-b.y)};g.prototype.ws=function(a,b){if(!b)return!1;var d,f,h,m,c;d=0;for(f=
a.hb.length;d<f;d++)if(a.hb[d].behavior instanceof b)return!0;if(!a.V)for(d=0,f=a.gb.length;d<f;d++)for(c=a.gb[d],h=0,m=c.hb.length;h<m;h++)if(c.hb[h].behavior instanceof b)return!0;return!1};g.prototype.xs=function(a){return this.ws(a,oc.yF)};g.prototype.ys=function(a){return this.ws(a,oc.zF)};var O=[];g.prototype.pb=function(a){var b,d,f;a.na();this.Ju(a.A,a.qa,O);b=0;for(d=O.length;b<d;++b)if(f=O[b],f.W.solidEnabled&&this.Lc(a,f))return I(O),f;I(O);return null};g.prototype.LE=function(a){var b,
d,f;this.Ju(null,a,O);b=0;for(d=O.length;b<d;++b)if(f=O[b],f.W.solidEnabled&&this.es(a,f))return I(O),f;I(O);return null};var y=[];g.prototype.$g=function(a,b){var d=null;b&&(d=y,I(d));a.na();this.uC(a.A,a.qa,O);var f,h,m;f=0;for(h=O.length;f<h;++f)if(m=O[f],m.W.jumpthruEnabled&&this.Lc(a,m))if(b)d.push(m);else return I(O),m;I(O);return d};g.prototype.od=function(a,b,d,f,h,m){f=f||50;var c=a.x,q=a.y,l,e=null,k=null;for(l=0;l<f;l++)if(a.x=c+b*l,a.y=q+d*l,a.J(),!this.Lc(a,e)&&((e=this.pb(a))&&(k=e),
!e&&(h&&(m?e=this.Lc(a,m)?m:null:e=this.$g(a),e&&(k=e)),!e)))return k&&this.qo(a,b,d,k),!0;a.x=c;a.y=q;a.J();return!1};g.prototype.Fr=function(a,b,d,f){f=f||50;var h=a.x,m=a.y,c=null,q=null,l,e,k;for(l=0;l<f;++l)for(e=0;2>e;++e)if(k=2*e-1,a.x=h+b*l*k,a.y=m+d*l*k,a.J(),!this.Lc(a,c))if(c=this.pb(a))q=c;else return q&&this.qo(a,b*k,d*k,q),!0;a.x=h;a.y=m;a.J();return!1};g.prototype.qo=function(a,b,d,f){var h=2,m,c=!1;m=!1;for(var q=a.x,l=a.y;16>=h;)m=1/h,h*=2,a.x+=b*m*(c?1:-1),a.y+=d*m*(c?1:-1),a.J(),
this.Lc(a,f)?m=c=!0:(m=c=!1,q=a.x,l=a.y);m&&(a.x=q,a.y=l,a.J())};g.prototype.Gr=function(a,b){var d=la(b)?100:b,f=0,h=a.x,m=a.y,c=0,q=0,l=0,e=this.pb(a);if(!e)return!0;for(;f<=d;){switch(c){case 0:q=0;l=-1;f++;break;case 1:q=1;l=-1;break;case 2:q=1;l=0;break;case 3:l=q=1;break;case 4:q=0;l=1;break;case 5:q=-1;l=1;break;case 6:q=-1;l=0;break;case 7:l=q=-1}c=(c+1)%8;a.x=x(h+q*f);a.y=x(m+l*f);a.J();if(!this.Lc(a,e)&&(e=this.pb(a),!e))return!0}a.x=h;a.y=m;a.J();return!1};g.prototype.Fd=function(a,b){a.Ve&&
b.Ve&&this.$h.push([a,b])};g.prototype.AA=function(a,b,d){var f,h,m;f=0;for(h=this.$h.length;f<h;++f){m=this.$h[f];if(m[0]===a)m=m[1];else if(m[1]===a)m=m[0];else continue;if(b.V){if(-1===b.He.indexOf(b))continue}else if(m.type!==b)continue;-1===d.indexOf(m)&&d.push(m)}};g.prototype.OA=function(a,b){var d,f,h;d=0;for(f=this.$h.length;d<f;d++)if(h=this.$h[d],h[0]===a&&h[1]===b||h[0]===b&&h[1]===a)return!0;return!1};g.prototype.MA=function(a,b,d){var f=a.x,h=a.y,m=ra(10,ab(b,d,f,h)),c=Ua(b,d,f,h),q=
this.pb(a);if(!q)return Pa(c+ua);var l=q,e,k,g,r,u=J(5);for(e=1;36>e;e++)if(k=c-e*u,a.x=b+Math.cos(k)*m,a.y=d+Math.sin(k)*m,a.J(),!this.Lc(a,l)&&(l=this.pb(a),!l)){g=k;break}36===e&&(g=Pa(c+ua));l=q;for(e=1;36>e;e++)if(k=c+e*u,a.x=b+Math.cos(k)*m,a.y=d+Math.sin(k)*m,a.J(),!this.Lc(a,l)&&(l=this.pb(a),!l)){r=k;break}36===e&&(r=Pa(c+ua));a.x=f;a.y=h;a.J();if(r===g)return r;a=Va(r,g)/2;a=Xa(r,g)?Pa(g+a+ua):Pa(r+a);g=Math.cos(c);c=Math.sin(c);r=Math.cos(a);a=Math.sin(a);b=g*r+c*a;return Ua(0,0,g-2*b*
r,c-2*b*a)};var ha=-1;g.prototype.trigger=function(a,b,d){if(!this.Ka)return!1;var f=this.Ka.qh;if(!f)return!1;var h=!1,m,c,q;ha++;var l=f.Tp;c=0;for(q=l.length;c<q;++c)m=this.ox(a,b,l[c],d),h=h||m;m=this.ox(a,b,f,d);ha--;return h||m};g.prototype.ox=function(a,b,d,f){var h=!1,m,c,q,l;if(b)for(q=this.us(a,b,b.type.name,d,f),h=h||q,l=b.type.gb,m=0,c=l.length;m<c;++m)q=this.us(a,b,l[m].name,d,f),h=h||q;else q=this.us(a,b,"system",d,f),h=h||q;return h};g.prototype.us=function(a,b,d,f,h){var m,c=!1,q=
!1,q="undefined"!==typeof h,l=(q?f.su:f.qx)[d];if(!l)return c;var e=null;f=0;for(m=l.length;f<m;++f)if(l[f].method==a){e=l[f].bk;break}if(!e)return c;var k;q?k=e[h]:k=e;if(!k)return null;f=0;for(m=k.length;f<m;f++)a=k[f][0],h=k[f][1],q=this.bC(b,d,a,h),c=c||q;return c};g.prototype.bC=function(a,b,d,f){var h,m,c=!1;this.vs++;var q=this.sb().zb;q&&this.xl(q.Zg);var l=1<this.vs;this.xl(d.Zg);l&&this.fE();var e=this.po(d);e.zb=d;a&&(h=this.types[b].xa(),h.Ga=!1,I(h.u),h.u[0]=a,this.types[b].Pd());a=!0;
if(d.parent){b=e.Zw;for(h=d.parent;h;)b.push(h),h=h.parent;b.reverse();h=0;for(m=b.length;h<m;h++)if(!b[h].uE()){a=!1;break}}a&&(this.sh++,d.Dd?d.tE(f):d.Hb(),c=c||e.Kh);this.jo();l&&this.WD();this.Vg(d.Zg);q&&this.Vg(q.Zg);this.Gg&&0===this.Ad&&0===ha&&!this.Kq&&this.wc();this.vs--;return c};g.prototype.Ei=function(){var a=this.sb();return a.zb.Kb[a.yb]};g.prototype.YC=function(){return 0===this.sb().yb};g.prototype.pC=function(){var a=this.sb();return a.zb.Nd[a.Qc]};g.prototype.fE=function(){this.On++;
this.On>=this.hr.length&&this.hr.push([])};g.prototype.WD=function(){this.On--};g.prototype.Cu=function(){return this.hr[this.On]};g.prototype.po=function(a){this.an++;this.an>=this.bq.length&&this.bq.push(new ac);var b=this.sb();b.reset(a);return b};g.prototype.jo=function(){this.an--};g.prototype.sb=function(){return this.bq[this.an]};g.prototype.gE=function(){this.Yk++;this.Yk>=this.Xk.length&&this.Xk.push(ca({name:void 0,index:0,ac:!1}));var a=this.Du();a.name=void 0;a.index=0;a.ac=!1;return a};
g.prototype.XD=function(){this.Yk--};g.prototype.Du=function(){return this.Xk[this.Yk]};g.prototype.Eu=function(a,b){for(var d,f,h,m,c,q;b;){d=0;for(f=b.be.length;d<f;d++)if(q=b.be[d],q instanceof bc&&ub(a,q.name))return q;b=b.parent}d=0;for(f=this.Ff.length;d<f;d++)for(c=this.Ff[d],h=0,m=c.Cg.length;h<m;h++)if(q=c.Cg[h],q instanceof bc&&ub(a,q.name))return q;return null};g.prototype.Hu=function(a){var b,d;b=0;for(d=this.De.length;b<d;b++)if(this.De[b].wa===a)return this.De[b];return null};g.prototype.Fi=
function(a){var b,d;b=0;for(d=this.P.length;b<d;b++)if(this.P[b].wa===a)return this.P[b];return null};g.prototype.rC=function(a){var b,d;b=0;for(d=this.oi.length;b<d;b++)if(this.oi[b].wa===a)return this.oi[b];return null};g.prototype.YA=function(a,b){this.Ml=[a,b];this.ma=!0};g.prototype.QC=function(){var a=this,d=this.zo,f=this.Kf,h=this.Nk,m=!1;this.Sw&&(m=!0,d="__c2_continuouspreview",this.Sw=!1);if(d.length){this.wc();f=this.yE();if(n()&&!this.yd)e(d,f,function(){ja("Saved state to IndexedDB storage ("+
f.length+" bytes)");a.Kf=f;a.trigger(R.prototype.k.tp,null);f=a.Kf="";m&&b()},function(h){try{localStorage.setItem("__c2save_"+d,f),ja("Saved state to WebStorage ("+f.length+" bytes)"),a.Kf=f,a.trigger(R.prototype.k.tp,null),f=a.Kf="",m&&b()}catch(c){ja("Failed to save game state: "+h+"; "+c),a.trigger(R.prototype.k.kt,null)}});else try{localStorage.setItem("__c2save_"+d,f),ja("Saved state to WebStorage ("+f.length+" bytes)"),a.Kf=f,this.trigger(R.prototype.k.tp,null),f=a.Kf="",m&&b()}catch(c){ja("Error saving to WebStorage: "+
c),a.trigger(R.prototype.k.kt,null)}this.Nk=this.zo="";this.Rb=null}if(h.length){if(n()&&!this.yd)t(h,function(b){b?(a.Rb=b,ja("Loaded state from IndexedDB storage ("+a.Rb.length+" bytes)")):(a.Rb=localStorage.getItem("__c2save_"+h)||"",ja("Loaded state from WebStorage ("+a.Rb.length+" bytes)"));a.Ol=!1;a.Rb||(a.Rb=null,a.trigger(R.prototype.k.pm,null))},function(){a.Rb=localStorage.getItem("__c2save_"+h)||"";ja("Loaded state from WebStorage ("+a.Rb.length+" bytes)");a.Ol=!1;a.Rb||(a.Rb=null,a.trigger(R.prototype.k.pm,
null))});else{try{this.Rb=localStorage.getItem("__c2save_"+h)||"",ja("Loaded state from WebStorage ("+this.Rb.length+" bytes)")}catch(q){this.Rb=null}this.Ol=!1;a.Rb||(a.Rb=null,a.trigger(R.prototype.k.pm,null))}this.zo=this.Nk=""}null!==this.Rb&&(this.wc(),this.oD(this.Rb)?(this.Kf=this.Rb,this.trigger(R.prototype.k.lz,null),this.Kf=""):a.trigger(R.prototype.k.pm,null),this.Rb=null)};g.prototype.yE=function(){var b,d,f,h,m,c,q,l={c2save:!0,version:1,rt:{time:this.Ob.ea,walltime:this.fg.ea,timescale:this.dh,
tickcount:this.Id,execcount:this.sh,next_uid:this.el,running_layout:this.Ka.wa,start_time_offset:Date.now()-this.Ko},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(d=this.P.length;b<d;b++)if(m=this.P[b],!m.V&&!this.xs(m)){c={instances:[]};eb(m.W)&&(c.ex=a(m.W));f=0;for(h=m.u.length;f<h;f++)c.instances.push(this.Rr(m.u[f]));l.types[m.wa.toString()]=c}b=0;for(d=this.De.length;b<d;b++)f=this.De[b],l.layouts[f.wa.toString()]=f.Na();h=l.events.groups;b=0;for(d=this.oi.length;b<
d;b++)f=this.oi[b],h[f.wa.toString()]=this.Hi[f.qk].wh;d=l.events.cnds;for(q in this.vg)this.vg.hasOwnProperty(q)&&(b=this.vg[q],eb(b.W)&&(d[q]={ex:a(b.W)}));d=l.events.acts;for(q in this.ng)this.ng.hasOwnProperty(q)&&(b=this.ng[q],eb(b.W)&&(d[q]={ex:a(b.W)}));d=l.events.vars;for(q in this.Ej)this.Ej.hasOwnProperty(q)&&(b=this.Ej[q],b.En||b.parent&&!b.Fk||(d[q]=b.data));l.system=this.qf.Na();return JSON.stringify(l)};g.prototype.yw=function(){var a,b,d,f,h,m;this.Rf={};a=0;for(b=this.P.length;a<b;a++)if(d=
this.P[a],!d.V)for(f=0,h=d.u.length;f<h;f++)m=d.u[f],this.Rf[m.uid.toString()]=m};g.prototype.oD=function(a){var b;try{b=JSON.parse(a)}catch(d){return!1}if(!b.c2save||1<b.version)return!1;this.Bk=!0;a=b.rt;this.Ob.reset();this.Ob.ea=a.time;this.fg.reset();this.fg.ea=a.walltime||0;this.dh=a.timescale;this.Id=a.tickcount;this.sh=a.execcount;this.Ko=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.Ka.wa)if(f=this.Hu(f))this.lu(f);else return;var h,m,q,c,l,e,k;e=b.types;for(m in e)if(e.hasOwnProperty(m)&&
(c=this.Fi(parseInt(m,10)))&&!c.V&&!this.xs(c)){e[m].ex?c.W=e[m].ex:fb(c.W);l=c.u;q=e[m].instances;f=0;for(h=sa(l.length,q.length);f<h;f++)this.Kn(l[f],q[f]);f=q.length;for(h=l.length;f<h;f++)this.Ld(l[f]);f=l.length;for(h=q.length;f<h;f++){l=null;if(c.da.Ig&&(l=this.Ka.un(q[f].w.l),!l))continue;l=this.yg(c.Sd,l,!1,0,0,!0);this.Kn(l,q[f])}c.wj=!0}this.wc();this.yw();h=b.layouts;for(m in h)h.hasOwnProperty(m)&&(f=this.Hu(parseInt(m,10)))&&f.Sa(h[m]);h=b.events.groups;for(m in h)h.hasOwnProperty(m)&&
(f=this.rC(parseInt(m,10)))&&this.Hi[f.qk]&&this.Hi[f.qk].Do(h[m]);f=b.events.cnds;for(m in this.vg)this.vg.hasOwnProperty(m)&&(f.hasOwnProperty(m)?this.vg[m].W=f[m].ex:this.vg[m].W={});f=b.events.acts;for(m in this.ng)this.ng.hasOwnProperty(m)&&(f.hasOwnProperty(m)?this.ng[m].W=f[m].ex:this.ng[m].W={});f=b.events.vars;for(m in f)f.hasOwnProperty(m)&&this.Ej.hasOwnProperty(m)&&(this.Ej[m].data=f[m]);this.el=a.next_uid;this.Bk=!1;f=0;for(h=this.gn.length;f<h;++f)l=this.gn[f],this.trigger(Object.getPrototypeOf(l.type.da).k.lg,
l);I(this.gn);this.qf.Sa(b.system);f=0;for(h=this.P.length;f<h;f++)if(c=this.P[f],!c.V&&!this.xs(c))for(b=0,m=c.u.length;b<m;b++){l=c.u[b];if(c.Ec)for(e=l.pk(),I(l.siblings),a=0,q=c.dd.length;a<q;a++)k=c.dd[a],c!==k&&l.siblings.push(k.u[e]);l.Od&&l.Od();if(l.Z)for(a=0,q=l.Z.length;a<q;a++)e=l.Z[a],e.Od&&e.Od()}return this.ma=!0};g.prototype.Rr=function(b,d){var f,h,m,c,q;c=b.type;m=c.da;var l={};d?l.c2=!0:l.uid=b.uid;eb(b.W)&&(l.ex=a(b.W));if(b.Wa&&b.Wa.length)for(l.ivs={},f=0,h=b.Wa.length;f<h;f++)l.ivs[b.type.Fq[f].toString()]=
b.Wa[f];if(m.Ig){m={x:b.x,y:b.y,w:b.width,h:b.height,l:b.A.wa,zi:b.Ud()};0!==b.B&&(m.a=b.B);1!==b.opacity&&(m.o=b.opacity);.5!==b.Bc&&(m.hX=b.Bc);.5!==b.Cc&&(m.hY=b.Cc);0!==b.zc&&(m.bm=b.zc);b.visible||(m.v=b.visible);b.Ve||(m.ce=b.Ve);-1!==b.dl&&(m.mts=b.dl);if(c.ka.length)for(m.fx=[],f=0,h=c.ka.length;f<h;f++)q=c.ka[f],m.fx.push({name:q.name,active:b.mg[q.index],params:b.jb[q.index]});l.w=m}if(b.Z&&b.Z.length)for(l.behs={},f=0,h=b.Z.length;f<h;f++)c=b.Z[f],c.Na&&(l.behs[c.type.wa.toString()]=c.Na());
b.Na&&(l.data=b.Na());return l};g.prototype.tC=function(a,b){var d,f;d=0;for(f=a.Fq.length;d<f;d++)if(a.Fq[d]===b)return d;return-1};g.prototype.oC=function(a,b){var d,f;d=0;for(f=a.Z.length;d<f;d++)if(a.Z[d].type.wa===b)return d;return-1};g.prototype.Kn=function(a,b,d){var f,h,m,c,q;q=a.type;var l=q.da;if(d){if(!b.c2)return}else a.uid=b.uid;b.ex?a.W=b.ex:fb(a.W);if(h=b.ivs)for(f in h)h.hasOwnProperty(f)&&(m=this.tC(q,parseInt(f,10)),0>m||m>=a.Wa.length||(c=h[f],null===c&&(c=NaN),a.Wa[m]=c));if(l.Ig){m=
b.w;a.A.wa!==m.l&&(h=a.A,a.A=this.Ka.un(m.l),a.A?(h.qj(a,!0),a.A.Qj(a,!0),a.J(),a.A.Hl(0)):(a.A=h,d||this.Ld(a)));a.x=m.x;a.y=m.y;a.width=m.w;a.height=m.h;a.Te=m.zi;a.B=m.hasOwnProperty("a")?m.a:0;a.opacity=m.hasOwnProperty("o")?m.o:1;a.Bc=m.hasOwnProperty("hX")?m.hX:.5;a.Cc=m.hasOwnProperty("hY")?m.hY:.5;a.visible=m.hasOwnProperty("v")?m.v:!0;a.Ve=m.hasOwnProperty("ce")?m.ce:!0;a.dl=m.hasOwnProperty("mts")?m.mts:-1;a.zc=m.hasOwnProperty("bm")?m.bm:0;a.Vj=rb(a.zc);this.S&&sb(a,a.zc,this.S);a.J();
if(m.hasOwnProperty("fx"))for(d=0,h=m.fx.length;d<h;d++)c=q.pq(m.fx[d].name),0>c||(a.mg[c]=m.fx[d].active,a.jb[c]=m.fx[d].params);a.Se()}if(q=b.behs)for(f in q)q.hasOwnProperty(f)&&(d=this.oC(a,parseInt(f,10)),0>d||a.Z[d].Sa(q[f]));b.data&&a.Sa(b.data)};g.prototype.tu=function(a,b,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,d)},d)};g.prototype.eC=function(a,b){this.tu("data.js",function(d){var f=new FileReader;f.onload=function(b){a(b.target.result)};
f.onerror=b;f.readAsText(d)},b)};var ta=[],Q=0;g.prototype.lr=function(){if(ta.length&&!(8<=Q)){Q++;var a=ta.shift();this.$A(a.filename,a.JE,a.yB)}};g.prototype.uu=function(a,b,d){var f=this;ta.push({filename:a,JE:function(a){Q--;f.lr();b(a)},yB:function(a){Q--;f.lr();d(a)}});this.lr()};g.prototype.$A=function(a,b,d){this.tu(a,function(a){var d=new FileReader;d.onload=function(a){b(a.target.result)};d.readAsArrayBuffer(a)},d)};g.prototype.fC=function(a,b,d){var f="",h=a.toLowerCase(),m=h.substr(h.length-
4),h=h.substr(h.length-5);".mp4"===m?f="video/mp4":".webm"===h?f="video/webm":".m4a"===m?f="audio/mp4":".mp3"===m&&(f="audio/mpeg");this.uu(a,function(a){a=URL.createObjectURL(new Blob([a],{type:f}));b(a)},d)};g.prototype.Wu=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.Hw=function(a,b){this.Dn&&!this.Wu(b)?this.fC(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};g.prototype.Bo=function(a,b){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};cc=function(a){return new g(document.getElementById(a))};dc=function(a,b){return new g({dc:!0,width:a,height:b})};window.cr_createRuntime=cc;window.cr_createDCRuntime=dc;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.sd=!0;document.body.appendChild(a);a=new g(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 g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,p){var n=window.cr_getC2Runtime();n&&n.YA(g,p)};window.cr_sizeCanvas=function(g,p){if(0!==g&&0!==p){var n=window.cr_getC2Runtime();n&&n.setSize(g,p)}};window.cr_setSuspended=function(g){var p=window.cr_getC2Runtime();p&&p.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.qh=null;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;this.scale=1;this.B=0;this.Bi=!0;this.name=b[0];this.ND=b[1];this.MD=b[2];this.width=b[1];this.height=b[2];this.ux=b[3];this.Qw=b[4];this.wa=b[5];var c=b[6],f,l;this.la=[];this.vk=[];f=0;for(l=c.length;f<l;f++){var e=new ec(this,c[f]);e.Yv=f;this.la.push(e)}c=b[7];this.Hg=[];f=0;for(l=c.length;f<l;f++){var e=c[f],k=this.b.P[e[1]];k.Sd||(k.Sd=e);this.Hg.push(e);-1===this.vk.indexOf(k)&&this.vk.push(k)}this.ka=
[];this.La=[];this.Yf=!0;this.jb=[];f=0;for(l=b[8].length;f<l;f++)this.ka.push({id:b[8][f][0],name:b[8][f][1],Ib:-1,Je:!1,xc:!0,index:f}),this.jb.push(b[8][f][2].slice(0));this.Se();this.Yd=new xa(0,0,1,1);this.Jr=new xa(0,0,1,1);this.Tg={}}function p(a,b){return a.Te-b.Te}function n(a,b){this.Qb=a;this.b=a.b;this.u=[];this.scale=1;this.B=0;this.Bf=!1;this.dg=new xa(0,0,0,0);this.kx=new ya;this.Qa=this.Pa=this.Ra=this.Oa=0;this.li=!1;this.hg=-1;this.Np=0;this.name=b[0];this.index=b[1];this.wa=b[2];
this.visible=b[3];this.yc=b[4];this.Re=b[5];this.Uc=b[6];this.Vc=b[7];this.opacity=b[8];this.nn=b[9];this.Kd=b[10];this.Ic=b[11];this.zc=b[12];this.uB=b[13];this.Vj="source-over";this.jc=this.tc=0;this.rc=null;this.Lf=k();this.Ne=!0;this.$i=new xa(0,0,-1,-1);this.ic=new xa(0,0,-1,-1);this.Kd&&(this.rc=new qb(this.b.fb,this.b.eb));this.nf=!1;var c=b[14],f,l;this.Xw=[];this.xd=[];this.Xj=[];f=0;for(l=c.length;f<l;f++){var e=c[f],g=this.b.P[e[1]];g.Sd||(g.Sd=e,g.ju=this.index);this.xd.push(e);-1===this.Qb.vk.indexOf(g)&&
this.Qb.vk.push(g)}Ha(this.Xw,this.xd);this.ka=[];this.La=[];this.Yf=!0;this.jb=[];f=0;for(l=b[15].length;f<l;f++)this.ka.push({id:b[15][f][0],name:b[15][f][1],Ib:-1,Je:!1,xc:!0,index:f}),this.jb.push(b[15][f][2].slice(0));this.Se();this.Yd=new xa(0,0,1,1);this.Jr=new xa(0,0,1,1)}function k(){return a.length?a.pop():[]}function e(b){I(b);a.push(b)}g.prototype.xE=function(a){var b=a.type.wa.toString();this.Tg.hasOwnProperty(b)||(this.Tg[b]=[]);this.Tg[b].push(this.b.Rr(a))};g.prototype.Mu=function(){var a=
this.la[0];return!a.Re&&1===a.opacity&&!a.nn&&a.visible};g.prototype.Se=function(){I(this.La);this.Yf=!0;var a,b,c;a=0;for(b=this.ka.length;a<b;a++)c=this.ka[a],c.xc&&(this.La.push(c),c.Je||(this.Yf=!1))};g.prototype.oq=function(a){var b,c,f;b=0;for(c=this.ka.length;b<c;b++)if(f=this.ka[b],f.name===a)return f;return null};var t=[],b=!0;g.prototype.as=function(){this.Qw&&(this.qh=this.b.cq[this.Qw],this.qh.zs());this.b.Ka=this;this.width=this.ND;this.height=this.MD;this.scrollX=this.b.fb/2;this.scrollY=
this.b.eb/2;var a,h,c,f,l,e,k;a=0;for(c=this.b.P.length;a<c;a++)if(h=this.b.P[a],!h.V)for(l=h.u,h=0,f=l.length;h<f;h++)if(e=l[h],e.A){var m=e.A.Yv;m>=this.la.length&&(m=this.la.length-1);e.A=this.la[m];-1===e.A.u.indexOf(e)&&e.A.u.push(e);e.A.li=!0}if(!b)for(a=0,c=this.la.length;a<c;++a)this.la[a].u.sort(p);I(t);this.KA();a=0;for(c=this.la.length;a<c;a++)e=this.la[a],e.UA(),e.Zo();l=!1;if(!this.Bi){for(k in this.Tg)if(this.Tg.hasOwnProperty(k)&&(h=this.b.Fi(parseInt(k,10)))&&!h.V&&this.b.ys(h)){f=
this.Tg[k];a=0;for(c=f.length;a<c;a++){e=null;if(h.da.Ig&&(e=this.un(f[a].w.l),!e))continue;e=this.b.yg(h.Sd,e,!1,0,0,!0);this.b.Kn(e,f[a]);l=!0;t.push(e)}I(f)}a=0;for(c=this.la.length;a<c;a++)this.la[a].u.sort(p),this.la[a].li=!0}l&&(this.b.wc(),this.b.yw());for(a=0;a<t.length;a++)if(e=t[a],e.type.Ec)for(c=e.pk(),h=0,f=e.type.dd.length;h<f;h++)k=e.type.dd[h],e.type!==k&&(k.u.length>c?e.siblings.push(k.u[c]):k.Sd&&(l=this.b.yg(k.Sd,e.A,!0,e.x,e.y,!0),this.b.wc(),k.Xo(),e.siblings.push(l),t.push(l)));
a=0;for(c=this.Hg.length;a<c;a++)e=this.Hg[a],h=this.b.P[e[1]],h.Ec||this.b.yg(this.Hg[a],null,!0);this.b.jh=null;this.b.wc();if(this.b.Ya&&!this.b.O)for(a=0,c=this.b.P.length;a<c;a++)k=this.b.P[a],!k.V&&k.u.length&&k.no&&k.no(this.b.Ya);if(this.b.Bk)Ha(this.b.gn,t);else for(a=0,c=t.length;a<c;a++)e=t[a],this.b.trigger(Object.getPrototypeOf(e.type.da).k.lg,e);I(t);this.b.Bk||this.b.trigger(R.prototype.k.Zs,null);this.Bi=!1};g.prototype.TA=function(){var a,b,c,f,l;b=a=0;for(c=this.Hg.length;a<c;a++)f=
this.Hg[a],l=this.b.P[f[1]],l.global?l.Ec||this.b.yg(f,null,!0):(this.Hg[b]=f,b++);Ga(this.Hg,b)};g.prototype.IE=function(){this.b.Bk||this.b.trigger(R.prototype.k.kz,null);this.b.Hq=!0;I(this.b.qf.bd);var a,h,c,f,l,e;if(!this.Bi)for(a=0,h=this.la.length;a<h;a++)for(this.la[a].Bs(),l=this.la[a].u,c=0,f=l.length;c<f;c++)e=l[c],e.type.global||this.b.ys(e.type)&&this.xE(e);a=0;for(h=this.la.length;a<h;a++){l=this.la[a].u;c=0;for(f=l.length;c<f;c++)e=l[c],e.type.global||this.b.Ld(e);this.b.wc();I(l);
this.la[a].li=!0}a=0;for(h=this.b.P.length;a<h;a++)if(l=this.b.P[a],!(l.global||l.da.Ig||l.da.Jo||l.V)){c=0;for(f=l.u.length;c<f;c++)this.b.Ld(l.u[c]);this.b.wc()}b=!1;this.b.Hq=!1};new xa(0,0,0,0);g.prototype.Ub=function(a){var b,c=a,f=!1,l=!this.b.ud;l&&(this.b.Jn||(this.b.Jn=document.createElement("canvas"),b=this.b.Jn,b.width=this.b.ba,b.height=this.b.aa,this.b.qv=b.getContext("2d"),f=!0),b=this.b.Jn,c=this.b.qv,b.width!==this.b.ba&&(b.width=this.b.ba,f=!0),b.height!==this.b.aa&&(b.height=this.b.aa,
f=!0),f&&this.b.Bo(c,this.b.Ua));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.bu&&!this.Mu()&&c.clearRect(0,0,this.b.ba,this.b.aa);var e,k,f=0;for(e=this.la.length;f<e;f++)k=this.la[f],k.visible&&0<k.opacity&&11!==k.zc&&(k.u.length||!k.Re)?k.Ub(c):k.Zo();l&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Cf=function(a){a.Gw(!0);this.b.Fb||(this.b.Fb=a.Rc(this.b.ba,this.b.aa,this.b.Ua));if(this.b.Fb.pe!==this.b.ba||this.b.Fb.oe!==this.b.aa)a.deleteTexture(this.b.Fb),this.b.Fb=
a.Rc(this.b.ba,this.b.aa,this.b.Ua);a.$d(this.b.Fb);this.b.ud||a.ai(this.b.ba,this.b.aa);var b,c;for(b=this.la.length-1;0<=b;--b)c=this.la[b],c.visible&&1===c.opacity&&c.Yf&&0===c.zc&&(c.u.length||!c.Re)?c.Cf(a):c.Zo();a.Gw(!1)};g.prototype.bb=function(a){var b=0<this.La.length||this.b.Cj||!this.b.ud||this.b.Va;if(b){this.b.Fb||(this.b.Fb=a.Rc(this.b.ba,this.b.aa,this.b.Ua));if(this.b.Fb.pe!==this.b.ba||this.b.Fb.oe!==this.b.aa)a.deleteTexture(this.b.Fb),this.b.Fb=a.Rc(this.b.ba,this.b.aa,this.b.Ua);
a.$d(this.b.Fb);this.b.ud||a.ai(this.b.ba,this.b.aa)}else this.b.Fb&&(a.$d(null),a.deleteTexture(this.b.Fb),this.b.Fb=null);this.b.bu&&!this.Mu()&&a.clear(0,0,0,0);var c,f,l;c=0;for(f=this.la.length;c<f;c++)l=this.la[c],l.visible&&0<l.opacity&&(l.u.length||!l.Re)?l.bb(a):l.Zo();b&&(0===this.La.length||1===this.La.length&&this.b.ud?(1===this.La.length?(b=this.La[0].index,a.$c(this.La[0].Ib),a.uj(null,1/this.b.ba,1/this.b.aa,0,0,1,1,this.scale,this.B,0,0,this.b.ba/2,this.b.aa/2,this.b.Ob.ea,this.jb[b]),
a.oo(this.La[0].Ib)&&(this.b.ma=!0)):a.$c(0),this.b.ud||a.ai(this.b.width,this.b.height),a.$d(null),a.Fw(!1),a.of(1),a.sc(this.b.Fb),a.Dw(),a.Zd(),a.Jd(),b=this.b.width/2,c=this.b.height/2,a.oj(-b,c,b,c,b,-c,-b,-c),a.sc(null),a.Fw(!0)):this.Kr(a,null,null,null))};g.prototype.mk=function(){return 0<this.La.length||this.b.Cj||!this.b.ud||this.b.Va?this.b.Fb:null};g.prototype.Iu=function(){var a=this.la[0].Eb(),b,c,f;b=1;for(c=this.la.length;b<c;b++)f=this.la[b],(0!==f.Uc||0!==f.Vc)&&f.Eb()<a&&(a=f.Eb());
return a};g.prototype.Sr=function(a){if(!this.ux){var b=1/this.Iu()*this.b.ba/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ma=!0)};g.prototype.Tr=function(a){if(!this.ux){var b=1/this.Iu()*this.b.aa/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ma=!0)};g.prototype.KA=function(){this.Sr(this.scrollX);this.Tr(this.scrollY)};g.prototype.Kr=function(a,b,c,f){var l=c?c.La:b?b.La:this.La,e=1,k=0,m=0,g=0,r=this.b.ba,q=this.b.aa;
c?(e=c.A.Eb(),k=c.A.lb(),m=c.A.Oa,g=c.A.Pa,r=c.A.Ra,q=c.A.Qa):b&&(e=b.Eb(),k=b.lb(),m=b.Oa,g=b.Pa,r=b.Ra,q=b.Qa);var D=this.b.lq,t,p,n,C,K=0,P=1,Z,S,O=this.b.ba,y=this.b.aa,ha=O/2,ta=y/2,Q=b?b.Yd:this.Yd,A=b?b.Jr:this.Jr,w=0,U=0,G=0,H=0,N=O,X=O,L=y,V=y,W=n=0;C=c?c.A.lb():0;if(c){t=0;for(p=l.length;t<p;t++)n+=a.yC(l[t].Ib),W+=a.zC(l[t].Ib);H=c.qa;w=b.ca(H.left,H.top,!0,!0);G=b.ca(H.left,H.top,!1,!0);N=b.ca(H.right,H.bottom,!0,!0);L=b.ca(H.right,H.bottom,!1,!0);0!==C&&(t=b.ca(H.right,H.top,!0,!0),p=
b.ca(H.right,H.top,!1,!0),U=b.ca(H.left,H.bottom,!0,!0),H=b.ca(H.left,H.bottom,!1,!0),C=Math.min(w,N,t,U),N=Math.max(w,N,t,U),w=C,C=Math.min(G,L,p,H),L=Math.max(G,L,p,H),G=C);w-=n;G-=W;N+=n;L+=W;A.left=w/O;A.top=1-G/y;A.right=N/O;A.bottom=1-L/y;U=w=x(w);H=G=x(G);X=N=va(N);V=L=va(L);U-=n;H-=W;X+=n;V+=W;0>w&&(w=0);0>G&&(G=0);N>O&&(N=O);L>y&&(L=y);0>U&&(U=0);0>H&&(H=0);X>O&&(X=O);V>y&&(V=y);Q.left=w/O;Q.top=1-G/y;Q.right=N/O;Q.bottom=1-L/y}else Q.left=A.left=0,Q.top=A.top=0,Q.right=A.right=1,Q.bottom=
A.bottom=1;W=c&&(a.ul(l[0].Ib)||0!==n||0!==W||1!==c.opacity||c.type.da.Uv)||b&&!c&&1!==b.opacity;a.Dw();if(W){D[K]||(D[K]=a.Rc(O,y,this.b.Ua));if(D[K].pe!==O||D[K].oe!==y)a.deleteTexture(D[K]),D[K]=a.Rc(O,y,this.b.Ua);a.$c(0);a.$d(D[K]);S=V-H;a.clearRect(U,y-H-S,X-U,S);c?c.bb(a):(a.sc(this.b.Pb),a.of(b.opacity),a.Zd(),a.translate(-ha,-ta),a.Jd(),a.Ed(w,L,N,L,N,G,w,G,Q));A.left=A.top=0;A.right=A.bottom=1;c&&(C=Q.top,Q.top=Q.bottom,Q.bottom=C);K=1;P=0}a.of(1);n=l.length-1;var ga=a.Er(l[n].Ib)||!b&&
!c&&!this.b.ud;t=C=0;for(p=l.length;t<p;t++){D[K]||(D[K]=a.Rc(O,y,this.b.Ua));if(D[K].pe!==O||D[K].oe!==y)a.deleteTexture(D[K]),D[K]=a.Rc(O,y,this.b.Ua);a.$c(l[t].Ib);C=l[t].index;a.oo(l[t].Ib)&&(this.b.ma=!0);0!=t||W?(a.uj(f,1/O,1/y,A.left,A.top,A.right,A.bottom,e,k,m,g,(m+r)/2,(g+q)/2,this.b.Ob.ea,c?c.jb[C]:b?b.jb[C]:this.jb[C]),a.sc(null),t!==n||ga?(a.$d(D[K]),S=V-H,Z=y-H-S,a.clearRect(U,Z,X-U,S)):(c?a.Xf(c.tc,c.jc):b&&a.Xf(b.tc,b.jc),a.$d(f)),a.sc(D[P]),a.Zd(),a.translate(-ha,-ta),a.Jd(),a.Ed(w,
L,N,L,N,G,w,G,Q),t!==n||ga||a.sc(null)):(a.$d(D[K]),S=V-H,Z=y-H-S,a.clearRect(U,Z,X-U,S),c?(c.Lb&&c.Lb.U?(Z=c.Lb.U,P=1/Z.width,Z=1/Z.height):(P=1/c.width,Z=1/c.height),a.uj(f,P,Z,A.left,A.top,A.right,A.bottom,e,k,m,g,(m+r)/2,(g+q)/2,this.b.Ob.ea,c.jb[C]),c.bb(a)):(a.uj(f,1/O,1/y,0,0,1,1,e,k,m,g,(m+r)/2,(g+q)/2,this.b.Ob.ea,b?b.jb[C]:this.jb[C]),a.sc(b?this.b.Pb:this.b.Fb),a.Zd(),a.translate(-ha,-ta),a.Jd(),a.Ed(w,L,N,L,N,G,w,G,Q)),A.left=A.top=0,A.right=A.bottom=1,c&&!ga&&(C=L,L=G,G=C));K=0===K?1:
0;P=0===K?1:0}ga&&(a.$c(0),c?a.Xf(c.tc,c.jc):b?a.Xf(b.tc,b.jc):this.b.ud||(a.ai(this.b.width,this.b.height),ha=this.b.width/2,ta=this.b.height/2,G=w=0,N=this.b.width,L=this.b.height),a.$d(f),a.sc(D[P]),a.Zd(),a.translate(-ha,-ta),a.Jd(),c&&1===l.length&&!W?a.Ed(w,G,N,G,N,L,w,L,Q):a.Ed(w,L,N,L,N,G,w,G,Q),a.sc(null))};g.prototype.un=function(a){var b,c;b=0;for(c=this.la.length;b<c;b++)if(this.la[b].wa===a)return this.la[b];return null};g.prototype.Na=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,
s:this.scale,a:this.B,w:this.width,h:this.height,fv:this.Bi,persist:this.Tg,fx:[],layers:{}};a=0;for(b=this.ka.length;a<b;a++)c=this.ka[a],f.fx.push({name:c.name,active:c.xc,params:this.jb[c.index]});a=0;for(b=this.la.length;a<b;a++)c=this.la[a],f.layers[c.wa.toString()]=c.Na();return f};g.prototype.Sa=function(a){var b,c,f,l;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.B=a.a;this.width=a.w;this.height=a.h;this.Tg=a.persist;"undefined"!==typeof a.fv&&(this.Bi=a.fv);var e=a.fx;b=0;for(c=
e.length;b<c;b++)if(f=this.oq(e[b].name))f.xc=e[b].active,this.jb[f.index]=e[b].params;this.Se();b=a.layers;for(l in b)b.hasOwnProperty(l)&&(a=this.un(parseInt(l,10)))&&a.Sa(b[l])};Qb=g;n.prototype.Se=function(){I(this.La);this.Yf=!0;var a,b,c;a=0;for(b=this.ka.length;a<b;a++)c=this.ka[a],c.xc&&(this.La.push(c),c.Je||(this.Yf=!1))};n.prototype.oq=function(a){var b,c,f;b=0;for(c=this.ka.length;b<c;b++)if(f=this.ka[b],f.name===a)return f;return null};n.prototype.UA=function(){var a,b,c,f,l,e;b=a=0;
for(c=this.xd.length;a<c;a++){f=this.xd[a];l=this.b.P[f[1]];e=this.b.ys(l);l=!0;if(!e||this.Qb.Bi){f=this.b.yg(f,this,!0);if(!f)continue;t.push(f);f.type.global&&(l=!1,this.Xj.push(f.uid))}l&&(this.xd[b]=this.xd[a],b++)}this.xd.length=b;this.b.wc();!this.b.I&&this.ka.length&&(this.zc=this.uB);this.Vj=rb(this.zc);this.b.S&&sb(this,this.zc,this.b.S);this.Ne=!0};n.prototype.qj=function(a,b){var c=Ja(this.u,a);0>c||(b&&this.Kd&&a.Yc&&a.Yc.right>=a.Yc.left&&(a.na(),this.rc.update(a,a.Yc,null),a.Yc.set(0,
0,-1,-1)),c===this.u.length-1?this.u.pop():(Fa(this.u,c),this.Hl(c)),this.Ne=!0)};n.prototype.Qj=function(a,b){a.Te=this.u.length;this.u.push(a);b&&this.Kd&&a.Yc&&a.J();this.Ne=!0};n.prototype.aE=function(a){this.u.unshift(a);this.Hl(0)};n.prototype.xD=function(a,b,c){var f=a.Ud();b=b.Ud();Fa(this.u,f);f<b&&b--;c&&b++;b===this.u.length?this.u.push(a):this.u.splice(b,0,a);this.Hl(f<b?f:b)};n.prototype.Hl=function(a){-1===this.hg?this.hg=a:a<this.hg&&(this.hg=a);this.Ne=this.li=!0};n.prototype.Bs=function(){if(this.li){-1===
this.hg&&(this.hg=0);var a,b,c;if(this.Kd)for(a=this.hg,b=this.u.length;a<b;++a)c=this.u[a],c.Te=a,this.rc.sD(c.Yc);else for(a=this.hg,b=this.u.length;a<b;++a)this.u[a].Te=a;this.li=!1;this.hg=-1}};n.prototype.Eb=function(a){return this.vC()*(this.b.ud||a?this.b.Rj:1)};n.prototype.vC=function(){return(this.scale*this.Qb.scale-1)*this.Ic+1};n.prototype.lb=function(){return this.Bf?0:Pa(this.Qb.B+this.B)};var a=[],r=[],c=[];n.prototype.sq=function(){this.Bs();this.rc.ro(this.Oa,this.Pa,this.Ra,this.Qa,
c);if(!c.length)return k();if(1===c.length){var a=k();Ha(a,c[0]);I(c);return a}for(var b=!0;1<c.length;){for(var a=c,g=void 0,f=void 0,l=void 0,t=void 0,p=void 0,g=0,f=a.length;g<f-1;g+=2){var l=a[g],t=a[g+1],p=k(),m=l,v=t,n=p,q=0,D=0,aa=0,M=m.length,B=v.length,C=void 0,K=void 0;for(n.length=M+B;q<M&&D<B;++aa)C=m[q],K=v[D],C.Te<K.Te?(n[aa]=C,++q):(n[aa]=K,++D);for(;q<M;++q,++aa)n[aa]=m[q];for(;D<B;++D,++aa)n[aa]=v[D];b||(e(l),e(t));r.push(p)}1===f%2&&(b?(l=k(),Ha(l,a[f-1]),r.push(l)):r.push(a[f-1]));
Ha(a,r);I(r);b=!1}a=c[0];I(c);return a};n.prototype.Ub=function(a){this.nf=this.nn||1!==this.opacity||0!==this.zc;var b=this.b.canvas,c=a,f=!1;this.nf&&(this.b.In||(this.b.In=document.createElement("canvas"),b=this.b.In,b.width=this.b.ba,b.height=this.b.aa,this.b.pv=b.getContext("2d"),f=!0),b=this.b.In,c=this.b.pv,b.width!==this.b.ba&&(b.width=this.b.ba,f=!0),b.height!==this.b.aa&&(b.height=this.b.aa,f=!0),f&&this.b.Bo(c,this.b.Ua),this.Re&&c.clearRect(0,0,this.b.ba,this.b.aa));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.Re||(c.fillStyle="rgb("+this.yc[0]+","+this.yc[1]+","+this.yc[2]+")",c.fillRect(0,0,this.b.ba,this.b.aa));c.save();this.Bf=!0;var f=this.$a(0,0,!0,!0),l=this.$a(0,0,!1,!0);this.Bf=!1;this.b.Wc&&(f=Math.round(f),l=Math.round(l));this.vo(f,l,c);var k=this.Eb();c.scale(k,k);c.translate(-f,-l);this.Kd?(this.ic.left=this.rc.Oc(this.Oa),this.ic.top=this.rc.Pc(this.Pa),this.ic.right=this.rc.Oc(this.Ra),this.ic.bottom=this.rc.Pc(this.Qa),this.Ne||!this.ic.ak(this.$i)?(e(this.Lf),f=this.sq(),
this.Ne=!1,this.$i.ri(this.ic)):f=this.Lf):f=this.u;for(var g,m=null,l=0,k=f.length;l<k;++l)g=f[l],g!==m&&(this.pB(g,c),m=g);this.Kd&&(this.Lf=f);c.restore();this.nf&&(a.globalCompositeOperation=this.Vj,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.pB=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.na();var c=a.qa;c.right<this.Oa||c.bottom<this.Pa||c.left>this.Ra||c.top>this.Qa||(b.globalCompositeOperation=a.Vj,a.Ub(b))}};n.prototype.Zo=function(){this.Bf=!0;var a=this.$a(0,
0,!0,!0),b=this.$a(0,0,!1,!0);this.Bf=!1;this.b.Wc&&(a=Math.round(a),b=Math.round(b));this.vo(a,b,null)};n.prototype.vo=function(a,b,c){var f=this.Eb();this.Oa=a;this.Pa=b;this.Ra=a+1/f*this.b.ba;this.Qa=b+1/f*this.b.aa;this.Oa>this.Ra&&(a=this.Oa,this.Oa=this.Ra,this.Ra=a);this.Pa>this.Qa&&(a=this.Pa,this.Pa=this.Qa,this.Qa=a);a=this.lb();0!==a&&(c&&(c.translate(this.b.ba/2,this.b.aa/2),c.rotate(-a),c.translate(this.b.ba/-2,this.b.aa/-2)),this.dg.set(this.Oa,this.Pa,this.Ra,this.Qa),this.dg.offset((this.Oa+
this.Ra)/-2,(this.Pa+this.Qa)/-2),this.kx.Ow(this.dg,a),this.kx.Ut(this.dg),this.dg.offset((this.Oa+this.Ra)/2,(this.Pa+this.Qa)/2),this.Oa=this.dg.left,this.Pa=this.dg.top,this.Ra=this.dg.right,this.Qa=this.dg.bottom)};n.prototype.Cf=function(a){if(this.nf=this.nn){this.b.Pb||(this.b.Pb=a.Rc(this.b.ba,this.b.aa,this.b.Ua));if(this.b.Pb.pe!==this.b.ba||this.b.Pb.oe!==this.b.aa)a.deleteTexture(this.b.Pb),this.b.Pb=a.Rc(this.b.ba,this.b.aa,this.b.Ua);a.$d(this.b.Pb)}this.Bf=!0;var b=this.$a(0,0,!0,
!0),c=this.$a(0,0,!1,!0);this.Bf=!1;this.b.Wc&&(b=Math.round(b),c=Math.round(c));this.vo(b,c,null);b=this.Eb();a.Zd();a.scale(b,b);a.wo(-this.lb());a.translate((this.Oa+this.Ra)/-2,(this.Pa+this.Qa)/-2);a.Jd();this.Kd?(this.ic.left=this.rc.Oc(this.Oa),this.ic.top=this.rc.Pc(this.Pa),this.ic.right=this.rc.Oc(this.Ra),this.ic.bottom=this.rc.Pc(this.Qa),this.Ne||!this.ic.ak(this.$i)?(e(this.Lf),b=this.sq(),this.Ne=!1,this.$i.ri(this.ic)):b=this.Lf):b=this.u;for(var f,l=null,c=b.length-1;0<=c;--c)f=b[c],
f!==l&&(this.rB(b[c],a),l=f);this.Kd&&(this.Lf=b);this.Re||(this.Np=this.b.ph++,a.Co(this.Np),a.Ew(1,1,1),a.yu(),a.nE())};n.prototype.bb=function(a){var b=0,c=0;if(this.nf=this.nn||1!==this.opacity||0<this.La.length||0!==this.zc){this.b.Pb||(this.b.Pb=a.Rc(this.b.ba,this.b.aa,this.b.Ua));if(this.b.Pb.pe!==this.b.ba||this.b.Pb.oe!==this.b.aa)a.deleteTexture(this.b.Pb),this.b.Pb=a.Rc(this.b.ba,this.b.aa,this.b.Ua);a.$d(this.b.Pb);this.Re&&a.clear(0,0,0,0)}this.Re||(this.b.Va?(a.Co(this.Np),a.Ew(this.yc[0]/
255,this.yc[1]/255,this.yc[2]/255),a.yu(),a.DE()):a.clear(this.yc[0]/255,this.yc[1]/255,this.yc[2]/255,1));this.Bf=!0;var f=this.$a(0,0,!0,!0),b=this.$a(0,0,!1,!0);this.Bf=!1;this.b.Wc&&(f=Math.round(f),b=Math.round(b));this.vo(f,b,null);f=this.Eb();a.Zd();a.scale(f,f);a.wo(-this.lb());a.translate((this.Oa+this.Ra)/-2,(this.Pa+this.Qa)/-2);a.Jd();this.Kd?(this.ic.left=this.rc.Oc(this.Oa),this.ic.top=this.rc.Pc(this.Pa),this.ic.right=this.rc.Oc(this.Ra),this.ic.bottom=this.rc.Pc(this.Qa),this.Ne||
!this.ic.ak(this.$i)?(e(this.Lf),b=this.sq(),this.Ne=!1,this.$i.ri(this.ic)):b=this.Lf):b=this.u;var l,k,g=null,c=0;for(l=b.length;c<l;++c)k=b[c],k!==g&&(this.qB(b[c],a),g=k);this.Kd&&(this.Lf=b);this.nf&&(b=this.La.length?this.La[0].Ib:0,c=this.La.length?this.La[0].index:0,0===this.La.length||1===this.La.length&&!a.Er(b)&&1===this.opacity?(1===this.La.length?(a.$c(b),a.uj(this.Qb.mk(),1/this.b.ba,1/this.b.aa,0,0,1,1,f,this.lb(),this.Oa,this.Pa,(this.Oa+this.Ra)/2,(this.Pa+this.Qa)/2,this.b.Ob.ea,
this.jb[c]),a.oo(b)&&(this.b.ma=!0)):a.$c(0),a.$d(this.Qb.mk()),a.of(this.opacity),a.sc(this.b.Pb),a.Xf(this.tc,this.jc),a.Zd(),a.Jd(),f=this.b.ba/2,b=this.b.aa/2,a.oj(-f,b,f,b,f,-b,-f,-b),a.sc(null)):this.Qb.Kr(a,this,null,this.Qb.mk()))};n.prototype.qB=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.na();var c=a.qa;c.right<this.Oa||c.bottom<this.Pa||c.left>this.Ra||c.top>this.Qa||(b.Co(a.ph),a.Bx?this.sB(a,b):(b.$c(0),b.Xf(a.tc,a.jc),a.bb(b)))}};n.prototype.rB=function(a,b){if(a.visible&&
0!==a.width&&0!==a.height){a.na();var c=a.qa;c.right<this.Oa||c.bottom<this.Pa||c.left>this.Ra||c.top>this.Qa||(a.ph=this.b.ph++,0===a.zc&&1===a.opacity&&a.Yf&&a.Cf&&(b.Co(a.ph),a.Cf(b)))}};n.prototype.sB=function(a,b){var c=a.La[0].Ib,f=a.La[0].index,l=this.Eb();if(1!==a.La.length||b.Er(c)||b.eE(c)||(a.B||a.A.lb())&&b.ul(c)||1!==a.opacity||a.type.da.Uv)this.Qb.Kr(b,this,a,this.nf?this.b.Pb:this.Qb.mk()),b.Zd(),b.scale(l,l),b.wo(-this.lb()),b.translate((this.Oa+this.Ra)/-2,(this.Pa+this.Qa)/-2),b.Jd();
else{b.$c(c);b.Xf(a.tc,a.jc);b.oo(c)&&(this.b.ma=!0);var e=0,k=0,m=0,g=0;b.ul(c)&&(g=a.qa,e=this.ca(g.left,g.top,!0,!0),k=this.ca(g.left,g.top,!1,!0),m=this.ca(g.right,g.bottom,!0,!0),g=this.ca(g.right,g.bottom,!1,!0),e=e/windowWidth,k=1-k/windowHeight,m=m/windowWidth,g=1-g/windowHeight);var r;a.Lb&&a.Lb.U?(r=a.Lb.U,c=1/r.width,r=1/r.height):(c=1/a.width,r=1/a.height);b.uj(this.nf?this.b.Pb:this.Qb.mk(),c,r,e,k,m,g,l,this.lb(),this.Oa,this.Pa,(this.Oa+this.Ra)/2,(this.Pa+this.Qa)/2,this.b.Ob.ea,a.jb[f]);
a.bb(b)}};n.prototype.$a=function(a,b,c,f){var l=this.b.devicePixelRatio;this.b.Fh&&(a*=l,b*=l);var l=this.b.jw,e=this.b.kw,l=(this.Qb.scrollX-l)*this.Uc+l,e=(this.Qb.scrollY-e)*this.Vc+e,k=l,m=e,g=1/this.Eb(!f);f?(k-=this.b.ba*g/2,m-=this.b.aa*g/2):(k-=this.b.width*g/2,m-=this.b.height*g/2);k+=a*g;m+=b*g;b=this.lb();0!==b&&(k-=l,m-=e,a=Math.cos(b),b=Math.sin(b),f=k*a-m*b,m=m*a+k*b,k=f+l,m+=e);return c?k:m};n.prototype.ca=function(a,b,c,f){var l=this.b.jw,e=this.b.kw,k=(this.Qb.scrollX-l)*this.Uc+
l,m=(this.Qb.scrollY-e)*this.Vc+e,e=k,l=m,g=this.lb();if(0!==g){a-=k;b-=m;var r=Math.cos(-g),g=Math.sin(-g),q=a*r-b*g;b=b*r+a*g;a=q+k;b+=m}k=1/this.Eb(!f);f?(e-=this.b.ba*k/2,l-=this.b.aa*k/2):(e-=this.b.width*k/2,l-=this.b.height*k/2);e=(a-e)/k;l=(b-l)/k;a=this.b.devicePixelRatio;this.b.Fh&&!f&&(e/=a,l/=a);return c?e:l};n.prototype.Na=function(){var a,b,c,f={s:this.scale,a:this.B,vl:this.Oa,vt:this.Pa,vr:this.Ra,vb:this.Qa,v:this.visible,bc:this.yc,t:this.Re,px:this.Uc,py:this.Vc,o:this.opacity,
zr:this.Ic,fx:[],cg:this.Xj,instances:[]};a=0;for(b=this.ka.length;a<b;a++)c=this.ka[a],f.fx.push({name:c.name,active:c.xc,params:this.jb[c.index]});return f};n.prototype.Sa=function(a){var b,c,f;this.scale=a.s;this.B=a.a;this.Oa=a.vl;this.Pa=a.vt;this.Ra=a.vr;this.Qa=a.vb;this.visible=a.v;this.yc=a.bc;this.Re=a.t;this.Uc=a.px;this.Vc=a.py;this.opacity=a.o;this.Ic=a.zr;this.Xj=a.cg||[];Ha(this.xd,this.Xw);var l=new ea;b=0;for(f=this.Xj.length;b<f;++b)l.add(this.Xj[b]);c=b=0;for(f=this.xd.length;b<
f;++b)l.contains(this.xd[b][2])||(this.xd[c]=this.xd[b],++c);Ga(this.xd,c);c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.oq(c[b].name))a.xc=c[b].active,this.jb[a.index]=c[b].params;this.Se();this.u.sort(p);this.li=!0};ec=n})();
(function(){function g(a,b){var f,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(f=0;f<d;f++)if(a[f]!==b[f])return!1;return!0}}function p(a,b){return a.index-b.index}function n(a){var b,f,d,c;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>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);c=l[a.length];b=0;for(f=c.length;b<f;b++)if(d=c[b],g(a,d))return d;c.push(a);return a}
function k(a,b){this.b=a;this.qx={};this.su={};this.zq=!1;this.Pu=new ea;this.Tp=[];this.zp=[];this.name=b[0];var f=b[1];this.Cg=[];var d,c;d=0;for(c=f.length;d<c;d++)this.Ru(f[d],null,this.Cg)}function e(a){this.type=a;this.u=[];this.Aa=[];this.Ga=!0}function t(a,b,f){this.sheet=a;this.parent=b;this.b=a.b;this.Ta=[];this.Zg=[];this.Nu=this.Ro=this.ts=this.Cq=this.group=this.$r=!1;this.Kb=[];this.Nd=[];this.be=[];this.qk="";this.wh=this.Cq=this.group=!1;this.Jm=null;f[1]&&(this.qk=f[1][1].toLowerCase(),
this.group=!0,this.Cq=!!f[1][0],this.Jm=[],this.wh=this.Cq,this.b.oi.push(this),this.b.Hi[this.qk]=this);this.Dd=f[2];this.wa=f[4];this.group||(this.b.St[this.wa.toString()]=this);var d=f[5];a=0;for(b=d.length;a<b;a++){var c=new fc(this,d[a]);c.index=a;this.Kb.push(c);this.Kt(c.type)}d=f[6];a=0;for(b=d.length;a<b;a++)c=new gc(this,d[a]),c.index=a,this.Nd.push(c);if(8===f.length)for(f=f[7],a=0,b=f.length;a<b;a++)this.sheet.Ru(f[a],this,this.be);this.Gn=!1;this.Kb.length&&(this.Gn=null==this.Kb[0].type&&
this.Kb[0].kc==R.prototype.k.Ls)}function b(a,b){var f,d,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ec))for(f=0,d=a.dd.length;f<d;f++)c=a.dd[f],a!==c&&-1===b.indexOf(c)&&b.push(c)}function a(a,b){this.td=a;this.sheet=a.sheet;this.b=a.b;this.za=[];this.nb=[];this.W={};this.index=-1;this.Oj=!1;this.kc=this.b.jg(b[1]);this.trigger=0<b[3];this.ru=2===b[3];this.ff=b[4];this.Ki=b[5];this.lD=b[6];this.wa=b[7];this.b.vg[this.wa.toString()]=this;-1===b[0]?(this.type=null,this.Hb=this.Qr,this.hh=null,this.ne=
-1):(this.type=this.b.P[b[0]],this.Hb=this.lD?this.vE:this.Pr,b[2]?(this.hh=this.type.rn(b[2]),this.ne=this.type.nq(b[2])):(this.hh=null,this.ne=-1),this.td.parent&&this.td.parent.Fo());this.ru&&(this.Hb=this.wE);if(10===b.length){var f,d,c=b[9];f=0;for(d=c.length;f<d;f++){var l=new hc(this,c[f]);this.za.push(l)}this.nb.length=c.length}}function r(a,b){this.td=a;this.sheet=a.sheet;this.b=a.b;this.za=[];this.nb=[];this.W={};this.index=-1;this.Oj=!1;this.kc=this.b.jg(b[1]);-1===b[0]?(this.type=null,
this.Hb=this.Qr,this.hh=null,this.ne=-1):(this.type=this.b.P[b[0]],this.Hb=this.Pr,b[2]?(this.hh=this.type.rn(b[2]),this.ne=this.type.nq(b[2])):(this.hh=null,this.ne=-1));this.wa=b[3];this.b.ng[this.wa.toString()]=this;if(6===b.length){var f,d,c=b[5];f=0;for(d=c.length;f<d;f++){var l=new hc(this,c[f]);this.za.push(l)}this.nb.length=c.length}}function c(){z++;F.length===z&&F.push(new ic);return F[z]}function d(a,b){this.Xd=a;this.td=a.td;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Xe=null;this.ag=
0;this.get=null;this.eu=0;this.Qb=null;this.key=0;this.object=null;this.index=0;this.Zl=this.di=this.Zl=this.di=this.vu=this.rh=this.$l=null;this.ge=!1;var f,d,c;switch(b[0]){case 0:case 7:this.Xe=new jc(this,b[1]);this.ag=0;this.get=this.EC;break;case 1:this.Xe=new jc(this,b[1]);this.ag=0;this.get=this.FC;break;case 5:this.Xe=new jc(this,b[1]);this.ag=0;this.get=this.JC;break;case 3:case 8:this.eu=b[1];this.get=this.CC;break;case 6:this.Qb=this.b.aj[b[1]];this.get=this.KC;break;case 9:this.key=b[1];
this.get=this.IC;break;case 4:this.object=this.b.P[b[1]];this.get=this.LC;this.td.Kt(this.object);this.Xd instanceof gc?this.td.Fo():this.td.parent&&this.td.parent.Fo();break;case 10:this.index=b[1];a.type&&a.type.V?(this.get=this.GC,this.ge=!0):this.get=this.HC;break;case 11:this.$l=b[1];this.rh=null;this.get=this.DC;break;case 2:case 12:this.vu=b[1];this.get=this.BC;break;case 13:for(this.get=this.MC,this.di=[],this.Zl=[],f=1,d=b.length;f<d;f++)c=new hc(this.Xd,b[f]),this.di.push(c),this.Zl.push(0)}}
function h(a,b,f){this.sheet=a;this.parent=b;this.b=a.b;this.Ta=[];this.name=f[1];this.bp=f[2];this.Bq=f[3];this.Fk=!!f[4];this.En=!!f[5];this.wa=f[6];this.b.Ej[this.wa.toString()]=this;this.data=this.Bq;this.parent?(this.Qh=this.Fk||this.En?-1:this.b.GE++,this.b.CA.push(this)):(this.Qh=-1,this.b.BA.push(this))}function u(a,b,f){this.sheet=a;this.parent=b;this.b=a.b;this.Ta=[];this.uk=null;this.TC=f[1];this.xc=!0}function f(){this.Zw=[];this.reset(null)}var l=[];k.prototype.toString=function(){return this.name};
k.prototype.Ru=function(a,b,f){switch(a[0]){case 0:a=new kc(this,b,a);if(a.Dd)for(f.push(a),f=0,b=a.Kb.length;f<b;f++)a.Kb[f].trigger&&this.Su(a,f);else a.dv()?this.Su(a,0):f.push(a);break;case 1:a=new bc(this,b,a);f.push(a);break;case 2:a=new lc(this,b,a),f.push(a)}};k.prototype.tb=function(){var a,b;a=0;for(b=this.Cg.length;a<b;a++)this.Cg[a].tb(a<b-1&&this.Cg[a+1].Gn)};k.prototype.zs=function(){I(this.Tp);I(this.zp);this.Jt(this);I(this.zp)};k.prototype.Jt=function(a){var b,f,d,c,l=a.Tp,e=a.zp,
h=this.Pu.fe();b=0;for(f=h.length;b<f;++b)d=h[b],c=d.uk,!d.xc||a===c||-1<e.indexOf(c)||(e.push(c),c.Jt(a),l.push(c))};k.prototype.Hb=function(a){this.b.lG||(this.zq=!0,a||(this.b.Kq=!0));var b,f;b=0;for(f=this.Cg.length;b<f;b++){var d=this.Cg[b];d.Hb();this.b.Mp(d.Ta);this.b.Gg&&this.b.wc()}a||(this.b.Kq=!1)};k.prototype.Su=function(a,b){a.Dd||this.b.Vo.push(a);var f,d,c=a.Kb[b],l;c.type?l=c.type.name:l="system";var e=(f=c.ru)?this.su:this.qx;e[l]||(e[l]=[]);l=e[l];e=c.kc;if(f){if(c.za.length&&(c=
c.za[0],1===c.type&&2===c.Xe.type)){c=c.Xe.value.toLowerCase();f=0;for(d=l.length;f<d;f++)if(l[f].method==e){f=l[f].bk;f[c]?f[c].push([a,b]):f[c]=[[a,b]];return}f={};f[c]=[[a,b]];l.push({method:e,bk:f})}}else{f=0;for(d=l.length;f<d;f++)if(l[f].method==e){l[f].bk.push([a,b]);return}T&&e===T.prototype.k.fh?l.unshift({method:e,bk:[[a,b]]}):l.push({method:e,bk:[[a,b]]})}};Rb=k;e.prototype.yq=function(){return this.Ga?this.type.u.length:this.u.length};e.prototype.fd=function(){return this.Ga?this.type.u:
this.u};e.prototype.tl=function(a){a&&(a.b.sb().zb.Dd?(this.Ga&&(I(this.u),Ha(this.Aa,a.type.u),this.Ga=!1),a=this.Aa.indexOf(a),-1!==a&&(this.u.push(this.Aa[a]),this.Aa.splice(a,1))):(this.Ga=!1,I(this.u),this.u[0]=a))};yb=e;window._c2hh_="AD2A9958E39EA2E259E67C30FB5D2A001E3168C0";t.prototype.tb=function(a){var b,f=this.parent;if(this.group)for(this.Ro=!0;f;){if(!f.group){this.Ro=!1;break}f=f.parent}this.ts=!this.dv()&&(!this.parent||this.parent.group&&this.parent.Ro);this.Nu=!!a;this.Zg=this.Ta.slice(0);
for(f=this.parent;f;){a=0;for(b=f.Ta.length;a<b;a++)this.zA(f.Ta[a]);f=f.parent}this.Ta=n(this.Ta);this.Zg=n(this.Zg);a=0;for(b=this.Kb.length;a<b;a++)this.Kb[a].tb();a=0;for(b=this.Nd.length;a<b;a++)this.Nd[a].tb();a=0;for(b=this.be.length;a<b;a++)this.be[a].tb(a<b-1&&this.be[a+1].Gn)};t.prototype.Do=function(a){if(this.wh!==!!a){this.wh=!!a;var b;a=0;for(b=this.Jm.length;a<b;++a)this.Jm[a].wx();0<b&&this.b.Ka.qh&&this.b.Ka.qh.zs()}};t.prototype.Kt=function(a){b(a,this.Ta)};t.prototype.zA=function(a){b(a,
this.Zg)};t.prototype.Fo=function(){this.$r=!0;this.parent&&this.parent.Fo()};t.prototype.dv=function(){return this.Kb.length?this.Kb[0].trigger:!1};t.prototype.Hb=function(){var a,b,f=!1,d=this.b,c=this.b.sb();c.zb=this;var l=this.Kb;this.Gn||(c.$p=!1);if(this.Dd){0===l.length&&(f=!0);c.yb=0;for(a=l.length;c.yb<a;c.yb++)b=l[c.yb],b.trigger||(b=b.Hb())&&(f=!0);(c.Kh=f)&&this.xo()}else{c.yb=0;for(a=l.length;c.yb<a;c.yb++)if(b=l[c.yb].Hb(),!b){c.Kh=!1;this.ts&&d.Gg&&d.wc();return}c.Kh=!0;this.xo()}this.wB(c)};
t.prototype.wB=function(a){a.Kh&&this.Nu&&(a.$p=!0);this.ts&&this.b.Gg&&this.b.wc()};t.prototype.tE=function(a){this.b.sb().zb=this;this.Kb[a].Hb()&&(this.xo(),this.b.sb().Kh=!0)};t.prototype.xo=function(){var a=this.b.sb(),b;a.Qc=0;for(b=this.Nd.length;a.Qc<b;a.Qc++)if(this.Nd[a.Qc].Hb())return;this.Cw()};t.prototype.pE=function(){var a=this.b.sb(),b;for(b=this.Nd.length;a.Qc<b;a.Qc++)if(this.Nd[a.Qc].Hb())return;this.Cw()};t.prototype.Cw=function(){if(this.be.length){var a,b,f,d,c=this.be.length-
1;this.b.po(this);if(this.$r)for(a=0,b=this.be.length;a<b;a++)f=this.be[a],(d=!this.Ro||!this.group&&a<c)&&this.b.yl(f.Ta),f.Hb(),d?this.b.Vg(f.Ta):this.b.Mp(f.Ta);else for(a=0,b=this.be.length;a<b;a++)this.be[a].Hb();this.b.jo()}};t.prototype.uE=function(){var a=this.b.sb();a.zb=this;var b=!1,f;a.yb=0;for(f=this.Kb.length;a.yb<f;a.yb++)if(this.Kb[a.yb].Hb())b=!0;else if(!this.Dd)return!1;return this.Dd?b:!0};t.prototype.Nr=function(){this.b.sh++;var a=this.b.sb().yb,b=this.b.po(this);if(!this.Dd)for(b.yb=
a+1,a=this.Kb.length;b.yb<a;b.yb++)if(!this.Kb[b.yb].Hb()){this.b.jo();return}this.xo();this.b.jo()};t.prototype.$C=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Kb[b].type===a.type)return!1;return!0};kc=t;a.prototype.tb=function(){var a,b,f;a=0;for(b=this.za.length;a<b;a++)f=this.za[a],f.tb(),f.ge&&(this.Oj=!0)};a.prototype.wE=function(){return!0};a.prototype.Qr=function(){var a,b;a=0;for(b=this.za.length;a<b;a++)this.nb[a]=this.za[a].get();return bb(this.kc.apply(this.b.qf,
this.nb),this.Ki)};a.prototype.vE=function(){var a,b;a=0;for(b=this.za.length;a<b;a++)this.nb[a]=this.za[a].get();a=this.kc.apply(this.hh?this.hh:this.type,this.nb);this.type.Pd();return a};a.prototype.Pr=function(){var a,b,f,d,c,l,e,h,k=this.type,g=k.xa(),r=this.td.Dd&&!this.trigger;b=0;var t=k.Ec,p=k.V,n=k.Ye,u=this.ne,F=-1<u,z=this.Oj,Q=this.za,A=this.nb,w=this.Ki,U=this.kc,G;if(z)for(b=0,c=Q.length;b<c;++b)l=Q[b],l.ge||(A[b]=l.get(0));else for(b=0,c=Q.length;b<c;++b)A[b]=Q[b].get(0);if(g.Ga){I(g.u);
I(g.Aa);G=k.u;a=0;for(d=G.length;a<d;++a){h=G[a];if(z)for(b=0,c=Q.length;b<c;++b)l=Q[b],l.ge&&(A[b]=l.get(a));F?(b=0,p&&(b=h.type.Ai[n]),b=U.apply(h.Z[u+b],A)):b=U.apply(h,A);(e=bb(b,w))?g.u.push(h):r&&g.Aa.push(h)}k.finish&&k.finish(!0);g.Ga=!1;k.Pd();return g.yq()}f=0;G=(e=r&&!this.td.$C(this))?g.Aa:g.u;var H=!1;a=0;for(d=G.length;a<d;++a){h=G[a];if(z)for(b=0,c=Q.length;b<c;++b)l=Q[b],l.ge&&(A[b]=l.get(a));F?(b=0,p&&(b=h.type.Ai[n]),b=U.apply(h.Z[u+b],A)):b=U.apply(h,A);if(bb(b,w))if(H=!0,e){if(g.u.push(h),
t)for(b=0,c=h.siblings.length;b<c;b++)l=h.siblings[b],l.type.xa().u.push(l)}else{G[f]=h;if(t)for(b=0,c=h.siblings.length;b<c;b++)l=h.siblings[b],l.type.xa().u[f]=l;f++}else if(e){G[f]=h;if(t)for(b=0,c=h.siblings.length;b<c;b++)l=h.siblings[b],l.type.xa().Aa[f]=l;f++}else if(r&&(g.Aa.push(h),t))for(b=0,c=h.siblings.length;b<c;b++)l=h.siblings[b],l.type.xa().Aa.push(l)}Ga(G,f);if(t)for(p=k.dd,a=0,d=p.length;a<d;a++)h=p[a].xa(),e?Ga(h.Aa,f):Ga(h.u,f);f=H;if(e&&!H)for(a=0,d=g.u.length;a<d;a++){h=g.u[a];
if(z)for(b=0,c=Q.length;b<c;b++)l=Q[b],l.ge&&(A[b]=l.get(a));b=F?U.apply(h.Z[u],A):U.apply(h,A);if(bb(b,w)){H=!0;break}}k.finish&&k.finish(f||r);return r?H:g.yq()};fc=a;r.prototype.tb=function(){var a,b,f;a=0;for(b=this.za.length;a<b;a++)f=this.za[a],f.tb(),f.ge&&(this.Oj=!0)};r.prototype.Qr=function(){var a=this.b,b,f,c=this.za,d=this.nb;b=0;for(f=c.length;b<f;++b)d[b]=c[b].get();return this.kc.apply(a.qf,d)};r.prototype.Pr=function(){var a=this.type,b=this.ne,f=a.Ye,c=this.Oj,d=this.za,l=this.nb,
h=this.kc,e=a.xa().fd(),a=a.V,k=-1<b,g,r,t,p,n,u;if(c)for(r=0,p=d.length;r<p;++r)n=d[r],n.ge||(l[r]=n.get(0));else for(r=0,p=d.length;r<p;++r)l[r]=d[r].get(0);g=0;for(t=e.length;g<t;++g){u=e[g];if(c)for(r=0,p=d.length;r<p;++r)n=d[r],n.ge&&(l[r]=n.get(g));k?(r=0,a&&(r=u.type.Ai[f]),h.apply(u.Z[b+r],l)):h.apply(u,l)}return!1};gc=r;var F=[],z=-1;d.prototype.tb=function(){var a,b;if(11===this.type)this.rh=this.b.Eu(this.$l,this.td.parent);else if(13===this.type)for(a=0,b=this.di.length;a<b;a++)this.di[a].tb();
this.Xe&&this.Xe.tb()};d.prototype.vD=function(a){this.ge||!a||a.da.Jo||(this.ge=!0)};d.prototype.Lw=function(){this.ge=!0};d.prototype.EC=function(a){this.ag=a||0;a=c();this.Xe.get(a);z--;return a.data};d.prototype.FC=function(a){this.ag=a||0;a=c();this.Xe.get(a);z--;return na(a.data)?a.data:""};d.prototype.LC=function(){return this.object};d.prototype.CC=function(){return this.eu};d.prototype.JC=function(a){this.ag=a||0;a=c();this.Xe.get(a);z--;return a.Wb()?this.b.Gf(a.data):this.b.lk(a.data)};
d.prototype.KC=function(){return this.Qb};d.prototype.IC=function(){return this.key};d.prototype.HC=function(){return this.index};d.prototype.GC=function(a){a=a||0;var b=this.Xd.type,f=null,f=b.xa(),c=f.fd();if(c.length)f=c[a%c.length].type;else if(f.Aa.length)f=f.Aa[a%f.Aa.length].type;else if(b.u.length)f=b.u[a%b.u.length].type;else return 0;return this.index+f.ek[b.Ye]};d.prototype.DC=function(){return this.rh};d.prototype.BC=function(){return this.vu};d.prototype.MC=function(){var a,b;a=0;for(b=
this.di.length;a<b;a++)this.Zl[a]=this.di[a].get();return this.Zl};hc=d;h.prototype.tb=function(){this.Ta=n(this.Ta)};h.prototype.bi=function(a){var b=this.b.Cu();this.parent&&!this.Fk&&b?(this.Qh>=b.length&&(b.length=this.Qh+1),b[this.Qh]=a):this.data=a};h.prototype.ok=function(){var a=this.b.Cu();return!this.parent||this.Fk||!a||this.En?this.data:this.Qh>=a.length||"undefined"===typeof a[this.Qh]?this.Bq:a[this.Qh]};h.prototype.Hb=function(){!this.parent||this.Fk||this.En||this.bi(this.Bq)};bc=
h;u.prototype.toString=function(){return"include:"+this.uk.toString()};u.prototype.tb=function(){this.uk=this.b.cq[this.TC];this.sheet.Pu.add(this);this.Ta=n(this.Ta);for(var a=this.parent;a;)a.group&&a.Jm.push(this),a=a.parent;this.wx()};u.prototype.Hb=function(){this.parent&&this.b.xl(this.b.P);this.uk.zq||this.uk.Hb(!0);this.parent&&this.b.Vg(this.b.P)};u.prototype.wx=function(){for(var a=this.parent;a;){if(a.group&&!a.wh){this.xc=!1;return}a=a.parent}this.xc=!0};lc=u;f.prototype.reset=function(a){this.zb=
a;this.Qc=this.yb=0;I(this.Zw);this.$p=this.Kh=!1};f.prototype.cD=function(){return this.zb.$r?!0:this.yb<this.zb.Kb.length-1?!!this.zb.Ta.length:!1};ac=f})();
(function(){function g(b,a){this.Xd=b;this.b=b.b;this.type=a[0];this.get=[this.PB,this.LB,this.YB,this.aC,this.zB,this.ZB,this.TB,this.IB,this.SB,this.XB,this.AB,this.WB,this.JB,this.UB,this.QB,this.RB,this.MB,this.NB,this.HB,this.$B,this.VB,this.OB,this.GB,this.KB][this.type];var e=null;this.Qf=this.za=this.nb=this.kc=this.Oo=this.second=this.first=this.value=null;this.ne=-1;this.ve=null;this.Cx=-1;this.rh=this.$l=null;this.rj=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new jc(b,a[1]);break;case 18:this.first=new jc(b,a[1]);this.second=new jc(b,a[2]);this.Oo=new jc(b,a[3]);break;case 19:this.kc=this.b.jg(a[1]);this.kc!==R.prototype.H.random&&this.kc!==R.prototype.H.au||this.Xd.Lw();this.nb=[];this.za=[];3===a.length?(e=a[2],this.nb.length=e.length+1):this.nb.length=1;break;case 20:this.Qf=this.b.P[a[1]];this.ne=-1;this.kc=this.b.jg(a[2]);this.rj=a[3];yc&&this.kc===yc.prototype.H.Px&&this.Xd.Lw();a[4]?this.ve=new jc(b,a[4]):this.ve=null;this.nb=[];this.za=[];6===
a.length?(e=a[5],this.nb.length=e.length+1):this.nb.length=1;break;case 21:this.Qf=this.b.P[a[1]];this.rj=a[2];a[3]?this.ve=new jc(b,a[3]):this.ve=null;this.Cx=a[4];break;case 22:this.Qf=this.b.P[a[1]];this.Qf.rn(a[2]);this.ne=this.Qf.nq(a[2]);this.kc=this.b.jg(a[3]);this.rj=a[4];a[5]?this.ve=new jc(b,a[5]):this.ve=null;this.nb=[];this.za=[];7===a.length?(e=a[6],this.nb.length=e.length+1):this.nb.length=1;break;case 23:this.$l=a[1],this.rh=null}this.Xd.vD(this.Qf);4<=this.type&&17>=this.type&&(this.first=
new jc(b,a[1]),this.second=new jc(b,a[2]));if(e){var c,d;c=0;for(d=e.length;c<d;c++)this.za.push(new jc(b,e[c]))}}function p(){++t;e.length===t&&e.push(new ic);return e[t]}function n(b,a,e){var c,d;c=0;for(d=b.length;c<d;++c)b[c].get(e),a[c+1]=e.data}function k(b,a){this.type=b||mc.ni;this.data=a||0;this.Vh=null;this.type==mc.ni&&(this.data=Math.floor(this.data))}g.prototype.tb=function(){23===this.type&&(this.rh=this.Xd.b.Eu(this.$l,this.Xd.td.parent));this.first&&this.first.tb();this.second&&this.second.tb();
this.Oo&&this.Oo.tb();this.ve&&this.ve.tb();if(this.za){var b,a;b=0;for(a=this.za.length;b<a;b++)this.za[b].tb()}};var e=[],t=-1;g.prototype.$B=function(b){var a=this.za,e=this.nb;e[0]=b;b=p();n(a,e,b);--t;this.kc.apply(this.b.qf,e)};g.prototype.VB=function(b){var a=this.Qf,e=this.nb,c=this.za,d=this.ve,h=this.kc,k=this.Xd.ag,f=a.xa(),l=f.fd();if(!l.length)if(f.Aa.length)l=f.Aa;else{this.rj?b.Y(""):b.ta(0);return}e[0]=b;b.Vh=a;b=p();n(c,e,b);d&&(d.get(b),b.Wb()&&(k=b.data,l=a.u));--t;a=l.length;if(k>=
a||k<=-a)k%=a;0>k&&(k+=a);h.apply(l[k],e)};g.prototype.GB=function(b){var a=this.Qf,e=this.nb,c=this.za,d=this.ve,h=this.ne,k=this.kc,f=this.Xd.ag,l=a.xa(),g=l.fd();if(!g.length)if(l.Aa.length)g=l.Aa;else{this.rj?b.Y(""):b.ta(0);return}e[0]=b;b.Vh=a;b=p();n(c,e,b);d&&(d.get(b),b.Wb()&&(f=b.data,g=a.u));--t;c=g.length;if(f>=c||f<=-c)f%=c;0>f&&(f+=c);f=g[f];g=0;a.V&&(g=f.type.Ai[a.Ye]);k.apply(f.Z[h+g],e)};g.prototype.OB=function(b){var a=this.ve,e=this.Qf,c=this.Cx,d=this.Xd.ag,h=e.xa(),k=h.fd();if(!k.length)if(h.Aa.length)k=
h.Aa;else{this.rj?b.Y(""):b.ta(0);return}if(a){h=p();a.get(h);if(h.Wb()){d=h.data;k=e.u;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=e.qq(d);e=d.Wa[c];na(e)?b.Y(e):b.R(e);--t;return}--t}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;e.V&&(k=d.type.ek[e.Ye]);e=d.Wa[c+k];na(e)?b.Y(e):b.R(e)};g.prototype.PB=function(b){b.type=mc.ni;b.data=this.value};g.prototype.LB=function(b){b.type=mc.mi;b.data=this.value};g.prototype.YB=function(b){b.type=mc.String;b.data=this.value};g.prototype.aC=function(b){this.first.get(b);
b.Wb()&&(b.data=-b.data)};g.prototype.zB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data+=a.data,a.Qi()&&b.cj());--t};g.prototype.ZB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data-=a.data,a.Qi()&&b.cj());--t};g.prototype.TB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data*=a.data,a.Qi()&&b.cj());--t};g.prototype.IB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data/=
a.data,b.cj());--t};g.prototype.SB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data%=a.data,a.Qi()&&b.cj());--t};g.prototype.XB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data=Math.pow(b.data,a.data),a.Qi()&&b.cj());--t};g.prototype.AB=function(b){this.first.get(b);var a=p();this.second.get(a);a.Ti()||b.Ti()?this.CB(b,a):this.BB(b,a);--t};g.prototype.CB=function(b,a){b.Ti()&&a.Ti()?this.EB(b,a):this.DB(b,a)};g.prototype.EB=function(b,
a){b.data+=a.data};g.prototype.DB=function(b,a){b.Ti()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Y(b.data.toString()+a.data)};g.prototype.BB=function(b,a){b.ta(b.data&&a.data?1:0)};g.prototype.WB=function(b){this.first.get(b);var a=p();this.second.get(a);b.Wb()&&a.Wb()&&(b.data||a.data?b.ta(1):b.ta(0));--t};g.prototype.HB=function(b){this.first.get(b);b.data?this.second.get(b):this.Oo.get(b)};g.prototype.JB=function(b){this.first.get(b);var a=p();this.second.get(a);b.ta(b.data===a.data?
1:0);--t};g.prototype.UB=function(b){this.first.get(b);var a=p();this.second.get(a);b.ta(b.data!==a.data?1:0);--t};g.prototype.QB=function(b){this.first.get(b);var a=p();this.second.get(a);b.ta(b.data<a.data?1:0);--t};g.prototype.RB=function(b){this.first.get(b);var a=p();this.second.get(a);b.ta(b.data<=a.data?1:0);--t};g.prototype.MB=function(b){this.first.get(b);var a=p();this.second.get(a);b.ta(b.data>a.data?1:0);--t};g.prototype.NB=function(b){this.first.get(b);var a=p();this.second.get(a);b.ta(b.data>=
a.data?1:0);--t};g.prototype.KB=function(b){var a=this.rh.ok();ma(a)?b.R(a):b.Y(a)};jc=g;k.prototype.Qi=function(){return this.type===mc.mi};k.prototype.Wb=function(){return this.type===mc.ni||this.type===mc.mi};k.prototype.Ti=function(){return this.type===mc.String};k.prototype.cj=function(){this.Qi()||(this.Ti()&&(this.data=parseFloat(this.data)),this.type=mc.mi)};k.prototype.ta=function(b){this.type=mc.ni;this.data=Math.floor(b)};k.prototype.R=function(b){this.type=mc.mi;this.data=b};k.prototype.Y=
function(b){this.type=mc.String;this.data=b};k.prototype.Mw=function(b){ma(b)?(this.type=mc.mi,this.data=b):na(b)?(this.type=mc.String,this.data=b.toString()):(this.type=mc.ni,this.data=0)};ic=k;mc={ni:0,mi:1,String:2}})();function R(g){this.b=g;this.bd=[]}
R.prototype.Na=function(){var g={},p,n,k,e,t,b,a,r;g.waits=[];var c=g.waits,d;p=0;for(n=this.bd.length;p<n;p++){b=this.bd[p];d={t:b.time,st:b.Uw,s:b.Zr,ev:b.wi.wa,sm:[],sols:{}};b.wi.Nd[b.Qc]&&(d.act=b.wi.Nd[b.Qc].wa);k=0;for(e=b.Ta.length;k<e;k++)d.sm.push(b.Ta[k].wa);for(t in b.Kc)if(b.Kc.hasOwnProperty(t)){a=this.b.P[parseInt(t,10)];r={sa:b.Kc[t].yo,insts:[]};k=0;for(e=b.Kc[t].Hf.length;k<e;k++)r.insts.push(b.Kc[t].Hf[k].uid);d.sols[a.wa.toString()]=r}c.push(d)}return g};
R.prototype.Sa=function(g){g=g.waits;var p,n,k,e,t,b,a,r,c,d,h;I(this.bd);p=0;for(n=g.length;p<n;p++)if(b=g[p],r=this.b.St[b.ev.toString()]){c=-1;k=0;for(e=r.Nd.length;k<e;k++)if(r.Nd[k].wa===b.act){c=k;break}if(-1!==c){a={Kc:{},Ta:[],Vp:!1};a.time=b.t;a.Uw=b.st||"";a.Zr=!!b.s;a.wi=r;a.Qc=c;k=0;for(e=b.sm.length;k<e;k++)(r=this.b.Fi(b.sm[k]))&&a.Ta.push(r);for(t in b.sols)if(b.sols.hasOwnProperty(t)&&(r=this.b.Fi(parseInt(t,10)))){c=b.sols[t];d={yo:c.sa,Hf:[]};k=0;for(e=c.insts.length;k<e;k++)(h=
this.b.Fg(c.insts[k]))&&d.Hf.push(h);a.Kc[r.index.toString()]=d}this.bd.push(a)}}};
(function(){function g(){}function p(){}function n(){}var k=R.prototype;g.prototype.ey=function(){return!0};g.prototype.Zs=function(){return!0};g.prototype.kz=function(){return!0};g.prototype.Sx=function(b,a,e){return nc(b,a,e)};g.prototype.Jy=function(b){return b?b.visible:!1};g.prototype.Dz=function(b){var a=this.b.sb(),e=a.zb,c=a.cD(),a=this.b.gE();if(c)for(c=0;c<b&&!a.ac;c++)this.b.yl(e.Ta),a.index=c,e.Nr(),this.b.Vg(e.Ta);else for(c=0;c<b&&!a.ac;c++)a.index=c,e.Nr();this.b.XD();return!1};g.prototype.sA=
function(){var b=this.b.Ei().W;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,e=this.b.Id;b.TriggerOnce_lastTick=e;return this.b.Yq||a!==e-1};g.prototype.cy=function(b){var a=this.b.Ei(),e=a.W.Every_lastTime||0,c=this.b.Ob.ea;"undefined"===typeof a.W.Every_seconds&&(a.W.Every_seconds=b);var d=a.W.Every_seconds;if(c>=e+d)return a.W.Every_lastTime=e+d,c>=a.W.Every_lastTime+.04&&(a.W.Every_lastTime=c),a.W.Every_seconds=b,!0;c<e-.1&&(a.W.Every_lastTime=
c);return!1};g.prototype.Wx=function(b,a,e){return nc(b.ok(),a,e)};g.prototype.xy=function(b){return(b=this.b.Hi[b.toLowerCase()])&&b.wh};g.prototype.Ls=function(){var b=this.b.sb();return b.$p?!1:!b.Kh};g.prototype.$s=function(){return!0};g.prototype.Yy=function(){return!0};g.prototype.tp=function(){return!0};g.prototype.kt=function(){return!0};g.prototype.lz=function(){return!0};g.prototype.pm=function(){return!0};g.prototype.Mx=function(b,a,e){return Va(J(b),J(e))<=J(a)};g.prototype.vy=function(b,
a){return Xa(J(b),J(a))};g.prototype.qy=function(b,a,e){b=Ta(b);a=Ta(a);e=Ta(e);return Xa(e,a)?Xa(b,a)&&!Xa(b,e):!(!Xa(b,a)&&Xa(b,e))};k.k=new g;p.prototype.hy=function(b){this.b.Ui||this.b.jh||(this.b.jh=b)};p.prototype.Zx=function(b,a,e,c){if(a&&b&&(a=this.b.Mm(b,a,e,c))){this.b.Ad++;var d;this.b.trigger(Object.getPrototypeOf(b.da).k.lg,a);if(a.Ec)for(e=0,c=a.siblings.length;e<c;e++)d=a.siblings[e],this.b.trigger(Object.getPrototypeOf(d.type.da).k.lg,d);this.b.Ad--;b=b.xa();b.Ga=!1;I(b.u);b.u[0]=
a;if(a.Ec)for(e=0,c=a.siblings.length;e<c;e++)d=a.siblings[e],b=d.type.xa(),b.Ga=!1,I(b.u),b.u[0]=d}};p.prototype.Sz=function(b,a){b&&b.visible!==a&&(b.visible=a,this.b.ma=!0)};p.prototype.Rz=function(b,a){b&&(a=Ma(a/100,0,1),b.opacity!==a&&(b.opacity=a,this.b.ma=!0))};p.prototype.Wz=function(b,a){0===b.bp?ma(a)?b.bi(a):b.bi(parseFloat(a)):1===b.bp&&b.bi(a.toString())};p.prototype.Lx=function(b,a){0===b.bp?ma(a)?b.bi(b.ok()+a):b.bi(b.ok()+parseFloat(a)):1===b.bp&&b.bi(b.ok()+a.toString())};p.prototype.Pz=
function(b,a){var e=this.b.Hi[b.toLowerCase()];if(e)switch(a){case 0:e.Do(!1);break;case 1:e.Do(!0);break;case 2:e.Do(!e.wh)}};p.prototype.Vz=function(b){0>b&&(b=0);this.b.dh=b};var e=[],t=[];p.prototype.tA=function(b){if(!(0>b)){var a,k,c,d=this.b.sb(),h;e.length?h=e.pop():h={Kc:{},Ta:[]};h.Vp=!1;h.time=this.b.Ob.ea+b;h.Uw="";h.Zr=!1;h.wi=d.zb;h.Qc=d.Qc+1;b=0;for(a=this.b.P.length;b<a;b++)c=this.b.P[b],k=c.xa(),k.Ga&&-1===d.zb.Ta.indexOf(c)||(h.Ta.push(c),c=void 0,t.length?c=t.pop():c={Hf:[]},c.yo=
!1,c.yo=k.Ga,Ha(c.Hf,k.u),h.Kc[b.toString()]=c);this.bd.push(h);return!0}};p.prototype.Qz=function(b,a){if(b){var e=Ba(a),c=Ca(a),d=Da(a);if(b.yc[0]!==e||b.yc[1]!==c||b.yc[2]!==d)b.yc[0]=e,b.yc[1]=c,b.yc[2]=d,this.b.ma=!0}};p.prototype.iy=function(b){if(!this.b.Ui&&!this.b.jh)for(var a in this.b.aj)if(this.b.aj.hasOwnProperty(a)&&ub(a,b)){this.b.jh=this.b.aj[a];break}};p.prototype.Ez=function(b){this.b.zo=b};p.prototype.Py=function(b){this.b.Nk=b};k.C=new p;n.prototype["int"]=function(b,a){na(a)?
(b.ta(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ta(a)};n.prototype["float"]=function(b,a){na(a)?(b.R(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.R(a)};n.prototype.random=function(b,a,e){void 0===e?b.R(Math.random()*a):b.R(Math.random()*(e-a)+a)};n.prototype.sqrt=function(b,a){b.R(Math.sqrt(a))};n.prototype.abs=function(b,a){b.R(Math.abs(a))};n.prototype.round=function(b,a){b.ta(Math.round(a))};n.prototype.floor=function(b,a){b.ta(Math.floor(a))};n.prototype.ceil=function(b,a){b.ta(Math.ceil(a))};
n.prototype.sin=function(b,a){b.R(Math.sin(J(a)))};n.prototype.cos=function(b,a){b.R(Math.cos(J(a)))};n.prototype.tan=function(b,a){b.R(Math.tan(J(a)))};n.prototype.asin=function(b,a){b.R(Na(Math.asin(a)))};n.prototype.acos=function(b,a){b.R(Na(Math.acos(a)))};n.prototype.atan=function(b,a){b.R(Na(Math.atan(a)))};n.prototype.exp=function(b,a){b.R(Math.exp(a))};n.prototype.log10=function(b,a){b.R(Math.log(a)/Math.LN10)};n.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var e,
c,d;e=2;for(c=arguments.length;e<c;e++)d=arguments[e],"number"===typeof d&&a<d&&(a=d);b.R(a)};n.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var e,c,d;e=2;for(c=arguments.length;e<c;e++)d=arguments[e],"number"===typeof d&&a>d&&(a=d);b.R(a)};n.prototype.oh=function(b){b.R(this.b.oh)};n.prototype.dh=function(b){b.R(this.b.dh)};n.prototype.time=function(b){b.R(this.b.Ob.ea)};n.prototype.Id=function(b){b.ta(this.b.Id)};n.prototype.Wn=function(b){b.ta(this.b.Wn)};n.prototype.jq=
function(b){b.ta(this.b.jq)};n.prototype.qD=function(b,a){var e,c;if(this.b.Xk.length)if(a){for(c=this.b.Yk;0<=c;--c)if(e=this.b.Xk[c],e.name===a){b.ta(e.index);return}b.ta(0)}else e=this.b.Du(),b.ta(e?e.index:-1);else b.ta(0)};n.prototype.B=function(b,a,e,c,d){b.R(Na(Ua(a,e,c,d)))};n.prototype.zD=function(b){b.Y("\n")};n.prototype.find=function(b,a,e){na(a)&&na(e)?b.ta(a.search(new RegExp(lb(e),"i"))):b.ta(-1)};n.prototype.left=function(b,a,e){b.Y(na(a)?a.substr(0,e):"")};n.prototype.right=function(b,
a,e){b.Y(na(a)?a.substr(a.length-e):"")};n.prototype.NE=function(b,a,e,c){na(a)&&na(c)?(a=a.split(c),e=x(e),0>e||e>=a.length?b.Y(""):b.Y(a[e])):b.Y("")};n.prototype.replace=function(b,a,e,c){na(a)&&na(e)&&na(c)?b.Y(a.replace(new RegExp(lb(e),"gi"),c)):b.Y(na(a)?a:"")};n.prototype.trim=function(b,a){b.Y(na(a)?a.trim():"")};n.prototype.au=function(b){var a=x(Math.random()*(arguments.length-1));b.Mw(arguments[a+1])};n.prototype.qE=function(b,a,e,c){b.ta(Aa(a,e,c))};n.prototype.Op=function(b){b.R(this.b.Op/
1E3)};n.prototype.Pk=function(b){b.R(this.b.Pk)};k.H=new n;k.sE=function(){var b,a,k,c,d,h,g=this.b.sb();b=0;for(k=this.bd.length;b<k;b++){c=this.bd[b];if(-1===c.time){if(!c.Zr)continue}else if(c.time>this.b.Ob.ea)continue;g.zb=c.wi;g.Qc=c.Qc;g.yb=0;for(a in c.Kc)c.Kc.hasOwnProperty(a)&&(d=this.b.P[parseInt(a,10)].xa(),h=c.Kc[a],d.Ga=h.yo,Ha(d.u,h.Hf),d=h,I(d.Hf),t.push(d));c.wi.pE();this.b.Mp(c.Ta);c.Vp=!0}a=b=0;for(k=this.bd.length;b<k;b++)c=this.bd[b],this.bd[a]=c,c.Vp?(fb(c.Kc),I(c.Ta),e.push(c)):
a++;Ga(this.bd,a)}})();
(function(){xb=function(g,n){var k=g[1],e=g[3],t=g[4],b=g[5],a=g[6],r=g[7],c=g[8];n.k||(n.k={});n.C||(n.C={});n.H||(n.H={});var d=n.k,h=n.C,u=n.H;e&&(d.Xx=function(a,b){return nc(this.x,a,b)},d.Yx=function(a,b){return nc(this.y,a,b)},d.pF=function(){var a=this.A;this.na();var b=this.qa;return!(b.right<a.Oa||b.bottom<a.Pa||b.left>a.Ra||b.top>a.Qa)},d.qF=function(){this.na();var a=this.qa,b=this.b.Ka;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.AF=function(a,b,c){var d=this.xa(),
e=d.fd();if(!e.length)return!1;var h=e[0],k=h,q=ab(h.x,h.y,b,c),g,r,t;g=1;for(r=e.length;g<r;g++)if(h=e[g],t=ab(h.x,h.y,b,c),0===a&&t<q||1===a&&t>q)q=t,k=h;d.tl(k);return!0},h.Xz=function(a){this.x!==a&&(this.x=a,this.J())},h.vp=function(a){this.y!==a&&(this.y=a,this.J())},h.Dt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.J()},h.MF=function(a,b){var c=a.wC(this);if(c){var d;c.kk?(d=c.kk(b,!0),c=c.kk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.J()}},h.uF=
function(a){0!==a&&(this.x+=Math.cos(this.B)*a,this.y+=Math.sin(this.B)*a,this.J())},h.tF=function(a,b){0!==b&&(this.x+=Math.cos(J(a))*b,this.y+=Math.sin(J(a))*b,this.J())},u.Mj=function(a){a.R(this.x)},u.gh=function(a){a.R(this.y)},u.oh=function(a){a.R(this.b.Eg(this))});t&&(d.kF=function(a,b){return nc(this.width,a,b)},d.iF=function(a,b){return nc(this.height,a,b)},h.Et=function(a){this.width!==a&&(this.width=a,this.J())},h.LF=function(a){this.height!==a&&(this.height=a,this.J())},h.NF=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.J()},u.SF=function(a){a.R(this.width)},u.mF=function(a){a.R(this.height)},u.fF=function(a){this.na();a.R(this.qa.left)},u.hF=function(a){this.na();a.R(this.qa.top)},u.gF=function(a){this.na();a.R(this.qa.right)},u.eF=function(a){this.na();a.R(this.qa.bottom)});b&&(d.Mx=function(a,b){return Va(this.B,J(b))<=J(a)},d.vy=function(a){return Xa(this.B,J(a))},d.qy=function(a,b){var c=Ta(a),d=Ta(b),e=Pa(this.B);return Xa(d,c)?Xa(e,c)&&
!Xa(e,d):!(!Xa(e,c)&&Xa(e,d))},h.Iz=function(a){a=J(Oa(a));isNaN(a)||this.B===a||(this.B=a,this.J())},h.EF=function(a){0===a||isNaN(a)||(this.B+=J(a),this.B=Pa(this.B),this.J())},h.FF=function(a){0===a||isNaN(a)||(this.B-=J(a),this.B=Pa(this.B),this.J())},h.GF=function(a,b){var c=Wa(this.B,J(b),J(a));isNaN(c)||this.B===c||(this.B=c,this.J())},h.HF=function(a,b,c){a=Wa(this.B,Math.atan2(c-this.y,b-this.x),J(a));isNaN(a)||this.B===a||(this.B=a,this.J())},h.OF=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.B===c||(this.B=c,this.J())},u.dF=function(a){a.R(Sa(this.B))});k||(d.Tx=function(a,b,c){return nc(this.Wa[a],b,c)},d.oF=function(a){return this.Wa[a]},d.BF=function(a,b){var c=this.xa(),d=c.fd();if(!d.length)return!1;var e=d[0],h=e,k=e.Wa[b],q,g,r;q=1;for(g=d.length;q<g;q++)if(e=d[q],r=e.Wa[b],0===a&&r<k||1===a&&r>k)k=r,h=e;c.tl(h);return!0},d.yz=function(a){var b,c,d,e,h;if(this.b.Ei().Ki){h=this.xa();if(h.Ga)for(h.Ga=!1,I(h.u),I(h.Aa),d=this.u,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?h.Aa.push(e):h.u.push(e);else{d=b=0;for(c=h.u.length;b<c;b++)e=h.u[b],h.u[d]=e,e.uid===a?h.Aa.push(e):d++;Ga(h.u,d)}this.Pd();return!!h.u.length}e=this.b.Fg(a);if(!e)return!1;h=this.xa();if(!h.Ga&&-1===h.u.indexOf(e))return!1;if(this.V)for(a=e.type.gb,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.tl(e),this.Pd(),!0}else if(e.type===this)return h.tl(e),this.Pd(),!0;return!1},d.lg=function(){return!0},d.Ss=function(){return!0},h.Bt=function(a,b){var c=this.Wa;ma(c[a])?c[a]=ma(b)?b:parseFloat(b):
na(c[a])&&(c[a]=na(b)?b:b.toString())},h.Jx=function(a,b){var c=this.Wa;ma(c[a])?c[a]=ma(b)?c[a]+b:c[a]+parseFloat(b):na(c[a])&&(c[a]=na(b)?c[a]+b:c[a]+b.toString())},h.PF=function(a,b){var c=this.Wa;ma(c[a])&&(c[a]=ma(b)?c[a]-b:c[a]-parseFloat(b))},h.IF=function(a,b){this.Wa[a]=b?1:0},h.QF=function(a){this.Wa[a]=1-this.Wa[a]},h.np=function(){this.b.Ld(this)},h.Os||(h.Os=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Kn(this,b,!0);this.Od&&this.Od();if(this.Z)for(a=0,b=this.Z.length;a<
b;++a)c=this.Z[a],c.Od&&c.Od()}),u.lF=function(a){var b=a.Vh.u.length,c,d,e;c=0;for(d=this.b.ue.length;c<d;c++)e=this.b.ue[c],a.Vh.V?0<=e.type.gb.indexOf(a.Vh)&&b++:e.type===a.Vh&&b++;a.ta(b)},u.DF=function(a){a.ta(a.Vh.xa().fd().length)},u.RF=function(a){a.ta(this.uid)},u.nF=function(a){a.ta(this.pk())},u.lp||(u.lp=function(a){a.Y(JSON.stringify(this.b.Rr(this,!0)))}));a&&(d.Hy=function(){return this.visible},h.uf=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ma=!0)},d.jF=function(a,b){return nc(tb(100*
this.opacity),a,b)},h.Ct=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ma=!0)},u.Opacity=function(a){a.R(tb(100*this.opacity))});r&&(d.Cy=function(a){return a?this.A===a:!1},d.CF=function(a){var b=this.xa(),c=b.fd();if(!c.length)return!1;var d=c[0],e=d,h,k;h=1;for(k=c.length;h<k;h++)if(d=c[h],0===a){if(d.A.index>e.A.index||d.A.index===e.A.index&&d.Ud()>e.Ud())e=d}else if(d.A.index<e.A.index||d.A.index===e.A.index&&d.Ud()<e.Ud())e=d;b.tl(e);return!0},h.xF=function(){var a=
this.A,b=a.u;b.length&&b[b.length-1]===this||(a.qj(this,!1),a.Qj(this,!1),this.b.ma=!0)},h.vF=function(){var a=this.A,b=a.u;b.length&&b[0]===this||(a.qj(this,!1),a.aE(this),this.b.ma=!0)},h.wF=function(a){a&&a!=this.A&&(this.A.qj(this,!0),this.A=a,a.Qj(this,!0),this.b.ma=!0)},h.UF=function(a,b){var c=0===a;if(b){var d=b.tn(this);d&&d.uid!==this.uid&&(this.A.index!==d.A.index&&(this.A.qj(this,!0),this.A=d.A,d.A.Qj(this,!0)),this.A.xD(this,d,c),this.b.ma=!0)}},u.sF=function(a){a.ta(this.A.Yv)},u.rF=
function(a){a.Y(this.A.name)},u.TF=function(a){a.ta(this.Ud())});c&&(h.JF=function(a,b){if(this.b.I){var c=this.type.pq(b);if(!(0>c)){var d=1===a;this.mg[c]!==d&&(this.mg[c]=d,this.Se(),this.b.ma=!0)}}},h.KF=function(a,b,c){if(this.b.I){var d=this.type.pq(a);0>d||(a=this.type.ka[d],d=this.jb[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.I.AC(a.Ib,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.xc&&(this.b.ma=!0))))}})};Sb=function(){this.Kp=this.Dp=!0;this.type.vm=!0;this.b.ma=!0;var g,n,k=this.Ep;g=0;for(n=
k.length;g<n;++g)k[g](this);this.A.Kd&&this.na()};Tb=function(g){g&&this.Ep.push(g)};Wb=function(){if(this.Dp){var g=this.qa,n=this.fc;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Bc*this.width,-this.Cc*this.height);this.B?(g.offset(-this.x,-this.y),n.Ow(g,this.B),n.offset(this.x,this.y),n.Ut(g)):n.Yg(g);g.normalize();this.Dp=!1;this.UE()}};var g=new xa(0,0,0,0);Xb=function(){if(this.A.Kd){var p=this.A.rc,n=this.qa;g.set(p.Oc(n.left),p.Pc(n.top),p.Oc(n.right),p.Pc(n.bottom));
this.Yc.ak(g)||(this.Yc.right<this.Yc.left?p.update(this,null,g):p.update(this,this.Yc,g),this.Yc.ri(g),this.A.Ne=!0)}};Yb=function(){if(this.Kp&&this.Ve){this.na();var p=this.type.Im,n=this.qa;g.set(p.Oc(n.left),p.Pc(n.top),p.Oc(n.right),p.Pc(n.bottom));this.wg.ak(g)||(this.wg.right<this.wg.left?p.update(this,null,g):p.update(this,this.wg,g),this.wg.ri(g),this.Kp=!1)}};Ub=function(g,n){return this.qa.Tb(g,n)&&this.fc.Tb(g,n)?this.fi?this.KE(g,n):this.Ca&&!this.Ca.Hh()?(this.Ca.tg(this.width,this.height,
this.B),this.Ca.Tb(g-this.x,n-this.y)):!0:!1};Ob=function(){this.type.Xo();return this.Bh};Zb=function(){this.A.Bs();return this.Te};$b=function(){I(this.La);var g,n,k,e=!0;g=0;for(n=this.mg.length;g<n;g++)this.mg[g]&&(k=this.type.ka[g],this.La.push(k),k.Je||(e=!1));this.Bx=!!this.La.length;this.Yf=e};Pb=function(){return"Inst"+this.ww};Ab=function(g){if(g&&g.Ec&&g.type!=this){var n,k,e;n=0;for(k=g.siblings.length;n<k;n++)if(e=g.siblings[n],e.type==this)return e}g=this.xa().fd();return g.length?g[0]:
null};Bb=function(g){var n=this.xa().fd();return n.length?n[g.pk()%n.length]:null};zb=function(){if(this.wj&&!this.V){var g,n;g=0;for(n=this.u.length;g<n;g++)this.u[g].Bh=g;var k=g,e=this.b.ue;g=0;for(n=e.length;g<n;++g)e[g].type===this&&(e[g].Bh=k++);this.wj=!1}};Mb=function(g){if(g<this.u.length)return this.u[g];g-=this.u.length;var n=this.b.ue,k,e;k=0;for(e=n.length;k<e;++k)if(n[k].type===this){if(0===g)return n[k];--g}return null};Cb=function(){return this.bg[this.We]};Db=function(){this.We++;
this.We===this.bg.length?this.bg.push(new yb(this)):(this.bg[this.We].Ga=!0,I(this.bg[this.We].Aa))};Eb=function(){this.We++;this.We===this.bg.length&&this.bg.push(new yb(this));var g=this.bg[this.We],n=this.bg[this.We-1];n.Ga?g.Ga=!0:(g.Ga=!1,Ha(g.u,n.u));I(g.Aa)};Hb=function(){this.We--};Ib=function(g){var n,k,e,t,b,a=0;if(!this.V)for(n=0,k=this.gb.length;n<k;n++)for(b=this.gb[n],e=0,t=b.hb.length;e<t;e++){if(g===b.hb[e].name)return this.W.lastBehIndex=a,b.hb[e];a++}n=0;for(k=this.hb.length;n<k;n++){if(g===
this.hb[n].name)return this.W.lastBehIndex=a,this.hb[n];a++}return null};Jb=function(g){return this.rn(g)?this.W.lastBehIndex:-1};Kb=function(g){var n,k;n=0;for(k=this.ka.length;n<k;n++)if(this.ka[n].name===g)return n;return-1};Lb=function(){if(this.Ec&&!this.V){var g,n,k,e,t,b,a;this.Xo();b=this.xa();var r=b.Ga,c=(g=this.b.sb())&&g.zb&&g.zb.Dd;g=0;for(n=this.dd.length;g<n;g++)if(t=this.dd[g],t!==this&&(t.Xo(),a=t.xa(),a.Ga=r,!r)){I(a.u);k=0;for(e=b.u.length;k<e;++k)a.u[k]=t.qq(b.u[k].Bh);if(c)for(I(a.Aa),
k=0,e=b.Aa.length;k<e;++k)a.Aa[k]=t.qq(b.Aa[k].Bh)}}};Nb=function(){return"Type"+this.wa};nc=function(g,n,k){if("undefined"===typeof g||"undefined"===typeof k)return!1;switch(n){case 0:return g===k;case 1:return g!==k;case 2:return g<k;case 3:return g<=k;case 4:return g>k;case 5:return g>=k;default:return!1}}})();var vc={};function zc(g){this.b=g}
(function(){function g(a){-1===Fb.indexOf(a)&&Fb.push(a)}function p(a){var b=a.G,f;try{f=b.play()}catch(c){g(a);return}f?f.catch(function(){g(a)}):Yc&&!y.ua&&g(a)}function n(){var a,b,f,c;Zc||ba||!w||(k(),"running"===w.state&&(Zc=!0));var d=Fb.slice(0);I(Fb);if(!L)for(a=0,b=d.length;a<b;++a)f=d[a],f.ac||f.hd||(c=f.G.play())&&c.catch(function(){g(f)})}function k(){"suspended"===w.state&&w.resume&&w.resume();if(w.createBuffer){var a=w.createBuffer(1,220,22050),b=w.createBufferSource();b.buffer=a;b.connect(w.destination);
c(b)}}function e(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function t(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function b(a){a=a.toLowerCase();return ia.hasOwnProperty(a)&&ia[a].length?ia[a][0].vd():w.destination}function a(){return w.createGain?w.createGain():w.createGainNode()}function r(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function c(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function d(a,b,f,c){a.start?a.start(c||0,b):a.noteGrainOn(c||
0,b,f-b)}function h(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function u(b,f,c,d,e,h){this.type="filter";this.pc=[b,f,c,d,e,h];this.Fa=a();this.ja=a();this.ja.gain.value=h;this.fa=a();this.fa.gain.value=1-h;this.Db=w.createBiquadFilter();this.Db.type="number"===typeof this.Db.type?b:ed[b];this.Db.frequency.value=f;this.Db.detune&&(this.Db.detune.value=c);this.Db.Q.value=d;this.Db.gain.value=e;this.Fa.connect(this.Db);this.Fa.connect(this.fa);this.Db.connect(this.ja)}function f(b,f,c){this.type=
"delay";this.pc=[b,f,c];this.Fa=a();this.ja=a();this.ja.gain.value=c;this.fa=a();this.fa.gain.value=1-c;this.Zk=a();this.Td=r(b);this.Td.delayTime.value=b;this.Tm=a();this.Tm.gain.value=f;this.Fa.connect(this.Zk);this.Fa.connect(this.fa);this.Zk.connect(this.ja);this.Zk.connect(this.Td);this.Td.connect(this.Tm);this.Tm.connect(this.Zk)}function l(b,f,c,d){this.type="convolve";this.pc=[f,c,d];this.Fa=a();this.ja=a();this.ja.gain.value=c;this.fa=a();this.fa.gain.value=1-c;this.kh=w.createConvolver();
b&&(this.kh.normalize=f,this.kh.buffer=b);this.Fa.connect(this.kh);this.Fa.connect(this.fa);this.kh.connect(this.ja)}function F(b,f,d,e,h){this.type="flanger";this.pc=[b,f,d,e,h];this.Fa=a();this.fa=a();this.fa.gain.value=1-h/2;this.ja=a();this.ja.gain.value=h/2;this.dn=a();this.dn.gain.value=e;this.Td=r(b+f);this.Td.delayTime.value=b;this.Yb=w.createOscillator();this.Yb.frequency.value=d;this.md=a();this.md.gain.value=f;this.Fa.connect(this.Td);this.Fa.connect(this.fa);this.Td.connect(this.ja);this.Td.connect(this.dn);
this.dn.connect(this.Td);this.Yb.connect(this.md);this.md.connect(this.Td.delayTime);c(this.Yb)}function z(b,f,d,e,h,q){this.type="phaser";this.pc=[b,f,d,e,h,q];this.Fa=a();this.fa=a();this.fa.gain.value=1-q/2;this.ja=a();this.ja.gain.value=q/2;this.Db=w.createBiquadFilter();this.Db.type="number"===typeof this.Db.type?7:"allpass";this.Db.frequency.value=b;this.Db.detune&&(this.Db.detune.value=f);this.Db.Q.value=d;this.Yb=w.createOscillator();this.Yb.frequency.value=h;this.md=a();this.md.gain.value=
e;this.Fa.connect(this.Db);this.Fa.connect(this.fa);this.Db.connect(this.ja);this.Yb.connect(this.md);this.md.connect(this.Db.frequency);c(this.Yb)}function m(b){this.type="gain";this.pc=[b];this.Ja=a();this.Ja.gain.value=b}function v(b,f){this.type="tremolo";this.pc=[b,f];this.Ja=a();this.Ja.gain.value=1-f/2;this.Yb=w.createOscillator();this.Yb.frequency.value=b;this.md=a();this.md.gain.value=f/2;this.Yb.connect(this.md);this.md.connect(this.Ja.gain);c(this.Yb)}function E(b,f){this.type="ringmod";
this.pc=[b,f];this.Fa=a();this.ja=a();this.ja.gain.value=f;this.fa=a();this.fa.gain.value=1-f;this.Dl=a();this.Dl.gain.value=0;this.Yb=w.createOscillator();this.Yb.frequency.value=b;this.Yb.connect(this.Dl.gain);c(this.Yb);this.Fa.connect(this.Dl);this.Fa.connect(this.fa);this.Dl.connect(this.ja)}function q(b,f,c,d,e){this.type="distortion";this.pc=[b,f,c,d,e];this.Fa=a();this.lo=a();this.ko=a();this.zE(c,Math.pow(10,d/20));this.ja=a();this.ja.gain.value=e;this.fa=a();this.fa.gain.value=1-e;this.ep=
w.createWaveShaper();this.Rm=new Float32Array(65536);this.lC(b,f);this.ep.Rm=this.Rm;this.Fa.connect(this.lo);this.Fa.connect(this.fa);this.lo.connect(this.ep);this.ep.connect(this.ko);this.ko.connect(this.ja)}function D(a,b,f,c,d){this.type="compressor";this.pc=[a,b,f,c,d];this.Ja=w.createDynamicsCompressor();try{this.Ja.threshold.value=a,this.Ja.knee.value=b,this.Ja.ratio.value=f,this.Ja.attack.value=c,this.Ja.release.value=d}catch(e){}}function aa(a,b){this.type="analyser";this.pc=[a,b];this.Ja=
w.createAnalyser();this.Ja.fftSize=a;this.Ja.smoothingTimeConstant=b;this.iC=new Float32Array(this.Ja.frequencyBinCount);this.Rw=new Uint8Array(a);this.ql=0}function M(){this.Da=null;this.Mn=0}function B(b,f){this.src=b;this.Ba=A;this.ef=f;this.um=!1;var c=this;this.ej=this.mj=null;this.Xh=[];this.Ao=0;this.Gs=this.cn=this.Yw=this.co=!1;1===A&&f&&!Gb&&(this.Ba=0,this.mj=a());this.wf=this.Ia=null;var d;switch(this.Ba){case 0:this.Ia=new Audio;this.Ia.crossOrigin="anonymous";this.Ia.addEventListener("canplaythrough",
function(){c.Gs=!0});1===A&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Yw=!0,this.Ia.addEventListener("canplay",function(){!c.ej&&c.Ia&&(c.ej=w.createMediaElementSource(c.Ia),c.ej.connect(c.mj))}));this.Ia.autoplay=!1;this.Ia.rw="auto";this.Ia.src=b;break;case 1:y.Dn?y.uu(b,function(a){c.wf=a;c.iu()},function(){c.cn=!0}):(d=new XMLHttpRequest,d.open("GET",b,!0),d.responseType="arraybuffer",d.onload=function(){c.wf=d.response;c.iu()},d.onerror=function(){c.cn=!0},d.send());
break;case 2:this.Ia=!0;break;case 3:this.Ia=!0}}function C(f,c){var d=this;this.tag=c;this.ac=this.$e=!0;this.src=f.src;this.buffer=f;this.Ba=A;this.ef=f.ef;this.playbackRate=1;this.Ji=!0;this.hd=this.Gd=!1;this.Zc=0;this.Ek=this.Ri=this.ff=!1;this.volume=1;this.ur=function(a){if(!d.hd&&!d.Gd){var b=this;b||(b=a.target);b===d.tm&&(d.Ji=!0,d.ac=!0,ta=d.tag,y.trigger(zc.prototype.k.nm,ha))}};this.tm=null;this.Oi=1===X&&!this.ef||2===X;this.gj=1;this.startTime=this.Oi?y.Ob.ea:y.fg.ea;this.Gb=this.Mb=
null;this.jf=!1;this.nc=null;this.gw=this.fw=this.ew=this.dw=this.iw=this.hw=0;this.G=null;var e=!1;1!==this.Ba||0!==this.buffer.Ba||this.buffer.Yw||(this.Ba=0);switch(this.Ba){case 0:this.ef?(this.G=f.Ia,e=!f.um,f.um=!0):(this.G=new Audio,this.G.crossOrigin="anonymous",this.G.autoplay=!1,this.G.src=f.Ia.src,e=!0);e&&this.G.addEventListener("ended",function(){ta=d.tag;d.ac=!0;y.trigger(zc.prototype.k.nm,ha)});break;case 1:this.Mb=a();this.Mb.connect(b(c));1===this.buffer.Ba?f.Ia&&(this.G=w.createBufferSource(),
this.G.buffer=f.Ia,this.G.connect(this.Mb)):(this.G=this.buffer.Ia,this.buffer.mj.connect(this.Mb),this.buffer.um||(this.buffer.um=!0,this.buffer.Ia.addEventListener("ended",function(){ta=d.tag;d.ac=!0;y.trigger(zc.prototype.k.nm,ha)})));break;case 2:this.G=new window.Media(Q+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Ji=!0,d.ac=!0,ta=d.tag,y.trigger(zc.prototype.k.nm,ha))});break;case 3:this.G=!0}}function K(a){I(Ka);if(a.length){var b,f,c;b=0;for(f=G.length;b<f;b++)c=G[b],
ub(a,c.tag)&&Ka.push(c)}else H&&!H.yh()&&(I(Ka),Ka[0]=H)}function P(a,b){ia.hasOwnProperty(a)?ia[a].push(b):ia[a]=[b];var f,c,d,e,h=w.destination;if(ia.hasOwnProperty(a)&&(d=ia[a],d.length))for(h=d[0].vd(),f=0,c=d.length;f<c;f++)e=d[f],f+1===c?e.Rd(w.destination):e.Rd(d[f+1].vd());K(a);f=0;for(c=Ka.length;f<c;f++)Ka[f].jE(h);Za&&Vb===a&&(Za.disconnect(),Za.connect(h))}function Z(){}function S(){}var O=zc.prototype;O.N=function(a){this.da=a;this.b=a.b};O.N.prototype.K=function(){};var y=null,ha=null,
ta="",Q="",A=0,w=null,U=[],G=[],H=null,N=!1,X=0,L=!1,V=1,W=0,ga=0,ba=!1,Qa=1,Ra=1,Ya=10,Wc=1E4,Xc=1,Za=null,Vb="",Yc=!1,Fb=[],Gb=!1,Zc=!1;document.addEventListener("pointerup",n,!0);document.addEventListener("touchend",n,!0);document.addEventListener("click",n,!0);document.addEventListener("keydown",n,!0);document.addEventListener("gamepadconnected",n,!0);var ia={},ed="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");u.prototype.Rd=function(a){this.ja.disconnect();this.ja.connect(a);
this.fa.disconnect();this.fa.connect(a)};u.prototype.remove=function(){this.Fa.disconnect();this.Db.disconnect();this.ja.disconnect();this.fa.disconnect()};u.prototype.vd=function(){return this.Fa};f.prototype.Rd=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};f.prototype.remove=function(){this.Fa.disconnect();this.Zk.disconnect();this.Td.disconnect();this.Tm.disconnect();this.ja.disconnect();this.fa.disconnect()};f.prototype.vd=function(){return this.Fa};
l.prototype.Rd=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};l.prototype.remove=function(){this.Fa.disconnect();this.kh.disconnect();this.ja.disconnect();this.fa.disconnect()};l.prototype.vd=function(){return this.Fa};F.prototype.Rd=function(a){this.fa.disconnect();this.fa.connect(a);this.ja.disconnect();this.ja.connect(a)};F.prototype.remove=function(){this.Fa.disconnect();this.Td.disconnect();this.Yb.disconnect();this.md.disconnect();this.fa.disconnect();
this.ja.disconnect();this.dn.disconnect()};F.prototype.vd=function(){return this.Fa};z.prototype.Rd=function(a){this.fa.disconnect();this.fa.connect(a);this.ja.disconnect();this.ja.connect(a)};z.prototype.remove=function(){this.Fa.disconnect();this.Db.disconnect();this.Yb.disconnect();this.md.disconnect();this.fa.disconnect();this.ja.disconnect()};z.prototype.vd=function(){return this.Fa};m.prototype.Rd=function(a){this.Ja.disconnect();this.Ja.connect(a)};m.prototype.remove=function(){this.Ja.disconnect()};
m.prototype.vd=function(){return this.Ja};v.prototype.Rd=function(a){this.Ja.disconnect();this.Ja.connect(a)};v.prototype.remove=function(){this.Yb.disconnect();this.md.disconnect();this.Ja.disconnect()};v.prototype.vd=function(){return this.Ja};E.prototype.Rd=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};E.prototype.remove=function(){this.Yb.disconnect();this.Dl.disconnect();this.Fa.disconnect();this.ja.disconnect();this.fa.disconnect()};E.prototype.vd=
function(){return this.Fa};q.prototype.zE=function(a,b){.01>a&&(a=.01);this.lo.gain.value=a;this.ko.gain.value=Math.pow(1/a,.6)*b};q.prototype.shape=function(a,b,f){var c=1.05*f*b-b;f=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*f};q.prototype.lC=function(a,b){for(var f=Math.pow(10,a/20),c=Math.pow(10,b/20),d=0,e=0;32768>e;++e)d=e/32768,d=this.shape(d,f,c),this.Rm[32768+e]=d,this.Rm[32768-e-1]=-d};q.prototype.Rd=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();
this.fa.connect(a)};q.prototype.remove=function(){this.Fa.disconnect();this.lo.disconnect();this.ep.disconnect();this.ko.disconnect();this.ja.disconnect();this.fa.disconnect()};q.prototype.vd=function(){return this.Fa};D.prototype.Rd=function(a){this.Ja.disconnect();this.Ja.connect(a)};D.prototype.remove=function(){this.Ja.disconnect()};D.prototype.vd=function(){return this.Ja};aa.prototype.Ha=function(){this.Ja.getFloatFrequencyData(this.iC);this.Ja.getByteTimeDomainData(this.Rw);for(var a=this.Ja.fftSize,
b=0,f=this.ql=0,c=0;b<a;b++)c=(this.Rw[b]-128)/128,0>c&&(c=-c),this.ql<c&&(this.ql=c),f+=c*c;this.ql=t(this.ql);t(Math.sqrt(f/a))};aa.prototype.Rd=function(a){this.Ja.disconnect();this.Ja.connect(a)};aa.prototype.remove=function(){this.Ja.disconnect()};aa.prototype.vd=function(){return this.Ja};M.prototype.tj=function(a){this.Da=a};M.prototype.xn=function(){return!!this.Da};M.prototype.Ha=function(){};B.prototype.kE=function(){var a,b,f,c;f=a=0;for(b=G.length;a<b;++a)c=G[a],G[f]=c,c.buffer===this?
c.stop():++f;G.length=f;this.ej&&(this.ej.disconnect(),this.ej=null);this.mj&&(this.mj.disconnect(),this.mj=null);this.wf=this.Ia=null};B.prototype.iu=function(){if(!this.Ia&&this.wf){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.wf,function(b){a.Ia=b;a.wf=null;var f,c,d;if(la(a.ho)||L)la(a.Km)||(f=a.Km.kh,f.normalize=a.Xv,f.buffer=b);else if(a.Xh.length){f=0;for(c=a.Xh.length;f<c;f++){b=a.Xh[f];d=new C(a,b.hs);d.Fl(!0);if("undefined"!==typeof b.Zv&&(b.Da=y.Fg(b.Zv),!b.Da))continue;if(b.Da){var e=
$a(b.Da.x,b.Da.y,-b.Da.A.lb(),W,ga,!0),h=$a(b.Da.x,b.Da.y,-b.Da.A.lb(),W,ga,!1);d.Eo(e,h,Na(b.Da.B-b.Da.A.lb()),b.yn,b.Un,b.Xn);d.tj(b.Da)}else d.Eo(b.x,b.y,b.Md,b.yn,b.Un,b.Xn);d.play(a.ir,a.Fs,a.Ao);a.co&&d.pause();G.push(d)}I(a.Xh)}else d=new C(a,a.ho||""),d.play(a.ir,a.Fs,a.Ao),a.co&&d.pause(),G.push(d)},function(){a.cn=!0});else if(this.Ia=w.createBuffer(this.wf,!1),this.wf=null,la(this.ho)||L)la(this.Km)||(b=this.Km.kh,b.normalize=this.Xv,b.buffer=this.Ia);else{var b=new C(this,this.ho);b.play(this.ir,
this.Fs,this.Ao);this.co&&b.pause();G.push(b)}}};B.prototype.Zu=function(){switch(this.Ba){case 0:var a=4<=this.Ia.readyState;a&&(this.Gs=!0);return a||this.Gs;case 1:return!!this.wf||!!this.Ia;case 2:return!0;case 3:return!0}return!1};B.prototype.bD=function(){switch(this.Ba){case 0:return this.Zu();case 1:return!!this.Ia;case 2:return!0;case 3:return!0}return!1};B.prototype.SC=function(){switch(this.Ba){case 0:return!!this.Ia.error;case 1:return this.cn}return!1};C.prototype.yh=function(){switch(this.Ba){case 0:return this.G.ended;
case 1:return 1===this.buffer.Ba?!this.$e&&!this.ac&&this.G.loop||this.hd?!1:this.Ji:this.G.ended;case 2:return this.Ji;case 3:!0}return!0};C.prototype.NA=function(){return this.$e||this.ac?!0:this.yh()};C.prototype.Fl=function(a){1===A&&(!this.jf&&a?this.Mb&&(this.Gb||(this.Gb=w.createPanner(),this.Gb.panningModel="number"===typeof this.Gb.panningModel?Qa:["equalpower","HRTF","soundfield"][Qa],this.Gb.distanceModel="number"===typeof this.Gb.distanceModel?Ra:["linear","inverse","exponential"][Ra],
this.Gb.refDistance=Ya,this.Gb.maxDistance=Wc,this.Gb.rolloffFactor=Xc),this.Mb.disconnect(),this.Mb.connect(this.Gb),this.Gb.connect(b(this.tag)),this.jf=!0):this.jf&&!a&&this.Mb&&(this.Gb.disconnect(),this.Mb.disconnect(),this.Mb.connect(b(this.tag)),this.jf=!1))};C.prototype.Eo=function(a,b,f,c,d,e){this.jf&&1===A&&(this.Gb.setPosition(a,b,0),this.Gb.setOrientation(Math.cos(J(f)),Math.sin(J(f)),0),this.Gb.coneInnerAngle=c,this.Gb.coneOuterAngle=d,this.Gb.coneOuterGain=e,this.hw=a,this.iw=b,this.dw=
f,this.ew=c,this.fw=d,this.gw=e)};C.prototype.tj=function(a){this.jf&&1===A&&(this.nc||(this.nc=new M),this.nc.tj(a))};C.prototype.Ha=function(a){if(this.jf&&1===A&&this.nc&&this.nc.xn()&&this.Ni()){this.nc.Ha(a);a=this.nc.Da;var b=$a(a.x,a.y,-a.A.lb(),W,ga,!0),f=$a(a.x,a.y,-a.A.lb(),W,ga,!1);this.Gb.setPosition(b,f,0);b=0;"undefined"!==typeof this.nc.Da.B&&(b=a.B-a.A.lb(),this.Gb.setOrientation(Math.cos(b),Math.sin(b),0))}};C.prototype.play=function(a,b,f,e){var h=this.G;this.ff=a;this.volume=b;
f=f||0;e=e||0;switch(this.Ba){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==b*V&&(h.volume=b*V);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==f)try{h.currentTime=f}catch(q){}p(this);break;case 1:this.muted=!1;this.gj=1;if(1===this.buffer.Ba)this.Mb.gain.value=b*V,this.$e||(this.G=w.createBufferSource(),this.G.buffer=this.buffer.Ia,this.G.connect(this.Mb)),this.G.onended=this.ur,this.tm=this.G,this.G.loop=a,this.Ji=!1,0===f?c(this.G,e):d(this.G,f,this.uh(),e);else{1!==
h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=b*V;if(h.currentTime!==f)try{h.currentTime=f}catch(g){}p(this)}break;case 2:(!this.$e&&this.ac||0!==f)&&h.seekTo(f);h.play();this.Ji=!1;break;case 3:y.Dc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Oi?y.Ob.ea:y.fg.ea)-f;this.hd=this.ac=this.$e=!1};C.prototype.stop=function(){switch(this.Ba){case 0:this.G.paused||this.G.pause();break;case 1:1===this.buffer.Ba?h(this.G):
this.G.paused||this.G.pause();break;case 2:this.G.stop();break;case 3:y.Dc&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.hd=!1};C.prototype.pause=function(){if(!(this.$e||this.ac||this.yh()||this.hd)){switch(this.Ba){case 0:this.G.paused||this.G.pause();break;case 1:1===this.buffer.Ba?(this.Zc=this.rq(!0),this.ff&&(this.Zc=this.Zc%this.uh()),this.hd=!0,h(this.G)):this.G.paused||this.G.pause();break;case 2:this.G.pause();break;case 3:y.Dc&&AppMobi.context.stopSound(this.src)}this.hd=!0}};C.prototype.oE=
function(){if(!(this.$e||this.ac||this.yh())&&this.hd){switch(this.Ba){case 0:p(this);break;case 1:1===this.buffer.Ba?(this.G=w.createBufferSource(),this.G.buffer=this.buffer.Ia,this.G.connect(this.Mb),this.G.onended=this.ur,this.tm=this.G,this.G.loop=this.ff,this.Mb.gain.value=V*this.volume*this.gj,this.Yo(),this.startTime=(this.Oi?y.Ob.ea:y.fg.ea)-this.Zc/(this.playbackRate||.001),d(this.G,this.Zc,this.uh())):p(this);break;case 2:this.G.play();break;case 3:y.Dc&&AppMobi.context.resumeSound(this.src)}this.hd=
!1}};C.prototype.seek=function(a){if(!(this.$e||this.ac||this.yh()))switch(this.Ba){case 0:try{this.G.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Ba)this.hd?this.Zc=a:(this.pause(),this.Zc=a,this.oE());else try{this.G.currentTime=a}catch(f){}break;case 3:y.Dc&&AppMobi.context.seekSound(this.src,a)}};C.prototype.jE=function(a){1===this.Ba&&(this.jf?(this.Gb.disconnect(),this.Gb.connect(a)):(this.Mb.disconnect(),this.Mb.connect(a)))};C.prototype.uh=function(){var a=0;switch(this.Ba){case 0:"undefined"!==
typeof this.G.duration&&(a=this.G.duration);break;case 1:a=this.buffer.Ia.duration;break;case 2:a=this.G.getDuration();break;case 3:y.Dc&&(a=AppMobi.context.getDurationSound(this.src))}return a};C.prototype.rq=function(a){var b=this.uh(),f=0;switch(this.Ba){case 0:"undefined"!==typeof this.G.currentTime&&(f=this.G.currentTime);break;case 1:if(1===this.buffer.Ba){if(this.hd)return this.Zc;f=(this.Oi?y.Ob.ea:y.fg.ea)-this.startTime}else"undefined"!==typeof this.G.currentTime&&(f=this.G.currentTime);
break;case 3:y.Dc&&(f=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(f*=this.playbackRate);!this.ff&&f>b&&(f=b);return f};C.prototype.Ni=function(){return!this.hd&&!this.$e&&!this.ac&&!this.yh()};C.prototype.FE=function(){return!this.$e&&!this.ac&&!this.yh()};C.prototype.SE=function(){var a=this.volume*V;isFinite(a)||(a=0);switch(this.Ba){case 0:"undefined"!==typeof this.G.volume&&this.G.volume!==a&&(this.G.volume=a);break;case 1:1===this.buffer.Ba?this.Mb.gain.value=a*this.gj:"undefined"!==
typeof this.G.volume&&this.G.volume!==a&&(this.G.volume=a)}};C.prototype.Zm=function(a){switch(this.Ba){case 0:this.G.muted!==!!a&&(this.G.muted=!!a);break;case 1:1===this.buffer.Ba?(this.gj=a?0:1,this.Mb.gain.value=V*this.volume*this.gj):this.G.muted!==!!a&&(this.G.muted=!!a)}};C.prototype.AE=function(){this.Ri=!0;this.Zm(this.Ri||this.Ek)};C.prototype.Jw=function(a){this.Ek=!!a;this.Zm(this.Ri||this.Ek)};C.prototype.Yo=function(){var a=this.playbackRate;this.Oi&&(a*=y.dh);switch(this.Ba){case 0:this.G.playbackRate!==
a&&(this.G.playbackRate=a);break;case 1:1===this.buffer.Ba?this.G.playbackRate.value!==a&&(this.G.playbackRate.value=a):this.G.playbackRate!==a&&(this.G.playbackRate=a)}};C.prototype.CE=function(a){switch(this.Ba){case 0:a?this.Ni()?(this.Gd=!0,this.G.pause()):this.Gd=!1:this.Gd&&(this.G.play(),this.Gd=!1);break;case 1:a?this.Ni()?(this.Gd=!0,1===this.buffer.Ba?(this.Zc=this.rq(!0),this.ff&&(this.Zc=this.Zc%this.uh()),h(this.G)):this.G.pause()):this.Gd=!1:this.Gd&&(1===this.buffer.Ba?(this.G=w.createBufferSource(),
this.G.buffer=this.buffer.Ia,this.G.connect(this.Mb),this.G.onended=this.ur,this.tm=this.G,this.G.loop=this.ff,this.Mb.gain.value=V*this.volume*this.gj,this.Yo(),this.startTime=(this.Oi?y.Ob.ea:y.fg.ea)-this.Zc/(this.playbackRate||.001),d(this.G,this.Zc,this.uh())):this.G.play(),this.Gd=!1);break;case 2:a?this.Ni()?(this.G.pause(),this.Gd=!0):this.Gd=!1:this.Gd&&(this.Gd=!1,this.G.play())}};O.M=function(a){this.type=a;y=this.b=a.b;ha=this;this.kd=null;this.Mk=-600;this.b.Dn&&(Gb=!0);!(this.b.Ih||
this.b.Li&&(this.b.Bn||this.b.xk))||this.b.zk||this.b.O||this.b.Xu||Gb||(Yc=!0);w=null;"undefined"!==typeof AudioContext?(A=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(A=1,w=new webkitAudioContext);this.b.Ih&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==A&&(this.b.zd&&"undefined"!==typeof window.Media?A=2:this.b.Yu&&(A=3));2===A&&(Q=location.href,a=Q.lastIndexOf("/"),-1<a&&(Q=
Q.substr(0,a+1)),Q=Q.replace("file://",""));if(this.b.dD&&this.b.gD&&"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.Ld(this);else{if(this.b.Dc)N=this.b.Li;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Lq}catch(b){N=!1}this.b.Hd(this)}};var za=O.M.prototype;za.K=function(){this.b.pi=this;X=this.q[0];this.Wf=this.q[1];this.VD=0!==this.q[2];this.hj=0;Qa=this.q[3];
Ra=this.q[4];this.Mk=-this.q[5];Ya=this.q[6];Wc=this.q[7];Xc=this.q[8];this.kd=new M;var a=this.b.ba||this.b.width,f=this.b.aa||this.b.height;1===A&&(w.listener.setPosition(a/2,f/2,this.Mk),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,f){Za&&Za.disconnect();Vb=f.toLowerCase();Za=w.createMediaStreamSource(a);Za.connect(b(Vb))});this.b.yp(function(a){ha.tr(a)});var c=this;this.b.Nj(function(a){c.gl(a)})};za.gl=function(a){var b,f,c;b=0;for(f=G.length;b<f;b++)c=G[b],c.nc&&
c.nc.Da===a&&(c.nc.Da=null,c.jf&&c.Ni()&&c.ff&&c.stop());this.kd.Da===a&&(this.kd.Da=null)};za.Na=function(){var a={silent:L,masterVolume:V,listenerZ:this.Mk,listenerUid:this.kd.xn()?this.kd.Da.uid:-1,playing:[],effects:{}},b=a.playing,f,c,d,e,h,q;f=0;for(c=G.length;f<c;f++)d=G[f],!d.FE()||3===this.Wf||d.ef&&1===this.Wf||!d.ef&&2===this.Wf||(e=d.rq(),d.ff&&(e=e%d.uh()),e={tag:d.tag,buffersrc:d.buffer.src,is_music:d.ef,playbackTime:e,volume:d.volume,looping:d.ff,muted:d.Ri,playbackRate:d.playbackRate,
paused:d.hd,resume_position:d.Zc},d.jf&&(e.pan={},q=e.pan,d.nc&&d.nc.xn()?q.objUid=d.nc.Da.uid:(q.x=d.hw,q.y=d.iw,q.a=d.dw),q.ia=d.ew,q.oa=d.fw,q.og=d.gw),b.push(e));b=a.effects;for(h in ia)if(ia.hasOwnProperty(h)){d=[];f=0;for(c=ia[h].length;f<c;f++)d.push({type:ia[h][f].type,params:ia[h][f].pc});b[h]=d}return a};var nb=[];za.Sa=function(a){var b=a.silent;V=a.masterVolume;this.Mk=a.listenerZ;this.kd.tj(null);var c=a.listenerUid;-1!==c&&(this.kd.Mn=c,nb.push(this.kd));var c=a.playing,d,e,h,g,k,r,
t,n,p,B,C;if(3!==this.Wf)for(d=0,e=G.length;d<e;d++)p=G[d],p.ef&&1===this.Wf||(p.ef||2!==this.Wf)&&p.stop();for(k in ia)if(ia.hasOwnProperty(k))for(d=0,e=ia[k].length;d<e;d++)ia[k][d].remove();fb(ia);for(k in a.effects)if(a.effects.hasOwnProperty(k))for(r=a.effects[k],d=0,e=r.length;d<e;d++)switch(h=r[d].type,B=r[d].params,h){case "filter":P(k,new u(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "delay":P(k,new f(B[0],B[1],B[2]));break;case "convolve":h=B[2];p=this.jk(h,!1);p.Ia?h=new l(p.Ia,B[0],B[1],
h):(h=new l(null,B[0],B[1],h),p.Xv=B[0],p.Km=h);P(k,h);break;case "flanger":P(k,new F(B[0],B[1],B[2],B[3],B[4]));break;case "phaser":P(k,new z(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "gain":P(k,new m(B[0]));break;case "tremolo":P(k,new v(B[0],B[1]));break;case "ringmod":P(k,new E(B[0],B[1]));break;case "distortion":P(k,new q(B[0],B[1],B[2],B[3],B[4]));break;case "compressor":P(k,new D(B[0],B[1],B[2],B[3],B[4]));break;case "analyser":P(k,new aa(B[0],B[1]))}d=0;for(e=c.length;d<e;d++)3===this.Wf||
(a=c[d],h=a.buffersrc,g=a.is_music,k=a.tag,r=a.playbackTime,t=a.looping,n=a.volume,C=(B=a.pan)&&B.hasOwnProperty("objUid")?B.objUid:-1,g&&1===this.Wf)||!g&&2===this.Wf||((p=this.qn(h,k,g,t,n))?(p.Zc=a.resume_position,p.Fl(!!B),p.play(t,n,r),p.Yo(),p.SE(),p.Zm(p.Ri||p.Ek),a.paused&&p.pause(),a.muted&&p.AE(),p.Zm(p.Ri||p.Ek),B&&(-1!==C?(p.nc=p.nc||new M,p.nc.Mn=C,nb.push(p.nc)):p.Eo(B.x,B.y,B.a,B.ia,B.oa,B.og))):(p=this.jk(h,g),p.Ao=r,p.co=a.paused,B&&(-1!==C?p.Xh.push({Zv:C,yn:B.ia,Un:B.oa,Xn:B.og,
hs:k}):p.Xh.push({x:B.x,y:B.y,Md:B.a,yn:B.ia,Un:B.oa,Xn:B.og,hs:k}))));if(b&&!L){d=0;for(e=G.length;d<e;d++)G[d].Jw(!0);L=!0}else if(!b&&L){d=0;for(e=G.length;d<e;d++)G[d].Jw(!1);L=!1}};za.Od=function(){var a,b,f,c;a=0;for(b=nb.length;a<b;a++)f=nb[a],c=this.b.Fg(f.Mn),f.tj(c),f.Mn=-1,c&&(W=c.x,ga=c.y);I(nb)};za.tr=function(a){if(!this.VD){!a&&w&&w.resume&&(w.resume(),ba=!1);var b,f;b=0;for(f=G.length;b<f;b++)G[b].CE(a);a&&w&&w.suspend&&(w.suspend(),ba=!0)}};za.Ha=function(){var a=this.b.oh,b,f,c;
b=0;for(f=G.length;b<f;b++)c=G[b],c.Ha(a),0!==X&&c.Yo();var d,e;for(d in ia)if(ia.hasOwnProperty(d))for(c=ia[d],b=0,f=c.length;b<f;b++)e=c[b],e.Ha&&e.Ha();1===A&&this.kd.xn()&&(this.kd.Ha(a),W=this.kd.Da.x,ga=this.kd.Da.y,w.listener.setPosition(this.kd.Da.x,this.kd.Da.y,this.Mk))};var ob=[];za.BE=function(a){var b,f,c,d,e,h=0;b=0;for(f=a.length;b<f;++b)if(c=a[b],d=c[0],c=2*c[1],(e=4<d.length&&".ogg"===d.substr(d.length-4))&&N||!e&&!N)ob.push({filename:d,size:c,Da:null}),h+=c;return h};za.HE=function(){var a,
b,f,c;a=0;for(b=ob.length;a<b;++a)f=ob[a],c=this.b.fk+f.filename,f.Da=this.jk(c,!1)};za.xC=function(){var a=0,b,f,c;b=0;for(f=ob.length;b<f;++b)c=ob[b],c.Da.bD()||c.Da.SC()||this.b.O||this.b.xk?a+=c.size:c.Da.Zu()&&(a+=Math.floor(c.size/2));return a};za.lE=function(){var a,b,f,c;f=a=0;for(b=U.length;a<b;++a)c=U[a],U[f]=c,c.ef?c.kE():++f;U.length=f};za.jk=function(a,b){var f,c,d,e=null;f=0;for(c=U.length;f<c;f++)if(d=U[f],d.src===a){e=d;break}e||(Gb&&b&&this.lE(),e=new B(a,b),U.push(e));return e};
za.qn=function(a,b,f,c,d){var e,h,q;e=0;for(h=G.length;e<h;e++)if(q=G[e],q.src===a&&(q.NA()||f))return q.tag=b,q;a=this.jk(a,f);if(!a.Ia)return"<preload>"!==b&&(a.ho=b,a.ir=c,a.Fs=d),null;q=new C(a,b);G.push(q);return q};var Ka=[];Z.prototype.nm=function(a){return ub(ta,a)};Z.prototype.Fy=function(a){K(a);var b;a=0;for(b=Ka.length;a<b;a++)if(Ka[a].Ni())return!0;return!1};O.k=new Z;S.prototype.Play=function(a,b,f,c){!L&&(f=e(f),H=this.qn(this.b.fk+a[0]+(N?".ogg":".m4a"),c,a[1],0!==b,f))&&(H.Fl(!1),
H.play(0!==b,f,0,this.hj),this.hj=0)};S.prototype.zz=function(a,b,f,c,d,h,q,g){if(!L&&c&&(c=c.tn())){f=e(f);var k=a[1];a=this.b.fk+a[0]+(N?".ogg":".m4a");(H=this.qn(a,g,k,0!==b,f))?(H.Fl(!0),g=$a(c.x,c.y,-c.A.lb(),W,ga,!0),a=$a(c.x,c.y,-c.A.lb(),W,ga,!1),H.Eo(g,a,Na(c.B-c.A.lb()),d,h,e(q)),H.tj(c),H.play(0!==b,f,0,this.hj),this.hj=0):this.jk(a,k).Xh.push({Da:c,yn:d,Un:h,Xn:e(q),hs:g})}};S.prototype.Az=function(a,b,f,c,d){!L&&(c=e(c),H=this.qn(this.b.fk+b.toLowerCase()+(N?".ogg":".m4a"),d,1===a,0!==
f,c))&&(H.Fl(!1),H.play(0!==f,c,0,this.hj),this.hj=0)};S.prototype.wp=function(a){K(a);var b;a=0;for(b=Ka.length;a<b;a++)Ka[a].stop()};S.prototype.kA=function(){var a,b;a=0;for(b=G.length;a<b;a++)G[a].stop()};O.C=new S;O.H=new function(){}})();function Ac(g){this.b=g}
(function(){function g(){}function p(){}var n=Ac.prototype;n.N=function(e){this.da=e;this.b=e.b};n.N.prototype.K=function(){};n.M=function(e){this.type=e;this.b=e.b};var k=n.M.prototype;k.K=function(){this.b.O?ja("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Eh=1===this.q[0],this.gd=document.createElement("input"),this.n=this.Eh?document.createElement("label"):this.gd,this.Ik=null,this.gd.type=this.Eh?"checkbox":"button",this.gd.id=this.q[6],
jQuery(this.n).appendTo(this.b.Qd?this.b.Qd:"body"),this.Eh?(jQuery(this.gd).appendTo(this.n),this.Ik=document.createTextNode(this.q[1]),jQuery(this.n).append(this.Ik),this.gd.checked=0!==this.q[7],jQuery(this.n).css("font-family","sans-serif"),jQuery(this.n).css("display","inline-block"),jQuery(this.n).css("color","black")):this.gd.value=this.q[1],this.n.title=this.q[2],this.gd.disabled=0===this.q[4],this.Sj=0!==this.q[5],this.kb=!1,0===this.q[3]&&(jQuery(this.n).hide(),this.visible=!1,this.kb=!0),
this.gd.onclick=function(e){return function(g){g.stopPropagation();e.b.ua=!0;e.b.trigger(Ac.prototype.k.kg,e);e.b.ua=!1}}(this),this.n.addEventListener("touchstart",function(e){e.stopPropagation()},!1),this.n.addEventListener("touchmove",function(e){e.stopPropagation()},!1),this.n.addEventListener("touchend",function(e){e.stopPropagation()},!1),jQuery(this.n).mousedown(function(e){e.stopPropagation()}),jQuery(this.n).mouseup(function(e){e.stopPropagation()}),jQuery(this.n).keydown(function(e){e.stopPropagation()}),
jQuery(this.n).keyup(function(e){e.stopPropagation()}),this.Be=this.Ce=this.xe=this.ze=this.Ae=this.ye=0,this.rd(!0),this.b.Hd(this))};k.Na=function(){var e={tooltip:this.n.title,disabled:!!this.gd.disabled};this.Eh?(e.checked=!!this.gd.checked,e.text=this.Ik.nodeValue):e.text=this.n.value;return e};k.Sa=function(e){this.n.title=e.tooltip;this.gd.disabled=e.disabled;this.Eh?(this.gd.checked=e.checked,this.Ik.nodeValue=e.text):this.n.value=e.text};k.Gc=function(){this.b.O||(jQuery(this.n).remove(),
this.n=null)};k.Ha=function(){this.rd()};k.rd=function(e){if(!this.b.O){var g=this.A.ca(this.x,this.y,!0),b=this.A.ca(this.x,this.y,!1),a=this.A.ca(this.x+this.width,this.y+this.height,!0),k=this.A.ca(this.x+this.width,this.y+this.height,!1),c=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.A.visible||0>=a||0>=k||g>=c||b>=d?(this.kb||jQuery(this.n).hide(),this.kb=!0):(1>g&&(g=1),1>b&&(b=1),a>=c&&(a=c-1),k>=d&&(k=d-1),c=window.innerWidth,d=window.innerHeight,
e||this.ye!==g||this.Ae!==b||this.ze!==a||this.xe!==k||this.Ce!==c||this.Be!==d?(this.ye=g,this.Ae=b,this.ze=a,this.xe=k,this.Ce=c,this.Be=d,this.kb&&(jQuery(this.n).show(),this.kb=!1),e=Math.round(g)+jQuery(this.b.canvas).offset().left,c=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.n).css("position","absolute"),jQuery(this.n).offset({left:e,top:c}),jQuery(this.n).width(Math.round(a-g)),jQuery(this.n).height(Math.round(k-b)),this.Sj&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio-
.2+"em")):this.kb&&(jQuery(this.n).show(),this.kb=!1))}};k.Ub=function(){};k.bb=function(){};g.prototype.kg=function(){return!0};g.prototype.uy=function(){return this.Eh&&this.gd.checked};n.k=new g;p.prototype.rm=function(e){this.b.O||(this.Eh?this.Ik.nodeValue=e:this.n.value=e)};p.prototype.uf=function(e){this.b.O||(this.visible=0!==e)};p.prototype.Nc=function(e){this.b.O||(this.gd.disabled=0===e)};p.prototype.qm=function(e,g){this.b.O||jQuery(this.n).css(e,g)};n.C=new p;n.H=new function(){}})();
function Bc(g){this.b=g}
(function(){function g(){}var p=Bc.prototype;p.N=function(a){this.da=a;this.b=a.b};var n=null,k=null,e=null,t=null,b,a,r,c,d=null;p.N.prototype.K=function(){};p.M=function(a){this.type=a;this.b=a.b};var h=p.M.prototype;h.K=function(){k=[!0,!1][this.q[6]];e=[!0,!1][this.q[4]];t=[!0,!1][this.q[3]];d=[!0,!1][this.q[5]];b=this.q[0];a=this.q[1];r=this.q[2];if(""==b&&""==a&&""==r)return k&&console.error("Please set an API key."),!1;if(""!=a&&""==r)return k&&console.error("Please set a secret if you want to use the Basic API key."),!1;
if(""==a&&""!=r)return k&&console.error("Please set a basic API key."),!1;var h=""==b||null==b?{key:a,secret:r,sandbox:e}:{key:b,sandbox:e};c={rememberUser:t};d&&this.ay(h,c)};h.ay=function(a,b){n=new Dropbox.Client(a);n.authDriver(new Dropbox.Drivers.Redirect(b));n.authenticate(function(a){if(a)return h.sd(a)});n.onAuthStateChange.dispatch=function(a){return function(){4==n.authState?a.b.trigger(Bc.prototype.k.WC,a):5==n.authState&&a.b.trigger(Bc.prototype.k.eD,a)}}(this)};h.sd=function(a){if(k)switch(a.status){case 401:alert("Error 401\nThe user token expired");
break;case 404:alert("Error 404\nThe file or folder you tried to access is not in the user's Dropbox");break;case 507:alert("Error 507\nYour Dropbox is full. You are over your allowed quota");break;case 503:alert("Error 503\nToo many API requests. Try again later");break;case 400:alert("Error 400\nBad input parameter");case 403:alert("Error 403\nBad OAuth request");case 405:alert("Error 405\nRequest method not expected");default:alert("An undefined bug is occured. Please refresh the page.\nIf it persists, please contact iosconstruct.devs@gmail.com")}};
g.prototype.WC=function(){return!0};g.prototype.eD=function(){return!0};p.k=new g;p.C=new function(){};p.H=new function(){}})();function yc(g){this.b=g}
(function(){function g(){this.name="";this.Cl=0;this.pc=[]}function p(){a++;a===b.length&&b.push(new g);return b[a]}function n(){}function k(){}function e(){}var t=yc.prototype;t.N=function(a){this.da=a;this.b=a.b};t.N.prototype.K=function(){};t.M=function(a){this.type=a;this.b=a.b};var b=[],a=-1;t.M.prototype.K=function(){var b=this;window.c2_callFunction=function(c,d){var e,g,f,k=p();k.name=c.toLowerCase();k.Cl=0;if(d)for(k.pc.length=d.length,e=0,g=d.length;e<g;++e)f=d[e],k.pc[e]="number"===typeof f||
"string"===typeof f?f:"boolean"===typeof f?f?1:0:0;else I(k.pc);b.b.trigger(yc.prototype.k.om,b,k.name);a--;return k.Cl}};n.prototype.om=function(e){var c=0>a?null:b[a];return c?ub(e,c.name):!1};t.k=new n;k.prototype.CallFunction=function(b,c){var d=p();d.name=b.toLowerCase();d.Cl=0;Ha(d.pc,c);this.b.trigger(yc.prototype.k.om,this,d.name);a--};t.C=new k;e.prototype.Px=function(b,c){var d=p();d.name=c.toLowerCase();d.Cl=0;I(d.pc);var e,g;e=2;for(g=arguments.length;e<g;e++)d.pc.push(arguments[e]);this.b.trigger(yc.prototype.k.om,
this,d.name);a--;b.Mw(d.Cl)};t.H=new e})();function Cc(g){this.b=g}
(function(){function g(){}function p(){}function n(){}var k=Cc.prototype,e=[];k.N=function(b){this.da=b;this.b=b.b};k.N.prototype.K=function(){};k.M=function(b){this.type=b;this.b=b.b;this.link=document.createElement("a");this.frame=null;this.visible=!1;this.load=0;this.scale=1;this.url=this.ig=this.Ks="";e.push(this)};var t=k.M.prototype;t.K=function(){this.n=document.createElement("div");this.q[7]?(this.n.innerHTML=this.q[9],this.frame=this.n):(this.n.zh=document.createElement("iframe"),this.n.zh.style.width=
"100%",this.n.zh.style.height="100%",this.frame=this.n.zh,this.q[8]&&this.Ns(this.q[8]));this.frame.id=this.q[0]||this.rD();this.frame.Lp=this.q[1];this.frame.setAttribute("id",this.frame.id);this.frame.setAttribute("class",this.frame.Lp);this.q[3]&&this.frame.setAttribute("title",this.q[3]);this.frame.setAttribute("frameborder",0);this.frame.setAttribute("allowFullScreen","");var b=0<this.width?1:-1,a=0<this.height?1:-1;this.n.style.cssText="-webkit-transform:rotate("+this.B*b*a*180/3.1416+"deg);-moz-transform:rotate("+
this.B*b*a*180/3.1416+"deg);-o-transform:rotate("+this.B*b*a*180/3.1416+"deg);-ms-transform:rotate("+this.B*b*a*180/3.1416+"deg);";this.frame.style.background=this.q[4];this.frame.style.border=this.q[5];this.frame.style.color=this.q[10];switch(this.q[6]){case 0:this.frame.setAttribute("scrolling","no");this.frame.style.overflow="hidden";break;case 1:this.frame.style.overflow="auto";break;case 2:this.frame.style.overflowX="auto";this.frame.style.overflowY="hidden";break;case 3:this.frame.style.overflowX=
"hidden",this.frame.style.overflowY="auto"}this.q[11]||($(this.frame).css("user-select","none"),$(this.frame).css("cursor","default"));this.q[13]&&this.my(this.q[13].replace(/\s/g,""));this.q[14]&&this.ny(this.q[14].replace(/\s/g,""));$(this.n).appendTo(this.b.Qd?this.b.Qd:"body");$(this.n.zh).appendTo($(this.n));$(this.frame).bind("contextmenu",function(){return!1});this.q[2]||(jQuery(this.n).hide(),this.visible=!1);this.rd();this.b.Hd(this)};t.Na=function(){return{id:this.frame.id,"class":this.frame.Lp,
html:this.n.innerHTML,css:this.n.style.cssText,style:this.frame.style.cssText,url:this.q[7]?"":this.n.zh.contentWindow.location.href}};t.Sa=function(b){this.frame.id=b.id;this.frame.Lp=b["class"];this.n.style.cssText=b.css;this.q[7]?this.n.innerHTML=b.html:(this.n.zh.style.cssText=b.style,this.Ns(b.url))};t.Ub=function(){};t.bb=function(){};t.Gc=function(){e.splice(e.indexOf(this),1);jQuery(this.frame).remove();this.n=null};t.Ha=function(){this.rd()};t.rd=function(){if(!this.b.O){var b=this.A.ca(this.x,
this.y,!0),a=this.A.ca(this.x,this.y,!1),e=this.A.ca(this.x+this.width,this.y+this.height,!0),c=this.A.ca(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.A.visible||0>=e||0>=c||b>=this.b.width||a>=this.b.height)jQuery(this.n).hide();else{b=1>b?1:Math.round(b);a=1>a?1:Math.round(a);e=e>=this.b.width?Math.round(this.b.width-1):Math.round(e);c=c>=this.b.height?Math.round(this.b.height-1):Math.round(c);jQuery(this.n).show();var d=b+jQuery(this.b.canvas).offset().left,h=a+jQuery(this.b.canvas).offset().top;
jQuery(this.n).offset({left:parseInt(d),top:parseInt(h)});jQuery(this.n).width(e-b);jQuery(this.n).height(c-a);this.n.width=Math.round(this.n.width);this.n.height=Math.round(this.n.height);this.n.x=Math.round(this.n.x);this.n.y=Math.round(this.n.y);1==this.q[12]&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio-.2+"em");2==this.q[12]&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio-.4+"em");3==this.q[12]&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio-
.1+"em");4==this.q[12]&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio+"em")}}};t.rD=function(){for(var b="",a=0;10>a;a++)b+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(62*Math.random()));return b};t.my=function(b){for(var a=b.replace(/ /gi).split(";"),e=0;e<a.length;e++){var c=$("link[href='"+a[e]+"']").offset();""!=a[e]&&"undefined"===typeof c&&(this.ig+=this.ig.length?" "+b:b,this.Kj=document.createElement("link"),this.Kj.setAttribute("type",
"text/css"),this.Kj.setAttribute("rel","stylesheet"),this.Kj.setAttribute("href",a[e]),"undefined"!=typeof this.Kj&&document.getElementsByTagName("head")[0].appendChild(this.Kj))}};t.ny=function(b){b=b.replace(/ /gi).split(";");for(var a=0;a<b.length;a++){var e=$("script[src='"+b[a]+"']").offset();""!=b[a]&&"undefined"===typeof e&&(this.Lj=document.createElement("script"),this.Lj.setAttribute("type","text/javascript"),this.Lj.setAttribute("async","async"),this.Lj.setAttribute("src",b[a]),"undefined"!=
typeof this.Lj&&document.getElementsByTagName("head")[0].appendChild(this.Lj))}};t.sd=function(b,a){var e=document.getElementsByTagName(a),c="script"===a?"src":"href";this.ig="script"===a?this.ig:this.ig.replace(b,"").replace(/^\s+|\s+$/g,"");for(var d=0;d<e.length;d++)if(e[d].getAttribute(c)===b){e[d].parentNode.removeChild(e[d]);break}};t.Ns=function(b){if(!this.q[7]){b=0==b.indexOf("http")?b:"http://"+b;var a=this;this.url=b;this.load=1;this.n.zh.src=this.url;this.b.trigger(g.prototype.Oq,this);
jQuery.ajax({context:a,dataType:"text",type:"GET",url:b,success:function(){a.frame.onload=function(){return function(){a.url=a.frame.contentWindow.location.href;a.b.trigger(g.prototype.jv,a)}}(a);a.load=0},error:function(){a.frame.onload=function(){return function(){a.url=a.frame.contentWindow.location.href;a.b.trigger(g.prototype.sd,a)}}(a);a.load=0}})}};k.sd=new function(){};g.prototype.sd=function(){return!0};g.prototype.jv=function(){return!0};g.prototype.By=function(){return this.b.O?!1:this.load};
g.prototype.Oq=function(){return!0};k.k=new g;p.prototype.uf=function(b){this.b.O||(this.visible=0!==b)};k.C=new p;n.prototype.ig=function(b){b.Y(this.ig)};n.prototype.Ks=function(b){b.Y(this.Ks)};k.H=new n})();function Dc(g){this.b=g}
(function(){function g(){}var p=Dc.prototype;p.N=function(e){this.da=e;this.b=e.b};p.N.prototype.K=function(){};p.M=function(e){this.type=e;this.b=e.b;this.Xi=Array(256);this.Yl=Array(256);this.eg=0};var n=p.M.prototype;n.K=function(){var e=this;this.b.O||(jQuery(document).keydown(function(g){e.hl(g)}),jQuery(document).keyup(function(g){e.il(g)}))};var k=[32,33,34,35,36,37,38,39,40,44];n.hl=function(e){var g=!1;window!=window.top&&-1<k.indexOf(e.which)&&(e.preventDefault(),g=!0,e.stopPropagation());
if(this.Xi[e.which])this.Yl[e.which]&&!g&&e.preventDefault();else{this.Xi[e.which]=!0;this.eg=e.which;this.b.ua=!0;this.b.trigger(Dc.prototype.k.Vy,this);var b=this.b.trigger(Dc.prototype.k.Ws,this),a=this.b.trigger(Dc.prototype.k.iz,this);this.b.ua=!1;if(b||a)this.Yl[e.which]=!0,g||e.preventDefault()}};n.il=function(e){this.Xi[e.which]=!1;this.eg=e.which;this.b.ua=!0;this.b.trigger(Dc.prototype.k.Qs,this);var g=this.b.trigger(Dc.prototype.k.Ys,this),b=this.b.trigger(Dc.prototype.k.Xs,this);this.b.ua=
!1;if(g||b||this.Yl[e.which])this.Yl[e.which]=!0,e.preventDefault()};n.Tf=function(){var e;for(e=0;256>e;++e)if(this.Xi[e]){this.Xi[e]=!1;this.eg=e;this.b.trigger(Dc.prototype.k.Qs,this);var g=this.b.trigger(Dc.prototype.k.Ys,this),b=this.b.trigger(Dc.prototype.k.Xs,this);if(g||b)this.Yl[e]=!0}};n.Na=function(){return{triggerKey:this.eg}};n.Sa=function(e){this.eg=e.triggerKey};g.prototype.Ay=function(e){return this.Xi[e]};g.prototype.Ws=function(e){return e===this.eg};g.prototype.Vy=function(){return!0};
g.prototype.Qs=function(){return!0};g.prototype.Ys=function(e){return e===this.eg};g.prototype.iz=function(e){return e===this.eg};g.prototype.Xs=function(e){return e===this.eg};p.k=new g;p.C=new function(){};p.H=new function(){}})();function Ec(g){this.b=g}
(function(){function g(){}function p(){}function n(){}var k=Ec.prototype;k.N=function(e){this.da=e;this.b=e.b};k.N.prototype.K=function(){};k.M=function(e){this.type=e;this.b=e.b};var e=k.M.prototype;e.K=function(){if(this.b.O)ja("[Construct 2] List plugin not supported on this platform - the object will not be created");else{this.n=document.createElement("select");this.n.id=this.q[7];jQuery(this.n).appendTo(this.b.Qd?this.b.Qd:"body");this.n.title=this.q[1];this.n.disabled=0===this.q[3];0===this.q[4]&&
(this.n.size=2);this.n.multiple=0!==this.q[5];this.Sj=0!==this.q[6];0===this.q[2]&&(jQuery(this.n).hide(),this.visible=!1);if(this.q[0]){var e=this.q[0].split(";"),b,a,g;b=0;for(a=e.length;b<a;b++)g=document.createElement("option"),g.text=e[b],this.n.add(g)}var c=this;this.n.onchange=function(){c.b.trigger(Ec.prototype.k.nz,c)};this.n.onclick=function(a){a.stopPropagation();c.b.ua=!0;c.b.trigger(Ec.prototype.k.kg,c);c.b.ua=!1};this.n.ondblclick=function(a){a.stopPropagation();c.b.ua=!0;c.b.trigger(Ec.prototype.k.rp,
c);c.b.ua=!1};this.n.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.n.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.n.addEventListener("touchend",function(a){a.stopPropagation()},!1);jQuery(this.n).mousedown(function(a){a.stopPropagation()});jQuery(this.n).mouseup(function(a){a.stopPropagation()});this.Be=this.Ce=this.xe=this.ze=this.Ae=this.ye=0;this.Pi=!0;this.rd(!0);this.b.Hd(this)}};e.Na=function(){var e={tooltip:this.n.title,disabled:!!this.n.disabled,
items:[],sel:[]},b,a,g=e.items;b=0;for(a=this.n.length;b<a;b++)g.push(this.n.options[b].text);g=e.sel;if(this.n.multiple)for(b=0,a=this.n.length;b<a;b++)this.n.options[b].selected&&g.push(b);else g.push(this.n.selectedIndex);return e};e.Sa=function(e){this.n.title=e.tooltip;this.n.disabled=e.disabled;for(var b=e.items;this.n.length;)this.n.remove(this.n.length-1);var a,g,c;a=0;for(g=b.length;a<g;a++)c=document.createElement("option"),c.text=b[a],this.n.add(c);e=e.sel;if(this.n.multiple)for(a=0,g=
e.length;a<g;a++)e[a]<this.n.length&&(this.n.options[e[a]].selected=!0);else 1<=e.length&&(this.n.selectedIndex=e[0])};e.Gc=function(){this.b.O||(jQuery(this.n).remove(),this.n=null)};e.Ha=function(){this.rd()};e.rd=function(e){if(!this.b.O){var b=this.A.ca(this.x,this.y,!0),a=this.A.ca(this.x,this.y,!1),g=this.A.ca(this.x+this.width,this.y+this.height,!0),c=this.A.ca(this.x+this.width,this.y+this.height,!1),d=this.b.width/this.b.devicePixelRatio,h=this.b.height/this.b.devicePixelRatio;!this.visible||
!this.A.visible||0>=g||0>=c||b>=d||a>=h?(this.Pi&&jQuery(this.n).hide(),this.Pi=!1):(1>b&&(b=1),1>a&&(a=1),g>=d&&(g=d-1),c>=h&&(c=h-1),d=window.innerWidth,h=window.innerHeight,e||this.ye!==b||this.Ae!==a||this.ze!==g||this.xe!==c||this.Ce!==d||this.Be!==h?(this.ye=b,this.Ae=a,this.ze=g,this.xe=c,this.Ce=d,this.Be=h,this.Pi||(jQuery(this.n).show(),this.Pi=!0),e=Math.round(b)+jQuery(this.b.canvas).offset().left,d=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.n).css("position","absolute"),
jQuery(this.n).offset({left:e,top:d}),jQuery(this.n).width(Math.round(g-b)),jQuery(this.n).height(Math.round(c-a)),this.Sj&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio-.2+"em")):this.Pi||(jQuery(this.n).show(),this.Pi=!0))}};e.Ub=function(){};e.bb=function(){};g.prototype.nz=function(){return!0};g.prototype.kg=function(){return!0};g.prototype.rp=function(){return!0};k.k=new g;p.prototype.uf=function(e){this.b.O||(this.visible=0!==e)};p.prototype.Nc=function(e){this.b.O||(this.n.disabled=
0===e)};p.prototype.qm=function(e,b){this.b.O||jQuery(this.n).css(e,b)};k.C=new p;n.prototype.Fz=function(e){this.b.O?e.ta(0):e.ta(this.n.selectedIndex)};n.prototype.Gz=function(e){if(this.b.O)e.Y("");else{var b=this.n.selectedIndex;0>b||b>=this.n.length?e.Y(""):e.Y(this.n.options[b].text)}};k.H=new n})();function Fc(g){this.b=g}
(function(){function g(){}function p(){}function n(){}var k=Fc.prototype;k.N=function(a){this.da=a;this.b=a.b};k.N.prototype.K=function(){};k.M=function(a){this.type=a;this.b=a.b;this.ih=Array(4);this.nx=this.To=this.hi=this.Pf=this.Of=0;this.xq=!1};var e=k.M.prototype;e.K=function(){var a=this;if(!this.b.O){jQuery(document).mousemove(function(b){a.ll(b)});jQuery(document).mousedown(function(b){a.kl(b)});jQuery(document).mouseup(function(b){a.ml(b)});jQuery(document).dblclick(function(b){a.GD(b)});
var b=function(b){a.KD(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var t={left:0,top:0};e.ll=function(a){var b=this.b.O?t:jQuery(this.b.canvas).offset();this.Of=a.pageX-b.left;this.Pf=a.pageY-b.top};e.Pv=function(){return 0<this.b.Ac?!0:0<=this.Of&&0<=this.Pf&&this.Of<this.b.width&&this.Pf<this.b.height};e.kl=function(a){this.Pv()&&(this.ih[a.which]=!0,this.b.ua=!0,this.b.trigger(Fc.prototype.k.Uy,this),this.hi=a.which-1,this.To=0,this.b.trigger(Fc.prototype.k.qp,
this),this.b.trigger(Fc.prototype.k.sp,this),this.b.ua=!1)};e.ml=function(a){this.ih[a.which]&&(this.b.vn&&!this.b.cf&&a.preventDefault(),this.b.vn=!0,this.ih[a.which]=!1,this.b.ua=!0,this.hi=a.which-1,this.b.trigger(Fc.prototype.k.it,this),this.b.ua=!1)};e.GD=function(a){this.Pv()&&(a.preventDefault(),this.b.ua=!0,this.hi=a.which-1,this.To=1,this.b.trigger(Fc.prototype.k.qp,this),this.b.trigger(Fc.prototype.k.sp,this),this.b.ua=!1)};e.KD=function(a){this.nx=0>(a.wheelDelta?a.wheelDelta:a.detail?
-a.detail:0)?0:1;this.xq=!1;this.b.ua=!0;this.b.trigger(Fc.prototype.k.At,this);this.b.ua=!1;this.xq&&vb(a)&&a.preventDefault()};e.Tf=function(){var a,b;a=0;for(b=this.ih.length;a<b;++a)this.ih[a]&&(this.ih[a]=!1,this.hi=a-1,this.b.trigger(Fc.prototype.k.it,this))};g.prototype.qp=function(a,b){return a===this.hi&&b===this.To};g.prototype.Uy=function(){return!0};g.prototype.ty=function(a){return this.ih[a+1]};g.prototype.it=function(a){return a===this.hi};g.prototype.Dy=function(a){var b=this.b.Ei();
return bb(this.b.xj(a,this.Of,this.Pf,b.Ki),b.Ki)};g.prototype.sp=function(a,b,c){return a!==this.hi||b!==this.To?!1:this.b.xj(c,this.Of,this.Pf,!1)};g.prototype.At=function(a){this.xq=!0;return a===this.nx};k.k=new g;var b=null;p.prototype.Nz=function(a){this.b.O||(a="auto pointer text crosshair move help wait none".split(" ")[a],b!==a&&(b=a,document.body.style.cursor=a))};p.prototype.Oz=function(a){this.b.O||this.b.cf||!a||(a=a.tn())&&a.Lb&&(a=a.Lb,b!==a&&(b=a,a="url("+a.qC()+") "+Math.round(a.Bc*
a.width)+" "+Math.round(a.Cc*a.height)+", auto",document.body.style.cursor="",document.body.style.cursor=a))};k.C=new p;n.prototype.Mj=function(a,b){var c,d,e,g,f;la(b)?(c=this.b.Gf(0),d=c.scale,e=c.Ic,g=c.Uc,f=c.B,c.scale=1,c.Ic=1,c.Uc=1,c.B=0,a.R(c.$a(this.Of,this.Pf,!0)),c.scale=d,c.Ic=e,c.Uc=g,c.B=f):(c=ma(b)?this.b.Gf(b):this.b.lk(b))?a.R(c.$a(this.Of,this.Pf,!0)):a.R(0)};n.prototype.gh=function(a,b){var c,d,e,g,f;la(b)?(c=this.b.Gf(0),d=c.scale,e=c.Ic,g=c.Vc,f=c.B,c.scale=1,c.Ic=1,c.Vc=1,c.B=
0,a.R(c.$a(this.Of,this.Pf,!1)),c.scale=d,c.Ic=e,c.Vc=g,c.B=f):(c=ma(b)?this.b.Gf(b):this.b.lk(b))?a.R(c.$a(this.Of,this.Pf,!1)):a.R(0)};k.H=new n})();function Y(g){this.b=g}
(function(){function g(a){this.j=a;this.history=[]}function p(a){this.CD=a;this.B=this.y=this.x=this.timestamp=0;this.Jg=[]}function n(a,b,c,d){a=b-a;if(0===a)return 0;b=qa(a);if(b<=qa(c/10)||1>b||1E3<=b)return a;var e=b/50;d&&(e=ra(e,1));d=qa(c/5);10<=b&&(e=b/10,d=qa(c/2));c=ra(e,d);c>b&&(c=b);return 0<a?c:-c}function k(){}function e(){}function t(a){switch(a){case 0:return"o";case 1:return"r";case 2:return"u";default:return"o"}}function b(){}function a(a,b){if(!a)return null;b=Math.floor(b);return 0>
b||b>=a.length?null:a[b]}var r=Y.prototype;r.N=function(a){this.da=a;this.b=a.b};r.N.prototype.K=function(){};r.M=function(a){this.type=a;this.b=a.b};var c=r.M.prototype,d=!1;c.K=function(){this.L=null;(d=window.C2Multiplayer_IsSupported())&&"undefined"!==typeof window.C2Multiplayer&&(this.L=new window.C2Multiplayer);this.Rv=this.Sv=this.Tv=this.Qv=this.nD=this.rl=this.sl=this.Tw="";this.Wo={};this.wk={};this.kf={};this.Gj=this.sj=this.kC=null;this.zn=[];this.gi=[];this.hf={};var a=this;d&&(this.L.onserverlist=
function(){a.b.trigger(Y.prototype.k.oz,a)},this.L.onsignallingerror=function(){a.b.trigger(Y.prototype.k.mt,a)},this.L.onsignallingclose=function(){a.b.trigger(Y.prototype.k.pz,a);a.Tw=""},this.L.onsignallingwelcome=function(){a.b.trigger(Y.prototype.k.lt,a)},this.L.onsignallinglogin=function(){a.b.trigger(Y.prototype.k.qt,a)},this.L.onsignallingjoin=function(b){a.wk={};a.kf={};a.gi.length=0;a.zn.length=0;a.hf={};a.b.trigger(Y.prototype.k.nt,a);a.b.Gh&&b&&a.Gj.postMessage("start")},this.L.onsignallingleave=
function(){a.b.trigger(Y.prototype.k.pt,a)},this.L.onsignallingkicked=function(){a.b.trigger(Y.prototype.k.ot,a)},this.L.onbeforeclientupdate=function(){a.b.trigger(Y.prototype.k.Rs,a)},this.L.onpeeropen=function(b){a.sl=b.id;a.rl=b.alias;a.b.trigger(Y.prototype.k.et,a)},this.L.onpeerclose=function(b,c){a.sl=b.id;a.rl=b.alias;a.nD=c||"unknown";var d=a.Au(b);if(d){var e=a.Wo[d.type];e&&e.removeObjectNid(b.nid);a.b.Ld(d)}a.kf.hasOwnProperty(b.id)&&delete a.kf[b.id];a.b.trigger(Y.prototype.k.gt,a)},
this.L.onpeermessage=function(b,c){a.Tv=c.t;a.Sv=c.f?c.f:b.id;a.Rv=a.L.getAliasFromId(a.Sv);a.Qv=c.m;a.b.trigger(Y.prototype.k.Wy,a);a.b.trigger(Y.prototype.k.ht,a)},this.L.onsignallinginstancelist=function(b){a.kC=b;a.b.trigger(Y.prototype.k.fz,a)},this.L.onsignallingroomlist=function(b){a.sj=b;a.b.trigger(Y.prototype.k.jt,a)},this.L.ongetobjectcount=function(a){return a.u.length},this.L.ongetobjectvalue=function(b,c,d){if(!d)return b.u[c].uid;b=b.u[c];switch(d.tag){case "x":return b.x;case "y":return b.y;
case "a":return b.B;case "iv":if(d.clientvaluetag&&(c=a.wk[b.uid])&&a.L.me!==c&&!c.wasRemoved&&c.hasClientState(d.clientvaluetag))return c.getInterpClientState(d.clientvaluetag);d=b.Wa[d.userdata];return"number"===typeof d?d:0;default:return 0}},this.L.oninstancedestroyed=function(b,c,d){var e=b.userdata;b=e.Eq;e.Sp||(e.Sp={});e.Sp[c]=d;b&&b.hasOwnProperty(c)&&((d=b[c])&&a.b.Ld(d),delete b[c])},this.b.Nj(function(b){var c,d=b.uid;a.wk.hasOwnProperty(d)&&delete a.wk[d];for(c in a.kf)if(a.kf.hasOwnProperty(c)&&
a.kf[c]===b){delete a.kf[c];break}a.hf.hasOwnProperty(d)&&delete a.hf[d];c=a.zn.indexOf(b);-1<c&&a.zn.splice(c,1);c=a.gi.indexOf(b);-1<c&&a.gi.splice(c,1);a.L.removeObjectId(d)}),this.Gj=new Worker("waker.js"),this.Gj.addEventListener("message",function(b){"tick"===b.data&&a.b.Gh&&a.b.Ha(!0)},!1),this.Gj.postMessage(""));this.b.yp(function(b){d&&a.L.isHost()&&(b?a.Gj.postMessage("start"):a.Gj.postMessage("stop"))});this.b.dE(this)};c.Au=function(a){a=a.id;return this.kf.hasOwnProperty(a)?this.kf[a]:
null};c.aD=function(a){return 0<=this.zn.indexOf(a)};c.cE=function(){if(d){this.L.tick(this.b.Bg);this.OE();var a,b,c;if(this.L.isInRoom()&&!this.L.isHost())for(a=0,b=this.L.registeredObjects.length;a<b;++a)c=this.L.registeredObjects[a],this.RE(c)}};var h=[];c.RE=function(a){a.tick();var b=a.obj,c=a.getCount(),d=a.netvalues,e=a.userdata;e.Eq||(e.Eq={});var g=e.Eq,e=e.Sp,k=a.simTime,q,r,t,n,p,u,K,P=d.length;for(q in g)g.hasOwnProperty(q)&&(n=g[q],this.b.Fg(n.uid)||delete g[q]);if(e)for(q in e)e.hasOwnProperty(q)&&
e[q]<k-3E3&&delete e[q];for(q=0;q<c;++q)if(r=a.getNetInstAt(q),t=r.nid,e&&e[t]>=k-3E3)h.push(r),g.hasOwnProperty(t)&&(this.b.Ld(g[t]),delete g[t]);else{if(g.hasOwnProperty(t))n=g[t],K=!1;else{if(n=this.L.getPeerByNid(t))this.sl=n.id,this.rl=n.alias;else{if(a.hasOverriddenNids)continue;this.rl=this.sl=""}n=this.b.Mm(b,this.b.Ka.la[b.ju],-1E3,-1E3);g[t]=n;K=!0}if(r.isTimedOut(k))h.push(r),g.hasOwnProperty(t)&&delete g[t],this.b.Ld(n);else{if(this.aD(n))this.RA(n,r,d,k);else for(u=0;u<P;++u)switch(t=
r.getInterp(k,u),p=d[u],p.tag){case "x":n.x=t;n.J();break;case "y":n.y=t;n.J();break;case "a":n.B=t;n.J();break;case "iv":p=p.userdata;if(p>n.Wa.length||"number"!==typeof n.Wa[p])break;n.Wa[p]=t}K&&this.b.trigger(Object.getPrototypeOf(b.da).k.lg,n)}}q=0;for(c=h.length;q<c;++q)a.removeNetInstance(h[q]);h.length=0};c.OE=function(){var a=this.L.getHostInputArrivalTime(),b,c;b=0;for(c=this.gi.length;b<c;++b)this.PE(this.gi[b],a)};g.prototype.Gu=function(a){if(2>this.history.length)return 0;var b=this.history[this.history.length-
2],c=this.history[this.history.length-1];switch(a){case "x":return c.x-b.x;case "y":return c.y-b.y;case "a":return c.B-b.B;case "iv":return c.Jg[void 0]-b.Jg[void 0]}return 0};g.prototype.Fu=function(a,b,c,d){var e,h,g,q=null,k=null;e=0;for(h=this.history.length;e<h;++e)if(g=this.history[e],g.timestamp<c)q=g;else{e+1<this.history.length&&(k=this.history[e+1]);break}if(q){e=0;switch(a){case "x":e=q.x;break;case "y":e=q.y;break;case "a":e=q.B;break;case "iv":e=q.Jg[b]}if(!k)return e;h=e;switch(a){case "x":h=
k.x;break;case "y":h=k.y;break;case "a":h=k.B;break;case "iv":h=k.Jg[b]}return window.interpNetValue(d,e,h,cb(q.timestamp,k.timestamp,c),!1)}};g.prototype.FA=function(a,b,c){var d,e,h;d=0;for(e=this.history.length;d<e;++d)switch(h=this.history[d],a){case "x":h.x+=c;break;case "y":h.y+=c;break;case "a":h.B+=c;break;case "iv":h.Jg[b]+=c}};var u=[];c.PE=function(a,b){this.hf.hasOwnProperty(a.uid)||(this.hf[a.uid]=new g(a));var c=this.hf[a.uid],d;u.length?(d=u.pop(),d.CD=c):d=new p(c);d.timestamp=b;d.x=
a.x;d.y=a.y;d.B=a.B;Ha(d.Jg,a.Wa);for(c.history.push(d);0<c.history.length&&c.history[0].timestamp<=b-2E3;)d=c.history.shift(),d.Jg.length=0,1E3>u.length&&u.push(d)};c.RA=function(a,b,c,d){if(this.hf.hasOwnProperty(a.uid)){var e=this.hf[a.uid],h,g,q,k,r,t,p,u=c.length,K=ab(0,0,e.Gu("x"),e.Gu("y")),P=!!a.W.isPlatformBehavior;for(h=0;h<u;++h)if(r=c[h],t=r.tag,p=r.userdata,k=r.interp,g=b.getLatestUpdate())if(q=g.data[h],k=e.Fu(t,p,g.timestamp,k),"undefined"!==typeof k){g=0;switch(t){case "x":g=n(k,q,
K,P);0!==g&&(a.x+=g,a.J());break;case "y":g=n(k,q,K,P);0!==g&&(a.y+=g,a.J());break;case "a":g=db(k,q,.5)-k;0!==g&&(a.B+=g,a.J());break;case "iv":q=p;if(q>a.Wa.length||"number"!==typeof a.Wa[q])break;r.clientvaluetag||(a.Wa[q]=b.getInterp(d,h))}0!==g&&e.FA(t,p,g)}}};c.Oq=function(){};c.Gc=function(){};c.Na=function(){return{}};c.Sa=function(){};k.prototype.oz=function(){return!0};k.prototype.mt=function(){return!0};k.prototype.lt=function(){return!0};k.prototype.pz=function(){return!0};k.prototype.qt=
function(){return!0};k.prototype.nt=function(){return!0};k.prototype.pt=function(){return!0};k.prototype.ot=function(){return!0};k.prototype.et=function(){return!0};k.prototype.gt=function(){return!0};k.prototype.aA=function(){return d&&this.L.isConnected()};k.prototype.yy=function(){return d&&this.L.isHost()};k.prototype.ht=function(a){return this.Tv===a};k.prototype.Wy=function(){return!0};k.prototype.Rs=function(){return!0};k.prototype.fz=function(){return!0};k.prototype.jt=function(){return!0};
r.k=new k;e.prototype.Zz=function(a){d&&!this.L.isConnected()&&(this.Tw=a,this.L.signallingConnect(a))};e.prototype.$z=function(){d&&this.L.isConnected()&&this.L.signallingDisconnect()};e.prototype.bA=function(a){d&&this.L.isConnected&&!this.L.isLoggedIn()&&this.L.signallingLogin(a)};e.prototype.Yz=function(a,b,c,e,h){d&&this.L.isLoggedIn()&&!this.L.isInRoom()&&this.L.signallingAutoJoinGameRoom(a,b,c,e,0===h)};e.prototype.Hz=function(a,b,c,e){d&&(a||(a=this.L.getHostID()),(a=this.L.getPeerById(a))&&
a.send(t(e),JSON.stringify({c:"m",t:b,m:c})))};c.nu=function(a,b,c,e){d&&(e=this.L.registerObject(a,a.wa,e),1===b?(e.addValue(this.L.INTERP_LINEAR,c,"x"),e.addValue(this.L.INTERP_LINEAR,c,"y")):2===b?e.addValue(this.L.INTERP_ANGULAR,c,"a"):3===b&&(e.addValue(this.L.INTERP_LINEAR,c,"x"),e.addValue(this.L.INTERP_LINEAR,c,"y"),e.addValue(this.L.INTERP_ANGULAR,c,"a")),this.Wo[a]=e)};e.prototype.lA=function(a,b,c,e){if(d){var h,g;if(a.V)for(h=0,g=a.He.length;h<g;++h)this.nu(a.He[h],b,c,e);else this.nu(a,
b,c,e)}};c.ou=function(a,b,c,e,h){if(d&&(a=this.Wo[a])){var g=this.L.INTERP_NONE;1===e?g=this.L.INTERP_LINEAR:2===e&&(g=this.L.INTERP_ANGULAR);a.addValue(g,c,"iv",b,h)}};e.prototype.mA=function(a,b,c,e,h){if(d){var g,k,q;if(a.V)for(g=0,k=a.He.length;g<k;++g)q=a.He[g],this.ou(q,b+q.ek[a.Ye],c,e,h);else this.ou(a,b,c,e,h)}};e.prototype.Ox=function(a,b){if(d){var c=a.tn();if(c){var e=this.Wo[a];if(e){var h=this.L.getPeerById(b);h&&(this.L.isHost()&&(e.overrideNid(c.uid,h.nid),-1===this.gi.indexOf(c)&&
this.gi.push(c)),this.wk[c.uid]=h,this.kf[h.id]=c)}}}};e.prototype.Mz=function(a,b){d&&this.L.setClientState(a,b)};e.prototype.Ix=function(a,b,c){d&&this.L.addClientInputValue(a,b,c)};e.prototype.eA=function(a,b,c){if(d){var e="all";1===c?e="unlocked":2===c&&(e="available");this.L.signallingRequestRoomList(a,b,e)}};r.C=new e;b.prototype.fA=function(a){a.Y(d?this.L.sigserv_version:"")};b.prototype.dA=function(a){a.Y(d?this.L.sigserv_name:"")};b.prototype.cA=function(a){a.Y(d?this.L.sigserv_motd:"")};
b.prototype.Ry=function(a){a.Y(d?this.L.getMyAlias():"")};b.prototype.Sy=function(a){a.Y(d?this.L.getMyID():"")};b.prototype.vz=function(a){a.Y(this.sl)};b.prototype.uz=function(a){a.Y(this.rl)};b.prototype.ky=function(a){a.Y(d?this.L.getHostID():"")};b.prototype.jy=function(a){a.Y(d?this.L.getHostAlias():"")};b.prototype.Qy=function(a){a.Y(this.Qv)};b.prototype.gy=function(a){a.Y(this.Rv)};b.prototype.wz=function(a,b){if(d){var c=this.L.getPeerById(b);a.R(c?c.latency:0)}else a.R(0)};b.prototype.xz=
function(a,b,c){d?(b=this.L.getPeerById(b),a.R(b?b.getInterpClientState(c):0)):a.R(0)};b.prototype.Ky=function(a){a.ta(this.sj?this.sj.length:0)};b.prototype.My=function(b,c){var d=a(this.sj,c);b.Y(d?d.name:"")};b.prototype.Ny=function(b,c){var d=a(this.sj,c);b.ta(d?d.peercount:0)};b.prototype.Ly=function(b,c){var d=a(this.sj,c);b.ta(d?d.maxpeercount:0)};c.sd=function(a,b,c,e){if(!d||!this.L.isHost())return 0;var h=this.L.getPeerById(a);if(!h)return 0;var g=this.Au(h);if(!g)return 0;a=0;switch(c){case "x":a=
g.x;break;case "y":a=g.y;break;case "a":a=g.B}b=this.L.getPeerById(b);if(!b||b===h||this.L.me===b)return a;b=2*(b.latency+this.L.clientDelay);g=g.uid;if(!this.hf.hasOwnProperty(g))return a;e=this.hf[g].Fu(c,0,gb()-b,e);return"undefined"===typeof e?a:e};r.H=new b})();function Gc(g){this.b=g}
(function(){function g(g,e,t,b,a,r,c,d,h,n){g.save();g.fillStyle=e;e=a%t;var f=r%b;0>e&&(e+=t);0>f&&(f+=b);g.translate(e+h,f+n);g.fillRect(a-e-h,r-f-n,c,d);g.restore()}var p=Gc.prototype;p.N=function(g){this.da=g;this.b=g.b};var n=p.N.prototype;n.K=function(){this.V||(this.U=new Image,this.U.Lm=this.Tl,this.b.dp(this.U,this.Sl),this.hm=this.lm=this.km=this.jm=this.Jj=this.T=this.Tt=this.mx=this.Aw=this.rv=this.hq=null)};n.Wh=function(){this.V||(this.hm=this.lm=this.km=this.jm=this.Jj=this.T=null)};
n.pl=function(){this.V||!this.u.length||this.T||(this.T=this.b.I.Fe(this.U,!0,this.b.Ua,this.yj))};n.Wl=function(){this.V||this.u.length||!this.b.I||(this.b.I.deleteTexture(this.T),this.b.I.deleteTexture(this.Jj),this.b.I.deleteTexture(this.jm),this.b.I.deleteTexture(this.km),this.b.I.deleteTexture(this.lm),this.b.I.deleteTexture(this.hm),this.hm=this.lm=this.km=this.jm=this.Jj=this.T=null)};n.pf=function(g,e,t,b){var a=document.createElement("canvas");t=t-g;b=b-e;a.width=t;a.height=b;a.getContext("2d").drawImage(this.U,
g,e,t,b,0,0,t,b);return a};n.VA=function(g,e,t,b){var a=this.U.width,r=this.U.height,c=a-e,d=r-b;if(this.b.I){if(!this.Jj){var h=this.b.I,n=this.b.Ua,f=this.yj;c>g&&d>t&&(this.Jj=h.Fe(this.pf(g,t,c,d),!0,n,f));0<g&&d>t&&(this.jm=h.Fe(this.pf(0,t,g,d),!0,n,f,"repeat-y"));0<e&&d>t&&(this.km=h.Fe(this.pf(c,t,a,d),!0,n,f,"repeat-y"));0<t&&c>g&&(this.lm=h.Fe(this.pf(g,0,c,t),!0,n,f,"repeat-x"));0<b&&c>g&&(this.hm=h.Fe(this.pf(g,d,c,r),!0,n,f,"repeat-x"))}}else this.hq||(h=this.b.Ya,c>g&&d>t&&(this.hq=
h.createPattern(this.pf(g,t,c,d),"repeat")),0<g&&d>t&&(this.rv=h.createPattern(this.pf(0,t,g,d),"repeat")),0<e&&d>t&&(this.Aw=h.createPattern(this.pf(c,t,a,d),"repeat")),0<t&&c>g&&(this.mx=h.createPattern(this.pf(g,0,c,t),"repeat")),0<b&&c>g&&(this.Tt=h.createPattern(this.pf(g,d,c,r),"repeat")))};p.M=function(g){this.type=g;this.b=g.b};n=p.M.prototype;n.K=function(){this.Zq=this.q[0];this.Or=this.q[1];this.rs=this.q[2];this.Fp=this.q[3];this.$m=this.q[4];this.fill=this.q[5];this.visible=0===this.q[6];
this.Pe=0!==this.q[8];this.$b?this.Yd.set(0,0,0,0):this.Yd=new xa(0,0,0,0);this.b.I&&!this.type.T&&(this.type.T=this.b.I.Fe(this.type.U,!1,this.b.Ua,this.type.yj));this.type.VA(this.Zq,this.Or,this.rs,this.Fp)};n.Ub=function(k){var e=this.type.U,t=this.Zq,b=this.Or,a=this.rs,r=this.Fp,c=e.width,d=e.height,h=c-b,n=d-r;k.globalAlpha=this.opacity;k.save();var f=this.x,l=this.y,p=this.width,z=this.height;this.b.Wc&&(f=Math.round(f),l=Math.round(l));var m=-(this.Bc*this.width),v=-(this.Cc*this.height),
E=m%c,q=v%d;0>E&&(E+=c);0>q&&(q+=d);k.translate(f+E,l+q);c=m-E;v-=q;q=this.Pe?1:0;0<t&&0<a&&k.drawImage(e,0,0,t+q,a+q,c,v,t+q,a+q);0<b&&0<a&&k.drawImage(e,h-q,0,b+q,a+q,c+p-b-q,v,b+q,a+q);0<b&&0<r&&k.drawImage(e,h-q,n-q,b+q,r+q,c+p-b-q,v+z-r-q,b+q,r+q);0<t&&0<r&&k.drawImage(e,0,n-q,t+q,r+q,c,v+z-r-q,t+q,r+q);0===this.$m?(q=2===this.fill?0:q,0<t&&n>a&&g(k,this.type.rv,t,n-a,c,v+a,t+q,z-a-r,0,0),0<b&&n>a&&g(k,this.type.Aw,b,n-a,c+p-b-q,v+a,b+q,z-a-r,q,0),0<a&&h>t&&g(k,this.type.mx,h-t,a,c+t,v,p-t-b,
a+q,0,0),0<r&&h>t&&g(k,this.type.Tt,h-t,r,c+t,v+z-r-q,p-t-b,r+q,0,q)):1===this.$m&&(0<t&&n>a&&0<z-a-r&&k.drawImage(e,0,a,t,n-a,c,v+a,t,z-a-r),0<b&&n>a&&0<z-a-r&&k.drawImage(e,h,a,b,n-a,c+p-b,v+a,b,z-a-r),0<a&&h>t&&0<p-t-b&&k.drawImage(e,t,0,h-t,a,c+t,v,p-t-b,a),0<r&&h>t&&0<p-t-b&&k.drawImage(e,t,n,h-t,r,c+t,v+z-r,p-t-b,r));n>a&&h>t&&(0===this.fill?g(k,this.type.hq,h-t,n-a,c+t,v+a,p-t-b,z-a-r,0,0):1===this.fill&&0<p-t-b&&0<z-a-r&&k.drawImage(e,t,a,h-t,n-a,c+t,v+a,p-t-b,z-a-r));k.restore()};n.Df=function(g,
e,n,b,a,r,c,d,h,p){g.sc(e);var f=this.Yd;f.left=n/e.pe;f.top=b/e.oe;f.right=(n+a)/e.pe;f.bottom=(b+r)/e.oe;g.Ed(c,d,c+h,d,c+h,d+p,c,d+p,f)};n.Ul=function(g,e,n,b,a,r,c,d){g.sc(e);var h=this.Yd;h.left=-c/e.pe;h.top=-d/e.oe;h.right=(a-c)/e.pe;h.bottom=(r-d)/e.oe;g.Ed(n,b,n+a,b,n+a,b+r,n,b+r,h)};n.Cf=function(g){this.bb(g)};n.bb=function(g){var e=this.Zq,n=this.Or,b=this.rs,a=this.Fp,r=this.type.U.width-n,c=this.type.U.height-a;g.of(this.opacity);var d=this.fc,h=d.wb,d=d.xb,p=this.width,f=this.height;
this.b.Wc&&(h=Math.round(h),d=Math.round(d));var l=this.Pe?1:0;0<e&&0<b&&this.Df(g,this.type.T,0,0,e+l,b+l,h,d,e+l,b+l);0<n&&0<b&&this.Df(g,this.type.T,r-l,0,n+l,b+l,h+p-n-l,d,n+l,b+l);0<n&&0<a&&this.Df(g,this.type.T,r-l,c-l,n+l,a+l,h+p-n-l,d+f-a-l,n+l,a+l);0<e&&0<a&&this.Df(g,this.type.T,0,c-l,e+l,a+l,h,d+f-a-l,e+l,a+l);0===this.$m?(l=2===this.fill?0:l,0<e&&c>b&&this.Ul(g,this.type.jm,h,d+b,e+l,f-b-a,0,0),0<n&&c>b&&this.Ul(g,this.type.km,h+p-n-l,d+b,n+l,f-b-a,l,0),0<b&&r>e&&this.Ul(g,this.type.lm,
h+e,d,p-e-n,b+l,0,0),0<a&&r>e&&this.Ul(g,this.type.hm,h+e,d+f-a-l,p-e-n,a+l,0,l)):1===this.$m&&(0<e&&c>b&&this.Df(g,this.type.T,0,b,e,c-b,h,d+b,e,f-b-a),0<n&&c>b&&this.Df(g,this.type.T,r,b,n,c-b,h+p-n,d+b,n,f-b-a),0<b&&r>e&&this.Df(g,this.type.T,e,0,r-e,b,h+e,d,p-e-n,b),0<a&&r>e&&this.Df(g,this.type.T,e,c,r-e,a,h+e,d+f-a,p-e-n,a));c>b&&r>e&&(0===this.fill?this.Ul(g,this.type.Jj,h+e,d+b,p-e-n,f-b-a,0,0):1===this.fill&&this.Df(g,this.type.T,e,b,r-e,c-b,h+e,d+b,p-e-n,f-b-a))};p.k=new function(){};p.C=
new function(){};p.H=new function(){}})();function T(g){this.b=g}
(function(){function g(){if(0===this.Rp.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.vj?b.drawImage(this.U,this.ij,this.jj,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.U,0,0,this.width,this.height);this.Rp=a.toDataURL("image/png")}return this.Rp}function p(){}function n(a){a[0]=0;a[1]=0;a[2]=0;u.push(a)}function k(a,b){return a<b?""+a+","+b:""+b+","+a}function e(a,b,c,d){b=b.uid;c=c.uid;var f=k(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=u.length?u.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function t(a,b,c){b=k(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function b(a,b,c){b=k(b.uid,c.uid);if(a.hasOwnProperty(b))return f=a[b][2],!0;f=-2;return!1}function a(){}var r=T.prototype;r.N=function(a){this.da=a;this.b=a.b};var c=r.N.prototype;c.K=function(){if(!this.V){var a,b,c,d,f,e,h,k,m;this.ie=[];this.rk=!1;a=0;for(b=this.cd.length;a<b;a++){f=this.cd[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.Lr=f[3];h.Mr=
f[4];h.lw=f[5];h.wa=f[6];h.frames=[];c=0;for(d=f[7].length;c<d;c++)e=f[7][c],k={},k.Sl=e[0],k.Tl=e[1],k.ij=e[2],k.jj=e[3],k.width=e[4],k.height=e[5],k.duration=e[6],k.Bc=e[7],k.Cc=e[8],k.Aq=e[9],k.io=e[10],k.mw=e[11],k.vj=0!==k.width,k.Rp="",k.qC=g,m={left:0,top:0,right:1,bottom:1},k.Yr=m,k.T=null,(m=this.b.gC(e[0]))?k.U=m:(k.U=new Image,k.U.SA=e[0],k.U.Lm=e[1],k.U.LA=null,this.b.dp(k.U,e[0])),h.frames.push(k),this.ie.push(k);this.cd[a]=h}}};c.yx=function(){var a,b,c;a=0;for(b=this.u.length;a<b;a++)c=
this.u[a],c.Om=c.Lb.T};c.Wh=function(){if(!this.V){var a,b,c;a=0;for(b=this.ie.length;a<b;++a)c=this.ie[a],c.U.LA=null,c.T=null;this.rk=!1;this.yx()}};c.pl=function(){if(!this.V&&this.u.length){var a,b,c;a=0;for(b=this.ie.length;a<b;++a)c=this.ie[a],c.T=this.b.I.Fe(c.U,!1,this.b.Ua,c.mw);this.yx()}};c.Ln=function(){if(!this.V&&!this.rk&&this.b.I){var a,b,c;a=0;for(b=this.ie.length;a<b;++a)c=this.ie[a],c.T=this.b.I.Fe(c.U,!1,this.b.Ua,c.mw);this.rk=!0}};c.Wl=function(){if(!this.V&&!this.u.length&&
this.rk){var a,b,c;a=0;for(b=this.ie.length;a<b;++a)c=this.ie[a],this.b.I.deleteTexture(c.T),c.T=null;this.rk=!1}};var d=[];c.no=function(a){var b,c,f;I(d);b=0;for(c=this.ie.length;b<c;++b)f=this.ie[b].U,-1===d.indexOf(f)&&(a.drawImage(f,0,0),d.push(f))};r.M=function(a){this.type=a;this.b=a.b;a=this.type.cd[0].frames[0].io;this.$b?this.Ca.Il(a):this.Ca=new mb(a)};var h=r.M.prototype;h.K=function(){this.visible=0===this.q[0];this.tk=this.Jf=!1;this.Ve=0!==this.q[3];this.ab=this.zu(this.q[1])||this.type.cd[0];
this.X=this.q[2];0>this.X&&(this.X=0);this.X>=this.ab.frames.length&&(this.X=this.ab.frames.length-1);var a=this.ab.frames[this.X];this.Ca.Il(a.io);this.Bc=a.Bc;this.Cc=a.Cc;this.lh=this.ab.speed;this.zg=this.ab.Mr;1===this.type.cd.length&&1===this.type.cd[0].frames.length||0===this.lh||(this.b.Hd(this),this.Jf=!0);this.$b?this.ke.reset():this.ke=new kb;this.Ze=this.ke.ea;this.qg=!0;this.vf=0;this.pg=!0;this.qi=this.Nt="";this.$t=0;this.Uj=-1;this.type.Ln();var b,c,d,f,e,h,g,a=0;for(b=this.type.cd.length;a<
b;a++)for(f=this.type.cd[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.U.width,e.height=e.U.height),e.vj&&(g=e.U,h=e.Yr,h.left=e.ij/g.width,h.top=e.jj/g.height,h.right=(e.ij+e.width)/g.width,h.bottom=(e.jj+e.height)/g.height,0===e.ij&&0===e.jj&&e.width===g.width&&e.height===g.height&&(e.vj=!1));this.Lb=this.ab.frames[this.X];this.Om=this.Lb.T};h.Na=function(){var a={a:this.ab.wa,f:this.X,cas:this.lh,fs:this.Ze,ar:this.vf,at:this.ke.ea,rt:this.zg};this.qg||(a.ap=this.qg);this.pg||
(a.af=this.pg);return a};h.Sa=function(a){var b=this.nC(a.a);b&&(this.ab=b);this.X=a.f;0>this.X&&(this.X=0);this.X>=this.ab.frames.length&&(this.X=this.ab.frames.length-1);this.lh=a.cas;this.Ze=a.fs;this.vf=a.ar;this.ke.reset();this.ke.ea=a.at;this.qg=a.hasOwnProperty("ap")?a.ap:!0;this.pg=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.zg=a.rt:this.zg=this.ab.Mr;this.Lb=this.ab.frames[this.X];this.Om=this.Lb.T;this.Ca.Il(this.Lb.io);this.Bc=this.Lb.Bc;this.Cc=this.Lb.Cc};h.Bp=function(a){this.X=
a?0:this.ab.frames.length-1;this.qg=!1;this.Nt=this.ab.name;this.tk=!0;this.b.trigger(T.prototype.k.Ps,this);this.b.trigger(T.prototype.k.Ty,this);this.tk=!1;this.vf=0};h.sd=function(){return this.ke.ea};h.Ha=function(){this.ke.add(this.b.Eg(this));this.qi.length&&this.ku();0<=this.Uj&&this.Xp();var a=this.ke.ea,b=this.ab,c=b.frames[this.X],d=c.duration/this.lh;this.qg&&a>=this.Ze+d&&(this.pg?this.X++:this.X--,this.Ze+=d,this.X>=b.frames.length&&(b.lw?(this.pg=!1,this.X=b.frames.length-2):b.loop?
this.X=this.zg:(this.vf++,this.vf>=b.Lr?this.Bp(!1):this.X=this.zg)),0>this.X&&(b.lw?(this.X=1,this.pg=!0,b.loop||(this.vf++,this.vf>=b.Lr&&this.Bp(!0))):b.loop?this.X=this.zg:(this.vf++,this.vf>=b.Lr?this.Bp(!0):this.X=this.zg)),0>this.X?this.X=0:this.X>=b.frames.length&&(this.X=b.frames.length-1),a>this.Ze+b.frames[this.X].duration/this.lh&&(this.Ze=a),a=b.frames[this.X],this.fh(c,a),this.b.ma=!0)};h.zu=function(a){var b,c,d;b=0;for(c=this.type.cd.length;b<c;b++)if(d=this.type.cd[b],ub(d.name,a))return d;
return null};h.nC=function(a){var b,c,d;b=0;for(c=this.type.cd.length;b<c;b++)if(d=this.type.cd[b],d.wa===a)return d;return null};h.ku=function(){var a=this.ab.frames[this.X],b=this.zu(this.qi);this.qi="";!b||ub(b.name,this.ab.name)&&this.qg||(this.ab=b,this.lh=b.speed,this.zg=b.Mr,0>this.X&&(this.X=0),this.X>=this.ab.frames.length&&(this.X=this.ab.frames.length-1),1===this.$t&&(this.X=0),this.qg=!0,this.Ze=this.ke.ea,this.pg=!0,this.fh(a,this.ab.frames[this.X]),this.b.ma=!0)};h.Xp=function(){var a=
this.ab.frames[this.X],b=this.X;this.X=x(this.Uj);0>this.X&&(this.X=0);this.X>=this.ab.frames.length&&(this.X=this.ab.frames.length-1);b!==this.X&&(this.fh(a,this.ab.frames[this.X]),this.Ze=this.ke.ea,this.b.ma=!0);this.Uj=-1};h.fh=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.Bc=b.Bc;this.Cc=b.Cc;this.Ca.Il(b.io);this.J();this.Lb=b;this.Om=b.T;c=0;for(d=this.Z.length;c<d;c++)f=this.Z[c],f.bw&&f.bw(a,b);this.b.trigger(T.prototype.k.fh,
this)};h.Ub=function(a){a.globalAlpha=this.opacity;var b=this.Lb,c=b.vj,d=b.U,f=this.x,e=this.y,h=this.width,g=this.height;if(0===this.B&&0<=h&&0<=g)f-=this.Bc*h,e-=this.Cc*g,this.b.Wc&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.ij,b.jj,b.width,b.height,f,e,h,g):a.drawImage(d,f,e,h,g);else{this.b.Wc&&(f=Math.round(f),e=Math.round(e));a.save();var k=0<h?1:-1,m=0<g?1:-1;a.translate(f,e);1===k&&1===m||a.scale(k,m);a.rotate(this.B*k*m);f=0-this.Bc*qa(h);e=0-this.Cc*qa(g);c?a.drawImage(d,b.ij,
b.jj,b.width,b.height,f,e,qa(h),qa(g)):a.drawImage(d,f,e,qa(h),qa(g));a.restore()}};h.Cf=function(a){this.bb(a)};h.bb=function(a){a.sc(this.Om);a.of(this.opacity);var b=this.Lb,c=this.fc;if(this.b.Wc){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.vj?a.Ed(c.wb+d,c.xb+f,c.uc+d,c.vc+f,c.gc+d,c.hc+f,c.cc+d,c.ec+f,b.Yr):a.oj(c.wb+d,c.xb+f,c.uc+d,c.vc+f,c.gc+d,c.hc+f,c.cc+d,c.ec+f)}else b.vj?a.Ed(c.wb,c.xb,c.uc,c.vc,c.gc,c.hc,c.cc,c.ec,b.Yr):a.oj(c.wb,c.xb,c.uc,c.vc,c.gc,c.hc,c.cc,c.ec)};
h.sC=function(a){var b=this.Lb,c,d;c=0;for(d=b.Aq.length;c<d;c++)if(ub(a,b.Aq[c][0]))return c;return-1};h.kk=function(a,b){var c=this.Lb,d=c.Aq,f;na(a)?f=this.sC(a):f=a-1;f=x(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Bc)*this.width,d=d[f][2],d=(d-c.Cc)*this.height,c=Math.cos(this.B);f=Math.sin(this.B);var h=e*c-d*f,d=d*c+e*f,e=h+this.x,d=d+this.y;return b?e:d};var u=[],f=-2,l=[];p.prototype.Zy=function(a){if(!a)return!1;var c=this.b,d=c.Ei(),h=d.type,g=null;d.W.collmemory?g=d.W.collmemory:
(g={},d.W.collmemory=g);d.W.spriteCreatedDestroyCallback||(d.W.spriteCreatedDestroyCallback=!0,c.Nj(function(a){var b=d.W.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===a||f[1]===a)&&(n(b[c]),delete b[c])}));var k=h.xa(),m=a.xa(),k=k.fd(),r,p,u,v,E,z,F,Q=this.b.Id,A=Q-1,w=c.sb().zb;for(p=0;p<k.length;p++){u=k[p];m.Ga?(u.na(),this.b.sn(u.A,a,u.qa,l),r=l,this.b.AA(u,a,r)):r=m.fd();for(v=0;v<r.length;v++)E=r[v],c.Lc(u,E)||c.OA(u,E)?(z=b(g,u,E),z=!z||f<A,e(g,u,E,Q),z&&(c.yl(w.Ta),
z=h.xa(),F=a.xa(),z.Ga=!1,F.Ga=!1,h===a?(z.u.length=2,z.u[0]=u,z.u[1]=E,h.Pd()):(z.u.length=1,F.u.length=1,z.u[0]=u,F.u[0]=E,h.Pd(),a.Pd()),w.Nr(),c.Vg(w.Ta))):t(g,u,E);I(l)}return!1};var F=null,z=new ea,m=!1,v=[],E=new xa(0,0,0,0);c.finish=function(a){if(m){if(a){var b=this.b.sb().zb.Dd;a=F.xa();var c=z.fe(),d,f;if(a.Ga){a.Ga=!1;I(a.u);d=0;for(f=c.length;d<f;++d)a.u[d]=c[d];if(b)for(I(a.Aa),d=0,f=F.u.length;d<f;++d)c=F.u[d],z.contains(c)||a.Aa.push(c)}else if(b)for(b=a.u.length,d=0,f=c.length;d<
f;++d)a.u[b+d]=c[d],La(a.Aa,c[d]);else Ha(a.u,c);F.Pd()}z.clear();m=!1}};p.prototype.Ey=function(a){if(a){var b=!1,c,d,f,e=this.b.Ei(),h=e.type,e=e.Ki;c=a.xa();d=this.b.sb().zb.Dd;var g;c.Ga?(this.na(),E.ri(this.qa),E.offset(0,0),this.b.sn(this.A,a,E,v),g=v):g=d?this.b.YC()&&!c.Aa.length&&c.u.length?c.u:c.Aa:c.u;F=a;m=h!==a&&!e;c=0;for(d=g.length;c<d;c++)if(f=g[c],this.b.Lc(this,f)){b=!0;if(e)break;h!==a&&z.add(f)}I(v);a=b}else a=!1;return a};p.prototype.oy=function(a){return this.qi.length?ub(this.qi,
a):ub(this.ab.name,a)};p.prototype.Ty=function(a){return ub(this.Nt,a)};p.prototype.Ps=function(){return!0};p.prototype.fh=function(){return!0};r.k=new p;a.prototype.gA=function(a,b,c){if(a&&b&&(b=this.b.Mm(a,b,this.kk(c,!0),this.kk(c,!1)))){"undefined"!==typeof b.B&&(b.B=this.B,b.J());this.b.Ad++;var d,f,e;this.b.trigger(Object.getPrototypeOf(a.da).k.lg,b);if(b.Ec)for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.da).k.lg,e);this.b.Ad--;d=this.b.pC();
c=!1;if(la(d.W.Spawn_LastExec)||d.W.Spawn_LastExec<this.b.sh)c=!0,d.W.Spawn_LastExec=this.b.sh;if(a!=this.type&&(a=a.xa(),a.Ga=!1,c?(I(a.u),a.u[0]=b):a.u.push(b),b.Ec))for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],a=e.type.xa(),a.Ga=!1,c?(I(a.u),a.u[0]=e):a.u.push(e)}};a.prototype.hA=function(a){this.qg=!0;this.Ze=this.ke.ea;1===a&&0!==this.X&&(this.Uj=0,this.tk||this.Xp());this.Jf||(this.b.Hd(this),this.Jf=!0)};a.prototype.Jz=function(a,b){this.qi=a;this.$t=b;this.Jf||(this.b.Hd(this),this.Jf=
!0);this.tk||this.ku()};a.prototype.Kz=function(a){this.Uj=a;this.Jf||(this.b.Hd(this),this.Jf=!0);this.tk||this.Xp()};a.prototype.Lz=function(a){this.lh=qa(a);this.pg=0<=a;this.Jf||(this.b.Hd(this),this.Jf=!0)};r.C=new a;r.H=new function(){}})();function Hc(g){this.b=g}
(function(){function g(){return c.length?c.pop():{}}function p(a){var b,e;b=0;for(e=a.length;b<e;b++)c.push(a[b]);I(a)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function k(){}function e(){}function t(){}var b=Hc.prototype;b.K=function(){b.C.Et=function(a){this.width!==a&&(this.width=a,this.bh=!0,this.J())}};b.N=function(a){this.da=a;this.b=a.b};var a=b.N.prototype;a.K=function(){};a.Wh=function(){if(!this.V){var a,b,c;a=0;for(b=this.u.length;a<b;a++)c=this.u[a],
c.gf=null,c.Uh=null,c.ld=null}};b.M=function(a){this.type=a;this.b=a.b;this.$b?I(this.Ng):this.Ng=[];this.bh=!0};a=b.M.prototype;a.K=function(){this.text=this.q[0];this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.wn=this.q[4];this.$o=this.q[5];this.Is=0===this.q[7];this.Xq=this.Nf=this.width;this.Mf=this.height;this.$q=this.q[8];this.ln=this.xi="";this.ax=this.bx=this.wl=0;this.QD();this.ld=this.Uh=this.gf=null;this.Vv=!1;this.Lk=this.b.Id;this.$b?this.Yd.set(0,0,1,1):this.Yd=
new xa(0,0,1,1);this.b.I&&this.b.Hd(this)};a.QD=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.wl=parseInt(a[b].substr(0,a[b].length-2));this.Hr=Math.ceil(this.wl/72*96)+4;0<b&&(this.ln=a[b-1]);this.xi=a[b+1];for(b+=2;b<a.length;b++)this.xi+=" "+a[b];break}};a.Na=function(){return{t:this.text,f:this.font,c:this.color,ha:this.wn,va:this.$o,wr:this.Is,lho:this.$q,fn:this.xi,fs:this.ln,ps:this.wl,pxh:this.Hr,tw:this.bx,th:this.ax,lrt:this.Lk}};
a.Sa=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.wn=a.ha;this.$o=a.va;this.Is=a.wr;this.$q=a.lho;this.xi=a.fn;this.ln=a.fs;this.wl=a.ps;this.Hr=a.pxh;this.bx=a.tw;this.ax=a.th;this.Lk=a.lrt;this.bh=!0;this.Xq=this.Nf=this.width;this.Mf=this.height};a.Ha=function(){if(this.b.I&&this.ld&&300<=this.b.Id-this.Lk){var a=this.A;this.na();var b=this.qa;if(b.right<a.Oa||b.bottom<a.Pa||b.left>a.Ra||b.top>a.Qa)this.b.I.deleteTexture(this.ld),this.gf=this.Uh=this.ld=null}};a.Gc=function(){this.gf=
this.Uh=null;this.b.I&&this.ld&&this.b.I.deleteTexture(this.ld);this.ld=null};a.sd=function(){this.font=this.ln+" "+this.wl.toString()+"pt "+this.xi;this.bh=!0;this.b.ma=!0};a.Ub=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.A.Eb()),a.save(),a.scale(c,c));if(this.bh||this.width!==this.Xq)this.type.da.uA(this.text,this.Ng,a,this.width,this.Is),this.bh=!1,this.Xq=this.width;this.na();var c=b?0:this.fc.wb,f=b?0:this.fc.xb;
this.b.Wc&&(c=c+.5|0,f=f+.5|0);0===this.B||b||(a.save(),a.translate(c,f),a.rotate(this.B),f=c=0);var e=f+this.height,g=this.Hr,g=g+this.$q,k,m;1===this.$o?f+=Math.max(this.height/2-this.Ng.length*g/2,0):2===this.$o&&(f+=Math.max(this.height-this.Ng.length*g-2,0));for(m=0;m<this.Ng.length&&!(k=c,1===this.wn?k=c+(this.width-this.Ng[m].width)/2:2===this.wn&&(k=c+(this.width-this.Ng[m].width)),a.fillText(this.Ng[m].text,k,f),f+=g,f>=e-g);m++);(0!==this.B||b)&&a.restore();this.Lk=this.b.Id};a.bb=function(a){if(!(1>
this.width||1>this.height)){var b=this.bh||this.Vv;this.Vv=!1;var c=this.A.Eb(),f=this.A.lb(),e=this.Yd,g=c*this.width,k=c*this.height,m=Math.ceil(g),n=Math.ceil(k),r=Math.abs(m),q=Math.abs(n),t=this.b.ba/2,p=this.b.aa/2;this.Uh||(this.gf=document.createElement("canvas"),this.gf.width=r,this.gf.height=q,this.Nf=r,this.Mf=q,b=!0,this.Uh=this.gf.getContext("2d"));if(r!==this.Nf||q!==this.Mf)this.gf.width=r,this.gf.height=q,this.ld&&(a.deleteTexture(this.ld),this.ld=null),b=!0;b&&(this.Uh.clearRect(0,
0,r,q),this.Ub(this.Uh,!0),this.ld||(this.ld=a.Rc(r,q,this.b.Ua,this.b.cf)),a.cp(this.gf,this.ld,this.b.cf));this.Nf=r;this.Mf=q;a.sc(this.ld);a.of(this.opacity);a.Zd();a.translate(-t,-p);a.Jd();var M=this.fc,b=this.A.ca(M.wb,M.xb,!0,!0),r=this.A.ca(M.wb,M.xb,!1,!0),q=this.A.ca(M.uc,M.vc,!0,!0),t=this.A.ca(M.uc,M.vc,!1,!0),p=this.A.ca(M.gc,M.hc,!0,!0),B=this.A.ca(M.gc,M.hc,!1,!0),C=this.A.ca(M.cc,M.ec,!0,!0),M=this.A.ca(M.cc,M.ec,!1,!0);if(this.b.Wc||0===this.B&&0===f)var K=(b+.5|0)-b,P=(r+.5|0)-
r,b=b+K,r=r+P,q=q+K,t=t+P,p=p+K,B=B+P,C=C+K,M=M+P;0===this.B&&0===f?(q=b+m,t=r,p=q,B=r+n,C=b,M=B,e.right=1,e.bottom=1):(e.right=g/m,e.bottom=k/n);a.Ed(b,r,q,t,p,B,C,M,e);a.Zd();a.scale(c,c);a.wo(-this.A.lb());a.translate((this.A.Oa+this.A.Ra)/-2,(this.A.Pa+this.A.Qa)/-2);a.Jd();this.Lk=this.b.Id}};var r=[];b.rA=function(a){I(r);for(var b="",c,f=0;f<a.length;)if(c=a.charAt(f),"\n"===c)b.length&&(r.push(b),b=""),r.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)));r.push(b);b=""}else f<a.length&&(b+=c,f++);b.length&&r.push(b)};var c=[];b.uA=function(a,b,c,f,e){if(a&&a.length)if(2>=f)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=c.measureText(a).width;if(k<=f){p(b);b.push(g());b[0].text=a;b[0].width=k;return}}this.vA(a,b,c,f,e)}else p(b)};b.vA=function(a,b,e,f,k){k&&(this.rA(a),a=r);var t="",p,m,v,E=0;for(v=0;v<a.length;v++)"\n"===a[v]?(E>=b.length&&b.push(g()),t=n(t),m=b[E],m.text=t,m.width=e.measureText(t).width,
E++,t=""):(p=t,t+=a[v],m=e.measureText(t).width,m>=f&&(E>=b.length&&b.push(g()),p=n(p),m=b[E],m.text=p,m.width=e.measureText(p).width,E++,t=a[v],k||" "!==t||(t="")));t.length&&(E>=b.length&&b.push(g()),t=n(t),m=b[E],m.text=t,m.width=e.measureText(t).width,E++);for(v=E;v<b.length;v++)c.push(b[v]);b.length=E};k.prototype.mp=function(a,b){return b?this.text==a:ub(this.text,a)};b.k=new k;e.prototype.rm=function(a){ma(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.bh=
!0,this.b.ma=!0)};e.prototype.Nx=function(a){ma(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.bh=!0,this.b.ma=!0};b.C=new e;t.prototype.Text=function(a){a.Y(this.text)};b.H=new t})();function Ic(g){this.b=g}
(function(){function g(){}function p(){}function n(){}var k=Ic.prototype;k.N=function(b){this.da=b;this.b=b.b};k.N.prototype.K=function(){};k.M=function(b){this.type=b;this.b=b.b};var e=k.M.prototype,t="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(t[2]="text",t[3]="text",t[4]="text",t[5]="text");e.K=function(){if(this.b.O)ja("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.q[7]?(this.n=document.createElement("textarea"),
jQuery(this.n).css("resize","none")):(this.n=document.createElement("input"),this.n.type=t[this.q[7]]);this.n.id=this.q[9];jQuery(this.n).appendTo(this.b.Qd?this.b.Qd:"body");this.n.autocomplete="off";this.n.value=this.q[0];this.n.placeholder=this.q[1];this.n.title=this.q[2];this.n.disabled=0===this.q[4];this.n.readOnly=1===this.q[5];this.n.spellcheck=1===this.q[6];this.Sj=0!==this.q[8];this.kb=!1;0===this.q[3]&&(jQuery(this.n).hide(),this.visible=!1,this.kb=!0);var b=function(a){return function(){a.b.trigger(Ic.prototype.k.rz,
a)}}(this);this.n.oninput=b;-1!==navigator.userAgent.indexOf("MSIE")&&(this.n.oncut=b);this.n.onclick=function(a){return function(b){b.stopPropagation();a.b.ua=!0;a.b.trigger(Ic.prototype.k.kg,a);a.b.ua=!1}}(this);this.n.ondblclick=function(a){return function(b){b.stopPropagation();a.b.ua=!0;a.b.trigger(Ic.prototype.k.rp,a);a.b.ua=!1}}(this);this.n.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.n.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.n.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.n).mousedown(function(a){a.stopPropagation()});jQuery(this.n).mouseup(function(a){a.stopPropagation()});jQuery(this.n).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.n).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.Be=this.Ce=this.xe=this.ze=this.Ae=this.ye=0;this.rd(!0);this.b.Hd(this)}};e.Na=function(){return{text:this.n.value,placeholder:this.n.placeholder,tooltip:this.n.title,disabled:!!this.n.disabled,
readonly:!!this.n.readOnly,spellcheck:!!this.n.spellcheck}};e.Sa=function(b){this.n.value=b.text;this.n.placeholder=b.placeholder;this.n.title=b.tooltip;this.n.disabled=b.disabled;this.n.readOnly=b.readonly;this.n.spellcheck=b.spellcheck};e.Gc=function(){this.b.O||(jQuery(this.n).remove(),this.n=null)};e.Ha=function(){this.rd()};e.rd=function(b){if(!this.b.O){var a=this.A.ca(this.x,this.y,!0),e=this.A.ca(this.x,this.y,!1),c=this.A.ca(this.x+this.width,this.y+this.height,!0),d=this.A.ca(this.x+this.width,
this.y+this.height,!1),g=this.b.width/this.b.devicePixelRatio,k=this.b.height/this.b.devicePixelRatio;!this.visible||!this.A.visible||0>=c||0>=d||a>=g||e>=k?(this.kb||jQuery(this.n).hide(),this.kb=!0):(1>a&&(a=1),1>e&&(e=1),c>=g&&(c=g-1),d>=k&&(d=k-1),g=window.innerWidth,k=window.innerHeight,b||this.ye!==a||this.Ae!==e||this.ze!==c||this.xe!==d||this.Ce!==g||this.Be!==k?(this.ye=a,this.Ae=e,this.ze=c,this.xe=d,this.Ce=g,this.Be=k,this.kb&&(jQuery(this.n).show(),this.kb=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,
g=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.n).css("position","absolute"),jQuery(this.n).offset({left:b,top:g}),jQuery(this.n).width(Math.round(c-a)),jQuery(this.n).height(Math.round(d-e)),this.Sj&&jQuery(this.n).css("font-size",this.A.Eb(!0)/this.b.devicePixelRatio-.2+"em")):this.kb&&(jQuery(this.n).show(),this.kb=!1))}};e.Ub=function(){};e.bb=function(){};g.prototype.mp=function(b,a){return this.b.O?!1:0===a?ub(this.n.value,b):this.n.value===b};g.prototype.rz=function(){return!0};
g.prototype.kg=function(){return!0};g.prototype.rp=function(){return!0};k.k=new g;p.prototype.rm=function(b){this.b.O||(this.n.value=b)};p.prototype.uf=function(b){this.b.O||(this.visible=0!==b)};p.prototype.Nc=function(b){this.b.O||(this.n.disabled=0===b)};p.prototype.qm=function(b,a){this.b.O||jQuery(this.n).css(b,a)};k.C=new p;n.prototype.Text=function(b){this.b.O?b.Y(""):b.Y(this.n.value)};k.H=new n})();function Jc(g){this.b=g}
(function(){var g=Jc.prototype;g.N=function(g){this.da=g;this.b=g.b};var p=g.N.prototype;p.K=function(){this.V||(this.U=new Image,this.U.Lm=this.Tl,this.b.dp(this.U,this.Sl),this.T=this.pattern=null)};p.Wh=function(){this.V||(this.T=null)};p.pl=function(){if(!this.V&&this.u.length){this.T||(this.T=this.b.I.Fe(this.U,!0,this.b.Ua,this.yj));var g,k;g=0;for(k=this.u.length;g<k;g++)this.u[g].T=this.T}};p.Ln=function(){this.V||this.T||!this.b.I||(this.T=this.b.I.Fe(this.U,!0,this.b.Ua,this.yj))};p.Wl=
function(){this.V||this.u.length||!this.T||(this.b.I.deleteTexture(this.T),this.T=null)};p.no=function(g){g.drawImage(this.U,0,0)};g.M=function(g){this.type=g;this.b=g.b};p=g.M.prototype;p.K=function(){this.visible=0===this.q[0];this.Yd=new xa(0,0,0,0);this.Ou=!1;this.U=this.type.U;this.b.I?(this.type.Ln(),this.T=this.type.T):(this.type.pattern||(this.type.pattern=this.b.Ya.createPattern(this.type.U,"repeat")),this.pattern=this.type.pattern)};p.Od=function(){this.Ou=!1;this.U=this.type.U};p.Gc=function(){this.b.I&&
this.Ou&&this.T&&(this.b.I.deleteTexture(this.T),this.T=null)};p.Ub=function(g){g.globalAlpha=this.opacity;g.save();g.fillStyle=this.pattern;var k=this.x,e=this.y;this.b.Wc&&(k=Math.round(k),e=Math.round(e));var t=-(this.Bc*this.width),b=-(this.Cc*this.height),a=t%this.U.width,r=b%this.U.height;0>a&&(a+=this.U.width);0>r&&(r+=this.U.height);g.translate(k,e);g.rotate(this.B);g.translate(a,r);g.fillRect(t-a,b-r,this.width,this.height);g.restore()};p.Cf=function(g){this.bb(g)};p.bb=function(g){g.sc(this.T);
g.of(this.opacity);var k=this.Yd;k.right=this.width/this.U.width;k.bottom=this.height/this.U.height;var e=this.fc;if(this.b.Wc){var t=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;g.Ed(e.wb+t,e.xb+b,e.uc+t,e.vc+b,e.gc+t,e.hc+b,e.cc+t,e.ec+b,k)}else g.Ed(e.wb,e.xb,e.uc,e.vc,e.gc,e.hc,e.cc,e.ec,k)};g.k=new function(){};g.C=new function(){};g.H=new function(){}})();function Kc(g){this.b=g}
(function(){function g(){this.Qo=this.id=-1;this.Pt=this.vi=this.cm=this.sk=!1;this.Ma=new xa(0,0,0,0)}function p(a){1E4>z.length&&z.push(a)}function n(){this.id=-1;this.Ma=new xa(0,0,0,0);this.Ie=null}function k(a){1E4>m.length&&m.push(a)}function e(a,b,c){var d;return v.length?(d=v.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.Jb*d.j.rb,d.top=d.y*d.j.Sb*d.j.qb,d.clear(),d.zl=!1,d):new t(a,b,c)}function t(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.Jb*this.j.rb;this.top=this.y*this.j.Sb*this.j.qb;
this.rf=[];this.qc=[];this.Jc=[];this.zl=!1;var d,f;a=0;for(b=this.j.Sb;a<b;++a){f=[];c=0;for(d=this.j.Jb;c<d;++c)f.push(-1);this.rf.push(f)}}function b(){}function a(a){switch(a){case 0:return 0;case 1:return u;case 2:return f;case 3:return u|l;case 4:return u|f;case 5:return f|l;case 6:return u|f|l;case 7:return l;default:return 0}}function r(){}function c(){}var d=Kc.prototype;d.N=function(a){this.da=a;this.b=a.b};var h=d.N.prototype;h.K=function(){var a,b,c;if(!this.V&&(this.U=new Image,this.U.Lm=
this.Tl,this.b.dp(this.U,this.Sl),this.mh=[],this.Qp=!1,this.Qe=[],this.gx=!1,this.Po&&this.Po.length))for(a=0,b=this.Po.length;a<b;++a)(c=this.Po[a])?this.Qe.push({Ie:c,kn:[[[null,null],[null,null]],[[null,null],[null,null]]]}):this.Qe.push(null)};h.sg=function(a,b,c,d,f,e){if(!(0>a||a>=this.Qe.length)&&this.Qe[a]){var g=this.Qe[a].kn;a=new mb(this.Qe[a].Ie);a.tg(b,c,0);e&&a.XA();d&&a.wD(b/2);f&&a.hC(c/2);g[d?1:0][f?1:0][e?1:0]=a}};h.Ku=function(a){if(-1===a)return null;var b=a&F;return 0>b||b>=
this.Qe.length||!this.Qe[b]?null:this.Qe[b].kn[a&u?1:0][a&f?1:0][a&l?1:0]};h.kq=function(){var a,b,c=this.b.I;if(c)for(a=0,b=this.mh.length;a<b;++a)c.deleteTexture(this.mh[a]);I(this.mh);this.Qp=!1};h.kr=function(a,b,c,d,f,e,g){if(!(this.Qp||0>=a||0>=b)){this.kq();var h=this.U.width,k=this.U.height,m;for(m=d;m+b<=k;m+=b+e)for(d=c;d+a<=h;d+=a+f)this.mh.push(this.$x(d,m,a,b,g));this.Qp=!0}};h.$x=function(a,b,c,d,f){if(this.b.I)return this.op(a,b,c,d,!1,!1,!1,f);var e=[[[null,null],[null,null]],[[null,
null],[null,null]]];e[0][0][0]=this.op(a,b,c,d,!1,!1,!1,f);return{kn:e,x:a,y:b,$E:c,PC:d}};h.Ms=function(a,b,c,d,f){if(0>a||a>=this.mh.length)return null;a=this.mh[a];var e=a.kn;b=b?1:0;c=c?1:0;d=d?1:0;var g=e[b][c][d];if(g)return g;g=this.op(a.x,a.y,a.$E,a.PC,0!==b,0!==c,0!==d,f);return e[b][c][d]=g};h.op=function(a,b,c,d,f,e,g,h){var k=c,m=d;this.b.I&&!h&&(oa(k)||(k=pa(k)),oa(m)||(m=pa(m)));var l=document.createElement("canvas");l.width=k;l.height=m;var r=l.getContext("2d");if(this.b.Ya)return f?
e?(g?(r.rotate(Math.PI/2),r.scale(-1,1)):r.scale(-1,-1),r.translate(-k,-m)):g?(r.rotate(Math.PI/2),r.translate(0,-m)):(r.scale(-1,1),r.translate(-k,0)):e?g?(r.rotate(-Math.PI/2),r.translate(-k,0)):(r.scale(1,-1),r.translate(0,-m)):g&&(r.scale(-1,1),r.rotate(Math.PI/2)),r.drawImage(this.U,a,b,c,d,0,0,k,m),h?l:this.b.Ya.createPattern(l,"repeat");r.drawImage(this.U,a,b,c,d,0,0,k,m);a=this.b.I.Rc(k,m,this.b.Ua,!1,!h);this.b.I.cp(l,a);return a};h.Wh=function(){this.V||this.kq()};h.pl=function(){};h.Ln=
function(){};h.Wl=function(){this.V||this.u.length||this.kq()};h.no=function(){};d.M=function(a){this.type=a;this.b=a.b};var h=d.M.prototype,u=-2147483648,f=1073741824,l=536870912,F=536870911,z=[],m=[],v=[];t.prototype.clear=function(){var a,b,c,d,f;this.rf.length=this.j.Sb;a=0;for(b=this.rf.length;a<b;++a)for(f=this.rf[a],f||(f=[],this.rf[a]=f),f.length=this.j.Jb,c=0,d=f.length;c<d;++c)f[c]=-1};t.prototype.$k=function(){if(!this.zl){var a=this.j.rb,b=this.j.qb;if(!(0>=a||0>=b)){var c,d,e,h,r,t;c=
0;for(d=this.qc.length;c<d;++c)p(this.qc[c]);c=0;for(d=this.Jc.length;c<d;++c)k(this.Jc[c]);I(this.qc);I(this.Jc);var v=Math.min(this.j.Bd,Math.floor(this.j.width/a)),E=Math.min(this.j.Wd,Math.floor(this.j.height/b)),v=v-this.left/a,E=E-this.top/b;v>this.j.Jb&&(v=this.j.Jb);E>this.j.Sb&&(E=this.j.Sb);var O=this.j.Pe,y=null;c=0;for(d=E;c<d;++c){r=this.rf[c];e=0;for(h=v;e<h;++e)t=r[e],-1===t?y&&(this.qc.push(y),y=null):O||!y||t!==y.id?(y&&this.qc.push(y),y=z.length?z.pop():new g,y.id=t,y.Qo=t&F,y.sk=
0!==(t&u),y.cm=0!==(t&f),y.vi=0!==(t&l),y.Pt=y.sk||y.cm||y.vi,y.Ma.left=e*a+this.left,y.Ma.top=c*b+this.top,y.Ma.right=y.Ma.left+a,y.Ma.bottom=y.Ma.top+b):y.Ma.right+=a;y&&(this.qc.push(y),y=null)}var y=null,ha=!1;c=0;for(d=E;c<d;++c){r=this.rf[c];e=0;for(h=v;e<h;++e)t=r[e],-1===t?y&&(this.Jc.push(y),y=null,ha=!1):(E=this.j.type.Ku(t),!y||E||ha?(y&&this.Jc.push(y),y=m.length?m.pop():new n,y.id=t,y.Ie=E?E:null,t=y.Ma,t.left=e*a+this.left,t.top=c*b+this.top,t.right=t.left+a,t.bottom=t.top+b,ha=!!E):
y.Ma.right+=a);y&&(this.Jc.push(y),y=null,ha=!1)}if(!O)for(d=this.qc.length,c=0;c<d;++c)for(h=this.qc[c],a=c+1;a<d;++a)if(e=this.qc[a],!(e.Ma.top<h.Ma.bottom)){if(e.Ma.top>h.Ma.bottom)break;if(e.Ma.right>h.Ma.right||e.Ma.left>h.Ma.left)break;e.id===h.id&&e.Ma.left===h.Ma.left&&e.Ma.right===h.Ma.right&&(p(this.qc[a]),this.qc.splice(a,1),--d,h.Ma.bottom+=b,--a)}d=this.Jc.length;for(c=0;c<d;++c)if(h=this.Jc[c],!h.Ie)for(r=h.Ma,a=c+1;a<d;++a)if(e=this.Jc[a],h=e.Ma,!(h.top<r.bottom)){if(h.top>r.bottom)break;
if(h.right>r.right||h.left>r.left)break;e.Ie||h.left!==r.left||h.right!==r.right||(k(this.Jc[a]),this.Jc.splice(a,1),--d,r.bottom+=b,--a)}this.zl=!0}}};t.prototype.Gl=function(a,b,c){this.rf[b][a]!==c&&(this.rf[b][a]=c,this.zl=!1,this.j.xm=!0,this.j.nj=!0,this.j.b.ma=!0)};h.K=function(){var a,b,c;this.visible=0===this.q[0];this.rb=this.q[1];this.qb=this.q[2];this.ks=this.q[3];this.ns=this.q[4];this.ls=this.q[5];this.os=this.q[6];this.Pe=0!==this.q[7];this.Bd=this.jx;this.Wd=this.ix;this.Nf=this.width;
this.Mf=this.height;var d=this.rb,f=this.qb;0===d&&(d=1);0===f&&(f=1);this.Jb=Math.ceil(this.b.fb/d);this.Sb=Math.ceil(this.b.eb/f);if(!this.type.gx)for(this.type.gx=!0,a=0,b=this.type.Qe.length;a<b;++a)if(c=this.type.Qe[a])this.type.sg(a,d,f,!1,!1,!1),this.type.sg(a,d,f,!1,!1,!0),this.type.sg(a,d,f,!1,!0,!1),this.type.sg(a,d,f,!1,!0,!0),this.type.sg(a,d,f,!0,!1,!1),this.type.sg(a,d,f,!0,!1,!0),this.type.sg(a,d,f,!0,!0,!1),this.type.sg(a,d,f,!0,!0,!0);this.$b||(this.Mc=[]);this.Rh(!0);this.Vr(this.hx);
this.type.kr(this.rb,this.qb,this.ks,this.ns,this.ls,this.os,this.Pe);this.nj=!1;this.xm=!0;this.jr()};h.jr=function(){if(this.xm){var a,b,c,d,f;a=0;for(b=this.Mc.length;a<b;++a)for(f=this.Mc[a],c=0,d=f.length;c<d;++c)f[c].$k();this.xm=!1}};h.El=function(){var a,b,c,d,f;a=0;for(b=this.Mc.length;a<b;++a)for(f=this.Mc[a],c=0,d=f.length;c<d;++c)f[c].zl=!1;this.xm=!0};h.Rh=function(a){var b=x(this.width/this.rb),c=x(this.height/this.qb);if(!(b<=this.Bd&&c<=this.Wd)||a){var d;a?(a=Math.ceil(this.Wd/this.Sb),
d=Math.ceil(this.Bd/this.Jb)):(a=this.Mc.length,d=Math.ceil(this.Bd/this.Jb),c>this.Wd&&(this.Wd=c,a=Math.ceil(this.Wd/this.Sb)),b>this.Bd&&(this.Bd=b,d=Math.ceil(this.Bd/this.Jb)),this.El(),this.nj=!0,this.b.ma=!0);for(var f,b=0;b<a;++b)if(f=this.Mc[b])for(c=f.length;c<d;++c)f.push(e(this,c,b));else{f=[];for(c=0;c<d;++c)f.push(e(this,c,b));this.Mc[b]=f}}};h.Ip=function(a,b){if(0>a||0>b)return null;var c=x(b/this.Sb);if(c>=this.Mc.length)return null;var c=this.Mc[c],d=x(a/this.Jb);return d>=c.length?
null:c[d]};h.Jp=function(a,b){if(0>a||0>b||b>=this.Mc.length)return null;var c=this.Mc[b];return a>=c.length?null:c[a]};h.Vr=function(a){var b=[];a=a.split(",");var c,d,e,g,h;c=0;for(d=a.length;c<d;++c)if(e=a[c],g=e.indexOf("x"),-1<g)for(h=parseInt(e.substring(0,g),10),e=e.substring(g+1),g=parseInt(e,10),-1<e.indexOf("h")&&(g|=u),-1<e.indexOf("v")&&(g|=f),-1<e.indexOf("d")&&(g|=l);0<h;--h)b.push(g);else g=parseInt(e,10),-1<e.indexOf("h")&&(g|=u),-1<e.indexOf("v")&&(g|=f),-1<e.indexOf("d")&&(g|=l),
b.push(g);for(c=a=0;c<this.Wd;++c)for(d=0;d<this.Bd;++d)h=b[a++],(e=this.Ip(d,c))&&e.Gl(d%this.Jb,c%this.Sb,h)};h.Lu=function(){var a="";if(0>=this.Bd||0>=this.Wd)return a;var b=1,c=this.nk(0,0),d,e,g,h,k,m,r,t;h=x(this.width/this.rb);e=x(this.height/this.qb);for(d=0;d<e;++d)for(g=0===d?1:0;g<h;++g)k=this.nk(g,d),k===c?++b:(-1===c?(m=-1,c=t=r=!1):(m=c&F,r=0!==(c&u),t=0!==(c&f),c=0!==(c&l)),a=1===b?a+(""+m):a+(""+b+"x"+m),r&&(a+="h"),t&&(a+="v"),c&&(a+="d"),a+=",",b=1,c=k);-1===c?(m=-1,c=t=r=!1):(m=
c&F,r=0!==(c&u),t=0!==(c&f),c=0!==(c&l));a=1===b?a+(""+m):a+(""+b+"x"+m);r&&(a+="h");t&&(a+="v");c&&(a+="d");return a};h.nk=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Bd||b>=this.Wd)return-1;var c=this.Ip(a,b);return c?c.rf[b%this.Sb][a%this.Jb]:-1};h.Gl=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Bd||b>=this.Wd)return-1;var d=this.Ip(a,b);if(!d)return-1;d.Gl(a%this.Jb,b%this.Sb,c)};h.Ex=function(a){return Math.floor((a-this.x)/(this.Jb*this.rb))};
h.Fx=function(a){return Math.floor((a-this.y)/(this.Sb*this.qb))};h.Gx=function(a){return Math.floor((a-this.x)/this.rb)};h.Hx=function(a){return Math.floor((a-this.y)/this.qb)};h.Bu=function(a,b){var c=this.Fx(a.top),d=this.Ex(a.right),f=this.Fx(a.bottom),e,g,h;for(e=this.Ex(a.left);e<=d;++e)for(g=c;g<=f;++g)if(h=this.Jp(e,g))h.$k(),Ia(b,h.Jc)};h.KE=function(a,b){var c=this.nk(this.Gx(a),this.Hx(b));if(-1===c)return!1;c=this.type.Ku(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.qb)*this.qb+
this.y;a-=Math.floor((a-this.x)/this.rb)*this.rb+this.x;return c.Tb(a,b-d)};h.sd=function(a){var b,c,d,f,e,g;b=0;for(c=this.Mc.length;b<c;++b)for(e=this.Mc[b],d=0,f=e.length;d<f;++d)g=e[d],g.$k(),Ia(a,g.Jc)};h.Gc=function(){var a,b,c,d,f;a=0;for(b=this.Mc.length;a<b;++a){f=this.Mc[a];c=0;for(d=f.length;c<d;++c){for(var e=f[c],g=void 0,h=void 0,g=0,h=e.qc.length;g<h;++g)p(e.qc[g]);I(e.qc);g=0;for(h=e.Jc.length;g<h;++g)k(e.Jc[g]);I(e.Jc);1E3>v.length&&v.push(e)}I(f)}I(this.Mc)};h.Na=function(){this.Rh();
return{w:x(this.width/this.rb),h:x(this.height/this.qb),d:this.Lu()}};h.Sa=function(a){this.Bd=a.w;this.Wd=a.h;this.Rh(!0);this.Vr(a.d);this.nj=!0;this.El()};h.Ub=function(a){if(!(0>=this.rb||0>=this.qb)){this.type.kr(this.rb,this.qb,this.ks,this.ns,this.ls,this.os,this.Pe);if(this.width!==this.Nf||this.height!==this.Mf)this.nj=!0,this.El(),this.jr(),this.Nf=this.width,this.Mf=this.height;a.globalAlpha=this.opacity;var b=this.A,c=b.Oa,d=b.Pa,f=b.Ra,b=b.Qa,e=this.x,g=this.y,h=this.Pe,k;this.b.Wc&&
(e=Math.round(e),g=Math.round(g));var m=this.Jb*this.rb,l=this.Sb*this.qb,r=Math.floor((c-e)/m),m=Math.floor((f-e)/m),t=Math.floor((d-g)/l),l=Math.floor((b-g)/l),n=e%this.rb,p=g%this.qb;this.Pe&&(p=n=0);if(0!==n||0!==p)a.save(),a.translate(n,p),e-=n,g-=p,c-=n,d-=p,f-=n,b-=p;for(var u,v,E,z,F,N,X,L,V;r<=m;++r)for(u=t;u<=l;++u)if(v=this.Jp(r,u))for(v.$k(),E=0,z=v.qc.length;E<z;++E)F=v.qc[E],-1!==F.id&&(k=F.Ma,N=k.left+e,X=k.top+g,L=k.right+e,k=k.bottom+g,N>f||L<c||X>b||k<d||(V=this.type.Ms(F.Qo,F.sk,
F.cm,F.vi,this.Pe),h?a.drawImage(V,N,X):(a.fillStyle=this.type.Ms(F.Qo,F.sk,F.cm,F.vi,this.Pe),a.fillRect(N,X,L-N,k-X))));0===n&&0===p||a.restore()}};var E=new xa(0,0,1,1);h.Cf=function(a){this.bb(a)};h.bb=function(a){if(!(0>=this.rb||0>=this.qb)){this.type.kr(this.rb,this.qb,this.ks,this.ns,this.ls,this.os,this.Pe);if(this.width!==this.Nf||this.height!==this.Mf)this.nj=!0,this.El(),this.jr(),this.Nf=this.width,this.Mf=this.height;a.of(this.opacity);var b=this.type.mh,c=this.A,d=c.Oa,f=c.Pa,e=c.Ra,
c=c.Qa,g=this.x,h=this.y,k;this.b.Wc&&(g=Math.round(g),h=Math.round(h));var m=this.Jb*this.rb,l=this.Sb*this.qb,r=Math.floor((e-g)/m),t=Math.floor((f-h)/l),l=Math.floor((c-h)/l),n,p,u,v,z,F,H,N,X,L,V,W,ga,ba,Qa,Ra,Ya;for(Qa=Math.floor((d-g)/m);Qa<=r;++Qa)for(Ra=t;Ra<=l;++Ra)if(Ya=this.Jp(Qa,Ra))for(Ya.$k(),m=0,n=Ya.qc.length;m<n;++m)p=Ya.qc[m],-1!==p.id&&(k=p.Ma,u=k.left+g,v=k.top+h,z=k.right+g,k=k.bottom+h,u>e||z<d||v>c||k<f||(a.sc(b[p.Qo]),E.right=(z-u)/this.rb,E.bottom=(k-v)/this.qb,p.Pt?(p.vi&&
(ba=E.right,E.right=E.bottom,E.bottom=ba),H=F=0,N=E.right,X=0,L=E.right,V=E.bottom,W=0,ga=E.bottom,p.vi&&(ba=W,W=N,N=ba,ba=ga,ga=X,X=ba),p.sk&&(ba=F,F=N,N=ba,ba=H,H=X,X=ba,ba=W,W=L,L=ba,ba=ga,ga=V,V=ba),p.cm&&(ba=F,F=W,W=ba,ba=H,H=ga,ga=ba,ba=N,N=L,L=ba,ba=X,X=V,V=ba),a.hE(u,v,z,v,z,k,u,k,F,H,N,X,L,V,W,ga)):a.Ed(u,v,z,v,z,k,u,k,E)))}};b.prototype.Vx=function(a,b,c,d){a=this.nk(a,b);-1!==a&&(a=a&F);return nc(a,c,d)};d.k=new b;r.prototype.by=function(a,b){this.Rh();this.Gl(a,b,-1)};r.prototype.Uz=function(b,
c,d,f){this.Rh();this.Gl(b,c,d&F|a(f))};r.prototype.Oy=function(a){var b;try{b=JSON.parse(a)}catch(c){return}b.c2tilemap&&(this.Bd=b.width,this.Wd=b.height,this.Rh(!0),this.Vr(b.data),this.El(),this.nj=!0)};d.C=new r;c.prototype.nA=function(a,b,c){b=this.nk(b,c);a.ta(-1===b?-1:b&F)};c.prototype.Bz=function(a,b){a.R(this.Gx(b))};c.prototype.Cz=function(a,b){a.R(this.Hx(b))};c.prototype.oA=function(a,b){a.R(b*this.rb+this.x+this.rb/2)};c.prototype.pA=function(a,b){a.R(b*this.qb+this.y+this.qb/2)};c.prototype.qA=
function(a){this.Rh();a.Y(JSON.stringify({c2tilemap:!0,width:x(this.width/this.rb),height:x(this.height/this.qb),data:this.Lu()}))};d.H=new c})();function Lc(g){this.b=g}
(function(){function g(a){c=a.x;d=a.y;h=a.z}function p(a,b,c,d){var f;f=u.length?u.pop():new n;f.init(a,b,c,d);return f}function n(){this.Nl=this.id=this.Nh=this.Mh=this.y=this.x=this.Mo=this.Lo=this.Vq=this.time=this.bs=0;this.Vl=this.Uo=!1}function k(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function e(){}function t(){}var b=Lc.prototype;b.N=function(a){this.da=a;
this.b=a.b};b.N.prototype.K=function(){};b.M=function(a){this.type=a;this.b=a.b;this.touches=[];this.mr=!1};var a=b.M.prototype,r={left:0,top:0};a.gk=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,h=0,u=[];n.prototype.init=function(a,b,c,d){var f=gb();this.bs=this.Vq=this.time=f;this.Lo=a;this.Mo=b;this.x=a;this.y=b;this.Mh=a;this.Nh=b;this.pressure=this.height=this.width=0;this.id=c;this.Nl=d;this.Vl=this.Uo=!1};n.prototype.update=
function(a,b,c,d,f,e){this.Vq=this.time;this.time=a;this.Mh=this.x;this.Nh=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.Vl&&15<=ab(this.Lo,this.Mo,this.x,this.y)&&(this.Vl=!0)};n.prototype.uD=function(a,b){!this.Uo&&500<=gb()-this.bs&&!this.Vl&&15>ab(this.Lo,this.Mo,this.x,this.y)&&(this.Uo=!0,a.sf=this.Nl,a.Aj=this.id,a.Gi=b,a.b.trigger(Lc.prototype.k.Vs,a),a.yf=this.x,a.zf=this.y,a.b.trigger(Lc.prototype.k.gz,a),a.Gi=0)};var f=-1E3,l=-1E3,F=-1E4;n.prototype.Lv=function(a,
b){if(!this.Uo){var c=gb();333>=c-this.bs&&!this.Vl&&15>ab(this.Lo,this.Mo,this.x,this.y)&&(a.sf=this.Nl,a.Aj=this.id,a.Gi=b,666>=c-F&&25>ab(f,l,this.x,this.y)?(a.b.trigger(Lc.prototype.k.$y,a),a.yf=this.x,a.zf=this.y,a.b.trigger(Lc.prototype.k.az,a),l=f=-1E3,F=-1E4):(a.b.trigger(Lc.prototype.k.tt,a),a.yf=this.x,a.zf=this.y,a.b.trigger(Lc.prototype.k.ut,a),f=this.x,l=this.y,F=c),a.Gi=0)}};a.K=function(){this.hD=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Gi=this.Aj=this.sf=
this.zf=this.yf=this.It=this.Ht=this.Gt=this.yA=this.xA=this.wA=this.bo=this.ao=this.$n=0;this.WE=0!==this.q[0];var a=0<this.b.Ac?document:this.b.canvas,b=document;this.b.Dc?b=a=window.Canvas:this.b.yd&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.ol(a)},!1),a.addEventListener("pointermove",function(a){c.nl(a)},!1),b.addEventListener("pointerup",function(a){c.Sf(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Sf(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.ol(a)},!1),a.addEventListener("MSPointerMove",function(a){c.nl(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Sf(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Sf(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.Zn(a)},!1),a.addEventListener("touchmove",function(a){c.Yn(a)},!1),b.addEventListener("touchend",function(a){c.lj(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.lj(a,!0)},
!1));if(this.hD){var d=function(a){a=a.reading;c.Gt=a.accelerationX;c.Ht=a.accelerationY;c.It=a.accelerationZ},f=function(a){a=a.reading;c.$n=a.yawDegrees;c.ao=a.pitchDegrees;c.bo=a.rollDegrees},e=Windows.Devices.Sensors.Accelerometer.getDefault();e&&(e.reportInterval=Math.max(e.minimumReportInterval,16),e.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(e&&e.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(e&&e.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.$n=a.alpha||0;c.ao=a.beta||0;c.bo=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.wA=a.accelerationIncludingGravity.x||0,c.xA=a.accelerationIncludingGravity.y||
0,c.yA=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Gt=a.acceleration.x||0,c.Ht=a.acceleration.y||0,c.It=a.acceleration.z||0)},!1);this.WE&&!this.b.O&&(jQuery(document).mousemove(function(a){c.ll(a)}),jQuery(document).mousedown(function(a){c.kl(a)}),jQuery(document).mouseup(function(a){c.ml(a)}));!this.b.Ih&&this.b.zd&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.ME(this)};a.nl=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.gk(a.pointerId),c=gb();if(0<=b){var d=this.b.O?r:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.ol=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&vb(a)&&a.preventDefault();var b=this.b.O?r:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;gb();
this.sf=this.touches.length;this.Aj=a.pointerId;this.touches.push(p(c,b,a.pointerId,this.sf));this.b.ua=!0;this.b.trigger(Lc.prototype.k.ct,this);this.b.trigger(Lc.prototype.k.zt,this);this.yf=c;this.zf=b;this.b.trigger(Lc.prototype.k.yt,this);this.b.ua=!1}};a.Sf=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&vb(a)&&a.preventDefault();var c=this.gk(a.pointerId);this.sf=0<=c?this.touches[c].Nl:-1;this.Aj=0<=c?this.touches[c].id:-1;this.b.ua=!0;this.b.trigger(Lc.prototype.k.bt,
this);this.b.trigger(Lc.prototype.k.xt,this);0<=c&&(b||this.touches[c].Lv(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.ua=!1}};a.Yn=function(a){a.preventDefault&&a.preventDefault();var b=gb(),c,d,f,e;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],e=this.gk(f.identifier),0<=e){var g=this.b.O?r:jQuery(this.b.canvas).offset();e=this.touches[e];2>b-e.time||e.update(b,f.pageX-g.left,f.pageY-g.top,2*(f.jG||f.rG||f.dG||f.gG||0),2*(f.kG||f.sG||f.eG||f.hG||
0),f.ZF||f.qG||f.cG||f.fG||0)}};a.Zn=function(a){a.preventDefault&&vb(a)&&a.preventDefault();var b=this.b.O?r:jQuery(this.b.canvas).offset();gb();this.b.ua=!0;var c,d,f,e;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],e=this.gk(f.identifier),-1===e){e=f.pageX-b.left;var g=f.pageY-b.top;this.sf=this.touches.length;this.Aj=f.identifier;this.touches.push(p(e,g,f.identifier,this.sf));this.b.trigger(Lc.prototype.k.ct,this);this.b.trigger(Lc.prototype.k.zt,this);this.yf=e;this.zf=g;
this.b.trigger(Lc.prototype.k.yt,this)}this.b.ua=!1};a.lj=function(a,b){a.preventDefault&&vb(a)&&a.preventDefault();this.b.ua=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.gk(f.identifier),0<=f&&(this.sf=this.touches[f].Nl,this.Aj=this.touches[f].id,this.b.trigger(Lc.prototype.k.bt,this),this.b.trigger(Lc.prototype.k.xt,this),b||this.touches[f].Lv(this,f),100>u.length&&u.push(this.touches[f]),this.touches.splice(f,1));this.b.ua=!1};a.sd=function(){return this.b.zd&&
0===this.$n&&0!==h?90*h:this.$n};a.Oq=function(){return this.b.zd&&0===this.ao&&0!==d?90*d:this.ao};a.jv=function(){return this.b.zd&&0===this.bo&&0!==c?90*c:this.bo};a.kl=function(a){k(a)||(this.Zn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.mr=!0)};a.ll=function(a){this.mr&&!k(a)&&this.Yn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.ml=function(a){a.preventDefault&&this.b.vn&&!this.b.cf&&a.preventDefault();this.b.vn=!0;k(a)||(this.lj({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.mr=!1)};a.zj=function(){var a,b,c,d=gb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Vq=d),c.uD(this,a)};e.prototype.zt=function(){return!0};e.prototype.xt=function(){return!0};e.prototype.yt=function(a){return a?this.b.xj(a,this.yf,this.zf,!1):!1};var z=[];e.prototype.Gy=function(a){if(!a)return!1;var b=a.xa(),c=b.fd(),d,f,e,g,h,k;e=0;for(g=c.length;e<g;e++){var l=c[e];l.na();h=0;for(k=this.touches.length;h<k;h++)if(f=this.touches[h],
d=l.A.$a(f.x,f.y,!0),f=l.A.$a(f.x,f.y,!1),l.Tb(d,f)){z.push(l);break}}return z.length?(b.Ga=!1,Ha(b.u,z),a.Pd(),I(z),!0):!1};e.prototype.ct=function(a){a=Math.floor(a);return a===this.sf};e.prototype.bt=function(a){a=Math.floor(a);return a===this.sf};e.prototype.Vs=function(){return!0};e.prototype.tt=function(){return!0};e.prototype.$y=function(){return!0};e.prototype.gz=function(a){return a?this.b.xj(a,this.yf,this.zf,!1):!1};e.prototype.ut=function(a){return a?this.b.xj(a,this.yf,this.zf,!1):!1};
e.prototype.az=function(a){return a?this.b.xj(a,this.yf,this.zf,!1):!1};b.k=new e;b.C=new function(){};t.prototype.Mj=function(a,b){var c=this.Gi;if(0>c||c>=this.touches.length)a.R(0);else{var d,f,e,g,h;la(b)?(d=this.b.Gf(0),f=d.scale,e=d.Ic,g=d.Uc,h=d.B,d.scale=1,d.Ic=1,d.Uc=1,d.B=0,a.R(d.$a(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Ic=e,d.Uc=g,d.B=h):(d=ma(b)?this.b.Gf(b):this.b.lk(b))?a.R(d.$a(this.touches[c].x,this.touches[c].y,!0)):a.R(0)}};t.prototype.gh=function(a,b){var c=this.Gi;
if(0>c||c>=this.touches.length)a.R(0);else{var d,f,e,g,h;la(b)?(d=this.b.Gf(0),f=d.scale,e=d.Ic,g=d.Vc,h=d.B,d.scale=1,d.Ic=1,d.Vc=1,d.B=0,a.R(d.$a(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Ic=e,d.Vc=g,d.B=h):(d=ma(b)?this.b.Gf(b):this.b.lk(b))?a.R(d.$a(this.touches[c].x,this.touches[c].y,!1)):a.R(0)}};b.H=new t})();function Mc(g){this.b=g}
(function(){function g(){}var p=Mc.prototype;p.N=function(a){this.da=a;this.b=a.b};p.N.prototype.K=function(){};p.M=function(a){this.type=a;this.b=a.b};var n=p.M.prototype,k="",e="undefined"!==typeof window.is_scirra_arcade;e&&(k="arcade"+window.scirra_arcade_id);var t=!1;try{localStorage.getItem("test"),t=!0}catch(b){t=!1}n.K=function(){t||ja("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};p.k=new function(){};p.C=new function(){};g.prototype.lp=function(a){if(t){var b=
{},c,d,g;c=0;for(d=localStorage.length;c<d;c++)g=localStorage.key(c),e?g.substr(0,k.length)===k&&(b[g.substr(k.length)]=localStorage.getItem(g)):b[g]=localStorage.getItem(g);a.Y(JSON.stringify({c2dictionary:!0,data:b}))}else a.Y("")};p.H=new g})();function Nc(g){this.b=g}
(function(){function g(){}function p(){}function n(){}var k=Nc.prototype;k.N=function(e){this.da=e;this.b=e.b};k.N.prototype.K=function(){};k.M=function(e){this.type=e;this.b=e.b};k.M.prototype.K=function(){this.du=this.q[0];this.sw=!!this.q[1];!this.sw&&this.b.Ck&&(this.te=require("discord-rich-presence/")(this.du),this.rE=this.te.first,this.Cs=this.Cr=this.Bj=this.id=this.zm=null)};g.prototype.LD=function(){return!0};k.k=new g;p.prototype.EE=function(e,g,b,a,k,c){!this.sw&&this.b.Ck&&(null==this.te&&
(this.te=require("discord-rich-presence/")(this.du)),null==this.Bj&&null!=this.te.second.ji&&(this.Bj=this.te.second.ji.Bj,this.zm="https://cdn.discordapp.com/avatars/"+this.te.second.ji.id+"/"+this.te.second.ji.zm+".png",this.id=this.te.second.ji.id,this.Cr=this.te.second.ji.iG,this.Cs=this.te.second.ji.Bj+"#"+this.te.second.ji.YF),this.rE.pG({XF:g,state:e,mG:k,nG:c,aG:b,bG:a}),this.b.trigger(Nc.prototype.k.LD,this))};k.C=new p;n.prototype.Bj=function(e){e.Y(this.Bj)};n.prototype.zm=function(e){e.Y(this.zm)};
n.prototype.Cs=function(e){e.Y(this.Cs)};n.prototype.id=function(e){e.Y(this.id)};n.prototype.Cr=function(e){e.Y(this.Cr)};k.H=new n})();function Oc(g){this.b=g}
(function(){function g(){}function p(){}var n=Oc.prototype;n.N=function(e){this.da=e;this.b=e.b};n.N.prototype.K=function(){};n.M=function(e){this.type=e;this.b=e.b};var k=n.M.prototype;k.K=function(){this.b.O?ja("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.n=document.createElement("progress"),this.value=this.q[0],this.max=this.q[1],0<this.max&&0<=this.value&&(this.n.max=this.max,this.n.value=this.value),this.n.id=this.q[4],this.n.title=
this.q[2],jQuery(this.n).appendTo(this.b.Qd?this.b.Qd:"body"),this.kb=!1,0===this.q[3]&&(jQuery(this.n).hide(),this.visible=!1,this.kb=!0),this.n.onclick=function(e){return function(g){g.stopPropagation();e.b.ua=!0;e.b.trigger(Oc.prototype.k.kg,e);e.b.ua=!1}}(this),this.n.addEventListener("touchstart",function(e){e.stopPropagation()},!1),this.n.addEventListener("touchmove",function(e){e.stopPropagation()},!1),this.n.addEventListener("touchend",function(e){e.stopPropagation()},!1),jQuery(this.n).mousedown(function(e){e.stopPropagation()}),
jQuery(this.n).mouseup(function(e){e.stopPropagation()}),this.Be=this.Ce=this.xe=this.ze=this.Ae=this.ye=0,this.rd(!0),this.b.Hd(this))};k.Na=function(){return{v:this.n.value,m:this.n.max}};k.Sa=function(e){this.n.value=e.v;this.n.max=e.m};k.Gc=function(){this.b.O||(jQuery(this.n).remove(),this.n=null)};k.Ha=function(){this.rd()};k.rd=function(e){if(!this.b.O){var g=this.A.ca(this.x,this.y,!0),b=this.A.ca(this.x,this.y,!1),a=this.A.ca(this.x+this.width,this.y+this.height,!0),k=this.A.ca(this.x+this.width,
this.y+this.height,!1),c=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.A.visible||0>=a||0>=k||g>=c||b>=d?(this.kb||jQuery(this.n).hide(),this.kb=!0):(1>g&&(g=1),1>b&&(b=1),a>=c&&(a=c-1),k>=d&&(k=d-1),c=window.innerWidth,d=window.innerHeight,e||this.ye!==g||this.Ae!==b||this.ze!==a||this.xe!==k||this.Ce!==c||this.Be!==d?(this.ye=g,this.Ae=b,this.ze=a,this.xe=k,this.Ce=c,this.Be=d,this.kb&&(jQuery(this.n).show(),this.kb=!1),e=Math.round(g)+jQuery(this.b.canvas).offset().left,
c=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.n).css("position","absolute"),jQuery(this.n).offset({left:e,top:c}),jQuery(this.n).width(Math.round(a-g)),jQuery(this.n).height(Math.round(k-b))):this.kb&&(jQuery(this.n).show(),this.kb=!1))}};k.Ub=function(){};k.bb=function(){};g.prototype.kg=function(){return!0};g.prototype.Ux=function(e,g){return this.O?!1:nc(this.n.value,e,g)};n.k=new g;p.prototype.uf=function(e){this.b.O||(this.visible=0!==e)};p.prototype.qm=function(e,g){this.b.O||
jQuery(this.n).css(e,g)};p.prototype.Tz=function(e){this.b.O||(this.value=e,this.n.max=this.max,this.n.value=this.value)};n.C=new p;n.H=new function(){}})();function Pc(g){this.b=g}
(function(){function g(b){switch(b){case 0:return"top-right";case 1:return"top-left";case 2:return"bottom-left"}return"bottom-right"}function p(b){switch(b){case 1:return"medium";case 2:return"fast"}return"slow"}function n(b){switch(b){case 1:return"gritter-light";case 2:return"gritter-success";case 3:return"gritter-info";case 4:return"gritter-warning";case 5:return"gritter-error";case 6:return"gritter-red";case 7:return"gritter-yellow";case 8:return"gritter-blue";case 9:return"gritter-green"}return""}
function k(){}var e=Pc.prototype;e.N=function(b){this.da=b;this.b=b.b};e.N.prototype.K=function(){};e.M=function(b){this.type=b;this.b=b.b};var t=e.M.prototype;t.K=function(){this.position=g(this.q[0]);this.cC=p(this.q[1]);this.dC=p(this.q[2]);this.time=this.q[3];this.tD=this.q[4];this.OD=0===this.q[5]?!0:!1;this.PD=this.q[6];jQuery.extend(jQuery.gritter.options,{position:this.position,fade_in_speed:this.cC,fade_out_speed:this.dC,time:this.time,max_to_display:this.tD})};t.Gc=function(){};t.Na=function(){return{}};
t.Sa=function(){};t.Ub=function(){};t.bb=function(){};e.k=new function(){};k.prototype.Kx=function(b,a,e){jQuery.gritter.add({title:b,text:a,image:e,sticky:this.OD,class_name:n(this.PD)})};e.C=new k;e.H=new function(){}})();function Qc(g){this.b=g}
(function(){function g(a){return a&&!a.paused&&!a.ended&&0<a.currentTime}function p(){var a=d.slice(0);I(d);var b,c,e,g;b=0;for(c=a.length;b<c;++b)g=a[b],(e=g.play())&&e.catch(function(){n(g)})}function n(a){-1===d.indexOf(a)&&d.push(a)}function k(){}function e(){}var t=Qc.prototype;t.N=function(a){this.da=a;this.b=a.b};var b=t.N.prototype;b.K=function(){};b.Wh=function(){if(!this.V){var a,b,c;a=0;for(b=this.u.length;a<b;++a)c=this.u[a],c.T=null}};var b=document.createElement("video"),a=!!b.canPlayType("video/webm"),
r=!!b.canPlayType("video/ogg"),c=!!b.canPlayType("video/mp4"),b=null;t.M=function(a){this.type=a;this.b=a.b};var b=t.M.prototype,d=[];document.addEventListener("touchend",p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);b.Yh=function(a){if(this.video){var b=this;if(a){var c;try{c=this.video.play()}catch(e){n(this.video);return}c?c.catch(function(){b.video&&n(b.video)}):this.XE&&!this.b.ua&&n(this.video)}else a=d.indexOf(this.video),0<=a&&d.splice(a,1)}};b.K=
function(){this.aF=this.q[0];this.BD=this.q[1];this.yD=this.q[2];this.autoplay=this.q[3];this.UD=0!==this.q[4];this.Es=!1;this.video=document.createElement("video");this.video.crossOrigin="anonymous";this.video.playsInline=!0;this.T=null;this.Af=-1;this.fm=this.ki=null;this.YE=this.b.bf||this.b.Mi;var a=this;this.video.addEventListener("canplay",function(){a.Af=0;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("canplaythrough",function(){a.Af=1;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("ended",
function(){a.Af=2;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("error",function(){a.Af=3;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("loadstart",function(){a.Af=4;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("playing",function(){a.Af=5;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("pause",function(){a.Af=6;a.b.trigger(Qc.prototype.k.tf,a)});this.video.addEventListener("stalled",function(){a.Af=7;a.b.trigger(Qc.prototype.k.tf,
a)});this.XE=(this.b.Ih||this.b.Li&&(this.b.Bn||this.b.xk))&&!this.b.zk&&!this.b.O;0===this.autoplay?(this.video.autoplay=!1,this.video.rw="none"):1===this.autoplay?(this.video.autoplay=!1,this.video.rw="auto"):2===this.autoplay&&(this.video.autoplay=!0);this.Kw(this.aF,this.BD,this.yD);2===this.autoplay&&this.Yh(!0);this.visible=0!==this.q[5];this.b.Hd(this);this.$b||(a=this,this.b.yp(function(b){a.tr(b)}))};b.tr=function(a){!this.UD&&this.video&&(a?g(this.video)&&(this.Yh(!1),this.video.pause(),
this.Es=!0):this.Es&&(this.Yh(!0),this.Es=!1))};b.Kw=function(b,d,e){var g="";a&&b?g=b:r&&d?g=d:c&&e&&(g=e);g&&(this.b.Wu(g)||(g=g.toLowerCase()),this.video.src=g);this.b.I&&this.T&&(this.b.I.deleteTexture(this.T),this.T=null);this.fm=this.ki=null};b.Gc=function(){this.Yh(!1);g(this.video)&&this.video.pause();this.b.I&&this.T&&(this.b.I.deleteTexture(this.T),this.T=null);this.fm=this.ki=null;this.video.src="";this.video=null};b.Ha=function(){g(this.video)&&(this.b.ma=!0)};b.Na=function(){return{s:this.video.src||
"",p:!!g(this.video),t:this.video.currentTime||0}};b.Sa=function(a){if(a&&"undefined"!==typeof a.s){var b=a.s;this.Kw(b,b,b);try{this.video.currentTime=a.t}catch(c){}a.p?this.Yh(!0):(this.Yh(!1),this.video.pause())}};b.Ub=function(a){if(this.video){var b=this.video.videoWidth,c=this.video.videoHeight;if(!(0>=b||0>=c)){var b=b/c,c=this.width,d=this.height,e=0,g=0,h=0,k=0;c/d>b?(h=d*b,k=d,e=Math.floor((c-h)/2),0>e&&(e=0)):(h=c,k=c/b,g=Math.floor((d-k)/2),0>g&&(g=0));a.globalAlpha=this.opacity;a.drawImage(this.video,
this.x+e,this.y+g,h,k)}}};var h=new xa(0,0,0,0),u=new ya;b.bb=function(a){if(this.video){var b=this.video.videoWidth,c=this.video.videoHeight;if(!(0>=b||0>=c)){var d=b/c,e=this.width,g=this.height,k=0,r=0,n=0,t=0;e/g>d?(n=g*d,t=g,k=Math.floor((e-n)/2),0>k&&(k=0)):(n=e,t=e/d,r=Math.floor((g-t)/2),0>r&&(r=0));this.T||(this.T=a.Rc(b,c,this.b.Ua,!1,!1));this.YE?(this.fm||(this.ki=document.createElement("canvas"),this.ki.width=b,this.ki.height=c,this.fm=this.ki.getContext("2d")),this.fm.drawImage(this.video,
0,0),a.cp(this.ki,this.T)):a.cp(this.video,this.T);a.Xf(this.tc,this.jc);a.of(this.opacity);a.sc(this.T);h.set(this.x+k,this.y+r,this.x+k+n,this.y+r+t);u.Yg(h);a.oj(u.wb,u.xb,u.uc,u.vc,u.gc,u.hc,u.cc,u.ec)}}};k.prototype.tf=function(a){return this.Af===a};t.k=new k;e.prototype.Play=function(){this.Yh(!0)};t.C=new e;t.H=new function(){}})();function Rc(g){this.b=g}
(function(){function g(){}var p=Rc.prototype;p.N=function(g){this.behavior=g;this.b=g.b};p.N.prototype.K=function(){};p.M=function(g,e){this.type=g;this.behavior=g.behavior;this.j=e;this.b=g.b};var n=p.M.prototype;n.K=function(){this.Lt=this.q[0];this.Mt=this.q[1];this.EA=this.q[2];this.DA=this.q[3];this.j.na();this.fp=this.j.qa.left;this.jp=this.j.qa.top;this.gp=this.b.fb-this.j.qa.left;this.ip=this.b.eb-this.j.qa.top;this.so=this.b.fb-this.j.qa.right;this.Em=this.b.eb-this.j.qa.bottom;this.enabled=
0!==this.q[4]};n.Na=function(){return{xleft:this.fp,ytop:this.jp,xright:this.gp,ybottom:this.ip,rdiff:this.so,bdiff:this.Em,enabled:this.enabled}};n.Sa=function(g){this.fp=g.xleft;this.jp=g.ytop;this.gp=g.xright;this.ip=g.ybottom;this.so=g.rdiff;this.Em=g.bdiff;this.enabled=g.enabled};n.Ha=function(){if(this.enabled){var g,e=this.j.A,n=this.j,b=this.j.qa;0===this.Lt?(n.na(),g=e.Oa+this.fp-b.left,0!==g&&(n.x+=g,n.J())):1===this.Lt&&(n.na(),g=e.Ra-this.gp-b.left,0!==g&&(n.x+=g,n.J()));0===this.Mt?(n.na(),
g=e.Pa+this.jp-b.top,0!==g&&(n.y+=g,n.J())):1===this.Mt&&(n.na(),g=e.Qa-this.ip-b.top,0!==g&&(n.y+=g,n.J()));1===this.EA&&(n.na(),g=e.Ra-this.so-b.right,0!==g&&(n.width+=g,0>n.width&&(n.width=0),n.J()));1===this.DA&&(n.na(),g=e.Qa-this.Em-b.bottom,0!==g&&(n.height+=g,0>n.height&&(n.height=0),n.J()))}};p.k=new function(){};g.prototype.Nc=function(g){this.enabled&&0===g?this.enabled=!1:this.enabled||0===g||(this.j.na(),this.fp=this.j.qa.left,this.jp=this.j.qa.top,this.gp=this.b.fb-this.j.qa.left,this.ip=
this.b.eb-this.j.qa.top,this.so=this.b.fb-this.j.qa.right,this.Em=this.b.eb-this.j.qa.bottom,this.enabled=!0)};p.C=new g;p.H=new function(){}})();function Sc(g){this.b=g}
(function(){function g(){}var p=Sc.prototype;p.N=function(g){this.behavior=g;this.b=g.b};p.N.prototype.K=function(){};p.M=function(g,e){this.type=g;this.behavior=g.behavior;this.j=e;this.b=g.b};var n=p.M.prototype;n.K=function(){var g=this.q[0];this.Za=this.q[1];this.ed=this.q[2];this.JA=0!==this.q[3];this.Ur=0!==this.q[4];this.D=Math.cos(this.j.B)*g;this.F=Math.sin(this.j.B)*g;this.Mh=this.j.x;this.Nh=this.j.y;this.Fc=this.j.B;this.So=0;this.enabled=0!==this.q[5]};n.Na=function(){return{acc:this.Za,
g:this.ed,dx:this.D,dy:this.F,lx:this.Mh,ly:this.Nh,lka:this.Fc,t:this.So,e:this.enabled}};n.Sa=function(g){this.Za=g.acc;this.ed=g.g;this.D=g.dx;this.F=g.dy;this.Mh=g.lx;this.Nh=g.ly;this.Fc=g.lka;this.So=g.t;this.enabled=g.e};n.Ha=function(){if(this.enabled){var g=this.b.Eg(this.j),e,n;this.j.B!==this.Fc&&(this.Ur&&(e=ab(0,0,this.D,this.F),this.D=Math.cos(this.j.B)*e,this.F=Math.sin(this.j.B)*e),this.Fc=this.j.B);0!==this.Za&&(e=ab(0,0,this.D,this.F),n=0===this.D&&0===this.F?this.j.B:Ua(0,0,this.D,
this.F),e+=this.Za*g,0>e&&(e=0),this.D=Math.cos(n)*e,this.F=Math.sin(n)*e);0!==this.ed&&(this.F+=this.ed*g);this.Mh=this.j.x;this.Nh=this.j.y;if(0!==this.D||0!==this.F)if(this.j.x+=this.D*g,this.j.y+=this.F*g,this.So+=ab(0,0,this.D*g,this.F*g),this.Ur&&(this.j.B=Ua(0,0,this.D,this.F),this.j.J(),this.Fc=this.j.B),this.j.J(),this.JA&&(e=this.b.pb(this.j)))this.b.Fd(this.j,e),e=ab(0,0,this.D,this.F),n=this.b.MA(this.j,this.Mh,this.Nh),this.D=Math.cos(n)*e,this.F=Math.sin(n)*e,this.j.x+=this.D*g,this.j.y+=
this.F*g,this.j.J(),this.Ur&&(this.Fc=this.j.B=n,this.j.J()),this.b.od(this.j,this.D/e,this.F/e,Math.max(2.5*e*g,30))||this.b.Gr(this.j,100)}};p.k=new function(){};g.prototype.Nc=function(g){this.enabled=1===g};p.C=new g;p.H=new function(){}})();
function Tc(g){this.b=g;var p=this;this.b.O||(jQuery(document).mousemove(function(g){p.ll(g)}),jQuery(document).mousedown(function(g){p.kl(g)}),jQuery(document).mouseup(function(g){p.ml(g)}));g=0<this.b.Ac?document:this.b.canvas;this.b.Dc?g=window.Canvas:this.b.yd&&(g=window);"undefined"!==typeof PointerEvent?(g.addEventListener("pointerdown",function(g){p.ol(g)},!1),g.addEventListener("pointermove",function(g){p.nl(g)},!1),g.addEventListener("pointerup",function(g){p.Sf(g)},!1),g.addEventListener("pointercancel",
function(g){p.Sf(g)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(g){p.ol(g)},!1),g.addEventListener("MSPointerMove",function(g){p.nl(g)},!1),g.addEventListener("MSPointerUp",function(g){p.Sf(g)},!1),g.addEventListener("MSPointerCancel",function(g){p.Sf(g)},!1)):(g.addEventListener("touchstart",function(g){p.Zn(g)},!1),g.addEventListener("touchmove",function(g){p.Yn(g)},!1),g.addEventListener("touchend",function(g){p.lj(g)},!1),g.addEventListener("touchcancel",
function(g){p.lj(g)},!1))}
(function(){function g(b){var a,e;a=0;for(e=b.Z.length;a<e;a++)if(b.Z[a]instanceof k.M)return b.Z[a];return null}function p(){}function n(){}var k=Tc.prototype,e={left:0,top:0};k.kl=function(b){1===b.which&&this.qr("leftmouse",b.pageX,b.pageY)};k.ll=function(b){1===b.which&&this.rr("leftmouse",b.pageX,b.pageY)};k.ml=function(b){1===b.which&&this.sr("leftmouse")};k.Zn=function(b){b.preventDefault&&vb(b)&&b.preventDefault();var a,e,c,d;a=0;for(e=b.changedTouches.length;a<e;a++)c=b.changedTouches[a],
d=c.identifier,this.qr(d?d.toString():"<none>",c.pageX,c.pageY)};k.Yn=function(b){b.preventDefault&&b.preventDefault();var a,e,c,d;a=0;for(e=b.changedTouches.length;a<e;a++)c=b.changedTouches[a],d=c.identifier,this.rr(d?d.toString():"<none>",c.pageX,c.pageY)};k.lj=function(b){b.preventDefault&&vb(b)&&b.preventDefault();var a,e,c;a=0;for(e=b.changedTouches.length;a<e;a++)c=b.changedTouches[a],c=c.identifier,this.sr(c?c.toString():"<none>")};k.ol=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&
"mouse"!==b.pointerType&&(b.preventDefault&&vb(b)&&b.preventDefault(),this.qr(b.pointerId.toString(),b.pageX,b.pageY))};k.nl=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.rr(b.pointerId.toString(),b.pageX,b.pageY))};k.Sf=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&vb(b)&&b.preventDefault(),this.sr(b.pointerId.toString()))};k.qr=function(b,a,k){var c=this.b.O?e:jQuery(this.b.canvas).offset();
a=a-c.left;k=k-c.top;var d,h,n,f,c=this.Th.fe(),l,p,t,m=null;l=0;for(p=c.length;l<p;l++)if(t=c[l],d=g(t),d.enabled&&!d.Ag&&(d=t.A.$a(a,k,!0),h=t.A.$a(a,k,!1),t.na(),t.Tb(d,h)))m?t.A.index>m.A.index?(m=t,n=d,f=h):t.A.index===m.A.index&&t.Ud()>m.Ud()&&(m=t,n=d,f=h):(m=t,n=d,f=h);m&&g(m).HD(b,n,f)};k.rr=function(b,a,k){var c=this.b.O?e:jQuery(this.b.canvas).offset();a=a-c.left;k=k-c.top;var d,h=this.Th.fe(),n,f,l;n=0;for(f=h.length;n<f;n++)d=h[n],l=g(d),!l.enabled||!l.Ag||l.Ag&&l.Zp!==b||(c=d.A.$a(a,
k,!0),d=d.A.$a(a,k,!1),l.ID(c,d))};k.sr=function(b){var a=this.Th.fe(),e,c,d;e=0;for(c=a.length;e<c;e++)d=a[e],d=g(d),d.Ag&&d.Zp===b&&d.JD()};k.N=function(b){this.behavior=b;this.b=b.b};k.N.prototype.K=function(){};k.M=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b};var t=k.M.prototype;t.K=function(){this.Ag=!1;this.F=this.D=0;this.Zp="<none>";this.Cp=this.q[0];this.enabled=0!==this.q[1]};t.Na=function(){return{enabled:this.enabled}};t.Sa=function(b){this.enabled=b.enabled;
this.Ag=!1};t.HD=function(b,a,e){this.D=a-this.j.x;this.F=e-this.j.y;this.Ag=!0;this.Zp=b;this.b.ua=!0;this.b.trigger(Tc.prototype.k.bz,this.j);this.b.ua=!1};t.ID=function(b,a){var e=b-this.D,c=a-this.F;if(0===this.Cp){if(this.j.x!==e||this.j.y!==c)this.j.x=e,this.j.y=c,this.j.J()}else 1===this.Cp?this.j.x!==e&&(this.j.x=e,this.j.J()):2===this.Cp&&this.j.y!==c&&(this.j.y=c,this.j.J())};t.JD=function(){this.Ag=!1;this.b.ua=!0;this.b.trigger(Tc.prototype.k.cz,this.j);this.b.ua=!1};t.Ha=function(){};
p.prototype.bz=function(){return!0};p.prototype.cz=function(){return!0};k.k=new p;n.prototype.Nc=function(b){this.enabled=0!==b;this.enabled||(this.Ag=!1)};k.C=new n;k.H=new function(){}})();function Uc(g){this.b=g}
(function(){function g(){}function p(){}var n=Uc.prototype;n.N=function(e){this.behavior=e;this.b=e.b};n.N.prototype.K=function(){};n.M=function(e,g){this.type=e;this.behavior=e.behavior;this.j=g;this.b=e.b;this.$f=this.Zf=this.Ho=this.Io=this.Ah=this.Oe=this.Ee=this.$j=this.Xl=!1;this.Uq=this.Tq=this.Sq=this.Wq=-1;this.F=this.D=0};var k=n.M.prototype;k.K=function(){this.mc=this.q[0];this.Za=this.q[1];this.Ab=this.q[2];this.Wp=this.q[3];this.Ap=this.q[4];this.Up=1===this.q[5];this.enabled=0!==this.q[6];
this.Up&&!this.b.O&&(jQuery(document).keydown(function(e){return function(g){e.hl(g)}}(this)),jQuery(document).keyup(function(e){return function(g){e.il(g)}}(this)))};k.Na=function(){return{dx:this.D,dy:this.F,enabled:this.enabled,maxspeed:this.mc,acc:this.Za,dec:this.Ab,ignoreInput:this.Ah}};k.Sa=function(e){this.D=e.dx;this.F=e.dy;this.enabled=e.enabled;this.mc=e.maxspeed;this.Za=e.acc;this.Ab=e.dec;this.Ah=e.ignoreInput;this.$f=this.Zf=this.Ho=this.Io=this.Oe=this.Ee=this.$j=this.Xl=!1;this.Uq=
this.Tq=this.Sq=this.Wq=-1};k.hl=function(e){var g=this.b.Id;switch(e.which){case 37:e.preventDefault();this.Tq<g&&(this.Ee=!0);break;case 38:e.preventDefault();this.Wq<g&&(this.Xl=!0);break;case 39:e.preventDefault();this.Uq<g&&(this.Oe=!0);break;case 40:e.preventDefault(),this.Sq<g&&(this.$j=!0)}};k.il=function(e){var g=this.b.Id;switch(e.which){case 37:e.preventDefault();this.Ee=!1;this.Tq=g;break;case 38:e.preventDefault();this.Xl=!1;this.Wq=g;break;case 39:e.preventDefault();this.Oe=!1;this.Uq=
g;break;case 40:e.preventDefault(),this.$j=!1,this.Sq=g}};k.Tf=function(){this.Oe=this.Ee=this.$j=this.Xl=!1};k.Ha=function(){var e=this.b.Eg(this.j),g=this.Ee||this.Zf,b=this.Oe||this.$f,a=this.Xl||this.Io,k=this.$j||this.Ho;this.Ho=this.Io=this.$f=this.Zf=!1;if(this.enabled){var c=this.b.pb(this.j);if(c&&(this.b.Fd(this.j,c),!this.b.Gr(this.j)))return;this.Ah&&(k=a=b=g=!1);0===this.Wp?b=g=!1:1===this.Wp&&(k=a=!1);2===this.Wp&&(a||k)&&(b=g=!1);g==b&&(0>this.D?(this.D+=this.Ab*e,0<this.D&&(this.D=
0)):0<this.D&&(this.D-=this.Ab*e,0>this.D&&(this.D=0)));a==k&&(0>this.F?(this.F+=this.Ab*e,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.Ab*e,0>this.F&&(this.F=0)));g&&!b&&(this.D=0<this.D?this.D-(this.Za+this.Ab)*e:this.D-this.Za*e);b&&!g&&(this.D=0>this.D?this.D+(this.Za+this.Ab)*e:this.D+this.Za*e);a&&!k&&(this.F=0<this.F?this.F-(this.Za+this.Ab)*e:this.F-this.Za*e);k&&!a&&(this.F=0>this.F?this.F+(this.Za+this.Ab)*e:this.F+this.Za*e);if(0!==this.D||0!==this.F){Math.sqrt(this.D*this.D+this.F*this.F)>
this.mc&&(c=Math.atan2(this.F,this.D),this.D=this.mc*Math.cos(c),this.F=this.mc*Math.sin(c));b=this.j.x;a=this.j.y;g=this.j.B;this.j.x+=this.D*e;this.j.J();if(c=this.b.pb(this.j))this.b.od(this.j,0>this.D?1:-1,0,Math.abs(Math.floor(this.D*e)))||(this.j.x=b),this.D=0,this.j.J(),this.b.Fd(this.j,c);this.j.y+=this.F*e;this.j.J();if(c=this.b.pb(this.j))this.b.od(this.j,0,0>this.F?1:-1,Math.abs(Math.floor(this.F*e)))||(this.j.y=a),this.F=0,this.j.J(),this.b.Fd(this.j,c);e=tb(this.D);c=tb(this.F);0===e&&
0===c||!this.j.type.da.jD||(1===this.Ap?this.j.B=Ta(90*Math.round(Na(Math.atan2(c,e))/90)):2===this.Ap?this.j.B=Ta(45*Math.round(Na(Math.atan2(c,e))/45)):3===this.Ap&&(this.j.B=Math.atan2(c,e)));this.j.J();this.j.B!=g&&(c=this.b.pb(this.j))&&(this.j.B=g,this.j.J(),this.b.Fd(this.j,c))}}};g.prototype.pp=function(){return 1E-10<Math.sqrt(this.D*this.D+this.F*this.F)};n.k=new g;p.prototype.wp=function(){this.F=this.D=0};p.prototype.up=function(e){this.mc=e;0>this.mc&&(this.mc=0)};p.prototype.Ft=function(e){switch(e){case 0:this.Zf=
!0;break;case 1:this.$f=!0;break;case 2:this.Io=!0;break;case 3:this.Ho=!0}};p.prototype.Nc=function(e){this.enabled=1===e};n.C=new p;n.H=new function(){}})();function Vc(g){this.b=g}
(function(){function g(){}function p(){}var n=Vc.prototype;n.N=function(e){this.behavior=e;this.b=e.b};n.N.prototype.K=function(){};n.M=function(e,g){this.type=e;this.behavior=e.behavior;this.j=g;this.b=e.b};var k=n.M.prototype;k.K=function(){this.xp=1===this.q[0];this.Iw=!1;this.ck=this.q[1];this.gm=this.q[2];this.bn=this.q[3];this.WA=this.q[4];this.qd=this.xp?0:3;this.$b?this.ae.reset():this.ae=new kb;this.Rg=this.j.opacity?this.j.opacity:1;this.xp&&(0===this.ck?(this.qd=1,0===this.gm&&(this.qd=
2)):(this.j.opacity=0,this.b.ma=!0))};k.Na=function(){return{fit:this.ck,wt:this.gm,fot:this.bn,s:this.qd,st:this.ae.ea,mo:this.Rg}};k.Sa=function(e){this.ck=e.fit;this.gm=e.wt;this.bn=e.fot;this.qd=e.s;this.ae.reset();this.ae.ea=e.st;this.Rg=e.mo};k.Ha=function(){this.ae.add(this.b.Eg(this.j));0===this.qd&&(this.j.opacity=this.ae.ea/this.ck*this.Rg,this.b.ma=!0,this.j.opacity>=this.Rg&&(this.j.opacity=this.Rg,this.qd=1,this.ae.reset(),this.b.trigger(Vc.prototype.k.Ts,this.j)));1===this.qd&&this.ae.ea>=
this.gm&&(this.qd=2,this.ae.reset(),this.b.trigger(Vc.prototype.k.sz,this.j));2===this.qd&&0!==this.bn&&(this.j.opacity=this.Rg-this.ae.ea/this.bn*this.Rg,this.b.ma=!0,0>this.j.opacity&&(this.j.opacity=0,this.qd=3,this.ae.reset(),this.b.trigger(Vc.prototype.k.Us,this.j),1===this.WA&&this.b.Ld(this.j)))};k.mB=function(){this.qd=0;this.ae.reset();0===this.ck?(this.qd=1,0===this.gm&&(this.qd=2)):(this.j.opacity=0,this.b.ma=!0)};g.prototype.Us=function(){return!0};g.prototype.Ts=function(){return!0};
g.prototype.sz=function(){return!0};n.k=new g;p.prototype.iA=function(){this.xp||this.Iw||(this.Rg=this.j.opacity?this.j.opacity:1,this.Iw=!0);3===this.qd&&this.mB()};n.C=new p;n.H=new function(){}})();function $c(g){this.b=g}
(function(){function g(){}function p(){}var n={},k=$c.prototype;k.kj=function(){var a,b;for(a in n)n.hasOwnProperty(a)&&(b=n[a],b.Uf.unsetReady(),b.Bl=!0)};k.N=function(a){this.behavior=a;this.b=a.b};k.N.prototype.K=function(){this.fl=[];this.xg=[]};k.M=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var e=k.M.prototype;e.K=function(){this.ib=this.q[0];3>this.ib&&(this.ib=3);this.qe=this.q[1];this.AD=this.q[2];this.Ge=this.q[3];this.Za=this.q[4];this.Ab=this.q[5];this.ym=J(this.q[6]);
this.uo=0!==this.q[7];this.Ym=0!==this.q[8];this.enabled=0!==this.q[9];this.Ii=this.hk=this.al=this.df=!1;this.Tc=0;this.Fc=this.Md=this.j.B;this.pj=this.Me=this.Le=this.ub=0;this.Sg=Math.ceil(this.b.Ka.width/this.ib);this.Sh=Math.ceil(this.b.Ka.height/this.ib);this.mb=[];this.ti=!1;this.Vm=this.Um=0;this.yk=this.Fn=!1;this.Zt=this.Yt=0;this.wu=!0;var a=this;this.$b||(this.SD=function(){a.Fn||(a.yk=!1,a.QA(),a.Ii=0<a.mb.length,a.Tc=0,a.b.trigger($c.prototype.k.dt,a.j),a.Yp())},this.RD=function(){a.Fn||
(a.yk=!1,a.cu(),a.Ii=!1,a.df=!1,a.Tc=0,a.b.trigger($c.prototype.k.dz,a.j),a.Yp())})};e.Gc=function(){this.Fn=!0;this.ti=!1};e.Na=function(){var a={cs:this.ib,cb:this.qe,ms:this.Ge,acc:this.Za,dec:this.Ab,av:this.ym,re:this.uo,de:this.Ym,im:this.df,mfs:this.al,ftmwm:this.hk,hp:this.Ii,mn:this.Tc,a:this.Md,lka:this.Fc,s:this.ub,rx:this.Le,ry:this.Me,ra:this.pj,myhc:this.Sg,myvc:this.Sh,path:this.mb,en:this.enabled,fr:this.wu,obs:[],costs:[]};this.yk?(a.dfp=!0,a.dpx=this.Yt,a.dpy=this.Zt):(a.dfp=this.ti,
a.dpx=this.Um,a.dpy=this.Vm);var b,c;b=0;for(c=this.type.fl.length;b<c;b++)a.obs.push(this.type.fl[b].wa);b=0;for(c=this.type.xg.length;b<c;b++)a.costs.push({sid:this.type.xg[b].Da.wa,cost:this.type.xg[b].fu});return a};e.Sa=function(a){this.ib=a.cs;this.qe=a.cb;this.Ge=a.ms;this.Za=a.acc;this.Ab=a.dec;this.ym=a.av;this.uo=a.re;this.Ym=a.de;this.df=a.im;this.al=a.mfs;this.hk=a.ftmwm;this.Ii=a.hp;this.Tc=a.mn;this.Md=a.a;this.Fc=a.lka;this.ub=a.s;this.Le=a.rx;this.Me=a.ry;this.pj=a.ra;this.Sg=a.myhc;
this.Sh=a.myvc;this.mb=a.path;this.enabled=a.en;this.wu=a.fr;this.ti=a.dfp;this.Um=a.dpx;this.Vm=a.dpy;I(this.type.fl);var b=a.obs,c,d,e;c=0;for(d=b.length;c<d;c++)(e=this.b.Fi(b[c]))&&this.type.fl.push(e);I(this.type.xg);a=a.costs;c=0;for(d=a.length;c<d;c++)(e=this.b.Fi(a[c].sid))&&this.type.xg.push({Da:e,fu:a[c].cost});this.vh().Uf.setDiagonals(this.Ym)};e.Od=function(){this.vh().Bl=!0};e.Ha=function(){if(this.enabled&&this.df){this.uo&&this.j.B!==this.Fc&&(this.Md=this.j.B);var a=this.b.Eg(this.j),
b,c,d,e,g,f=this.j,k=Math.min(.4*this.Ge,2*Math.abs(this.j.width)),n=Math.max(1.5*this.ub,30);this.Tc<this.mb.length?(e=this.mb[this.Tc].x,g=this.mb[this.Tc].y,d=ab(this.Le,this.Me,e,g),d<3*n*a&&(this.Tc++,this.Le=e,this.Me=g,this.Tc<this.mb.length&&(e=this.mb[this.Tc].x,g=this.mb[this.Tc].y))):(e=this.mb[this.mb.length-1].x,g=this.mb[this.mb.length-1].y);this.pj=Ua(this.Le,this.Me,e,g);d=ab(f.x,f.y,this.Le,this.Me);d<k&&this.Tc<this.mb.length&&(this.hk?this.hk=!1:k=n*a,this.Le+=Math.cos(this.pj)*
k,this.Me+=Math.sin(this.pj)*k);b=Ua(f.x,f.y,this.Le,this.Me);c=Va(this.Md,b);k=ab(f.x,f.y,this.mb[this.mb.length-1].x,this.mb[this.mb.length-1].y);n=this.Ge*this.Ge/(2*this.Ab);1<d&&(this.Md=Wa(this.Md,b,this.ym*a),.5>=Na(c)?c=this.Ge:120<=Na(c)||this.al&&0===this.Tc?(c=0,this.al=!0):(b=c/this.ym,d=ab(f.x,f.y,this.Le,this.Me),d=d/(2*Math.sin(c)),c=d*c/b,0>c&&(c=0),c>this.Ge&&(c=this.Ge)),k<n&&(c=Math.min(c,k/n*this.Ge+this.Ge/40)),this.ub+=this.Za*a,this.ub>c&&(this.ub=c));f.x+=Math.cos(this.Md)*
this.ub*a;f.y+=Math.sin(this.Md)*this.ub*a;this.uo&&(this.Fc=f.B=this.Md);f.J();this.Tc===this.mb.length&&ab(f.x,f.y,e,g)<Math.max(3*this.ub*a,10)&&(this.Ii=this.df=!1,this.ub=this.Tc=0,this.b.trigger($c.prototype.k.Xy,f))}};e.zj=function(){this.enabled&&(this.mC(),this.Yp())};e.Yp=function(){this.ti&&!this.Fn&&(this.ti=!1,this.mu(this.j.x,this.j.y,this.Um,this.Vm))};e.vh=function(){var a=""+this.ib+","+this.qe;n.hasOwnProperty(a)||(n[a]={Uf:new window.Pathfinder,cells:null,Bl:!1,Zh:[]});return n[a]};
e.mC=function(){var a=this.vh();if(!a.Uf.isReady()||a.Bl||a.Zh.length){var b,c,d,e,g,f,k,n,p,m;if(!a.Uf.isReady()||a.Bl){this.Sg=Math.ceil(this.b.Ka.width/this.ib);this.Sh=Math.ceil(this.b.Ka.height/this.ib);b=[];e=b.length=this.Sg;g=this.Sh;for(c=0;c<e;++c)for(b[c]=[],b[c].length=g,d=0;d<g;++d)b[c][d]=this.xw(c,d);a.cells=b;a.Uf.init(this.Sg,this.Sh,b,this.Ym);a.Bl=!1;I(a.Zh)}else if(a.Zh.length){f=0;for(k=a.Zh.length;f<k;++f){b=a.Zh[f];n=b[0];p=b[1];e=b[2];c=b[3];b=[];e=e-n;g=c-p;b.length=e;for(c=
0;c<e;++c)for(b[c]=[],b[c].length=g,d=0;d<g;++d)m=this.xw(n+c,p+d),b[c][d]=m,a.cells[n+c][p+d]=m;a.Uf.updateRegion(n,p,e,g,b)}I(a.Zh)}}};e.cu=function(){var a,b;a=0;for(b=this.mb.length;a<b;a++)window.freeResultNode(this.mb[a]);I(this.mb)};e.QA=function(){var a=this.vh().Uf.pathList;this.cu();var b,c,d,e;b=0;for(c=a.length;b<c;b++)d=a[b],e=window.allocResultNode(),e.x=(d.x+.5)*this.ib,e.y=(d.y+.5)*this.ib,this.mb.push(e)};var t=[],b=new xa;e.xw=function(a,e){var c,d,g,k,f,l=0;b.left=a*this.ib-this.qe;
b.top=e*this.ib-this.qe;b.right=(a+1)*this.ib+this.qe;b.bottom=(e+1)*this.ib+this.qe;if(0===this.AD){if(this.b.LE(b))return window.PF_OBSTACLE}else{this.b.uq(this.j.A,this.type.fl,b,t);c=0;for(d=t.length;c<d;++c)if(this.b.es(b,t[c]))return I(t),window.PF_OBSTACLE;t.length=0}c=0;for(d=this.type.xg.length;c<d;c++){g=this.type.xg[c].Da;f=this.type.xg[c].fu;this.b.sn(this.j.A,g,b,t);g=0;for(k=t.length;g<k;++g)this.b.es(b,t[g])&&(l+=f);I(t)}return l};e.mu=function(a,b,c,d){var e=this.vh().Uf;if(e.isReady()){this.yk=
!0;this.Yt=c;this.Zt=d;a=Math.floor(a/this.ib);b=Math.floor(b/this.ib);c=Math.floor(c/this.ib);d=Math.floor(d/this.ib);var g,f,k,n,p,m,t;if(e.at(c,d)===window.PF_OBSTACLE){g=1E6;for(n=k=f=0;n<this.Sg;n++)for(p=0;p<this.Sh;p++)e.at(n,p)!==window.PF_OBSTACLE&&(m=c-n,t=d-p,m=m*m+t*t,m<g&&(g=m,f=n,k=p));c=f;d=k}e.findPath(a,b,c,d,this.SD,this.RD)}};g.prototype.dt=function(){return!0};g.prototype.dz=function(){return!0};g.prototype.pp=function(){return this.df};g.prototype.Xy=function(){return!0};k.k=
new g;p.prototype.fy=function(a,b){this.enabled&&(this.yk||!this.vh().Uf.isReady()?(this.ti=!0,this.Um=a,this.Vm=b):this.mu(this.j.x,this.j.y,a,b))};p.prototype.jA=function(){this.Ii&&(this.df&&(this.hk=!0),this.al=!this.df,this.df=!0,this.Le=this.j.x,this.Me=this.j.y,this.pj=this.j.B)};p.prototype.wp=function(){this.df=!1};p.prototype.Nc=function(a){this.enabled=0!==a};p.prototype.up=function(a){this.Ge=a};e.sd=function(a,b,c,d){var e=Math.min(a,c)-this.qe,g=Math.min(b,d)-this.qe;a=Math.max(a,c)+
this.qe;b=Math.max(b,d)+this.qe;e=Math.max(Math.floor(e/this.ib),0);g=Math.max(Math.floor(g/this.ib),0);a=Math.min(Math.ceil(a/this.ib),this.Sg);b=Math.min(Math.ceil(b/this.ib),this.Sh);e>=a||g>=b||this.vh().Zh.push([e,g,a,b])};k.C=new p;k.H=new function(){}})();function ad(g){this.b=g}
(function(){var g=ad.prototype;g.N=function(g){this.behavior=g;this.b=g.b};g.N.prototype.K=function(){};g.M=function(g,k){this.type=g;this.behavior=g.behavior;this.j=k;this.b=g.b};var p=g.M.prototype;p.K=function(){this.Zb=null;this.fo=-1;this.mode=this.Fc=this.gs=this.cl=this.Ug=this.eo=0;var g=this;this.$b||(this.bl=function(k){g.gl(k)});this.b.Nj(this.bl)};p.Na=function(){return{uid:this.Zb?this.Zb.uid:-1,pa:this.eo,pd:this.Ug,msa:this.cl,tsa:this.gs,lka:this.Fc,m:this.mode}};p.Sa=function(g){this.fo=
g.uid;this.eo=g.pa;this.Ug=g.pd;this.cl=g.msa;this.gs=g.tsa;this.Fc=g.lka;this.mode=g.m};p.Od=function(){-1===this.fo?this.Zb=null:this.Zb=this.b.Fg(this.fo);this.fo=-1};p.gl=function(g){this.Zb==g&&(this.Zb=null)};p.Gc=function(){this.Zb=null;this.b.zw(this.bl)};p.Ha=function(){};p.zj=function(){if(this.Zb){this.Fc!==this.j.B&&(this.cl=Pa(this.cl+(this.j.B-this.Fc)));var g=this.j.x,k=this.j.y;if(3===this.mode||4===this.mode){var e=ab(this.j.x,this.j.y,this.Zb.x,this.Zb.y);if(e>this.Ug||4===this.mode&&
e<this.Ug)k=Ua(this.Zb.x,this.Zb.y,this.j.x,this.j.y),g=this.Zb.x+Math.cos(k)*this.Ug,k=this.Zb.y+Math.sin(k)*this.Ug}else g=this.Zb.x+Math.cos(this.Zb.B+this.eo)*this.Ug,k=this.Zb.y+Math.sin(this.Zb.B+this.eo)*this.Ug;this.Fc=e=Pa(this.cl+(this.Zb.B-this.gs));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===g&&this.j.y===k||(this.j.x=g,this.j.y=k,this.j.J());0!==this.mode&&2!==this.mode||this.j.B===e||(this.j.B=e,this.j.J())}};g.k=new function(){};g.C=new function(){};g.H=new function(){}})();
function bd(g){this.b=g}
(function(){function g(){}function p(){}var n=bd.prototype;n.N=function(e){this.behavior=e;this.b=e.b};n.N.prototype.K=function(){};n.M=function(e,g){this.type=e;this.behavior=e.behavior;this.j=g;this.b=e.b;this.Ll=this.$f=this.Zf=this.Ah=this.Tj=this.Zj=this.Vi=this.Wi=this.Oe=this.Ee=!1;this.lc=null;this.br=-1;this.Lg=this.Kg=0;this.ik=!1;this.yi=this.je=0;this.jn=!0;this.F=this.D=0};var k=n.M.prototype;k.zx=function(){this.Bb=Math.cos(this.Di);this.Cb=Math.sin(this.Di);this.Wg=Math.cos(this.Di-
Math.PI/2);this.Xg=Math.sin(this.Di-Math.PI/2);this.Bb=tb(this.Bb);this.Cb=tb(this.Cb);this.Wg=tb(this.Wg);this.Xg=tb(this.Xg);this.mq=this.ed;0>this.ed&&(this.Bb*=-1,this.Cb*=-1,this.ed=Math.abs(this.ed))};k.K=function(){this.mc=this.q[0];this.Za=this.q[1];this.Ab=this.q[2];this.Hk=this.q[3];this.mq=this.ed=this.q[4];this.Sn=this.q[5];this.aq=0!==this.q[6];this.Pq=this.q[7]/1E3;this.Up=1===this.q[8];this.enabled=0!==this.q[9];this.Hj=!1;this.Ij=this.b.$g(this.j);this.cr=-1;this.ei=0;this.Di=J(90);
this.zx();var e=this;this.Up&&!this.b.O&&(jQuery(document).keydown(function(g){e.hl(g)}),jQuery(document).keyup(function(g){e.il(g)}));this.$b||(this.bl=function(g){e.gl(g)});this.b.Nj(this.bl);this.j.W.isPlatformBehavior=!0};k.Na=function(){return{ii:this.Ah,lfx:this.Kg,lfy:this.Lg,lfo:this.lc?this.lc.uid:-1,am:this.je,en:this.enabled,fall:this.yi,ft:this.jn,dx:this.D,dy:this.F,ms:this.mc,acc:this.Za,dec:this.Ab,js:this.Hk,g:this.ed,g1:this.mq,mf:this.Sn,wof:this.Hj,woj:this.Ij?this.Ij.uid:-1,ga:this.Di,
edj:this.aq,cdj:this.Tj,dj:this.Zj,sus:this.Pq}};k.Sa=function(e){this.Ah=e.ii;this.Kg=e.lfx;this.Lg=e.lfy;this.br=e.lfo;this.je=e.am;this.enabled=e.en;this.yi=e.fall;this.jn=e.ft;this.D=e.dx;this.F=e.dy;this.mc=e.ms;this.Za=e.acc;this.Ab=e.dec;this.Hk=e.js;this.ed=e.g;this.mq=e.g1;this.Sn=e.mf;this.Hj=e.wof;this.cr=e.woj;this.Di=e.ga;this.aq=e.edj;this.Tj=e.cdj;this.Zj=e.dj;this.Pq=e.sus;this.Ll=this.$f=this.Zf=this.Vi=this.Wi=this.Oe=this.Ee=!1;this.ei=0;this.zx()};k.Od=function(){-1===this.br?
this.lc=null:this.lc=this.b.Fg(this.br);-1===this.cr?this.Ij=null:this.Ij=this.b.Fg(this.cr)};k.gl=function(e){this.lc==e&&(this.lc=null)};k.Gc=function(){this.lc=null;this.b.zw(this.bl)};k.hl=function(e){switch(e.which){case 38:e.preventDefault();this.Wi=!0;break;case 37:e.preventDefault();this.Ee=!0;break;case 39:e.preventDefault(),this.Oe=!0}};k.il=function(e){switch(e.which){case 38:e.preventDefault();this.Vi=this.Wi=!1;break;case 37:e.preventDefault();this.Ee=!1;break;case 39:e.preventDefault(),
this.Oe=!1}};k.Tf=function(){this.Wi=this.Oe=this.Ee=!1};k.sd=function(){return 0>this.ed?-1:1};k.$u=function(){var e=null,g=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Bb;this.j.y+=this.Cb;this.j.J();if(this.lc&&this.b.Lc(this.j,this.lc)&&(!this.b.ws(this.lc.type,xc)||this.lc.W.solidEnabled))return this.j.x=b,this.j.y=a,this.j.J(),this.lc;(e=this.b.pb(this.j))||0!==this.yi||(g=this.b.$g(this.j,!0));this.j.x=b;this.j.y=a;this.j.J();if(e){if(this.b.Lc(this.j,e))return null;this.ik=!1;return e}if(g&&
g.length){a=e=0;for(b=g.length;e<b;e++)g[a]=g[e],this.b.Lc(this.j,g[e])||a++;if(1<=a)return this.ik=!0,g[0]}return null};k.Ha=function(){};k.qw=function(){var e=this.b.Eg(this.j),g,b,a,k,c,d,h,n,f;this.Wi||this.Ll||(this.Vi=!1);var l=this.Ee||this.Zf;a=this.Oe||this.$f;var p=(k=this.Wi||this.Ll)&&!this.Vi;this.Ll=this.$f=this.Zf=!1;if(this.enabled){this.Ah&&(p=k=a=l=!1);k||(this.ei=0);n=this.lc;f=!1;this.jn&&((this.b.pb(this.j)||this.b.$g(this.j))&&this.b.od(this.j,-this.Bb,-this.Cb,4,!0),this.jn=
!1);!n||0!==this.F||n.y===this.Lg&&n.x===this.Kg||(g=n.x-this.Kg,b=n.y-this.Lg,this.j.x+=g,this.j.y+=b,this.j.J(),this.Kg=n.x,this.Lg=n.y,f=!0,this.b.pb(this.j)&&this.b.od(this.j,-g,-b,2.5*Math.sqrt(g*g+b*b)));var z=this.$u();if(b=this.b.pb(this.j))if(c=Math.abs(this.j.width),d=Math.abs(this.j.height),this.j.W.inputPredicted)this.b.od(this.j,-this.Bb,-this.Cb,10,!1);else if(this.b.Fr(this.j,-this.Bb,-this.Cb,d/8))this.b.Fd(this.j,b);else if(this.b.Fr(this.j,this.Wg,this.Xg,c/2))this.b.Fd(this.j,b);
else if(this.b.Fr(this.j,this.Bb,this.Cb,d/2))this.b.Fd(this.j,b);else if(this.b.Gr(this.j,Math.max(c,d)/2))this.b.Fd(this.j,b);else return;z?(this.Tj=this.Zj=!1,0<this.F&&(this.Hj||(this.b.qo(this.j,-this.Bb,-this.Cb,z),this.Hj=!0),this.F=0),n!=z)?(this.lc=z,this.Kg=z.x,this.Lg=z.y,this.b.Fd(this.j,z)):f&&(b=this.b.pb(this.j))&&(this.b.Fd(this.j,b),0!==g&&(0<g?this.b.od(this.j,-this.Wg,-this.Xg):this.b.od(this.j,this.Wg,this.Xg)),this.b.od(this.j,-this.Bb,-this.Cb)):k||(this.Tj=!0);if(z&&p||!z&&
this.aq&&k&&this.Tj&&!this.Zj)n=this.j.x,f=this.j.y,this.j.x-=this.Bb,this.j.y-=this.Cb,this.j.J(),this.b.pb(this.j)?p=!1:(this.ei=this.Pq,this.b.trigger(bd.prototype.k.hz,this.j),this.je=2,this.F=-this.Hk,p=!0,z?this.Vi=!0:this.Zj=!0),this.j.x=n,this.j.y=f,this.j.J();z||(k&&0<this.ei?(this.F=-this.Hk,this.ei-=e):(this.lc=null,this.F+=this.ed*e,this.F>this.Sn&&(this.F=this.Sn)),p&&(this.Vi=!0));this.Hj=!!z;l==a&&(0>this.D?(this.D+=this.Ab*e,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.Ab*e,0>this.D&&
(this.D=0)));l&&!a&&(this.D=0<this.D?this.D-(this.Za+this.Ab)*e:this.D-this.Za*e);a&&!l&&(this.D=0>this.D?this.D+(this.Za+this.Ab)*e:this.D+this.Za*e);this.D>this.mc?this.D=this.mc:this.D<-this.mc&&(this.D=-this.mc);l=!1;0!==this.D&&(n=this.j.x,f=this.j.y,g=this.D*e*this.Wg,b=this.D*e*this.Xg,this.j.x+=this.Wg*(1<this.D?1:-1)-this.Bb,this.j.y+=this.Xg*(1<this.D?1:-1)-this.Cb,this.j.J(),k=!1,c=this.b.pb(this.j),this.j.x=n+g,this.j.y=f+b,this.j.J(),a=this.b.pb(this.j),!a&&z&&(a=this.b.$g(this.j))&&
(this.j.x=n,this.j.y=f,this.j.J(),this.b.Lc(this.j,a)?(a=null,k=!1):k=!0,this.j.x=n+g,this.j.y=f+b,this.j.J()),a?(g=Math.abs(this.D*e)+2,c||!this.b.od(this.j,-this.Bb,-this.Cb,g,k,a))?(this.b.Fd(this.j,a),g=Math.max(Math.abs(this.D*e*2.5),30),this.b.od(this.j,this.Wg*(0>this.D?1:-1),this.Xg*(0>this.D?1:-1),g,!1)?!z||k||this.ik||(n=this.j.x,f=this.j.y,this.j.x+=this.Bb,this.j.y+=this.Cb,this.b.pb(this.j)?this.b.od(this.j,-this.Bb,-this.Cb,3,!1)||(this.j.x=n,this.j.y=f,this.j.J()):(this.j.x=n,this.j.y=
f,this.j.J())):(this.j.x=n,this.j.y=f,this.j.J()),k||(this.D=0)):!c&&!p&&Math.abs(this.F)<Math.abs(this.Hk/4)&&(this.F=0,z||(l=!0)):(n=this.$u(),z&&!n?(b=Math.ceil(Math.abs(this.D*e))+2,n=this.j.x,f=this.j.y,this.j.x+=this.Bb*b,this.j.y+=this.Cb*b,this.j.J(),this.b.pb(this.j)||this.b.$g(this.j)?this.b.od(this.j,-this.Bb,-this.Cb,b+2,!0):(this.j.x=n,this.j.y=f,this.j.J())):n&&(!z&&this.ik&&(this.lc=n,this.Kg=n.x,this.Lg=n.y,this.F=0,l=!0),0===this.F&&this.b.qo(this.j,-this.Bb,-this.Cb,n))));if(0!==
this.F){n=this.j.x;f=this.j.y;this.j.x+=this.F*e*this.Bb;this.j.y+=this.F*e*this.Cb;g=this.j.x;a=this.j.y;this.j.J();b=this.b.pb(this.j);k=!1;if(!b&&0<this.F&&!z){if((k=0<this.yi?null:this.b.$g(this.j,!0))&&k.length){if(this.Ij){this.j.x=n;this.j.y=f;this.j.J();h=c=0;for(d=k.length;c<d;c++)k[h]=k[c],this.b.Lc(this.j,k[c])||h++;k.length=h;this.j.x=g;this.j.y=a;this.j.J()}1<=k.length&&(b=k[0])}k=!!b}b&&(this.b.Fd(this.j,b),this.ei=0,g=k?Math.abs(this.F*e*2.5+10):Math.max(Math.abs(this.F*e*2.5+10),30),
this.b.od(this.j,this.Bb*(0>this.F?1:-1),this.Cb*(0>this.F?1:-1),g,k,b)?(this.lc=b,this.Kg=b.x,this.Lg=b.y,(this.ik=k)&&(l=!0),this.F=0):(this.j.x=n,this.j.y=f,this.j.J(),this.Hj=!0,k||(this.F=0)))}3!==this.je&&0<this.F&&!z&&(this.b.trigger(bd.prototype.k.ez,this.j),this.je=3);(z||l)&&0<=this.F&&(3===this.je||l||p&&0===this.F?(this.b.trigger(bd.prototype.k.jz,this.j),this.je=0===this.D&&0===this.F?0:1):(0!==this.je&&0===this.D&&0===this.F&&(this.b.trigger(bd.prototype.k.qz,this.j),this.je=0),1===
this.je||0===this.D&&0===this.F||p||(this.b.trigger(bd.prototype.k.mz,this.j),this.je=1)));0<this.yi&&this.yi--;this.Ij=this.b.$g(this.j)}};g.prototype.pp=function(){return 0!==this.D||0!==this.F};g.prototype.zy=function(){return 0>this.F};g.prototype.wy=function(){return 0<this.F};g.prototype.hz=function(){return!0};g.prototype.ez=function(){return!0};g.prototype.qz=function(){return!0};g.prototype.mz=function(){return!0};g.prototype.jz=function(){return!0};n.k=new g;p.prototype.up=function(e){this.mc=
e;0>this.mc&&(this.mc=0)};p.prototype.Ft=function(e){switch(e){case 0:this.Zf=!0;break;case 1:this.$f=!0;break;case 2:this.Ll=!0}};p.prototype.Nc=function(e){this.enabled!==(1===e)&&(this.enabled=1===e,this.enabled||(this.lc=null))};n.C=new p;n.H=new function(){}})();function cd(g){this.b=g}
(function(){var g=cd.prototype;g.N=function(e){this.behavior=e;this.b=e.b};g.N.prototype.K=function(){};g.M=function(e,b){this.type=e;this.behavior=e.behavior;this.j=b;this.b=e.b;this.Nb=0};var p=g.M.prototype,n=2*Math.PI,k=Math.PI/2,e=3*Math.PI/2;p.K=function(){this.xc=1===this.q[0];this.fj=this.q[1];this.Hs=this.q[2];this.Vf=this.q[3];this.Vf+=Math.random()*this.q[4];0===this.Vf?this.Nb=0:(this.Nb=this.q[5]/this.Vf*n,this.Nb+=Math.random()*this.q[6]/this.Vf*n);this.Sc=this.q[7];this.Sc+=Math.random()*
this.q[8];this.Al=this.Ch=this.Ea=0;5===this.fj&&(this.Sc=J(this.Sc));this.init()};p.Na=function(){return{i:this.Nb,a:this.xc,mv:this.fj,w:this.Hs,p:this.Vf,mag:this.Sc,iv:this.Ea,iv2:this.Ch,r:this.Al,lkv:this.jd,lkv2:this.Jk}};p.Sa=function(e){this.Nb=e.i;this.xc=e.a;this.fj=e.mv;this.Hs=e.w;this.Vf=e.p;this.Sc=e.mag;this.Ea=e.iv;this.Ch=e.iv2||0;this.Al=e.r;this.jd=e.lkv;this.Jk=e.lkv2||0};p.init=function(){switch(this.fj){case 0:this.Ea=this.j.x;break;case 1:this.Ea=this.j.y;break;case 2:this.Ea=
this.j.width;this.Al=this.j.height/this.j.width;break;case 3:this.Ea=this.j.width;break;case 4:this.Ea=this.j.height;break;case 5:this.Ea=this.j.B;break;case 6:this.Ea=this.j.opacity;break;case 7:this.Ea=0;break;case 8:this.Ea=this.j.x,this.Ch=this.j.y}this.jd=this.Ea;this.Jk=this.Ch};p.gg=function(g){g=g%n;switch(this.Hs){case 0:return Math.sin(g);case 1:return g<=k?g/k:g<=e?1-2*(g-k)/Math.PI:(g-e)/k-1;case 2:return 2*g/n-1;case 3:return-2*g/n+1;case 4:return g<Math.PI?-1:1}return 0};p.Ha=function(){var e=
this.b.Eg(this.j);this.xc&&0!==e&&(0===this.Vf?this.Nb=0:(this.Nb+=e/this.Vf*n,this.Nb=this.Nb%n),this.QE())};p.QE=function(){switch(this.fj){case 0:this.j.x!==this.jd&&(this.Ea+=this.j.x-this.jd);this.j.x=this.Ea+this.gg(this.Nb)*this.Sc;this.jd=this.j.x;break;case 1:this.j.y!==this.jd&&(this.Ea+=this.j.y-this.jd);this.j.y=this.Ea+this.gg(this.Nb)*this.Sc;this.jd=this.j.y;break;case 2:this.j.width=this.Ea+this.gg(this.Nb)*this.Sc;this.j.height=this.j.width*this.Al;break;case 3:this.j.width=this.Ea+
this.gg(this.Nb)*this.Sc;break;case 4:this.j.height=this.Ea+this.gg(this.Nb)*this.Sc;break;case 5:this.j.B!==this.jd&&(this.Ea=Pa(this.Ea+(this.j.B-this.jd)));this.j.B=Pa(this.Ea+this.gg(this.Nb)*this.Sc);this.jd=this.j.B;break;case 6:this.j.opacity=this.Ea+this.gg(this.Nb)*this.Sc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.jd&&(this.Ea+=this.j.x-this.jd),this.j.y!==this.Jk&&(this.Ch+=this.j.y-this.Jk),this.j.x=this.Ea+Math.cos(this.j.B)*
this.gg(this.Nb)*this.Sc,this.j.y=this.Ch+Math.sin(this.j.B)*this.gg(this.Nb)*this.Sc,this.jd=this.j.x,this.Jk=this.j.y}this.j.J()};p.bw=function(e,b){switch(this.fj){case 2:this.Ea*=b.width/e.width;this.Al=b.height/b.width;break;case 3:this.Ea*=b.width/e.width;break;case 4:this.Ea*=b.height/e.height}};g.k=new function(){};g.C=new function(){};g.H=new function(){}})();function dd(g){this.b=g;this.Xr=this.Go=this.Kl=this.Wr=0}
(function(){function g(){}var p=dd.prototype;p.N=function(g){this.behavior=g;this.b=g.b};p.N.prototype.K=function(){};p.M=function(g,e){this.type=g;this.behavior=g.behavior;this.j=e;this.b=g.b};var n=p.M.prototype;n.K=function(){this.enabled=0!==this.q[0]};n.Na=function(){return{smg:this.behavior.Wr,ss:this.behavior.Kl,se:this.behavior.Go,smd:this.behavior.Xr}};n.Sa=function(g){this.behavior.Wr=g.smg;this.behavior.Kl=g.ss;this.behavior.Go=g.se;this.behavior.Xr=g.smd};n.Ha=function(){};n.zj=function(){if(this.enabled){var g=
this.behavior.Th.fe(),e=0,n=0,b,a,p,c=0;b=0;for(a=g.length;b<a;b++){a:{p=g[b];for(var d=void 0,h=void 0,u=void 0,d=0,h=p.Z.length;d<h;++d)if(u=p.Z[d],u.behavior instanceof dd){p=u;break a}p=null}p&&p.enabled&&(e+=g[b].x,n+=g[b].y,++c)}g=this.j.A.Qb;a=this.b.Ob.ea;p=b=0;a>=this.behavior.Kl&&a<this.behavior.Go&&(b=this.behavior.Wr*Math.min(this.b.dh,1),0===this.behavior.Xr&&(b*=1-(a-this.behavior.Kl)/(this.behavior.Go-this.behavior.Kl)),a=Math.random()*Math.PI*2,p=Math.random()*b,b=Math.cos(a)*p,p*=
Math.sin(a));g.Sr(e/c+b);g.Tr(n/c+p)}};g.prototype.Nc=function(g){this.enabled=0!==g};p.C=new g})();function xc(g){this.b=g}(function(){function g(){}var p=xc.prototype;p.N=function(g){this.behavior=g;this.b=g.b};p.N.prototype.K=function(){};p.M=function(g,e){this.type=g;this.behavior=g.behavior;this.j=e;this.b=g.b};var n=p.M.prototype;n.K=function(){this.j.W.solidEnabled=0!==this.q[0]};n.Ha=function(){};p.k=new function(){};g.prototype.Nc=function(g){this.j.W.solidEnabled=!!g};p.C=new g})();
function wc(){return[Pc,T,Ic,Jc,Hc,Lc,Kc,Mc,Qc,Cc,Bc,Gc,zc,Ac,Nc,yc,Fc,Dc,Ec,Y,Oc,Rc,xc,Sc,bd,dd,Uc,Vc,$c,ad,Tc,cd,R.prototype.k.Zs,R.prototype.C.Sz,T.prototype.C.uf,R.prototype.C.Vz,Y.prototype.C.Zz,zc.prototype.k.Fy,zc.prototype.C.kA,zc.prototype.C.Play,R.prototype.k.ey,Fc.prototype.C.Oz,Kc.prototype.k.Xx,Kc.prototype.C.Xz,T.prototype.k.Ps,T.prototype.C.hA,Lc.prototype.k.ut,R.prototype.C.iy,Ac.prototype.k.kg,Ic.prototype.k.mp,R.prototype.C.Wz,Ic.prototype.H.Text,R.prototype.C.tA,Fc.prototype.k.Dy,
T.prototype.C.Kz,Y.prototype.k.aA,Hc.prototype.C.rm,Y.prototype.H.dA,R.prototype.H.zD,Y.prototype.H.cA,Y.prototype.H.fA,Ec.prototype.H.Gz,R.prototype.C.hy,R.prototype.k.Sx,Y.prototype.H.Ky,Y.prototype.k.jt,Gc.prototype.C.np,Hc.prototype.C.np,Y.prototype.C.eA,R.prototype.C.Zx,R.prototype.k.Dz,Gc.prototype.C.vp,R.prototype.H.qD,Hc.prototype.C.vp,Hc.prototype.C.Bt,Y.prototype.H.My,Y.prototype.H.Ny,Y.prototype.H.Ly,Gc.prototype.k.Yx,R.prototype.k.Jy,Y.prototype.C.$z,R.prototype.k.Wx,R.prototype.H.au,
Y.prototype.k.lt,Hc.prototype.k.yz,bd.prototype.k.pp,T.prototype.C.Jz,Dc.prototype.k.Ay,T.prototype.C.Et,bd.prototype.C.Ft,bd.prototype.k.wy,bd.prototype.k.zy,T.prototype.k.oy,T.prototype.k.Hy,Hc.prototype.k.mp,T.prototype.k.Zy,T.prototype.C.np,zc.prototype.C.Az,T.prototype.C.Lz,T.prototype.k.Cy,Lc.prototype.k.Vs,Kc.prototype.k.Vx,Kc.prototype.H.Bz,Lc.prototype.H.Mj,Kc.prototype.H.Cz,Lc.prototype.H.gh,Kc.prototype.C.by,Dc.prototype.k.Ws,Lc.prototype.k.Gy,R.prototype.C.Lx,Lc.prototype.k.tt,Ac.prototype.k.uy,
Uc.prototype.C.Nc,bd.prototype.C.Nc,Ac.prototype.C.Nc,Fc.prototype.k.At,R.prototype.k.Ls,Fc.prototype.k.qp,Kc.prototype.C.Uz,Fc.prototype.H.Mj,Fc.prototype.H.gh,T.prototype.k.fh,T.prototype.k.Ey,Kc.prototype.C.Oy,R.prototype.C.Rz,T.prototype.k.Tx,Hc.prototype.C.Nx,$c.prototype.C.fy,T.prototype.H.Mj,T.prototype.H.gh,$c.prototype.k.dt,$c.prototype.C.jA,R.prototype.k.cy,Jc.prototype.C.vp,Jc.prototype.H.gh,Fc.prototype.k.ty,Vc.prototype.C.iA,Vc.prototype.k.Us,T.prototype.C.gA,Qc.prototype.k.tf,Fc.prototype.C.Nz,
R.prototype.k.sA,Y.prototype.H.Sy,Y.prototype.C.Ix,Y.prototype.C.lA,Y.prototype.C.mA,Y.prototype.C.bA,Y.prototype.k.qt,Y.prototype.C.Yz,Y.prototype.k.nt,Y.prototype.k.yy,R.prototype.C.Pz,T.prototype.C.Bt,Y.prototype.C.Ox,Pc.prototype.C.Kx,R.prototype.k.xy,Y.prototype.H.vz,Y.prototype.H.xz,T.prototype.k.lg,Y.prototype.k.Rs,Y.prototype.C.Mz,Y.prototype.k.et,dd.prototype.C.Nc,Y.prototype.H.uz,Y.prototype.k.gt,Uc.prototype.C.wp,Y.prototype.k.mt,Y.prototype.k.ot,Cc.prototype.k.By,Cc.prototype.C.uf,Kc.prototype.H.oA,
Kc.prototype.H.pA,Y.prototype.H.wz,Ec.prototype.H.Fz,R.prototype.H.random,Y.prototype.C.Hz,Kc.prototype.H.qA,Y.prototype.H.ky,Y.prototype.k.ht,T.prototype.C.Os,Y.prototype.H.Qy,T.prototype.H.lp,Y.prototype.k.pt,Hc.prototype.C.Dt,Y.prototype.H.jy,Hc.prototype.H.gh,Y.prototype.H.gy,Y.prototype.H.Ry,Nc.prototype.C.EE,R.prototype.C.Ez,Kc.prototype.H.nA,R.prototype.C.Py,zc.prototype.C.zz,Ic.prototype.C.rm,yc.prototype.k.om,R.prototype.C.Qz,R.prototype.H.qE,T.prototype.C.Iz,xc.prototype.C.Nc,yc.prototype.C.CallFunction,
Hc.prototype.C.uf,T.prototype.C.Jx,T.prototype.C.Ct,T.prototype.k.Ss,Fc.prototype.k.sp,T.prototype.C.Dt,Ic.prototype.C.qm,Hc.prototype.C.Ct,R.prototype.H.find,R.prototype.H.NE,bd.prototype.C.up,Oc.prototype.C.Tz,R.prototype.H.Pk,R.prototype.H["int"],Oc.prototype.k.Ux,Jc.prototype.C.uf,Vc.prototype.k.Ts]};