diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/Adventure Game Adam Weinstein/Adventure Game.html b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/Adventure Game Adam Weinstein/Adventure Game.html new file mode 100644 index 0000000..486fd73 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/Adventure Game Adam Weinstein/Adventure Game.html @@ -0,0 +1,136 @@ + + + + + Unity Web Player | New Unity Project + + + + + + +

Unity Web Player | New Unity Project

+
+
+
+ + Unity Web Player. Install now! + +
+
+ + Unity Web Player. Install now! Restart your browser after install. + +
+
+
+ + + diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/Adventure Game Adam Weinstein/Adventure Game.unity3d b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/Adventure Game Adam Weinstein/Adventure Game.unity3d new file mode 100644 index 0000000..53127a0 Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/Adventure Game Adam Weinstein/Adventure Game.unity3d differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/KyleChooseYourOwn/20151006 ChooseYourOwn.html b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/KyleChooseYourOwn/20151006 ChooseYourOwn.html new file mode 100644 index 0000000..8389e49 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/KyleChooseYourOwn/20151006 ChooseYourOwn.html @@ -0,0 +1,136 @@ + + + + + Unity Web Player | 20150915 ChooseYourOwn + + + + + + +

Unity Web Player | 20150915 ChooseYourOwn

+
+
+
+ + Unity Web Player. Install now! + +
+
+ + Unity Web Player. Install now! Restart your browser after install. + +
+
+
+ + + diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/KyleChooseYourOwn/20151006 ChooseYourOwn.unity3d b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/KyleChooseYourOwn/20151006 ChooseYourOwn.unity3d new file mode 100644 index 0000000..b40c0e8 Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/KyleChooseYourOwn/20151006 ChooseYourOwn.unity3d differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/RhythymRoll_WebBuild/WebBuild.html b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/RhythymRoll_WebBuild/WebBuild.html new file mode 100644 index 0000000..61230f2 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/RhythymRoll_WebBuild/WebBuild.html @@ -0,0 +1,136 @@ + + + + + Unity Web Player | RhythmRunPrototype + + + + + + +

Unity Web Player | RhythmRunPrototype

+
+
+
+ + Unity Web Player. Install now! + +
+
+ + Unity Web Player. Install now! Restart your browser after install. + +
+
+
+ + + diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/RhythymRoll_WebBuild/WebBuild.unity3d b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/RhythymRoll_WebBuild/WebBuild.unity3d new file mode 100644 index 0000000..3deb9eb Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/RhythymRoll_WebBuild/WebBuild.unity3d differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/TopDownWebBuild/TopDownWebBuild.html b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/TopDownWebBuild/TopDownWebBuild.html new file mode 100644 index 0000000..c5f5278 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/TopDownWebBuild/TopDownWebBuild.html @@ -0,0 +1,136 @@ + + + + + Unity Web Player | Top Down Game + + + + + + +

Unity Web Player | Top Down Game

