-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc2runtime.js
More file actions
296 lines (296 loc) · 143 KB
/
Copy pathc2runtime.js
File metadata and controls
296 lines (296 loc) · 143 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,w,ea,ga,ha,O,ia,ja,ma,Q,na,oa,S,pa,qa,ra,sa,U,ta,ua,va,wa,za,V,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,W,Nb,Ob,X,Pb,Qb={},Rb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,b,t,z){this.set(a,b,t,z)}function l(){this.oc=this.nc=this.qc=this.pc=this.Lc=this.Kc=this.Ab=this.zb=0}function p(a,b,t,z){a<b?t<z?(x=a<t?a:t,r=b>z?b:z):(x=a<z?a:z,r=b>t?b:t):t<z?(x=b<t?b:t,r=a>z?a:z):(x=b<z?b:z,r=a>t?a:t)}function n(){this.items=this.jc=null;this.gf=0;G&&(this.jc=new Set);this.Ce=[];this.Sc=!0}function u(a){C[L++]=a}function q(){this.Ma=this.Rg=this.y=this.jh=0}function g(a){this.te=[];this.lj=this.nj=this.oj=this.mj=0;this.Jp(a)}function b(a,b){this.ph=
a;this.oh=b;this.cells={}}function d(a,b){this.ph=a;this.oh=b;this.cells={}}function e(a,b,t){var z;return A.length?(z=A.pop(),z.Ph=a,z.x=b,z.y=t,z):new aa(a,b,t)}function a(a,b,t){this.Ph=a;this.x=b;this.y=t;this.ta=new ba}function f(a,b,t){var z;return y.length?(z=y.pop(),z.Ph=a,z.x=b,z.y=t,z):new ca(a,b,t)}function h(a,b,t){this.Ph=a;this.x=b;this.y=t;this.ta=[];this.he=!0;this.hc=new ba;this.Fe=!1}function k(a,b){return a.Rb-b.Rb}w=function(a){window.console&&window.console.log&&window.console.log(a)};
ea=function(a){window.console&&window.console.error&&window.console.error(a)};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};O=function(a){return"string"===typeof a};ia=function(a){return 0>a?-a:a};ja=function(a,b){return a<b?a:b};ma=Math.PI;Q=function(a){return 0<=a?a|0:(a|0)-1};na=function(a){var b=a|0;return b===a?b:b+1};oa=function(a,b,t,z,f,d,e,m){var k,h,g,v;a<t?(h=a,k=t):(h=t,k=a);f<e?(v=f,g=e):(v=e,g=f);if(k<v||h>g)return!1;b<z?(h=b,k=z):(h=z,k=b);d<
m?(v=d,g=m):(v=m,g=d);if(k<v||h>g)return!1;k=f-a+e-t;h=d-b+m-z;a=t-a;b=z-b;f=e-f;d=m-d;m=ia(b*f-d*a);return ia(f*h-d*k)>m?!1:ia(a*h-b*k)<=m};c.prototype.set=function(a,b,t,f){this.left=a;this.top=b;this.right=t;this.bottom=f};c.prototype.Le=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,b){this.left+=a;this.top+=b;
this.right+=a;this.bottom+=b;return this};c.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)};c.prototype.Ub=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};c.prototype.Re=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};S=c;l.prototype.Ng=function(a){this.zb=a.left;this.Ab=a.top;this.Kc=
a.right;this.Lc=a.top;this.pc=a.right;this.qc=a.bottom;this.nc=a.left;this.oc=a.bottom};l.prototype.ul=function(a,b){if(0===b)this.Ng(a);else{var t=Math.sin(b),f=Math.cos(b),d=a.left*t,e=a.top*t,m=a.right*t,t=a.bottom*t,k=a.left*f,h=a.top*f,g=a.right*f,f=a.bottom*f;this.zb=k-e;this.Ab=h+d;this.Kc=g-e;this.Lc=h+m;this.pc=g-t;this.qc=f+m;this.nc=k-t;this.oc=f+d}};l.prototype.offset=function(a,b){this.zb+=a;this.Ab+=b;this.Kc+=a;this.Lc+=b;this.pc+=a;this.qc+=b;this.nc+=a;this.oc+=b;return this};var x=
0,r=0;l.prototype.qj=function(a){p(this.zb,this.Kc,this.pc,this.nc);a.left=x;a.right=r;p(this.Ab,this.Lc,this.qc,this.oc);a.top=x;a.bottom=r};l.prototype.Ub=function(a,b){var t=this.zb,f=this.Ab,d=this.Kc-t,e=this.Lc-f,m=this.pc-t,k=this.qc-f,h=a-t,g=b-f,v=d*d+e*e,c=d*m+e*k,e=d*h+e*g,x=m*m+k*k,r=m*h+k*g,l=1/(v*x-c*c),d=(x*e-c*r)*l,v=(v*r-c*e)*l;if(0<=d&&0<v&&1>d+v)return!0;d=this.nc-t;e=this.oc-f;v=d*d+e*e;c=d*m+e*k;e=d*h+e*g;l=1/(v*x-c*c);d=(x*e-c*r)*l;v=(v*r-c*e)*l;return 0<=d&&0<v&&1>d+v};l.prototype.gh=
function(a,b){if(b)switch(a){case 0:return this.zb;case 1:return this.Kc;case 2:return this.pc;case 3:return this.nc;case 4:return this.zb;default:return this.zb}else switch(a){case 0:return this.Ab;case 1:return this.Lc;case 2:return this.qc;case 3:return this.oc;case 4:return this.Ab;default:return this.Ab}};pa=l;qa=function(a,b){for(var t in b)b.hasOwnProperty(t)&&(a[t]=b[t]);return a};ra=function(a,b){var t,f;b=Q(b);if(!(0>b||b>=a.length)){t=b;for(f=a.length-1;t<f;t++)a[t]=a[t+1];sa(a,f)}};sa=
function(a,b){a.length=b};U=function(a){sa(a,0)};ta=function(a,b){U(a);var t,f;t=0;for(f=b.length;t<f;++t)a[t]=b[t]};ua=function(a,b){a.push.apply(a,b)};va=function(a,b){var t,f;t=0;for(f=a.length;t<f;++t)if(a[t]===b)return t;return-1};wa=function(a,b){var t=va(a,b);-1!==t&&ra(a,t)};za=function(a,b,t){return a<b?b:a>t?t:a};V=function(a){return a/(180/ma)};Aa=function(a){return 180/ma*a};Ba=function(a){a%=360;0>a&&(a+=360);return a};Ca=function(a){a%=2*ma;0>a&&(a+=2*ma);return a};Da=function(a){return Ba(Aa(a))};
Ea=function(a){return Ca(V(a))};Fa=function(a,b,t,f){return Math.atan2(f-b,t-a)};Ga=function(a,b){if(a===b)return 0;var t=Math.sin(a),f=Math.cos(a),d=Math.sin(b),e=Math.cos(b),t=t*d+f*e;return 1<=t?0:-1>=t?ma:Math.acos(t)};Ha=function(a,b,t){var f=Math.sin(a),d=Math.cos(a),e=Math.sin(b),m=Math.cos(b);return Math.acos(f*e+d*m)>t?0<d*e-f*m?Ca(a+t):Ca(a-t):Ca(b)};Ia=function(a,b){var t=Math.sin(a),f=Math.cos(a),d=Math.sin(b),e=Math.cos(b);return 0>=f*d-t*e};Ja=function(a,b,t,f){a=t-a;b=f-b;return Math.sqrt(a*
a+b*b)};Ka=function(a,b){return!a!==!b};Na=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Oa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var R=+new Date;Pa=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()-R};var m=
!1,v=m=!1,La=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),La=window.c2ejecta);var G=!m&&!La&&!v&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.yc()?!1:G?this.jc.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(G)this.jc.has(a)||(this.jc.add(a),this.Sc=
!1);else{var b=a.toString(),t=this.items;t?t.hasOwnProperty(b)||(t[b]=a,this.gf++,this.Sc=!1):(this.items={},this.items[b]=a,this.gf=1,this.Sc=!1)}};n.prototype.remove=function(a){if(!this.yc())if(G)this.jc.has(a)&&(this.jc["delete"](a),this.Sc=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.gf--,this.Sc=!1)}};n.prototype.clear=function(){this.yc()||(G?this.jc.clear():(this.items=null,this.gf=0),U(this.Ce),this.Sc=!0)};n.prototype.yc=function(){return 0===
this.count()};n.prototype.count=function(){return G?this.jc.size:this.gf};var C=null,L=0;n.prototype.Wp=function(){if(!this.Sc){if(G)U(this.Ce),C=this.Ce,L=0,this.jc.forEach(u),C=null,L=0;else{var a=this.Ce;U(a);var b,t=0,f=this.items;if(f)for(b in f)f.hasOwnProperty(b)&&(a[t++]=f[b])}this.Sc=!0}};n.prototype.Pd=function(){this.Wp();return this.Ce};ba=n;new ba;Qa=function(a,b){G?Ra(a,b.jc):Sa(a,b.Pd())};Ra=function(a,b){var t,f,d,e;f=t=0;for(d=a.length;t<d;++t)e=a[t],b.has(e)||(a[f++]=e);sa(a,f)};
Sa=function(a,b){var t,f,d,e;f=t=0;for(d=a.length;t<d;++t)e=a[t],-1===va(b,e)&&(a[f++]=e);sa(a,f)};q.prototype.add=function(a){this.y=a-this.jh;this.Rg=this.Ma+this.y;this.jh=this.Rg-this.Ma-this.y;this.Ma=this.Rg};q.prototype.reset=function(){this.Ma=this.Rg=this.y=this.jh=0};Ta=q;Ua=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.Jp=function(a){this.el=a;this.Dg=a.length/2;this.te.length=a.length;this.kh=this.lh=-1;this.sj=0};g.prototype.So=function(){return!this.el.length};
g.prototype.Da=function(){for(var a=this.te,b=a[0],t=b,f=a[1],d=f,e,m,k=1,h=this.Dg;k<h;++k)m=2*k,e=a[m],m=a[m+1],e<b&&(b=e),e>t&&(t=e),m<f&&(f=m),m>d&&(d=m);this.mj=b;this.nj=t;this.oj=f;this.lj=d};g.prototype.Ng=function(a,b,t){this.te.length=8;this.Dg=4;var f=this.te;f[0]=a.left-b;f[1]=a.top-t;f[2]=a.right-b;f[3]=a.top-t;f[4]=a.right-b;f[5]=a.bottom-t;f[6]=a.left-b;f[7]=a.bottom-t;this.lh=a.right-a.left;this.kh=a.bottom-a.top;this.Da()};g.prototype.Lm=function(a,b,t){if(this.lh!==a||this.kh!==
b||this.sj!==t){this.lh=a;this.kh=b;this.sj=t;var f,d,e,m,k,h=0,v=1,g=this.el,c=this.te;0!==t&&(h=Math.sin(t),v=Math.cos(t));t=0;for(e=this.Dg;t<e;t++)f=2*t,d=f+1,m=g[f]*a,k=g[d]*b,c[f]=m*v-k*h,c[d]=k*v+m*h;this.Da()}};g.prototype.Ub=function(a,b){var t=this.te;if(a===t[0]&&b===t[1])return!0;var f,d,e,m=this.Dg,k=this.mj-110,h=this.oj-101,v=this.nj+131,g=this.lj+120,c,x,r=0,l=0;for(f=0;f<m;f++)d=2*f,e=(f+1)%m*2,c=t[d],d=t[d+1],x=t[e],e=t[e+1],oa(k,h,a,b,c,d,x,e)&&r++,oa(v,g,a,b,c,d,x,e)&&l++;return 1===
r%2||1===l%2};Va=g;b.prototype.Xc=function(a,b,t){var f;f=this.cells[a];return f?(f=f[b])?f:t?(f=e(this,a,b),this.cells[a][b]=f):null:t?(f=e(this,a,b),this.cells[a]={},this.cells[a][b]=f):null};b.prototype.Na=function(a){return Q(a/this.ph)};b.prototype.Oa=function(a){return Q(a/this.oh)};b.prototype.update=function(a,b,t){var f,d,e,m,k;if(b)for(f=b.left,d=b.right;f<=d;++f)for(e=b.top,m=b.bottom;e<=m;++e)if(!t||!t.Ub(f,e))if(k=this.Xc(f,e,!1))k.remove(a),k.yc()&&(k.ta.clear(),1E3>A.length&&A.push(k),
this.cells[f][e]=null);if(t)for(f=t.left,d=t.right;f<=d;++f)for(e=t.top,m=t.bottom;e<=m;++e)b&&b.Ub(f,e)||this.Xc(f,e,!0).Uh(a)};b.prototype.gl=function(a,b){var t,f,d,e,m,k;t=this.Na(a.left);d=this.Oa(a.top);f=this.Na(a.right);for(m=this.Oa(a.bottom);t<=f;++t)for(e=d;e<=m;++e)(k=this.Xc(t,e,!1))&&k.dump(b)};Wa=b;d.prototype.Xc=function(a,b,t){var d;d=this.cells[a];return d?(d=d[b])?d:t?(d=f(this,a,b),this.cells[a][b]=d):null:t?(d=f(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};d.prototype.Na=
function(a){return Q(a/this.ph)};d.prototype.Oa=function(a){return Q(a/this.oh)};d.prototype.update=function(a,b,t){var f,d,e,m,k;if(b)for(f=b.left,d=b.right;f<=d;++f)for(e=b.top,m=b.bottom;e<=m;++e)if(!t||!t.Ub(f,e))if(k=this.Xc(f,e,!1))k.remove(a),k.yc()&&(k.reset(),1E3>y.length&&y.push(k),this.cells[f][e]=null);if(t)for(f=t.left,d=t.right;f<=d;++f)for(e=t.top,m=t.bottom;e<=m;++e)b&&b.Ub(f,e)||this.Xc(f,e,!0).Uh(a)};d.prototype.gl=function(a,b,t,f,d){var e,m;a=this.Na(a);b=this.Oa(b);t=this.Na(t);
for(e=this.Oa(f);a<=t;++a)for(f=b;f<=e;++f)(m=this.Xc(a,f,!1))&&m.dump(d)};d.prototype.Xo=function(a){var b,t,f,d,e;b=a.left;f=a.top;t=a.right;for(d=a.bottom;b<=t;++b)for(a=f;a<=d;++a)if(e=this.Xc(b,a,!1))e.he=!1};Xa=d;var A=[];a.prototype.yc=function(){return this.ta.yc()};a.prototype.Uh=function(a){this.ta.add(a)};a.prototype.remove=function(a){this.ta.remove(a)};a.prototype.dump=function(a){ua(a,this.ta.Pd())};aa=a;var y=[];h.prototype.yc=function(){if(!this.ta.length)return!0;if(this.ta.length>
this.hc.count())return!1;this.Eh();return!0};h.prototype.Uh=function(a){this.hc.contains(a)?(this.hc.remove(a),this.hc.yc()&&(this.Fe=!1)):this.ta.length?(this.ta[this.ta.length-1].$b()>a.$b()&&(this.he=!1),this.ta.push(a)):(this.ta.push(a),this.he=!0)};h.prototype.remove=function(a){this.hc.add(a);this.Fe=!0;30<=this.hc.count()&&this.Eh()};h.prototype.Eh=function(){this.Fe&&(this.hc.count()===this.ta.length?this.reset():(Qa(this.ta,this.hc),this.hc.clear(),this.Fe=!1))};h.prototype.tn=function(){this.he||
(this.ta.sort(k),this.he=!0)};h.prototype.reset=function(){U(this.ta);this.he=!0;this.hc.clear();this.Fe=!1};h.prototype.dump=function(a){this.Eh();this.tn();this.ta.length&&a.push(this.ta)};ca=h;var F="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":F[a-1]};Za=function(a,b,t){if(t)switch(a.Ja=t.ONE,a.Ga=t.ONE_MINUS_SRC_ALPHA,b){case 1:a.Ja=t.ONE;a.Ga=t.ONE;break;case 3:a.Ja=
t.ONE;a.Ga=t.ZERO;break;case 4:a.Ja=t.ONE_MINUS_DST_ALPHA;a.Ga=t.ONE;break;case 5:a.Ja=t.DST_ALPHA;a.Ga=t.ZERO;break;case 6:a.Ja=t.ZERO;a.Ga=t.SRC_ALPHA;break;case 7:a.Ja=t.ONE_MINUS_DST_ALPHA;a.Ga=t.ZERO;break;case 8:a.Ja=t.ZERO;a.Ga=t.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ja=t.DST_ALPHA;a.Ga=t.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ja=t.ONE_MINUS_DST_ALPHA,a.Ga=t.SRC_ALPHA}};$a=function(a){return Math.round(1E6*a)/1E6};ab=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?
!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};bb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ab(a.tagName,"canvas")?!0:!1}})();var Sb="undefined"!==typeof Float32Array?Float32Array:Array;function Tb(c){var l=new Sb(3);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2]);return l}
function Y(c){var l=new Sb(16);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=c[6],l[7]=c[7],l[8]=c[8],l[9]=c[9],l[10]=c[10],l[11]=c[11],l[12]=c[12],l[13]=c[13],l[14]=c[14],l[15]=c[15]);return l}function Ub(c,l){l[0]=c[0];l[1]=c[1];l[2]=c[2];l[3]=c[3];l[4]=c[4];l[5]=c[5];l[6]=c[6];l[7]=c[7];l[8]=c[8];l[9]=c[9];l[10]=c[10];l[11]=c[11];l[12]=c[12];l[13]=c[13];l[14]=c[14];l[15]=c[15]}
function Vb(c,l){var p=l[0],n=l[1];l=l[2];c[0]*=p;c[1]*=p;c[2]*=p;c[3]*=p;c[4]*=n;c[5]*=n;c[6]*=n;c[7]*=n;c[8]*=l;c[9]*=l;c[10]*=l;c[11]*=l}
function Wb(c,l,p,n){n||(n=Y());var u,q,g,b,d,e,a,f,h=c[0],k=c[1];c=c[2];q=p[0];g=p[1];u=p[2];p=l[1];e=l[2];h===l[0]&&k===p&&c===e?(c=n,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(p=h-l[0],e=k-l[1],a=c-l[2],f=1/Math.sqrt(p*p+e*e+a*a),p*=f,e*=f,a*=f,l=g*a-u*e,u=u*p-q*a,q=q*e-g*p,(f=Math.sqrt(l*l+u*u+q*q))?(f=1/f,l*=f,u*=f,q*=f):q=u=l=0,g=e*q-a*u,b=a*l-p*q,d=p*u-e*l,(f=Math.sqrt(g*g+b*b+d*d))?(f=1/f,g*=f,b*=f,d*=f):d=b=g=0,
n[0]=l,n[1]=g,n[2]=p,n[3]=0,n[4]=u,n[5]=b,n[6]=e,n[7]=0,n[8]=q,n[9]=d,n[10]=a,n[11]=0,n[12]=-(l*h+u*k+q*c),n[13]=-(g*h+b*k+d*c),n[14]=-(p*h+e*k+a*c),n[15]=1)}
(function(){function c(b,d,e){this.zd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.P=!!e;this.gg=this.bf=!1;this.wh=0;this.ah=1;this.Vi=1E3;this.bq=(this.Vi-this.ah)/32768;this.mh=Tb([0,0,100]);this.xk=Tb([0,0,0]);this.Pl=Tb([0,1,0]);this.Kf=Tb([1,1,1]);this.rn=!0;this.yg=Y();this.gb=Y();this.gi=Y();this.vh=Y();this.i=b;this.Wj()}function l(b,d,e){this.i=b;this.Cf=d;this.name=e;this.qb=b.getAttribLocation(d,"aPos");this.dd=b.getAttribLocation(d,
"aTex");this.vk=b.getUniformLocation(d,"matP");this.ug=b.getUniformLocation(d,"matMV");this.ne=b.getUniformLocation(d,"opacity");this.ki=b.getUniformLocation(d,"colorFill");this.wk=b.getUniformLocation(d,"samplerFront");this.nf=b.getUniformLocation(d,"samplerBack");this.Hd=b.getUniformLocation(d,"destStart");this.Gd=b.getUniformLocation(d,"destEnd");this.pf=b.getUniformLocation(d,"seconds");this.mi=b.getUniformLocation(d,"pixelWidth");this.li=b.getUniformLocation(d,"pixelHeight");this.mf=b.getUniformLocation(d,
"layerScale");this.lf=b.getUniformLocation(d,"layerAngle");this.qf=b.getUniformLocation(d,"viewOrigin");this.of=b.getUniformLocation(d,"scrollPos");this.Ho=!!(this.mi||this.li||this.pf||this.nf||this.Hd||this.Gd||this.mf||this.lf||this.qf||this.of);this.Fk=this.Gk=-999;this.xg=1;this.Bk=this.Ak=0;this.Dk=this.zk=this.yk=1;this.Jk=this.Ik=this.Hk=this.Lk=this.Kk=this.Ck=0;this.fi=[];this.Ek=Y();this.ne&&b.uniform1f(this.ne,1);this.ki&&b.uniform4f(this.ki,1,1,1,1);this.wk&&b.uniform1i(this.wk,0);this.nf&&
b.uniform1i(this.nf,1);this.Hd&&b.uniform2f(this.Hd,0,0);this.Gd&&b.uniform2f(this.Gd,1,1);this.mf&&b.uniform1f(this.mf,1);this.lf&&b.uniform1f(this.lf,0);this.qf&&b.uniform2f(this.qf,0,0);this.of&&b.uniform2f(this.of,0,0);this.pf&&b.uniform1f(this.pf,0);this.ud=!1}function p(b,d){return b[0]===d[0]&&b[1]===d[1]&&b[2]===d[2]&&b[3]===d[3]&&b[4]===d[4]&&b[5]===d[5]&&b[6]===d[6]&&b[7]===d[7]&&b[8]===d[8]&&b[9]===d[9]&&b[10]===d[10]&&b[11]===d[11]&&b[12]===d[12]&&b[13]===d[13]&&b[14]===d[14]&&b[15]===
d[15]}function n(b,d){this.type=b;this.j=d;this.i=d.i;this.ac=this.La=this.Zk=0;this.r=this.yb=null;this.wl=[]}var u=Y();c.prototype.Wj=function(){var b=this.i,d;this.mk=1;this.Dd=this.Cd=null;this.Pf=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.P?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.ok=b.ONE;this.kk=b.ONE_MINUS_SRC_ALPHA;
this.Zg=new Float32Array(8E3*(this.P?3:2));this.Sg=new Float32Array(16E3);this.bl=new Float32Array(32E3);this.ti=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.ti);b.bufferData(b.ARRAY_BUFFER,this.bl.byteLength,b.DYNAMIC_DRAW);this.Jf=Array(4);this.Ff=Array(4);for(d=0;4>d;d++)this.Jf[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Jf[d]),b.bufferData(b.ARRAY_BUFFER,this.Zg.byteLength,b.DYNAMIC_DRAW),this.Ff[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Ff[d]),b.bufferData(b.ARRAY_BUFFER,
this.Sg.byteLength,b.DYNAMIC_DRAW);this.rc=0;this.Ko=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Ko);for(var e=new Uint16Array(12E3),a=d=0;12E3>d;)e[d++]=a,e[d++]=a+1,e[d++]=a+2,e[d++]=a,e[d++]=a+2,e[d++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,e,b.STATIC_DRAW);this.vi=this.Ae=this.Mc=0;this.ba=[];d=this.P?"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}";e=this.Me({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}"},d,"<default>");this.ba.push(e);e=this.Me({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.ba.push(e);e=this.Me({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.ba.push(e);e=this.Me({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.ba.push(e);for(var f in Xb)Xb.hasOwnProperty(f)&&this.ba.push(this.Me(Xb[f],d,f));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Rc=[];this.mc=0;this.Ha=!1;this.wj=this.jf=-1;this.Zd=null;this.Dh=b.createFramebuffer();this.Rf=this.Gg=null;this.jj=!1;this.P&&(this.Rf=b.createRenderbuffer());this.hd=Tb([0,0,0]);this.Mk=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Mk&&(this.Mk=2048);this.Ra(0)};l.prototype.Ri=function(b){p(this.Ek,b)||(Ub(b,this.Ek),this.i.uniformMatrix4fv(this.ug,
!1,b))};c.prototype.Me=function(b,d,e){var a=this.i,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 h=a.createShader(a.VERTEX_SHADER);a.shaderSource(h,d);a.compileShader(h);if(!a.getShaderParameter(h,a.COMPILE_STATUS))return a.deleteShader(f),a.deleteShader(h),null;d=a.createProgram();a.attachShader(d,f);a.attachShader(d,h);a.linkProgram(d);if(!a.getProgramParameter(d,a.LINK_STATUS))return a.deleteShader(f),
a.deleteShader(h),a.deleteProgram(d),null;a.useProgram(d);a.deleteShader(f);a.deleteShader(h);e=new l(a,d,e);e.Bh=b.Bh||0;e.Ch=b.Ch||0;e.vj=!!b.vj;e.Lb=!!b.Lb;e.fj=!!b.fj;e.u=b.u||[];b=0;for(f=e.u.length;b<f;b++)e.u[b][1]=a.getUniformLocation(d,e.u[b][0]),e.fi.push(0),a.uniform1f(e.u[b][1],0);return e};c.prototype.Nh=function(b){var d,e;d=0;for(e=this.ba.length;d<e;d++)if(this.ba[d].name===b)return d;return-1};c.prototype.dl=function(b,d,e){var a=this.gb,f=this.yg,h=[0,0,0,0,0,0,0,0];h[0]=a[0]*b+
a[4]*d+a[12];h[1]=a[1]*b+a[5]*d+a[13];h[2]=a[2]*b+a[6]*d+a[14];h[3]=a[3]*b+a[7]*d+a[15];h[4]=f[0]*h[0]+f[4]*h[1]+f[8]*h[2]+f[12]*h[3];h[5]=f[1]*h[0]+f[5]*h[1]+f[9]*h[2]+f[13]*h[3];h[6]=f[2]*h[0]+f[6]*h[1]+f[10]*h[2]+f[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],e[0]=(.5*h[4]+.5)*this.width,e[1]=(.5*h[5]+.5)*this.height)};c.prototype.Ec=function(b,d,e){if(this.width!==b||this.height!==d||e){this.qd();e=this.i;this.width=b;this.height=d;e.viewport(0,0,b,d);Wb(this.mh,
this.xk,this.Pl,this.gb);if(this.P){var a=-b/2;b=b/2;var f=d/2;d=-d/2;var h=this.ah,k=this.Vi,g=this.yg;g||(g=Y());var c=b-a,l=d-f,m=k-h;g[0]=2/c;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/l;g[6]=0;g[7]=0;g[8]=0;g[9]=0;g[10]=-2/m;g[11]=0;g[12]=-(a+b)/c;g[13]=-(d+f)/l;g[14]=-(k+h)/m;g[15]=1;this.Kf[0]=1;this.Kf[1]=1}else d=b/d,a=this.ah,b=this.Vi,g=this.yg,k=a*Math.tan(45*Math.PI/360),d*=k,f=-d,h=-k,g||(g=Y()),c=d-f,l=k-h,m=b-a,g[0]=2*a/c,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=2*a/l,g[6]=0,g[7]=0,g[8]=(d+f)/c,g[9]=
(k+h)/l,g[10]=-(b+a)/m,g[11]=-1,g[12]=0,g[13]=0,g[14]=-(b*a*2)/m,g[15]=0,a=[0,0],b=[0,0],this.dl(0,0,a),this.dl(1,1,b),this.Kf[0]=1/(b[0]-a[0]),this.Kf[1]=-1/(b[1]-a[1]);a=0;for(b=this.ba.length;a<b;a++)f=this.ba[a],f.ud=!1,f.vk&&(e.useProgram(f.Cf),e.uniformMatrix4fv(f.vk,!1,this.yg));e.useProgram(this.ba[this.jf].Cf);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.Dd=this.Cd=null;this.Rf&&(e.bindFramebuffer(e.FRAMEBUFFER,
this.Dh),e.bindRenderbuffer(e.RENDERBUFFER,this.Rf),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.jj||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.Rf),this.jj=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.Gg=null)}};c.prototype.sb=function(){Wb(this.mh,this.xk,this.Pl,this.gb);Vb(this.gb,this.Kf)};c.prototype.translate=function(b,d){if(0!==b||0!==d){this.hd[0]=b;this.hd[1]=d;this.hd[2]=
0;var e=this.gb,a=this.hd,f=a[0],h=a[1],a=a[2];e[12]=e[0]*f+e[4]*h+e[8]*a+e[12];e[13]=e[1]*f+e[5]*h+e[9]*a+e[13];e[14]=e[2]*f+e[6]*h+e[10]*a+e[14];e[15]=e[3]*f+e[7]*h+e[11]*a+e[15]}};c.prototype.scale=function(b,d){if(1!==b||1!==d)this.hd[0]=b,this.hd[1]=d,this.hd[2]=1,Vb(this.gb,this.hd)};c.prototype.Ig=function(b){if(0!==b){var d=this.gb,e,a=Math.sin(b);b=Math.cos(b);var f=d[0],h=d[1],k=d[2],g=d[3],c=d[4],l=d[5],m=d[6],v=d[7];e?d!==e&&(e[8]=d[8],e[9]=d[9],e[10]=d[10],e[11]=d[11],e[12]=d[12],e[13]=
d[13],e[14]=d[14],e[15]=d[15]):e=d;e[0]=f*b+c*a;e[1]=h*b+l*a;e[2]=k*b+m*a;e[3]=g*b+v*a;e[4]=f*-a+c*b;e[5]=h*-a+l*b;e[6]=k*-a+m*b;e[7]=g*-a+v*b}};c.prototype.hb=function(){if(!p(this.gi,this.gb)){var b=this.Xa();b.type=5;b.r?Ub(this.gb,b.r):b.r=Y(this.gb);Ub(this.gb,this.gi);this.Ha=!1}};c.prototype.Lg=function(b){this.P&&(32760<b&&(b=32760),this.wh=this.mh[2]-this.ah-b*this.bq)};n.prototype.$m=function(){var b=this.i,d=this.j;0!==this.La?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),
b.bindFramebuffer(b.FRAMEBUFFER,d.Dh),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),d.gg=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),d.gg=!1)};n.prototype.dn=function(){this.i.bindTexture(this.i.TEXTURE_2D,this.yb)};n.prototype.en=function(){var b=this.i;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.yb);b.activeTexture(b.TEXTURE0)};n.prototype.an=function(){var b=this.Zk,
d=this.j;d.Pf=b;d=d.Zd;d.ne&&d.xg!==b&&(d.xg=b,this.i.uniform1f(d.ne,b))};n.prototype.Vm=function(){this.i.drawElements(this.i.TRIANGLES,this.ac,this.i.UNSIGNED_SHORT,this.La)};n.prototype.Xm=function(){this.i.blendFunc(this.La,this.ac)};n.prototype.gn=function(){var b,d,e,a=this.j.ba,f=this.j.wj;b=0;for(d=a.length;b<d;b++)e=a[b],b===f&&e.ug?(e.Ri(this.r),e.ud=!0):e.ud=!1;Ub(this.r,this.j.vh)};n.prototype.Wm=function(){var b=this.i,d=this.j;this.yb?(d.Dd===this.yb&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,
null),d.Dd=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,d.Dh),d.gg||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.yb,0)):(d.P||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};n.prototype.Sm=function(){var b=this.i,d=this.La;0===d?(b.clearColor(this.r[0],this.r[1],this.r[2],this.r[3]),b.clear(b.COLOR_BUFFER_BIT)):1===d?(b.enable(b.SCISSOR_TEST),b.scissor(this.r[0],this.r[1],this.r[2],
this.r[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};n.prototype.Zm=function(){var b=this.i;0!==this.La?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};n.prototype.Um=function(){var b=this.i,d=this.j;d.P&&b.disable(b.DEPTH_TEST);var e=d.ba[1];b.useProgram(e.Cf);!e.ud&&e.ug&&(e.Ri(d.vh),e.ud=!0);b.enableVertexAttribArray(e.qb);b.bindBuffer(b.ARRAY_BUFFER,d.ti);b.vertexAttribPointer(e.qb,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.La/
4,this.ac);e=d.Zd;b.useProgram(e.Cf);0<=e.qb&&(b.enableVertexAttribArray(e.qb),b.bindBuffer(b.ARRAY_BUFFER,d.Jf[d.rc]),b.vertexAttribPointer(e.qb,d.P?3:2,b.FLOAT,!1,0,0));0<=e.dd&&(b.enableVertexAttribArray(e.dd),b.bindBuffer(b.ARRAY_BUFFER,d.Ff[d.rc]),b.vertexAttribPointer(e.dd,2,b.FLOAT,!1,0,0));d.P&&b.enable(b.DEPTH_TEST)};n.prototype.bn=function(){var b=this.i,d=this.j,e=d.ba[this.La];d.wj=this.La;d.Zd=e;b.useProgram(e.Cf);!e.ud&&e.ug&&(e.Ri(d.vh),e.ud=!0);e.ne&&e.xg!==d.Pf&&(e.xg=d.Pf,b.uniform1f(e.ne,
d.Pf));0<=e.qb&&(b.enableVertexAttribArray(e.qb),b.bindBuffer(b.ARRAY_BUFFER,d.Jf[d.rc]),b.vertexAttribPointer(e.qb,d.P?3:2,b.FLOAT,!1,0,0));0<=e.dd&&(b.enableVertexAttribArray(e.dd),b.bindBuffer(b.ARRAY_BUFFER,d.Ff[d.rc]),b.vertexAttribPointer(e.dd,2,b.FLOAT,!1,0,0))};n.prototype.Ym=function(){var b=this.r;this.i.uniform4f(this.j.Zd.ki,b[0],b[1],b[2],b[3])};n.prototype.cn=function(){var b,d,e=this.j.Zd,a=this.i;b=this.r;e.nf&&this.j.Dd!==this.yb&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
this.yb),this.j.Dd=this.yb,a.activeTexture(a.TEXTURE0));var f=b[0];e.mi&&f!==e.Gk&&(e.Gk=f,a.uniform1f(e.mi,f));f=b[1];e.li&&f!==e.Fk&&(e.Fk=f,a.uniform1f(e.li,f));f=b[2];d=b[3];!e.Hd||f===e.Ak&&d===e.Bk||(e.Ak=f,e.Bk=d,a.uniform2f(e.Hd,f,d));f=b[4];d=b[5];!e.Gd||f===e.yk&&d===e.zk||(e.yk=f,e.zk=d,a.uniform2f(e.Gd,f,d));f=b[6];e.mf&&f!==e.Dk&&(e.Dk=f,a.uniform1f(e.mf,f));f=b[7];e.lf&&f!==e.Ck&&(e.Ck=f,a.uniform1f(e.lf,f));f=b[8];d=b[9];!e.qf||f===e.Kk&&d===e.Lk||(e.Kk=f,e.Lk=d,a.uniform2f(e.qf,f,
d));f=b[10];d=b[11];!e.of||f===e.Hk&&d===e.Ik||(e.Hk=f,e.Ik=d,a.uniform2f(e.of,f,d));f=b[12];e.pf&&f!==e.Jk&&(e.Jk=f,a.uniform1f(e.pf,f));if(e.u.length)for(b=0,d=e.u.length;b<d;b++)f=this.wl[b],f!==e.fi[b]&&(e.fi[b]=f,a.uniform1f(e.u[b][1],f))};c.prototype.Xa=function(){this.mc===this.Rc.length&&this.Rc.push(new n(0,this));return this.Rc[this.mc++]};c.prototype.qd=function(){if(0!==this.mc&&!this.i.isContextLost()){var b=this.i;0<this.vi&&(b.bindBuffer(b.ARRAY_BUFFER,this.ti),b.bufferSubData(b.ARRAY_BUFFER,
0,this.bl.subarray(0,this.vi)),d&&0<=d.qb&&"<point>"===d.name&&b.vertexAttribPointer(d.qb,4,b.FLOAT,!1,0,0));if(0<this.Mc){var d=this.Zd;b.bindBuffer(b.ARRAY_BUFFER,this.Jf[this.rc]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Zg.subarray(0,this.Mc));d&&0<=d.qb&&"<point>"!==d.name&&b.vertexAttribPointer(d.qb,this.P?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Ff[this.rc]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Sg.subarray(0,this.Ae));d&&0<=d.dd&&"<point>"!==d.name&&b.vertexAttribPointer(d.dd,2,b.FLOAT,
!1,0,0)}for(var e,b=0,d=this.mc;b<d;b++)switch(e=this.Rc[b],e.type){case 1:e.Vm();break;case 2:e.dn();break;case 3:e.an();break;case 4:e.Xm();break;case 5:e.gn();break;case 6:e.Wm();break;case 7:e.Sm();break;case 8:e.Um();break;case 9:e.bn();break;case 10:e.cn();break;case 11:e.en();break;case 12:e.Ym();break;case 13:e.Zm();break;case 14:e.$m()}this.vi=this.Ae=this.Mc=this.mc=0;this.gg=this.Ha=!1;this.rc++;4<=this.rc&&(this.rc=0)}};c.prototype.Af=function(b){if(b!==this.mk&&!this.bf){var d=this.Xa();
d.type=3;this.mk=d.Zk=b;this.Ha=!1}};c.prototype.wb=function(b){if(b!==this.Cd){var d=this.Xa();d.type=2;this.Cd=d.yb=b;this.Ha=!1}};c.prototype.fd=function(b,d){if((b!==this.ok||d!==this.kk)&&!this.bf){var e=this.Xa();e.type=4;e.La=b;e.ac=d;this.ok=b;this.kk=d;this.Ha=!1}};c.prototype.ol=function(){this.fd(this.i.ONE,this.i.ONE_MINUS_SRC_ALPHA)};c.prototype.Ai=function(b,d,e,a,f,h,k,g){15992<=this.Mc&&this.qd();var c=this.Mc,l=this.Ae,m=this.Zg,v=this.Sg,q=this.wh;if(this.Ha)this.Rc[this.mc-1].ac+=
6;else{var p=this.Xa();p.type=1;p.La=this.P?c:c/2*3;p.ac=6;this.Ha=!0}this.P?(m[c++]=b,m[c++]=d,m[c++]=q,m[c++]=e,m[c++]=a,m[c++]=q,m[c++]=f,m[c++]=h,m[c++]=q,m[c++]=k,m[c++]=g,m[c++]=q):(m[c++]=b,m[c++]=d,m[c++]=e,m[c++]=a,m[c++]=f,m[c++]=h,m[c++]=k,m[c++]=g);v[l++]=0;v[l++]=0;v[l++]=1;v[l++]=0;v[l++]=1;v[l++]=1;v[l++]=0;v[l++]=1;this.Mc=c;this.Ae=l};c.prototype.ue=function(b,d,e,a,f,h,k,g,c){15992<=this.Mc&&this.qd();var l=this.Mc,m=this.Ae,v=this.Zg,q=this.Sg,p=this.wh;if(this.Ha)this.Rc[this.mc-
1].ac+=6;else{var n=this.Xa();n.type=1;n.La=this.P?l:l/2*3;n.ac=6;this.Ha=!0}var n=c.left,u=c.top,A=c.right;c=c.bottom;this.P?(v[l++]=b,v[l++]=d,v[l++]=p,v[l++]=e,v[l++]=a,v[l++]=p,v[l++]=f,v[l++]=h,v[l++]=p,v[l++]=k,v[l++]=g,v[l++]=p):(v[l++]=b,v[l++]=d,v[l++]=e,v[l++]=a,v[l++]=f,v[l++]=h,v[l++]=k,v[l++]=g);q[m++]=n;q[m++]=u;q[m++]=A;q[m++]=u;q[m++]=A;q[m++]=c;q[m++]=n;q[m++]=c;this.Mc=l;this.Ae=m};c.prototype.Ra=function(b){if(this.jf!==b){if(!this.ba[b]){if(0===this.jf)return;b=0}var d=this.Xa();
d.type=9;this.jf=d.La=b;this.Ha=!1}};c.prototype.xf=function(b){b=this.ba[b];return!(!b.Hd&&!b.Gd)};c.prototype.xi=function(b){b=this.ba[b];return!!(b.Hd||b.Gd||b.vj)};c.prototype.wi=function(b){return this.ba[b].Lb};c.prototype.sp=function(b){b=this.ba[b];return 0!==b.Bh||0!==b.Ch};c.prototype.oo=function(b){return this.ba[b].Bh};c.prototype.po=function(b){return this.ba[b].Ch};c.prototype.qo=function(b,d){return this.ba[b].u[d][2]};c.prototype.Cg=function(b){return this.ba[b].fj};c.prototype.ye=
function(b,d,e,a,f,h,k,g,c,l,m,v,q,p,n){var u=this.ba[this.jf],A,y;if(u.Ho||n.length){A=this.Xa();A.type=10;A.r?Ub(this.gb,A.r):A.r=Y();y=A.r;y[0]=d;y[1]=e;y[2]=a;y[3]=f;y[4]=h;y[5]=k;y[6]=g;y[7]=c;y[8]=l;y[9]=m;y[10]=v;y[11]=q;y[12]=p;u.nf?A.yb=b:A.yb=null;if(n.length)for(e=A.wl,e.length=n.length,b=0,d=n.length;b<d;b++)e[b]=n[b];this.Ha=!1}};c.prototype.clear=function(b,d,e,a){var f=this.Xa();f.type=7;f.La=0;f.r||(f.r=Y());f.r[0]=b;f.r[1]=d;f.r[2]=e;f.r[3]=a;this.Ha=!1};c.prototype.clearRect=function(b,
d,e,a){if(!(0>e||0>a)){var f=this.Xa();f.type=7;f.La=1;f.r||(f.r=Y());f.r[0]=b;f.r[1]=d;f.r[2]=e;f.r[3]=a;this.Ha=!1}};c.prototype.rl=function(b){if(this.P&&(b=!!b,this.bf!==b)){var d=this.Xa();d.type=14;d.La=b?1:0;this.Ha=!1;this.bf=b;this.Gg=null;this.bf?this.Ra(2):this.Ra(0)}};c.prototype.ql=function(b){if(this.P){var d=this.Xa();d.type=13;d.La=b?1:0;this.Ha=!1}};c.prototype.Kj=function(){Ub(this.gi,u);this.sb();this.hb();var b=this.width/2,d=this.height/2;this.Ai(-b,d,b,d,b,-d,-b,-d);Ub(u,this.gb);
this.hb()};c.prototype.pl=function(b,d,e){this.Ra(3);var a=this.Xa();a.type=12;a.r||(a.r=Y());a.r[0]=b;a.r[1]=d;a.r[2]=e;a.r[3]=1;this.Ha=!1};c.prototype.Hp=function(){this.Ra(0)};c.prototype.vp=function(){this.Ra(2)};c.prototype.rp=function(){this.qd();this.i.flush()};var q=[],g={};c.prototype.Nm=function(){U(q);g={}};c.prototype.bb=function(b,d,e,a){this.qd();var f=this.i;this.zd&&(a=!1);var h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,d,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,e?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Cd=null;h.Yd=b;h.Xd=d;q.push(h);return h};c.prototype.$p=function(b,d,e){this.qd();var a=this.i;this.zd&&(e=!1);a.bindTexture(a.TEXTURE_2D,d);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,e?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.Cd=null};c.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.rj&&1<b.rj?b.rj--:(this.qd(),b===this.Cd&&(this.i.bindTexture(this.i.TEXTURE_2D,null),this.Cd=null),b===this.Dd&&(this.i.activeTexture(this.i.TEXTURE1),this.i.bindTexture(this.i.TEXTURE_2D,null),this.i.activeTexture(this.i.TEXTURE0),
this.Dd=null),wa(q,b),"undefined"!==typeof b.Km&&delete g[b.Km],this.i.deleteTexture(b)))};c.prototype.ub=function(b){if(b!==this.Gg){var d=this.Xa();d.type=6;this.Gg=d.yb=b;this.Ha=!1}};cb=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.xc=(this.hg=/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.yd=!!a.dc;this.No="undefined"!==typeof window.AppMobi||
this.yd;this.Jb=!!window.c2cocoonjs;this.cc=!!window.c2ejecta;this.Jb&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.cc&&(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.pa=this.yd||this.Jb||this.cc;this.ig=
/edge\//i.test(navigator.userAgent);this.zd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.ig;this.dk=/tizen/i.test(navigator.userAgent);this.ak=/android/i.test(navigator.userAgent)&&!this.dk&&!this.zd&&!this.ig;this.ik=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.zd&&!this.ig;this.To=/ipad/i.test(navigator.userAgent);this.ei=this.ik||this.To||this.cc;this.Xh=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.zd&&!this.ig;this.$j=/amazonwebappplatform/i.test(navigator.userAgent);this.Po=/firefox/i.test(navigator.userAgent);this.Zc="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.gk=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ro=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.fe=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.ci=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.fk=!!window.cr_windows10;this.ek=this.gk||this.Ro||this.ci||this.fk;this.Oo=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.bk=this.ak&&!this.Xh&&!this.hg&&!this.Po&&!this.$j&&!this.pa;this.devicePixelRatio=1;this.Ad=this.xc||this.hg||this.No||this.Jb||this.ak||this.ei||this.fe||this.ci||this.Oo||this.dk||this.cc;this.Ad||
(this.Ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.bi=!!(this.ei&&this.xc&&window.webkit);this.Rh=null;this.Io="";this.bi&&(this.Rh=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Zc||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Zc=!0);this.canvas=a;this.Lf=document.getElementById("c2canvasdiv");
this.j=this.i=null;this.Oh="(unavailable)";this.P=!1;this.od=0;this.Y=null;this.Gh="";this.Vf=!1;this.Wk=this.Xk=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.yd&&(window.c2runtime=this);this.Zc&&(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.bk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.n=this.width;this.m=this.height;this.Of=this.width;this.Oe=this.height;this.ke=window.innerWidth;this.je=window.innerHeight;this.$n=!1;this.Q=!0;this.ef=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.g=[];this.X=[];this.ii={};this.Kb=[];this.Ah={};this.uc=[];this.Ul=[];this.Vg=[];this.Cm=[];this.Dm=[];this.md={};this.Zh=
this.Yc=!1;this.zc=0;this.Yh=this.ai=!1;this.Vb=[];this.cf=!1;this.Ac=this.Ia=this.rg=this.Hi="";this.Ef=this.zl=!1;this.Uf=[];this.nd=this.$d=0;this.Ok=30;this.uh=this.rf=0;this.Gf=1;this.pb=new Ta;this.$g=new Ta;this.Ag=this.Yf=this.Ue=this.Ic=this.Fd=this.Fh=this.mg=0;this.qh=null;this.yj=[];this.zh=[];this.Sf=-1;this.ni=[[]];this.Ni=this.vg=0;this.Fg(null);this.Ve=this.Sk=this.tf=0;this.Qg=[];this.Ki=this.Bi=-1;this.lg=!0;this.tg=0;this.df=!1;this.Lp=0;this.Ie=null;this.ck=!1;this.Uk=new ba;this.qi=
new ba;this.Vk=new ba;this.il=[];new Va([]);new Va([]);this.Ud=[];this.bg={};this.Uc={};this.Qc={};this.De={};this.pj={};this.uk=this.qg=this.da=this.ja=this.tk=this.pg=this.L=null;this.Be=this.di=!1;this.Hh=[null,null];this.td=0;this.Dc={};this.Df=this.bd=null;this.Al="";this.zg=[];this.up()}}function l(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,
b,f,d){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=n;e.onerror=d;e.onsuccess=function(e){e=e.target.result;e.onerror=d;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=f}}catch(m){d(m)}}function q(a,b,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=n;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;var e=d.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?b(e.result.data):b(null)}}}catch(e){f(e)}}
function g(){w("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 b(a){var b,f={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ba||a[b]&&"undefined"!==typeof a[b].jr||"spriteCreatedDestroyCallback"!==b&&(f[b]=a[b]);return f}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||
window.oRequestAnimationFrame;c.prototype.up=function(){var a=this;if(this.bi)this.Rh?this.Rh.startServer({port:0,localhost_only:!0},function(b){a.Io=b;a.Ej(function(b){a.me(JSON.parse(b))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):this.Ej(function(b){a.me(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.fe?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var f="data.js";if(this.gk||this.fe||this.ci||
this.fk)f="data.json";b.open("GET",f,!0);var d=!1;if(!this.pa&&"response"in b&&"responseType"in b)try{b.responseType="json",d="json"===b.responseType}catch(e){d=!1}if(!d&&"responseType"in b)try{b.responseType="text"}catch(m){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.fe?b.onreadystatechange=function(){4===b.readyState&&a.me(JSON.parse(b.responseText))}:(b.onload=function(){if(d)a.me(b.response);else if(a.cc){var f=b.responseText,f=f.substr(f.indexOf("{"));
a.me(JSON.parse(f))}else a.me(JSON.parse(b.responseText))},b.onerror=function(a){ea("Error requesting "+f+":");ea(a)});b.send()}};c.prototype.Lo=function(){var a=this,b,f,d,e,m,k,h,g,c;this.Bd=(!this.pa||this.cc||this.xc)&&this.Yp&&!this.bk;0===this.Ta&&this.ei&&(this.Bd=!1);this.devicePixelRatio=this.Bd?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ea();f=!(!this.$n&&(!this.eh||this.Zc||this.ek||this.fe||this.hg||this.xc||
this.$j));0<this.Ta&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.qn&&(this.Jb||this.cc||!this.pa)&&(b={alpha:f,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.i=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(v){}if(this.i){if(b=this.i.getExtension("WEBGL_debug_renderer_info"))this.Oh=this.i.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.i.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.P&&(this.Oh+=" [front-to-back enabled]");
this.pa||(this.Ba=document.createElement("canvas"),jQuery(this.Ba).appendTo(this.canvas.parentNode),this.Ba.oncontextmenu=function(){return!1},this.Ba.onselectstart=function(){return!1},this.Ba.width=Math.round(this.Of*this.devicePixelRatio),this.Ba.height=Math.round(this.Oe*this.devicePixelRatio),jQuery(this.Ba).css({width:this.Of+"px",height:this.Oe+"px"}),this.cl(),this.si=this.Ba.getContext("2d"));this.j=new cb(this.i,this.Ad,this.P);this.j.Ec(this.canvas.width,this.canvas.height);this.j.rn=0!==
this.hn;this.Y=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.ap();w("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.j.Wj();a.j.Ec(a.j.width,a.j.height,!0);a.ja=null;a.da=null;a.Hh[0]=null;a.Hh[1]=null;a.bp();a.Q=!0;w("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(f=this.g.length;b<f;b++)for(m=this.g[b],d=0,e=m.p.length;d<e;d++)h=m.p[d],h.ga=
this.j.Nh(h.id),h.Lb=this.j.wi(h.ga),this.Be=this.Be||this.j.xf(h.ga);b=0;for(f=this.Kb.length;b<f;b++){g=this.Kb[b];d=0;for(e=g.p.length;d<e;d++)h=g.p[d],h.ga=this.j.Nh(h.id),h.Lb=this.j.wi(h.ga);g.Qb();d=0;for(e=g.q.length;d<e;d++){c=g.q[d];m=0;for(k=c.p.length;m<k;m++)h=c.p[m],h.ga=this.j.Nh(h.id),h.Lb=this.j.wi(h.ga),this.Be=this.Be||this.j.xf(h.ga);c.Qb()}}}else{if(0<this.Ta&&this.yd){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Y=
AppMobi.canvas.getContext("2d");try{this.Y.samplingMode=this.ka?"smooth":"sharp",this.Y.globalScale=1,this.Y.HTML5CompatibilityMode=!0,this.Y.imageSmoothingEnabled=this.ka}catch(l){}0!==this.width&&0!==this.height&&(this.Y.width=this.width,this.Y.height=this.height)}this.Y||(this.Jb?(b={antialias:!!this.ka,alpha:f},this.Y=this.canvas.getContext("2d",b)):(b={alpha:f},this.Y=this.canvas.getContext("2d",b)),this.Kg(this.Y,this.ka));this.si=this.Ba=null}this.Hl=function(b){a.Od(!1,b)};window==window.top||
this.pa||this.ek||this.fe||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Jb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(w("Reloading for continuous preview"),this.rg="__c2_continuouspreview",this.Ef=!0),this.jp&&!this.Ad&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=
window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.pa||(b=function(a){if(bb(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.Ta&&this.Bd&&1<this.devicePixelRatio&&this.setSize(this.ma,this.la,!0);this.Ml();this.Eo();this.go();this.R={}};c.prototype.setSize=function(a,b,f){var d=0,e=0,m=0,k=0,k=0;if(this.ke!==a||this.je!==b||f){this.ke=a;this.je=b;var h=this.Ta,g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.df)&&!this.xc;if(g||0!==this.Ta||f)g&&0<this.td&&(h=this.td),f=this.devicePixelRatio,4<=h?(m=this.ma/
this.la,a/b>m?(m*=b,5===h?(k=m*f/this.ma,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.ma*k/f,k=this.la*k/f,d=(a-m)/2,e=(b-k)/2,a=m,b=k):(d=(a-m)/2,a=m)):(k=a/m,5===h?(k=k*f/this.la,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.ma*k/f,k=this.la*k/f,d=(a-m)/2,e=(b-k)/2,a=m):e=(b-k)/2,b=k),g&&!this.Zc&&(e=d=0)):this.Zc&&this.df&&0===this.Lj&&(d=Math.floor((a-this.ma)/2),e=Math.floor((b-this.la)/2),a=this.ma,b=this.la),2>h&&(this.He=f),this.Of=Math.round(a),this.Oe=Math.round(b),this.width=
Math.round(a*f),this.height=Math.round(b*f),this.Q=!0,this.Vl?(this.n=this.width,this.m=this.height,this.eb=!0):this.width<this.ma&&this.height<this.la||1===h?(this.n=this.width,this.m=this.height,this.eb=!0):(this.n=this.ma,this.m=this.la,this.eb=!1,2===h?(m=this.ma/this.la,h=this.ke/this.je,h<m?this.n=this.m*h:h>m&&(this.m=this.n/h)):3===h&&(m=this.ma/this.la,h=this.ke/this.je,h>m?this.n=this.m*h:h<m&&(this.m=this.n/h))),this.Lf&&!this.pa&&(jQuery(this.Lf).css({width:Math.round(a)+"px",height:Math.round(b)+
"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(e)+"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*f),this.canvas.height=Math.round(b*f),this.cc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Bd&&!this.pa&&(this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(b)+"px")),this.Ba&&(this.Ba.width=Math.round(a*f),this.Ba.height=Math.round(b*f),this.Ba.style.width=this.Of+"px",this.Ba.style.height=this.Oe+"px"),this.j&&this.j.Ec(Math.round(a*f),Math.round(b*f)),this.yd&&this.Y&&(this.Y.width=Math.round(a),this.Y.height=Math.round(b)),this.Y&&this.Kg(this.Y,this.ka),this.Ml(),this.ik&&!this.xc&&window.scrollTo(0,0)}};c.prototype.Ml=function(){if(this.Hm&&0!==this.ri){var a="portrait";2===this.ri&&(a="landscape");try{screen.orientation&&
screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};c.prototype.ap=function(){this.j.Nm();this.di=!0;var a,b,f;a=0;for(b=this.g.length;a<b;a++)f=this.g[a],f.Yk&&f.Yk()};c.prototype.bp=
function(){this.di=!1;var a,b,f;a=0;for(b=this.g.length;a<b;a++)f=this.g[a],f.fp&&f.fp()};c.prototype.cl=function(){if(!this.pa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.df)&&!this.xc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ba).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
c.prototype.setSuspended=function(a){var b;if(a&&!this.ef)for(w("[Construct 2] Suspending"),this.ef=!0,-1!==this.Bi&&e&&e(this.Bi),-1!==this.Ki&&clearTimeout(this.Ki),a=0,b=this.Qg.length;a<b;a++)this.Qg[a](!0);else if(!a&&this.ef){w("[Construct 2] Resuming");this.ef=!1;this.mg=Pa();this.Fd=Pa();a=this.rf=this.Yf=0;for(b=this.Qg.length;a<b;a++)this.Qg[a](!1);this.Od(!1)}};c.prototype.Oc=function(a){return this.zg[a]};c.prototype.me=function(a){a&&a.project||ea("Project model unavailable");a=a.project;
this.name=a[0];this.Gj=a[1];this.Ta=a[12];this.Lj=a[12];this.ma=a[10];this.la=a[11];this.$k=this.ma/2;this.al=this.la/2;this.pa&&!this.cc&&(4<=a[12]||0===a[12])&&(w("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Lj=this.Ta=3);this.Ti=a[18];this.cd=a[19];if(0===this.cd){var b=new Image;b.crossOrigin="anonymous";this.Gp(b);this.bd={wg:b}}else if(4===this.cd){b=new Image;b.src="";var f=new Image;f.src="";var d=new Image;d.src=
"";var e=new Image;e.src="";var m=new Image;m.src="";var k=new Image;k.src="";var h=new Image;h.src="";var g=new Image;g.src="";var c=new Image;c.src="";var v=new Image;v.src="";var l=new Image;l.src="";var x=new Image;x.src="";this.bd={wg:[b,f,d,e],np:[m,k,h,g],aq:[c,v,l,x]}}this.tf=a[21];this.zg=Yb();this.kc=new Z(this);b=0;for(f=a[2].length;b<f;b++)h=a[2][b],d=this.Oc(h[0]),db(h,d.prototype),g=new d(this),g.Og=h[1],g.$c=h[2],g.Pk=h[9],g.ua&&g.ua(),this.plugins.push(g);this.zg=Yb();b=0;for(f=a[3].length;b<
f;b++){h=a[3][b];m=this.Oc(h[1]);g=null;d=0;for(e=this.plugins.length;d<e;d++)if(this.plugins[d]instanceof m){g=this.plugins[d];break}c=new g.lc(g);c.name=h[0];c.I=h[2];c.Vh=h[3].slice(0);c.Zp=h[3].length;c.Im=h[4];c.ao=h[5];c.F=h[11];c.I?(c.Nk=[],c.vc=this.Ve++,c.S=null):(c.Nk=null,c.vc=-1,c.S=[]);c.Tf=null;c.be=null;c.Aj=null;c.ob=!1;c.Sa=null;h[6]?(c.Op=h[6][0],c.Pp=h[6][1],c.Qp=h[6][2]):(c.Op=null,c.Pp=0,c.Qp=0);h[7]?c.Em=h[7]:c.Em=null;c.index=b;c.d=[];c.Qf=[];c.Hc=[new eb(c)];c.Wb=0;c.Yb=null;
c.Qm=0;c.ze=!0;c.Wg=fb;c.ho=gb;c.no=hb;c.T=ib;c.zf=jb;c.Eg=kb;c.Ld=lb;c.Zf=mb;c.Ih=nb;c.Kh=ob;c.Vd=pb;c.Lh=qb;c.tj=new Wa(this.ma,this.la);c.gj=!0;c.hj=!1;c.R={};c.toString=rb;c.X=[];d=0;for(e=h[8].length;d<e;d++){v=h[8][d];l=this.Oc(v[1]);x=null;m=0;for(k=this.X.length;m<k;m++)if(this.X[m]instanceof l){x=this.X[m];break}x||(x=new l(this),x.Qk=[],x.pi=new ba,x.ua&&x.ua(),this.X.push(x));-1===x.Qk.indexOf(c)&&x.Qk.push(c);m=new x.lc(x,c);m.name=v[0];m.F=v[2];m.ua();c.X.push(m)}c.global=h[9];c.$h=h[10];
c.p=[];d=0;for(e=h[12].length;d<e;d++)c.p.push({id:h[12][d][0],name:h[12][d][1],ga:-1,Lb:!1,$a:!0,index:d});c.xr=h[13];this.Ti&&!c.I&&!c.$h&&g.$c||c.ua();c.name&&(this.types[c.name]=c);this.g.push(c);g.Og&&(d=new g.jb(c),d.uid=this.tf++,d.fl=this.Sk++,d.vd=0,d.Xe=sb,d.toString=tb,d.V=h[14],d.ua(),c.d.push(d),this.Dc[d.uid.toString()]=d)}b=0;for(f=a[4].length;b<f;b++)for(m=a[4][b],k=this.g[m[0]],d=1,e=m.length;d<e;d++)h=this.g[m[d]],h.S.push(k),k.Nk.push(h);b=0;for(f=a[28].length;b<f;b++){m=a[28][b];
k=[];d=0;for(e=m.length;d<e;d++)k.push(this.g[m[d]]);d=0;for(e=k.length;d<e;d++)k[d].ob=!0,k[d].Sa=k}if(0<this.Ve)for(b=0,f=this.g.length;b<f;b++)if(h=this.g[b],!h.I&&h.S.length){h.Tf=Array(this.Ve);h.be=Array(this.Ve);h.Aj=Array(this.Ve);c=[];d=x=l=v=0;for(e=h.S.length;d<e;d++)for(g=h.S[d],h.Tf[g.vc]=v,v+=g.Zp,h.be[g.vc]=l,l+=g.Im,h.Aj[g.vc]=x,x+=g.ao,m=0,k=g.p.length;m<k;m++)c.push(qa({},g.p[m]));h.p=c.concat(h.p);d=0;for(e=h.p.length;d<e;d++)h.p[d].index=d}b=0;for(f=a[5].length;b<f;b++)h=a[5][b],
d=new ub(this,h),this.ii[d.name]=d,this.Kb.push(d);b=0;for(f=a[6].length;b<f;b++)h=a[6][b],d=new vb(this,h),this.Ah[d.name]=d,this.uc.push(d);b=0;for(f=this.uc.length;b<f;b++)this.uc[b].ca();b=0;for(f=this.uc.length;b<f;b++)this.uc[b].Qi();b=0;for(f=this.Vg.length;b<f;b++)this.Vg[b].ca();U(this.Vg);this.Fm=a[7];this.se=a[9];this.He=1;this.qn=a[13];this.ka=a[14];this.eh=a[15];this.Yp=a[17];this.ri=a[20];this.Hm=0<this.ri;this.jp=a[22];this.eb=this.Vl=a[23];this.hn=a[24];this.pp=a[25];this.P=a[27]&&
!this.zd;this.Pg=Date.now();U(this.zg);this.Lo()};var a=0,f=!1;c.prototype.Eo=function(){this.Ie&&(a=this.Ie.sr(this.Fm))};c.prototype.ij=function(){var b=a,d=0,e=0,m=!0,k,h,e=0;for(k=this.Ul.length;e<k;e++){h=this.Ul[e];var c=h.kr;if(!c||0>=c)c=5E4;b+=c;h.src&&(h.complete||h.loaded)&&!h.ir?d+=c:m=!1}m&&this.pp&&this.Ie&&(f||(this.Ie.tr(),f=!0),e=this.Ie.or(),d+=e,e<a&&(m=!1));this.Mb=0==b?1:d/b;return m};var h=!1;c.prototype.go=function(){if(this.Y||this.j){var a=this.Y||this.si;this.Ba&&this.cl();
var b=window.innerWidth,f=window.innerHeight;this.ke===b&&this.je===f||this.setSize(b,f);this.Mb=0;this.sk=-1;var e=this;if(this.ij()&&(4!==this.cd||h))this.Fo();else{f=Date.now()-this.Pg;if(a){var m=this.width,k=this.height,b=this.devicePixelRatio;if(3>this.cd&&(this.Jb||500<=f&&this.sk!=this.Mb)){a.clearRect(0,0,m,k);var f=m/2,k=k/2,m=0===this.cd&&this.bd.wg.complete,c=40*b,g=0,v=80*b,l;if(m){var x=this.bd.wg,v=x.width*b;l=x.height*b;c=v/2;g=l/2;a.drawImage(x,Q(f-c),Q(k-g),v,l)}1>=this.cd?(f=Q(f-
c)+.5,k=Q(k+(g+(m?12*b:0)))+.5,a.fillStyle="DodgerBlue",a.fillRect(f,k,Math.floor(v*this.Mb),6*b),a.strokeStyle="black",a.strokeRect(f,k,v,6*b),a.strokeStyle="white",a.strokeRect(f-1*b,k-1*b,v+2*b,8*b)):2===this.cd&&(a.font=this.cc?"12pt ArialMT":"12pt Arial",a.fillStyle="#999",a.ur="middle",b=Math.round(100*this.Mb)+"%",m=a.measureText?a.measureText(b):null,a.fillText(b,f-(m?m.width:0)/2,k));this.sk=this.Mb}else if(4===this.cd){this.nn(a);d?d(function(){e.go()}):setTimeout(function(){e.go()},16);
return}}setTimeout(function(){e.go()},this.Jb?10:100)}}};var k=-1,x="undefined"===typeof cr_is_preview?200:0,r=!0,R=!1,m=0,v=0,La="undefined"===typeof cr_is_preview?3E3:0,G=null,C=null,L=0;c.prototype.nn=function(a){if(!h){for(var b=Math.ceil(this.width),f=Math.ceil(this.height),d=this.bd.wg,e=this.bd.np,c=this.bd.aq,g=0;4>g;++g)if(!d[g].complete||!e[g].complete||!c[g].complete)return;0===L&&(k=Date.now());var g=Date.now(),q=!1,p=a,n,u;r||R?(a.clearRect(0,0,b,f),G&&G.width===b&&G.height===f||(G=document.createElement("canvas"),
G.width=b,G.height=f,C=G.getContext("2d")),p=C,q=!0,r&&1===L&&(k=Date.now())):a.globalAlpha=1;p.fillStyle="#333333";p.fillRect(0,0,b,f);256<this.Oe?(n=za(.22*f,105,.6*b),u=.25*n,p.drawImage(l(e,n),.5*b-n/2,.2*f-u/2,n,u),u=n=Math.min(.395*f,.95*b),p.drawImage(l(d,n),.5*b-n/2,.485*f-u/2,n,u),n=za(.22*f,105,.6*b),u=.25*n,p.drawImage(l(c,n),.5*b-n/2,.868*f-u/2,n,u),p.fillStyle="#3C3C3C",n=b,u=Math.max(.005*f,2),p.fillRect(0,.8*f-u/2,n,u),p.fillStyle="#E0FF65",n=b*this.Mb,p.fillRect(.5*b-n/2,.8*f-u/2,
n,u)):(u=n=.55*f,p.drawImage(l(d,n),.5*b-n/2,.45*f-u/2,n,u),p.fillStyle="#3C3C3C",n=b,u=Math.max(.005*f,2),p.fillRect(0,.85*f-u/2,n,u),p.fillStyle="#E0FF65",n=b*this.Mb,p.fillRect(.5*b-n/2,.85*f-u/2,n,u));q&&(r?a.globalAlpha=0===L?0:Math.min((g-k)/300,1):R&&(a.globalAlpha=Math.max(1-(g-v)/300,0)),a.drawImage(G,0,0,b,f));r&&300<=g-k&&2<=L&&(r=!1,m=g);!r&&g-m>=La&&!R&&1<=this.Mb&&(R=!0,v=g);if(R&&g-v>=300+x||"undefined"!==typeof cr_is_preview&&1<=this.Mb&&500>Date.now()-k)h=!0,R=r=!1,this.bd=C=G=null;
++L}};c.prototype.Fo=function(){this.Ba&&(this.canvas.parentNode.removeChild(this.Ba),this.Ba=this.si=null);this.Pg=Date.now();this.Fd=Pa();var a,b,f;if(this.Ti)for(a=0,b=this.g.length;a<b;a++)f=this.g[a],f.I||f.$h||!f.ea.$c||f.ua();else this.lg=!1;a=0;for(b=this.Kb.length;a<b;a++)this.Kb[a].Om();2<=this.Ta&&(a=this.ma/this.la,b=this.width/this.height,this.He=2!==this.Ta&&b>a||2===this.Ta&&b<a?this.height/this.la:this.width/this.ma);this.Gj?this.ii[this.Gj].Ii():this.Kb[0].Ii();this.Ti||(this.tg=
1,this.trigger(Z.prototype.A.$i,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.g.length;a<b;a++)f=this.g[a],f.$o&&f.$o();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Od(!1);this.yd&&AppMobi.webview.execute("onGameReady();")};c.prototype.Od=function(a,b,f){if(this.L){var e=Pa();if(f||!this.ef||a){a||(d?this.Bi=d(this.Hl):this.Ki=setTimeout(this.Hl,
this.Ad?1:16));b=b||e;var m=this.Ta;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.xc)||this.df)&&0<this.td&&(m=this.td);if(0<m){var m=window.innerWidth,k=window.innerHeight;this.ke===m&&this.je===k||this.setSize(m,k)}this.pa||(f?(this.Vf||(this.Gh=jQuery(this.canvas).css("margin")||"0",this.Vf=!0),this.Xh||this.Zc||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.Vf?(this.Xh||this.Zc||jQuery(this.canvas).css("margin",this.Gh),this.Gh="",this.Vf=!1,0===this.Ta&&this.setSize(Math.round(this.Xk/this.devicePixelRatio),Math.round(this.Wk/this.devicePixelRatio),!0)):(this.Xk=this.width,this.Wk=this.height));this.lg&&(f=this.ij(),this.tg=this.Mb,f&&(this.lg=!1,this.Mb=1,this.trigger(Z.prototype.A.$i,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Wo(b);!this.Q&&!this.Jb||this.di||
this.Ef||a||(this.Q=!1,this.j?this.Gb():this.tc(),this.Df&&(this.canvas&&this.canvas.toDataURL&&(this.Al=this.canvas.toDataURL(this.Df[0],this.Df[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Al),this.trigger(Z.prototype.A.km,null)),this.Df=null));this.pr||(this.Ic++,this.Ue++,this.Yf++);this.rf+=Pa()-e}}};c.prototype.Wo=function(a){var b,f,d,e,m,k,h,c;1E3<=a-this.Fd&&(this.Fd+=1E3,1E3<=a-this.Fd&&(this.Fd=a),this.Fh=this.Yf,this.Yf=0,this.uh=this.rf,this.rf=0);b=0;0!==this.mg&&(b=a-this.mg,
0>b&&(b=0),this.nd=b/=1E3,.5<this.nd?this.nd=0:this.nd>1/this.Ok&&(this.nd=1/this.Ok));this.mg=a;this.$d=this.nd*this.Gf;this.pb.add(this.$d);this.$g.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.df)&&!this.xc;2<=this.Ta||a&&0<this.td?(b=this.ma/this.la,f=this.width/this.height,d=this.Ta,a&&0<this.td&&(d=this.td),this.He=2!==d&&f>b||2===d&&f<b?this.height/this.la:this.width/this.ma,this.L&&(this.L.ml(this.L.scrollX),this.L.nl(this.L.scrollY))):
this.He=this.Bd?this.devicePixelRatio:1;this.Ea();this.zc++;this.kc.yp();this.zc--;this.Ea();this.zc++;f=this.Uk.Pd();a=0;for(b=f.length;a<b;a++)f[a].qr();a=0;for(b=this.g.length;a<b;a++)if(k=this.g[a],!k.I&&(k.X.length||k.S.length))for(f=0,d=k.d.length;f<d;f++)for(h=k.d[f],e=0,m=h.C.length;e<m;e++)h.C[e].Od();a=0;for(b=this.g.length;a<b;a++)if(k=this.g[a],!k.I&&(k.X.length||k.S.length))for(f=0,d=k.d.length;f<d;f++)for(h=k.d[f],e=0,m=h.C.length;e<m;e++)c=h.C[e],c.mp&&c.mp();f=this.qi.Pd();a=0;for(b=
f.length;a<b;a++)f[a].Od();this.zc--;this.Go();for(a=0;this.qh&&10>a++;)this.zj(this.qh);a=0;for(b=this.uc.length;a<b;a++)this.uc[a].Qh=!1;this.L.rd&&this.L.rd.fa();U(this.il);this.zc++;a=0;for(b=this.g.length;a<b;a++)if(k=this.g[a],!k.I&&(k.X.length||k.S.length))for(f=0,d=k.d.length;f<d;f++)for(h=k.d[f],e=0,m=h.C.length;e<m;e++)c=h.C[e],c.Gl&&c.Gl();f=this.Vk.Pd();a=0;for(b=f.length;a<b;a++)f[a].Gl();this.zc--};c.prototype.zj=function(a){var b=this.L;this.L.Mp();var f,d,e;if(this.j)for(f=0,d=this.g.length;f<
d;f++)e=this.g[f],e.I||!e.Vp||e.global&&0!==e.d.length||-1!==a.af.indexOf(e)||e.Vp();b==a&&U(this.kc.Za);U(this.il);this.jl(!0);a.Ii();this.jl(!1);this.Q=!0;this.Ea()};c.prototype.jl=function(a){var b,f,d,e,m,k,h,c,g;b=0;for(f=this.X.length;b<f;b++)d=this.X[b],a?d.uf&&d.uf():d.vf&&d.vf();b=0;for(f=this.g.length;b<f;b++)if(d=this.g[b],d.global||d.ea.Og)for(e=0,m=d.d.length;e<m;e++)if(k=d.d[e],a?k.uf&&k.uf():k.vf&&k.vf(),k.C)for(h=0,c=k.C.length;h<c;h++)g=k.C[h],a?g.uf&&g.uf():g.vf&&g.vf()};c.prototype.Il=
function(a){this.qi.add(a)};c.prototype.fo=function(a){return a&&-1!==a.sf?this.nd*a.sf:this.$d};c.prototype.tc=function(){this.L.tc(this.Y);this.yd&&this.Y.present()};c.prototype.Gb=function(){this.P&&(this.od=1,this.L.Qe(this.j));this.L.Gb(this.j);this.j.rp()};c.prototype.Rj=function(a){a=a.toString();return this.Dc.hasOwnProperty(a)?this.Dc[a]:null};var A=[];c.prototype.Rd=function(a){var b,f;b=a.type.name;var d=null;if(this.md.hasOwnProperty(b)){if(d=this.md[b],d.contains(a))return}else d=A.length?
A.pop():new ba,this.md[b]=d;d.add(a);this.Yc=!0;if(a.ob)for(b=0,f=a.siblings.length;b<f;b++)this.Rd(a.siblings[b]);this.Zh&&d.Ce.push(a);this.Yh||(this.zc++,this.trigger(Object.getPrototypeOf(a.type.ea).A.lm,a),this.zc--)};c.prototype.Ea=function(){if(this.Yc){var a,b,f,d,e,m;this.Zh=!0;f=0;for(e=this.Vb.length;f<e;++f)for(a=this.Vb[f],b=a.type,b.d.push(a),d=0,m=b.S.length;d<m;++d)b.S[d].d.push(a),b.S[d].ze=!0;U(this.Vb);this.fm();Oa(this.md);this.Yc=this.Zh=!1}};c.prototype.fm=function(){for(var a in this.md)this.md.hasOwnProperty(a)&&
this.Zl(this.md[a])};c.prototype.Zl=function(a){var b=a.Pd(),f=b[0].type,d,e,m,k,h,c;Qa(f.d,a);f.ze=!0;0===f.d.length&&(f.hj=!1);d=0;for(e=f.S.length;d<e;++d)c=f.S[d],Qa(c.d,a),c.ze=!0;d=0;for(e=this.kc.Za.length;d<e;++d)if(h=this.kc.Za[d],h.Ya.hasOwnProperty(f.index)&&Qa(h.Ya[f.index].xd,a),!f.I)for(m=0,k=f.S.length;m<k;++m)c=f.S[m],h.Ya.hasOwnProperty(c.index)&&Qa(h.Ya[c.index].xd,a);if(h=b[0].e){if(h.ib)for(m=h.d,d=0,e=m.length;d<e;++d)k=m[d],a.contains(k)&&(k.Da(),h.Ca.update(k,k.Qa,null),k.Qa.set(0,
0,-1,-1));Qa(h.d,a);h.Bf(0)}for(d=0;d<b.length;++d)this.Yl(b[d],f);a.clear();A.push(a);this.Q=!0};c.prototype.Yl=function(a,b){var f,d,e;f=0;for(d=this.yj.length;f<d;++f)this.yj[f](a);a.Vc&&b.tj.update(a,a.Vc,null);(f=a.e)&&f.we(a,!0);if(a.C)for(f=0,d=a.C.length;f<d;++f)e=a.C[f],e.pe&&e.pe(),e.behavior.pi.remove(a);this.Uk.remove(a);this.qi.remove(a);this.Vk.remove(a);a.pe&&a.pe();this.Dc.hasOwnProperty(a.uid.toString())&&delete this.Dc[a.uid.toString()];this.Ag--;100>b.Qf.length&&b.Qf.push(a)};var y=
[];c.prototype.ld=function(a,b,f,d,e,m){var k,h,c,g;if(!a)return null;var v=this.g[a[1]],l=v.ea.$c;if(this.lg&&l&&!v.$h||l&&!this.j&&11===a[0][11])return null;var x=b;l||(b=null);var r;v.Qf.length?(r=v.Qf.pop(),r.Nb=!0,v.ea.jb.call(r,v)):(r=new v.ea.jb(v),r.Nb=!1);!f||m||this.Dc.hasOwnProperty(a[2].toString())?r.uid=this.tf++:r.uid=a[2];this.Dc[r.uid.toString()]=r;r.fl=this.Sk++;r.vd=v.d.length;k=0;for(h=this.Vb.length;k<h;++k)this.Vb[k].type===v&&r.vd++;r.Xe=sb;r.toString=tb;c=a[3];if(r.Nb)Oa(r.R);
else{r.R={};if("undefined"!==typeof cr_is_preview)for(r.Zj=[],r.Zj.length=c.length,k=0,h=c.length;k<h;k++)r.Zj[k]=c[k][1];r.ia=[];r.ia.length=c.length}k=0;for(h=c.length;k<h;k++)r.ia[k]=c[k][0];if(l){var q=a[0];r.x=ga(d)?q[0]:d;r.y=ga(e)?q[1]:e;r.z=q[2];r.width=q[3];r.height=q[4];r.depth=q[5];r.k=q[6];r.opacity=q[7];r.eg=q[8];r.fg=q[9];r.Fa=q[10];k=q[11];!this.j&&v.p.length&&(r.Fa=k);r.Ke=Ya(r.Fa);this.i&&Za(r,r.Fa,this.i);if(r.Nb){k=0;for(h=q[12].length;k<h;k++)for(c=0,g=q[12][k].length;c<g;c++)r.Z[k][c]=
q[12][k][c];r.ya.set(0,0,0,0);r.Vc.set(0,0,-1,-1);r.Qa.set(0,0,-1,-1);r.Wd.Ng(r.ya);U(r.ih)}else{r.Z=q[12].slice(0);k=0;for(h=r.Z.length;k<h;k++)r.Z[k]=q[12][k].slice(0);r.D=[];r.Pc=[];r.Pc.length=v.p.length;r.ya=new S(0,0,0,0);r.Vc=new S(0,0,-1,-1);r.Qa=new S(0,0,-1,-1);r.Wd=new pa;r.ih=[];r.xa=wb;r.hr=xb;r.Ub=yb;r.Da=zb;r.Xp=Ab;r.yr=Bb;r.$b=Cb}r.Sp=!1;r.Up=0;r.Tp=0;r.Rp=null;14===q.length&&(r.Sp=!0,r.Up=q[13][0],r.Tp=q[13][1],r.Rp=q[13][2]);k=0;for(h=v.p.length;k<h;k++)r.Pc[k]=!0;r.Fc=!0;r.Qb=Db;
r.Qb();r.Sl=!!r.D.length;r.hh=!0;r.nh=!0;v.gj=!0;r.visible=!0;r.sf=-1;r.e=b;r.Rb=b.d.length;r.od=0;"undefined"===typeof r.Je&&(r.Je=null);this.Q=r.Mf=!0}var n;U(y);k=0;for(h=v.S.length;k<h;k++)y.push.apply(y,v.S[k].X);y.push.apply(y,v.X);if(r.Nb)for(k=0,h=y.length;k<h;k++){var p=y[k];n=r.C[k];n.Nb=!0;p.behavior.jb.call(n,p,r);q=a[4][k];c=0;for(g=q.length;c<g;c++)n.V[c]=q[c];n.ua();p.behavior.pi.add(r)}else for(r.C=[],k=0,h=y.length;k<h;k++)p=y[k],n=new p.behavior.jb(p,r),n.Nb=!1,n.V=a[4][k].slice(0),
n.ua(),r.C.push(n),p.behavior.pi.add(r);q=a[5];if(r.Nb)for(k=0,h=q.length;k<h;k++)r.V[k]=q[k];else r.V=q.slice(0);this.Vb.push(r);this.Yc=!0;b&&(b.Ge(r,!0),1!==b.qe||1!==b.re)&&(v.hj=!0);this.Ag++;if(v.ob){if(r.ob=!0,r.Nb?U(r.siblings):r.siblings=[],!f&&!m){k=0;for(h=v.Sa.length;k<h;k++)if(v.Sa[k]!==v){if(!v.Sa[k].Yb)return null;r.siblings.push(this.ld(v.Sa[k].Yb,x,!1,l?r.x:d,l?r.y:e,!0))}k=0;for(h=r.siblings.length;k<h;k++)for(r.siblings[k].siblings.push(r),c=0;c<h;c++)k!==c&&r.siblings[k].siblings.push(r.siblings[c])}}else r.ob=
!1,r.siblings=null;r.ua();k=0;for(h=r.C.length;k<h;k++)r.C[k].lp&&r.C[k].lp();return r};c.prototype.ko=function(a){var b,f;b=0;for(f=this.L.q.length;b<f;b++){var d=this.L.q[b];if(ab(d.name,a))return d}return null};c.prototype.lo=function(a){a=Q(a);0>a&&(a=0);a>=this.L.q.length&&(a=this.L.q.length-1);return this.L.q[a]};c.prototype.rh=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].T().wa=!0};c.prototype.zf=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].zf()};c.prototype.Eg=function(a){var b,
f;b=0;for(f=a.length;b<f;b++)a[b].Eg()};c.prototype.Ld=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].Ld()};new pa;new S(0,0,0,0);c.prototype.Nl=function(a,b){if(!b)return!1;var f,d,e,k,m;f=0;for(d=a.X.length;f<d;f++)if(a.X[f].behavior instanceof b)return!0;if(!a.I)for(f=0,d=a.S.length;f<d;f++)for(m=a.S[f],e=0,k=m.X.length;e<k;e++)if(m.X[e].behavior instanceof b)return!0;return!1};c.prototype.Oi=function(a){return this.Nl(a,Rb.Eq)};c.prototype.Pi=function(a){return this.Nl(a,Rb.Gq)};var F=-1;
c.prototype.trigger=function(a,b,f){if(!this.L)return!1;var d=this.L.rd;if(!d)return!1;var e=!1,k,m,h;F++;var c=d.xh;m=0;for(h=c.length;m<h;++m)k=this.Kl(a,b,c[m],f),e=e||k;k=this.Kl(a,b,d,f);F--;return e||k};c.prototype.Kl=function(a,b,f,d){var e=!1,k,m,h,c;if(b)for(h=this.Mi(a,b,b.type.name,f,d),e=e||h,c=b.type.S,k=0,m=c.length;k<m;++k)h=this.Mi(a,b,c[k].name,f,d),e=e||h;else h=this.Mi(a,b,"system",f,d),e=e||h;return e};c.prototype.Mi=function(a,b,f,d,e){var k,m=!1,h=!1,h="undefined"!==typeof e,
c=(h?d.Cj:d.Ll)[f];if(!c)return m;var g=null;d=0;for(k=c.length;d<k;++d)if(c[d].method==a){g=c[d].Te;break}if(!g)return m;var v;h?v=g[e]:v=g;if(!v)return null;d=0;for(k=v.length;d<k;d++)a=v[d][0],e=v[d][1],h=this.Xn(b,f,a,e),m=m||h;return m};c.prototype.Xn=function(a,b,f,d){var e,k,m=!1;this.Ni++;var h=this.Va().Xb;h&&this.zf(h.gd);var c=1<this.Ni;this.zf(f.gd);c&&this.tp();var g=this.Fg(f);g.Xb=f;a&&(e=this.types[b].T(),e.wa=!1,U(e.d),e.d[0]=a,this.types[b].Vd());a=!0;if(f.parent){b=g.Dl;for(e=f.parent;e;)b.push(e),
e=e.parent;b.reverse();e=0;for(k=b.length;e<k;e++)if(!b[e].Ap()){a=!1;break}}a&&(this.Ue++,f.gc?f.zp(d):f.fa(),m=m||g.Ed);this.Bg();c&&this.kp();this.Ld(f.gd);h&&this.Ld(h.gd);this.Yc&&0===this.zc&&0===F&&!this.ai&&this.Ea();this.Ni--;return m};c.prototype.eo=function(){var a=this.Va();return a.Xb.oa[a.na]};c.prototype.tp=function(){this.vg++;this.vg>=this.ni.length&&this.ni.push([])};c.prototype.kp=function(){this.vg--};c.prototype.Mj=function(){return this.ni[this.vg]};c.prototype.Fg=function(a){this.Sf++;
this.Sf>=this.zh.length&&this.zh.push(new Eb);var b=this.Va();b.reset(a);return b};c.prototype.Bg=function(){this.Sf--};c.prototype.Va=function(){return this.zh[this.Sf]};c.prototype.Nj=function(a,b){for(var f,d,e,k,m,h;b;){f=0;for(d=b.xb.length;f<d;f++)if(h=b.xb[f],h instanceof Fb&&ab(a,h.name))return h;b=b.parent}f=0;for(d=this.uc.length;f<d;f++)for(m=this.uc[f],e=0,k=m.Wc.length;e<k;e++)if(h=m.Wc[e],h instanceof Fb&&ab(a,h.name))return h;return null};c.prototype.Pj=function(a){var b,f;b=0;for(f=
this.Kb.length;b<f;b++)if(this.Kb[b].F===a)return this.Kb[b];return null};c.prototype.ag=function(a){var b,f;b=0;for(f=this.g.length;b<f;b++)if(this.g[b].F===a)return this.g[b];return null};c.prototype.io=function(a){var b,f;b=0;for(f=this.Ud.length;b<f;b++)if(this.Ud[b].F===a)return this.Ud[b];return null};c.prototype.Rm=function(a,b){this.Df=[a,b];this.Q=!0};c.prototype.Go=function(){var a=this,b=this.Hi,f=this.Ac,d=this.rg,e=!1;this.zl&&(e=!0,b="__c2_continuouspreview",this.zl=!1);if(b.length){this.Ea();
f=this.Ep();if(p()&&!this.Jb)u(b,f,function(){w("Saved state to IndexedDB storage ("+f.length+" bytes)");a.Ac=f;a.trigger(Z.prototype.A.dh,null);a.Ac="";e&&g()},function(d){try{localStorage.setItem("__c2save_"+b,f),w("Saved state to WebStorage ("+f.length+" bytes)"),a.Ac=f,a.trigger(Z.prototype.A.dh,null),a.Ac="",e&&g()}catch(k){w("Failed to save game state: "+d+"; "+k),a.trigger(Z.prototype.A.bj,null)}});else try{localStorage.setItem("__c2save_"+b,f),w("Saved state to WebStorage ("+f.length+" bytes)"),
a.Ac=f,this.trigger(Z.prototype.A.dh,null),a.Ac="",e&&g()}catch(k){w("Error saving to WebStorage: "+k),a.trigger(Z.prototype.A.bj,null)}this.Ia=this.rg=this.Hi=""}if(d.length){if(p()&&!this.Jb)q(d,function(b){b?(a.Ia=b,w("Loaded state from IndexedDB storage ("+a.Ia.length+" bytes)")):(a.Ia=localStorage.getItem("__c2save_"+d)||"",w("Loaded state from WebStorage ("+a.Ia.length+" bytes)"));a.Ef=!1;a.Ia.length||a.trigger(Z.prototype.A.bh,null)},function(){a.Ia=localStorage.getItem("__c2save_"+d)||"";
w("Loaded state from WebStorage ("+a.Ia.length+" bytes)");a.Ef=!1;a.Ia.length||a.trigger(Z.prototype.A.bh,null)});else{try{this.Ia=localStorage.getItem("__c2save_"+d)||"",w("Loaded state from WebStorage ("+this.Ia.length+" bytes)")}catch(m){this.Ia=""}this.Ef=!1;a.Ia.length||a.trigger(Z.prototype.A.bh,null)}this.Hi=this.rg=""}this.Ia.length&&(this.Ea(),this.Vo(this.Ia),this.Ac=this.Ia,this.trigger(Z.prototype.A.pm,null),this.Ia=this.Ac="")};c.prototype.Ep=function(){var a,f,d,e,k,m,h,c={c2save:!0,
version:1,rt:{time:this.pb.Ma,walltime:this.$g.Ma,timescale:this.Gf,tickcount:this.Ic,execcount:this.Ue,next_uid:this.tf,running_layout:this.L.F,start_time_offset:Date.now()-this.Pg},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(f=this.g.length;a<f;a++)if(k=this.g[a],!k.I&&!this.Oi(k)){m={instances:[]};Na(k.R)&&(m.ex=b(k.R));d=0;for(e=k.d.length;d<e;d++)m.instances.push(this.Gi(k.d[d]));c.types[k.F.toString()]=m}a=0;for(f=this.Kb.length;a<f;a++)d=this.Kb[a],c.layouts[d.F.toString()]=
d.tb();e=c.events.groups;a=0;for(f=this.Ud.length;a<f;a++)d=this.Ud[a],e[d.F.toString()]=this.bg[d.Ze].Ye;f=c.events.cnds;for(h in this.Uc)this.Uc.hasOwnProperty(h)&&(a=this.Uc[h],Na(a.R)&&(f[h]={ex:b(a.R)}));f=c.events.acts;for(h in this.Qc)this.Qc.hasOwnProperty(h)&&(a=this.Qc[h],Na(a.R)&&(f[h]={ex:b(a.R)}));f=c.events.vars;for(h in this.De)this.De.hasOwnProperty(h)&&(a=this.De[h],a.jg||a.parent&&!a.ff||(f[h]=a.data));c.system=this.kc.tb();return JSON.stringify(c)};c.prototype.hl=function(){var a,
b,f,d,e,k;this.Dc={};a=0;for(b=this.g.length;a<b;a++)if(f=this.g[a],!f.I)for(d=0,e=f.d.length;d<e;d++)k=f.d[d],this.Dc[k.uid.toString()]=k};c.prototype.Vo=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.cf=!0;var b=a.rt;this.pb.reset();this.pb.Ma=b.time;this.$g.reset();this.$g.Ma=b.walltime||0;this.Gf=b.timescale;this.Ic=b.tickcount;this.Ue=b.execcount;this.Pg=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.L.F)if(f=this.Pj(f))this.zj(f);else return;var d,e,k,m,h,c,
g;c=a.types;for(e in c)if(c.hasOwnProperty(e)&&(m=this.ag(parseInt(e,10)))&&!m.I&&!this.Oi(m)){c[e].ex?m.R=c[e].ex:Oa(m.R);h=m.d;k=c[e].instances;f=0;for(d=ja(h.length,k.length);f<d;f++)this.sg(h[f],k[f]);f=k.length;for(d=h.length;f<d;f++)this.Rd(h[f]);f=h.length;for(d=k.length;f<d;f++){h=null;if(m.ea.$c&&(h=this.L.$f(k[f].w.l),!h))continue;h=this.ld(m.Yb,h,!1,0,0,!0);this.sg(h,k[f])}m.ze=!0}this.Ea();this.hl();d=a.layouts;for(e in d)d.hasOwnProperty(e)&&(f=this.Pj(parseInt(e,10)))&&f.ec(d[e]);d=
a.events.groups;for(e in d)d.hasOwnProperty(e)&&(f=this.io(parseInt(e,10)))&&this.bg[f.Ze]&&this.bg[f.Ze].Fp(d[e]);f=a.events.cnds;for(e in this.Uc)this.Uc.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.Uc[e].R=f[e].ex:this.Uc[e].R={});f=a.events.acts;for(e in this.Qc)this.Qc.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.Qc[e].R=f[e].ex:this.Qc[e].R={});f=a.events.vars;for(e in f)f.hasOwnProperty(e)&&this.De.hasOwnProperty(e)&&(this.De[e].data=f[e]);this.tf=b.next_uid;this.cf=!1;f=0;for(d=this.Uf.length;f<
d;++f)h=this.Uf[f],this.trigger(Object.getPrototypeOf(h.type.ea).A.Zi,h);U(this.Uf);this.kc.ec(a.system);f=0;for(d=this.g.length;f<d;f++)if(m=this.g[f],!m.I&&!this.Oi(m))for(e=0,a=m.d.length;e<a;e++){h=m.d[e];if(m.ob)for(c=h.Xe(),U(h.siblings),b=0,k=m.Sa.length;b<k;b++)g=m.Sa[b],m!==g&&h.siblings.push(g.d[c]);h.jd&&h.jd();if(h.C)for(b=0,k=h.C.length;b<k;b++)c=h.C[b],c.jd&&c.jd()}this.Q=!0}};c.prototype.Gi=function(a,f){var d,e,k,m,h;m=a.type;k=m.ea;var c={};f?c.c2=!0:c.uid=a.uid;Na(a.R)&&(c.ex=b(a.R));
if(a.ia&&a.ia.length)for(c.ivs={},d=0,e=a.ia.length;d<e;d++)c.ivs[a.type.Vh[d].toString()]=a.ia[d];if(k.$c){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.e.F,zi:a.$b()};0!==a.k&&(k.a=a.k);1!==a.opacity&&(k.o=a.opacity);.5!==a.eg&&(k.hX=a.eg);.5!==a.fg&&(k.hY=a.fg);0!==a.Fa&&(k.bm=a.Fa);a.visible||(k.v=a.visible);a.Mf||(k.ce=a.Mf);-1!==a.sf&&(k.mts=a.sf);if(m.p.length)for(k.fx=[],d=0,e=m.p.length;d<e;d++)h=m.p[d],k.fx.push({name:h.name,active:a.Pc[h.index],params:a.Z[h.index]});c.w=k}if(a.C&&a.C.length)for(c.behs=
{},d=0,e=a.C.length;d<e;d++)m=a.C[d],m.tb&&(c.behs[m.type.F.toString()]=m.tb());a.tb&&(c.data=a.tb());return c};c.prototype.jo=function(a,b){var f,d;f=0;for(d=a.Vh.length;f<d;f++)if(a.Vh[f]===b)return f;return-1};c.prototype.co=function(a,b){var f,d;f=0;for(d=a.C.length;f<d;f++)if(a.C[f].type.F===b)return f;return-1};c.prototype.sg=function(a,b,f){var d,e,k,m,h;h=a.type;m=h.ea;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.R=b.ex:Oa(a.R);if(e=b.ivs)for(d in e)e.hasOwnProperty(d)&&(k=this.jo(h,parseInt(d,
10)),0>k||k>=a.ia.length||(a.ia[k]=e[d]));if(m.$c){k=b.w;a.e.F!==k.l&&(e=a.e,a.e=this.L.$f(k.l),a.e?(e.we(a,!0),a.e.Ge(a,!0),a.xa(),a.e.Bf(0)):(a.e=e,f||this.Rd(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Rb=k.zi;a.k=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.eg=k.hasOwnProperty("hX")?k.hX:.5;a.fg=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.Mf=k.hasOwnProperty("ce")?k.ce:!0;a.sf=k.hasOwnProperty("mts")?k.mts:-1;a.Fa=k.hasOwnProperty("bm")?k.bm:
0;a.Ke=Ya(a.Fa);this.i&&Za(a,a.Fa,this.i);a.xa();if(k.hasOwnProperty("fx"))for(f=0,e=k.fx.length;f<e;f++)m=h.Kh(k.fx[f].name),0>m||(a.Pc[m]=k.fx[f].active,a.Z[m]=k.fx[f].params);a.Qb()}if(h=b.behs)for(d in h)h.hasOwnProperty(d)&&(f=this.co(a,parseInt(d,10)),0>f||a.C[f].ec(h[d]));b.data&&a.ec(b.data)};c.prototype.Dj=function(a,b,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,f)},f)};c.prototype.Ej=function(a,b){this.Dj("data.js",function(f){var d=
new FileReader;d.onload=function(b){a(b.target.result)};d.onerror=b;d.readAsText(f)},b)};var I=[],da=0;c.prototype.oi=function(){if(I.length&&!(8<=da)){da++;var a=I.shift();this.Tm(a.filename,a.Np,a.un)}};c.prototype.Yn=function(a,b){var f=this;I.push({filename:"loading-logo.png",Np:function(b){da--;f.oi();a(b)},un:function(a){da--;f.oi();b(a)}});this.oi()};c.prototype.Tm=function(a,b,f){this.Dj(a,function(a){var f=new FileReader;f.onload=function(a){b(a.target.result)};f.readAsArrayBuffer(a)},f)};
c.prototype.Zn=function(a,b){this.Yn(function(b){b=URL.createObjectURL(new Blob([b]));a(b)},b)};c.prototype.Mo=function(){return/^(?:[a-z]+:)?\/\//.test("loading-logo.png")||!1||!1};c.prototype.Gp=function(a){this.bi&&!this.Mo()?this.Zn(function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src="loading-logo.png"};c.prototype.Kg=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=
b)};Gb=function(a){return new c(document.getElementById(a))};Hb=function(a,b){return new c({dc:!0,width:a,height:b})};window.cr_createRuntime=Gb;window.cr_createDCRuntime=Hb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.kj=!0;document.body.appendChild(a);a=new c(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 c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,l){var p=window.cr_getC2Runtime();p&&p.Rm(c,l)};
window.cr_sizeCanvas=function(c,l){if(0!==c&&0!==l){var p=window.cr_getC2Runtime();p&&p.setSize(c,l)}};window.cr_setSuspended=function(c){var l=window.cr_getC2Runtime();l&&l.setSuspended(c)};
(function(){function c(a,b){this.b=a;this.rd=null;this.scrollX=this.b.ma/2;this.scrollY=this.b.la/2;this.scale=1;this.k=0;this.de=!0;this.name=b[0];this.hp=b[1];this.gp=b[2];this.width=b[1];this.height=b[2];this.Ol=b[3];this.xl=b[4];this.F=b[5];var d=b[6],e,c;this.q=[];this.af=[];e=0;for(c=d.length;e<c;e++){var g=new Ib(this,d[e]);g.Tk=e;this.q.push(g)}d=b[7];this.wd=[];e=0;for(c=d.length;e<c;e++){var g=d[e],l=this.b.g[g[1]];l.Yb||(l.Yb=g);this.wd.push(g);-1===this.af.indexOf(l)&&this.af.push(l)}this.p=
[];this.D=[];this.Fc=!0;this.Z=[];e=0;for(c=b[8].length;e<c;e++)this.p.push({id:b[8][e][0],name:b[8][e][1],ga:-1,Lb:!1,$a:!0,index:e}),this.Z.push(b[8][e][2].slice(0));this.Qb();this.ve=new S(0,0,1,1);this.Ci=new S(0,0,1,1);this.ed={}}function l(a,b){return a.Rb-b.Rb}function p(a,b){this.ra=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.sc=!1;this.Jc=new S(0,0,0,0);this.Jl=new pa;this.N=this.K=this.O=this.J=0;this.Qd=!1;this.Nc=-1;this.sh=0;this.name=b[0];this.index=b[1];this.F=b[2];this.visible=
b[3];this.Db=b[4];this.Pb=b[5];this.qe=b[6];this.re=b[7];this.opacity=b[8];this.Xf=b[9];this.ib=b[10];this.Wi=b[11];this.Fa=b[12];this.pn=b[13];this.Ke="source-over";this.Ga=this.Ja=0;this.Ca=null;this.Bc=n();this.Ob=!0;this.le=new S(0,0,-1,-1);this.za=new S(0,0,-1,-1);this.ib&&(this.Ca=new Xa(this.b.ma,this.b.la));this.ic=!1;var d=b[14],e,c;this.Cl=[];this.fb=[];this.Ne=[];e=0;for(c=d.length;e<c;e++){var g=d[e],l=this.b.g[g[1]];l.Yb||(l.Yb=g,l.Qm=this.index);this.fb.push(g);-1===this.ra.af.indexOf(l)&&
this.ra.af.push(l)}ta(this.Cl,this.fb);this.p=[];this.D=[];this.Fc=!0;this.Z=[];e=0;for(c=b[15].length;e<c;e++)this.p.push({id:b[15][e][0],name:b[15][e][1],ga:-1,Lb:!1,$a:!0,index:e}),this.Z.push(b[15][e][2].slice(0));this.Qb();this.ve=new S(0,0,1,1);this.Ci=new S(0,0,1,1)}function n(){return b.length?b.pop():[]}function u(a){U(a);b.push(a)}c.prototype.Dp=function(a){var b=a.type.F.toString();this.ed.hasOwnProperty(b)||(this.ed[b]=[]);this.ed[b].push(this.b.Gi(a))};c.prototype.Tj=function(){var a=
this.q[0];return!a.Pb&&1===a.opacity&&!a.Xf&&a.visible};c.prototype.Qb=function(){U(this.D);this.Fc=!0;var a,b,d;a=0;for(b=this.p.length;a<b;a++)d=this.p[a],d.$a&&(this.D.push(d),d.Lb||(this.Fc=!1))};c.prototype.Jh=function(a){var b,d,e;b=0;for(d=this.p.length;b<d;b++)if(e=this.p[b],e.name===a)return e;return null};var q=[],g=!0;c.prototype.Ii=function(){this.xl&&(this.rd=this.b.Ah[this.xl],this.rd.Qi());this.b.L=this;this.width=this.hp;this.height=this.gp;this.scrollX=this.b.ma/2;this.scrollY=this.b.la/
2;var a,b,d,e,c,r,n;a=0;for(d=this.b.g.length;a<d;a++)if(b=this.b.g[a],!b.I)for(c=b.d,b=0,e=c.length;b<e;b++)if(r=c[b],r.e){var m=r.e.Tk;m>=this.q.length&&(m=this.q.length-1);r.e=this.q[m];-1===r.e.d.indexOf(r)&&r.e.d.push(r);r.e.Qd=!0}if(!g)for(a=0,d=this.q.length;a<d;++a)this.q[a].d.sort(l);U(q);this.Jm();a=0;for(d=this.q.length;a<d;a++)r=this.q[a],r.Pm(),r.Xg();c=!1;if(!this.de){for(n in this.ed)if(this.ed.hasOwnProperty(n)&&(b=this.b.ag(parseInt(n,10)))&&!b.I&&this.b.Pi(b)){e=this.ed[n];a=0;for(d=
e.length;a<d;a++){r=null;if(b.ea.$c&&(r=this.$f(e[a].w.l),!r))continue;r=this.b.ld(b.Yb,r,!1,0,0,!0);this.b.sg(r,e[a]);c=!0;q.push(r)}U(e)}a=0;for(d=this.q.length;a<d;a++)this.q[a].d.sort(l),this.q[a].Qd=!0}c&&(this.b.Ea(),this.b.hl());for(a=0;a<q.length;a++)if(r=q[a],r.type.ob)for(d=r.Xe(),b=0,e=r.type.Sa.length;b<e;b++)n=r.type.Sa[b],r.type!==n&&(n.d.length>d?r.siblings.push(n.d[d]):n.Yb&&(c=this.b.ld(n.Yb,r.e,!0,r.x,r.y,!0),this.b.Ea(),n.Wg(),r.siblings.push(c),q.push(c)));a=0;for(d=this.wd.length;a<
d;a++)this.b.ld(this.wd[a],null,!0);this.b.qh=null;this.b.Ea();if(this.b.Y&&!this.b.pa)for(a=0,d=this.b.g.length;a<d;a++)n=this.b.g[a],!n.I&&n.d.length&&n.op&&n.op(this.b.Y);if(this.b.cf)ta(this.b.Uf,q);else for(a=0,d=q.length;a<d;a++)r=q[a],this.b.trigger(Object.getPrototypeOf(r.type.ea).A.Zi,r);U(q);this.b.cf||this.b.trigger(Z.prototype.A.om,null);this.de=!1};c.prototype.Om=function(){var a,b,d,e,c;b=a=0;for(d=this.wd.length;a<d;a++)e=this.wd[a],c=this.b.g[e[1]],c.global?c.ob||this.b.ld(e,null,
!0):(this.wd[b]=e,b++);sa(this.wd,b)};c.prototype.Mp=function(){this.b.cf||this.b.trigger(Z.prototype.A.nm,null);this.b.Yh=!0;U(this.b.kc.Za);var a,b,d,e,c,l;if(!this.de)for(a=0,b=this.q.length;a<b;a++)for(this.q[a].Si(),c=this.q[a].d,d=0,e=c.length;d<e;d++)l=c[d],l.type.global||this.b.Pi(l.type)&&this.Dp(l);a=0;for(b=this.q.length;a<b;a++){c=this.q[a].d;d=0;for(e=c.length;d<e;d++)l=c[d],l.type.global||this.b.Rd(l);this.b.Ea();U(c);this.q[a].Qd=!0}a=0;for(b=this.b.g.length;a<b;a++)if(c=this.b.g[a],
!(c.global||c.ea.$c||c.ea.Og||c.I)){d=0;for(e=c.d.length;d<e;d++)this.b.Rd(c.d[d]);this.b.Ea()}g=!1;this.b.Yh=!1};new S(0,0,0,0);c.prototype.tc=function(a){var b,d=a,e=!1,c=!this.b.eb;c&&(this.b.qg||(this.b.qg=document.createElement("canvas"),b=this.b.qg,b.width=this.b.n,b.height=this.b.m,this.b.uk=b.getContext("2d"),e=!0),b=this.b.qg,d=this.b.uk,b.width!==this.b.n&&(b.width=this.b.n,e=!0),b.height!==this.b.m&&(b.height=this.b.m,e=!0),e&&this.b.Kg(d,this.b.ka));d.globalAlpha=1;d.globalCompositeOperation=
"source-over";this.b.eh&&!this.Tj()&&d.clearRect(0,0,this.b.n,this.b.m);var g,l,e=0;for(g=this.q.length;e<g;e++)l=this.q[e],l.visible&&0<l.opacity&&11!==l.Fa&&(l.d.length||!l.Pb)?l.tc(d):l.Xg();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.Qe=function(a){a.rl(!0);this.b.da||(this.b.da=a.bb(this.b.n,this.b.m,this.b.ka));if(this.b.da.Yd!==this.b.n||this.b.da.Xd!==this.b.m)a.deleteTexture(this.b.da),this.b.da=a.bb(this.b.n,this.b.m,this.b.ka);a.ub(this.b.da);this.b.eb||a.Ec(this.b.n,
this.b.m);var b,d;for(b=this.q.length-1;0<=b;--b)d=this.q[b],d.visible&&1===d.opacity&&d.Fc&&0===d.Fa&&(d.d.length||!d.Pb)?d.Qe(a):d.Xg();a.rl(!1)};c.prototype.Gb=function(a){var b=0<this.D.length||this.b.Be||!this.b.eb||this.b.P;if(b){this.b.da||(this.b.da=a.bb(this.b.n,this.b.m,this.b.ka));if(this.b.da.Yd!==this.b.n||this.b.da.Xd!==this.b.m)a.deleteTexture(this.b.da),this.b.da=a.bb(this.b.n,this.b.m,this.b.ka);a.ub(this.b.da);this.b.eb||a.Ec(this.b.n,this.b.m)}else this.b.da&&(a.ub(null),a.deleteTexture(this.b.da),
this.b.da=null);this.b.eh&&!this.Tj()&&a.clear(0,0,0,0);var d,e,c;d=0;for(e=this.q.length;d<e;d++)c=this.q[d],c.visible&&0<c.opacity&&(c.d.length||!c.Pb)?c.Gb(a):c.Xg();b&&(0===this.D.length||1===this.D.length&&this.b.eb?(1===this.D.length?(b=this.D[0].index,a.Ra(this.D[0].ga),a.ye(null,1/this.b.n,1/this.b.m,0,0,1,1,this.scale,this.k,0,0,this.b.n/2,this.b.m/2,this.b.pb.Ma,this.Z[b]),a.Cg(this.D[0].ga)&&(this.b.Q=!0)):a.Ra(0),this.b.eb||a.Ec(this.b.width,this.b.height),a.ub(null),a.ql(!1),a.Af(1),
a.wb(this.b.da),a.ol(),a.sb(),a.hb(),b=this.b.width/2,d=this.b.height/2,a.Ai(-b,d,b,d,b,-d,-b,-d),a.wb(null),a.ql(!0)):this.Di(a,null,null,null))};c.prototype.We=function(){return 0<this.D.length||this.b.Be||!this.b.eb||this.b.P?this.b.da:null};c.prototype.Qj=function(){var a=this.q[0].Pa(),b,d,e;b=1;for(d=this.q.length;b<d;b++)e=this.q[b],(0!==e.qe||0!==e.re)&&e.Pa()<a&&(a=e.Pa());return a};c.prototype.ml=function(a){if(!this.Ol){var b=1/this.Qj()*this.b.n/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.Q=!0)};c.prototype.nl=function(a){if(!this.Ol){var b=1/this.Qj()*this.b.m/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Q=!0)};c.prototype.Jm=function(){this.ml(this.scrollX);this.nl(this.scrollY)};c.prototype.Di=function(a,b,d,e){var c=d?d.D:b?b.D:this.D,g=1,l=0,m=0,v=0,q=this.b.n,n=this.b.m;d?(g=d.e.Pa(),l=d.e.Ua(),m=d.e.J,v=d.e.K,q=d.e.O,n=d.e.N):b&&(g=b.Pa(),l=b.Ua(),m=b.J,v=b.K,q=b.O,n=b.N);var p=this.b.Hh,
u,A,y,F,I=0,da=1,t,z,T=this.b.n,N=this.b.m,xa=T/2,ya=N/2,H=b?b.ve:this.ve,D=b?b.Ci:this.Ci,J=0,P=0,E=0,B=0,M=T,ka=T,K=N,la=N,fa=y=0;F=d?d.e.Ua():0;if(d){u=0;for(A=c.length;u<A;u++)y+=a.oo(c[u].ga),fa+=a.po(c[u].ga);B=d.ya;J=b.U(B.left,B.top,!0,!0);E=b.U(B.left,B.top,!1,!0);M=b.U(B.right,B.bottom,!0,!0);K=b.U(B.right,B.bottom,!1,!0);0!==F&&(u=b.U(B.right,B.top,!0,!0),A=b.U(B.right,B.top,!1,!0),P=b.U(B.left,B.bottom,!0,!0),B=b.U(B.left,B.bottom,!1,!0),F=Math.min(J,M,u,P),M=Math.max(J,M,u,P),J=F,F=Math.min(E,
K,A,B),K=Math.max(E,K,A,B),E=F);J-=y;E-=fa;M+=y;K+=fa;D.left=J/T;D.top=1-E/N;D.right=M/T;D.bottom=1-K/N;P=J=Q(J);B=E=Q(E);ka=M=na(M);la=K=na(K);P-=y;B-=fa;ka+=y;la+=fa;0>J&&(J=0);0>E&&(E=0);M>T&&(M=T);K>N&&(K=N);0>P&&(P=0);0>B&&(B=0);ka>T&&(ka=T);la>N&&(la=N);H.left=J/T;H.top=1-E/N;H.right=M/T;H.bottom=1-K/N}else H.left=D.left=0,H.top=D.top=0,H.right=D.right=1,H.bottom=D.bottom=1;fa=d&&(a.xf(c[0].ga)||0!==y||0!==fa||1!==d.opacity||d.type.ea.Pk)||b&&!d&&1!==b.opacity;a.ol();if(fa){p[I]||(p[I]=a.bb(T,
N,this.b.ka));if(p[I].Yd!==T||p[I].Xd!==N)a.deleteTexture(p[I]),p[I]=a.bb(T,N,this.b.ka);a.Ra(0);a.ub(p[I]);z=la-B;a.clearRect(P,N-B-z,ka-P,z);d?d.Gb(a):(a.wb(this.b.ja),a.Af(b.opacity),a.sb(),a.translate(-xa,-ya),a.hb(),a.ue(J,K,M,K,M,E,J,E,H));D.left=D.top=0;D.right=D.bottom=1;d&&(F=H.top,H.top=H.bottom,H.bottom=F);I=1;da=0}a.Af(1);y=c.length-1;var Ma=a.xi(c[y].ga)||!b&&!d&&!this.b.eb;u=F=0;for(A=c.length;u<A;u++){p[I]||(p[I]=a.bb(T,N,this.b.ka));if(p[I].Yd!==T||p[I].Xd!==N)a.deleteTexture(p[I]),
p[I]=a.bb(T,N,this.b.ka);a.Ra(c[u].ga);F=c[u].index;a.Cg(c[u].ga)&&(this.b.Q=!0);0!=u||fa?(a.ye(e,1/T,1/N,D.left,D.top,D.right,D.bottom,g,l,m,v,(m+q)/2,(v+n)/2,this.b.pb.Ma,d?d.Z[F]:b?b.Z[F]:this.Z[F]),a.wb(null),u!==y||Ma?(a.ub(p[I]),z=la-B,t=N-B-z,a.clearRect(P,t,ka-P,z)):(d?a.fd(d.Ja,d.Ga):b&&a.fd(b.Ja,b.Ga),a.ub(e)),a.wb(p[da]),a.sb(),a.translate(-xa,-ya),a.hb(),a.ue(J,K,M,K,M,E,J,E,H),u!==y||Ma||a.wb(null)):(a.ub(p[I]),z=la-B,t=N-B-z,a.clearRect(P,t,ka-P,z),d?(d.Pe&&d.Pe.Ji?(t=d.Pe.Ji,da=1/t.width,
t=1/t.height):(da=1/d.width,t=1/d.height),a.ye(e,da,t,D.left,D.top,D.right,D.bottom,g,l,m,v,(m+q)/2,(v+n)/2,this.b.pb.Ma,d.Z[F]),d.Gb(a)):(a.ye(e,1/T,1/N,0,0,1,1,g,l,m,v,(m+q)/2,(v+n)/2,this.b.pb.Ma,b?b.Z[F]:this.Z[F]),a.wb(b?this.b.ja:this.b.da),a.sb(),a.translate(-xa,-ya),a.hb(),a.ue(J,K,M,K,M,E,J,E,H)),D.left=D.top=0,D.right=D.bottom=1,d&&!Ma&&(F=K,K=E,E=F));I=0===I?1:0;da=0===I?1:0}Ma&&(a.Ra(0),d?a.fd(d.Ja,d.Ga):b?a.fd(b.Ja,b.Ga):this.b.eb||(a.Ec(this.b.width,this.b.height),xa=this.b.width/2,
ya=this.b.height/2,E=J=0,M=this.b.width,K=this.b.height),a.ub(e),a.wb(p[da]),a.sb(),a.translate(-xa,-ya),a.hb(),d&&1===c.length&&!fa?a.ue(J,E,M,E,M,K,J,K,H):a.ue(J,K,M,K,M,E,J,E,H),a.wb(null))};c.prototype.$f=function(a){var b,d;b=0;for(d=this.q.length;b<d;b++)if(this.q[b].F===a)return this.q[b];return null};c.prototype.tb=function(){var a,b,d,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.de,persist:this.ed,fx:[],layers:{}};a=0;for(b=this.p.length;a<b;a++)d=
this.p[a],e.fx.push({name:d.name,active:d.$a,params:this.Z[d.index]});a=0;for(b=this.q.length;a<b;a++)d=this.q[a],e.layers[d.F.toString()]=d.tb();return e};c.prototype.ec=function(a){var b,d,e,c;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.ed=a.persist;"undefined"!==typeof a.fv&&(this.de=a.fv);var g=a.fx;b=0;for(d=g.length;b<d;b++)if(e=this.Jh(g[b].name))e.$a=g[b].active,this.Z[e.index]=g[b].params;this.Qb();b=a.layers;for(c in b)b.hasOwnProperty(c)&&
(a=this.$f(parseInt(c,10)))&&a.ec(b[c])};ub=c;p.prototype.Qb=function(){U(this.D);this.Fc=!0;var a,b,d;a=0;for(b=this.p.length;a<b;a++)d=this.p[a],d.$a&&(this.D.push(d),d.Lb||(this.Fc=!1))};p.prototype.Jh=function(a){var b,d,e;b=0;for(d=this.p.length;b<d;b++)if(e=this.p[b],e.name===a)return e;return null};p.prototype.Pm=function(){var a,b,d,e,c,g;b=a=0;for(d=this.fb.length;a<d;a++){e=this.fb[a];c=this.b.g[e[1]];g=this.b.Pi(c);c=!0;if(!g||this.ra.de){e=this.b.ld(e,this,!0);if(!e)continue;q.push(e);
e.type.global&&(c=!1,this.Ne.push(e.uid))}c&&(this.fb[b]=this.fb[a],b++)}this.fb.length=b;this.b.Ea();!this.b.j&&this.p.length&&(this.Fa=this.pn);this.Ke=Ya(this.Fa);this.b.i&&Za(this,this.Fa,this.b.i);this.Ob=!0};p.prototype.we=function(a,b){var d=va(this.d,a);0>d||(b&&this.ib&&a.Qa&&a.Qa.right>=a.Qa.left&&(a.Da(),this.Ca.update(a,a.Qa,null),a.Qa.set(0,0,-1,-1)),d===this.d.length-1?this.d.pop():(ra(this.d,d),this.Bf(d)),this.Ob=!0)};p.prototype.Ge=function(a,b){a.Rb=this.d.length;this.d.push(a);
b&&this.ib&&a.Qa&&a.xa();this.Ob=!0};p.prototype.qp=function(a){this.d.unshift(a);this.Bf(0)};p.prototype.Zo=function(a,b,d){var e=a.$b();b=b.$b();ra(this.d,e);e<b&&b--;d&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Bf(e<b?e:b)};p.prototype.Bf=function(a){-1===this.Nc?this.Nc=a:a<this.Nc&&(this.Nc=a);this.Ob=this.Qd=!0};p.prototype.Si=function(){if(this.Qd){-1===this.Nc&&(this.Nc=0);var a,b,d;if(this.ib)for(a=this.Nc,b=this.d.length;a<b;++a)d=this.d[a],d.Rb=a,this.Ca.Xo(d.Qa);else for(a=
this.Nc,b=this.d.length;a<b;++a)this.d[a].Rb=a;this.Qd=!1;this.Nc=-1}};p.prototype.Pa=function(a){return this.mo()*(this.b.eb||a?this.b.He:1)};p.prototype.mo=function(){return(this.scale*this.ra.scale-1)*this.Wi+1};p.prototype.Ua=function(){return this.sc?0:Ca(this.ra.k+this.k)};var b=[],d=[],e=[];p.prototype.Mh=function(){this.Si();this.Ca.gl(this.J,this.K,this.O,this.N,e);if(!e.length)return n();if(1===e.length){var a=n();ta(a,e[0]);U(e);return a}for(var b=!0;1<e.length;){for(var a=e,c=void 0,k=
void 0,g=void 0,l=void 0,q=void 0,c=0,k=a.length;c<k-1;c+=2){var g=a[c],l=a[c+1],q=n(),m=g,v=l,p=q,G=0,C=0,L=0,A=m.length,y=v.length,F=void 0,I=void 0;for(p.length=A+y;G<A&&C<y;++L)F=m[G],I=v[C],F.Rb<I.Rb?(p[L]=F,++G):(p[L]=I,++C);for(;G<A;++G,++L)p[L]=m[G];for(;C<y;++C,++L)p[L]=v[C];b||(u(g),u(l));d.push(q)}1===k%2&&(b?(g=n(),ta(g,a[k-1]),d.push(g)):d.push(a[k-1]));ta(a,d);U(d);b=!1}a=e[0];U(e);return a};p.prototype.tc=function(a){this.ic=this.Xf||1!==this.opacity||0!==this.Fa;var b=this.b.canvas,
d=a,e=!1;this.ic&&(this.b.pg||(this.b.pg=document.createElement("canvas"),b=this.b.pg,b.width=this.b.n,b.height=this.b.m,this.b.tk=b.getContext("2d"),e=!0),b=this.b.pg,d=this.b.tk,b.width!==this.b.n&&(b.width=this.b.n,e=!0),b.height!==this.b.m&&(b.height=this.b.m,e=!0),e&&this.b.Kg(d,this.b.ka),this.Pb&&d.clearRect(0,0,this.b.n,this.b.m));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Pb||(d.fillStyle="rgb("+this.Db[0]+","+this.Db[1]+","+this.Db[2]+")",d.fillRect(0,0,this.b.n,this.b.m));
d.save();this.sc=!0;var e=this.Tc(!0),c=this.Tc(!1);this.sc=!1;this.b.se&&(e=Math.round(e),c=Math.round(c));this.Hg(e,c,d);var g=this.Pa();d.scale(g,g);d.translate(-e,-c);this.ib?(this.za.left=this.Ca.Na(this.J),this.za.top=this.Ca.Oa(this.K),this.za.right=this.Ca.Na(this.O),this.za.bottom=this.Ca.Oa(this.N),this.Ob||!this.za.Re(this.le)?(u(this.Bc),e=this.Mh(),this.Ob=!1,this.le.Le(this.za)):e=this.Bc):e=this.d;for(var l,m=null,c=0,g=e.length;c<g;++c)l=e[c],l!==m&&(this.jn(l,d),m=l);this.ib&&(this.Bc=
e);d.restore();this.ic&&(a.globalCompositeOperation=this.Ke,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};p.prototype.jn=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var d=a.ya;d.right<this.J||d.bottom<this.K||d.left>this.O||d.top>this.N||(b.globalCompositeOperation=a.Ke,a.tc(b))}};p.prototype.Xg=function(){this.sc=!0;var a=this.Tc(!0),b=this.Tc(!1);this.sc=!1;this.b.se&&(a=Math.round(a),b=Math.round(b));this.Hg(a,b,null)};p.prototype.Hg=function(a,b,d){var e=this.Pa();this.J=a;
this.K=b;this.O=a+1/e*this.b.n;this.N=b+1/e*this.b.m;this.J>this.O&&(a=this.J,this.J=this.O,this.O=a);this.K>this.N&&(a=this.K,this.K=this.N,this.N=a);a=this.Ua();0!==a&&(d&&(d.translate(this.b.n/2,this.b.m/2),d.rotate(-a),d.translate(this.b.n/-2,this.b.m/-2)),this.Jc.set(this.J,this.K,this.O,this.N),this.Jc.offset((this.J+this.O)/-2,(this.K+this.N)/-2),this.Jl.ul(this.Jc,a),this.Jl.qj(this.Jc),this.Jc.offset((this.J+this.O)/2,(this.K+this.N)/2),this.J=this.Jc.left,this.K=this.Jc.top,this.O=this.Jc.right,
this.N=this.Jc.bottom)};p.prototype.Qe=function(a){if(this.ic=this.Xf){this.b.ja||(this.b.ja=a.bb(this.b.n,this.b.m,this.b.ka));if(this.b.ja.Yd!==this.b.n||this.b.ja.Xd!==this.b.m)a.deleteTexture(this.b.ja),this.b.ja=a.bb(this.b.n,this.b.m,this.b.ka);a.ub(this.b.ja)}this.sc=!0;var b=this.Tc(!0),d=this.Tc(!1);this.sc=!1;this.b.se&&(b=Math.round(b),d=Math.round(d));this.Hg(b,d,null);b=this.Pa();a.sb();a.scale(b,b);a.Ig(-this.Ua());a.translate((this.J+this.O)/-2,(this.K+this.N)/-2);a.hb();this.ib?(this.za.left=
this.Ca.Na(this.J),this.za.top=this.Ca.Oa(this.K),this.za.right=this.Ca.Na(this.O),this.za.bottom=this.Ca.Oa(this.N),this.Ob||!this.za.Re(this.le)?(u(this.Bc),b=this.Mh(),this.Ob=!1,this.le.Le(this.za)):b=this.Bc):b=this.d;for(var e,c=null,d=b.length-1;0<=d;--d)e=b[d],e!==c&&(this.ln(b[d],a),c=e);this.ib&&(this.Bc=b);this.Pb||(this.sh=this.b.od++,a.Lg(this.sh),a.pl(1,1,1),a.Kj(),a.vp())};p.prototype.Gb=function(a){var b=0,d=0;if(this.ic=this.Xf||1!==this.opacity||0<this.D.length||0!==this.Fa){this.b.ja||
(this.b.ja=a.bb(this.b.n,this.b.m,this.b.ka));if(this.b.ja.Yd!==this.b.n||this.b.ja.Xd!==this.b.m)a.deleteTexture(this.b.ja),this.b.ja=a.bb(this.b.n,this.b.m,this.b.ka);a.ub(this.b.ja);this.Pb&&a.clear(0,0,0,0)}this.Pb||(this.b.P?(a.Lg(this.sh),a.pl(this.Db[0]/255,this.Db[1]/255,this.Db[2]/255),a.Kj(),a.Hp()):a.clear(this.Db[0]/255,this.Db[1]/255,this.Db[2]/255,1));this.sc=!0;var e=this.Tc(!0),b=this.Tc(!1);this.sc=!1;this.b.se&&(e=Math.round(e),b=Math.round(b));this.Hg(e,b,null);e=this.Pa();a.sb();
a.scale(e,e);a.Ig(-this.Ua());a.translate((this.J+this.O)/-2,(this.K+this.N)/-2);a.hb();this.ib?(this.za.left=this.Ca.Na(this.J),this.za.top=this.Ca.Oa(this.K),this.za.right=this.Ca.Na(this.O),this.za.bottom=this.Ca.Oa(this.N),this.Ob||!this.za.Re(this.le)?(u(this.Bc),b=this.Mh(),this.Ob=!1,this.le.Le(this.za)):b=this.Bc):b=this.d;var c,g,l=null,d=0;for(c=b.length;d<c;++d)g=b[d],g!==l&&(this.kn(b[d],a),l=g);this.ib&&(this.Bc=b);this.ic&&(b=this.D.length?this.D[0].ga:0,d=this.D.length?this.D[0].index:
0,0===this.D.length||1===this.D.length&&!a.xi(b)&&1===this.opacity?(1===this.D.length?(a.Ra(b),a.ye(this.ra.We(),1/this.b.n,1/this.b.m,0,0,1,1,e,this.Ua(),this.J,this.K,(this.J+this.O)/2,(this.K+this.N)/2,this.b.pb.Ma,this.Z[d]),a.Cg(b)&&(this.b.Q=!0)):a.Ra(0),a.ub(this.ra.We()),a.Af(this.opacity),a.wb(this.b.ja),a.fd(this.Ja,this.Ga),a.sb(),a.hb(),e=this.b.n/2,b=this.b.m/2,a.Ai(-e,b,e,b,e,-b,-e,-b),a.wb(null)):this.ra.Di(a,this,null,this.ra.We()))};p.prototype.kn=function(a,b){if(a.visible&&0!==
a.width&&0!==a.height){a.Da();var d=a.ya;d.right<this.J||d.bottom<this.K||d.left>this.O||d.top>this.N||(b.Lg(a.od),a.Sl?this.mn(a,b):(b.Ra(0),b.fd(a.Ja,a.Ga),a.Gb(b)))}};p.prototype.ln=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var d=a.ya;d.right<this.J||d.bottom<this.K||d.left>this.O||d.top>this.N||(a.od=this.b.od++,0===a.Fa&&1===a.opacity&&a.Fc&&a.Qe&&(b.Lg(a.od),a.Qe(b)))}};p.prototype.mn=function(a,b){var d=a.D[0].ga,e=a.D[0].index,c=this.Pa();if(1!==a.D.length||b.xi(d)||b.sp(d)||
(a.k||a.e.Ua())&&b.xf(d)||1!==a.opacity||a.type.ea.Pk)this.ra.Di(b,this,a,this.ic?this.b.ja:this.ra.We()),b.sb(),b.scale(c,c),b.Ig(-this.Ua()),b.translate((this.J+this.O)/-2,(this.K+this.N)/-2),b.hb();else{b.Ra(d);b.fd(a.Ja,a.Ga);b.Cg(d)&&(this.b.Q=!0);var g=0,l=0,m=0,v=0;b.xf(d)&&(v=a.ya,g=this.U(v.left,v.top,!0,!0),l=this.U(v.left,v.top,!1,!0),m=this.U(v.right,v.bottom,!0,!0),v=this.U(v.right,v.bottom,!1,!0),g=g/windowWidth,l=1-l/windowHeight,m=m/windowWidth,v=1-v/windowHeight);var q;a.Pe&&a.Pe.Ji?
(q=a.Pe.Ji,d=1/q.width,q=1/q.height):(d=1/a.width,q=1/a.height);b.ye(this.ic?this.b.ja:this.ra.We(),d,q,g,l,m,v,c,this.Ua(),this.J,this.K,(this.J+this.O)/2,(this.K+this.N)/2,this.b.pb.Ma,a.Z[e]);a.Gb(b)}};p.prototype.Tc=function(a){var b=0,d=0,e=this.b.devicePixelRatio;this.b.Bd&&(b*=e,d*=e);var e=this.b.$k,c=this.b.al,e=(this.ra.scrollX-e)*this.qe+e,c=(this.ra.scrollY-c)*this.re+c,g,l,m=1/this.Pa(!1);g=e-this.b.n*m/2;l=c-this.b.m*m/2;g+=b*m;l+=d*m;d=this.Ua();0!==d&&(g-=e,l-=c,b=Math.cos(d),d=Math.sin(d),
m=g*b-l*d,l=l*b+g*d,g=m+e,l+=c);return a?g:l};p.prototype.U=function(a,b,d,e){var c=this.b.$k,g=this.b.al,l=(this.ra.scrollX-c)*this.qe+c,m=(this.ra.scrollY-g)*this.re+g,g=l,c=m,v=this.Ua();if(0!==v){a-=l;b-=m;var q=Math.cos(-v),v=Math.sin(-v),n=a*q-b*v;b=b*q+a*v;a=n+l;b+=m}l=1/this.Pa(!e);e?(g-=this.b.n*l/2,c-=this.b.m*l/2):(g-=this.b.width*l/2,c-=this.b.height*l/2);g=(a-g)/l;c=(b-c)/l;a=this.b.devicePixelRatio;this.b.Bd&&!e&&(g/=a,c/=a);return d?g:c};p.prototype.tb=function(){var a,b,d,e={s:this.scale,
a:this.k,vl:this.J,vt:this.K,vr:this.O,vb:this.N,v:this.visible,bc:this.Db,t:this.Pb,px:this.qe,py:this.re,o:this.opacity,zr:this.Wi,fx:[],cg:this.Ne,instances:[]};a=0;for(b=this.p.length;a<b;a++)d=this.p[a],e.fx.push({name:d.name,active:d.$a,params:this.Z[d.index]});return e};p.prototype.ec=function(a){var b,d,e;this.scale=a.s;this.k=a.a;this.J=a.vl;this.K=a.vt;this.O=a.vr;this.N=a.vb;this.visible=a.v;this.Db=a.bc;this.Pb=a.t;this.qe=a.px;this.re=a.py;this.opacity=a.o;this.Wi=a.zr;this.Ne=a.cg||
[];ta(this.fb,this.Cl);var c=new ba;b=0;for(e=this.Ne.length;b<e;++b)c.add(this.Ne[b]);d=b=0;for(e=this.fb.length;b<e;++b)c.contains(this.fb[b][2])||(this.fb[d]=this.fb[b],++d);sa(this.fb,d);d=a.fx;b=0;for(e=d.length;b<e;b++)if(a=this.Jh(d[b].name))a.$a=d[b].active,this.Z[a.index]=d[b].params;this.Qb();this.d.sort(l);this.Qd=!0};Ib=p})();
(function(){function c(a,b){var d,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<e;d++)if(a[d]!==b[d])return!1;return!0}}function l(a,b){return a.index-b.index}function p(a){var b,d,e,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(l);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);f=x[a.length];b=0;for(d=f.length;b<d;b++)if(e=f[b],c(a,e))return e;f.push(a);return a}
function n(a,b){this.b=a;this.Ll={};this.Cj={};this.Qh=!1;this.Vj=new ba;this.xh=[];this.fh=[];this.name=b[0];var d=b[1];this.Wc=[];var e,f;e=0;for(f=d.length;e<f;e++)this.Xj(d[e],null,this.Wc)}function u(a){this.type=a;this.d=[];this.G=[];this.wa=!0}function q(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.W=[];this.gd=[];this.Uj=this.Ug=this.Li=this.Th=this.group=this.Bl=!1;this.oa=[];this.Cb=[];this.xb=[];this.Ze="";this.Ye=this.Th=this.group=!1;this.Nf=null;d[1]&&(this.Ze=d[1][1].toLowerCase(),
this.group=!0,this.Th=!!d[1][0],this.Nf=[],this.Ye=this.Th,this.b.Ud.push(this),this.b.bg[this.Ze]=this);this.gc=d[2];this.F=d[4];this.group||(this.b.pj[this.F.toString()]=this);var e=d[5];a=0;for(b=e.length;a<b;a++){var f=new Jb(this,e[a]);f.index=a;this.oa.push(f);this.ej(f.type)}e=d[6];a=0;for(b=e.length;a<b;a++)f=new Kb(this,e[a]),f.index=a,this.Cb.push(f);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Xj(d[a],this,this.xb);this.kg=!1;this.oa.length&&(this.kg=null==this.oa[0].type&&
this.oa[0].Aa==Z.prototype.A.am)}function g(a,b){var d,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.ob))for(d=0,e=a.Sa.length;d<e;d++)f=a.Sa[d],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.ab=a;this.sheet=a.sheet;this.b=a.b;this.u=[];this.aa=[];this.R={};this.index=-1;this.Ee=!1;this.Aa=this.b.Oc(b[1]);this.trigger=0<b[3];this.Bj=2===b[3];this.Wh=b[5];this.Uo=b[6];this.F=b[7];this.b.Uc[this.F.toString()]=this;-1===b[0]?(this.type=null,this.fa=this.Fi,this.kd=null,this.Eb=-1):(this.type=this.b.g[b[0]],
this.fa=this.Uo?this.Bp:this.Ei,b[2]?(this.kd=this.type.Zf(b[2]),this.Eb=this.type.Ih(b[2])):(this.kd=null,this.Eb=-1),this.ab.parent&&this.ab.parent.Mg());this.Bj&&(this.fa=this.Cp);if(10===b.length){var d,e,f=b[9];d=0;for(e=f.length;d<e;d++){var c=new Lb(this,f[d]);this.u.push(c)}this.aa.length=f.length}}function d(a,b){this.ab=a;this.sheet=a.sheet;this.b=a.b;this.u=[];this.aa=[];this.R={};this.index=-1;this.Ee=!1;this.Aa=this.b.Oc(b[1]);-1===b[0]?(this.type=null,this.fa=this.Fi,this.kd=null,this.Eb=
-1):(this.type=this.b.g[b[0]],this.fa=this.Ei,b[2]?(this.kd=this.type.Zf(b[2]),this.Eb=this.type.Ih(b[2])):(this.kd=null,this.Eb=-1));this.F=b[3];this.b.Qc[this.F.toString()]=this;if(6===b.length){var d,e,f=b[5];d=0;for(e=f.length;d<e;d++){var c=new Lb(this,f[d]);this.u.push(c)}this.aa.length=f.length}}function e(){R++;r.length===R&&r.push(new Mb);return r[R]}function a(a,b){this.rb=a;this.ab=a.ab;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Zb=null;this.Gc=0;this.get=null;this.uj=0;this.ra=
null;this.key=0;this.object=null;this.index=0;this.Hf=this.Md=this.Hf=this.Md=this.Fj=this.sd=this.If=null;this.Bb=!1;var d,e,f;switch(b[0]){case 0:case 7:this.Zb=new W(this,b[1]);this.Gc=0;this.get=this.vo;break;case 1:this.Zb=new W(this,b[1]);this.Gc=0;this.get=this.wo;break;case 5:this.Zb=new W(this,b[1]);this.Gc=0;this.get=this.Ao;break;case 3:case 8:this.uj=b[1];this.get=this.to;break;case 6:this.ra=this.b.ii[b[1]];this.get=this.Bo;break;case 9:this.key=b[1];this.get=this.zo;break;case 4:this.object=
this.b.g[b[1]];this.get=this.Co;this.ab.ej(this.object);this.rb instanceof Kb?this.ab.Mg():this.ab.parent&&this.ab.parent.Mg();break;case 10:this.index=b[1];a.type&&a.type.I?(this.get=this.xo,this.Bb=!0):this.get=this.yo;break;case 11:this.If=b[1];this.sd=null;this.get=this.uo;break;case 2:case 12:this.Fj=b[1];this.get=this.so;break;case 13:for(this.get=this.Do,this.Md=[],this.Hf=[],d=1,e=b.length;d<e;d++)f=new Lb(this.rb,b[d]),this.Md.push(f),this.Hf.push(0)}}function f(a,b,d){this.sheet=a;this.parent=
b;this.b=a.b;this.W=[];this.name=d[1];this.Sh=d[3];this.ff=!!d[4];this.jg=!!d[5];this.F=d[6];this.b.De[this.F.toString()]=this;this.data=this.Sh;this.parent?(this.Id=this.ff||this.jg?-1:this.b.Lp++,this.b.Dm.push(this)):(this.Id=-1,this.b.Cm.push(this))}function h(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.W=[];this.$e=null;this.Jo=d[1];this.$a=!0}function k(){this.Dl=[];this.reset(null)}var x=[];n.prototype.toString=function(){return this.name};n.prototype.Xj=function(a,b,d){switch(a[0]){case 0:a=
new Nb(this,b,a);if(a.gc)for(d.push(a),d=0,b=a.oa.length;d<b;d++)a.oa[d].trigger&&this.Yj(a,d);else a.hk()?this.Yj(a,0):d.push(a);break;case 1:a=new Fb(this,b,a);d.push(a);break;case 2:a=new Ob(this,b,a),d.push(a)}};n.prototype.ca=function(){var a,b;a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].ca(a<b-1&&this.Wc[a+1].kg)};n.prototype.Qi=function(){U(this.xh);U(this.fh);this.dj(this);U(this.fh)};n.prototype.dj=function(a){var b,d,e,f,c=a.xh,k=a.fh,g=this.Vj.Pd();b=0;for(d=g.length;b<d;++b)e=g[b],f=e.$e,
!e.$a||a===f||-1<k.indexOf(f)||(k.push(f),f.dj(a),c.push(f))};n.prototype.fa=function(a){this.b.rr||(this.Qh=!0,a||(this.b.ai=!0));var b,d;b=0;for(d=this.Wc.length;b<d;b++){var e=this.Wc[b];e.fa();this.b.rh(e.W);this.b.Yc&&this.b.Ea()}a||(this.b.ai=!1)};n.prototype.Yj=function(a,b){a.gc||this.b.Vg.push(a);var d,e,f=a.oa[b],c;f.type?c=f.type.name:c="system";var k=(d=f.Bj)?this.Cj:this.Ll;k[c]||(k[c]=[]);c=k[c];k=f.Aa;if(d){if(f.u.length&&(f=f.u[0],1===f.type&&2===f.Zb.type)){f=f.Zb.value.toLowerCase();
d=0;for(e=c.length;d<e;d++)if(c[d].method==k){d=c[d].Te;d[f]?d[f].push([a,b]):d[f]=[[a,b]];return}d={};d[f]=[[a,b]];c.push({method:k,Te:d})}}else{d=0;for(e=c.length;d<e;d++)if(c[d].method==k){c[d].Te.push([a,b]);return}Qb.vm&&k===Qb.vm.prototype.A.Fq?c.unshift({method:k,Te:[[a,b]]}):c.push({method:k,Te:[[a,b]]})}};vb=n;u.prototype.Sj=function(){return this.wa?this.type.d.length:this.d.length};u.prototype.Hb=function(){return this.wa?this.type.d:this.d};u.prototype.wf=function(a){a&&(a.b.Va().Xb.gc?
(this.wa&&(U(this.d),ta(this.G,a.type.d),this.wa=!1),a=this.G.indexOf(a),-1!==a&&(this.d.push(this.G[a]),this.G.splice(a,1))):(this.wa=!1,U(this.d),this.d[0]=a))};eb=u;window._c2hh_="48D8660A94C7358B18BAB0ABA6D6B7E1469F49BF";q.prototype.ca=function(a){var b,d=this.parent;if(this.group)for(this.Ug=!0;d;){if(!d.group){this.Ug=!1;break}d=d.parent}this.Li=!this.hk()&&(!this.parent||this.parent.group&&this.parent.Ug);this.Uj=!!a;this.gd=this.W.slice(0);for(d=this.parent;d;){a=0;for(b=d.W.length;a<b;a++)this.Bm(d.W[a]);
d=d.parent}this.W=p(this.W);this.gd=p(this.gd);a=0;for(b=this.oa.length;a<b;a++)this.oa[a].ca();a=0;for(b=this.Cb.length;a<b;a++)this.Cb[a].ca();a=0;for(b=this.xb.length;a<b;a++)this.xb[a].ca(a<b-1&&this.xb[a+1].kg)};q.prototype.Fp=function(a){if(this.Ye!==!!a){this.Ye=!!a;var b;a=0;for(b=this.Nf.length;a<b;++a)this.Nf[a].Ql();0<b&&this.b.L.rd&&this.b.L.rd.Qi()}};q.prototype.ej=function(a){g(a,this.W)};q.prototype.Bm=function(a){g(a,this.gd)};q.prototype.Mg=function(){this.Bl=!0;this.parent&&this.parent.Mg()};
q.prototype.hk=function(){return this.oa.length?this.oa[0].trigger:!1};q.prototype.fa=function(){var a,b,d=!1,e=this.b,f=this.b.Va();f.Xb=this;var c=this.oa;this.kg||(f.yh=!1);if(this.gc){0===c.length&&(d=!0);f.na=0;for(a=c.length;f.na<a;f.na++)b=c[f.na],b.trigger||(b=b.fa())&&(d=!0);(f.Ed=d)&&this.Jg()}else{f.na=0;for(a=c.length;f.na<a;f.na++)if(b=c[f.na].fa(),!b){f.Ed=!1;this.Li&&e.Yc&&e.Ea();return}f.Ed=!0;this.Jg()}this.sn(f)};q.prototype.sn=function(a){a.Ed&&this.Uj&&(a.yh=!0);this.Li&&this.b.Yc&&
this.b.Ea()};q.prototype.zp=function(a){this.b.Va().Xb=this;this.oa[a].fa()&&(this.Jg(),this.b.Va().Ed=!0)};q.prototype.Jg=function(){var a=this.b.Va(),b;a.kb=0;for(b=this.Cb.length;a.kb<b;a.kb++)if(this.Cb[a.kb].fa())return;this.kl()};q.prototype.wp=function(){var a=this.b.Va(),b;for(b=this.Cb.length;a.kb<b;a.kb++)if(this.Cb[a.kb].fa())return;this.kl()};q.prototype.kl=function(){if(this.xb.length){var a,b,d,e,f=this.xb.length-1;this.b.Fg(this);if(this.Bl)for(a=0,b=this.xb.length;a<b;a++)d=this.xb[a],
(e=!this.Ug||!this.group&&a<f)&&this.b.Eg(d.W),d.fa(),e?this.b.Ld(d.W):this.b.rh(d.W);else for(a=0,b=this.xb.length;a<b;a++)this.xb[a].fa();this.b.Bg()}};q.prototype.Ap=function(){var a=this.b.Va();a.Xb=this;var b=!1,d;a.na=0;for(d=this.oa.length;a.na<d;a.na++)if(this.oa[a.na].fa())b=!0;else if(!this.gc)return!1;return this.gc?b:!0};q.prototype.xp=function(){this.b.Ue++;var a=this.b.Va().na,b=this.b.Fg(this);if(!this.gc)for(b.na=a+1,a=this.oa.length;b.na<a;b.na++)if(!this.oa[b.na].fa()){this.b.Bg();
return}this.Jg();this.b.Bg()};q.prototype.Qo=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.oa[b].type===a.type)return!1;return!0};Nb=q;b.prototype.ca=function(){var a,b,d;a=0;for(b=this.u.length;a<b;a++)d=this.u[a],d.ca(),d.Bb&&(this.Ee=!0)};b.prototype.Cp=function(){return!0};b.prototype.Fi=function(){var a,b;a=0;for(b=this.u.length;a<b;a++)this.aa[a]=this.u[a].get();return Ka(this.Aa.apply(this.b.kc,this.aa),this.Wh)};b.prototype.Bp=function(){var a,b;a=0;for(b=this.u.length;a<
b;a++)this.aa[a]=this.u[a].get();a=this.Aa.apply(this.kd?this.kd:this.type,this.aa);this.type.Vd();return a};b.prototype.Ei=function(){var a,b,d,e,f,c,k,g,h=this.type,l=h.T(),r=this.ab.gc&&!this.trigger;b=0;var q=h.ob,n=h.I,p=h.vc,u=this.Eb,x=-1<u,R=this.Ee,H=this.u,D=this.aa,J=this.Wh,P=this.Aa,E;if(R)for(b=0,f=H.length;b<f;++b)c=H[b],c.Bb||(D[b]=c.get(0));else for(b=0,f=H.length;b<f;++b)D[b]=H[b].get(0);if(l.wa){U(l.d);U(l.G);E=h.d;a=0;for(e=E.length;a<e;++a){g=E[a];if(R)for(b=0,f=H.length;b<f;++b)c=
H[b],c.Bb&&(D[b]=c.get(a));x?(b=0,n&&(b=g.type.be[p]),b=P.apply(g.C[u+b],D)):b=P.apply(g,D);(k=Ka(b,J))?l.d.push(g):r&&l.G.push(g)}h.finish&&h.finish(!0);l.wa=!1;h.Vd();return l.Sj()}d=0;E=(k=r&&!this.ab.Qo(this))?l.G:l.d;var B=!1;a=0;for(e=E.length;a<e;++a){g=E[a];if(R)for(b=0,f=H.length;b<f;++b)c=H[b],c.Bb&&(D[b]=c.get(a));x?(b=0,n&&(b=g.type.be[p]),b=P.apply(g.C[u+b],D)):b=P.apply(g,D);if(Ka(b,J))if(B=!0,k){if(l.d.push(g),q)for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.T().d.push(c)}else{E[d]=
g;if(q)for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.T().d[d]=c;d++}else if(k){E[d]=g;if(q)for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.T().G[d]=c;d++}else if(r&&(l.G.push(g),q))for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.T().G.push(c)}sa(E,d);if(q)for(n=h.Sa,a=0,e=n.length;a<e;a++)g=n[a].T(),k?sa(g.G,d):sa(g.d,d);d=B;if(k&&!B)for(a=0,e=l.d.length;a<e;a++){g=l.d[a];if(R)for(b=0,f=H.length;b<f;b++)c=H[b],c.Bb&&(D[b]=c.get(a));b=x?P.apply(g.C[u],D):P.apply(g,
D);if(Ka(b,J)){B=!0;break}}h.finish&&h.finish(d||r);return r?B:l.Sj()};Jb=b;d.prototype.ca=function(){var a,b,d;a=0;for(b=this.u.length;a<b;a++)d=this.u[a],d.ca(),d.Bb&&(this.Ee=!0)};d.prototype.Fi=function(){var a=this.b,b,d,e=this.u,f=this.aa;b=0;for(d=e.length;b<d;++b)f[b]=e[b].get();return this.Aa.apply(a.kc,f)};d.prototype.Ei=function(){var a=this.type,b=this.Eb,d=a.vc,e=this.Ee,f=this.u,c=this.aa,k=this.Aa,g=a.T().Hb(),a=a.I,l=-1<b,h,r,q,n,p,u;if(e)for(r=0,n=f.length;r<n;++r)p=f[r],p.Bb||(c[r]=
p.get(0));else for(r=0,n=f.length;r<n;++r)c[r]=f[r].get(0);h=0;for(q=g.length;h<q;++h){u=g[h];if(e)for(r=0,n=f.length;r<n;++r)p=f[r],p.Bb&&(c[r]=p.get(h));l?(r=0,a&&(r=u.type.be[d]),k.apply(u.C[b+r],c)):k.apply(u,c)}return!1};Kb=d;var r=[],R=-1;a.prototype.ca=function(){var a,b;if(11===this.type)this.sd=this.b.Nj(this.If,this.ab.parent);else if(13===this.type)for(a=0,b=this.Md.length;a<b;a++)this.Md[a].ca();this.Zb&&this.Zb.ca()};a.prototype.Yo=function(a){this.Bb||!a||a.ea.Og||(this.Bb=!0)};a.prototype.sl=
function(){this.Bb=!0};a.prototype.vo=function(a){this.Gc=a||0;a=e();this.Zb.get(a);R--;return a.data};a.prototype.wo=function(a){this.Gc=a||0;a=e();this.Zb.get(a);R--;return O(a.data)?a.data:""};a.prototype.Co=function(){return this.object};a.prototype.to=function(){return this.uj};a.prototype.Ao=function(a){this.Gc=a||0;a=e();this.Zb.get(a);R--;return a.qa()?this.b.lo(a.data):this.b.ko(a.data)};a.prototype.Bo=function(){return this.ra};a.prototype.zo=function(){return this.key};a.prototype.yo=function(){return this.index};
a.prototype.xo=function(a){a=a||0;var b=this.rb.type,d=null,d=b.T(),e=d.Hb();if(e.length)d=e[a%e.length].type;else if(d.G.length)d=d.G[a%d.G.length].type;else if(b.d.length)d=b.d[a%b.d.length].type;else return 0;return this.index+d.Tf[b.vc]};a.prototype.uo=function(){return this.sd};a.prototype.so=function(){return this.Fj};a.prototype.Do=function(){var a,b;a=0;for(b=this.Md.length;a<b;a++)this.Hf[a]=this.Md[a].get();return this.Hf};Lb=a;f.prototype.ca=function(){this.W=p(this.W)};f.prototype.Ip=
function(a){var b=this.b.Mj();this.parent&&!this.ff&&b?(this.Id>=b.length&&(b.length=this.Id+1),b[this.Id]=a):this.data=a};f.prototype.ro=function(){var a=this.b.Mj();return!this.parent||this.ff||!a||this.jg?this.data:this.Id>=a.length||"undefined"===typeof a[this.Id]?this.Sh:a[this.Id]};f.prototype.fa=function(){!this.parent||this.ff||this.jg||this.Ip(this.Sh)};Fb=f;h.prototype.toString=function(){return"include:"+this.$e.toString()};h.prototype.ca=function(){this.$e=this.b.Ah[this.Jo];this.sheet.Vj.add(this);
this.W=p(this.W);for(var a=this.parent;a;)a.group&&a.Nf.push(this),a=a.parent;this.Ql()};h.prototype.fa=function(){this.parent&&this.b.zf(this.b.g);this.$e.Qh||this.$e.fa(!0);this.parent&&this.b.Ld(this.b.g)};h.prototype.Ql=function(){for(var a=this.parent;a;){if(a.group&&!a.Ye){this.$a=!1;return}a=a.parent}this.$a=!0};Ob=h;k.prototype.reset=function(a){this.Xb=a;this.kb=this.na=0;U(this.Dl);this.yh=this.Ed=!1};Eb=k})();
(function(){function c(c,b){this.rb=c;this.b=c.b;this.type=b[0];this.get=[this.Kn,this.Gn,this.Tn,this.Wn,this.vn,this.Un,this.On,this.Dn,this.Nn,this.Sn,this.wn,this.Rn,this.En,this.Pn,this.Ln,this.Mn,this.Hn,this.In,this.Cn,this.Vn,this.Qn,this.Jn,this.Bn,this.Fn][this.type];var d=null;this.Cc=this.u=this.aa=this.Aa=this.Tg=this.second=this.first=this.value=null;this.Eb=-1;this.Ib=null;this.Tl=-1;this.sd=this.If=null;this.xe=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new W(c,b[1]);break;case 18:this.first=new W(c,b[1]);this.second=new W(c,b[2]);this.Tg=new W(c,b[3]);break;case 19:this.Aa=this.b.Oc(b[1]);this.Aa!==Z.prototype.mb.random&&this.Aa!==Z.prototype.mb.Mm||this.rb.sl();this.aa=[];this.u=[];3===b.length?(d=b[2],this.aa.length=d.length+1):this.aa.length=1;break;case 20:this.Cc=this.b.g[b[1]];this.Eb=-1;this.Aa=this.b.Oc(b[2]);this.xe=b[3];Qb.Function&&this.Aa===Qb.Function.prototype.mb.jq&&this.rb.sl();b[4]?this.Ib=new W(c,b[4]):this.Ib=null;this.aa=[];
this.u=[];6===b.length?(d=b[5],this.aa.length=d.length+1):this.aa.length=1;break;case 21:this.Cc=this.b.g[b[1]];this.xe=b[2];b[3]?this.Ib=new W(c,b[3]):this.Ib=null;this.Tl=b[4];break;case 22:this.Cc=this.b.g[b[1]];this.Cc.Zf(b[2]);this.Eb=this.Cc.Ih(b[2]);this.Aa=this.b.Oc(b[3]);this.xe=b[4];b[5]?this.Ib=new W(c,b[5]):this.Ib=null;this.aa=[];this.u=[];7===b.length?(d=b[6],this.aa.length=d.length+1):this.aa.length=1;break;case 23:this.If=b[1],this.sd=null}this.rb.Yo(this.Cc);4<=this.type&&17>=this.type&&
(this.first=new W(c,b[1]),this.second=new W(c,b[2]));if(d){var e,a;e=0;for(a=d.length;e<a;e++)this.u.push(new W(c,d[e]))}}function l(){++q;u.length===q&&u.push(new Mb);return u[q]}function p(c,b,d){var e,a;e=0;for(a=c.length;e<a;++e)c[e].get(d),b[e+1]=d.data}function n(c,b){this.type=c||X.Td;this.data=b||0;this.Kd=null;this.type==X.Td&&(this.data=Math.floor(this.data))}c.prototype.ca=function(){23===this.type&&(this.sd=this.rb.b.Nj(this.If,this.rb.ab.parent));this.first&&this.first.ca();this.second&&
this.second.ca();this.Tg&&this.Tg.ca();this.Ib&&this.Ib.ca();if(this.u){var c,b;c=0;for(b=this.u.length;c<b;c++)this.u[c].ca()}};var u=[],q=-1;c.prototype.Vn=function(c){var b=this.u,d=this.aa;d[0]=c;c=l();p(b,d,c);--q;this.Aa.apply(this.b.kc,d)};c.prototype.Qn=function(c){var b=this.Cc,d=this.aa,e=this.u,a=this.Ib,f=this.Aa,h=this.rb.Gc,k=b.T(),n=k.Hb();if(!n.length)if(k.G.length)n=k.G;else{this.xe?c.Ka(""):c.M(0);return}d[0]=c;c.Kd=b;c=l();p(e,d,c);a&&(a.get(c),c.qa()&&(h=c.data,n=b.d));--q;b=n.length;
if(h>=b||h<=-b)h%=b;0>h&&(h+=b);f.apply(n[h],d)};c.prototype.Bn=function(c){var b=this.Cc,d=this.aa,e=this.u,a=this.Ib,f=this.Eb,h=this.Aa,k=this.rb.Gc,n=b.T(),r=n.Hb();if(!r.length)if(n.G.length)r=n.G;else{this.xe?c.Ka(""):c.M(0);return}d[0]=c;c.Kd=b;c=l();p(e,d,c);a&&(a.get(c),c.qa()&&(k=c.data,r=b.d));--q;e=r.length;if(k>=e||k<=-e)k%=e;0>k&&(k+=e);k=r[k];r=0;b.I&&(r=k.type.be[b.vc]);h.apply(k.C[f+r],d)};c.prototype.Jn=function(c){var b=this.Ib,d=this.Cc,e=this.Tl,a=this.rb.Gc,f=d.T(),h=f.Hb();
if(!h.length)if(f.G.length)h=f.G;else{this.xe?c.Ka(""):c.M(0);return}if(b){f=l();b.get(f);if(f.qa()){a=f.data;h=d.d;0!==h.length&&(a%=h.length,0>a&&(a+=h.length));a=d.Lh(a);d=a.ia[e];O(d)?c.Ka(d):c.B(d);--q;return}--q}b=h.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=h[a];h=0;d.I&&(h=a.type.Tf[d.vc]);d=a.ia[e+h];O(d)?c.Ka(d):c.B(d)};c.prototype.Kn=function(c){c.type=X.Td;c.data=this.value};c.prototype.Gn=function(c){c.type=X.Sd;c.data=this.value};c.prototype.Tn=function(c){c.type=X.String;c.data=this.value};
c.prototype.Wn=function(c){this.first.get(c);c.qa()&&(c.data=-c.data)};c.prototype.vn=function(c){this.first.get(c);var b=l();this.second.get(b);c.qa()&&b.qa()&&(c.data+=b.data,b.ge()&&c.oe());--q};c.prototype.Un=function(c){this.first.get(c);var b=l();this.second.get(b);c.qa()&&b.qa()&&(c.data-=b.data,b.ge()&&c.oe());--q};c.prototype.On=function(c){this.first.get(c);var b=l();this.second.get(b);c.qa()&&b.qa()&&(c.data*=b.data,b.ge()&&c.oe());--q};c.prototype.Dn=function(c){this.first.get(c);var b=
l();this.second.get(b);c.qa()&&b.qa()&&(c.data/=b.data,c.oe());--q};c.prototype.Nn=function(c){this.first.get(c);var b=l();this.second.get(b);c.qa()&&b.qa()&&(c.data%=b.data,b.ge()&&c.oe());--q};c.prototype.Sn=function(c){this.first.get(c);var b=l();this.second.get(b);c.qa()&&b.qa()&&(c.data=Math.pow(c.data,b.data),b.ge()&&c.oe());--q};c.prototype.wn=function(c){this.first.get(c);var b=l();this.second.get(b);b.ie()||c.ie()?this.yn(c,b):this.xn(c,b);--q};c.prototype.yn=function(c,b){c.ie()&&b.ie()?
this.An(c,b):this.zn(c,b)};c.prototype.An=function(c,b){c.data+=b.data};c.prototype.zn=function(c,b){c.ie()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Ka(c.data.toString()+b.data)};c.prototype.xn=function(c,b){c.M(c.data&&b.data?1:0)};c.prototype.Rn=function(c){this.first.get(c);var b=l();this.second.get(b);c.qa()&&b.qa()&&(c.data||b.data?c.M(1):c.M(0));--q};c.prototype.Cn=function(c){this.first.get(c);c.data?this.second.get(c):this.Tg.get(c)};c.prototype.En=function(c){this.first.get(c);
var b=l();this.second.get(b);c.M(c.data===b.data?1:0);--q};c.prototype.Pn=function(c){this.first.get(c);var b=l();this.second.get(b);c.M(c.data!==b.data?1:0);--q};c.prototype.Ln=function(c){this.first.get(c);var b=l();this.second.get(b);c.M(c.data<b.data?1:0);--q};c.prototype.Mn=function(c){this.first.get(c);var b=l();this.second.get(b);c.M(c.data<=b.data?1:0);--q};c.prototype.Hn=function(c){this.first.get(c);var b=l();this.second.get(b);c.M(c.data>b.data?1:0);--q};c.prototype.In=function(c){this.first.get(c);
var b=l();this.second.get(b);c.M(c.data>=b.data?1:0);--q};c.prototype.Fn=function(c){var b=this.sd.ro();ha(b)?c.B(b):c.Ka(b)};W=c;n.prototype.ge=function(){return this.type===X.Sd};n.prototype.qa=function(){return this.type===X.Td||this.type===X.Sd};n.prototype.ie=function(){return this.type===X.String};n.prototype.oe=function(){this.ge()||(this.ie()&&(this.data=parseFloat(this.data)),this.type=X.Sd)};n.prototype.M=function(c){this.type=X.Td;this.data=Math.floor(c)};n.prototype.B=function(c){this.type=
X.Sd;this.data=c};n.prototype.Ka=function(c){this.type=X.String;this.data=c};n.prototype.tl=function(c){ha(c)?(this.type=X.Sd,this.data=c):O(c)?(this.type=X.String,this.data=c.toString()):(this.type=X.Td,this.data=0)};Mb=n;X={Td:0,Sd:1,String:2}})();function Z(c){this.b=c;this.Za=[]}
Z.prototype.tb=function(){var c={},l,p,n,u,q,g,b,d;c.waits=[];var e=c.waits,a;l=0;for(p=this.Za.length;l<p;l++){g=this.Za[l];a={t:g.time,st:g.Kp,s:g.yl,ev:g.Se.F,sm:[],sols:{}};g.Se.Cb[g.kb]&&(a.act=g.Se.Cb[g.kb].F);n=0;for(u=g.W.length;n<u;n++)a.sm.push(g.W[n].F);for(q in g.Ya)if(g.Ya.hasOwnProperty(q)){b=this.b.g[parseInt(q,10)];d={sa:g.Ya[q].ll,insts:[]};n=0;for(u=g.Ya[q].xd.length;n<u;n++)d.insts.push(g.Ya[q].xd[n].uid);a.sols[b.F.toString()]=d}e.push(a)}return c};
Z.prototype.ec=function(c){c=c.waits;var l,p,n,u,q,g,b,d,e,a,f;U(this.Za);l=0;for(p=c.length;l<p;l++)if(g=c[l],d=this.b.pj[g.ev.toString()]){e=-1;n=0;for(u=d.Cb.length;n<u;n++)if(d.Cb[n].F===g.act){e=n;break}if(-1!==e){b={Ya:{},W:[],xj:!1};b.time=g.t;b.Kp=g.st||"";b.yl=!!g.s;b.Se=d;b.kb=e;n=0;for(u=g.sm.length;n<u;n++)(d=this.b.ag(g.sm[n]))&&b.W.push(d);for(q in g.sols)if(g.sols.hasOwnProperty(q)&&(d=this.b.ag(parseInt(q,10)))){e=g.sols[q];a={ll:e.sa,xd:[]};n=0;for(u=e.insts.length;n<u;n++)(f=this.b.Rj(e.insts[n]))&&
a.xd.push(f);b.Ya[d.index.toString()]=a}this.Za.push(b)}}};
(function(){function c(){}function l(){}var p=Z.prototype;c.prototype.om=function(){return!0};c.prototype.nm=function(){return!0};c.prototype.am=function(){var c=this.b.Va();return c.yh?!1:!c.Ed};c.prototype.$i=function(){return!0};c.prototype.km=function(){return!0};c.prototype.dh=function(){return!0};c.prototype.bj=function(){return!0};c.prototype.pm=function(){return!0};c.prototype.bh=function(){return!0};c.prototype.Wl=function(c,g,b){return Ga(V(c),V(b))<=V(g)};c.prototype.em=function(c,g){return Ia(V(c),
V(g))};c.prototype.dm=function(c,g,b){c=Ea(c);g=Ea(g);b=Ea(b);return Ia(b,g)?Ia(c,g)&&!Ia(c,b):!(!Ia(c,g)&&Ia(c,b))};p.A=new c;var n=[],u=[];p.Sb=new function(){};l.prototype["int"]=function(c,g){O(g)?(c.M(parseInt(g,10)),isNaN(c.data)&&(c.data=0)):c.M(g)};l.prototype["float"]=function(c,g){O(g)?(c.B(parseFloat(g)),isNaN(c.data)&&(c.data=0)):c.B(g)};l.prototype.random=function(c,g,b){void 0===b?c.B(Math.random()*g):c.B(Math.random()*(b-g)+g)};l.prototype.sqrt=function(c,g){c.B(Math.sqrt(g))};l.prototype.abs=
function(c,g){c.B(Math.abs(g))};l.prototype.round=function(c,g){c.M(Math.round(g))};l.prototype.floor=function(c,g){c.M(Math.floor(g))};l.prototype.ceil=function(c,g){c.M(Math.ceil(g))};l.prototype.sin=function(c,g){c.B(Math.sin(V(g)))};l.prototype.cos=function(c,g){c.B(Math.cos(V(g)))};l.prototype.tan=function(c,g){c.B(Math.tan(V(g)))};l.prototype.asin=function(c,g){c.B(Aa(Math.asin(g)))};l.prototype.acos=function(c,g){c.B(Aa(Math.acos(g)))};l.prototype.atan=function(c,g){c.B(Aa(Math.atan(g)))};
l.prototype.exp=function(c,g){c.B(Math.exp(g))};l.prototype.log10=function(c,g){c.B(Math.log(g)/Math.LN10)};l.prototype.max=function(c){var g=arguments[1];"number"!==typeof g&&(g=0);var b,d,e;b=2;for(d=arguments.length;b<d;b++)e=arguments[b],"number"===typeof e&&g<e&&(g=e);c.B(g)};l.prototype.min=function(c){var g=arguments[1];"number"!==typeof g&&(g=0);var b,d,e;b=2;for(d=arguments.length;b<d;b++)e=arguments[b],"number"===typeof e&&g>e&&(g=e);c.B(g)};l.prototype.$d=function(c){c.B(this.b.$d)};l.prototype.Gf=
function(c){c.B(this.b.Gf)};l.prototype.time=function(c){c.B(this.b.pb.Ma)};l.prototype.Ic=function(c){c.M(this.b.Ic)};l.prototype.Ag=function(c){c.M(this.b.Ag)};l.prototype.Fh=function(c){c.M(this.b.Fh)};l.prototype.k=function(c,g,b,d,e){c.B(Aa(Fa(g,b,d,e)))};l.prototype.left=function(c,g,b){c.Ka(O(g)?g.substr(0,b):"")};l.prototype.right=function(c,g,b){c.Ka(O(g)?g.substr(g.length-b):"")};l.prototype.replace=function(c,g,b,d){O(g)&&O(b)&&O(d)?c.Ka(g.replace(new RegExp(Ua(b),"gi"),d)):c.Ka(O(g)?g:
"")};l.prototype.trim=function(c,g){c.Ka(O(g)?g.trim():"")};l.prototype.Mm=function(c){var g=Q(Math.random()*(arguments.length-1));c.tl(arguments[g+1])};l.prototype.uh=function(c){c.B(this.b.uh/1E3)};l.prototype.tg=function(c){c.B(this.b.tg)};p.mb=new l;p.yp=function(){var c,g,b,d,e,a,f=this.b.Va();c=0;for(b=this.Za.length;c<b;c++){d=this.Za[c];if(-1===d.time){if(!d.yl)continue}else if(d.time>this.b.pb.Ma)continue;f.Xb=d.Se;f.kb=d.kb;f.na=0;for(g in d.Ya)d.Ya.hasOwnProperty(g)&&(e=this.b.g[parseInt(g,
10)].T(),a=d.Ya[g],e.wa=a.ll,ta(e.d,a.xd),e=a,U(e.xd),u.push(e));d.Se.wp();this.b.rh(d.W);d.xj=!0}g=c=0;for(b=this.Za.length;c<b;c++)d=this.Za[c],this.Za[g]=d,d.xj?(Oa(d.Ya),U(d.W),n.push(d)):g++;sa(this.Za,g)}})();
(function(){db=function(c,p){var n=c[1],u=c[3],q=c[4],g=c[5],b=c[6],d=c[7],e=c[8];p.A||(p.A={});p.Sb||(p.Sb={});p.mb||(p.mb={});var a=p.A,f=p.Sb,h=p.mb;u&&(a.$l=function(a,b){return Pb(this.x,a,b)},a.oq=function(a,b){return Pb(this.y,a,b)},a.uq=function(){var a=this.e;this.Da();var b=this.ya;return!(b.right<a.J||b.bottom<a.K||b.left>a.O||b.top>a.N)},a.vq=function(){this.Da();var a=this.ya,b=this.b.L;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Iq=function(a,b,d){var e=this.T(),
c=e.Hb();if(!c.length)return!1;var f=c[0],h=f,g=Ja(f.x,f.y,b,d),l,n,p;l=1;for(n=c.length;l<n;l++)if(f=c[l],p=Ja(f.x,f.y,b,d),0===a&&p<g||1===a&&p>g)g=p,h=f;e.wf(h);return!0},f.um=function(a){this.x!==a&&(this.x=a,this.xa())},f.$q=function(a){this.y!==a&&(this.y=a,this.xa())},f.Xq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.xa()},f.Yq=function(a,b){var d=a.no(this);if(d){var c;d.Oj?(c=d.Oj(b,!0),d=d.Oj(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.xa()}},
f.Aq=function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.xa())},f.zq=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.xa())},h.dr=function(a){a.B(this.x)},h.er=function(a){a.B(this.y)},h.$d=function(a){a.B(this.b.fo(this))});q&&(a.nq=function(a,b){return Pb(this.width,a,b)},a.kq=function(a,b){return Pb(this.height,a,b)},f.tm=function(a){this.width!==a&&(this.width=a,this.xa())},f.Uq=function(a){this.height!==a&&(this.height=a,this.xa())},f.qm=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.xa()},h.ym=function(a){a.B(this.width)},h.cm=function(a){a.B(this.height)},h.gq=function(a){this.Da();a.B(this.ya.left)},h.iq=function(a){this.Da();a.B(this.ya.top)},h.hq=function(a){this.Da();a.B(this.ya.right)},h.fq=function(a){this.Da();a.B(this.ya.bottom)});g&&(a.Wl=function(a,b){return Ga(this.k,V(b))<=V(a)},a.em=function(a){return Ia(this.k,V(a))},a.dm=function(a,b){var d=Ea(a),c=Ea(b),e=Ca(this.k);return Ia(c,
d)?Ia(e,d)&&!Ia(e,c):!(!Ia(e,d)&&Ia(e,c))},f.Qq=function(a){a=V(Ba(a));isNaN(a)||this.k===a||(this.k=a,this.xa())},f.Mq=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=Ca(this.k),this.xa())},f.Nq=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=Ca(this.k),this.xa())},f.Oq=function(a,b){var d=Ha(this.k,V(b),V(a));isNaN(d)||this.k===d||(this.k=d,this.xa())},f.Pq=function(a,b,d){a=Ha(this.k,Math.atan2(d-this.y,b-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.xa())},f.Zq=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.k===d||(this.k=d,this.xa())},h.dq=function(a){a.B(Da(this.k))});n||(a.lq=function(a,b,d){return Pb(this.ia[a],b,d)},a.sq=function(a){return this.ia[a]},a.Jq=function(a,b){var d=this.T(),c=d.Hb();if(!c.length)return!1;var e=c[0],f=e,g=e.ia[b],h,l,n;h=1;for(l=c.length;h<l;h++)if(e=c[h],n=e.ia[b],0===a&&n<g||1===a&&n>g)g=n,f=e;d.wf(f);return!0},a.Hq=function(a){var b,d,c,e,f;if(this.b.eo().Wh){f=this.T();if(f.wa)for(f.wa=!1,U(f.d),U(f.G),c=this.d,b=0,d=c.length;b<d;b++)e=
c[b],e.uid===a?f.G.push(e):f.d.push(e);else{c=b=0;for(d=f.d.length;b<d;b++)e=f.d[b],f.d[c]=e,e.uid===a?f.G.push(e):c++;sa(f.d,c)}this.Vd();return!!f.d.length}e=this.b.Rj(a);if(!e)return!1;f=this.T();if(!f.wa&&-1===f.d.indexOf(e))return!1;if(this.I)for(a=e.type.S,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.wf(e),this.Vd(),!0}else if(e.type===this)return f.wf(e),this.Vd(),!0;return!1},a.Zi=function(){return!0},a.lm=function(){return!0},f.Vq=function(a,b){var d=this.ia;ha(d[a])?d[a]=ha(b)?b:parseFloat(b):
O(d[a])&&(d[a]=O(b)?b:b.toString())},f.cq=function(a,b){var d=this.ia;ha(d[a])?d[a]=ha(b)?d[a]+b:d[a]+parseFloat(b):O(d[a])&&(d[a]=O(b)?d[a]+b:d[a]+b.toString())},f.ar=function(a,b){var d=this.ia;ha(d[a])&&(d[a]=ha(b)?d[a]-b:d[a]-parseFloat(b))},f.Rq=function(a,b){this.ia[a]=b?1:0},f.br=function(a){this.ia[a]=1-this.ia[a]},f.qq=function(){this.b.Rd(this)},f.hm||(f.hm=function(a){var b,d;try{b=JSON.parse(a)}catch(e){return}this.b.sg(this,b,!0);this.jd&&this.jd();if(this.C)for(a=0,b=this.C.length;a<
b;++a)d=this.C[a],d.jd&&d.jd()}),h.pq=function(a){var b=a.Kd.d.length,d,e,c;d=0;for(e=this.b.Vb.length;d<e;d++)c=this.b.Vb[d],a.Kd.I?0<=c.type.S.indexOf(a.Kd)&&b++:c.type===a.Kd&&b++;a.M(b)},h.Lq=function(a){a.M(a.Kd.T().Hb().length)},h.cr=function(a){a.M(this.uid)},h.rq=function(a){a.M(this.Xe())},h.Xi||(h.Xi=function(a){a.Ka(JSON.stringify(this.b.Gi(this,!0)))}));b&&(a.wq=function(){return this.visible},f.rm=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Q=!0)},a.mq=function(a,b){return Pb($a(100*
this.opacity),a,b)},f.Wq=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Q=!0)},h.Opacity=function(a){a.B($a(100*this.opacity))});d&&(a.tq=function(a){return a?this.e===a:!1},a.Kq=function(a){var b=this.T(),d=b.Hb();if(!d.length)return!1;var e=d[0],c=e,f,h;f=1;for(h=d.length;f<h;f++)if(e=d[f],0===a){if(e.e.index>c.e.index||e.e.index===c.e.index&&e.$b()>c.$b())c=e}else if(e.e.index<c.e.index||e.e.index===c.e.index&&e.$b()<c.$b())c=e;b.wf(c);return!0},f.Dq=function(){var a=
this.e,b=a.d;b.length&&b[b.length-1]===this||(a.we(this,!1),a.Ge(this,!1),this.b.Q=!0)},f.Bq=function(){var a=this.e,b=a.d;b.length&&b[0]===this||(a.we(this,!1),a.qp(this),this.b.Q=!0)},f.Cq=function(a){a&&a!=this.e&&(this.e.we(this,!0),this.e=a,a.Ge(this,!0),this.b.Q=!0)},f.gr=function(a,b){var d=0===a;if(b){var e=b.ho(this);e&&e.uid!==this.uid&&(this.e.index!==e.e.index&&(this.e.we(this,!0),this.e=e.e,e.e.Ge(this,!0)),this.e.Zo(this,e,d),this.b.Q=!0)}},h.yq=function(a){a.M(this.e.Tk)},h.xq=function(a){a.Ka(this.e.name)},
h.fr=function(a){a.M(this.$b())});e&&(f.Sq=function(a,b){if(this.b.j){var d=this.type.Kh(b);if(!(0>d)){var e=1===a;this.Pc[d]!==e&&(this.Pc[d]=e,this.Qb(),this.b.Q=!0)}}},f.Tq=function(a,b,d){if(this.b.j){var e=this.type.Kh(a);0>e||(a=this.type.p[e],e=this.Z[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.j.qo(a.ga,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.$a&&(this.b.Q=!0))))}})};wb=function(){this.nh=this.hh=!0;this.type.gj=!0;this.b.Q=!0;var c,p,n=this.ih;c=0;for(p=n.length;c<p;++c)n[c](this);this.e.ib&&
this.Da()};xb=function(c){c&&this.ih.push(c)};zb=function(){if(this.hh){var c=this.ya,p=this.Wd;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.eg*this.width,-this.fg*this.height);this.k?(c.offset(-this.x,-this.y),p.ul(c,this.k),p.offset(this.x,this.y),p.qj(c)):p.Ng(c);c.normalize();this.hh=!1;this.Xp()}};var c=new S(0,0,0,0);Ab=function(){if(this.e.ib){var l=this.e.Ca,p=this.ya;c.set(l.Na(p.left),l.Oa(p.top),l.Na(p.right),l.Oa(p.bottom));this.Qa.Re(c)||(this.Qa.right<this.Qa.left?
l.update(this,null,c):l.update(this,this.Qa,c),this.Qa.Le(c),this.e.Ob=!0)}};Bb=function(){if(this.nh&&this.Mf){this.Da();var l=this.type.tj,p=this.ya;c.set(l.Na(p.left),l.Oa(p.top),l.Na(p.right),l.Oa(p.bottom));this.Vc.Re(c)||(this.Vc.right<this.Vc.left?l.update(this,null,c):l.update(this,this.Vc,c),this.Vc.Le(c),this.nh=!1)}};yb=function(c,p){return this.ya.Ub(c,p)&&this.Wd.Ub(c,p)?this.Je&&!this.Je.So()?(this.Je.Lm(this.width,this.height,this.k),this.Je.Ub(c-this.x,p-this.y)):!0:!1};sb=function(){this.type.Wg();
return this.vd};Cb=function(){this.e.Si();return this.Rb};Db=function(){U(this.D);var c,p,n,u=!0;c=0;for(p=this.Pc.length;c<p;c++)this.Pc[c]&&(n=this.type.p[c],this.D.push(n),n.Lb||(u=!1));this.Sl=!!this.D.length;this.Fc=u};tb=function(){return"Inst"+this.fl};gb=function(c){if(c&&c.ob&&c.type!=this){var p,n,u;p=0;for(n=c.siblings.length;p<n;p++)if(u=c.siblings[p],u.type==this)return u}c=this.T().Hb();return c.length?c[0]:null};hb=function(c){var p=this.T().Hb();return p.length?p[c.Xe()%p.length]:
null};fb=function(){if(this.ze&&!this.I){var c,p;c=0;for(p=this.d.length;c<p;c++)this.d[c].vd=c;var n=c,u=this.b.Vb;c=0;for(p=u.length;c<p;++c)u[c].type===this&&(u[c].vd=n++);this.ze=!1}};qb=function(c){if(c<this.d.length)return this.d[c];c-=this.d.length;var p=this.b.Vb,n,u;n=0;for(u=p.length;n<u;++n)if(p[n].type===this){if(0===c)return p[n];--c}return null};ib=function(){return this.Hc[this.Wb]};jb=function(){this.Wb++;this.Wb===this.Hc.length?this.Hc.push(new eb(this)):(this.Hc[this.Wb].wa=!0,
U(this.Hc[this.Wb].G))};kb=function(){this.Wb++;this.Wb===this.Hc.length&&this.Hc.push(new eb(this));var c=this.Hc[this.Wb],p=this.Hc[this.Wb-1];p.wa?(c.wa=!0,U(c.G)):(c.wa=!1,ta(c.d,p.d),ta(c.G,p.G))};lb=function(){this.Wb--};mb=function(c){var p,n,u,q,g,b=0;if(!this.I)for(p=0,n=this.S.length;p<n;p++)for(g=this.S[p],u=0,q=g.X.length;u<q;u++){if(c===g.X[u].name)return this.R.lastBehIndex=b,g.X[u];b++}p=0;for(n=this.X.length;p<n;p++){if(c===this.X[p].name)return this.R.lastBehIndex=b,this.X[p];b++}return null};
nb=function(c){return this.Zf(c)?this.R.lastBehIndex:-1};ob=function(c){var p,n;p=0;for(n=this.p.length;p<n;p++)if(this.p[p].name===c)return p;return-1};pb=function(){if(this.ob&&!this.I){var c,p,n,u,q,g,b;this.Wg();g=this.T();var d=g.wa,e=(c=this.b.Va())&&c.Xb&&c.Xb.gc;c=0;for(p=this.Sa.length;c<p;c++)if(q=this.Sa[c],q!==this&&(q.Wg(),b=q.T(),b.wa=d,!d)){U(b.d);n=0;for(u=g.d.length;n<u;++n)b.d[n]=q.Lh(g.d[n].vd);if(e)for(U(b.G),n=0,u=g.G.length;n<u;++n)b.G[n]=q.Lh(g.G[n].vd)}}};rb=function(){return"Type"+
this.F};Pb=function(c,p,n){if("undefined"===typeof c||"undefined"===typeof n)return!1;switch(p){case 0:return c===n;case 1:return c!==n;case 2:return c<n;case 3:return c<=n;case 4:return c>n;case 5:return c>=n;default:return!1}}})();var Xb={};function Zb(c){this.b=c}
(function(){function c(){return b.length?b.pop():[]}function l(d){var c,a;c=0;for(a=d.length;c<a;c++)Array.isArray(d[c])&&l(d[c]);U(d);b.push(d)}function p(){}function n(){}function u(){}var q=Zb.prototype;q.lc=function(b){this.ea=b;this.b=b.b};q.lc.prototype.ua=function(){};q.jb=function(b){this.type=b;this.b=b.b};var g=q.jb.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});g.ua=function(){this.cb=this.V[0];this.lb=this.V[1];this.Fb=
this.V[2];this.Nb||(this.Tb=c());var b=this.Tb;b.length=this.cb;var e,a,f;for(e=0;e<this.cb;e++)for(b[e]||(b[e]=c()),b[e].length=this.lb,a=0;a<this.lb;a++)for(b[e][a]||(b[e][a]=c()),b[e][a].length=this.Fb,f=0;f<this.Fb;f++)b[e][a][f]=0;this.Hj=[];this.Ij=[];this.Jj=[];this.wc=-1};g.pe=function(){var b;for(b=0;b<this.cb;b++)l(this.Tb[b]);U(this.Tb)};g.gh=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.cb-1||isNaN(c)||0>c||c>this.lb-1||isNaN(a)||0>a||a>this.Fb-
1?0:this.Tb[b][c][a]};g.set=function(b,c,a,f){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.cb-1||isNaN(c)||0>c||c>this.lb-1||isNaN(a)||0>a||a>this.Fb-1||(this.Tb[b][c][a]=f)};g.bo=function(){return JSON.stringify({c2array:!0,size:[this.cb,this.lb,this.Fb],data:this.Tb})};g.tb=function(){return{size:[this.cb,this.lb,this.Fb],data:this.Tb}};g.ec=function(b){var c=b.size;this.cb=c[0];this.lb=c[1];this.Fb=c[2];this.Tb=b.data};g.Ec=function(b,e,a){0>b&&(b=0);0>e&&(e=0);0>a&&(a=
0);if(this.cb!==b||this.lb!==e||this.Fb!==a){this.cb=b;this.lb=e;this.Fb=a;var f,h,g=this.Tb;g.length=b;for(b=0;b<this.cb;b++)for(ga(g[b])&&(g[b]=c()),g[b].length=e,f=0;f<this.lb;f++)for(ga(g[b][f])&&(g[b][f]=c()),g[b][f].length=a,h=0;h<this.Fb;h++)ga(g[b][f][h])&&(g[b][f][h]=0)}};g.lr=function(){return 0<=this.wc&&this.wc<this.Hj.length?this.Hj[this.wc]:0};g.mr=function(){return 0<=this.wc&&this.wc<this.Ij.length?this.Ij[this.wc]:0};g.nr=function(){return 0<=this.wc&&this.wc<this.Jj.length?this.Jj[this.wc]:
0};p.prototype.$l=function(b,c,a){return Pb(this.gh(b,0,0),c,a)};g.kj=function(b){this.b.Eg(b.W);b.xp();this.b.Ld(b.W)};q.A=new p;n.prototype.qm=function(b,c,a){this.Ec(b,c,a)};n.prototype.um=function(b,c){this.set(b,0,0,c)};n.prototype.gm=function(b){var c;try{c=JSON.parse(b)}catch(a){return}c.c2array&&(b=c.size,this.cb=b[0],this.lb=b[1],this.Fb=b[2],this.Tb=c.data)};q.Sb=new n;u.prototype.Xl=function(b,c,a,f){b.tl(this.gh(c,a||0,f||0))};u.prototype.ym=function(b){b.M(this.cb)};u.prototype.cm=function(b){b.M(this.lb)};
u.prototype.Xi=function(b){b.Ka(this.bo())};q.mb=new u})();function $b(c){this.b=c}
(function(){function c(){}function l(){}var p=$b.prototype;p.lc=function(c){this.ea=c;this.b=c.b};p.lc.prototype.ua=function(){};p.jb=function(c){this.type=c;this.b=c.b};var n=p.jb.prototype;n.ua=function(){this.b.pa?w("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.ee=1===this.V[0],this.nb=document.createElement("input"),this.H=this.ee?document.createElement("label"):this.nb,this.hf=null,this.nb.type=this.ee?"checkbox":"button",this.nb.id=this.V[6],
jQuery(this.H).appendTo(this.b.Lf?this.b.Lf:"body"),this.ee?(jQuery(this.nb).appendTo(this.H),this.hf=document.createTextNode(this.V[1]),jQuery(this.H).append(this.hf),this.nb.checked=0!==this.V[7],jQuery(this.H).css("font-family","sans-serif"),jQuery(this.H).css("display","inline-block"),jQuery(this.H).css("color","black")):this.nb.value=this.V[1],this.H.title=this.V[2],this.nb.disabled=0===this.V[4],this.Gm=0!==this.V[5],this.pd=!1,0===this.V[3]&&(jQuery(this.H).hide(),this.visible=!1,this.pd=!0),
this.nb.onclick=function(c){return function(l){l.stopPropagation();c.b.ck=!0;c.b.trigger($b.prototype.A.Yi,c);c.b.ck=!1}}(this),this.H.addEventListener("touchstart",function(c){c.stopPropagation()},!1),this.H.addEventListener("touchmove",function(c){c.stopPropagation()},!1),this.H.addEventListener("touchend",function(c){c.stopPropagation()},!1),jQuery(this.H).mousedown(function(c){c.stopPropagation()}),jQuery(this.H).mouseup(function(c){c.stopPropagation()}),jQuery(this.H).keydown(function(c){c.stopPropagation()}),
jQuery(this.H).keyup(function(c){c.stopPropagation()}),this.qk=this.rk=this.jk=this.nk=this.pk=this.lk=0,this.Rl(!0),this.b.Il(this))};n.tb=function(){var c={tooltip:this.H.title,disabled:!!this.nb.disabled};this.ee?(c.checked=!!this.nb.checked,c.text=this.hf.nodeValue):c.text=this.H.value;return c};n.ec=function(c){this.H.title=c.tooltip;this.nb.disabled=c.disabled;this.ee?(this.nb.checked=c.checked,this.hf.nodeValue=c.text):this.H.value=c.text};n.pe=function(){this.b.pa||(jQuery(this.H).remove(),
this.H=null)};n.Od=function(){this.Rl()};n.Rl=function(c){if(!this.b.pa){var l=this.e.U(this.x,this.y,!0),g=this.e.U(this.x,this.y,!1),b=this.e.U(this.x+this.width,this.y+this.height,!0),d=this.e.U(this.x+this.width,this.y+this.height,!1),e=this.b.width/this.b.devicePixelRatio,a=this.b.height/this.b.devicePixelRatio;!this.visible||!this.e.visible||0>=b||0>=d||l>=e||g>=a?(this.pd||jQuery(this.H).hide(),this.pd=!0):(1>l&&(l=1),1>g&&(g=1),b>=e&&(b=e-1),d>=a&&(d=a-1),e=window.innerWidth,a=window.innerHeight,
c||this.lk!==l||this.pk!==g||this.nk!==b||this.jk!==d||this.rk!==e||this.qk!==a?(this.lk=l,this.pk=g,this.nk=b,this.jk=d,this.rk=e,this.qk=a,this.pd&&(jQuery(this.H).show(),this.pd=!1),c=Math.round(l)+jQuery(this.b.canvas).offset().left,e=Math.round(g)+jQuery(this.b.canvas).offset().top,jQuery(this.H).css("position","absolute"),jQuery(this.H).offset({left:c,top:e}),jQuery(this.H).width(Math.round(b-l)),jQuery(this.H).height(Math.round(d-g)),this.Gm&&jQuery(this.H).css("font-size",this.e.Pa(!0)/this.b.devicePixelRatio-
.2+"em")):this.pd&&(jQuery(this.H).show(),this.pd=!1))}};n.tc=function(){};n.Gb=function(){};c.prototype.Yi=function(){return!0};p.A=new c;l.prototype.cj=function(c){this.b.pa||(this.ee?this.hf.nodeValue=c:this.H.value=c)};l.prototype.rm=function(c){this.b.pa||(this.visible=0!==c)};p.Sb=new l;p.mb=new function(){}})();function ac(c){this.b=c}
(function(){function c(){return b.length?b.pop():{}}function l(d){var c,a;c=0;for(a=d.length;c<a;c++)b.push(d[c]);U(d)}function p(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function n(){}var u=ac.prototype;u.ua=function(){u.Sb.tm=function(b){this.width!==b&&(this.width=b,this.Nd=!0,this.xa())}};u.lc=function(b){this.ea=b;this.b=b.b};var q=u.lc.prototype;q.ua=function(){};q.Yk=function(){if(!this.I){var b,c,a;b=0;for(c=this.d.length;b<c;b++)a=this.d[b],a.fc=null,a.Jd=
null,a.Wa=null}};u.jb=function(b){this.type=b;this.b=b.b;this.Nb?U(this.ad):this.ad=[];this.Nd=!0};q=u.jb.prototype;q.ua=function(){this.text=this.V[0];this.visible=0===this.V[1];this.font=this.V[2];this.color=this.V[3];this.dg=this.V[4];this.Yg=this.V[5];this.Ui=0===this.V[7];this.hi=this.og=this.width;this.ng=this.height;this.ji=this.V[8];this.Wf=this.ae="";this.El=this.Fl=this.yf=0;this.ip();this.Wa=this.Jd=this.fc=null;this.Rk=!1;this.kf=this.b.Ic;this.Nb?this.ve.set(0,0,1,1):this.ve=new S(0,
0,1,1);this.b.j&&this.b.Il(this)};q.ip=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.yf=parseInt(b[c].substr(0,b[c].length-2));this.yi=Math.ceil(this.yf/72*96)+4;0<c&&(this.Wf=b[c-1]);this.ae=b[c+1];for(c+=2;c<b.length;c++)this.ae+=" "+b[c];break}};q.tb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.dg,va:this.Yg,wr:this.Ui,lho:this.ji,fn:this.ae,fs:this.Wf,ps:this.yf,pxh:this.yi,tw:this.Fl,th:this.El,lrt:this.kf}};q.ec=
function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.dg=b.ha;this.Yg=b.va;this.Ui=b.wr;this.ji=b.lho;this.ae=b.fn;this.Wf=b.fs;this.yf=b.ps;this.yi=b.pxh;this.Fl=b.tw;this.El=b.th;this.kf=b.lrt;this.Nd=!0;this.hi=this.og=this.width;this.ng=this.height};q.Od=function(){if(this.b.j&&this.Wa&&300<=this.b.Ic-this.kf){var b=this.e;this.Da();var c=this.ya;if(c.right<b.J||c.bottom<b.K||c.left>b.O||c.top>b.N)this.b.j.deleteTexture(this.Wa),this.fc=this.Jd=this.Wa=null}};q.pe=function(){this.fc=this.Jd=
null;this.b.j&&this.Wa&&this.b.j.deleteTexture(this.Wa);this.Wa=null};q.kj=function(){this.font=this.Wf+" "+this.yf.toString()+"pt "+this.ae;this.Nd=!0;this.b.Q=!0};q.tc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.e.Pa()),b.save(),b.scale(a,a));if(this.Nd||this.width!==this.hi)this.type.ea.zm(this.text,this.ad,b,this.width,this.Ui),this.Nd=!1,this.hi=this.width;this.Da();var a=c?0:this.Wd.zb,f=c?0:this.Wd.Ab;
this.b.se&&(a=a+.5|0,f=f+.5|0);0===this.k||c||(b.save(),b.translate(a,f),b.rotate(this.k),f=a=0);var g=f+this.height,k=this.yi,k=k+this.ji,l,n;1===this.Yg?f+=Math.max(this.height/2-this.ad.length*k/2,0):2===this.Yg&&(f+=Math.max(this.height-this.ad.length*k-2,0));for(n=0;n<this.ad.length&&!(l=a,1===this.dg?l=a+(this.width-this.ad[n].width)/2:2===this.dg&&(l=a+(this.width-this.ad[n].width)),b.fillText(this.ad[n].text,l,f),f+=k,f>=g-k);n++);(0!==this.k||c)&&b.restore();this.kf=this.b.Ic};q.Gb=function(b){if(!(1>
this.width||1>this.height)){var c=this.Nd||this.Rk;this.Rk=!1;var a=this.e.Pa(),f=this.e.Ua(),g=this.ve,k=a*this.width,l=a*this.height,n=Math.ceil(k),p=Math.ceil(l),m=Math.abs(n),q=Math.abs(p),u=this.b.n/2,G=this.b.m/2;this.Jd||(this.fc=document.createElement("canvas"),this.fc.width=m,this.fc.height=q,this.og=m,this.ng=q,c=!0,this.Jd=this.fc.getContext("2d"));if(m!==this.og||q!==this.ng)this.fc.width=m,this.fc.height=q,this.Wa&&(b.deleteTexture(this.Wa),this.Wa=null),c=!0;c&&(this.Jd.clearRect(0,
0,m,q),this.tc(this.Jd,!0),this.Wa||(this.Wa=b.bb(m,q,this.b.ka,this.b.Ad)),b.$p(this.fc,this.Wa,this.b.Ad));this.og=m;this.ng=q;b.wb(this.Wa);b.Af(this.opacity);b.sb();b.translate(-u,-G);b.hb();var C=this.Wd,c=this.e.U(C.zb,C.Ab,!0,!0),m=this.e.U(C.zb,C.Ab,!1,!0),q=this.e.U(C.Kc,C.Lc,!0,!0),u=this.e.U(C.Kc,C.Lc,!1,!0),G=this.e.U(C.pc,C.qc,!0,!0),L=this.e.U(C.pc,C.qc,!1,!0),A=this.e.U(C.nc,C.oc,!0,!0),C=this.e.U(C.nc,C.oc,!1,!0);if(this.b.se||0===this.k&&0===f)var y=(c+.5|0)-c,F=(m+.5|0)-m,c=c+y,
m=m+F,q=q+y,u=u+F,G=G+y,L=L+F,A=A+y,C=C+F;0===this.k&&0===f?(q=c+n,u=m,G=q,L=m+p,A=c,C=L,g.right=1,g.bottom=1):(g.right=k/n,g.bottom=l/p);b.ue(c,m,q,u,G,L,A,C,g);b.sb();b.scale(a,a);b.Ig(-this.e.Ua());b.translate((this.e.J+this.e.O)/-2,(this.e.K+this.e.N)/-2);b.hb();this.kf=this.b.Ic}};var g=[];u.wm=function(b){U(g);for(var c="",a,f=0;f<b.length;)if(a=b.charAt(f),"\n"===a)c.length&&(g.push(c),c=""),g.push("\n"),++f;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(f),f++;while(f<b.length&&(" "===
b.charAt(f)||"\t"===b.charAt(f)));g.push(c);c=""}else f<b.length&&(c+=a,f++);c.length&&g.push(c)};var b=[];u.zm=function(b,e,a,f,g){if(b&&b.length)if(2>=f)l(e);else{if(100>=b.length&&-1===b.indexOf("\n")){var k=a.measureText(b).width;if(k<=f){l(e);e.push(c());e[0].text=b;e[0].width=k;return}}this.Am(b,e,a,f,g)}else l(e)};u.Am=function(d,e,a,f,h){h&&(this.wm(d),d=g);var k="",l,n,q,m=0;for(q=0;q<d.length;q++)"\n"===d[q]?(m>=e.length&&e.push(c()),k=p(k),n=e[m],n.text=k,n.width=a.measureText(k).width,
m++,k=""):(l=k,k+=d[q],n=a.measureText(k).width,n>=f&&(m>=e.length&&e.push(c()),l=p(l),n=e[m],n.text=l,n.width=a.measureText(l).width,m++,k=d[q],h||" "!==k||(k="")));k.length&&(m>=e.length&&e.push(c()),k=p(k),n=e[m],n.text=k,n.width=a.measureText(k).width,m++);for(q=m;q<e.length;q++)b.push(e[q]);e.length=m};u.A=new function(){};n.prototype.cj=function(b){ha(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Nd=!0,this.b.Q=!0)};u.Sb=new n;u.mb=new function(){}})();
function bc(c){this.b=c}
(function(){function c(){}function l(){}var p=bc.prototype;p.lc=function(b){this.ea=b;this.b=b.b};var n=null,u=null,q=0,g=0;p.lc.prototype.ua=function(){};p.jb=function(b){this.type=b;this.b=b.b};var b=p.jb.prototype,d=function(){for(var b={},a=window.location.search.substring(1).split("&"),c=0;c<a.length;c++){var d=a[c].split("=");"undefined"===typeof b[d[0]]?b[d[0]]=d[1]:"string"===typeof b[d[0]]?b[d[0]]=[b[d[0]],d[1]]:b[d[0]].push(d[1])}return b}();b.ua=function(){this.b.pa?w("[Construct 2] vkontakte plugin not supported on this platform - the object will not be created"):
(n=this.b,u=this,window.onload=function(){d.viewer_id&&VK.init(function(){VK.api("users.get",{uids:d.viewer_id,fields:"uid, first_name, last_name, sex, bdate, city, country, timezone, photo, photo_medium, photo_big"},function(b){if(b.response){b=b.response[0];var a={},c=[];a.c2array=1;c["0"]=[[b.uid],[b.first_name],[b.last_name],[b.sex],[b.bdate],[b.city],[b.country],[b.timezone],[b.photo],[b.photo_medium],[b.photo_big]];a.data=c;a.size=["1","12","1"];JSON.stringify(a);n.trigger(bc.prototype.A.aj,
u);console.log("Construct2-VK: OnReady trigger")}})})})};VK.addCallback("onWindowBlur",function(){n.trigger(bc.prototype.A.jm,u);console.log("Construct2-VK: Blur trigger")});VK.addCallback("onWindowFocus",function(){n.trigger(bc.prototype.A.mm,u);console.log("Construct2-VK: Focus trigger")});VK.addCallback("onBalanceChanged",function(b){n.trigger(bc.prototype.A.im,u);console.log("Construct2-VK: Balance changed added trigger sum:"+b)});VK.addCallback("onOrderCancel",function(){n.trigger(bc.prototype.A.cp,
u);console.log("Construct2-VK: Order cancel")});VK.addCallback("onOrderSuccess",function(b){q=b;n.trigger(bc.prototype.A.ep,u);console.log("Construct2-VK: Order Success order_id:"+q)});VK.addCallback("onOrderFail",function(b){g=b;n.trigger(bc.prototype.A.dp,u);console.log("Construct2-VK: Order Fail errcode:"+g)});c.prototype.aj=function(){return!0};c.prototype.jm=function(){return!0};c.prototype.mm=function(){return!0};c.prototype.im=function(){return!0};c.prototype.cp=function(){return!0};c.prototype.ep=
function(){return!0};c.prototype.dp=function(){return!0};p.A=new c;p.Sb=new function(){};l.prototype.xm=function(b){b.Ka("")};p.mb=new l})();function Yb(){return[Zb,$b,ac,bc,bc.prototype.A.aj,Zb.prototype.Sb.gm,bc.prototype.mb.xm,$b.prototype.A.Yi,ac.prototype.Sb.cj,Zb.prototype.mb.Xl]};