-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2runtime.js
579 lines (579 loc) · 277 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ta,ua,va,wa,xa,ya,za,C,Aa,Ca,Da,Ea,Fa,F,Ha,Ia,Ka,La,Ma,Na,Oa,Qa,Ra,Sa,Ta,Ua,Va,Xa,Ya,Za,$a,ab,bb,db,eb,fb,gb,hb,ib,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic={},jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,d,g,v){this.set(a,d,g,v)}function k(){this.ec=this.cc=this.gc=this.fc=this.oc=this.nc=this.Yb=this.Xb=0}function b(a,d,g,v){a<d?g<v?(w=a<g?a:g,n=d>v?d:v):(w=a<v?a:v,n=d>g?d:g):g<v?(w=d<g?d:g,n=a>v?a:v):(w=d<v?d:v,n=a>g?a:g)}function h(){this.items=this.Kc=null;this.Ij=0;D&&(this.Kc=new Set);this.Ki=[];this.zf=!0}function e(a){B[G++]=a}function p(){this.Z=this.Di=this.y=this.bj=0}function c(a){this.qi=[];this.ys=this.As=this.Bs=this.zs=0;this.qk(a)}function a(a,d){this.po=
a;this.oo=d;this.cells={}}function q(a,d){this.po=a;this.oo=d;this.cells={}}function t(a,d,g){var v;return x.length?(v=x.pop(),v.gp=a,v.x=d,v.y=g,v):new ca(a,d,g)}function g(a,d,g){this.gp=a;this.x=d;this.y=g;this.Jb=new da}function d(a,d,g){var v;return A.length?(v=A.pop(),v.gp=a,v.x=d,v.y=g,v):new ea(a,d,g)}function l(a,d,g){this.gp=a;this.x=d;this.y=g;this.Jb=[];this.Xh=!0;this.qe=new da;this.Zi=!1}function m(a,d){return a.Vd-d.Vd}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};ja=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,d){return a>d?a:d};oa=function(a,d){return a<d?a:d};pa=Math.PI;qa=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var d=
a|0;return d===a?d:d+1};ua=function(a,d,g,v,l,m,c,b){var e,q,t,n;a<g?(q=a,e=g):(q=g,e=a);l<c?(n=l,t=c):(n=c,t=l);if(e<n||q>t)return!1;d<v?(q=d,e=v):(q=v,e=d);m<b?(n=m,t=b):(n=b,t=m);if(e<n||q>t)return!1;e=l-a+c-g;q=m-d+b-v;a=g-a;d=v-d;l=c-l;m=b-m;b=ma(d*l-m*a);return ma(l*q-m*e)>b?!1:ma(a*q-d*e)<=b};f.prototype.set=function(a,d,g,l){this.left=a;this.top=d;this.right=g;this.bottom=l};f.prototype.ej=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=
function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};f.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)};f.prototype.md=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};f.prototype.ij=function(a){return this.left===
a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=f;k.prototype.an=function(a){this.Xb=a.left;this.Yb=a.top;this.nc=a.right;this.oc=a.top;this.fc=a.right;this.gc=a.bottom;this.cc=a.left;this.ec=a.bottom};k.prototype.tv=function(a,d){if(0===d)this.an(a);else{var g=Math.sin(d),l=Math.cos(d),m=a.left*g,c=a.top*g,b=a.right*g,g=a.bottom*g,e=a.left*l,q=a.top*l,t=a.right*l,l=a.bottom*l;this.Xb=e-c;this.Yb=q+m;this.nc=t-c;this.oc=q+b;this.fc=t-g;this.gc=l+b;this.cc=e-g;this.ec=l+
m}};k.prototype.offset=function(a,d){this.Xb+=a;this.Yb+=d;this.nc+=a;this.oc+=d;this.fc+=a;this.gc+=d;this.cc+=a;this.ec+=d;return this};var w=0,n=0;k.prototype.Ds=function(a){b(this.Xb,this.nc,this.fc,this.cc);a.left=w;a.right=n;b(this.Yb,this.oc,this.gc,this.ec);a.top=w;a.bottom=n};k.prototype.md=function(a,d){var g=this.Xb,l=this.Yb,m=this.nc-g,c=this.oc-l,b=this.fc-g,e=this.gc-l,q=a-g,t=d-l,n=m*m+c*c,r=m*b+c*e,c=m*q+c*t,h=b*b+e*e,w=b*q+e*t,k=1/(n*h-r*r),m=(h*c-r*w)*k,n=(n*w-r*c)*k;if(0<=m&&0<
n&&1>m+n)return!0;m=this.cc-g;c=this.ec-l;n=m*m+c*c;r=m*b+c*e;c=m*q+c*t;k=1/(n*h-r*r);m=(h*c-r*w)*k;n=(n*w-r*c)*k;return 0<=m&&0<n&&1>m+n};wa=k;xa=function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g]);return a};ya=function(a,d){var g,l;d=qa(d);if(!(0>d||d>=a.length)){g=d;for(l=a.length-1;g<l;g++)a[g]=a[g+1];za(a,l)}};za=function(a,d){a.length=d};C=function(a){za(a,0)};Aa=function(a,d){C(a);var g,l;g=0;for(l=d.length;g<l;++g)a[g]=d[g]};Ca=function(a,d){a.push.apply(a,d)};Da=function(a,d){var g,
l;g=0;for(l=a.length;g<l;++g)if(a[g]===d)return g;return-1};Ea=function(a,d){var g=Da(a,d);-1!==g&&ya(a,g)};Fa=function(a,d,g){return a<d?d:a>g?g:a};F=function(a){return a/(180/pa)};Ha=function(a){return 180/pa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};La=function(a){return Ia(Ha(a))};Ma=function(a){return Ka(F(a))};Na=function(a,d,g,l){return Math.atan2(l-d,g-a)};Oa=function(a,d){if(a===d)return 0;var g=Math.sin(a),l=Math.cos(a),m=Math.sin(d),
c=Math.cos(d),g=g*m+l*c;return 1<=g?0:-1>=g?pa:Math.acos(g)};Qa=function(a,d,g){var l=Math.sin(a),m=Math.cos(a),c=Math.sin(d),b=Math.cos(d);return Math.acos(l*c+m*b)>g?0<m*c-l*b?Ka(a+g):Ka(a-g):Ka(d)};Ra=function(a,d){var g=Math.sin(a),l=Math.cos(a),m=Math.sin(d),c=Math.cos(d);return 0>=l*m-g*c};Sa=function(a,d,g,l,m,c){if(0===g)return c?a:d;var b=Math.sin(g);g=Math.cos(g);a-=l;d-=m;var e=a*b;a=a*g-d*b;d=d*g+e;return c?a+l:d+m};Ta=function(a,d,g,l){a=g-a;d=l-d;return Math.sqrt(a*a+d*d)};Ua=function(a,
d){return!a!==!d};Va=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Xa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var N=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-N};var r=!1,R=r=!1,K=!1;"undefined"!==
typeof window&&(r=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),r=!r&&/safari/i.test(navigator.userAgent),R=/(iphone|ipod|ipad)/i.test(navigator.userAgent),K=window.c2ejecta);var D=!r&&!K&&!R&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(a){return this.Qe()?!1:D?this.Kc.has(a):this.items&&this.items.hasOwnProperty(a)};h.prototype.add=function(a){if(D)this.Kc.has(a)||(this.Kc.add(a),this.zf=!1);else{var d=a.toString(),
g=this.items;g?g.hasOwnProperty(d)||(g[d]=a,this.Ij++,this.zf=!1):(this.items={},this.items[d]=a,this.Ij=1,this.zf=!1)}};h.prototype.remove=function(a){if(!this.Qe())if(D)this.Kc.has(a)&&(this.Kc["delete"](a),this.zf=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Ij--,this.zf=!1)}};h.prototype.clear=function(){this.Qe()||(D?this.Kc.clear():(this.items=null,this.Ij=0),C(this.Ki),this.zf=!0)};h.prototype.Qe=function(){return 0===this.count()};h.prototype.count=
function(){return D?this.Kc.size:this.Ij};var B=null,G=0;h.prototype.eD=function(){if(!this.zf){if(D)C(this.Ki),B=this.Ki,G=0,this.Kc.forEach(e),B=null,G=0;else{var a=this.Ki;C(a);var d,g=0,l=this.items;if(l)for(d in l)l.hasOwnProperty(d)&&(a[g++]=l[d])}this.zf=!0}};h.prototype.dg=function(){this.eD();return this.Ki};da=h;new da;Za=function(a,d){D?$a(a,d.Kc):ab(a,d.dg())};$a=function(a,d){var g,l,m,c;l=g=0;for(m=a.length;g<m;++g)c=a[g],d.has(c)||(a[l++]=c);za(a,l)};ab=function(a,d){var g,l,m,c;l=
g=0;for(m=a.length;g<m;++g)c=a[g],-1===Da(d,c)&&(a[l++]=c);za(a,l)};p.prototype.add=function(a){this.y=a-this.bj;this.Di=this.Z+this.y;this.bj=this.Di-this.Z-this.y;this.Z=this.Di};p.prototype.reset=function(){this.Z=this.Di=this.y=this.bj=0};bb=p;db=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.qk=function(a){this.Wu=a;this.Qm=a.length/2;this.qi.length=a.length;this.jo=this.ko=-1;this.Hs=0};c.prototype.CB=function(){return!this.Wu.length};c.prototype.Nb=function(){for(var a=
this.qi,d=a[0],g=d,l=a[1],m=l,c,b,e=1,q=this.Qm;e<q;++e)b=2*e,c=a[b],b=a[b+1],c<d&&(d=c),c>g&&(g=c),b<l&&(l=b),b>m&&(m=b);this.zs=d;this.As=g;this.Bs=l;this.ys=m};c.prototype.an=function(a,d,g){this.qi.length=8;this.Qm=4;var l=this.qi;l[0]=a.left-d;l[1]=a.top-g;l[2]=a.right-d;l[3]=a.top-g;l[4]=a.right-d;l[5]=a.bottom-g;l[6]=a.left-d;l[7]=a.bottom-g;this.ko=a.right-a.left;this.jo=a.bottom-a.top;this.Nb()};c.prototype.bz=function(a,d,g){if(this.ko!==a||this.jo!==d||this.Hs!==g){this.ko=a;this.jo=d;
this.Hs=g;var l,m,c,b,e,q=0,t=1,n=this.Wu,r=this.qi;0!==g&&(q=Math.sin(g),t=Math.cos(g));g=0;for(c=this.Qm;g<c;g++)l=2*g,m=l+1,b=n[l]*a,e=n[m]*d,r[l]=b*t-e*q,r[m]=e*t+b*q;this.Nb()}};c.prototype.md=function(a,d){var g=this.qi;if(a===g[0]&&d===g[1])return!0;var l,m,c,b=this.Qm,e=this.zs-110,q=this.Bs-101,t=this.As+131,n=this.ys+120,r,h,w=0,k=0;for(l=0;l<b;l++)m=2*l,c=(l+1)%b*2,r=g[m],m=g[m+1],h=g[c],c=g[c+1],ua(e,q,a,d,r,m,h,c)&&w++,ua(t,n,a,d,r,m,h,c)&&k++;return 1===w%2||1===k%2};eb=c;a.prototype.Kf=
function(a,d,g){var l;l=this.cells[a];return l?(l=l[d])?l:g?(l=t(this,a,d),this.cells[a][d]=l):null:g?(l=t(this,a,d),this.cells[a]={},this.cells[a][d]=l):null};a.prototype.Cc=function(a){return qa(a/this.po)};a.prototype.Dc=function(a){return qa(a/this.oo)};a.prototype.update=function(a,d,g){var l,m,c,b,e;if(d)for(l=d.left,m=d.right;l<=m;++l)for(c=d.top,b=d.bottom;c<=b;++c)if(!g||!g.md(l,c))if(e=this.Kf(l,c,!1))e.remove(a),e.Qe()&&(e.Jb.clear(),1E3>x.length&&x.push(e),this.cells[l][c]=null);if(g)for(l=
g.left,m=g.right;l<=m;++l)for(c=g.top,b=g.bottom;c<=b;++c)d&&d.md(l,c)||this.Kf(l,c,!0).op(a)};a.prototype.Yu=function(a,d){var g,l,m,c,b,e;g=this.Cc(a.left);m=this.Dc(a.top);l=this.Cc(a.right);for(b=this.Dc(a.bottom);g<=l;++g)for(c=m;c<=b;++c)(e=this.Kf(g,c,!1))&&e.dump(d)};fb=a;q.prototype.Kf=function(a,g,l){var m;m=this.cells[a];return m?(m=m[g])?m:l?(m=d(this,a,g),this.cells[a][g]=m):null:l?(m=d(this,a,g),this.cells[a]={},this.cells[a][g]=m):null};q.prototype.Cc=function(a){return qa(a/this.po)};
q.prototype.Dc=function(a){return qa(a/this.oo)};q.prototype.update=function(a,d,g){var l,m,c,b,e;if(d)for(l=d.left,m=d.right;l<=m;++l)for(c=d.top,b=d.bottom;c<=b;++c)if(!g||!g.md(l,c))if(e=this.Kf(l,c,!1))e.remove(a),e.Qe()&&(e.reset(),1E3>A.length&&A.push(e),this.cells[l][c]=null);if(g)for(l=g.left,m=g.right;l<=m;++l)for(c=g.top,b=g.bottom;c<=b;++c)d&&d.md(l,c)||this.Kf(l,c,!0).op(a)};q.prototype.Yu=function(a,d,g,l,m){var c,b;a=this.Cc(a);d=this.Dc(d);g=this.Cc(g);for(c=this.Dc(l);a<=g;++a)for(l=
d;l<=c;++l)(b=this.Kf(a,l,!1))&&b.dump(m)};q.prototype.NB=function(a){var d,g,l,m,c;d=a.left;l=a.top;g=a.right;for(m=a.bottom;d<=g;++d)for(a=l;a<=m;++a)if(c=this.Kf(d,a,!1))c.Xh=!1};gb=q;var x=[];g.prototype.Qe=function(){return this.Jb.Qe()};g.prototype.op=function(a){this.Jb.add(a)};g.prototype.remove=function(a){this.Jb.remove(a)};g.prototype.dump=function(a){Ca(a,this.Jb.dg())};ca=g;var A=[];l.prototype.Qe=function(){if(!this.Jb.length)return!0;if(this.Jb.length>this.qe.count())return!1;this.Ro();
return!0};l.prototype.op=function(a){this.qe.contains(a)?(this.qe.remove(a),this.qe.Qe()&&(this.Zi=!1)):this.Jb.length?(this.Jb[this.Jb.length-1].ie()>a.ie()&&(this.Xh=!1),this.Jb.push(a)):(this.Jb.push(a),this.Xh=!0)};l.prototype.remove=function(a){this.qe.add(a);this.Zi=!0;30<=this.qe.count()&&this.Ro()};l.prototype.Ro=function(){this.Zi&&(this.qe.count()===this.Jb.length?this.reset():(Za(this.Jb,this.qe),this.qe.clear(),this.Zi=!1))};l.prototype.Vz=function(){this.Xh||(this.Jb.sort(m),this.Xh=
!0)};l.prototype.reset=function(){C(this.Jb);this.Xh=!0;this.qe.clear();this.Zi=!1};l.prototype.dump=function(a){this.Ro();this.Vz();this.Jb.length&&a.push(this.Jb)};ea=l;var E="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":E[a-1]};ib=function(a,d,g){if(g)switch(a.mc=g.ONE,a.hc=g.ONE_MINUS_SRC_ALPHA,d){case 1:a.mc=g.ONE;a.hc=g.ONE;break;case 3:a.mc=g.ONE;a.hc=g.ZERO;break;
case 4:a.mc=g.ONE_MINUS_DST_ALPHA;a.hc=g.ONE;break;case 5:a.mc=g.DST_ALPHA;a.hc=g.ZERO;break;case 6:a.mc=g.ZERO;a.hc=g.SRC_ALPHA;break;case 7:a.mc=g.ONE_MINUS_DST_ALPHA;a.hc=g.ZERO;break;case 8:a.mc=g.ZERO;a.hc=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.mc=g.DST_ALPHA;a.hc=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.mc=g.ONE_MINUS_DST_ALPHA,a.hc=g.SRC_ALPHA}};ob=function(a){return Math.round(1E6*a)/1E6};pb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===
d.toLowerCase()};qb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||pb(a.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(f){var k=new kc(3);f&&(k[0]=f[0],k[1]=f[1],k[2]=f[2]);return k}
function mc(f){var k=new kc(16);f&&(k[0]=f[0],k[1]=f[1],k[2]=f[2],k[3]=f[3],k[4]=f[4],k[5]=f[5],k[6]=f[6],k[7]=f[7],k[8]=f[8],k[9]=f[9],k[10]=f[10],k[11]=f[11],k[12]=f[12],k[13]=f[13],k[14]=f[14],k[15]=f[15]);return k}function nc(f,k){k[0]=f[0];k[1]=f[1];k[2]=f[2];k[3]=f[3];k[4]=f[4];k[5]=f[5];k[6]=f[6];k[7]=f[7];k[8]=f[8];k[9]=f[9];k[10]=f[10];k[11]=f[11];k[12]=f[12];k[13]=f[13];k[14]=f[14];k[15]=f[15]}
function oc(f,k){var b=k[0],h=k[1];k=k[2];f[0]*=b;f[1]*=b;f[2]*=b;f[3]*=b;f[4]*=h;f[5]*=h;f[6]*=h;f[7]*=h;f[8]*=k;f[9]*=k;f[10]*=k;f[11]*=k}
function pc(f,k,b,h){h||(h=mc());var e,p,c,a,q,t,g,d,l=f[0],m=f[1];f=f[2];p=b[0];c=b[1];e=b[2];b=k[1];t=k[2];l===k[0]&&m===b&&f===t?(f=h,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(b=l-k[0],t=m-k[1],g=f-k[2],d=1/Math.sqrt(b*b+t*t+g*g),b*=d,t*=d,g*=d,k=c*g-e*t,e=e*b-p*g,p=p*t-c*b,(d=Math.sqrt(k*k+e*e+p*p))?(d=1/d,k*=d,e*=d,p*=d):p=e=k=0,c=t*p-g*e,a=g*k-b*p,q=b*e-t*k,(d=Math.sqrt(c*c+a*a+q*q))?(d=1/d,c*=d,a*=d,q*=d):q=a=c=0,
h[0]=k,h[1]=c,h[2]=b,h[3]=0,h[4]=e,h[5]=a,h[6]=t,h[7]=0,h[8]=p,h[9]=q,h[10]=g,h[11]=0,h[12]=-(k*l+e*m+p*f),h[13]=-(c*l+a*m+q*f),h[14]=-(b*l+t*m+g*f),h[15]=1)}
(function(){function f(a,c,b){this.Nf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Qa=!!b;this.am=this.Aj=!1;this.xo=0;this.Fn=1;this.Uq=1E3;this.mD=(this.Uq-this.Fn)/32768;this.lo=lc([0,0,100]);this.Zt=lc([0,0,0]);this.Qv=lc([0,1,0]);this.Ik=lc([1,1,1]);this.Us=!0;this.um=mc();this.fd=mc();this.Bp=mc();this.wo=mc();this.H=a;this.Ct()}function k(a,c,b){this.H=a;this.rk=c;this.name=b;this.wd=a.getAttribLocation(c,"aPos");this.Uf=a.getAttribLocation(c,
"aTex");this.Xt=a.getUniformLocation(c,"matP");this.om=a.getUniformLocation(c,"matMV");this.fi=a.getUniformLocation(c,"opacity");this.Gp=a.getUniformLocation(c,"colorFill");this.Yt=a.getUniformLocation(c,"samplerFront");this.Oj=a.getUniformLocation(c,"samplerBack");this.Vg=a.getUniformLocation(c,"destStart");this.Ug=a.getUniformLocation(c,"destEnd");this.Qj=a.getUniformLocation(c,"seconds");this.Ip=a.getUniformLocation(c,"pixelWidth");this.Hp=a.getUniformLocation(c,"pixelHeight");this.Nj=a.getUniformLocation(c,
"layerScale");this.Mj=a.getUniformLocation(c,"layerAngle");this.Rj=a.getUniformLocation(c,"viewOrigin");this.Pj=a.getUniformLocation(c,"scrollPos");this.kB=!!(this.Ip||this.Hp||this.Qj||this.Oj||this.Vg||this.Ug||this.Nj||this.Mj||this.Rj||this.Pj);this.gu=this.hu=-999;this.tm=1;this.cu=this.bu=0;this.eu=this.au=this.$t=1;this.ku=this.ju=this.iu=this.mu=this.lu=this.du=0;this.Ap=[];this.fu=mc();this.fi&&a.uniform1f(this.fi,1);this.Gp&&a.uniform4f(this.Gp,1,1,1,1);this.Yt&&a.uniform1i(this.Yt,0);this.Oj&&
a.uniform1i(this.Oj,1);this.Vg&&a.uniform2f(this.Vg,0,0);this.Ug&&a.uniform2f(this.Ug,1,1);this.Nj&&a.uniform1f(this.Nj,1);this.Mj&&a.uniform1f(this.Mj,0);this.Rj&&a.uniform2f(this.Rj,0,0);this.Pj&&a.uniform2f(this.Pj,0,0);this.Qj&&a.uniform1f(this.Qj,0);this.Jg=!1}function b(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===
c[15]}function h(a,c){this.type=a;this.C=c;this.H=c.H;this.je=this.Ac=this.Iu=0;this.fa=this.Cd=null;this.wv=[]}var e=mc();f.prototype.Ct=function(){var a=this.H,c;this.Rt=1;this.Rg=this.Qg=null;this.rl=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Qa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.St=a.ONE;this.Qt=a.ONE_MINUS_SRC_ALPHA;
this.zn=new Float32Array(8E3*(this.Qa?3:2));this.kn=new Float32Array(16E3);this.Tu=new Float32Array(32E3);this.cq=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.cq);a.bufferData(a.ARRAY_BUFFER,this.Tu.byteLength,a.DYNAMIC_DRAW);this.Gk=Array(4);this.xk=Array(4);for(c=0;4>c;c++)this.Gk[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Gk[c]),a.bufferData(a.ARRAY_BUFFER,this.zn.byteLength,a.DYNAMIC_DRAW),this.xk[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.xk[c]),a.bufferData(a.ARRAY_BUFFER,
this.kn.byteLength,a.DYNAMIC_DRAW);this.Ge=0;this.oB=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.oB);for(var b=new Uint16Array(12E3),g=c=0;12E3>c;)b[c++]=g,b[c++]=g+1,b[c++]=g+2,b[c++]=g,b[c++]=g+2,b[c++]=g+3,g+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.dq=this.Ei=this.hf=0;this.gb=[];c=this.Qa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";b=this.fj({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}"},c,"<default>");this.gb.push(b);b=this.fj({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.gb.push(b);b=this.fj({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.gb.push(b);b=this.fj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.gb.push(b);for(var d in qc)qc.hasOwnProperty(d)&&this.gb.push(this.fj(qc[d],c,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.yf=[];this.Ee=0;this.kc=!1;this.Ps=this.Kj=-1;this.Ch=null;this.Po=a.createFramebuffer();this.wl=this.Sm=null;this.xs=!1;this.Qa&&(this.wl=a.createRenderbuffer());this.bg=lc([0,0,0]);this.pu=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.pu&&(this.pu=2048);this.Lc(0)};k.prototype.Mq=function(a){b(this.fu,a)||(nc(a,this.fu),this.H.uniformMatrix4fv(this.om,
!1,a))};f.prototype.fj=function(a,c,b){var g=this.H,d=g.createShader(g.FRAGMENT_SHADER);g.shaderSource(d,a.src);g.compileShader(d);if(!g.getShaderParameter(d,g.COMPILE_STATUS))return g.deleteShader(d),null;var l=g.createShader(g.VERTEX_SHADER);g.shaderSource(l,c);g.compileShader(l);if(!g.getShaderParameter(l,g.COMPILE_STATUS))return g.deleteShader(d),g.deleteShader(l),null;c=g.createProgram();g.attachShader(c,d);g.attachShader(c,l);g.linkProgram(c);if(!g.getProgramParameter(c,g.LINK_STATUS))return g.deleteShader(d),
g.deleteShader(l),g.deleteProgram(c),null;g.useProgram(c);g.deleteShader(d);g.deleteShader(l);b=new k(g,c,b);b.No=a.No||0;b.Oo=a.Oo||0;b.Os=!!a.Os;b.Pd=!!a.Pd;b.ts=!!a.ts;b.ga=a.ga||[];a=0;for(d=b.ga.length;a<d;a++)b.ga[a][1]=g.getUniformLocation(c,b.ga[a][0]),b.Ap.push(0),g.uniform1f(b.ga[a][1],0);return b};f.prototype.ep=function(a){var c,b;c=0;for(b=this.gb.length;c<b;c++)if(this.gb[c].name===a)return c;return-1};f.prototype.Vu=function(a,c,b){var g=this.fd,d=this.um,l=[0,0,0,0,0,0,0,0];l[0]=g[0]*
a+g[4]*c+g[12];l[1]=g[1]*a+g[5]*c+g[13];l[2]=g[2]*a+g[6]*c+g[14];l[3]=g[3]*a+g[7]*c+g[15];l[4]=d[0]*l[0]+d[4]*l[1]+d[8]*l[2]+d[12]*l[3];l[5]=d[1]*l[0]+d[5]*l[1]+d[9]*l[2]+d[13]*l[3];l[6]=d[2]*l[0]+d[6]*l[1]+d[10]*l[2]+d[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],b[0]=(.5*l[4]+.5)*this.width,b[1]=(.5*l[5]+.5)*this.height)};f.prototype.eh=function(a,c,b){if(this.width!==a||this.height!==c||b){this.Ag();b=this.H;this.width=a;this.height=c;b.viewport(0,0,a,c);pc(this.lo,
this.Zt,this.Qv,this.fd);if(this.Qa){var g=-a/2;a=a/2;var d=c/2;c=-c/2;var l=this.Fn,m=this.Uq,e=this.um;e||(e=mc());var n=a-g,h=c-d,r=m-l;e[0]=2/n;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/h;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/r;e[11]=0;e[12]=-(g+a)/n;e[13]=-(c+d)/h;e[14]=-(m+l)/r;e[15]=1;this.Ik[0]=1;this.Ik[1]=1}else c=a/c,g=this.Fn,a=this.Uq,e=this.um,m=g*Math.tan(45*Math.PI/360),c*=m,d=-c,l=-m,e||(e=mc()),n=c-d,h=m-l,r=a-g,e[0]=2*g/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*g/h,e[6]=0,e[7]=0,e[8]=(c+d)/
n,e[9]=(m+l)/h,e[10]=-(a+g)/r,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*g*2)/r,e[15]=0,g=[0,0],a=[0,0],this.Vu(0,0,g),this.Vu(1,1,a),this.Ik[0]=1/(a[0]-g[0]),this.Ik[1]=-1/(a[1]-g[1]);g=0;for(a=this.gb.length;g<a;g++)d=this.gb[g],d.Jg=!1,d.Xt&&(b.useProgram(d.rk),b.uniformMatrix4fv(d.Xt,!1,this.um));b.useProgram(this.gb[this.Kj].rk);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Rg=this.Qg=null;this.wl&&(b.bindFramebuffer(b.FRAMEBUFFER,
this.Po),b.bindRenderbuffer(b.RENDERBUFFER,this.wl),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.xs||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.wl),this.xs=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.Sm=null)}};f.prototype.ue=function(){pc(this.lo,this.Zt,this.Qv,this.fd);oc(this.fd,this.Ik)};f.prototype.translate=function(a,c){if(0!==a||0!==c){this.bg[0]=a;this.bg[1]=c;this.bg[2]=
0;var b=this.fd,g=this.bg,d=g[0],l=g[1],g=g[2];b[12]=b[0]*d+b[4]*l+b[8]*g+b[12];b[13]=b[1]*d+b[5]*l+b[9]*g+b[13];b[14]=b[2]*d+b[6]*l+b[10]*g+b[14];b[15]=b[3]*d+b[7]*l+b[11]*g+b[15]}};f.prototype.scale=function(a,c){if(1!==a||1!==c)this.bg[0]=a,this.bg[1]=c,this.bg[2]=1,oc(this.fd,this.bg)};f.prototype.oq=function(a){if(0!==a){var c=this.fd,b,g=Math.sin(a);a=Math.cos(a);var d=c[0],l=c[1],m=c[2],e=c[3],n=c[4],h=c[5],r=c[6],k=c[7];b?c!==b&&(b[8]=c[8],b[9]=c[9],b[10]=c[10],b[11]=c[11],b[12]=c[12],b[13]=
c[13],b[14]=c[14],b[15]=c[15]):b=c;b[0]=d*a+n*g;b[1]=l*a+h*g;b[2]=m*a+r*g;b[3]=e*a+k*g;b[4]=d*-g+n*a;b[5]=l*-g+h*a;b[6]=m*-g+r*a;b[7]=e*-g+k*a}};f.prototype.Ud=function(){if(!b(this.Bp,this.fd)){var a=this.Wc();a.type=5;a.fa?nc(this.fd,a.fa):a.fa=mc(this.fd);nc(this.fd,this.Bp);this.kc=!1}};f.prototype.Ym=function(a){this.Qa&&(32760<a&&(a=32760),this.xo=this.lo[2]-this.Fn-a*this.mD)};h.prototype.Ez=function(){var a=this.H,c=this.C;0!==this.Ac?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,c.Po),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.am=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.am=!1)};h.prototype.Iz=function(){this.H.bindTexture(this.H.TEXTURE_2D,this.Cd)};h.prototype.Jz=function(){var a=this.H;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Cd);a.activeTexture(a.TEXTURE0)};h.prototype.Fz=function(){var a=this.Iu,
c=this.C;c.rl=a;c=c.Ch;c.fi&&c.tm!==a&&(c.tm=a,this.H.uniform1f(c.fi,a))};h.prototype.zz=function(){this.H.drawElements(this.H.TRIANGLES,this.je,this.H.UNSIGNED_SHORT,this.Ac)};h.prototype.Bz=function(){this.H.blendFunc(this.Ac,this.je)};h.prototype.Kz=function(){var a,c,b,g=this.C.gb,d=this.C.Ps;a=0;for(c=g.length;a<c;a++)b=g[a],a===d&&b.om?(b.Mq(this.fa),b.Jg=!0):b.Jg=!1;nc(this.fa,this.C.wo)};h.prototype.Az=function(){var a=this.H,c=this.C;this.Cd?(c.Rg===this.Cd&&(a.activeTexture(a.TEXTURE1),
a.bindTexture(a.TEXTURE_2D,null),c.Rg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Po),c.am||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Cd,0)):(c.Qa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};h.prototype.wz=function(){var a=this.H,c=this.Ac;0===c?(a.clearColor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.fa[0],
this.fa[1],this.fa[2],this.fa[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};h.prototype.Dz=function(){var a=this.H;0!==this.Ac?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};h.prototype.yz=function(){var a=this.H,c=this.C;c.Qa&&a.disable(a.DEPTH_TEST);var b=c.gb[1];a.useProgram(b.rk);!b.Jg&&b.om&&(b.Mq(c.wo),b.Jg=!0);a.enableVertexAttribArray(b.wd);a.bindBuffer(a.ARRAY_BUFFER,c.cq);a.vertexAttribPointer(b.wd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,
this.Ac/4,this.je);b=c.Ch;a.useProgram(b.rk);0<=b.wd&&(a.enableVertexAttribArray(b.wd),a.bindBuffer(a.ARRAY_BUFFER,c.Gk[c.Ge]),a.vertexAttribPointer(b.wd,c.Qa?3:2,a.FLOAT,!1,0,0));0<=b.Uf&&(a.enableVertexAttribArray(b.Uf),a.bindBuffer(a.ARRAY_BUFFER,c.xk[c.Ge]),a.vertexAttribPointer(b.Uf,2,a.FLOAT,!1,0,0));c.Qa&&a.enable(a.DEPTH_TEST)};h.prototype.Gz=function(){var a=this.H,c=this.C,b=c.gb[this.Ac];c.Ps=this.Ac;c.Ch=b;a.useProgram(b.rk);!b.Jg&&b.om&&(b.Mq(c.wo),b.Jg=!0);b.fi&&b.tm!==c.rl&&(b.tm=c.rl,
a.uniform1f(b.fi,c.rl));0<=b.wd&&(a.enableVertexAttribArray(b.wd),a.bindBuffer(a.ARRAY_BUFFER,c.Gk[c.Ge]),a.vertexAttribPointer(b.wd,c.Qa?3:2,a.FLOAT,!1,0,0));0<=b.Uf&&(a.enableVertexAttribArray(b.Uf),a.bindBuffer(a.ARRAY_BUFFER,c.xk[c.Ge]),a.vertexAttribPointer(b.Uf,2,a.FLOAT,!1,0,0))};h.prototype.Cz=function(){var a=this.fa;this.H.uniform4f(this.C.Ch.Gp,a[0],a[1],a[2],a[3])};h.prototype.Hz=function(){var a,c,b=this.C.Ch,g=this.H;a=this.fa;b.Oj&&this.C.Rg!==this.Cd&&(g.activeTexture(g.TEXTURE1),
g.bindTexture(g.TEXTURE_2D,this.Cd),this.C.Rg=this.Cd,g.activeTexture(g.TEXTURE0));var d=a[0];b.Ip&&d!==b.hu&&(b.hu=d,g.uniform1f(b.Ip,d));d=a[1];b.Hp&&d!==b.gu&&(b.gu=d,g.uniform1f(b.Hp,d));d=a[2];c=a[3];!b.Vg||d===b.bu&&c===b.cu||(b.bu=d,b.cu=c,g.uniform2f(b.Vg,d,c));d=a[4];c=a[5];!b.Ug||d===b.$t&&c===b.au||(b.$t=d,b.au=c,g.uniform2f(b.Ug,d,c));d=a[6];b.Nj&&d!==b.eu&&(b.eu=d,g.uniform1f(b.Nj,d));d=a[7];b.Mj&&d!==b.du&&(b.du=d,g.uniform1f(b.Mj,d));d=a[8];c=a[9];!b.Rj||d===b.lu&&c===b.mu||(b.lu=d,
b.mu=c,g.uniform2f(b.Rj,d,c));d=a[10];c=a[11];!b.Pj||d===b.iu&&c===b.ju||(b.iu=d,b.ju=c,g.uniform2f(b.Pj,d,c));d=a[12];b.Qj&&d!==b.ku&&(b.ku=d,g.uniform1f(b.Qj,d));if(b.ga.length)for(a=0,c=b.ga.length;a<c;a++)d=this.wv[a],d!==b.Ap[a]&&(b.Ap[a]=d,g.uniform1f(b.ga[a][1],d))};f.prototype.Wc=function(){this.Ee===this.yf.length&&this.yf.push(new h(0,this));return this.yf[this.Ee++]};f.prototype.Ag=function(){if(0!==this.Ee&&!this.H.isContextLost()){var a=this.H;0<this.dq&&(a.bindBuffer(a.ARRAY_BUFFER,
this.cq),a.bufferSubData(a.ARRAY_BUFFER,0,this.Tu.subarray(0,this.dq)),c&&0<=c.wd&&"<point>"===c.name&&a.vertexAttribPointer(c.wd,4,a.FLOAT,!1,0,0));if(0<this.hf){var c=this.Ch;a.bindBuffer(a.ARRAY_BUFFER,this.Gk[this.Ge]);a.bufferSubData(a.ARRAY_BUFFER,0,this.zn.subarray(0,this.hf));c&&0<=c.wd&&"<point>"!==c.name&&a.vertexAttribPointer(c.wd,this.Qa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.xk[this.Ge]);a.bufferSubData(a.ARRAY_BUFFER,0,this.kn.subarray(0,this.Ei));c&&0<=c.Uf&&"<point>"!==
c.name&&a.vertexAttribPointer(c.Uf,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.Ee;a<c;a++)switch(b=this.yf[a],b.type){case 1:b.zz();break;case 2:b.Iz();break;case 3:b.Fz();break;case 4:b.Bz();break;case 5:b.Kz();break;case 6:b.Az();break;case 7:b.wz();break;case 8:b.yz();break;case 9:b.Gz();break;case 10:b.Hz();break;case 11:b.Jz();break;case 12:b.Cz();break;case 13:b.Dz();break;case 14:b.Ez()}this.dq=this.Ei=this.hf=this.Ee=0;this.am=this.kc=!1;this.Ge++;4<=this.Ge&&(this.Ge=0)}};f.prototype.dh=function(a){if(a!==
this.Rt&&!this.Aj){var c=this.Wc();c.type=3;this.Rt=c.Iu=a;this.kc=!1}};f.prototype.Xc=function(a){if(a!==this.Qg){var c=this.Wc();c.type=2;this.Qg=c.Cd=a;this.kc=!1}};f.prototype.$f=function(a,c){if((a!==this.St||c!==this.Qt)&&!this.Aj){var b=this.Wc();b.type=4;b.Ac=a;b.je=c;this.St=a;this.Qt=c;this.kc=!1}};f.prototype.kv=function(){this.$f(this.H.ONE,this.H.ONE_MINUS_SRC_ALPHA)};f.prototype.hk=function(a,c,b,g,d,l,m,e){15992<=this.hf&&this.Ag();var n=this.hf,h=this.Ei,r=this.zn,k=this.kn,p=this.xo;
if(this.kc)this.yf[this.Ee-1].je+=6;else{var f=this.Wc();f.type=1;f.Ac=this.Qa?n:n/2*3;f.je=6;this.kc=!0}this.Qa?(r[n++]=a,r[n++]=c,r[n++]=p,r[n++]=b,r[n++]=g,r[n++]=p,r[n++]=d,r[n++]=l,r[n++]=p,r[n++]=m,r[n++]=e,r[n++]=p):(r[n++]=a,r[n++]=c,r[n++]=b,r[n++]=g,r[n++]=d,r[n++]=l,r[n++]=m,r[n++]=e);k[h++]=0;k[h++]=0;k[h++]=1;k[h++]=0;k[h++]=1;k[h++]=1;k[h++]=0;k[h++]=1;this.hf=n;this.Ei=h};f.prototype.se=function(a,c,b,g,d,l,m,e,n){15992<=this.hf&&this.Ag();var h=this.hf,r=this.Ei,k=this.zn,p=this.kn,
f=this.xo;if(this.kc)this.yf[this.Ee-1].je+=6;else{var B=this.Wc();B.type=1;B.Ac=this.Qa?h:h/2*3;B.je=6;this.kc=!0}var B=n.left,G=n.top,x=n.right;n=n.bottom;this.Qa?(k[h++]=a,k[h++]=c,k[h++]=f,k[h++]=b,k[h++]=g,k[h++]=f,k[h++]=d,k[h++]=l,k[h++]=f,k[h++]=m,k[h++]=e,k[h++]=f):(k[h++]=a,k[h++]=c,k[h++]=b,k[h++]=g,k[h++]=d,k[h++]=l,k[h++]=m,k[h++]=e);p[r++]=B;p[r++]=G;p[r++]=x;p[r++]=G;p[r++]=x;p[r++]=n;p[r++]=B;p[r++]=n;this.hf=h;this.Ei=r};f.prototype.Lc=function(a){if(this.Kj!==a){if(!this.gb[a]){if(0===
this.Kj)return;a=0}var c=this.Wc();c.type=9;this.Kj=c.Ac=a;this.kc=!1}};f.prototype.ek=function(a){a=this.gb[a];return!(!a.Vg&&!a.Ug)};f.prototype.gq=function(a){a=this.gb[a];return!!(a.Vg||a.Ug||a.Os)};f.prototype.fq=function(a){return this.gb[a].Pd};f.prototype.rC=function(a){a=this.gb[a];return 0!==a.No||0!==a.Oo};f.prototype.OA=function(a){return this.gb[a].No};f.prototype.PA=function(a){return this.gb[a].Oo};f.prototype.QA=function(a,c){return this.gb[a].ga[c][2]};f.prototype.Pm=function(a){return this.gb[a].ts};
f.prototype.Ai=function(a,c,b,g,d,l,m,e,n,h,r,k,p,f,B){var G=this.gb[this.Kj],x,A;if(G.kB||B.length){x=this.Wc();x.type=10;x.fa?nc(this.fd,x.fa):x.fa=mc();A=x.fa;A[0]=c;A[1]=b;A[2]=g;A[3]=d;A[4]=l;A[5]=m;A[6]=e;A[7]=n;A[8]=h;A[9]=r;A[10]=k;A[11]=p;A[12]=f;G.Oj?x.Cd=a:x.Cd=null;if(B.length)for(b=x.wv,b.length=B.length,a=0,c=B.length;a<c;a++)b[a]=B[a];this.kc=!1}};f.prototype.clear=function(a,c,b,g){var d=this.Wc();d.type=7;d.Ac=0;d.fa||(d.fa=mc());d.fa[0]=a;d.fa[1]=c;d.fa[2]=b;d.fa[3]=g;this.kc=!1};
f.prototype.clearRect=function(a,c,b,g){if(!(0>b||0>g)){var d=this.Wc();d.type=7;d.Ac=1;d.fa||(d.fa=mc());d.fa[0]=a;d.fa[1]=c;d.fa[2]=b;d.fa[3]=g;this.kc=!1}};f.prototype.pv=function(a){if(this.Qa&&(a=!!a,this.Aj!==a)){var c=this.Wc();c.type=14;c.Ac=a?1:0;this.kc=!1;this.Aj=a;this.Sm=null;this.Aj?this.Lc(2):this.Lc(0)}};f.prototype.nv=function(a){if(this.Qa){var c=this.Wc();c.type=13;c.Ac=a?1:0;this.kc=!1}};f.prototype.gt=function(){nc(this.Bp,e);this.ue();this.Ud();var a=this.width/2,c=this.height/
2;this.hk(-a,c,a,c,a,-c,-a,-c);nc(e,this.fd);this.Ud()};f.prototype.lv=function(a,c,b){this.Lc(3);var g=this.Wc();g.type=12;g.fa||(g.fa=mc());g.fa[0]=a;g.fa[1]=c;g.fa[2]=b;g.fa[3]=1;this.kc=!1};f.prototype.PC=function(){this.Lc(0)};f.prototype.zC=function(){this.Lc(2)};f.prototype.qC=function(){this.Ag();this.H.flush()};var p=[],c={};f.prototype.kz=function(){C(p);c={}};f.prototype.ei=function(a,b,e,g){b=!!b;e=!!e;var d=a.src+","+b+","+e+(b?",undefined":""),l=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(d))return l=
c[d],l.hl++,l;this.Ag();var m=this.H,h=ka(a.width)&&ka(a.height),l=m.createTexture();m.bindTexture(m.TEXTURE_2D,l);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=m.RGBA,k=m.RGBA,r=m.UNSIGNED_BYTE;if(g&&!this.Nf)switch(g){case 1:k=n=m.RGB;break;case 2:r=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:r=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=n=m.RGB,r=m.UNSIGNED_SHORT_5_6_5}if(!h&&b){g=document.createElement("canvas");g.width=la(a.width);g.height=la(a.height);var f=g.getContext("2d");"undefined"!==
typeof f.imageSmoothingEnabled?f.imageSmoothingEnabled=e:(f.webkitImageSmoothingEnabled=e,f.mozImageSmoothingEnabled=e,f.msImageSmoothingEnabled=e);f.drawImage(a,0,0,a.width,a.height,0,0,g.width,g.height);m.texImage2D(m.TEXTURE_2D,0,n,k,r,g)}else m.texImage2D(m.TEXTURE_2D,0,n,k,r,a);b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,
m.CLAMP_TO_EDGE));e?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),h&&this.Us?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.Qg=null;l.sg=a.width;l.rg=a.height;l.hl=1;l.Gs=d;p.push(l);return c[d]=l};f.prototype.nd=
function(a,c,b){var g;this.Ag();var d=this.H;this.Nf&&(g=!1);var l=d.createTexture();d.bindTexture(d.TEXTURE_2D,l);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,c,0,d.RGBA,g?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,b?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,b?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,
null);this.Qg=null;l.sg=a;l.rg=c;p.push(l);return l};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.hl&&1<a.hl?a.hl--:(this.Ag(),a===this.Qg&&(this.H.bindTexture(this.H.TEXTURE_2D,null),this.Qg=null),a===this.Rg&&(this.H.activeTexture(this.H.TEXTURE1),this.H.bindTexture(this.H.TEXTURE_2D,null),this.H.activeTexture(this.H.TEXTURE0),this.Rg=null),Ea(p,a),"undefined"!==typeof a.Gs&&delete c[a.Gs],this.H.deleteTexture(a)))};f.prototype.zd=function(a){if(a!==this.Sm){var c=this.Wc();
c.type=6;this.Sm=c.Cd=a;this.kc=!1}};rb=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Rc=(this.zj=/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.vc=!!a.dc;this.Gt="undefined"!==typeof window.AppMobi||
this.vc;this.td=!!window.c2cocoonjs;this.Md=!!window.c2ejecta;this.td&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Md&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Cb=this.vc||this.td||this.Md;this.Cj=
/edge\//i.test(navigator.userAgent);this.Nf=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Cj;this.It=/tizen/i.test(navigator.userAgent);this.Zl=/android/i.test(navigator.userAgent)&&!this.It&&!this.Nf&&!this.Cj;this.Nt=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Nf&&!this.Cj;this.EB=/ipad/i.test(navigator.userAgent);this.Zh=this.Nt||this.EB||this.Md;this.yj=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Nf&&!this.Cj;this.rp=/amazonwebappplatform/i.test(navigator.userAgent);this.sB=/firefox/i.test(navigator.userAgent);this.wB=/safari/i.test(navigator.userAgent)&&!this.yj&&!this.Nf&&!this.Cj;this.xB=/windows/i.test(navigator.userAgent);this.Of="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Lt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.zB=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Uh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.xp=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Kt=!!window.cr_windows10;this.Jt=this.Lt||this.zB||this.xp||this.Kt;this.rB=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.$l=this.Zl&&!this.yj&&!this.zj&&!this.sB&&!this.rp&&!this.Cb;this.devicePixelRatio=
1;this.Rh=this.Rc||this.zj||this.Gt||this.td||this.Zl||this.Zh||this.Uh||this.xp||this.rB||this.It||this.Md;this.Rh||(this.Rh=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Fj=!!(this.Zh&&this.Rc&&window.webkit);this.jp=null;this.mB="";this.Fj&&(this.jp=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Of||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Of=!0);this.canvas=a;this.Is=document.getElementById("c2canvasdiv");this.C=this.H=null;this.fp="(unavailable)";this.Qa=!1;this.yg=0;this.Va=null;this.To="";this.Kl=!1;this.Au=this.Bu=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.vc&&(window.c2runtime=this);this.Of&&(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.$l&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.S=this.width;this.R=this.height;this.pl=this.width;this.hj=this.height;this.bi=window.innerWidth;this.ai=window.innerHeight;this.CA=!1;this.Ba=!0;this.Ej=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.ab=
[];this.Ep={};this.Nd=[];this.Fo={};this.Le=[];this.Mi=[];this.rn=[];this.bo=[];this.Vy=[];this.vg={};this.tp=this.Mf=!1;this.dd=0;this.sp=this.vp=!1;this.ae=[];this.Bj=!1;this.Se=this.lc=this.km=this.tq="";this.vk=this.zv=!1;this.Jl=[];this.xg=this.If=0;this.ru=30;this.vo=this.Sj=0;this.Gi=1;this.Ib=new bb;this.jf=new bb;this.wm=this.Nl=this.kj=this.Bk=this.Tg=this.So=this.gm=0;this.tg=null;this.yl=[];this.Eo=[];this.Al=-1;this.Jp=[[]];this.Iq=this.qm=0;this.Rm(null);this.Tj=[];this.Uj=-1;this.nj=
this.vu=this.Zj=0;this.wk=[];this.Fq=this.hq=-1;this.$h=!0;this.nm=0;this.Dj=!1;this.RC=0;this.wh=null;this.ke=this.xt=!1;this.zu=new da;this.Tp=new da;this.Up=new da;this.av=[];new eb([]);new eb([]);this.xf=[];this.Oh={};this.Ef={};this.wf={};this.Li={};this.Cs={};this.Wt=this.jm=this.pb=this.Db=this.Vt=this.hm=this.Ha=null;this.Ji=this.yp=!1;this.Uo=[null,null];this.Eg=0;this.Qo="";this.Ve={};this.sk=this.Sf=null;this.Bv="";this.vm=[];this.xC()}}function k(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=
d?a[1]:a[0]}function b(){try{return!!window.indexedDB}catch(a){return!1}}function h(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function e(a,d,g,c){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=h;b.onerror=c;b.onsuccess=function(b){b=b.target.result;b.onerror=c;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=g}}catch(l){c(l)}}function p(a,d,g){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=h;c.onerror=g;c.onsuccess=
function(c){c=c.target.result;c.onerror=g;var b=c.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?d(b.result.data):d(null)}}}catch(b){g(b)}}function c(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,g={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof da||a[d]&&"undefined"!==typeof a[d].DE||
"spriteCreatedDestroyCallback"!==d&&(g[d]=a[d]);return g}var q=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.xC=function(){var a=this;if(this.Fj)this.jp?this.jp.startServer({port:0,localhost_only:!0},function(d){a.mB=d;a.bt(function(d){a.di(JSON.parse(d))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):this.bt(function(d){a.di(JSON.parse(d))},
function(){alert("Error fetching data.js")});else{var d;this.Uh?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var g="data.js";if(this.Lt||this.Uh||this.xp||this.Kt)g="data.json";d.open("GET",g,!0);var c=!1;if(!this.Cb&&"response"in d&&"responseType"in d)try{d.responseType="json",c="json"===d.responseType}catch(b){c=!1}if(!c&&"responseType"in d)try{d.responseType="text"}catch(l){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.Uh?d.onreadystatechange=
function(){4===d.readyState&&a.di(JSON.parse(d.responseText))}:(d.onload=function(){if(c)a.di(d.response);else if(a.Md){var g=d.responseText,g=g.substr(g.indexOf("{"));a.di(JSON.parse(g))}else a.di(JSON.parse(d.responseText))},d.onerror=function(a){ga("Error requesting "+g+":");ga(a)});d.send()}};f.prototype.pB=function(){var a=this,d,g,c,b,l,m,e,h,n;this.Sh=(!this.Cb||this.Md||this.Rc)&&this.gD&&!this.$l;0===this.Ec&&this.Zh&&(this.Sh=!1);this.devicePixelRatio=this.Sh?window.devicePixelRatio||window.webkitDevicePixelRatio||
window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Zb();g=!(!this.CA&&(!this.co||this.Of||this.Jt||this.Uh||this.zj||this.Rc||this.rp));0<this.Ec&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Sz&&(this.td||this.Md||!this.Cb)&&(d={alpha:g,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.H=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(r){}if(this.H){if(d=this.H.getExtension("WEBGL_debug_renderer_info"))this.fp=this.H.getParameter(d.UNMASKED_RENDERER_WEBGL)+
" ["+this.H.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Qa&&(this.fp+=" [front-to-back enabled]");this.Cb||(this.Tb=document.createElement("canvas"),jQuery(this.Tb).appendTo(this.canvas.parentNode),this.Tb.oncontextmenu=function(){return!1},this.Tb.onselectstart=function(){return!1},this.Tb.width=Math.round(this.pl*this.devicePixelRatio),this.Tb.height=Math.round(this.hj*this.devicePixelRatio),jQuery(this.Tb).css({width:this.pl+"px",height:this.hj+"px"}),this.Uu(),this.aq=this.Tb.getContext("2d"));
this.C=new rb(this.H,this.Rh,this.Qa);this.C.eh(this.canvas.width,this.canvas.height);this.C.Us=0!==this.Lz;this.Va=null;this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.XB();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.Ct();a.C.eh(a.C.width,a.C.height,!0);a.Db=null;a.pb=null;a.Uo[0]=null;a.Uo[1]=null;a.YB();a.Ba=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},
!1);d=0;for(g=this.G.length;d<g;d++)for(l=this.G[d],c=0,b=l.Y.length;c<b;c++)e=l.Y[c],e.sb=this.C.ep(e.id),e.Pd=this.C.fq(e.sb),this.Ji=this.Ji||this.C.ek(e.sb);d=0;for(g=this.Nd.length;d<g;d++){h=this.Nd[d];c=0;for(b=h.Y.length;c<b;c++)e=h.Y[c],e.sb=this.C.ep(e.id),e.Pd=this.C.fq(e.sb);h.Td();c=0;for(b=h.da.length;c<b;c++){n=h.da[c];l=0;for(m=n.Y.length;l<m;l++)e=n.Y[l],e.sb=this.C.ep(e.id),e.Pd=this.C.fq(e.sb),this.Ji=this.Ji||this.C.ek(e.sb);n.Td()}}}else{if(0<this.Ec&&this.vc){this.canvas=null;
document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Va=AppMobi.canvas.getContext("2d");try{this.Va.samplingMode=this.Sa?"smooth":"sharp",this.Va.globalScale=1,this.Va.HTML5CompatibilityMode=!0,this.Va.imageSmoothingEnabled=this.Sa}catch(k){}0!==this.width&&0!==this.height&&(this.Va.width=this.width,this.Va.height=this.height)}this.Va||(this.td?(d={antialias:!!this.Sa,alpha:g},this.Va=this.canvas.getContext("2d",d)):(d={alpha:g},this.Va=this.canvas.getContext("2d",
d)),this.Xm(this.Va,this.Sa));this.aq=this.Tb=null}this.Hv=function(d){a.ib(!1,d)};window==window.top||this.Cb||this.Jt||this.Uh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.td&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.km="__c2_continuouspreview",
this.vk=!0),this.gC&&!this.Rh&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.Cb||(d=function(a){if(qb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",
d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.Ec&&this.Sh&&1<this.devicePixelRatio&&this.setSize(this.Fb,this.Eb,!0);this.Mv();this.hB();this.go();this.ma={}};f.prototype.setSize=function(a,d,g){var c=0,b=0,l=0,m=0,m=0;if(this.bi!==a||this.ai!==d||g){this.bi=a;this.ai=d;var e=this.Ec,h=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.Dj)&&!this.Rc;if(h||0!==this.Ec||g)h&&0<this.Eg&&(e=this.Eg),g=this.devicePixelRatio,4<=e?(l=this.Fb/this.Eb,a/d>l?(l*=d,5===e?(m=l*g/this.Fb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),l=this.Fb*m/g,m=this.Eb*m/g,c=(a-l)/2,b=(d-m)/2,a=l,d=m):(c=(a-l)/2,a=l)):(m=a/l,5===e?(m=m*g/this.Eb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),l=this.Fb*m/g,m=this.Eb*m/g,c=(a-l)/2,b=(d-m)/2,a=l):b=(d-m)/2,d=m),h&&!this.Of&&(b=c=0)):this.Of&&this.Dj&&0===this.ht&&(c=Math.floor((a-this.Fb)/
2),b=Math.floor((d-this.Eb)/2),a=this.Fb,d=this.Eb),2>e&&(this.aj=g),this.pl=Math.round(a),this.hj=Math.round(d),this.width=Math.round(a*g),this.height=Math.round(d*g),this.Ba=!0,this.Xv?(this.S=this.width,this.R=this.height,this.ad=!0):this.width<this.Fb&&this.height<this.Eb||1===e?(this.S=this.width,this.R=this.height,this.ad=!0):(this.S=this.Fb,this.R=this.Eb,this.ad=!1,2===e?(l=this.Fb/this.Eb,e=this.bi/this.ai,e<l?this.S=this.R*e:e>l&&(this.R=this.S/e)):3===e&&(l=this.Fb/this.Eb,e=this.bi/this.ai,
e>l?this.S=this.R*e:e<l&&(this.R=this.S/e))),this.Is&&!this.Cb&&(jQuery(this.Is).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*g),this.canvas.height=Math.round(d*g),this.Md?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.Sh&&!this.Cb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.Tb&&(this.Tb.width=Math.round(a*g),this.Tb.height=Math.round(d*g),this.Tb.style.width=this.pl+"px",this.Tb.style.height=this.hj+"px"),this.C&&this.C.eh(Math.round(a*g),Math.round(d*g)),this.vc&&this.Va&&(this.Va.width=Math.round(a),this.Va.height=Math.round(d)),this.Va&&this.Xm(this.Va,this.Sa),this.Mv(),this.Nt&&!this.Rc&&
window.scrollTo(0,0)}};f.prototype.Mv=function(){if(this.Yy&&0!==this.Zp){var a="portrait";2===this.Zp&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",
d)}}};f.prototype.XB=function(){this.C.kz();this.yp=!0;var a,d,g;a=0;for(d=this.G.length;a<d;a++)g=this.G[a],g.ym&&g.ym()};f.prototype.YB=function(){this.yp=!1;var a,d,g;a=0;for(d=this.G.length;a<d;a++)g=this.G[a],g.Am&&g.Am()};f.prototype.Uu=function(){if(!this.Cb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Dj)&&!this.Rc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Tb).css(a)}};
var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var d;if(a&&!this.Ej)for(fa("[Construct 2] Suspending"),this.Ej=!0,-1!==this.hq&&t&&t(this.hq),-1!==this.Fq&&clearTimeout(this.Fq),a=0,d=this.wk.length;a<d;a++)this.wk[a](!0);else if(!a&&this.Ej){fa("[Construct 2] Resuming");this.Ej=!1;this.gm=Ya();this.Tg=Ya();a=this.Sj=this.Nl=0;for(d=this.wk.length;a<
d;a++)this.wk[a](!1);this.ib(!1)}};f.prototype.Uy=function(a){this.wk.push(a)};f.prototype.rf=function(a){return this.vm[a]};f.prototype.di=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.dt=a[1];this.Ec=a[12];this.ht=a[12];this.Fb=a[10];this.Eb=a[11];this.Qu=this.Fb/2;this.Ru=this.Eb/2;this.Cb&&!this.Md&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.ht=
this.Ec=3);this.Pq=a[18];this.Tf=a[19];if(0===this.Tf){var d=new Image;d.crossOrigin="anonymous";this.qv(d,"loading-logo.png");this.Sf={rm:d}}else if(4===this.Tf){d=new Image;d.src="";var g=new Image;g.src="";var c=new Image;c.src="";var b=new Image;b.src="";var l=new Image;l.src="";var m=new Image;m.src="";var e=new Image;e.src="";var h=new Image;h.src="";var n=new Image;n.src="";var r=new Image;r.src="";var k=new Image;k.src="";var p=new Image;p.src="";this.Sf={rm:[d,g,c,b],nC:[l,m,e,h],jD:[n,r,
k,p]}}this.Zj=a[21];this.vm=rc();this.we=new O(this);d=0;for(g=a[2].length;d<g;d++)e=a[2][d],c=this.rf(e[0]),sb(e,c.prototype),h=new c(this),h.bn=e[1],h.Rf=e[2],h.su=e[9],h.K&&h.K(),this.plugins.push(h);this.vm=rc();d=0;for(g=a[3].length;d<g;d++){e=a[3][d];l=this.rf(e[1]);h=null;c=0;for(b=this.plugins.length;c<b;c++)if(this.plugins[c]instanceof l){h=this.plugins[c];break}n=new h.V(h);n.name=e[0];n.N=e[2];n.pp=e[3].slice(0);n.iD=e[3].length;n.Zy=e[4];n.EA=e[5];n.qa=e[11];n.N?(n.hi=[],n.Me=this.nj++,
n.Ra=null):(n.hi=null,n.Me=-1,n.Ra=[]);n.Hl=null;n.Kh=null;n.Ws=null;n.wc=!1;n.Pc=null;e[6]?(n.ln=e[6][0],n.Cq=e[6][1],n.zk=e[6][2]):(n.ln=null,n.Cq=0,n.zk=0);e[7]?n.Oc=e[7]:n.Oc=null;n.index=d;n.g=[];n.tl=[];n.ff=[new tb(n)];n.be=0;n.od=null;n.qz=0;n.Ci=!0;n.un=ub;n.he=vb;n.MA=wb;n.U=xb;n.fk=yb;n.$g=zb;n.re=Bb;n.Ql=Cb;n.Vo=Db;n.Yo=Eb;n.Id=Fb;n.$o=Gb;n.Js=new fb(this.Fb,this.Eb);n.us=!0;n.vs=!1;n.ma={};n.toString=Hb;n.ab=[];c=0;for(b=e[8].length;c<b;c++){r=e[8][c];k=this.rf(r[1]);p=null;l=0;for(m=
this.ab.length;l<m;l++)if(this.ab[l]instanceof k){p=this.ab[l];break}p||(p=new k(this),p.tu=[],p.Qp=new da,p.K&&p.K(),this.ab.push(p));-1===p.tu.indexOf(n)&&p.tu.push(n);l=new p.V(p,n);l.name=r[0];l.qa=r[2];l.K();n.ab.push(l)}n.global=e[9];n.up=e[10];n.Y=[];c=0;for(b=e[12].length;c<b;c++)n.Y.push({id:e[12][c][0],name:e[12][c][1],sb:-1,Pd:!1,jb:!0,index:c});n.WE=e[13];this.Pq&&!n.N&&!n.up&&h.Rf||n.K();n.name&&(this.types[n.name]=n);this.G.push(n);h.bn&&(c=new h.I(n),c.uid=this.Zj++,c.Xu=this.vu++,
c.Lg=0,c.sj=Ib,c.toString=Jb,c.q=e[14],c.K(),n.g.push(c),this.Ve[c.uid.toString()]=c)}d=0;for(g=a[4].length;d<g;d++)for(l=a[4][d],m=this.G[l[0]],c=1,b=l.length;c<b;c++)e=this.G[l[c]],e.Ra.push(m),m.hi.push(e);d=0;for(g=a[28].length;d<g;d++){l=a[28][d];m=[];c=0;for(b=l.length;c<b;c++)m.push(this.G[l[c]]);c=0;for(b=m.length;c<b;c++)m[c].wc=!0,m[c].Pc=m}if(0<this.nj)for(d=0,g=this.G.length;d<g;d++)if(e=this.G[d],!e.N&&e.Ra.length){e.Hl=Array(this.nj);e.Kh=Array(this.nj);e.Ws=Array(this.nj);n=[];c=p=
k=r=0;for(b=e.Ra.length;c<b;c++)for(h=e.Ra[c],e.Hl[h.Me]=r,r+=h.iD,e.Kh[h.Me]=k,k+=h.Zy,e.Ws[h.Me]=p,p+=h.EA,l=0,m=h.Y.length;l<m;l++)n.push(xa({},h.Y[l]));e.Y=n.concat(e.Y);c=0;for(b=e.Y.length;c<b;c++)e.Y[c].index=c}d=0;for(g=a[5].length;d<g;d++)e=a[5][d],c=new Kb(this,e),this.Ep[c.name]=c,this.Nd.push(c);d=0;for(g=a[6].length;d<g;d++)e=a[6][d],c=new Lb(this,e),this.Fo[c.name]=c,this.Le.push(c);d=0;for(g=this.Le.length;d<g;d++)this.Le[d].lb();d=0;for(g=this.Le.length;d<g;d++)this.Le[d].Lq();d=0;
for(g=this.rn.length;d<g;d++)this.rn[d].lb();C(this.rn);this.Xy=a[7];this.Qo=a[8];this.Od=a[9];this.aj=1;this.Sz=a[13];this.Sa=a[14];this.co=a[15];this.gD=a[17];this.Zp=a[20];this.Yy=0<this.Zp;this.gC=a[22];this.ad=this.Xv=a[23];this.Lz=a[24];this.oC=a[25];this.Qa=a[27]&&!this.Nf;this.cn=Date.now();C(this.vm);this.pB()};var g=!1;f.prototype.Rq=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){g=a.Fs=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.Md?a.src=
d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(d){a.src=d},function(c){g=a.Fs=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.qv(a,d)));this.Mi.push(a)};f.prototype.BA=function(a){var d,g;d=0;for(g=this.Mi.length;d<g;d++)if(this.Mi[d].nz===a)return this.Mi[d];return null};var d=0,l=!1;f.prototype.hB=function(){this.wh&&(d=this.wh.MC(this.Xy))};f.prototype.ws=function(){var a=d,g=0,c=0,b=!0,m,
e,c=0;for(m=this.Mi.length;c<m;c++){e=this.Mi[c];var n=e.Ns;if(!n||0>=n)n=5E4;a+=n;e.src&&(e.complete||e.loaded)&&!e.Fs?g+=n:b=!1}b&&this.oC&&this.wh&&(l||(this.wh.SC(),l=!0),c=this.wh.NA(),g+=c,c<d&&(b=!1));this.ja=0==a?1:g/a;return b};var m=!1;f.prototype.go=function(){if(this.Va||this.C){var a=this.Va||this.aq;this.Tb&&this.Uu();var d=window.innerWidth,c=window.innerHeight;this.bi===d&&this.ai===c||this.setSize(d,c);this.ja=0;this.Ut=-1;var b=this;if(this.ws()&&(4!==this.Tf||m))this.iB();else{c=
Date.now()-this.cn;if(a){var l=this.width,e=this.height,d=this.devicePixelRatio;if(3>this.Tf&&(this.td||500<=c&&this.Ut!=this.ja)){a.clearRect(0,0,l,e);var c=l/2,e=e/2,l=0===this.Tf&&this.Sf.rm.complete,n=40*d,h=0,r=80*d,k;if(l){var p=this.Sf.rm,r=p.width*d;k=p.height*d;n=r/2;h=k/2;a.drawImage(p,qa(c-n),qa(e-h),r,k)}1>=this.Tf?(c=qa(c-n)+.5,e=qa(e+(h+(l?12*d:0)))+.5,a.fillStyle=g?"red":"DodgerBlue",a.fillRect(c,e,Math.floor(r*this.ja),6*d),a.strokeStyle="black",a.strokeRect(c,e,r,6*d),a.strokeStyle=
"white",a.strokeRect(c-1*d,e-1*d,r+2*d,8*d)):2===this.Tf&&(a.font=this.Md?"12pt ArialMT":"12pt Arial",a.fillStyle=g?"#f00":"#999",a.VE="middle",d=Math.round(100*this.ja)+"%",l=a.measureText?a.measureText(d):null,a.fillText(d,c-(l?l.width:0)/2,e));this.Ut=this.ja}else if(4===this.Tf){this.Qz(a);q?q(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.td?10:100)}}};var w=-1,n="undefined"===typeof cr_is_preview?200:0,N=!0,r=!1,R=0,K=0,D="undefined"===typeof cr_is_preview?
3E3:0,B=null,G=null,x=0;f.prototype.Qz=function(a){if(!m){for(var d=Math.ceil(this.width),c=Math.ceil(this.height),b=this.Sf.rm,l=this.Sf.nC,e=this.Sf.jD,h=0;4>h;++h)if(!b[h].complete||!l[h].complete||!e[h].complete)return;0===x&&(w=Date.now());var h=Date.now(),p=!1,f=a,q,t;N||r?(a.clearRect(0,0,d,c),B&&B.width===d&&B.height===c||(B=document.createElement("canvas"),B.width=d,B.height=c,G=B.getContext("2d")),f=G,p=!0,N&&1===x&&(w=Date.now())):a.globalAlpha=1;f.fillStyle="#333333";f.fillRect(0,0,d,
c);256<this.hj?(q=Fa(.22*c,105,.6*d),t=.25*q,f.drawImage(k(l,q),.5*d-q/2,.2*c-t/2,q,t),t=q=Math.min(.395*c,.95*d),f.drawImage(k(b,q),.5*d-q/2,.485*c-t/2,q,t),q=Fa(.22*c,105,.6*d),t=.25*q,f.drawImage(k(e,q),.5*d-q/2,.868*c-t/2,q,t),f.fillStyle="#3C3C3C",q=d,t=Math.max(.005*c,2),f.fillRect(0,.8*c-t/2,q,t),f.fillStyle=g?"red":"#E0FF65",q=d*this.ja,f.fillRect(.5*d-q/2,.8*c-t/2,q,t)):(t=q=.55*c,f.drawImage(k(b,q),.5*d-q/2,.45*c-t/2,q,t),f.fillStyle="#3C3C3C",q=d,t=Math.max(.005*c,2),f.fillRect(0,.85*c-
t/2,q,t),f.fillStyle=g?"red":"#E0FF65",q=d*this.ja,f.fillRect(.5*d-q/2,.85*c-t/2,q,t));p&&(N?a.globalAlpha=0===x?0:Math.min((h-w)/300,1):r&&(a.globalAlpha=Math.max(1-(h-K)/300,0)),a.drawImage(B,0,0,d,c));N&&300<=h-w&&2<=x&&(N=!1,R=h);!N&&h-R>=D&&!r&&1<=this.ja&&(r=!0,K=h);if(r&&h-K>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.ja&&500>Date.now()-w)m=!0,r=N=!1,this.Sf=G=B=null;++x}};f.prototype.iB=function(){this.Tb&&(this.canvas.parentNode.removeChild(this.Tb),this.Tb=this.aq=null);this.cn=
Date.now();this.Tg=Ya();var a,d,g;if(this.Pq)for(a=0,d=this.G.length;a<d;a++)g=this.G[a],g.N||g.up||!g.u.Rf||g.K();else this.$h=!1;a=0;for(d=this.Nd.length;a<d;a++)this.Nd[a].oz();2<=this.Ec&&(a=this.Fb/this.Eb,d=this.width/this.height,this.aj=2!==this.Ec&&d>a||2===this.Ec&&d<a?this.height/this.Eb:this.width/this.Fb);this.dt?this.Ep[this.dt].Aq():this.Nd[0].Aq();this.Pq||(this.nm=1,this.trigger(O.prototype.j.wr,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(d=this.G.length;a<d;a++)g=this.G[a],g.WB&&g.WB();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ib(!1);this.vc&&AppMobi.webview.execute("onGameReady();")};f.prototype.ib=function(a,d,g){if(this.Ha){var c=Ya();if(g||!this.Ej||a){a||(q?this.hq=q(this.Hv):this.Fq=setTimeout(this.Hv,this.Rh?1:16));d=d||c;var b=this.Ec;((g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Rc)||this.Dj)&&0<this.Eg&&(b=this.Eg);if(0<b){var b=window.innerWidth,l=window.innerHeight;this.bi===b&&this.ai===l||this.setSize(b,l)}this.Cb||(g?(this.Kl||(this.To=jQuery(this.canvas).css("margin")||"0",this.Kl=!0),this.yj||this.Of||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Kl?(this.yj||this.Of||jQuery(this.canvas).css("margin",this.To),
this.To="",this.Kl=!1,0===this.Ec&&this.setSize(Math.round(this.Bu/this.devicePixelRatio),Math.round(this.Au/this.devicePixelRatio),!0)):(this.Bu=this.width,this.Au=this.height));this.$h&&(g=this.ws(),this.nm=this.ja,g&&(this.$h=!1,this.ja=1,this.trigger(O.prototype.j.wr,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.KB(d);!this.Ba&&!this.td||this.yp||this.vk||a||(this.Ba=!1,this.C?this.Qc():this.Ke(),this.sk&&(this.canvas&&this.canvas.toDataURL&&(this.Bv=this.canvas.toDataURL(this.sk[0],
this.sk[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Bv),this.trigger(O.prototype.j.ax,null)),this.sk=null));this.GE||(this.Bk++,this.kj++,this.Nl++);this.Sj+=Ya()-c}}};f.prototype.KB=function(a){var d,g,c,b,l,m,e,n;1E3<=a-this.Tg&&(this.Tg+=1E3,1E3<=a-this.Tg&&(this.Tg=a),this.So=this.Nl,this.Nl=0,this.vo=this.Sj,this.Sj=0);d=0;0!==this.gm&&(d=a-this.gm,0>d&&(d=0),this.xg=d/=1E3,.5<this.xg?this.xg=0:this.xg>1/this.ru&&(this.xg=1/this.ru));this.gm=a;this.If=this.xg*this.Gi;this.Ib.add(this.If);
this.jf.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Dj)&&!this.Rc;2<=this.Ec||a&&0<this.Eg?(d=this.Fb/this.Eb,g=this.width/this.height,c=this.Ec,a&&0<this.Eg&&(c=this.Eg),this.aj=2!==c&&g>d||2===c&&g<d?this.height/this.Eb:this.width/this.Fb,this.Ha&&(this.Ha.hv(this.Ha.scrollX),this.Ha.jv(this.Ha.scrollY))):this.aj=this.Sh?this.devicePixelRatio:1;this.Zb();this.dd++;this.we.DC();this.dd--;this.Zb();this.dd++;g=this.zu.dg();
a=0;for(d=g.length;a<d;a++)g[a].QE();a=0;for(d=this.G.length;a<d;a++)if(m=this.G[a],!m.N&&(m.ab.length||m.Ra.length))for(g=0,c=m.g.length;g<c;g++)for(e=m.g[g],b=0,l=e.ea.length;b<l;b++)e.ea[b].ib();a=0;for(d=this.G.length;a<d;a++)if(m=this.G[a],!m.N&&(m.ab.length||m.Ra.length))for(g=0,c=m.g.length;g<c;g++)for(e=m.g[g],b=0,l=e.ea.length;b<l;b++)n=e.ea[b],n.mC&&n.mC();g=this.Tp.dg();a=0;for(d=g.length;a<d;a++)g[a].ib();this.dd--;this.jB();for(a=0;this.tg&&10>a++;)this.Ts(this.tg);a=0;for(d=this.Le.length;a<
d;a++)this.Le[a].ip=!1;this.Ha.Bg&&this.Ha.Bg.rb();C(this.av);this.dd++;a=0;for(d=this.G.length;a<d;a++)if(m=this.G[a],!m.N&&(m.ab.length||m.Ra.length))for(g=0,c=m.g.length;g<c;g++)for(e=m.g[g],b=0,l=e.ea.length;b<l;b++)n=e.ea[b],n.nn&&n.nn();g=this.Up.dg();a=0;for(d=g.length;a<d;a++)g[a].nn();this.dd--};f.prototype.Ts=function(a){var d=this.Ha;this.Ha.TC();var g,c,b;if(this.C)for(g=0,c=this.G.length;g<c;g++)b=this.G[g],b.N||!b.tn||b.global&&0!==b.g.length||-1!==a.xj.indexOf(b)||b.tn();d==a&&C(this.we.Mc);
C(this.av);this.dv(!0);a.Aq();this.dv(!1);this.Ba=!0;this.Zb()};f.prototype.dv=function(a){var d,g,c,b,l,m,e,n,h;d=0;for(g=this.ab.length;d<g;d++)c=this.ab[d],a?c.$j&&c.$j():c.ak&&c.ak();d=0;for(g=this.G.length;d<g;d++)if(c=this.G[d],c.global||c.u.bn)for(b=0,l=c.g.length;b<l;b++)if(m=c.g[b],a?m.$j&&m.$j():m.ak&&m.ak(),m.ea)for(e=0,n=m.ea.length;e<n;e++)h=m.ea[e],a?h.$j&&h.$j():h.ak&&h.ak()};f.prototype.Eq=function(a){this.Tp.add(a)};f.prototype.ZC=function(a){this.Up.add(a)};f.prototype.Mh=function(a){return a&&
-1!==a.Yj?this.xg*a.Yj:this.If};f.prototype.Ke=function(){this.Ha.Ke(this.Va);this.vc&&this.Va.present()};f.prototype.Qc=function(){this.Qa&&(this.yg=1,this.Ha.wg(this.C));this.Ha.Qc(this.C);this.C.qC()};f.prototype.dl=function(a){a&&this.yl.push(a)};f.prototype.kq=function(a){Ea(this.yl,a)};f.prototype.jc=function(a){a=a.toString();return this.Ve.hasOwnProperty(a)?this.Ve[a]:null};var A=[];f.prototype.pf=function(a){var d,g;d=a.type.name;var c=null;if(this.vg.hasOwnProperty(d)){if(c=this.vg[d],c.contains(a))return}else c=
A.length?A.pop():new da,this.vg[d]=c;c.add(a);this.Mf=!0;if(a.wc)for(d=0,g=a.siblings.length;d<g;d++)this.pf(a.siblings[d]);this.tp&&c.Ki.push(a);this.sp||(this.dd++,this.trigger(Object.getPrototypeOf(a.type.u).j.ix,a),this.dd--)};f.prototype.Zb=function(){if(this.Mf){var a,d,g,c,b,l;this.tp=!0;g=0;for(b=this.ae.length;g<b;++g)for(a=this.ae[g],d=a.type,d.g.push(a),c=0,l=d.Ra.length;c<l;++c)d.Ra[c].g.push(a),d.Ra[c].Ci=!0;C(this.ae);this.Nw();Xa(this.vg);this.Mf=this.tp=!1}};f.prototype.Nw=function(){for(var a in this.vg)this.vg.hasOwnProperty(a)&&
this.jw(this.vg[a])};f.prototype.jw=function(a){var d=a.dg(),g=d[0].type,c,b,l,m,e,n;Za(g.g,a);g.Ci=!0;0===g.g.length&&(g.vs=!1);c=0;for(b=g.Ra.length;c<b;++c)n=g.Ra[c],Za(n.g,a),n.Ci=!0;c=0;for(b=this.we.Mc.length;c<b;++c)if(e=this.we.Mc[c],e.zc.hasOwnProperty(g.index)&&Za(e.zc[g.index].Pe,a),!g.N)for(l=0,m=g.Ra.length;l<m;++l)n=g.Ra[l],e.zc.hasOwnProperty(n.index)&&Za(e.zc[n.index].Pe,a);if(e=d[0].A){if(e.kd)for(l=e.g,c=0,b=l.length;c<b;++c)m=l[c],a.contains(m)&&(m.Nb(),e.Wb.update(m,m.Ic,null),
m.Ic.set(0,0,-1,-1));Za(e.g,a);e.pk(0)}for(c=0;c<d.length;++c)this.iw(d[c],g);a.clear();A.push(a);this.Ba=!0};f.prototype.iw=function(a,d){var g,c,b;g=0;for(c=this.yl.length;g<c;++g)this.yl[g](a);a.Ff&&d.Js.update(a,a.Ff,null);(g=a.A)&&g.ti(a,!0);if(a.ea)for(g=0,c=a.ea.length;g<c;++g)b=a.ea[g],b.We&&b.We(),b.behavior.Qp.remove(a);this.zu.remove(a);this.Tp.remove(a);this.Up.remove(a);a.We&&a.We();this.Ve.hasOwnProperty(a.uid.toString())&&delete this.Ve[a.uid.toString()];this.wm--;100>d.tl.length&&
d.tl.push(a)};f.prototype.ol=function(a,d,g,c){if(a.N){var b=qa(Math.random()*a.hi.length);return this.ol(a.hi[b],d,g,c)}return a.od?this.Gf(a.od,d,!1,g,c,!1):null};var E=[];f.prototype.Gf=function(a,d,g,c,b,l){var m,e,n,h;if(!a)return null;var r=this.G[a[1]],k=r.u.Rf;if(this.$h&&k&&!r.up||k&&!this.C&&11===a[0][11])return null;var p=d;k||(d=null);var f;r.tl.length?(f=r.tl.pop(),f.Mb=!0,r.u.I.call(f,r)):(f=new r.u.I(r),f.Mb=!1);!g||l||this.Ve.hasOwnProperty(a[2].toString())?f.uid=this.Zj++:f.uid=a[2];
this.Ve[f.uid.toString()]=f;f.Xu=this.vu++;f.Lg=r.g.length;m=0;for(e=this.ae.length;m<e;++m)this.ae[m].type===r&&f.Lg++;f.sj=Ib;f.toString=Jb;n=a[3];if(f.Mb)Xa(f.ma);else{f.ma={};if("undefined"!==typeof cr_is_preview)for(f.Ft=[],f.Ft.length=n.length,m=0,e=n.length;m<e;m++)f.Ft[m]=n[m][1];f.Bb=[];f.Bb.length=n.length}m=0;for(e=n.length;m<e;m++)f.Bb[m]=n[m][0];if(k){var w=a[0];f.x=ha(c)?w[0]:c;f.y=ha(b)?w[1]:b;f.z=w[2];f.width=w[3];f.height=w[4];f.depth=w[5];f.n=w[6];f.opacity=w[7];f.tc=w[8];f.uc=w[9];
f.ac=w[10];m=w[11];!this.C&&r.Y.length&&(f.ac=m);f.dj=hb(f.ac);this.H&&ib(f,f.ac,this.H);if(f.Mb){m=0;for(e=w[12].length;m<e;m++)for(n=0,h=w[12][m].length;n<h;n++)f.eb[m][n]=w[12][m][n];f.$b.set(0,0,0,0);f.Ff.set(0,0,-1,-1);f.Ic.set(0,0,-1,-1);f.xh.an(f.$b);C(f.io)}else{f.eb=w[12].slice(0);m=0;for(e=f.eb.length;m<e;m++)f.eb[m]=w[12][m].slice(0);f.Ca=[];f.vf=[];f.vf.length=r.Y.length;f.$b=new va(0,0,0,0);f.Ff=new va(0,0,-1,-1);f.Ic=new va(0,0,-1,-1);f.xh=new wa;f.io=[];f.Ta=Mb;f.AE=Nb;f.md=Ob;f.Nb=
Pb;f.fD=Qb;f.XE=Rb;f.ie=Sb}f.aD=!1;f.cD=0;f.bD=0;f.$C=null;14===w.length&&(f.aD=!0,f.cD=w[13][0],f.bD=w[13][1],f.$C=w[13][2]);m=0;for(e=r.Y.length;m<e;m++)f.vf[m]=!0;f.df=!0;f.Td=Tb;f.Td();f.Tv=!!f.Ca.length;f.ho=!0;f.no=!0;r.us=!0;f.visible=!0;f.Yj=-1;f.A=d;f.Vd=d.g.length;f.yg=0;"undefined"===typeof f.$d&&(f.$d=null);this.Ba=f.cj=!0}var q;C(E);m=0;for(e=r.Ra.length;m<e;m++)E.push.apply(E,r.Ra[m].ab);E.push.apply(E,r.ab);if(f.Mb)for(m=0,e=E.length;m<e;m++){var t=E[m];q=f.ea[m];q.Mb=!0;t.behavior.I.call(q,
t,f);w=a[4][m];n=0;for(h=w.length;n<h;n++)q.q[n]=w[n];q.K();t.behavior.Qp.add(f)}else for(f.ea=[],m=0,e=E.length;m<e;m++)t=E[m],q=new t.behavior.I(t,f),q.Mb=!1,q.q=a[4][m].slice(0),q.K(),f.ea.push(q),t.behavior.Qp.add(f);w=a[5];if(f.Mb)for(m=0,e=w.length;m<e;m++)f.q[m]=w[m];else f.q=w.slice(0);this.ae.push(f);this.Mf=!0;d&&(d.$i(f,!0),1!==d.Xe||1!==d.Ye)&&(r.vs=!0);this.wm++;if(r.wc){if(f.wc=!0,f.Mb?C(f.siblings):f.siblings=[],!g&&!l){m=0;for(e=r.Pc.length;m<e;m++)if(r.Pc[m]!==r){if(!r.Pc[m].od)return null;
f.siblings.push(this.Gf(r.Pc[m].od,p,!1,k?f.x:c,k?f.y:b,!0))}m=0;for(e=f.siblings.length;m<e;m++)for(f.siblings[m].siblings.push(f),n=0;n<e;n++)m!==n&&f.siblings[m].siblings.push(f.siblings[n])}}else f.wc=!1,f.siblings=null;f.K();m=0;for(e=f.ea.length;m<e;m++)f.ea[m].lC&&f.ea[m].lC();return f};f.prototype.bp=function(a){var d,g;d=0;for(g=this.Ha.da.length;d<g;d++){var c=this.Ha.da[d];if(pb(c.name,a))return c}return null};f.prototype.qj=function(a){a=qa(a);0>a&&(a=0);a>=this.Ha.da.length&&(a=this.Ha.da.length-
1);return this.Ha.da[a]};f.prototype.so=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].U().na=!0};f.prototype.fk=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].fk()};f.prototype.$g=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].$g()};f.prototype.re=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].re()};f.prototype.jn=function(a,d,g){var c=a.U(),b,l,m,e,n=this.Ab().xb.xd,h,r,f;if(c.na)for(c.na=!1,C(c.g),b=0,e=a.g.length;b<e;b++)m=a.g[b],m.Nb(),h=m.A.rc(d,g,!0),r=m.A.rc(d,g,!1),m.md(h,
r)?c.g.push(m):n&&c.ka.push(m);else{l=0;f=n?c.ka:c.g;b=0;for(e=f.length;b<e;b++)m=f[b],m.Nb(),h=m.A.rc(d,g,!0),r=m.A.rc(d,g,!1),m.md(h,r)&&(n?c.g.push(m):(c.g[l]=c.g[b],l++));f.length=l}a.Id();return c.hp()};new wa;new va(0,0,0,0);f.prototype.Nv=function(a,d){if(!d)return!1;var g,c,b,l,m;g=0;for(c=a.ab.length;g<c;g++)if(a.ab[g].behavior instanceof d)return!0;if(!a.N)for(g=0,c=a.Ra.length;g<c;g++)for(m=a.Ra[g],b=0,l=m.ab.length;b<l;b++)if(m.ab[b].behavior instanceof d)return!0;return!1};f.prototype.Jq=
function(a){return this.Nv(a,jc.ND)};f.prototype.Kq=function(a){return this.Nv(a,jc.PD)};var I=-1;f.prototype.trigger=function(a,d,g){if(!this.Ha)return!1;var c=this.Ha.Bg;if(!c)return!1;var b=!1,l,m,e;I++;var n=c.zo;m=0;for(e=n.length;m<e;++m)l=this.Kv(a,d,n[m],g),b=b||l;l=this.Kv(a,d,c,g);I--;return b||l};f.prototype.Kv=function(a,d,g,c){var b=!1,l,m,e,n;if(d)for(e=this.Hq(a,d,d.type.name,g,c),b=b||e,n=d.type.Ra,l=0,m=n.length;l<m;++l)e=this.Hq(a,d,n[l].name,g,c),b=b||e;else e=this.Hq(a,d,"system",
g,c),b=b||e;return b};f.prototype.Hq=function(a,d,g,c,b){var l,m=!1,e=!1,e="undefined"!==typeof b,n=(e?c.Ys:c.Lv)[g];if(!n)return m;var h=null;c=0;for(l=n.length;c<l;++c)if(n[c].method==a){h=n[c].jj;break}if(!h)return m;var r;e?r=h[b]:r=h;if(!r)return null;c=0;for(l=r.length;c<l;c++)a=r[c][0],b=r[c][1],e=this.zA(d,g,a,b),m=m||e;return m};f.prototype.zA=function(a,d,g,c){var b,l,m=!1;this.Iq++;var e=this.Ab().xb;e&&this.fk(e.ag);var n=1<this.Iq;this.fk(g.ag);n&&this.sC();var h=this.Rm(g);h.xb=g;a&&
(b=this.types[d].U(),b.na=!1,C(b.g),b.g[0]=a,this.types[d].Id());a=!0;if(g.parent){d=h.Fv;for(b=g.parent;b;)d.push(b),b=b.parent;d.reverse();b=0;for(l=d.length;b<l;b++)if(!d[b].FC()){a=!1;break}}a&&(this.kj++,g.xd?g.EC(c):g.rb(),m=m||h.Sg);this.Lm();n&&this.jC();this.re(g.ag);e&&this.re(e.ag);this.Mf&&0===this.dd&&0===I&&!this.vp&&this.Zb();this.Iq--;return m};f.prototype.kt=function(){var a=this.Ab();return a.xb.wb[a.ub]};f.prototype.sC=function(){this.qm++;this.qm>=this.Jp.length&&this.Jp.push([])};
f.prototype.jC=function(){this.qm--};f.prototype.lt=function(){return this.Jp[this.qm]};f.prototype.Rm=function(a){this.Al++;this.Al>=this.Eo.length&&this.Eo.push(new Vb);var d=this.Ab();d.reset(a);return d};f.prototype.Lm=function(){this.Al--};f.prototype.Ab=function(){return this.Eo[this.Al]};f.prototype.tC=function(a){this.Uj++;this.Uj>=this.Tj.length&&this.Tj.push(aa({name:a,index:0,tb:!1}));var d=this.nt();d.name=a;d.index=0;d.tb=!1;return d};f.prototype.kC=function(){this.Uj--};f.prototype.nt=
function(){return this.Tj[this.Uj]};f.prototype.pt=function(a,d){for(var g,c,b,l,m,e;d;){g=0;for(c=d.Bd.length;g<c;g++)if(e=d.Bd[g],e instanceof Wb&&pb(a,e.name))return e;d=d.parent}g=0;for(c=this.Le.length;g<c;g++)for(m=this.Le[g],b=0,l=m.yb.length;b<l;b++)if(e=m.yb[b],e instanceof Wb&&pb(a,e.name))return e;return null};f.prototype.qt=function(a){var d,g;d=0;for(g=this.Nd.length;d<g;d++)if(this.Nd[d].qa===a)return this.Nd[d];return null};f.prototype.Sl=function(a){var d,g;d=0;for(g=this.G.length;d<
g;d++)if(this.G[d].qa===a)return this.G[d];return null};f.prototype.IA=function(a){var d,g;d=0;for(g=this.xf.length;d<g;d++)if(this.xf[d].qa===a)return this.xf[d];return null};f.prototype.uz=function(a,d){this.sk=[a,d];this.Ba=!0};f.prototype.jB=function(){var a=this,d=this.tq,g=this.Se,l=this.km,m=!1;this.zv&&(m=!0,d="__c2_continuouspreview",this.zv=!1);if(d.length){this.Zb();g=this.JC();if(b()&&!this.td)e(d,g,function(){fa("Saved state to IndexedDB storage ("+g.length+" bytes)");a.Se=g;a.trigger(O.prototype.j.Ln,
null);a.Se="";m&&c()},function(b){try{localStorage.setItem("__c2save_"+d,g),fa("Saved state to WebStorage ("+g.length+" bytes)"),a.Se=g,a.trigger(O.prototype.j.Ln,null),a.Se="",m&&c()}catch(l){fa("Failed to save game state: "+b+"; "+l),a.trigger(O.prototype.j.Br,null)}});else try{localStorage.setItem("__c2save_"+d,g),fa("Saved state to WebStorage ("+g.length+" bytes)"),a.Se=g,this.trigger(O.prototype.j.Ln,null),a.Se="",m&&c()}catch(n){fa("Error saving to WebStorage: "+n),a.trigger(O.prototype.j.Br,
null)}this.lc=this.km=this.tq=""}if(l.length){if(b()&&!this.td)p(l,function(d){d?(a.lc=d,fa("Loaded state from IndexedDB storage ("+a.lc.length+" bytes)")):(a.lc=localStorage.getItem("__c2save_"+l)||"",fa("Loaded state from WebStorage ("+a.lc.length+" bytes)"));a.vk=!1;a.lc.length||a.trigger(O.prototype.j.Kn,null)},function(){a.lc=localStorage.getItem("__c2save_"+l)||"";fa("Loaded state from WebStorage ("+a.lc.length+" bytes)");a.vk=!1;a.lc.length||a.trigger(O.prototype.j.Kn,null)});else{try{this.lc=
localStorage.getItem("__c2save_"+l)||"",fa("Loaded state from WebStorage ("+this.lc.length+" bytes)")}catch(h){this.lc=""}this.vk=!1;a.lc.length||a.trigger(O.prototype.j.Kn,null)}this.tq=this.km=""}this.lc.length&&(this.Zb(),this.JB(this.lc),this.Se=this.lc,this.trigger(O.prototype.j.Ax,null),this.lc=this.Se="")};f.prototype.JC=function(){var d,g,c,b,l,m,e,n={c2save:!0,version:1,rt:{time:this.Ib.Z,walltime:this.jf.Z,timescale:this.Gi,tickcount:this.Bk,execcount:this.kj,next_uid:this.Zj,running_layout:this.Ha.qa,
start_time_offset:Date.now()-this.cn},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(g=this.G.length;d<g;d++)if(l=this.G[d],!l.N&&!this.Jq(l)){m={instances:[]};Va(l.ma)&&(m.ex=a(l.ma));c=0;for(b=l.g.length;c<b;c++)m.instances.push(this.sq(l.g[c]));n.types[l.qa.toString()]=m}d=0;for(g=this.Nd.length;d<g;d++)c=this.Nd[d],n.layouts[c.qa.toString()]=c.wa();b=n.events.groups;d=0;for(g=this.xf.length;d<g;d++)c=this.xf[d],b[c.qa.toString()]=this.Oh[c.tj].Hg;g=n.events.cnds;for(e in this.Ef)this.Ef.hasOwnProperty(e)&&
(d=this.Ef[e],Va(d.ma)&&(g[e]={ex:a(d.ma)}));g=n.events.acts;for(e in this.wf)this.wf.hasOwnProperty(e)&&(d=this.wf[e],Va(d.ma)&&(g[e]={ex:a(d.ma)}));g=n.events.vars;for(e in this.Li)this.Li.hasOwnProperty(e)&&(d=this.Li[e],d.dm||d.parent&&!d.Hj||(g[e]=d.data));n.system=this.we.wa();return JSON.stringify(n)};f.prototype.$u=function(){var a,d,g,c,b,l;this.Ve={};a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.N)for(c=0,b=g.g.length;c<b;c++)l=g.g[c],this.Ve[l.uid.toString()]=l};f.prototype.JB=function(a){a=
JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Bj=!0;var d=a.rt;this.Ib.reset();this.Ib.Z=d.time;this.jf.reset();this.jf.Z=d.walltime||0;this.Gi=d.timescale;this.Bk=d.tickcount;this.kj=d.execcount;this.cn=Date.now()-d.start_time_offset;var g=d.running_layout;if(g!==this.Ha.qa)if(g=this.qt(g))this.Ts(g);else return;var c,b,l,m,e,n,h;n=a.types;for(b in n)if(n.hasOwnProperty(b)&&(m=this.Sl(parseInt(b,10)))&&!m.N&&!this.Jq(m)){n[b].ex?m.ma=n[b].ex:Xa(m.ma);e=m.g;l=n[b].instances;g=0;for(c=oa(e.length,
l.length);g<c;g++)this.lm(e[g],l[g]);g=l.length;for(c=e.length;g<c;g++)this.pf(e[g]);g=e.length;for(c=l.length;g<c;g++){e=null;if(m.u.Rf&&(e=this.Ha.Rl(l[g].w.l),!e))continue;e=this.Gf(m.od,e,!1,0,0,!0);this.lm(e,l[g])}m.Ci=!0}this.Zb();this.$u();c=a.layouts;for(b in c)c.hasOwnProperty(b)&&(g=this.qt(parseInt(b,10)))&&g.Fa(c[b]);c=a.events.groups;for(b in c)c.hasOwnProperty(b)&&(g=this.IA(parseInt(b,10)))&&this.Oh[g.tj]&&this.Oh[g.tj].nk(c[b]);g=a.events.cnds;for(b in this.Ef)this.Ef.hasOwnProperty(b)&&
(g.hasOwnProperty(b)?this.Ef[b].ma=g[b].ex:this.Ef[b].ma={});g=a.events.acts;for(b in this.wf)this.wf.hasOwnProperty(b)&&(g.hasOwnProperty(b)?this.wf[b].ma=g[b].ex:this.wf[b].ma={});g=a.events.vars;for(b in g)g.hasOwnProperty(b)&&this.Li.hasOwnProperty(b)&&(this.Li[b].data=g[b]);this.Zj=d.next_uid;this.Bj=!1;g=0;for(c=this.Jl.length;g<c;++g)e=this.Jl[g],this.trigger(Object.getPrototypeOf(e.type.u).j.ig,e);C(this.Jl);this.we.Fa(a.system);g=0;for(c=this.G.length;g<c;g++)if(m=this.G[g],!m.N&&!this.Jq(m))for(b=
0,a=m.g.length;b<a;b++){e=m.g[b];if(m.wc)for(n=e.sj(),C(e.siblings),d=0,l=m.Pc.length;d<l;d++)h=m.Pc[d],m!==h&&e.siblings.push(h.g[n]);e.qc&&e.qc();if(e.ea)for(d=0,l=e.ea.length;d<l;d++)n=e.ea[d],n.qc&&n.qc()}this.Ba=!0}};f.prototype.sq=function(d,g){var c,b,l,m,e;m=d.type;l=m.u;var n={};g?n.c2=!0:n.uid=d.uid;Va(d.ma)&&(n.ex=a(d.ma));if(d.Bb&&d.Bb.length)for(n.ivs={},c=0,b=d.Bb.length;c<b;c++)n.ivs[d.type.pp[c].toString()]=d.Bb[c];if(l.Rf){l={x:d.x,y:d.y,w:d.width,h:d.height,l:d.A.qa,zi:d.ie()};0!==
d.n&&(l.a=d.n);1!==d.opacity&&(l.o=d.opacity);.5!==d.tc&&(l.hX=d.tc);.5!==d.uc&&(l.hY=d.uc);0!==d.ac&&(l.bm=d.ac);d.visible||(l.v=d.visible);d.cj||(l.ce=d.cj);-1!==d.Yj&&(l.mts=d.Yj);if(m.Y.length)for(l.fx=[],c=0,b=m.Y.length;c<b;c++)e=m.Y[c],l.fx.push({name:e.name,active:d.vf[e.index],params:d.eb[e.index]});n.w=l}if(d.ea&&d.ea.length)for(n.behs={},c=0,b=d.ea.length;c<b;c++)m=d.ea[c],m.wa&&(n.behs[m.type.qa.toString()]=m.wa());d.wa&&(n.data=d.wa());return n};f.prototype.KA=function(a,d){var g,c;g=
0;for(c=a.pp.length;g<c;g++)if(a.pp[g]===d)return g;return-1};f.prototype.HA=function(a,d){var g,c;g=0;for(c=a.ea.length;g<c;g++)if(a.ea[g].type.qa===d)return g;return-1};f.prototype.lm=function(a,d,g){var c,b,l,m,e;e=a.type;m=e.u;if(g){if(!d.c2)return}else a.uid=d.uid;d.ex?a.ma=d.ex:Xa(a.ma);if(b=d.ivs)for(c in b)b.hasOwnProperty(c)&&(l=this.KA(e,parseInt(c,10)),0>l||l>=a.Bb.length||(a.Bb[l]=b[c]));if(m.Rf){l=d.w;a.A.qa!==l.l&&(b=a.A,a.A=this.Ha.Rl(l.l),a.A?(b.ti(a,!0),a.A.$i(a,!0),a.Ta(),a.A.pk(0)):
(a.A=b,g||this.pf(a)));a.x=l.x;a.y=l.y;a.width=l.w;a.height=l.h;a.Vd=l.zi;a.n=l.hasOwnProperty("a")?l.a:0;a.opacity=l.hasOwnProperty("o")?l.o:1;a.tc=l.hasOwnProperty("hX")?l.hX:.5;a.uc=l.hasOwnProperty("hY")?l.hY:.5;a.visible=l.hasOwnProperty("v")?l.v:!0;a.cj=l.hasOwnProperty("ce")?l.ce:!0;a.Yj=l.hasOwnProperty("mts")?l.mts:-1;a.ac=l.hasOwnProperty("bm")?l.bm:0;a.dj=hb(a.ac);this.H&&ib(a,a.ac,this.H);a.Ta();if(l.hasOwnProperty("fx"))for(g=0,b=l.fx.length;g<b;g++)m=e.Yo(l.fx[g].name),0>m||(a.vf[m]=
l.fx[g].active,a.eb[m]=l.fx[g].params);a.Td()}if(e=d.behs)for(c in e)e.hasOwnProperty(c)&&(g=this.HA(a,parseInt(c,10)),0>g||a.ea[g].Fa(e[c]));d.data&&a.Fa(d.data)};f.prototype.Zs=function(a,d,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,g)},g)};f.prototype.bt=function(a,d){this.Zs("data.js",function(g){var c=new FileReader;c.onload=function(d){a(d.target.result)};c.onerror=d;c.readAsText(g)},d)};var S=[],z=0;f.prototype.Lp=function(){if(S.length&&
!(8<=z)){z++;var a=S.shift();this.xz(a.filename,a.WC,a.Wz)}};f.prototype.$s=function(a,d,g){var c=this;S.push({filename:a,WC:function(a){z--;c.Lp();d(a)},Wz:function(a){z--;c.Lp();g(a)}});this.Lp()};f.prototype.xz=function(a,d,g){this.Zs(a,function(a){var g=new FileReader;g.onload=function(a){d(a.target.result)};g.readAsArrayBuffer(a)},g)};f.prototype.AA=function(a,d,g){this.$s(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},g)};f.prototype.qB=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||
"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.qv=function(a,d){this.Fj&&!this.qB(d)?this.AA(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};f.prototype.Xm=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Xb=function(a){return new f(document.getElementById(a))};Yb=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=
Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.cb=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,k){var b=window.cr_getC2Runtime();b&&b.uz(f,k)};window.cr_sizeCanvas=function(f,k){if(0!==f&&0!==k){var b=window.cr_getC2Runtime();b&&b.setSize(f,k)}};window.cr_setSuspended=function(f){var k=window.cr_getC2Runtime();k&&k.setSuspended(f)};
(function(){function f(a,d){this.c=a;this.Bg=null;this.scrollX=this.c.Fb/2;this.scrollY=this.c.Eb/2;this.scale=1;this.n=0;this.Lh=!0;this.name=d[0];this.dC=d[1];this.cC=d[2];this.width=d[1];this.height=d[2];this.Pv=d[3];this.xv=d[4];this.qa=d[5];var c=d[6],b,e;this.da=[];this.xj=[];b=0;for(e=c.length;b<e;b++){var n=new Zb(this,c[b]);n.xu=b;this.da.push(n)}c=d[7];this.Ng=[];b=0;for(e=c.length;b<e;b++){var n=c[b],h=this.c.G[n[1]];h.od||(h.od=n);this.Ng.push(n);-1===this.xj.indexOf(h)&&this.xj.push(h)}this.Y=
[];this.Ca=[];this.df=!0;this.eb=[];b=0;for(e=d[8].length;b<e;b++)this.Y.push({id:d[8][b][0],name:d[8][b][1],sb:-1,Pd:!1,jb:!0,index:b}),this.eb.push(d[8][b][2].slice(0));this.Td();this.kk=new va(0,0,1,1);this.iq=new va(0,0,1,1);this.Xf={}}function k(a,d){return a.Vd-d.Vd}function b(a,d){this.Ma=a;this.c=a.c;this.g=[];this.scale=1;this.n=0;this.Je=!1;this.gf=new va(0,0,0,0);this.Jv=new wa;this.Na=this.La=this.Oa=this.Ka=0;this.hh=!1;this.kf=-1;this.to=0;this.name=d[0];this.index=d[1];this.qa=d[2];
this.visible=d[3];this.Jd=d[4];this.Sd=d[5];this.Xe=d[6];this.Ye=d[7];this.opacity=d[8];this.Ml=d[9];this.kd=d[10];this.lf=d[11];this.ac=d[12];this.Rz=d[13];this.dj="source-over";this.hc=this.mc=0;this.Wb=null;this.Te=h();this.Qd=!0;this.ci=new va(0,0,-1,-1);this.Pb=new va(0,0,-1,-1);this.kd&&(this.Wb=new gb(this.c.Fb,this.c.Eb));this.te=!1;var c=d[14],b,e;this.Dv=[];this.cd=[];this.gj=[];b=0;for(e=c.length;b<e;b++){var n=c[b],f=this.c.G[n[1]];f.od||(f.od=n,f.qz=this.index);this.cd.push(n);-1===this.Ma.xj.indexOf(f)&&
this.Ma.xj.push(f)}Aa(this.Dv,this.cd);this.Y=[];this.Ca=[];this.df=!0;this.eb=[];b=0;for(e=d[15].length;b<e;b++)this.Y.push({id:d[15][b][0],name:d[15][b][1],sb:-1,Pd:!1,jb:!0,index:b}),this.eb.push(d[15][b][2].slice(0));this.Td();this.kk=new va(0,0,1,1);this.iq=new va(0,0,1,1)}function h(){return a.length?a.pop():[]}function e(g){C(g);a.push(g)}f.prototype.IC=function(a){var d=a.type.qa.toString();this.Xf.hasOwnProperty(d)||(this.Xf[d]=[]);this.Xf[d].push(this.c.sq(a))};f.prototype.yt=function(){var a=
this.da[0];return!a.Sd&&1===a.opacity&&!a.Ml&&a.visible};f.prototype.Td=function(){C(this.Ca);this.df=!0;var a,d,c;a=0;for(d=this.Y.length;a<d;a++)c=this.Y[a],c.jb&&(this.Ca.push(c),c.Pd||(this.df=!1))};f.prototype.Xo=function(a){var d,c,b;d=0;for(c=this.Y.length;d<c;d++)if(b=this.Y[d],b.name===a)return b;return null};var p=[],c=!0;f.prototype.Aq=function(){this.xv&&(this.Bg=this.c.Fo[this.xv],this.Bg.Lq());this.c.Ha=this;this.width=this.dC;this.height=this.cC;this.scrollX=this.c.Fb/2;this.scrollY=
this.c.Eb/2;var a,d,b,m,e,n,h;a=0;for(b=this.c.G.length;a<b;a++)if(d=this.c.G[a],!d.N)for(e=d.g,d=0,m=e.length;d<m;d++)if(n=e[d],n.A){var r=n.A.xu;r>=this.da.length&&(r=this.da.length-1);n.A=this.da[r];-1===n.A.g.indexOf(n)&&n.A.g.push(n);n.A.hh=!0}if(!c)for(a=0,b=this.da.length;a<b;++a)this.da[a].g.sort(k);C(p);this.$y();a=0;for(b=this.da.length;a<b;a++)n=this.da[a],n.pz(),n.wn();e=!1;if(!this.Lh){for(h in this.Xf)if(this.Xf.hasOwnProperty(h)&&(d=this.c.Sl(parseInt(h,10)))&&!d.N&&this.c.Kq(d)){m=
this.Xf[h];a=0;for(b=m.length;a<b;a++){n=null;if(d.u.Rf&&(n=this.Rl(m[a].w.l),!n))continue;n=this.c.Gf(d.od,n,!1,0,0,!0);this.c.lm(n,m[a]);e=!0;p.push(n)}C(m)}a=0;for(b=this.da.length;a<b;a++)this.da[a].g.sort(k),this.da[a].hh=!0}e&&(this.c.Zb(),this.c.$u());for(a=0;a<p.length;a++)if(n=p[a],n.type.wc)for(b=n.sj(),d=0,m=n.type.Pc.length;d<m;d++)h=n.type.Pc[d],n.type!==h&&(h.g.length>b?n.siblings.push(h.g[b]):h.od&&(e=this.c.Gf(h.od,n.A,!0,n.x,n.y,!0),this.c.Zb(),h.un(),n.siblings.push(e),p.push(e)));
a=0;for(b=this.Ng.length;a<b;a++)this.c.Gf(this.Ng[a],null,!0);this.c.tg=null;this.c.Zb();if(this.c.Va&&!this.c.Cb)for(a=0,b=this.c.G.length;a<b;a++)h=this.c.G[a],!h.N&&h.g.length&&h.Om&&h.Om(this.c.Va);if(this.c.Bj)Aa(this.c.Jl,p);else for(a=0,b=p.length;a<b;a++)n=p[a],this.c.trigger(Object.getPrototypeOf(n.type.u).j.ig,n);C(p);this.c.Bj||this.c.trigger(O.prototype.j.ur,null);this.Lh=!1};f.prototype.oz=function(){var a,d,c,b,e;d=a=0;for(c=this.Ng.length;a<c;a++)b=this.Ng[a],e=this.c.G[b[1]],e.global?
e.wc||this.c.Gf(b,null,!0):(this.Ng[d]=b,d++);za(this.Ng,d)};f.prototype.TC=function(){this.c.Bj||this.c.trigger(O.prototype.j.zx,null);this.c.sp=!0;C(this.c.we.Mc);var a,d,b,m,e,n;if(!this.Lh)for(a=0,d=this.da.length;a<d;a++)for(this.da[a].Oq(),e=this.da[a].g,b=0,m=e.length;b<m;b++)n=e[b],n.type.global||this.c.Kq(n.type)&&this.IC(n);a=0;for(d=this.da.length;a<d;a++){e=this.da[a].g;b=0;for(m=e.length;b<m;b++)n=e[b],n.type.global||this.c.pf(n);this.c.Zb();C(e);this.da[a].hh=!0}a=0;for(d=this.c.G.length;a<
d;a++)if(e=this.c.G[a],!(e.global||e.u.Rf||e.u.bn||e.N)){b=0;for(m=e.g.length;b<m;b++)this.c.pf(e.g[b]);this.c.Zb()}c=!1;this.c.sp=!1};new va(0,0,0,0);f.prototype.Ke=function(a){var d,c=a,b=!1,e=!this.c.ad;e&&(this.c.jm||(this.c.jm=document.createElement("canvas"),d=this.c.jm,d.width=this.c.S,d.height=this.c.R,this.c.Wt=d.getContext("2d"),b=!0),d=this.c.jm,c=this.c.Wt,d.width!==this.c.S&&(d.width=this.c.S,b=!0),d.height!==this.c.R&&(d.height=this.c.R,b=!0),b&&this.c.Xm(c,this.c.Sa));c.globalAlpha=
1;c.globalCompositeOperation="source-over";this.c.co&&!this.yt()&&c.clearRect(0,0,this.c.S,this.c.R);var n,h,b=0;for(n=this.da.length;b<n;b++)h=this.da[b],h.visible&&0<h.opacity&&11!==h.ac&&(h.g.length||!h.Sd)?h.Ke(c):h.wn();e&&a.drawImage(d,0,0,this.c.width,this.c.height)};f.prototype.wg=function(a){a.pv(!0);this.c.pb||(this.c.pb=a.nd(this.c.S,this.c.R,this.c.Sa));if(this.c.pb.sg!==this.c.S||this.c.pb.rg!==this.c.R)a.deleteTexture(this.c.pb),this.c.pb=a.nd(this.c.S,this.c.R,this.c.Sa);a.zd(this.c.pb);
this.c.ad||a.eh(this.c.S,this.c.R);var d,c;for(d=this.da.length-1;0<=d;--d)c=this.da[d],c.visible&&1===c.opacity&&c.df&&0===c.ac&&(c.g.length||!c.Sd)?c.wg(a):c.wn();a.pv(!1)};f.prototype.Qc=function(a){var d=0<this.Ca.length||this.c.Ji||!this.c.ad||this.c.Qa;if(d){this.c.pb||(this.c.pb=a.nd(this.c.S,this.c.R,this.c.Sa));if(this.c.pb.sg!==this.c.S||this.c.pb.rg!==this.c.R)a.deleteTexture(this.c.pb),this.c.pb=a.nd(this.c.S,this.c.R,this.c.Sa);a.zd(this.c.pb);this.c.ad||a.eh(this.c.S,this.c.R)}else this.c.pb&&
(a.zd(null),a.deleteTexture(this.c.pb),this.c.pb=null);this.c.co&&!this.yt()&&a.clear(0,0,0,0);var c,b,e;c=0;for(b=this.da.length;c<b;c++)e=this.da[c],e.visible&&0<e.opacity&&(e.g.length||!e.Sd)?e.Qc(a):e.wn();d&&(0===this.Ca.length||1===this.Ca.length&&this.c.ad?(1===this.Ca.length?(d=this.Ca[0].index,a.Lc(this.Ca[0].sb),a.Ai(null,1/this.c.S,1/this.c.R,0,0,1,1,this.scale,this.n,0,0,this.c.S/2,this.c.R/2,this.c.Ib.Z,this.eb[d]),a.Pm(this.Ca[0].sb)&&(this.c.Ba=!0)):a.Lc(0),this.c.ad||a.eh(this.c.width,
this.c.height),a.zd(null),a.nv(!1),a.dh(1),a.Xc(this.c.pb),a.kv(),a.ue(),a.Ud(),d=this.c.width/2,c=this.c.height/2,a.hk(-d,c,d,c,d,-c,-d,-c),a.Xc(null),a.nv(!0)):this.lq(a,null,null,null))};f.prototype.rj=function(){return 0<this.Ca.length||this.c.Ji||!this.c.ad||this.c.Qa?this.c.pb:null};f.prototype.tt=function(){var a=this.da[0].sd(),d,c,b;d=1;for(c=this.da.length;d<c;d++)b=this.da[d],(0!==b.Xe||0!==b.Ye)&&b.sd()<a&&(a=b.sd());return a};f.prototype.hv=function(a){if(!this.Pv){var d=1/this.tt()*
this.c.S/2;a>this.width-d&&(a=this.width-d);a<d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.c.Ba=!0)};f.prototype.jv=function(a){if(!this.Pv){var d=1/this.tt()*this.c.R/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.c.Ba=!0)};f.prototype.$y=function(){this.hv(this.scrollX);this.jv(this.scrollY)};f.prototype.lq=function(a,d,c,b){var e=c?c.Ca:d?d.Ca:this.Ca,n=1,h=0,r=0,f=0,k=this.c.S,p=this.c.R;c?(n=c.A.sd(),h=c.A.Rb(),r=c.A.Ka,f=c.A.La,k=c.A.Oa,p=c.A.Na):d&&
(n=d.sd(),h=d.Rb(),r=d.Ka,f=d.La,k=d.Oa,p=d.Na);var q=this.c.Uo,t,x,A,E,I=0,S=1,z,v,U=this.c.S,M=this.c.R,T=U/2,u=M/2,H=d?d.kk:this.kk,y=d?d.iq:this.iq,P=0,Q=0,J=0,L=0,V=U,ra=U,W=M,Ga=M,sa=A=0;E=c?c.A.Rb():0;if(c){t=0;for(x=e.length;t<x;t++)A+=a.OA(e[t].sb),sa+=a.PA(e[t].sb);L=c.$b;P=d.vd(L.left,L.top,!0);J=d.vd(L.left,L.top,!1);V=d.vd(L.right,L.bottom,!0);W=d.vd(L.right,L.bottom,!1);0!==E&&(t=d.vd(L.right,L.top,!0),x=d.vd(L.right,L.top,!1),Q=d.vd(L.left,L.bottom,!0),L=d.vd(L.left,L.bottom,!1),E=
Math.min(P,V,t,Q),V=Math.max(P,V,t,Q),P=E,E=Math.min(J,W,x,L),W=Math.max(J,W,x,L),J=E);P-=A;J-=sa;V+=A;W+=sa;y.left=P/U;y.top=1-J/M;y.right=V/U;y.bottom=1-W/M;Q=P=qa(P);L=J=qa(J);ra=V=ta(V);Ga=W=ta(W);Q-=A;L-=sa;ra+=A;Ga+=sa;0>P&&(P=0);0>J&&(J=0);V>U&&(V=U);W>M&&(W=M);0>Q&&(Q=0);0>L&&(L=0);ra>U&&(ra=U);Ga>M&&(Ga=M);H.left=P/U;H.top=1-J/M;H.right=V/U;H.bottom=1-W/M}else H.left=y.left=0,H.top=y.top=0,H.right=y.right=1,H.bottom=y.bottom=1;sa=c&&(a.ek(e[0].sb)||0!==A||0!==sa||1!==c.opacity||c.type.u.su)||
d&&!c&&1!==d.opacity;a.kv();if(sa){q[I]||(q[I]=a.nd(U,M,this.c.Sa));if(q[I].sg!==U||q[I].rg!==M)a.deleteTexture(q[I]),q[I]=a.nd(U,M,this.c.Sa);a.Lc(0);a.zd(q[I]);v=Ga-L;a.clearRect(Q,M-L-v,ra-Q,v);c?c.Qc(a):(a.Xc(this.c.Db),a.dh(d.opacity),a.ue(),a.translate(-T,-u),a.Ud(),a.se(P,W,V,W,V,J,P,J,H));y.left=y.top=0;y.right=y.bottom=1;c&&(E=H.top,H.top=H.bottom,H.bottom=E);I=1;S=0}a.dh(1);A=e.length-1;var Pa=a.gq(e[A].sb)||!d&&!c&&!this.c.ad;t=E=0;for(x=e.length;t<x;t++){q[I]||(q[I]=a.nd(U,M,this.c.Sa));
if(q[I].sg!==U||q[I].rg!==M)a.deleteTexture(q[I]),q[I]=a.nd(U,M,this.c.Sa);a.Lc(e[t].sb);E=e[t].index;a.Pm(e[t].sb)&&(this.c.Ba=!0);0!=t||sa?(a.Ai(b,1/U,1/M,y.left,y.top,y.right,y.bottom,n,h,r,f,(r+k)/2,(f+p)/2,this.c.Ib.Z,c?c.eb[E]:d?d.eb[E]:this.eb[E]),a.Xc(null),t!==A||Pa?(a.zd(q[I]),v=Ga-L,z=M-L-v,a.clearRect(Q,z,ra-Q,v)):(c?a.$f(c.mc,c.hc):d&&a.$f(d.mc,d.hc),a.zd(b)),a.Xc(q[S]),a.ue(),a.translate(-T,-u),a.Ud(),a.se(P,W,V,W,V,J,P,J,H),t!==A||Pa||a.Xc(null)):(a.zd(q[I]),v=Ga-L,z=M-L-v,a.clearRect(Q,
z,ra-Q,v),c?(c.bb&&c.bb.P?(z=c.bb.P,S=1/z.width,z=1/z.height):(S=1/c.width,z=1/c.height),a.Ai(b,S,z,y.left,y.top,y.right,y.bottom,n,h,r,f,(r+k)/2,(f+p)/2,this.c.Ib.Z,c.eb[E]),c.Qc(a)):(a.Ai(b,1/U,1/M,0,0,1,1,n,h,r,f,(r+k)/2,(f+p)/2,this.c.Ib.Z,d?d.eb[E]:this.eb[E]),a.Xc(d?this.c.Db:this.c.pb),a.ue(),a.translate(-T,-u),a.Ud(),a.se(P,W,V,W,V,J,P,J,H)),y.left=y.top=0,y.right=y.bottom=1,c&&!Pa&&(E=W,W=J,J=E));I=0===I?1:0;S=0===I?1:0}Pa&&(a.Lc(0),c?a.$f(c.mc,c.hc):d?a.$f(d.mc,d.hc):this.c.ad||(a.eh(this.c.width,
this.c.height),T=this.c.width/2,u=this.c.height/2,J=P=0,V=this.c.width,W=this.c.height),a.zd(b),a.Xc(q[S]),a.ue(),a.translate(-T,-u),a.Ud(),c&&1===e.length&&!sa?a.se(P,J,V,J,V,W,P,W,H):a.se(P,W,V,W,V,J,P,J,H),a.Xc(null))};f.prototype.Rl=function(a){var d,c;d=0;for(c=this.da.length;d<c;d++)if(this.da[d].qa===a)return this.da[d];return null};f.prototype.wa=function(){var a,d,c,b={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.Lh,persist:this.Xf,fx:[],layers:{}};
a=0;for(d=this.Y.length;a<d;a++)c=this.Y[a],b.fx.push({name:c.name,active:c.jb,params:this.eb[c.index]});a=0;for(d=this.da.length;a<d;a++)c=this.da[a],b.layers[c.qa.toString()]=c.wa();return b};f.prototype.Fa=function(a){var d,c,b,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.Xf=a.persist;"undefined"!==typeof a.fv&&(this.Lh=a.fv);var n=a.fx;d=0;for(c=n.length;d<c;d++)if(b=this.Xo(n[d].name))b.jb=n[d].active,this.eb[b.index]=n[d].params;this.Td();
d=a.layers;for(e in d)d.hasOwnProperty(e)&&(a=this.Rl(parseInt(e,10)))&&a.Fa(d[e])};Kb=f;b.prototype.Td=function(){C(this.Ca);this.df=!0;var a,d,c;a=0;for(d=this.Y.length;a<d;a++)c=this.Y[a],c.jb&&(this.Ca.push(c),c.Pd||(this.df=!1))};b.prototype.Xo=function(a){var d,c,b;d=0;for(c=this.Y.length;d<c;d++)if(b=this.Y[d],b.name===a)return b;return null};b.prototype.pz=function(){var a,d,c,b,e,n;d=a=0;for(c=this.cd.length;a<c;a++){b=this.cd[a];e=this.c.G[b[1]];n=this.c.Kq(e);e=!0;if(!n||this.Ma.Lh){b=
this.c.Gf(b,this,!0);if(!b)continue;p.push(b);b.type.global&&(e=!1,this.gj.push(b.uid))}e&&(this.cd[d]=this.cd[a],d++)}this.cd.length=d;this.c.Zb();!this.c.C&&this.Y.length&&(this.ac=this.Rz);this.dj=hb(this.ac);this.c.H&&ib(this,this.ac,this.c.H);this.Qd=!0};b.prototype.ti=function(a,d){var c=Da(this.g,a);0>c||(d&&this.kd&&a.Ic&&a.Ic.right>=a.Ic.left&&(a.Nb(),this.Wb.update(a,a.Ic,null),a.Ic.set(0,0,-1,-1)),c===this.g.length-1?this.g.pop():(ya(this.g,c),this.pk(c)),this.Qd=!0)};b.prototype.$i=function(a,
d){a.Vd=this.g.length;this.g.push(a);d&&this.kd&&a.Ic&&a.Ta();this.Qd=!0};b.prototype.pC=function(a){this.g.unshift(a);this.pk(0)};b.prototype.QB=function(a,d,c){var b=a.ie();d=d.ie();ya(this.g,b);b<d&&d--;c&&d++;d===this.g.length?this.g.push(a):this.g.splice(d,0,a);this.pk(b<d?b:d)};b.prototype.pk=function(a){-1===this.kf?this.kf=a:a<this.kf&&(this.kf=a);this.Qd=this.hh=!0};b.prototype.Oq=function(){if(this.hh){-1===this.kf&&(this.kf=0);var a,d,c;if(this.kd)for(a=this.kf,d=this.g.length;a<d;++a)c=
this.g[a],c.Vd=a,this.Wb.NB(c.Ic);else for(a=this.kf,d=this.g.length;a<d;++a)this.g[a].Vd=a;this.hh=!1;this.kf=-1}};b.prototype.sd=function(a){return this.LA()*(this.c.ad||a?this.c.aj:1)};b.prototype.LA=function(){return(this.scale*this.Ma.scale-1)*this.lf+1};b.prototype.Rb=function(){return this.Je?0:Ka(this.Ma.n+this.n)};var a=[],q=[],t=[];b.prototype.dp=function(){this.Oq();this.Wb.Yu(this.Ka,this.La,this.Oa,this.Na,t);if(!t.length)return h();if(1===t.length){var a=h();Aa(a,t[0]);C(t);return a}for(var d=
!0;1<t.length;){for(var a=t,c=void 0,b=void 0,f=void 0,n=void 0,k=void 0,c=0,b=a.length;c<b-1;c+=2){var f=a[c],n=a[c+1],k=h(),r=f,p=n,K=k,D=0,B=0,G=0,x=r.length,A=p.length,E=void 0,I=void 0;for(K.length=x+A;D<x&&B<A;++G)E=r[D],I=p[B],E.Vd<I.Vd?(K[G]=E,++D):(K[G]=I,++B);for(;D<x;++D,++G)K[G]=r[D];for(;B<A;++B,++G)K[G]=p[B];d||(e(f),e(n));q.push(k)}1===b%2&&(d?(f=h(),Aa(f,a[b-1]),q.push(f)):q.push(a[b-1]));Aa(a,q);C(q);d=!1}a=t[0];C(t);return a};b.prototype.Ke=function(a){this.te=this.Ml||1!==this.opacity||
0!==this.ac;var d=this.c.canvas,c=a,b=!1;this.te&&(this.c.hm||(this.c.hm=document.createElement("canvas"),d=this.c.hm,d.width=this.c.S,d.height=this.c.R,this.c.Vt=d.getContext("2d"),b=!0),d=this.c.hm,c=this.c.Vt,d.width!==this.c.S&&(d.width=this.c.S,b=!0),d.height!==this.c.R&&(d.height=this.c.R,b=!0),b&&this.c.Xm(c,this.c.Sa),this.Sd&&c.clearRect(0,0,this.c.S,this.c.R));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Sd||(c.fillStyle="rgb("+this.Jd[0]+","+this.Jd[1]+","+this.Jd[2]+")",
c.fillRect(0,0,this.c.S,this.c.R));c.save();this.Je=!0;var b=this.rc(0,0,!0,!0),h=this.rc(0,0,!1,!0);this.Je=!1;this.c.Od&&(b=Math.round(b),h=Math.round(h));this.Tm(b,h,c);var n=this.sd();c.scale(n,n);c.translate(-b,-h);this.kd?(this.Pb.left=this.Wb.Cc(this.Ka),this.Pb.top=this.Wb.Dc(this.La),this.Pb.right=this.Wb.Cc(this.Oa),this.Pb.bottom=this.Wb.Dc(this.Na),this.Qd||!this.Pb.ij(this.ci)?(e(this.Te),b=this.dp(),this.Qd=!1,this.ci.ej(this.Pb)):b=this.Te):b=this.g;for(var f,r=null,h=0,n=b.length;h<
n;++h)f=b[h],f!==r&&(this.Mz(f,c),r=f);this.kd&&(this.Te=b);c.restore();this.te&&(a.globalCompositeOperation=this.dj,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};b.prototype.Mz=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.Nb();var c=a.$b;c.right<this.Ka||c.bottom<this.La||c.left>this.Oa||c.top>this.Na||(d.globalCompositeOperation=a.dj,a.Ke(d))}};b.prototype.wn=function(){this.Je=!0;var a=this.rc(0,0,!0,!0),d=this.rc(0,0,!1,!0);this.Je=!1;this.c.Od&&(a=Math.round(a),d=Math.round(d));
this.Tm(a,d,null)};b.prototype.Tm=function(a,d,c){var b=this.sd();this.Ka=a;this.La=d;this.Oa=a+1/b*this.c.S;this.Na=d+1/b*this.c.R;this.Ka>this.Oa&&(a=this.Ka,this.Ka=this.Oa,this.Oa=a);this.La>this.Na&&(a=this.La,this.La=this.Na,this.Na=a);a=this.Rb();0!==a&&(c&&(c.translate(this.c.S/2,this.c.R/2),c.rotate(-a),c.translate(this.c.S/-2,this.c.R/-2)),this.gf.set(this.Ka,this.La,this.Oa,this.Na),this.gf.offset((this.Ka+this.Oa)/-2,(this.La+this.Na)/-2),this.Jv.tv(this.gf,a),this.Jv.Ds(this.gf),this.gf.offset((this.Ka+
this.Oa)/2,(this.La+this.Na)/2),this.Ka=this.gf.left,this.La=this.gf.top,this.Oa=this.gf.right,this.Na=this.gf.bottom)};b.prototype.wg=function(a){if(this.te=this.Ml){this.c.Db||(this.c.Db=a.nd(this.c.S,this.c.R,this.c.Sa));if(this.c.Db.sg!==this.c.S||this.c.Db.rg!==this.c.R)a.deleteTexture(this.c.Db),this.c.Db=a.nd(this.c.S,this.c.R,this.c.Sa);a.zd(this.c.Db)}this.Je=!0;var d=this.rc(0,0,!0,!0),c=this.rc(0,0,!1,!0);this.Je=!1;this.c.Od&&(d=Math.round(d),c=Math.round(c));this.Tm(d,c,null);d=this.sd();
a.ue();a.scale(d,d);a.oq(-this.Rb());a.translate((this.Ka+this.Oa)/-2,(this.La+this.Na)/-2);a.Ud();this.kd?(this.Pb.left=this.Wb.Cc(this.Ka),this.Pb.top=this.Wb.Dc(this.La),this.Pb.right=this.Wb.Cc(this.Oa),this.Pb.bottom=this.Wb.Dc(this.Na),this.Qd||!this.Pb.ij(this.ci)?(e(this.Te),d=this.dp(),this.Qd=!1,this.ci.ej(this.Pb)):d=this.Te):d=this.g;for(var b,h=null,c=d.length-1;0<=c;--c)b=d[c],b!==h&&(this.Oz(d[c],a),h=b);this.kd&&(this.Te=d);this.Sd||(this.to=this.c.yg++,a.Ym(this.to),a.lv(1,1,1),a.gt(),
a.zC())};b.prototype.Qc=function(a){var d=0,c=0;if(this.te=this.Ml||1!==this.opacity||0<this.Ca.length||0!==this.ac){this.c.Db||(this.c.Db=a.nd(this.c.S,this.c.R,this.c.Sa));if(this.c.Db.sg!==this.c.S||this.c.Db.rg!==this.c.R)a.deleteTexture(this.c.Db),this.c.Db=a.nd(this.c.S,this.c.R,this.c.Sa);a.zd(this.c.Db);this.Sd&&a.clear(0,0,0,0)}this.Sd||(this.c.Qa?(a.Ym(this.to),a.lv(this.Jd[0]/255,this.Jd[1]/255,this.Jd[2]/255),a.gt(),a.PC()):a.clear(this.Jd[0]/255,this.Jd[1]/255,this.Jd[2]/255,1));this.Je=
!0;var b=this.rc(0,0,!0,!0),d=this.rc(0,0,!1,!0);this.Je=!1;this.c.Od&&(b=Math.round(b),d=Math.round(d));this.Tm(b,d,null);b=this.sd();a.ue();a.scale(b,b);a.oq(-this.Rb());a.translate((this.Ka+this.Oa)/-2,(this.La+this.Na)/-2);a.Ud();this.kd?(this.Pb.left=this.Wb.Cc(this.Ka),this.Pb.top=this.Wb.Dc(this.La),this.Pb.right=this.Wb.Cc(this.Oa),this.Pb.bottom=this.Wb.Dc(this.Na),this.Qd||!this.Pb.ij(this.ci)?(e(this.Te),d=this.dp(),this.Qd=!1,this.ci.ej(this.Pb)):d=this.Te):d=this.g;var h,n,f=null,c=0;
for(h=d.length;c<h;++c)n=d[c],n!==f&&(this.Nz(d[c],a),f=n);this.kd&&(this.Te=d);this.te&&(d=this.Ca.length?this.Ca[0].sb:0,c=this.Ca.length?this.Ca[0].index:0,0===this.Ca.length||1===this.Ca.length&&!a.gq(d)&&1===this.opacity?(1===this.Ca.length?(a.Lc(d),a.Ai(this.Ma.rj(),1/this.c.S,1/this.c.R,0,0,1,1,b,this.Rb(),this.Ka,this.La,(this.Ka+this.Oa)/2,(this.La+this.Na)/2,this.c.Ib.Z,this.eb[c]),a.Pm(d)&&(this.c.Ba=!0)):a.Lc(0),a.zd(this.Ma.rj()),a.dh(this.opacity),a.Xc(this.c.Db),a.$f(this.mc,this.hc),
a.ue(),a.Ud(),b=this.c.S/2,d=this.c.R/2,a.hk(-b,d,b,d,b,-d,-b,-d),a.Xc(null)):this.Ma.lq(a,this,null,this.Ma.rj()))};b.prototype.Nz=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.Nb();var c=a.$b;c.right<this.Ka||c.bottom<this.La||c.left>this.Oa||c.top>this.Na||(d.Ym(a.yg),a.Tv?this.Pz(a,d):(d.Lc(0),d.$f(a.mc,a.hc),a.Qc(d)))}};b.prototype.Oz=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.Nb();var c=a.$b;c.right<this.Ka||c.bottom<this.La||c.left>this.Oa||c.top>this.Na||(a.yg=this.c.yg++,
0===a.ac&&1===a.opacity&&a.df&&a.wg&&(d.Ym(a.yg),a.wg(d)))}};b.prototype.Pz=function(a,d){var c=a.Ca[0].sb,b=a.Ca[0].index,e=this.sd();if(1!==a.Ca.length||d.gq(c)||d.rC(c)||(a.n||a.A.Rb())&&d.ek(c)||1!==a.opacity||a.type.u.su)this.Ma.lq(d,this,a,this.te?this.c.Db:this.Ma.rj()),d.ue(),d.scale(e,e),d.oq(-this.Rb()),d.translate((this.Ka+this.Oa)/-2,(this.La+this.Na)/-2),d.Ud();else{d.Lc(c);d.$f(a.mc,a.hc);d.Pm(c)&&(this.c.Ba=!0);var n=0,h=0,r=0,f=0;d.ek(c)&&(f=a.$b,n=this.vd(f.left,f.top,!0),h=this.vd(f.left,
f.top,!1),r=this.vd(f.right,f.bottom,!0),f=this.vd(f.right,f.bottom,!1),n=n/windowWidth,h=1-h/windowHeight,r=r/windowWidth,f=1-f/windowHeight);var k;a.bb&&a.bb.P?(k=a.bb.P,c=1/k.width,k=1/k.height):(c=1/a.width,k=1/a.height);d.Ai(this.te?this.c.Db:this.Ma.rj(),c,k,n,h,r,f,e,this.Rb(),this.Ka,this.La,(this.Ka+this.Oa)/2,(this.La+this.Na)/2,this.c.Ib.Z,a.eb[b]);a.Qc(d)}};b.prototype.rc=function(a,d,c,b){var e=this.c.devicePixelRatio;this.c.Sh&&(a*=e,d*=e);var e=this.c.Qu,n=this.c.Ru,e=(this.Ma.scrollX-
e)*this.Xe+e,n=(this.Ma.scrollY-n)*this.Ye+n,h=e,f=n,k=1/this.sd(!b);b?(h-=this.c.S*k/2,f-=this.c.R*k/2):(h-=this.c.width*k/2,f-=this.c.height*k/2);h+=a*k;f+=d*k;d=this.Rb();0!==d&&(h-=e,f-=n,a=Math.cos(d),d=Math.sin(d),b=h*a-f*d,f=f*a+h*d,h=b+e,f+=n);return c?h:f};b.prototype.vd=function(a,d,c){var b=this.c.Qu,e=this.c.Ru,b=(this.Ma.scrollX-b)*this.Xe+b,n=(this.Ma.scrollY-e)*this.Ye+e,e=b,h=n,f=this.Rb();if(0!==f){a-=b;d-=n;var k=Math.cos(-f),f=Math.sin(-f),p=a*k-d*f;d=d*k+a*f;a=p+b;d+=n}b=1/this.sd(!1);
e-=this.c.S*b/2;h-=this.c.R*b/2;e=(a-e)/b;return c?e:(d-h)/b};b.prototype.wa=function(){var a,d,c,b={s:this.scale,a:this.n,vl:this.Ka,vt:this.La,vr:this.Oa,vb:this.Na,v:this.visible,bc:this.Jd,t:this.Sd,px:this.Xe,py:this.Ye,o:this.opacity,zr:this.lf,fx:[],cg:this.gj,instances:[]};a=0;for(d=this.Y.length;a<d;a++)c=this.Y[a],b.fx.push({name:c.name,active:c.jb,params:this.eb[c.index]});return b};b.prototype.Fa=function(a){var d,c,b;this.scale=a.s;this.n=a.a;this.Ka=a.vl;this.La=a.vt;this.Oa=a.vr;this.Na=
a.vb;this.visible=a.v;this.Jd=a.bc;this.Sd=a.t;this.Xe=a.px;this.Ye=a.py;this.opacity=a.o;this.lf=a.zr;this.gj=a.cg||[];Aa(this.cd,this.Dv);var e=new da;d=0;for(b=this.gj.length;d<b;++d)e.add(this.gj[d]);c=d=0;for(b=this.cd.length;d<b;++d)e.contains(this.cd[d][2])||(this.cd[c]=this.cd[d],++c);za(this.cd,c);c=a.fx;d=0;for(b=c.length;d<b;d++)if(a=this.Xo(c[d].name))a.jb=c[d].active,this.eb[a.index]=c[d].params;this.Td();this.g.sort(k);this.hh=!0};Zb=b})();
(function(){function f(a,d){var c,b=a.length;switch(b){case 0:return!0;case 1:return a[0]===d[0];case 2:return a[0]===d[0]&&a[1]===d[1];default:for(c=0;c<b;c++)if(a[c]!==d[c])return!1;return!0}}function k(a,d){return a.index-d.index}function b(a){var d,c,b,e;2===a.length?a[0].index>a[1].index&&(d=a[0],a[0]=a[1],a[1]=d):2<a.length&&a.sort(k);a.length>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);e=w[a.length];d=0;for(c=e.length;d<c;d++)if(b=e[d],f(a,b))return b;e.push(a);return a}
function h(a,d){this.c=a;this.Lv={};this.Ys={};this.ip=!1;this.Bt=new da;this.zo=[];this.eo=[];this.name=d[0];var c=d[1];this.yb=[];var b,e;b=0;for(e=c.length;b<e;b++)this.Dt(c[b],null,this.yb)}function e(a){this.type=a;this.g=[];this.ka=[];this.na=!0}function p(a,d,c){this.sheet=a;this.parent=d;this.c=a.c;this.xa=[];this.ag=[];this.zt=this.pn=this.Gq=this.Yl=this.group=this.zq=!1;this.wb=[];this.Gd=[];this.Bd=[];this.tj="";this.Hg=this.Yl=this.group=!1;this.ml=null;c[1]&&(this.tj=c[1][1].toLowerCase(),
this.group=!0,this.Yl=!!c[1][0],this.ml=[],this.Hg=this.Yl,this.c.xf.push(this),this.c.Oh[this.tj]=this);this.xd=c[2];this.qa=c[4];this.group||(this.c.Cs[this.qa.toString()]=this);var b=c[5];a=0;for(d=b.length;a<d;a++){var e=new $b(this,b[a]);e.index=a;this.wb.push(e);this.os(e.type)}b=c[6];a=0;for(d=b.length;a<d;a++)e=new ac(this,b[a]),e.index=a,this.Gd.push(e);if(8===c.length)for(c=c[7],a=0,d=c.length;a<d;a++)this.sheet.Dt(c[a],this,this.Bd);this.em=!1;this.wb.length&&(this.em=null==this.wb[0].type&&
this.wb[0].Qb==O.prototype.j.dr)}function c(a,d){var c,b,e;if(a&&(-1===d.indexOf(a)&&d.push(a),a.wc))for(c=0,b=a.Pc.length;c<b;c++)e=a.Pc[c],a!==e&&-1===d.indexOf(e)&&d.push(e)}function a(a,d){this.Zc=a;this.sheet=a.sheet;this.c=a.c;this.ga=[];this.fb=[];this.ma={};this.index=-1;this.Yi=!1;this.Qb=this.c.rf(d[1]);this.trigger=0<d[3];this.Xs=2===d[3];this.ne=d[4];this.qp=d[5];this.GB=d[6];this.qa=d[7];this.c.Ef[this.qa.toString()]=this;-1===d[0]?(this.type=null,this.rb=this.rq,this.qg=null,this.Kd=
-1):(this.type=this.c.G[d[0]],this.rb=this.GB?this.GC:this.qq,d[2]?(this.qg=this.type.Ql(d[2]),this.Kd=this.type.Vo(d[2])):(this.qg=null,this.Kd=-1),this.Zc.parent&&this.Zc.parent.Zm());this.Xs&&(this.rb=this.HC);if(10===d.length){var c,b,e=d[9];c=0;for(b=e.length;c<b;c++){var g=new bc(this,e[c]);this.ga.push(g)}this.fb.length=e.length}}function q(a,d){this.Zc=a;this.sheet=a.sheet;this.c=a.c;this.ga=[];this.fb=[];this.ma={};this.index=-1;this.Yi=!1;this.Qb=this.c.rf(d[1]);-1===d[0]?(this.type=null,
this.rb=this.rq,this.qg=null,this.Kd=-1):(this.type=this.c.G[d[0]],this.rb=this.qq,d[2]?(this.qg=this.type.Ql(d[2]),this.Kd=this.type.Vo(d[2])):(this.qg=null,this.Kd=-1));this.qa=d[3];this.c.wf[this.qa.toString()]=this;if(6===d.length){var c,b,e=d[5];c=0;for(b=e.length;c<b;c++){var g=new bc(this,e[c]);this.ga.push(g)}this.fb.length=e.length}}function t(){N++;n.length===N&&n.push(new cc);return n[N]}function g(a,d){this.yd=a;this.Zc=a.Zc;this.sheet=a.sheet;this.c=a.c;this.type=d[0];this.fe=null;this.ef=
0;this.get=null;this.Ks=0;this.Ma=null;this.key=0;this.object=null;this.index=0;this.Dk=this.fh=this.Dk=this.fh=this.ct=this.Cg=this.Ek=null;this.Dd=!1;var c,b,e;switch(d[0]){case 0:case 7:this.fe=new dc(this,d[1]);this.ef=0;this.get=this.UA;break;case 1:this.fe=new dc(this,d[1]);this.ef=0;this.get=this.VA;break;case 5:this.fe=new dc(this,d[1]);this.ef=0;this.get=this.ZA;break;case 3:case 8:this.Ks=d[1];this.get=this.SA;break;case 6:this.Ma=this.c.Ep[d[1]];this.get=this.$A;break;case 9:this.key=d[1];
this.get=this.YA;break;case 4:this.object=this.c.G[d[1]];this.get=this.dB;this.Zc.os(this.object);this.yd instanceof ac?this.Zc.Zm():this.Zc.parent&&this.Zc.parent.Zm();break;case 10:this.index=d[1];a.type&&a.type.N?(this.get=this.WA,this.Dd=!0):this.get=this.XA;break;case 11:this.Ek=d[1];this.Cg=null;this.get=this.TA;break;case 2:case 12:this.ct=d[1];this.get=this.RA;break;case 13:for(this.get=this.gB,this.fh=[],this.Dk=[],c=1,b=d.length;c<b;c++)e=new bc(this.yd,d[c]),this.fh.push(e),this.Dk.push(0)}}
function d(a,d,c){this.sheet=a;this.parent=d;this.c=a.c;this.xa=[];this.name=c[1];this.Fk=c[2];this.Xl=c[3];this.Hj=!!c[4];this.dm=!!c[5];this.qa=c[6];this.c.Li[this.qa.toString()]=this;this.data=this.Xl;this.parent?(this.Wg=this.Hj||this.dm?-1:this.c.RC++,this.c.Vy.push(this)):(this.Wg=-1,this.c.bo.push(this))}function l(a,d,c){this.sheet=a;this.parent=d;this.c=a.c;this.xa=[];this.wj=null;this.nB=c[1];this.jb=!0}function m(){this.Fv=[];this.reset(null)}var w=[];h.prototype.toString=function(){return this.name};
h.prototype.Dt=function(a,d,c){switch(a[0]){case 0:a=new ec(this,d,a);if(a.xd)for(c.push(a),c=0,d=a.wb.length;c<d;c++)a.wb[c].trigger&&this.Et(a,c);else a.Mt()?this.Et(a,0):c.push(a);break;case 1:a=new Wb(this,d,a);c.push(a);break;case 2:a=new fc(this,d,a),c.push(a)}};h.prototype.lb=function(){var a,d;a=0;for(d=this.yb.length;a<d;a++)this.yb[a].lb(a<d-1&&this.yb[a+1].em)};h.prototype.Lq=function(){C(this.zo);C(this.eo);this.ns(this);C(this.eo)};h.prototype.ns=function(a){var d,c,b,e,g=a.zo,m=a.eo,
l=this.Bt.dg();d=0;for(c=l.length;d<c;++d)b=l[d],e=b.wj,!b.jb||a===e||-1<m.indexOf(e)||(m.push(e),e.ns(a),g.push(e))};h.prototype.rb=function(a){this.c.TE||(this.ip=!0,a||(this.c.vp=!0));var d,c;d=0;for(c=this.yb.length;d<c;d++){var b=this.yb[d];b.rb();this.c.so(b.xa);this.c.Mf&&this.c.Zb()}a||(this.c.vp=!1)};h.prototype.Et=function(a,d){a.xd||this.c.rn.push(a);var c,b,e=a.wb[d],g;e.type?g=e.type.name:g="system";var m=(c=e.Xs)?this.Ys:this.Lv;m[g]||(m[g]=[]);g=m[g];m=e.Qb;if(c){if(e.ga.length&&(e=
e.ga[0],1===e.type&&2===e.fe.type)){e=e.fe.value.toLowerCase();c=0;for(b=g.length;c<b;c++)if(g[c].method==m){c=g[c].jj;c[e]?c[e].push([a,d]):c[e]=[[a,d]];return}c={};c[e]=[[a,d]];g.push({method:m,jj:c})}}else{c=0;for(b=g.length;c<b;c++)if(g[c].method==m){g[c].jj.push([a,d]);return}X&&m===X.prototype.j.jg?g.unshift({method:m,jj:[[a,d]]}):g.push({method:m,jj:[[a,d]]})}};Lb=h;e.prototype.hp=function(){return this.na?this.type.g.length:this.g.length};e.prototype.sc=function(){return this.na?this.type.g:
this.g};e.prototype.dk=function(a){a&&(a.c.Ab().xb.xd?(this.na&&(C(this.g),Aa(this.ka,a.type.g),this.na=!1),a=this.ka.indexOf(a),-1!==a&&(this.g.push(this.ka[a]),this.ka.splice(a,1))):(this.na=!1,C(this.g),this.g[0]=a))};tb=e;window._c2hh_="643BA44C4D0F6DF5C3301EA18D1A4A5858FB6476";p.prototype.lb=function(a){var d,c=this.parent;if(this.group)for(this.pn=!0;c;){if(!c.group){this.pn=!1;break}c=c.parent}this.Gq=!this.Mt()&&(!this.parent||this.parent.group&&this.parent.pn);this.zt=!!a;this.ag=this.xa.slice(0);
for(c=this.parent;c;){a=0;for(d=c.xa.length;a<d;a++)this.Ty(c.xa[a]);c=c.parent}this.xa=b(this.xa);this.ag=b(this.ag);a=0;for(d=this.wb.length;a<d;a++)this.wb[a].lb();a=0;for(d=this.Gd.length;a<d;a++)this.Gd[a].lb();a=0;for(d=this.Bd.length;a<d;a++)this.Bd[a].lb(a<d-1&&this.Bd[a+1].em)};p.prototype.nk=function(a){if(this.Hg!==!!a){this.Hg=!!a;var d;a=0;for(d=this.ml.length;a<d;++a)this.ml[a].Rv();0<d&&this.c.Ha.Bg&&this.c.Ha.Bg.Lq()}};p.prototype.os=function(a){c(a,this.xa)};p.prototype.Ty=function(a){c(a,
this.ag)};p.prototype.Zm=function(){this.zq=!0;this.parent&&this.parent.Zm()};p.prototype.Mt=function(){return this.wb.length?this.wb[0].trigger:!1};p.prototype.rb=function(){var a,d,c=!1,b=this.c,e=this.c.Ab();e.xb=this;var g=this.wb;this.em||(e.Do=!1);if(this.xd){0===g.length&&(c=!0);e.ub=0;for(a=g.length;e.ub<a;e.ub++)d=g[e.ub],d.trigger||(d=d.rb())&&(c=!0);(e.Sg=c)&&this.Um()}else{e.ub=0;for(a=g.length;e.ub<a;e.ub++)if(d=g[e.ub].rb(),!d){e.Sg=!1;this.Gq&&b.Mf&&b.Zb();return}e.Sg=!0;this.Um()}this.Uz(e)};
p.prototype.Uz=function(a){a.Sg&&this.zt&&(a.Do=!0);this.Gq&&this.c.Mf&&this.c.Zb()};p.prototype.EC=function(a){this.c.Ab().xb=this;this.wb[a].rb()&&(this.Um(),this.c.Ab().Sg=!0)};p.prototype.Um=function(){var a=this.c.Ab(),d;a.Nc=0;for(d=this.Gd.length;a.Nc<d;a.Nc++)if(this.Gd[a.Nc].rb())return;this.gv()};p.prototype.BC=function(){var a=this.c.Ab(),d;for(d=this.Gd.length;a.Nc<d;a.Nc++)if(this.Gd[a.Nc].rb())return;this.gv()};p.prototype.gv=function(){if(this.Bd.length){var a,d,c,b,e=this.Bd.length-
1;this.c.Rm(this);if(this.zq)for(a=0,d=this.Bd.length;a<d;a++)c=this.Bd[a],(b=!this.pn||!this.group&&a<e)&&this.c.$g(c.xa),c.rb(),b?this.c.re(c.xa):this.c.so(c.xa);else for(a=0,d=this.Bd.length;a<d;a++)this.Bd[a].rb();this.c.Lm()}};p.prototype.FC=function(){var a=this.c.Ab();a.xb=this;var d=!1,c;a.ub=0;for(c=this.wb.length;a.ub<c;a.ub++)if(this.wb[a.ub].rb())d=!0;else if(!this.xd)return!1;return this.xd?d:!0};p.prototype.wi=function(){this.c.kj++;var a=this.c.Ab().ub,d=this.c.Rm(this);if(!this.xd)for(d.ub=
a+1,a=this.wb.length;d.ub<a;d.ub++)if(!this.wb[d.ub].rb()){this.c.Lm();return}this.Um();this.c.Lm()};p.prototype.tB=function(a){var d=a.index;if(0===d)return!0;for(--d;0<=d;--d)if(this.wb[d].type===a.type)return!1;return!0};ec=p;a.prototype.lb=function(){var a,d,c;a=0;for(d=this.ga.length;a<d;a++)c=this.ga[a],c.lb(),c.Dd&&(this.Yi=!0)};a.prototype.HC=function(){return!0};a.prototype.rq=function(){var a,d;a=0;for(d=this.ga.length;a<d;a++)this.fb[a]=this.ga[a].get();return Ua(this.Qb.apply(this.c.we,
this.fb),this.qp)};a.prototype.GC=function(){var a,d;a=0;for(d=this.ga.length;a<d;a++)this.fb[a]=this.ga[a].get();a=this.Qb.apply(this.qg?this.qg:this.type,this.fb);this.type.Id();return a};a.prototype.qq=function(){var a,d,c,b,e,g,m,l,n=this.type,h=n.U(),f=this.Zc.xd&&!this.trigger;d=0;var k=n.wc,p=n.N,q=n.Me,t=this.Kd,w=-1<t,N=this.Yi,H=this.ga,y=this.fb,P=this.qp,Q=this.Qb,J;if(N)for(d=0,e=H.length;d<e;++d)g=H[d],g.Dd||(y[d]=g.get(0));else for(d=0,e=H.length;d<e;++d)y[d]=H[d].get(0);if(h.na){C(h.g);
C(h.ka);J=n.g;a=0;for(b=J.length;a<b;++a){l=J[a];if(N)for(d=0,e=H.length;d<e;++d)g=H[d],g.Dd&&(y[d]=g.get(a));w?(d=0,p&&(d=l.type.Kh[q]),d=Q.apply(l.ea[t+d],y)):d=Q.apply(l,y);(m=Ua(d,P))?h.g.push(l):f&&h.ka.push(l)}n.finish&&n.finish(!0);h.na=!1;n.Id();return h.hp()}c=0;J=(m=f&&!this.Zc.tB(this))?h.ka:h.g;var L=!1;a=0;for(b=J.length;a<b;++a){l=J[a];if(N)for(d=0,e=H.length;d<e;++d)g=H[d],g.Dd&&(y[d]=g.get(a));w?(d=0,p&&(d=l.type.Kh[q]),d=Q.apply(l.ea[t+d],y)):d=Q.apply(l,y);if(Ua(d,P))if(L=!0,m){if(h.g.push(l),
k)for(d=0,e=l.siblings.length;d<e;d++)g=l.siblings[d],g.type.U().g.push(g)}else{J[c]=l;if(k)for(d=0,e=l.siblings.length;d<e;d++)g=l.siblings[d],g.type.U().g[c]=g;c++}else if(m){J[c]=l;if(k)for(d=0,e=l.siblings.length;d<e;d++)g=l.siblings[d],g.type.U().ka[c]=g;c++}else if(f&&(h.ka.push(l),k))for(d=0,e=l.siblings.length;d<e;d++)g=l.siblings[d],g.type.U().ka.push(g)}za(J,c);if(k)for(p=n.Pc,a=0,b=p.length;a<b;a++)l=p[a].U(),m?za(l.ka,c):za(l.g,c);c=L;if(m&&!L)for(a=0,b=h.g.length;a<b;a++){l=h.g[a];if(N)for(d=
0,e=H.length;d<e;d++)g=H[d],g.Dd&&(y[d]=g.get(a));d=w?Q.apply(l.ea[t],y):Q.apply(l,y);if(Ua(d,P)){L=!0;break}}n.finish&&n.finish(c||f);return f?L:h.hp()};$b=a;q.prototype.lb=function(){var a,d,c;a=0;for(d=this.ga.length;a<d;a++)c=this.ga[a],c.lb(),c.Dd&&(this.Yi=!0)};q.prototype.rq=function(){var a=this.c,d,c,b=this.ga,e=this.fb;d=0;for(c=b.length;d<c;++d)e[d]=b[d].get();return this.Qb.apply(a.we,e)};q.prototype.qq=function(){var a=this.type,d=this.Kd,c=a.Me,b=this.Yi,e=this.ga,g=this.fb,m=this.Qb,
l=a.U().sc(),a=a.N,n=-1<d,h,f,k,p,q,t;if(b)for(f=0,p=e.length;f<p;++f)q=e[f],q.Dd||(g[f]=q.get(0));else for(f=0,p=e.length;f<p;++f)g[f]=e[f].get(0);h=0;for(k=l.length;h<k;++h){t=l[h];if(b)for(f=0,p=e.length;f<p;++f)q=e[f],q.Dd&&(g[f]=q.get(h));n?(f=0,a&&(f=t.type.Kh[c]),m.apply(t.ea[d+f],g)):m.apply(t,g)}return!1};ac=q;var n=[],N=-1;g.prototype.lb=function(){var a,d;if(11===this.type)this.Cg=this.c.pt(this.Ek,this.Zc.parent);else if(13===this.type)for(a=0,d=this.fh.length;a<d;a++)this.fh[a].lb();
this.fe&&this.fe.lb()};g.prototype.PB=function(a){this.Dd||!a||a.u.bn||(this.Dd=!0)};g.prototype.sv=function(){this.Dd=!0};g.prototype.UA=function(a){this.ef=a||0;a=t();this.fe.get(a);N--;return a.data};g.prototype.VA=function(a){this.ef=a||0;a=t();this.fe.get(a);N--;return ja(a.data)?a.data:""};g.prototype.dB=function(){return this.object};g.prototype.SA=function(){return this.Ks};g.prototype.ZA=function(a){this.ef=a||0;a=t();this.fe.get(a);N--;return a.Hb()?this.c.qj(a.data):this.c.bp(a.data)};
g.prototype.$A=function(){return this.Ma};g.prototype.YA=function(){return this.key};g.prototype.XA=function(){return this.index};g.prototype.WA=function(a){a=a||0;var d=this.yd.type,c=null,c=d.U(),b=c.sc();if(b.length)c=b[a%b.length].type;else if(c.ka.length)c=c.ka[a%c.ka.length].type;else if(d.g.length)c=d.g[a%d.g.length].type;else return 0;return this.index+c.Hl[d.Me]};g.prototype.TA=function(){return this.Cg};g.prototype.RA=function(){return this.ct};g.prototype.gB=function(){var a,d;a=0;for(d=
this.fh.length;a<d;a++)this.Dk[a]=this.fh[a].get();return this.Dk};bc=g;d.prototype.lb=function(){this.xa=b(this.xa)};d.prototype.cf=function(a){var d=this.c.lt();this.parent&&!this.Hj&&d?(this.Wg>=d.length&&(d.length=this.Wg+1),d[this.Wg]=a):this.data=a};d.prototype.Gg=function(){var a=this.c.lt();return!this.parent||this.Hj||!a||this.dm?this.data:this.Wg>=a.length||"undefined"===typeof a[this.Wg]?this.Xl:a[this.Wg]};d.prototype.rb=function(){!this.parent||this.Hj||this.dm||this.cf(this.Xl)};Wb=
d;l.prototype.toString=function(){return"include:"+this.wj.toString()};l.prototype.lb=function(){this.wj=this.c.Fo[this.nB];this.sheet.Bt.add(this);this.xa=b(this.xa);for(var a=this.parent;a;)a.group&&a.ml.push(this),a=a.parent;this.Rv()};l.prototype.rb=function(){this.parent&&this.c.fk(this.c.G);this.wj.ip||this.wj.rb(!0);this.parent&&this.c.re(this.c.G)};l.prototype.Rv=function(){for(var a=this.parent;a;){if(a.group&&!a.Hg){this.jb=!1;return}a=a.parent}this.jb=!0};fc=l;m.prototype.reset=function(a){this.xb=
a;this.Nc=this.ub=0;C(this.Fv);this.Do=this.Sg=!1};m.prototype.vB=function(){return this.xb.zq?!0:this.ub<this.xb.wb.length-1?!!this.xb.xa.length:!1};Vb=m})();
(function(){function f(c,a){this.yd=c;this.c=c.c;this.type=a[0];this.get=[this.lA,this.hA,this.uA,this.xA,this.Xz,this.vA,this.pA,this.eA,this.oA,this.tA,this.Yz,this.sA,this.fA,this.qA,this.mA,this.nA,this.iA,this.jA,this.dA,this.wA,this.rA,this.kA,this.cA,this.gA][this.type];var b=null;this.Ue=this.ga=this.fb=this.Qb=this.mn=this.second=this.first=this.value=null;this.Kd=-1;this.Ld=null;this.Uv=-1;this.Cg=this.Ek=null;this.xi=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new dc(c,a[1]);break;case 18:this.first=new dc(c,a[1]);this.second=new dc(c,a[2]);this.mn=new dc(c,a[3]);break;case 19:this.Qb=this.c.rf(a[1]);this.Qb!==O.prototype.J.random&&this.Qb!==O.prototype.J.gz||this.yd.sv();this.fb=[];this.ga=[];3===a.length?(b=a[2],this.fb.length=b.length+1):this.fb.length=1;break;case 20:this.Ue=this.c.G[a[1]];this.Kd=-1;this.Qb=this.c.rf(a[2]);this.xi=a[3];sc&&this.Qb===sc.prototype.J.br&&this.yd.sv();a[4]?this.Ld=new dc(c,a[4]):this.Ld=null;this.fb=[];this.ga=[];6===
a.length?(b=a[5],this.fb.length=b.length+1):this.fb.length=1;break;case 21:this.Ue=this.c.G[a[1]];this.xi=a[2];a[3]?this.Ld=new dc(c,a[3]):this.Ld=null;this.Uv=a[4];break;case 22:this.Ue=this.c.G[a[1]];this.Ue.Ql(a[2]);this.Kd=this.Ue.Vo(a[2]);this.Qb=this.c.rf(a[3]);this.xi=a[4];a[5]?this.Ld=new dc(c,a[5]):this.Ld=null;this.fb=[];this.ga=[];7===a.length?(b=a[6],this.fb.length=b.length+1):this.fb.length=1;break;case 23:this.Ek=a[1],this.Cg=null}this.yd.PB(this.Ue);4<=this.type&&17>=this.type&&(this.first=
new dc(c,a[1]),this.second=new dc(c,a[2]));if(b){var e,g;e=0;for(g=b.length;e<g;e++)this.ga.push(new dc(c,b[e]))}}function k(){++p;e.length===p&&e.push(new cc);return e[p]}function b(c,a,b){var e,g;e=0;for(g=c.length;e<g;++e)c[e].get(b),a[e+1]=b.data}function h(c,a){this.type=c||gc.nh;this.data=a||0;this.Yg=null;this.type==gc.nh&&(this.data=Math.floor(this.data))}f.prototype.lb=function(){23===this.type&&(this.Cg=this.yd.c.pt(this.Ek,this.yd.Zc.parent));this.first&&this.first.lb();this.second&&this.second.lb();
this.mn&&this.mn.lb();this.Ld&&this.Ld.lb();if(this.ga){var c,a;c=0;for(a=this.ga.length;c<a;c++)this.ga[c].lb()}};var e=[],p=-1;f.prototype.wA=function(c){var a=this.ga,e=this.fb;e[0]=c;c=k();b(a,e,c);--p;this.Qb.apply(this.c.we,e)};f.prototype.rA=function(c){var a=this.Ue,e=this.fb,h=this.ga,g=this.Ld,d=this.Qb,l=this.yd.ef,m=a.U(),f=m.sc();if(!f.length)if(m.ka.length)f=m.ka;else{this.xi?c.mb(""):c.T(0);return}e[0]=c;c.Yg=a;c=k();b(h,e,c);g&&(g.get(c),c.Hb()&&(l=c.data,f=a.g));--p;a=f.length;if(l>=
a||l<=-a)l%=a;0>l&&(l+=a);d.apply(f[l],e)};f.prototype.cA=function(c){var a=this.Ue,e=this.fb,h=this.ga,g=this.Ld,d=this.Kd,l=this.Qb,m=this.yd.ef,f=a.U(),n=f.sc();if(!n.length)if(f.ka.length)n=f.ka;else{this.xi?c.mb(""):c.T(0);return}e[0]=c;c.Yg=a;c=k();b(h,e,c);g&&(g.get(c),c.Hb()&&(m=c.data,n=a.g));--p;h=n.length;if(m>=h||m<=-h)m%=h;0>m&&(m+=h);m=n[m];n=0;a.N&&(n=m.type.Kh[a.Me]);l.apply(m.ea[d+n],e)};f.prototype.kA=function(c){var a=this.Ld,b=this.Ue,e=this.Uv,g=this.yd.ef,d=b.U(),l=d.sc();if(!l.length)if(d.ka.length)l=
d.ka;else{this.xi?c.mb(""):c.T(0);return}if(a){d=k();a.get(d);if(d.Hb()){g=d.data;l=b.g;0!==l.length&&(g%=l.length,0>g&&(g+=l.length));g=b.$o(g);b=g.Bb[e];ja(b)?c.mb(b):c.F(b);--p;return}--p}a=l.length;if(g>=a||g<=-a)g%=a;0>g&&(g+=a);g=l[g];l=0;b.N&&(l=g.type.Hl[b.Me]);b=g.Bb[e+l];ja(b)?c.mb(b):c.F(b)};f.prototype.lA=function(c){c.type=gc.nh;c.data=this.value};f.prototype.hA=function(c){c.type=gc.jh;c.data=this.value};f.prototype.uA=function(c){c.type=gc.String;c.data=this.value};f.prototype.xA=function(c){this.first.get(c);
c.Hb()&&(c.data=-c.data)};f.prototype.Xz=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data+=a.data,a.Vh()&&c.gi());--p};f.prototype.vA=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data-=a.data,a.Vh()&&c.gi());--p};f.prototype.pA=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data*=a.data,a.Vh()&&c.gi());--p};f.prototype.eA=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data/=
a.data,c.gi());--p};f.prototype.oA=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data%=a.data,a.Vh()&&c.gi());--p};f.prototype.tA=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data=Math.pow(c.data,a.data),a.Vh()&&c.gi());--p};f.prototype.Yz=function(c){this.first.get(c);var a=k();this.second.get(a);a.Yh()||c.Yh()?this.$z(c,a):this.Zz(c,a);--p};f.prototype.$z=function(c,a){c.Yh()&&a.Yh()?this.bA(c,a):this.aA(c,a)};f.prototype.bA=function(c,
a){c.data+=a.data};f.prototype.aA=function(c,a){c.Yh()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.mb(c.data.toString()+a.data)};f.prototype.Zz=function(c,a){c.T(c.data&&a.data?1:0)};f.prototype.sA=function(c){this.first.get(c);var a=k();this.second.get(a);c.Hb()&&a.Hb()&&(c.data||a.data?c.T(1):c.T(0));--p};f.prototype.dA=function(c){this.first.get(c);c.data?this.second.get(c):this.mn.get(c)};f.prototype.fA=function(c){this.first.get(c);var a=k();this.second.get(a);c.T(c.data===a.data?1:0);
--p};f.prototype.qA=function(c){this.first.get(c);var a=k();this.second.get(a);c.T(c.data!==a.data?1:0);--p};f.prototype.mA=function(c){this.first.get(c);var a=k();this.second.get(a);c.T(c.data<a.data?1:0);--p};f.prototype.nA=function(c){this.first.get(c);var a=k();this.second.get(a);c.T(c.data<=a.data?1:0);--p};f.prototype.iA=function(c){this.first.get(c);var a=k();this.second.get(a);c.T(c.data>a.data?1:0);--p};f.prototype.jA=function(c){this.first.get(c);var a=k();this.second.get(a);c.T(c.data>=
a.data?1:0);--p};f.prototype.gA=function(c){var a=this.Cg.Gg();ia(a)?c.F(a):c.mb(a)};dc=f;h.prototype.Vh=function(){return this.type===gc.jh};h.prototype.Hb=function(){return this.type===gc.nh||this.type===gc.jh};h.prototype.Yh=function(){return this.type===gc.String};h.prototype.gi=function(){this.Vh()||(this.Yh()&&(this.data=parseFloat(this.data)),this.type=gc.jh)};h.prototype.T=function(c){this.type=gc.nh;this.data=Math.floor(c)};h.prototype.F=function(c){this.type=gc.jh;this.data=c};h.prototype.mb=
function(c){this.type=gc.String;this.data=c};h.prototype.ve=function(c){ia(c)?(this.type=gc.jh,this.data=c):ja(c)?(this.type=gc.String,this.data=c.toString()):(this.type=gc.nh,this.data=0)};cc=h;gc={nh:0,jh:1,String:2}})();function O(f){this.c=f;this.Mc=[]}
O.prototype.wa=function(){var f={},k,b,h,e,p,c,a,q;f.waits=[];var t=f.waits,g;k=0;for(b=this.Mc.length;k<b;k++){c=this.Mc[k];g={t:c.time,st:c.Av,s:c.xq,ev:c.Fh.qa,sm:[],sols:{}};c.Fh.Gd[c.Nc]&&(g.act=c.Fh.Gd[c.Nc].qa);h=0;for(e=c.xa.length;h<e;h++)g.sm.push(c.xa[h].qa);for(p in c.zc)if(c.zc.hasOwnProperty(p)){a=this.c.G[parseInt(p,10)];q={sa:c.zc[p].Vm,insts:[]};h=0;for(e=c.zc[p].Pe.length;h<e;h++)q.insts.push(c.zc[p].Pe[h].uid);g.sols[a.qa.toString()]=q}t.push(g)}return f};
O.prototype.Fa=function(f){f=f.waits;var k,b,h,e,p,c,a,q,t,g,d;C(this.Mc);k=0;for(b=f.length;k<b;k++)if(c=f[k],q=this.c.Cs[c.ev.toString()]){t=-1;h=0;for(e=q.Gd.length;h<e;h++)if(q.Gd[h].qa===c.act){t=h;break}if(-1!==t){a={zc:{},xa:[],Ao:!1};a.time=c.t;a.Av=c.st||"";a.xq=!!c.s;a.Fh=q;a.Nc=t;h=0;for(e=c.sm.length;h<e;h++)(q=this.c.Sl(c.sm[h]))&&a.xa.push(q);for(p in c.sols)if(c.sols.hasOwnProperty(p)&&(q=this.c.Sl(parseInt(p,10)))){t=c.sols[p];g={Vm:t.sa,Pe:[]};h=0;for(e=t.insts.length;h<e;h++)(d=
this.c.jc(t.insts[h]))&&g.Pe.push(d);a.zc[q.index.toString()]=g}this.Mc.push(a)}}};
(function(){function f(){}function k(){}function b(){}var h=O.prototype;f.prototype.ur=function(){return!0};f.prototype.zx=function(){return!0};f.prototype.kw=function(c,a,b){return hc(c,a,b)};f.prototype.vw=function(c,a,b){var e=this.c.Ab(),g=e.xb,e=e.vB();c=this.c.tC(c);if(b<a)if(e)for(;a>=b&&!c.tb;--a)this.c.$g(g.xa),c.index=a,g.wi(),this.c.re(g.xa);else for(;a>=b&&!c.tb;--a)c.index=a,g.wi();else if(e)for(;a<=b&&!c.tb;++a)this.c.$g(g.xa),c.index=a,g.wi(),this.c.re(g.xa);else for(;a<=b&&!c.tb;++a)c.index=
a,g.wi();this.c.kC();return!1};f.prototype.uw=function(c){var a=this.c.kt(),b=a.ma.Every_lastTime||0,e=this.c.Ib.Z;"undefined"===typeof a.ma.Every_seconds&&(a.ma.Every_seconds=c);var g=a.ma.Every_seconds;if(e>=b+g)return a.ma.Every_lastTime=b+g,e>=a.ma.Every_lastTime+.04&&(a.ma.Every_lastTime=e),a.ma.Every_seconds=c,!0;e<b-.1&&(a.ma.Every_lastTime=e);return!1};f.prototype.mw=function(c,a,b){return hc(c.Gg(),a,b)};f.prototype.Hw=function(c){return(c=this.c.Oh[c.toLowerCase()])&&c.Hg};f.prototype.dr=
function(){var c=this.c.Ab();return c.Do?!1:!c.Sg};f.prototype.wr=function(){return!0};f.prototype.ax=function(){return!0};f.prototype.Ln=function(){return!0};f.prototype.Br=function(){return!0};f.prototype.Ax=function(){return!0};f.prototype.Kn=function(){return!0};f.prototype.bw=function(c,a,b){return Oa(F(c),F(b))<=F(a)};f.prototype.Gw=function(c,a){return Ra(F(c),F(a))};f.prototype.Fw=function(c,a,b){c=Ma(c);a=Ma(a);b=Ma(b);return Ra(b,a)?Ra(c,a)&&!Ra(c,b):!(!Ra(c,a)&&Ra(c,b))};h.j=new f;k.prototype.zw=
function(c){this.c.$h||this.c.tg||(this.c.tg=c)};k.prototype.ow=function(c,a,b,e){if(a&&c&&(a=this.c.ol(c,a,b,e))){this.c.dd++;var g;this.c.trigger(Object.getPrototypeOf(c.u).j.ig,a);if(a.wc)for(b=0,e=a.siblings.length;b<e;b++)g=a.siblings[b],this.c.trigger(Object.getPrototypeOf(g.type.u).j.ig,g);this.c.dd--;c=c.U();c.na=!1;C(c.g);c.g[0]=a;if(a.wc)for(b=0,e=a.siblings.length;b<e;b++)g=a.siblings[b],c=g.type.U(),c.na=!1,C(c.g),c.g[0]=g}};k.prototype.hy=function(c,a){0===c.Fk?ia(a)?c.cf(a):c.cf(parseFloat(a)):
1===c.Fk&&c.cf(a.toString())};k.prototype.aw=function(c,a){0===c.Fk?ia(a)?c.cf(c.Gg()+a):c.cf(c.Gg()+parseFloat(a)):1===c.Fk&&c.cf(c.Gg()+a.toString())};k.prototype.ny=function(c,a){0===c.Fk&&(ia(a)?c.cf(c.Gg()-a):c.cf(c.Gg()-parseFloat(a)))};k.prototype.Zx=function(c,a){var b=this.c.Oh[c.toLowerCase()];if(b)switch(a){case 0:b.nk(!1);break;case 1:b.nk(!0);break;case 2:b.nk(!b.Hg)}};var e=[],p=[];k.prototype.xy=function(c){if(!(0>c)){var a,b,h,g=this.c.Ab(),d;e.length?d=e.pop():d={zc:{},xa:[]};d.Ao=
!1;d.time=this.c.Ib.Z+c;d.Av="";d.xq=!1;d.Fh=g.xb;d.Nc=g.Nc+1;c=0;for(a=this.c.G.length;c<a;c++)h=this.c.G[c],b=h.U(),b.na&&-1===g.xb.xa.indexOf(h)||(d.xa.push(h),h=void 0,p.length?h=p.pop():h={Pe:[]},h.Vm=!1,h.Vm=b.na,Aa(h.Pe,b.g),d.zc[c.toString()]=h);this.Mc.push(d);return!0}};k.prototype.Sx=function(){var c,a,b;c=0;for(a=this.c.bo.length;c<a;c++)b=this.c.bo[c],b.data=b.Xl};k.prototype.Tx=function(){if(!this.c.$h&&!this.c.tg&&this.c.Ha){this.c.tg=this.c.Ha;var c,a,b;c=0;for(a=this.c.xf.length;c<
a;c++)b=this.c.xf[c],b.nk(b.Yl)}};h.B=new k;b.prototype["int"]=function(c,a){ja(a)?(c.T(parseInt(a,10)),isNaN(c.data)&&(c.data=0)):c.T(a)};b.prototype["float"]=function(c,a){ja(a)?(c.F(parseFloat(a)),isNaN(c.data)&&(c.data=0)):c.F(a)};b.prototype.VC=function(c,a){ja(a)?c.mb(a):c.mb(a.toString())};b.prototype.random=function(c,a,b){void 0===b?c.F(Math.random()*a):c.F(Math.random()*(b-a)+a)};b.prototype.sqrt=function(c,a){c.F(Math.sqrt(a))};b.prototype.abs=function(c,a){c.F(Math.abs(a))};b.prototype.round=
function(c,a){c.T(Math.round(a))};b.prototype.floor=function(c,a){c.T(Math.floor(a))};b.prototype.ceil=function(c,a){c.T(Math.ceil(a))};b.prototype.sin=function(c,a){c.F(Math.sin(F(a)))};b.prototype.cos=function(c,a){c.F(Math.cos(F(a)))};b.prototype.tan=function(c,a){c.F(Math.tan(F(a)))};b.prototype.asin=function(c,a){c.F(Ha(Math.asin(a)))};b.prototype.acos=function(c,a){c.F(Ha(Math.acos(a)))};b.prototype.atan=function(c,a){c.F(Ha(Math.atan(a)))};b.prototype.exp=function(c,a){c.F(Math.exp(a))};b.prototype.log10=
function(c,a){c.F(Math.log(a)/Math.LN10)};b.prototype.max=function(c){var a=arguments[1];"number"!==typeof a&&(a=0);var b,e,g;b=2;for(e=arguments.length;b<e;b++)g=arguments[b],"number"===typeof g&&a<g&&(a=g);c.F(a)};b.prototype.min=function(c){var a=arguments[1];"number"!==typeof a&&(a=0);var b,e,g;b=2;for(e=arguments.length;b<e;b++)g=arguments[b],"number"===typeof g&&a>g&&(a=g);c.F(a)};b.prototype.If=function(c){c.F(this.c.If)};b.prototype.Gi=function(c){c.F(this.c.Gi)};b.prototype.time=function(c){c.F(this.c.Ib.Z)};
b.prototype.Bk=function(c){c.T(this.c.Bk)};b.prototype.wm=function(c){c.T(this.c.wm)};b.prototype.So=function(c){c.T(this.c.So)};b.prototype.LB=function(c,a){var b,e;if(this.c.Tj.length)if(a){for(e=this.c.Uj;0<=e;--e)if(b=this.c.Tj[e],b.name===a){c.T(b.index);return}c.T(0)}else b=this.c.nt(),c.T(b?b.index:-1);else c.T(0)};b.prototype.n=function(c,a,b,e,g){c.F(Ha(Na(a,b,e,g)))};b.prototype.IB=function(c){c.T(this.c.Ha.height)};b.prototype.left=function(c,a,b){c.mb(ja(a)?a.substr(0,b):"")};b.prototype.right=
function(c,a,b){c.mb(ja(a)?a.substr(a.length-b):"")};b.prototype.replace=function(c,a,b,e){ja(a)&&ja(b)&&ja(e)?c.mb(a.replace(new RegExp(db(b),"gi"),e)):c.mb(ja(a)?a:"")};b.prototype.trim=function(c,a){c.mb(ja(a)?a.trim():"")};b.prototype.gz=function(c){var a=qa(Math.random()*(arguments.length-1));c.ve(arguments[a+1])};b.prototype.vo=function(c){c.F(this.c.vo/1E3)};b.prototype.nm=function(c){c.F(this.c.nm)};h.J=new b;h.DC=function(){var c,a,b,h,g,d,l=this.c.Ab();c=0;for(b=this.Mc.length;c<b;c++){h=
this.Mc[c];if(-1===h.time){if(!h.xq)continue}else if(h.time>this.c.Ib.Z)continue;l.xb=h.Fh;l.Nc=h.Nc;l.ub=0;for(a in h.zc)h.zc.hasOwnProperty(a)&&(g=this.c.G[parseInt(a,10)].U(),d=h.zc[a],g.na=d.Vm,Aa(g.g,d.Pe),g=d,C(g.Pe),p.push(g));h.Fh.BC();this.c.so(h.xa);h.Ao=!0}a=c=0;for(b=this.Mc.length;c<b;c++)h=this.Mc[c],this.Mc[a]=h,h.Ao?(Xa(h.zc),C(h.xa),e.push(h)):a++;za(this.Mc,a)}})();
(function(){sb=function(f,b){var h=f[1],e=f[3],p=f[4],c=f[5],a=f[6],q=f[7],t=f[8];b.j||(b.j={});b.B||(b.B={});b.J||(b.J={});var g=b.j,d=b.B,l=b.J;e&&(g.yD=function(a,d){return hc(this.x,a,d)},g.zD=function(a,d){return hc(this.y,a,d)},g.Jw=function(){var a=this.A;this.Nb();var d=this.$b;return!(d.right<a.Ka||d.bottom<a.La||d.left>a.Oa||d.top>a.Na)},g.ED=function(){this.Nb();var a=this.$b,d=this.c.Ha;return 0>a.right||0>a.bottom||a.left>d.width||a.top>d.height},g.QD=function(a,d,c){var b=this.U(),e=
b.sc();if(!e.length)return!1;var g=e[0],l=g,h=Ta(g.x,g.y,d,c),f,k,p;f=1;for(k=e.length;f<k;f++)if(g=e[f],p=Ta(g.x,g.y,d,c),0===a&&p<h||1===a&&p>h)h=p,l=g;b.dk(l);return!0},d.pE=function(a){this.x!==a&&(this.x=a,this.Ta())},d.qE=function(a){this.y!==a&&(this.y=a,this.Ta())},d.jE=function(a,d){if(this.x!==a||this.y!==d)this.x=a,this.y=d,this.Ta()},d.kE=function(a,d){var c=a.MA(this);if(c){var b;c.Zo?(b=c.Zo(d,!0),c=c.Zo(d,!1)):(b=c.x,c=c.y);if(this.x!==b||this.y!==c)this.x=b,this.y=c,this.Ta()}},d.JD=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.Ta())},d.ID=function(a,d){0!==d&&(this.x+=Math.cos(F(a))*d,this.y+=Math.sin(F(a))*d,this.Ta())},l.Qr=function(a){a.F(this.x)},l.Sr=function(a){a.F(this.y)},l.If=function(a){a.F(this.c.Mh(this))});p&&(g.xD=function(a,d){return hc(this.width,a,d)},g.tD=function(a,d){return hc(this.height,a,d)},d.Tn=function(a){this.width!==a&&(this.width=a,this.Ta())},d.Pn=function(a){this.height!==a&&(this.height=a,this.Ta())},d.fy=function(a,
d){if(this.width!==a||this.height!==d)this.width=a,this.height=d,this.Ta()},l.zy=function(a){a.F(this.width)},l.Cw=function(a){a.F(this.height)},l.qD=function(a){this.Nb();a.F(this.$b.left)},l.sD=function(a){this.Nb();a.F(this.$b.top)},l.rD=function(a){this.Nb();a.F(this.$b.right)},l.pD=function(a){this.Nb();a.F(this.$b.bottom)});c&&(g.bw=function(a,d){return Oa(this.n,F(d))<=F(a)},g.Gw=function(a){return Ra(this.n,F(a))},g.Fw=function(a,d){var c=Ma(a),b=Ma(d),e=Ka(this.n);return Ra(b,c)?Ra(e,c)&&
!Ra(e,b):!(!Ra(e,c)&&Ra(e,b))},d.aE=function(a){a=F(Ia(a));isNaN(a)||this.n===a||(this.n=a,this.Ta())},d.XD=function(a){0===a||isNaN(a)||(this.n+=F(a),this.n=Ka(this.n),this.Ta())},d.YD=function(a){0===a||isNaN(a)||(this.n-=F(a),this.n=Ka(this.n),this.Ta())},d.ZD=function(a,d){var c=Qa(this.n,F(d),F(a));isNaN(c)||this.n===c||(this.n=c,this.Ta())},d.$D=function(a,d,c){a=Qa(this.n,Math.atan2(c-this.y,d-this.x),F(a));isNaN(a)||this.n===a||(this.n=a,this.Ta())},d.mE=function(a,d){var c=Math.atan2(d-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.Ta())},l.oD=function(a){a.F(La(this.n))});h||(g.uD=function(a,d,c){return hc(this.Bb[a],d,c)},g.CD=function(a){return this.Bb[a]},g.RD=function(a,d){var c=this.U(),b=c.sc();if(!b.length)return!1;var e=b[0],g=e,l=e.Bb[d],h,f,k;h=1;for(f=b.length;h<f;h++)if(e=b[h],k=e.Bb[d],0===a&&k<l||1===a&&k>l)l=k,g=e;c.dk(g);return!0},g.Ox=function(a){var d,c,b,e,g;if(this.c.kt().qp){g=this.U();if(g.na)for(g.na=!1,C(g.g),C(g.ka),b=this.g,d=0,c=b.length;d<c;d++)e=b[d],
e.uid===a?g.ka.push(e):g.g.push(e);else{b=d=0;for(c=g.g.length;d<c;d++)e=g.g[d],g.g[b]=e,e.uid===a?g.ka.push(e):b++;za(g.g,b)}this.Id();return!!g.g.length}e=this.c.jc(a);if(!e)return!1;g=this.U();if(!g.na&&-1===g.g.indexOf(e))return!1;if(this.N)for(a=e.type.Ra,d=0,c=a.length;d<c;d++){if(a[d]===this)return g.dk(e),this.Id(),!0}else if(e.type===this)return g.dk(e),this.Id(),!0;return!1},g.ig=function(){return!0},g.ix=function(){return!0},d.Qn=function(a,d){var c=this.Bb;ia(c[a])?c[a]=ia(d)?d:parseFloat(d):
ja(c[a])&&(c[a]=ja(d)?d:d.toString())},d.nD=function(a,d){var c=this.Bb;ia(c[a])?c[a]=ia(d)?c[a]+d:c[a]+parseFloat(d):ja(c[a])&&(c[a]=ja(d)?c[a]+d:c[a]+d.toString())},d.sE=function(a,d){var c=this.Bb;ia(c[a])&&(c[a]=ia(d)?c[a]-d:c[a]-parseFloat(d))},d.bE=function(a,d){this.Bb[a]=d?1:0},d.uE=function(a){this.Bb[a]=1-this.Bb[a]},d.qw=function(){this.c.pf(this)},d.Sw||(d.Sw=function(a){var d,c;try{d=JSON.parse(a)}catch(b){return}this.c.lm(this,d,!0);this.qc&&this.qc();if(this.ea)for(a=0,d=this.ea.length;a<
d;++a)c=this.ea[a],c.qc&&c.qc()}),l.AD=function(a){var d=a.Yg.g.length,c,b,e;c=0;for(b=this.c.ae.length;c<b;c++)e=this.c.ae[c],a.Yg.N?0<=e.type.Ra.indexOf(a.Yg)&&d++:e.type===a.Yg&&d++;a.T(d)},l.TD=function(a){a.T(a.Yg.U().sc().length)},l.vy=function(a){a.T(this.uid)},l.BD=function(a){a.T(this.sj())},l.Zq||(l.Zq=function(a){a.mb(JSON.stringify(this.c.sq(this,!0)))}));a&&(g.Kw=function(){return this.visible},d.Kr=function(a){!a!==!this.visible&&(this.visible=!!a,this.c.Ba=!0)},g.vD=function(a,d){return hc(ob(100*
this.opacity),a,d)},d.by=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.c.Ba=!0)},l.Opacity=function(a){a.F(ob(100*this.opacity))});q&&(g.DD=function(a){return a?this.A===a:!1},g.SD=function(a){var d=this.U(),c=d.sc();if(!c.length)return!1;var b=c[0],e=b,g,l;g=1;for(l=c.length;g<l;g++)if(b=c[g],0===a){if(b.A.index>e.A.index||b.A.index===e.A.index&&b.ie()>e.ie())e=b}else if(b.A.index<e.A.index||b.A.index===e.A.index&&b.ie()<e.ie())e=b;d.dk(e);return!0},d.MD=function(){var a=
this.A,d=a.g;d.length&&d[d.length-1]===this||(a.ti(this,!1),a.$i(this,!1),this.c.Ba=!0)},d.KD=function(){var a=this.A,d=a.g;d.length&&d[0]===this||(a.ti(this,!1),a.pC(this),this.c.Ba=!0)},d.LD=function(a){a&&a!=this.A&&(this.A.ti(this,!0),this.A=a,a.$i(this,!0),this.c.Ba=!0)},d.xE=function(a,d){var c=0===a;if(d){var b=d.he(this);b&&b.uid!==this.uid&&(this.A.index!==b.A.index&&(this.A.ti(this,!0),this.A=b.A,b.A.$i(this,!0)),this.A.QB(this,b,c),this.c.Ba=!0)}},l.HD=function(a){a.T(this.A.xu)},l.GD=
function(a){a.mb(this.A.name)},l.wE=function(a){a.T(this.ie())});t&&(d.fE=function(a,d){if(this.c.C){var c=this.type.Yo(d);if(!(0>c)){var b=1===a;this.vf[c]!==b&&(this.vf[c]=b,this.Td(),this.c.Ba=!0)}}},d.gE=function(a,d,c){if(this.c.C){var b=this.type.Yo(a);0>b||(a=this.type.Y[b],b=this.eb[b],d=Math.floor(d),0>d||d>=b.length||(1===this.c.C.QA(a.sb,d)&&(c/=100),b[d]!==c&&(b[d]=c,a.jb&&(this.c.Ba=!0))))}})};Mb=function(){this.no=this.ho=!0;this.type.us=!0;this.c.Ba=!0;var f,b,h=this.io;f=0;for(b=h.length;f<
b;++f)h[f](this);this.A.kd&&this.Nb()};Nb=function(f){f&&this.io.push(f)};Pb=function(){if(this.ho){var f=this.$b,b=this.xh;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.tc*this.width,-this.uc*this.height);this.n?(f.offset(-this.x,-this.y),b.tv(f,this.n),b.offset(this.x,this.y),b.Ds(f)):b.an(f);f.normalize();this.ho=!1;this.fD()}};var f=new va(0,0,0,0);Qb=function(){if(this.A.kd){var k=this.A.Wb,b=this.$b;f.set(k.Cc(b.left),k.Dc(b.top),k.Cc(b.right),k.Dc(b.bottom));this.Ic.ij(f)||
(this.Ic.right<this.Ic.left?k.update(this,null,f):k.update(this,this.Ic,f),this.Ic.ej(f),this.A.Qd=!0)}};Rb=function(){if(this.no&&this.cj){this.Nb();var k=this.type.Js,b=this.$b;f.set(k.Cc(b.left),k.Dc(b.top),k.Cc(b.right),k.Dc(b.bottom));this.Ff.ij(f)||(this.Ff.right<this.Ff.left?k.update(this,null,f):k.update(this,this.Ff,f),this.Ff.ej(f),this.no=!1)}};Ob=function(f,b){return this.$b.md(f,b)&&this.xh.md(f,b)?this.$d&&!this.$d.CB()?(this.$d.bz(this.width,this.height,this.n),this.$d.md(f-this.x,
b-this.y)):!0:!1};Ib=function(){this.type.un();return this.Lg};Sb=function(){this.A.Oq();return this.Vd};Tb=function(){C(this.Ca);var f,b,h,e=!0;f=0;for(b=this.vf.length;f<b;f++)this.vf[f]&&(h=this.type.Y[f],this.Ca.push(h),h.Pd||(e=!1));this.Tv=!!this.Ca.length;this.df=e};Jb=function(){return"Inst"+this.Xu};vb=function(f){if(f&&f.wc&&f.type!=this){var b,h,e;b=0;for(h=f.siblings.length;b<h;b++)if(e=f.siblings[b],e.type==this)return e}f=this.U().sc();return f.length?f[0]:null};wb=function(f){var b=
this.U().sc();return b.length?b[f.sj()%b.length]:null};ub=function(){if(this.Ci&&!this.N){var f,b;f=0;for(b=this.g.length;f<b;f++)this.g[f].Lg=f;var h=f,e=this.c.ae;f=0;for(b=e.length;f<b;++f)e[f].type===this&&(e[f].Lg=h++);this.Ci=!1}};Gb=function(f){if(f<this.g.length)return this.g[f];f-=this.g.length;var b=this.c.ae,h,e;h=0;for(e=b.length;h<e;++h)if(b[h].type===this){if(0===f)return b[h];--f}return null};xb=function(){return this.ff[this.be]};yb=function(){this.be++;this.be===this.ff.length?this.ff.push(new tb(this)):
(this.ff[this.be].na=!0,C(this.ff[this.be].ka))};zb=function(){this.be++;this.be===this.ff.length&&this.ff.push(new tb(this));var f=this.ff[this.be],b=this.ff[this.be-1];b.na?(f.na=!0,C(f.ka)):(f.na=!1,Aa(f.g,b.g),Aa(f.ka,b.ka))};Bb=function(){this.be--};Cb=function(f){var b,h,e,p,c,a=0;if(!this.N)for(b=0,h=this.Ra.length;b<h;b++)for(c=this.Ra[b],e=0,p=c.ab.length;e<p;e++){if(f===c.ab[e].name)return this.ma.lastBehIndex=a,c.ab[e];a++}b=0;for(h=this.ab.length;b<h;b++){if(f===this.ab[b].name)return this.ma.lastBehIndex=
a,this.ab[b];a++}return null};Db=function(f){return this.Ql(f)?this.ma.lastBehIndex:-1};Eb=function(f){var b,h;b=0;for(h=this.Y.length;b<h;b++)if(this.Y[b].name===f)return b;return-1};Fb=function(){if(this.wc&&!this.N){var f,b,h,e,p,c,a;this.un();c=this.U();var q=c.na,t=(f=this.c.Ab())&&f.xb&&f.xb.xd;f=0;for(b=this.Pc.length;f<b;f++)if(p=this.Pc[f],p!==this&&(p.un(),a=p.U(),a.na=q,!q)){C(a.g);h=0;for(e=c.g.length;h<e;++h)a.g[h]=p.$o(c.g[h].Lg);if(t)for(C(a.ka),h=0,e=c.ka.length;h<e;++h)a.ka[h]=p.$o(c.ka[h].Lg)}}};
Hb=function(){return"Type"+this.qa};hc=function(f,b,h){if("undefined"===typeof f||"undefined"===typeof h)return!1;switch(b){case 0:return f===h;case 1:return f!==h;case 2:return f<h;case 3:return f<=h;case 4:return f>h;case 5:return f>=h;default:return!1}}})();var qc={};function tc(f){this.c=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function k(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].bd():u.destination}function b(){return u.createGain?u.createGain():u.createGainNode()}function h(a){return u.createDelay?u.createDelay(a):u.createDelayNode(a)}function e(a,d){a.start?a.start(d||0):a.noteOn(d||0)}function p(a,d,c,b){a.start?a.start(b||0,d):a.noteGrainOn(b||0,d,c-d)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(d){}}
function a(a,d,c,e,g,l){this.type="filter";this.Gb=[a,d,c,e,g,l];this.ua=b();this.X=b();this.X.gain.value=l;this.W=b();this.W.gain.value=1-l;this.nb=u.createBiquadFilter();this.nb.type="number"===typeof this.nb.type?a:id[a];this.nb.frequency.value=d;this.nb.detune&&(this.nb.detune.value=c);this.nb.Q.value=e;this.nb.gain.value=g;this.ua.connect(this.nb);this.ua.connect(this.W);this.nb.connect(this.X)}function q(a,d,c){this.type="delay";this.Gb=[a,d,c];this.ua=b();this.X=b();this.X.gain.value=c;this.W=
b();this.W.gain.value=1-c;this.Wj=b();this.qd=h(a);this.qd.delayTime.value=a;this.ul=b();this.ul.gain.value=d;this.ua.connect(this.Wj);this.ua.connect(this.W);this.Wj.connect(this.X);this.Wj.connect(this.qd);this.qd.connect(this.ul);this.ul.connect(this.Wj)}function t(a,d,c,e){this.type="convolve";this.Gb=[d,c,e];this.ua=b();this.X=b();this.X.gain.value=c;this.W=b();this.W.gain.value=1-c;this.ug=u.createConvolver();a&&(this.ug.normalize=d,this.ug.buffer=a);this.ua.connect(this.ug);this.ua.connect(this.W);
this.ug.connect(this.X)}function g(a,d,c,g,l){this.type="flanger";this.Gb=[a,d,c,g,l];this.ua=b();this.W=b();this.W.gain.value=1-l/2;this.X=b();this.X.gain.value=l/2;this.Il=b();this.Il.gain.value=g;this.qd=h(a+d);this.qd.delayTime.value=a;this.Kb=u.createOscillator();this.Kb.frequency.value=c;this.Vc=b();this.Vc.gain.value=d;this.ua.connect(this.qd);this.ua.connect(this.W);this.qd.connect(this.X);this.qd.connect(this.Il);this.Il.connect(this.qd);this.Kb.connect(this.Vc);this.Vc.connect(this.qd.delayTime);
e(this.Kb)}function d(a,d,c,g,l,h){this.type="phaser";this.Gb=[a,d,c,g,l,h];this.ua=b();this.W=b();this.W.gain.value=1-h/2;this.X=b();this.X.gain.value=h/2;this.nb=u.createBiquadFilter();this.nb.type="number"===typeof this.nb.type?7:"allpass";this.nb.frequency.value=a;this.nb.detune&&(this.nb.detune.value=d);this.nb.Q.value=c;this.Kb=u.createOscillator();this.Kb.frequency.value=l;this.Vc=b();this.Vc.gain.value=g;this.ua.connect(this.nb);this.ua.connect(this.W);this.nb.connect(this.X);this.Kb.connect(this.Vc);
this.Vc.connect(this.nb.frequency);e(this.Kb)}function l(a){this.type="gain";this.Gb=[a];this.Aa=b();this.Aa.gain.value=a}function m(a,d){this.type="tremolo";this.Gb=[a,d];this.Aa=b();this.Aa.gain.value=1-d/2;this.Kb=u.createOscillator();this.Kb.frequency.value=a;this.Vc=b();this.Vc.gain.value=d/2;this.Kb.connect(this.Vc);this.Vc.connect(this.Aa.gain);e(this.Kb)}function w(a,d){this.type="ringmod";this.Gb=[a,d];this.ua=b();this.X=b();this.X.gain.value=d;this.W=b();this.W.gain.value=1-d;this.mk=b();
this.mk.gain.value=0;this.Kb=u.createOscillator();this.Kb.frequency.value=a;this.Kb.connect(this.mk.gain);e(this.Kb);this.ua.connect(this.mk);this.ua.connect(this.W);this.mk.connect(this.X)}function n(a,d,c,e,g){this.type="distortion";this.Gb=[a,d,c,e,g];this.ua=b();this.Nm=b();this.Mm=b();this.KC(c,Math.pow(10,e/20));this.X=b();this.X.gain.value=g;this.W=b();this.W.gain.value=1-g;this.An=u.createWaveShaper();this.sl=new Float32Array(65536);this.FA(a,d);this.An.sl=this.sl;this.ua.connect(this.Nm);
this.ua.connect(this.W);this.Nm.connect(this.An);this.An.connect(this.Mm);this.Mm.connect(this.X)}function N(a,d,c,b,e){this.type="compressor";this.Gb=[a,d,c,b,e];this.Aa=u.createDynamicsCompressor();try{this.Aa.threshold.value=a,this.Aa.knee.value=d,this.Aa.ratio.value=c,this.Aa.attack.value=b,this.Aa.release.value=e}catch(g){}}function r(a,d){this.type="analyser";this.Gb=[a,d];this.Aa=u.createAnalyser();this.Aa.fftSize=a;this.Aa.smoothingTimeConstant=d;this.DA=new Float32Array(this.Aa.frequencyBinCount);
this.yv=new Uint8Array(a);this.ck=0}function R(){this.Ga=null;this.mm=0}function K(a,d){this.src=a;this.la=T;this.ud=d;this.el=!1;var c=this;this.Np=this.$p=null;this.oi=[];this.Wm=0;this.Sq=this.Gl=this.Ev=this.Gm=!1;1===T&&d&&!jb&&(this.la=0,this.$p=b());this.De=this.Da=null;var e;switch(this.la){case 0:this.Da=new Audio;this.Da.crossOrigin="anonymous";this.Da.addEventListener("canplaythrough",function(){c.Sq=!0});1===T&&u.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Ev=!0,
this.Da.addEventListener("canplay",function(){c.Np||(c.Np=u.createMediaElementSource(c.Da),c.Np.connect(c.$p))}));this.Da.autoplay=!1;this.Da.PE="auto";this.Da.src=a;break;case 1:z.Fj?z.$s(a,function(a){c.De=a;c.Qs()},function(){c.Gl=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.De=e.response;c.Qs()},e.onerror=function(){c.Gl=!0},e.send());break;case 2:this.Da=!0;break;case 3:this.Da=!0}}function D(a,d){var c=this;this.tag=d;this.tb=this.ge=!0;this.src=
a.src;this.buffer=a;this.la=T;this.ud=a.ud;this.playbackRate=1;this.Qh=!0;this.Sc=this.hd=!1;this.Jc=0;this.Gj=this.Wh=this.ne=!1;this.volume=1;this.Yp=function(a){if(!c.Sc&&!c.hd){var d=this;d||(d=a.target);d===c.cl&&(c.Qh=!0,c.tb=!0,U=c.tag,z.trigger(tc.prototype.j.Mk,v))}};this.cl=null;this.Th=1===J&&!this.ud||2===J;this.ji=1;this.startTime=this.Th?z.Ib.Z:z.jf.Z;this.qb=this.zb=null;this.oe=!1;this.Sb=null;this.Nu=this.Mu=this.Lu=this.Ku=this.Pu=this.Ou=0;this.k=null;var e=!1;1!==this.la||0!==
this.buffer.la||this.buffer.Ev||(this.la=0);switch(this.la){case 0:this.ud?(this.k=a.Da,e=!a.el,a.el=!0):(this.k=new Audio,this.k.crossOrigin="anonymous",this.k.autoplay=!1,this.k.src=a.Da.src,e=!0);e&&this.k.addEventListener("ended",function(){U=c.tag;c.tb=!0;z.trigger(tc.prototype.j.Mk,v)});break;case 1:this.zb=b();this.zb.connect(k(d));1===this.buffer.la?a.Da&&(this.k=u.createBufferSource(),this.k.buffer=a.Da,this.k.connect(this.zb)):(this.k=this.buffer.Da,this.buffer.$p.connect(this.zb),this.buffer.el||
(this.buffer.el=!0,this.buffer.Da.addEventListener("ended",function(){U=c.tag;c.tb=!0;z.trigger(tc.prototype.j.Mk,v)})));break;case 2:this.k=new window.Media(M+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Qh=!0,c.tb=!0,U=c.tag,z.trigger(tc.prototype.j.Mk,v))});break;case 3:this.k=!0}}function B(a,d){var c=a.Og()?1:0,b=d.Og()?1:0;return c===b?0:c<b?1:-1}function G(a,d){C(Ja);if(a.length){var c,b,e;c=0;for(b=y.length;c<b;c++)e=y[c],pb(a,e.tag)&&Ja.push(e);d&&Ja.sort(B)}else P&&
!P.Kg()&&(C(Ja),Ja[0]=P)}function x(a,d){ba.hasOwnProperty(a)?ba[a].push(d):ba[a]=[d];var c,b,e,g,l=u.destination;if(ba.hasOwnProperty(a)&&(e=ba[a],e.length))for(l=e[0].bd(),c=0,b=e.length;c<b;c++)g=e[c],c+1===b?g.ld(u.destination):g.ld(e[c+1].bd());G(a);c=0;for(b=Ja.length;c<b;c++)Ja[c].uC(l);Wa&&Ub===a&&(Wa.disconnect(),Wa.connect(l))}function A(){}function E(){}function I(){}var S=tc.prototype;S.V=function(a){this.u=a;this.c=a.c};S.V.prototype.K=function(){};var z=null,v=null,U="",M="",T=0,u=null,
H=[],y=[],P=null,Q=!1,J=0,L=!1,V=1,ra=0,W=0,Ga=!1,sa=1,Pa=1,Uc=10,Vc=1E4,Wc=1,Wa=null,Ub="",kb=!1,lb=[],jb=!1,ba={},id="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.ld=function(a){this.X.disconnect();this.X.connect(a);this.W.disconnect();this.W.connect(a)};a.prototype.remove=function(){this.ua.disconnect();this.nb.disconnect();this.X.disconnect();this.W.disconnect()};a.prototype.bd=function(){return this.ua};q.prototype.ld=function(a){this.X.disconnect();
this.X.connect(a);this.W.disconnect();this.W.connect(a)};q.prototype.remove=function(){this.ua.disconnect();this.Wj.disconnect();this.qd.disconnect();this.ul.disconnect();this.X.disconnect();this.W.disconnect()};q.prototype.bd=function(){return this.ua};t.prototype.ld=function(a){this.X.disconnect();this.X.connect(a);this.W.disconnect();this.W.connect(a)};t.prototype.remove=function(){this.ua.disconnect();this.ug.disconnect();this.X.disconnect();this.W.disconnect()};t.prototype.bd=function(){return this.ua};
g.prototype.ld=function(a){this.W.disconnect();this.W.connect(a);this.X.disconnect();this.X.connect(a)};g.prototype.remove=function(){this.ua.disconnect();this.qd.disconnect();this.Kb.disconnect();this.Vc.disconnect();this.W.disconnect();this.X.disconnect();this.Il.disconnect()};g.prototype.bd=function(){return this.ua};d.prototype.ld=function(a){this.W.disconnect();this.W.connect(a);this.X.disconnect();this.X.connect(a)};d.prototype.remove=function(){this.ua.disconnect();this.nb.disconnect();this.Kb.disconnect();
this.Vc.disconnect();this.W.disconnect();this.X.disconnect()};d.prototype.bd=function(){return this.ua};l.prototype.ld=function(a){this.Aa.disconnect();this.Aa.connect(a)};l.prototype.remove=function(){this.Aa.disconnect()};l.prototype.bd=function(){return this.Aa};m.prototype.ld=function(a){this.Aa.disconnect();this.Aa.connect(a)};m.prototype.remove=function(){this.Kb.disconnect();this.Vc.disconnect();this.Aa.disconnect()};m.prototype.bd=function(){return this.Aa};w.prototype.ld=function(a){this.X.disconnect();
this.X.connect(a);this.W.disconnect();this.W.connect(a)};w.prototype.remove=function(){this.Kb.disconnect();this.mk.disconnect();this.ua.disconnect();this.X.disconnect();this.W.disconnect()};w.prototype.bd=function(){return this.ua};n.prototype.KC=function(a,d){.01>a&&(a=.01);this.Nm.gain.value=a;this.Mm.gain.value=Math.pow(1/a,.6)*d};n.prototype.shape=function(a,d,c){var b=1.05*c*d-d;c=0>a?-1:1;a=0>a?-a:a;d=a<d?a:d+b*(1-Math.exp(-(1/b)*(a-d)));return d*c};n.prototype.FA=function(a,d){for(var c=Math.pow(10,
a/20),b=Math.pow(10,d/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,c,b),this.sl[32768+g]=e,this.sl[32768-g-1]=-e};n.prototype.ld=function(a){this.X.disconnect();this.X.connect(a);this.W.disconnect();this.W.connect(a)};n.prototype.remove=function(){this.ua.disconnect();this.Nm.disconnect();this.An.disconnect();this.Mm.disconnect();this.X.disconnect();this.W.disconnect()};n.prototype.bd=function(){return this.ua};N.prototype.ld=function(a){this.Aa.disconnect();this.Aa.connect(a)};N.prototype.remove=
function(){this.Aa.disconnect()};N.prototype.bd=function(){return this.Aa};r.prototype.ib=function(){this.Aa.getFloatFrequencyData(this.DA);this.Aa.getByteTimeDomainData(this.yv);for(var a=this.Aa.fftSize,d=0,c=this.ck=0,b=0;d<a;d++)b=(this.yv[d]-128)/128,0>b&&(b=-b),this.ck<b&&(this.ck=b),c+=b*b;this.ck=f(this.ck);f(Math.sqrt(c/a))};r.prototype.ld=function(a){this.Aa.disconnect();this.Aa.connect(a)};r.prototype.remove=function(){this.Aa.disconnect()};r.prototype.bd=function(){return this.Aa};R.prototype.ok=
function(a){this.Ga=a};R.prototype.Vl=function(){return!!this.Ga};R.prototype.ib=function(){};var Ab=!1;K.prototype.vC=function(){var a,d,c,b;c=a=0;for(d=y.length;a<d;++a)b=y[a],y[c]=b,b.buffer===this?b.stop():++c;y.length=c;this.De=this.Da=null};K.prototype.Qs=function(){if(!this.Da&&this.De){var a=this;if(u.decodeAudioData)u.decodeAudioData(this.De,function(d){a.Da=d;a.De=null;var c,b,e;if(ha(a.Jm)||L)ha(a.nl)||(c=a.nl.ug,c.normalize=a.wu,c.buffer=d);else if(a.oi.length){c=0;for(b=a.oi.length;c<
b;c++){d=a.oi[c];e=new D(a,d.Gv);e.vq(!0);if("undefined"!==typeof d.yu&&(d.Ga=z.jc(d.yu),!d.Ga))continue;if(d.Ga){var g=Sa(d.Ga.x,d.Ga.y,-d.Ga.A.Rb(),ra,W,!0),l=Sa(d.Ga.x,d.Ga.y,-d.Ga.A.Rb(),ra,W,!1);e.uq(g,l,Ha(d.Ga.n-d.Ga.A.Rb()),d.kp,d.Sp,d.Vp);e.ok(d.Ga)}else e.uq(d.x,d.y,d.uh,d.kp,d.Sp,d.Vp);e.play(a.Kp,a.Qq,a.Wm);a.Gm&&e.pause();y.push(e)}C(a.oi)}else e=new D(a,a.Jm||""),e.play(a.Kp,a.Qq,a.Wm),a.Gm&&e.pause(),y.push(e)},function(){a.Gl=!0});else if(this.Da=u.createBuffer(this.De,!1),this.De=
null,ha(this.Jm)||L)ha(this.nl)||(d=this.nl.ug,d.normalize=this.wu,d.buffer=this.Da);else{var d=new D(this,this.Jm);d.play(this.Kp,this.Qq,this.Wm);this.Gm&&d.pause();y.push(d)}}};K.prototype.Ht=function(){switch(this.la){case 0:var a=4<=this.Da.readyState;a&&(this.Sq=!0);return a||this.Sq;case 1:return!!this.De||!!this.Da;case 2:return!0;case 3:return!0}return!1};K.prototype.uB=function(){switch(this.la){case 0:return this.Ht();case 1:return!!this.Da;case 2:return!0;case 3:return!0}return!1};K.prototype.lB=
function(){switch(this.la){case 0:return!!this.Da.error;case 1:return this.Gl}return!1};D.prototype.Kg=function(){switch(this.la){case 0:return this.k.ended;case 1:return 1===this.buffer.la?!this.ge&&!this.tb&&this.k.loop||this.Sc?!1:this.Qh:this.k.ended;case 2:return this.Qh;case 3:!0}return!0};D.prototype.ez=function(){return this.ge||this.tb?!0:this.Kg()};D.prototype.vq=function(a){1===T&&(!this.oe&&a?this.zb&&(this.qb||(this.qb=u.createPanner(),this.qb.panningModel="number"===typeof this.qb.panningModel?
sa:["equalpower","HRTF","soundfield"][sa],this.qb.distanceModel="number"===typeof this.qb.distanceModel?Pa:["linear","inverse","exponential"][Pa],this.qb.refDistance=Uc,this.qb.maxDistance=Vc,this.qb.rolloffFactor=Wc),this.zb.disconnect(),this.zb.connect(this.qb),this.qb.connect(k(this.tag)),this.oe=!0):this.oe&&!a&&this.zb&&(this.qb.disconnect(),this.zb.disconnect(),this.zb.connect(k(this.tag)),this.oe=!1))};D.prototype.uq=function(a,d,c,b,e,g){this.oe&&1===T&&(this.qb.setPosition(a,d,0),this.qb.setOrientation(Math.cos(F(c)),
Math.sin(F(c)),0),this.qb.coneInnerAngle=b,this.qb.coneOuterAngle=e,this.qb.coneOuterGain=g,this.Ou=a,this.Pu=d,this.Ku=c,this.Lu=b,this.Mu=e,this.Nu=g)};D.prototype.ok=function(a){this.oe&&1===T&&(this.Sb||(this.Sb=new R),this.Sb.ok(a))};D.prototype.ib=function(a){if(this.oe&&1===T&&this.Sb&&this.Sb.Vl()&&this.Og()){this.Sb.ib(a);a=this.Sb.Ga;var d=Sa(a.x,a.y,-a.A.Rb(),ra,W,!0),c=Sa(a.x,a.y,-a.A.Rb(),ra,W,!1);this.qb.setPosition(d,c,0);d=0;"undefined"!==typeof this.Sb.Ga.n&&(d=a.n-a.A.Rb(),this.qb.setOrientation(Math.cos(d),
Math.sin(d),0))}};D.prototype.play=function(a,d,c,b){var g=this.k;this.ne=a;this.volume=d;c=c||0;b=b||0;switch(this.la){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==d*V&&(g.volume=d*V);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==c)try{g.currentTime=c}catch(l){}if(this.ud&&kb&&!z.ke)lb.push(this);else try{this.k.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.ji=
1;if(1===this.buffer.la)this.zb.gain.value=d*V,this.ge||(this.k=u.createBufferSource(),this.k.buffer=this.buffer.Da,this.k.connect(this.zb)),this.k.onended=this.Yp,this.cl=this.k,this.k.loop=a,this.Qh=!1,0===c?e(this.k,b):p(this.k,c,this.Lf(),b);else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=d*V;if(g.currentTime!==c)try{g.currentTime=c}catch(f){}this.ud&&kb&&!z.ke?lb.push(this):g.play()}break;case 2:(!this.ge&&this.tb||0!==c)&&g.seekTo(c);g.play();this.Qh=!1;break;case 3:z.vc?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Th?z.Ib.Z:z.jf.Z)-c;this.Sc=this.tb=this.ge=!1};D.prototype.stop=function(){switch(this.la){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.la?c(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:z.vc&&AppMobi.context.stopSound(this.src)}this.tb=!0;this.Sc=!1};D.prototype.pause=function(){if(!(this.ge||this.tb||this.Kg()||this.Sc)){switch(this.la){case 0:this.k.paused||
this.k.pause();break;case 1:1===this.buffer.la?(this.Jc=this.cp(!0),this.ne&&(this.Jc=this.Jc%this.Lf()),this.Sc=!0,c(this.k)):this.k.paused||this.k.pause();break;case 2:this.k.pause();break;case 3:z.vc&&AppMobi.context.stopSound(this.src)}this.Sc=!0}};D.prototype.AC=function(){if(!(this.ge||this.tb||this.Kg())&&this.Sc){switch(this.la){case 0:this.k.play();break;case 1:1===this.buffer.la?(this.k=u.createBufferSource(),this.k.buffer=this.buffer.Da,this.k.connect(this.zb),this.k.onended=this.Yp,this.cl=
this.k,this.k.loop=this.ne,this.zb.gain.value=V*this.volume*this.ji,this.vn(),this.startTime=(this.Th?z.Ib.Z:z.jf.Z)-this.Jc/(this.playbackRate||.001),p(this.k,this.Jc,this.Lf())):this.k.play();break;case 2:this.k.play();break;case 3:z.vc&&AppMobi.context.resumeSound(this.src)}this.Sc=!1}};D.prototype.seek=function(a){if(!(this.ge||this.tb||this.Kg()))switch(this.la){case 0:try{this.k.currentTime=a}catch(d){}break;case 1:if(1===this.buffer.la)this.Sc?this.Jc=a:(this.pause(),this.Jc=a,this.AC());else try{this.k.currentTime=
a}catch(c){}break;case 3:z.vc&&AppMobi.context.seekSound(this.src,a)}};D.prototype.uC=function(a){1===this.la&&(this.oe?(this.qb.disconnect(),this.qb.connect(a)):(this.zb.disconnect(),this.zb.connect(a)))};D.prototype.Lf=function(){var a=0;switch(this.la){case 0:"undefined"!==typeof this.k.duration&&(a=this.k.duration);break;case 1:a=this.buffer.Da.duration;break;case 2:a=this.k.getDuration();break;case 3:z.vc&&(a=AppMobi.context.getDurationSound(this.src))}return a};D.prototype.cp=function(a){var d=
this.Lf(),c=0;switch(this.la){case 0:"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 1:if(1===this.buffer.la){if(this.Sc)return this.Jc;c=(this.Th?z.Ib.Z:z.jf.Z)-this.startTime}else"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 3:z.vc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.ne&&c>d&&(c=d);return c};D.prototype.Og=function(){return!this.Sc&&!this.ge&&!this.tb&&!this.Kg()};D.prototype.QC=function(){return!this.ge&&
!this.tb&&!this.Kg()};D.prototype.dD=function(){var a=this.volume*V;isFinite(a)||(a=0);switch(this.la){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.la?this.zb.gain.value=a*this.ji:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};D.prototype.zl=function(a){switch(this.la){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.la?(this.ji=a?0:1,this.zb.gain.value=V*this.volume*this.ji):this.k.muted!==
!!a&&(this.k.muted=!!a)}};D.prototype.LC=function(){this.Wh=!0;this.zl(this.Wh||this.Gj)};D.prototype.rv=function(a){this.Gj=!!a;this.zl(this.Wh||this.Gj)};D.prototype.vn=function(){var a=this.playbackRate;this.Th&&(a*=z.Gi);switch(this.la){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.la?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};D.prototype.OC=function(a){switch(this.la){case 0:a?this.Og()?
(this.hd=!0,this.k.pause()):this.hd=!1:this.hd&&(this.k.play(),this.hd=!1);break;case 1:a?this.Og()?(this.hd=!0,1===this.buffer.la?(this.Jc=this.cp(!0),this.ne&&(this.Jc=this.Jc%this.Lf()),c(this.k)):this.k.pause()):this.hd=!1:this.hd&&(1===this.buffer.la?(this.k=u.createBufferSource(),this.k.buffer=this.buffer.Da,this.k.connect(this.zb),this.k.onended=this.Yp,this.cl=this.k,this.k.loop=this.ne,this.zb.gain.value=V*this.volume*this.ji,this.vn(),this.startTime=(this.Th?z.Ib.Z:z.jf.Z)-this.Jc/(this.playbackRate||
.001),p(this.k,this.Jc,this.Lf())):this.k.play(),this.hd=!1);break;case 2:a?this.Og()?(this.k.pause(),this.hd=!0):this.hd=!1:this.hd&&(this.hd=!1,this.k.play())}};S.I=function(a){function d(){if(!Ga&&u.createBuffer){var a=u.createBuffer(1,220,22050),c=u.createBufferSource();c.buffer=a;c.connect(u.destination);e(c)}}this.type=a;z=this.c=a.c;v=this;this.Tc=null;this.Lj=-600;this.c.Fj&&(jb=!0);!(this.c.Zh||this.c.Zl&&(this.c.yj||this.c.$l))||this.c.zj||this.c.Cb||this.c.rp||jb||(kb=!0);u=null;"undefined"!==
typeof AudioContext?(T=1,u=new AudioContext):"undefined"!==typeof webkitAudioContext&&(T=1,u=new webkitAudioContext);this.c.Zh&&u&&(u.close&&u.close(),"undefined"!==typeof AudioContext?u=new AudioContext:"undefined"!==typeof webkitAudioContext&&(u=new webkitAudioContext));kb?document.addEventListener("touchend",function(){!Ab&&u&&(d(),Ab=!0);var a,c,b;if(kb){if(!L)for(a=0,c=lb.length;a<c;++a)b=lb[a],b.tb||b.Sc||b.k.play();C(lb)}},!0):jb&&document.addEventListener("touchend",function(){!Ab&&u&&(d(),
Ab=!0)},!0);1!==T&&(this.c.Rc&&"undefined"!==typeof window.Media?T=2:this.c.Gt&&(T=3));2===T&&(M=location.href,a=M.lastIndexOf("/"),-1<a&&(M=M.substr(0,a+1)),M=M.replace("file://",""));if(this.c.wB&&this.c.xB&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),this.c.pf(this);else{if(this.c.vc)Q=this.c.Zl;else try{Q=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){Q=!1}this.c.Eq(this)}};
var Ba=S.I.prototype;Ba.K=function(){this.c.wh=this;J=this.q[0];this.bf=this.q[1];this.hC=0!==this.q[2];this.uu=0;sa=this.q[3];Pa=this.q[4];this.Lj=-this.q[5];Uc=this.q[6];Vc=this.q[7];Wc=this.q[8];this.Tc=new R;var a=this.c.S||this.c.width,d=this.c.R||this.c.height;1===T&&(u.listener.setPosition(a/2,d/2,this.Lj),u.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,d){Wa&&Wa.disconnect();Ub=d.toLowerCase();Wa=u.createMediaStreamSource(a);Wa.connect(k(Ub))});this.c.Uy(function(a){v.bC(a)});
var c=this;this.c.dl(function(a){c.Zg(a)})};Ba.Zg=function(a){var d,c,b;d=0;for(c=y.length;d<c;d++)b=y[d],b.Sb&&b.Sb.Ga===a&&(b.Sb.Ga=null,b.oe&&b.Og()&&b.ne&&b.stop());this.Tc.Ga===a&&(this.Tc.Ga=null)};Ba.wa=function(){var a={silent:L,masterVolume:V,listenerZ:this.Lj,listenerUid:this.Tc.Vl()?this.Tc.Ga.uid:-1,playing:[],effects:{}},d=a.playing,c,b,e,g,l,h;c=0;for(b=y.length;c<b;c++)e=y[c],!e.QC()||3===this.bf||e.ud&&1===this.bf||!e.ud&&2===this.bf||(g=e.cp(),e.ne&&(g=g%e.Lf()),g={tag:e.tag,buffersrc:e.buffer.src,
is_music:e.ud,playbackTime:g,volume:e.volume,looping:e.ne,muted:e.Wh,playbackRate:e.playbackRate,paused:e.Sc,resume_position:e.Jc},e.oe&&(g.pan={},h=g.pan,e.Sb&&e.Sb.Vl()?h.objUid=e.Sb.Ga.uid:(h.x=e.Ou,h.y=e.Pu,h.a=e.Ku),h.ia=e.Lu,h.oa=e.Mu,h.og=e.Nu),d.push(g));d=a.effects;for(l in ba)if(ba.hasOwnProperty(l)){e=[];c=0;for(b=ba[l].length;c<b;c++)e.push({type:ba[l][c].type,params:ba[l][c].Gb});d[l]=e}return a};var mb=[];Ba.Fa=function(c){var b=c.silent;V=c.masterVolume;this.Lj=c.listenerZ;this.Tc.ok(null);
var e=c.listenerUid;-1!==e&&(this.Tc.mm=e,mb.push(this.Tc));var e=c.playing,h,f,p,k,K,D,G,B,v,u,M;if(3!==this.bf)for(h=0,f=y.length;h<f;h++)v=y[h],v.ud&&1===this.bf||(v.ud||2!==this.bf)&&v.stop();for(K in ba)if(ba.hasOwnProperty(K))for(h=0,f=ba[K].length;h<f;h++)ba[K][h].remove();Xa(ba);for(K in c.effects)if(c.effects.hasOwnProperty(K))for(D=c.effects[K],h=0,f=D.length;h<f;h++)switch(p=D[h].type,u=D[h].params,p){case "filter":x(K,new a(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":x(K,new q(u[0],
u[1],u[2]));break;case "convolve":p=u[2];v=this.Pl(p,!1);v.Da?p=new t(v.Da,u[0],u[1],p):(p=new t(null,u[0],u[1],p),v.wu=u[0],v.nl=p);x(K,p);break;case "flanger":x(K,new g(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":x(K,new d(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":x(K,new l(u[0]));break;case "tremolo":x(K,new m(u[0],u[1]));break;case "ringmod":x(K,new w(u[0],u[1]));break;case "distortion":x(K,new n(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":x(K,new N(u[0],u[1],u[2],u[3],u[4]));
break;case "analyser":x(K,new r(u[0],u[1]))}h=0;for(f=e.length;h<f;h++)3===this.bf||(c=e[h],p=c.buffersrc,k=c.is_music,K=c.tag,D=c.playbackTime,G=c.looping,B=c.volume,M=(u=c.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,k&&1===this.bf)||!k&&2===this.bf||((v=this.jt(p,K,k,G,B))?(v.Jc=c.resume_position,v.vq(!!u),v.play(G,B,D),v.vn(),v.dD(),v.zl(v.Wh||v.Gj),c.paused&&v.pause(),c.muted&&v.LC(),v.zl(v.Wh||v.Gj),u&&(-1!==M?(v.Sb=v.Sb||new R,v.Sb.mm=M,mb.push(v.Sb)):v.uq(u.x,u.y,u.a,u.ia,u.oa,u.og))):(v=
this.Pl(p,k),v.Wm=D,v.Gm=c.paused,u&&(-1!==M?v.oi.push({yu:M,kp:u.ia,Sp:u.oa,Vp:u.og,Gv:K}):v.oi.push({x:u.x,y:u.y,uh:u.a,kp:u.ia,Sp:u.oa,Vp:u.og,Gv:K}))));if(b&&!L){h=0;for(f=y.length;h<f;h++)y[h].rv(!0);L=!0}else if(!b&&L){h=0;for(f=y.length;h<f;h++)y[h].rv(!1);L=!1}};Ba.qc=function(){var a,d,c,b;a=0;for(d=mb.length;a<d;a++)c=mb[a],b=this.c.jc(c.mm),c.ok(b),c.mm=-1,b&&(ra=b.x,W=b.y);C(mb)};Ba.bC=function(a){if(!this.hC){!a&&u&&u.resume&&(u.resume(),Ga=!1);var d,c;d=0;for(c=y.length;d<c;d++)y[d].OC(a);
a&&u&&u.suspend&&(u.suspend(),Ga=!0)}};Ba.ib=function(){var a=this.c.If,d,c,b;d=0;for(c=y.length;d<c;d++)b=y[d],b.ib(a),0!==J&&b.vn();var e,g;for(e in ba)if(ba.hasOwnProperty(e))for(b=ba[e],d=0,c=b.length;d<c;d++)g=b[d],g.ib&&g.ib();1===T&&this.Tc.Vl()&&(this.Tc.ib(a),ra=this.Tc.Ga.x,W=this.Tc.Ga.y,u.listener.setPosition(this.Tc.Ga.x,this.Tc.Ga.y,this.Lj))};var nb=[];Ba.MC=function(a){var d,c,b,e,g,l=0;d=0;for(c=a.length;d<c;++d)if(b=a[d],e=b[0],b=2*b[1],(g=4<e.length&&".ogg"===e.substr(e.length-
4))&&Q||!g&&!Q)nb.push({filename:e,size:b,Ga:null}),l+=b;return l};Ba.SC=function(){var a,d,c,b;a=0;for(d=nb.length;a<d;++a)c=nb[a],b=this.c.Qo+c.filename,c.Ga=this.Pl(b,!1)};Ba.NA=function(){var a=0,d,c,b;d=0;for(c=nb.length;d<c;++d)b=nb[d],b.Ga.uB()||b.Ga.lB()||this.c.Cb||this.c.$l?a+=b.size:b.Ga.Ht()&&(a+=Math.floor(b.size/2));return a};Ba.wC=function(){var a,d,c,b;c=a=0;for(d=H.length;a<d;++a)b=H[a],H[c]=b,b.ud?b.vC():++c;H.length=c};Ba.Pl=function(a,d){var c,b,e,g=null;c=0;for(b=H.length;c<b;c++)if(e=
H[c],e.src===a){g=e;break}g||(jb&&d&&this.wC(),g=new K(a,d),H.push(g));return g};Ba.jt=function(a,d,c,b,e){var g,l,h;g=0;for(l=y.length;g<l;g++)if(h=y[g],h.src===a&&(h.ez()||c))return h.tag=d,h;a=this.Pl(a,c);if(!a.Da)return"<preload>"!==d&&(a.Jm=d,a.Kp=b,a.Qq=e),null;h=new D(a,d);y.push(h);return h};var Ja=[];A.prototype.Mk=function(a){return pb(U,a)};S.j=new A;E.prototype.Play=function(a,d,c,b){!L&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),P=this.jt(this.c.Qo+a[0]+(Q?".ogg":
".m4a"),b,a[1],0!==d,c))&&(P.vq(!1),P.play(0!==d,c,0,this.uu),this.uu=0)};E.prototype.Mr=function(a){G(a);var d;a=0;for(d=Ja.length;a<d;a++)Ja[a].stop()};S.B=new E;I.prototype.rw=function(a,d){G(d,!0);Ja.length?a.F(Ja[0].Lf()):a.F(0)};S.J=new I})();function sc(f){this.c=f}
(function(){function f(){this.name="";this.vi=0;this.Gb=[]}function k(){a++;a===c.length&&c.push(new f);return c[a]}function b(){}function h(){}function e(){}var p=sc.prototype;p.V=function(a){this.u=a;this.c=a.c};p.V.prototype.K=function(){};p.I=function(a){this.type=a;this.c=a.c};var c=[],a=-1;p.I.prototype.K=function(){var c=this;window.c2_callFunction=function(b,e){var d,l,h,f=k();f.name=b.toLowerCase();f.vi=0;if(e)for(f.Gb.length=e.length,d=0,l=e.length;d<l;++d)h=e[d],f.Gb[d]="number"===typeof h||
"string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else C(f.Gb);c.c.trigger(sc.prototype.j.Ok,c,f.name);a--;return f.vi}};b.prototype.Ok=function(b){var e=0>a?null:c[a];return e?pb(b,e.name):!1};p.j=new b;h.prototype.CallFunction=function(c,b){var e=k();e.name=c.toLowerCase();e.vi=0;Aa(e.Gb,b);this.c.trigger(sc.prototype.j.Ok,this,e.name);a--};h.prototype.ey=function(b){var e=0>a?null:c[a];e&&(e.vi=b)};p.B=new h;e.prototype.Mx=function(b,e){e=qa(e);var g=0>a?null:c[a];g?0<=e&&e<g.Gb.length?b.ve(g.Gb[e]):
b.T(0):b.T(0)};e.prototype.br=function(c,b){var e=k();e.name=b.toLowerCase();e.vi=0;C(e.Gb);var d,l;d=2;for(l=arguments.length;d<l;d++)e.Gb.push(arguments[d]);this.c.trigger(sc.prototype.j.Ok,this,e.name);a--;c.ve(e.vi)};p.J=new e})();var uc=!1;
try{!function(){var f,k,b;!function(){var h={},e={};f=function(b,c,a){h[b]={rz:c,dz:a}};b=k=function(f){function c(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var d=f.split("/").slice(0,-1),c=0,b=a.length;b>c;c++){var e=a[c];".."===e?d.pop():"."!==e&&d.push(e)}return d.join("/")}if(b.yE=h,e[f])return e[f];if(e[f]={},!h[f])throw Error("Could not find module "+f);for(var a,q=h[f],t=q.rz,q=q.dz,g=[],d=0,l=t.length;l>d;d++)"exports"===t[d]?g.push(a={}):g.push(k(c(t[d])));t=q.apply(this,g);return e[f]=
a||t}}();f("promise/all",["./utils","exports"],function(b,e){var f=b.isArray,c=b.isFunction;e.all=function(a){if(!f(a))throw new TypeError("You must pass an array to all.");return new this(function(b,e){function g(a){return function(d){l[a]=d;0===--h&&b(l)}}var d,l=[],h=a.length;0===h&&b([]);for(var f=0;f<a.length;f++)(d=a[f])&&c(d.then)?d.then(g(f),e):(l[f]=d,0===--h&&b(l))})}});f("promise/asap",["exports"],function(b){function e(){return function(){process.OE(a)}}function f(){var d=0,c=new g(a),
b=document.createTextNode("");return c.observe(b,{characterData:!0}),function(){b.data=d=++d%2}}function c(){return function(){d.setTimeout(a,1)}}function a(){for(var a=0;a<l.length;a++){var d=l[a];(0,d[0])(d[1])}l=[]}var k,t="undefined"!=typeof window?window:{},g=t.MutationObserver||t.WebKitMutationObserver,d="undefined"!=typeof global?global:void 0===this?window:this,l=[];k="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?e():g?f():c();b.Wy=function(a,d){1===l.push([a,
d])&&k()}});f("promise/config",["exports"],function(b){var e={HE:!1};b.Ls=e;b.jz=function(b,c){return 2!==arguments.length?e[b]:void(e[b]=c)}});f("promise/polyfill",["./promise","./utils","exports"],function(b,e,f){var c=b.Promise,a=e.isFunction;f.iC=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var c;return new b.Promise(function(a){c=
a}),a(c)}()||(b.Promise=c)}});f("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(b,e,f,c,a,k,t,g){function d(a){if(!A(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof d))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.bl=[];l(a,this)}function l(a,d){function c(a){r(d,
a)}function b(a){K(d,a)}try{a(c,b)}catch(e){b(e)}}function m(a,d,c,b){var e,g,l,h,f=A(c);if(f)try{e=c(b),l=!0}catch(m){h=!0,g=m}else e=b,l=!0;N(d,e)||(f&&l?r(d,e):h?K(d,g):a===S?r(d,e):a===z&&K(d,e))}function w(a,d,c,b){a=a.bl;var e=a.length;a[e]=d;a[e+S]=c;a[e+z]=b}function n(a,d){for(var c,b,e=a.bl,g=a.$k,l=0;l<e.length;l+=3)c=e[l],b=e[l+d],m(d,c,b,g);a.bl=null}function N(a,d){var c,b=null;try{if(a===d)throw new TypeError("A promises callback cannot return that same promise.");if(x(d)&&(b=d.then,
A(b)))return b.call(d,function(b){return c?!0:(c=!0,void(d!==b?r(a,b):R(a,b)))},function(d){return c?!0:(c=!0,void K(a,d))}),!0}catch(e){return c?!0:(K(a,e),!0)}return!1}function r(a,d){a===d?R(a,d):N(a,d)||R(a,d)}function R(a,d){a.Ae===E&&(a.Ae=I,a.$k=d,G.async(D,a))}function K(a,d){a.Ae===E&&(a.Ae=I,a.$k=d,G.async(B,a))}function D(a){n(a,a.Ae=S)}function B(a){n(a,a.Ae=z)}var G=b.Ls,x=(b.jz,e.VB),A=e.isFunction;b=(e.now,f.all);c=c.race;a=a.resolve;k=k.reject;G.async=t.Wy;var E=void 0,I=0,S=1,z=2;
d.prototype={constructor:d,Ae:void 0,$k:void 0,bl:void 0,then:function(a,d){var c=this,b=new this.constructor(function(){});if(this.Ae){var e=arguments;G.async(function(){m(c.Ae,b,e[c.Ae-1],c.$k)})}else w(this,b,a,d);return b},"catch":function(a){return this.then(null,a)}};d.all=b;d.race=c;d.resolve=a;d.reject=k;g.Promise=d});f("promise/race",["./utils","exports"],function(b,e){var f=b.isArray;e.race=function(c){if(!f(c))throw new TypeError("You must pass an array to race.");return new this(function(a,
b){for(var e,g=0;g<c.length;g++)(e=c[g])&&"function"==typeof e.then?e.then(a,b):a(e)})}});f("promise/reject",["exports"],function(b){b.reject=function(b){return new this(function(h,c){c(b)})}});f("promise/resolve",["exports"],function(b){b.resolve=function(b){return b&&"object"==typeof b&&b.constructor===this?b:new this(function(h){h(b)})}});f("promise/utils",["exports"],function(b){function e(c){return"function"==typeof c}var f=Date.now||function(){return(new Date).getTime()};b.VB=function(c){return e(c)||
"object"==typeof c&&null!==c};b.isFunction=e;b.isArray=function(c){return"[object Array]"===Object.prototype.toString.call(c)};b.now=f});k("promise/polyfill").iC()}();var vc=function(){return function(f){function k(h){if(b[h])return b[h].ee;var e=b[h]={ee:{},id:h,loaded:!1};return f[h].call(e.ee,e,e.ee,k),e.loaded=!0,e.ee}var b={};return k.cb=f,k.bj=b,k.bk="",k(0)}([function(f,k,b){k.Zk=!0;var h=function(e){function h(a,d){a[d]=function(){var c=arguments;return a.ready().then(function(){return a[d].apply(a,
c)})}}function c(){for(var a=1;a<arguments.length;a++){var d=arguments[a];if(d)for(var c in d)d.hasOwnProperty(c)&&(m(d[c])?arguments[0][c]=d[c].slice():arguments[0][c]=d[c])}return arguments[0]}function a(a){for(var d in k)if(k.hasOwnProperty(d)&&k[d]===a)return!0;return!1}var f={},k={Ni:"asyncStorage",Oi:"localStorageWrapper",Wi:"webSQLStorage"},g="clear getItem iterate key keys length removeItem setItem".split(" "),d={description:"",Eh:[k.Ni,k.Wi,k.Oi].slice(),name:"localforage",size:4980736,Ia:"keyvaluepairs",
version:1},l=function(a){var d={},c;try{var b=b||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.$q||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:b&&"function"==typeof b.open&&"undefined"!=typeof a.IDBKeyRange}catch(e){c=!1}d[k.Ni]=!!c;var g;try{g=a.openDatabase}catch(l){g=!1}d[k.Wi]=!!g;var h;try{h=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(f){h=
!1}return d[k.Oi]=!!h,d}(e),m=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.Ni=k.Ni;this.Oi=k.Oi;this.Wi=k.Wi;this.Xn=c({},d);this.lg=c({},this.Xn,a);this.Zr=this.Xd=null;this.tf=!1;this.Ea=null;this.hs();this.ov(this.lg.Eh)}return e.prototype.Ls=function(a){if("object"==typeof a){if(this.tf)return Error("Can't call config() after localforage has been used.");
for(var d in a)"storeName"===d&&(a[d]=a[d].replace(/\W/g,"_")),this.lg[d]=a[d];return"driver"in a&&a.Eh&&this.ov(this.lg.Eh),!0}return"string"==typeof a?this.lg[a]:this.lg},e.prototype.Eh=function(){return this.Xi||null},e.prototype.ot=function(d,c,e){var g=this,l=function(){if(a(d))switch(d){case g.Ni:return new Promise(function(a){a(b(1))});case g.Oi:return new Promise(function(a){a(b(2))});case g.Wi:return new Promise(function(a){a(b(4))})}else if(f[d])return Promise.resolve(f[d]);return Promise.reject(Error("Driver not found."))}();
return l.then(c,e),l},e.prototype.ready=function(a){var d=this,c=d.Xd.then(function(){return null===d.tf&&(d.tf=d.Zr()),d.tf});return c.then(a,a),c},e.prototype.ov=function(a,d,c){function b(){g.lg.Eh=g.Eh()}function e(a){return function(){function d(){for(;c<a.length;){var e=a[c];return c++,g.Ea=null,g.tf=null,g.ot(e).then(function(a){return g.Hy(a),b(),g.tf=g.Zn(g.lg),g.tf})["catch"](d)}b();return g.Xd=Promise.reject(Error("No available storage method found.")),g.Xd}var c=0;return d()}}var g=this;
m(a)||(a=[a]);var l=this.Jy(a);return this.Xd=(null!==this.Xd?this.Xd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=l[0];return g.Ea=null,g.tf=null,g.ot(a).then(function(a){g.Xi=a.Xi;b();g.hs();g.Zr=e(l)})})["catch"](function(){b();return g.Xd=Promise.reject(Error("No available storage method found.")),g.Xd}),this.Xd.then(d,c),this.Xd},e.prototype.supports=function(a){return!!l[a]},e.prototype.Hy=function(a){c(this,a)},e.prototype.Jy=function(a){for(var d=
[],c=0,b=a.length;b>c;c++){var e=a[c];this.supports(e)&&d.push(e)}return d},e.prototype.hs=function(){for(var a=0;a<g.length;a++)h(this,g[a])},e.prototype.ol=function(a){return new e(a)},e}())}("undefined"!=typeof window?window:self);k["default"]=h;f.ee=k["default"]},function(f,k){k.Zk=!0;k["default"]=function(b){function h(a,d){a=a||[];d=d||{};try{return new Blob(a,d)}catch(c){if("TypeError"!==c.name)throw c;for(var e=new (b.BlobBuilder||b.Ov||b.Vq||b.WebKitBlobBuilder),g=0;g<a.length;g+=1)e.append(a[g]);
return e.getBlob(d.type)}}function e(a){return new Promise(function(d,c){var b=new XMLHttpRequest;b.open("GET",a);b.withCredentials=!0;b.responseType="arraybuffer";b.onreadystatechange=function(){return 4===b.readyState?200===b.status?d({response:b.response,type:b.getResponseHeader("Content-Type")}):void c({status:b.status,response:b.response}):void 0};b.send()})}function f(a){return(new Promise(function(d,c){var b=h([""],{type:"image/png"}),g=a.transaction([E],"readwrite");g.objectStore(E).put(b,
"key");g.oncomplete=function(){var b=a.transaction([E],"readwrite").objectStore(E).get("key");b.onerror=c;b.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);e(c).then(function(a){d(!(!a||"image/png"!==a.type))},function(){d(!1)}).then(function(){URL.revokeObjectURL(c)})}};g.onerror=g.onabort=c}))["catch"](function(){return!1})}function c(a){return"boolean"==typeof x?Promise.resolve(x):f(a).then(function(a){return x=a})}function a(a){return new Promise(function(d,c){var b=new FileReader;
b.onerror=c;b.onloadend=function(c){d({Tr:!0,data:btoa(c.target.result||""),type:a.type})};b.readAsBinaryString(a)})}function k(a){for(var d=atob(a.data),c=d.length,b=new ArrayBuffer(c),e=new Uint8Array(b),g=0;c>g;g++)e[g]=d.charCodeAt(g);return h([b],{type:a.type})}function t(a){var d=this,c=d.Yn().then(function(){var a=A[d.Ea.name];return a&&a.Dh?a.Dh:void 0});return c.then(a,a),c}function g(a){a=A[a.name];var d={};d.promise=new Promise(function(a){d.resolve=a});a.Rs.push(d);a.Dh?a.Dh=a.Dh.then(function(){return d.promise}):
a.Dh=d.promise}function d(a){function d(){return Promise.resolve()}var c=this,e={db:null};if(a)for(var g in a)e[g]=a[g];A||(A={});var h=A[e.name];h||(h={Ll:[],db:null,Dh:null,Rs:[]},A[e.name]=h);h.Ll.push(c);c.Yn||(c.Yn=c.ready,c.ready=t);a=[];for(g=0;g<h.Ll.length;g++){var f=h.Ll[g];f!==c&&a.push(f.Yn()["catch"](d))}var m=h.Ll.slice(0);return Promise.all(a).then(function(){return e.db=h.db,l(e,!1)}).then(function(a){e.db=a;var d;d=c.Xn.version;if(e.db){var g=!e.db.objectStoreNames.contains(e.Ia),
h=e.version>e.db.version;(e.version<e.db.version&&(e.version!==d&&b.console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),h||g)?(g&&(d=e.db.version+1,d>e.version&&(e.version=d)),d=!0):d=!1}else d=!0;return d?l(e,!0):a}).then(function(a){e.db=h.db=a;c.Ea=e;for(a=0;a<m.length;a++){var d=m[a];d!==c&&(d.Ea.db=e.db,d.Ea.version=e.version)}})}function l(a,d){return new Promise(function(c,e){if(a.db){if(!d)return c(a.db);
g(a);a.db.close()}var l=[a.name];d&&l.push(a.version);var h=G.open.apply(G,l);d&&(h.onupgradeneeded=function(d){var c=h.result;try{c.createObjectStore(a.Ia),1>=d.oldVersion&&c.createObjectStore(E)}catch(e){if("ConstraintError"!==e.name)throw e;b.console.warn('The database "'+a.name+'" has been upgraded from version '+d.oldVersion+" to version "+d.newVersion+', but the storage "'+a.Ia+'" already exists.')}});h.onerror=function(){e(h.error)};h.onsuccess=function(){c(h.result);var d=A[a.name].Rs.pop();
d&&d.resolve()}})}function m(a,d){var c=this;"string"!=typeof a&&(b.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(d,b){c.ready().then(function(){var e=c.Ea,g=e.db.transaction(e.Ia,"readonly").objectStore(e.Ia).get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null);a&&a.Tr&&(a=k(a));d(a)};g.onerror=function(){b(g.error)}})["catch"](b)});return B(e,d),e}function w(a,d){var c=this,b=new Promise(function(d,b){c.ready().then(function(){var e=
c.Ea,g=e.db.transaction(e.Ia,"readonly").objectStore(e.Ia).openCursor(),l=1;g.onsuccess=function(){var c=g.result;if(c){var b=c.value;b&&b.Tr&&(b=k(b));b=a(b,c.key,l++);void 0!==b?d(b):c["continue"]()}else d()};g.onerror=function(){b(g.error)}})["catch"](b)});return B(b,d),b}function n(d,e,g){var l=this;"string"!=typeof d&&(b.console.warn(d+" used as a key, but it is not a string."),d=String(d));var h=new Promise(function(b,g){var h;l.ready().then(function(){return h=l.Ea,e instanceof Blob?c(h.db).then(function(d){return d?
e:a(e)}):e}).then(function(a){var c=h.db.transaction(h.Ia,"readwrite"),e=c.objectStore(h.Ia);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);b(a)};c.onabort=c.onerror=function(){g(l.error?l.error:l.transaction.error)};var l=e.put(a,d)})["catch"](g)});return B(h,g),h}function N(a,d){var c=this;"string"!=typeof a&&(b.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(d,b){c.ready().then(function(){var e=c.Ea,g=e.db.transaction(e.Ia,"readwrite"),
l=g.objectStore(e.Ia)["delete"](a);g.oncomplete=function(){d()};g.onerror=function(){b(l.error)};g.onabort=function(){b(l.error?l.error:l.transaction.error)}})["catch"](b)});return B(e,d),e}function r(a){var d=this,c=new Promise(function(a,c){d.ready().then(function(){var b=d.Ea,e=b.db.transaction(b.Ia,"readwrite"),g=e.objectStore(b.Ia).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return B(c,a),c}function R(a){var d=this,
c=new Promise(function(a,c){d.ready().then(function(){var b=d.Ea,e=b.db.transaction(b.Ia,"readonly").objectStore(b.Ia).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return B(c,a),c}function K(a,d){var c=this,b=new Promise(function(d,b){return 0>a?void d(null):void c.ready().then(function(){var e=c.Ea,g=!1,l=e.db.transaction(e.Ia,"readonly").objectStore(e.Ia).openCursor();l.onsuccess=function(){var c=l.result;return c?void(0===a?d(c.key):g?d(c.key):(g=
!0,c.advance(a))):void d(null)};l.onerror=function(){b(l.error)}})["catch"](b)});return B(b,d),b}function D(a){var d=this,c=new Promise(function(a,c){d.ready().then(function(){var b=d.Ea,e=b.db.transaction(b.Ia,"readonly").objectStore(b.Ia).openCursor(),g=[];e.onsuccess=function(){var d=e.result;return d?(g.push(d.key),void d["continue"]()):void a(g)};e.onerror=function(){c(e.error)}})["catch"](c)});return B(c,a),c}function B(a,d){d&&a.then(function(a){d(null,a)},function(a){d(a)})}var G=G||b.indexedDB||
b.webkitIndexedDB||b.mozIndexedDB||b.$q||b.msIndexedDB;if(G){var x,A,E="local-forage-detect-blob-support";return{Xi:"asyncStorage",Zn:d,Ot:w,getItem:m,setItem:n,removeItem:N,clear:r,length:R,key:K,keys:D}}}("undefined"!=typeof window?window:self);f.ee=k["default"]},function(f,k,b){k.Zk=!0;k["default"]=function(h){function e(a,c){c&&a.then(function(a){c(null,a)},function(a){c(a)})}var f=null;try{if(!(h.localStorage&&"setItem"in h.localStorage))return;f=h.localStorage}catch(c){return}return{Xi:"localStorageWrapper",
Zn:function(a){var c={};if(a)for(var e in a)c[e]=a[e];return c.me=c.name+"/",c.Ia!==this.Xn.Ia&&(c.me+=c.Ia+"/"),this.Ea=c,(new Promise(function(a){a(b(3))})).then(function(a){return c.bh=a,Promise.resolve()})},Ot:function(a,c){var b=this,g=b.ready().then(function(){for(var d=b.Ea,c=d.me,e=c.length,g=f.length,h=1,k=0;g>k;k++){var q=f.key(k);if(0===q.indexOf(c)){var R=f.getItem(q);if(R&&(R=d.bh.xl(R)),R=a(R,q.substring(e),h++),void 0!==R)return R}}});return e(g,c),g},getItem:function(a,c){var b=this;
"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=b.ready().then(function(){var d=b.Ea,c=f.getItem(d.me+a);return c&&(c=d.bh.xl(c)),c});return e(g,c),g},setItem:function(a,c,b){var g=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=g.ready().then(function(){void 0===c&&(c=null);var d=c;return new Promise(function(b,e){var h=g.Ea;h.bh.serialize(c,function(c,g){if(g)e(g);else try{f.setItem(h.me+
a,c),b(d)}catch(k){"QuotaExceededError"!==k.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==k.name||e(k),e(k)}})})});return e(d,b),d},removeItem:function(a,c){var b=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=b.ready().then(function(){f.removeItem(b.Ea.me+a)});return e(g,c),g},clear:function(a){var c=this,b=c.ready().then(function(){for(var a=c.Ea.me,d=f.length-1;0<=d;d--){var b=f.key(d);0===b.indexOf(a)&&f.removeItem(b)}});return e(b,a),b},length:function(a){var c=
this.keys().then(function(a){return a.length});return e(c,a),c},key:function(a,c){var b=this,g=b.ready().then(function(){var d,c=b.Ea;try{d=f.key(a)}catch(e){d=null}return d&&(d=d.substring(c.me.length)),d});return e(g,c),g},keys:function(a){var c=this,b=c.ready().then(function(){for(var a=c.Ea,d=f.length,b=[],e=0;d>e;e++)0===f.key(e).indexOf(a.me)&&b.push(f.key(e).substring(a.me.length));return b});return e(b,a),b}}}("undefined"!=typeof window?window:self);f.ee=k["default"]},function(f,k){k.Zk=!0;
k["default"]=function(b){function h(a){var c,b,e,d,l;c=.75*a.length;var h=a.length,k=0;"="===a[a.length-1]&&(c--,"="===a[a.length-2]&&c--);var n=new ArrayBuffer(c),N=new Uint8Array(n);for(c=0;h>c;c+=4)b=f.indexOf(a[c]),e=f.indexOf(a[c+1]),d=f.indexOf(a[c+2]),l=f.indexOf(a[c+3]),N[k++]=b<<2|e>>4,N[k++]=(15&e)<<4|d>>2,N[k++]=(3&d)<<6|63&l;return n}function e(a){var c=new Uint8Array(a),b="";for(a=0;a<c.length;a+=3)b+=f[c[a]>>2],b+=f[(3&c[a])<<4|c[a+1]>>4],b+=f[(15&c[a+1])<<2|c[a+2]>>6],b+=f[63&c[a+2]];
return 2===c.length%3?b=b.substring(0,b.length-1)+"=":1===c.length%3&&(b=b.substring(0,b.length-2)+"=="),b}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,c){var b="";if(a&&(b=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var g,d="__lfsc__:";a instanceof ArrayBuffer?(g=a,d+="arbf"):(g=a.buffer,"[object Int8Array]"===b?d+="si08":"[object Uint8Array]"===
b?d+="ui08":"[object Uint8ClampedArray]"===b?d+="uic8":"[object Int16Array]"===b?d+="si16":"[object Uint16Array]"===b?d+="ur16":"[object Int32Array]"===b?d+="si32":"[object Uint32Array]"===b?d+="ui32":"[object Float32Array]"===b?d+="fl32":"[object Float64Array]"===b?d+="fl64":c(Error("Failed to get type for BinaryArray")));c(d+e(g))}else if("[object Blob]"===b)b=new FileReader,b.onload=function(){var d="~~local_forage_type~"+a.type+"~"+e(this.result);c("__lfsc__:blob"+d)},b.readAsArrayBuffer(a);else try{c(JSON.stringify(a))}catch(l){console.error("Couldn't convert value into a JSON string: ",
a),c(null,l)}},xl:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var e,f=a.substring(13);a=a.substring(9,13);if("blob"===a&&c.test(f)){var g=f.match(c);e=g[1];f=f.substring(g[0].length)}f=h(f);switch(a){case "arbf":return f;case "blob":var d;f=[f];e={type:e};f=f||[];e=e||{};try{d=new Blob(f,e)}catch(l){if("TypeError"!==l.name)throw l;d=new (b.BlobBuilder||b.Ov||b.Vq||b.WebKitBlobBuilder);for(a=0;a<f.length;a+=1)d.append(f[a]);d=d.getBlob(e.type)}return d;case "si08":return new Int8Array(f);
case "ui08":return new Uint8Array(f);case "uic8":return new Uint8ClampedArray(f);case "si16":return new Int16Array(f);case "ur16":return new Uint16Array(f);case "si32":return new Int32Array(f);case "ui32":return new Uint32Array(f);case "fl32":return new Float32Array(f);case "fl64":return new Float64Array(f);default:throw Error("Unkown type: "+a);}},UE:h,CE:e}}("undefined"!=typeof window?window:self);f.ee=k["default"]},function(f,k,b){k.Zk=!0;k["default"]=function(f){function e(a){var d=this,c={db:null};
if(a)for(var e in a)c[e]="string"!=typeof a[e]?a[e].toString():a[e];var g=new Promise(function(a,b){try{c.db=w(c.name,String(c.version),c.description,c.size)}catch(e){return b(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ia+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){d.Ea=c;a()},function(a,d){b(d)})})});return(new Promise(function(a){a(b(3))})).then(function(a){return c.bh=a,g})}function k(a,d){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var b=new Promise(function(d,b){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ia+" WHERE key = ? LIMIT 1",[a],function(a,c){var b=c.rows.length?c.rows.item(0).value:null;b&&(b=e.bh.xl(b));d(b)},function(a,d){b(d)})})})["catch"](b)});return m(b,d),b}function c(a,d){var c=this,b=new Promise(function(d,b){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ia,[],function(c,b){for(var g=b.rows,
l=g.length,f=0;l>f;f++){var h=g.item(f),m=h.value;if(m&&(m=e.bh.xl(m)),m=a(m,h.key,f+1),void 0!==m)return void d(m)}d()},function(a,d){b(d)})})})["catch"](b)});return m(b,d),b}function a(a,d,c){var b=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){b.ready().then(function(){void 0===d&&(d=null);var g=d,l=b.Ea;l.bh.serialize(d,function(d,b){b?e(b):l.db.transaction(function(b){b.executeSql("INSERT OR REPLACE INTO "+l.Ia+
" (key, value) VALUES (?, ?)",[a,d],function(){c(g)},function(a,d){e(d)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return m(e,c),e}function q(a,d){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=new Promise(function(d,b){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ia+" WHERE key = ?",[a],function(){d()},function(a,d){b(d)})})})["catch"](b)});return m(b,d),b}function t(a){var d=
this,c=new Promise(function(a,c){d.ready().then(function(){var b=d.Ea;b.db.transaction(function(d){d.executeSql("DELETE FROM "+b.Ia,[],function(){a()},function(a,d){c(d)})})})["catch"](c)});return m(c,a),c}function g(a){var d=this,c=new Promise(function(a,c){d.ready().then(function(){var b=d.Ea;b.db.transaction(function(d){d.executeSql("SELECT COUNT(key) as c FROM "+b.Ia,[],function(d,c){var b=c.rows.item(0).bj;a(b)},function(a,d){c(d)})})})["catch"](c)});return m(c,a),c}function d(a,d){var c=this,
b=new Promise(function(d,b){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ia+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var b=c.rows.length?c.rows.item(0).key:null;d(b)},function(a,d){b(d)})})})["catch"](b)});return m(b,d),b}function l(a){var d=this,c=new Promise(function(a,c){d.ready().then(function(){var b=d.Ea;b.db.transaction(function(d){d.executeSql("SELECT key FROM "+b.Ia,[],function(d,c){for(var b=[],e=0;e<c.rows.length;e++)b.push(c.rows.item(e).key);
a(b)},function(a,d){c(d)})})})["catch"](c)});return m(c,a),c}function m(a,d){d&&a.then(function(a){d(null,a)},function(a){d(a)})}var w=f.openDatabase;if(w)return{Xi:"webSQLStorage",Zn:e,Ot:c,getItem:k,setItem:a,removeItem:q,clear:t,length:g,key:d,keys:l}}("undefined"!=typeof window?window:self);f.ee=k["default"]}])};"object"==typeof exports&&"object"==typeof module?module.ee=vc():"function"==typeof define&&define.BE?define([],vc):"object"==typeof exports?exports.localforage=vc():this.localforage=
vc()}catch(wc){uc=!0}function xc(f){this.c=f}
(function(){function f(){}function k(){}function b(){}var h="",e="",p="";"undefined"!==typeof window.is_scirra_arcade&&(p="sa"+window.scirra_arcade_id+"_");var c=xc.prototype;c.V=function(a){this.u=a;this.c=a.c};c.V.prototype.K=function(){};c.I=function(a){this.type=a;this.c=a.c};var a=c.I.prototype;a.K=function(){this.bq=0};a.We=function(){};a.wa=function(){return{}};a.Fa=function(){};f.prototype.yx=function(a){return h===a};f.prototype.$w=function(){return!0};f.prototype.Nk=function(){return!0};
f.prototype.tr=function(a){return h===a};f.prototype.xx=function(a){return h===a};f.prototype.Ww=function(){return!0};c.j=new f;k.prototype.$x=function(a,c){if(uc)this.c.trigger(xc.prototype.j.Nk,this);else{var b=p+a;this.bq++;var d=this;localforage.setItem(b,c,function(c,b){d.bq--;c?d.c.trigger(xc.prototype.j.Nk,d):(h=a,e=b,d.c.trigger(xc.prototype.j.$w,d),d.c.trigger(xc.prototype.j.yx,d),e=h="");0===d.bq&&d.c.trigger(xc.prototype.j.Ww,d)})}};k.prototype.hw=function(a){if(uc)this.c.trigger(xc.prototype.j.Nk,
this);else{var c=this;localforage.getItem(p+a,function(b,d){b?c.c.trigger(xc.prototype.j.Nk,c):(h=a,null===d?(e="",c.c.trigger(xc.prototype.j.xx,c)):(e=d,c.c.trigger(xc.prototype.j.tr,c)),e=h="")})}};c.B=new k;b.prototype.Mw=function(a){a.ve(e)};c.J=new b})();function yc(f){this.c=f}
(function(){function f(){}function k(){}function b(){}var h=yc.prototype;h.V=function(b){this.u=b;this.c=b.c};h.V.prototype.K=function(){};h.I=function(b){this.type=b;this.c=b.c};var e=h.I.prototype;e.K=function(){this.Be=1==this.q[0];var b=this.q[1],b=""!=b?b:"Off";this.Mb?this.Jf.Wd(this,"Off",b):this.Jf=new yc.cb(this,"Off",b);this.ro=this.Fe=null;this.le=!1;this.Rp=null};e.Zf=function(b){this.le=!1;this.c.trigger(b,this);return this.le};e.cB=function(){this.Rp=null;this.Zf(yc.prototype.j.xr)||
this.Zf(yc.prototype.j.hx);return this.Rp};e.wa=function(){return{en:this.Be,fsm:this.Jf.wa()}};e.Fa=function(b){this.Be=b.en;this.Jf.Fa(b.fsm)};h.j=new f;f.prototype.qr=function(b){b=this.Fe==b;this.le|=b;return b};f.prototype.dx=function(){return!0};f.prototype.rr=function(b){b=this.Fe==b;this.le|=b;return b};f.prototype.gx=function(){return!0};f.prototype.Kx=function(b,c){var a=this.Fe==b&&this.ro==c;this.le|=a;return a};f.prototype.Hx=function(){return!0};f.prototype.xr=function(b){b=this.Jf.of==
b;this.le|=b;return b};f.prototype.hx=function(){return!0};h.B=new k;k.prototype.Wk=function(){this.Be&&this.Jf.Wk()};k.prototype.Aw=function(b){this.Be&&this.Jf.Wk(b)};k.prototype.Vw=function(b){this.Rp=b};h.J=new b;b.prototype.of=function(b){b.mb(this.Jf.of)};b.prototype.ph=function(b){b.mb(this.Jf.ph)}})();
(function(){yc.cb=function(f,b,h){this.Wd(f,b,h)};var f=yc.cb.prototype;f.Wd=function(f,b,h){this.u=f;this.ph=b;this.of=h};f.Wk=function(f){if(null==f&&(f=this.u.cB(),null==f))return;this.ph=this.of;this.of=f;f=this.ph;var b=this.of;this.u.Zf(yc.prototype.j.Hx);this.Oy(f,b)||(this.Ny(f),this.My(b))};f.Oy=function(f,b){this.u.Fe=f;this.u.ro=b;var h=this.u.Zf(yc.prototype.j.Kx);this.u.Fe=null;this.u.ro=null;return h};f.Ny=function(f){this.u.Fe=f;f=this.u.Zf(yc.prototype.j.rr);this.u.Fe=null;f||this.u.Zf(yc.prototype.j.gx)};
f.My=function(f){this.u.Fe=f;f=this.u.Zf(yc.prototype.j.qr);this.u.Fe=null;f||this.u.Zf(yc.prototype.j.dx)};f.wa=function(){return{ps:this.ph,cs:this.of}};f.Fa=function(f){this.ph=f.ps;this.of=f.cs}})();function zc(f){this.c=f}
(function(){function f(){}function k(){}var b=zc.prototype;b.V=function(b){this.u=b;this.c=b.c};b.V.prototype.K=function(){};b.I=function(b){this.type=b;this.c=b.c};var h=b.I.prototype;h.K=function(){this.mode=this.q[0];var b=this.q[1];""!=b?this.Wf=JSON.parse(b):this.Wf={};this.sh=[];this.pc={};this.Cv();this.ik=null;this.Dl="";this.Vb=-1};h.cv=function(b){var f;this.sh.length=0;var c,a=0;for(f in b)c=b[f],0<c&&(a+=c);for(f in b)c=b[f],0<c&&this.sh.push({rate:c/a,pattern:f})};h.fB=function(){return null==
this.ik?Math.random():this.ik.random()};h.ut=function(b){var f=this.fB(),c="",a,h=b.length;for(a=0;a<h;a++)if(f-=b[a].rate,0>f){c=b[a].pattern;break}return c};h.Cv=function(){var b,f;for(b in this.pc)delete this.pc[b];for(b in this.Wf)f=this.Wf[b],0<f&&(this.pc[b]=this.Wf[b]);1==this.mode&&this.cv(this.pc);this.lk=!1};h.rs=function(b){if(null!=b){this.pc.hasOwnProperty(b)||(this.pc[b]=0);this.pc[b]+=-1;0>=this.pc[b]&&delete this.pc[b];if(b=0==this.mode){b=this.pc;var f=!0,c;for(c in b){f=!1;break}b=
f}b&&(this.lk=!0)}};h.eB=function(){var b;this.lk&&this.Cv();null==b?0==this.mode||2==this.mode?(this.cv(this.pc),b=this.ut(this.sh),this.rs(b)):1==this.mode&&(b=this.ut(this.sh)):this.pc.hasOwnProperty(b)?0!=this.mode&&2!=this.mode||this.rs(b):b="";return b};h.cb=function(b,f){return(f?this.pc:this.Wf)[b]||0};h.wa=function(){return{m:this.mode,pats:this.Wf,pr:this.sh,spats:this.pc,rstf:this.lk,randomuid:null!=this.ik?this.ik.uid:-1,lp:this.Dl}};h.Fa=function(b){this.mode=b.m;this.Wf=b.pats;this.sh=
b.pr;this.pc=b.spats;this.lk=b.rstf;this.Vb=b.randomuid;this.Dl=b.lp};h.qc=function(){var b;-1===this.Vb?b=null:b=this.c.jc(this.Vb);this.Vb=-1;this.ik=b};b.j=new function(){};b.B=new f;f.prototype.dy=function(b,f){""!=b&&(this.Wf[b]=f,this.lk=!0)};b.J=new k;k.prototype.Nx=function(b){this.Dl=this.eB();b.mb(this.Dl)};k.prototype.Zq=function(b){b.mb(JSON.stringify(this.wa()))}})();function Ac(f){this.c=f}
(function(){function f(a){for(var c in a)delete a[c]}function k(a){null==a?a=null:"object"===typeof a&&(a=a.he(),a=null!=a?a.uid:null);return a}function b(){}function h(){}function e(){}var p=Ac.prototype;p.V=function(a){this.u=a;this.c=a.c};p.V.prototype.K=function(){};p.I=function(a){this.type=a;this.c=a.c};var c=p.I.prototype,a=[];c.K=function(){this.zh="BOARD";this.M=new window.Re;this.Fc=1===this.q[3];this.Pf=1===this.q[2];this.Xk(this.q[0]-1,this.q[1]-1);this.Ma=null;this.Pt=this.im=-1;this.Mb||
(this.Vf=function(a){return function(c){a.Zg(c)}}(this));this.c.dl(this.Vf)};c.We=function(){this.Xk(-1,-1);this.c.kq(this.Vf)};c.Zg=function(a){this.Bc(a.uid)};c.Ob=function(){if(null!=this.Ma)return this.Ma;var a=this.c.types,c,b;for(c in a)if(b=a[c].g[0],Bc&&b instanceof Bc.prototype.I||ic.Wx&&b instanceof ic.Wx.prototype.I||ic.Vx&&b instanceof ic.Vx.prototype.I)return this.Ma=b;return null};c.Xk=function(a,c){this.Fc?this.Ya=-1:-1<=a&&(this.Ya=a);this.Fc&&(this.$a=-1);-1<=c&&(this.$a=c);this.M.Wd()};
c.qf=function(){return this.M.qf()};c.Jr=function(a){if(!this.Fc&&this.Ya!==a){if(!(this.Ya<a)){var c,b,e,g;for(c=this.Ya;c>a;c--)for(b=0;b<=this.$a;b++)if(g=this.Ed(c,b))for(e in g)this.Bc(g[e],!0)}this.Ya=a}};c.Ir=function(a){if(!this.Fc&&this.$a!=a){if(!(this.$a<a)){var c,b,e,g;for(c=0;c<=this.Ya;c++)for(b=this.$a;b>a;b--)if(g=this.Ed(c,b))for(e in g)this.Bc(g[e],!0)}this.$a=a}};c.ze=function(a,c,b){var e;(e=this.Fc?!0:0<=a&&0<=c&&a<=this.Ya&&c<=this.$a)&&null!=b&&(e=null!=this.Za(a,c,b));return e};
c.oh=function(a,c,b){var e=this.Ed(a,c);return e?0===b?null==e[0]:null!=e[0]&&null==e[b]:this.Fc?!0:this.ze(a,c)?!0:!1};c.Za=function(a,c,b){return this.M.Jn(a,c,b)};c.Ed=function(a,c){return this.M.Jn(a,c)||null};c.ki=function(a,c){var b=this.Ed(a,c);if(!b)return 0;var e=0,g;for(g in b)e+=1;return e};c.Vj=function(a,c){var b=this.O(a);return null==b?null:b.z==c?a:this.Za(b.x,b.y,c)};c.kh=function(a,c,b,e){this.Fc?e=!1:null==e&&(e=this.Pf);a=this.Ob().kh(a,c,b);e&&(a=this.By(a));return a};c.By=function(a){var c;
this.Fc?c=!1:null==c&&(c=this.Pf);if(!c)return a;c=this.Ya+1;a=a%c;0>a&&(a=a+c);return a};c.mh=function(a,c,b,e){this.Fc?e=!1:null==e&&(e=this.Pf);a=this.Ob().mh(a,c,b);e&&(a=this.Cy(a));return a};c.Cy=function(a){var c;this.Fc?c=!1:null==c&&(c=this.Pf);if(!c)return a;c=this.$a+1;a=a%c;0>a&&(a=a+c);return a};c.Bo=function(a,c,b){var e=0;a=this.O(a);if(null==a)return null;var g=this.kh(a.x,a.y,c,b);c=this.mh(a.x,a.y,c,b);null==e&&(e=a.z);return this.Za(g,c,e)};c.O=function(a){return this.qf()[a]||
null};c.Ii=function(a){var c=parseInt(a);return"number"!==typeof c?null:0>c?null:this.O(a)?this.c.jc(a):null};c.Yk=function(a,c){var b=this.O(a),e=this.O(c);if(null==b||null==e)return!1;this.Bc(a);this.Bc(c);this.mf(a,e.x,e.y,e.z);this.mf(c,b.x,b.y,b.z);return!0};c.cb=function(a,c,b,e){var g;switch(e){case 0:g=this.ze(a,c);break;case 1:g=this.ze(a,c,0==b?null:0);break;case 2:g=this.oh(a,c,b)}return g};c.Bc=function(a,c){null!=a&&null!=this.O(a)&&(c&&this.Ii(a)&&(this.Pt=a,this.c.trigger(Ac.prototype.j.bx,
this)),this.M.Rx(a))};c.mf=function(a,c,b,e){if(a&&this.ze(c,b)){var g="object"===typeof a;a=g?a.uid:a;this.Bc(a);this.Bc(this.Za(c,b,e),!0);this.M.Yq(a,c,b,e);(g||null!=this.Ii(a))&&this.c.trigger(Ac.prototype.j.nr,this)}};c.Pi=function(a,c,b,e){a="object"===typeof a?a.uid:a;this.Bc(a);this.mf(a,c,b,e)};c.Re=function(a,c,b){a=this.O(a);c=this.O(c);return a&&c?this.Yv(a.x,a.y,c.x,c.y,b):null};var q={x:0,y:0,z:0},t={x:0,y:0,z:0};c.Yv=function(a,c,b,e,g){q.x=a;q.y=c;t.x=b;t.y=e;c=this.Ob();a=c.Uw(q,
t);if(null==a&&(this.Fc&&(g=!1),null==g&&(g=this.Pf),g)){b=c.Kk();var f;for(c=0;c<b;c++)if(e=this.kh(q.x,q.y,c,g),f=this.mh(q.x,q.y,c,g),e==t.x&&f==t.y){a=c;break}}return a};c.Jk=function(a,c,b,e,g){if(a&&g&&this.ze(c,b)){var f=this,h=this.Ob(),k=h.gg(c,b,e),h=h.hg(c,b,e);return window.ki.call(this,a,g,k,h,function(a){f.mf(a,c,b,e)})}};c.eC=function(a,c){var b=a.U().sc(),e=c.U().sc(),g,f,h;b.length>e.length?(g=c,f=a,h=e):(g=a,f=c,h=b,b=e);var e=this.c,k=e.Ab().xb,p=g===f,q=h.length,t,G,x,A,E,I,S,
z;for(t=0;t<q;t++)if(x=h[t],A=x.uid,E=this.O(A),null!=E&&(E=this.Ed(E.x,E.y)))for(G in E)I=E[G],I!=A&&(I=this.Ii(I),-1!=b.indexOf(I)&&(e.$g(k.xa),S=g.U(),z=f.U(),S.na=!1,z.na=!1,p?(S.g.length=2,S.g[0]=x,S.g[1]=I):(S.g.length=1,S.g[0]=x,z.g.length=1,z.g[0]=I),k.wi(),e.re(k.xa)))};c.Yc=function(a,c,b){if(!c)return!1;var e;if(!b){var g=this;e=function(a){return null!=g.O(a)}}return window.ed.call(this,a,c,e)};var g={};c.ed=function(){var a,c,b,e;f(g);b=!1;c=this.qf();for(a in c)if(c=this.Ii(a))b=c.type,
e=b.U(),b.name in g||(e.na=!1,e.g.length=0,g[b.name]=b),e.g.push(c),b=!0;for(var h in g)g[h].Id();f(g);return b};c.Pk=function(c){if(!c)return!1;a.length=0;var b,e=this.qf();for(b in e)a.push(parseInt(b));c=this.Yc(a,c);a.length=0;return c};c.Ui=function(c,b,e){if(!c)return!1;b=this.Ed(b,e);if(!b)return!1;a.length=0;for(var g in b)a.push(b[g]);c=this.Yc(a,c);a.length=0;return c};c.On=function(c,b){if(!c)return!1;a.length=0;var e=b.length,g,f,h;for(g=0;g<e;g++)if(f=b[g],f="object"===typeof f?f.uid:
f,f=this.O(f))if(f=this.Ed(f.x,f.y))for(h in f)a.push(f[h]);e=this.Yc(a,c);a.length=0;return e};c.Er=function(a,c){if(this.Fc)return!0;var b=this.Ob(),e=b.Qi(a,c),b=b.Ri(a,c);return this.ze(e,b)};c.Rk=function(c,b,e,g){if(!c)return!1;b=this.Za(b,e,g);if(null==b)return!1;a.length=0;a.push(b);c=this.Yc(a,c);a.length=0;return c};c.Qk=function(c,b){if(!c)return!1;a.length=0;if(this.Fc){var e,g;g=this.qf();for(e in g)e=parseInt(e),g=this.O(e),g.x===b&&a.push(e)}else{var f;for(e=0;e<=this.$a;e++)if(f=this.Ed(b,
e))for(g in f)a.push(f[g])}e=this.Yc(a,c);a.length=0;return e};c.Sk=function(c,b){if(!c)return!1;a.length=0;if(this.Fc){var e,g;g=this.qf();for(e in g)e=parseInt(e),g=this.O(e),g.y===b&&a.push(e)}else{var f;for(e=0;e<=this.Ya;e++)if(f=this.Ed(e,b))for(g in f)a.push(f[g])}e=this.Yc(a,c);a.length=0;return e};c.Tk=function(c,b){if(!c)return!1;a.length=0;if(this.Fc){var e,g;g=this.qf();for(e in g)e=parseInt(e),g=this.O(e),g.z===b&&a.push(e)}else{var f;for(f=0;f<=this.$a;f++)for(g=0;g<=this.Ya;g++)e=this.Za(g,
f,b),null!=e&&a.push(e)}e=this.Yc(a,c);a.length=0;return e};c.Uk=function(c,b,e,g,f){if(!c)return!1;var h=Math.min(b,e);b=Math.max(b,e);e=Math.min(g,f);g=Math.max(g,f);var k,p;for(a.length=0;e<=g;e++)for(f=h;f<=b;f++)if(p=this.Ed(f,e))for(k in p)a.push(p[k]);c=this.Yc(a,c);a.length=0;return c};c.Vk=function(a,c,b,e){if(!b||null==a)return!1;var g=this.Ob().Kk();a=a.uid;var f=[],h;if(-1==c)for(c=0;c<g;c++)h=this.Bo(a,c,e),null!=h&&f.push(h);else 0<=c&&c<g&&(h=this.Bo(a,c,e),null!=h&&f.push(this.Bo(a,
c,e)));return this.On(b,f)};c.Si=function(a,c){if(!a||!c)return!1;var b=c.U().sc();return this.On(a,b)};c.Ti=function(a,c){if(a){var b=this.O(c);if(b)return this.Ui(a,b.x,b.y);var e;try{e=JSON.parse(c)}catch(g){e=null}return e?this.On(a,e):!1}};c.wa=function(){var a=this.Ob();return{luid:null!=a?a.uid:-1,mx:this.Ya,my:this.$a,b:this.M.wa(),iswrap:this.Pf}};c.Fa=function(a){this.im=a.luid;this.Ya=a.mx;this.$a=a.my;this.M.Fa(a.b);this.Pf=a.iswrap};c.qc=function(){-1===this.im?this.Ma=null:this.Ma=this.c.jc(this.im);
this.im=-1};p.j=new b;b.prototype.oh=function(a,c,b){return this.oh(a,c,b)};b.prototype.nr=function(a,c){this.eC(a,c);return!1};b.prototype.Er=function(a,c){return this.Er(a,c)};b.prototype.bx=function(c){a.length=0;a.push(this.Pt);c=this.Yc(a,c);a.length=0;return c};b.prototype.Ui=function(a,c,b){return this.Ui(a,c,b)};b.prototype.Si=function(a,c){return this.Si(a,c)};b.prototype.Ti=function(a,c){return this.Ti(a,c)};b.prototype.Rk=function(a,c,b,e){return this.Rk(a,c,b,e)};b.prototype.Vk=function(a,
c,b){return a?this.Vk(a.he(),c,b):!1};b.prototype.Pk=function(a){return this.Pk(a)};b.prototype.Qk=function(a,c){return this.Qk(a,c)};b.prototype.Sk=function(a,c){return this.Sk(a,c)};b.prototype.Tk=function(a,c){return this.Tk(a,c)};b.prototype.Uk=function(a,c,b,e,g){return this.Uk(a,c,b,e,g)};p.B=new h;h.prototype.Xk=function(a,c){this.Xk(a-1,c-1)};h.prototype.mf=function(a,c,b,e){null!=a&&(a="object"===typeof a?a.he():a,this.mf(a,c,b,e))};h.prototype.jy=function(a){null!=a&&(a=a.g[0],"LAYOUT"==
a.zh?this.Ma=a:alert("Board should connect to a layout object"))};h.prototype.pw=function(a,c,b,e){this.Jk(a,c,b,0,e)};h.prototype.Jk=function(a,c,b,e,g){this.Jk(a,c,b,e,g)};h.prototype.Bc=function(a){if(a)if("object"===typeof a){a=a.U().sc();var c,b=a.length;for(c=0;c<b;c++)this.Bc(a[c].uid)}else this.Bc(a)};h.prototype.Pi=function(a,c){var b=k(a),e=k(c);if(null!=b&&null!=e){var g=this.O(b),e=this.O(e);null!=g&&null!=e&&this.Pi(b,e.x,e.y,g.z)}};h.prototype.Yk=function(a,c){this.Yk(a,c)};h.prototype.Ui=
function(a,c,b){this.Ui(a,c,b)};h.prototype.Si=function(a,c){this.Si(a,c)};h.prototype.Ti=function(a,c){this.Ti(a,c)};h.prototype.Rk=function(a,c,b,e){this.Rk(a,c,b,e)};h.prototype.Jr=function(a){this.Jr(a-1)};h.prototype.Ir=function(a){this.Ir(a-1)};h.prototype.Vk=function(a,c,b){if(!a)return!1;this.Vk(a.he(),c,b)};h.prototype.Pk=function(a){this.Pk(a)};h.prototype.Qk=function(a,c){this.Qk(a,c)};h.prototype.Sk=function(a,c){this.Sk(a,c)};h.prototype.Tk=function(a,c){this.Tk(a,c)};h.prototype.Uk=
function(a,c,b,e,g){this.Uk(a,c,b,e,g)};p.J=new e;e.prototype.kr=function(a,c,b){c=this.Vj(c,b);null==c&&(c=-1);a.ve(c)};e.prototype.gg=function(a,c,b,e){a.F(this.Ob().gg(c,b,e))};e.prototype.hg=function(a,c,b,e){a.F(this.Ob().hg(c,b,e))};e.prototype.Qi=function(a,c,b){a.T(this.Ob().Qi(c,b))};e.prototype.Ri=function(a,c,b){a.T(this.Ob().Ri(c,b))};e.prototype.gw=function(a){a.T(this.Ya+1)};e.prototype.fw=function(a){a.T(this.$a+1)}})();
(function(){if(null==window.Re){var f=function(){this.Za={};this.O={};this.fg=this.eg=this.$a=this.Ya=null},k=f.prototype;k.Wd=function(){this.Za={};window.cb.ft(this.O);this.fg=this.eg=this.$a=this.Ya=null};k.qf=function(){return this.O};k.Yq=function(b,e,f,c){if(2==arguments.length){var a=e;e=a.x;f=a.y;c=a.z}this.Za.hasOwnProperty(e)||(this.Za[e]={});a=this.Za[e];a.hasOwnProperty(f)||(a[f]={});a[f][c]=b;this.O[b]=window.cb.fl(e,f,c);this.fg=this.eg=this.$a=this.Ya=null};k.Jn=function(b,e,f){b=this.Za[b];
if(null!=b){b=b[e];if(null==f)return b;if(null!=b)return b[f]}return null};k.Rx=function(f,e,k){var c,a;if(1===arguments.length){c=f;a=this.O[c];if(!a)return;f=a.x;e=a.y;k=a.z}else if(3===arguments.length){c=this.Jn(f,e,k);if(null==c)return;a=this.O[c]}else return;if(this.Za.hasOwnProperty(f)){var q=this.Za[f];if(q.hasOwnProperty(e)){var t=q[e];t.hasOwnProperty(k)&&(delete t[k],b(t)&&delete q[e],b(q)&&delete this.Za[f],delete this.O[c],window.cb.Ol(a),this.fg=this.eg=this.$a=this.Ya=null)}}};var b=
function(b){for(var e in b)return!1;return!0};k.gk=function(b){this.Wd();var e,f;for(e in b)f=b[e],this.Yq(parseInt(e),f.x,f.y,f.z)};k.cb=function(){if(null===this.Ya){var b,e;for(b in uid2xyz)if(e=uid2xyz[b],null===this.Ya||this.Ya<e.x)this.Ya=e.x}return this.Ya};k.ed=function(){if(null===this.$a){var b,e;for(b in uid2xyz)if(e=uid2xyz[b],null===this.$a||this.$a<e.y)this.$a=e.y}return this.$a};k.Re=function(){if(null===this.eg){var b,e;for(b in uid2xyz)if(e=uid2xyz[b],null===this.eg||this.eg>e.x)this.eg=
e.x}return this.eg};k.ki=function(){if(null===this.fg){var b,e;for(b in uid2xyz)if(e=uid2xyz[b],null===this.fg||this.fg>e.y)this.fg=e.y}return this.fg};k.wa=function(){var b,e={},f;for(b in this.O)e[b]={},f=this.O[b],e[b].x=f.x,e[b].y=f.y,e[b].z=f.z;return{xyz2uid:this.Za,uid2xyz:e}};k.Fa=function(b){this.Za=b.xyz2uid;window.cb.ft(this.O);var e;b=b.uid2xyz;var f;for(e in b)f=b[e],this.O[e]=window.cb.fl(f.x,f.y,f.z)};window.Re=f}})();
null==window.ki&&(window.ki=function(f,k,b,h,e,p){if(k&&f&&(k=this.c.ol(f,k,b,h))){this.c.dd++;e&&e(k);this.c.trigger(Object.getPrototypeOf(f.u).j.ig,k);if(k.wc)for(e=0,b=k.siblings.length;e<b;e++)h=k.siblings[e],this.c.trigger(Object.getPrototypeOf(h.type.u).j.ig,h);this.c.dd--;if(!0!==p&&(f=f.U(),f.na=!1,f.g.length=1,f.g[0]=k,k.wc))for(e=0,b=k.siblings.length;e<b;e++)h=k.siblings[e],f=h.type.U(),f.na=!1,f.g.length=1,f.g[0]=h;return k}});
null==window.ed&&(window.ed=function(f,k,b){var h=k.U();h.g.length=0;h.na=!1;var e=k.N,p,c,a;e&&(p=k.hi,c=p.length);var q,t=f.length;for(a=0;a<t;a++)if(q=f[a],null!=q){var g=this.c.jc(q);if(null!=g&&(null==b||b(q))){var d=g.type.name;if(e)for(q=0;q<c;q++){if(d==p[q].name){h.g.push(g);break}}else d==k.name&&h.g.push(g)}}k.Id();return 0<h.g.length});
(function(){if(null==window.cb){var f=function(){this.xc=[]},k=f.prototype;k.fl=function(b,f,e){var k=0<this.xc.length?this.xc.pop():{};k.x=b;k.y=f;k.z=e;return k};k.Ol=function(b){this.xc.push(b)};k.ft=function(b){for(var f in b)this.xc.push(b[f]),delete b[f]};k.cb=function(b){var f,e;f=0;for(e=b.length;f<e;f++)this.Ol(b[f]);b.length=0};window.cb=new f}})();function Cc(f){this.c=f}
(function(){function f(a){this.content=[];this.ah=a}function k(a,c){this.parent=[];this.init(a,c)}function b(a,c){var b=a.Ju,d=c.Ju;return b>d?1:b<d?-1:0}function h(){this.xc=[]}function e(a){null==a?a=null:"object"===typeof a&&(a=a.he(),a=null!=a?a.uid:null);return a}function p(a){return 0>a?-a:a}function c(){}function a(){}function q(){}var t=Cc.prototype;t.V=function(a){this.u=a;this.c=a.c};t.V.prototype.K=function(){};t.I=function(a){this.type=a;this.c=a.c};var g=t.I.prototype,d={};g.K=function(){this.Gc=
this.q[0];this.AB=1===this.q[1];this.DB=1===this.q[2];this.kD=this.q[3];this.M=null;this.gl=-1;this.group=null;this.Tl=-1;this.Ub=null;this.Vb=-1;this.Vr=this.Vn=null;this.Wn=0;this.Wr=[];this.$r=null;this.Yd=[];this.sn={};this.Gh=this.El=this.Bl=-1;this.Dg=null};g.Ua=function(){if(null!=this.M)return this.M;var a=this.c.types,c,b;for(c in a)if(b=a[c].g[0],Ac&&b instanceof Ac.prototype.I)return this.M=b;return null};g.Lk=function(){if(null!=this.group)return this.group;var a=this.c.types,c,b;for(c in a)if(b=
a[c].g[0],Dc&&b instanceof Dc.prototype.I)return this.group=b;return null};g.ze=function(a,c,b){return this.Ua().ze(a,c,b)};g.Za=function(a,c,b){return this.Ua().Za(a,c,b)};g.O=function(a){return this.Ua().O(a)};g.Vj=function(a,c){return this.Ua().Vj(a,c)};g.MB=function(a,c,b,d){return this.Ua().Ob().Pw(b,d,a,c)};g.nu=function(a,c){return this.Ua().Ob().gg(a,c,0)};g.ou=function(a,c){return this.Ua().Ob().hg(a,c,0)};g.Ms=function(a){this.$r?(this.Dg=a,this.Wn=-1,this.c.trigger(Cc.prototype.j.or,this),
this.Dg=null,a=this.Wn):a=this.Vn;return a};g.Ky=function(a){if(this.Yd.length>a)this.Yd.length=a;else if(this.Yd.length<a)for(var c=this.Yd.length;c<a;c++)this.Yd.push({x:0,y:0})};g.UB=function(a,c){var b=this.Ua();this.Ky(b.Ob().Kk());var d,e=this.Yd.length;for(d=0;d<e;d++)this.Yd[d].x=b.kh(a,c,d),this.Yd[d].y=b.mh(a,c,d);if(this.DB){b=this.Yd;d=this.Ub;var e=b.length,g,f;if(0!=e)for(;--e;)g=null==d?Math.random():d.random(),g=Math.floor(g*(e+1)),f=b[e],b[e]=b[g],b[g]=f}return this.Yd};g.Qx=function(a){return Math.floor(this.Hr()*
(a-0)+0)};g.Hr=function(){return null==this.Ub?Math.random():this.Ub.random()};g.Nr=function(a,c){var b=this.O(a),d=this.O(c);return this.Ua().Ob().Rr(b,d)};g.lz=function(a){this.Vn=a;this.$r="string"==typeof a};g.Iv=function(a){a=this.O(a);return null==a?null:this.Za(a.x,a.y,0)};g.bv=function(){var a=this.sn,c;for(c in a)delete a[c];this.Gh=-1};g.aB=function(a,c,b){a=this.Iv(a);if(null==a)return[];this.El=a;c=this.Xq(a,null,c,b,w);if(null==c)return[];c=this.Zv(c);Ea(c,a);this.Wq();return c};g.bB=
function(a,c,b,d,e){a=this.Iv(a);if(null==a)return[];this.El=a;b=this.Xq(a,c,b,d,1===e?m:l);if(null==b)return[];1===e&&(c=this.Gh);c=b[c].fC(b[a]);this.Wq();return c};var l=0,m=1,w=16;g.Xq=function(a,c,b,e,g){g=g==l||g==m;var f=3==this.Gc||5==this.Gc||6==this.Gc,h=g&&f,f=g&&!f,k=h?3==this.Gc?0:5==this.Gc?1:6==this.Gc?2:null:null;this.lz(e);c=null!=c?this.Gn(c):null;a=this.Gn(a);a.Oe=a.Wl(c,k);e=a;g&&(e.Df=h?e.Oe:e.Df||e.Wl(c,k,void 0),this.Gh=e.uid);for(R.push(a);0<R.size();){var n=R.pop();if(n===
c)break;n.closed=!0;for(var p=n.TB(),q=p.length,t=0;t<q;++t){var r=p[t],w=r.mz();if(!r.closed&&-1!=w){var w=n.Fg+w,u=r.Vv;-1!=b&&w>b||(!u||w<r.Fg?(r.Vv=!0,r.parent.length=0,r.parent.push(n.uid),r.Oe=r.Oe||r.Wl(c,k,a),r.Fg=w,r.Vs=r.Fg+r.Oe,this.sn[r.uid]=w,g&&(r.Df=h?r.Oe:r.Df||r.Wl(c,k,a),r.Df<e.Df||r.Df===e.Df&&r.Fg<e.Fg)&&(e=r,this.Gh=e.uid),u?R.yC(r):R.push(r)):w==r.Fg&&f&&r.parent.push(n.uid))}}}R.hz();return d};var n=h.prototype;n.fl=function(){return 0<this.xc.length?this.xc.pop():null};n.Ol=
function(a){this.xc.push(a)};var N=new h,r=-1;g.Gn=function(a){r+=1;if(null==d[a]){var c=N.fl();null==c?c=new k(this,a):c.init(this,a);d[a]=c}return d[a]};g.Zv=function(a){var c=[],d,e;for(d in a)e=a[d],e.closed&&c.push(e);c.sort(b);d=c.length;for(a=0;a<d;a++)c[a]=c[a].uid;return c};g.Wq=function(){for(var a in d)N.Ol(d[a]),delete d[a];r=-1};n=k.prototype;n.init=function(a,c){this.Ju=r;var b=a.O(c);this.u=a;this.uid=c;this.x=b.x;this.y=b.y;this.uo=this.si=this.ri=null;this.Df=this.Oe=this.Fg=this.Vs=
0;this.closed=this.Vv=!1;this.parent.length=0};n.Wl=function(a,c,b){if(null===c)return 0;var d,e=this.u.MB(a.x,a.y,this.x,this.y)*this.u.kD;1===c&&b?(a=a.vh(b)-this.vh(b),d=e+p(a)):2===c?d=e+this.u.Hr():d=e;return d};n.TB=function(){var a=this.u.UB(this.x,this.y),c,b=[],d,e=a.length;for(d=0;d<e;d++)c=a[d],c=this.u.Za(c.x,c.y,0),null!=c&&b.push(this.u.Gn(c));return b};n.mz=function(){var a;this.u.AB?(null==this.uo&&(this.uo=this.u.Ms(this)),a=this.uo):a=this.u.Ms(this);return a};n.fC=function(a){var c=
3==this.u.Gc||5==this.u.Gc||6==this.u.Gc,b=0==this.u.Gc,e=1==this.u.Gc,g=2==this.u.Gc,f=4==this.u.Gc,h,l=null,k,m,n;if(f)var q=a.vh(this);for(var r=this,t=[];0<r.parent.length;)if(t.push(r.uid),n=r.parent.length,c)r=d[r.parent[0].toString()];else if(b)h=1===n?0:this.u.Qx(n),r=d[r.parent[h].toString()];else if(e){for(m=0;m<n;m++)if(k=this.u.Nr(r.uid,r.parent[m]),k!=l||m==n-1){h=m;l=k;break}r=d[r.parent[h].toString()]}else if(g){for(m=0;m<n;m++)if(k=this.u.Nr(r.uid,r.parent[m]),k==l||m==n-1){h=m;l=
k;break}r=d[r.parent[h].toString()]}else if(f)if(1==n)m=r=d[r.parent[0].toString()],q=a.vh(m);else{k=d[r.parent[0].toString()];var w,N=p(a.vh(k)-q),R;for(m=1;m<n;m++)w=d[r.parent[m].toString()],R=p(a.vh(w)-q),R<N&&(k=w,N=R);r=k}return t.reverse()};n.vh=function(a){null==this.ri&&(this.ri=this.u.nu(this.x,this.y));null==this.si&&(this.si=this.u.ou(this.x,this.y));null==a.ri&&(a.ri=this.u.nu(a.x,a.y));null==a.si&&(a.si=this.u.ou(a.x,a.y));return Na(this.ri,this.si,a.ri,a.si)};var R,n=f.prototype;n.hz=
function(){this.content.length=0};n.push=function(a){this.content.push(a);this.yq(this.content.length-1)};n.pop=function(){var a=this.content[0],c=this.content.pop();0<this.content.length&&(this.content[0]=c,this.Es(0));return a};n.remove=function(a){var c=this.content.indexOf(a),b=this.content.pop();c!==this.content.length-1&&(this.content[c]=b,this.ah(b)<this.ah(a)?this.yq(c):this.Es(c))};n.size=function(){return this.content.length};n.yC=function(a){this.yq(this.content.indexOf(a))};n.yq=function(a){for(var c=
this.content[a];0<a;){var b=(a+1>>1)-1,d=this.content[b];if(this.ah(c)<this.ah(d))this.content[b]=c,this.content[a]=d,a=b;else break}};n.Es=function(a){for(var c=this.content.length,b=this.content[a],d=this.ah(b);;){var e=a+1<<1,g=e-1,f=null,h;g<c&&(h=this.ah(this.content[g]),h<d&&(f=g));e<c&&this.ah(this.content[e])<(null===f?d:h)&&(f=e);if(null!==f)this.content[a]=this.content[f],this.content[f]=b,a=f;else break}};R=new f(function(a){return a.Vs});g.wa=function(){return{pm:this.Gc,boarduid:null!=
this.M?this.M.uid:-1,groupuid:null!=this.group?this.group.uid:-1,randomuid:null!=this.Ub?this.Ub.uid:-1,chessuid:this.Bl,starttileuid:this.El,nearesttileuid:this.Gh,uid2cost:this.sn}};g.Fa=function(a){this.Gc=a.pm;this.gl=a.boarduid;this.Tl=a.groupuid;this.Vb=a.randomuid;this.Bl=a.chessuid;this.El=a.starttileuid;this.Gh=a.nearesttileuid;this.sn=a.uid2cost};g.qc=function(){-1===this.gl?this.M=null:this.M=this.c.jc(this.gl);this.gl=-1;-1===this.Tl?this.group=null:this.group=this.c.jc(this.Tl);this.Tl=
-1;-1===this.Vb?this.Ub=null:this.Ub=this.c.jc(this.Vb);this.Vb=-1};t.j=new c;c.prototype.or=function(a){return pb(a,this.Vn)};c.prototype.tx=function(a){return pb(a,this.Vr)};t.B=new a;a.prototype.iy=function(a,c){var b=a.he();"BOARD"==b.zh?this.M=b:alert("SLG movement should connect to a board object");b=c.he();"INSTGROUP"==b.zh?this.group=b:alert("SLG movement should connect to a instance group object")};a.prototype.Yx=function(a){0>a&&-1!=a&&(a=0);this.Wn=a};a.prototype.xw=function(a,c,b,d,g){this.bv();
var f=this.Lk();this.Ua();f.ra(g).nf();var h=e(a);a=this.O(h);if(null!=a&&!(-1!=c&&0>=c))if(this.Bl=h,c=this.aB(h,c,b),""==d)f.ra(g).Vi(c);else{b=c.length;this.Vr=d;this.Wr.length=0;this.Dg={uid:-1,x:-1,y:-1};for(d=0;d<b;d++)a=parseInt(c[d]),this.Dg.uid=a,a=this.O(a),this.Dg.x=a.x,this.Dg.y=a.y,this.c.trigger(Cc.prototype.j.tx,this);f.ra(g).Vi(this.Wr)}};a.prototype.yw=function(a,c,b,d,g,f){this.bv();var h=this.Lk();this.Ua();h.ra(g).nf();a=e(a);c=e(c);null==a||null==c||-1!=b&&0>=b||null==this.O(a)||
(c=this.Vj(c,0),null!=c&&(this.Bl=a,b=this.bB(a,c,b,d,f),0<b.length&&h.ra(g).Vi(b)))};t.J=new q;q.prototype.qy=function(a){var c=this.Dg;a.ve(null!=c?c.uid:-1)}})();function Bc(f){this.c=f}
(function(){function f(a,c,b,e){var f;0==e?f=1==a&&0==c?0:0==a&&1==c?1:-1==a&&0==c?2:0==a&&-1==c?3:1==a&&1==c?4:-1==a&&1==c?5:-1==a&&-1==c?6:1==a&&-1==c?7:null:1==e?f=1==a&&0==c?0:0==a&&1==c?1:-1==a&&0==c?2:0==a&&-1==c?3:1==a&&1==c?4:-1==a&&1==c?5:-1==a&&-1==c?6:1==a&&-1==c?7:null:2==e&&(f=b&1?1==a&&-1==c?0:1==a&&1==c?1:0==a&&1==c?2:0==a&&-1==c?3:0==a&&2==c?4:-1==a&&0==c?5:0==a&&-2==c?6:1==a&&-0==c?7:null:0==a&&-1==c?0:0==a&&1==c?1:-1==a&&1==c?2:-1==a&&-1==c?3:0==a&&2==c?4:-1==a&&0==c?5:0==a&&-2==
c?6:1==a&&-0==c?7:null);return f}function k(){}function b(){}var h=Bc.prototype;h.V=function(a){this.u=a;this.c=a.c};h.V.prototype.K=function(){};h.I=function(a){this.type=a;this.c=a.c};var e=h.I.prototype;e.K=function(){this.zh="LAYOUT";this.mode=this.q[0];this.cm=1==this.q[5];this.Rn(this.q[1]);this.Sn(this.q[2]);this.Tn(this.q[3]);this.Pn(this.q[4])};e.Rn=function(a){this.kg=a};e.Sn=function(a){this.sf=a};e.cb=function(){return this.kg};e.ed=function(){return this.sf};e.Tn=function(a){this.width=
a;this.uj=a/2};e.Pn=function(a){this.height=a;this.Ph=a/2};e.gg=function(a,c){var b;0==this.mode?b=a*this.width:1==this.mode?b=(a-c)*this.uj:2==this.mode&&(b=a*this.width,c&1&&(b+=this.uj));return b+this.kg};e.hg=function(a,c){var b;0==this.mode?b=c*this.height:1==this.mode?b=(a+c)*this.Ph:2==this.mode&&(b=c*this.Ph);return b+this.sf};e.Qi=function(a,c){var b;0==this.mode?(a-=this.kg,b=Math.round(a/this.width)):1==this.mode?(a-=this.kg,c-=this.sf,b=.5*(Math.round(c/this.Ph)+Math.round(a/this.uj))):
2==this.mode&&(b=Math.round((c-this.sf)/this.Ph),a=a-this.kg,b&1&&(a-=this.uj),b=Math.round(a/this.width));return b};e.Ri=function(a,c){var b;0==this.mode?(c-=this.sf,b=Math.round(c/this.height)):1==this.mode?(a-=this.kg,c-=this.sf,b=.5*(Math.round(c/this.Ph)-Math.round(a/this.uj))):2==this.mode&&(b=Math.round((c-this.sf)/this.Ph));return b};var p=[[1,0],[0,1],[-1,0],[0,-1],[1,1],[-1,1],[-1,-1],[1,-1]],c=[0,-1,-1,0,0,-1,0,1],a=[1,0,0,1,0,-1,0,1];e.kh=function(b,e,d){var f;0==this.mode?f=p[d][0]:1==
this.mode?f=p[d][0]:2==this.mode&&(f=e&1?a[d]:c[d]);return b+f};var q=[1,1,-1,-1,2,0,-2,0];e.mh=function(a,c,b){var e;0==this.mode?e=p[b][1]:1==this.mode?e=p[b][1]:2==this.mode&&(e=q[b]);return c+e};e.Kk=function(){return this.cm?8:4};e.$q=function(a,c){var b=this.Rr(a,c);return null==b?-1:4>b?90*b:90*(b-4)+45};e.Rr=function(a,c){var b=c.x-a.x,e=c.y-a.y,h=Math.max(0>b?-b:b,0>e?-e:e);0!=h&&(b/=h,e/=h);return f(b,e,a.y,this.mode)};e.Uw=function(a,c){var b=f(c.x-a.x,c.y-a.y,a.y,this.mode);null!=b&&!this.cm&&
3<b&&(b=null);return b};e.Re=function(a,c,b,e){var f;switch(this.mode){case 0:case 1:switch(e){case 1:f=-c;break;case 2:f=-a;break;case 3:f=c;break;default:f=a}}return f};e.ki=function(a,c,b,e){var f;switch(this.mode){case 0:case 1:switch(e){case 1:f=a;break;case 2:f=-c;break;case 3:f=-a;break;default:f=c}}return f};e.Pw=function(a,c,b,e){a=b-a;c=e-c;return(0>a?-a:a)+(0>c?-c:c)};e.gk=function(a,c,b,e){return a+e};e.Ov=function(a,c,b,e,f){return c+f};e.Vq=function(a,c,b,e){var f;a=Na(a,c,b,e);switch(this.mode){case 0:f=
a;break;case 1:case 2:f=4.7123889804-a}return f};e.wa=function(){return{iso:this.mode,w:this.width,h:this.height,ox:this.kg,oy:this.sf,is8d:this.cm}};e.Fa=function(a){this.mode=a.iso;this.Tn(a.w);this.Pn(a.h);this.Rn(a.ox);this.Sn(a.oy);this.cm=a.is8d};h.j=new function(){};h.B=new k;k.prototype.ay=function(a,c){this.Rn(a);this.Sn(c)};h.J=new b;b.prototype.zy=function(a){a.F(this.width)};b.prototype.Cw=function(a){a.F(this.height)};b.prototype.Qi=function(a,c,b){c=this.Qi(c,b);a.F(c)};b.prototype.Ri=
function(a,c,b){c=this.Ri(c,b);a.F(c)}})();function Ec(f){this.c=f}
(function(){function f(){}function k(){}var b=Ec.prototype;b.V=function(b){this.u=b;this.c=b.c};b.V.prototype.K=function(){};b.I=function(b){this.type=b;this.c=b.c};var h=b.I.prototype;h.K=function(){this.yb={};this.Cl="";this.Hh=null};h.wa=function(){return{evts:this.yb,ename:this.Cl,tag:this.Hh}};h.Fa=function(b){this.yb=b.evts;this.Cl=b.ename;this.Hh=b.tag};h.yA=function(b,f){return null!=this.yb[f]&&null!=this.yb[f][b]};h.pq=function(b,f,c){this.Cl=c;this.Hh=f;this.c.trigger(b,this);this.Hh=null};
b.j=new f;f.prototype.lr=function(b){return this.Hh===b};f.prototype.Yw=function(b){return this.Hh===b};f.prototype.Zw=function(){return!0};b.B=new k;k.prototype.yy=function(b,f){this.yb.hasOwnProperty(f)||(this.yb[f]={});this.yb[f].hasOwnProperty(b)||(this.yb[f][b]=!0,this.pq(Ec.prototype.j.Zw,f,b))};k.prototype.sw=function(b,f){if(this.yA(b,f)){var c=Ec.prototype.j;this.Cl=b;delete this.yb[f][b];this.pq(c.Yw,f,b);var a;a:{a=this.yb[f];for(var h in a){a=!1;break a}a=!0}a&&(delete this.yb[f],this.pq(c.lr,
f,b))}};b.J=new function(){}})();function Dc(f){this.c=f}
(function(){function f(){}function k(){}function b(){}var h=Dc.prototype;h.V=function(c){this.u=c;this.c=c.c};h.V.prototype.K=function(){};h.I=function(c){this.type=c;this.c=c.c};var e=h.I.prototype,p=[];e.K=function(){this.zh="INSTGROUP";this.Ig={};this.Ub=null;this.Vb=-1;this.as="";this.bs=0;this.Xr={};this.Iy={};this.al={};this.Mb||(this.Vf=function(c){return function(a){c.Zg(a)}}(this));this.c.dl(this.Vf)};e.We=function(){this.c.kq(this.Vf)};e.Zg=function(c){c=c.uid;var a,b=this.Ig;for(a in b)b[a].qh(c);
this.Ly(c)};e.Ey=function(c){var a;"@"!=c.charAt(0)?a=-1:(a=c.indexOf("$"),a=-1==a?-1:parseInt(c.substring(1,a)));if(-1!=a){var b=this.al[a];null==b?(b=[c],this.al[a]=b):b.push(c)}};e.Ly=function(c){var a=this.al[c];if(null!=a){var b=a.length,e;for(e=0;e<b;e++)this.In(a[e]);delete this.al[c]}};e.ra=function(c){var a=this.Ig[c];null==a&&(a=new window.gk,this.Ig[c]=a,this.Ey(c));return a};e.Bw=function(c){return this.Ig.hasOwnProperty(c)};e.In=function(c){this.Bw(c)&&delete this.Ig[c]};e.ed=function(){var c=
{},a,b=this.Ig;for(a in b)c[a]=b[a].ty();return JSON.stringify(c)};e.ao=function(c,a,b){c!=b&&a!=b?(this.ra(b).Hn(this.ra(c)),c=b):b==a&&(a=c,c=b);return{a:c,b:a}};e.gs=function(c,a){var b=this.c.jc(c);if(null==b)return null;if(null==a||b.type==a)return b;if(a.N){var e=b.type.Ra,g=e.length,d;for(d=0;d<g;d++)if(a==e[d])return b}return null};e.Yc=function(c,a){return a?window.ed.call(this,c,a):!1};e.cz=function(c){this.as=c;this.bs=0;this.c.trigger(Dc.prototype.j.Bx,this,c);return this.bs};e.Yr=function(c,
a,b){c=this.ra(c);var e=c.ba,g,d=e.length;for(g=0;g<d;g++)p.push(e[g]);a=this.Yc(p,a);if(1==b)for(g=0;g<d;g++)c.qh(p[g]);p.length=0;return a};e.ds=function(c,a,b,e){c=this.ra(c);a=c.ba[a];p.push(a);b=this.Yc(p,b);1==e&&c.qh(a);p.length=0;return b};e.cb=function(c,a,b,e,g){c=this.ra(c);var d=c.ba,f,h=d.length,k=null,n,N=1===g;g=-1;var r;for(f=0;f<h;f++)if(n=this.cz(e),r=null===k||!N&&k>n||N&&k<n)k=n,g=d[f];p.push(g);a=this.Yc(p,a);1==b&&c.qh(g);p.length=0;return a};e.wa=function(){var c={},a,b=this.Ig;
for(a in b)c[a]=b[a].ba;return{d:c,randomuid:null!=this.Ub?this.Ub.uid:-1}};e.Fa=function(c){var a=c.d,b;for(b in a)this.ra(b).Vi(a[b]);this.Vb=c.randomuid};e.qc=function(){-1===this.Vb?this.Ub=null:this.Ub=this.c.jc(this.Vb);this.Vb=-1};h.j=new f;f.prototype.Bx=function(c){return this.as===c};f.prototype.ww=function(c,a){var b=this.ra(a).ba,e=b.length,g,d=this.c.Ab().xb;for(g=0;g<e;g++)this.Xr[c]=b[g],this.Iy[c]=g,this.c.$g(d.xa),d.wi(),this.c.re(d.xa);return!1};f.prototype.fr=function(c,a,b){if(a)return this.Yr(c,
a,b)};f.prototype.ir=function(c,a){return this.ra(a).ir(c)};f.prototype.oh=function(c){return 0==this.ra(c).ba.length};f.prototype.Gr=function(c,a,b,e){if(b)return this.ds(c,a,b,e)};f.prototype.jr=function(c,a){var b=this.ra(a),e=this.ra(c);return b.jr(e)};h.B=new k;k.prototype.nf=function(c){this.ra(c).nf()};k.prototype.In=function(c){this.In(c)};k.prototype.Hn=function(c,a){c!=a&&this.ra(a).Hn(this.ra(c))};k.prototype.$v=function(c,a){if(c){var b=c.U().sc(),e=b.length;if(1==e)this.ra(a).ih(b[0].uid);
else{var g,d=[];d.length=b.length;for(g=0;g<e;g++)d[g]=b[g].uid;this.ra(a).ih(d)}}};k.prototype.Pr=function(c,a,b){c=this.ao(c,a,b);this.ra(c.a).Pr(this.ra(c.b))};k.prototype.cr=function(c,a,b){c=this.ao(c,a,b);this.ra(c.a).cr(this.ra(c.b))};k.prototype.hr=function(c,a,b){c=this.ao(c,a,b);this.ra(c.a).hr(this.ra(c.b))};k.prototype.Lr=function(c){this.ra(c).Lr(this.Ub)};k.prototype.fr=function(c,a,b){a&&this.Yr(c,a,b)};k.prototype.Ux=function(c){this.ra(c).ba.reverse()};k.prototype.Gr=function(c,a,
b,e){b&&this.ds(c,a,b,e)};h.J=new b;b.prototype.Dw=function(c,a){c.T(this.ra(a).ba.length)};b.prototype.Or=function(c,a,b){c.T(this.ra(a).Or(b))};b.prototype.gr=function(c,a,b){c.ve(this.ra(a).gr(b))};b.prototype.Lw=function(c,a){var b=this.Xr[a];null==b&&(b=-1);c.ve(b)};b.prototype.Px=function(c,a,b){c.mb("@"+a.toString()+"$"+b)};b.prototype.Fr=function(c,a,b){c.ve(this.ra(a).Fr(b))}})();
null==window.ed&&(window.ed=function(f,k,b){var h=k.U();h.g.length=0;h.na=!1;var e=k.N,p,c,a;e&&(p=k.hi,c=p.length);var q,t=f.length;for(a=0;a<t;a++)if(q=f[a],null!=q){var g=this.c.jc(q);if(null!=g&&(null==b||b(q))){var d=g.type.name;if(e)for(q=0;q<c;q++){if(d==p[q].name){h.g.push(g);break}}else d==k.name&&h.g.push(g)}}k.Id();return 0<h.g.length});
(function(){if(null==window.gk){var f=function(){this.Ja={};this.ba=[]},k=f.prototype;k.nf=function(){for(var b in this.Ja)delete this.Ja[b];this.ba.length=0;return this};k.Hn=function(b){var f,e;e=this.Ja;for(f in e)delete this.Ja[f];e=b.Ja;for(f in e)this.Ja[f]=e[f];Aa(this.ba,b.ba);return this};k.Vi=function(b){this.nf();this.ih(b)};k.ih=function(b){if("object"===typeof b){var f,e,k=b.length;for(f=0;f<k;f++)e=b[f],null==this.Ja[e]&&(this.Ja[e]=!0,this.ba.push(e))}else null==this.Ja[b]&&(this.Ja[b]=
!0,this.ba.push(b))};k.gk=function(b,f){if("object"===typeof b){var e,k,c=b.length;for(e=0;e<c;e++)k=b[e],null==this.Ja[k]?this.Ja[k]=!0:ya(this.ba,this.ba.indexOf(k));f?this.ba.unshift.apply(this.ba,b):this.ba.push.apply(this.ba,b)}else null==this.Ja[b]?this.Ja[b]=!0:ya(this.ba,this.ba.indexOf(b)),f?this.ba.unshift(b):this.ba.push(b);return this};k.Re=function(b,f){if("object"===typeof b){var e,k,c=b.length;for(e=0;e<c;e++)k=b[e],null==this.Ja[k]?this.Ja[k]=!0:ya(this.ba,this.ba.indexOf(k))}else null==
this.Ja[b]?this.Ja[b]=!0:ya(this.ba,this.ba.indexOf(b));e=this.ba;k=f;c=e.length;k>c&&(k=c);if("object"!=typeof b)if(0==k)e.unshift(b);else if(k==c)e.push(b);else{var a,c=e.length;e.length+=1;for(a=c;a>k;a--)e[a]=e[a-1];e[k]=b}else if(0==k)e.unshift.apply(e,b);else if(k==c)e.push.apply(e,b);else{a=e.length-1;var c=k,q=b.length;for(e.length+=q;a>=c;a--)e[a+q]=e[a];for(a=0;a<q;a++)e[a+k]=b[a]}return this};k.qh=function(b){if("object"===typeof b){var f,e,k=b.length;for(f=0;f<k;f++)e=b[f],null!=this.Ja[e]&&
(delete this.Ja[e],ya(this.ba,this.ba.indexOf(e)))}else null!=this.Ja[b]&&(delete this.Ja[b],ya(this.ba,this.ba.indexOf(b)))};k.Or=function(b){return this.ba.indexOf(b)};k.gr=function(b){b=this.ba[b];null==b&&(b=-1);return b};k.Fr=function(b){var f=this.ba;0>b&&(b=f.length+b);b=f[b];null==b?b=-1:this.qh(b);return b};k.Pr=function(b){b=b.Ja;for(var f in b)this.ih(parseInt(f));return this};k.cr=function(b){this.qh(b.ba);return this};k.hr=function(b){var f,e=this.Ja,k={};for(f in e)k[f]=!0;this.nf();
e=b.Ja;for(f in e)null!=k[f]&&this.ih(parseInt(f));return this};k.jr=function(b){b=b.Ja;var f,e=!0;for(f in b)if(!(f in this.Ja)){e=!1;break}return e};k.ed=function(){return this.Ja};k.cb=function(){return this.ba};k.ir=function(b){return null!=this.Ja[b]};k.ty=function(){return JSON.stringify(this.ba)};k.ki=function(b){this.Vi(JSON.parse(b))};k.Lr=function(b){var f=this.ba,e=f.length,k,c;if(0!=e)for(;--e;)k=null==b?Math.random():b.random(),k=Math.floor(k*(e+1)),c=f[e],f[e]=f[k],f[k]=c};window.gk=
f}})();function X(f){this.c=f}
(function(){function f(){if(0===this.yo.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.Bi?c.drawImage(this.P,this.li,this.mi,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.P,0,0,this.width,this.height);this.yo=a.toDataURL("image/png")}return this.yo}function k(){}function b(){}function h(){}var e=X.prototype;e.V=function(a){this.u=a;this.c=a.c};var p=e.V.prototype;p.K=function(){if(!this.N){var a,c,b,e,h,k,
p,r,q;this.Hd=[];this.vj=!1;a=0;for(c=this.Oc.length;a<c;a++){h=this.Oc[a];p={};p.name=h[0];p.speed=h[1];p.loop=h[2];p.mq=h[3];p.nq=h[4];p.$e=h[5];p.qa=h[6];p.frames=[];b=0;for(e=h[7].length;b<e;b++)k=h[7][b],r={},r.ln=k[0],r.Cq=k[1],r.li=k[2],r.mi=k[3],r.width=k[4],r.height=k[5],r.duration=k[6],r.tc=k[7],r.uc=k[8],r.mp=k[9],r.Km=k[10],r.Su=k[11],r.Bi=0!==r.width,r.yo="",r.FE=f,q={left:0,top:0,right:1,bottom:1},r.wq=q,r.aa=null,(q=this.c.BA(k[0]))?r.P=q:(r.P=new Image,r.P.nz=k[0],r.P.Ns=k[1],r.P.az=
null,this.c.Rq(r.P,k[0])),p.frames.push(r),this.Hd.push(r);this.Oc[a]=p}}};p.Sv=function(){var a,c,b;a=0;for(c=this.g.length;a<c;a++)b=this.g[a],b.ql=b.bb.aa};p.ym=function(){if(!this.N){var a,c,b;a=0;for(c=this.Hd.length;a<c;++a)b=this.Hd[a],b.P.az=null,b.aa=null;this.vj=!1;this.Sv()}};p.Am=function(){if(!this.N&&this.g.length){var a,c,b;a=0;for(c=this.Hd.length;a<c;++a)b=this.Hd[a],b.aa=this.c.C.ei(b.P,!1,this.c.Sa,b.Su);this.Sv()}};p.Fp=function(){if(!this.N&&!this.vj&&this.c.C){var a,c,b;a=0;
for(c=this.Hd.length;a<c;++a)b=this.Hd[a],b.aa=this.c.C.ei(b.P,!1,this.c.Sa,b.Su);this.vj=!0}};p.tn=function(){if(!this.N&&!this.g.length&&this.vj){var a,c,b;a=0;for(c=this.Hd.length;a<c;++a)b=this.Hd[a],this.c.C.deleteTexture(b.aa),b.aa=null;this.vj=!1}};var c=[];p.Om=function(a){var b,e,f;C(c);b=0;for(e=this.Hd.length;b<e;++b)f=this.Hd[b].P,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};e.I=function(a){this.type=a;this.c=a.c;a=this.type.Oc[0].frames[0].Km;this.Mb?this.$d.qk(a):this.$d=new eb(a)};
var a=e.I.prototype;a.K=function(){this.visible=0===this.q[0];this.np=this.wp=!1;this.cj=0!==this.q[3];this.Pa=this.it(this.q[1])||this.type.Oc[0];this.L=this.q[2];0>this.L&&(this.L=0);this.L>=this.Pa.frames.length&&(this.L=this.Pa.frames.length-1);var a=this.Pa.frames[this.L];this.$d.qk(a.Km);this.tc=a.tc;this.uc=a.uc;this.Bh=this.Pa.speed;this.Hf=this.Pa.nq;1===this.type.Oc.length&&1===this.type.Oc[0].frames.length||0===this.Bh||(this.c.Eq(this),this.wp=!0);this.Mb?this.Zd.reset():this.Zd=new bb;
this.Ne=this.Zd.Z;this.pg=!0;this.Ce=0;this.ng=!0;this.qo=this.ss="";this.fz=0;this.il=-1;this.type.Fp();var c,b,e,f,h,k,p,a=0;for(c=this.type.Oc.length;a<c;a++)for(f=this.type.Oc[a],b=0,e=f.frames.length;b<e;b++)h=f.frames[b],0===h.width&&(h.width=h.P.width,h.height=h.P.height),h.Bi&&(p=h.P,k=h.wq,k.left=h.li/p.width,k.top=h.mi/p.height,k.right=(h.li+h.width)/p.width,k.bottom=(h.mi+h.height)/p.height,0===h.li&&0===h.mi&&h.width===p.width&&h.height===p.height&&(h.Bi=!1));this.bb=this.Pa.frames[this.L];
this.ql=this.bb.aa};a.wa=function(){var a={a:this.Pa.qa,f:this.L,cas:this.Bh,fs:this.Ne,ar:this.Ce,at:this.Zd.Z,rt:this.Hf};this.pg||(a.ap=this.pg);this.ng||(a.af=this.ng);return a};a.Fa=function(a){var c=this.GA(a.a);c&&(this.Pa=c);this.L=a.f;0>this.L&&(this.L=0);this.L>=this.Pa.frames.length&&(this.L=this.Pa.frames.length-1);this.Bh=a.cas;this.Ne=a.fs;this.Ce=a.ar;this.Zd.reset();this.Zd.Z=a.at;this.pg=a.hasOwnProperty("ap")?a.ap:!0;this.ng=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?
this.Hf=a.rt:this.Hf=this.Pa.nq;this.bb=this.Pa.frames[this.L];this.ql=this.bb.aa;this.$d.qk(this.bb.Km);this.tc=this.bb.tc;this.uc=this.bb.uc};a.fo=function(a){this.L=a?0:this.Pa.frames.length-1;this.pg=!1;this.ss=this.Pa.name;this.np=!0;this.c.trigger(X.prototype.j.mr,this);this.c.trigger(X.prototype.j.Xw,this);this.np=!1;this.Ce=0};a.cb=function(){return this.Zd.Z};a.ib=function(){this.Zd.add(this.c.Mh(this));this.qo.length&&this.vz();0<=this.il&&this.Ss();var a=this.Zd.Z,c=this.Pa,b=c.frames[this.L],
e=b.duration/this.Bh;this.pg&&a>=this.Ne+e&&(this.ng?this.L++:this.L--,this.Ne+=e,this.L>=c.frames.length&&(c.$e?(this.ng=!1,this.L=c.frames.length-2):c.loop?this.L=this.Hf:(this.Ce++,this.Ce>=c.mq?this.fo(!1):this.L=this.Hf)),0>this.L&&(c.$e?(this.L=1,this.ng=!0,c.loop||(this.Ce++,this.Ce>=c.mq&&this.fo(!0))):c.loop?this.L=this.Hf:(this.Ce++,this.Ce>=c.mq?this.fo(!0):this.L=this.Hf)),0>this.L?this.L=0:this.L>=c.frames.length&&(this.L=c.frames.length-1),a>this.Ne+c.frames[this.L].duration/this.Bh&&
(this.Ne=a),a=c.frames[this.L],this.jg(b,a),this.c.Ba=!0)};a.it=function(a){var c,b,e;c=0;for(b=this.type.Oc.length;c<b;c++)if(e=this.type.Oc[c],pb(e.name,a))return e;return null};a.GA=function(a){var c,b,e;c=0;for(b=this.type.Oc.length;c<b;c++)if(e=this.type.Oc[c],e.qa===a)return e;return null};a.vz=function(){var a=this.Pa.frames[this.L],c=this.it(this.qo);this.qo="";!c||pb(c.name,this.Pa.name)&&this.pg||(this.Pa=c,this.Bh=c.speed,this.Hf=c.nq,0>this.L&&(this.L=0),this.L>=this.Pa.frames.length&&
(this.L=this.Pa.frames.length-1),1===this.fz&&(this.L=0),this.pg=!0,this.Ne=this.Zd.Z,this.ng=!0,this.jg(a,this.Pa.frames[this.L]),this.c.Ba=!0)};a.Ss=function(){var a=this.Pa.frames[this.L],c=this.L;this.L=qa(this.il);0>this.L&&(this.L=0);this.L>=this.Pa.frames.length&&(this.L=this.Pa.frames.length-1);c!==this.L&&(this.jg(a,this.Pa.frames[this.L]),this.Ne=this.Zd.Z,this.c.Ba=!0);this.il=-1};a.jg=function(a,c){var b=a.width,e=a.height,f=c.width,h=c.height;b!=f&&(this.width*=f/b);e!=h&&(this.height*=
h/e);this.tc=c.tc;this.uc=c.uc;this.$d.qk(c.Km);this.Ta();this.bb=c;this.ql=c.aa;b=0;for(e=this.ea.length;b<e;b++)f=this.ea[b],f.Eu&&f.Eu(a,c);this.c.trigger(X.prototype.j.jg,this)};a.Ke=function(a){a.globalAlpha=this.opacity;var c=this.bb,b=c.Bi,e=c.P,f=this.x,h=this.y,k=this.width,p=this.height;if(0===this.n&&0<=k&&0<=p)f-=this.tc*k,h-=this.uc*p,this.c.Od&&(f=Math.round(f),h=Math.round(h)),b?a.drawImage(e,c.li,c.mi,c.width,c.height,f,h,k,p):a.drawImage(e,f,h,k,p);else{this.c.Od&&(f=Math.round(f),
h=Math.round(h));a.save();var q=0<k?1:-1,t=0<p?1:-1;a.translate(f,h);1===q&&1===t||a.scale(q,t);a.rotate(this.n*q*t);f=0-this.tc*ma(k);h=0-this.uc*ma(p);b?a.drawImage(e,c.li,c.mi,c.width,c.height,f,h,ma(k),ma(p)):a.drawImage(e,f,h,ma(k),ma(p));a.restore()}};a.wg=function(a){this.Qc(a)};a.Qc=function(a){a.Xc(this.ql);a.dh(this.opacity);var c=this.bb,b=this.xh;if(this.c.Od){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;c.Bi?a.se(b.Xb+e,b.Yb+f,b.nc+e,b.oc+f,b.fc+e,b.gc+f,b.cc+e,b.ec+f,
c.wq):a.hk(b.Xb+e,b.Yb+f,b.nc+e,b.oc+f,b.fc+e,b.gc+f,b.cc+e,b.ec+f)}else c.Bi?a.se(b.Xb,b.Yb,b.nc,b.oc,b.fc,b.gc,b.cc,b.ec,c.wq):a.hk(b.Xb,b.Yb,b.nc,b.oc,b.fc,b.gc,b.cc,b.ec)};a.JA=function(a){var c=this.bb,b,e;b=0;for(e=c.mp.length;b<e;b++)if(pb(a,c.mp[b][0]))return b;return-1};a.Zo=function(a,c){var b=this.bb,e=b.mp,f;ja(a)?f=this.JA(a):f=a-1;f=qa(f);if(0>f||f>=e.length)return c?this.x:this.y;var h=(e[f][1]-b.tc)*this.width,e=e[f][2],e=(e-b.uc)*this.height,b=Math.cos(this.n);f=Math.sin(this.n);
var k=h*b-e*f,e=e*b+h*f,h=k+this.x,e=e+this.y;return c?h:e};var q=new da,t=!1;new va(0,0,0,0);p.finish=function(a){if(t){if(a){var c=this.c.Ab().xb.xd;a=null.U();var b=q.dg(),e,f;if(a.na){a.na=!1;C(a.g);e=0;for(f=b.length;e<f;++e)a.g[e]=b[e];if(c)for(C(a.ka),e=0,f=null.g.length;e<f;++e)b=null.g[e],q.contains(b)||a.ka.push(b)}else if(c)for(c=a.g.length,e=0,f=b.length;e<f;++e)a.g[c+e]=b[e],Ea(a.ka,b[e]);else Aa(a.g,b);null.Id()}q.clear();t=!1}};k.prototype.lw=function(a,c){return hc(this.L,a,c)};k.prototype.Xw=
function(a){return pb(this.ss,a)};k.prototype.mr=function(){return!0};k.prototype.jg=function(){return!0};e.j=new k;b.prototype.Xx=function(a){this.il=a;this.wp||(this.c.Eq(this),this.wp=!0);this.np||this.Ss()};e.B=new b;h.prototype.dw=function(a){a.T(this.L)};h.prototype.ew=function(a){a.T(this.Pa.frames.length)};e.J=new h})();function Fc(f){this.c=f}
(function(){function f(a,c){return a.length?a.pop():new c}function k(a,b,d){if(d){var e;d=0;for(e=b.length;d<e;d++)a.length<c&&a.push(b[d]);C(b)}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<c&&a.push(b[e]),delete b[e])}function b(c,b,d){var e=c.xc;d=d.replace(/\s\s*$/,"");b>=e.length&&e.push(f(a,Object));b=e[b];b.text=d;b.width=c.Mp(d);c.Fi=na(c.Fi,b.width)}function h(){}var e=Fc.prototype;e.K=function(){};e.V=function(a){this.u=a;this.c=a.c};var p=e.V.prototype;p.K=function(){this.N||
(this.P=new Image,this.c.Rq(this.P,this.ln),this.aa=null)};p.ym=function(){this.N||(this.aa=null)};p.Am=function(){if(!this.N&&this.g.length){this.aa||(this.aa=this.c.C.ei(this.P,!1,this.c.Sa,this.zk));var a,c;a=0;for(c=this.g.length;a<c;a++)this.g[a].aa=this.aa}};p.tn=function(){this.N||this.g.length||!this.aa||(this.c.C.deleteTexture(this.aa),this.aa=null)};p.Om=function(a){a.drawImage(this.P,0,0)};e.I=function(a){this.type=a;this.c=a.c};p=e.I.prototype;p.We=function(){k(a,this.xc,!0);k(q,this.kl,
!1);k(t,this.ll,!1);Xa(this.Cf)};p.K=function(){this.P=this.type.P;this.jl=this.q[0];this.Af=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.Bf=this.q[4];this.visible=0===this.q[5];this.Ul=this.q[6]/2;this.yn=this.q[7]/2;this.lD=0===this.q[9];this.yh=this.q[10];this.lineHeight=this.q[11];this.gh=this.Fi=0;this.Mb?(C(this.xc),Xa(this.kl),Xa(this.ll),Xa(this.Cf)):(this.xc=[],this.kl={},this.ll={},this.Cf={});this.yk=!0;this.Dp=this.width;this.c.C&&(this.type.aa||(this.type.aa=this.c.C.ei(this.type.P,
!1,this.c.Sa,this.type.zk)),this.aa=this.type.aa);this.ky()};p.wa=function(){var a={t:this.text,csc:this.Bf,csp:this.yh,lh:this.lineHeight,tw:this.Fi,th:this.gh,lrt:this.HB,ha:this.Ul,va:this.yn,cw:{}},c;for(c in this.Cf)a.cw[c]=this.Cf[c];return a};p.Fa=function(a){this.text=a.t;this.Bf=a.csc;this.yh=a.csp;this.lineHeight=a.lh;this.Fi=a.tw;this.gh=a.th;this.HB=a.lrt;a.hasOwnProperty("ha")&&(this.Ul=a.ha);a.hasOwnProperty("va")&&(this.yn=a.va);for(var c in a.cw)this.Cf[c]=a.cw[c];this.yk=!0;this.Dp=
this.width};var c=1E3,a=[],q=[],t=[];p.ky=function(){for(var a=this.P,c=a.width,b=a.height,a=this.jl,d=this.Af,e=a/c,g=d/b,h=this.characterSet,c=Math.floor(c/a),b=Math.floor(b/d),k=0;k<h.length&&!(k>=c*b);k++){var p=k%c,B=Math.floor(k/c),G=h.charAt(k);if(this.c.C){var x=this.ll,A=p*e,E=B*g,p=(p+1)*e,B=(B+1)*g;void 0===x[G]&&(x[G]=f(t,va));x[G].left=A;x[G].top=E;x[G].right=p;x[G].bottom=B}else x=this.kl,p=p*a,B=B*d,A=a,E=d,void 0===x[G]&&(x[G]=f(q,Object)),x[G].x=p,x[G].y=B,x[G].Wv=A,x[G].Oe=E}};var g=
[];e.uy=function(a){C(g);for(var c="",b,d=0;d<a.length;)if(b=a.charAt(d),"\n"===b)c.length&&(g.push(c),c=""),g.push("\n"),++d;else if(" "===b||"\t"===b||"-"===b){do c+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));g.push(c);c=""}else d<a.length&&(c+=b,d++);c.length&&g.push(c)};e.Ay=function(c){var b=c.text,d=c.xc;if(b&&b.length){var e=c.width;if(2>=e)k(a,d,!0);else{var g=c.Bf,h=c.yh;if(b.length*(c.jl*g+h)-h<=e&&-1===b.indexOf("\n")&&(h=c.Mp(b),h<=e)){k(a,d,!0);d.push(f(a,
Object));d[0].text=b;d[0].width=h;c.Fi=h;c.gh=c.Af*g+c.lineHeight;return}this.Dy(c);c.gh=d.length*(c.Af*g+c.lineHeight)}}else k(a,d,!0)};e.Dy=function(d){var e=d.lD,f=d.text,h=d.xc,k=d.width;e&&(this.uy(f),f=g);var p="",q,t,D,B=0,G=!1;for(D=0;D<f.length;D++)"\n"===f[D]?(!0===G?G=!1:(b(d,B,p),B++),p=""):(G=!1,q=p,p+=f[D],t=d.Mp(p.replace(/\s\s*$/,"")),t>k&&(""===q?(b(d,B,p),p="",G=!0):(b(d,B,q),p=f[D]),B++,e||" "!==p||(p="")));p.replace(/\s\s*$/,"").length&&(b(d,B,p),B++);for(D=B;D<h.length;D++)a.length<
c&&a.push(h[D]);h.length=B};p.Mp=function(a){for(var c=this.yh,b=a.length,d=0,e=0;e<b;e++)d+=this.Wo(a.charAt(e))*this.Bf+c;return d-(0<d?c:0)};p.Wo=function(a){var c=this.Cf;return void 0!==c[a]?c[a]:this.jl};p.Zu=function(){if(this.yk||this.width!==this.Dp)this.gh=this.Fi=0,this.type.u.Ay(this),this.yk=!1,this.Dp=this.width};p.Ke=function(a){var c=this.P;if(""!==this.text&&null!=c&&(this.Zu(),!(this.height<this.Af*this.Bf+this.lineHeight))){a.globalAlpha=this.opacity;var c=this.x,b=this.y;this.c.Od&&
(c=Math.round(c),b=Math.round(b));var d=this.A.Ka,e=this.A.La,f=this.A.Oa,g=this.A.Na;a.save();a.translate(c,b);a.rotate(this.n);for(var h=this.n,k=this.Ul,p=this.Bf,q=this.Af*p,t=this.lineHeight,A=this.yh,E=this.xc,I,S=-(this.tc*this.width),z=-(this.uc*this.height),z=z+this.yn*na(0,this.height-this.gh),v,U,M,T=0;T<E.length;T++){var u=E[T].text;I=k*na(0,this.width-E[T].width);v=S+I;z+=t;if(0===h&&b+z+q<e)z+=q;else{for(var H=0;H<u.length;H++){U=u.charAt(H);I=this.Wo(U);var y=this.kl[U];if(0===h&&c+
v+I*p+A<d)v+=I*p+A;else{if(v+I*p>this.width+1E-5)break;void 0!==y&&(U=v,M=z,0===h&&(U=Math.round(U),M=Math.round(M)),a.drawImage(this.P,y.x,y.y,y.Wv,y.Oe,U,M,y.Wv*p,y.Oe*p));v+=I*p+A;if(0===h&&c+v>f)break}}z+=q;if(0===h&&(z+q+t>this.height||b+z>g))break}}a.restore()}};var d=new wa;p.Qc=function(a){a.Xc(this.aa);a.dh(this.opacity);if(this.text&&(this.Zu(),!(this.height<this.Af*this.Bf+this.lineHeight))){this.Nb();var c=this.xh,b=0,e=0;this.c.Od&&(b=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y);
var f=this.A.Ka,g=this.A.La,h=this.A.Oa,k=this.A.Na,p=this.n,q=this.Ul,t=this.yn,x=this.Bf,A=this.Af*x,E=this.lineHeight,I=this.yh,S=this.xc,z=this.gh,v,U,M;0!==p&&(U=Math.cos(p),M=Math.sin(p));for(var b=c.Xb+b,c=c.Yb+e,T,t=t*na(0,this.height-z),u,H,z=0;z<S.length;z++)if(e=S[z].text,T=v=q*na(0,this.width-S[z].width),t+=E,0===p&&c+t+A<g)t+=A;else{for(var y=0;y<e.length;y++){var P=e.charAt(y);v=this.Wo(P);P=this.ll[P];if(0===p&&b+T+v*x+I<f)T+=v*x+I;else{if(T+v*x>this.width+1E-5)break;if(void 0!==P){var Q=
this.jl*x,J=this.Af*x;u=T;H=t;0===p&&(u=Math.round(u),H=Math.round(H));d.Xb=u;d.Yb=H;d.nc=u+Q;d.oc=H;d.cc=u;d.ec=H+J;d.fc=u+Q;d.gc=H+J;0!==p&&(u=d,H=U,Q=M,J=void 0,J=u.Xb*H-u.Yb*Q,u.Yb=u.Yb*H+u.Xb*Q,u.Xb=J,J=u.nc*H-u.oc*Q,u.oc=u.oc*H+u.nc*Q,u.nc=J,J=u.cc*H-u.ec*Q,u.ec=u.ec*H+u.cc*Q,u.cc=J,J=u.fc*H-u.gc*Q,u.gc=u.gc*H+u.fc*Q,u.fc=J);d.offset(b,c);a.se(d.Xb,d.Yb,d.nc,d.oc,d.fc,d.gc,d.cc,d.ec,P)}T+=v*x+I;if(0===p&&b+T>h)break}}t+=A;if(0===p&&(t+A+E>this.height||c+t>k))break}}};e.j=new function(){};h.prototype.gy=
function(a){ia(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.yk=!0,this.c.Ba=!0)};p.cb=function(a,c){var b=parseInt(c,10);this.Cf[a]!==b&&(this.Cf[a]=b,this.yk=!0,this.c.Ba=!0)};e.B=new h;e.J=new function(){}})();function Gc(f){this.c=f}
(function(){var f=Gc.prototype;f.V=function(b){this.u=b;this.c=b.c};var k=f.V.prototype;k.K=function(){this.N||(this.P=new Image,this.P.Ns=this.Cq,this.c.Rq(this.P,this.ln),this.aa=this.pattern=null)};k.ym=function(){this.N||(this.aa=null)};k.Am=function(){if(!this.N&&this.g.length){this.aa||(this.aa=this.c.C.ei(this.P,!0,this.c.Sa,this.zk));var b,f;b=0;for(f=this.g.length;b<f;b++)this.g[b].aa=this.aa}};k.Fp=function(){this.N||this.aa||!this.c.C||(this.aa=this.c.C.ei(this.P,!0,this.c.Sa,this.zk))};
k.tn=function(){this.N||this.g.length||!this.aa||(this.c.C.deleteTexture(this.aa),this.aa=null)};k.Om=function(b){b.drawImage(this.P,0,0)};f.I=function(b){this.type=b;this.c=b.c};k=f.I.prototype;k.K=function(){this.visible=0===this.q[0];this.kk=new va(0,0,0,0);this.At=!1;this.P=this.type.P;this.c.C?(this.type.Fp(),this.aa=this.type.aa):(this.type.pattern||(this.type.pattern=this.c.Va.createPattern(this.type.P,"repeat")),this.pattern=this.type.pattern)};k.qc=function(){this.At=!1;this.P=this.type.P};
k.We=function(){this.c.C&&this.At&&this.aa&&(this.c.C.deleteTexture(this.aa),this.aa=null)};k.Ke=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var f=this.x,e=this.y;this.c.Od&&(f=Math.round(f),e=Math.round(e));var k=-(this.tc*this.width),c=-(this.uc*this.height),a=k%this.P.width,q=c%this.P.height;0>a&&(a+=this.P.width);0>q&&(q+=this.P.height);b.translate(f,e);b.rotate(this.n);b.translate(a,q);b.fillRect(k-a,c-q,this.width,this.height);b.restore()};k.wg=function(b){this.Qc(b)};
k.Qc=function(b){b.Xc(this.aa);b.dh(this.opacity);var f=this.kk;f.right=this.width/this.P.width;f.bottom=this.height/this.P.height;var e=this.xh;if(this.c.Od){var k=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.se(e.Xb+k,e.Yb+c,e.nc+k,e.oc+c,e.fc+k,e.gc+c,e.cc+k,e.ec+c,f)}else b.se(e.Xb,e.Yb,e.nc,e.oc,e.fc,e.gc,e.cc,e.ec,f)};f.j=new function(){};f.B=new function(){};f.J=new function(){}})();function Hc(f){this.c=f}
(function(){function f(a){q=a.x;t=a.y;g=a.z}function k(a,c,e,f){var g;g=d.length?d.pop():new b;g.init(a,c,e,f);return g}function b(){this.uk=this.id=this.y=this.x=this.gn=this.dn=this.Cp=this.time=this.Bq=0;this.Ck=this.qn=!1}function h(){}function e(){}var p=Hc.prototype;p.V=function(a){this.u=a;this.c=a.c};p.V.prototype.K=function(){};p.I=function(a){this.type=a;this.c=a.c;this.touches=[];this.Op=!1};var c=p.I.prototype,a={left:0,top:0};c.oj=function(a){var c,b;c=0;for(b=this.touches.length;c<b;c++)if(this.touches[c].id===
a)return c;return-1};var q=0,t=0,g=0,d=[];b.prototype.init=function(a,c,b,d){var e=Ya();this.Bq=this.Cp=this.time=e;this.dn=a;this.gn=c;this.x=a;this.y=c;this.pressure=this.height=this.width=0;this.id=b;this.uk=d;this.Ck=this.qn=!1};b.prototype.update=function(a,c,b,d,e,f){this.Cp=this.time;this.time=a;this.x=c;this.y=b;this.width=d;this.height=e;this.pressure=f;!this.Ck&&15<=Ta(this.dn,this.gn,this.x,this.y)&&(this.Ck=!0)};b.prototype.OB=function(a,c){!this.qn&&500<=Ya()-this.Bq&&!this.Ck&&15>Ta(this.dn,
this.gn,this.x,this.y)&&(this.qn=!0,a.xe=this.uk,a.Hi=this.id,a.Nh=c,a.c.trigger(Hc.prototype.j.vx,a),a.He=this.x,a.Ie=this.y,a.c.trigger(Hc.prototype.j.wx,a),a.Nh=0)};var l=-1E3,m=-1E3,w=-1E4;b.prototype.qu=function(a,c){if(!this.qn){var b=Ya();333>=b-this.Bq&&!this.Ck&&15>Ta(this.dn,this.gn,this.x,this.y)&&(a.xe=this.uk,a.Hi=this.id,a.Nh=c,666>=b-w&&25>Ta(l,m,this.x,this.y)?(a.c.trigger(Hc.prototype.j.jx,a),a.He=this.x,a.Ie=this.y,a.c.trigger(Hc.prototype.j.kx,a),m=l=-1E3,w=-1E4):(a.c.trigger(Hc.prototype.j.Ix,
a),a.He=this.x,a.Ie=this.y,a.c.trigger(Hc.prototype.j.Jx,a),l=this.x,m=this.y,w=b),a.Nh=0)}};c.K=function(){this.yB=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Nh=this.Hi=this.xe=this.Ie=this.He=this.ls=this.ks=this.js=this.Sy=this.Ry=this.Qy=this.Fm=this.Em=this.Dm=0;this.hD=0!==this.q[0];var a=0<this.c.Ec?document:this.c.canvas,c=document;this.c.vc?c=a=window.Canvas:this.c.td&&(c=a=window);var b=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){b.Du(a)},
!1),a.addEventListener("pointermove",function(a){b.Cu(a)},!1),c.addEventListener("pointerup",function(a){b.zm(a,!1)},!1),c.addEventListener("pointercancel",function(a){b.zm(a,!0)},!1),this.c.canvas&&(this.c.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.c.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){b.Du(a)},!1),a.addEventListener("MSPointerMove",function(a){b.Cu(a)},!1),c.addEventListener("MSPointerUp",function(a){b.zm(a,!1)},!1),c.addEventListener("MSPointerCancel",function(a){b.zm(a,!0)},!1),this.c.canvas&&(this.c.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){b.Gu(a)},
!1),a.addEventListener("touchmove",function(a){b.Fu(a)},!1),c.addEventListener("touchend",function(a){b.Xp(a,!1)},!1),c.addEventListener("touchcancel",function(a){b.Xp(a,!0)},!1));if(this.yB){var d=function(a){a=a.reading;b.js=a.accelerationX;b.ks=a.accelerationY;b.ls=a.accelerationZ},e=function(a){a=a.reading;b.Dm=a.yawDegrees;b.Em=a.pitchDegrees;b.Fm=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){b.Dm=a.alpha||
0;b.Em=a.beta||0;b.Fm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(b.Qy=a.accelerationIncludingGravity.x||0,b.Ry=a.accelerationIncludingGravity.y||0,b.Sy=a.accelerationIncludingGravity.z||0);a.acceleration&&(b.js=a.acceleration.x||0,b.ks=a.acceleration.y||0,b.ls=a.acceleration.z||0)},!1);this.hD&&!this.c.Cb&&(jQuery(document).mousemove(function(a){b.$B(a)}),jQuery(document).mousedown(function(a){b.ZB(a)}),jQuery(document).mouseup(function(a){b.aC(a)}));
!this.c.Zh&&this.c.Rc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.c.ZC(this)};c.Cu=function(c){if(c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType){c.preventDefault&&c.preventDefault();var b=this.oj(c.pointerId),d=Ya();if(0<=b){var e=this.c.Cb?a:jQuery(this.c.canvas).offset(),b=this.touches[b];2>d-b.time||b.update(d,c.pageX-e.left,c.pageY-e.top,c.width||0,c.height||0,c.pressure||0)}}};c.Du=
function(c){if(c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType){c.preventDefault&&qb(c)&&c.preventDefault();var b=this.c.Cb?a:jQuery(this.c.canvas).offset(),d=c.pageX-b.left,b=c.pageY-b.top;Ya();this.xe=this.touches.length;this.Hi=c.pointerId;this.touches.push(k(d,b,c.pointerId,this.xe));this.c.ke=!0;this.c.trigger(Hc.prototype.j.Ar,this);this.c.trigger(Hc.prototype.j.Dr,this);this.He=d;this.Ie=b;this.c.trigger(Hc.prototype.j.Nn,this);this.c.ke=!1}};c.zm=function(a,c){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&qb(a)&&a.preventDefault();var b=this.oj(a.pointerId);this.xe=0<=b?this.touches[b].uk:-1;this.Hi=0<=b?this.touches[b].id:-1;this.c.ke=!0;this.c.trigger(Hc.prototype.j.yr,this);this.c.trigger(Hc.prototype.j.Cr,this);0<=b&&(c||this.touches[b].qu(this,b),100>d.length&&d.push(this.touches[b]),this.touches.splice(b,1));this.c.ke=!1}};c.Fu=function(c){c.preventDefault&&c.preventDefault();var b=Ya(),d,e,f,g;d=0;for(e=c.changedTouches.length;d<
e;d++)if(f=c.changedTouches[d],g=this.oj(f.identifier),0<=g){var h=this.c.Cb?a:jQuery(this.c.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.RE||f.ZE||f.JE||f.ME||0),2*(f.SE||f.$E||f.KE||f.NE||0),f.EE||f.YE||f.IE||f.LE||0)}};c.Gu=function(c){c.preventDefault&&qb(c)&&c.preventDefault();var b=this.c.Cb?a:jQuery(this.c.canvas).offset();Ya();this.c.ke=!0;var d,e,f,g;d=0;for(e=c.changedTouches.length;d<e;d++)if(f=c.changedTouches[d],g=this.oj(f.identifier),-1===
g){g=f.pageX-b.left;var h=f.pageY-b.top;this.xe=this.touches.length;this.Hi=f.identifier;this.touches.push(k(g,h,f.identifier,this.xe));this.c.trigger(Hc.prototype.j.Ar,this);this.c.trigger(Hc.prototype.j.Dr,this);this.He=g;this.Ie=h;this.c.trigger(Hc.prototype.j.Nn,this)}this.c.ke=!1};c.Xp=function(a,c){a.preventDefault&&qb(a)&&a.preventDefault();this.c.ke=!0;var b,e,f;b=0;for(e=a.changedTouches.length;b<e;b++)f=a.changedTouches[b],f=this.oj(f.identifier),0<=f&&(this.xe=this.touches[f].uk,this.Hi=
this.touches[f].id,this.c.trigger(Hc.prototype.j.yr,this),this.c.trigger(Hc.prototype.j.Cr,this),c||this.touches[f].qu(this,f),100>d.length&&d.push(this.touches[f]),this.touches.splice(f,1));this.c.ke=!1};c.cb=function(){return this.c.Rc&&0===this.Dm&&0!==g?90*g:this.Dm};c.ed=function(){return this.c.Rc&&0===this.Em&&0!==t?90*t:this.Em};c.Re=function(){return this.c.Rc&&0===this.Fm&&0!==q?90*q:this.Fm};c.ZB=function(a){this.Gu({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Op=
!0};c.$B=function(a){this.Op&&this.Fu({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.aC=function(a){a.preventDefault&&this.c.xt&&!this.c.Rh&&a.preventDefault();this.c.xt=!0;this.Xp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Op=!1};c.nn=function(){var a,c,b,d=Ya();a=0;for(c=this.touches.length;a<c;++a)b=this.touches[a],b.time<=d-50&&(b.Cp=d),b.OB(this,a)};h.prototype.Dr=function(){return!0};h.prototype.Cr=function(){return!0};h.prototype.Nn=function(a){return a?
this.c.jn(a,this.He,this.Ie):!1};h.prototype.Ar=function(a){a=Math.floor(a);return a===this.xe};h.prototype.yr=function(a){a=Math.floor(a);return a===this.xe};h.prototype.vx=function(){return!0};h.prototype.Ix=function(){return!0};h.prototype.jx=function(){return!0};h.prototype.wx=function(a){return a?this.c.jn(a,this.He,this.Ie):!1};h.prototype.Jx=function(a){return a?this.c.jn(a,this.He,this.Ie):!1};h.prototype.kx=function(a){return a?this.c.jn(a,this.He,this.Ie):!1};p.j=new h;e.prototype.Qr=function(a,
c){var b=this.Nh;if(0>b||b>=this.touches.length)a.F(0);else{var d,e,f,g,h;ha(c)?(d=this.c.qj(0),e=d.scale,f=d.lf,g=d.Xe,h=d.n,d.scale=1,d.lf=1,d.Xe=1,d.n=0,a.F(d.rc(this.touches[b].x,this.touches[b].y,!0)),d.scale=e,d.lf=f,d.Xe=g,d.n=h):(d=ia(c)?this.c.qj(c):this.c.bp(c))?a.F(d.rc(this.touches[b].x,this.touches[b].y,!0)):a.F(0)}};e.prototype.Sr=function(a,c){var b=this.Nh;if(0>b||b>=this.touches.length)a.F(0);else{var d,e,f,g,h;ha(c)?(d=this.c.qj(0),e=d.scale,f=d.lf,g=d.Ye,h=d.n,d.scale=1,d.lf=1,
d.Ye=1,d.n=0,a.F(d.rc(this.touches[b].x,this.touches[b].y,!1)),d.scale=e,d.lf=f,d.Ye=g,d.n=h):(d=ia(c)?this.c.qj(c):this.c.bp(c))?a.F(d.rc(this.touches[b].x,this.touches[b].y,!1)):a.F(0)}};p.J=new e})();function Ic(f){this.c=f}
(function(){function f(){}var k=Ic.prototype;k.V=function(b){this.behavior=b;this.c=b.c};k.V.prototype.K=function(){};k.I=function(b,e){this.type=b;this.behavior=b.behavior;this.e=e;this.c=b.c};var b=k.I.prototype;b.K=function(){this.ms=1===this.q[0];this.mj=this.q[1];this.Hk=this.q[2];this.Fl=this.q[3];this.sz=this.q[4];this.jd=this.ms?0:3;this.Mb?this.Ad.reset():this.Ad=new bb;this.Xg=this.e.opacity?this.e.opacity:1;this.ms&&(0===this.mj?(this.jd=1,0===this.Hk&&(this.jd=2)):(this.e.opacity=0,this.c.Ba=
!0))};b.wa=function(){return{fit:this.mj,wt:this.Hk,fot:this.Fl,s:this.jd,st:this.Ad.Z,mo:this.Xg}};b.Fa=function(b){this.mj=b.fit;this.Hk=b.wt;this.Fl=b.fot;this.jd=b.s;this.Ad.reset();this.Ad.Z=b.st;this.Xg=b.mo};b.ib=function(){this.Ad.add(this.c.Mh(this.e));0===this.jd&&(this.e.opacity=this.Ad.Z/this.mj*this.Xg,this.c.Ba=!0,this.e.opacity>=this.Xg&&(this.e.opacity=this.Xg,this.jd=1,this.Ad.reset(),this.c.trigger(Ic.prototype.j.nx,this.e)));1===this.jd&&this.Ad.Z>=this.Hk&&(this.jd=2,this.Ad.reset(),
this.c.trigger(Ic.prototype.j.Lx,this.e));2===this.jd&&0!==this.Fl&&(this.e.opacity=this.Xg-this.Ad.Z/this.Fl*this.Xg,this.c.Ba=!0,0>this.e.opacity&&(this.e.opacity=0,this.jd=3,this.Ad.reset(),this.c.trigger(Ic.prototype.j.qx,this.e),1===this.sz&&this.c.pf(this.e)))};b.cb=function(){this.jd=0;this.Ad.reset();0===this.mj?(this.jd=1,0===this.Hk&&(this.jd=2)):(this.e.opacity=0,this.c.Ba=!0)};f.prototype.qx=function(){return!0};f.prototype.nx=function(){return!0};f.prototype.Lx=function(){return!0};k.j=
new f;k.B=new function(){};k.J=new function(){}})();function Jc(f){this.c=f}
(function(){var f=Jc.prototype;f.V=function(b){this.behavior=b;this.c=b.c};f.V.prototype.K=function(){};f.I=function(b,f){this.type=b;this.behavior=b.behavior;this.e=f;this.c=b.c};var k=f.I.prototype;k.K=function(){this.Lb=null;this.Im=-1;this.mode=this.Jj=this.Dq=this.Xj=this.Yf=this.Hm=0;var b=this;this.Mb||(this.Vf=function(f){b.Zg(f)});this.c.dl(this.Vf)};k.wa=function(){return{uid:this.Lb?this.Lb.uid:-1,pa:this.Hm,pd:this.Yf,msa:this.Xj,tsa:this.Dq,lka:this.Jj,m:this.mode}};k.Fa=function(b){this.Im=
b.uid;this.Hm=b.pa;this.Yf=b.pd;this.Xj=b.msa;this.Dq=b.tsa;this.Jj=b.lka;this.mode=b.m};k.qc=function(){-1===this.Im?this.Lb=null:this.Lb=this.c.jc(this.Im);this.Im=-1};k.Zg=function(b){this.Lb==b&&(this.Lb=null)};k.We=function(){this.Lb=null;this.c.kq(this.Vf)};k.ib=function(){};k.nn=function(){if(this.Lb){this.Jj!==this.e.n&&(this.Xj=Ka(this.Xj+(this.e.n-this.Jj)));var b=this.e.x,f=this.e.y;if(3===this.mode||4===this.mode){var e=Ta(this.e.x,this.e.y,this.Lb.x,this.Lb.y);if(e>this.Yf||4===this.mode&&
e<this.Yf)f=Na(this.Lb.x,this.Lb.y,this.e.x,this.e.y),b=this.Lb.x+Math.cos(f)*this.Yf,f=this.Lb.y+Math.sin(f)*this.Yf}else b=this.Lb.x+Math.cos(this.Lb.n+this.Hm)*this.Yf,f=this.Lb.y+Math.sin(this.Lb.n+this.Hm)*this.Yf;this.Jj=e=Ka(this.Xj+(this.Lb.n-this.Dq));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.e.x===b&&this.e.y===f||(this.e.x=b,this.e.y=f,this.e.Ta());0!==this.mode&&2!==this.mode||this.e.n===e||(this.e.n=e,this.e.Ta())}};f.j=new function(){};f.B=new function(){};f.J=
new function(){}})();function Kc(f){this.c=f}
(function(){function f(){}function k(){}var b=Kc.prototype;b.V=function(b){this.behavior=b;this.c=b.c};var h=b.V.prototype;h.K=function(){this.Ub=this.group=null};h.Lk=function(){if(null!=this.group)return this.group;var b=this.c.types,f,c;for(f in b)if(c=b[f].g[0],Dc&&c instanceof Dc.prototype.I)return this.group=c;return null};b.I=function(b,f){this.type=b;this.behavior=b.behavior;this.e=f;this.c=b.c};h=b.I.prototype;h.K=function(){this.M=null;this.Mb||(this.Fd=new Kc.ed(this));this.Fd.Wd(this);
this.Qf=this.fm=!1;this.Io=this.Ho=this.Go=this.Mo=this.Lo=this.Ko=this.Jo=this.lj=-1;this.Jh=this.Ih=0;this.zp=null;this.Mb||(this.mg={rx:0,ry:0,o:{x:0,y:0,z:0}});this.mg.rx=this.q[4];this.mg.ry=this.q[5];this.et=1===this.q[6];this.Tz=1===this.q[7];if(this.Mb){this.Ur.length=0;for(var b in this.rh)delete this.rh[b];for(b in this.Un)delete this.Un[b]}else this.Ur=[],this.rh={},this.Un={};this.uf=this.es=null};h.ib=function(){this.Fd.ib()};h.Ua=function(){var b;if(null!=this.M){b=this.M.O(this.e.uid);
if(null!=b)return this.M;this.M=null}var f=this.c.types,c,a;for(c in f)if(a=f[c].g[0],Ac&&a instanceof Ac.prototype.I&&(b=a.O(this.e.uid),null!=b)){this.M=a;f=this.Ur;a=a.Ob().Kk();c=void 0;for(c=f.length=0;c<a;c++)f.push(c);this.mg.o.x=b.x;this.mg.o.y=b.y;this.mg.o.z=b.z;return this.M}return null};h.Ah=function(b){null==b&&(b=this.e.uid);var f=this.Ua();return null!=f?f.O(b):null};h.cb=function(b){var f=this.Ua();return null!=f?f.Ii(b):null};h.XC=function(b,f){var c=this.Ah();return this.Ua().Yv(c.x,
c.y,b,f)};h.uv=function(b,f,c,a){var h=this.Ah();this.Ko=h.x;this.Lo=h.y;this.Mo=h.z;this.Go=b;this.Ho=f;this.Io=c;this.Jo=null!=a?a:-1};h.Gy=function(){this.zp=null;this.c.trigger(Kc.prototype.j.ux,this.e);var b;null==this.zp?b=null:b=this.zp?-1:1;return b};h.YC=function(b,f,c,a){this.uv(b,f,c,a);this.lj=-1;a=this.Ah();if(b===a.x&&f===a.y&&c===a.z)return 1;if(!this.M.ze(b,f))return null;this.es=a=this.M.Za(b,f,c);if(this.et)return 1;if(null==a){a=this.Gy();if(null!=a)return a;b=this.M.Ed(b,f);if(!b)return null;
var h;if(0!=c){if(null==b[0])return null;for(h in b)if(a=b[h],(c=this.M.Ii(a))&&c.ma&&c.ma.solidEnabled)return this.lj=a,-1;return 1}return null==b[0]?1:null}this.lj=a;return-1};h.RB=function(b,f,c,a){var h=this.YC(b,f,c,a);if(1==h){var k;if(this.et)if(null!=this.uf&&null==this.M.Za(b,f,this.uf))k=this.uf,this.uf=null;else if(null==this.es)k=c;else for(null==this.uf?(this.uf=c,k="#"+this.e.uid.toString()):k+="#";null!=this.M.Za(b,f,k);)k+="#";else k=c;this.SB(b,f,c,a);this.M.Pi(this.e,b,f,k);this.Hu(!0)}else-1==
h?this.Hu(!1):this.fm=!1};h.SB=function(b,f,c,a){var h=this.Ua(),k=h.Ob();this.Ih=k.gg(b,f,c);this.Jh=k.hg(b,f,c);if(this.Tz)if(c=Kc.Re,h.Pf&&null!=a){var g=this.Ah(),d=k.kh(g.x,g.y,a);a=k.mh(g.x,g.y,a);if(d==b&&a==f)h=new c(this.e.x,this.e.y,this.Ih,this.Jh),this.Fd.Pp(h);else{f=k.gg(d,a,0);g=k.hg(d,a,0);b=new c(this.e.x,this.e.y,f,g);if(0>d||d>h.Ya)d=h.Ya-d;if(0>a||a>h.$a)a=h.$a-a;f=k.gg(d,a,0);g=k.hg(d,a,0);h=new c(f,g,this.Ih,this.Jh);this.Fd.Pp(b,h)}}else h=new c(this.e.x,this.e.y,this.Ih,this.Jh),
this.Fd.Pp(h)};h.Hu=function(b){this.fm=b;this.Qf=!0;this.c.trigger(b?Kc.prototype.j.Cx:Kc.prototype.j.Dx,this.e);this.Qf=!1};h.iz=function(b,f,c,a){this.uv(b,f,c,a);this.rh.x=b;this.rh.y=f;this.rh.z=c;this.c.trigger(Kc.prototype.j.cx,this.e)};h.Py=function(b){var f,c=this.Un;for(f in c)delete c[f];for(f in b)c[b[f]]=!0;return c};h.Fy=function(b,f,c){var a,h;null!=c?(a=this.type.Lk().ra(c),a.nf()):(h=f.U(),h.na=!1,h.g.length=0);b=this.M.Ed(b.x,b.y);if(!b)return!1;var k=this.Py(b);b=!1;for(var g in k)g=
parseInt(g),g!==this.e.uid&&(k=this.gs(g,f),null!==k&&(null!=c?a.ih(g):h.g.push(k),b=!0));return b};h.gs=function(b,f){var c=this.c.jc(b);if(null==c)return null;if(null==f||c.type==f)return c;if(f.N){var a=c.type.Ra,h=a.length,k;for(k=0;k<h;k++)if(f==a[k])return c}return null};h.wa=function(){var b=null!=this.type.Ub?this.type.Ub.uid:-1;return{mrq:this.fm,mt:this.Fd.wa(),wander:this.mg,z:this.uf,e_buid:this.lj,e_dir:this.Jo,e_slx:this.Ko,e_sly:this.Lo,e_slz:this.Mo,e_dlx:this.Go,e_dly:this.Ho,e_dlz:this.Io,
e_tpx:this.Ih,e_tpy:this.Jh,ruid:b}};h.Fa=function(b){this.fm=b.mrq;this.Fd.Fa(b.mt);this.mg=b.wander;this.uf=b.z;this.lj=b.e_buid;this.Jo=b.e_dir;this.Ko=b.e_slx;this.Lo=b.e_sly;this.Mo=b.e_slz;this.Go=b.e_dlx;this.Ho=b.e_dly;this.Io=b.e_dlz;this.Ih=b.e_tpx;this.Jh=b.e_tpy;this.Vb=b.ruid};h.qc=function(){-1===this.Vb?this.type.Ub=null:this.type.Ub=this.c.jc(this.Vb);this.Vb=-1;this.M=null};b.j=new f;f.prototype.sr=function(){return this.Fd.Qf};f.prototype.Iw=function(){return this.Fd.Pg};f.prototype.Cx=
function(){return this.Qf};f.prototype.Dx=function(){return this.Qf};f.prototype.cx=function(b,f){return this.Fy(this.rh,b,f)};f.prototype.ux=function(){return!0};b.B=new k;k.prototype.Tw=function(b){if(this.Fd.Be&&(null==b?b=null:"object"===typeof b&&(b=b.he(),b=null!=b?b.uid:null),null!=b)){var f=this.Ah(b);if(null!=f){var c=this.Ah();if(null!=c){b=f.x;var f=f.y,c=c.z,a=this.XC(b,f);this.iz(b,f,c,a);this.RB(b,f,c,a)}}}};k.prototype.Mr=function(){this.Fd.Pg=!1};b.J=new function(){}})();
(function(){function f(){this.gd={max:0,acc:0,dec:0};this.Rd=[]}function k(b,e,f,c){0<arguments.length?this.Wd(b,e,f,c):this.Wd(0,0,0,0)}var b=k.prototype;b.Wd=function(b,e,f,c){this.Bn=b;this.Dn=e;this.Cn=f;this.En=c;this.n=Na(b,e,f,c);this.Hc=Ta(this.Bn,this.Dn,this.Cn,this.En)};b.er=function(b){return this.Hc-=b};b.wa=function(){return{x0:this.Bn,y0:this.Dn,x1:this.Cn,y1:this.En,a:this.n,rd:this.Hc}};b.Fa=function(b){this.Bn=b.x0;this.Dn=b.y0;this.Cn=b.x1;this.En=b.y1;this.n=b.a;this.Hc=b.rd};
Kc.Re=k;b=f.prototype;b.Wd=function(b){this.Be=b.q[0];this.gd.max=b.q[1];this.gd.acc=b.q[2];this.gd.dec=b.q[3];this.BB=1==b.q[8];this.Rd.length=0;this.Pg=!1;this.jq=this.Hc=this.de=0;this.Qf=!1;this.e=b.e;this.c=b.c};b.ib=function(){this.jq=0;this.Be&&this.Pg&&this.move(this.c.Mh(this.e))};b.move=function(b){if(0!=b){var e=!1;0!=this.gd.dec&&(e=this.de,e=e*e/(2*this.gd.dec)>=this.Hc);e=e?-this.gd.dec:this.gd.acc;0!=e&&this.$n(this.de+e*b);b=this.de*b;this.Hc-=b;var f=this.Rd[0],c=f.er(b),e=!1;0>=
c||0>=this.de?1==this.Rd.length?(e=!0,this.e.x=f.Cn,this.e.y=f.En,this.Rd.length=0,0<this.de&&(this.jq=-c/this.de),this.$n(0)):(this.Rd.shift(),this.vv(c)):(f=f.n,this.e.x+=b*Math.cos(f),this.e.y+=b*Math.sin(f));this.e.Ta();e&&(this.Pg=!1,this.Qf=!0,this.c.trigger(Kc.prototype.j.sr,this.e),this.Qf=!1)}};b.$n=function(b){null!=b?this.de=b>this.gd.max?this.gd.max:b:0==this.gd.acc&&(this.de=this.gd.max)};b.Pp=function(){this.Hc=this.Rd.length=0;var b,e=arguments.length,f;for(b=0;b<e;b++)f=arguments[b],
this.Rd.push(f),this.Hc+=f.Hc;this.$n(null);this.Pg=!0;this.vv();this.BB&&this.move(this.jq)};b.vv=function(b){var e=this.Rd[0],f=0,c=0;null!=b&&0!=b&&(f=b*Math.cos(e.n),c=b*Math.sin(e.n),e.er(b));this.e.x=e.Bn+f;this.e.y=e.Dn+c;this.e.Ta()};b.wa=function(){var b,e=this.Rd.length,f=[];for(b=0;b<e;b++)f.push(this.Rd[b].wa());return{en:this.Be,v:this.gd,is_m:this.Pg,c_spd:this.de,rd:this.Hc,seg:f}};b.Fa=function(b){this.Be=b.en;this.gd=b.v;this.Pg=b.is_m;this.de=b.c_spd;this.Hc=b.rd;b=b.seg;var e,f=
b.length;for(e=0;e<f;e++){var c=new k;c.Fa(b[e]);this.Rd.push(c)}};Kc.ed=f})();function Lc(f){this.c=f}
(function(){function f(){}function k(){}function b(){}var h=Lc.prototype;h.V=function(b){this.behavior=b;this.c=b.c};h.V.prototype.K=function(){};h.I=function(b,c){this.type=b;this.behavior=b.behavior;this.e=c;this.c=b.c};var e=h.I.prototype;e.K=function(){this.M=null};e.ib=function(){};e.Ua=function(){var b;if(null!=this.M){b=this.M.O(this.e.uid);if(null!=b)return this.M;this.M=null}var c=this.c.types,a,e;for(a in c)if(e=c[a].g[0],null!=e&&"BOARD"==e.zh&&(b=e.O(this.e.uid),null!=b))return this.M=
e;return null};e.qc=function(){this.M=null};h.j=new f;f.prototype.nr=function(b){if(b){var c=this.e.type,a=this.Ua();if(null==a)return!1;a.zE(c,b);return!1}};h.B=new k;k.prototype.mf=function(b,c,a,e){if(b){var f=this.e.uid;null!=this.M&&this.M.Bc(f);this.M=b.g[0];this.M.mf(this.e,c,a,e);null==this.M.O(f)&&(this.M=null)}};k.prototype.Bc=function(){var b=this.Ua();null!=b&&b.Bc(this.e.uid)};k.prototype.Pi=function(b){if(b){var c=this.Ua();if(null!=c){var a;null==b?b=null:"object"===typeof b&&(b=b.he(),
b=null!=b?b.uid:null);a=b;if(null!=a){b=this.e.uid;var e=c.O(b);a=c.O(a);null!=a&&c.Pi(b,a.x,a.y,e.z)}}}};k.prototype.Yk=function(b){var c=this.Ua();null!=c&&c.Yk(this.e.uid,b)};h.J=new b;b.prototype.Ow=function(b){var c,a=this.Ua();null==a?c=-1:c=a.O(this.e.uid).x;b.T(c)};b.prototype.Qw=function(b){var c,a=this.Ua();null==a?c=-1:c=a.O(this.e.uid).y;b.T(c)};b.prototype.kr=function(b,c){var a;a=this.Ua();null==a?a=-1:(a=a.Vj(this.e.uid,c),null==a&&(a=-1));b.ve(a)}})();function Mc(f){this.c=f}
(function(){function f(){}function k(){}var b=Mc.prototype;b.V=function(a){this.behavior=a;this.c=a.c};b.V.prototype.K=function(){};b.I=function(a,b){this.type=a;this.behavior=a.behavior;this.e=b;this.c=a.c;this.kb=0};var h=b.I.prototype,e=2*Math.PI,p=Math.PI/2,c=3*Math.PI/2;h.K=function(){this.jb=1===this.q[0];this.ii=this.q[1];this.Tq=this.q[2];this.Ze=this.q[3];this.Ze+=Math.random()*this.q[4];0===this.Ze?this.kb=0:(this.kb=this.q[5]/this.Ze*e,this.kb+=Math.random()*this.q[6]/this.Ze*e);this.yc=
this.q[7];this.yc+=Math.random()*this.q[8];this.jk=this.Mg=this.ta=0;this.init()};h.wa=function(){return{i:this.kb,a:this.jb,mv:this.ii,w:this.Tq,p:this.Ze,mag:this.yc,iv:this.ta,iv2:this.Mg,r:this.jk,lkv:this.ca,lkv2:this.Wa}};h.Fa=function(a){this.kb=a.i;this.jb=a.a;this.ii=a.mv;this.Tq=a.w;this.Ze=a.p;this.yc=a.mag;this.ta=a.iv;this.Mg=a.iv2||0;this.jk=a.r;this.ca=a.lkv;this.Wa=a.lkv2||0};h.init=function(){switch(this.ii){case 0:this.ta=this.e.x;break;case 1:this.ta=this.e.y;break;case 2:this.ta=
this.e.width;this.jk=this.e.height/this.e.width;break;case 3:this.ta=this.e.width;break;case 4:this.ta=this.e.height;break;case 5:this.ta=this.e.n;this.yc=F(this.yc);break;case 6:this.ta=this.e.opacity;break;case 7:this.ta=0;break;case 8:this.ta=this.e.x,this.Mg=this.e.y}this.ca=this.ta;this.Wa=this.Mg};h.ye=function(a){a=a%e;switch(this.Tq){case 0:return Math.sin(a);case 1:return a<=p?a/p:a<=c?1-2*(a-p)/Math.PI:(a-c)/p-1;case 2:return 2*a/e-1;case 3:return-2*a/e+1;case 4:return a<Math.PI?-1:1}return 0};
h.ib=function(){var a=this.c.Mh(this.e);if(this.jb&&0!==a){0===this.Ze?this.kb=0:(this.kb+=a/this.Ze*e,this.kb=this.kb%e);switch(this.ii){case 0:this.e.x!==this.ca&&(this.ta+=this.e.x-this.ca);this.e.x=this.ta+this.ye(this.kb)*this.yc;this.ca=this.e.x;break;case 1:this.e.y!==this.ca&&(this.ta+=this.e.y-this.ca);this.e.y=this.ta+this.ye(this.kb)*this.yc;this.ca=this.e.y;break;case 2:this.e.width=this.ta+this.ye(this.kb)*this.yc;this.e.height=this.e.width*this.jk;break;case 3:this.e.width=this.ta+this.ye(this.kb)*
this.yc;break;case 4:this.e.height=this.ta+this.ye(this.kb)*this.yc;break;case 5:this.e.n!==this.ca&&(this.ta=Ka(this.ta+(this.e.n-this.ca)));this.e.n=Ka(this.ta+this.ye(this.kb)*this.yc);this.ca=this.e.n;break;case 6:this.e.opacity=this.ta+this.ye(this.kb)*this.yc/100;0>this.e.opacity?this.e.opacity=0:1<this.e.opacity&&(this.e.opacity=1);break;case 8:this.e.x!==this.ca&&(this.ta+=this.e.x-this.ca),this.e.y!==this.Wa&&(this.Mg+=this.e.y-this.Wa),this.e.x=this.ta+Math.cos(this.e.n)*this.ye(this.kb)*
this.yc,this.e.y=this.Mg+Math.sin(this.e.n)*this.ye(this.kb)*this.yc,this.ca=this.e.x,this.Wa=this.e.y}this.e.Ta()}};h.Eu=function(a,b){switch(this.ii){case 2:this.ta*=b.width/a.width;this.jk=b.height/b.width;break;case 3:this.ta*=b.width/a.width;break;case 4:this.ta*=b.height/a.height}};f.prototype.Ew=function(){return this.jb};b.j=new f;b.B=new function(){};k.prototype.wy=function(a){a.F(this.ye(this.kb)*this.yc)};b.J=new k})();var Nc=[],Oc=[],Pc=[],Qc=[],Rc=[],Sc=[],Tc=[],Xc=[],Yc=[],Zc=[];
function $c(f){return result=(f/=1)<1/2.75?7.5625*f*f+0:f<2/2.75?1*(7.5625*(f-=1.5/2.75)*f+.75)+0:f<2.5/2.75?1*(7.5625*(f-=2.25/2.75)*f+.9375)+0:1*(7.5625*(f-=2.625/2.75)*f+.984375)+0}function ad(f,k){return Math.round(f/k*1E4)}
function bd(f,k,b,h,e){var p=0;switch(f){case 0:p=1*k/b+0;break;case 1:p=1*(k/=b)*k+0;break;case 2:p=-1*(k/=b)*(k-2)+0;break;case 3:p=1>(k/=b/2)?.5*k*k+0:-.5*(--k*(k-2)-1)+0;break;case 4:p=1*(k/=b)*k*k+0;break;case 5:p=1*((k=k/b-1)*k*k+1)+0;break;case 6:p=1>(k/=b/2)?.5*k*k*k+0:.5*((k-=2)*k*k+2)+0;break;case 7:p=1*(k/=b)*k*k*k+0;break;case 8:p=-1*((k=k/b-1)*k*k*k-1)+0;break;case 9:p=1>(k/=b/2)?.5*k*k*k*k+0:-.5*((k-=2)*k*k*k-2)+0;break;case 10:p=1*(k/=b)*k*k*k*k+0;break;case 11:p=1*((k=k/b-1)*k*k*k*
k+1)+0;break;case 12:p=1>(k/=b/2)?.5*k*k*k*k*k+0:.5*((k-=2)*k*k*k*k+2)+0;break;case 13:e.Uc?p=Rc[ad(k,b)]:p=-(Math.sqrt(1-k*k)-1);break;case 14:e.Uc?p=Sc[ad(k,b)]:p=Math.sqrt(1-(k-1)*(k-1));break;case 15:p=e.Uc?Tc[ad(k,b)]:1>(k/=b/2)?-.5*(Math.sqrt(1-k*k)-1)+0:.5*(Math.sqrt(1-(k-=2)*k)+1)+0;break;case 16:e.Uc?p=Xc[ad(k,b)]:(e=e.Kc,p=1*(k/=b)*k*((e+1)*k-e)+0);break;case 17:e.Uc?p=Yc[ad(k,b)]:(e=e.Kc,p=1*((k=k/b-1)*k*((e+1)*k+e)+1)+0);break;case 18:e.Uc?p=Zc[ad(k,b)]:(e=e.Kc,p=1>(k/=b/2)?.5*k*k*(((e*=
1.525)+1)*k-e)+0:.5*((k-=2)*k*(((e*=1.525)+1)*k+e)+2)+0);break;case 19:e.Uc?p=Oc[ad(k,b)]:(p=e.uh,f=e.bk,k/=b,0==f&&(f=.3*b),0==p||p<Math.abs(1)?(p=1,e=f/4):e=f/(2*Math.PI)*Math.asin(1/p),p=-(p*Math.pow(2,10*--k)*Math.sin(2*(k*b-e)*Math.PI/f))+0);break;case 20:e.Uc?p=Pc[ad(k,b)]:(p=e.uh,f=e.bk,k/=b,0==f&&(f=.3*b),0==p||p<Math.abs(1)?(p=1,e=f/4):e=f/(2*Math.PI)*Math.asin(1/p),p=p*Math.pow(2,-10*k)*Math.sin(2*(k*b-e)*Math.PI/f)+1);break;case 21:e.Uc?p=Qc[ad(k,b)]:(p=e.uh,f=e.bk,k/=b/2,0==f&&(f=.3*b*
1.5),0==p||p<Math.abs(1)?(p=1,e=f/4):e=f/(2*Math.PI)*Math.asin(1/p),p=1>k?-.5*p*Math.pow(2,10*--k)*Math.sin(2*(k*b-e)*Math.PI/f)+0:p*Math.pow(2,-10*--k)*Math.sin(2*(k*b-e)*Math.PI/f)*.5+1);break;case 22:p=e.Uc?1-Nc[ad(b-k,b)]+0:1-$c(b-k/b)+0;break;case 23:p=e.Uc?Nc[ad(k,b)]:$c(k/b);break;case 24:p=e.Uc?k<b/2?.5*(1-Nc[ad(b-2*k,b)]+0)+0:.5*Nc[ad(2*k-b,b)]+.5:k<b/2?.5*(1-$c(b-2*k)+0)+0:.5*$c((2*k-b)/b)+.5;break;case 25:k=k/b/2;p=2*k*k*(3-2*k);break;case 26:k=(k/b+1)/2;p=2*k*k*(3-2*k)-1;break;case 27:k=
k/b,p=k*k*(3-2*k)}return h?1-p:p}
for(var cd=0,dd=0,fd=0,Y=0,Z=0,gd=0;1E4>=gd;gd++)Y=gd/1E4,cd=(Y/=1)<1/2.75?7.5625*Y*Y+0:Y<2/2.75?1*(7.5625*(Y-=1.5/2.75)*Y+.75)+0:Y<2.5/2.75?1*(7.5625*(Y-=2.25/2.75)*Y+.9375)+0:1*(7.5625*(Y-=2.625/2.75)*Y+.984375)+0,Nc[gd]=cd,Y=gd/1E4,fd=dd=0,Y/=1,0==fd&&(fd=.3),0==dd||dd<Math.abs(1)?(dd=1,Z=fd/4):Z=fd/(2*Math.PI)*Math.asin(1/dd),cd=-(dd*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/fd))+0,Oc[gd]=cd,Y=gd/1E4,fd=dd=0,Y/=1,0==fd&&(fd=.3),0==dd||dd<Math.abs(1)?(dd=1,Z=fd/4):Z=fd/(2*Math.PI)*Math.asin(1/
dd),cd=dd*Math.pow(2,-10*Y)*Math.sin(2*(1*Y-Z)*Math.PI/fd)+1,Pc[gd]=cd,Y=gd/1E4,fd=dd=0,Y/=.5,0==fd&&(fd=.3*1.5),0==dd||dd<Math.abs(1)?(dd=1,Z=fd/4):Z=fd/(2*Math.PI)*Math.asin(1/dd),cd=1>Y?-.5*dd*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/fd)+0:dd*Math.pow(2,-10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/fd)*.5+1,Qc[gd]=cd,Y=gd/1E4,Rc[gd]=-(Math.sqrt(1-Y*Y)-1),Y=gd/1E4,Sc[gd]=Math.sqrt(1-(Y-1)*(Y-1)),Y=gd/1E4,cd=1>(Y/=.5)?-.5*(Math.sqrt(1-Y*Y)-1)+0:.5*(Math.sqrt(1-(Y-=2)*Y)+1)+0,Tc[gd]=cd,Y=gd/1E4,Z=0,0==
Z&&(Z=1.70158),cd=1*(Y/=1)*Y*((Z+1)*Y-Z)+0,Xc[gd]=cd,Y=gd/1E4,Z=0,0==Z&&(Z=1.70158),cd=1*((Y=Y/1-1)*Y*((Z+1)*Y+Z)+1)+0,Yc[gd]=cd,Y=gd/1E4,Z=0,0==Z&&(Z=1.70158),cd=1>(Y/=.5)?.5*Y*Y*(((Z*=1.525)+1)*Y-Z)+0:.5*((Y-=2)*Y*(((Z*=1.525)+1)*Y+Z)+2)+0,Zc[gd]=cd;
function hd(f,k,b,h,e,p,c){this.name=f;this.value=0;this.yi(h);this.$m(e);this.zg=b;this.Xa=k;this.duration=p;this.state=this.ja=0;this.Bm=this.Cm=this.xm=this.ni=!1;this.Wa=this.ca=0;this.ic=c;this.$e=1;this.pj=!1;this.$c=[];this.Tt=1;for(f=0;28>f;f++)this.$c[f]={},this.$c[f].uh=0,this.$c[f].bk=0,this.$c[f].Di=0,this.$c[f].Kc=0,this.$c[f].Uc=!0}hd.prototype={};hd.prototype.yi=function(f){this.za=parseFloat(f.split(",")[0]);this.ob=parseFloat(f.split(",")[1]);this.Wa=this.ca=0};
hd.prototype.$m=function(f){this.ya=parseFloat(f.split(",")[0]);this.hb=parseFloat(f.split(",")[1]);isNaN(this.hb)&&(this.hb=this.ya)};
hd.prototype.Mn=function(f){if(0===this.state)return-1;1===this.state&&(this.ja+=f);2===this.state&&(this.ja-=f);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.ja+=f*this.$e;5===this.state&&(this.ja+=f*this.$e);return 0>this.ja?(this.ja=0,4===this.state?this.$e=1:6===this.state?(this.$e=1,this.pj=!1):this.state=0,this.Bm=!0,0):this.ja>this.duration?(this.ja=this.duration,4===this.state?this.$e=-1:6===this.state?(this.$e=-1,this.pj=!0):5===this.state?this.ja=0:this.state=0,this.xm=
!0,1):this.pj?bd(this.zg,this.duration-this.ja,this.duration,this.pj,this.$c[this.zg]):bd(this.zg,this.ja,this.duration,this.pj,this.$c[this.zg])};function jd(f){this.c=f}
(function(){var f=jd.prototype;f.V=function(b){this.behavior=b;this.c=b.c};f.V.prototype.K=function(){};f.I=function(b,f){this.type=b;this.behavior=b.behavior;this.e=f;this.c=b.c;this.kb=0};var k=f.I.prototype;k.K=function(){this.pi=this.q[0];this.jb=1==this.pi||2==this.pi||3==this.pi||4==this.pi;this.Xa=this.q[1];this.Co=this.q[2];this.target=this.q[3];this.hn=this.q[4];this.xn=!1;1===this.hn&&(this.target="relative("+this.target+")");this.duration=this.q[5];this.ic=1===this.q[6];this.value=0;this.D=
{};this.qs(this.Xa,this.Co,"current",this.target,this.duration,this.ic);1===this.q[0]&&this.tk(0);2===this.q[0]&&this.tk(2);3===this.q[0]&&this.tk(3);4===this.q[0]&&this.tk(4)};k.pe=function(b,f){void 0===f&&(f="current");var e=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");f=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var k=this.value;if("current"===f)switch(b){case 0:e=this.e.x+","+this.e.y;break;case 1:e=this.e.width+","+this.e.height;break;case 2:e=this.e.width+","+this.e.height;break;case 3:e=this.e.width+
","+this.e.height;break;case 4:e=Ha(this.e.n)+","+Ha(this.e.n);break;case 5:e=100*this.e.opacity+","+100*this.e.opacity;break;case 6:e=k+","+k;break;case 7:e=this.e.x+","+this.e.y;break;case 8:e=this.e.x+","+this.e.y;break;case 9:e=void 0!==this.e.bb?this.e.width/this.e.bb.width+","+this.e.height/this.e.bb.height:"1,1"}if("relative"===f.substring(0,8)){var c=f.match(/\((.*?)\)/);if(c)var a=parseFloat(c[1].split(",")[0]),q=parseFloat(c[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(q)&&(q=0);switch(b){case 0:e=
this.e.x+a+","+(this.e.y+q);break;case 1:e=this.e.width+a+","+(this.e.height+q);break;case 2:e=this.e.width+a+","+(this.e.height+q);break;case 3:e=this.e.width+a+","+(this.e.height+q);break;case 4:e=Ha(this.e.n)+a+","+(Ha(this.e.n)+q);break;case 5:e=100*this.e.opacity+a+","+(100*this.e.opacity+q);break;case 6:e=k+a+","+k+a;break;case 7:e=this.e.x+a+","+this.e.y;break;case 8:e=this.e.x+","+(this.e.y+a);break;case 9:e=a+","+q}}return e};k.qs=function(b,f,e,k,c,a){e=this.pe(b,e);k=this.pe(b,k);void 0!==
this.D["default"]&&delete this.D["default"];this.D["default"]=new hd("default",b,f,e,k,c,a);this.D["default"].If=0};k.wa=function(){JSON.stringify(this.D["default"]);return{playmode:this.pi,active:this.jb,tweened:this.Xa,easing:this.Co,target:this.target,targetmode:this.hn,useCurrent:this.xn,duration:this.duration,enforce:this.ic,value:this.value,tweenlist:JSON.stringify(this.D["default"])}};hd.Rw=function(b,f,e,k,c,a,q,t){f=new hd(f,e,k,c,a,q,t);for(var g in b)f[g]=b[g];return f};k.Fa=function(b){var f=
JSON.parse(b.tweenlist),f=hd.Rw(f,f.name,f.Xa,f.zg,f.za+","+f.ob,f.ya+","+f.hb,f.duration,f.ic);this.D["default"]=f;this.pi=b.playmode;this.jb=b.active;this.ii=b.tweened;this.Co=b.easing;this.target=b.target;this.hn=b.targetmode;this.xn=b.useCurrent;this.duration=b.duration;this.ic=b.enforce;this.value=b.value};k.NC=function(b){1<b&&(b=1);0>b&&(b=0);for(var f in this.D){var e=this.D[f];e.ca=0;e.Wa=0;e.state=3;e.ja=b*e.duration;var k=e.Mn(0);this.Nq(e,k)}};k.tk=function(b){for(var f in this.D){var e=
this.D[f];if(this.xn){var k=this.pe(e.Xa,"current"),c=this.pe(e.Xa,this.target);e.yi(k);e.$m(c)}0===b&&(e.ja=1E-6,e.ca=0,e.Wa=0,e.ni=!0,e.state=1);1===b&&(e.state=e.Tt);if(2===b||4===b)e.ja=1E-6,e.ca=0,e.Wa=0,e.ni=!0,2==b&&(e.state=4),4==b&&(e.state=6);3===b&&(e.ja=1E-6,e.ca=0,e.Wa=0,e.ni=!0,e.state=5)}};k.UC=function(b){for(var f in this.D){var e=this.D[f];3!=e.state&&0!=e.state&&(e.Tt=e.state);1===b&&(e.ja=0);2===b&&(e.ja=e.duration);e.state=3;var k=e.Mn(0);this.Nq(e,k)}};k.CC=function(b){for(var f in this.D){var e=
this.D[f];1===b&&(e.ja=e.duration,e.ca=0,e.Wa=0,e.Cm=!0);e.state=2}};k.Nq=function(b,f){if(0===b.Xa)b.ic?(this.e.x=b.za+(b.ya-b.za)*f,this.e.y=b.ob+(b.hb-b.ob)*f):(this.e.x+=(b.ya-b.za)*f-b.ca,this.e.y+=(b.hb-b.ob)*f-b.Wa,b.ca=(b.ya-b.za)*f,b.Wa=(b.hb-b.ob)*f);else if(1===b.Xa)b.ic?(this.e.width=b.za+(b.ya-b.za)*f,this.e.height=b.ob+(b.hb-b.ob)*f):(this.e.width+=(b.ya-b.za)*f-b.ca,this.e.height+=(b.hb-b.ob)*f-b.Wa,b.ca=(b.ya-b.za)*f,b.Wa=(b.hb-b.ob)*f);else if(2===b.Xa)b.ic?this.e.width=b.za+(b.ya-
b.za)*f:(this.e.width+=(b.ya-b.za)*f-b.ca,b.ca=(b.ya-b.za)*f);else if(3===b.Xa)b.ic?this.e.height=b.ob+(b.hb-b.ob)*f:(this.e.height+=(b.hb-b.ob)*f-b.Wa,b.Wa=(b.hb-b.ob)*f);else if(4===b.Xa)if(b.ic){var e=b.za+(b.ya-b.za)*f;this.e.n=Ka(F(e))}else e=(b.ya-b.za)*f-b.ca,this.e.n=Ka(this.e.n+F(e)),b.ca=(b.ya-b.za)*f;else if(5===b.Xa)b.ic?this.e.opacity=(b.za+(b.ya-b.za)*f)/100:(this.e.opacity+=((b.ya-b.za)*f-b.ca)/100,b.ca=(b.ya-b.za)*f);else if(6===b.Xa)b.ic?this.value=b.za+(b.ya-b.za)*f:(this.value+=
(b.ya-b.za)*f-b.ca,b.ca=(b.ya-b.za)*f);else if(7===b.Xa)b.ic?this.e.x=b.za+(b.ya-b.za)*f:(this.e.x+=(b.ya-b.za)*f-b.ca,b.ca=(b.ya-b.za)*f);else if(8===b.Xa)b.ic?this.e.y=b.ob+(b.hb-b.ob)*f:(this.e.y+=(b.hb-b.ob)*f-b.Wa,b.Wa=(b.hb-b.ob)*f);else if(9===b.Xa){var e=b.za+(b.ya-b.za)*f,k=b.ob+(b.hb-b.ob)*f;0>this.e.width&&(e=b.za+(b.ya+b.za)*-f);0>this.e.height&&(k=b.ob+(b.hb+b.ob)*-f);b.ic?(this.e.width=this.e.bb.width*e,this.e.height=this.e.bb.height*k):(0>this.e.width?(this.e.width=this.e.width/(-1+
b.ca)*e,b.ca=e+1):(this.e.width=this.e.width/(1+b.ca)*e,b.ca=e-1),0>this.e.height?(this.e.height=this.e.height/(-1+b.Wa)*k,b.Wa=k+1):(this.e.height=this.e.height/(1+b.Wa)*k,b.Wa=k-1))}this.e.Ta()};k.ib=function(){var b=this.c.Mh(this.e),f=this.D["default"];0!==f.state&&(f.ni&&(this.c.trigger(jd.prototype.j.Gx,this.e),f.ni=!1),f.Cm&&(this.c.trigger(jd.prototype.j.Fx,this.e),f.Cm=!1),this.jb=1==f.state||2==f.state||4==f.state||5==f.state||6==f.state,b=f.Mn(b),this.Nq(f,b),f.xm&&(this.c.trigger(jd.prototype.j.lx,
this.e),f.xm=!1),f.Bm&&(this.c.trigger(jd.prototype.j.Ex,this.e),f.Bm=!1))};f.j={};k=f.j;k.Ew=function(){return 0!==this.D["default"].state};k.FD=function(){return 2==this.D["default"].state};k.wD=function(b,f){var e=this.D["default"];return hc(e.ja/e.duration,b,f)};k.OD=function(b,f){var e=this.D["default"];this.Ak=hc(e.ja/e.duration,b,f);if(e=this.Wp!=this.Ak&&this.Ak)this.Wp=this.Ak;return e};k.Gx=function(){return void 0===this.D["default"]?!1:this.D["default"].ni};k.Fx=function(){return void 0===
this.D["default"]?!1:this.D["default"].Cm};k.lx=function(){return void 0===this.D["default"]?!1:this.D["default"].xm};k.Ex=function(){return void 0===this.D["default"]?!1:this.D["default"].Bm};f.B={};k=f.B;k.ly=function(b,f){this.Wp=this.Ak=!1;this.xn=1==f;this.tk(b)};k.Mr=function(b){this.UC(b)};k.Ux=function(b){this.Wp=this.Ak=!1;this.CC(b)};k.VD=function(b){this.NC(b)};k.cE=function(b){isNaN(b)||0>b||void 0===this.D["default"]||(this.D["default"].duration=b)};k.hE=function(b){void 0!==this.D["default"]&&
(this.D["default"].ic=1===b)};k.iE=function(b){void 0!==this.D["default"]&&(b=this.pe(this.D["default"].Xa,b),this.D["default"].yi(b))};k.lE=function(b,f,e){if(void 0!==this.D["default"]&&!isNaN(e)){var k=this.D["default"],c=e+"";this.hn=f;var a="",q="";if(1===f){this.target="relative("+c+")";switch(b){case 0:a=this.e.x+e;q=k.hb;break;case 1:a=k.ya;q=this.e.y+e;break;case 2:q=a=""+Ha(this.e.n+F(e));break;case 3:q=a=""+100*this.e.opacity+e;break;case 4:a=this.e.width+e;q=k.hb;break;case 5:a=k.ya;q=
this.e.height+e;break;case 6:q=a=e}c=a+","+q}else{switch(b){case 0:a=e;q=k.hb;break;case 1:a=k.ya;q=e;break;case 2:q=a=e;break;case 3:q=a=e;break;case 4:a=e;q=k.hb;break;case 5:a=k.ya;q=e;break;case 6:q=a=e}this.target=c=a+","+q}b=this.pe(this.D["default"].Xa,"current");c=this.pe(this.D["default"].Xa,c);k.yi(b);k.$m(c)}};k.nE=function(b){void 0!==this.D["default"]&&(this.D["default"].Xa=b)};k.dE=function(b){void 0!==this.D["default"]&&(this.D["default"].zg=b)};k.eE=function(b,f,e,k,c){void 0!==this.D["default"]&&
(this.D["default"].$c[b].Uc=!1,this.D["default"].$c[b].uh=f,this.D["default"].$c[b].bk=e,this.D["default"].$c[b].Di=k,this.D["default"].$c[b].Kc=c)};k.WD=function(){void 0!==this.D["default"]&&(this.D["default"].Uc=!0)};k.oE=function(b){var f=this.D["default"];this.value=b;6===f.Xa&&f.yi(this.pe(f.Xa,"current"))};k.cy=function(b,f,e,k,c){if(void 0===this.D["default"])this.qs(b,f,initial,e,k,c);else{var a=this.D["default"];a.Xa=b;a.zg=f;a.yi(this.pe(b,"current"));a.$m(this.pe(b,e));a.duration=k;a.ic=
1===c}};f.J={};f=f.J;f.rE=function(b){var f="N/A";switch(this.D["default"].state){case 0:f="paused";break;case 1:f="playing";break;case 2:f="reversing";break;case 3:f="seeking"}b.mb(f)};f.UD=function(b){b.F(this.D["default"].ja/this.D["default"].duration)};f.rw=function(b){b.F(this.D["default"].duration)};f.tE=function(b){var f=this.D["default"],e="N/A";switch(f.Xa){case 0:e=f.ya;break;case 1:e=f.hb;break;case 2:e=f.ya;break;case 3:e=f.ya;break;case 4:e=f.ya;break;case 5:e=f.hb;break;case 6:e=f.ya}b.F(e)};
f.wy=function(b){b.F(this.value)};f.vE=function(b,f,e,k,c){k=1<k?1:k;c=bd(c,0>k?0:k,1,!1,!1);b.F(f+c*(e-f))}})();
function rc(){return[tc,sc,xc,Ac,Bc,yc,Dc,zc,Cc,Ec,X,Fc,Gc,Hc,Ic,jd,Jc,Mc,Kc,Lc,O.prototype.j.ur,O.prototype.B.hy,xc.prototype.B.hw,xc.prototype.j.tr,xc.prototype.J.Mw,O.prototype.j.mw,O.prototype.j.Hw,Bc.prototype.B.ay,Ac.prototype.B.jy,Cc.prototype.B.iy,X.prototype.B.qw,O.prototype.j.vw,Ac.prototype.J.fw,Ac.prototype.J.gw,Ac.prototype.B.pw,O.prototype.J.LB,X.prototype.j.ig,X.prototype.B.fy,jd.prototype.B.cy,jd.prototype.B.ly,X.prototype.j.jg,sc.prototype.j.Ok,sc.prototype.B.ey,Ac.prototype.j.oh,
Cc.prototype.j.or,Ac.prototype.j.Ti,Cc.prototype.J.qy,X.prototype.j.lw,Cc.prototype.B.Yx,X.prototype.j.Ox,sc.prototype.J.Mx,Cc.prototype.B.Qn,X.prototype.J.dw,Cc.prototype.B.xw,O.prototype.B.aw,Dc.prototype.j.fr,Ac.prototype.j.Si,Dc.prototype.B.nf,Dc.prototype.B.$v,Dc.prototype.J.Dw,Ec.prototype.B.Qn,Dc.prototype.j.ww,sc.prototype.B.CallFunction,Dc.prototype.J.Lw,Dc.prototype.J.Px,Cc.prototype.B.yw,Dc.prototype.j.Gr,Ec.prototype.B.yy,O.prototype.J.VC,Kc.prototype.B.Tw,Kc.prototype.j.sr,Dc.prototype.j.oh,
X.prototype.J.vy,O.prototype.j.dr,Ec.prototype.B.sw,Ec.prototype.j.lr,X.prototype.B.Xx,X.prototype.J.ew,O.prototype.j.kw,X.prototype.J.Qr,O.prototype.J.IB,O.prototype.J["int"],Fc.prototype.B.gy,zc.prototype.B.dy,Hc.prototype.j.Nn,Lc.prototype.J.Ow,Lc.prototype.J.Qw,Ac.prototype.B.Jk,O.prototype.J.round,O.prototype.J.random,yc.prototype.B.Qn,yc.prototype.B.Wk,O.prototype.B.ny,yc.prototype.B.Aw,yc.prototype.j.qr,yc.prototype.j.xr,sc.prototype.J.br,yc.prototype.B.Vw,zc.prototype.J.Nx,O.prototype.B.Zx,
yc.prototype.j.rr,O.prototype.B.xy,Ac.prototype.J.kr,Ac.prototype.B.Bc,O.prototype.B.ow,X.prototype.J.Sr,tc.prototype.B.Play,Gc.prototype.B.by,Kc.prototype.j.Iw,X.prototype.j.Jw,X.prototype.j.mr,O.prototype.B.Sx,O.prototype.B.Tx,O.prototype.j.uw,Fc.prototype.B.Kr,O.prototype.B.zw,X.prototype.j.Kw,xc.prototype.B.$x,X.prototype.B.Kr]};