-
Notifications
You must be signed in to change notification settings - Fork 0
/
maze.js
130 lines (130 loc) · 66 KB
/
maze.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
var f=void 0,h=!0,m=null,p=!1;function aa(a){return function(){return this[a]}}var q,r=this;function ba(){}
function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function s(a){return a!==f}function t(a){return"array"==ca(a)}function da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function w(a){return"number"==typeof a}function ea(a){return"function"==ca(a)}function fa(a){var b=typeof a;return"object"==b&&a!=m||"function"==b}function y(a){return a[ga]||(a[ga]=++ha)}var ga="closure_uid_"+(1E9*Math.random()>>>0),ha=0;
function ia(a,b,c){return a.call.apply(a.bind,arguments)}function ja(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function ka(a,b,c){ka=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja;return ka.apply(m,arguments)}
function la(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var ma=Date.now||function(){return+new Date};function A(a,b){function c(){}c.prototype=b.prototype;a.Ue=b.prototype;a.prototype=new c};function na(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function oa(a){if(!pa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(qa,"&"));-1!=a.indexOf("<")&&(a=a.replace(ra,"<"));-1!=a.indexOf(">")&&(a=a.replace(sa,">"));-1!=a.indexOf('"')&&(a=a.replace(ta,"""));return a}var qa=/&/g,ra=/</g,sa=/>/g,ta=/\"/g,pa=/[&<>\"]/;function ua(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}
function va(a){var b=u(f)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var wa,xa,ya,za,Aa,Ba;function Ca(){return r.navigator?r.navigator.userAgent:m}Aa=za=ya=xa=wa=p;var Da;if(Da=Ca()){var Ea=r.navigator;wa=0==Da.indexOf("Opera");xa=!wa&&-1!=Da.indexOf("MSIE");za=(ya=!wa&&-1!=Da.indexOf("WebKit"))&&-1!=Da.indexOf("Mobile");Aa=!wa&&!ya&&"Gecko"==Ea.product}var B=wa,C=xa,D=Aa,E=ya,Fa=za,Ga,Ha=r.navigator;Ga=Ha&&Ha.platform||"";Ba=-1!=Ga.indexOf("Mac");var Ia=-1!=Ga.indexOf("Win");function Ja(){var a=r.document;return a?a.documentMode:f}var Ka;
a:{var Ma="",Na;if(B&&r.opera)var Oa=r.opera.version,Ma="function"==typeof Oa?Oa():Oa;else if(D?Na=/rv\:([^\);]+)(\)|;)/:C?Na=/MSIE\s+([^\);]+)(\)|;)/:E&&(Na=/WebKit\/(\S+)/),Na)var Pa=Na.exec(Ca()),Ma=Pa?Pa[1]:"";if(C){var Qa=Ja();if(Qa>parseFloat(Ma)){Ka=String(Qa);break a}}Ka=Ma}var Ra={};
function F(a){var b;if(!(b=Ra[a])){b=0;for(var c=na(String(Ka)).split("."),d=na(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var k=c[g]||"",l=d[g]||"",n=RegExp("(\\d*)(\\D*)","g"),x=RegExp("(\\d*)(\\D*)","g");do{var z=n.exec(k)||["","",""],v=x.exec(l)||["","",""];if(0==z[0].length&&0==v[0].length)break;b=((0==z[1].length?0:parseInt(z[1],10))<(0==v[1].length?0:parseInt(v[1],10))?-1:(0==z[1].length?0:parseInt(z[1],10))>(0==v[1].length?0:parseInt(v[1],10))?1:0)||((0==z[2].length)<
(0==v[2].length)?-1:(0==z[2].length)>(0==v[2].length)?1:0)||(z[2]<v[2]?-1:z[2]>v[2]?1:0)}while(0==b)}b=Ra[a]=0<=b}return b}var Sa=r.document,Ta=!Sa||!C?f:Ja()||("CSS1Compat"==Sa.compatMode?parseInt(Ka,10):5);function G(){0!=Ua&&(this.df=Error().stack,y(this))}var Ua=0;function H(a,b){this.type=a;this.currentTarget=this.target=b}H.prototype.da=p;H.prototype.defaultPrevented=p;H.prototype.sb=h;H.prototype.preventDefault=function(){this.defaultPrevented=h;this.sb=p};var Va=0;function Wa(){}q=Wa.prototype;q.key=0;q.ea=p;q.Sa=p;q.Aa=function(a,b,c,d,e,g){if(ea(a))this.Cd=h;else if(a&&a.handleEvent&&ea(a.handleEvent))this.Cd=p;else throw Error("Invalid listener argument");this.X=a;this.Nd=b;this.src=c;this.type=d;this.capture=!!e;this.Wb=g;this.Sa=p;this.key=++Va;this.ea=p};q.handleEvent=function(a){return this.Cd?this.X.call(this.Wb||this.src,a):this.X.handleEvent.call(this.X,a)};function Xa(a,b){for(var c in a)b.call(f,a[c],c,a)}var Ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Za(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<Ya.length;g++)c=Ya[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var $a=!C||C&&9<=Ta,ab=C&&!F("9");!E||F("528");D&&F("1.9b")||C&&F("8")||B&&F("9.5")||E&&F("528");D&&!F("8")||C&&F("9");var J=Array.prototype,bb=J.indexOf?function(a,b,c){return J.indexOf.call(a,b,c)}:function(a,b,c){c=c==m?0:0>c?Math.max(0,a.length+c):c;if(u(a))return!u(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},cb=J.forEach?function(a,b,c){J.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},db=J.filter?function(a,b,c){return J.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,k=u(a)?
a.split(""):a,l=0;l<d;l++)if(l in k){var n=k[l];b.call(c,n,l,a)&&(e[g++]=n)}return e},eb=J.map?function(a,b,c){return J.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=u(a)?a.split(""):a,k=0;k<d;k++)k in g&&(e[k]=b.call(c,g[k],k,a));return e};function K(a,b){return 0<=bb(a,b)}function fb(a,b){K(a,b)||a.push(b)}function gb(a,b){var c=bb(a,b);0<=c&&J.splice.call(a,c,1)}function hb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function ib(a,b,c,d){J.splice.apply(a,jb(arguments,1))}function jb(a,b,c){return 2>=arguments.length?J.slice.call(a,b):J.slice.call(a,b,c)};function kb(a){kb[" "](a);return a}kb[" "]=ba;function lb(a,b){a&&this.Aa(a,b)}A(lb,H);q=lb.prototype;q.target=m;q.relatedTarget=m;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=p;q.altKey=p;q.shiftKey=p;q.metaKey=p;q.Ke=p;q.xa=m;
q.Aa=function(a,b){var c=this.type=a.type;H.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(D){var e;a:{try{kb(d.nodeName);e=h;break a}catch(g){}e=p}e||(d=m)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=E||a.offsetX!==f?a.offsetX:a.layerX;this.offsetY=E||a.offsetY!==f?a.offsetY:a.layerY;this.clientX=a.clientX!==f?a.clientX:a.pageX;this.clientY=a.clientY!==f?a.clientY:a.pageY;this.screenX=a.screenX||
0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Ke=Ba?a.metaKey:a.ctrlKey;this.state=a.state;this.xa=a;a.defaultPrevented&&this.preventDefault();delete this.da};
q.preventDefault=function(){lb.Ue.preventDefault.call(this);var a=this.xa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=p,ab)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var mb={},L={},nb={},ob={};function M(a,b,c,d,e){if(t(b)){for(var g=0;g<b.length;g++)M(a,b[g],c,d,e);return m}a=pb(a,b,c,p,d,e);b=a.key;mb[b]=a;return b}
function pb(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");e=!!e;var k=L;b in k||(k[b]={H:0,t:0});k=k[b];e in k||(k[e]={H:0,t:0},k.H++);var k=k[e],l=y(a),n;k.t++;if(k[l]){n=k[l];for(var x=0;x<n.length;x++)if(k=n[x],k.X==c&&k.Wb==g){if(k.ea)break;d||(n[x].Sa=p);return n[x]}}else n=k[l]=[],k.H++;x=qb();k=new Wa;k.Aa(c,x,a,b,e,g);k.Sa=d;x.src=a;x.X=k;n.push(k);nb[l]||(nb[l]=[]);nb[l].push(k);a.addEventListener?(a==r||!a.Gb)&&a.addEventListener(b,x,e):a.attachEvent(b in ob?ob[b]:ob[b]="on"+b,x);
return k}function qb(){var a=rb,b=$a?function(c){return a.call(b.src,b.X,c)}:function(c){c=a.call(b.src,b.X,c);if(!c)return c};return b}function sb(a,b,c,d,e){if(t(b))for(var g=0;g<b.length;g++)sb(a,b[g],c,d,e);else a=pb(a,b,c,h,d,e),mb[a.key]=a}function tb(a,b,c,d,e){if(t(b))for(var g=0;g<b.length;g++)tb(a,b[g],c,d,e);else{d=!!d;a:{g=L;if(b in g&&(g=g[b],d in g&&(g=g[d],a=y(a),g[a]))){a=g[a];break a}a=m}if(a)for(g=0;g<a.length;g++)if(a[g].X==c&&a[g].capture==d&&a[g].Wb==e){ub(a[g].key);break}}}
function ub(a){var b=mb[a];if(b&&!b.ea){var c=b.src,d=b.type,e=b.Nd,g=b.capture;c.removeEventListener?(c==r||!c.Gb)&&c.removeEventListener(d,e,g):c.detachEvent&&c.detachEvent(d in ob?ob[d]:ob[d]="on"+d,e);c=y(c);nb[c]&&(e=nb[c],gb(e,b),0==e.length&&delete nb[c]);b.ea=h;if(b=L[d][g][c])b.Id=h,vb(d,g,c,b);delete mb[a]}}
function vb(a,b,c,d){if(!d.kb&&d.Id){for(var e=0,g=0;e<d.length;e++)d[e].ea?d[e].Nd.src=m:(e!=g&&(d[g]=d[e]),g++);d.length=g;d.Id=p;0==g&&(delete L[a][b][c],L[a][b].H--,0==L[a][b].H&&(delete L[a][b],L[a].H--),0==L[a].H&&delete L[a])}}function wb(a,b,c,d,e){var g=1;b=y(b);if(a[b]){var k=--a.t,l=a[b];l.kb?l.kb++:l.kb=1;try{for(var n=l.length,x=0;x<n;x++){var z=l[x];z&&!z.ea&&(g&=xb(z,e)!==p)}}finally{a.t=Math.max(k,a.t),l.kb--,vb(c,d,b,l)}}return Boolean(g)}
function xb(a,b){a.Sa&&ub(a.key);return a.handleEvent(b)}
function rb(a,b){if(a.ea)return h;var c=a.type,d=L;if(!(c in d))return h;var d=d[c],e,g;if(!$a){var k;if(!(k=b))a:{k=["window","event"];for(var l=r;e=k.shift();)if(l[e]!=m)l=l[e];else{k=m;break a}k=l}e=k;k=h in d;l=p in d;if(k){if(0>e.keyCode||e.returnValue!=f)return h;a:{var n=p;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(x){n=h}if(n||e.returnValue==f)e.returnValue=h}}n=new lb;n.Aa(e,this);e=h;try{if(k){for(var z=[],v=n.currentTarget;v;v=v.parentNode)z.push(v);g=d[h];g.t=g.H;for(var I=z.length-
1;!n.da&&0<=I&&g.t;I--)n.currentTarget=z[I],e&=wb(g,z[I],c,h,n);if(l){g=d[p];g.t=g.H;for(I=0;!n.da&&I<z.length&&g.t;I++)n.currentTarget=z[I],e&=wb(g,z[I],c,p,n)}}else e=xb(a,n)}finally{z&&(z.length=0)}return e}c=new lb(b,this);return e=xb(a,c)};function yb(a,b,c,d,e){if(!C&&(!E||!F("525")))return h;if(Ba&&e)return zb(a);if(e&&!d||!c&&(17==b||18==b||Ba&&91==b))return p;if(E&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return p}if(C&&d&&b==a)return p;switch(a){case 13:return!(C&&C&&9<=Ta);case 27:return!E}return zb(a)}
function zb(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||E&&0==a)return h;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return h;default:return p}}function Ab(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function N(){G.call(this)}A(N,G);q=N.prototype;q.Gb=h;q.Md=m;q.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){tb(this,a,b,c,d)};
q.dispatchEvent=function(a){var b=a.type||a,c=L;if(b in c){if(u(a))a=new H(a,this);else if(a instanceof H)a.target=a.target||this;else{var d=a;a=new H(b,this);Za(a,d)}var d=1,e,c=c[b],b=h in c,g;if(b){e=[];for(g=this;g;g=g.Md)e.push(g);g=c[h];g.t=g.H;for(var k=e.length-1;!a.da&&0<=k&&g.t;k--)a.currentTarget=e[k],d&=wb(g,e[k],a.type,h,a)&&a.sb!=p}if(p in c)if(g=c[p],g.t=g.H,b)for(k=0;!a.da&&k<e.length&&g.t;k++)a.currentTarget=e[k],d&=wb(g,e[k],a.type,p,a)&&a.sb!=p;else for(e=this;!a.da&&e&&g.t;e=e.Md)a.currentTarget=
e,d&=wb(g,e,a.type,p,a)&&a.sb!=p;a=Boolean(d)}else a=h;return a};function Bb(a,b){G.call(this);a&&(this.jb&&this.detach(),this.ja=a,this.ib=M(this.ja,"keypress",this,b),this.ec=M(this.ja,"keydown",this.te,b,this),this.jb=M(this.ja,"keyup",this.ue,b,this))}A(Bb,N);q=Bb.prototype;q.ja=m;q.ib=m;q.ec=m;q.jb=m;q.B=-1;q.W=-1;q.Ab=p;
var Cb={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Db={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Eb=C||E&&F("525"),Fb=Ba&&D;q=Bb.prototype;
q.te=function(a){if(E&&(17==this.B&&!a.ctrlKey||18==this.B&&!a.altKey||Ba&&91==this.B&&!a.metaKey))this.W=this.B=-1;-1==this.B&&(a.ctrlKey&&17!=a.keyCode?this.B=17:a.altKey&&18!=a.keyCode?this.B=18:a.metaKey&&91!=a.keyCode&&(this.B=91));Eb&&!yb(a.keyCode,this.B,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.W=D?Ab(a.keyCode):a.keyCode,Fb&&(this.Ab=a.altKey))};q.ue=function(a){this.W=this.B=-1;this.Ab=a.altKey};
q.handleEvent=function(a){var b=a.xa,c,d,e=b.altKey;C&&"keypress"==a.type?(c=this.W,d=13!=c&&27!=c?b.keyCode:0):E&&"keypress"==a.type?(c=this.W,d=0<=b.charCode&&63232>b.charCode&&zb(c)?b.charCode:0):B?(c=this.W,d=zb(c)?b.keyCode:0):(c=b.keyCode||this.W,d=b.charCode||0,Fb&&(e=this.Ab),Ba&&(63==d&&224==c)&&(c=191));var g=c,k=b.keyIdentifier;c?63232<=c&&c in Cb?g=Cb[c]:25==c&&a.shiftKey&&(g=9):k&&k in Db&&(g=Db[k]);a=g==this.B;this.B=g;b=new Gb(g,d,a,b);b.altKey=e;this.dispatchEvent(b)};q.ab=aa("ja");
q.detach=function(){this.ib&&(ub(this.ib),ub(this.ec),ub(this.jb),this.jb=this.ec=this.ib=m);this.ja=m;this.W=this.B=-1};function Gb(a,b,c,d){d&&this.Aa(d,f);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}A(Gb,lb);var O={b:{}};O.b.set=function(a,b){a.className=b};O.b.get=function(a){a=a.className;return u(a)&&a.match(/\S+/g)||[]};O.b.add=function(a,b){var c=O.b.get(a),d=jb(arguments,1),e=c.length+d.length;O.b.Ac(c,d);O.b.set(a,c.join(" "));return c.length==e};O.b.remove=function(a,b){var c=O.b.get(a),d=jb(arguments,1),e=O.b.cd(c,d);O.b.set(a,e.join(" "));return e.length==c.length-d.length};O.b.Ac=function(a,b){for(var c=0;c<b.length;c++)K(a,b[c])||a.push(b[c])};
O.b.cd=function(a,b){return db(a,function(a){return!K(b,a)})};O.b.Af=function(a,b,c){for(var d=O.b.get(a),e=p,g=0;g<d.length;g++)d[g]==b&&(ib(d,g--,1),e=h);e&&(d.push(c),O.b.set(a,d.join(" ")));return e};O.b.$e=function(a,b,c){var d=O.b.get(a);u(b)?gb(d,b):t(b)&&(d=O.b.cd(d,b));u(c)&&!K(d,c)?d.push(c):t(c)&&O.b.Ac(d,c);O.b.set(a,d.join(" "))};O.b.ud=function(a,b){return K(O.b.get(a),b)};O.b.enable=function(a,b,c){c?O.b.add(a,b):O.b.remove(a,b)};
O.b.toggle=function(a,b){var c=!O.b.ud(a,b);O.b.enable(a,b,c);return c};function P(a,b){this.width=a;this.height=b}q=P.prototype;q.d=function(){return new P(this.width,this.height)};function Hb(a){return a.width*a.height}q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
q.scale=function(a,b){var c=w(b)?b:a;this.width*=a;this.height*=c;return this};var Ib=!C||C&&9<=Ta,Jb=!D&&!C||C&&C&&9<=Ta||D&&F("1.9.1"),Kb=C&&!F("9"),Lb=C||B||E;function Q(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}q=Q.prototype;q.d=function(){return new Q(this.x,this.y)};q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};q.translate=function(a,b){a instanceof Q?(this.x+=a.x,this.y+=a.y):(this.x+=a,w(b)&&(this.y+=b));return this};
q.scale=function(a,b){var c=w(b)?b:a;this.x*=a;this.y*=c;return this};O.Zd=p;O.tc=p;O.$d=O.Zd||O.tc;O.la=function(a){return a?new Mb(O.s(a)):O.he||(O.he=new Mb)};O.Ob=function(){return document};O.ab=function(a){return u(a)?document.getElementById(a):a};O.Wd=O.ab;O.za=function(a,b,c){return O.Sb(document,a,b,c)};O.Rb=function(a,b){var c=b||document;return O.Eb(c)?c.querySelectorAll("."+a):c.getElementsByClassName?c.getElementsByClassName(a):O.Sb(document,"*",a,b)};O.fd=function(a,b){var c=b||document,d=m;return(d=O.Eb(c)?c.querySelector("."+a):O.Rb(a,b)[0])||m};
O.Eb=function(a){return!(!a.querySelectorAll||!a.querySelector)};O.Sb=function(a,b,c,d){a=d||a;b=b&&"*"!=b?b.toUpperCase():"";if(O.Eb(a)&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,g=0,k;k=a[g];g++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(g=e=0;k=a[g];g++)b=k.className,"function"==typeof b.split&&K(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
O.Xd=O.za;O.oc=function(a,b){Xa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in O.vc?a.setAttribute(O.vc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})};O.vc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
O.fb=function(a){return O.td(a||window)};O.td=function(a){a=a.document;a=O.Ca(a)?a.documentElement:a.body;return new P(a.clientWidth,a.clientHeight)};O.qe=function(){return O.dd(window)};O.dd=function(a){var b=a.document,c=0;if(b){a=O.td(a).height;var c=b.body,d=b.documentElement;if(O.Ca(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{var b=d.scrollHeight,e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,e=c.offsetHeight);c=b>a?b>e?b:e:b<e?b:e}}return c};
O.hf=function(a){return O.la((a||r||window).document).Pb()};O.Pb=function(){return O.ed(document)};O.ed=function(a){var b=O.Qb(a);a=O.gb(a);return new Q(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};O.re=function(){return O.Qb(document)};O.Qb=function(a){return!E&&O.Ca(a)?a.documentElement:a.body};O.Vb=function(a){return a?O.gb(a):window};O.gb=function(a){return a.parentWindow||a.defaultView};O.P=function(a,b,c){return O.Oc(document,arguments)};
O.Oc=function(a,b){var c=b[0],d=b[1];if(!Ib&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',oa(d.name),'"');if(d.type){c.push(' type="',oa(d.type),'"');var e={};Za(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(u(d)?c.className=d:t(d)?O.b.add.apply(m,[c].concat(d)):O.oc(c,d));2<b.length&&O.Cc(a,c,b,2);return c};O.Cc=function(a,b,c,d){function e(c){c&&b.appendChild(u(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];da(g)&&!O.cc(g)?cb(O.dc(g)?hb(g):g,e):e(g)}};
O.Yd=O.P;O.createElement=function(a){return document.createElement(a)};O.createTextNode=function(a){return document.createTextNode(String(a))};O.fe=function(a,b,c){return O.Pc(document,a,b,!!c)};O.Pc=function(a,b,c,d){for(var e=["<tr>"],g=0;g<c;g++)e.push(d?"<td> </td>":"<td></td>");e.push("</tr>");e=e.join("");c=["<table>"];for(g=0;g<b;g++)c.push(e);c.push("</table>");a=a.createElement("DIV");a.innerHTML=c.join("");return a.removeChild(a.firstChild)};O.xe=function(a){return O.wd(document,a)};
O.wd=function(a,b){var c=a.createElement("div");C?(c.innerHTML="<br>"+b,c.removeChild(c.firstChild)):c.innerHTML=b;if(1==c.childNodes.length)return c.removeChild(c.firstChild);for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);return d};O.pe=function(){return O.hb()?"CSS1Compat":"BackCompat"};O.hb=function(){return O.Ca(document)};O.Ca=function(a){return O.$d?O.tc:"CSS1Compat"==a.compatMode};O.canHaveChildren=function(a){if(1!=a.nodeType)return p;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return p}return h};
O.appendChild=function(a,b){a.appendChild(b)};O.append=function(a,b){O.Cc(O.s(a),a,arguments,1)};O.mc=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};O.$b=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};O.Zb=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};O.zd=function(a,b,c){a.insertBefore(b,a.childNodes[c]||m)};O.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):m};O.rb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
O.Xc=function(a){var b,c=a.parentNode;if(c&&11!=c.nodeType){if(a.removeNode)return a.removeNode(p);for(;b=a.firstChild;)c.insertBefore(b,a);return O.removeNode(a)}};O.bd=function(a){return Jb&&a.children!=f?a.children:db(a.childNodes,function(a){return 1==a.nodeType})};O.gd=function(a){return a.firstElementChild!=f?a.firstElementChild:O.bb(a.firstChild,h)};O.jd=function(a){return a.lastElementChild!=f?a.lastElementChild:O.bb(a.lastChild,p)};
O.kd=function(a){return a.nextElementSibling!=f?a.nextElementSibling:O.bb(a.nextSibling,h)};O.rd=function(a){return a.previousElementSibling!=f?a.previousElementSibling:O.bb(a.previousSibling,p)};O.bb=function(a,b){for(;a&&1!=a.nodeType;)a=b?a.nextSibling:a.previousSibling;return a};O.ld=function(a){if(!a)return m;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:m};
O.sd=function(a){if(!a)return m;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};O.cc=function(a){return fa(a)&&0<a.nodeType};O.ac=function(a){return fa(a)&&1==a.nodeType};O.Dd=function(a){return fa(a)&&a.window==a};O.qd=function(a){if(Lb)return a.parentElement;a=a.parentNode;return O.ac(a)?a:m};
O.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
O.Ic=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(C&&!(C&&9<=Ta)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,g=b.parentNode;return e==g?O.Kc(a,b):!c&&O.contains(e,b)?-1*O.Jc(a,b):!d&&O.contains(g,a)?O.Jc(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=
O.s(a);c=d.createRange();c.selectNode(a);c.collapse(h);d=d.createRange();d.selectNode(b);d.collapse(h);return c.compareBoundaryPoints(r.Range.START_TO_END,d)};O.Jc=function(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return O.Kc(d,a)};O.Kc=function(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1};
O.Tc=function(a){var b,c=arguments.length;if(c){if(1==c)return arguments[0]}else return m;var d=[],e=Infinity;for(b=0;b<c;b++){for(var g=[],k=arguments[b];k;)g.unshift(k),k=k.parentNode;d.push(g);e=Math.min(e,g.length)}g=m;for(b=0;b<e;b++){for(var k=d[0][b],l=1;l<c;l++)if(k!=d[l][b])return g;g=k}return g};O.s=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};O.Tb=function(a){return a.contentDocument||a.contentWindow.document};O.hd=function(a){return a.contentWindow||O.gb(O.Tb(a))};
O.xb=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{O.mc(a);var c=O.s(a);a.appendChild(c.createTextNode(String(b)))}};O.pd=function(a){if("outerHTML"in a)return a.outerHTML;var b=O.s(a).createElement("div");b.appendChild(a.cloneNode(h));return b.innerHTML};O.Uc=function(a,b){var c=[];return O.Lb(a,b,c,h)?c[0]:f};O.Vc=function(a,b){var c=[];O.Lb(a,b,c,p);return c};
O.Lb=function(a,b,c,d){if(a!=m)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||O.Lb(a,b,c,d))return h;a=a.nextSibling}return p};O.wc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};O.Na={IMG:" ",BR:"\n"};O.Bd=function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,w(a)&&0<=a&&32768>a):p};O.Qd=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))};
O.eb=function(a){if(Kb&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];O.Ub(a,b,h);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Kb||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a};O.jf=function(a){var b=[];O.Ub(a,b,p);return b.join("")};
O.Ub=function(a,b,c){if(!(a.nodeName in O.wc))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in O.Na)b.push(O.Na[a.nodeName]);else for(a=a.firstChild;a;)O.Ub(a,b,c),a=a.nextSibling};O.nd=function(a){return O.eb(a).length};O.od=function(a,b){for(var c=b||O.s(a).body,d=[];a&&a!=c;){for(var e=a;e=e.previousSibling;)d.unshift(O.eb(e));a=a.parentNode}return d.join("").replace(/^[\s\xa0]+/,"").replace(/ +/g," ").length};
O.md=function(a,b,c){a=[a];for(var d=0,e=m;0<a.length&&d<b;)if(e=a.pop(),!(e.nodeName in O.wc))if(3==e.nodeType)var g=e.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," "),d=d+g.length;else if(e.nodeName in O.Na)d+=O.Na[e.nodeName].length;else for(g=e.childNodes.length-1;0<=g;g--)a.push(e.childNodes[g]);fa(c)&&(c.uf=e?e.nodeValue.length+b-d-1:0,c.nf=e);return e};
O.dc=function(a){if(a&&"number"==typeof a.length){if(fa(a))return"function"==typeof a.item||"string"==typeof a.item;if(ea(a))return"function"==typeof a.item}return p};O.Nb=function(a,b,c){if(!b&&!c)return m;var d=b?b.toUpperCase():m;return O.Mb(a,function(a){return(!d||a.nodeName==d)&&(!c||O.b.ud(a,c))},h)};O.ad=function(a,b){return O.Nb(a,m,b)};O.Mb=function(a,b,c,d){c||(a=a.parentNode);c=d==m;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return m};
O.$c=function(a){try{return a&&a.activeElement}catch(b){}return m};function Mb(a){this.m=a||r.document||document}q=Mb.prototype;q.la=O.la;q.Ob=aa("m");q.ab=function(a){return u(a)?this.m.getElementById(a):a};q.Wd=Mb.prototype.ab;q.za=function(a,b,c){return O.Sb(this.m,a,b,c)};q.Rb=function(a,b){return O.Rb(a,b||this.m)};q.fd=function(a,b){return O.fd(a,b||this.m)};q.Xd=Mb.prototype.za;q.oc=O.oc;q.fb=function(a){return O.fb(a||this.Vb())};q.qe=function(){return O.dd(this.Vb())};
q.P=function(a,b,c){return O.Oc(this.m,arguments)};q.Yd=Mb.prototype.P;q.createElement=function(a){return this.m.createElement(a)};q.createTextNode=function(a){return this.m.createTextNode(String(a))};q.fe=function(a,b,c){return O.Pc(this.m,a,b,!!c)};q.xe=function(a){return O.wd(this.m,a)};q.pe=function(){return this.hb()?"CSS1Compat":"BackCompat"};q.hb=function(){return O.Ca(this.m)};q.Vb=function(){return O.gb(this.m)};q.re=function(){return O.Qb(this.m)};q.Pb=function(){return O.ed(this.m)};
q.$c=function(a){return O.$c(a||this.m)};q.appendChild=O.appendChild;q.append=O.append;q.canHaveChildren=O.canHaveChildren;q.mc=O.mc;q.$b=O.$b;q.Zb=O.Zb;q.zd=O.zd;q.removeNode=O.removeNode;q.rb=O.rb;q.Xc=O.Xc;q.bd=O.bd;q.gd=O.gd;q.jd=O.jd;q.kd=O.kd;q.rd=O.rd;q.ld=O.ld;q.sd=O.sd;q.cc=O.cc;q.ac=O.ac;q.Dd=O.Dd;q.qd=O.qd;q.contains=O.contains;q.Ic=O.Ic;q.Tc=O.Tc;q.s=O.s;q.Tb=O.Tb;q.hd=O.hd;q.xb=O.xb;q.pd=O.pd;q.Uc=O.Uc;q.Vc=O.Vc;q.Bd=O.Bd;q.Qd=O.Qd;q.eb=O.eb;q.nd=O.nd;q.od=O.od;q.md=O.md;q.dc=O.dc;
q.Nb=O.Nb;q.ad=O.ad;q.Mb=O.Mb;C&&F(8);var Nb={},Ob,Pb,Qb;var Rb=O.s;O.s=function(){return Rb.apply(O,arguments)||document};function Sb(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}q=Sb.prototype;q.d=function(){return new Sb(this.top,this.right,this.bottom,this.left)};q.contains=function(a){return!this||!a?p:a instanceof Sb?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};
q.expand=function(a,b,c,d){fa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};q.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};q.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
q.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};q.translate=function(a,b){a instanceof Q?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,w(b)&&(this.top+=b,this.bottom+=b));return this};q.scale=function(a,b){var c=w(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Tb(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}q=Tb.prototype;q.d=function(){return new Tb(this.left,this.top,this.width,this.height)};q.contains=function(a){return a instanceof Tb?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};q.n=function(){return new P(this.width,this.height)};
q.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};q.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};q.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
q.translate=function(a,b){a instanceof Q?(this.left+=a.x,this.top+=a.y):(this.left+=a,w(b)&&(this.top+=b));return this};q.scale=function(a,b){var c=w(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};O.vendor={};O.vendor.se=function(){return E?"Webkit":D?"Moz":C?"ms":B?"O":m};O.vendor.kf=function(){return E?"-webkit":D?"-moz":C?"-ms":B?"-o":m};function Ub(a,b,c){var d;a:if(d=ua(c),a.style[d]===f&&(c=O.vendor.se()+va(c),a.style[c]!==f)){d=c;break a}d&&(a.style[d]=b)}function Vb(a,b){var c;a:{c=O.s(a);if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,m))){c=c[b]||c.getPropertyValue(b)||"";break a}c=""}return c||(a.currentStyle?a.currentStyle[b]:m)||a.style&&a.style[b]}
function Wb(a){var b=a.getBoundingClientRect();C&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Xb(a){if(C&&!(C&&8<=Ta))return a.offsetParent;var b=O.s(a),c=Vb(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Vb(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return m}
function Yb(a,b,c){if(b instanceof P)c=b.height,b=b.width;else if(c==f)throw Error("missing height argument");a.style.width=Zb(b);a.style.height=Zb(c)}function Zb(a){"number"==typeof a&&(a=Math.round(a)+"px");return a}function $b(a){if("none"!=Vb(a,"display"))return ac(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=ac(a);b.display=c;b.position=e;b.visibility=d;return a}
function ac(a){var b=a.offsetWidth,c=a.offsetHeight,d=E&&!b&&!c;return(!s(b)||d)&&a.getBoundingClientRect?(a=Wb(a),new P(a.right-a.left,a.bottom-a.top)):new P(b,c)}function bc(a){var b=O.la(f),c=m;if(C)b=c=b.Ob().createStyleSheet(),C?b.cssText=a:b.innerHTML=a;else{var d=b.za("head")[0];d||(c=b.za("body")[0],d=b.P("head"),c.parentNode.insertBefore(d,c));var e=c=b.P("style");C?e.cssText=a:e.innerHTML=a;b.appendChild(d,c)}return c};var cc,dc,ec,fc=Ca();(cc=E&&Fa&&/(ipod|iphone|ipad)/i.test(fc))&&ea(Object.freeze);dc=E&&/playbook/i.test(fc);ec=s(document.ontouchmove);(function(){var a=[[],[]],b=[[],[]];Ob=function(c,d,e){fb((e?b:a)[d||0],c)};Pb=function(){for(var c,d=0;2>d;d++){for(;a[d].length;)c=a[d][0],c.update(d),c.k=0,c==a[d][0]&&a[d].shift();a[d]=[]}b=[[],[]]}})();(r.CocoonJS_ENV===h?0:document.head.parentNode)&&bc(".lime-director {position:absolute; -webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; -o-transform-origin: 0 0; image-rendering: optimizeSpeed; overflow: hidden;}.lime-director div, .lime-director img, .lime-director canvas {-webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; -o-transform-origin: 0 0; position: absolute; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -webkit-user-drag: none;}.lime-scene {position:absolute; width:100%; height:100%; left: 0px; top: 0px; overflow: hidden; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}.lime-fps {float: left; background: #333; color: #fff; position: absolute; top:0px; left: 0px; padding:2px 4px;}div.lime-layer {position: absolute; left: 0px; top: 0px; width:0px; height:0px; border: none !important;}.lime-cover {position: absolute; left: 0px; top: 0px;}.lime-button {cursor: pointer;}");var R=new function(){this.J=[];this.ha=p;this.Ad=0;this.Jb=1E3/30;this.ba=0};function gc(a,b){this.T=this.Hd=a;this.fc=s(b)?b:-1;this.V=[]}gc.prototype.na=function(a){if(this.V.length)if(this.T>a)this.T-=a;else{var b=this.Hd+a-this.T;this.T=this.Hd-(a-this.T);0>this.T&&(this.T=0);var c;for(a=this.V.length;0<=--a;)(c=this.V[a])&&(c[0]&&ea(c[1]))&&c[1].call(c[2],b);-1!=this.fc&&(this.fc--,0==this.fc&&R.Ud(c[1],c[2]))}};R.J.push(new gc(0));
for(var hc=["webkit","moz"],ic=0;ic<hc.length&&!r.requestAnimationFrame;++ic)r.requestAnimationFrame=window[hc[ic]+"RequestAnimationFrame"],r.cancelAnimationFrame=r[hc[ic]+"CancelAnimationFrame"]||r[hc[ic]+"CancelRequestAnimationFrame"];R.xc=!!r.requestAnimationFrame;R.gf=aa("Jb");R.wf=function(a){this.Jb=a;this.ha&&(R.Qc(),R.yc())};R.ub=function(a,b,c){c=s(c)?c:this.J[0];fb(c.V,[1,a,b]);fb(this.J,c);this.ha||R.yc()};
R.Ud=function(a,b){for(var c=this.J.length;0<=--c;){for(var d=this.J[c],e=d.V,g,k=e.length;0<=--k;)g=e[k],g[1]==a&&g[2]==b&&gb(e,g);0==e.length&&0!=c&&gb(this.J,d)}1==this.J.length&&0==this.J[0].V.length&&R.Qc()};
R.yc=function(){this.ha||(this.ba=ma(),R.xc&&r.requestAnimationFrame?r.mozRequestAnimationFrame&&11>Ka?(r.mozRequestAnimationFrame(),this.Fc=ka(R.de,this),r.addEventListener("MozBeforePaint",this.Fc,p)):(this.Bb=ka(R.be,this),r.requestAnimationFrame(this.Bb)):this.Ad=setInterval(ka(R.Te,this),R.Jb),this.ha=h)};
R.Qc=function(){this.ha&&(R.xc&&r.requestAnimationFrame?r.mozRequestAnimationFrame&&11>Ka?r.removeEventListener("MozBeforePaint",this.Fc,p):r.cancelAnimationFrame(this.Bb):clearInterval(this.Ad),this.ha=p)};R.be=function(a){var b=r.performance,c;b&&(c=b.now||b.webkitNow)?a=b.timing.navigationStart+c.call(b):a||(a=ma());b=a-this.ba;0>b&&(b=1);R.Ib(b);this.ba=a;r.requestAnimationFrame(this.Bb)};R.de=function(a){R.Ib(a.timeStamp-this.ba);this.ba=a.timeStamp;r.mozRequestAnimationFrame()};
R.Te=function(){var a=ma(),b=a-this.ba;0>b&&(b=1);R.Ib(b);this.ba=a};R.Ib=function(a){for(var b=this.J.slice(),c=b.length;0<=--c;)b[c].na(a);1==Qb&&(/Firefox\/18./.test(Ca())&&!Nb.Ze)&&(R.Kd?(document.body.style.MozTransform="",R.Kd=0):(document.body.style.MozTransform="scale(1,1)",R.Kd=1),Qb=0)};R.ee=function(a){for(var b,c,d,e,g=this.J.length;0<=--g;){b=this.J[g];for(e=b.V.length;0<=--e;)d=b.V[e],c=d[2],ea(c.z)&&(c=c.z(),c==a&&(d[0]=h))}};R.bf=function(a,b,c){R.Oe(a,b,c)};
R.Oe=function(a,b,c){R.ub(a,b,new gc(c,1))};var jc;function kc(){G.call(this);this.Ma=[];this.Yb=[];this.yb={};this.lf=p;this.ia=1;this.Sc=lc;this.Ha=0}A(kc,N);q=kc.prototype;q.scope="";q.ma=function(a){this.ia=a;return this};q.play=function(){this.lc=0;this.Wc=this.Ha=1;R.ub(this.na,this);this.dispatchEvent({type:"start"})};q.stop=function(){if(0!=this.Ha){var a=this.Yb;if(mc(this)&&this.Ta)for(var b=a.length;0<=--b;)this.Ta(a[b]);this.Yb=[];this.yb={};this.Ha=0;R.Ud(this.na,this);this.dispatchEvent({type:"stop"})}};q.Gd=function(){return{}};
q.z=function(){return this.Ma[0]?this.Ma[0].z():m};q.na=function(a){this.pc&&(!this.Sd&&this.Ra)&&this.Ra();this.Wc&&(delete this.Wc,a=1);this.lc+=a;this.ef=a;var b=this.lc/(1E3*this.ia);if(isNaN(b)||1<=b)b=1;a=this.Ma;b=this.Sc[0](b);isNaN(b)&&(b=1);for(var c=a.length;0<=--c;)this.update(b,a[c]);1==b&&this.stop()};function mc(a){return 0<a.ia&&nc&&a.qf&&cc}var oc=new function(){this.N={}};
oc.pb=function(a,b){if(a.scope.length){var c=y(b);s(this.N[c])||(this.N[c]={});s(this.N[c][a.scope])&&this.N[c][a.scope].stop();this.N[c][a.scope]=a}};oc.zf=function(a){a=y(a);if(s(this.N[a]))for(var b in this.N[a])this.N[a][b].stop(),delete this.N[a][b]};
(function(){function a(a){var e,g,k,v;k=a;for(g=0;8>g;g++){v=((b*k+c)*k+d)*k-a;if(5E-5>(0<=v?v:0-v))return k;e=(3*b*k+2*c)*k+d;if(1E-6>(0<=e?e:0-e))break;k-=v/e}e=0;g=1;k=a;if(k<e)return e;if(k>g)return g;for(;e<g;){v=((b*k+c)*k+d)*k;if(5E-5>(0<=v-a?v-a:0-(v-a)))break;a>v?e=k:g=k;k=0.5*(g-e)+e}return k}var b=0,c=0,d=0,e=0,g=0,k=0;jc=function(l,n,x,z){return[function(v){d=3*l;c=3*(x-l)-d;b=1-d-c;k=3*n;g=3*(z-n)-k;e=1-k-g;return((e*a(v)+g)*a(v)+k)*a(v)},l,n,x,z]}})();var lc=jc(0.42,0,0.58,1);function pc(){G.call(this)}A(pc,N);pc.prototype.yd=ba;function qc(a){if(a[0]instanceof pc)return a[0];t(a)||(a=hb(arguments));return 2<a.length?new rc(a):u(a[0])&&("rgb("==a[0].substring(0,4)||"rgba("==a[0].substring(0,5)||"#"==a[0].substring(0,1))?new rc(a[0]):new sc(a[0])}pc.prototype.wb=ba;pc.prototype.vb=ba;function rc(a){G.call(this);this.ua=1;this.Pe(a)}A(rc,pc);q=rc.prototype;q.id="color";q.Pe=function(a){var b=a;u(a)?this.Ia=a:(2<arguments.length&&(b=arguments),3<=b.length&&(this.nb=b[0],this.$a=b[1],this.Pa=b[2]),4==b.length&&(this.ua=b[3]),this.Ia=1==this.ua?"rgb("+this.nb+","+this.$a+","+this.Pa+")":"rgba("+this.nb+","+this.$a+","+this.Pa+","+this.ua+")")};q.wb=function(a){a.style.background=this.Ia};q.vb=function(a){a.fillStyle=this.Ia};
q.d=function(){var a=new rc("");a.nb=this.nb;a.$a=this.$a;a.Pa=this.Pa;a.ua=this.ua;a.Ia=this.Ia;return a};function sc(a){G.call(this);a&&ea(a.data)&&(a=a.data());u(a)?(this.G=a,50<this.G.length&&(this.G=this.G.substr(-50)),tc[this.G]?this.o=tc[this.G]:(this.o=new Image,this.o.src=a)):(this.G=a.src,50<this.G.length&&(this.G=this.G.substr(-50)),this.o=tc[this.G]?tc[this.G]:a);uc(this)||M(this.o,"load",this.ye,p,this);tc[this.G]=this.o}A(sc,pc);var tc={};q=sc.prototype;q.id="image";
q.yd=function(a){var b=a.n(),c=this;!b.width&&!b.height&&(uc(this)?a.L(this.o.width,this.o.height):M(this,"load",function(){var a=this.n();!a.width&&!a.height&&this.L(c.o.width,c.o.height)},p,a));uc(this)||M(this,"load",function(){S(a,4)},p,this)};q.ye=function(){this.dispatchEvent({type:"load"})};function uc(a){return!(!a.o||!a.o.width||!a.o.height)}q.L=function(a,b,c){w(a)&&(a=new P(a,b),b=c||p);this.l=a;this.Se=b;return this};
function vc(a,b){var c=b.n().d();a.l&&(a.Se?(c.width*=a.l.width,c.height*=a.l.height):c=a.l);var d=new Q(0,0);a.jc&&(a.of?(d.x=c.width*a.jc.x,d.y=c.height*a.jc.y):d=a.jc);return[c,d]}q.wb=function(a,b){a.style.background="url("+this.o.src+")";var c=vc(this,b),d=c[0],c=c[1],e=wc(b);a.style[xc("BackgroundSize")]=d.width*e+"px "+d.height*e+"px";d=b.R?b.R.sc:0;a.style.backgroundPosition=c.x*e-d+"px "+(c.y*e-d)+"px";this.tf&&(a.style.imageRendering="optimizeQuality")};
q.vb=function(a,b){var c=b.n(),d=T(b);if(c.width&&c.height){var e=vc(this,b),g=e[0],e=e[1];if(0>e.x||0>e.y||c.width>g.width-e.x||c.height>g.height-e.y||!this.Bf||this.vf){var k=this.o;!k.ta&&k.complete&&(k.ta=a.createPattern(k,"repeat"));var l=g.width/k.width,g=g.height/k.height;a.save();a.translate(d.left+e.x,d.top+e.y);a.scale(l,g);a.fillStyle=k.ta||"none";a.fillRect(-e.x/l,-e.y/g,c.width/l,c.height/g)}else{k=this.o;!k.ta&&k.complete&&(k.ta=a.createPattern(k,"repeat"));l=g.width/this.ge.width;g=
g.height/this.ge.height;a.save();a.translate(d.left+e.x,d.top+e.y);a.scale(l,g);a.fillStyle=k.ta||"none";var k=this.Od.left,n=this.Od.top;a.translate(this.Fb.x-k,this.Fb.y-n);a:{d=this.Od;g=new Tb(k-e.x/l-this.Fb.x,n-e.y/g-this.Fb.y,c.width/l,c.height/g);c=Math.max(d.left,g.left);e=Math.min(d.left+d.width,g.left+g.width);if(c<=e&&(l=Math.max(d.top,g.top),d=Math.min(d.top+d.height,g.top+g.height),l<=d)){c=new Tb(c,l,e-c,d-l);break a}c=m}a.fillRect(c.left,c.top,c.width,c.height)}a.restore()}};Sb.prototype.size=function(){return new P(this.right-this.left,this.bottom-this.top)};function yc(){}yc.prototype.U=ba;function U(a){return a.Ec?a.Ec:a}function zc(a,b){Za(b,a);b.Ec=U(a);return b};var V=new yc;V.qa=function(){};V.uc=m;
V.ie=function(){var a=this.mb,b=this.Ea(),c=this.K||1,d=c/a,e;if(this.a){this.Qa&&this.Qa.contains(b)&&(e=Hb(this.Qa.size())/Hb(b.size()))&&1.6>e&&0.5<e?b=this.Qa:1!=this.yf&&0!=this.c.length&&!(this instanceof W)&&!(this instanceof Ac)&&b.expand(12,12,12,12);this.Qa=b;var g=b.size();e=g.d().scale(c).ceil();if(this.a.width!=e.width||this.a.height!=e.height)this.a!==this.w&&(this.a.width=e.width,this.a.height=e.height),this.ob=1;var k=this.v.d();this.g[2]&&(k=this.g[2]);0!=e.width?k.scale(g.width*
d/e.width):k.scale(1/a);a=T(this);this.Cb=(a.left-b.left)*c;this.Db=(a.top-b.top)*c;b=this.n().d();a=this.O;b.width*=a.x;b.height*=a.y;c=b.scale(c);b=this.p.d();this.g[1]&&(b=this.g[1]);b.x*=d;b.y*=d;b.x-=c.width+this.Cb;b.y-=c.height+this.Db;Bc(this.a,100*((this.Cb+c.width)/e.width),100*((this.Db+c.height)/e.height),h);!this.F[1]&&(!this.F[2]&&!this.F[4])&&(c=-(this.u%=360),s(this.g[4])&&(c=-this.g[4]),this.a!==this.w&&Cc(this.a,Dc(new Ec,0.1).translate(b.x,b.y).scale(k.x,k.y).rotate(c)));this.ob&&
(d=this.a.getContext("2d"),c=this.K||1,V.uc?(d.fillStyle=V.uc,d.fillRect(0,0,this.a.width,this.a.height)):d.clearRect(0,0,this.a.width,this.a.height),d.save(),this.a===this.w&&(d.translate(b.x,b.y),d.scale(k.x,k.y),d.save(),d.beginPath(),d.moveTo(0,0),d.lineTo(e.width,0),d.lineTo(e.width,e.height),d.lineTo(0,e.height),d.closePath(),d.restore(),d.clip()),d.translate(this.Cb,this.Db),d.scale(c,c),e=this.n(),k=this.O,d.translate(e.width*k.x,e.height*k.y),this.i.Rc.call(this,d),d.restore(),this.ob=0)}};
V.update=function(){};
V.Rc=function(a){if(this.h&&(this.e!=this.S&&(this.S&&X.Pd.call(this),this.e&&X.zc.call(this)),!this.ca&&!this.Xb&&!(0==this.Y||1==this.bc))){1!=this.Y&&(a.globalAlpha*=this.Y);if(this.e){X.Gc.call(this.e);var b=this.S,c=this.v;a.save();a.save();a.translate(b.Ed.x,b.Ed.y);a.rotate(-b.Fd);this.lb&&a.rotate((this.u%=360)*Math.PI/180);a.beginPath();a.moveTo(0,0);a.lineTo(b.ic/c.x,0);a.lineTo(b.ic/c.x,b.hc/c.y);a.lineTo(0,b.hc/c.y);a.closePath();a.restore();a.clip()}b=new Q(0,0);this.i.U.call(this,a);
for(var d=0,e;e=this.c[d];d++){var g=Fc(e,b).d(),k=e.u%=360,c=e.v;a.save();a.translate(g.x,g.y);a.scale(c.x,c.y);0!=k&&a.rotate(-k*Math.PI/180);this.i.Rc.call(e,a);a.restore()}1!=this.Y&&(a.globalAlpha/=this.Y);this.S&&a.restore()}};function Y(a,b){this.x=a;this.y=b}A(Y,Q);Y.prototype.d=function(){return new Y(this.x,this.y)};Y.prototype.scale=Q.prototype.scale;Y.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Y.prototype.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};var nc,xc,Gc,Hc,Ic,Jc,Kc;(function(){var a=E?"Webkit":D?"Moz":B?"O":C?"ms":"",b=O.P("div").style;Gc="-"+a.toLowerCase()+"-transform";Hc=function(a){return b[a]!==f?a:p};xc=function(b){var d=b.charAt(0).toLowerCase()+b.substr(1),e=a+b;return Hc(b)?b:Hc(d)?d:Hc(e)?e:f}})();function Ec(a){this.zb=[];this.precision=1;this.Ya=h;this.pf&&Dc(this,a)}function Lc(a,b){a.Ya=b;return a}Ec.prototype.scale=function(a,b){this.zb.push("scale("+a+","+b+")");return this};
Ec.prototype.rotate=function(a,b){var c;c=this.Ya&&(cc||dc)?"rotate3d(0, 0, 1, "+a+(b?b:"deg")+")":"rotate("+a+(b?b:"deg")+")";0!=a&&this.zb.push(c);return this};Ec.prototype.translate=function(a,b,c){var d=1/this.precision,e="translate";if(this.Ya&&(cc||dc))e+="3d";e+="("+a*d+"px,"+b*d+"px";if(this.Ya&&(cc||dc))e+=","+(c?c:0)*d+"px";this.zb.push(e+")");return this};function Dc(a,b){if(1!=a.precision){var c=1/a.precision;a.scale(c,c);a.precision=1}1!=b&&(a.scale(b,b),a.precision=b);return a}
Ec.prototype.toString=function(){1!=this.precision&&Dc(this,1);return this.zb.join(" ")};var Cc=function(){var a=xc("Transform");return function(b,c){var d=c.toString();d!=b.Ve&&(b.style[a]=b.Ve=d);Qb=1}}(),Bc=function(){var a=xc("TransformOrigin");return function(b,c,d,e){e=e?"%":"px";c=c+e+" "+d+e;c!=b.We&&(b.style[a]=b.We=c)}}();
(function(){function a(a,b){if(!a.length)return a;for(var e=a.split("),"),g=0;g<e.length-1;g++)e[g]+=")";e=db(e,function(a){return-1==a.indexOf(b)});return e.join(",")}var b=xc("Transition");nc=!!b&&!B;Ic=function(c,d,e,g){if(b){var k=a(c.style[b],d);k.length&&(k+=", ");k+=d+" "+e+"s cubic-bezier("+g[1]+","+g[2]+","+g[3]+","+g[4]+")";c.style[b]=k}};Jc=function(c,d){b&&c&&(c.style[b]=a(c.style[b],d))};Kc=function(a,b,e){if(a.Xe!=b||a.we!=e)a.Xe=b,a.we=e,Yb(a,b,e)}})();var X=new yc;X.qa=function(){for(var a=0,b,c=0;b=this.c[c];c++)b=b instanceof Z?b.q:b,b==this.a.childNodes[a]?a++:(O.contains(this.D,b)&&O.removeNode(b),X.ce(this.D,b,a++))};
X.je=function(){var a=this.n(),b=this.mb,c=this.p,d=this.K||1,e=this.Bc;this.g[1]&&(c=this.g[1]);var g=Math.round(a.width*d),k=Math.round(a.height*d),l=this.v.d();this.g[2]&&(l=this.g[2].d());0!=g?l.scale(a.width/(g*b/d)):l.scale(1/b);Kc(this.a,g,k);Bc(this.a,100*this.O.x,100*this.O.y,h);g=this.O.x*a.width*d;k=this.O.y*a.height*d;a=c.x*d/b-g;b=c.y*d/b-k;c=this.R?this.R.sc:0;(0!=g-c||0!=k-c)&&(this.a==this.D&&this.c.length)&&X.Ge.call(this);this.a!=this.D&&!this.F[1]&&(!this.F[2]&&!this.F[4])&&Cc(this.D,
Lc(new Ec,e).translate(g-c,k-c));this.e!=this.S&&(this.S&&X.Pd.call(this),this.e&&X.zc.call(this));e=Lc(Dc(new Ec,0.1),e);this.e&&(X.Gc.call(this.e),Dc(Dc(e,0.1).translate(-this.e.Ee-g,-this.e.Fe-k).rotate(this.e.Fd,"rad").translate(g,k),1));g=-(this.u%=360);s(this.g[4])&&(g=-this.g[4]);e.translate(a,b).scale(l.x,l.y).rotate(g);!this.F[1]&&(!this.F[2]&&!this.F[4])&&Cc(this.a,e)};
X.update=function(){if(this.a){X.je.call(this);if(!this.F[5]){var a=this.Y;s(this.g[5])&&(a=this.g[5]);if(this.k&16){var b=this.a.style;"opacity"in b?b.opacity=a:"MozOpacity"in b?b.MozOpacity=a:"filter"in b&&(b.filter=""===a?"":"alpha(opacity="+100*a+")")}}this.k&32&&(this.a.style.display=this.Xb?"none":"block");this.ca||this.i.U.call(this,this.a)}};
X.Gc=function(){if(s(this.qc)&&this.qc.h){var a=this.qc,b=T(this),c=new Q(b.left,b.top),d=new Q(b.right,b.top),e=new Q(b.right,b.bottom),b=a.getParent(),c=!this.h?c:b.Z(this.Da(c)),d=!this.h?d:b.Z(this.Da(d)),e=!this.h?e:b.Z(this.Da(e)),b=Math.atan2(c.y-d.y,d.x-c.x),g=d.x-c.x,k=c.y-d.y,l=e.x-d.x,n=e.y-d.y,d=Math.cos(b),e=Math.sin(b);this.ic=Math.round(Math.sqrt(g*g+k*k));this.hc=Math.round(Math.sqrt(l*l+n*n));U(a.i)==X&&(g=a.q,Yb(g,this.ic,this.hc),Cc(g,Lc(Dc(new Ec,0.1),this.Bc).translate(c.x,c.y).rotate(-b,
"rad")));U(this.i)==X&&(this.a.style.display="none");this.Ed=Mc(a,c.d());this.De=h;this.Ee=d*c.x-e*c.y;this.Fe=d*c.y+e*c.x;this.Fd=b}};X.ce=function(a,b,c){c==f||a.childNodes.length<=c?a.appendChild(b):a.insertBefore(b,a.childNodes[c])};X.Ge=function(){this.D=O.P("div");for(var a=document.createDocumentFragment(),b;b=this.a.firstChild;)this.a.removeChild(b),a.appendChild(b);this.D.appendChild(a);this.a.appendChild(this.D)};
X.Pd=function(){this.a!=this.q&&(U(this.i)==X&&(O.removeNode(this.a),O.rb(this.a,this.q),this.q=this.a),this.S.bc=0,this.S=m)};X.zc=function(){U(this.i)==X&&(this.q=O.P("div"),this.q.style.cssText="position:absolute;overflow:hidden;",Bc(this.q,0,0),O.rb(this.q,this.a),this.q.appendChild(this.a));this.e.bc=1;this.e.qc=this;this.S=this.e;S(this.e,1)};function Z(){G.call(this);this.c=[];this.j=m;this.pa={};this.g={};this.F={};this.rc={};this.Bc=h;this.h=p;this.nc=this.Hb=m;this.r={};this.Rd(1);this.C(0,0);this.L(0,0);this.mb=1;this.Ga(0.5,0.5);this.u=0;this.g[4]||S(this,1);this.Dc=0;S(this,7);this.Y=1;Nc(this);Oc(this,U(this.Ja[0]));S(this,64)}A(Z,N);q=Z.prototype;q.Ja=[X,V];function Oc(a,b){if(!a.i||U(a.i)!=b){for(var c=-1,d=0;d<a.Ja.length;d++)if(U(a.Ja[d])==b){c=d;break}if(-1!=c){a.i=a.Ja[d];S(a,64);for(d=0;c=a.c[d];d++)Oc(c,b)}}}
q.lb=function(){return!(this.j&&U(this.j.i)==V)};function Pc(a){return a.lb()?(Qc(a),a):a.j?Pc(a.j):m}function Rc(a){if(!a.j||a instanceof W)return[];var b=a.j.c.indexOf(a);a=Rc(a.j);a.push(b);return a}function Sc(a,b){if(a==b)return 0;for(var c=Rc(a),d=Rc(b),e=0;;){if(c.length<=e)return 1;if(d.length<=e)return-1;if(c[e]==d[e])e++;else return c[e]>d[e]?-1:1}}q.Gb=p;
function S(a,b,c,d){b&&!a.k&&Ob(a,c,d);a.k|=b;if(64==b)for(c=0;d=a.c[c];c++)d instanceof Z&&S(d,64);if(!s(a.k)||!b)a.k=0;b&&a.ca&&(a.De=p,S(a.ca,-1));return a}q.Rd=function(a,b){this.v=1==arguments.length&&w(a)?new Y(a,a):2==arguments.length?new Y(arguments[0],arguments[1]):a;this.g[2]||S(this,2)};q.C=function(a,b){this.p=2==arguments.length?new Q(arguments[0],arguments[1]):a;return this.g[1]?this:S(this,1)};
function Nc(a){if(m!=a.e){if(a.e){var b=a.e;delete b.Ua;Tc(b,b.getParent());delete a.e.ca}a.e=m;a.e&&(b=a.e,b.Ua=h,b.h&&Uc(b,b.getParent()),a.e.ca=a);S(a,4)}}q.Ga=function(a,b){this.O=2==arguments.length?new Y(arguments[0],arguments[1]):a;return S(this,1)};q.n=aa("l");
q.L=function(a,b){var c=this.l,d,e;d=2==arguments.length?new P(arguments[0],arguments[1]):a;var g=this.O;if(c&&this.c.length)for(var k=0;k<this.c.length;k++){var l=this.c[k];if(l.oe){var n=l.Dc;if(0!=n){var x=Vc(l);e=c.width;var z=x.left+g.x*c.width,v=x.right-x.left,I=e-x.right-g.x*c.width;n&1&&(e-=z);n&2&&(e-=v);n&4&&(e-=I);e!=c.width&&(e=(d.width-e)/(c.width-e),n&1&&(z*=e),n&2&&(v*=e));e=c.height;var I=x.top+g.y*c.height,La=x.bottom-x.top,x=e-x.bottom-g.y*c.height;n&8&&(e-=I);n&16&&(e-=La);n&32&&
(e-=x);e!=c.height&&(e=(d.height-e)/(c.height-e),n&8&&(I*=e),n&16&&(La*=e));n=l.O;l.L(v,La);l.C(z+n.x*v-g.x*d.width,I+n.y*La-g.y*d.height)}}}this.l=d;return S(this,2)};function wc(a){a.K||Wc(a);return a.K}function Wc(a){var b=s(a.K)?a.K:a.mb;a.j&&a.j.K&&(b=a.mb*a.j.K);if(b!=a.K){a.K=b;for(var b=0,c;c=a.c[b];b++)c instanceof Z&&Wc(c);S(a,2)}}q.oe=aa("Dc");q.Z=function(a){if(!this.h)return a;a=this.getParent().Z(a);return Mc(this,a)};
function Mc(a,b){if(!a.getParent())return m;b.x-=a.p.x;b.y-=a.p.y;b.x/=a.v.x;b.y/=a.v.y;if(0!=a.u){var c=b.d(),d=a.u*Math.PI/180,e=Math.cos(d),d=Math.sin(d);b.x=e*c.x-d*c.y;b.y=e*c.y+d*c.x}return b}q.Da=function(a){return!this.h?a:this.getParent().Da(Fc(this,a))};function Fc(a,b){if(!a.getParent())return b;var c=b.d();if(0!=a.u){var d=-a.u*Math.PI/180,e=Math.cos(d),d=Math.sin(d);c.x=e*b.x-d*b.y;c.y=e*b.y+d*b.x}c.x*=a.v.x;c.y*=a.v.y;c.x+=a.p.x;c.y+=a.p.y;return c}
function Xc(a){function b(){this.a=this.q=this.D=O.P(c);this.Kb&&O.b.add(this.a,this.Kb);this.k|=-1}var c=U(a.i)==V?"canvas":"div";if(a.a){if(a.a.tagName.toLowerCase()!=c){var d=a.q;b.call(a);d.parentNode&&d.parentNode.replaceChild(a.q,d)}}else b.call(a)}function Qc(a){a.lb()?Xc(a):Yc(a)}function Yc(a){a.q&&(O.removeNode(a.q),delete a.a,delete a.q,delete a.D)}
q.qa=function(){this.k&=-65;Qc(this);if(this.j&&this.j.k&64)this.j.qa();else if(this.lb()){for(var a=0,b;b=this.c[a];a++)b instanceof Z&&b.qa();this.i.qa.call(this)}};
q.update=function(a){var b,c;a=a||0;if(!this.h)return S(this,0,a);y(this);this.k&64&&this.qa();var d=U(this.i)==X||a;if(d){for(var e in this.rc)delete this.g[e],delete this.F[e],b=5==parseInt(e,10)?"opacity":Gc,Jc(this.a,b),this.a!=this.D&&Jc(this.cf,b);b=0;for(e in this.pa)c=this.pa[e],c[3]||(c[3]=1,1==e&&this.Le!=this.p&&(S(this,1,0,h),b=1),2==e&&this.Ne!=this.v&&(S(this,2,0,h),b=1),5==e&&this.Je!=this.Y&&(S(this,16,0,h),b=1),4==e&&this.Me!=this.u&&(S(this,128,0,h),b=1));if(!b)for(e in this.pa){c=
this.pa[e];b=5==parseInt(e,10)?"opacity":Gc;if(U(this.i)==X||"opacity"!=b)this.g[e]=c[0],Ic(this.a,b,c[1],c[2]),this.a!=this.D&&b==Gc&&Ic(this.D,b,c[1],c[2]);delete this.pa[e]}this.Le=this.p;this.Ne=this.v;this.Je=this.Y;this.Me=this.u;this.rc={}}a?this.i.ie.call(this):(U(this.i)==V&&(c=Pc(this),c.ob=1,c==this&&(1==this.k&&!this.e)&&(c.ob=0),Ob(Pc(this),1)),this.i.update.call(this));if(d)for(e in this.g)this.g[e]&&(this.F[e]=h);if(this.$)for(e=0;e<this.$.length;e++)S(this.$[e],7);S(this,0,a)};
q.getParent=function(){return this.j?this.j:m};q.appendChild=function(a,b){a instanceof Z&&a.getParent()?a.getParent().removeChild(a):a.parentNode&&O.removeNode(a);a.j=this;b==f?this.c.push(a):ib(this.c,b,0,a);U(this.i)!=X&&Oc(a,U(this.i));a instanceof Z&&(Wc(a),this.h&&Zc(a));return S(this,64)};
q.removeChild=function(a){a=this.c.indexOf(a);if(0<=a&&this.c.length>a){var b=0<=a&&this.c.length>a?this.c[a]:m;b.ca&&Nc(b.ca);b instanceof Z?(this.h&&$c(b),Yc(b),b.j=m):O.removeNode(b);this.c.splice(a,1);a=S(this,64)}else a=this;return a};q.addEventListener=function(a){ec&&"mouse"==a.substring(0,5)||(s(this.r[a])||(this.r[a]=[0,0]),this.h&&0==this.r[a][0]&&(this.r[a][0]=1,this.z().ka.pb(this,a)),this.r[a][1]++)};
q.removeEventListener=function(a){ec&&"mouse"==a.substring(0,5)||(this.h&&1==this.r[a][1]&&(this.r[a][0]=0,this.z().ka.qb(this,a)),this.r[a][1]--,this.r[a][1]||delete this.r[a])};q.z=function(){return!this.h?m:this.Hb};q.cb=function(){return!this.h?m:this.nc};function $c(a){var b;a.Ua||Tc(a,a.getParent());for(var c=0;b=a.c[c];c++)b instanceof Z&&$c(b);for(var d in a.r){a.r[d][0]=0;if(!a.z())debugger;a.z().ka.qb(a,d)}ad(a.z().ka,a);a.h=p;a.Hb=m;a.nc=m}
function Zc(a){a.h=h;a.Hb=a.j.z();a.nc=a.j.cb();for(var b=0,c;c=a.c[b];b++)c instanceof Z&&Zc(c);for(var d in a.r)a.r[d][0]=1,a.z().ka.pb(a,d);a.Ua&&(a.Ua=h,a.h&&Uc(a,a.getParent()));ad(a.z().ka,a)}function Uc(a,b){b.$||(b.$=[]);fb(b.$,a);!b&&!(b.getParent()instanceof W)&&Uc(a,b.getParent())}function Tc(a,b){b&&b.$&&(gb(b.$,a),Tc(a,b.getParent()))}function T(a){var b=a.n();a=a.O;return new Sb(-b.height*a.y,b.width*(1-a.x),b.height*(1-a.y),-b.width*a.x)}
function Vc(a,b){var c=b||T(a),d=new Q(c.left,c.top),e=new Q(c.right,c.top),g=new Q(c.left,c.bottom),c=new Q(c.right,c.bottom),d=Fc(a,d),e=Fc(a,e),g=Fc(a,g),c=Fc(a,c);return new Sb(Math.floor(Math.min(d.y,e.y,g.y,c.y)),Math.ceil(Math.max(d.x,e.x,g.x,c.x)),Math.ceil(Math.max(d.y,e.y,g.y,c.y)),Math.floor(Math.min(d.x,e.x,g.x,c.x)))}
q.Ea=function(){var a=T(this);a.left==a.right&&this.c.length&&(a=Vc(this.c[0],this.c[0].Ea()));for(var b=0,c;c=this.c[b];b++)if(1!=c.bc){var d=a;c=Vc(c,c.Ea());d.left=Math.min(d.left,c.left);d.top=Math.min(d.top,c.top);d.right=Math.max(d.right,c.right);d.bottom=Math.max(d.bottom,c.bottom)}return a};q.Ta=function(a){this.rc[a]=1};q.vd=function(a){var b=this.Z(a.Fa);return T(this).contains(b)?(a.position=b,h):p};V.M={};X.M={};function bd(){Z.call(this);this.R=this.ya=m}A(bd,Z);bd.prototype.id="sprite";bd.prototype.Ja=[zc(X,X.M),zc(V,V.M)];bd.prototype.Qe=function(a,b,c,d){this.ya=qc(hb(arguments));this.ya.yd(this);S(this,4);return this};X.M.U=function(a){this.ya===m||this.ya.wb(a,this);this.R===m?u("border-width")?Ub(a,0,"border-width"):Xa("border-width",la(Ub,a)):this.R.wb(a,this)};
V.M.U=function(a){var b=this.n(),c=this.ya,d=this.R;if(c||d){var e=T(this);c&&(c.vb(a,this),"image"!=c.id&&"frame"!=c.id&&a.fillRect(e.left,e.top,b.width,b.height));if(d&&(d.vb(a,this),"sprite"==this.id||"label"==this.id))c=d.sc/2,a.strokeRect(e.left+c,e.top+c,b.width-2*c,b.height-2*c)}};function cd(a,b){kc.call(this);this.va=2==arguments.length?new Q(arguments[0],arguments[1]):a}A(cd,kc);q=cd.prototype;q.scope="move";q.Gd=function(a){mc(this)&&(a.pa[1]=[new Q(a.p.x+this.va.x,a.p.y+this.va.y),this.ia,this.Sc,0],S(a,1));return{Td:a.p}};q.Ra=function(){if(this.pc){var a=this.va,b=new Q(0,0),c=a.x-b.x,a=a.y-b.y;this.ma(this.pc*Math.sqrt(c*c+a*a)/100);this.Sd=1}};
q.update=function(a,b){if(0!=this.Ha){var c;c=y(b);s(this.yb[c])||(oc.pb(this,b),this.Ha=1,fb(this.Yb,b),this.pc&&(!this.Sd&&this.Ra)&&this.Ra(),this.yb[c]=this.Gd(b));c=this.yb[c];b.C(c.Td.x+this.va.x*a,c.Td.y+this.va.y*a)}};q.Ta=function(a){mc(this)&&(a.Ta(1),S(a,1))};function W(){Z.call(this);this.Ga(0,0);this.Kb="lime-scene"}A(W,Z);W.prototype.cb=function(){return this};W.prototype.Ea=function(){return T(this)};function dd(){W.call(this);this.fa=[];M(new Bb(document),"key",this.Ie,p,this)}A(dd,W);var ed=m,fd={37:"left",39:"right",38:"up",40:"down"};
dd.prototype.create=function(){for(var a,b=0;b<this.fa.length;b++){a=this.fa[b];a.Qe("res".concat("/",a.wa.join("_"),".jpg")).C(-1E3,0).L(480,320).Ga(0,0);0==b&&(a.C(0,0),ed=a);for(var c=a,d=b,e=c.tb[0],g=c.tb[1],k={},l=f,n=0;n<c.wa.length;n++){switch(c.wa[n]){case "right":l=d+1;break;case "left":l=d-1;break;case "up":l=gd(this,e+1,g);break;case "down":l=gd(this,e-1,g)}k[c.wa[n]]=this.fa[l]}a.Jd=k;this.appendChild(a)}hd(this,156,0,168,50,"up");hd(this,id-50,103,50,115,"right");hd(this,156,jd-50,168,
50,"down");hd(this,0,103,50,115,"left")};function gd(a,b,c){for(var d=0;d<a.fa.length;d++)if(a.fa[d].tb[0]==b&&a.fa[d].tb[1]==c)return d;return m}var kd=p;dd.prototype.move=function(a){if(!(K(ed.wa,a)===p||kd===h)){var b=ed.Jd[a],c;switch(a){case "left":b.C(-id,0);c=new Q(id,0);break;case "right":b.C(id,0);c=new Q(-id,0);break;case "up":b.C(0,-jd);c=new Q(0,jd);break;case "down":b.C(0,jd),c=new Q(0,-jd)}a=(new cd(c)).ma(0.5);fb(a.Ma,ed);fb(a.Ma,b);a.play();kd=h;M(a,"stop",function(){kd=p;ed=b})}};
dd.prototype.Ie=function(a){this.move(fd[a.keyCode])};function hd(a,b,c,d,e,g){b=(new bd).Ga(0,0).C(b,c).L(d,e);M(b,["mousedown","touchstart"],function(){this.move(g)},p,a);a.appendChild(b)};function $(a,b){bd.call(this);this.wa=a;this.tb=b;this.Jd=[]}A($,bd);function ld(){dd.call(this);this.fa=[new $(["up","right"],[0,0]),new $(["right","left"],[0,1]),new $(["left"],[0,2]),new $(["up","down"],[1,0]),new $(["right","down"],[2,0]),new $(["up","left"],[2,1]),new $(["right","down"],[3,1]),new $(["up","left"],[3,2]),new $(["up","down"],[4,2]),new $(["right"],[5,0]),new $(["right","left"],[5,1]),new $(["down","left"],[5,2])]}A(ld,dd);V.sa={};X.sa={};zc(X.M,X.sa);zc(V.M,V.sa);function md(a){var b=Math.abs(a.I.y)+2*a.ga;return a.mf?(a.Be+b)/a.Za:a.Be+b/a.Za}
X.sa.U=function(a){X.M.U.call(this,a);var b=a.style;this.k&4&&(this.He?a.innerHTML=oa(this.oa).replace(/\n/g,"<br/>"):O.xb(a,this.oa));this.k&8&&(b.lineHeight=md(this),b.padding=eb(this.Q,function(a){return a*wc(this)},this).join("px ")+"px",b.color=this.le,b.fontFamily=this.me,b.fontSize=this.Za*wc(this)+"px",b.fontWeight=this.ff,b.textAlign=this.ae,b.textShadow=this.ga||this.I.x||this.I.y?this.Re+" "+this.I.x+"px "+this.I.y+"px "+this.ga+"px":"")};
V.sa.U=function(a){V.M.U.call(this,a);var b=T(this),c=-b.left-this.Q[3]+b.right-this.Q[1]+Math.abs(this.I.x)+Math.abs(2*this.ga),d=0;if(!this.Vd){var d=[],e=this.oa.length,g=this.oa.match(D?/[\s\.]+/g:/[\s-\.]+/g),k=0;if(g)for(var l=0;l<g.length;l++){var n=g[l],n=this.oa.indexOf(n,k)+n.length;d.push(this.oa.substring(k,n));k=n}k!=e&&d.push(this.oa.substring(k,e));this.Vd=d;d=1}g=this.R?this.R.sc:0;a.save();e=this.ae;"left"==e?a.translate(b.left+this.Q[3]+g,b.top+this.Q[0]+g):"right"==e?a.translate(b.right-
this.Q[1]-g,b.top+this.Q[0]+g):"center"==e&&a.translate(0.5*(b.left+this.Q[3]+b.right-this.Q[1]),b.top+this.Q[0]+g);b=md(this);a.fillStyle=this.le;a.font=this.Za+"px "+this.me;a.textAlign=e;a.textBaseline="top";if(this.ga||this.I.x||this.I.y)a.shadowColor=this.Re,a.shadowOffsetX=this.I.x,a.shadowOffsetY=this.I.y,a.shadowBlur=this.ga;if(d||c!=this.Ae){d=[];e="";g=this.Vd;for(k=0;k<g.length;k++){l=0;if(this.He&&(n=g[k].match(/\n/g)))l=n.length;""==e?e=g[k]:(n=a.measureText(na(e+g[k])),n.width>c?(d.push(na(e)),
l--,e=g[k]):e+=g[k]);for(n=0;n<l;n++)d.push(na(e)),e=""}d.push(e);this.gc=d;this.Ae=c}if(this.gc){c=b*this.Za;b=(s(this.ga)?Math.abs(this.ga):0)+(s(this.I)?Math.abs(this.I.y)/2:0);c=E?Math.floor(c):Math.round(c);b=D?b+5:b;for(d=0;d<this.gc.length;d++)a.fillText(this.gc[d],0,c*d+b-0.5)}a.restore()};function nd(){W.call(this);this.a.style.cssText="background:rgba(255,255,255,.8)"}A(nd,W);function od(a){this.Va=a;this.identifier=0}od.prototype.qb=function(a){var b=s(a),c=t(a)?a:[a];if(a=this.Va.Ka[this.identifier]){var d=this;a=db(a,function(a){return!s(d.La)||a[0]==d.La&&(!b||K(c,a[1]))?(tb(a[0],a[1],a[2]),p):h});a.length?this.Va.Ka[this.identifier]=a:delete this.Va.Ka[this.identifier]}};od.prototype.d=function(){var a=new od(this.Va);Za(a,this);return a};function pd(a){this.aa=a;this.A={};this.Ka={}}pd.prototype.pb=function(a,b){s(this.A[b])?K(this.A[b],a)||(this.A[b].push(a),this.A[b].sort(Sc)):(this.A[b]=[a],M("touch"==b.substring(0,5)&&a!=this.aa?document:"key"==b.substring(0,3)?window:this.aa.w,b,this,p,this))};pd.prototype.qb=function(a,b){s(this.A[b])&&(gb(this.A[b],a),this.A[b].length||(tb(this.aa.w,b,this,p,this),delete this.A[b]))};function ad(a,b){for(var c in a.A){var d=a.A[c];K(d,b)&&d.sort(Sc)}}
pd.prototype.handleEvent=function(a){if(s(this.A[a.type])){for(var b=this.A[a.type].slice(),c=p,d=0,e=0;!e;){var g=new od(this);g.type=a.type;g.event=a;if("touch"==a.type.substring(0,5)){var k=a.xa.changedTouches[d];g.Fa=new Q(k.pageX,k.pageY);g.identifier=k.identifier;d++;d>=a.xa.changedTouches.length&&(e=1)}else g.Fa=new Q(a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,a.clientY+document.body.scrollTop+document.documentElement.scrollTop),e=1;if(s(this.Ka[g.identifier])){for(var k=
this.Ka[g.identifier],l=0;l<k.length;l++)if(k[l][1]==a.type||t(k[l][1])&&K(k[l][1],a.type)){var n=k[l][0];g.La=n;g.position=n.Z(g.Fa);k[l][2].call(n,g);c=h}if("touchend"==a.type||"touchcancel"==a.type||"mouseup"==a.type||"keyup"==a.type)delete g.La,g.qb()}else for(l=0;l<b.length;l++)if(n=b[l],!((this.aa.f.length?this.aa.f[this.aa.f.length-1]:m)!=n.cb()&&n!=this.aa)&&!n.Xb&&n.h)if(g.La=n,n.vd(g)||"key"==a.type.substring(0,3))if(g.La=n,n.dispatchEvent(g),c=h,g.event.da)break}c&&a.preventDefault()}};function qd(a){G.call(this);this.ra=a||window;this.Ce=M(this.ra,"resize",this.ve,p,this);this.l=O.fb(this.ra);if(E&&Ia||B&&this.ra.self!=this.ra.top)this.Ye=window.setInterval(ka(this.Hc,this),rd)}A(qd,N);var rd=500;q=qd.prototype;q.Ce=m;q.ra=m;q.l=m;q.Ye=m;q.n=function(){return this.l?this.l.d():m};q.ve=function(){this.Hc()};q.Hc=function(){var a=O.fb(this.ra);if(!(a==this.l||(!a||!this.l?0:a.width==this.l.width&&a.height==this.l.height)))this.l=a,this.dispatchEvent("resize")};function sd(a,b){G.call(this);this.ia=1;this.rf=a;this.xd=b;this.ke=p}A(sd,N);sd.prototype.ma=function(a){this.ia=a;return this};sd.prototype.start=function(){this.xd.C(new Q(0,0));var a=this.xd;a.Xb=p;S(a,32);a.af=0;this.finish()};sd.prototype.finish=function(){this.dispatchEvent(new H("end"));this.ke=h};function Ac(a,b,c){Z.call(this);this.w=a;this.h=h;this.Ga(0,0);this.f=[];this.Nc=[];this.Kb="lime-director";a.getContext&&(this.w.tagName||(this.w.tagName="CANVAS"),Oc(this,V),this.a=this.w);Qc(this);this.a&&this.a!==this.w&&a.appendChild(this.a);E&&Fa&&(this.Mc=document.createElement("div"),O.b.add(this.Mc,"lime-cover-below"),O.$b(this.Mc,this.a),this.Lc=document.createElement("div"),O.b.add(this.Lc,"lime-cover-above"),O.Zb(this.Lc,this.a));"absolute"!=a.style.position&&(a.style.position="relative");
a.style.overflow="hidden";if(a==document.body){bc("html,body{margin:0;padding:0;height:100%;}");var d=document.createElement("meta");d.name="viewport";var e="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1.0,user-scalable=no";/android/i.test(navigator.userAgent)&&(e+=",target-densityDpi=device-dpi");d.content=e;document.getElementsByTagName("head").item(0).appendChild(d);if(Fa&&!r.navigator.xf){var g=this;setTimeout(function(){window.scrollTo(0,0);g.Ba()},100)}}var k,l=$b(a);
this.L(new P(k=b||l.width||400,c||l.height*k/l.width||400));this.Wa&&O.removeNode(this.Yc);this.Wa=p;td(this);b=new qd;M(b,"resize",this.Ba,p,this);M(r,"orientationchange",this.Ba,p,this);R.ub(this.na,this);this.w===this.a&&R.ub(function(){var b=$b(a);if(b.width!==l.width||b.height!==l.height)this.Ba(),l=b},this);this.ka=new pd(this);M(this,["touchmove","touchstart"],function(a){a.event.preventDefault()},p,this);M(this,["mouseup","touchend","mouseout","touchcancel"],function(){},p);this.Ba()}
A(Ac,Z);function td(a){a.ze=p;R.ee(a);if(a.ze){a.kc=new (a.sf||nd);var b=a.kc,c;b.L(a.n().d());s(f)&&a.f.length&&(c=a.f[a.f.length-1],c=new f(c,b),s(f)&&c.ma(f),b.a.style.display="none");a.f.push(b);a.appendChild(b);c&&c.start()}else a.kc&&(ud(a),delete a.kc)}q=Ac.prototype;q.z=function(){return this};q.cb=function(){return m};q.na=function(a){this.Wa&&(this.Zc++,this.Oa+=a,100<this.Oa&&(this.ne=1E3*this.Zc/this.Oa,O.xb(this.Yc,this.ne.toFixed(2)),this.Oa=this.Zc=0));Pb()};
function vd(a,b){b.L(a.n().d());var c=m;a.f.length&&(c=a.f[a.f.length-1]);for(var d=[],e=a.f.length;0<=--e;)d.push(a.f[e]);a.f.length=0;a.f.push(b);a.appendChild(b);c=new sd(c,b);sb(c,"end",function(){for(var a=d.length;0<=--a;)this.removeChild(d[a]);d.length=0},p,a);s(f)&&c.ma(f);c.start()}
function ud(a){var b,c=a.f.length?a.f[a.f.length-1]:m;if(c!==m){var d=function(){this.removeChild(c);this.f.pop();c=m};s(f)&&1<a.f.length?(b=new f(c,a.f[a.f.length-2]),s(f)&&b.ma(f),sb(b,"end",d,p,a)):d.call(a);b&&b.start()}}q.Z=function(a){a=a.d();a.x-=this.Xa.x+this.p.x;a.y-=this.Xa.y+this.p.y;a.x/=this.v.x;a.y/=this.v.y;return a};q.Da=function(a){a=a.d();a.x*=this.v.x;a.y*=this.v.y;a.x+=this.Xa.x+this.p.x;a.y+=this.Xa.y+this.p.y;return a};q.Ea=function(){return T(this)};
q.update=function(){Z.prototype.update.apply(this,arguments);for(var a=this.Nc.length;0<=--a;)this.Nc[a].update()};
q.Ba=function(){var a=$b(this.w);this.w==document.body&&(window.scrollTo(0,0),w(window.innerHeight)&&(a.height=window.innerHeight));var b;b=this.n().d();b=b.scale(b.width/b.height>a.width/a.height?a.width/b.width:a.height/b.height);var c=b.width/this.n().width;this.Rd(c);a.width/a.height<b.width/b.height?this.C(0,(a.height-b.height)/2):this.C((a.width-b.width)/2,0);var c=this.w,d,e=O.s(c),g=Vb(c,"position"),k=D&&e.getBoxObjectFor&&!c.getBoundingClientRect&&"absolute"==g&&(d=e.getBoxObjectFor(c))&&
(0>d.screenX||0>d.screenY);b=new Q(0,0);var l;d=e?O.s(e):O.Ob();l=C&&!(C&&9<=Ta)&&!O.la(d).hb()?d.body:d.documentElement;if(c!=l)if(c.getBoundingClientRect)d=Wb(c),c=O.la(e).Pb(),b.x=d.left+c.x,b.y=d.top+c.y;else if(e.getBoxObjectFor&&!k)d=e.getBoxObjectFor(c),c=e.getBoxObjectFor(l),b.x=d.screenX-c.screenX,b.y=d.screenY-c.screenY;else{d=c;do{b.x+=d.offsetLeft;b.y+=d.offsetTop;d!=c&&(b.x+=d.clientLeft||0,b.y+=d.clientTop||0);if(E&&"fixed"==Vb(d,"position")){b.x+=e.body.scrollLeft;b.y+=e.body.scrollTop;
break}d=d.offsetParent}while(d&&d!=c);if(B||E&&"absolute"==g)b.y-=e.body.offsetTop;for(d=c;(d=Xb(d))&&d!=e.body&&d!=l;)if(b.x-=d.scrollLeft,!B||"TR"!=d.tagName)b.y-=d.scrollTop}this.Xa=b;Fa&&this.a.parentNode==document.body&&(this.Ld&&(d=this.Ld,O.removeNode(d.ownerNode||d.owningElement||d)),this.Ld=bc("html{height:"+(a.height+120)+"px;overflow:hidden;}"))};q.vd=function(a){a&&a.Fa&&(a.position=this.Z(a.Fa));return h};var id=480,jd=320;function wd(){var a=new Ac(document.getElementById("maze"),id,jd),b=new ld;b.create();vd(a,b);a.Wa&&O.removeNode(a.Yc);a.Wa=p}var xd=["maze","start"],yd=r;!(xd[0]in yd)&&yd.execScript&&yd.execScript("var "+xd[0]);for(var zd;xd.length&&(zd=xd.shift());)!xd.length&&s(wd)?yd[zd]=wd:yd=yd[zd]?yd[zd]:yd[zd]={};