+
+
+
+ + Unity Web Player. Install now! + +
+
+ + Unity Web Player. Install now! Restart your browser after install. + +
+
+
+ + + diff --git a/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/TopDownWebBuild/TopDownWebBuild.unity3d b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/TopDownWebBuild/TopDownWebBuild.unity3d new file mode 100644 index 0000000..dd5355a Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2015-Spring/TopDownWebBuild/TopDownWebBuild.unity3d differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/Balloon.capx b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/Balloon.capx new file mode 100644 index 0000000..e721843 Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/Balloon.capx differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/BalloonAlpha.png b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/BalloonAlpha.png new file mode 100644 index 0000000..5b9c54a Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/BalloonAlpha.png differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/BalloonBeta.png b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/BalloonBeta.png new file mode 100644 index 0000000..42883fe Binary files /dev/null and b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/BalloonBeta.png differ diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/Max.txt b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/Max.txt new file mode 100644 index 0000000..5787ef0 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/Max.txt @@ -0,0 +1 @@ +Hey I'm max. \ No newline at end of file diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/README.md b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/README.md new file mode 100644 index 0000000..007a864 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/README.md @@ -0,0 +1,3 @@ +# Balloon Game + +Above is the prototype. You can view the prototype at [http://webdesign.digitalmediauconn.org/bak11004/games/BalloonPrototype/](http://webdesign.digitalmediauconn.org/bak11004/games/BalloonPrototype/) \ No newline at end of file diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/appmanifest.json b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/appmanifest.json new file mode 100644 index 0000000..d6e2cbc --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/appmanifest.json @@ -0,0 +1,28 @@ +{ + "name": "BalloonMan", + "short_name": "BalloonMan", + "start_url": "index.html", + "display": "fullscreen", + "orientation": "any", + "icons": [{ + "src": "icon-16.png", + "sizes": "16x16", + "type": "image/png" + }, { + "src": "icon-32.png", + "sizes": "32x32", + "type": "image/png" + }, { + "src": "icon-128.png", + "sizes": "128x128", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "144x144", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "256x256", + "type": "image/png" + }] +} diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/c2runtime.js b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/c2runtime.js new file mode 100644 index 0000000..f57ed43 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/c2runtime.js @@ -0,0 +1,444 @@ +// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com +'use strict';var aa,ba,ca,y,da,ea,fa,Q,ha,ia,ja,ma,na,oa,R,ra,sa,ta,ua,wa,xa,ya,T,za,Aa,Ba,Ca,Da,X,Ea,Fa,Ga,Ha,Ka,La,Ma,Na,Pa,Qa,Ra,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc={},ec={};"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,d,h,e){this.set(a,d,h,e)}function l(){this.Lb=this.Kb=this.Ob=this.Nb=this.Xb=this.Wb=this.wb=this.ub=0}function n(a,d,h,e){ae?d:e):(I=ah?d:h):he?a:e):(I=dh?a:h)}function m(){this.items=this.ee=null;this.fi=0;C&&(this.ee=new Set);this.kh=[];this.Ue=!0}function k(a){G[P++]=a}function q(){this.T=this.pl=this.y=this.Sl=0}function b(a){this.ib=[];this.Cj=this.Ej=this.Fj=this.Dj=0;this.cj(a)}function a(a,d){this.Wl= +a;this.Vl=d;this.cells={}}function f(a,d){this.Wl=a;this.Vl=d;this.cells={}}function p(a,d,h){var e;return N.length?(e=N.pop(),e.Im=a,e.x=d,e.y=h,e):new aa(a,d,h)}function d(a,d,h){this.Im=a;this.x=d;this.y=h;this.Ab=new ba}function e(a,d,h){var e;return F.length?(e=F.pop(),e.Im=a,e.x=d,e.y=h,e):new ca(a,d,h)}function v(a,d,h){this.Im=a;this.x=d;this.y=h;this.Ab=[];this.Mg=!0;this.$d=new ba;this.qh=!1}function g(a,d){return a.Nd-d.Nd}y=function(a){window.console&&window.console.log&&window.console.log(a)}; +da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};Q=function(a){return"string"===typeof a};ha=function(a){return 0d;d<<=1)a=a|a>>d;return a+1};ja=function(a){return 0>a?-a:a};ma=function(a,d){return a>d?a:d};na=function(a,d){return ar)return!1;dr)return!1;D=f-a+w-h;p=g-d+u-e;a=h-a;d=e-d;f=w-f;g=u-g;u=ja(d*f-g*a);return ja(f*p-g*D)>u?!1:ja(a*p-d*D)<=u};c.prototype.set=function(a,d,h,e){this.left=a;this.top=d;this.right=h;this.bottom=e};c.prototype.xh=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,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;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.Np=function(a){return!(a.rightthis.right||a.top>this.bottom)};c.prototype.Op=function(a,d,h){return!(a.right+ +dthis.right||a.top+h>this.bottom)};c.prototype.Pb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.Eh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=c;l.prototype.dh=function(a){this.ub=a.left;this.wb=a.top;this.Wb=a.right;this.Xb=a.top;this.Nb=a.right;this.Ob=a.bottom;this.Kb=a.left;this.Lb=a.bottom};l.prototype.rr=function(a,d){if(0===d)this.dh(a);else{var h= +Math.sin(d),e=Math.cos(d),f=a.left*h,g=a.top*h,w=a.right*h,h=a.bottom*h,u=a.left*e,D=a.top*e,p=a.right*e,e=a.bottom*e;this.ub=u-g;this.wb=D+f;this.Wb=p-g;this.Xb=D+w;this.Nb=p-h;this.Ob=e+w;this.Kb=u-h;this.Lb=e+f}};l.prototype.offset=function(a,d){this.ub+=a;this.wb+=d;this.Wb+=a;this.Xb+=d;this.Nb+=a;this.Ob+=d;this.Kb+=a;this.Lb+=d;return this};var I=0,E=0;l.prototype.Xo=function(a){n(this.ub,this.Wb,this.Nb,this.Kb);a.left=I;a.right=E;n(this.wb,this.Xb,this.Ob,this.Lb);a.top=I;a.bottom=E};l.prototype.Pb= +function(a,d){var h=this.ub,e=this.wb,f=this.Wb-h,g=this.Xb-e,w=this.Nb-h,u=this.Ob-e,D=a-h,p=d-e,r=f*f+g*g,b=f*w+g*u,g=f*D+g*p,v=w*w+u*u,c=w*D+u*p,k=1/(r*v-b*b),f=(v*g-b*c)*k,r=(r*c-b*g)*k;if(0<=f&&0f+r)return!0;f=this.Kb-h;g=this.Lb-e;r=f*f+g*g;b=f*w+g*u;g=f*D+g*p;k=1/(r*v-b*b);f=(v*g-b*c)*k;r=(r*c-b*g)*k;return 0<=f&&0f+r};l.prototype.Uc=function(a,d){if(d)switch(a){case 0:return this.ub;case 1:return this.Wb;case 2:return this.Nb;case 3:return this.Kb;case 4:return this.ub;default:return this.ub}else switch(a){case 0:return this.wb; +case 1:return this.Xb;case 2:return this.Ob;case 3:return this.Lb;case 4:return this.wb;default:return this.wb}};l.prototype.xq=function(){return(this.ub+this.Wb+this.Nb+this.Kb)/4};l.prototype.yq=function(){return(this.wb+this.Xb+this.Ob+this.Lb)/4};l.prototype.Th=function(a,d,h,e){if(this.Pb(a,d)||this.Pb(h,e))return!0;var f,g,w,u,p;for(p=0;4>p;p++)if(f=this.Uc(p,!0),g=this.Uc(p,!1),w=this.Uc(p+1,!0),u=this.Uc(p+1,!1),sa(a,d,h,e,f,g,w,u))return!0;return!1};l.prototype.Mp=function(a){var d=a.xq(), +h=a.yq();if(this.Pb(d,h))return!0;d=this.xq();h=this.yq();if(a.Pb(d,h))return!0;var e,f,g,w,u,p,r,b;for(r=0;4>r;r++)for(b=0;4>b;b++)if(d=this.Uc(r,!0),h=this.Uc(r,!1),e=this.Uc(r+1,!0),f=this.Uc(r+1,!1),g=a.Uc(b,!0),w=a.Uc(b,!1),u=a.Uc(b+1,!0),p=a.Uc(b+1,!1),sa(d,h,e,f,g,w,u,p))return!0;return!1};ua=l;wa=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};xa=function(a,d){var h,e;d=R(d);if(!(0>d||d>=a.length)){h=d;for(e=a.length-1;hh?h:a};X=function(a){return a/(180/oa)};Ea=function(a){return 180/oa*a};Fa=function(a){a%=360;0>a&&(a+=360);return a};Ga=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ha=function(a){return Fa(Ea(a))};Ka=function(a){return Ga(X(a))}; +La=function(a,d,h,e){return Math.atan2(e-d,h-a)};Ma=function(a,d){if(a===d)return 0;var h=Math.sin(a),e=Math.cos(a),f=Math.sin(d),g=Math.cos(d),h=h*f+e*g;return 1<=h?0:-1>=h?oa:Math.acos(h)};Na=function(a,d,h){var e=Math.sin(a),f=Math.cos(a),g=Math.sin(d),w=Math.cos(d);return Math.acos(e*g+f*w)>h?0=e*f-h*g};Qa=function(a,d,h,e,f,g){if(0===h)return g?a:d;var w=Math.sin(h);h=Math.cos(h); +a-=e;d-=f;var u=a*w;a=a*h-d*w;d=d*h+u;return g?a+e:d+f};Ra=function(a,d,h,e){a=h-a;d=e-d;return Math.sqrt(a*a+d*d)};Wa=function(a,d){return!a!==!d};Xa=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Ya=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var A=+new Date;Za=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()-A};var h=!1,r=h=!1,x=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);var C=!h&&!x&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.re()?!1:C?this.ee.has(a):this.items&& +this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(C)this.ee.has(a)||(this.ee.add(a),this.Ue=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.fi++,this.Ue=!1):(this.items={},this.items[d]=a,this.fi=1,this.Ue=!1)}};m.prototype.remove=function(a){if(!this.re())if(C)this.ee.has(a)&&(this.ee["delete"](a),this.Ue=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.fi--,this.Ue=!1)}};m.prototype.clear=function(){this.re()|| +(C?this.ee.clear():(this.items=null,this.fi=0),T(this.kh),this.Ue=!0)};m.prototype.re=function(){return 0===this.count()};m.prototype.count=function(){return C?this.ee.size:this.fi};var G=null,P=0;m.prototype.$w=function(){if(!this.Ue){if(C)T(this.kh),G=this.kh,P=0,this.ee.forEach(k),G=null,P=0;else{var a=this.kh;T(a);var d,h=0,e=this.items;if(e)for(d in e)e.hasOwnProperty(d)&&(a[h++]=e[d])}this.Ue=!0}};m.prototype.nd=function(){this.$w();return this.kh};ba=m;new ba;$a=function(a,d){C?ab(a,d.ee): +bb(a,d.nd())};ab=function(a,d){var h,e,f,g;e=h=0;for(f=a.length;hh&&(h=g),wf&&(f=w);this.Dj=d;this.Ej=h;this.Fj=e;this.Cj=f};b.prototype.dh=function(a,d,h){this.ib.length=8;this.gd=4;var e=this.ib;e[0]=a.left-d;e[1]=a.top-h;e[2]=a.right-d;e[3]=a.top-h;e[4]=a.right-d;e[5]=a.bottom-h;e[6]=a.left-d;e[7]=a.bottom-h; +this.Ij=a.right-a.left;this.Hj=a.bottom-a.top;this.Ha()};b.prototype.bh=function(a,d,h,e,f){this.ib.length=8;this.gd=4;var g=this.ib;g[0]=a.ub-d;g[1]=a.wb-h;g[2]=a.Wb-d;g[3]=a.Xb-h;g[4]=a.Nb-d;g[5]=a.Ob-h;g[6]=a.Kb-d;g[7]=a.Lb-h;this.Ij=e;this.Hj=f;this.Ha()};b.prototype.qr=function(a){this.gd=a.gd;za(this.ib,a.ib);this.Dj=a.Dj;this.Fj-a.Fj;this.Ej=a.Ej;this.Cj=a.Cj};b.prototype.Ef=function(a,d,h){if(this.Ij!==a||this.Hj!==d||this.$o!==h){this.Ij=a;this.Hj=d;this.$o=h;var e,f,g,w,u,p=0,r=1,b=this.br, +v=this.ib;0!==h&&(p=Math.sin(h),r=Math.cos(h));h=0;for(g=this.gd;hN.length&&N.push(u),this.cells[e][g]=null);if(h)for(e= +h.left,f=h.right;e<=f;++e)for(g=h.top,w=h.bottom;g<=w;++g)d&&d.Pb(e,g)||this.ef(e,g,!0).Om(a)};a.prototype.bl=function(a,d){var h,e,f,g,w,u;h=this.fc(a.left);f=this.gc(a.top);e=this.fc(a.right);for(w=this.gc(a.bottom);h<=e;++h)for(g=f;g<=w;++g)(u=this.ef(h,g,!1))&&u.dump(d)};fb=a;f.prototype.ef=function(a,d,h){var f;f=this.cells[a];return f?(f=f[d])?f:h?(f=e(this,a,d),this.cells[a][d]=f):null:h?(f=e(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};f.prototype.fc=function(a){return R(a/this.Wl)}; +f.prototype.gc=function(a){return R(a/this.Vl)};f.prototype.update=function(a,d,h){var e,f,g,w,u;if(d)for(e=d.left,f=d.right;e<=f;++e)for(g=d.top,w=d.bottom;g<=w;++g)if(!h||!h.Pb(e,g))if(u=this.ef(e,g,!1))u.remove(a),u.re()&&(u.reset(),1E3>F.length&&F.push(u),this.cells[e][g]=null);if(h)for(e=h.left,f=h.right;e<=f;++e)for(g=h.top,w=h.bottom;g<=w;++g)d&&d.Pb(e,g)||this.ef(e,g,!0).Om(a)};f.prototype.bl=function(a,d,h,e,f){var g,w;a=this.fc(a);d=this.gc(d);h=this.fc(h);for(g=this.gc(e);a<=h;++a)for(e= +d;e<=g;++e)(w=this.ef(a,e,!1))&&w.dump(f)};f.prototype.bw=function(a){var d,h,e,f,g;d=a.left;e=a.top;h=a.right;for(f=a.bottom;d<=h;++d)for(a=e;a<=f;++a)if(g=this.ef(d,a,!1))g.Mg=!1};gb=f;var N=[];d.prototype.re=function(){return this.Ab.re()};d.prototype.Om=function(a){this.Ab.add(a)};d.prototype.remove=function(a){this.Ab.remove(a)};d.prototype.dump=function(a){Aa(a,this.Ab.nd())};aa=d;var F=[];v.prototype.re=function(){if(!this.Ab.length)return!0;if(this.Ab.length>this.$d.count())return!1;this.tm(); +return!0};v.prototype.Om=function(a){this.$d.contains(a)?(this.$d.remove(a),this.$d.re()&&(this.qh=!1)):this.Ab.length?(this.Ab[this.Ab.length-1].Td()>a.Td()&&(this.Mg=!1),this.Ab.push(a)):(this.Ab.push(a),this.Mg=!0)};v.prototype.remove=function(a){this.$d.add(a);this.qh=!0;30<=this.$d.count()&&this.tm()};v.prototype.tm=function(){this.qh&&(this.$d.count()===this.Ab.length?this.reset():($a(this.Ab,this.$d),this.$d.clear(),this.qh=!1))};v.prototype.nu=function(){this.Mg||(this.Ab.sort(g),this.Mg= +!0)};v.prototype.reset=function(){T(this.Ab);this.Mg=!0;this.$d.clear();this.qh=!1};v.prototype.dump=function(a){this.tm();this.nu();this.Ab.length&&a.push(this.Ab)};ca=v;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};ib=function(a,d,h){if(h)switch(a.Vb=h.ONE,a.Rb=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.Vb=h.ONE;a.Rb=h.ONE;break;case 3:a.Vb=h.ONE;a.Rb=h.ZERO;break; +case 4:a.Vb=h.ONE_MINUS_DST_ALPHA;a.Rb=h.ONE;break;case 5:a.Vb=h.DST_ALPHA;a.Rb=h.ZERO;break;case 6:a.Vb=h.ZERO;a.Rb=h.SRC_ALPHA;break;case 7:a.Vb=h.ONE_MINUS_DST_ALPHA;a.Rb=h.ZERO;break;case 8:a.Vb=h.ZERO;a.Rb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Vb=h.DST_ALPHA;a.Rb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Vb=h.ONE_MINUS_DST_ALPHA,a.Rb=h.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()=== +d.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(c){var l=new fc(3);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2]);return l} +function hc(c){var l=new fc(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 ic(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 jc(c,l){var n=l[0],m=l[1];l=l[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=m;c[5]*=m;c[6]*=m;c[7]*=m;c[8]*=l;c[9]*=l;c[10]*=l;c[11]*=l} +function kc(c,l,n,m){m||(m=hc());var k,q,b,a,f,p,d,e,v=c[0],g=c[1];c=c[2];q=n[0];b=n[1];k=n[2];n=l[1];p=l[2];v===l[0]&&g===n&&c===p?(c=m,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):(n=v-l[0],p=g-l[1],d=c-l[2],e=1/Math.sqrt(n*n+p*p+d*d),n*=e,p*=e,d*=e,l=b*d-k*p,k=k*n-q*d,q=q*p-b*n,(e=Math.sqrt(l*l+k*k+q*q))?(e=1/e,l*=e,k*=e,q*=e):q=k=l=0,b=p*q-d*k,a=d*l-n*q,f=n*k-p*l,(e=Math.sqrt(b*b+a*a+f*f))?(e=1/e,b*=e,a*=e,f*=e):f=a=b=0, +m[0]=l,m[1]=b,m[2]=n,m[3]=0,m[4]=k,m[5]=a,m[6]=p,m[7]=0,m[8]=q,m[9]=f,m[10]=d,m[11]=0,m[12]=-(l*v+k*g+q*c),m[13]=-(b*v+a*g+f*c),m[14]=-(n*v+p*g+d*c),m[15]=1)} +(function(){function c(a,f,p){this.te=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ia=!!p;this.rk=this.Wh=!1;this.em=0;this.El=1;this.Bo=1E3;this.ix=(this.Bo-this.El)/32768;this.Tl=gc([0,0,100]);this.hq=gc([0,0,0]);this.Rr=gc([0,1,0]);this.sj=gc([1,1,1]);this.kp=!0;this.Mk=hc();this.Oc=hc();this.$m=hc();this.dm=hc();this.K=a;this.Ip()}function l(a,f,p){this.K=a;this.ej=f;this.name=p;this.dd=a.getAttribLocation(f,"aPos");this.of=a.getAttribLocation(f, +"aTex");this.fq=a.getUniformLocation(f,"matP");this.Ik=a.getUniformLocation(f,"matMV");this.Tg=a.getUniformLocation(f,"opacity");this.nn=a.getUniformLocation(f,"colorFill");this.gq=a.getUniformLocation(f,"samplerFront");this.Ai=a.getUniformLocation(f,"samplerBack");this.gg=a.getUniformLocation(f,"destStart");this.fg=a.getUniformLocation(f,"destEnd");this.Ci=a.getUniformLocation(f,"seconds");this.qn=a.getUniformLocation(f,"pixelWidth");this.pn=a.getUniformLocation(f,"pixelHeight");this.yi=a.getUniformLocation(f, +"layerScale");this.xi=a.getUniformLocation(f,"layerAngle");this.Di=a.getUniformLocation(f,"viewOrigin");this.Bi=a.getUniformLocation(f,"scrollPos");this.Jv=!!(this.qn||this.pn||this.Ci||this.Ai||this.gg||this.fg||this.yi||this.xi||this.Di||this.Bi);this.pq=this.qq=-999;this.Lk=1;this.lq=this.kq=0;this.nq=this.jq=this.iq=1;this.tq=this.sq=this.rq=this.vq=this.uq=this.mq=0;this.Zm=[];this.oq=hc();this.Tg&&a.uniform1f(this.Tg,1);this.nn&&a.uniform4f(this.nn,1,1,1,1);this.gq&&a.uniform1i(this.gq,0);this.Ai&& +a.uniform1i(this.Ai,1);this.gg&&a.uniform2f(this.gg,0,0);this.fg&&a.uniform2f(this.fg,1,1);this.yi&&a.uniform1f(this.yi,1);this.xi&&a.uniform1f(this.xi,0);this.Di&&a.uniform2f(this.Di,0,0);this.Bi&&a.uniform2f(this.Bi,0,0);this.Ci&&a.uniform1f(this.Ci,0);this.Sf=!1}function n(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&&a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]=== +f[15]}function m(a,f){this.type=a;this.H=f;this.K=f.K;this.Ud=this.cc=this.Mq=0;this.aa=this.ld=null;this.sr=[]}var k=hc();c.prototype.Ip=function(){var a=this.K,f;this.$p=1;this.bg=this.jf=null;this.Oj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ia?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.aq=a.ONE;this.Zp=a.ONE_MINUS_SRC_ALPHA; +this.Cl=new Float32Array(8E3*(this.Ia?3:2));this.ql=new Float32Array(16E3);this.Xq=new Float32Array(32E3);this.Dn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Dn);a.bufferData(a.ARRAY_BUFFER,this.Xq.byteLength,a.DYNAMIC_DRAW);this.rj=Array(4);this.kj=Array(4);for(f=0;4>f;f++)this.rj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.rj[f]),a.bufferData(a.ARRAY_BUFFER,this.Cl.byteLength,a.DYNAMIC_DRAW),this.kj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.kj[f]),a.bufferData(a.ARRAY_BUFFER, +this.ql.byteLength,a.DYNAMIC_DRAW);this.ke=0;this.Ov=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ov);for(var p=new Uint16Array(12E3),d=f=0;12E3>f;)p[f++]=d,p[f++]=d+1,p[f++]=d+2,p[f++]=d,p[f++]=d+2,p[f++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,p,a.STATIC_DRAW);this.En=this.gh=this.Le=0;this.$a=[];f=this.Ia?"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}";p=this.yh({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}"},f,"");this.$a.push(p);p=this.yh({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}","");this.$a.push(p);p=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"");this.$a.push(p);p=this.yh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +f,"");this.$a.push(p);for(var e in lc)lc.hasOwnProperty(e)&&this.$a.push(this.yh(lc[e],f,e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Te=[];this.je=0;this.Sb=!1;this.gp=this.mi=-1;this.Bg=null;this.qm=a.createFramebuffer();this.Sj=this.cl=null;this.Vo=!1;this.Ia&&(this.Sj=a.createRenderbuffer());this.xf=gc([0,0,0]);this.wq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.dd,4,a.FLOAT,!1,0,0));if(0"!==b.name&&a.vertexAttribPointer(b.dd,this.Ia?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.kj[this.ke]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ql.subarray(0,this.gh));b&&0<=b.of&&""!== +b.name&&a.vertexAttribPointer(b.of,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.je;ac||0>d)){var e=this.Ec();e.type=7;e.cc=1;e.aa||(e.aa=hc());e.aa[0]=a;e.aa[1]=b;e.aa[2]=c;e.aa[3]=d;this.Sb=!1}};c.prototype.lr=function(a){if(this.Ia&&(a=!!a,this.Wh!==a)){var b=this.Ec();b.type=14;b.cc=a?1:0;this.Sb=!1;this.Wh=a;this.cl=null;this.Wh?this.uc(2):this.uc(0)}};c.prototype.kr=function(a){if(this.Ia){var b=this.Ec();b.type=13;b.cc=a?1:0;this.Sb=!1}};c.prototype.sp=function(){ic(this.$m,k);this.hd();this.Rc();var a=this.width/2,b=this.height/ +2;this.Xi(-a,b,a,b,a,-b,-a,-b);ic(k,this.Oc);this.Rc()};c.prototype.jr=function(a,b,c){this.uc(3);var d=this.Ec();d.type=12;d.aa||(d.aa=hc());d.aa[0]=a;d.aa[1]=b;d.aa[2]=c;d.aa[3]=1;this.Sb=!1};c.prototype.Qw=function(){this.uc(0)};c.prototype.Bw=function(){this.uc(2)};c.prototype.sw=function(){this.$e();this.K.flush()};var q=[],b={};c.prototype.Kt=function(){T(q);b={}};c.prototype.Fk=function(a,f,c,d){f=!!f;c=!!c;var e=a.src+","+f+","+c+(f?",undefined":""),k=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(e))return k= +b[e],k.Gj++,k;this.$e();var g=this.K,m=ha(a.width)&&ha(a.height),k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=g.RGBA,l=g.RGBA,h=g.UNSIGNED_BYTE;if(d&&!this.te)switch(d){case 1:l=n=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=n=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(!m&&f){d=document.createElement("canvas");d.width=ia(a.width);d.height=ia(a.height);var r=d.getContext("2d");r.webkitImageSmoothingEnabled= +c;r.mozImageSmoothingEnabled=c;r.msImageSmoothingEnabled=c;r.imageSmoothingEnabled=c;r.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);g.texImage2D(g.TEXTURE_2D,0,n,l,h,d)}else g.texImage2D(g.TEXTURE_2D,0,n,l,h,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER, +g.LINEAR),m&&this.kp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.jf=null;k.Df=a.width;k.Cf=a.height;k.Gj=1;k.Zo=e;q.push(k);return b[e]=k};c.prototype.Kc=function(a,b,c,d){this.$e();var e=this.K;this.te&&(d=!1);var k= +e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.jf=null;k.Df=a;k.Cf=b;q.push(k);return k};c.prototype.gx= +function(a,b,c){this.$e();var d=this.K;this.te&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.jf=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Gj&&1=d?a[3]:256>=d? +a[2]:512>=d?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,d,h,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(f){e(f)}}function q(a,d,h){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=m;e.onerror= +h;e.onsuccess=function(e){e=e.target.result;e.onerror=h;var b=e.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?d(b.result.data):d(null)}}}catch(b){h(b)}}function b(){y("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1f?(f*=d,5===c?(g=f*h/this.sb,1g&&(g=1/Math.ceil(1/g)),f=this.sb*g/h,g=this.rb*g/h,e=(a-f)/2,b=(d-g)/2,a=f,d=g):(e=(a-f)/2,a=f)):(g=a/f,5===c?(g=g*h/this.rb,1g&&(g=1/Math.ceil(1/g)),f=this.sb*g/h,g=this.rb*g/h,e=(a-f)/2,b=(d-g)/2,a=f):b=(d-g)/2,d=g),r&&!this.gf&&(b=e=0)):this.gf&&this.Zh&&0===this.tp&&(e=Math.floor((a-this.sb)/2),b=Math.floor((d-this.rb)/2),a= +this.sb,d=this.rb),2>c&&(this.sh=h),this.Mj=Math.round(a),this.Ah=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.Ca=!0,this.$r?(this.R=this.width,this.P=this.height,this.Lc=!0):this.widthf&&(this.P=this.R/c)):3===c&&(f=this.sb/this.rb,c=this.si/this.ri,c>f?this.R=this.P*c:c=c)c=5E4;a+=c;g.src&&(g.complete||g.loaded)&&!g.Yo?d+=c:b=!1}b&&this.qw&&this.zg&&(v||(this.zg.Uw(),v=!0),h=this.zg.qv(),d+=h,hthis.nf&&(this.xd||500<=e&&this.bq!=this.Hd)){a.clearRect(0,0,b,c);var e=b/2,c=c/2,b=0===this.nf&&this.lf.Kk.complete,r=40*k,m=0,v=80*k,n;if(b){var l=this.lf.Kk,v=l.width*k;n=l.height*k;r=v/2;m=n/2;a.drawImage(l,R(e-r),R(c-m),v,n)}1>=this.nf?(e=R(e-r)+.5,c=R(c+(m+(b?12*k:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(e,c,Math.floor(v*this.Hd),6*k),a.strokeStyle="black",a.strokeRect(e,c,v,6*k),a.strokeStyle="white",a.strokeRect(e-1*k,c-1*k,v+2*k,8*k)):2===this.nf&&(a.font=this.yd?"12pt ArialMT": +"12pt Arial",a.fillStyle=d?"#f00":"#999",a.ny="middle",k=Math.round(100*this.Hd)+"%",b=a.measureText?a.measureText(k):null,a.fillText(k,e-(b?b.width:0)/2,c));this.bq=this.Hd}else if(4===this.nf){this.ju(a);f?f(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.xd?10:100)}}};var I=-1,E="undefined"===typeof cr_is_preview?200:0,A=!0,h=!1,r=0,x=0,C="undefined"===typeof cr_is_preview?3E3:0,G=null,P=null,N=0;c.prototype.ju=function(a){if(!g){for(var e=Math.ceil(this.width), +b=Math.ceil(this.height),f=this.lf.Kk,c=this.lf.pw,k=this.lf.hx,m=0;4>m;++m)if(!f[m].complete||!c[m].complete||!k[m].complete)return;0===N&&(I=Date.now());var m=Date.now(),v=!1,n=a,p,q;A||h?(a.clearRect(0,0,e,b),G&&G.width===e&&G.height===b||(G=document.createElement("canvas"),G.width=e,G.height=b,P=G.getContext("2d")),n=P,v=!0,A&&1===N&&(I=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,e,b);256=C&&!h&&1<=this.Hd&&(h=!0,x=m);if(h&&m-x>=300+E||"undefined"!==typeof cr_is_preview&&1<=this.Hd&&500>Date.now()-I)g=!0,h=A=!1,this.lf=P=G=null;++N}};c.prototype.Hv=function(){this.Fb&&(this.canvas.parentNode.removeChild(this.Fb),this.Fb=this.Cn=null);this.ol=Date.now();this.eg=Za();var a,d,h;if(this.wo)for(a=0,d=this.G.length;aa||2===this.yc&&dd&&(d=0),this.Ze=d/1E3,.51/this.zq&&(this.Ze=1/this.zq));this.wk=a;this.Jf=this.Ze*this.ug;this.ob.add(this.Jf);this.Me.add(this.Ze);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Zh)&&!this.Vd;2<=this.yc|| +a&&0d||2===e&&ha++;)this.jp(this.Ff);a=0;for(d=this.me.length;ad.Qj.length&&d.Qj.push(a)}; +c.prototype.ep=function(a,d,h,e){if(a.S){var b=R(Math.random()*a.jg.length);return this.ep(a.jg[b],d,h,e)}return a.Yc?this.Xe(a.Yc,d,!1,h,e,!1):null};var z=[];c.prototype.Xe=function(a,d,h,e,b,f){var g,c,k,r;if(!a)return null;var m=this.G[a[1]],n=m.Ja.hf;if(this.Og&&n&&!m.Tm||n&&!this.H&&11===a[0][11])return null;var v=d;n||(d=null);var l;m.Qj.length?(l=m.Qj.pop(),l.Fc=!0,m.Ja.Y.call(l,m)):(l=new m.Ja.Y(m),l.Fc=!1);!h||f||this.xe.hasOwnProperty(a[2].toString())?l.uid=this.Li++:l.uid=a[2];this.xe[l.uid.toString()]= +l;l.cr=this.Dq++;l.Uf=m.k.length;g=0;for(c=this.vd.length;ga&&(a=0);a>=this.za.Z.length&&(a=this.za.Z.length-1);return this.za.Z[a]};c.prototype.Yl= +function(a){var d,h;d=0;for(h=a.length;d=b;)g=1/b,b*=2,a.x+=d*g*(f?1:-1),a.y+=h*g*(f?1:-1),a.F(),this.ec(a,e)?g=f=!0:(g=f=!1,c=a.x,k=a.y);g&&(a.x=c,a.y=k,a.F())};c.prototype.Jn=function(a,d){var h=ea(d)?100:d,e=0,b=a.x,g=a.y,f=0,c=0,k=0,r=this.Ka(a);if(!r)return!0;for(;e<=h;){switch(f){case 0:c=0;k=-1;e++;break;case 1:c=1;k=-1;break;case 2:c=1;k=0;break;case 3:k=c=1;break;case 4:c=0;k=1;break;case 5:c=-1;k=1;break;case 6:c=-1;k=0;break;case 7:k=c=-1}f=(f+1)%8;a.x=R(b+c*e);a.y= +R(g+k*e);a.F();if(!this.ec(a,r)&&(r=this.Ka(a),!r))return!0}a.x=b;a.y=g;a.F();return!1};c.prototype.be=function(a,d){a.Jc&&d.Jc&&this.Zi.push([a,d])};c.prototype.It=function(a,d){var h,e,b;h=0;for(e=this.Zi.length;hr;r++)if(l=f-r*v,a.x=d+Math.cos(l)*g,a.y=h+Math.sin(l)*g,a.F(), +!this.ec(a,k)&&(k=this.Ka(a),!k)){m=l;break}36===r&&(m=Ga(f+oa));k=c;for(r=1;36>r;r++)if(l=f+r*v,a.x=d+Math.cos(l)*g,a.y=h+Math.sin(l)*g,a.F(),!this.ec(a,k)&&(k=this.Ka(a),!k)){n=l;break}36===r&&(n=Ga(f+oa));a.x=e;a.y=b;a.F();if(n===m)return n;a=Ma(n,m)/2;a=Pa(n,m)?Ga(m+a+oa):Ga(n+a);m=Math.cos(f);f=Math.sin(f);n=Math.cos(a);a=Math.sin(a);d=m*n+f*a;return La(0,0,m-2*d*n,f-2*d*a)};var W=-1;c.prototype.trigger=function(a,d,h){if(!this.za)return!1;var e=this.za.Lf;if(!e)return!1;var b=!1,g,f,c;W++;var k= +e.gm;f=0;for(c=k.length;f=this.rn.length&&this.rn.push([])};c.prototype.mw=function(){this.Jk--};c.prototype.xp=function(){return this.rn[this.Jk]};c.prototype.al=function(a){this.Vj++; +this.Vj>=this.mm.length&&this.mm.push(new Qb);var d=this.Eb();d.reset(a);return d};c.prototype.Wk=function(){this.Vj--};c.prototype.Eb=function(){return this.mm[this.Vj]};c.prototype.yp=function(a,d){for(var h,e,b,g,f,c;d;){h=0;for(e=d.kd.length;hg||g>=a.nb.length||(a.nb[g]=b[e]));if(f.hf){g=d.w;a.n.ja!==g.l&&(b= +a.n,a.n=this.za.ik(g.l),a.n?(b.Zg(a,!0),a.n.rh(a,!0),a.F(),a.n.bj(0)):(a.n=b,h||this.yf(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Nd=g.zi;a.q=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.nc=g.hasOwnProperty("hX")?g.hX:.5;a.oc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Jc=g.hasOwnProperty("ce")?g.ce:!0;a.Ki=g.hasOwnProperty("mts")?g.mts:-1;a.Jb=g.hasOwnProperty("bm")?g.bm:0;a.wh=hb(a.Jb);this.K&&ib(a,a.Jb,this.K);a.F();if(g.hasOwnProperty("fx"))for(h= +0,b=g.fx.length;hf||(a.Qe[f]=g.fx[h].active,a.Xa[f]=g.fx[h].params);a.Md()}if(c=d.behs)for(e in c)c.hasOwnProperty(e)&&(h=this.$u(a,parseInt(e,10)),0>h||a.O[h].hb(c[e]));d.data&&a.hb(d.data)};c.prototype.op=function(a,d,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,h)},h)};c.prototype.Ru=function(a,d){this.op("data.js",function(h){var e=new FileReader;e.onload=function(d){a(d.target.result)};e.onerror=d;e.readAsText(h)}, +d)};c.prototype.pp=function(a,d,h){this.op(a,function(a){var h=new FileReader;h.onload=function(a){d(a.target.result)};h.readAsArrayBuffer(a)},h)};c.prototype.Su=function(a,d,h){this.pp(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},h)};c.prototype.nr=function(a,d){this.bi?this.Su(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};Sb=function(a){return new c(document.getElementById(a))};Tb=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime= +Sb;window.cr_createDCRuntime=Tb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Pl=!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 n=window.cr_getC2Runtime();n&&n.Pt(c,l)};window.cr_sizeCanvas=function(c,l){if(0!==c&&0!==l){var n=window.cr_getC2Runtime();n&&n.setSize(c,l)}};window.cr_setSuspended=function(c){var l=window.cr_getC2Runtime();l&&l.setSuspended(c)}; +(function(){function c(a,e){this.b=a;this.Lf=null;this.scrollX=this.b.sb/2;this.scrollY=this.b.rb/2;this.scale=1;this.q=0;this.Fg=!0;this.name=e[0];this.width=e[1];this.height=e[2];this.Qr=e[3];this.tr=e[4];this.ja=e[5];var b=e[6],g,f;this.Z=[];this.Rh=[];g=0;for(f=b.length;g=this.Z.length&&(h=this.Z.length-1);k.n=this.Z[h];-1===k.n.k.indexOf(k)&&k.n.k.push(k);k.n.vg=!0}if(!b)for(a=0,f=this.Z.length;af?k.siblings.push(m.k[f]):m.Yc&&(c=this.b.Xe(m.Yc,k.n,!0,k.x,k.y,!0),this.b.Hb(),m.xl(),k.siblings.push(c),q.push(c)));a=0;for(f=this.Wf.length;athis.width-e&&(a=this.width-e);athis.height-e&&(a=this.height-e);aL&&(L=0);0>J&&(J=0);O>B&&(O=B);S>t&&(S=t);0>U&&(U=0);0>H&&(H=0);pa>B&&(pa=B);qa>t&&(qa=t);u.left=L/B;u.top=1-J/t;u.right=O/B;u.bottom=1-S/t}else u.left=D.left=0,u.top=D.top=0,u.right=D.right=1,u.bottom=D.bottom=1;ka=b&&(a.Ui(f[0].kb)||0!==F|| +0!==ka||1!==b.opacity||b.type.Ja.Aq)||e&&!b&&1!==e.opacity;a.ir();if(ka){n[M]||(n[M]=a.Kc(B,t,this.b.da));if(n[M].Df!==B||n[M].Cf!==t)a.deleteTexture(n[M]),n[M]=a.Kc(B,t,this.b.da);a.uc(0);a.jd(n[M]);K=qa-H;a.clearRect(U,t-H-K,pa-U,K);b?b.Yb(a):(a.Gc(this.b.pb),a.ng(e.opacity),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u));D.left=D.top=0;D.right=D.bottom=1;b&&(z=u.top,u.top=u.bottom,u.bottom=z);M=1;ga=0}a.ng(1);F=f.length-1;var Ia=a.Hn(f[F].kb)||!e&&!b&&!this.b.Lc,va=0;p=0;for(q=f.length;p< +q;p++){n[M]||(n[M]=a.Kc(B,t,this.b.da));if(n[M].Df!==B||n[M].Cf!==t)a.deleteTexture(n[M]),n[M]=a.Kc(B,t,this.b.da);a.uc(f[p].kb);va=f[p].index;a.Zk(f[p].kb)&&(this.b.Ca=!0);0!=p||ka?(a.ah(g,1/B,1/t,D.left,D.top,D.right,D.bottom,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,b?b.Xa[va]:e?e.Xa[va]:this.Xa[va]),a.Gc(null),p!==F||Ia?(a.jd(n[M]),K=qa-H,z=t-H-K,a.clearRect(U,z,pa-U,K)):(b?a.uf(b.Vb,b.Rb):e&&a.uf(e.Vb,e.Rb),a.jd(g)),a.Gc(n[ga]),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u),p!==F||Ia||a.Gc(null)): +(a.jd(n[M]),K=qa-H,z=t-H-K,a.clearRect(U,z,pa-U,K),b?(a.ah(g,1/b.width,1/b.height,D.left,D.top,D.right,D.bottom,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,b.Xa[va]),b.Yb(a)):(a.ah(g,1/B,1/t,0,0,1,1,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,e?e.Xa[va]:this.Xa[va]),a.Gc(e?this.b.pb:this.b.gb),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u)),D.left=D.top=0,D.right=D.bottom=1,b&&!Ia&&(z=S,S=J,J=z));M=0===M?1:0;ga=0===M?1:0}Ia&&(a.uc(0),b?a.uf(b.Vb,b.Rb):e?a.uf(e.Vb,e.Rb):this.b.Lc||(a.pg(this.b.width,this.b.height), +W=this.b.width/2,w=this.b.height/2,J=L=0,O=this.b.width,S=this.b.height),a.jd(g),a.Gc(n[ga]),a.hd(),a.translate(-W,-w),a.Rc(),b&&1===f.length&&!ka?a.ae(L,J,O,J,O,S,L,S,u):a.ae(L,S,O,S,O,J,L,J,u),a.Gc(null))};c.prototype.ik=function(a){var b,f;b=0;for(f=this.Z.length;bf||(b&&this.Sc&&a.rc&&a.rc.right>=a.rc.left&&(a.Ha(),this.Gb.update(a,a.rc,null),a.rc.set(0,0,-1,-1)),f===this.k.length-1?this.k.pop():(xa(this.k,f),this.bj(f)),this.Id=!0)};n.prototype.rh=function(a,b){a.Nd=this.k.length;this.k.push(a); +b&&this.Sc&&a.rc&&a.F();this.Id=!0};n.prototype.rw=function(a){this.k.unshift(a);this.bj(0)};n.prototype.dw=function(a,b,f){var g=a.Td();b=b.Td();xa(this.k,g);gthis.Va||f.top>this.Ua||(b.globalCompositeOperation=a.wh,a.$c(b))}};n.prototype.zl=function(){this.le=!0;var a=this.Ve(!0),b=this.Ve(!1); +this.le=!1;this.b.Fd&&(a=Math.round(a),b=Math.round(b));this.dl(a,b,null)};n.prototype.dl=function(a,b,f){var g=this.mc();this.La=a;this.Ma=b;this.Va=a+1/g*this.b.R;this.Ua=b+1/g*this.b.P;a=this.ab();0!==a&&(f&&(f.translate(this.b.R/2,this.b.P/2),f.rotate(-a),f.translate(this.b.R/-2,this.b.P/-2)),this.Je.set(this.La,this.Ma,this.Va,this.Ua),this.Je.offset((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2),this.Lr.rr(this.Je,a),this.Lr.Xo(this.Je),this.Je.offset((this.La+this.Va)/2,(this.Ma+this.Ua)/2),this.La= +this.Je.left,this.Ma=this.Je.top,this.Va=this.Je.right,this.Ua=this.Je.bottom)};n.prototype.If=function(a){if(this.de=this.dk){this.b.pb||(this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da));if(this.b.pb.Df!==this.b.R||this.b.pb.Cf!==this.b.P)a.deleteTexture(this.b.pb),this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da);a.jd(this.b.pb)}this.le=!0;var b=this.Ve(!0),f=this.Ve(!1);this.le=!1;this.b.Fd&&(b=Math.round(b),f=Math.round(f));this.dl(b,f,null);b=this.mc();a.hd();a.scale(b,b);a.el(-this.ab());a.translate((this.La+ +this.Va)/-2,(this.Ma+this.Ua)/-2);a.Rc();this.Sc?(this.Cb.left=this.Gb.fc(this.La),this.Cb.top=this.Gb.gc(this.Ma),this.Cb.right=this.Gb.fc(this.Va),this.Cb.bottom=this.Gb.gc(this.Ua),this.Id||!this.Cb.Eh(this.Sg)?(k(this.ve),b=this.Cm(),this.Id=!1,this.Sg.xh(this.Cb)):b=this.ve):b=this.k;for(var g,c=null,f=b.length-1;0<=f;--f)g=b[f],g!==c&&(this.hu(b[f],a),c=g);this.Sc&&(this.ve=b);this.Ld||(this.Zl=this.b.Kf++,a.il(this.Zl),a.jr(1,1,1),a.sp(),a.Bw())};n.prototype.Yb=function(a){var b=0,f=0;if(this.de= +this.dk||1!==this.opacity||0this.Va||f.top>this.Ua||(b.il(a.Kf),a.Xr?this.iu(a,b):(b.uc(0),b.uf(a.Vb,a.Rb),a.Yb(b)))}};n.prototype.hu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var f=a.Oa;f.rightthis.Va||f.top>this.Ua||(a.Kf=this.b.Kf++,0===a.Jb&&1===a.opacity&&a.Ee&&a.If&&(b.il(a.Kf),a.If(b)))}};n.prototype.iu= +function(a,b){var f=a.ta[0].kb,g=a.ta[0].index,c=this.mc();if(1!==a.ta.length||b.Hn(f)||b.uw(f)||(a.q||a.n.ab())&&b.Ui(f)||1!==a.opacity||a.type.Ja.Aq)this.qb.On(b,this,a,this.de?this.b.pb:this.qb.Kh()),b.hd(),b.scale(c,c),b.el(-this.ab()),b.translate((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2),b.Rc();else{b.uc(f);b.uf(a.Vb,a.Rb);b.Zk(f)&&(this.b.Ca=!0);var k=0,l=0,h=0,r=0;b.Ui(f)&&(f=a.Oa,k=this.wa(f.left,f.top,!0,!0),l=this.wa(f.left,f.top,!1,!0),h=this.wa(f.right,f.bottom,!0,!0),f=this.wa(f.right, +f.bottom,!1,!0),k=k/windowWidth,l=1-l/windowHeight,h=h/windowWidth,r=1-f/windowHeight);b.ah(this.de?this.b.pb:this.qb.Kh(),1/a.width,1/a.height,k,l,h,r,c,this.ab(),this.La,this.Ma,(this.La+this.Va)/2,(this.Ma+this.Ua)/2,this.b.ob.T,a.Xa[g]);a.Yb(b)}};n.prototype.Ve=function(a){var b=0,f=0,g=this.b.devicePixelRatio;this.b.Yf&&(b*=g,f*=g);var g=this.b.Tq,c=this.b.Uq,g=(this.qb.scrollX-g)*this.ye+g,c=(this.qb.scrollY-c)*this.ze+c,k,l,h=1/this.mc(!1);k=g-this.b.R*h/2;l=c-this.b.P*h/2;k+=b*h;l+=f*h;f= +this.ab();0!==f&&(k-=g,l-=c,b=Math.cos(f),f=Math.sin(f),h=k*b-l*f,l=l*b+k*f,k=h+g,l+=c);return a?k:l};n.prototype.wa=function(a,b,f,g){var c=this.b.Tq,k=this.b.Uq,l=(this.qb.scrollX-c)*this.ye+c,h=(this.qb.scrollY-k)*this.ze+k,k=l,c=h,r=this.ab();if(0!==r){a-=l;b-=h;var m=Math.cos(-r),r=Math.sin(-r),n=a*m-b*r;b=b*m+a*r;a=n+l;b+=h}l=1/this.mc(!g);g?(k-=this.b.R*l/2,c-=this.b.P*l/2):(k-=this.b.width*l/2,c-=this.b.height*l/2);k=(a-k)/l;c=(b-c)/l;a=this.b.devicePixelRatio;this.b.Yf&&!g&&(k/=a,c/=a);return f? +k:c};n.prototype.Za=function(){var a,b,f,g={s:this.scale,a:this.q,vl:this.La,vt:this.Ma,vr:this.Va,vb:this.Ua,v:this.visible,bc:this.td,t:this.Ld,px:this.ye,py:this.ze,o:this.opacity,zr:this.tj,fx:[],cg:this.zh,instances:[]};a=0;for(b=this.X.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=I.length&&(I.length=a.length+1);I[a.length]||(I[a.length]=[]);e=I[a.length];b=0;for(d=e.length;b=b.length&&(b.length=this.hg+1),b[this.hg]=a):this.data=a};e.prototype.Lh=function(){var a=this.b.xp();return!this.parent||this.di||!a||this.sk?this.data:this.hg>=a.length||"undefined"===typeof a[this.hg]?this.mk:a[this.hg]};e.prototype.jb=function(){!this.parent||this.di||this.sk||this.qg(this.mk)};Rb= +e;v.prototype.toString=function(){return"include:"+this.Qh.toString()};v.prototype.eb=function(){this.Qh=this.b.nm[this.Nv];this.sheet.Hp.add(this);this.Ga=n(this.Ga);for(var a=this.parent;a;)a.group&&a.Kj.push(this),a=a.parent;this.Sr()};v.prototype.jb=function(){this.parent&&this.b.Wi(this.b.G);this.Qh.Km||this.Qh.jb(!0);this.parent&&this.b.mg(this.b.G)};v.prototype.Sr=function(){for(var a=this.parent;a;){if(a.group&&!a.Nh){this.Ib=!1;return}a=a.parent}this.Ib=!0};ac=v;g.prototype.reset=function(a){this.jc= +a;this.hc=this.xb=0;T(this.Er);this.km=this.dg=!1};Qb=g})(); +(function(){function c(b,a){this.fd=b;this.b=b.b;this.type=a[0];this.get=[this.Du,this.zu,this.Mu,this.Pu,this.ou,this.Nu,this.Hu,this.wu,this.Gu,this.Lu,this.pu,this.Ku,this.xu,this.Iu,this.Eu,this.Fu,this.Au,this.Bu,this.vu,this.Ou,this.Ju,this.Cu,this.uu,this.yu][this.type];var f=null;this.we=this.ba=this.Ya=this.Db=this.rl=this.second=this.first=this.value=null;this.ud=-1;this.wd=null;this.Yr=-1;this.Mf=this.qj=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= +new Zb(b,a[1]);break;case 18:this.first=new Zb(b,a[1]);this.second=new Zb(b,a[2]);this.rl=new Zb(b,a[3]);break;case 19:this.Db=this.b.Pe(a[1]);this.Db!==Y.prototype.Qa.random&&this.Db!==Y.prototype.Qa.Jt||this.fd.pr();this.Ya=[];this.ba=[];3===a.length?(f=a[2],this.Ya.length=f.length+1):this.Ya.length=1;break;case 20:this.we=this.b.G[a[1]];this.ud=-1;this.Db=this.b.Pe(a[2]);this.$g=a[3];dc.Function&&this.Db===dc.Function.prototype.Qa.qx&&this.fd.pr();a[4]?this.wd=new Zb(b,a[4]):this.wd=null;this.Ya= +[];this.ba=[];6===a.length?(f=a[5],this.Ya.length=f.length+1):this.Ya.length=1;break;case 21:this.we=this.b.G[a[1]];this.$g=a[2];a[3]?this.wd=new Zb(b,a[3]):this.wd=null;this.Yr=a[4];break;case 22:this.we=this.b.G[a[1]];this.we.hk(a[2]);this.ud=this.we.xm(a[2]);this.Db=this.b.Pe(a[3]);this.$g=a[4];a[5]?this.wd=new Zb(b,a[5]):this.wd=null;this.Ya=[];this.ba=[];7===a.length?(f=a[6],this.Ya.length=f.length+1):this.Ya.length=1;break;case 23:this.qj=a[1],this.Mf=null}this.fd.cw(this.we);4<=this.type&& +17>=this.type&&(this.first=new Zb(b,a[1]),this.second=new Zb(b,a[2]));if(f){var c,d;c=0;for(d=f.length;c=a||k<=-a)k%=a;0>k&&(k+=a);e.apply(m[k],f)};c.prototype.uu=function(b){var a=this.we,f=this.Ya,c=this.ba,d=this.wd,e=this.ud,k=this.Db,g=this.fd.He,m=a.ma(),E=m.lc();if(!E.length)if(m.ca.length)E=m.ca;else{this.$g?b.Hc(""):b.Fa(0);return}f[0]=b;b.lg=a;b=l();n(c,f,b);d&&(d.get(b),b.zb()&&(g=b.data,E=a.k));--q;c=E.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=E[g];E=0;a.S&&(E=g.type.Eg[a.ne]);k.apply(g.O[e+E],f)};c.prototype.Cu=function(b){var a=this.wd,f=this.we,c=this.Yr, +d=this.fd.He,e=f.ma(),k=e.lc();if(!k.length)if(e.ca.length)k=e.ca;else{this.$g?b.Hc(""):b.Fa(0);return}if(a){e=l();a.get(e);if(e.zb()){d=e.data;k=f.k;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=f.Am(d);f=d.nb[c];Q(f)?b.Hc(f):b.fa(f);--q;return}--q}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;f.S&&(k=d.type.Xj[f.ne]);f=d.nb[c+k];Q(f)?b.Hc(f):b.fa(f)};c.prototype.Du=function(b){b.type=bc.xg;b.data=this.value};c.prototype.zu=function(b){b.type=bc.wg;b.data=this.value};c.prototype.Mu=function(b){b.type= +bc.String;b.data=this.value};c.prototype.Pu=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};c.prototype.ou=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data+=a.data,a.Kg()&&b.Ug());--q};c.prototype.Nu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data-=a.data,a.Kg()&&b.Ug());--q};c.prototype.Hu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data*=a.data,a.Kg()&&b.Ug());--q};c.prototype.wu=function(b){this.first.get(b); +var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data/=a.data,b.Ug());--q};c.prototype.Gu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data%=a.data,a.Kg()&&b.Ug());--q};c.prototype.Lu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data=Math.pow(b.data,a.data),a.Kg()&&b.Ug());--q};c.prototype.pu=function(b){this.first.get(b);var a=l();this.second.get(a);a.Ng()||b.Ng()?this.ru(b,a):this.qu(b,a);--q};c.prototype.ru=function(b,a){b.Ng()&& +a.Ng()?this.tu(b,a):this.su(b,a)};c.prototype.tu=function(b,a){b.data+=a.data};c.prototype.su=function(b,a){b.Ng()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Hc(b.data.toString()+a.data)};c.prototype.qu=function(b,a){b.Fa(b.data&&a.data?1:0)};c.prototype.Ku=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data||a.data?b.Fa(1):b.Fa(0));--q};c.prototype.vu=function(b){this.first.get(b);b.data?this.second.get(b):this.rl.get(b)};c.prototype.xu=function(b){this.first.get(b); +var a=l();this.second.get(a);b.Fa(b.data===a.data?1:0);--q};c.prototype.Iu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.data!==a.data?1:0);--q};c.prototype.Eu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.dataa.data?1:0);--q};c.prototype.Bu=function(b){this.first.get(b); +var a=l();this.second.get(a);b.Fa(b.data>=a.data?1:0);--q};c.prototype.yu=function(b){var a=this.Mf.Lh();fa(a)?b.fa(a):b.Hc(a)};Zb=c;m.prototype.Kg=function(){return this.type===bc.wg};m.prototype.zb=function(){return this.type===bc.xg||this.type===bc.wg};m.prototype.Ng=function(){return this.type===bc.String};m.prototype.Ug=function(){this.Kg()||(this.Ng()&&(this.data=parseFloat(this.data)),this.type=bc.wg)};m.prototype.Fa=function(b){this.type=bc.xg;this.data=Math.floor(b)};m.prototype.fa=function(b){this.type= +bc.wg;this.data=b};m.prototype.Hc=function(b){this.type=bc.String;this.data=b};m.prototype.Rw=function(b){fa(b)?(this.type=bc.wg,this.data=b):Q(b)?(this.type=bc.String,this.data=b.toString()):(this.type=bc.xg,this.data=0)};Yb=m;bc={xg:0,wg:1,String:2}})();function Y(c){this.b=c;this.wc=[]} +Y.prototype.Za=function(){var c={},l,n,m,k,q,b,a,f;c.waits=[];var p=c.waits,d;l=0;for(n=this.wc.length;l=f+d)return a.L.Every_lastTime=f+d,c>=a.L.Every_lastTime+.04&&(a.L.Every_lastTime=c),a.L.Every_seconds=b,!0;cb)){var a,f,c,d=this.b.Eb(),e;k.length?e=k.pop():e={ac:{},Ga:[]};e.im=!1;e.time=this.b.ob.T+b;e.yr="";e.co=!1;e.Cg=d.jc;e.hc=d.hc+1;b=0;for(a= +this.b.G.length;bd&&(a=d);b.fa(a)};n.prototype.Jf=function(b){b.fa(this.b.Jf)};n.prototype.ug=function(b){b.fa(this.b.ug)};n.prototype.time=function(b){b.fa(this.b.ob.T)};n.prototype.md=function(b){b.Fa(this.b.md)};n.prototype.Pk=function(b){b.Fa(this.b.Pk)}; +n.prototype.um=function(b){b.Fa(this.b.um)};n.prototype.q=function(b,a,f,c,d){b.fa(Ea(La(a,f,c,d)))};n.prototype.Zv=function(b){b.Fa(this.b.za.height)};n.prototype.left=function(b,a,f){b.Hc(Q(a)?a.substr(0,f):"")};n.prototype.right=function(b,a,f){b.Hc(Q(a)?a.substr(a.length-f):"")};n.prototype.replace=function(b,a,f,c){Q(a)&&Q(f)&&Q(c)?b.Hc(a.replace(new RegExp(db(f),"gi"),c)):b.Hc(Q(a)?a:"")};n.prototype.trim=function(b,a){b.Hc(Q(a)?a.trim():"")};n.prototype.Jt=function(b){var a=R(Math.random()* +(arguments.length-1));b.Rw(arguments[a+1])};n.prototype.cm=function(b){b.fa(this.b.cm/1E3)};n.prototype.Hk=function(b){b.fa(this.b.Hk)};m.Qa=new n;m.Fw=function(){var b,a,f,c,d,e,l=this.b.Eb();b=0;for(f=this.wc.length;bthis.b.ob.T)continue;l.jc=c.Cg;l.hc=c.hc;l.xb=0;for(a in c.ac)c.ac.hasOwnProperty(a)&&(d=this.b.G[parseInt(a,10)].ma(),e=c.ac[a],d.xa=e.gl,za(d.k,e.qe),d=e,T(d.qe),q.push(d));c.Cg.Dw();this.b.Yl(c.Ga);c.im=!0}a=b= +0;for(f=this.wc.length;ba.Va||b.top>a.Ua)},d.Bx=function(){this.Ha();var a=this.Oa,b=this.b.za;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Mx=function(a,b,d){var f=this.ma(), +e=f.lc();if(!e.length)return!1;var c=e[0],k=c,l=Ra(c.x,c.y,b,d),m,n,p;m=1;for(n=e.length;ml)l=p,k=c;f.Si(k);return!0},e.Zx=function(a){this.x!==a&&(this.x=a,this.F())},e.$x=function(a){this.y!==a&&(this.y=a,this.F())},e.bt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},e.ct=function(a,b){var d=a.pv(this);if(d){var f;d.Ih?(f=d.Ih(b,!0),d=d.Ih(b,!1)):(f=d.x,d=d.y);if(this.x!==f||this.y!==d)this.x=f,this.y=d,this.F()}},e.Gx= +function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},e.Fx=function(a,b){0!==b&&(this.x+=Math.cos(X(a))*b,this.y+=Math.sin(X(a))*b,this.F())},v.qt=function(a){a.fa(this.x)},v.tt=function(a){a.fa(this.y)},v.Jf=function(a){a.fa(this.b.Pf(this))});q&&(d.ux=function(a,b){return cc(this.width,a,b)},d.rx=function(a,b){return cc(this.height,a,b)},e.Po=function(a){this.width!==a&&(this.width=a,this.F())},e.Xs=function(a){this.height!==a&&(this.height=a,this.F())},e.Yx=function(a, +b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},v.nt=function(a){a.fa(this.width)},v.us=function(a){a.fa(this.height)},v.mx=function(a){this.Ha();a.fa(this.Oa.left)},v.ox=function(a){this.Ha();a.fa(this.Oa.top)},v.nx=function(a){this.Ha();a.fa(this.Oa.right)},v.kx=function(a){this.Ha();a.fa(this.Oa.bottom)});b&&(d.Co=function(a,b){return Ma(this.q,X(b))<=X(a)},d.ys=function(a){return Pa(this.q,X(a))},d.vs=function(a,b){var d=Ka(a),f=Ka(b),e=Ga(this.q);return Pa(f,d)?Pa(e, +d)&&!Pa(e,f):!(!Pa(e,d)&&Pa(e,f))},e.Ux=function(a){a=X(Fa(a));isNaN(a)||this.q===a||(this.q=a,this.F())},e.Qx=function(a){0===a||isNaN(a)||(this.q+=X(a),this.q=Ga(this.q),this.F())},e.Rx=function(a){0===a||isNaN(a)||(this.q-=X(a),this.q=Ga(this.q),this.F())},e.Sx=function(a,b){var d=Na(this.q,X(b),X(a));isNaN(d)||this.q===d||(this.q=d,this.F())},e.Tx=function(a,b,d){a=Na(this.q,Math.atan2(d-this.y,b-this.x),X(a));isNaN(a)||this.q===a||(this.q=a,this.F())},e.et=function(a,b){var d=Math.atan2(b-this.y, +a-this.x);isNaN(d)||this.q===d||(this.q=d,this.F())},v.jx=function(a){a.fa(Ha(this.q))});m||(d.hs=function(a,b,d){return cc(this.nb[a],b,d)},d.ws=function(a){return this.nb[a]},d.Nx=function(a,b){var d=this.ma(),f=d.lc();if(!f.length)return!1;var e=f[0],c=e,k=e.nb[b],l,m,n;l=1;for(m=f.length;lk)k=n,c=e;d.Si(c);return!0},d.Lx=function(a){var b,d,f,e,c;if(this.b.Hh().ok){c=this.ma();if(c.xa)for(c.xa=!1,T(c.k),T(c.ca),f=this.k,b=0,d=f.length;ba?a=0:1e.n.index||f.n.index===e.n.index&&f.Td()>e.Td())e=f}else if(f.n.indexd)){var f=1===a;this.Qe[d]!==f&&(this.Qe[d]=f,this.Md(),this.b.Ca=!0)}}},e.Wx=function(a,b,d){if(this.b.H){var f=this.type.zm(a);0>f||(a=this.type.X[f],f=this.Xa[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.H.tv(a.kb,b)&&(d/=100),f[b]!==d&&(f[b]=d,a.Ib&&(this.b.Ca=!0))))}})};Ib=function(){this.Ul=this.Ql=!0;this.type.Aj=!0;this.b.Ca=!0;var c,n,m=this.Rl;c=0;for(n= +m.length;cm;case 5:return c>=m;default:return!1}}})();var lc={};function pc(c){this.b=c} +(function(){function c(a){0>a&&(a=0);1a&&(a=.01);this.Yk.gain.value=a;this.Xk.gain.value=Math.pow(1/a,.6)*b};E.prototype.shape=function(a,b,d){var f=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=ac;++c)e=c/32768,e=this.shape(e,d,f),this.Pj[32768+c]=e,this.Pj[32768- +c-1]=-e};E.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};E.prototype.remove=function(){this.qa.disconnect();this.Yk.disconnect();this.Dl.disconnect();this.Xk.disconnect();this.W.disconnect();this.U.disconnect()};E.prototype.Mc=function(){return this.qa};A.prototype.Wc=function(a){this.ra.disconnect();this.ra.connect(a)};A.prototype.remove=function(){this.ra.disconnect()};A.prototype.Mc=function(){return this.ra};h.prototype.Ea=function(){this.ra.getFloatFrequencyData(this.Wu); +this.ra.getByteTimeDomainData(this.ur);for(var a=this.ra.fftSize,b=0,d=this.Ri=0,f=0;bf&&(f=-f),this.Rithis.wf.length||this.wf.shift(),this.wf.push(a),this.uk=this.V.x,this.vk=this.V.y)};r.prototype.Cp=function(){if(!this.wf.length)return 0;var a,b,d=0;a=0;for(b=this.wf.length;ab&&(d=b);return d};C.prototype.$h=function(){return!this.Ac&&!this.Sd&&!this.tc&&!this.Tf()}; +C.prototype.Sw=function(){return!this.Sd&&!this.tc&&!this.Tf()};C.prototype.Zw=function(){var a=this.volume*J;isFinite(a)||(a=0);switch(this.ea){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.ea?this.lb.gain.value=a*this.Vg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};C.prototype.Uj=function(a){switch(this.ea){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.ea?(this.Vg=a?0:1,this.lb.gain.value= +J*this.volume*this.Vg):this.u.muted!==!!a&&(this.u.muted=!!a)}};C.prototype.Nw=function(){this.Lg=!0;this.Uj(this.Lg||this.ci)};C.prototype.or=function(a){this.ci=!!a;this.Uj(this.Lg||this.ci)};C.prototype.yl=function(){var a=this.playbackRate;this.Ig&&(a*=z.ug);switch(this.ea){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.ea?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};C.prototype.Pw=function(a){switch(this.ea){case 0:a? +this.$h()?(this.Qc=!0,this.u.pause()):this.Qc=!1:this.Qc&&(this.u.play(),this.Qc=!1);break;case 1:a?this.$h()?(this.Qc=!0,1===this.buffer.ea?(this.sc=this.Bm(!0),this.Xd&&(this.sc=this.sc%this.Qf()),b(this.u)):this.u.pause()):this.Qc=!1:this.Qc&&(1===this.buffer.ea?(this.u=t.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.lb),this.u.onended=this.zn,this.xj=this.u,this.u.loop=this.Xd,this.lb.gain.value=J*this.volume*this.Vg,this.yl(),this.startTime=(this.Ig?z.ob.T:z.Me.T)-this.sc/ +(this.playbackRate||.001),q(this.u,this.sc,this.Qf())):this.u.play(),this.Qc=!1);break;case 2:a?this.$h()?(this.u.pause(),this.Qc=!0):this.Qc=!1:this.Qc&&(this.Qc=!1,this.u.play())}};F.Y=function(a){this.type=a;z=this.b=a.b;M=this;this.$b=null;this.vi=-600;this.b.bi&&(lb=!0);!(this.b.ei||this.b.pk&&(this.b.Uh||this.b.qk))||this.b.Vh||this.b.Da||this.b.Qm||lb||(Sa=!0);t=null;"undefined"!==typeof AudioContext?(B=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(B=1,t=new webkitAudioContext); +this.b.ei&&t&&(t.close&&t.close(),"undefined"!==typeof AudioContext?t=new AudioContext:"undefined"!==typeof webkitAudioContext&&(t=new webkitAudioContext));Sa&&document.addEventListener("touchend",function(){if(!zc&&t){if(!pa&&t.createBuffer){var a=t.createBuffer(1,220,22050),b=t.createBufferSource();b.buffer=a;b.connect(t.destination);k(b)}zc=!0}var d;if(Sa){if(!U)for(a=0,b=Ta.length;a"!==b&&(a.Uk=b,a.sn=f,a.xo=e),null;k=new C(a,b);w.push(k);return k};var Oa=[];P.prototype.wj=function(a){return kb(ga,a)};F.D=new P;N.prototype.Play=function(a,b,d,f){!U&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1< +d&&(d=1),u=this.vp(this.b.rm+a[0]+(D?".ogg":".m4a"),f,a[1],0!==b,d))&&(u.Zn(!1),u.play(0!==b,d,0,this.Cq),this.Cq=0)};N.prototype.it=function(){var a,b;a=0;for(b=w.length;a=a||0>=f||m>=l||b>=d?(this.kc||jQuery(this.I).hide(),this.kc=!0):(1>m&&(m=1),1>b&&(b=1),a>=l&&(a=l-1),f>=d&&(f=d-1),l=window.innerWidth,d=window.innerHeight, +c||this.li!==m||this.oi!==b||this.ni!==a||this.ji!==f||this.qi!==l||this.pi!==d?(this.li=m,this.oi=b,this.ni=a,this.ji=f,this.qi=l,this.pi=d,this.kc&&(jQuery(this.I).show(),this.kc=!1),c=Math.round(m)+jQuery(this.b.canvas).offset().left,l=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:c,top:l}),jQuery(this.I).width(Math.round(a-m)),jQuery(this.I).height(Math.round(f-b)),this.At&&jQuery(this.I).css("font-size",this.n.mc(!0)/this.b.devicePixelRatio- +.2+"em")):this.kc&&(jQuery(this.I).show(),this.kc=!1))}};m.$c=function(){};m.Yb=function(){};c.prototype.uj=function(){return!0};n.D=new c;l.prototype.No=function(c){this.b.Da||(this.Hg?this.hi.nodeValue=c:this.I.value=c)};l.prototype.Il=function(c){this.b.Da||(this.visible=0!==c)};n.J=new l;n.Qa=new function(){}})();function rc(c){this.b=c} +(function(){function c(){}var l=rc.prototype;l.ka=function(c){this.Ja=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c){this.type=c;this.b=c.b;this.Rg=Array(256);this.oj=Array(256);this.Ke=0};var n=l.Y.prototype;n.N=function(){var c=this;this.b.Da||(jQuery(document).keydown(function(m){c.Oi(m)}),jQuery(document).keyup(function(m){c.Pi(m)}))};var m=[32,33,34,35,36,37,38,39,40,44];n.Oi=function(c){var l=!1;window!=window.top&&-1c;++c)if(this.Rg[c]){this.Rg[c]=!1;this.Ke=c;this.b.trigger(rc.prototype.D.Eo,this);var m=this.b.trigger(rc.prototype.D.Ho,this),b=this.b.trigger(rc.prototype.D.Go,this);if(m||b)this.oj[c]=!0}};n.Za=function(){return{triggerKey:this.Ke}};n.hb=function(c){this.Ke=c.triggerKey};c.prototype.zs=function(c){return this.Rg[c]};c.prototype.Fo=function(c){return c===this.Ke};c.prototype.Gs=function(){return!0}; +c.prototype.Eo=function(){return!0};c.prototype.Ho=function(c){return c===this.Ke};c.prototype.Ms=function(c){return c===this.Ke};c.prototype.Go=function(c){return c===this.Ke};l.D=new c;l.J=new function(){};l.Qa=new function(){}})();function Z(c){this.b=c} +(function(){function c(){if(0===this.fm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.eh?b.drawImage(this.ya,this.Wg,this.Xg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ya,0,0,this.width,this.height);this.fm=a.toDataURL("image/png")}return this.fm}function l(){}function n(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function m(a,b){return athis.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);var a=this.Pa.frames[this.M];this.la.cj(a.Vk);this.nc=a.nc;this.oc=a.oc;this.Bh=this.Pa.speed;this.Ye=this.Pa.Qn;this.Fc?this.Od.reset():this.Od=new cb;this.oe=this.Od.T;this.Af=!0;this.he=0;this.zf=!0;this.Jj=this.So="";this.bp=0;this.Xl=-1;this.type.mn();var b,d,f,c, +e,k,g,a=0;for(b=this.type.ic.length;athis.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);this.Bh=a.cas;this.oe=a.fs;this.he=a.ar;this.Od.reset();this.Od.T=a.at;this.Af=a.hasOwnProperty("ap")?a.ap:!0;this.zf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ye=a.rt:this.Ye=this.Pa.Qn;this.Xc=this.Pa.frames[this.M];this.Nj=this.Xc.Na;this.la.cj(this.Xc.Vk);this.nc= +this.Xc.nc;this.oc=this.Xc.oc};e.Ol=function(a){this.M=a?0:this.Pa.frames.length-1;this.Af=!1;this.So=this.Pa.name;this.Nm=!0;this.b.trigger(Z.prototype.D.Fs,this);this.b.trigger(Z.prototype.D.Es,this);this.Nm=!1;this.he=0};e.Pl=function(){return this.Od.T};e.Ea=function(){this.Od.add(this.b.Pf(this));this.Jj.length&&this.ip();0<=this.Xl&&this.Qt();var a=this.Od.T,b=this.Pa,d=b.frames[this.M],f=d.duration/this.Bh;this.Af&&a>=this.oe+f&&(this.zf?this.M++:this.M--,this.oe+=f,this.M>=b.frames.length&& +(b.Vq?(this.zf=!1,this.M=b.frames.length-2):b.loop?this.M=this.Ye:(this.he++,this.he>=b.Pn?this.Ol(!1):this.M=this.Ye)),0>this.M&&(b.Vq?(this.M=1,this.zf=!0,b.loop||(this.he++,this.he>=b.Pn&&this.Ol(!0))):b.loop?this.M=this.Ye:(this.he++,this.he>=b.Pn?this.Ol(!0):this.M=this.Ye)),0>this.M?this.M=0:this.M>=b.frames.length&&(this.M=b.frames.length-1),a>this.oe+b.frames[this.M].duration/this.Bh&&(this.oe=a),a=b.frames[this.M],this.yg(d,a),this.b.Ca=!0)};e.up=function(a){var b,d,f;b=0;for(d=this.type.ic.length;b< +d;b++)if(f=this.type.ic[b],kb(f.name,a))return f;return null};e.Zu=function(a){var b,d,f;b=0;for(d=this.type.ic.length;bthis.M&&(this.M=0),this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1),1===this.bp&&(this.M=0),this.Af=!0,this.oe=this.Od.T,this.zf=!0,this.yg(a,this.Pa.frames[this.M]), +this.b.Ca=!0)};e.Qt=function(){var a=this.Pa.frames[this.M],b=this.M;this.M=R(this.Xl);0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);b!==this.M&&(this.yg(a,this.Pa.frames[this.M]),this.oe=this.Od.T,this.b.Ca=!0);this.Xl=-1};e.yg=function(a,b){var d=a.width,f=a.height,c=b.width,e=b.height;d!=c&&(this.width*=c/d);f!=e&&(this.height*=e/f);this.nc=b.nc;this.oc=b.oc;this.la.cj(b.Vk);this.F();this.Xc=b;this.Nj=b.Na;d=0;for(f=this.O.length;dc||c>=f.length)return b?this.x:this.y;var e=(f[c][1]-d.nc)*this.width,f=f[c][2],f=(f-d.oc)*this.height,d=Math.cos(this.q);c=Math.sin(this.q);var k=e*d-f*c,f=f*d+e*c,e=k+this.x,f=f+this.y;return b?e:f};var v=[],g=-2,I=[];l.prototype.Is=function(a){if(!a)return!1;var d=this.b,f=d.Hh(), +c=f.type,e=null;f.L.collmemory?e=f.L.collmemory:(e={},f.L.collmemory=e);f.L.spriteCreatedDestroyCallback||(f.L.spriteCreatedDestroyCallback=!0,d.yj(function(a){var b=f.L.collmemory;a=a.uid;var d,c;for(d in b)b.hasOwnProperty(d)&&(c=b[d],c[0]===a||c[1]===a)&&(n(b[d]),delete b[d])}));var m=c.ma(),l=a.ma(),m=m.lc(),p,v,E,A,K,B,t,W=this.b.md,w=W-1,u=d.Eb().jc;for(v=0;v=this.Vc.left&&this.type.vh.update(this,this.Vc,null),this.Vc.set(0,0,-1,-1)))};f.J=new a;f.Qa=new function(){}})();function sc(c){this.b=c} +(function(){function c(){return a.length?a.pop():{}}function l(b){var c,d;c=0;for(d=b.length;ca.Va||b.top>a.Ua)this.b.H.deleteTexture(this.Cc),this.Yd=this.kg=this.Cc=null}};q.Cd=function(){this.Yd=this.kg=null;this.b.H&& +this.Cc&&this.b.H.deleteTexture(this.Cc);this.Cc=null};q.Pl=function(){this.font=this.ck+" "+this.Vi.toString()+"pt "+this.Dg;this.tg=!0;this.b.Ca=!0};q.$c=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.n.mc(),a.save(),a.scale(d,d));if(this.tg||this.width!==this.gn)this.type.Ja.ot(this.text,this.kf,a,this.width,this.Ao),this.tg=!1,this.gn=this.width;this.Ha();var d=b?0:this.Mb.ub,c=b?0:this.Mb.wb;this.b.Fd&&(d=d+.5|0,c= +c+.5|0);0===this.q||b||(a.save(),a.translate(d,c),a.rotate(this.q),c=d=0);var k=c+this.height,g=this.Kn,g=g+this.jn,m,l;1===this.Al?c+=Math.max(this.height/2-this.kf.length*g/2,0):2===this.Al&&(c+=Math.max(this.height-this.kf.length*g-2,0));for(l=0;l=k-g);l++);(0!==this.q||b)&&a.restore();this.ti=this.b.md};q.Yb=function(a){if(!(1>this.width|| +1>this.height)){var b=this.tg||this.Bq;this.Bq=!1;var d=this.n.mc(),c=this.n.ab(),k=this.tf,g=d*this.width,m=d*this.height,l=Math.ceil(g),n=Math.ceil(m),h=this.b.R/2,q=this.b.P/2;this.kg||(this.Yd=document.createElement("canvas"),this.Yd.width=l,this.Yd.height=n,this.yk=l,this.xk=n,b=!0,this.kg=this.Yd.getContext("2d"));if(l!==this.yk||n!==this.xk)this.Yd.width=l,this.Yd.height=n,this.Cc&&(a.deleteTexture(this.Cc),this.Cc=null),b=!0;b&&(this.kg.clearRect(0,0,l,n),this.$c(this.kg,!0),this.Cc||(this.Cc= +a.Kc(l,n,this.b.da,this.b.Xf)),a.gx(this.Yd,this.Cc,this.b.Xf));this.yk=l;this.xk=n;a.Gc(this.Cc);a.ng(this.opacity);a.hd();a.translate(-h,-q);a.Rc();var x=this.Mb,b=this.n.wa(x.ub,x.wb,!0,!0),h=this.n.wa(x.ub,x.wb,!1,!0),q=this.n.wa(x.Wb,x.Xb,!0,!0),C=this.n.wa(x.Wb,x.Xb,!1,!0),G=this.n.wa(x.Nb,x.Ob,!0,!0),P=this.n.wa(x.Nb,x.Ob,!1,!0),N=this.n.wa(x.Kb,x.Lb,!0,!0),x=this.n.wa(x.Kb,x.Lb,!1,!0);if(this.b.Fd||0===this.q&&0===c)var F=(b+.5|0)-b,z=(h+.5|0)-h,b=b+F,h=h+z,q=q+F,C=C+z,G=G+F,P=P+z,N=N+F,x= +x+z;0===this.q&&0===c?(q=b+l,C=h,G=q,P=h+n,N=b,x=P,k.right=1,k.bottom=1):(k.right=g/l,k.bottom=m/n);a.ae(b,h,q,C,G,P,N,x,k);a.hd();a.scale(d,d);a.el(-this.n.ab());a.translate((this.n.La+this.n.Va)/-2,(this.n.Ma+this.n.Ua)/-2);a.Rc();this.ti=this.b.md}};var b=[];k.kt=function(a){T(b);for(var c="",d,e=0;e=e)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=d.measureText(a).width;if(g<=e){l(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.pt(a,b,d,e,k)}else l(b)};k.pt=function(f,k,d,e,m){m&&(this.kt(f),f=b);var g="",l,q,A,h=0;for(A=0;A=k.length&&k.push(c()),g=n(g),q=k[h],q.text=g,q.width=d.measureText(g).width,h++,g=""):(l=g,g+=f[A],q=d.measureText(g).width, +q>=e&&(h>=k.length&&k.push(c()),l=n(l),q=k[h],q.text=l,q.width=d.measureText(l).width,h++,g=f[A],m||" "!==g||(g="")));g.length&&(h>=k.length&&k.push(c()),g=n(g),q=k[h],q.text=g,q.width=d.measureText(g).width,h++);for(A=h;Aa&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.tg=!0,this.b.Ca=!0)};k.J=new m;k.Qa=new function(){}})();function tc(c){this.b=c} +(function(){var c=tc.prototype;c.ka=function(c){this.Ja=c;this.b=c.b};var l=c.ka.prototype;l.N=function(){this.S||(this.ya=new Image,this.ya.dp=this.jo,this.b.Zr(this.ya,this.io),this.Na=this.pattern=null)};l.Qk=function(){this.S||(this.Na=null)};l.yn=function(){if(!this.S&&this.k.length){this.Na||(this.Na=this.b.H.Fk(this.ya,!0,this.b.da,this.ko));var c,m;c=0;for(m=this.k.length;ca&&(a+=this.ya.width);0>f&&(f+=this.ya.height);c.translate(m,k);c.rotate(this.q);c.translate(a,f);c.fillRect(l-a,b-f,this.width,this.height);c.restore()};l.If=function(c){this.Yb(c)}; +l.Yb=function(c){c.Gc(this.Na);c.ng(this.opacity);var m=this.tf;m.right=this.width/this.ya.width;m.bottom=this.height/this.ya.height;var k=this.Mb;if(this.b.Fd){var l=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.ae(k.ub+l,k.wb+b,k.Wb+l,k.Xb+b,k.Nb+l,k.Ob+b,k.Kb+l,k.Lb+b,m)}else c.ae(k.ub,k.wb,k.Wb,k.Xb,k.Nb,k.Ob,k.Kb,k.Lb,m)};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function uc(c){this.b=c} +(function(){function c(){}function l(){}var n=uc.prototype;n.ka=function(c){this.Ja=c;this.b=c.b};n.ka.prototype.N=function(){};n.Y=function(c){this.type=c;this.b=c.b};var m=n.Y.prototype;m.N=function(){this.b.Da?y("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.I=document.createElement("progress"),this.value=this.C[0],this.max=this.C[1],0=a||0>=f||m>=l||b>=d?(this.kc||jQuery(this.I).hide(),this.kc=!0):(1>m&&(m=1),1>b&&(b=1),a>=l&&(a=l-1),f>=d&&(f=d-1),l=window.innerWidth,d=window.innerHeight,c||this.li!==m||this.oi!==b||this.ni!==a||this.ji!==f||this.qi!==l||this.pi!==d?(this.li=m,this.oi=b,this.ni=a,this.ji=f,this.qi=l,this.pi=d,this.kc&&(jQuery(this.I).show(),this.kc=!1),c=Math.round(m)+ +jQuery(this.b.canvas).offset().left,l=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:c,top:l}),jQuery(this.I).width(Math.round(a-m)),jQuery(this.I).height(Math.round(f-b))):this.kc&&(jQuery(this.I).show(),this.kc=!1))}};m.$c=function(){};m.Yb=function(){};c.prototype.uj=function(){return!0};n.D=new c;l.prototype.Il=function(c){this.b.Da||(this.visible=0!==c)};l.prototype.dt=function(c){this.b.Da||(this.value=c,this.I.max=this.max, +this.I.value=this.value)};n.J=new l;n.Qa=new function(){}})();function vc(c){this.b=c} +(function(){function c(){}var l=vc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=l.Y.prototype;n.N=function(){var c=this.C[0];this.Ba=this.C[1];this.Zb=this.C[2];this.Dt=0!==this.C[3];this.Xn=0!==this.C[4];this.A=Math.cos(this.j.q)*c;this.B=Math.sin(this.j.q)*c;this.zk=this.j.x;this.Ak=this.j.y;this.cd=this.j.q;this.tl=0;this.enabled=0!==this.C[5]};n.Za=function(){return{acc:this.Ba, +g:this.Zb,dx:this.A,dy:this.B,lx:this.zk,ly:this.Ak,lka:this.cd,t:this.tl,e:this.enabled}};n.hb=function(c){this.Ba=c.acc;this.Zb=c.g;this.A=c.dx;this.B=c.dy;this.zk=c.lx;this.Ak=c.ly;this.cd=c.lka;this.tl=c.t;this.enabled=c.e};n.Ea=function(){if(this.enabled){var c=this.b.Pf(this.j),k,l;this.j.q!==this.cd&&(this.Xn&&(k=Ra(0,0,this.A,this.B),this.A=Math.cos(this.j.q)*k,this.B=Math.sin(this.j.q)*k),this.cd=this.j.q);0!==this.Ba&&(k=Ra(0,0,this.A,this.B),l=0===this.A&&0===this.B?this.j.q:La(0,0,this.A, +this.B),k+=this.Ba*c,0>k&&(k=0),this.A=Math.cos(l)*k,this.B=Math.sin(l)*k);0!==this.Zb&&(this.B+=this.Zb*c);this.zk=this.j.x;this.Ak=this.j.y;if(0!==this.A||0!==this.B)if(this.j.x+=this.A*c,this.j.y+=this.B*c,this.tl+=Ra(0,0,this.A*c,this.B*c),this.Xn&&(this.j.q=La(0,0,this.A,this.B),this.j.F(),this.cd=this.j.q),this.j.F(),this.Dt&&(k=this.b.Ka(this.j)))this.b.be(this.j,k),k=Ra(0,0,this.A,this.B),l=this.b.Gt(this.j,this.zk,this.Ak),this.A=Math.cos(l)*k,this.B=Math.sin(l)*k,this.j.x+=this.A*c,this.j.y+= +this.B*c,this.j.F(),this.Xn&&(this.cd=this.j.q=l,this.j.F()),this.b.Pc(this.j,this.A/k,this.B/k,Math.max(2.5*k*c,30))||this.b.Jn(this.j,100)}};l.D=new function(){};c.prototype.Hl=function(c){this.Ba=c};c.prototype.Lo=function(c){this.Zb=c};l.J=new c;l.Qa=new function(){}})();function wc(c){this.b=c} +(function(){function c(){}var l=wc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b;this.Ge=this.Fe=this.ll=this.ml=this.pe=this.Jd=this.Bd=this.Dh=this.nj=!1;this.cn=this.bn=this.an=this.dn=-1;this.B=this.A=0};var n=l.Y.prototype;n.N=function(){this.ed=this.C[0];this.Ba=this.C[1];this.Qb=this.C[2];this.jm=this.C[3];this.Nl=this.C[4];this.hm=1===this.C[5];this.enabled=0!==this.C[6];this.hm&& +!this.b.Da&&(jQuery(document).keydown(function(c){return function(k){c.Oi(k)}}(this)),jQuery(document).keyup(function(c){return function(k){c.Pi(k)}}(this)))};n.Za=function(){return{dx:this.A,dy:this.B,enabled:this.enabled,maxspeed:this.ed,acc:this.Ba,dec:this.Qb,ignoreInput:this.pe}};n.hb=function(c){this.A=c.dx;this.B=c.dy;this.enabled=c.enabled;this.ed=c.maxspeed;this.Ba=c.acc;this.Qb=c.dec;this.pe=c.ignoreInput;this.Ge=this.Fe=this.ll=this.ml=this.Jd=this.Bd=this.Dh=this.nj=!1;this.cn=this.bn= +this.an=this.dn=-1};n.Oi=function(c){var k=this.b.md;switch(c.which){case 37:c.preventDefault();this.bnthis.A?(this.A+=this.Qb*c,0this.A&&(this.A=0)));b==a&&(0>this.B?(this.B+=this.Qb*c,0this.B&&(this.B=0)));k&&!l&&(this.A=0this.A?this.A+(this.Ba+this.Qb)*c:this.A+this.Ba*c);b&&!a&&(this.B=0this.B?this.B+(this.Ba+this.Qb)*c:this.B+this.Ba*c);if(0!==this.A||0!==this.B){Math.sqrt(this.A*this.A+this.B*this.B)>this.ed&& +(f=Math.atan2(this.B,this.A),this.A=this.ed*Math.cos(f),this.B=this.ed*Math.sin(f));l=this.j.x;b=this.j.y;k=this.j.q;this.j.x+=this.A*c;this.j.F();if(f=this.b.Ka(this.j))this.j.x=l,this.A=0,this.j.F(),this.b.be(this.j,f);this.j.y+=this.B*c;this.j.F();if(f=this.b.Ka(this.j))this.j.y=b,this.B=0,this.j.F(),this.b.be(this.j,f);c=jb(this.A);f=jb(this.B);if(0!==c||0!==f)1===this.Nl?this.j.q=Ka(90*Math.round(Ea(Math.atan2(f,c))/90)):2===this.Nl?this.j.q=Ka(45*Math.round(Ea(Math.atan2(f,c))/45)):3===this.Nl&& +(this.j.q=Math.atan2(f,c));this.j.F();this.j.q!=k&&(f=this.b.Ka(this.j))&&(this.j.q=k,this.j.F(),this.b.be(this.j,f))}}};l.D=new function(){};c.prototype.Mo=function(c){this.pe=c};c.prototype.Hl=function(c){this.Ba=c;0>this.Ba&&(this.Ba=0)};c.prototype.Jl=function(c){switch(c){case 0:this.Fe=!0;break;case 1:this.Ge=!0;break;case 2:this.ml=!0;break;case 3:this.ll=!0}};c.prototype.Oo=function(c){this.B=c};l.J=new c;l.Qa=new function(){}})();function xc(c){this.b=c} +(function(){function c(){}function l(){}var n=xc.prototype;n.ka=function(a){this.behavior=a;this.b=a.b};var m=n.ka.prototype;m.N=function(){this.pf=[]};m.Tu=function(a){var b,d,c;b=0;for(d=a.O.length;bthis.j.width&&(l+=Math.PI);if(Ra(d,c,a,b)>this.Mn||Ma(l,La(d,c,a,b))>this.$l/2)return!1;var g,m;q.set(d,c,a,b);q.normalize();if(0===this.ew)for(this.Wr? +this.b.Bp(this.j.n,q,k):(l=this.b.eo)&&Aa(k,l.Ji.nd()),l=0,g=k.length;l +this.sf||4===this.mode&&lthis.Zb&&(this.Ra*=-1,this.Sa*=-1,this.Zb=Math.abs(this.Zb))};m.N=function(){this.ed=this.C[0];this.Ba=this.C[1];this.Qb=this.C[2];this.gi=this.C[3];this.fk=this.Zb=this.C[4];this.ig=this.C[5];this.lm=0!==this.C[6];this.Ym=this.C[7]/1E3;this.hm=1===this.C[8];this.enabled=0!==this.C[9];this.nh=!1;this.oh=this.b.ge(this.j);this.ln=-1;this.sg=0;this.df=X(90); +this.wl();var c=this;this.hm&&!this.b.Da&&(jQuery(document).keydown(function(l){c.Oi(l)}),jQuery(document).keyup(function(l){c.Pi(l)}));this.Fc||(this.Hi=function(l){c.Ni(l)});this.b.yj(this.Hi);this.j.L.isPlatformBehavior=!0};m.Za=function(){return{ii:this.pe,lfx:this.$f,lfy:this.ag,lfo:this.Tb?this.Tb.uid:-1,am:this.sd,en:this.enabled,fall:this.cf,ft:this.ak,dx:this.A,dy:this.B,ms:this.ed,acc:this.Ba,dec:this.Qb,js:this.gi,g:this.Zb,g1:this.fk,mf:this.ig,wof:this.nh,woj:this.oh?this.oh.uid:-1,ga:this.df, +edj:this.lm,cdj:this.uh,dj:this.Ch,sus:this.Ym}};m.hb=function(c){this.pe=c.ii;this.$f=c.lfx;this.ag=c.lfy;this.kn=c.lfo;this.sd=c.am;this.enabled=c.en;this.cf=c.fall;this.ak=c.ft;this.A=c.dx;this.B=c.dy;this.ed=c.ms;this.Ba=c.acc;this.Qb=c.dec;this.gi=c.js;this.Zb=c.g;this.fk=c.g1;this.ig=c.mf;this.nh=c.wof;this.ln=c.woj;this.df=c.ga;this.lm=c.edj;this.uh=c.cdj;this.Ch=c.dj;this.Ym=c.sus;this.gj=this.Ge=this.Fe=this.Pg=this.Qg=this.Jd=this.Bd=!1;this.sg=0;this.wl()};m.qd=function(){-1===this.kn? +this.Tb=null:this.Tb=this.b.Rf(this.kn);-1===this.ln?this.oh=null:this.oh=this.b.Rf(this.ln)};m.Ni=function(c){this.Tb==c&&(this.Tb=null)};m.Cd=function(){this.Tb=null;this.b.fr(this.Hi)};m.Oi=function(c){switch(c.which){case 38:c.preventDefault();this.Qg=!0;break;case 37:c.preventDefault();this.Bd=!0;break;case 39:c.preventDefault(),this.Jd=!0}};m.Pi=function(c){switch(c.which){case 38:c.preventDefault();this.Pg=this.Qg=!1;break;case 37:c.preventDefault();this.Bd=!1;break;case 39:c.preventDefault(), +this.Jd=!1}};m.qf=function(){this.Qg=this.Jd=this.Bd=!1};m.Pl=function(){return 0>this.Zb?-1:1};m.Rp=function(){var c=null,l=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();if(this.Tb&&this.b.ec(this.j,this.Tb))return this.j.x=b,this.j.y=a,this.j.F(),this.Tb;(c=this.b.Ka(this.j))||0!==this.cf||(l=this.b.ge(this.j,!0));this.j.x=b;this.j.y=a;this.j.F();if(c){if(this.b.ec(this.j,c))return null;this.bk=!1;return c}if(l&&l.length){a=c=0;for(b=l.length;cthis.ig&&(this.B=this.ig)),E&&(this.Pg=!0));this.nh=!!A;I==a&&(0>this.A?(this.A+=this.Qb*c,0this.A&&(this.A=0)));I&&!a&&(this.A=0this.A?this.A+(this.Ba+this.Qb)*c:this.A+this.Ba*c);this.A>this.ed?this.A=this.ed:this.A<-this.ed&&(this.A=-this.ed);I=!1;0!==this.A&&(n=this.j.x,g=this.j.y,l=this.A*c*this.Be,b=this.A*c*this.Ce,this.j.x+= +this.Be*(1this.A?1:-1),this.Ce*(0>this.A?1: +-1),l,!1)?!A||f||this.bk||(n=this.j.x,g=this.j.y,this.j.x+=this.Ra,this.j.y+=this.Sa,this.b.Ka(this.j)?this.b.Pc(this.j,-this.Ra,-this.Sa,3,!1)||(this.j.x=n,this.j.y=g,this.j.F()):(this.j.x=n,this.j.y=g,this.j.F())):(this.j.x=n,this.j.y=g,this.j.F()),f||(this.A=0)):!m&&!E&&Math.abs(this.B)this.B?1:-1),this.Sa*(0>this.B?1:-1),l,f,b)?(this.Tb=b,this.$f=b.x,this.ag=b.y,(this.bk=f)&&(I=!0),this.B=0):(this.j.x=n,this.j.y=g,this.j.F(),this.nh=!0,f||(this.B=0)))}3!==this.sd&&0this.Ba&&(this.Ba=0)};l.prototype.Lo=function(c){this.fk!==c&&(this.Zb=c,this.wl(),this.b.Ka(this.j)&&(this.b.Pc(this.j,this.Ra,this.Sa,10),this.j.x+=2*this.Ra,this.j.y+=2*this.Sa,this.j.F()),this.Tb=null)};l.prototype.Zs=function(c){this.ig=c;0>this.ig&&(this.ig=0)};l.prototype.Jl=function(c){switch(c){case 0:this.Fe= +!0;break;case 1:this.Ge=!0;break;case 2:this.gj=!0}};l.prototype.Oo=function(c){this.B=c};l.prototype.Ws=function(c){c=X(c);c=Ga(c);this.df!==c&&(this.df=c,this.wl(),this.Tb=null)};l.prototype.qs=function(){var c=this.j.x,l=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();var b=this.b.ge(this.j,!1);this.j.x=c;this.j.y=l;this.j.F();b&&(this.cf=3,this.Tb=null)};n.J=new l;n.Qa=new function(){}})();function Bc(c){this.b=c} +(function(){var c=Bc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,b){this.type=c;this.behavior=c.behavior;this.j=b;this.b=c.b;this.mb=0};var l=c.Y.prototype,n=2*Math.PI,m=Math.PI/2,k=3*Math.PI/2;l.N=function(){this.Ib=1===this.C[0];this.Gi=this.C[1];this.zo=this.C[2];this.Ae=this.C[3];this.Ae+=Math.random()*this.C[4];0===this.Ae?this.mb=0:(this.mb=this.C[5]/this.Ae*n,this.mb+=Math.random()*this.C[6]/this.Ae*n);this.qc=this.C[7];this.qc+=Math.random()* +this.C[8];this.Yi=this.Vf=this.na=0;this.init()};l.Za=function(){return{i:this.mb,a:this.Ib,mv:this.Gi,w:this.zo,p:this.Ae,mag:this.qc,iv:this.na,iv2:this.Vf,r:this.Yi,lkv:this.Bc,lkv2:this.ki}};l.hb=function(c){this.mb=c.i;this.Ib=c.a;this.Gi=c.mv;this.zo=c.w;this.Ae=c.p;this.qc=c.mag;this.na=c.iv;this.Vf=c.iv2||0;this.Yi=c.r;this.Bc=c.lkv;this.ki=c.lkv2||0};l.init=function(){switch(this.Gi){case 0:this.na=this.j.x;break;case 1:this.na=this.j.y;break;case 2:this.na=this.j.width;this.Yi=this.j.height/ +this.j.width;break;case 3:this.na=this.j.width;break;case 4:this.na=this.j.height;break;case 5:this.na=this.j.q;this.qc=X(this.qc);break;case 6:this.na=this.j.opacity;break;case 7:this.na=0;break;case 8:this.na=this.j.x,this.Vf=this.j.y}this.Bc=this.na;this.ki=this.Vf};l.Ne=function(c){c=c%n;switch(this.zo){case 0:return Math.sin(c);case 1:return c<=m?c/m:c<=k?1-2*(c-m)/Math.PI:(c-k)/m-1;case 2:return 2*c/n-1;case 3:return-2*c/n+1;case 4:return cthis.j.opacity?this.j.opacity=0:1=l.duration&&(l.er?l.current.T-=l.duration:delete this.vc[c]))};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function oc(c){this.b=c} +(function(){var c=oc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.j.L.jumpthruEnabled=0!==this.C[0]};l.Ea=function(){};c.D=new function(){};c.J=new function(){}})();function Dc(c){this.b=c;this.ao=this.kl=this.fj=this.$n=0} +(function(){var c=Dc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.enabled=0!==this.C[0]};l.Za=function(){return{smg:this.behavior.$n,ss:this.behavior.fj,se:this.behavior.kl,smd:this.behavior.ao}};l.hb=function(c){this.behavior.$n=c.smg;this.behavior.fj=c.ss;this.behavior.kl=c.se;this.behavior.ao=c.smd};l.Ea=function(){};l.lj=function(){if(this.enabled){var c= +this.behavior.Ji.nd(),l=0,k=0,q,b,a,f=0;q=0;for(b=c.length;q=this.behavior.fj&&b + + + + + BalloonMan + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + +

Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. What is a browser? +

Microsoft Internet Explorer
+ Mozilla Firefox
+ Google Chrome
+ Apple Safari
+ Google Chrome Frame for Internet Explorer

+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/jquery-2.1.1.min.js b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/jquery-2.1.1.min.js new file mode 100644 index 0000000..e150866 --- /dev/null +++ b/DMD2500-IntroGameDesignAndDevelopment/2016-Spring/balloonman/jquery-2.1.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b) +},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("