-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
365 lines (365 loc) · 177 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
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,x,fa,ga,E,M,ha,ia,ja,ma,na,oa,N,pa,qa,O,ra,ua,va,ya,R,Aa,Ca,Da,Ea,Fa,S,Ga,Ha,U,Ia,Ja,Ka,La,Ma,V,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,W,Tb,Ub={},Vb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,b,c,f){this.set(a,b,c,f)}function n(){this.$a=this.Za=this.bb=this.ab=this.jb=this.ib=this.Na=this.Ma=0}function m(a,b,c,f){a<b?c<f?(v=a<c?a:c,k=b>f?b:f):(v=a<f?a:f,k=b>c?b:c):c<f?(v=b<c?b:c,k=a>f?a:f):(v=b<f?b:f,k=a>c?a:c)}function p(){this.items=this.Yc=null;this.Bg=0;ka&&(this.Yc=new Set);this.Of=[];this.Nd=!0}function t(a){P[Q++]=a}function r(){this.xa=this.Xi=this.y=this.wj=0}function d(a){this.Ka=[];this.wh=this.yh=this.zh=this.xh=0;this.$g(a)}function b(a,b){this.Bj=
a;this.Aj=b;this.cells={}}function c(a,b){this.Bj=a;this.Aj=b;this.cells={}}function g(a,b,c){var f;return C.length?(f=C.pop(),f.fk=a,f.x=b,f.y=c,f):new aa(a,b,c)}function a(a,b,c){this.fk=a;this.x=b;this.y=c;this.Ra=new ba}function f(a,b,c){var f;return z.length?(f=z.pop(),f.fk=a,f.x=b,f.y=c,f):new ca(a,b,c)}function q(a,b,c){this.fk=a;this.x=b;this.y=c;this.Ra=[];this.pf=!0;this.Vc=new ba;this.Uf=!1}function h(a,b){return a.Lc-b.Lc}x=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};ga=function(a){return"undefined"===typeof a};E=function(a){return"number"===typeof a};M=function(a){return"string"===typeof a};ha=function(a){return 0<a&&0===(a-1&a)};ia=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};ja=function(a){return 0>a?-a:a};ma=function(a,b){return a>b?a:b};na=function(a,b){return a<b?a:b};oa=Math.PI;N=function(a){return 0<=a?a|0:(a|0)-1};pa=function(a){var b=a|0;return b===a?b:b+1};
qa=function(a,b,c,f,h,l,g,w){var y,d,q,k;a<c?(d=a,y=c):(d=c,y=a);h<g?(k=h,q=g):(k=g,q=h);if(y<k||d>q)return!1;b<f?(d=b,y=f):(d=f,y=b);l<w?(k=l,q=w):(k=w,q=l);if(y<k||d>q)return!1;y=h-a+g-c;d=l-b+w-f;a=c-a;b=f-b;h=g-h;l=w-l;w=ja(b*h-l*a);return ja(h*d-l*y)>w?!1:ja(a*d-b*y)<=w};e.prototype.set=function(a,b,c,f){this.left=a;this.top=b;this.right=c;this.bottom=f};e.prototype.ag=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-
this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.zs=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.As=function(a,b,c){return!(a.right+
b<this.left||a.bottom+c<this.top||a.left+b>this.right||a.top+c>this.bottom)};e.prototype.mb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};e.prototype.hg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};O=e;n.prototype.Zg=function(a){this.Ma=a.left;this.Na=a.top;this.ib=a.right;this.jb=a.top;this.ab=a.right;this.bb=a.bottom;this.Za=a.left;this.$a=a.bottom};n.prototype.xo=function(a,b){if(0===b)this.Zg(a);else{var c=
Math.sin(b),f=Math.cos(b),h=a.left*c,l=a.top*c,g=a.right*c,c=a.bottom*c,w=a.left*f,y=a.top*f,d=a.right*f,f=a.bottom*f;this.Ma=w-l;this.Na=y+h;this.ib=d-l;this.jb=y+g;this.ab=d-c;this.bb=f+g;this.Za=w-c;this.$a=f+h}};n.prototype.offset=function(a,b){this.Ma+=a;this.Na+=b;this.ib+=a;this.jb+=b;this.ab+=a;this.bb+=b;this.Za+=a;this.$a+=b;return this};var v=0,k=0;n.prototype.mm=function(a){m(this.Ma,this.ib,this.ab,this.Za);a.left=v;a.right=k;m(this.Na,this.jb,this.bb,this.$a);a.top=v;a.bottom=k};n.prototype.mb=
function(a,b){var c=this.Ma,f=this.Na,h=this.ib-c,l=this.jb-f,g=this.ab-c,w=this.bb-f,y=a-c,d=b-f,q=h*h+l*l,k=h*g+l*w,l=h*y+l*d,u=g*g+w*w,v=g*y+w*d,m=1/(q*u-k*k),h=(u*l-k*v)*m,q=(q*v-k*l)*m;if(0<=h&&0<q&&1>h+q)return!0;h=this.Za-c;l=this.$a-f;q=h*h+l*l;k=h*g+l*w;l=h*y+l*d;m=1/(q*u-k*k);h=(u*l-k*v)*m;q=(q*v-k*l)*m;return 0<=h&&0<q&&1>h+q};n.prototype.Ld=function(a,b){if(b)switch(a){case 0:return this.Ma;case 1:return this.ib;case 2:return this.ab;case 3:return this.Za;case 4:return this.Ma;default:return this.Ma}else switch(a){case 0:return this.Na;
case 1:return this.jb;case 2:return this.bb;case 3:return this.$a;case 4:return this.Na;default:return this.Na}};n.prototype.In=function(){return(this.Ma+this.ib+this.ab+this.Za)/4};n.prototype.Jn=function(){return(this.Na+this.jb+this.bb+this.$a)/4};n.prototype.Vm=function(a){var b=a.In(),c=a.Jn();if(this.mb(b,c))return!0;b=this.In();c=this.Jn();if(a.mb(b,c))return!0;var f,h,l,g,w,y,d,q;for(d=0;4>d;d++)for(q=0;4>q;q++)if(b=this.Ld(d,!0),c=this.Ld(d,!1),f=this.Ld(d+1,!0),h=this.Ld(d+1,!1),l=a.Ld(q,
!0),g=a.Ld(q,!1),w=a.Ld(q+1,!0),y=a.Ld(q+1,!1),qa(b,c,f,h,l,g,w,y))return!0;return!1};ra=n;ua=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};va=function(a,b){var c,f;b=N(b);if(!(0>b||b>=a.length)){c=b;for(f=a.length-1;c<f;c++)a[c]=a[c+1];ya(a,f)}};ya=function(a,b){a.length=b};R=function(a){ya(a,0)};Aa=function(a,b){R(a);var c,f;c=0;for(f=b.length;c<f;++c)a[c]=b[c]};Ca=function(a,b){a.push.apply(a,b)};Da=function(a,b){var c,f;c=0;for(f=a.length;c<f;++c)if(a[c]===b)return c;
return-1};Ea=function(a,b){var c=Da(a,b);-1!==c&&va(a,c)};Fa=function(a,b,c){return a<b?b:a>c?c:a};S=function(a){return a/(180/oa)};Ga=function(a){return 180/oa*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};U=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ia=function(a){return Ha(Ga(a))};Ja=function(a){return U(S(a))};Ka=function(a,b,c,f){return Math.atan2(f-b,c-a)};La=function(a,b){if(a===b)return 0;var c=Math.sin(a),f=Math.cos(a),h=Math.sin(b),l=Math.cos(b),c=c*h+f*l;return 1<=c?0:-1>=c?oa:Math.acos(c)};
Ma=function(a,b,c){var f=Math.sin(a),h=Math.cos(a),l=Math.sin(b),g=Math.cos(b);return Math.acos(f*l+h*g)>c?0<h*l-f*g?U(a+c):U(a-c):U(b)};V=function(a,b){var c=Math.sin(a),f=Math.cos(a),h=Math.sin(b),l=Math.cos(b);return 0>=f*h-c*l};Na=function(a,b,c,f){a=c-a;b=f-b;return Math.sqrt(a*a+b*b)};Oa=function(a,b){return!a!==!b};Pa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Qa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var H=+new Date;Ra=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()-H};var l=!1,u=l=!1,ta=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),l=!l&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),ta=window.c2ejecta);
var ka=!l&&!ta&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.pd()?!1:ka?this.Yc.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(ka)this.Yc.has(a)||(this.Yc.add(a),this.Nd=!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Bg++,this.Nd=!1):(this.items={},this.items[b]=a,this.Bg=1,this.Nd=!1)}};p.prototype.remove=function(a){if(!this.pd())if(ka)this.Yc.has(a)&&(this.Yc["delete"](a),
this.Nd=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Bg--,this.Nd=!1)}};p.prototype.clear=function(){this.pd()||(ka?this.Yc.clear():(this.items=null,this.Bg=0),R(this.Of),this.Nd=!0)};p.prototype.pd=function(){return 0===this.count()};p.prototype.count=function(){return ka?this.Yc.size:this.Bg};var P=null,Q=0;p.prototype.Lt=function(){if(!this.Nd){if(ka)R(this.Of),P=this.Of,Q=0,this.Yc.forEach(t),P=null,Q=0;else{var a=this.Of;R(a);var b,c=0,f=this.items;
if(f)for(b in f)f.hasOwnProperty(b)&&(a[c++]=f[b])}this.Nd=!0}};p.prototype.ke=function(){this.Lt();return this.Of};ba=p;new ba;Sa=function(a,b){ka?Ta(a,b.Yc):Ua(a,b.ke())};Ta=function(a,b){var c,f,h,l;f=c=0;for(h=a.length;c<h;++c)l=a[c],b.has(l)||(a[f++]=l);ya(a,f)};Ua=function(a,b){var c,f,h,l;f=c=0;for(h=a.length;c<h;++c)l=a[c],-1===Da(b,l)&&(a[f++]=l);ya(a,f)};r.prototype.add=function(a){this.y=a-this.wj;this.Xi=this.xa+this.y;this.wj=this.Xi-this.xa-this.y;this.xa=this.Xi};r.prototype.reset=
function(){this.xa=this.Xi=this.y=this.wj=0};Va=r;Wa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};d.prototype.$g=function(a){this.io=a;this.Gc=a.length/2;this.Ka.length=a.length;this.Bh=this.Ch=-1;this.pm=0};d.prototype.nf=function(){return!this.io.length};d.prototype.ba=function(){for(var a=this.Ka,b=a[0],c=b,f=a[1],h=f,l,g,w=1,y=this.Gc;w<y;++w)g=2*w,l=a[g],g=a[g+1],l<b&&(b=l),l>c&&(c=l),g<f&&(f=g),g>h&&(h=g);this.xh=b;this.yh=c;this.zh=f;this.wh=h};d.prototype.Zg=function(a,
b,c){this.Ka.length=8;this.Gc=4;var f=this.Ka;f[0]=a.left-b;f[1]=a.top-c;f[2]=a.right-b;f[3]=a.top-c;f[4]=a.right-b;f[5]=a.bottom-c;f[6]=a.left-b;f[7]=a.bottom-c;this.Ch=a.right-a.left;this.Bh=a.bottom-a.top;this.ba()};d.prototype.If=function(a,b,c,f,h){this.Ka.length=8;this.Gc=4;var l=this.Ka;l[0]=a.Ma-b;l[1]=a.Na-c;l[2]=a.ib-b;l[3]=a.jb-c;l[4]=a.ab-b;l[5]=a.bb-c;l[6]=a.Za-b;l[7]=a.$a-c;this.Ch=f;this.Bh=h;this.ba()};d.prototype.wo=function(a){this.Gc=a.Gc;Aa(this.Ka,a.Ka);this.xh=a.xh;this.zh-a.zh;
this.yh=a.yh;this.wh=a.wh};d.prototype.cf=function(a,b,c){if(this.Ch!==a||this.Bh!==b||this.pm!==c){this.Ch=a;this.Bh=b;this.pm=c;var f,h,l,g,w,y=0,d=1,q=this.io,k=this.Ka;0!==c&&(y=Math.sin(c),d=Math.cos(c));c=0;for(l=this.Gc;c<l;c++)f=2*c,h=f+1,g=q[f]*a,w=q[h]*b,k[f]=g*d-w*y,k[h]=w*d+g*y;this.ba()}};d.prototype.mb=function(a,b){var c=this.Ka;if(a===c[0]&&b===c[1])return!0;var f,h,l,g=this.Gc,w=this.xh-110,y=this.zh-101,d=this.yh+131,q=this.wh+120,k,u,v=0,m=0;for(f=0;f<g;f++)h=2*f,l=(f+1)%g*2,k=
c[h],h=c[h+1],u=c[l],l=c[l+1],qa(w,y,a,b,k,h,u,l)&&v++,qa(d,q,a,b,k,h,u,l)&&m++;return 1===v%2||1===m%2};d.prototype.ug=function(a,b,c){var f=a.Ka,h=this.Ka;if(this.mb(f[0]+b,f[1]+c)||a.mb(h[0]-b,h[1]-c))return!0;var l,g,w,y,d,q,k,u,v,m,e,H;l=0;for(y=this.Gc;l<y;l++)for(g=2*l,w=(l+1)%y*2,u=h[g],g=h[g+1],v=h[w],m=h[w+1],w=0,k=a.Gc;w<k;w++)if(d=2*w,q=(w+1)%k*2,e=f[d]+b,d=f[d+1]+c,H=f[q]+b,q=f[q+1]+c,qa(u,g,v,m,e,d,H,q))return!0;return!1};Xa=d;b.prototype.Vd=function(a,b,c){var f;f=this.cells[a];return f?
(f=f[b])?f:c?(f=g(this,a,b),this.cells[a][b]=f):null:c?(f=g(this,a,b),this.cells[a]={},this.cells[a][b]=f):null};b.prototype.ob=function(a){return N(a/this.Bj)};b.prototype.pb=function(a){return N(a/this.Aj)};b.prototype.update=function(a,b,c){var f,h,l,g,w;if(b)for(f=b.left,h=b.right;f<=h;++f)for(l=b.top,g=b.bottom;l<=g;++l)if(!c||!c.mb(f,l))if(w=this.Vd(f,l,!1))w.remove(a),w.pd()&&(w.Ra.clear(),1E3>C.length&&C.push(w),this.cells[f][l]=null);if(c)for(f=c.left,h=c.right;f<=h;++f)for(l=c.top,g=c.bottom;l<=
g;++l)b&&b.mb(f,l)||this.Vd(f,l,!0).kk(a)};b.prototype.Li=function(a,b){var c,f,l,h,g,w;c=this.ob(a.left);l=this.pb(a.top);f=this.ob(a.right);for(g=this.pb(a.bottom);c<=f;++c)for(h=l;h<=g;++h)(w=this.Vd(c,h,!1))&&w.dump(b)};Ya=b;c.prototype.Vd=function(a,b,c){var l;l=this.cells[a];return l?(l=l[b])?l:c?(l=f(this,a,b),this.cells[a][b]=l):null:c?(l=f(this,a,b),this.cells[a]={},this.cells[a][b]=l):null};c.prototype.ob=function(a){return N(a/this.Bj)};c.prototype.pb=function(a){return N(a/this.Aj)};c.prototype.update=
function(a,b,c){var f,l,h,g,w;if(b)for(f=b.left,l=b.right;f<=l;++f)for(h=b.top,g=b.bottom;h<=g;++h)if(!c||!c.mb(f,h))if(w=this.Vd(f,h,!1))w.remove(a),w.pd()&&(w.reset(),1E3>z.length&&z.push(w),this.cells[f][h]=null);if(c)for(f=c.left,l=c.right;f<=l;++f)for(h=c.top,g=c.bottom;h<=g;++h)b&&b.mb(f,h)||this.Vd(f,h,!0).kk(a)};c.prototype.Li=function(a,b,c,f,l){var h,g;a=this.ob(a);b=this.pb(b);c=this.ob(c);for(h=this.pb(f);a<=c;++a)for(f=b;f<=h;++f)(g=this.Vd(a,f,!1))&&g.dump(l)};c.prototype.Rs=function(a){var b,
c,f,l,h;b=a.left;f=a.top;c=a.right;for(l=a.bottom;b<=c;++b)for(a=f;a<=l;++a)if(h=this.Vd(b,a,!1))h.pf=!1};Za=c;var C=[];a.prototype.pd=function(){return this.Ra.pd()};a.prototype.kk=function(a){this.Ra.add(a)};a.prototype.remove=function(a){this.Ra.remove(a)};a.prototype.dump=function(a){Ca(a,this.Ra.ke())};aa=a;var z=[];q.prototype.pd=function(){if(!this.Ra.length)return!0;if(this.Ra.length>this.Vc.count())return!1;this.Sj();return!0};q.prototype.kk=function(a){this.Vc.contains(a)?(this.Vc.remove(a),
this.Vc.pd()&&(this.Uf=!1)):this.Ra.length?(this.Ra[this.Ra.length-1].Rc()>a.Rc()&&(this.pf=!1),this.Ra.push(a)):(this.Ra.push(a),this.pf=!0)};q.prototype.remove=function(a){this.Vc.add(a);this.Uf=!0;30<=this.Vc.count()&&this.Sj()};q.prototype.Sj=function(){this.Uf&&(this.Vc.count()===this.Ra.length?this.reset():(Sa(this.Ra,this.Vc),this.Vc.clear(),this.Uf=!1))};q.prototype.dr=function(){this.pf||(this.Ra.sort(h),this.pf=!0)};q.prototype.reset=function(){R(this.Ra);this.pf=!0;this.Vc.clear();this.Uf=
!1};q.prototype.dump=function(a){this.Sj();this.dr();this.Ra.length&&a.push(this.Ra)};ca=q;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");$a=function(a){return 0>=a||11<=a?"source-over":G[a-1]};bb=function(a,b,c){if(c)switch(a.hb=c.ONE,a.eb=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.hb=c.ONE;a.eb=c.ONE;break;case 3:a.hb=c.ONE;a.eb=c.ZERO;break;case 4:a.hb=c.ONE_MINUS_DST_ALPHA;a.eb=c.ONE;break;case 5:a.hb=c.DST_ALPHA;a.eb=
c.ZERO;break;case 6:a.hb=c.ZERO;a.eb=c.SRC_ALPHA;break;case 7:a.hb=c.ONE_MINUS_DST_ALPHA;a.eb=c.ZERO;break;case 8:a.hb=c.ZERO;a.eb=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.hb=c.DST_ALPHA;a.eb=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.hb=c.ONE_MINUS_DST_ALPHA,a.eb=c.SRC_ALPHA}};cb=function(a){return Math.round(1E6*a)/1E6};db=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};eb=function(a){a=a.target;return!a||a===document||a===
window||document&&document.body&&a===document.body||db(a.tagName,"canvas")?!0:!1}})();var Wb="undefined"!==typeof Float32Array?Float32Array:Array;function Xb(e){var n=new Wb(3);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n}function Yb(e){var n=new Wb(16);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]);return n}
function Zb(e,n){n[0]=e[0];n[1]=e[1];n[2]=e[2];n[3]=e[3];n[4]=e[4];n[5]=e[5];n[6]=e[6];n[7]=e[7];n[8]=e[8];n[9]=e[9];n[10]=e[10];n[11]=e[11];n[12]=e[12];n[13]=e[13];n[14]=e[14];n[15]=e[15]}function $b(e,n){var m=n[0],p=n[1];n=n[2];e[0]*=m;e[1]*=m;e[2]*=m;e[3]*=m;e[4]*=p;e[5]*=p;e[6]*=p;e[7]*=p;e[8]*=n;e[9]*=n;e[10]*=n;e[11]*=n}
function ac(e,n,m,p){p||(p=Yb());var t,r,d,b,c,g,a,f,q=e[0],h=e[1];e=e[2];r=m[0];d=m[1];t=m[2];m=n[1];g=n[2];q===n[0]&&h===m&&e===g?(e=p,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(m=q-n[0],g=h-n[1],a=e-n[2],f=1/Math.sqrt(m*m+g*g+a*a),m*=f,g*=f,a*=f,n=d*a-t*g,t=t*m-r*a,r=r*g-d*m,(f=Math.sqrt(n*n+t*t+r*r))?(f=1/f,n*=f,t*=f,r*=f):r=t=n=0,d=g*r-a*t,b=a*n-m*r,c=m*t-g*n,(f=Math.sqrt(d*d+b*b+c*c))?(f=1/f,d*=f,b*=f,c*=f):c=b=d=0,
p[0]=n,p[1]=d,p[2]=m,p[3]=0,p[4]=t,p[5]=b,p[6]=g,p[7]=0,p[8]=r,p[9]=c,p[10]=a,p[11]=0,p[12]=-(n*q+t*h+r*e),p[13]=-(d*q+b*h+c*e),p[14]=-(m*q+g*h+a*e),p[15]=1)}
(function(){function e(b,c,g){this.qd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ca=!!g;this.di=this.vg=!1;this.Ij=0;this.kj=1;this.Kl=1E3;this.St=(this.Kl-this.kj)/32768;this.xj=Xb([0,0,100]);this.rn=Xb([0,0,0]);this.So=Xb([0,1,0]);this.qh=Xb([1,1,1]);this.ym=!0;this.yi=Yb();this.Tb=Yb();this.xk=Yb();this.Hj=Yb();this.A=b;this.Rm()}function n(b,c,g){this.A=b;this.ah=c;this.name=g;this.gc=b.getAttribLocation(c,"aPos");this.ee=b.getAttribLocation(c,
"aTex");this.pn=b.getUniformLocation(c,"matP");this.ti=b.getUniformLocation(c,"matMV");this.wf=b.getUniformLocation(c,"opacity");this.Fk=b.getUniformLocation(c,"colorFill");this.qn=b.getUniformLocation(c,"samplerFront");this.Lg=b.getUniformLocation(c,"samplerBack");this.Le=b.getUniformLocation(c,"destStart");this.Ke=b.getUniformLocation(c,"destEnd");this.Ng=b.getUniformLocation(c,"seconds");this.Hk=b.getUniformLocation(c,"pixelWidth");this.Gk=b.getUniformLocation(c,"pixelHeight");this.Kg=b.getUniformLocation(c,
"layerScale");this.Jg=b.getUniformLocation(c,"layerAngle");this.Og=b.getUniformLocation(c,"viewOrigin");this.Mg=b.getUniformLocation(c,"scrollPos");this.vs=!!(this.Hk||this.Gk||this.Ng||this.Lg||this.Le||this.Ke||this.Kg||this.Jg||this.Og||this.Mg);this.zn=this.An=-999;this.xi=1;this.vn=this.un=0;this.xn=this.tn=this.sn=1;this.Dn=this.Cn=this.Bn=this.Fn=this.En=this.wn=0;this.wk=[];this.yn=Yb();this.wf&&b.uniform1f(this.wf,1);this.Fk&&b.uniform4f(this.Fk,1,1,1,1);this.qn&&b.uniform1i(this.qn,0);this.Lg&&
b.uniform1i(this.Lg,1);this.Le&&b.uniform2f(this.Le,0,0);this.Ke&&b.uniform2f(this.Ke,1,1);this.Kg&&b.uniform1f(this.Kg,1);this.Jg&&b.uniform1f(this.Jg,0);this.Og&&b.uniform2f(this.Og,0,0);this.Mg&&b.uniform2f(this.Mg,0,0);this.Ng&&b.uniform1f(this.Ng,0);this.ye=!1}function m(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&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]}function p(b,c){this.type=b;this.p=c;this.A=c.A;this.Sc=this.nb=this.Xn=0;this.K=this.oc=null;this.yo=[]}var t=Yb();e.prototype.Rm=function(){var b=this.A,c;this.jn=1;this.Fe=this.$d=null;this.Hh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ca?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.kn=b.ONE;this.hn=b.ONE_MINUS_SRC_ALPHA;
this.ij=new Float32Array(8E3*(this.ca?3:2));this.Zi=new Float32Array(16E3);this.bo=new Float32Array(32E3);this.Uk=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Uk);b.bufferData(b.ARRAY_BUFFER,this.bo.byteLength,b.DYNAMIC_DRAW);this.ph=Array(4);this.hh=Array(4);for(c=0;4>c;c++)this.ph[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.ph[c]),b.bufferData(b.ARRAY_BUFFER,this.ij.byteLength,b.DYNAMIC_DRAW),this.hh[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.hh[c]),b.bufferData(b.ARRAY_BUFFER,
this.Zi.byteLength,b.DYNAMIC_DRAW);this.fd=0;this.xs=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.xs);for(var g=new Uint16Array(12E3),a=c=0;12E3>c;)g[c++]=a,g[c++]=a+1,g[c++]=a+2,g[c++]=a,g[c++]=a+2,g[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,g,b.STATIC_DRAW);this.Vk=this.Lf=this.Ed=0;this.wa=[];c=this.ca?"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}";g=this.bg({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.wa.push(g);g=this.bg({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.wa.push(g);g=this.bg({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.wa.push(g);g=this.bg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.wa.push(g);for(var f in bc)bc.hasOwnProperty(f)&&this.wa.push(this.bg(bc[f],c,f));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Md=[];this.dd=0;this.fb=!1;this.vm=this.Eg=-1;this.df=null;this.Rj=b.createFramebuffer();this.Jh=this.Mi=null;this.km=!1;this.ca&&(this.Jh=b.createRenderbuffer());this.je=Xb([0,0,0]);this.Gn=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Gn&&(this.Gn=2048);this.wb(0)};n.prototype.Gl=function(b){m(this.yn,b)||(Zb(b,this.yn),this.A.uniformMatrix4fv(this.ti,
!1,b))};e.prototype.bg=function(b,c,g){var a=this.A,f=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(f,b.src);a.compileShader(f);if(!a.getShaderParameter(f,a.COMPILE_STATUS))return a.deleteShader(f),null;var d=a.createShader(a.VERTEX_SHADER);a.shaderSource(d,c);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))return a.deleteShader(f),a.deleteShader(d),null;c=a.createProgram();a.attachShader(c,f);a.attachShader(c,d);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))return a.deleteShader(f),
a.deleteShader(d),a.deleteProgram(c),null;a.useProgram(c);a.deleteShader(f);a.deleteShader(d);g=new n(a,c,g);g.Pj=b.Pj||0;g.Qj=b.Qj||0;g.um=!!b.um;g.Ec=!!b.Ec;g.im=!!b.im;g.L=b.L||[];b=0;for(f=g.L.length;b<f;b++)g.L[b][1]=a.getUniformLocation(c,g.L[b][0]),g.wk.push(0),a.uniform1f(g.L[b][1],0);return g};e.prototype.dk=function(b){var c,g;c=0;for(g=this.wa.length;c<g;c++)if(this.wa[c].name===b)return c;return-1};e.prototype.ho=function(b,c,g){var a=this.Tb,f=this.yi,d=[0,0,0,0,0,0,0,0];d[0]=a[0]*b+
a[4]*c+a[12];d[1]=a[1]*b+a[5]*c+a[13];d[2]=a[2]*b+a[6]*c+a[14];d[3]=a[3]*b+a[7]*c+a[15];d[4]=f[0]*d[0]+f[4]*d[1]+f[8]*d[2]+f[12]*d[3];d[5]=f[1]*d[0]+f[5]*d[1]+f[9]*d[2]+f[13]*d[3];d[6]=f[2]*d[0]+f[6]*d[1]+f[10]*d[2]+f[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],g[0]=(.5*d[4]+.5)*this.width,g[1]=(.5*d[5]+.5)*this.height)};e.prototype.Te=function(b,c,g){if(this.width!==b||this.height!==c||g){this.Td();g=this.A;this.width=b;this.height=c;g.viewport(0,0,b,c);ac(this.xj,
this.rn,this.So,this.Tb);if(this.ca){var a=-b/2;b=b/2;var f=c/2;c=-c/2;var d=this.kj,h=this.Kl,v=this.yi;v||(v=Yb());var k=b-a,m=c-f,l=h-d;v[0]=2/k;v[1]=0;v[2]=0;v[3]=0;v[4]=0;v[5]=2/m;v[6]=0;v[7]=0;v[8]=0;v[9]=0;v[10]=-2/l;v[11]=0;v[12]=-(a+b)/k;v[13]=-(c+f)/m;v[14]=-(h+d)/l;v[15]=1;this.qh[0]=1;this.qh[1]=1}else c=b/c,a=this.kj,b=this.Kl,v=this.yi,h=a*Math.tan(45*Math.PI/360),c*=h,f=-c,d=-h,v||(v=Yb()),k=c-f,m=h-d,l=b-a,v[0]=2*a/k,v[1]=0,v[2]=0,v[3]=0,v[4]=0,v[5]=2*a/m,v[6]=0,v[7]=0,v[8]=(c+f)/
k,v[9]=(h+d)/m,v[10]=-(b+a)/l,v[11]=-1,v[12]=0,v[13]=0,v[14]=-(b*a*2)/l,v[15]=0,a=[0,0],b=[0,0],this.ho(0,0,a),this.ho(1,1,b),this.qh[0]=1/(b[0]-a[0]),this.qh[1]=-1/(b[1]-a[1]);a=0;for(b=this.wa.length;a<b;a++)f=this.wa[a],f.ye=!1,f.pn&&(g.useProgram(f.ah),g.uniformMatrix4fv(f.pn,!1,this.yi));g.useProgram(this.wa[this.Eg].ah);g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE1);g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE0);this.Fe=this.$d=null;this.Jh&&(g.bindFramebuffer(g.FRAMEBUFFER,
this.Rj),g.bindRenderbuffer(g.RENDERBUFFER,this.Jh),g.renderbufferStorage(g.RENDERBUFFER,g.DEPTH_COMPONENT16,this.width,this.height),this.km||(g.framebufferRenderbuffer(g.FRAMEBUFFER,g.DEPTH_ATTACHMENT,g.RENDERBUFFER,this.Jh),this.km=!0),g.bindRenderbuffer(g.RENDERBUFFER,null),g.bindFramebuffer(g.FRAMEBUFFER,null),this.Mi=null)}};e.prototype.lc=function(){ac(this.xj,this.rn,this.So,this.Tb);$b(this.Tb,this.qh)};e.prototype.translate=function(b,c){if(0!==b||0!==c){this.je[0]=b;this.je[1]=c;this.je[2]=
0;var d=this.Tb,a=this.je,f=a[0],q=a[1],a=a[2];d[12]=d[0]*f+d[4]*q+d[8]*a+d[12];d[13]=d[1]*f+d[5]*q+d[9]*a+d[13];d[14]=d[2]*f+d[6]*q+d[10]*a+d[14];d[15]=d[3]*f+d[7]*q+d[11]*a+d[15]}};e.prototype.scale=function(b,c){if(1!==b||1!==c)this.je[0]=b,this.je[1]=c,this.je[2]=1,$b(this.Tb,this.je)};e.prototype.Oi=function(b){if(0!==b){var c=this.Tb,d,a=Math.sin(b);b=Math.cos(b);var f=c[0],q=c[1],h=c[2],v=c[3],k=c[4],m=c[5],l=c[6],u=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=
c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=f*b+k*a;d[1]=q*b+m*a;d[2]=h*b+l*a;d[3]=v*b+u*a;d[4]=f*-a+k*b;d[5]=q*-a+m*b;d[6]=h*-a+l*b;d[7]=v*-a+u*b}};e.prototype.Vb=function(){if(!m(this.xk,this.Tb)){var b=this.Ib();b.type=5;b.K?Zb(this.Tb,b.K):b.K=Yb(this.Tb);Zb(this.Tb,this.xk);this.fb=!1}};e.prototype.Pi=function(b){this.ca&&(32760<b&&(b=32760),this.Ij=this.xj[2]-this.kj-b*this.St)};p.prototype.Nq=function(){var b=this.A,c=this.p;0!==this.nb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),
b.bindFramebuffer(b.FRAMEBUFFER,c.Rj),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.di=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.di=!1)};p.prototype.Rq=function(){this.A.bindTexture(this.A.TEXTURE_2D,this.oc)};p.prototype.Sq=function(){var b=this.A;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.oc);b.activeTexture(b.TEXTURE0)};p.prototype.Oq=function(){var b=this.Xn,
c=this.p;c.Hh=b;c=c.df;c.wf&&c.xi!==b&&(c.xi=b,this.A.uniform1f(c.wf,b))};p.prototype.Iq=function(){this.A.drawElements(this.A.TRIANGLES,this.Sc,this.A.UNSIGNED_SHORT,this.nb)};p.prototype.Kq=function(){this.A.blendFunc(this.nb,this.Sc)};p.prototype.Tq=function(){var b,c,d,a=this.p.wa,f=this.p.vm;b=0;for(c=a.length;b<c;b++)d=a[b],b===f&&d.ti?(d.Gl(this.K),d.ye=!0):d.ye=!1;Zb(this.K,this.p.Hj)};p.prototype.Jq=function(){var b=this.A,c=this.p;this.oc?(c.Fe===this.oc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,
null),c.Fe=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.Rj),c.di||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.oc,0)):(c.ca||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};p.prototype.Gq=function(){var b=this.A,c=this.nb;0===c?(b.clearColor(this.K[0],this.K[1],this.K[2],this.K[3]),b.clear(b.COLOR_BUFFER_BIT)):1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.K[0],this.K[1],this.K[2],
this.K[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};p.prototype.Mq=function(){var b=this.A;0!==this.nb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};p.prototype.Hq=function(){var b=this.A,c=this.p;c.ca&&b.disable(b.DEPTH_TEST);var d=c.wa[1];b.useProgram(d.ah);!d.ye&&d.ti&&(d.Gl(c.Hj),d.ye=!0);b.enableVertexAttribArray(d.gc);b.bindBuffer(b.ARRAY_BUFFER,c.Uk);b.vertexAttribPointer(d.gc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.nb/
4,this.Sc);d=c.df;b.useProgram(d.ah);0<=d.gc&&(b.enableVertexAttribArray(d.gc),b.bindBuffer(b.ARRAY_BUFFER,c.ph[c.fd]),b.vertexAttribPointer(d.gc,c.ca?3:2,b.FLOAT,!1,0,0));0<=d.ee&&(b.enableVertexAttribArray(d.ee),b.bindBuffer(b.ARRAY_BUFFER,c.hh[c.fd]),b.vertexAttribPointer(d.ee,2,b.FLOAT,!1,0,0));c.ca&&b.enable(b.DEPTH_TEST)};p.prototype.Pq=function(){var b=this.A,c=this.p,d=c.wa[this.nb];c.vm=this.nb;c.df=d;b.useProgram(d.ah);!d.ye&&d.ti&&(d.Gl(c.Hj),d.ye=!0);d.wf&&d.xi!==c.Hh&&(d.xi=c.Hh,b.uniform1f(d.wf,
c.Hh));0<=d.gc&&(b.enableVertexAttribArray(d.gc),b.bindBuffer(b.ARRAY_BUFFER,c.ph[c.fd]),b.vertexAttribPointer(d.gc,c.ca?3:2,b.FLOAT,!1,0,0));0<=d.ee&&(b.enableVertexAttribArray(d.ee),b.bindBuffer(b.ARRAY_BUFFER,c.hh[c.fd]),b.vertexAttribPointer(d.ee,2,b.FLOAT,!1,0,0))};p.prototype.Lq=function(){var b=this.K;this.A.uniform4f(this.p.df.Fk,b[0],b[1],b[2],b[3])};p.prototype.Qq=function(){var b,c,d=this.p.df,a=this.A;b=this.K;d.Lg&&this.p.Fe!==this.oc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
this.oc),this.p.Fe=this.oc,a.activeTexture(a.TEXTURE0));var f=b[0];d.Hk&&f!==d.An&&(d.An=f,a.uniform1f(d.Hk,f));f=b[1];d.Gk&&f!==d.zn&&(d.zn=f,a.uniform1f(d.Gk,f));f=b[2];c=b[3];!d.Le||f===d.un&&c===d.vn||(d.un=f,d.vn=c,a.uniform2f(d.Le,f,c));f=b[4];c=b[5];!d.Ke||f===d.sn&&c===d.tn||(d.sn=f,d.tn=c,a.uniform2f(d.Ke,f,c));f=b[6];d.Kg&&f!==d.xn&&(d.xn=f,a.uniform1f(d.Kg,f));f=b[7];d.Jg&&f!==d.wn&&(d.wn=f,a.uniform1f(d.Jg,f));f=b[8];c=b[9];!d.Og||f===d.En&&c===d.Fn||(d.En=f,d.Fn=c,a.uniform2f(d.Og,f,
c));f=b[10];c=b[11];!d.Mg||f===d.Bn&&c===d.Cn||(d.Bn=f,d.Cn=c,a.uniform2f(d.Mg,f,c));f=b[12];d.Ng&&f!==d.Dn&&(d.Dn=f,a.uniform1f(d.Ng,f));if(d.L.length)for(b=0,c=d.L.length;b<c;b++)f=this.yo[b],f!==d.wk[b]&&(d.wk[b]=f,a.uniform1f(d.L[b][1],f))};e.prototype.Ib=function(){this.dd===this.Md.length&&this.Md.push(new p(0,this));return this.Md[this.dd++]};e.prototype.Td=function(){if(0!==this.dd&&!this.A.isContextLost()){var b=this.A;0<this.Vk&&(b.bindBuffer(b.ARRAY_BUFFER,this.Uk),b.bufferSubData(b.ARRAY_BUFFER,
0,this.bo.subarray(0,this.Vk)),c&&0<=c.gc&&"<point>"===c.name&&b.vertexAttribPointer(c.gc,4,b.FLOAT,!1,0,0));if(0<this.Ed){var c=this.df;b.bindBuffer(b.ARRAY_BUFFER,this.ph[this.fd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.ij.subarray(0,this.Ed));c&&0<=c.gc&&"<point>"!==c.name&&b.vertexAttribPointer(c.gc,this.ca?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.hh[this.fd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Zi.subarray(0,this.Lf));c&&0<=c.ee&&"<point>"!==c.name&&b.vertexAttribPointer(c.ee,2,
b.FLOAT,!1,0,0)}for(var d,b=0,c=this.dd;b<c;b++)switch(d=this.Md[b],d.type){case 1:d.Iq();break;case 2:d.Rq();break;case 3:d.Oq();break;case 4:d.Kq();break;case 5:d.Tq();break;case 6:d.Jq();break;case 7:d.Gq();break;case 8:d.Hq();break;case 9:d.Pq();break;case 10:d.Qq();break;case 11:d.Sq();break;case 12:d.Lq();break;case 13:d.Mq();break;case 14:d.Nq()}this.Vk=this.Lf=this.Ed=this.dd=0;this.di=this.fb=!1;this.fd++;4<=this.fd&&(this.fd=0)}};e.prototype.Se=function(b){if(b!==this.jn&&!this.vg){var c=
this.Ib();c.type=3;this.jn=c.Xn=b;this.fb=!1}};e.prototype.Kb=function(b){if(b!==this.$d){var c=this.Ib();c.type=2;this.$d=c.oc=b;this.fb=!1}};e.prototype.he=function(b,c){if((b!==this.kn||c!==this.hn)&&!this.vg){var d=this.Ib();d.type=4;d.nb=b;d.Sc=c;this.kn=b;this.hn=c;this.fb=!1}};e.prototype.qo=function(){this.he(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};e.prototype.Wg=function(b,c,d,a,f,q,h,v){15992<=this.Ed&&this.Td();var k=this.Ed,m=this.Lf,l=this.ij,u=this.Zi,e=this.Ij;if(this.fb)this.Md[this.dd-
1].Sc+=6;else{var n=this.Ib();n.type=1;n.nb=this.ca?k:k/2*3;n.Sc=6;this.fb=!0}this.ca?(l[k++]=b,l[k++]=c,l[k++]=e,l[k++]=d,l[k++]=a,l[k++]=e,l[k++]=f,l[k++]=q,l[k++]=e,l[k++]=h,l[k++]=v,l[k++]=e):(l[k++]=b,l[k++]=c,l[k++]=d,l[k++]=a,l[k++]=f,l[k++]=q,l[k++]=h,l[k++]=v);u[m++]=0;u[m++]=0;u[m++]=1;u[m++]=0;u[m++]=1;u[m++]=1;u[m++]=0;u[m++]=1;this.Ed=k;this.Lf=m};e.prototype.Wc=function(b,c,d,a,f,q,h,v,k){15992<=this.Ed&&this.Td();var m=this.Ed,l=this.Lf,u=this.ij,e=this.Zi,n=this.Ij;if(this.fb)this.Md[this.dd-
1].Sc+=6;else{var r=this.Ib();r.type=1;r.nb=this.ca?m:m/2*3;r.Sc=6;this.fb=!0}var r=k.left,t=k.top,p=k.right;k=k.bottom;this.ca?(u[m++]=b,u[m++]=c,u[m++]=n,u[m++]=d,u[m++]=a,u[m++]=n,u[m++]=f,u[m++]=q,u[m++]=n,u[m++]=h,u[m++]=v,u[m++]=n):(u[m++]=b,u[m++]=c,u[m++]=d,u[m++]=a,u[m++]=f,u[m++]=q,u[m++]=h,u[m++]=v);e[l++]=r;e[l++]=t;e[l++]=p;e[l++]=t;e[l++]=p;e[l++]=k;e[l++]=r;e[l++]=k;this.Ed=m;this.Lf=l};e.prototype.wb=function(b){if(this.Eg!==b){if(!this.wa[b]){if(0===this.Eg)return;b=0}var c=this.Ib();
c.type=9;this.Eg=c.nb=b;this.fb=!1}};e.prototype.Tg=function(b){b=this.wa[b];return!(!b.Le&&!b.Ke)};e.prototype.Zk=function(b){b=this.wa[b];return!!(b.Le||b.Ke||b.um)};e.prototype.Yk=function(b){return this.wa[b].Ec};e.prototype.mt=function(b){b=this.wa[b];return 0!==b.Pj||0!==b.Qj};e.prototype.Yr=function(b){return this.wa[b].Pj};e.prototype.Zr=function(b){return this.wa[b].Qj};e.prototype.$r=function(b,c){return this.wa[b].L[c][2]};e.prototype.Ki=function(b){return this.wa[b].im};e.prototype.Hf=
function(b,c,d,a,f,q,h,m,k,e,l,u,n,r,t){var p=this.wa[this.Eg],C,z;if(p.vs||t.length){C=this.Ib();C.type=10;C.K?Zb(this.Tb,C.K):C.K=Yb();z=C.K;z[0]=c;z[1]=d;z[2]=a;z[3]=f;z[4]=q;z[5]=h;z[6]=m;z[7]=k;z[8]=e;z[9]=l;z[10]=u;z[11]=n;z[12]=r;p.Lg?C.oc=b:C.oc=null;if(t.length)for(d=C.yo,d.length=t.length,b=0,c=t.length;b<c;b++)d[b]=t[b];this.fb=!1}};e.prototype.clear=function(b,c,d,a){var f=this.Ib();f.type=7;f.nb=0;f.K||(f.K=Yb());f.K[0]=b;f.K[1]=c;f.K[2]=d;f.K[3]=a;this.fb=!1};e.prototype.clearRect=function(b,
c,d,a){if(!(0>d||0>a)){var f=this.Ib();f.type=7;f.nb=1;f.K||(f.K=Yb());f.K[0]=b;f.K[1]=c;f.K[2]=d;f.K[3]=a;this.fb=!1}};e.prototype.to=function(b){if(this.ca&&(b=!!b,this.vg!==b)){var c=this.Ib();c.type=14;c.nb=b?1:0;this.fb=!1;this.vg=b;this.Mi=null;this.vg?this.wb(2):this.wb(0)}};e.prototype.so=function(b){if(this.ca){var c=this.Ib();c.type=13;c.nb=b?1:0;this.fb=!1}};e.prototype.Em=function(){Zb(this.xk,t);this.lc();this.Vb();var b=this.width/2,c=this.height/2;this.Wg(-b,c,b,c,b,-c,-b,-c);Zb(t,
this.Tb);this.Vb()};e.prototype.ro=function(b,c,d){this.wb(3);var a=this.Ib();a.type=12;a.K||(a.K=Yb());a.K[0]=b;a.K[1]=c;a.K[2]=d;a.K[3]=1;this.fb=!1};e.prototype.Ct=function(){this.wb(0)};e.prototype.qt=function(){this.wb(2)};e.prototype.lt=function(){this.Td();this.A.flush()};var r=[],d={};e.prototype.xq=function(){R(r);d={}};e.prototype.si=function(b,c,g,a){c=!!c;g=!!g;var f=b.src+","+c+","+g+(c?",undefined":""),q=null;if("undefined"!==typeof b.src&&d.hasOwnProperty(f))return q=d[f],q.Ah++,q;
this.Td();var h=this.A,m=ha(b.width)&&ha(b.height),q=h.createTexture();h.bindTexture(h.TEXTURE_2D,q);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=h.RGBA,e=h.RGBA,l=h.UNSIGNED_BYTE;if(a&&!this.qd)switch(a){case 1:e=k=h.RGB;break;case 2:l=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:e=k=h.RGB,l=h.UNSIGNED_SHORT_5_6_5}if(!m&&c){a=document.createElement("canvas");a.width=ia(b.width);a.height=ia(b.height);var u=a.getContext("2d");u.webkitImageSmoothingEnabled=
g;u.mozImageSmoothingEnabled=g;u.msImageSmoothingEnabled=g;u.imageSmoothingEnabled=g;u.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);h.texImage2D(h.TEXTURE_2D,0,k,e,l,a)}else h.texImage2D(h.TEXTURE_2D,0,k,e,l,b);c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));g?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,
h.LINEAR),m&&this.ym?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.$d=null;q.pe=b.width;q.oe=b.height;q.Ah=1;q.om=f;r.push(q);return d[f]=q};e.prototype.Qb=function(b,c,d,a){this.Td();var f=this.A;this.qd&&(a=!1);var q=
f.createTexture();f.bindTexture(f.TEXTURE_2D,q);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,c,0,f.RGBA,a?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.$d=null;q.pe=b;q.oe=c;r.push(q);return q};e.prototype.Qt=
function(b,c,d){this.Td();var a=this.A;this.qd&&(d=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}a.bindTexture(a.TEXTURE_2D,null);this.$d=null};e.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Ah&&1<b.Ah?b.Ah--:(this.Td(),b===this.$d&&(this.A.bindTexture(this.A.TEXTURE_2D,
null),this.$d=null),b===this.Fe&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.Fe=null),Ea(r,b),"undefined"!==typeof b.om&&delete d[b.om],this.A.deleteTexture(b)))};e.prototype.mc=function(b){if(b!==this.Mi){var c=this.Ib();c.type=6;this.Mi=c.oc=b;this.fb=!1}};fb=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function m(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.ac=(this.fi=/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.od=!!a.dc;this.Bs="undefined"!==typeof window.AppMobi||this.od;this.$b=!!window.c2cocoonjs;this.Ac=!!window.c2ejecta;this.$b&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Ac&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.ta=this.od||this.$b||this.Ac;this.xg=/edge\//i.test(navigator.userAgent);this.qd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.xg;this.$m=/tizen/i.test(navigator.userAgent);this.Xm=/android/i.test(navigator.userAgent)&&!this.$m&&!this.qd&&!this.xg;this.uk=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.qd&&!this.xg;this.dn=/ipad/i.test(navigator.userAgent);this.ji=this.uk||this.dn||this.Ac;this.Ks=this.uk&&/os\s6/i.test(navigator.userAgent);this.ei=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.qd&&!this.xg;this.Wm=/amazonwebappplatform/i.test(navigator.userAgent);this.Es=/firefox/i.test(navigator.userAgent);this.Hs=/safari/i.test(navigator.userAgent)&&!this.ei&&!this.qd&&!this.xg;this.Gs=this.rd="undefined"!==typeof window.c2nodewebkit||
"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.bn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Js=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.lf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.sk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.an=!!window.cr_windows10;this.rk=this.bn||this.Js||this.sk||
this.an;this.Cs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ym=this.Xm&&!this.ei&&!this.fi&&!this.Es&&!this.Wm&&!this.ta;this.devicePixelRatio=1;this.Xd=this.ac||this.fi||this.Bs||this.$b||this.Xm||this.ji||this.lf||this.sk||this.Cs||this.$m||this.Ac;this.Xd||(this.Xd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.rd||"?nw"!==window.location.search&&
!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.rd=!0);this.Ds="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.yj=document.getElementById("c2canvasdiv");this.p=this.A=null;this.ek="(unavailable)";this.ca=!1;this.te=0;this.U=null;this.Uj="";this.Ph=!1;this.Rn=this.Sn=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();
return!1};this.od&&(window.c2runtime=this);this.rd&&(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.Ym&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.F=this.width;this.D=this.height;this.Fh=this.width;this.eg=this.height;this.Gg=window.innerWidth;this.Fg=window.innerHeight;
this.Lr=!1;this.X=!0;this.yg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ba=[];this.Ak={};this.Cc=[];this.Oj={};this.kd=[];this.Qf=[];this.ej=[];this.qj=[];this.nq=[];this.gn=this.Eo=null;this.qe={};this.ok=this.Wd=!1;this.Bc=0;this.nk=this.qk=!1;this.wc=[];this.wg=!1;this.sd=this.gb=this.pi=this.nl="";this.fh=this.Bo=!1;this.Oh=[];this.Sd=this.se=0;this.Kn=30;this.Gj=this.Pg=0;this.jh=1;this.ec=new Va;this.jj=new Va;this.Di=this.Uh=this.Mh=this.Bd=
this.He=this.Tj=this.ki=0;this.Zf=null;this.Kh=[];this.Nj=[];this.Lh=-1;this.Ik=[[]];this.Bl=this.vi=0;this.al(null);this.kg=this.On=this.Rg=0;this.gh=[];this.yl=this.dl=-1;this.Ag=!0;this.vf=0;this.Ce=!1;this.Ft=0;this.Xf=null;this.cc=this.Mm=!1;this.Qn=new ba;this.Lk=new ba;this.Mk=new ba;this.fl=[];this.Ic=new Xa([]);this.sl=new Xa([]);this.Jd=[];this.$h={};this.Od={};this.Id={};this.Pf={};this.lm={};this.nn=this.oi=this.Ca=this.Ha=this.mn=this.ni=this.R=null;this.Nf=this.tk=!1;this.Vj=[null,null];
this.nd=0;this.vd={};this.dh=this.be=null;this.Co="";this.Ci=[];this.pt()}}function p(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function t(){try{return!!window.indexedDB}catch(a){return!1}}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function d(a,b,c,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=r;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=
c}}catch(l){f(l)}}function b(a,b,c){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;var d=f.transaction(["saves"]).objectStore("saves").get(a);d.onsuccess=function(){d.result?b(d.result.data):b(null)}}}catch(d){c(d)}}function c(){x("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 g(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ba||a[b]&&"undefined"!==typeof a[b].Tu||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;m.prototype.pt=function(){var a=this,b;this.lf?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.bn||this.lf||this.sk||this.an)c=
"data.json";b.open("GET",c,!0);var f=!1;if(!this.ta&&"response"in b&&"responseType"in b)try{b.responseType="json",f="json"===b.responseType}catch(d){f=!1}if(!f&&"responseType"in b)try{b.responseType="text"}catch(l){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.lf?b.onreadystatechange=function(){4===b.readyState&&a.ri(JSON.parse(b.responseText))}:(b.onload=function(){if(f)a.ri(b.response);else if(a.Ac){var c=b.responseText,c=c.substr(c.indexOf("{"));
a.ri(JSON.parse(c))}else a.ri(JSON.parse(b.responseText))},b.onerror=function(a){fa("Error requesting "+c+":");fa(a)});b.send()};m.prototype.ys=function(){var a=this,b,c,f,d,l,h,k,q,g;this.Yd=(!this.ta||this.Ac||this.ac)&&this.Nt&&!this.Ym;0===this.rb&&this.ji&&(this.Yd=!1);this.devicePixelRatio=this.Yd?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Xa();c=!(!this.Lr&&(!this.rj||this.rd||this.rk||this.lf||this.fi||this.ac||this.Wm));
0<this.rb&&this.setSize(e(),n(),!0);try{this.br&&(this.$b||this.Ac||!this.ta)&&(b={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(u){}if(this.A){if(b=this.A.getExtension("WEBGL_debug_renderer_info"))this.ek=this.A.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.ca&&(this.ek+=" [front-to-back enabled]");this.ta||(this.Va=document.createElement("canvas"),
jQuery(this.Va).appendTo(this.canvas.parentNode),this.Va.oncontextmenu=function(){return!1},this.Va.onselectstart=function(){return!1},this.Va.width=Math.round(this.Fh*this.devicePixelRatio),this.Va.height=Math.round(this.eg*this.devicePixelRatio),jQuery(this.Va).css({width:this.Fh+"px",height:this.eg+"px"}),this.eo(),this.Tk=this.Va.getContext("2d"));this.p=new fb(this.A,this.Xd,this.ca);this.p.Te(this.canvas.width,this.canvas.height);this.p.ym=0!==this.Uq;this.U=null;this.canvas.addEventListener("webglcontextlost",
function(b){b.preventDefault();a.Ws();x("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.p.Rm();a.p.Te(a.p.width,a.p.height,!0);a.Ha=null;a.Ca=null;a.Vj[0]=null;a.Vj[1]=null;a.Xs();a.X=!0;x("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(c=this.q.length;b<c;b++)for(l=this.q[b],f=0,d=l.I.length;f<d;f++)k=l.I[f],k.Da=this.p.dk(k.id),k.Ec=this.p.Yk(k.Da),this.Nf=this.Nf||this.p.Tg(k.Da);
b=0;for(c=this.Cc.length;b<c;b++){q=this.Cc[b];f=0;for(d=q.I.length;f<d;f++)k=q.I[f],k.Da=this.p.dk(k.id),k.Ec=this.p.Yk(k.Da);q.Kc();f=0;for(d=q.J.length;f<d;f++){g=q.J[f];l=0;for(h=g.I.length;l<h;l++)k=g.I[l],k.Da=this.p.dk(k.id),k.Ec=this.p.Yk(k.Da),this.Nf=this.Nf||this.p.Tg(k.Da);g.Kc()}}}else{if(0<this.rb&&this.od){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.U=AppMobi.canvas.getContext("2d");try{this.U.samplingMode=this.M?"smooth":
"sharp",this.U.globalScale=1,this.U.HTML5CompatibilityMode=!0,this.U.imageSmoothingEnabled=this.M}catch(m){}0!==this.width&&0!==this.height&&(this.U.width=this.width,this.U.height=this.height)}this.U||(this.$b?(b={antialias:!!this.M,alpha:c},this.U=this.canvas.getContext("2d",b)):(b={alpha:c},this.U=this.canvas.getContext("2d",b)),this.U.webkitImageSmoothingEnabled=this.M,this.U.mozImageSmoothingEnabled=this.M,this.U.msImageSmoothingEnabled=this.M,this.U.imageSmoothingEnabled=this.M);this.Tk=this.Va=
null}this.Ko=function(b){a.$c(!1,b)};window==window.top||this.ta||this.rk||this.lf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.$b&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(x("Reloading for continuous preview"),this.pi="__c2_continuouspreview",this.fh=!0),this.et&&!this.Xd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Pe()});this.ta||(b=function(a){if(eb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",
b));0===this.rb&&this.Yd&&1<this.devicePixelRatio&&this.setSize(this.Ja,this.Ia,!0);this.Po();this.ss();this.go();this.V={}};m.prototype.setSize=function(a,b,c){var f=0,d=0,l=0,h=0,h=0,k=this.Ks&&this.Hs&&!navigator.standalone&&!this.ta&&!this.ac;k&&(b+=60);if(this.Gg!==a||this.Fg!==b||c){this.Gg=a;this.Fg=b;var q=this.rb,g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ce)&&!this.ac;if(g||0!==this.rb||c)g&&0<this.nd&&(q=this.nd),c=
this.devicePixelRatio,4<=q?(l=this.Ja/this.Ia,a/b>l?(l*=b,5===q?(h=l*c/this.Ja,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),l=this.Ja*h/c,h=this.Ia*h/c,f=(a-l)/2,d=(b-h)/2,a=l,b=h):(f=(a-l)/2,a=l)):(h=a/l,5===q?(h=h*c/this.Ia,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),l=this.Ja*h/c,h=this.Ia*h/c,f=(a-l)/2,d=(b-h)/2,a=l):d=(b-h)/2,b=h),g&&!this.rd&&(d=f=0)):this.rd&&this.Ce&&0===this.Fm&&(f=Math.floor((a-this.Ja)/2),d=Math.floor((b-this.Ia)/2),a=this.Ja,b=this.Ia),2>q&&(this.Wf=c),this.Yd&&this.dn&&
1<c&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.Fh=Math.round(a),this.eg=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.X=!0,this.bp?(this.F=this.width,this.D=this.height,this.Rb=!0):this.width<this.Ja&&this.height<this.Ia||1===q?(this.F=this.width,this.D=this.height,this.Rb=!0):(this.F=this.Ja,this.D=this.Ia,this.Rb=!1,2===q?(l=this.Ja/this.Ia,q=this.Gg/this.Fg,q<l?this.F=this.D*q:q>l&&(this.D=this.F/q)):3===q&&(l=this.Ja/this.Ia,q=this.Gg/this.Fg,q>l?this.F=this.D*q:q<
l&&(this.D=this.F/q))),this.yj&&!this.ta&&(jQuery(this.yj).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*c),this.Ac?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(b)+"px"):this.Yd&&!this.ta&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Va&&(this.Va.width=Math.round(a*c),this.Va.height=Math.round(b*c),this.Va.style.width=this.Fh+"px",this.Va.style.height=this.eg+"px"),this.p&&this.p.Te(Math.round(a*c),Math.round(b*c)),this.od&&this.U&&(this.U.width=Math.round(a),this.U.height=Math.round(b)),this.U&&(this.U.webkitImageSmoothingEnabled=this.M,this.U.mozImageSmoothingEnabled=
this.M,this.U.msImageSmoothingEnabled=this.M,this.U.imageSmoothingEnabled=this.M),this.Po(),this.ta||!k&&!this.uk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};m.prototype.Po=function(){if(this.pq&&0!==this.Sk){var a="portrait";2===this.Sk&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):
screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};m.prototype.Ws=function(){this.p.xq();this.tk=!0;var a,b,c;a=0;for(b=this.q.length;a<b;a++)c=this.q[a],c.Ei&&c.Ei()};m.prototype.Xs=function(){this.tk=!1;var a,b,c;a=0;for(b=this.q.length;a<b;a++)c=this.q[a],c.Qk&&c.Qk()};m.prototype.eo=function(){if(!this.ta){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||
this.Ce)&&!this.ac?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Va).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;m.prototype.setSuspended=function(a){var b;if(a&&!this.yg)for(x("[Construct 2] Suspending"),this.yg=!0,-1!==this.dl&&f&&f(this.dl),-1!==this.yl&&clearTimeout(this.yl),a=0,b=this.gh.length;a<b;a++)this.gh[a](!0);else if(!a&&
this.yg){x("[Construct 2] Resuming");this.yg=!1;this.ki=Ra();this.He=Ra();a=this.Pg=this.Uh=0;for(b=this.gh.length;a<b;a++)this.gh[a](!1);this.$c(!1)}};m.prototype.mq=function(a){this.gh.push(a)};m.prototype.Gd=function(a){return this.Ci[a]};m.prototype.ri=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Dm=a[1];this.rb=a[12];this.Fm=a[12];this.Ja=a[10];this.Ia=a[11];this.Yn=this.Ja/2;this.Zn=this.Ia/2;this.ta&&!this.Ac&&(4<=a[12]||0===a[12])&&(x("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Fm=this.rb=3);this.Il=a[18];this.de=a[19];if(0===this.de){var b=new Image;b.crossOrigin="anonymous";b.src="loading-logo.png";this.be={wi:b}}else if(4===this.de){b=new Image;b.src="";var c=new Image;c.src="";var f=new Image;f.src="";var d=new Image;d.src="";var l=new Image;l.src="";var h=new Image;h.src="";var k=new Image;k.src="";var q=new Image;q.src="";var g=new Image;g.src="";var u=new Image;u.src="";var m=new Image;m.src="";var v=new Image;v.src="";this.be={wi:[b,c,f,d],it:[l,h,k,q],Rt:[g,
u,m,v]}}this.Rg=a[21];this.Ci=cc();this.Zc=new X(this);b=0;for(c=a[2].length;b<c;b++)k=a[2][b],f=this.Gd(k[0]),gb(k,f.prototype),q=new f(this),q.Ti=k[1],q.Zd=k[2],q.Ln=k[9],q.W&&q.W(),this.plugins.push(q);this.Ci=cc();b=0;for(c=a[3].length;b<c;b++){k=a[3][b];l=this.Gd(k[1]);q=null;f=0;for(d=this.plugins.length;f<d;f++)if(this.plugins[f]instanceof l){q=this.plugins[f];break}g=new q.Oa(q);g.name=k[0];g.G=k[2];g.lk=k[3].slice(0);g.Pt=k[3].length;g.qq=k[4];g.Mr=k[5];g.O=k[11];g.G?(g.zf=[],g.ld=this.kg++,
g.ma=null):(g.zf=null,g.ld=-1,g.ma=[]);g.Nh=null;g.gf=null;g.zm=null;g.Fb=!1;g.zb=null;k[6]?(g.tl=k[6][0],g.ul=k[6][1],g.wl=k[6][2]):(g.tl=null,g.ul=0,g.wl=0);k[7]?g.qb=k[7]:g.qb=null;g.index=b;g.i=[];g.Ih=[];g.zd=[new hb(g)];g.Oc=0;g.Zb=null;g.Cq=0;g.Kf=!0;g.fj=ib;g.Rr=jb;g.Xr=kb;g.Y=lb;g.Vg=mb;g.$k=nb;g.Df=ob;g.Vh=pb;g.Xj=qb;g.Zj=rb;g.Kd=sb;g.ak=tb;g.Dh=new Ya(this.Ja,this.Ia);g.sh=!0;g.uh=!1;g.V={};g.toString=ub;g.Ba=[];f=0;for(d=k[8].length;f<d;f++){u=k[8][f];m=this.Gd(u[1]);v=null;l=0;for(h=
this.Ba.length;l<h;l++)if(this.Ba[l]instanceof m){v=this.Ba[l];break}v||(v=new m(this),v.Bi=[],v.Kk=new ba,v.W&&v.W(),this.Ba.push(v),dc&&v instanceof dc&&(this.Eo=v),Vb.Ms&&v instanceof Vb.Ms&&(this.gn=v));-1===v.Bi.indexOf(g)&&v.Bi.push(g);l=new v.Oa(v,g);l.name=u[0];l.O=u[2];l.W();g.Ba.push(l)}g.global=k[9];g.pk=k[10];g.I=[];f=0;for(d=k[12].length;f<d;f++)g.I.push({id:k[12][f][0],name:k[12][f][1],Da:-1,Ec:!1,Ob:!0,index:f});g.qv=k[13];this.Il&&!g.G&&!g.pk&&q.Zd||g.W();g.name&&(this.types[g.name]=
g);this.q.push(g);q.Ti&&(f=new q.ya(g),f.uid=this.Rg++,f.jo=this.On++,f.ze=0,f.og=vb,f.toString=wb,f.N=k[14],f.W(),g.i.push(f),this.vd[f.uid.toString()]=f)}b=0;for(c=a[4].length;b<c;b++)for(l=a[4][b],h=this.q[l[0]],f=1,d=l.length;f<d;f++)k=this.q[l[f]],k.ma.push(h),h.zf.push(k);b=0;for(c=a[28].length;b<c;b++){l=a[28][b];h=[];f=0;for(d=l.length;f<d;f++)h.push(this.q[l[f]]);f=0;for(d=h.length;f<d;f++)h[f].Fb=!0,h[f].zb=h}if(0<this.kg)for(b=0,c=this.q.length;b<c;b++)if(k=this.q[b],!k.G&&k.ma.length){k.Nh=
Array(this.kg);k.gf=Array(this.kg);k.zm=Array(this.kg);g=[];f=v=m=u=0;for(d=k.ma.length;f<d;f++)for(q=k.ma[f],k.Nh[q.ld]=u,u+=q.Pt,k.gf[q.ld]=m,m+=q.qq,k.zm[q.ld]=v,v+=q.Mr,l=0,h=q.I.length;l<h;l++)g.push(ua({},q.I[l]));k.I=g.concat(k.I);f=0;for(d=k.I.length;f<d;f++)k.I[f].index=f}b=0;for(c=a[5].length;b<c;b++)k=a[5][b],f=new xb(this,k),this.Ak[f.name]=f,this.Cc.push(f);b=0;for(c=a[6].length;b<c;b++)k=a[6][b],f=new yb(this,k),this.Oj[f.name]=f,this.kd.push(f);b=0;for(c=this.kd.length;b<c;b++)this.kd[b].za();
b=0;for(c=this.kd.length;b<c;b++)this.kd[b].Fl();b=0;for(c=this.ej.length;b<c;b++)this.ej[b].za();R(this.ej);this.oq=a[7];this.Dc=a[9];this.Wf=1;this.br=a[13];this.M=a[14];this.rj=a[15];this.Nt=a[17];this.Sk=a[20];this.pq=0<this.Sk;this.et=a[22];this.Rb=this.bp=a[23];this.Uq=a[24];this.jt=a[25];this.ca=a[27]&&!this.qd;this.Ui=Date.now();R(this.Ci);this.ys()};var q=!1;m.prototype.$o=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){q=a.nm=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",b)};this.Ac?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(c){q=a.nm=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",a.src=b));this.Qf.push(a)};m.prototype.Kr=function(a){var b,c;b=0;for(c=this.Qf.length;b<c;b++)if(this.Qf[b].yq===a)return this.Qf[b];return null};var h=0,v=!1;m.prototype.ss=function(){this.Xf&&(h=this.Xf.nv(this.oq))};m.prototype.jm=function(){var a=
h,b=0,c=0,f=!0,d,l,c=0;for(d=this.Qf.length;c<d;c++){l=this.Qf[c];var k=l.rm;if(!k||0>=k)k=5E4;a+=k;l.src&&(l.complete||l.loaded)&&!l.nm?b+=k:f=!1}f&&this.jt&&this.Xf&&(v||(this.Xf.ov(),v=!0),c=this.Xf.Yu(),b+=c,c<h&&(f=!1));this.Fc=0==a?1:b/a;return f};var k=!1;m.prototype.go=function(){if(this.U||this.p){var b=this.U||this.Tk;this.Va&&this.eo();this.Fc=0;this.ln=-1;var c=this;if(this.jm()&&(4!==this.de||k))this.ts();else{var f=Date.now()-this.Ui;if(b){var d=this.width,l=this.height,h=this.devicePixelRatio;
if(3>this.de&&(this.$b||500<=f&&this.ln!=this.Fc)){b.clearRect(0,0,d,l);var f=d/2,l=l/2,d=0===this.de&&this.be.wi.complete,g=40*h,u=0,m=80*h,v;if(d){var e=this.be.wi,m=e.width*h;v=e.height*h;g=m/2;u=v/2;b.drawImage(e,N(f-g),N(l-u),m,v)}1>=this.de?(f=N(f-g)+.5,l=N(l+(u+(d?12*h:0)))+.5,b.fillStyle=q?"red":"DodgerBlue",b.fillRect(f,l,Math.floor(m*this.Fc),6*h),b.strokeStyle="black",b.strokeRect(f,l,m,6*h),b.strokeStyle="white",b.strokeRect(f-1*h,l-1*h,m+2*h,8*h)):2===this.de&&(b.font=this.Ac?"12pt ArialMT":
"12pt Arial",b.fillStyle=q?"#f00":"#999",b.pv="middle",h=Math.round(100*this.Fc)+"%",d=b.measureText?b.measureText(h):null,b.fillText(h,f-(d?d.width:0)/2,l));this.ln=this.Fc}else if(4===this.de){this.Zq(b);a?a(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.$b?10:100)}}};var H=-1,l="undefined"===typeof cr_is_preview?200:0,u=!0,ta=!1,ka=0,P=0,Q="undefined"===typeof cr_is_preview?3E3:0,C=null,z=null,G=0;m.prototype.Zq=function(a){if(!k){for(var b=Math.ceil(this.width),
c=Math.ceil(this.height),f=this.be.wi,d=this.be.it,h=this.be.Rt,g=0;4>g;++g)if(!f[g].complete||!d[g].complete||!h[g].complete)return;0===G&&(H=Date.now());var g=Date.now(),m=!1,v=a,e,n;u||ta?(a.clearRect(0,0,b,c),C&&C.width===b&&C.height===c||(C=document.createElement("canvas"),C.width=b,C.height=c,z=C.getContext("2d")),v=z,m=!0,u&&1===G&&(H=Date.now())):a.globalAlpha=1;v.fillStyle="#333333";v.fillRect(0,0,b,c);256<this.eg?(e=Fa(.22*c,105,.6*b),n=.25*e,v.drawImage(p(d,e),.5*b-e/2,.2*c-n/2,e,n),n=
e=Math.min(.395*c,.95*b),v.drawImage(p(f,e),.5*b-e/2,.485*c-n/2,e,n),e=Fa(.22*c,105,.6*b),n=.25*e,v.drawImage(p(h,e),.5*b-e/2,.868*c-n/2,e,n),v.fillStyle="#3C3C3C",e=b,n=Math.max(.005*c,2),v.fillRect(0,.8*c-n/2,e,n),v.fillStyle=q?"red":"#E0FF65",e=b*this.Fc,v.fillRect(.5*b-e/2,.8*c-n/2,e,n)):(n=e=.55*c,v.drawImage(p(f,e),.5*b-e/2,.45*c-n/2,e,n),v.fillStyle="#3C3C3C",e=b,n=Math.max(.005*c,2),v.fillRect(0,.85*c-n/2,e,n),v.fillStyle=q?"red":"#E0FF65",e=b*this.Fc,v.fillRect(.5*b-e/2,.85*c-n/2,e,n));m&&
(u?a.globalAlpha=0===G?0:Math.min((g-H)/300,1):ta&&(a.globalAlpha=Math.max(1-(g-P)/300,0)),a.drawImage(C,0,0,b,c));u&&300<=g-H&&2<=G&&(u=!1,ka=g);!u&&g-ka>=Q&&!ta&&1<=this.Fc&&(ta=!0,P=g);if(ta&&g-P>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.Fc&&500>Date.now()-H)k=!0,ta=u=!1,this.be=z=C=null;++G}};m.prototype.ts=function(){this.Va&&(this.canvas.parentNode.removeChild(this.Va),this.Va=this.Tk=null);this.Ui=Date.now();this.He=Ra();var a,b,c;if(this.Il)for(a=0,b=this.q.length;a<b;a++)c=this.q[a],
c.G||c.pk||!c.ja.Zd||c.W();else this.Ag=!1;a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].zq();2<=this.rb&&(a=this.Ja/this.Ia,b=this.width/this.height,this.Wf=2!==this.rb&&b>a||2===this.rb&&b<a?this.height/this.Ia:this.width/this.Ja);this.Dm?this.Ak[this.Dm].ql():this.Cc[0].ql();this.Il||(this.vf=1,this.trigger(X.prototype.j.Sl,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.q.length;a<b;a++)c=this.q[a],c.Vs&&c.Vs();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.$c(!1);this.od&&AppMobi.webview.execute("onGameReady();")};m.prototype.$c=function(b,c,f){if(this.R){var d=Ra();if(f||!this.yg||b){b||(a?this.dl=a(this.Ko):this.yl=setTimeout(this.Ko,this.Xd?1:16));c=c||d;var l=this.rb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ac)||this.Ce)&&0<this.nd&&(l=this.nd);0<l&&(!this.ji||window.self!==window.top)&&(l=window.innerHeight,
this.Gg===window.innerWidth&&this.Fg===l||this.setSize(e(),n()));this.ta||(f?(this.Ph||(this.Uj=jQuery(this.canvas).css("margin")||"0",this.Ph=!0),this.ei||this.rd||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.Ph?(this.ei||this.rd||jQuery(this.canvas).css("margin",this.Uj),this.Uj="",this.Ph=!1,0===this.rb&&this.setSize(Math.round(this.Sn/this.devicePixelRatio),
Math.round(this.Rn/this.devicePixelRatio),!0)):(this.Sn=this.width,this.Rn=this.height));this.Ag&&(f=this.jm(),this.vf=this.Fc,f&&(this.Ag=!1,this.Fc=1,this.trigger(X.prototype.j.Sl,null)));this.Qs(c);!this.X&&!this.$b||this.tk||this.fh||b||(this.X=!1,this.p?this.Ab():this.Pc(),this.dh&&(this.canvas&&this.canvas.toDataURL&&(this.Co=this.canvas.toDataURL(this.dh[0],this.dh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Co),this.trigger(X.prototype.j.vp,null)),this.dh=null));this.Zu||(this.Bd++,
this.Mh++,this.Uh++);this.Pg+=Ra()-d}}};m.prototype.Qs=function(a){var b,c,f,d,l,h,k,g;1E3<=a-this.He&&(this.He+=1E3,1E3<=a-this.He&&(this.He=a),this.Tj=this.Uh,this.Uh=0,this.Gj=this.Pg,this.Pg=0);0!==this.ki&&(b=a-this.ki,0>b&&(b=0),this.Sd=b/1E3,.5<this.Sd?this.Sd=0:this.Sd>1/this.Kn&&(this.Sd=1/this.Kn));this.ki=a;this.se=this.Sd*this.jh;this.ec.add(this.se);this.jj.add(this.Sd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ce)&&
!this.ac;2<=this.rb||a&&0<this.nd?(b=this.Ja/this.Ia,c=this.width/this.height,f=this.rb,a&&0<this.nd&&(f=this.nd),this.Wf=2!==f&&c>b||2===f&&c<b?this.height/this.Ia:this.width/this.Ja,this.R&&(this.R.oo(this.R.scrollX),this.R.po(this.R.scrollY))):this.Wf=this.Yd?this.devicePixelRatio:1;this.Xa();this.Bc++;this.Zc.ut();this.Bc--;this.Xa();this.Bc++;c=this.Qn.ke();a=0;for(b=c.length;a<b;a++)c[a].iv();a=0;for(b=this.q.length;a<b;a++)if(h=this.q[a],!h.G&&(h.Ba.length||h.ma.length))for(c=0,f=h.i.length;c<
f;c++)for(k=h.i[c],d=0,l=k.H.length;d<l;d++)k.H[d].$c();a=0;for(b=this.q.length;a<b;a++)if(h=this.q[a],!h.G&&(h.Ba.length||h.ma.length))for(c=0,f=h.i.length;c<f;c++)for(k=h.i[c],d=0,l=k.H.length;d<l;d++)g=k.H[d],g.fo&&g.fo();c=this.Lk.ke();a=0;for(b=c.length;a<b;a++)c[a].$c();this.Bc--;this.us();for(a=0;this.Zf&&10>a++;)this.xm(this.Zf);a=0;for(b=this.kd.length;a<b;a++)this.kd[a].hk=!1;this.R.ue&&this.R.ue.La();R(this.fl);this.Bc++;a=0;for(b=this.q.length;a<b;a++)if(h=this.q[a],!h.G&&(h.Ba.length||
h.ma.length))for(c=0,f=h.i.length;c<f;c++)for(k=h.i[c],d=0,l=k.H.length;d<l;d++)g=k.H[d],g.xl&&g.xl();c=this.Mk.ke();a=0;for(b=c.length;a<b;a++)c[a].xl();this.Bc--};m.prototype.Pe=function(){var a,b,c,f,d,l,h,k,g;a=0;for(b=this.q.length;a<b;a++)if(h=this.q[a],!h.G)for(c=0,f=h.i.length;c<f;c++)if(k=h.i[c],k.Pe&&k.Pe(),k.H)for(d=0,l=k.H.length;d<l;d++)g=k.H[d],g.Pe&&g.Pe()};m.prototype.xm=function(a){var b=this.R;this.R.Gt();var c,f,d,l,h,k,g;if(this.p)for(c=0,f=this.q.length;c<f;c++)h=this.q[c],h.G||
!h.El||h.global&&0!==h.i.length||-1!==a.tg.indexOf(h)||h.El();b==a&&R(this.Zc.Nb);R(this.fl);a.ql();c=0;for(f=this.q.length;c<f;c++)if(h=this.q[c],h.global||h.ja.Ti)for(a=0,b=h.i.length;a<b;a++)if(k=h.i[a],k.Pk&&k.Pk(),k.H)for(d=0,l=k.H.length;d<l;d++)g=k.H[d],g.Pk&&g.Pk();this.X=!0;this.Xa()};m.prototype.Lo=function(a){this.Lk.add(a)};m.prototype.Ht=function(a){this.Mk.add(a)};m.prototype.Wh=function(a){return a&&-1!==a.Qg?this.Sd*a.Qg:this.se};m.prototype.Pc=function(){this.R.Pc(this.U);this.od&&
this.U.present()};m.prototype.Ab=function(){this.ca&&(this.te=1,this.R.re(this.p));this.R.Ab(this.p);this.p.lt()};m.prototype.kq=function(a){a&&this.Kh.push(a)};m.prototype.ot=function(a){Ea(this.Kh,a)};m.prototype.Yh=function(a){a=a.toString();return this.vd.hasOwnProperty(a)?this.vd[a]:null};var K=[];m.prototype.Ye=function(a){var b,c;b=a.type.name;var f=null;if(this.qe.hasOwnProperty(b)){if(f=this.qe[b],f.contains(a))return}else f=K.length?K.pop():new ba,this.qe[b]=f;f.add(a);this.Wd=!0;if(a.Fb)for(b=
0,c=a.siblings.length;b<c;b++)this.Ye(a.siblings[b]);this.ok&&f.Of.push(a);this.nk||(this.Bc++,this.trigger(Object.getPrototypeOf(a.type.ja).j.wp,a),this.Bc--)};m.prototype.Xa=function(){if(this.Wd){var a,b,c,f,d,h;this.ok=!0;c=0;for(d=this.wc.length;c<d;++c)for(a=this.wc[c],b=a.type,b.i.push(a),f=0,h=b.ma.length;f<h;++f)b.ma[f].i.push(a),b.ma[f].Kf=!0;R(this.wc);this.rp();Qa(this.qe);this.Wd=this.ok=!1}};m.prototype.rp=function(){for(var a in this.qe)this.qe.hasOwnProperty(a)&&this.gp(this.qe[a])};
m.prototype.gp=function(a){var b=a.ke(),c=b[0].type,f,d,h,l,k,g;Sa(c.i,a);c.Kf=!0;0===c.i.length&&(c.uh=!1);f=0;for(d=c.ma.length;f<d;++f)g=c.ma[f],Sa(g.i,a),g.Kf=!0;f=0;for(d=this.Zc.Nb.length;f<d;++f)if(k=this.Zc.Nb[f],k.Mb.hasOwnProperty(c.index)&&Sa(k.Mb[c.index].Be,a),!c.G)for(h=0,l=c.ma.length;h<l;++h)g=c.ma[h],k.Mb.hasOwnProperty(g.index)&&Sa(k.Mb[g.index].Be,a);if(k=b[0].k){if(k.Wb)for(h=k.i,f=0,d=h.length;f<d;++f)l=h[f],a.contains(l)&&(l.ba(),k.Wa.update(l,l.ub,null),l.ub.set(0,0,-1,-1));
Sa(k.i,a);k.Yg(0)}for(f=0;f<b.length;++f)this.fp(b[f],c);a.clear();K.push(a);this.X=!0};m.prototype.fp=function(a,b){var c,f,d;c=0;for(f=this.Kh.length;c<f;++c)this.Kh[c](a);a.Pd&&b.Dh.update(a,a.Pd,null);(c=a.k)&&c.Ff(a,!0);if(a.H)for(c=0,f=a.H.length;c<f;++c)d=a.H[c],d.Cf&&d.Cf(),d.behavior.Kk.remove(a);this.Qn.remove(a);this.Lk.remove(a);this.Mk.remove(a);a.Cf&&a.Cf();this.vd.hasOwnProperty(a.uid.toString())&&delete this.vd[a.uid.toString()];this.Di--;100>b.Ih.length&&b.Ih.push(a)};m.prototype.tm=
function(a,b,c,f){if(a.G){var d=N(Math.random()*a.zf.length);return this.tm(a.zf[d],b,c,f)}return a.Zb?this.Qd(a.Zb,b,!1,c,f,!1):null};var da=[];m.prototype.Qd=function(a,b,c,f,d,h){var l,k,g,q;if(!a)return null;var u=this.q[a[1]],m=u.ja.Zd;if(this.Ag&&m&&!u.pk||m&&!this.p&&11===a[0][11])return null;var v=b;m||(b=null);var e;u.Ih.length?(e=u.Ih.pop(),e.Ub=!0,u.ja.ya.call(e,u)):(e=new u.ja.ya(u),e.Ub=!1);!c||h||this.vd.hasOwnProperty(a[2].toString())?e.uid=this.Rg++:e.uid=a[2];this.vd[e.uid.toString()]=
e;e.jo=this.On++;e.ze=u.i.length;l=0;for(k=this.wc.length;l<k;++l)this.wc[l].type===u&&e.ze++;e.og=vb;e.toString=wb;g=a[3];if(e.Ub)Qa(e.V);else{e.V={};if("undefined"!==typeof cr_is_preview)for(e.Um=[],e.Um.length=g.length,l=0,k=g.length;l<k;l++)e.Um[l]=g[l][1];e.Ga=[];e.Ga.length=g.length}l=0;for(k=g.length;l<k;l++)e.Ga[l]=g[l][0];if(m){var n=a[0];e.x=ga(f)?n[0]:f;e.y=ga(d)?n[1]:d;e.z=n[2];e.width=n[3];e.height=n[4];e.depth=n[5];e.m=n[6];e.opacity=n[7];e.sb=n[8];e.tb=n[9];e.Ya=n[10];l=n[11];!this.p&&
u.I.length&&(e.Ya=l);e.$f=$a(e.Ya);this.A&&bb(e,e.Ya,this.A);if(e.Ub){l=0;for(k=n[12].length;l<k;l++)for(g=0,q=n[12][l].length;g<q;g++)e.ra[l][g]=n[12][l][g];e.qa.set(0,0,0,0);e.Pd.set(0,0,-1,-1);e.ub.set(0,0,-1,-1);e.kb.Zg(e.qa);R(e.vj)}else{e.ra=n[12].slice(0);l=0;for(k=e.ra.length;l<k;l++)e.ra[l]=n[12][l].slice(0);e.Q=[];e.Hd=[];e.Hd.length=u.I.length;e.qa=new O(0,0,0,0);e.Pd=new O(0,0,-1,-1);e.ub=new O(0,0,-1,-1);e.kb=new ra;e.vj=[];e.u=zb;e.Su=Ab;e.mb=Bb;e.ba=Cb;e.Mt=Db;e.Xo=Eb;e.Rc=Fb}e.ih=
!1;e.Kt=0;e.Jt=0;e.It=null;14===n.length&&(e.ih=!0,e.Kt=n[13][0],e.Jt=n[13][1],e.It=n[13][2]);l=0;for(k=u.I.length;l<k;l++)e.Hd[l]=!0;e.xd=!0;e.Kc=Gb;e.Kc();e.Yo=!!e.Q.length;e.uj=!0;e.zj=!0;u.sh=!0;e.visible=!0;e.Qg=-1;e.k=b;e.Lc=b.i.length;e.te=0;"undefined"===typeof e.T&&(e.T=null);this.X=e.ed=!0}var r;R(da);l=0;for(k=u.ma.length;l<k;l++)da.push.apply(da,u.ma[l].Ba);da.push.apply(da,u.Ba);if(e.Ub)for(l=0,k=da.length;l<k;l++){var H=da[l];r=e.H[l];r.Ub=!0;H.behavior.ya.call(r,H,e);n=a[4][l];g=0;
for(q=n.length;g<q;g++)r.N[g]=n[g];r.W();H.behavior.Kk.add(e)}else for(e.H=[],l=0,k=da.length;l<k;l++)H=da[l],r=new H.behavior.ya(H,e),r.Ub=!1,r.N=a[4][l].slice(0),r.W(),e.H.push(r),H.behavior.Kk.add(e);n=a[5];if(e.Ub)for(l=0,k=n.length;l<k;l++)e.N[l]=n[l];else e.N=n.slice(0);this.wc.push(e);this.Wd=!0;b&&(b.Vf(e,!0),1!==b.ic||1!==b.jc)&&(u.uh=!0);this.Di++;if(u.Fb){if(e.Fb=!0,e.Ub?R(e.siblings):e.siblings=[],!c&&!h){l=0;for(k=u.zb.length;l<k;l++)if(u.zb[l]!==u){if(!u.zb[l].Zb)return null;e.siblings.push(this.Qd(u.zb[l].Zb,
v,!1,m?e.x:f,m?e.y:d,!0))}l=0;for(k=e.siblings.length;l<k;l++)for(e.siblings[l].siblings.push(e),g=0;g<k;g++)l!==g&&e.siblings[l].siblings.push(e.siblings[g])}}else e.Fb=!1,e.siblings=null;e.W();l=0;for(k=e.H.length;l<k;l++)e.H[l].ht&&e.H[l].ht();return e};m.prototype.bk=function(a){var b,c;b=0;for(c=this.R.J.length;b<c;b++){var f=this.R.J[b];if(db(f.name,a))return f}return null};m.prototype.mg=function(a){a=N(a);0>a&&(a=0);a>=this.R.J.length&&(a=this.R.J.length-1);return this.R.J[a]};m.prototype.Ej=
function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Y().ka=!0};m.prototype.Vg=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Vg()};m.prototype.$k=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].$k()};m.prototype.Df=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Df()};m.prototype.Uo=function(a){if(a.sh){var b,c,f=a.i;b=0;for(c=f.length;b<c;++b)f[b].Xo();f=this.wc;b=0;for(c=f.length;b<c;++b)f[b].type===a&&f[b].Xo();a.sh=!1}};m.prototype.Pr=function(a,b,c,f){var d,l,h=a?1!==a.ic||1!==a.jc:
!1;if(b.G)for(a=0,d=b.zf.length;a<d;++a)l=b.zf[a],h||l.uh?Ca(f,l.i):(this.Uo(l),l.Dh.Li(c,f));else h||b.uh?Ca(f,b.i):(this.Uo(b),b.Dh.Li(c,f))};m.prototype.Lm=function(a,b,c,f){var d,l;d=0;for(l=b.length;d<l;++d)this.Pr(a,b[d],c,f)};m.prototype.as=function(a,b,c){var f=this.Eo;f&&this.Lm(a,f.Bi,b,c)};m.prototype.Vr=function(a,b,c){var f=this.gn;f&&this.Lm(a,f.Bi,b,c)};m.prototype.Yi=function(a,b,c){var f=a.Y(),d,l,h,k,g,q;if(f.ka)for(f.ka=!1,R(f.i),d=0,k=a.i.length;d<k;d++)h=a.i[d],h.ba(),g=h.k.lb(b,
c,!0),q=h.k.lb(b,c,!1),h.mb(g,q)&&f.i.push(h);else{d=l=0;for(k=f.i.length;d<k;d++)h=f.i[d],h.ba(),g=h.k.lb(b,c,!0),q=h.k.lb(b,c,!1),h.mb(g,q)&&(f.i[l]=f.i[d],l++);f.i.length=l}a.Kd();return f.gk()};m.prototype.xb=function(a,b){if(!(a&&b&&a!==b&&a.ed&&b.ed))return!1;a.ba();b.ba();var c=a.k,f=b.k,d,l,h,k,g,q,e,u;if(c===f||c.ic===f.ic&&f.jc===f.jc&&c.scale===f.scale&&c.m===f.m&&c.Mc===f.Mc){if(!a.qa.zs(b.qa)||!a.kb.Vm(b.kb)||a.ih&&b.ih)return!1;if(a.ih)return this.Ho(a,b);if(b.ih)return this.Ho(b,a);
e=a.T&&!a.T.nf();d=b.T&&!b.T.nf();if(!e&&!d)return!0;e?(a.T.cf(a.width,a.height,a.m),e=a.T):(this.Ic.If(a.kb,a.x,a.y,a.width,a.height),e=this.Ic);d?(b.T.cf(b.width,b.height,b.m),u=b.T):(this.Ic.If(b.kb,b.x,b.y,b.width,b.height),u=this.Ic);return e.ug(u,b.x-a.x,b.y-a.y)}e=a.T&&!a.T.nf();d=b.T&&!b.T.nf();e?(a.T.cf(a.width,a.height,a.m),this.Ic.wo(a.T)):this.Ic.If(a.kb,a.x,a.y,a.width,a.height);e=this.Ic;d?(b.T.cf(b.width,b.height,b.m),this.sl.wo(b.T)):this.sl.If(b.kb,b.x,b.y,b.width,b.height);u=this.sl;
d=0;for(l=e.Gc;d<l;d++)h=2*d,k=h+1,g=e.Ka[h],q=e.Ka[k],e.Ka[h]=c.na(g+a.x,q+a.y,!0),e.Ka[k]=c.na(g+a.x,q+a.y,!1);e.ba();d=0;for(l=u.Gc;d<l;d++)h=2*d,k=h+1,g=u.Ka[h],q=u.Ka[k],u.Ka[h]=f.na(g+b.x,q+b.y,!0),u.Ka[k]=f.na(g+b.x,q+b.y,!1);u.ba();return e.ug(u,0,0)};var ea=new ra;new O(0,0,0,0);var J=[];m.prototype.Ho=function(a,b){var c,f,d,l,h=b.qa,k=a.x,g=a.y;a.Wu(h,J);var q=b.T&&!b.T.nf();c=0;for(f=J.length;c<f;++c)if(d=J[c],l=d.lv,h.As(l,k,g)&&(ea.Zg(l),ea.offset(k,g),ea.Vm(b.kb)))if(q)if(b.T.cf(b.width,
b.height,b.m),d.Wk){if(d.Wk.ug(b.T,b.x-(k+l.left),b.y-(g+l.top)))return R(J),!0}else{if(this.Ic.If(ea,0,0,l.right-l.left,l.bottom-l.top),this.Ic.ug(b.T,b.x,b.y))return R(J),!0}else if(d.Wk){if(this.Ic.If(b.kb,0,0,b.width,b.height),d.Wk.ug(this.Ic,-(k+l.left),-(g+l.top)))return R(J),!0}else return R(J),!0;R(J);return!1};m.prototype.Qo=function(a,b){if(!b)return!1;var c,f,d,l,h;c=0;for(f=a.Ba.length;c<f;c++)if(a.Ba[c].behavior instanceof b)return!0;if(!a.G)for(c=0,f=a.ma.length;c<f;c++)for(h=a.ma[c],
d=0,l=h.Ba.length;d<l;d++)if(h.Ba[d].behavior instanceof b)return!0;return!1};m.prototype.Cl=function(a){return this.Qo(a,Vb.ru)};m.prototype.Dl=function(a){return this.Qo(a,Vb.su)};var D=[];m.prototype.Sa=function(a){var b,c,f;a.ba();this.as(a.k,a.qa,D);b=0;for(c=D.length;b<c;++b)if(f=D[b],f.V.solidEnabled&&this.xb(a,f))return R(D),f;R(D);return null};var za=[];m.prototype.Ad=function(a,b){var c=null;b&&(c=za,R(c));a.ba();this.Vr(a.k,a.qa,D);var f,d,l;f=0;for(d=D.length;f<d;++f)if(l=D[f],l.V.jumpthruEnabled&&
this.xb(a,l))if(b)c.push(l);else return R(D),l;R(D);return c};m.prototype.kc=function(a,b,c,f,d,l){f=f||50;var h=a.x,k=a.y,g,q=null,e=null;for(g=0;g<f;g++)if(a.x=h+b*g,a.y=k+c*g,a.u(),!this.xb(a,q)&&((q=this.Sa(a))&&(e=q),!q&&(d&&(l?q=this.xb(a,l)?l:null:q=this.Ad(a),q&&(e=q)),!q)))return e&&this.bl(a,b,c,e),!0;a.x=h;a.y=k;a.u();return!1};m.prototype.bl=function(a,b,c,f){var d=2,l,h=!1;l=!1;for(var k=a.x,g=a.y;16>=d;)l=1/d,d*=2,a.x+=b*l*(h?1:-1),a.y+=c*l*(h?1:-1),a.u(),this.xb(a,f)?l=h=!0:(l=h=!1,
k=a.x,g=a.y);l&&(a.x=k,a.y=g,a.u())};m.prototype.ko=function(a,b){var c=ga(b)?100:b,f=0,d=a.x,l=a.y,h=0,k=0,g=0,q=this.Sa(a);if(!q)return!0;for(;f<=c;){switch(h){case 0:k=0;g=-1;f++;break;case 1:k=1;g=-1;break;case 2:k=1;g=0;break;case 3:g=k=1;break;case 4:k=0;g=1;break;case 5:k=-1;g=1;break;case 6:k=-1;g=0;break;case 7:g=k=-1}h=(h+1)%8;a.x=N(d+k*f);a.y=N(l+g*f);a.u();if(!this.xb(a,q)&&(q=this.Sa(a),!q))return!0}a.x=d;a.y=l;a.u();return!1};m.prototype.Ef=function(a,b){a.ed&&b.ed&&this.fl.push([a,
b])};m.prototype.uq=function(a,b,c){var f=a.x,d=a.y,l=ma(10,Na(b,c,f,d)),h=Ka(b,c,f,d),k=this.Sa(a);if(!k)return U(h+oa);var g=k,q,e,u,m,v=S(5);for(q=1;36>q;q++)if(e=h-q*v,a.x=b+Math.cos(e)*l,a.y=c+Math.sin(e)*l,a.u(),!this.xb(a,g)&&(g=this.Sa(a),!g)){u=e;break}36===q&&(u=U(h+oa));g=k;for(q=1;36>q;q++)if(e=h+q*v,a.x=b+Math.cos(e)*l,a.y=c+Math.sin(e)*l,a.u(),!this.xb(a,g)&&(g=this.Sa(a),!g)){m=e;break}36===q&&(m=U(h+oa));a.x=f;a.y=d;a.u();if(m===u)return m;a=La(m,u)/2;a=V(m,u)?U(u+a+oa):U(m+a);u=Math.cos(h);
h=Math.sin(h);m=Math.cos(a);a=Math.sin(a);b=u*m+h*a;return Ka(0,0,u-2*b*m,h-2*b*a)};var sa=-1;m.prototype.trigger=function(a,b,c){if(!this.R)return!1;var f=this.R.ue;if(!f)return!1;var d=!1,l,h,k;sa++;var g=f.Kj;h=0;for(k=g.length;h<k;++h)l=this.No(a,b,g[h],c),d=d||l;l=this.No(a,b,f,c);sa--;return d||l};m.prototype.No=function(a,b,c,f){var d=!1,l,h,k,g;if(b)for(k=this.Al(a,b,b.type.name,c,f),d=d||k,g=b.type.ma,l=0,h=g.length;l<h;++l)k=this.Al(a,b,g[l].name,c,f),d=d||k;else k=this.Al(a,b,"system",
c,f),d=d||k;return d};m.prototype.Al=function(a,b,c,f,d){var l,h=!1,k=!1,k="undefined"!==typeof d,g=(k?f.Bm:f.Oo)[c];if(!g)return h;var q=null;f=0;for(l=g.length;f<l;++f)if(g[f].method==a){q=g[f].jg;break}if(!q)return h;var e;k?e=q[d]:e=q;if(!e)return null;f=0;for(l=e.length;f<l;f++)a=e[f][0],d=e[f][1],k=this.Jr(b,c,a,d),h=h||k;return h};m.prototype.Jr=function(a,b,c,f){var d,l,h=!1;this.Bl++;var k=this.Db().xc;k&&this.Vg(k.ie);var g=1<this.Bl;this.Vg(c.ie);g&&this.nt();var q=this.al(c);q.xc=c;a&&
(d=this.types[b].Y(),d.ka=!1,R(d.i),d.i[0]=a,this.types[b].Kd());a=!0;if(c.parent){b=q.Go;for(d=c.parent;d;)b.push(d),d=d.parent;b.reverse();d=0;for(l=b.length;d<l;d++)if(!b[d].xt()){a=!1;break}}a&&(this.Mh++,c.Uc?c.wt(f):c.La(),h=h||q.Ge);this.co();g&&this.gt();this.Df(c.ie);k&&this.Df(k.ie);this.Wd&&0===this.Bc&&0===sa&&!this.qk&&this.Xa();this.Bl--;return h};m.prototype.Qr=function(){var a=this.Db();return a.xc.cb[a.yb]};m.prototype.nt=function(){this.vi++;this.vi>=this.Ik.length&&this.Ik.push([])};
m.prototype.gt=function(){this.vi--};m.prototype.Hm=function(){return this.Ik[this.vi]};m.prototype.al=function(a){this.Lh++;this.Lh>=this.Nj.length&&this.Nj.push(new Hb);var b=this.Db();b.reset(a);return b};m.prototype.co=function(){this.Lh--};m.prototype.Db=function(){return this.Nj[this.Lh]};m.prototype.Im=function(a,b){for(var c,f,d,l,h,k;b;){c=0;for(f=b.nc.length;c<f;c++)if(k=b.nc[c],k instanceof Ib&&db(a,k.name))return k;b=b.parent}c=0;for(f=this.kd.length;c<f;c++)for(h=this.kd[c],d=0,l=h.Ud.length;d<
l;d++)if(k=h.Ud[d],k instanceof Ib&&db(a,k.name))return k;return null};m.prototype.Jm=function(a){var b,c;b=0;for(c=this.Cc.length;b<c;b++)if(this.Cc[b].O===a)return this.Cc[b];return null};m.prototype.Zh=function(a){var b,c;b=0;for(c=this.q.length;b<c;b++)if(this.q[b].O===a)return this.q[b];return null};m.prototype.Sr=function(a){var b,c;b=0;for(c=this.Jd.length;b<c;b++)if(this.Jd[b].O===a)return this.Jd[b];return null};m.prototype.Dq=function(a,b){this.dh=[a,b];this.X=!0};m.prototype.us=function(){var a=
this,f=this.nl,l=this.sd,h=this.pi,k=!1;this.Bo&&(k=!0,f="__c2_continuouspreview",this.Bo=!1);if(f.length){this.Xa();l=this.Bt();if(t()&&!this.$b)d(f,l,function(){x("Saved state to IndexedDB storage ("+l.length+" bytes)");a.sd=l;a.trigger(X.prototype.j.nj,null);a.sd="";k&&c()},function(b){try{localStorage.setItem("__c2save_"+f,l),x("Saved state to WebStorage ("+l.length+" bytes)"),a.sd=l,a.trigger(X.prototype.j.nj,null),a.sd="",k&&c()}catch(d){x("Failed to save game state: "+b+"; "+d)}});else try{localStorage.setItem("__c2save_"+
f,l),x("Saved state to WebStorage ("+l.length+" bytes)"),a.sd=l,this.trigger(X.prototype.j.nj,null),a.sd="",k&&c()}catch(g){x("Error saving to WebStorage: "+g)}this.gb=this.pi=this.nl=""}if(h.length){if(t()&&!this.$b)b(h,function(b){b?(a.gb=b,x("Loaded state from IndexedDB storage ("+a.gb.length+" bytes)")):(a.gb=localStorage.getItem("__c2save_"+h)||"",x("Loaded state from WebStorage ("+a.gb.length+" bytes)"));a.fh=!1;a.gb.length||a.trigger(X.prototype.j.mj,null)},function(){a.gb=localStorage.getItem("__c2save_"+
h)||"";x("Loaded state from WebStorage ("+a.gb.length+" bytes)");a.fh=!1;a.gb.length||a.trigger(X.prototype.j.mj,null)});else{try{this.gb=localStorage.getItem("__c2save_"+h)||"",x("Loaded state from WebStorage ("+this.gb.length+" bytes)")}catch(q){this.gb=""}this.fh=!1;a.gb.length||a.trigger(X.prototype.j.mj,null)}this.nl=this.pi=""}this.gb.length&&(this.Xa(),this.Ps(this.gb),this.sd=this.gb,this.trigger(X.prototype.j.Gp,null),this.gb=this.sd="")};m.prototype.Bt=function(){var a,b,c,f,d,l,h,k={c2save:!0,
version:1,rt:{time:this.ec.xa,walltime:this.jj.xa,timescale:this.jh,tickcount:this.Bd,execcount:this.Mh,next_uid:this.Rg,running_layout:this.R.O,start_time_offset:Date.now()-this.Ui},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.q.length;a<b;a++)if(d=this.q[a],!d.G&&!this.Cl(d)){l={instances:[]};Pa(d.V)&&(l.ex=g(d.V));c=0;for(f=d.i.length;c<f;c++)l.instances.push(this.ml(d.i[c]));k.types[d.O.toString()]=l}a=0;for(b=this.Cc.length;a<b;a++)c=this.Cc[a],k.layouts[c.O.toString()]=
c.Jb();f=k.events.groups;a=0;for(b=this.Jd.length;a<b;a++)c=this.Jd[a],f[c.O.toString()]=this.$h[c.qg].pg;b=k.events.cnds;for(h in this.Od)this.Od.hasOwnProperty(h)&&(a=this.Od[h],Pa(a.V)&&(b[h]={ex:g(a.V)}));b=k.events.acts;for(h in this.Id)this.Id.hasOwnProperty(h)&&(a=this.Id[h],Pa(a.V)&&(b[h]={ex:g(a.V)}));b=k.events.vars;for(h in this.Pf)this.Pf.hasOwnProperty(h)&&(a=this.Pf[h],a.gi||a.parent&&!a.zg||(b[h]=a.data));k.system=this.Zc.Jb();return JSON.stringify(k)};m.prototype.lo=function(){var a,
b,c,f,d,l;this.vd={};a=0;for(b=this.q.length;a<b;a++)if(c=this.q[a],!c.G)for(f=0,d=c.i.length;f<d;f++)l=c.i[f],this.vd[l.uid.toString()]=l};m.prototype.Ps=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.wg=!0;var b=a.rt;this.ec.reset();this.ec.xa=b.time;this.jj.reset();this.jj.xa=b.walltime||0;this.jh=b.timescale;this.Bd=b.tickcount;this.Mh=b.execcount;this.Ui=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.R.O)if(c=this.Jm(c))this.xm(c);else return;var f,d,l,h,k,g,
q;g=a.types;for(d in g)if(g.hasOwnProperty(d)&&(h=this.Zh(parseInt(d,10)))&&!h.G&&!this.Cl(h)){g[d].ex?h.V=g[d].ex:Qa(h.V);k=h.i;l=g[d].instances;c=0;for(f=na(k.length,l.length);c<f;c++)this.qi(k[c],l[c]);c=l.length;for(f=k.length;c<f;c++)this.Ye(k[c]);c=k.length;for(f=l.length;c<f;c++){k=null;if(h.ja.Zd&&(k=this.R.Xh(l[c].w.l),!k))continue;k=this.Qd(h.Zb,k,!1,0,0,!0);this.qi(k,l[c])}h.Kf=!0}this.Xa();this.lo();f=a.layouts;for(d in f)f.hasOwnProperty(d)&&(c=this.Jm(parseInt(d,10)))&&c.fc(f[d]);f=
a.events.groups;for(d in f)f.hasOwnProperty(d)&&(c=this.Sr(parseInt(d,10)))&&this.$h[c.qg]&&this.$h[c.qg].uo(f[d]);c=a.events.cnds;for(d in this.Od)this.Od.hasOwnProperty(d)&&(c.hasOwnProperty(d)?this.Od[d].V=c[d].ex:this.Od[d].V={});c=a.events.acts;for(d in this.Id)this.Id.hasOwnProperty(d)&&(c.hasOwnProperty(d)?this.Id[d].V=c[d].ex:this.Id[d].V={});c=a.events.vars;for(d in c)c.hasOwnProperty(d)&&this.Pf.hasOwnProperty(d)&&(this.Pf[d].data=c[d]);this.Rg=b.next_uid;this.wg=!1;c=0;for(f=this.Oh.length;c<
f;++c)k=this.Oh[c],this.trigger(Object.getPrototypeOf(k.type.ja).j.rh,k);R(this.Oh);this.Zc.fc(a.system);c=0;for(f=this.q.length;c<f;c++)if(h=this.q[c],!h.G&&!this.Cl(h))for(d=0,a=h.i.length;d<a;d++){k=h.i[d];if(h.Fb)for(g=k.og(),R(k.siblings),b=0,l=h.zb.length;b<l;b++)q=h.zb[b],h!==q&&k.siblings.push(q.i[g]);k.bd&&k.bd();if(k.H)for(b=0,l=k.H.length;b<l;b++)g=k.H[b],g.bd&&g.bd()}this.X=!0}};m.prototype.ml=function(a,b){var c,f,d,l,h;l=a.type;d=l.ja;var k={};b?k.c2=!0:k.uid=a.uid;Pa(a.V)&&(k.ex=g(a.V));
if(a.Ga&&a.Ga.length)for(k.ivs={},c=0,f=a.Ga.length;c<f;c++)k.ivs[a.type.lk[c].toString()]=a.Ga[c];if(d.Zd){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.k.O,zi:a.Rc()};0!==a.m&&(d.a=a.m);1!==a.opacity&&(d.o=a.opacity);.5!==a.sb&&(d.hX=a.sb);.5!==a.tb&&(d.hY=a.tb);0!==a.Ya&&(d.bm=a.Ya);a.visible||(d.v=a.visible);a.ed||(d.ce=a.ed);-1!==a.Qg&&(d.mts=a.Qg);if(l.I.length)for(d.fx=[],c=0,f=l.I.length;c<f;c++)h=l.I[c],d.fx.push({name:h.name,active:a.Hd[h.index],params:a.ra[h.index]});k.w=d}if(a.H&&a.H.length)for(k.behs=
{},c=0,f=a.H.length;c<f;c++)l=a.H[c],l.Jb&&(k.behs[l.type.O.toString()]=l.Jb());a.Jb&&(k.data=a.Jb());return k};m.prototype.Ur=function(a,b){var c,f;c=0;for(f=a.lk.length;c<f;c++)if(a.lk[c]===b)return c;return-1};m.prototype.Or=function(a,b){var c,f;c=0;for(f=a.H.length;c<f;c++)if(a.H[c].type.O===b)return c;return-1};m.prototype.qi=function(a,b,c){var f,d,l,h,k;k=a.type;h=k.ja;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.V=b.ex:Qa(a.V);if(d=b.ivs)for(f in d)d.hasOwnProperty(f)&&(l=this.Ur(k,parseInt(f,
10)),0>l||l>=a.Ga.length||(a.Ga[l]=d[f]));if(h.Zd){l=b.w;a.k.O!==l.l&&(d=a.k,a.k=this.R.Xh(l.l),a.k?(d.Ff(a,!0),a.k.Vf(a,!0),a.u(),a.k.Yg(0)):(a.k=d,c||this.Ye(a)));a.x=l.x;a.y=l.y;a.width=l.w;a.height=l.h;a.Lc=l.zi;a.m=l.hasOwnProperty("a")?l.a:0;a.opacity=l.hasOwnProperty("o")?l.o:1;a.sb=l.hasOwnProperty("hX")?l.hX:.5;a.tb=l.hasOwnProperty("hY")?l.hY:.5;a.visible=l.hasOwnProperty("v")?l.v:!0;a.ed=l.hasOwnProperty("ce")?l.ce:!0;a.Qg=l.hasOwnProperty("mts")?l.mts:-1;a.Ya=l.hasOwnProperty("bm")?l.bm:
0;a.$f=$a(a.Ya);this.A&&bb(a,a.Ya,this.A);a.u();if(l.hasOwnProperty("fx"))for(c=0,d=l.fx.length;c<d;c++)h=k.Zj(l.fx[c].name),0>h||(a.Hd[h]=l.fx[c].active,a.ra[h]=l.fx[c].params);a.Kc()}if(k=b.behs)for(f in k)k.hasOwnProperty(f)&&(c=this.Or(a,parseInt(f,10)),0>c||a.H[c].fc(k[f]));b.data&&a.fc(b.data)};Jb=function(a){return new m(document.getElementById(a))};Kb=function(a,b){return new m({dc:!0,width:a,height:b})};window.cr_createRuntime=Jb;window.cr_createDCRuntime=Kb;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.vh=!0;document.body.appendChild(a);a=new m(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 m(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,
window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,n){var m=window.cr_getC2Runtime();m&&m.Dq(e,n)};window.cr_sizeCanvas=function(e,n){if(0!==e&&0!==n){var m=window.cr_getC2Runtime();m&&m.setSize(e,n)}};window.cr_setSuspended=function(e){var n=window.cr_getC2Runtime();n&&n.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.ue=null;this.scrollX=this.b.Ja/2;this.scrollY=this.b.Ia/2;this.scale=1;this.m=0;this.hf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Ro=b[3];this.zo=b[4];this.O=b[5];var c=b[6],d,g;this.J=[];this.tg=[];d=0;for(g=c.length;d<g;d++){var k=new Lb(this,c[d]);k.Pn=d;this.J.push(k)}c=b[7];this.Ae=[];d=0;for(g=c.length;d<g;d++){var k=c[d],e=this.b.q[k[1]];e.Zb||(e.Zb=k);this.Ae.push(k);-1===this.tg.indexOf(e)&&this.tg.push(e)}this.I=[];this.Q=[];this.xd=
!0;this.ra=[];d=0;for(g=b[8].length;d<g;d++)this.I.push({id:b[8][d][0],name:b[8][d][1],Da:-1,Ec:!1,Ob:!0,index:d}),this.ra.push(b[8][d][2].slice(0));this.Kc();this.ge=new O(0,0,1,1);this.el=new O(0,0,1,1);this.fe={}}function n(a,b){return a.Lc-b.Lc}function m(a,b){this.Qa=a;this.b=a.b;this.i=[];this.scale=1;this.m=0;this.jd=!1;this.Cd=new O(0,0,0,0);this.Mo=new ra;this.oa=this.ea=this.pa=this.da=0;this.Xe=!1;this.Fd=-1;this.Fj=0;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.uc=
b[4];this.Jc=b[5];this.ic=b[6];this.jc=b[7];this.opacity=b[8];this.Th=b[9];this.Wb=b[10];this.Mc=b[11];this.Ya=b[12];this.$q=b[13];this.$f="source-over";this.eb=this.hb=0;this.Wa=null;this.td=p();this.Hc=!0;this.uf=new O(0,0,-1,-1);this.Ta=new O(0,0,-1,-1);this.Wb&&(this.Wa=new Za(this.b.Ja,this.b.Ia));this.Xc=!1;var c=b[14],d,g;this.Fo=[];this.Sb=[];this.dg=[];d=0;for(g=c.length;d<g;d++){var k=c[d],e=this.b.q[k[1]];e.Zb||(e.Zb=k,e.Cq=this.index);this.Sb.push(k);-1===this.Qa.tg.indexOf(e)&&this.Qa.tg.push(e)}Aa(this.Fo,
this.Sb);this.I=[];this.Q=[];this.xd=!0;this.ra=[];d=0;for(g=b[15].length;d<g;d++)this.I.push({id:b[15][d][0],name:b[15][d][1],Da:-1,Ec:!1,Ob:!0,index:d}),this.ra.push(b[15][d][2].slice(0));this.Kc();this.ge=new O(0,0,1,1);this.el=new O(0,0,1,1)}function p(){return b.length?b.pop():[]}function t(a){R(a);b.push(a)}e.prototype.At=function(a){var b=a.type.O.toString();this.fe.hasOwnProperty(b)||(this.fe[b]=[]);this.fe[b].push(this.b.ml(a))};e.prototype.Nm=function(){var a=this.J[0];return!a.Jc&&1===
a.opacity&&!a.Th&&a.visible};e.prototype.Kc=function(){R(this.Q);this.xd=!0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ob&&(this.Q.push(c),c.Ec||(this.xd=!1))};e.prototype.Yj=function(a){var b,c,d;b=0;for(c=this.I.length;b<c;b++)if(d=this.I[b],d.name===a)return d;return null};var r=[],d=!0;e.prototype.ql=function(){this.zo&&(this.ue=this.b.Oj[this.zo],this.ue.Fl());this.b.R=this;this.scrollX=this.b.Ja/2;this.scrollY=this.b.Ia/2;var a,b,c,h,g,k,e;a=0;for(c=this.b.q.length;a<c;a++)if(b=
this.b.q[a],!b.G)for(g=b.i,b=0,h=g.length;b<h;b++)if(k=g[b],k.k){var l=k.k.Pn;l>=this.J.length&&(l=this.J.length-1);k.k=this.J[l];-1===k.k.i.indexOf(k)&&k.k.i.push(k);k.k.Xe=!0}if(!d)for(a=0,c=this.J.length;a<c;++a)this.J[a].i.sort(n);R(r);this.sq();a=0;for(c=this.J.length;a<c;a++)k=this.J[a],k.Aq(),k.gj();g=!1;if(!this.hf){for(e in this.fe)if(this.fe.hasOwnProperty(e)&&(b=this.b.Zh(parseInt(e,10)))&&!b.G&&this.b.Dl(b)){h=this.fe[e];a=0;for(c=h.length;a<c;a++){k=null;if(b.ja.Zd&&(k=this.Xh(h[a].w.l),
!k))continue;k=this.b.Qd(b.Zb,k,!1,0,0,!0);this.b.qi(k,h[a]);g=!0;r.push(k)}R(h)}a=0;for(c=this.J.length;a<c;a++)this.J[a].i.sort(n),this.J[a].Xe=!0}g&&(this.b.Xa(),this.b.lo());for(a=0;a<r.length;a++)if(k=r[a],k.type.Fb)for(c=k.og(),b=0,h=k.type.zb.length;b<h;b++)e=k.type.zb[b],k.type!==e&&(e.i.length>c?k.siblings.push(e.i[c]):e.Zb&&(g=this.b.Qd(e.Zb,k.k,!0,k.x,k.y,!0),this.b.Xa(),e.fj(),k.siblings.push(g),r.push(g)));a=0;for(c=this.Ae.length;a<c;a++)this.b.Qd(this.Ae[a],null,!0);this.b.Zf=null;
this.b.Xa();if(this.b.U&&!this.b.ta)for(a=0,c=this.b.q.length;a<c;a++)e=this.b.q[a],!e.G&&e.i.length&&e.Xk&&e.Xk(this.b.U);if(this.b.wg)Aa(this.b.Oh,r);else for(a=0,c=r.length;a<c;a++)k=r[a],this.b.trigger(Object.getPrototypeOf(k.type.ja).j.rh,k);R(r);this.b.wg||this.b.trigger(X.prototype.j.Rl,null);this.hf=!1};e.prototype.zq=function(){var a,b,c,d,g;b=a=0;for(c=this.Ae.length;a<c;a++)d=this.Ae[a],g=this.b.q[d[1]],g.global?g.Fb||this.b.Qd(d,null,!0):(this.Ae[b]=d,b++);ya(this.Ae,b)};e.prototype.Gt=
function(){this.b.wg||this.b.trigger(X.prototype.j.Fp,null);this.b.nk=!0;R(this.b.Zc.Nb);var a,b,c,h,g,k;if(!this.hf)for(a=0,b=this.J.length;a<b;a++)for(this.J[a].Hl(),g=this.J[a].i,c=0,h=g.length;c<h;c++)k=g[c],k.type.global||this.b.Dl(k.type)&&this.At(k);a=0;for(b=this.J.length;a<b;a++){g=this.J[a].i;c=0;for(h=g.length;c<h;c++)k=g[c],k.type.global||this.b.Ye(k);this.b.Xa();R(g);this.J[a].Xe=!0}a=0;for(b=this.b.q.length;a<b;a++)if(g=this.b.q[a],!(g.global||g.ja.Zd||g.ja.Ti||g.G)){c=0;for(h=g.i.length;c<
h;c++)this.b.Ye(g.i[c]);this.b.Xa()}d=!1;this.b.nk=!1};new O(0,0,0,0);e.prototype.Pc=function(a){var b,c=a,d=!1,g=!this.b.Rb;g&&(this.b.oi||(this.b.oi=document.createElement("canvas"),b=this.b.oi,b.width=this.b.F,b.height=this.b.D,this.b.nn=b.getContext("2d"),d=!0),b=this.b.oi,c=this.b.nn,b.width!==this.b.F&&(b.width=this.b.F,d=!0),b.height!==this.b.D&&(b.height=this.b.D,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.M,c.mozImageSmoothingEnabled=this.b.M,c.msImageSmoothingEnabled=this.b.M,c.imageSmoothingEnabled=
this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.rj&&!this.Nm()&&c.clearRect(0,0,this.b.F,this.b.D);var k,e,d=0;for(k=this.J.length;d<k;d++)e=this.J[d],e.visible&&0<e.opacity&&11!==e.Ya&&(e.i.length||!e.Jc)?e.Pc(c):e.gj();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.re=function(a){a.to(!0);this.b.Ca||(this.b.Ca=a.Qb(this.b.F,this.b.D,this.b.M));if(this.b.Ca.pe!==this.b.F||this.b.Ca.oe!==this.b.D)a.deleteTexture(this.b.Ca),this.b.Ca=a.Qb(this.b.F,this.b.D,
this.b.M);a.mc(this.b.Ca);this.b.Rb||a.Te(this.b.F,this.b.D);var b,c;for(b=this.J.length-1;0<=b;--b)c=this.J[b],c.visible&&1===c.opacity&&c.xd&&0===c.Ya&&(c.i.length||!c.Jc)?c.re(a):c.gj();a.to(!1)};e.prototype.Ab=function(a){var b=0<this.Q.length||this.b.Nf||!this.b.Rb||this.b.ca;if(b){this.b.Ca||(this.b.Ca=a.Qb(this.b.F,this.b.D,this.b.M));if(this.b.Ca.pe!==this.b.F||this.b.Ca.oe!==this.b.D)a.deleteTexture(this.b.Ca),this.b.Ca=a.Qb(this.b.F,this.b.D,this.b.M);a.mc(this.b.Ca);this.b.Rb||a.Te(this.b.F,
this.b.D)}else this.b.Ca&&(a.mc(null),a.deleteTexture(this.b.Ca),this.b.Ca=null);this.b.rj&&!this.Nm()&&a.clear(0,0,0,0);var c,d,g;c=0;for(d=this.J.length;c<d;c++)g=this.J[c],g.visible&&0<g.opacity&&(g.i.length||!g.Jc)?g.Ab(a):g.gj();b&&(0===this.Q.length||1===this.Q.length&&this.b.Rb?(1===this.Q.length?(b=this.Q[0].index,a.wb(this.Q[0].Da),a.Hf(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.m,0,0,this.b.F/2,this.b.D/2,this.b.ec.xa,this.ra[b]),a.Ki(this.Q[0].Da)&&(this.b.X=!0)):a.wb(0),this.b.Rb||
a.Te(this.b.width,this.b.height),a.mc(null),a.so(!1),a.Se(1),a.Kb(this.b.Ca),a.qo(),a.lc(),a.Vb(),b=this.b.width/2,c=this.b.height/2,a.Wg(-b,c,b,c,b,-c,-b,-c),a.Kb(null),a.so(!0)):this.gl(a,null,null,null))};e.prototype.ng=function(){return 0<this.Q.length||this.b.Nf||!this.b.Rb||this.b.ca?this.b.Ca:null};e.prototype.Km=function(){var a=this.J[0].Eb(),b,c,d;b=1;for(c=this.J.length;b<c;b++)d=this.J[b],(0!==d.ic||0!==d.jc)&&d.Eb()<a&&(a=d.Eb());return a};e.prototype.oo=function(a){if(!this.Ro){var b=
1/this.Km()*this.b.F/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.X=!0)};e.prototype.po=function(a){if(!this.Ro){var b=1/this.Km()*this.b.D/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.X=!0)};e.prototype.sq=function(){this.oo(this.scrollX);this.po(this.scrollY)};e.prototype.gl=function(a,b,c,d){var g=c?c.Q:b?b.Q:this.Q,k=1,e=0,l=0,u=0,m=this.b.F,n=this.b.D;c?(k=c.k.Eb(),e=c.k.Cb(),l=c.k.da,u=c.k.ea,m=c.k.pa,n=c.k.oa):
b&&(k=b.Eb(),e=b.Cb(),l=b.da,u=b.ea,m=b.pa,n=b.oa);var r=this.b.Vj,t,p,z,G,K=0,da=1,ea,J=this.b.F,D=this.b.D,za=J/2,sa=D/2,w=b?b.ge:this.ge,y=b?b.el:this.el,B=0,T=0,F=0,A=0,I=J,wa=J,L=D,xa=D,la=z=0;G=c?c.k.Cb():0;if(c){t=0;for(p=g.length;t<p;t++)z+=a.Yr(g[t].Da),la+=a.Zr(g[t].Da);A=c.qa;B=b.na(A.left,A.top,!0,!0);F=b.na(A.left,A.top,!1,!0);I=b.na(A.right,A.bottom,!0,!0);L=b.na(A.right,A.bottom,!1,!0);0!==G&&(t=b.na(A.right,A.top,!0,!0),p=b.na(A.right,A.top,!1,!0),T=b.na(A.left,A.bottom,!0,!0),A=b.na(A.left,
A.bottom,!1,!0),G=Math.min(B,I,t,T),I=Math.max(B,I,t,T),B=G,G=Math.min(F,L,p,A),L=Math.max(F,L,p,A),F=G);B-=z;F-=la;I+=z;L+=la;y.left=B/J;y.top=1-F/D;y.right=I/J;y.bottom=1-L/D;T=B=N(B);A=F=N(F);wa=I=pa(I);xa=L=pa(L);T-=z;A-=la;wa+=z;xa+=la;0>B&&(B=0);0>F&&(F=0);I>J&&(I=J);L>D&&(L=D);0>T&&(T=0);0>A&&(A=0);wa>J&&(wa=J);xa>D&&(xa=D);w.left=B/J;w.top=1-F/D;w.right=I/J;w.bottom=1-L/D}else w.left=y.left=0,w.top=y.top=0,w.right=y.right=1,w.bottom=y.bottom=1;la=c&&(a.Tg(g[0].Da)||0!==z||0!==la||1!==c.opacity||
c.type.ja.Ln)||b&&!c&&1!==b.opacity;a.qo();if(la){r[K]||(r[K]=a.Qb(J,D,this.b.M));if(r[K].pe!==J||r[K].oe!==D)a.deleteTexture(r[K]),r[K]=a.Qb(J,D,this.b.M);a.wb(0);a.mc(r[K]);ea=xa-A;a.clearRect(T,D-A-ea,wa-T,ea);c?c.Ab(a):(a.Kb(this.b.Ha),a.Se(b.opacity),a.lc(),a.translate(-za,-sa),a.Vb(),a.Wc(B,L,I,L,I,F,B,F,w));y.left=y.top=0;y.right=y.bottom=1;c&&(G=w.top,w.top=w.bottom,w.bottom=G);K=1;da=0}a.Se(1);z=g.length-1;var ab=a.Zk(g[z].Da)||!b&&!c&&!this.b.Rb,Ba=0;t=0;for(p=g.length;t<p;t++){r[K]||(r[K]=
a.Qb(J,D,this.b.M));if(r[K].pe!==J||r[K].oe!==D)a.deleteTexture(r[K]),r[K]=a.Qb(J,D,this.b.M);a.wb(g[t].Da);Ba=g[t].index;a.Ki(g[t].Da)&&(this.b.X=!0);0!=t||la?(a.Hf(d,1/J,1/D,y.left,y.top,y.right,y.bottom,k,e,l,u,(l+m)/2,(u+n)/2,this.b.ec.xa,c?c.ra[Ba]:b?b.ra[Ba]:this.ra[Ba]),a.Kb(null),t!==z||ab?(a.mc(r[K]),ea=xa-A,G=D-A-ea,a.clearRect(T,G,wa-T,ea)):(c?a.he(c.hb,c.eb):b&&a.he(b.hb,b.eb),a.mc(d)),a.Kb(r[da]),a.lc(),a.translate(-za,-sa),a.Vb(),a.Wc(B,L,I,L,I,F,B,F,w),t!==z||ab||a.Kb(null)):(a.mc(r[K]),
ea=xa-A,G=D-A-ea,a.clearRect(T,G,wa-T,ea),c?(a.Hf(d,1/c.width,1/c.height,y.left,y.top,y.right,y.bottom,k,e,l,u,(l+m)/2,(u+n)/2,this.b.ec.xa,c.ra[Ba]),c.Ab(a)):(a.Hf(d,1/J,1/D,0,0,1,1,k,e,l,u,(l+m)/2,(u+n)/2,this.b.ec.xa,b?b.ra[Ba]:this.ra[Ba]),a.Kb(b?this.b.Ha:this.b.Ca),a.lc(),a.translate(-za,-sa),a.Vb(),a.Wc(B,L,I,L,I,F,B,F,w)),y.left=y.top=0,y.right=y.bottom=1,c&&!ab&&(G=L,L=F,F=G));K=0===K?1:0;da=0===K?1:0}ab&&(a.wb(0),c?a.he(c.hb,c.eb):b?a.he(b.hb,b.eb):this.b.Rb||(a.Te(this.b.width,this.b.height),
za=this.b.width/2,sa=this.b.height/2,F=B=0,I=this.b.width,L=this.b.height),a.mc(d),a.Kb(r[da]),a.lc(),a.translate(-za,-sa),a.Vb(),c&&1===g.length&&!la?a.Wc(B,F,I,F,I,L,B,L,w):a.Wc(B,L,I,L,I,F,B,F,w),a.Kb(null))};e.prototype.Xh=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};e.prototype.Jb=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.hf,persist:this.fe,fx:[],layers:{}};a=0;for(b=
this.I.length;a<b;a++)c=this.I[a],d.fx.push({name:c.name,active:c.Ob,params:this.ra[c.index]});a=0;for(b=this.J.length;a<b;a++)c=this.J[a],d.layers[c.O.toString()]=c.Jb();return d};e.prototype.fc=function(a){var b,c,d,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.fe=a.persist;"undefined"!==typeof a.fv&&(this.hf=a.fv);var k=a.fx;b=0;for(c=k.length;b<c;b++)if(d=this.Yj(k[b].name))d.Ob=k[b].active,this.ra[d.index]=k[b].params;this.Kc();b=a.layers;
for(g in b)b.hasOwnProperty(g)&&(a=this.Xh(parseInt(g,10)))&&a.fc(b[g])};xb=e;m.prototype.Kc=function(){R(this.Q);this.xd=!0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ob&&(this.Q.push(c),c.Ec||(this.xd=!1))};m.prototype.Yj=function(a){var b,c,d;b=0;for(c=this.I.length;b<c;b++)if(d=this.I[b],d.name===a)return d;return null};m.prototype.Aq=function(){var a,b,c,d,g,k;b=a=0;for(c=this.Sb.length;a<c;a++){d=this.Sb[a];g=this.b.q[d[1]];k=this.b.Dl(g);g=!0;if(!k||this.Qa.hf)d=this.b.Qd(d,this,
!0),r.push(d),d.type.global&&(g=!1,this.dg.push(d.uid));g&&(this.Sb[b]=this.Sb[a],b++)}this.Sb.length=b;this.b.Xa();!this.b.p&&this.I.length&&(this.Ya=this.$q);this.$f=$a(this.Ya);this.b.A&&bb(this,this.Ya,this.b.A);this.Hc=!0};m.prototype.Ff=function(a,b){var c=Da(this.i,a);0>c||(b&&this.Wb&&a.ub&&a.ub.right>=a.ub.left&&(a.ba(),this.Wa.update(a,a.ub,null),a.ub.set(0,0,-1,-1)),c===this.i.length-1?this.i.pop():(va(this.i,c),this.Yg(c)),this.Hc=!0)};m.prototype.Vf=function(a,b){a.Lc=this.i.length;this.i.push(a);
b&&this.Wb&&a.ub&&a.u();this.Hc=!0};m.prototype.kt=function(a){this.i.unshift(a);this.Yg(0)};m.prototype.Us=function(a,b,c){var d=a.Rc();b=b.Rc();va(this.i,d);d<b&&b--;c&&b++;b===this.i.length?this.i.push(a):this.i.splice(b,0,a);this.Yg(d<b?d:b)};m.prototype.Yg=function(a){-1===this.Fd?this.Fd=a:a<this.Fd&&(this.Fd=a);this.Hc=this.Xe=!0};m.prototype.Hl=function(){if(this.Xe){-1===this.Fd&&(this.Fd=0);var a,b,c;if(this.Wb)for(a=this.Fd,b=this.i.length;a<b;++a)c=this.i[a],c.Lc=a,this.Wa.Rs(c.ub);else for(a=
this.Fd,b=this.i.length;a<b;++a)this.i[a].Lc=a;this.Xe=!1;this.Fd=-1}};m.prototype.Eb=function(a){return this.Wr()*(this.b.Rb||a?this.b.Wf:1)};m.prototype.Wr=function(){return(this.scale*this.Qa.scale-1)*this.Mc+1};m.prototype.Cb=function(){return this.jd?0:U(this.Qa.m+this.m)};var b=[],c=[],g=[];m.prototype.ck=function(){this.Hl();this.Wa.Li(this.da,this.ea,this.pa,this.oa,g);if(!g.length)return p();if(1===g.length){var a=p();Aa(a,g[0]);R(g);return a}for(var b=!0;1<g.length;){for(var a=g,d=void 0,
h=void 0,e=void 0,k=void 0,m=void 0,d=0,h=a.length;d<h-1;d+=2){var e=a[d],k=a[d+1],m=p(),l=e,u=k,n=m,r=0,P=0,Q=0,C=l.length,z=u.length,G=void 0,K=void 0;for(n.length=C+z;r<C&&P<z;++Q)G=l[r],K=u[P],G.Lc<K.Lc?(n[Q]=G,++r):(n[Q]=K,++P);for(;r<C;++r,++Q)n[Q]=l[r];for(;P<z;++P,++Q)n[Q]=u[P];b||(t(e),t(k));c.push(m)}1===h%2&&(b?(e=p(),Aa(e,a[h-1]),c.push(e)):c.push(a[h-1]));Aa(a,c);R(c);b=!1}a=g[0];R(g);return a};m.prototype.Pc=function(a){this.Xc=this.Th||1!==this.opacity||0!==this.Ya;var b=this.b.canvas,
c=a,d=!1;this.Xc&&(this.b.ni||(this.b.ni=document.createElement("canvas"),b=this.b.ni,b.width=this.b.F,b.height=this.b.D,this.b.mn=b.getContext("2d"),d=!0),b=this.b.ni,c=this.b.mn,b.width!==this.b.F&&(b.width=this.b.F,d=!0),b.height!==this.b.D&&(b.height=this.b.D,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.M,c.mozImageSmoothingEnabled=this.b.M,c.msImageSmoothingEnabled=this.b.M,c.imageSmoothingEnabled=this.b.M),this.Jc&&c.clearRect(0,0,this.b.F,this.b.D));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.Jc||(c.fillStyle="rgb("+this.uc[0]+","+this.uc[1]+","+this.uc[2]+")",c.fillRect(0,0,this.b.F,this.b.D));c.save();this.jd=!0;var d=this.lb(0,0,!0,!0),g=this.lb(0,0,!1,!0);this.jd=!1;this.b.Dc&&(d=Math.round(d),g=Math.round(g));this.Ni(d,g,c);var k=this.Eb();c.scale(k,k);c.translate(-d,-g);this.Wb?(this.Ta.left=this.Wa.ob(this.da),this.Ta.top=this.Wa.pb(this.ea),this.Ta.right=this.Wa.ob(this.pa),this.Ta.bottom=this.Wa.pb(this.oa),this.Hc||!this.Ta.hg(this.uf)?(t(this.td),d=this.ck(),
this.Hc=!1,this.uf.ag(this.Ta)):d=this.td):d=this.i;for(var e,l=null,g=0,k=d.length;g<k;++g)e=d[g],e!==l&&(this.Vq(e,c),l=e);this.Wb&&(this.td=d);c.restore();this.Xc&&(a.globalCompositeOperation=this.$f,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Vq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ba();var c=a.qa;c.right<this.da||c.bottom<this.ea||c.left>this.pa||c.top>this.oa||(b.globalCompositeOperation=a.$f,a.Pc(b))}};m.prototype.gj=function(){this.jd=!0;var a=this.lb(0,
0,!0,!0),b=this.lb(0,0,!1,!0);this.jd=!1;this.b.Dc&&(a=Math.round(a),b=Math.round(b));this.Ni(a,b,null)};m.prototype.Ni=function(a,b,c){var d=this.Eb();this.da=a;this.ea=b;this.pa=a+1/d*this.b.F;this.oa=b+1/d*this.b.D;a=this.Cb();0!==a&&(c&&(c.translate(this.b.F/2,this.b.D/2),c.rotate(-a),c.translate(this.b.F/-2,this.b.D/-2)),this.Cd.set(this.da,this.ea,this.pa,this.oa),this.Cd.offset((this.da+this.pa)/-2,(this.ea+this.oa)/-2),this.Mo.xo(this.Cd,a),this.Mo.mm(this.Cd),this.Cd.offset((this.da+this.pa)/
2,(this.ea+this.oa)/2),this.da=this.Cd.left,this.ea=this.Cd.top,this.pa=this.Cd.right,this.oa=this.Cd.bottom)};m.prototype.re=function(a){if(this.Xc=this.Th){this.b.Ha||(this.b.Ha=a.Qb(this.b.F,this.b.D,this.b.M));if(this.b.Ha.pe!==this.b.F||this.b.Ha.oe!==this.b.D)a.deleteTexture(this.b.Ha),this.b.Ha=a.Qb(this.b.F,this.b.D,this.b.M);a.mc(this.b.Ha)}this.jd=!0;var b=this.lb(0,0,!0,!0),c=this.lb(0,0,!1,!0);this.jd=!1;this.b.Dc&&(b=Math.round(b),c=Math.round(c));this.Ni(b,c,null);b=this.Eb();a.lc();
a.scale(b,b);a.Oi(-this.Cb());a.translate((this.da+this.pa)/-2,(this.ea+this.oa)/-2);a.Vb();this.Wb?(this.Ta.left=this.Wa.ob(this.da),this.Ta.top=this.Wa.pb(this.ea),this.Ta.right=this.Wa.ob(this.pa),this.Ta.bottom=this.Wa.pb(this.oa),this.Hc||!this.Ta.hg(this.uf)?(t(this.td),b=this.ck(),this.Hc=!1,this.uf.ag(this.Ta)):b=this.td):b=this.i;for(var d,g=null,c=b.length-1;0<=c;--c)d=b[c],d!==g&&(this.Xq(b[c],a),g=d);this.Wb&&(this.td=b);this.Jc||(this.Fj=this.b.te++,a.Pi(this.Fj),a.ro(1,1,1),a.Em(),a.qt())};
m.prototype.Ab=function(a){var b=0,c=0;if(this.Xc=this.Th||1!==this.opacity||0<this.Q.length||0!==this.Ya){this.b.Ha||(this.b.Ha=a.Qb(this.b.F,this.b.D,this.b.M));if(this.b.Ha.pe!==this.b.F||this.b.Ha.oe!==this.b.D)a.deleteTexture(this.b.Ha),this.b.Ha=a.Qb(this.b.F,this.b.D,this.b.M);a.mc(this.b.Ha);this.Jc&&a.clear(0,0,0,0)}this.Jc||(this.b.ca?(a.Pi(this.Fj),a.ro(this.uc[0]/255,this.uc[1]/255,this.uc[2]/255),a.Em(),a.Ct()):a.clear(this.uc[0]/255,this.uc[1]/255,this.uc[2]/255,1));this.jd=!0;var d=
this.lb(0,0,!0,!0),b=this.lb(0,0,!1,!0);this.jd=!1;this.b.Dc&&(d=Math.round(d),b=Math.round(b));this.Ni(d,b,null);d=this.Eb();a.lc();a.scale(d,d);a.Oi(-this.Cb());a.translate((this.da+this.pa)/-2,(this.ea+this.oa)/-2);a.Vb();this.Wb?(this.Ta.left=this.Wa.ob(this.da),this.Ta.top=this.Wa.pb(this.ea),this.Ta.right=this.Wa.ob(this.pa),this.Ta.bottom=this.Wa.pb(this.oa),this.Hc||!this.Ta.hg(this.uf)?(t(this.td),b=this.ck(),this.Hc=!1,this.uf.ag(this.Ta)):b=this.td):b=this.i;var g,k,e=null,c=0;for(g=b.length;c<
g;++c)k=b[c],k!==e&&(this.Wq(b[c],a),e=k);this.Wb&&(this.td=b);this.Xc&&(b=this.Q.length?this.Q[0].Da:0,c=this.Q.length?this.Q[0].index:0,0===this.Q.length||1===this.Q.length&&!a.Zk(b)&&1===this.opacity?(1===this.Q.length?(a.wb(b),a.Hf(this.Qa.ng(),1/this.b.F,1/this.b.D,0,0,1,1,d,this.Cb(),this.da,this.ea,(this.da+this.pa)/2,(this.ea+this.oa)/2,this.b.ec.xa,this.ra[c]),a.Ki(b)&&(this.b.X=!0)):a.wb(0),a.mc(this.Qa.ng()),a.Se(this.opacity),a.Kb(this.b.Ha),a.he(this.hb,this.eb),a.lc(),a.Vb(),d=this.b.F/
2,b=this.b.D/2,a.Wg(-d,b,d,b,d,-b,-d,-b),a.Kb(null)):this.Qa.gl(a,this,null,this.Qa.ng()))};m.prototype.Wq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ba();var c=a.qa;c.right<this.da||c.bottom<this.ea||c.left>this.pa||c.top>this.oa||(b.Pi(a.te),a.Yo?this.Yq(a,b):(b.wb(0),b.he(a.hb,a.eb),a.Ab(b)))}};m.prototype.Xq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ba();var c=a.qa;c.right<this.da||c.bottom<this.ea||c.left>this.pa||c.top>this.oa||(a.te=this.b.te++,0===a.Ya&&1===a.opacity&&
a.xd&&a.re&&(b.Pi(a.te),a.re(b)))}};m.prototype.Yq=function(a,b){var c=a.Q[0].Da,d=a.Q[0].index,g=this.Eb();if(1!==a.Q.length||b.Zk(c)||b.mt(c)||(a.m||a.k.Cb())&&b.Tg(c)||1!==a.opacity||a.type.ja.Ln)this.Qa.gl(b,this,a,this.Xc?this.b.Ha:this.Qa.ng()),b.lc(),b.scale(g,g),b.Oi(-this.Cb()),b.translate((this.da+this.pa)/-2,(this.ea+this.oa)/-2),b.Vb();else{b.wb(c);b.he(a.hb,a.eb);b.Ki(c)&&(this.b.X=!0);var k=0,e=0,l=0,u=0;b.Tg(c)&&(c=a.qa,k=this.na(c.left,c.top,!0,!0),e=this.na(c.left,c.top,!1,!0),l=
this.na(c.right,c.bottom,!0,!0),c=this.na(c.right,c.bottom,!1,!0),k=k/windowWidth,e=1-e/windowHeight,l=l/windowWidth,u=1-c/windowHeight);b.Hf(this.Xc?this.b.Ha:this.Qa.ng(),1/a.width,1/a.height,k,e,l,u,g,this.Cb(),this.da,this.ea,(this.da+this.pa)/2,(this.ea+this.oa)/2,this.b.ec.xa,a.ra[d]);a.Ab(b)}};m.prototype.lb=function(a,b,c,d){var g=this.b.devicePixelRatio;this.b.Yd&&(a*=g,b*=g);var g=this.b.Yn,k=this.b.Zn,g=(this.Qa.scrollX-g)*this.ic+g,k=(this.Qa.scrollY-k)*this.jc+k,e=g,l=k,u=1/this.Eb(!d);
d?(e-=this.b.F*u/2,l-=this.b.D*u/2):(e-=this.b.width*u/2,l-=this.b.height*u/2);e+=a*u;l+=b*u;b=this.Cb();0!==b&&(e-=g,l-=k,a=Math.cos(b),b=Math.sin(b),d=e*a-l*b,l=l*a+e*b,e=d+g,l+=k);return c?e:l};m.prototype.na=function(a,b,c,d){var g=this.b.Yn,k=this.b.Zn,e=(this.Qa.scrollX-g)*this.ic+g,l=(this.Qa.scrollY-k)*this.jc+k,k=e,g=l,u=this.Cb();if(0!==u){a-=e;b-=l;var m=Math.cos(-u),u=Math.sin(-u),n=a*m-b*u;b=b*m+a*u;a=n+e;b+=l}e=1/this.Eb(!d);d?(k-=this.b.F*e/2,g-=this.b.D*e/2):(k-=this.b.width*e/2,g-=
this.b.height*e/2);k=(a-k)/e;g=(b-g)/e;a=this.b.devicePixelRatio;this.b.Yd&&!d&&(k/=a,g/=a);return c?k:g};m.prototype.Jb=function(){var a,b,c,d={s:this.scale,a:this.m,vl:this.da,vt:this.ea,vr:this.pa,vb:this.oa,v:this.visible,bc:this.uc,t:this.Jc,px:this.ic,py:this.jc,o:this.opacity,zr:this.Mc,fx:[],cg:this.dg,instances:[]};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],d.fx.push({name:c.name,active:c.Ob,params:this.ra[c.index]});return d};m.prototype.fc=function(a){var b,c,d;this.scale=a.s;this.m=a.a;
this.da=a.vl;this.ea=a.vt;this.pa=a.vr;this.oa=a.vb;this.visible=a.v;this.uc=a.bc;this.Jc=a.t;this.ic=a.px;this.jc=a.py;this.opacity=a.o;this.Mc=a.zr;this.dg=a.cg||[];Aa(this.Sb,this.Fo);var g=new ba;b=0;for(d=this.dg.length;b<d;++b)g.add(this.dg[b]);c=b=0;for(d=this.Sb.length;b<d;++b)g.contains(this.Sb[b][2])||(this.Sb[c]=this.Sb[b],++c);ya(this.Sb,c);c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Yj(c[b].name))a.Ob=c[b].active,this.ra[a.index]=c[b].params;this.Kc();this.i.sort(n);this.Xe=!0};Lb=m})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function m(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);f=v[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a}
function p(a,b){this.b=a;this.Oo={};this.Bm={};this.hk=!1;this.Qm=new ba;this.Kj=[];this.sj=[];this.name=b[0];var c=b[1];this.Ud=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Sm(c[d],null,this.Ud)}function t(a){this.type=a;this.i=[];this.P=[];this.ka=!0}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.ie=[];this.Om=this.aj=this.zl=this.ci=this.group=this.Do=!1;this.cb=[];this.rc=[];this.nc=[];this.qg="";this.pg=this.ci=this.group=!1;this.Eh=null;c[1]&&(this.qg=c[1][1].toLowerCase(),
this.group=!0,this.ci=!!c[1][0],this.Eh=[],this.pg=this.ci,this.b.Jd.push(this),this.b.$h[this.qg]=this);this.Uc=c[2];this.O=c[4];this.group||(this.b.lm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Mb(this,d[a]);f.index=a;this.cb.push(f);this.gm(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Nb(this,d[a]),f.index=a,this.rc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Sm(c[a],this,this.nc);this.hi=!1;this.cb.length&&(this.hi=null==this.cb[0].type&&
this.cb[0].Ua==X.prototype.j.lp)}function d(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Fb))for(c=0,d=a.zb.length;c<d;c++)f=a.zb[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.Pb=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.ua=[];this.V={};this.index=-1;this.Tf=!1;this.Ua=this.b.Gd(b[1]);this.trigger=0<b[3];this.Am=2===b[3];this.mk=b[5];this.Ls=b[6];this.O=b[7];this.b.Od[this.O.toString()]=this;-1===b[0]?(this.type=null,this.La=this.ll,this.ne=null,this.vc=-1):(this.type=this.b.q[b[0]],
this.La=this.Ls?this.yt:this.kl,b[2]?(this.ne=this.type.Vh(b[2]),this.vc=this.type.Xj(b[2])):(this.ne=null,this.vc=-1),this.Pb.parent&&this.Pb.parent.Qi());this.Am&&(this.La=this.zt);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var g=new Ob(this,f[c]);this.L.push(g)}this.ua.length=f.length}}function c(a,b){this.Pb=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.ua=[];this.V={};this.index=-1;this.Tf=!1;this.Ua=this.b.Gd(b[1]);-1===b[0]?(this.type=null,this.La=this.ll,this.ne=null,this.vc=
-1):(this.type=this.b.q[b[0]],this.La=this.kl,b[2]?(this.ne=this.type.Vh(b[2]),this.vc=this.type.Xj(b[2])):(this.ne=null,this.vc=-1));this.O=b[3];this.b.Id[this.O.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var g=new Ob(this,f[c]);this.L.push(g)}this.ua.length=f.length}}function g(){H++;k.length===H&&k.push(new Pb);return k[H]}function a(a,b){this.hc=a;this.Pb=a.Pb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Qc=null;this.yd=0;this.get=null;this.qm=0;this.Qa=
null;this.key=0;this.object=null;this.index=0;this.mh=this.Ue=this.mh=this.Ue=this.Cm=this.ve=this.nh=null;this.pc=!1;var c,d,f;switch(b[0]){case 0:case 7:this.Qc=new Qb(this,b[1]);this.yd=0;this.get=this.es;break;case 1:this.Qc=new Qb(this,b[1]);this.yd=0;this.get=this.gs;break;case 5:this.Qc=new Qb(this,b[1]);this.yd=0;this.get=this.ns;break;case 3:case 8:this.qm=b[1];this.get=this.cs;break;case 6:this.Qa=this.b.Ak[b[1]];this.get=this.os;break;case 9:this.key=b[1];this.get=this.ls;break;case 4:this.object=
this.b.q[b[1]];this.get=this.qs;this.Pb.gm(this.object);this.hc instanceof Nb?this.Pb.Qi():this.Pb.parent&&this.Pb.parent.Qi();break;case 10:this.index=b[1];a.type.G?(this.get=this.hs,this.pc=!0):this.get=this.ks;break;case 11:this.nh=b[1];this.ve=null;this.get=this.ds;break;case 2:case 12:this.Cm=b[1];this.get=this.bs;break;case 13:for(this.get=this.rs,this.Ue=[],this.mh=[],c=1,d=b.length;c<d;c++)f=new Ob(this.hc,b[c]),this.Ue.push(f),this.mh.push(0)}}function f(a,b,c){this.sheet=a;this.parent=b;
this.b=a.b;this.Aa=[];this.name=c[1];this.oh=c[2];this.bi=c[3];this.zg=!!c[4];this.gi=!!c[5];this.O=c[6];this.b.Pf[this.O.toString()]=this;this.data=this.bi;this.parent?(this.Me=this.zg||this.gi?-1:this.b.Ft++,this.b.nq.push(this)):(this.Me=-1,this.b.qj.push(this))}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.sg=null;this.ws=c[1];this.Ob=!0}function h(){this.Go=[];this.reset(null)}var v=[];p.prototype.toString=function(){return this.name};p.prototype.Sm=function(a,b,c){switch(a[0]){case 0:a=
new Rb(this,b,a);if(a.Uc)for(c.push(a),c=0,b=a.cb.length;c<b;c++)a.cb[c].trigger&&this.Tm(a,c);else a.cn()?this.Tm(a,0):c.push(a);break;case 1:a=new Ib(this,b,a);c.push(a);break;case 2:a=new Sb(this,b,a),c.push(a)}};p.prototype.za=function(){var a,b;a=0;for(b=this.Ud.length;a<b;a++)this.Ud[a].za(a<b-1&&this.Ud[a+1].hi)};p.prototype.Fl=function(){R(this.Kj);R(this.sj);this.fm(this);R(this.sj)};p.prototype.fm=function(a){var b,c,d,f,g=a.Kj,h=a.sj,k=this.Qm.ke();b=0;for(c=k.length;b<c;++b)d=k[b],f=d.sg,
!d.Ob||a===f||-1<h.indexOf(f)||(h.push(f),f.fm(a),g.push(f))};p.prototype.La=function(a){this.b.mv||(this.hk=!0,a||(this.b.qk=!0));var b,c;b=0;for(c=this.Ud.length;b<c;b++){var d=this.Ud[b];d.La();this.b.Ej(d.Aa);this.b.Wd&&this.b.Xa()}a||(this.b.qk=!1)};p.prototype.Tm=function(a,b){a.Uc||this.b.ej.push(a);var c,d,f=a.cb[b],g;f.type?g=f.type.name:g="system";var h=(c=f.Am)?this.Bm:this.Oo;h[g]||(h[g]=[]);g=h[g];h=f.Ua;if(c){if(f.L.length&&(f=f.L[0],1===f.type&&2===f.Qc.type)){f=f.Qc.value.toLowerCase();
c=0;for(d=g.length;c<d;c++)if(g[c].method==h){c=g[c].jg;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];g.push({method:h,jg:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==h){g[c].jg.push([a,b]);return}ec&&h===ec.prototype.j.bf?g.unshift({method:h,jg:[[a,b]]}):g.push({method:h,jg:[[a,b]]})}};yb=p;t.prototype.gk=function(){return this.ka?this.type.i.length:this.i.length};t.prototype.yc=function(){return this.ka?this.type.i:this.i};t.prototype.Sg=function(a){a&&(a.b.Db().xc.Uc?(this.ka&&
(R(this.i),Aa(this.P,a.type.i),this.ka=!1),a=this.P.indexOf(a),-1!==a&&(this.i.push(this.P[a]),this.P.splice(a,1))):(this.ka=!1,R(this.i),this.i[0]=a))};hb=t;window._c2hh_="9228961C532A3044489229EF410C6FA53A53D643";r.prototype.za=function(a){var b,c=this.parent;if(this.group)for(this.aj=!0;c;){if(!c.group){this.aj=!1;break}c=c.parent}this.zl=!this.cn()&&(!this.parent||this.parent.group&&this.parent.aj);this.Om=!!a;this.ie=this.Aa.slice(0);for(c=this.parent;c;){a=0;for(b=c.Aa.length;a<b;a++)this.lq(c.Aa[a]);
c=c.parent}this.Aa=m(this.Aa);this.ie=m(this.ie);a=0;for(b=this.cb.length;a<b;a++)this.cb[a].za();a=0;for(b=this.rc.length;a<b;a++)this.rc[a].za();a=0;for(b=this.nc.length;a<b;a++)this.nc[a].za(a<b-1&&this.nc[a+1].hi)};r.prototype.uo=function(a){if(this.pg!==!!a){this.pg=!!a;var b;a=0;for(b=this.Eh.length;a<b;++a)this.Eh[a].To();0<b&&this.b.R.ue&&this.b.R.ue.Fl()}};r.prototype.gm=function(a){d(a,this.Aa)};r.prototype.lq=function(a){d(a,this.ie)};r.prototype.Qi=function(){this.Do=!0;this.parent&&this.parent.Qi()};
r.prototype.cn=function(){return this.cb.length?this.cb[0].trigger:!1};r.prototype.La=function(){var a,b,c=!1,d=this.b,f=this.b.Db();f.xc=this;var g=this.cb;this.hi||(f.Lj=!1);if(this.Uc){0===g.length&&(c=!0);f.yb=0;for(a=g.length;f.yb<a;f.yb++)b=g[f.yb],b.trigger||(b=b.La())&&(c=!0);(f.Ge=c)&&this.jl()}else{f.yb=0;for(a=g.length;f.yb<a;f.yb++)if(b=g[f.yb].La(),!b){f.Ge=!1;this.zl&&d.Wd&&d.Xa();return}f.Ge=!0;this.jl()}this.cr(f)};r.prototype.cr=function(a){a.Ge&&this.Om&&(a.Lj=!0);this.zl&&this.b.Wd&&
this.b.Xa()};r.prototype.wt=function(a){this.b.Db().xc=this;this.cb[a].La()&&(this.jl(),this.b.Db().Ge=!0)};r.prototype.jl=function(){var a=this.b.Db(),b;a.Xb=0;for(b=this.rc.length;a.Xb<b;a.Xb++)if(this.rc[a.Xb].La())return;this.mo()};r.prototype.tt=function(){var a=this.b.Db(),b;for(b=this.rc.length;a.Xb<b;a.Xb++)if(this.rc[a.Xb].La())return;this.mo()};r.prototype.mo=function(){if(this.nc.length){var a,b,c,d,f=this.nc.length-1;this.b.al(this);if(this.Do)for(a=0,b=this.nc.length;a<b;a++)c=this.nc[a],
(d=!this.aj||!this.group&&a<f)&&this.b.$k(c.Aa),c.La(),d?this.b.Df(c.Aa):this.b.Ej(c.Aa);else for(a=0,b=this.nc.length;a<b;a++)this.nc[a].La();this.b.co()}};r.prototype.xt=function(){var a=this.b.Db();a.xc=this;var b=!1,c;a.yb=0;for(c=this.cb.length;a.yb<c;a.yb++)if(this.cb[a.yb].La())b=!0;else if(!this.Uc)return!1;return this.Uc?b:!0};r.prototype.Fs=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.cb[b].type===a.type)return!1;return!0};Rb=r;b.prototype.za=function(){var a,b,c;
a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.za(),c.pc&&(this.Tf=!0)};b.prototype.zt=function(){return!0};b.prototype.ll=function(){var a,b;a=0;for(b=this.L.length;a<b;a++)this.ua[a]=this.L[a].get();return Oa(this.Ua.apply(this.b.Zc,this.ua),this.mk)};b.prototype.yt=function(){var a,b;a=0;for(b=this.L.length;a<b;a++)this.ua[a]=this.L[a].get();a=this.Ua.apply(this.ne?this.ne:this.type,this.ua);this.type.Kd();return a};b.prototype.kl=function(){var a,b,c,d,f,g,h,k,e=this.type,m=e.Y(),n=this.Pb.Uc&&
!this.trigger;b=0;var q=e.Fb,r=e.G,v=e.ld,t=this.vc,p=-1<t,H=this.Tf,y=this.L,B=this.ua,T=this.mk,F=this.Ua,A;if(H)for(b=0,f=y.length;b<f;++b)g=y[b],g.pc||(B[b]=g.get(0));else for(b=0,f=y.length;b<f;++b)B[b]=y[b].get(0);if(m.ka){R(m.i);R(m.P);A=e.i;a=0;for(d=A.length;a<d;++a){k=A[a];if(H)for(b=0,f=y.length;b<f;++b)g=y[b],g.pc&&(B[b]=g.get(a));p?(b=0,r&&(b=k.type.gf[v]),b=F.apply(k.H[t+b],B)):b=F.apply(k,B);(h=Oa(b,T))?m.i.push(k):n&&m.P.push(k)}e.finish&&e.finish(!0);m.ka=!1;e.Kd();return m.gk()}c=
0;A=(h=n&&!this.Pb.Fs(this))?m.P:m.i;var I=!1;a=0;for(d=A.length;a<d;++a){k=A[a];if(H)for(b=0,f=y.length;b<f;++b)g=y[b],g.pc&&(B[b]=g.get(a));p?(b=0,r&&(b=k.type.gf[v]),b=F.apply(k.H[t+b],B)):b=F.apply(k,B);if(Oa(b,T))if(I=!0,h){if(m.i.push(k),q)for(b=0,f=k.siblings.length;b<f;b++)g=k.siblings[b],g.type.Y().i.push(g)}else{A[c]=k;if(q)for(b=0,f=k.siblings.length;b<f;b++)g=k.siblings[b],g.type.Y().i[c]=g;c++}else if(h){A[c]=k;if(q)for(b=0,f=k.siblings.length;b<f;b++)g=k.siblings[b],g.type.Y().P[c]=
g;c++}else if(n&&(m.P.push(k),q))for(b=0,f=k.siblings.length;b<f;b++)g=k.siblings[b],g.type.Y().P.push(g)}ya(A,c);if(q)for(r=e.zb,a=0,d=r.length;a<d;a++)k=r[a].Y(),h?ya(k.P,c):ya(k.i,c);c=I;if(h&&!I)for(a=0,d=m.i.length;a<d;a++){k=m.i[a];if(H)for(b=0,f=y.length;b<f;b++)g=y[b],g.pc&&(B[b]=g.get(a));b=p?F.apply(k.H[t],B):F.apply(k,B);if(Oa(b,T)){I=!0;break}}e.finish&&e.finish(c||n);return n?I:m.gk()};Mb=b;c.prototype.za=function(){var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.za(),c.pc&&(this.Tf=
!0)};c.prototype.ll=function(){var a=this.b,b,c,d=this.L,f=this.ua;b=0;for(c=d.length;b<c;++b)f[b]=d[b].get();return this.Ua.apply(a.Zc,f)};c.prototype.kl=function(){var a=this.type,b=this.vc,c=a.ld,d=this.Tf,f=this.L,g=this.ua,k=this.Ua,h=a.Y().yc(),a=a.G,e=-1<b,m,n,q,r,v,t;if(d)for(n=0,r=f.length;n<r;++n)v=f[n],v.pc||(g[n]=v.get(0));else for(n=0,r=f.length;n<r;++n)g[n]=f[n].get(0);m=0;for(q=h.length;m<q;++m){t=h[m];if(d)for(n=0,r=f.length;n<r;++n)v=f[n],v.pc&&(g[n]=v.get(m));e?(n=0,a&&(n=t.type.gf[c]),
k.apply(t.H[b+n],g)):k.apply(t,g)}return!1};Nb=c;var k=[],H=-1;a.prototype.za=function(){var a,b;if(11===this.type)this.ve=this.b.Im(this.nh,this.Pb.parent);else if(13===this.type)for(a=0,b=this.Ue.length;a<b;a++)this.Ue[a].za();this.Qc&&this.Qc.za()};a.prototype.Ts=function(a){this.pc||!a||a.ja.Ti||(this.pc=!0)};a.prototype.vo=function(){this.pc=!0};a.prototype.es=function(a){this.yd=a||0;a=g();this.Qc.get(a);H--;return a.data};a.prototype.gs=function(a){this.yd=a||0;a=g();this.Qc.get(a);H--;return M(a.data)?
a.data:""};a.prototype.qs=function(){return this.object};a.prototype.cs=function(){return this.qm};a.prototype.ns=function(a){this.yd=a||0;a=g();this.Qc.get(a);H--;return a.Pa()?this.b.mg(a.data):this.b.bk(a.data)};a.prototype.os=function(){return this.Qa};a.prototype.ls=function(){return this.key};a.prototype.ks=function(){return this.index};a.prototype.hs=function(a){a=a||0;var b=this.hc.type,c=null,c=b.Y(),d=c.yc();if(d.length)c=d[a%d.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.i.length)c=
b.i[a%b.i.length].type;else return 0;return this.index+c.Nh[b.ld]};a.prototype.ds=function(){return this.ve};a.prototype.bs=function(){return this.Cm};a.prototype.rs=function(){var a,b;a=0;for(b=this.Ue.length;a<b;a++)this.mh[a]=this.Ue[a].get();return this.mh};Ob=a;f.prototype.za=function(){this.Aa=m(this.Aa)};f.prototype.wd=function(a){var b=this.b.Hm();this.parent&&!this.zg&&b?(this.Me>=b.length&&(b.length=this.Me+1),b[this.Me]=a):this.data=a};f.prototype.xe=function(){var a=this.b.Hm();return!this.parent||
this.zg||!a||this.gi?this.data:this.Me>=a.length||"undefined"===typeof a[this.Me]?this.bi:a[this.Me]};f.prototype.La=function(){!this.parent||this.zg||this.gi||this.wd(this.bi)};Ib=f;q.prototype.toString=function(){return"include:"+this.sg.toString()};q.prototype.za=function(){this.sg=this.b.Oj[this.ws];this.sheet.Qm.add(this);this.Aa=m(this.Aa);for(var a=this.parent;a;)a.group&&a.Eh.push(this),a=a.parent;this.To()};q.prototype.La=function(){this.parent&&this.b.Vg(this.b.q);this.sg.hk||this.sg.La(!0);
this.parent&&this.b.Df(this.b.q)};q.prototype.To=function(){for(var a=this.parent;a;){if(a.group&&!a.pg){this.Ob=!1;return}a=a.parent}this.Ob=!0};Sb=q;h.prototype.reset=function(a){this.xc=a;this.Xb=this.yb=0;R(this.Go);this.Lj=this.Ge=!1};Hb=h})();
(function(){function e(d,b){this.hc=d;this.b=d.b;this.type=b[0];this.get=[this.tr,this.pr,this.Fr,this.Ir,this.er,this.Gr,this.Ar,this.mr,this.yr,this.Er,this.fr,this.Dr,this.nr,this.Br,this.ur,this.xr,this.qr,this.rr,this.lr,this.Hr,this.Cr,this.sr,this.kr,this.or][this.type];var c=null;this.ud=this.L=this.ua=this.Ua=this.$i=this.second=this.first=this.value=null;this.vc=-1;this.zc=null;this.Zo=-1;this.ve=this.nh=null;this.Gf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Qb(d,b[1]);break;case 18:this.first=new Qb(d,b[1]);this.second=new Qb(d,b[2]);this.$i=new Qb(d,b[3]);break;case 19:this.Ua=this.b.Gd(b[1]);this.Ua!==X.prototype.la.random&&this.Ua!==X.prototype.la.wq||this.hc.vo();this.ua=[];this.L=[];3===b.length?(c=b[2],this.ua.length=c.length+1):this.ua.length=1;break;case 20:this.ud=this.b.q[b[1]];this.vc=-1;this.Ua=this.b.Gd(b[2]);this.Gf=b[3];Ub.Function&&this.Ua===Ub.Function.prototype.la.Zt&&this.hc.vo();b[4]?this.zc=new Qb(d,b[4]):this.zc=null;this.ua=
[];this.L=[];6===b.length?(c=b[5],this.ua.length=c.length+1):this.ua.length=1;break;case 21:this.ud=this.b.q[b[1]];this.Gf=b[2];b[3]?this.zc=new Qb(d,b[3]):this.zc=null;this.Zo=b[4];break;case 22:this.ud=this.b.q[b[1]];this.ud.Vh(b[2]);this.vc=this.ud.Xj(b[2]);this.Ua=this.b.Gd(b[3]);this.Gf=b[4];b[5]?this.zc=new Qb(d,b[5]):this.zc=null;this.ua=[];this.L=[];7===b.length?(c=b[6],this.ua.length=c.length+1):this.ua.length=1;break;case 23:this.nh=b[1],this.ve=null}this.hc.Ts(this.ud);4<=this.type&&17>=
this.type&&(this.first=new Qb(d,b[1]),this.second=new Qb(d,b[2]));if(c){var g,a;g=0;for(a=c.length;g<a;g++)this.L.push(new Qb(d,c[g]))}}function n(){++r;t.length===r&&t.push(new Pb);return t[r]}function m(d,b,c){var g,a;g=0;for(a=d.length;g<a;++g)d[g].get(c),b[g+1]=c.data}function p(d,b){this.type=d||W.$e;this.data=b||0;this.Oe=null;this.type==W.$e&&(this.data=Math.floor(this.data))}e.prototype.za=function(){23===this.type&&(this.ve=this.hc.b.Im(this.nh,this.hc.Pb.parent));this.first&&this.first.za();
this.second&&this.second.za();this.$i&&this.$i.za();this.zc&&this.zc.za();if(this.L){var d,b;d=0;for(b=this.L.length;d<b;d++)this.L[d].za()}};var t=[],r=-1;e.prototype.Hr=function(d){var b=this.L,c=this.ua;c[0]=d;d=n();m(b,c,d);--r;this.Ua.apply(this.b.Zc,c)};e.prototype.Cr=function(d){var b=this.ud,c=this.ua,g=this.L,a=this.zc,f=this.Ua,e=this.hc.yd,h=b.Y(),v=h.yc();if(!v.length)if(h.P.length)v=h.P;else{this.Gf?d.Lb(""):d.Z(0);return}c[0]=d;d.Oe=b;d=n();m(g,c,d);a&&(a.get(d),d.Pa()&&(e=d.data,v=
b.i));--r;b=v.length;if(e>=b||e<=-b)e%=b;0>e&&(e+=b);f.apply(v[e],c)};e.prototype.kr=function(d){var b=this.ud,c=this.ua,g=this.L,a=this.zc,f=this.vc,e=this.Ua,h=this.hc.yd,v=b.Y(),k=v.yc();if(!k.length)if(v.P.length)k=v.P;else{this.Gf?d.Lb(""):d.Z(0);return}c[0]=d;d.Oe=b;d=n();m(g,c,d);a&&(a.get(d),d.Pa()&&(h=d.data,k=b.i));--r;g=k.length;if(h>=g||h<=-g)h%=g;0>h&&(h+=g);h=k[h];k=0;b.G&&(k=h.type.gf[b.ld]);e.apply(h.H[f+k],c)};e.prototype.sr=function(d){var b=this.zc,c=this.ud,g=this.Zo,a=this.hc.yd,
f=c.Y(),e=f.yc();if(!e.length)if(f.P.length)e=f.P;else{this.Gf?d.Lb(""):d.Z(0);return}if(b){f=n();b.get(f);if(f.Pa()){a=f.data;e=c.i;0!==e.length&&(a%=e.length,0>a&&(a+=e.length));a=c.ak(a);c=a.Ga[g];M(c)?d.Lb(c):d.C(c);--r;return}--r}b=e.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=e[a];e=0;c.G&&(e=a.type.Nh[c.ld]);c=a.Ga[g+e];M(c)?d.Lb(c):d.C(c)};e.prototype.tr=function(d){d.type=W.$e;d.data=this.value};e.prototype.pr=function(d){d.type=W.Ze;d.data=this.value};e.prototype.Fr=function(d){d.type=W.String;
d.data=this.value};e.prototype.Ir=function(d){this.first.get(d);d.Pa()&&(d.data=-d.data)};e.prototype.er=function(d){this.first.get(d);var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data+=b.data,b.of()&&d.xf());--r};e.prototype.Gr=function(d){this.first.get(d);var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data-=b.data,b.of()&&d.xf());--r};e.prototype.Ar=function(d){this.first.get(d);var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data*=b.data,b.of()&&d.xf());--r};e.prototype.mr=function(d){this.first.get(d);
var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data/=b.data,d.xf());--r};e.prototype.yr=function(d){this.first.get(d);var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data%=b.data,b.of()&&d.xf());--r};e.prototype.Er=function(d){this.first.get(d);var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data=Math.pow(d.data,b.data),b.of()&&d.xf());--r};e.prototype.fr=function(d){this.first.get(d);var b=n();this.second.get(b);b.qf()||d.qf()?this.hr(d,b):this.gr(d,b);--r};e.prototype.hr=function(d,b){d.qf()&&
b.qf()?this.jr(d,b):this.ir(d,b)};e.prototype.jr=function(d,b){d.data+=b.data};e.prototype.ir=function(d,b){d.qf()?d.data+=(Math.round(1E10*b.data)/1E10).toString():d.Lb(d.data.toString()+b.data)};e.prototype.gr=function(d,b){d.Z(d.data&&b.data?1:0)};e.prototype.Dr=function(d){this.first.get(d);var b=n();this.second.get(b);d.Pa()&&b.Pa()&&(d.data||b.data?d.Z(1):d.Z(0));--r};e.prototype.lr=function(d){this.first.get(d);d.data?this.second.get(d):this.$i.get(d)};e.prototype.nr=function(d){this.first.get(d);
var b=n();this.second.get(b);d.Z(d.data===b.data?1:0);--r};e.prototype.Br=function(d){this.first.get(d);var b=n();this.second.get(b);d.Z(d.data!==b.data?1:0);--r};e.prototype.ur=function(d){this.first.get(d);var b=n();this.second.get(b);d.Z(d.data<b.data?1:0);--r};e.prototype.xr=function(d){this.first.get(d);var b=n();this.second.get(b);d.Z(d.data<=b.data?1:0);--r};e.prototype.qr=function(d){this.first.get(d);var b=n();this.second.get(b);d.Z(d.data>b.data?1:0);--r};e.prototype.rr=function(d){this.first.get(d);
var b=n();this.second.get(b);d.Z(d.data>=b.data?1:0);--r};e.prototype.or=function(d){var b=this.ve.xe();E(b)?d.C(b):d.Lb(b)};Qb=e;p.prototype.of=function(){return this.type===W.Ze};p.prototype.Pa=function(){return this.type===W.$e||this.type===W.Ze};p.prototype.qf=function(){return this.type===W.String};p.prototype.xf=function(){this.of()||(this.qf()&&(this.data=parseFloat(this.data)),this.type=W.Ze)};p.prototype.Z=function(d){this.type=W.$e;this.data=Math.floor(d)};p.prototype.C=function(d){this.type=
W.Ze;this.data=d};p.prototype.Lb=function(d){this.type=W.String;this.data=d};p.prototype.Dt=function(d){E(d)?(this.type=W.Ze,this.data=d):M(d)?(this.type=W.String,this.data=d.toString()):(this.type=W.$e,this.data=0)};Pb=p;W={$e:0,Ze:1,String:2}})();function X(e){this.b=e;this.Nb=[]}
X.prototype.Jb=function(){var e={},n,m,p,t,r,d,b,c;e.waits=[];var g=e.waits,a;n=0;for(m=this.Nb.length;n<m;n++){d=this.Nb[n];a={t:d.time,st:d.Et,s:d.Ao,ev:d.ig.O,sm:[],sols:{}};d.ig.rc[d.Xb]&&(a.act=d.ig.rc[d.Xb].O);p=0;for(t=d.Aa.length;p<t;p++)a.sm.push(d.Aa[p].O);for(r in d.Mb)if(d.Mb.hasOwnProperty(r)){b=this.b.q[parseInt(r,10)];c={sa:d.Mb[r].no,insts:[]};p=0;for(t=d.Mb[r].Be.length;p<t;p++)c.insts.push(d.Mb[r].Be[p].uid);a.sols[b.O.toString()]=c}g.push(a)}return e};
X.prototype.fc=function(e){e=e.waits;var n,m,p,t,r,d,b,c,g,a,f;R(this.Nb);n=0;for(m=e.length;n<m;n++)if(d=e[n],c=this.b.lm[d.ev.toString()]){g=-1;p=0;for(t=c.rc.length;p<t;p++)if(c.rc[p].O===d.act){g=p;break}if(-1!==g){b={Mb:{},Aa:[],wm:!1};b.time=d.t;b.Et=d.st||"";b.Ao=!!d.s;b.ig=c;b.Xb=g;p=0;for(t=d.sm.length;p<t;p++)(c=this.b.Zh(d.sm[p]))&&b.Aa.push(c);for(r in d.sols)if(d.sols.hasOwnProperty(r)&&(c=this.b.Zh(parseInt(r,10)))){g=d.sols[r];a={no:g.sa,Be:[]};p=0;for(t=g.insts.length;p<t;p++)(f=this.b.Yh(g.insts[p]))&&
a.Be.push(f);b.Mb[c.index.toString()]=a}this.Nb.push(b)}}};
(function(){function e(){}function n(){}function m(){}var p=X.prototype;e.prototype.mp=function(){return!0};e.prototype.Rl=function(){return!0};e.prototype.Fp=function(){return!0};e.prototype.hp=function(d,b,c){return Tb(d.xe(),b,c)};e.prototype.lp=function(){var d=this.b.Db();return d.Lj?!1:!d.Ge};e.prototype.Sl=function(){return!0};e.prototype.vp=function(){return!0};e.prototype.nj=function(){return!0};e.prototype.Gp=function(){return!0};e.prototype.mj=function(){return!0};e.prototype.dp=function(d,
b,c){return La(S(d),S(c))<=S(b)};e.prototype.pp=function(d,b){return V(S(d),S(b))};e.prototype.op=function(d,b,c){d=Ja(d);b=Ja(b);c=Ja(c);return V(c,b)?V(d,b)&&!V(d,c):!(!V(d,b)&&V(d,c))};p.j=new e;n.prototype.jp=function(d,b,c,g){if(b&&d&&(b=this.b.tm(d,b,c,g))){this.b.Bc++;var a;this.b.trigger(Object.getPrototypeOf(d.ja).j.rh,b);if(b.Fb)for(c=0,g=b.siblings.length;c<g;c++)a=b.siblings[c],this.b.trigger(Object.getPrototypeOf(a.type.ja).j.rh,a);this.b.Bc--;d=d.Y();d.ka=!1;R(d.i);d.i[0]=b;if(b.Fb)for(c=
0,g=b.siblings.length;c<g;c++)a=b.siblings[c],d=a.type.Y(),d.ka=!1,R(d.i),d.i[0]=a}};n.prototype.Yp=function(d,b){0===d.oh?E(b)?d.wd(b):d.wd(parseFloat(b)):1===d.oh&&d.wd(b.toString())};n.prototype.cp=function(d,b){0===d.oh?E(b)?d.wd(d.xe()+b):d.wd(d.xe()+parseFloat(b)):1===d.oh&&d.wd(d.xe()+b.toString())};n.prototype.aq=function(d,b){0===d.oh&&(E(b)?d.wd(d.xe()-b):d.wd(d.xe()-parseFloat(b)))};var t=[],r=[];n.prototype.Sp=function(){var d,b,c;d=0;for(b=this.b.qj.length;d<b;d++)c=this.b.qj[d],c.data=
c.bi};n.prototype.Tp=function(){if(!this.b.Ag&&!this.b.Zf&&this.b.R){this.b.Zf=this.b.R;var d,b,c;d=0;for(b=this.b.Jd.length;d<b;d++)c=this.b.Jd[d],c.uo(c.ci)}};p.aa=new n;m.prototype["int"]=function(d,b){M(b)?(d.Z(parseInt(b,10)),isNaN(d.data)&&(d.data=0)):d.Z(b)};m.prototype["float"]=function(d,b){M(b)?(d.C(parseFloat(b)),isNaN(d.data)&&(d.data=0)):d.C(b)};m.prototype.random=function(d,b,c){void 0===c?d.C(Math.random()*b):d.C(Math.random()*(c-b)+b)};m.prototype.sqrt=function(d,b){d.C(Math.sqrt(b))};
m.prototype.abs=function(d,b){d.C(Math.abs(b))};m.prototype.round=function(d,b){d.Z(Math.round(b))};m.prototype.floor=function(d,b){d.Z(Math.floor(b))};m.prototype.ceil=function(d,b){d.Z(Math.ceil(b))};m.prototype.sin=function(d,b){d.C(Math.sin(S(b)))};m.prototype.cos=function(d,b){d.C(Math.cos(S(b)))};m.prototype.tan=function(d,b){d.C(Math.tan(S(b)))};m.prototype.asin=function(d,b){d.C(Ga(Math.asin(b)))};m.prototype.acos=function(d,b){d.C(Ga(Math.acos(b)))};m.prototype.atan=function(d,b){d.C(Ga(Math.atan(b)))};
m.prototype.exp=function(d,b){d.C(Math.exp(b))};m.prototype.log10=function(d,b){d.C(Math.log(b)/Math.LN10)};m.prototype.max=function(d){var b=arguments[1];"number"!==typeof b&&(b=0);var c,g,a;c=2;for(g=arguments.length;c<g;c++)a=arguments[c],"number"===typeof a&&b<a&&(b=a);d.C(b)};m.prototype.min=function(d){var b=arguments[1];"number"!==typeof b&&(b=0);var c,g,a;c=2;for(g=arguments.length;c<g;c++)a=arguments[c],"number"===typeof a&&b>a&&(b=a);d.C(b)};m.prototype.se=function(d){d.C(this.b.se)};m.prototype.jh=
function(d){d.C(this.b.jh)};m.prototype.time=function(d){d.C(this.b.ec.xa)};m.prototype.Bd=function(d){d.Z(this.b.Bd)};m.prototype.Di=function(d){d.Z(this.b.Di)};m.prototype.Tj=function(d){d.Z(this.b.Tj)};m.prototype.m=function(d,b,c,g,a){d.C(Ga(Ka(b,c,g,a)))};m.prototype.Os=function(d){d.Z(this.b.R.width)};m.prototype.Ns=function(d){d.Z(this.b.R.height)};m.prototype.left=function(d,b,c){d.Lb(M(b)?b.substr(0,c):"")};m.prototype.right=function(d,b,c){d.Lb(M(b)?b.substr(b.length-c):"")};m.prototype.replace=
function(d,b,c,g){M(b)&&M(c)&&M(g)?d.Lb(b.replace(new RegExp(Wa(c),"gi"),g)):d.Lb(M(b)?b:"")};m.prototype.trim=function(d,b){d.Lb(M(b)?b.trim():"")};m.prototype.wq=function(d){var b=N(Math.random()*(arguments.length-1));d.Dt(arguments[b+1])};m.prototype.Gj=function(d){d.C(this.b.Gj/1E3)};m.prototype.vf=function(d){d.C(this.b.vf)};p.la=new m;p.ut=function(){var d,b,c,g,a,f,e=this.b.Db();d=0;for(c=this.Nb.length;d<c;d++){g=this.Nb[d];if(-1===g.time){if(!g.Ao)continue}else if(g.time>this.b.ec.xa)continue;
e.xc=g.ig;e.Xb=g.Xb;e.yb=0;for(b in g.Mb)g.Mb.hasOwnProperty(b)&&(a=this.b.q[parseInt(b,10)].Y(),f=g.Mb[b],a.ka=f.no,Aa(a.i,f.Be),a=f,R(a.Be),r.push(a));g.ig.tt();this.b.Ej(g.Aa);g.wm=!0}b=d=0;for(c=this.Nb.length;d<c;d++)g=this.Nb[d],this.Nb[b]=g,g.wm?(Qa(g.Mb),R(g.Aa),t.push(g)):b++;ya(this.Nb,b)}})();
(function(){gb=function(e,m){var p=e[1],t=e[3],r=e[4],d=e[5],b=e[6],c=e[7],g=e[8];m.j||(m.j={});m.aa||(m.aa={});m.la||(m.la={});var a=m.j,f=m.aa,q=m.la;t&&(a.Ll=function(a,b){return Tb(this.x,a,b)},a.ip=function(a,b){return Tb(this.y,a,b)},a.hu=function(){var a=this.k;this.ba();var b=this.qa;return!(b.right<a.da||b.bottom<a.ea||b.left>a.pa||b.top>a.oa)},a.iu=function(){this.ba();var a=this.qa,b=this.b.R;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.uu=function(a,b,c){var d=this.Y(),
f=d.yc();if(!f.length)return!1;var g=f[0],e=g,m=Na(g.x,g.y,b,c),n,r,q;n=1;for(r=f.length;n<r;n++)if(g=f[n],q=Na(g.x,g.y,b,c),0===a&&q<m||1===a&&q>m)m=q,e=g;d.Sg(e);return!0},f.Zl=function(a){this.x!==a&&(this.x=a,this.u())},f.Mu=function(a){this.y!==a&&(this.y=a,this.u())},f.Vp=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.u()},f.Ju=function(a,b){var c=a.Xr(this);if(c){var d;c.$j?(d=c.$j(b,!0),c=c.$j(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.u()}},f.nu=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.u())},f.mu=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.u())},q.pj=function(a){a.C(this.x)},q.gq=function(a){a.C(this.y)},q.se=function(a){a.C(this.b.Wh(this))});r&&(a.cu=function(a,b){return Tb(this.width,a,b)},a.$t=function(a,b){return Tb(this.height,a,b)},f.Zp=function(a){this.width!==a&&(this.width=a,this.u())},f.Gu=function(a){this.height!==a&&(this.height=a,this.u())},f.Wp=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.u()},q.cq=function(a){a.C(this.width)},q.np=function(a){a.C(this.height)},q.Wt=function(a){this.ba();a.C(this.qa.left)},q.Yt=function(a){this.ba();a.C(this.qa.top)},q.Xt=function(a){this.ba();a.C(this.qa.right)},q.Vt=function(a){this.ba();a.C(this.qa.bottom)});d&&(a.dp=function(a,b){return La(this.m,S(b))<=S(a)},a.pp=function(a){return V(this.m,S(a))},a.op=function(a,b){var c=Ja(a),d=Ja(b),f=U(this.m);return V(d,c)?V(f,c)&&!V(f,
d):!(!V(f,c)&&V(f,d))},f.Cu=function(a){a=S(Ha(a));isNaN(a)||this.m===a||(this.m=a,this.u())},f.yu=function(a){0===a||isNaN(a)||(this.m+=S(a),this.m=U(this.m),this.u())},f.zu=function(a){0===a||isNaN(a)||(this.m-=S(a),this.m=U(this.m),this.u())},f.Au=function(a,b){var c=Ma(this.m,S(b),S(a));isNaN(c)||this.m===c||(this.m=c,this.u())},f.Bu=function(a,b,c){a=Ma(this.m,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.m===a||(this.m=a,this.u())},f.Ku=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.m===c||(this.m=c,this.u())},q.Ut=function(a){a.C(Ia(this.m))});p||(a.au=function(a,b,c){return Tb(this.Ga[a],b,c)},a.fu=function(a){return this.Ga[a]},a.vu=function(a,b){var c=this.Y(),d=c.yc();if(!d.length)return!1;var f=d[0],g=f,e=f.Ga[b],m,n,r;m=1;for(n=d.length;m<n;m++)if(f=d[m],r=f.Ga[b],0===a&&r<e||1===a&&r>e)e=r,g=f;c.Sg(g);return!0},a.tu=function(a){var b,c,d,f,g;if(this.b.Qr().mk){g=this.Y();if(g.ka)for(g.ka=!1,R(g.i),R(g.P),d=this.i,b=0,c=d.length;b<c;b++)f=d[b],f.uid===a?
g.P.push(f):g.i.push(f);else{d=b=0;for(c=g.i.length;b<c;b++)f=g.i[b],g.i[d]=f,f.uid===a?g.P.push(f):d++;ya(g.i,d)}this.Kd();return!!g.i.length}f=this.b.Yh(a);if(!f)return!1;g=this.Y();if(!g.ka&&-1===g.i.indexOf(f))return!1;if(this.G)for(a=f.type.ma,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Sg(f),this.Kd(),!0}else if(f.type===this)return g.Sg(f),this.Kd(),!0;return!1},a.rh=function(){return!0},a.wp=function(){return!0},f.Hu=function(a,b){var c=this.Ga;E(c[a])?c[a]=E(b)?b:parseFloat(b):M(c[a])&&
(c[a]=M(b)?b:b.toString())},f.Tt=function(a,b){var c=this.Ga;E(c[a])?c[a]=E(b)?c[a]+b:c[a]+parseFloat(b):M(c[a])&&(c[a]=M(b)?c[a]+b:c[a]+b.toString())},f.Nu=function(a,b){var c=this.Ga;E(c[a])&&(c[a]=E(b)?c[a]-b:c[a]-parseFloat(b))},f.Du=function(a,b){this.Ga[a]=b?1:0},f.Ou=function(a){this.Ga[a]=1-this.Ga[a]},f.kp=function(){this.b.Ye(this)},f.sp||(f.sp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.qi(this,b,!0);this.bd&&this.bd();if(this.H)for(a=0,b=this.H.length;a<b;++a)c=this.H[a],
c.bd&&c.bd()}),q.du=function(a){var b=a.Oe.i.length,c,d,f;c=0;for(d=this.b.wc.length;c<d;c++)f=this.b.wc[c],a.Oe.G?0<=f.type.ma.indexOf(a.Oe)&&b++:f.type===a.Oe&&b++;a.Z(b)},q.xu=function(a){a.Z(a.Oe.Y().yc().length)},q.Pu=function(a){a.Z(this.uid)},q.eu=function(a){a.Z(this.og())},q.ep||(q.ep=function(a){a.Lb(JSON.stringify(this.b.ml(this,!0)))}));b&&(a.ju=function(){return this.visible},f.Lu=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.X=!0)},a.bu=function(a,b){return Tb(cb(100*this.opacity),
a,b)},f.Iu=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.X=!0)},q.Opacity=function(a){a.C(cb(100*this.opacity))});c&&(a.gu=function(a){return a?this.k===a:!1},a.wu=function(a){var b=this.Y(),c=b.yc();if(!c.length)return!1;var d=c[0],f=d,g,e;g=1;for(e=c.length;g<e;g++)if(d=c[g],0===a){if(d.k.index>f.k.index||d.k.index===f.k.index&&d.Rc()>f.Rc())f=d}else if(d.k.index<f.k.index||d.k.index===f.k.index&&d.Rc()<f.Rc())f=d;b.Sg(f);return!0},f.qu=function(){var a=this.k,
b=a.i;b.length&&b[b.length-1]===this||(a.Ff(this,!1),a.Vf(this,!1),this.b.X=!0)},f.ou=function(){var a=this.k,b=a.i;b.length&&b[0]===this||(a.Ff(this,!1),a.kt(this),this.b.X=!0)},f.pu=function(a){a&&a!=this.k&&(this.k.Ff(this,!0),this.k=a,a.Vf(this,!0),this.b.X=!0)},f.Ru=function(a,b){var c=0===a;if(b){var d=b.Rr(this);d&&d.uid!==this.uid&&(this.k.index!==d.k.index&&(this.k.Ff(this,!0),this.k=d.k,d.k.Vf(this,!0)),this.k.Us(this,d,c),this.b.X=!0)}},q.lu=function(a){a.Z(this.k.Pn)},q.ku=function(a){a.Lb(this.k.name)},
q.Qu=function(a){a.Z(this.Rc())});g&&(f.Eu=function(a,b){if(this.b.p){var c=this.type.Zj(b);if(!(0>c)){var d=1===a;this.Hd[c]!==d&&(this.Hd[c]=d,this.Kc(),this.b.X=!0)}}},f.Fu=function(a,b,c){if(this.b.p){var d=this.type.Zj(a);0>d||(a=this.type.I[d],d=this.ra[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.p.$r(a.Da,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ob&&(this.b.X=!0))))}})};zb=function(){this.zj=this.uj=!0;this.type.sh=!0;this.b.X=!0;var e,m,p=this.vj;e=0;for(m=p.length;e<m;++e)p[e](this);this.k.Wb&&
this.ba()};Ab=function(e){e&&this.vj.push(e)};Cb=function(){if(this.uj){var e=this.qa,m=this.kb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.sb*this.width,-this.tb*this.height);this.m?(e.offset(-this.x,-this.y),m.xo(e,this.m),m.offset(this.x,this.y),m.mm(e)):m.Zg(e);e.normalize();this.uj=!1;this.Mt()}};var e=new O(0,0,0,0);Db=function(){if(this.k.Wb){var n=this.k.Wa,m=this.qa;e.set(n.ob(m.left),n.pb(m.top),n.ob(m.right),n.pb(m.bottom));this.ub.hg(e)||(this.ub.right<this.ub.left?
n.update(this,null,e):n.update(this,this.ub,e),this.ub.ag(e),this.k.Hc=!0)}};Eb=function(){if(this.zj&&this.ed){this.ba();var n=this.type.Dh,m=this.qa;e.set(n.ob(m.left),n.pb(m.top),n.ob(m.right),n.pb(m.bottom));this.Pd.hg(e)||(this.Pd.right<this.Pd.left?n.update(this,null,e):n.update(this,this.Pd,e),this.Pd.ag(e),this.zj=!1)}};Bb=function(e,m){return this.qa.mb(e,m)&&this.kb.mb(e,m)?this.T&&!this.T.nf()?(this.T.cf(this.width,this.height,this.m),this.T.mb(e-this.x,m-this.y)):!0:!1};vb=function(){this.type.fj();
return this.ze};Fb=function(){this.k.Hl();return this.Lc};Gb=function(){R(this.Q);var e,m,p,t=!0;e=0;for(m=this.Hd.length;e<m;e++)this.Hd[e]&&(p=this.type.I[e],this.Q.push(p),p.Ec||(t=!1));this.Yo=!!this.Q.length;this.xd=t};wb=function(){return"Inst"+this.jo};jb=function(e){if(e&&e.Fb&&e.type!=this){var m,p,t;m=0;for(p=e.siblings.length;m<p;m++)if(t=e.siblings[m],t.type==this)return t}e=this.Y().yc();return e.length?e[0]:null};kb=function(e){var m=this.Y().yc();return m.length?m[e.og()%m.length]:
null};ib=function(){if(this.Kf&&!this.G){var e,m;e=0;for(m=this.i.length;e<m;e++)this.i[e].ze=e;var p=e,t=this.b.wc;e=0;for(m=t.length;e<m;++e)t[e].type===this&&(t[e].ze=p++);this.Kf=!1}};tb=function(e){if(e<this.i.length)return this.i[e];e-=this.i.length;var m=this.b.wc,p,t;p=0;for(t=m.length;p<t;++p)if(m[p].type===this){if(0===e)return m[p];--e}return null};lb=function(){return this.zd[this.Oc]};mb=function(){this.Oc++;this.Oc===this.zd.length?this.zd.push(new hb(this)):(this.zd[this.Oc].ka=!0,
R(this.zd[this.Oc].P))};nb=function(){this.Oc++;this.Oc===this.zd.length&&this.zd.push(new hb(this));var e=this.zd[this.Oc],m=this.zd[this.Oc-1];m.ka?(e.ka=!0,R(e.P)):(e.ka=!1,Aa(e.i,m.i),Aa(e.P,m.P))};ob=function(){this.Oc--};pb=function(e){var m,p,t,r,d,b=0;if(!this.G)for(m=0,p=this.ma.length;m<p;m++)for(d=this.ma[m],t=0,r=d.Ba.length;t<r;t++){if(e===d.Ba[t].name)return this.V.lastBehIndex=b,d.Ba[t];b++}m=0;for(p=this.Ba.length;m<p;m++){if(e===this.Ba[m].name)return this.V.lastBehIndex=b,this.Ba[m];
b++}return null};qb=function(e){return this.Vh(e)?this.V.lastBehIndex:-1};rb=function(e){var m,p;m=0;for(p=this.I.length;m<p;m++)if(this.I[m].name===e)return m;return-1};sb=function(){if(this.Fb&&!this.G){var e,m,p,t,r,d,b;this.fj();d=this.Y();var c=d.ka,g=(e=this.b.Db())&&e.xc&&e.xc.Uc;e=0;for(m=this.zb.length;e<m;e++)if(r=this.zb[e],r!==this&&(r.fj(),b=r.Y(),b.ka=c,!c)){R(b.i);p=0;for(t=d.i.length;p<t;++p)b.i[p]=r.ak(d.i[p].ze);if(g)for(R(b.P),p=0,t=d.P.length;p<t;++p)b.P[p]=r.ak(d.P[p].ze)}}};
ub=function(){return"Type"+this.O};Tb=function(e,m,p){if("undefined"===typeof e||"undefined"===typeof p)return!1;switch(m){case 0:return e===p;case 1:return e!==p;case 2:return e<p;case 3:return e<=p;case 4:return e>p;case 5:return e>=p;default:return!1}}})();var bc={};function Y(e){this.b=e}
(function(){function e(){}function n(){}function m(d){console&&console.warn&&console.warn("Fullscreen request failed: ",d);r.setSize(window.innerWidth,window.innerHeight)}var p=Y.prototype;p.Oa=function(d){this.ja=d;this.b=d.b};p.Oa.prototype.W=function(){};p.ya=function(d){this.type=d;this.b=d.b};p.ya.prototype.W=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(Y.prototype.j.Mp,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(Y.prototype.j.Jp,
d)}),window.addEventListener("offline",function(){d.b.trigger(Y.prototype.j.Ip,d)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){d.b.vf=1;d.b.trigger(Y.prototype.j.Yl,d)}),window.applicationCache.addEventListener("progress",function(b){d.b.vf=b.loaded/b.total}));this.b.od||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(Y.prototype.j.Yl,d)}),document.addEventListener("backbutton",function(){d.b.trigger(Y.prototype.j.lj,
d)}),document.addEventListener("menubutton",function(){d.b.trigger(Y.prototype.j.Tl,d)}),document.addEventListener("searchbutton",function(){d.b.trigger(Y.prototype.j.Np,d)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=d.b.trigger(Y.prototype.j.lj,d);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=d.b.trigger(Y.prototype.j.Tl,d))||b.preventDefault()}}));this.b.rk&&WinJS.Application&&(WinJS.Application.onbackclick=
function(){return!!d.b.trigger(Y.prototype.j.lj,d)});this.b.mq(function(b){b?d.b.trigger(Y.prototype.j.Kp,d):d.b.trigger(Y.prototype.j.Lp,d)})};e.prototype.Jp=function(){return!0};e.prototype.Ip=function(){return!0};e.prototype.Yl=function(){return!0};e.prototype.Lp=function(){return!0};e.prototype.Kp=function(){return!0};e.prototype.Mp=function(){return!0};e.prototype.lj=function(){return!0};e.prototype.Tl=function(){return!0};e.prototype.Np=function(){return!0};p.j=new e;var t=!0,r=null;n.prototype.Rp=
function(d){this.b.ta?x("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=d&&(d+=1),6===d&&(d=2),this.b.Gs?this.b.Ds?debuggerFullscreen(!0):!this.b.Ce&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.Ce=!0,this.b.nd=2<=d?d:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.nd=2<=d?d:0,d=this.b.yj||this.b.canvas,t&&(t=!1,r=this.b,d.addEventListener("mozfullscreenerror",
m),d.addEventListener("webkitfullscreenerror",m),d.addEventListener("MSFullscreenError",m),d.addEventListener("fullscreenerror",m)),d.requestFullscreen?d.requestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen?d.msRequestFullscreen():d.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?d.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):d.webkitRequestFullScreen())))};p.aa=new n;p.la=new function(){}})();
function fc(e){this.b=e}
(function(){function e(){}var n=fc.prototype;n.Oa=function(e){this.ja=e;this.b=e.b};n.Oa.prototype.W=function(){};n.ya=function(e){this.type=e;this.b=e.b;this.Dg=Array(256);this.lh=Array(256);this.Dd=0};var m=n.ya.prototype;m.W=function(){var e=this;this.b.ta||(jQuery(document).keydown(function(m){e.Nk(m)}),jQuery(document).keyup(function(m){e.Ok(m)}))};var p=[32,33,34,35,36,37,38,39,40,44];m.Nk=function(e){var m=!1;window!=window.top&&-1<p.indexOf(e.which)&&(e.preventDefault(),m=!0,e.stopPropagation());
if(this.Dg[e.which])this.lh[e.which]&&!m&&e.preventDefault();else{this.Dg[e.which]=!0;this.Dd=e.which;this.b.cc=!0;this.b.trigger(fc.prototype.j.Ml,this);var d=this.b.trigger(fc.prototype.j.Dp,this),b=this.b.trigger(fc.prototype.j.Ep,this);this.b.cc=!1;if(d||b)this.lh[e.which]=!0,m||e.preventDefault()}};m.Ok=function(e){this.Dg[e.which]=!1;this.Dd=e.which;this.b.cc=!0;this.b.trigger(fc.prototype.j.Nl,this);var m=this.b.trigger(fc.prototype.j.Pl,this),d=this.b.trigger(fc.prototype.j.Ol,this);this.b.cc=
!1;if(m||d||this.lh[e.which])this.lh[e.which]=!0,e.preventDefault()};m.Pe=function(){var e;for(e=0;256>e;++e)if(this.Dg[e]){this.Dg[e]=!1;this.Dd=e;this.b.trigger(fc.prototype.j.Nl,this);var m=this.b.trigger(fc.prototype.j.Pl,this),d=this.b.trigger(fc.prototype.j.Ol,this);if(m||d)this.lh[e]=!0}};m.Jb=function(){return{triggerKey:this.Dd}};m.fc=function(e){this.Dd=e.triggerKey};e.prototype.Dp=function(e){return e===this.Dd};e.prototype.Ml=function(){return!0};e.prototype.Nl=function(){return!0};e.prototype.Pl=
function(e){return e===this.Dd};e.prototype.Ep=function(e){return e===this.Dd};e.prototype.Ol=function(e){return e===this.Dd};n.j=new e;n.aa=new function(){};n.la=new function(){}})();function ec(e){this.b=e}
(function(){function e(){if(0===this.Jj.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var d=b.getContext("2d");this.Jf?d.drawImage(this.S,this.Af,this.Bf,this.width,this.height,0,0,this.width,this.height):d.drawImage(this.S,0,0,this.width,this.height);this.Jj=b.toDataURL("image/png")}return this.Jj}function n(){}var m=ec.prototype;m.Oa=function(b){this.ja=b;this.b=b.b};var p=m.Oa.prototype;p.W=function(){if(!this.G){var b,d,a,f,m,h,r,k,n;this.sc=[];this.rg=
!1;b=0;for(d=this.qb.length;b<d;b++){m=this.qb[b];r={};r.name=m[0];r.speed=m[1];r.loop=m[2];r.hl=m[3];r.il=m[4];r.$n=m[5];r.O=m[6];r.frames=[];a=0;for(f=m[7].length;a<f;a++)h=m[7][a],k={},k.tl=h[0],k.ul=h[1],k.Af=h[2],k.Bf=h[3],k.width=h[4],k.height=h[5],k.duration=h[6],k.sb=h[7],k.tb=h[8],k.jk=h[9],k.Ji=h[10],k.ao=h[11],k.Jf=0!==k.width,k.Jj="",k.Xu=e,n={left:0,top:0,right:1,bottom:1},k.pl=n,k.fa=null,(n=this.b.Kr(h[0]))?k.S=n:(k.S=new Image,k.S.yq=h[0],k.S.rm=h[1],k.S.tq=null,this.b.$o(k.S,h[0])),
r.frames.push(k),this.sc.push(k);this.qb[b]=r}}};p.Vo=function(){var b,d,a;b=0;for(d=this.i.length;b<d;b++)a=this.i[b],a.Gh=a.Yb.fa};p.Ei=function(){if(!this.G){var b,d,a;b=0;for(d=this.sc.length;b<d;++b)a=this.sc[b],a.S.tq=null,a.fa=null;this.rg=!1;this.Vo()}};p.Qk=function(){if(!this.G&&this.i.length){var b,d,a;b=0;for(d=this.sc.length;b<d;++b)a=this.sc[b],a.fa=this.b.p.si(a.S,!1,this.b.M,a.ao);this.Vo()}};p.Ek=function(){if(!this.G&&!this.rg&&this.b.p){var b,d,a;b=0;for(d=this.sc.length;b<d;++b)a=
this.sc[b],a.fa=this.b.p.si(a.S,!1,this.b.M,a.ao);this.rg=!0}};p.El=function(){if(!this.G&&!this.i.length&&this.rg){var b,d,a;b=0;for(d=this.sc.length;b<d;++b)a=this.sc[b],this.b.p.deleteTexture(a.fa),a.fa=null;this.rg=!1}};var t=[];p.Xk=function(b){var d,a,f;R(t);d=0;for(a=this.sc.length;d<a;++d)f=this.sc[d].S,-1===t.indexOf(f)&&(b.drawImage(f,0,0),t.push(f))};m.ya=function(b){this.type=b;this.b=b.b;b=this.type.qb[0].frames[0].Ji;this.Ub?this.T.$g(b):this.T=new Xa(b)};var r=m.ya.prototype;r.W=function(){this.visible=
0===this.N[0];this.ed=0!==this.N[3];1===this.type.qb.length&&1===this.type.qb[0].frames.length||0===this.type.qb[0].speed||this.b.Lo(this);this.ia=this.Gm(this.N[1])||this.type.qb[0];this.B=this.N[2];0>this.B&&(this.B=0);this.B>=this.ia.frames.length&&(this.B=this.ia.frames.length-1);var b=this.ia.frames[this.B];this.T.$g(b.Ji);this.sb=b.sb;this.tb=b.tb;this.fg=this.ia.speed;this.Rd=this.ia.il;this.Ub?this.Nc.reset():this.Nc=new Va;this.md=this.Nc.xa;this.me=!0;this.cd=0;this.le=!0;this.Dj=this.hm=
"";this.vq=0;this.Cj=-1;this.type.Ek();var d,a,f,e,h,m,k,b=0;for(d=this.type.qb.length;b<d;b++)for(e=this.type.qb[b],a=0,f=e.frames.length;a<f;a++)h=e.frames[a],0===h.width&&(h.width=h.S.width,h.height=h.S.height),h.Jf&&(k=h.S,m=h.pl,m.left=h.Af/k.width,m.top=h.Bf/k.height,m.right=(h.Af+h.width)/k.width,m.bottom=(h.Bf+h.height)/k.height,0===h.Af&&0===h.Bf&&h.width===k.width&&h.height===k.height&&(h.Jf=!1));this.Yb=this.ia.frames[this.B];this.Gh=this.Yb.fa};r.Jb=function(){var b={a:this.ia.O,f:this.B,
cas:this.fg,fs:this.md,ar:this.cd,at:this.Nc.xa,rt:this.Rd};this.me||(b.ap=this.me);this.le||(b.af=this.le);return b};r.fc=function(b){var d=this.Nr(b.a);d&&(this.ia=d);this.B=b.f;0>this.B&&(this.B=0);this.B>=this.ia.frames.length&&(this.B=this.ia.frames.length-1);this.fg=b.cas;this.md=b.fs;this.cd=b.ar;this.Nc.reset();this.Nc.xa=b.at;this.me=b.hasOwnProperty("ap")?b.ap:!0;this.le=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.Rd=b.rt:this.Rd=this.ia.il;this.Yb=this.ia.frames[this.B];
this.Gh=this.Yb.fa;this.T.$g(this.Yb.Ji);this.sb=this.Yb.sb;this.tb=this.Yb.tb};r.tj=function(b){this.B=b?0:this.ia.frames.length-1;this.me=!1;this.hm=this.ia.name;this.b.trigger(ec.prototype.j.up,this);this.b.trigger(ec.prototype.j.tp,this);this.cd=0};r.vh=function(){return this.Nc.xa};r.$c=function(){this.Nc.add(this.b.Wh(this));this.Dj.length&&this.Eq();0<=this.Cj&&this.Fq();var b=this.Nc.xa,d=this.ia,a=d.frames[this.B],f=a.duration/this.fg;this.me&&b>=this.md+f&&(this.le?this.B++:this.B--,this.md+=
f,this.B>=d.frames.length&&(d.$n?(this.le=!1,this.B=d.frames.length-2):d.loop?this.B=this.Rd:(this.cd++,this.cd>=d.hl?this.tj(!1):this.B=this.Rd)),0>this.B&&(d.$n?(this.B=1,this.le=!0,d.loop||(this.cd++,this.cd>=d.hl&&this.tj(!0))):d.loop?this.B=this.Rd:(this.cd++,this.cd>=d.hl?this.tj(!0):this.B=this.Rd)),0>this.B?this.B=0:this.B>=d.frames.length&&(this.B=d.frames.length-1),b>this.md+d.frames[this.B].duration/this.fg&&(this.md=b),b=d.frames[this.B],this.bf(a,b),this.b.X=!0)};r.Gm=function(b){var d,
a,f;d=0;for(a=this.type.qb.length;d<a;d++)if(f=this.type.qb[d],db(f.name,b))return f;return null};r.Nr=function(b){var d,a,f;d=0;for(a=this.type.qb.length;d<a;d++)if(f=this.type.qb[d],f.O===b)return f;return null};r.Eq=function(){var b=this.ia.frames[this.B],d=this.Gm(this.Dj);this.Dj="";!d||db(d.name,this.ia.name)&&this.me||(this.ia=d,this.fg=d.speed,this.Rd=d.il,0>this.B&&(this.B=0),this.B>=this.ia.frames.length&&(this.B=this.ia.frames.length-1),1===this.vq&&(this.B=0),this.me=!0,this.md=this.Nc.xa,
this.le=!0,this.bf(b,this.ia.frames[this.B]),this.b.X=!0)};r.Fq=function(){var b=this.ia.frames[this.B],d=this.B;this.B=N(this.Cj);0>this.B&&(this.B=0);this.B>=this.ia.frames.length&&(this.B=this.ia.frames.length-1);d!==this.B&&(this.bf(b,this.ia.frames[this.B]),this.md=this.Nc.xa,this.b.X=!0);this.Cj=-1};r.bf=function(b,d){var a=b.width,f=b.height,e=d.width,h=d.height;a!=e&&(this.width*=e/a);f!=h&&(this.height*=h/f);this.sb=d.sb;this.tb=d.tb;this.T.$g(d.Ji);this.u();this.Yb=d;this.Gh=d.fa;a=0;for(f=
this.H.length;a<f;a++)e=this.H[a],e.ct&&e.ct(b,d);this.b.trigger(ec.prototype.j.bf,this)};r.Pc=function(b){b.globalAlpha=this.opacity;var d=this.Yb,a=d.Jf,f=d.S,e=this.x,h=this.y,m=this.width,k=this.height;if(0===this.m&&0<=m&&0<=k)e-=this.sb*m,h-=this.tb*k,this.b.Dc&&(e=Math.round(e),h=Math.round(h)),a?b.drawImage(f,d.Af,d.Bf,d.width,d.height,e,h,m,k):b.drawImage(f,e,h,m,k);else{this.b.Dc&&(e=Math.round(e),h=Math.round(h));b.save();var r=0<m?1:-1,l=0<k?1:-1;b.translate(e,h);1===r&&1===l||b.scale(r,
l);b.rotate(this.m*r*l);e=0-this.sb*ja(m);h=0-this.tb*ja(k);a?b.drawImage(f,d.Af,d.Bf,d.width,d.height,e,h,ja(m),ja(k)):b.drawImage(f,e,h,ja(m),ja(k));b.restore()}};r.re=function(b){this.Ab(b)};r.Ab=function(b){b.Kb(this.Gh);b.Se(this.opacity);var d=this.Yb,a=this.kb;if(this.b.Dc){var f=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;d.Jf?b.Wc(a.Ma+f,a.Na+e,a.ib+f,a.jb+e,a.ab+f,a.bb+e,a.Za+f,a.$a+e,d.pl):b.Wg(a.Ma+f,a.Na+e,a.ib+f,a.jb+e,a.ab+f,a.bb+e,a.Za+f,a.$a+e)}else d.Jf?b.Wc(a.Ma,a.Na,
a.ib,a.jb,a.ab,a.bb,a.Za,a.$a,d.pl):b.Wg(a.Ma,a.Na,a.ib,a.jb,a.ab,a.bb,a.Za,a.$a)};r.Tr=function(b){var d=this.Yb,a,f;a=0;for(f=d.jk.length;a<f;a++)if(db(b,d.jk[a][0]))return a;return-1};r.$j=function(b,d){var a=this.Yb,f=a.jk,e;M(b)?e=this.Tr(b):e=b-1;e=N(e);if(0>e||e>=f.length)return d?this.x:this.y;var h=(f[e][1]-a.sb)*this.width,f=f[e][2],f=(f-a.tb)*this.height,a=Math.cos(this.m);e=Math.sin(this.m);var m=h*a-f*e,f=f*a+h*e,h=m+this.x,f=f+this.y;return d?h:f};var d=new ba,b=!1;new O(0,0,0,0);p.finish=
function(c){if(b){if(c){var e=this.b.Db().xc.Uc;c=null.Y();var a=d.ke(),f,m;if(c.ka){c.ka=!1;R(c.i);f=0;for(m=a.length;f<m;++f)c.i[f]=a[f];if(e)for(R(c.P),f=0,m=null.i.length;f<m;++f)a=null.i[f],d.contains(a)||c.P.push(a)}else if(e)for(e=c.i.length,f=0,m=a.length;f<m;++f)c.i[e+f]=a[f],Ea(c.P,a[f]);else Aa(c.i,a);null.Kd()}d.clear();b=!1}};n.prototype.tp=function(b){return db(this.hm,b)};n.prototype.up=function(){return!0};n.prototype.bf=function(){return!0};m.j=new n;m.aa=new function(){};m.la=new function(){}})();
function gc(e){this.b=e}
(function(){function e(){return b.length?b.pop():{}}function n(c){var d,a;d=0;for(a=c.length;d<a;d++)b.push(c[d]);R(c)}function m(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function p(){}var t=gc.prototype;t.W=function(){t.aa.Zp=function(b){this.width!==b&&(this.width=b,this.We=!0,this.u())}};t.Oa=function(b){this.ja=b;this.b=b.b};var r=t.Oa.prototype;r.W=function(){};r.Ei=function(){if(!this.G){var b,d,a;b=0;for(d=this.i.length;b<d;b++)a=this.i[b],a.Tc=null,a.Ne=null,
a.Hb=null}};t.ya=function(b){this.type=b;this.b=b.b;this.Ub?R(this.ae):this.ae=[];this.We=!0};r=t.ya.prototype;r.W=function(){this.text=this.N[0];this.visible=0===this.N[1];this.font=this.N[2];this.color=this.N[3];this.ai=this.N[4];this.hj=this.N[5];this.Jl=0===this.N[7];this.zk=this.mi=this.width;this.li=this.height;this.Bk=this.N[8];this.Sh=this.ff="";this.Io=this.Jo=this.Ug=0;this.dt();this.Hb=this.Ne=this.Tc=null;this.Nn=!1;this.Hg=this.b.Bd;this.Ub?this.ge.set(0,0,1,1):this.ge=new O(0,0,1,1);
this.b.p&&this.b.Lo(this)};r.dt=function(){var b=this.font.split(" "),d;for(d=0;d<b.length;d++)if("pt"===b[d].substr(b[d].length-2,2)){this.Ug=parseInt(b[d].substr(0,b[d].length-2));this.cl=Math.ceil(this.Ug/72*96)+4;0<d&&(this.Sh=b[d-1]);this.ff=b[d+1];for(d+=2;d<b.length;d++)this.ff+=" "+b[d];break}};r.Jb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ai,va:this.hj,wr:this.Jl,lho:this.Bk,fn:this.ff,fs:this.Sh,ps:this.Ug,pxh:this.cl,tw:this.Jo,th:this.Io,lrt:this.Hg}};r.fc=function(b){this.text=
b.t;this.font=b.f;this.color=b.c;this.ai=b.ha;this.hj=b.va;this.Jl=b.wr;this.Bk=b.lho;this.ff=b.fn;this.Sh=b.fs;this.Ug=b.ps;this.cl=b.pxh;this.Jo=b.tw;this.Io=b.th;this.Hg=b.lrt;this.We=!0;this.zk=this.mi=this.width;this.li=this.height};r.$c=function(){if(this.b.p&&this.Hb&&300<=this.b.Bd-this.Hg){var b=this.k;this.ba();var d=this.qa;if(d.right<b.da||d.bottom<b.ea||d.left>b.pa||d.top>b.oa)this.b.p.deleteTexture(this.Hb),this.Tc=this.Ne=this.Hb=null}};r.Cf=function(){this.Tc=this.Ne=null;this.b.p&&
this.Hb&&this.b.p.deleteTexture(this.Hb);this.Hb=null};r.vh=function(){this.font=this.Sh+" "+this.Ug.toString()+"pt "+this.ff;this.We=!0;this.b.X=!0};r.Pc=function(b,d){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=d?1:this.opacity;var a=1;d&&(a=this.k.Eb(),b.save(),b.scale(a,a));if(this.We||this.width!==this.zk)this.type.ja.dq(this.text,this.ae,b,this.width,this.Jl),this.We=!1,this.zk=this.width;this.ba();var a=d?0:this.kb.Ma,f=d?0:this.kb.Na;this.b.Dc&&(a=a+.5|0,f=f+
.5|0);0===this.m||d||(b.save(),b.translate(a,f),b.rotate(this.m),f=a=0);var e=f+this.height,h=this.cl,h=h+this.Bk,m,k;1===this.hj?f+=Math.max(this.height/2-this.ae.length*h/2,0):2===this.hj&&(f+=Math.max(this.height-this.ae.length*h-2,0));for(k=0;k<this.ae.length&&!(m=a,1===this.ai?m=a+(this.width-this.ae[k].width)/2:2===this.ai&&(m=a+(this.width-this.ae[k].width)),b.fillText(this.ae[k].text,m,f),f+=h,f>=e-h);k++);(0!==this.m||d)&&b.restore();this.Hg=this.b.Bd};r.Ab=function(b){if(!(1>this.width||
1>this.height)){var d=this.We||this.Nn;this.Nn=!1;var a=this.k.Eb(),f=this.k.Cb(),e=this.ge,h=a*this.width,m=a*this.height,k=Math.ceil(h),r=Math.ceil(m),l=this.b.F/2,n=this.b.D/2;this.Ne||(this.Tc=document.createElement("canvas"),this.Tc.width=k,this.Tc.height=r,this.mi=k,this.li=r,d=!0,this.Ne=this.Tc.getContext("2d"));if(k!==this.mi||r!==this.li)this.Tc.width=k,this.Tc.height=r,this.Hb&&(b.deleteTexture(this.Hb),this.Hb=null),d=!0;d&&(this.Ne.clearRect(0,0,k,r),this.Pc(this.Ne,!0),this.Hb||(this.Hb=
b.Qb(k,r,this.b.M,this.b.Xd)),b.Qt(this.Tc,this.Hb,this.b.Xd));this.mi=k;this.li=r;b.Kb(this.Hb);b.Se(this.opacity);b.lc();b.translate(-l,-n);b.Vb();var p=this.kb,d=this.k.na(p.Ma,p.Na,!0,!0),l=this.k.na(p.Ma,p.Na,!1,!0),n=this.k.na(p.ib,p.jb,!0,!0),t=this.k.na(p.ib,p.jb,!1,!0),P=this.k.na(p.ab,p.bb,!0,!0),Q=this.k.na(p.ab,p.bb,!1,!0),C=this.k.na(p.Za,p.$a,!0,!0),p=this.k.na(p.Za,p.$a,!1,!0);if(this.b.Dc||0===this.m&&0===f)var z=(d+.5|0)-d,G=(l+.5|0)-l,d=d+z,l=l+G,n=n+z,t=t+G,P=P+z,Q=Q+G,C=C+z,p=
p+G;0===this.m&&0===f?(n=d+k,t=l,P=n,Q=l+r,C=d,p=Q,e.right=1,e.bottom=1):(e.right=h/k,e.bottom=m/r);b.Wc(d,l,n,t,P,Q,C,p,e);b.lc();b.scale(a,a);b.Oi(-this.k.Cb());b.translate((this.k.da+this.k.pa)/-2,(this.k.ea+this.k.oa)/-2);b.Vb();this.Hg=this.b.Bd}};var d=[];t.bq=function(b){R(d);for(var e="",a,f=0;f<b.length;)if(a=b.charAt(f),"\n"===a)e.length&&(d.push(e),e=""),d.push("\n"),++f;else if(" "===a||"\t"===a||"-"===a){do e+=b.charAt(f),f++;while(f<b.length&&(" "===b.charAt(f)||"\t"===b.charAt(f)));
d.push(e);e=""}else f<b.length&&(e+=a,f++);e.length&&d.push(e)};var b=[];t.dq=function(b,d,a,f,m){if(b&&b.length)if(2>=f)n(d);else{if(100>=b.length&&-1===b.indexOf("\n")){var h=a.measureText(b).width;if(h<=f){n(d);d.push(e());d[0].text=b;d[0].width=h;return}}this.fq(b,d,a,f,m)}else n(d)};t.fq=function(c,g,a,f,r){r&&(this.bq(c),c=d);var h="",n,k,p,l=0;for(p=0;p<c.length;p++)"\n"===c[p]?(l>=g.length&&g.push(e()),h=m(h),k=g[l],k.text=h,k.width=a.measureText(h).width,l++,h=""):(n=h,h+=c[p],k=a.measureText(h).width,
k>=f&&(l>=g.length&&g.push(e()),n=m(n),k=g[l],k.text=n,k.width=a.measureText(n).width,l++,h=c[p],r||" "!==h||(h="")));h.length&&(l>=g.length&&g.push(e()),h=m(h),k=g[l],k.text=h,k.width=a.measureText(h).width,l++);for(p=l;p<g.length;p++)b.push(g[p]);g.length=l};t.j=new function(){};p.prototype.Xp=function(b){E(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.We=!0,this.b.X=!0)};t.aa=new p;t.la=new function(){}})();function hc(e){this.b=e}
(function(){var e=hc.prototype;e.Oa=function(e){this.ja=e;this.b=e.b};var n=e.Oa.prototype;n.W=function(){this.G||(this.S=new Image,this.S.rm=this.ul,this.b.$o(this.S,this.tl),this.fa=this.pattern=null)};n.Ei=function(){this.G||(this.fa=null)};n.Qk=function(){if(!this.G&&this.i.length){this.fa||(this.fa=this.b.p.si(this.S,!0,this.b.M,this.wl));var e,n;e=0;for(n=this.i.length;e<n;e++)this.i[e].fa=this.fa}};n.Ek=function(){this.G||this.fa||!this.b.p||(this.fa=this.b.p.si(this.S,!0,this.b.M,this.wl))};
n.El=function(){this.G||this.i.length||!this.fa||(this.b.p.deleteTexture(this.fa),this.fa=null)};n.Xk=function(e){e.drawImage(this.S,0,0)};e.ya=function(e){this.type=e;this.b=e.b};n=e.ya.prototype;n.W=function(){this.visible=0===this.N[0];this.ge=new O(0,0,0,0);this.Pm=!1;this.S=this.type.S;this.b.p?(this.type.Ek(),this.fa=this.type.fa):(this.type.pattern||(this.type.pattern=this.b.U.createPattern(this.type.S,"repeat")),this.pattern=this.type.pattern)};n.bd=function(){this.Pm=!1;this.S=this.type.S};
n.Cf=function(){this.b.p&&this.Pm&&this.fa&&(this.b.p.deleteTexture(this.fa),this.fa=null)};n.Pc=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var n=this.x,t=this.y;this.b.Dc&&(n=Math.round(n),t=Math.round(t));var r=-(this.sb*this.width),d=-(this.tb*this.height),b=r%this.S.width,c=d%this.S.height;0>b&&(b+=this.S.width);0>c&&(c+=this.S.height);e.translate(n,t);e.rotate(this.m);e.translate(b,c);e.fillRect(r-b,d-c,this.width,this.height);e.restore()};n.re=function(e){this.Ab(e)};
n.Ab=function(e){e.Kb(this.fa);e.Se(this.opacity);var n=this.ge;n.right=this.width/this.S.width;n.bottom=this.height/this.S.height;var t=this.kb;if(this.b.Dc){var r=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;e.Wc(t.Ma+r,t.Na+d,t.ib+r,t.jb+d,t.ab+r,t.bb+d,t.Za+r,t.$a+d,n)}else e.Wc(t.Ma,t.Na,t.ib,t.jb,t.ab,t.bb,t.Za,t.$a,n)};e.j=new function(){};e.aa=new function(){};e.la=new function(){}})();function Z(e){this.b=e}
(function(){function e(b){c=b.x;g=b.y;a=b.z}function n(a,b,c,d){var e;e=f.length?f.pop():new m;e.init(a,b,c,d);return e}function m(){this.eh=this.id=this.Je=this.Ie=this.y=this.x=this.Wi=this.Vi=this.yk=this.time=this.rl=0;this.kh=this.cj=!1}function p(){}function t(){}var r=Z.prototype;r.Oa=function(a){this.ja=a;this.b=a.b};r.Oa.prototype.W=function(){};r.ya=function(a){this.type=a;this.b=a.b;this.touches=[];this.Jk=!1};var d=r.ya.prototype,b={left:0,top:0};d.lg=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,g=0,a=0,f=[];m.prototype.init=function(a,b,c,d){var f=Ra();this.rl=this.yk=this.time=f;this.Vi=a;this.Wi=b;this.x=a;this.y=b;this.Ie=a;this.Je=b;this.pressure=this.height=this.width=0;this.id=c;this.eh=d;this.kh=this.cj=!1};m.prototype.update=function(a,b,c,d,f,e){this.yk=this.time;this.time=a;this.Ie=this.x;this.Je=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.kh&&15<=Na(this.Vi,this.Wi,this.x,this.y)&&(this.kh=
!0)};m.prototype.Ss=function(a,b){!this.cj&&500<=Ra()-this.rl&&!this.kh&&15>Na(this.Vi,this.Wi,this.x,this.y)&&(this.cj=!0,a.ad=this.eh,a.Mf=this.id,a.kf=b,a.b.trigger(Z.prototype.j.Ap,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.j.Bp,a),a.kf=0)};var q=-1E3,h=-1E3,v=-1E4;m.prototype.Hn=function(a,b){if(!this.cj){var c=Ra();333>=c-this.rl&&!this.kh&&15>Na(this.Vi,this.Wi,this.x,this.y)&&(a.ad=this.eh,a.Mf=this.id,a.kf=b,666>=c-v&&25>Na(q,h,this.x,this.y)?(a.b.trigger(Z.prototype.j.xp,a),a.gd=
this.x,a.hd=this.y,a.b.trigger(Z.prototype.j.yp,a),h=q=-1E3,v=-1E4):(a.b.trigger(Z.prototype.j.Pp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.j.Qp,a),q=this.x,h=this.y,v=c),a.kf=0)}};d.W=function(){this.Is=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.kf=this.Mf=this.ad=this.hd=this.gd=this.em=this.dm=this.cm=this.jq=this.iq=this.hq=this.Ii=this.Hi=this.Gi=0;this.Ot=0!==this.N[0];var a=0<this.b.rb?document:this.b.canvas,b=document;this.b.od?b=a=window.Canvas:this.b.$b&&
(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Un(a)},!1),a.addEventListener("pointermove",function(a){c.Tn(a)},!1),b.addEventListener("pointerup",function(a){c.Fi(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Fi(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",
function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Un(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Tn(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Fi(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Fi(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",
function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Wn(a)},!1),a.addEventListener("touchmove",function(a){c.Vn(a)},!1),b.addEventListener("touchend",function(a){c.Rk(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Rk(a,!0)},!1));if(this.Is){var d=function(a){a=a.reading;c.cm=a.accelerationX;c.dm=a.accelerationY;c.em=a.accelerationZ},f=function(a){a=a.reading;c.Gi=a.yawDegrees;c.Hi=a.pitchDegrees;c.Ii=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",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",
f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Gi=a.alpha||0;c.Hi=a.beta||0;c.Ii=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.hq=a.accelerationIncludingGravity.x||0,c.iq=a.accelerationIncludingGravity.y||0,c.jq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.cm=a.acceleration.x||0,c.dm=a.acceleration.y||0,c.em=a.acceleration.z||0)},!1);this.Ot&&!this.b.ta&&(jQuery(document).mousemove(function(a){c.$s(a)}),jQuery(document).mousedown(function(a){c.Zs(a)}),
jQuery(document).mouseup(function(a){c.bt(a)}));!this.b.ji&&this.b.ac&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.Ht(this)};d.Tn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.lg(a.pointerId),d=Ra();if(0<=c){var f=this.b.ta?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-f.left,a.pageY-f.top,
a.width||0,a.height||0,a.pressure||0)}}};d.Un=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&eb(a)&&a.preventDefault();var c=this.b.ta?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Ra();this.ad=this.touches.length;this.Mf=a.pointerId;this.touches.push(n(d,c,a.pointerId,this.ad));this.b.cc=!0;this.b.trigger(Z.prototype.j.Vl,this);this.b.trigger(Z.prototype.j.oj,this);this.gd=d;this.hd=c;this.b.trigger(Z.prototype.j.Xl,this);this.b.cc=
!1}};d.Fi=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&eb(a)&&a.preventDefault();var c=this.lg(a.pointerId);this.ad=0<=c?this.touches[c].eh:-1;this.Mf=0<=c?this.touches[c].id:-1;this.b.cc=!0;this.b.trigger(Z.prototype.j.Ul,this);this.b.trigger(Z.prototype.j.Wl,this);0<=c&&(b||this.touches[c].Hn(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.cc=!1}};d.Vn=function(a){a.preventDefault&&a.preventDefault();var c=Ra(),
d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.lg(e.identifier),0<=g){var h=this.b.ta?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,e.pageX-h.left,e.pageY-h.top,2*(e.jv||e.sv||e.bv||e.gv||0),2*(e.kv||e.tv||e.cv||e.hv||0),e.Vu||e.rv||e.av||e.dv||0)}};d.Wn=function(a){a.preventDefault&&eb(a)&&a.preventDefault();var c=this.b.ta?b:jQuery(this.b.canvas).offset();Ra();this.b.cc=!0;var d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],
g=this.lg(e.identifier),-1===g){g=e.pageX-c.left;var h=e.pageY-c.top;this.ad=this.touches.length;this.Mf=e.identifier;this.touches.push(n(g,h,e.identifier,this.ad));this.b.trigger(Z.prototype.j.Vl,this);this.b.trigger(Z.prototype.j.oj,this);this.gd=g;this.hd=h;this.b.trigger(Z.prototype.j.Xl,this)}this.b.cc=!1};d.Rk=function(a,b){a.preventDefault&&eb(a)&&a.preventDefault();this.b.cc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.lg(e.identifier),0<=e&&(this.ad=
this.touches[e].eh,this.Mf=this.touches[e].id,this.b.trigger(Z.prototype.j.Ul,this),this.b.trigger(Z.prototype.j.Wl,this),b||this.touches[e].Hn(this,e),100>f.length&&f.push(this.touches[e]),this.touches.splice(e,1));this.b.cc=!1};d.vh=function(){return this.b.ac&&0===this.Gi&&0!==a?90*a:this.Gi};d.Uu=function(){return this.b.ac&&0===this.Hi&&0!==g?90*g:this.Hi};d.$u=function(){return this.b.ac&&0===this.Ii&&0!==c?90*c:this.Ii};d.Zs=function(a){this.Wn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,
identifier:0}]});this.Jk=!0};d.$s=function(a){this.Jk&&this.Vn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.bt=function(a){a.preventDefault&&this.b.Mm&&!this.b.Xd&&a.preventDefault();this.b.Mm=!0;this.Rk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Jk=!1};d.xl=function(){var a,b,c,d=Ra();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.yk=d),c.Ss(this,a)};p.prototype.oj=function(){return!0};p.prototype.Wl=function(){return!0};p.prototype.Xl=
function(a){return a?this.b.Yi(a,this.gd,this.hd):!1};p.prototype.Vl=function(a){a=Math.floor(a);return a===this.ad};p.prototype.Ul=function(a){a=Math.floor(a);return a===this.ad};p.prototype.Ap=function(){return!0};p.prototype.Pp=function(){return!0};p.prototype.xp=function(){return!0};p.prototype.Bp=function(a){return a?this.b.Yi(a,this.gd,this.hd):!1};p.prototype.Qp=function(a){return a?this.b.Yi(a,this.gd,this.hd):!1};p.prototype.yp=function(a){return a?this.b.Yi(a,this.gd,this.hd):!1};r.j=new p;
t.prototype.pj=function(a,b){var c=this.kf;if(0>c||c>=this.touches.length)a.C(0);else{var d,f,e,g,h;ga(b)?(d=this.b.mg(0),f=d.scale,e=d.Mc,g=d.ic,h=d.m,d.scale=1,d.Mc=1,d.ic=1,d.m=0,a.C(d.lb(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Mc=e,d.ic=g,d.m=h):(d=E(b)?this.b.mg(b):this.b.bk(b))?a.C(d.lb(this.touches[c].x,this.touches[c].y,!0)):a.C(0)}};t.prototype.gq=function(a,b){var c=this.kf;if(0>c||c>=this.touches.length)a.C(0);else{var d,f,e,g,h;ga(b)?(d=this.b.mg(0),f=d.scale,e=d.Mc,g=d.jc,
h=d.m,d.scale=1,d.Mc=1,d.jc=1,d.m=0,a.C(d.lb(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Mc=e,d.jc=g,d.m=h):(d=E(b)?this.b.mg(b):this.b.bk(b))?a.C(d.lb(this.touches[c].x,this.touches[c].y,!1)):a.C(0)}};r.la=new t})();function ic(e){this.b=e}
(function(){function e(){}function n(){}var m=ic.prototype;m.Oa=function(e){this.behavior=e;this.b=e.b};m.Oa.prototype.W=function(){};m.ya=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b};var p=m.ya.prototype;p.W=function(){var e=this.N[0];this.qc=this.N[1];this.Bb=this.N[2];this.rq=0!==this.N[3];this.ol=0!==this.N[4];this.n=Math.cos(this.d.m)*e;this.r=Math.sin(this.d.m)*e;this.Ie=this.d.x;this.Je=this.d.y;this.tf=this.d.m;this.bj=0;this.enabled=0!==this.N[5]};p.Jb=function(){return{acc:this.qc,
g:this.Bb,dx:this.n,dy:this.r,lx:this.Ie,ly:this.Je,lka:this.tf,t:this.bj,e:this.enabled}};p.fc=function(e){this.qc=e.acc;this.Bb=e.g;this.n=e.dx;this.r=e.dy;this.Ie=e.lx;this.Je=e.ly;this.tf=e.lka;this.bj=e.t;this.enabled=e.e};p.$c=function(){if(this.enabled){var e=this.b.Wh(this.d),m,d;this.d.m!==this.tf&&(this.ol&&(m=Na(0,0,this.n,this.r),this.n=Math.cos(this.d.m)*m,this.r=Math.sin(this.d.m)*m),this.tf=this.d.m);0!==this.qc&&(m=Na(0,0,this.n,this.r),d=0===this.n&&0===this.r?this.d.m:Ka(0,0,this.n,
this.r),m+=this.qc*e,0>m&&(m=0),this.n=Math.cos(d)*m,this.r=Math.sin(d)*m);0!==this.Bb&&(this.r+=this.Bb*e);this.Ie=this.d.x;this.Je=this.d.y;if(0!==this.n||0!==this.r)if(this.d.x+=this.n*e,this.d.y+=this.r*e,this.bj+=Na(0,0,this.n*e,this.r*e),this.ol&&(this.d.m=Ka(0,0,this.n,this.r),this.d.u(),this.tf=this.d.m),this.d.u(),this.rq&&(m=this.b.Sa(this.d)))this.b.Ef(this.d,m),m=Na(0,0,this.n,this.r),d=this.b.uq(this.d,this.Ie,this.Je),this.n=Math.cos(d)*m,this.r=Math.sin(d)*m,this.d.x+=this.n*e,this.d.y+=
this.r*e,this.d.u(),this.ol&&(this.tf=this.d.m=d,this.d.u()),this.b.kc(this.d,this.n/m,this.r/m,Math.max(2.5*m*e,30))||this.b.ko(this.d,100)}};m.j=new function(){};e.prototype.Up=function(e){e=S(e);var m=Na(0,0,this.n,this.r);this.n=Math.cos(e)*m;this.r=Math.sin(e)*m};m.aa=new e;n.prototype.$l=function(e){var m=Na(0,0,this.n,this.r),m=cb(m);e.C(m)};m.la=new n})();function jc(e){this.b=e}
(function(){function e(){}function n(){}function m(){}var p=jc.prototype;p.Oa=function(e){this.behavior=e;this.b=e.b};p.Oa.prototype.W=function(){};p.ya=function(e,d){this.type=e;this.behavior=e.behavior;this.d=d;this.b=e.b;this.bh=this.Si=this.Ri=this.ik=this.Yf=this.gg=this.rf=this.sf=this.Xg=this.Ig=!1;this.Gb=null;this.Ck=-1;this.Ee=this.De=0;this.Rh=!1;this.we=this.tc=0;this.Qh=!0;this.r=this.n=0};var t=p.ya.prototype;t.Wo=function(){this.Ea=Math.cos(this.jf);this.Fa=Math.sin(this.jf);this.Qe=
Math.cos(this.jf-Math.PI/2);this.Re=Math.sin(this.jf-Math.PI/2);this.Ea=cb(this.Ea);this.Fa=cb(this.Fa);this.Qe=cb(this.Qe);this.Re=cb(this.Re);this.Wj=this.Bb;0>this.Bb&&(this.Ea*=-1,this.Fa*=-1,this.Bb=Math.abs(this.Bb))};t.W=function(){this.yf=this.N[0];this.qc=this.N[1];this.ef=this.N[2];this.Cg=this.N[3];this.Wj=this.Bb=this.N[4];this.Ai=this.N[5];this.Mj=0!==this.N[6];this.vk=this.N[7]/1E3;this.Bq=1===this.N[8];this.enabled=0!==this.N[9];this.Rf=!1;this.Sf=this.b.Ad(this.d);this.Dk=-1;this.Ve=
0;this.jf=S(90);this.Wo();var e=this;this.Bq&&!this.b.ta&&(jQuery(document).keydown(function(d){e.Nk(d)}),jQuery(document).keyup(function(d){e.Ok(d)}));this.Ub||(this.Mn=function(d){e.Ys(d)});this.b.kq(this.Mn);this.d.V.isPlatformBehavior=!0};t.Jb=function(){return{ii:this.ik,lfx:this.De,lfy:this.Ee,lfo:this.Gb?this.Gb.uid:-1,am:this.tc,en:this.enabled,fall:this.we,ft:this.Qh,dx:this.n,dy:this.r,ms:this.yf,acc:this.qc,dec:this.ef,js:this.Cg,g:this.Bb,g1:this.Wj,mf:this.Ai,wof:this.Rf,woj:this.Sf?
this.Sf.uid:-1,ga:this.jf,edj:this.Mj,cdj:this.Yf,dj:this.gg,sus:this.vk}};t.fc=function(e){this.ik=e.ii;this.De=e.lfx;this.Ee=e.lfy;this.Ck=e.lfo;this.tc=e.am;this.enabled=e.en;this.we=e.fall;this.Qh=e.ft;this.n=e.dx;this.r=e.dy;this.yf=e.ms;this.qc=e.acc;this.ef=e.dec;this.Cg=e.js;this.Bb=e.g;this.Wj=e.g1;this.Ai=e.mf;this.Rf=e.wof;this.Dk=e.woj;this.jf=e.ga;this.Mj=e.edj;this.Yf=e.cdj;this.gg=e.dj;this.vk=e.sus;this.bh=this.Si=this.Ri=this.rf=this.sf=this.Xg=this.Ig=!1;this.Ve=0;this.Wo()};t.bd=
function(){-1===this.Ck?this.Gb=null:this.Gb=this.b.Yh(this.Ck);-1===this.Dk?this.Sf=null:this.Sf=this.b.Yh(this.Dk)};t.Ys=function(e){this.Gb==e&&(this.Gb=null)};t.Cf=function(){this.Gb=null;this.b.ot(this.Mn)};t.Nk=function(e){switch(e.which){case 38:e.preventDefault();this.sf=!0;break;case 37:e.preventDefault();this.Ig=!0;break;case 39:e.preventDefault(),this.Xg=!0}};t.Ok=function(e){switch(e.which){case 38:e.preventDefault();this.rf=this.sf=!1;break;case 37:e.preventDefault();this.Ig=!1;break;
case 39:e.preventDefault(),this.Xg=!1}};t.Pe=function(){this.sf=this.Xg=this.Ig=!1};t.vh=function(){return 0>this.Bb?-1:1};t.Zm=function(){var e=null,d=null,b,c;b=this.d.x;c=this.d.y;this.d.x+=this.Ea;this.d.y+=this.Fa;this.d.u();if(this.Gb&&this.b.xb(this.d,this.Gb))return this.d.x=b,this.d.y=c,this.d.u(),this.Gb;(e=this.b.Sa(this.d))||0!==this.we||(d=this.b.Ad(this.d,!0));this.d.x=b;this.d.y=c;this.d.u();if(e){if(this.b.xb(this.d,e))return null;this.Rh=!1;return e}if(d&&d.length){c=e=0;for(b=d.length;e<
b;e++)d[c]=d[e],this.b.xb(this.d,d[e])||c++;if(1<=c)return this.Rh=!0,d[0]}return null};t.$c=function(){};t.fo=function(){var e=this.b.Wh(this.d),d,b,c,g,a,f,m,h,n;this.sf||this.bh||(this.rf=!1);var k=this.Ig||this.Ri;c=this.Xg||this.Si;var p=(g=this.sf||this.bh)&&!this.rf;this.bh=this.Si=this.Ri=!1;if(this.enabled){this.ik&&(p=g=c=k=!1);g||(this.Ve=0);h=this.Gb;n=!1;this.Qh&&((this.b.Sa(this.d)||this.b.Ad(this.d))&&this.b.kc(this.d,-this.Ea,-this.Fa,4,!0),this.Qh=!1);!h||0!==this.r||h.y===this.Ee&&
h.x===this.De||(d=h.x-this.De,b=h.y-this.Ee,this.d.x+=d,this.d.y+=b,this.d.u(),this.De=h.x,this.Ee=h.y,n=!0,this.b.Sa(this.d)&&this.b.kc(this.d,-d,-b,2.5*Math.sqrt(d*d+b*b)));var l=this.Zm();if(b=this.b.Sa(this.d))if(this.d.V.inputPredicted)this.b.kc(this.d,-this.Ea,-this.Fa,10,!1);else if(this.b.ko(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Ef(this.d,b);else return;l?(this.Yf=this.gg=!1,0<this.r&&(this.Rf||(this.b.bl(this.d,-this.Ea,-this.Fa,l),this.Rf=!0),this.r=0),h!=l)?(this.Gb=l,this.De=
l.x,this.Ee=l.y,this.b.Ef(this.d,l)):n&&(b=this.b.Sa(this.d))&&(this.b.Ef(this.d,b),0!==d&&(0<d?this.b.kc(this.d,-this.Qe,-this.Re):this.b.kc(this.d,this.Qe,this.Re)),this.b.kc(this.d,-this.Ea,-this.Fa)):g||(this.Yf=!0);if(l&&p||!l&&this.Mj&&g&&this.Yf&&!this.gg)h=this.d.x,n=this.d.y,this.d.x-=this.Ea,this.d.y-=this.Fa,this.d.u(),this.b.Sa(this.d)?p=!1:(this.Ve=this.vk,this.b.trigger(jc.prototype.j.Cp,this.d),this.tc=2,this.r=-this.Cg,p=!0,l?this.rf=!0:this.gg=!0),this.d.x=h,this.d.y=n,this.d.u();
l||(g&&0<this.Ve?(this.r=-this.Cg,this.Ve-=e):(this.Gb=null,this.r+=this.Bb*e,this.r>this.Ai&&(this.r=this.Ai)),p&&(this.rf=!0));this.Rf=!!l;k==c&&(0>this.n?(this.n+=this.ef*e,0<this.n&&(this.n=0)):0<this.n&&(this.n-=this.ef*e,0>this.n&&(this.n=0)));k&&!c&&(this.n=0<this.n?this.n-(this.qc+this.ef)*e:this.n-this.qc*e);c&&!k&&(this.n=0>this.n?this.n+(this.qc+this.ef)*e:this.n+this.qc*e);this.n>this.yf?this.n=this.yf:this.n<-this.yf&&(this.n=-this.yf);k=!1;0!==this.n&&(h=this.d.x,n=this.d.y,d=this.n*
e*this.Qe,b=this.n*e*this.Re,this.d.x+=this.Qe*(1<this.n?1:-1)-this.Ea,this.d.y+=this.Re*(1<this.n?1:-1)-this.Fa,this.d.u(),g=!1,a=this.b.Sa(this.d),this.d.x=h+d,this.d.y=n+b,this.d.u(),c=this.b.Sa(this.d),!c&&l&&(c=this.b.Ad(this.d))&&(this.d.x=h,this.d.y=n,this.d.u(),this.b.xb(this.d,c)?(c=null,g=!1):g=!0,this.d.x=h+d,this.d.y=n+b,this.d.u()),c?(d=Math.abs(this.n*e)+2,a||!this.b.kc(this.d,-this.Ea,-this.Fa,d,g,c))?(this.b.Ef(this.d,c),d=Math.max(Math.abs(this.n*e*2.5),30),this.b.kc(this.d,this.Qe*
(0>this.n?1:-1),this.Re*(0>this.n?1:-1),d,!1)?!l||g||this.Rh||(h=this.d.x,n=this.d.y,this.d.x+=this.Ea,this.d.y+=this.Fa,this.b.Sa(this.d)?this.b.kc(this.d,-this.Ea,-this.Fa,3,!1)||(this.d.x=h,this.d.y=n,this.d.u()):(this.d.x=h,this.d.y=n,this.d.u())):(this.d.x=h,this.d.y=n,this.d.u()),g||(this.n=0)):!a&&!p&&Math.abs(this.r)<Math.abs(this.Cg/4)&&(this.r=0,l||(k=!0)):(h=this.Zm(),l&&!h?(b=Math.ceil(Math.abs(this.n*e))+2,h=this.d.x,n=this.d.y,this.d.x+=this.Ea*b,this.d.y+=this.Fa*b,this.d.u(),this.b.Sa(this.d)||
this.b.Ad(this.d)?this.b.kc(this.d,-this.Ea,-this.Fa,b+2,!0):(this.d.x=h,this.d.y=n,this.d.u())):h&&0===this.r&&this.b.bl(this.d,-this.Ea,-this.Fa,h)));if(0!==this.r){h=this.d.x;n=this.d.y;this.d.x+=this.r*e*this.Ea;this.d.y+=this.r*e*this.Fa;d=this.d.x;c=this.d.y;this.d.u();b=this.b.Sa(this.d);g=!1;if(!b&&0<this.r&&!l){if((g=0<this.we?null:this.b.Ad(this.d,!0))&&g.length){if(this.Sf){this.d.x=h;this.d.y=n;this.d.u();m=a=0;for(f=g.length;a<f;a++)g[m]=g[a],this.b.xb(this.d,g[a])||m++;g.length=m;this.d.x=
d;this.d.y=c;this.d.u()}1<=g.length&&(b=g[0])}g=!!b}b&&(this.b.Ef(this.d,b),this.Ve=0,d=g?Math.abs(this.r*e*2.5+10):Math.max(Math.abs(this.r*e*2.5+10),30),this.b.kc(this.d,this.Ea*(0>this.r?1:-1),this.Fa*(0>this.r?1:-1),d,g,b)?(this.Gb=b,this.De=b.x,this.Ee=b.y,(this.Rh=g)&&(k=!0),this.r=0):(this.d.x=h,this.d.y=n,this.d.u(),this.Rf=!0,g||(this.r=0)))}3!==this.tc&&0<this.r&&!l&&(this.b.trigger(jc.prototype.j.zp,this.d),this.tc=3);if(l||k)3===this.tc||k||p&&0===this.r?(this.b.trigger(jc.prototype.j.Ql,
this.d),this.tc=0===this.n&&0===this.r?0:1):(0!==this.tc&&0===this.n&&0===this.r&&(this.b.trigger(jc.prototype.j.Op,this.d),this.tc=0),1===this.tc||0===this.n&&0===this.r||p||(this.b.trigger(jc.prototype.j.Hp,this.d),this.tc=1));0<this.we&&this.we--;this.Sf=this.b.Ad(this.d)}};e.prototype.qp=function(){if(0!==this.r)return!1;var e=null,d=null,b,c;b=this.d.x;c=this.d.y;this.d.x+=this.Ea;this.d.y+=this.Fa;this.d.u();(e=this.b.Sa(this.d))||0!==this.we||(d=this.b.Ad(this.d,!0));this.d.x=b;this.d.y=c;
this.d.u();if(e)return!this.b.xb(this.d,e);if(d&&d.length){c=e=0;for(b=d.length;e<b;e++)d[c]=d[e],this.b.xb(this.d,d[e])||c++;if(1<=c)return!0}return!1};e.prototype.Cp=function(){return!0};e.prototype.zp=function(){return!0};e.prototype.Op=function(){return!0};e.prototype.Hp=function(){return!0};e.prototype.Ql=function(){return!0};p.j=new e;n.prototype.$p=function(e){switch(e){case 0:this.Ri=!0;break;case 1:this.Si=!0;break;case 2:this.bh=!0}};p.aa=new n;m.prototype.$l=function(e){e.C(Math.sqrt(this.n*
this.n+this.r*this.r))};p.la=new m})();function dc(e){this.b=e}(function(){var e=dc.prototype;e.Oa=function(e){this.behavior=e;this.b=e.b};e.Oa.prototype.W=function(){};e.ya=function(e,n){this.type=e;this.behavior=e.behavior;this.d=n;this.b=e.b};var n=e.ya.prototype;n.W=function(){this.d.V.solidEnabled=0!==this.N[0]};n.$c=function(){};e.j=new function(){};e.aa=new function(){}})();
function cc(){return[Y,fc,gc,Z,ec,hc,ic,dc,jc,X.prototype.j.Rl,ic.prototype.aa.Up,hc.prototype.j.Ll,hc.prototype.la.cq,hc.prototype.aa.Zl,hc.prototype.la.pj,jc.prototype.j.qp,jc.prototype.aa.$p,Z.prototype.j.oj,fc.prototype.j.Ml,X.prototype.j.mp,X.prototype.aa.cp,ic.prototype.la.$l,X.prototype.la.se,gc.prototype.aa.Xp,X.prototype.la.round,X.prototype.j.hp,X.prototype.aa.aq,X.prototype.aa.jp,hc.prototype.aa.Wp,X.prototype.la.random,hc.prototype.aa.Vp,X.prototype.la.Os,X.prototype.la.Ns,hc.prototype.la.np,
X.prototype.aa.Yp,hc.prototype.aa.kp,ec.prototype.j.ip,X.prototype.aa.Sp,X.prototype.aa.Tp,ec.prototype.j.Ll,ec.prototype.aa.Zl,ec.prototype.la.pj,jc.prototype.j.Ql,Y.prototype.aa.Rp]};