diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/appmanifest.json b/milesplatfomer demo 2.0/delet this miles wolf allen/appmanifest.json new file mode 100644 index 00000000..6d1f9be3 --- /dev/null +++ b/milesplatfomer demo 2.0/delet this miles wolf allen/appmanifest.json @@ -0,0 +1,28 @@ +{ + "name": "New project", + "short_name": "New project", + "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/milesplatfomer demo 2.0/delet this miles wolf allen/c2runtime.js b/milesplatfomer demo 2.0/delet this miles wolf allen/c2runtime.js new file mode 100644 index 00000000..3f4df0c8 --- /dev/null +++ b/milesplatfomer demo 2.0/delet this miles wolf allen/c2runtime.js @@ -0,0 +1,461 @@ +// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net +'use strict';var aa,ba,ca,da,ea,ia,ja,y,ka,la,ma,na,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,V,Aa,Ba,Ca,Da,Ea,W,Fa,Ha,Ia,Ja,Ka,La,Ma,Qa,Ra,Sa,Ta,Ua,Va,Wa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,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,fc,gc={},hc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype}); +(function(){function b(a,e,d,h){this.set(a,e,d,h)}function m(){this.Ua=this.Ta=this.Wa=this.Va=this.bb=this.ab=this.Ha=this.Ga=0}function g(a,e,d,h){ah?e:h):(v=ad?e:d):dh?a:h):(v=ed?a:d)}function n(){this.items=this.Nd=null;this.ei=0;K&&(this.Nd=new Set);this.qh=[];this.Ke=!0}function p(a){C[N++]=a}function r(){this.fa=this.jl=this.y=this.Il=0}function c(a){this.hb=[];this.oj=this.qj=this.rj=this.pj=0;this.Ni(a)}function a(a,e){this.Nl= +a;this.Ml=e;this.cells={}}function l(a,e){this.Nl=a;this.Ml=e;this.cells={}}function t(a,e,d){var h;return E.length?(h=E.pop(),h.um=a,h.x=e,h.y=d,h):new aa(a,e,d)}function e(a,e,d){this.um=a;this.x=e;this.y=d;this.Bb=new ba}function d(a,e,d){var h;return I.length?(h=I.pop(),h.um=a,h.x=e,h.y=d,h):new ca(a,e,d)}function k(a,e,d){this.um=a;this.x=e;this.y=d;this.Bb=[];this.Mg=!0;this.Ld=new ba;this.xh=!1}function f(a,e){return a.xd-e.xd}da=function(a){window.console&&window.console.log&&window.console.log(a)}; +ea=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};y=function(a){return"string"===typeof a};ka=function(a){return 0e;e<<=1)a=a|a>>e;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,e){return a>e?a:e};pa=function(a,e){return aF)return!1;eF)return!1;B=f-a+l-d;x=k-e+q-h;a=d-a;e=h-e;f=l-f;k=q-k;q=ma(e*f-k*a);return ma(f*x-k*B)>q?!1:ma(a*x-e*B)<=q};b.prototype.set=function(a,e,d,h){this.left=a;this.top=e;this.right=d;this.bottom=h};b.prototype.Ch=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.width=function(){return this.right- +this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};b.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)};b.prototype.ov=function(a){return!(a.rightthis.right||a.top>this.bottom)};b.prototype.pv=function(a,e,d){return!(a.right+ +ethis.right||a.top+d>this.bottom)};b.prototype.nc=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};b.prototype.Hh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=b;m.prototype.lg=function(a){this.Ga=a.left;this.Ha=a.top;this.ab=a.right;this.bb=a.top;this.Va=a.right;this.Wa=a.bottom;this.Ta=a.left;this.Ua=a.bottom};m.prototype.er=function(a,e){if(0===e)this.lg(a);else{var d= +Math.sin(e),h=Math.cos(e),f=a.left*d,k=a.top*d,l=a.right*d,d=a.bottom*d,q=a.left*h,B=a.top*h,x=a.right*h,h=a.bottom*h;this.Ga=q-k;this.Ha=B+f;this.ab=x-k;this.bb=B+l;this.Va=x-d;this.Wa=h+l;this.Ta=q-d;this.Ua=h+f}};m.prototype.offset=function(a,e){this.Ga+=a;this.Ha+=e;this.ab+=a;this.bb+=e;this.Va+=a;this.Wa+=e;this.Ta+=a;this.Ua+=e;return this};var v=0,H=0;m.prototype.zo=function(a){g(this.Ga,this.ab,this.Va,this.Ta);a.left=v;a.right=H;g(this.Ha,this.bb,this.Wa,this.Ua);a.top=v;a.bottom=H};m.prototype.nc= +function(a,e){var d=this.Ga,h=this.Ha,f=this.ab-d,k=this.bb-h,l=this.Va-d,q=this.Wa-h,B=a-d,x=e-h,F=f*f+k*k,c=f*l+k*q,k=f*B+k*x,b=l*l+q*q,t=l*B+q*x,v=1/(F*b-c*c),f=(b*k-c*t)*v,F=(F*t-c*k)*v;if(0<=f&&0f+F)return!0;f=this.Ta-d;k=this.Ua-h;F=f*f+k*k;c=f*l+k*q;k=f*B+k*x;v=1/(F*b-c*c);f=(b*k-c*t)*v;F=(F*t-c*k)*v;return 0<=f&&0f+F};m.prototype.Ie=function(a,e){if(e)switch(a){case 0:return this.Ga;case 1:return this.ab;case 2:return this.Va;case 3:return this.Ta;case 4:return this.Ga;default:return this.Ga}else switch(a){case 0:return this.Ha; +case 1:return this.bb;case 2:return this.Wa;case 3:return this.Ua;case 4:return this.Ha;default:return this.Ha}};m.prototype.iq=function(){return(this.Ga+this.ab+this.Va+this.Ta)/4};m.prototype.jq=function(){return(this.Ha+this.bb+this.Wa+this.Ua)/4};m.prototype.qp=function(a){var e=a.iq(),d=a.jq();if(this.nc(e,d))return!0;e=this.iq();d=this.jq();if(a.nc(e,d))return!0;var h,f,k,l,q,B,x,F;for(x=0;4>x;x++)for(F=0;4>F;F++)if(e=this.Ie(x,!0),d=this.Ie(x,!1),h=this.Ie(x+1,!0),f=this.Ie(x+1,!1),k=a.Ie(F, +!0),l=a.Ie(F,!1),q=a.Ie(F+1,!0),B=a.Ie(F+1,!1),ta(e,d,h,f,k,l,q,B))return!0;return!1};va=m;wa=function(a,e){for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d]);return a};xa=function(a,e){var d,h;e=ra(e);if(!(0>e||e>=a.length)){d=e;for(h=a.length-1;dd?d:a};W=function(a){return a/(180/qa)};Fa=function(a){return 180/qa*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ja=function(a){return Ha(Fa(a))};Ka=function(a){return Ia(W(a))};La=function(a,e,d,h){return Math.atan2(h-e,d-a)};Ma=function(a,e){if(a===e)return 0;var d=Math.sin(a),h=Math.cos(a),f=Math.sin(e),k=Math.cos(e),d=d*f+h*k;return 1<=d?0:-1>=d?qa:Math.acos(d)}; +Qa=function(a,e,d){var h=Math.sin(a),f=Math.cos(a),k=Math.sin(e),l=Math.cos(e);return Math.acos(h*k+f*l)>d?0=h*f-d*k};Sa=function(a,e,d,h,f,k){if(0===d)return k?a:e;var l=Math.sin(d);d=Math.cos(d);a-=h;e-=f;var q=a*l;a=a*d-e*l;e=e*d+q;return k?a+h:e+f};Ta=function(a,e,d,h){a=d-a;e=h-e;return Math.sqrt(a*a+e*e)};Ua=function(a,e){return!a!==!e};Va=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0; +return!1};Wa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};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,q=h=!1,u=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), +h=!h&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var K=!h&&!u&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.de()?!1:K?this.Nd.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(K)this.Nd.has(a)||(this.Nd.add(a),this.Ke=!1);else{var e=a.toString(),d=this.items;d?d.hasOwnProperty(e)||(d[e]=a,this.ei++,this.Ke=!1):(this.items={},this.items[e]= +a,this.ei=1,this.Ke=!1)}};n.prototype.remove=function(a){if(!this.de())if(K)this.Nd.has(a)&&(this.Nd["delete"](a),this.Ke=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.ei--,this.Ke=!1)}};n.prototype.clear=function(){this.de()||(K?this.Nd.clear():(this.items=null,this.ei=0),V(this.qh),this.Ke=!0)};n.prototype.de=function(){return 0===this.count()};n.prototype.count=function(){return K?this.Nd.size:this.ei};var C=null,N=0;n.prototype.Kw=function(){if(!this.Ke){if(K)V(this.qh), +C=this.qh,N=0,this.Nd.forEach(p),C=null,N=0;else{var a=this.qh;V(a);var e,d=0,h=this.items;if(h)for(e in h)h.hasOwnProperty(e)&&(a[d++]=h[e])}this.Ke=!0}};n.prototype.Rd=function(){this.Kw();return this.qh};ba=n;var L=new ba;$a=function(a){var e,d;e=0;for(d=a.length;ed&&(d=k),lf&&(f=l);this.pj=e;this.qj=d;this.rj=h;this.oj=f};c.prototype.lg=function(a,e,d){this.hb.length=8;this.Vc=4;var h=this.hb;h[0]=a.left-e;h[1]=a.top-d;h[2]=a.right-e;h[3]=a.top-d;h[4]=a.right-e;h[5]=a.bottom-d;h[6]=a.left-e;h[7]=a.bottom-d;this.uj=a.right-a.left;this.tj=a.bottom-a.top;this.ya()};c.prototype.of=function(a,e,d,h,f){this.hb.length=8;this.Vc=4;var k=this.hb;k[0]=a.Ga-e;k[1]=a.Ha-d;k[2]= +a.ab-e;k[3]=a.bb-d;k[4]=a.Va-e;k[5]=a.Wa-d;k[6]=a.Ta-e;k[7]=a.Ua-d;this.uj=h;this.tj=f;this.ya()};c.prototype.dr=function(a){this.Vc=a.Vc;Aa(this.hb,a.hb);this.pj=a.pj;this.rj=a.rj;this.qj=a.qj;this.oj=a.oj};c.prototype.Je=function(a,e,d){if(this.uj!==a||this.tj!==e||this.Co!==d){this.uj=a;this.tj=e;this.Co=d;var h,k,f,l,q,B=0,x=1,F=this.Mq,c=this.hb;0!==d&&(B=Math.sin(d),x=Math.cos(d));d=0;for(f=this.Vc;dE.length&&E.push(q),this.cells[h][f]=null);if(d)for(h=d.left,k=d.right;h<=k;++h)for(f=d.top,l=d.bottom;f<=l;++f)e&&e.nc(h,f)||this.Te(h,f,!0).Am(a)};a.prototype.Vk=function(a,e){var d,h,k,f,l,q;d=this.Wb(a.left);k=this.Xb(a.top);h=this.Wb(a.right);for(l=this.Xb(a.bottom);d<=h;++d)for(f=k;f<=l;++f)(q=this.Te(d,f,!1))&&q.dump(e)};gb=a;l.prototype.Te=function(a,e,h){var f;f=this.cells[a];return f?(f=f[e])?f:h?(f=d(this,a,e),this.cells[a][e]= +f):null:h?(f=d(this,a,e),this.cells[a]={},this.cells[a][e]=f):null};l.prototype.Wb=function(a){return ra(a/this.Nl)};l.prototype.Xb=function(a){return ra(a/this.Ml)};l.prototype.update=function(a,e,d){var h,f,k,l,q;if(e)for(h=e.left,f=e.right;h<=f;++h)for(k=e.top,l=e.bottom;k<=l;++k)if(!d||!d.nc(h,k))if(q=this.Te(h,k,!1))q.remove(a),q.de()&&(q.reset(),1E3>I.length&&I.push(q),this.cells[h][k]=null);if(d)for(h=d.left,f=d.right;h<=f;++h)for(k=d.top,l=d.bottom;k<=l;++k)e&&e.nc(h,k)||this.Te(h,k,!0).Am(a)}; +l.prototype.Vk=function(a,e,d,h,f){var k,l;a=this.Wb(a);e=this.Xb(e);d=this.Wb(d);for(k=this.Xb(h);a<=d;++a)for(h=e;h<=k;++h)(l=this.Te(a,h,!1))&&l.dump(f)};l.prototype.Cv=function(a){var e,d,h,f,k;e=a.left;h=a.top;d=a.right;for(f=a.bottom;e<=d;++e)for(a=h;a<=f;++a)if(k=this.Te(e,a,!1))k.Mg=!1};hb=l;var E=[];e.prototype.de=function(){return this.Bb.de()};e.prototype.Am=function(a){this.Bb.add(a)};e.prototype.remove=function(a){this.Bb.remove(a)};e.prototype.dump=function(a){Ba(a,this.Bb.Rd())};aa= +e;var I=[];k.prototype.de=function(){if(!this.Bb.length)return!0;if(this.Bb.length>this.Ld.count())return!1;this.em();return!0};k.prototype.Am=function(a){this.Ld.contains(a)?(this.Ld.remove(a),this.Ld.de()&&(this.xh=!1)):this.Bb.length?(this.Bb[this.Bb.length-1].Gd()>a.Gd()&&(this.Mg=!1),this.Bb.push(a)):(this.Bb.push(a),this.Mg=!0)};k.prototype.remove=function(a){this.Ld.add(a);this.xh=!0;30<=this.Ld.count()&&this.em()};k.prototype.em=function(){this.xh&&(this.Ld.count()===this.Bb.length?this.reset(): +(ab(this.Bb,this.Ld),this.Ld.clear(),this.xh=!1))};k.prototype.Pt=function(){this.Mg||(this.Bb.sort(f),this.Mg=!0)};k.prototype.reset=function(){V(this.Bb);this.Mg=!0;this.Ld.clear();this.xh=!1};k.prototype.dump=function(a){this.em();this.Pt();this.Bb.length&&a.push(this.Bb)};ca=k;var S="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ib=function(a){return 0>=a||11<=a?"source-over":S[a-1]};jb=function(a,e,d){if(d)switch(a.Qb= +d.ONE,a.Ob=d.ONE_MINUS_SRC_ALPHA,e){case 1:a.Qb=d.ONE;a.Ob=d.ONE;break;case 3:a.Qb=d.ONE;a.Ob=d.ZERO;break;case 4:a.Qb=d.ONE_MINUS_DST_ALPHA;a.Ob=d.ONE;break;case 5:a.Qb=d.DST_ALPHA;a.Ob=d.ZERO;break;case 6:a.Qb=d.ZERO;a.Ob=d.SRC_ALPHA;break;case 7:a.Qb=d.ONE_MINUS_DST_ALPHA;a.Ob=d.ZERO;break;case 8:a.Qb=d.ZERO;a.Ob=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Qb=d.DST_ALPHA;a.Ob=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Qb=d.ONE_MINUS_DST_ALPHA,a.Ob=d.SRC_ALPHA}};kb=function(a){return Math.round(1E6*a)/1E6}; +lb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||lb(a.tagName,"canvas")?!0:!1}})();var ic="undefined"!==typeof Float32Array?Float32Array:Array;function jc(b){var m=new ic(3);b&&(m[0]=b[0],m[1]=b[1],m[2]=b[2]);return m} +function kc(b){var m=new ic(16);b&&(m[0]=b[0],m[1]=b[1],m[2]=b[2],m[3]=b[3],m[4]=b[4],m[5]=b[5],m[6]=b[6],m[7]=b[7],m[8]=b[8],m[9]=b[9],m[10]=b[10],m[11]=b[11],m[12]=b[12],m[13]=b[13],m[14]=b[14],m[15]=b[15]);return m}function lc(b,m){m[0]=b[0];m[1]=b[1];m[2]=b[2];m[3]=b[3];m[4]=b[4];m[5]=b[5];m[6]=b[6];m[7]=b[7];m[8]=b[8];m[9]=b[9];m[10]=b[10];m[11]=b[11];m[12]=b[12];m[13]=b[13];m[14]=b[14];m[15]=b[15]} +function mc(b,m){var g=m[0],n=m[1];m=m[2];b[0]*=g;b[1]*=g;b[2]*=g;b[3]*=g;b[4]*=n;b[5]*=n;b[6]*=n;b[7]*=n;b[8]*=m;b[9]*=m;b[10]*=m;b[11]*=m} +function nc(b,m,g,n){n||(n=kc());var p,r,c,a,l,t,e,d,k=b[0],f=b[1];b=b[2];r=g[0];c=g[1];p=g[2];g=m[1];t=m[2];k===m[0]&&f===g&&b===t?(b=n,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(g=k-m[0],t=f-m[1],e=b-m[2],d=1/Math.sqrt(g*g+t*t+e*e),g*=d,t*=d,e*=d,m=c*e-p*t,p=p*g-r*e,r=r*t-c*g,(d=Math.sqrt(m*m+p*p+r*r))?(d=1/d,m*=d,p*=d,r*=d):r=p=m=0,c=t*r-e*p,a=e*m-g*r,l=g*p-t*m,(d=Math.sqrt(c*c+a*a+l*l))?(d=1/d,c*=d,a*=d,l*=d):l=a=c=0, +n[0]=m,n[1]=c,n[2]=g,n[3]=0,n[4]=p,n[5]=a,n[6]=t,n[7]=0,n[8]=r,n[9]=l,n[10]=e,n[11]=0,n[12]=-(m*k+p*f+r*b),n[13]=-(c*k+a*f+l*b),n[14]=-(g*k+t*f+e*b),n[15]=1)} +(function(){function b(a,l,c){this.ee=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ba=!!c;this.jk=this.Yh=!1;this.Gj=0;this.wl=1;this.jo=1E3;this.Pw=(this.jo-this.wl)/32768;this.Kl=jc([0,0,100]);this.Rp=jc([0,0,0]);this.Br=jc([0,1,0]);this.ej=jc([1,1,1]);this.No=!0;this.Ek=kc();this.Gc=kc();this.Pm=kc();this.Vl=kc();this.B=a;this.version=0===this.B.getParameter(this.B.VERSION).indexOf("WebGL 2")?2:1;this.mp()}function m(a,l,c){this.B=a;this.Oi= +l;this.name=c;this.Sc=a.getAttribLocation(l,"aPos");this.ff=a.getAttribLocation(l,"aTex");this.Pp=a.getUniformLocation(l,"matP");this.Ak=a.getUniformLocation(l,"matMV");this.Yg=a.getUniformLocation(l,"opacity");this.Ym=a.getUniformLocation(l,"colorFill");this.Qp=a.getUniformLocation(l,"samplerFront");this.pi=a.getUniformLocation(l,"samplerBack");this.ag=a.getUniformLocation(l,"destStart");this.$f=a.getUniformLocation(l,"destEnd");this.ri=a.getUniformLocation(l,"seconds");this.$m=a.getUniformLocation(l, +"pixelWidth");this.Zm=a.getUniformLocation(l,"pixelHeight");this.oi=a.getUniformLocation(l,"layerScale");this.ni=a.getUniformLocation(l,"layerAngle");this.si=a.getUniformLocation(l,"viewOrigin");this.qi=a.getUniformLocation(l,"scrollPos");this.hv=!!(this.$m||this.Zm||this.ri||this.pi||this.ag||this.$f||this.oi||this.ni||this.si||this.qi);this.Zp=this.$p=-999;this.Dk=1;this.Vp=this.Up=0;this.Xp=this.Tp=this.Sp=1;this.cq=this.bq=this.aq=this.fq=this.dq=this.Wp=0;this.Om=[];this.Yp=kc();this.Yg&&a.uniform1f(this.Yg, +1);this.Ym&&a.uniform4f(this.Ym,1,1,1,1);this.Qp&&a.uniform1i(this.Qp,0);this.pi&&a.uniform1i(this.pi,1);this.ag&&a.uniform2f(this.ag,0,0);this.$f&&a.uniform2f(this.$f,1,1);this.oi&&a.uniform1f(this.oi,1);this.ni&&a.uniform1f(this.ni,0);this.si&&a.uniform2f(this.si,0,0);this.qi&&a.uniform2f(this.qi,0,0);this.ri&&a.uniform1f(this.ri,0);this.Mf=!1}function g(a,l){return a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2]&&a[3]===l[3]&&a[4]===l[4]&&a[5]===l[5]&&a[6]===l[6]&&a[7]===l[7]&&a[8]===l[8]&&a[9]===l[9]&& +a[10]===l[10]&&a[11]===l[11]&&a[12]===l[12]&&a[13]===l[13]&&a[14]===l[14]&&a[15]===l[15]}function n(a,l){this.type=a;this.m=l;this.B=l.B;this.Dc=this.Rb=this.xq=0;this.W=this.Zc=null;this.fr=[]}var p=kc();b.prototype.mp=function(){var a=this.B,l;this.Fp=1;this.Vf=this.$e=null;this.Fj=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.Ba?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): +a.disable(a.DEPTH_TEST);this.Hp=a.ONE;this.Bp=a.ONE_MINUS_SRC_ALPHA;this.cj=new Float32Array(8E3*(this.Ba?3:2));this.Wi=new Float32Array(16E3);this.Iq=new Float32Array(32E3);this.un=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.un);a.bufferData(a.ARRAY_BUFFER,this.Iq.byteLength,a.DYNAMIC_DRAW);this.bj=Array(4);this.Vi=Array(4);for(l=0;4>l;l++)this.bj[l]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.bj[l]),a.bufferData(a.ARRAY_BUFFER,this.cj.byteLength,a.DYNAMIC_DRAW),this.Vi[l]=a.createBuffer(), +a.bindBuffer(a.ARRAY_BUFFER,this.Vi[l]),a.bufferData(a.ARRAY_BUFFER,this.Wi.byteLength,a.DYNAMIC_DRAW);this.Vd=0;this.lv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.lv);for(var c=new Uint16Array(12E3),e=l=0;12E3>l;)c[l++]=e,c[l++]=e+1,c[l++]=e+2,c[l++]=e,c[l++]=e+2,c[l++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.vn=this.qf=this.ad=0;this.Sa=[];l=this.Ba?"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}";c=this.Dh({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}"},l,"");this.Sa.push(c);c=this.Dh({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.Sa.push(c);c=this.Dh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},l,"");this.Sa.push(c);c=this.Dh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +l,"");this.Sa.push(c);for(var d in oc)oc.hasOwnProperty(d)&&this.Sa.push(this.Dh(oc[d],l,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Bd=[];this.fd=0;this.zb=!1;this.Jo=this.hi=-1;this.yg=null;this.cm=a.createFramebuffer();this.Kj=this.Wk=null;this.xo=!1;this.Ba&&(this.Kj=a.createRenderbuffer());this.sf=jc([0,0,0]);this.gq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===c.name&&a.vertexAttribPointer(c.Sc,4,a.FLOAT,!1,0,0));if(0"!==c.name&& +a.vertexAttribPointer(c.Sc,this.Ba?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Vi[this.Vd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Wi.subarray(0,this.qf));c&&0<=c.ff&&""!==c.name&&a.vertexAttribPointer(c.ff,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.fd;ab||0>e)){var d= +this.ec();d.type=7;d.Rb=1;d.W||(d.W=kc());d.W[0]=a;d.W[1]=c;d.W[2]=b;d.W[3]=e;this.zb=!1}};b.prototype.Yq=function(a){if(this.Ba&&(a=!!a,this.Yh!==a)){var c=this.ec();c.type=14;c.Rb=a?1:0;this.zb=!1;this.Yh=a;this.Wk=null;this.Yh?this.jc(2):this.jc(0)}};b.prototype.Xq=function(a){if(this.Ba){var c=this.ec();c.type=13;c.Rb=a?1:0;this.zb=!1}};b.prototype.Vo=function(){lc(this.Pm,p);this.Wc();this.Kc();var a=this.width/2,c=this.height/2;this.ig(-a,c,a,c,a,-c,-a,-c);lc(p,this.Gc);this.Kc()};b.prototype.Wq= +function(a,c,b){this.jc(3);var e=this.ec();e.type=12;e.W||(e.W=kc());e.W[0]=a;e.W[1]=c;e.W[2]=b;e.W[3]=1;this.zb=!1};b.prototype.uw=function(){this.jc(0)};b.prototype.dw=function(){this.jc(2)};b.prototype.Tv=function(){this.Xd();this.B.flush()};var r=[],c={};b.prototype.ct=function(){V(r);c={}};b.prototype.Xg=function(a,b,m,e){b=!!b;m=!!m;var d=a.src+","+b+","+m+(b?",undefined":""),k=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(d))return k=c[d],k.sj++,k;this.Xd();var f=this.B,v=ka(a.width)&& +ka(a.height),k=f.createTexture();f.bindTexture(f.TEXTURE_2D,k);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=f.RGBA,p=f.RGBA,h=f.UNSIGNED_BYTE;if(e&&!this.ee)switch(e){case 1:p=g=f.RGB;break;case 2:h=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=g=f.RGB,h=f.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!v&&b){e=document.createElement("canvas");e.width=la(a.width);e.height=la(a.height);var q=e.getContext("2d");"undefined"!==typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled= +m:(q.webkitImageSmoothingEnabled=m,q.mozImageSmoothingEnabled=m,q.msImageSmoothingEnabled=m);q.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);f.texImage2D(f.TEXTURE_2D,0,g,p,h,e)}else f.texImage2D(f.TEXTURE_2D,0,g,p,h,a);b?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));m?(f.texParameteri(f.TEXTURE_2D, +f.TEXTURE_MAG_FILTER,f.LINEAR),(v||2<=this.version)&&this.No?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.$e=null;k.yf=a.width;k.xf=a.height;k.sj=1;k.Bo=d;r.push(k);return c[d]=k};b.prototype.Yb=function(a,c,b,e,d){this.Xd(); +var k=this.B;this.ee&&(e=!1);var f=k.createTexture();k.bindTexture(k.TEXTURE_2D,f);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,a,c,0,k.RGBA,e?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);d?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,b?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D, +k.TEXTURE_MIN_FILTER,b?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.$e=null;f.yf=a;f.xf=c;r.push(f);return f};b.prototype.eo=function(a,c,b){this.Xd();var e=this.B;this.ee&&(b=!1);e.bindTexture(e.TEXTURE_2D,c);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,b?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}e.bindTexture(e.TEXTURE_2D,null);this.$e=null};b.prototype.deleteTexture= +function(a){a&&("undefined"!==typeof a.sj&&1=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function g(){try{return!!window.indexedDB}catch(a){return!1}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function p(a,e,d,h){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=n;c.onerror=h;c.onsuccess=function(c){c=c.target.result;c.onerror=h;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=d}}catch(f){h(f)}}function r(a,e,d){try{var h=indexedDB.open("_C2SaveStates"); +h.onupgradeneeded=n;h.onerror=d;h.onsuccess=function(h){h=h.target.result;h.onerror=d;var c=h.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?e(c.result.data):e(null)}}}catch(c){d(c)}}function c(){da("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1f?(f*=e,5===b?(k=f*d/this.ub,1k&&(k=1/Math.ceil(1/k)),f=this.ub*k/d,k=this.tb*k/d,h=(a-f)/2,c=(e-k)/2,a=f,e=k):(h=(a-f)/2,a=f)):(k=a/f,5===b?(k=k*d/this.tb,1k&&(k=1/Math.ceil(1/k)),f=this.ub*k/d,k=this.tb*k/d,h=(a-f)/2,c=(e-k)/2,a=f):c=(e-k)/2,e=k)):f&&0===b&&(h=Math.floor((a-this.ub)/2),c=Math.floor((e-this.tb)/ +2),a=this.ub,e=this.tb),2>b&&(this.zh=d),this.Dj=Math.round(a),this.Fh=Math.round(e),this.width=Math.round(a*d),this.height=Math.round(e*d),this.ua=!0,this.Lr?(this.K=this.width,this.J=this.height,this.Ac=!0):this.widthf&&(this.J=this.K/b)):3===b&&(f=this.ub/this.tb,b=this.Ug/this.Tg,b>f?this.K=this.J*b:b< +f&&(this.J=this.K/b))),this.wj&&!this.Qa&&(jQuery(this.wj).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(h)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(e*d),this.ld?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+ +"px",this.canvas.style.height=Math.round(e)+"px"):this.Tf&&!this.Qa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.Jb&&(this.Jb.width=Math.round(a*d),this.Jb.height=Math.round(e*d),this.Jb.style.width=this.Dj+"px",this.Jb.style.height=this.Fh+"px"),this.m&&this.m.kg(Math.round(a*d),Math.round(e*d)),this.$b&&this.Ka&&(this.Ka.width=Math.round(a),this.Ka.height=Math.round(e)),this.Ka&&this.bl(this.Ka,this.Ea),this.yr(),this.yp&&!this.kd&&window.scrollTo(0, +0)}};b.prototype.yr=function(){if(this.Rs&&0!==this.sn){var a="portrait";2===this.sn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};b.prototype.Gv= +function(){this.m.ct();this.Mm=!0;var a,e,d;a=0;for(e=this.A.length;ad;)d++,a=k.shift(),this.$q(a[0],a[1])};b.prototype.tl=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){e=a.Ao=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.ld?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(e){a.src=e},function(h){e=a.Ao=!0;console&& +console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",this.Xv(a,d)));this.sh.push(a)};b.prototype.vu=function(a){var e,d;e=0;for(d=this.sh.length;e=k)k=5E4;a+=k;b.src&&(b.complete||b.loaded)&& +!b.Ao?e+=k:h=!1}h&&this.Rv&&this.vg&&(v||(this.vg.Bw(),v=!0),d=this.vg.Lu(),e+=d,dthis.ef&&(this.Rc||500<=h&& +this.Lp!=this.pd)){a.clearRect(0,0,f,b);var h=f/2,b=b/2,f=0===this.ef&&this.df.Ck.complete,k=40*d,q=0,u=80*d,m;if(f){var v=this.df.Ck,u=v.width*d;m=v.height*d;k=u/2;q=m/2;a.drawImage(v,ra(h-k),ra(b-q),u,m)}1>=this.ef?(h=ra(h-k)+.5,b=ra(b+(q+(f?12*d:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(h,b,Math.floor(u*this.pd),6*d),a.strokeStyle="black",a.strokeRect(h,b,u,6*d),a.strokeStyle="white",a.strokeRect(h-1*d,b-1*d,u+2*d,8*d)):2===this.ef&&(a.font=this.ld?"12pt ArialMT":"12pt Arial",a.fillStyle= +e?"#f00":"#999",a.my="middle",d=Math.round(100*this.pd)+"%",f=a.measureText?a.measureText(d):null,a.fillText(d,h-(f?f.width:0)/2,b));this.Lp=this.pd}else if(4===this.ef){this.Lt(a);l?l(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.Rc?10:100)}}};var A=-1,h="undefined"===typeof cr_is_preview?200:0,q=!0,u=!1,K=0,C=0,N="undefined"===typeof cr_is_preview?3E3:0,L=null,E=null,I=0;b.prototype.Lt=function(a){if(!H){for(var d=Math.ceil(this.width),c=Math.ceil(this.height), +b=this.df.Ck,f=this.df.Qv,k=this.df.Ow,l=0;4>l;++l)if(!b[l].complete||!f[l].complete||!k[l].complete)return;0===I&&(A=Date.now());var l=Date.now(),v=!1,g=a,p,n;q||u?(a.clearRect(0,0,d,c),L&&L.width===d&&L.height===c||(L=document.createElement("canvas"),L.width=d,L.height=c,E=L.getContext("2d")),g=E,v=!0,q&&1===I&&(A=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,d,c);256=N&&!u&&1<=this.pd&&(u=!0,C=l);if(u&&l-C>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.pd&&500>Date.now()-A)H=!0,u=q=!1,this.df=E=L=null;++I}};b.prototype.dv=function(){this.Jb&&(this.canvas.parentNode.removeChild(this.Jb),this.Jb=this.tn=null);this.il=Date.now();this.Xf=Za();var a,e,d;if(this.co)for(a=0,e=this.A.length;aa||2===this.oc&&ee&&(e=0),this.Ff=e/=1E3,.51/this.kq&&(this.Ff= +1/this.kq));this.sk=a;this.Ef=this.Ff*this.pg;this.Gb.add(this.Ef);this.Be.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.lk)&&!this.kd;2<=this.oc||a&&0e||2===h&&da++;)this.Mo(this.zf);a=0;for(e=this.Yd.length;ae.Ij.length&&e.Ij.push(a)};var P=[];b.prototype.Bf=function(a,e,d,h,c,b){var f,k,q,l;if(!a)return null;var u=this.A[a[1]],m=u.Da.Xe;if(this.Pg&&m&&!u.Hm||m&&!this.m&&11===a[0][11])return null; +var v=e;m||(e=null);var g;u.Ij.length?(g=u.Ij.pop(),g.vc=!0,u.Da.T.call(g,u)):(g=new u.Da.T(u),g.vc=!1);!d||b||this.je.hasOwnProperty(a[2].toString())?g.uid=this.yi++:g.uid=a[2];this.je[g.uid.toString()]=g;g.Nq=this.pq++;g.Of=u.e.length;f=0;for(k=this.hd.length;fa&&(a=0);a>=this.wa.S.length&&(a=this.wa.S.length-1);return this.wa.S[a]};b.prototype.Ql=function(a){var e,d;e=0;for(d=a.length;el;++l)if(g=2*l-1,a.x=c+e*q*g,a.y=f+d*q*g,a.C(),!this.Jc(a,k))if(k=this.kc(a))b=k;else return b&&this.Uk(a,e*g,d*g,b),!0;a.x=c;a.y=f;a.C();return!1};b.prototype.Uk=function(a, +e,d,h){var c=2,f,k=!1;f=!1;for(var b=a.x,q=a.y;16>=c;)f=1/c,c*=2,a.x+=e*f*(k?1:-1),a.y+=d*f*(k?1:-1),a.C(),this.Jc(a,h)?f=k=!0:(f=k=!1,b=a.x,q=a.y);f&&(a.x=b,a.y=q,a.C())};b.prototype.Wv=function(a,e){var d=ia(e)?100:e,h=0,c=a.x,f=a.y,k=0,b=0,q=0,l=this.kc(a);if(!l)return!0;for(;h<=d;){switch(k){case 0:b=0;q=-1;h++;break;case 1:b=1;q=-1;break;case 2:b=1;q=0;break;case 3:q=b=1;break;case 4:b=0;q=1;break;case 5:b=-1;q=1;break;case 6:b=-1;q=0;break;case 7:q=b=-1}k=(k+1)%8;a.x=ra(c+b*h);a.y=ra(f+q*h); +a.C();if(!this.Jc(a,l)&&(l=this.kc(a),!l))return!0}a.x=c;a.y=f;a.C();return!1};b.prototype.jf=function(a,e){a.Ud&&e.Ud&&this.jg.push([a,e])};b.prototype.Ls=function(a,e,d){var h,c,f;h=0;for(c=this.jg.length;h=this.an.length&&this.an.push([])};b.prototype.Ov=function(){this.Bk--};b.prototype.bp=function(){return this.an[this.Bk]}; +b.prototype.Tk=function(a){this.Pj++;this.Pj>=this.Zl.length&&this.Zl.push(new Tb);var e=this.Sb();e.reset(a);return e};b.prototype.Nk=function(){this.Pj--};b.prototype.Sb=function(){return this.Zl[this.Pj]};b.prototype.cp=function(a,e){for(var d,h,c,f,k,b;e;){d=0;for(h=e.Yc.length;df||f>=a.pb.length||(k=c[h],null===k&&(k=NaN),a.pb[f]=k));if(q.Xe){f=e.w;a.j.aa!==f.l&&(c=a.j,a.j=this.wa.ck(f.l),a.j?(c.jh(a,!0),a.j.yh(a,!0),a.C(),a.j.Mi(0)):(a.j=c,d||this.tf(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.xd=f.zi;a.n=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Tb=f.hasOwnProperty("hX")?f.hX:.5;a.Ub=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")? +f.v:!0;a.Ud=f.hasOwnProperty("ce")?f.ce:!0;a.xi=f.hasOwnProperty("mts")?f.mts:-1;a.Nb=f.hasOwnProperty("bm")?f.bm:0;a.Bh=ib(a.Nb);this.B&&jb(a,a.Nb,this.B);a.C();if(f.hasOwnProperty("fx"))for(d=0,c=f.fx.length;dk||(a.Fe[k]=f.fx[d].active,a.Pa[k]=f.fx[d].params);a.wd()}if(b=e.behs)for(h in b)b.hasOwnProperty(h)&&(d=this.Au(a,parseInt(h,10)),0>d||a.M[d].rb(b[h]));e.data&&a.rb(e.data)};b.prototype.Ro=function(a,e,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+ +"www/"+a,function(a){a.file(e,d)},d)};b.prototype.tu=function(a,e){this.Ro("data.js",function(d){var h=new FileReader;h.onload=function(e){a(e.target.result)};h.onerror=e;h.readAsText(d)},e)};var O=[],w=0;b.prototype.cn=function(){if(O.length&&!(8<=w)){w++;var a=O.shift();this.pt(a.filename,a.Dw,a.Qt)}};b.prototype.So=function(a,e,d){var h=this;O.push({filename:a,Dw:function(a){w--;h.cn();e(a)},Qt:function(a){w--;h.cn();d(a)}});this.cn()};b.prototype.pt=function(a,e,d){this.Ro(a,function(a){var d= +new FileReader;d.onload=function(a){e(a.target.result)};d.readAsArrayBuffer(a)},d)};b.prototype.uu=function(a,e,d){var h="",f=a.toLowerCase(),c=f.substr(f.length-4),f=f.substr(f.length-5);".mp4"===c?h="video/mp4":".webm"===f?h="video/webm":".m4a"===c?h="audio/mp4":".mp3"===c&&(h="audio/mpeg");this.So(a,function(a){a=URL.createObjectURL(new Blob([a],{type:h}));e(a)},d)};b.prototype.qv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};b.prototype.$q=function(a, +e){this.mk&&!this.qv(e)?this.uu(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};b.prototype.bl=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Vb=function(a){return new b(document.getElementById(a))};Wb=function(a,e){return new b({dc:!0,width:a,height:e})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime= +function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.nj=!0;document.body.appendChild(a);a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth, +window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(b,m){var g=window.cr_getC2Runtime();g&&g.lt(b,m)};window.cr_sizeCanvas=function(b,m){if(0!==b&&0!==m){var g=window.cr_getC2Runtime();g&&g.setSize(b,m)}};window.cr_setSuspended=function(b){var m=window.cr_getC2Runtime();m&&m.setSuspended(b)}; +(function(){function b(a,d){this.b=a;this.If=null;this.scrollX=this.b.ub/2;this.scrollY=this.b.tb/2;this.scale=1;this.n=0;this.Dg=!0;this.name=d[0];this.Kv=d[1];this.Jv=d[2];this.width=d[1];this.height=d[2];this.Ar=d[3];this.gr=d[4];this.aa=d[5];var c=d[6],f,b;this.S=[];this.Uh=[];f=0;for(b=c.length;f=this.S.length&&(h=this.S.length-1);g.j=this.S[h];-1===g.j.e.indexOf(g)&&g.j.e.push(g);g.j.qg=!0}if(!c)for(a=0,b=this.S.length;ab?g.siblings.push(p.e[b]):p.Dd&&(l=this.b.Bf(p.Dd,g.j,!0,g.x,g.y,!0),this.b.Lb(),p.ql(),g.siblings.push(l),r.push(l)));a=0;for(b= +this.Ve.length;athis.width-d&&(a=this.width-d);athis.height-d&&(a=this.height-d);ax&&(x=0);0>Q&&(Q=0);T>J&&(T=J);U>z&&(U=z);0>F&&(F=0);0>R&&(R=0);Z>J&&(Z=J);fa>z&&(fa=z);w.left=x/J;w.top=1-Q/z;w.right=T/J;w.bottom=1-U/z}else w.left=B.left=0,w.top=B.top=0,w.right=B.right=1,w.bottom=B.bottom=1;ga=c&&(a.Fi(b[0].kb)||0!==t|| +0!==ga||1!==c.opacity||c.type.Da.lq)||d&&!c&&1!==d.opacity;a.Vq();if(ga){m[S]||(m[S]=a.Yb(J,z,this.b.Ea));if(m[S].yf!==J||m[S].xf!==z)a.deleteTexture(m[S]),m[S]=a.Yb(J,z,this.b.Ea);a.jc(0);a.Xc(m[S]);D=fa-R;a.clearRect(F,z-R-D,Z-F,D);c?c.Pb(a):(a.jb(this.b.qb),a.pe(d.opacity),a.Wc(),a.translate(-M,-O),a.Kc(),a.rd(x,U,T,U,T,Q,x,Q,w));B.left=B.top=0;B.right=B.bottom=1;c&&(I=w.top,w.top=w.bottom,w.bottom=I);S=1;P=0}a.pe(1);t=b.length-1;var za=a.xn(b[t].kb)||!d&&!c&&!this.b.Ac;n=I=0;for(r=b.length;n< +r;n++){m[S]||(m[S]=a.Yb(J,z,this.b.Ea));if(m[S].yf!==J||m[S].xf!==z)a.deleteTexture(m[S]),m[S]=a.Yb(J,z,this.b.Ea);a.jc(b[n].kb);I=b[n].index;a.Rk(b[n].kb)&&(this.b.ua=!0);0!=n||ga?(a.mh(f,1/J,1/z,B.left,B.top,B.right,B.bottom,l,g,h,q,(h+u)/2,(q+p)/2,this.b.Gb.fa,c?c.Pa[I]:d?d.Pa[I]:this.Pa[I]),a.jb(null),n!==t||za?(a.Xc(m[S]),D=fa-R,G=z-R-D,a.clearRect(F,G,Z-F,D)):(c?a.nf(c.Qb,c.Ob):d&&a.nf(d.Qb,d.Ob),a.Xc(f)),a.jb(m[P]),a.Wc(),a.translate(-M,-O),a.Kc(),a.rd(x,U,T,U,T,Q,x,Q,w),n!==t||za||a.jb(null)): +(a.Xc(m[S]),D=fa-R,G=z-R-D,a.clearRect(F,G,Z-F,D),c?(c.Db&&c.Db.I?(G=c.Db.I,P=1/G.width,G=1/G.height):(P=1/c.width,G=1/c.height),a.mh(f,P,G,B.left,B.top,B.right,B.bottom,l,g,h,q,(h+u)/2,(q+p)/2,this.b.Gb.fa,c.Pa[I]),c.Pb(a)):(a.mh(f,1/J,1/z,0,0,1,1,l,g,h,q,(h+u)/2,(q+p)/2,this.b.Gb.fa,d?d.Pa[I]:this.Pa[I]),a.jb(d?this.b.qb:this.b.fb),a.Wc(),a.translate(-M,-O),a.Kc(),a.rd(x,U,T,U,T,Q,x,Q,w)),B.left=B.top=0,B.right=B.bottom=1,c&&!za&&(I=U,U=Q,Q=I));S=0===S?1:0;P=0===S?1:0}za&&(a.jc(0),c?a.nf(c.Qb,c.Ob): +d?a.nf(d.Qb,d.Ob):this.b.Ac||(a.kg(this.b.width,this.b.height),M=this.b.width/2,O=this.b.height/2,Q=x=0,T=this.b.width,U=this.b.height),a.Xc(f),a.jb(m[P]),a.Wc(),a.translate(-M,-O),a.Kc(),c&&1===b.length&&!ga?a.rd(x,Q,T,Q,T,U,x,U,w):a.rd(x,U,T,U,T,Q,x,Q,w),a.jb(null))};b.prototype.ck=function(a){var d,c;d=0;for(c=this.S.length;dc||(d&&this.Lc&&a.fc&&a.fc.right>=a.fc.left&&(a.ya(),this.Kb.update(a,a.fc,null),a.fc.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(xa(this.e,c),this.Mi(c)), +this.sd=!0)};g.prototype.yh=function(a,d){a.xd=this.e.length;this.e.push(a);d&&this.Lc&&a.fc&&a.C();this.sd=!0};g.prototype.Sv=function(a){this.e.unshift(a);this.Mi(0)};g.prototype.Ev=function(a,d,c){var f=a.Gd();d=d.Gd();xa(this.e,f);fthis.ma||c.top>this.la||(d.globalCompositeOperation=a.Bh,a.zc(d))}};g.prototype.sl=function(){this.Wd=!0;var a=this.Le(!0),d=this.Le(!1);this.Wd=!1;this.b.Hc&&(a=Math.round(a),d=Math.round(d)); +this.Xk(a,d,null)};g.prototype.Xk=function(a,d,c){var f=this.Zb();this.ba=a;this.ca=d;this.ma=a+1/f*this.b.K;this.la=d+1/f*this.b.J;this.ba>this.ma&&(a=this.ba,this.ba=this.ma,this.ma=a);this.ca>this.la&&(a=this.ca,this.ca=this.la,this.la=a);a=this.nb();0!==a&&(c&&(c.translate(this.b.K/2,this.b.J/2),c.rotate(-a),c.translate(this.b.K/-2,this.b.J/-2)),this.ye.set(this.ba,this.ca,this.ma,this.la),this.ye.offset((this.ba+this.ma)/-2,(this.ca+this.la)/-2),this.tr.er(this.ye,a),this.tr.zo(this.ye),this.ye.offset((this.ba+ +this.ma)/2,(this.ca+this.la)/2),this.ba=this.ye.left,this.ca=this.ye.top,this.ma=this.ye.right,this.la=this.ye.bottom)};g.prototype.Df=function(a){if(this.Md=this.Zj){this.b.qb||(this.b.qb=a.Yb(this.b.K,this.b.J,this.b.Ea));if(this.b.qb.yf!==this.b.K||this.b.qb.xf!==this.b.J)a.deleteTexture(this.b.qb),this.b.qb=a.Yb(this.b.K,this.b.J,this.b.Ea);a.Xc(this.b.qb)}this.Wd=!0;var d=this.Le(!0),c=this.Le(!1);this.Wd=!1;this.b.Hc&&(d=Math.round(d),c=Math.round(c));this.Xk(d,c,null);d=this.Zb();a.Wc();a.scale(d, +d);a.Yk(-this.nb());a.translate((this.ba+this.ma)/-2,(this.ca+this.la)/-2);a.Kc();this.Lc?(this.Eb.left=this.Kb.Wb(this.ba),this.Eb.top=this.Kb.Xb(this.ca),this.Eb.right=this.Kb.Wb(this.ma),this.Eb.bottom=this.Kb.Xb(this.la),this.sd||!this.Eb.Hh(this.Vg)?(p(this.he),d=this.pm(),this.sd=!1,this.Vg.Ch(this.Eb)):d=this.he):d=this.e;for(var f,b=null,c=d.length-1;0<=c;--c)f=d[c],f!==b&&(this.Jt(d[c],a),b=f);this.Lc&&(this.he=d);this.vd||(this.Rl=this.b.Gf++,a.cl(this.Rl),a.Wq(1,1,1),a.Vo(),a.dw())};g.prototype.Pb= +function(a){var d=0,c=0;if(this.Md=this.Zj||1!==this.opacity||0this.ma||c.top>this.la||(d.cl(a.Gf),a.Ir?this.Kt(a,d):(d.jc(0),d.nf(a.Qb,a.Ob),a.Pb(d)))}};g.prototype.Jt=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.ya();var c=a.Aa;c.rightthis.ma||c.top>this.la||(a.Gf=this.b.Gf++,0===a.Nb&&1===a.opacity&&a.qe&& +a.Df&&(d.cl(a.Gf),a.Df(d)))}};g.prototype.Kt=function(a,d){var c=a.na[0].kb,f=a.na[0].index,b=this.Zb();if(1!==a.na.length||d.xn(c)||d.Uv(c)||(a.n||a.j.nb())&&d.Fi(c)||1!==a.opacity||a.type.Da.lq)this.eb.Cn(d,this,a,this.Md?this.b.qb:this.eb.Oh()),d.Wc(),d.scale(b,b),d.Yk(-this.nb()),d.translate((this.ba+this.ma)/-2,(this.ca+this.la)/-2),d.Kc();else{d.jc(c);d.nf(a.Qb,a.Ob);d.Rk(c)&&(this.b.ua=!0);var l=0,g=0,h=0,q=0;d.Fi(c)&&(q=a.Aa,l=this.Ca(q.left,q.top,!0,!0),g=this.Ca(q.left,q.top,!1,!0),h=this.Ca(q.right, +q.bottom,!0,!0),q=this.Ca(q.right,q.bottom,!1,!0),l=l/windowWidth,g=1-g/windowHeight,h=h/windowWidth,q=1-q/windowHeight);var u;a.Db&&a.Db.I?(u=a.Db.I,c=1/u.width,u=1/u.height):(c=1/a.width,u=1/a.height);d.mh(this.Md?this.b.qb:this.eb.Oh(),c,u,l,g,h,q,b,this.nb(),this.ba,this.ca,(this.ba+this.ma)/2,(this.ca+this.la)/2,this.b.Gb.fa,a.Pa[f]);a.Pb(d)}};g.prototype.Le=function(a){var d=0,c=0,f=this.b.devicePixelRatio;this.b.Tf&&(d*=f,c*=f);var f=this.b.Eq,b=this.b.Fq,f=(this.eb.scrollX-f)*this.le+f,b= +(this.eb.scrollY-b)*this.me+b,l,g,h=1/this.Zb(!1);l=f-this.b.K*h/2;g=b-this.b.J*h/2;l+=d*h;g+=c*h;c=this.nb();0!==c&&(l-=f,g-=b,d=Math.cos(c),c=Math.sin(c),h=l*d-g*c,g=g*d+l*c,l=h+f,g+=b);return a?l:g};g.prototype.Ca=function(a,d,c,f){var b=this.b.Eq,l=this.b.Fq,g=(this.eb.scrollX-b)*this.le+b,h=(this.eb.scrollY-l)*this.me+l,l=g,b=h,q=this.nb();if(0!==q){a-=g;d-=h;var u=Math.cos(-q),q=Math.sin(-q),m=a*u-d*q;d=d*u+a*q;a=m+g;d+=h}g=1/this.Zb(!f);f?(l-=this.b.K*g/2,b-=this.b.J*g/2):(l-=this.b.width* +g/2,b-=this.b.height*g/2);l=(a-l)/g;b=(d-b)/g;a=this.b.devicePixelRatio;this.b.Tf&&!f&&(l/=a,b/=a);return c?l:b};g.prototype.$a=function(){var a,d,c,f={s:this.scale,a:this.n,vl:this.ba,vt:this.ca,vr:this.ma,vb:this.la,v:this.visible,bc:this.ed,t:this.vd,px:this.le,py:this.me,o:this.opacity,zr:this.gj,fx:[],cg:this.Eh,instances:[]};a=0;for(d=this.P.length;aa[1].index&&(d=a[0],a[0]=a[1],a[1]=d):2=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);f=v[a.length];d=0;for(c=f.length;d=d.length&&(d.length=this.bg+1),d[this.bg]=a):this.data=a};d.prototype.Qu=function(){var a=this.b.bp();return!this.parent||this.di||!a||this.ok?this.data:this.bg>=a.length||"undefined"===typeof a[this.bg]?this.zm:a[this.bg]};d.prototype.ib=function(){!this.parent||this.di||this.ok||this.vw(this.zm)};Ub=d;k.prototype.toString=function(){return"include:"+this.Th.toString()};k.prototype.Za=function(){this.Th= +this.b.$l[this.kv];this.sheet.lp.add(this);this.Na=g(this.Na);for(var a=this.parent;a;)a.group&&a.Bj.push(this),a=a.parent;this.Cr()};k.prototype.ib=function(){this.parent&&this.b.Hi(this.b.A);this.Th.vm||this.Th.ib(!0);this.parent&&this.b.hg(this.b.A)};k.prototype.Cr=function(){for(var a=this.parent;a;){if(a.group&&!a.Qh){this.Mb=!1;return}a=a.parent}this.Mb=!0};dc=k;f.prototype.reset=function(a){this.Oc=a;this.Mc=this.xb=0;V(this.pr);this.Yl=this.Wf=!1};Tb=f})(); +(function(){function b(c,a){this.Tc=c;this.b=c.b;this.type=a[0];this.get=[this.fu,this.bu,this.ou,this.ru,this.Rt,this.pu,this.ju,this.Zt,this.iu,this.nu,this.St,this.mu,this.$t,this.ku,this.gu,this.hu,this.cu,this.du,this.Yt,this.qu,this.lu,this.eu,this.Xt,this.au][this.type];var b=null;this.ie=this.V=this.Ra=this.Fb=this.ll=this.second=this.first=this.value=null;this.gd=-1;this.jd=null;this.Jr=-1;this.Jf=this.aj=null;this.kh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= +new bc(c,a[1]);break;case 18:this.first=new bc(c,a[1]);this.second=new bc(c,a[2]);this.ll=new bc(c,a[3]);break;case 19:this.Fb=this.b.Ee(a[1]);this.Fb!==Y.prototype.lb.random&&this.Fb!==Y.prototype.lb.bt||this.Tc.cr();this.Ra=[];this.V=[];3===a.length?(b=a[2],this.Ra.length=b.length+1):this.Ra.length=1;break;case 20:this.ie=this.b.A[a[1]];this.gd=-1;this.Fb=this.b.Ee(a[2]);this.kh=a[3];gc.Function&&this.Fb===gc.Function.prototype.lb.Ww&&this.Tc.cr();a[4]?this.jd=new bc(c,a[4]):this.jd=null;this.Ra= +[];this.V=[];6===a.length?(b=a[5],this.Ra.length=b.length+1):this.Ra.length=1;break;case 21:this.ie=this.b.A[a[1]];this.kh=a[2];a[3]?this.jd=new bc(c,a[3]):this.jd=null;this.Jr=a[4];break;case 22:this.ie=this.b.A[a[1]];this.ie.bk(a[2]);this.gd=this.ie.im(a[2]);this.Fb=this.b.Ee(a[3]);this.kh=a[4];a[5]?this.jd=new bc(c,a[5]):this.jd=null;this.Ra=[];this.V=[];7===a.length?(b=a[6],this.Ra.length=b.length+1):this.Ra.length=1;break;case 23:this.aj=a[1],this.Jf=null}this.Tc.Dv(this.ie);4<=this.type&&17>= +this.type&&(this.first=new bc(c,a[1]),this.second=new bc(c,a[2]));if(b){var g,e;g=0;for(e=b.length;g=a||k<=-a)k%=a;0>k&&(k+=a);d.apply(n[k],b)};b.prototype.Xt=function(c){var a=this.ie,b=this.Ra,p=this.V,e=this.jd,d=this.gd,k=this.Fb,f=this.Tc.re,n=a.za(),H=n.Cc();if(!H.length)if(n.pa.length)H=n.pa;else{this.kh?c.hc(""):c.Fa(0);return}b[0]=c;c.eg=a;c=m();g(p,b,c);e&&(e.get(c),c.Ab()&&(f=c.data,H=a.e));--r;p=H.length;if(f>=p||f<=-p)f%=p;0>f&&(f+=p);f=H[f];H=0;a.F&&(H=f.type.Cg[a.Zd]);k.apply(f.M[d+H],b)};b.prototype.eu=function(c){var a=this.jd,b=this.ie,g=this.Jr,e=this.Tc.re, +d=b.za(),k=d.Cc();if(!k.length)if(d.pa.length)k=d.pa;else{this.kh?c.hc(""):c.Fa(0);return}if(a){d=m();a.get(d);if(d.Ab()){e=d.data;k=b.e;0!==k.length&&(e%=k.length,0>e&&(e+=k.length));e=b.nm(e);b=e.pb[g];y(b)?c.hc(b):c.Y(b);--r;return}--r}a=k.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=k[e];k=0;b.F&&(k=e.type.Tj[b.Zd]);b=e.pb[g+k];y(b)?c.hc(b):c.Y(b)};b.prototype.fu=function(c){c.type=ec.sg;c.data=this.value};b.prototype.bu=function(c){c.type=ec.rg;c.data=this.value};b.prototype.ou=function(c){c.type= +ec.String;c.data=this.value};b.prototype.ru=function(c){this.first.get(c);c.Ab()&&(c.data=-c.data)};b.prototype.Rt=function(c){this.first.get(c);var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data+=a.data,a.Kg()&&c.Zg());--r};b.prototype.pu=function(c){this.first.get(c);var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data-=a.data,a.Kg()&&c.Zg());--r};b.prototype.ju=function(c){this.first.get(c);var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data*=a.data,a.Kg()&&c.Zg());--r};b.prototype.Zt=function(c){this.first.get(c); +var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data/=a.data,c.Zg());--r};b.prototype.iu=function(c){this.first.get(c);var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data%=a.data,a.Kg()&&c.Zg());--r};b.prototype.nu=function(c){this.first.get(c);var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data=Math.pow(c.data,a.data),a.Kg()&&c.Zg());--r};b.prototype.St=function(c){this.first.get(c);var a=m();this.second.get(a);a.Ng()||c.Ng()?this.Ut(c,a):this.Tt(c,a);--r};b.prototype.Ut=function(c,a){c.Ng()&& +a.Ng()?this.Wt(c,a):this.Vt(c,a)};b.prototype.Wt=function(c,a){c.data+=a.data};b.prototype.Vt=function(c,a){c.Ng()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.hc(c.data.toString()+a.data)};b.prototype.Tt=function(c,a){c.Fa(c.data&&a.data?1:0)};b.prototype.mu=function(c){this.first.get(c);var a=m();this.second.get(a);c.Ab()&&a.Ab()&&(c.data||a.data?c.Fa(1):c.Fa(0));--r};b.prototype.Yt=function(c){this.first.get(c);c.data?this.second.get(c):this.ll.get(c)};b.prototype.$t=function(c){this.first.get(c); +var a=m();this.second.get(a);c.Fa(c.data===a.data?1:0);--r};b.prototype.ku=function(c){this.first.get(c);var a=m();this.second.get(a);c.Fa(c.data!==a.data?1:0);--r};b.prototype.gu=function(c){this.first.get(c);var a=m();this.second.get(a);c.Fa(c.dataa.data?1:0);--r};b.prototype.du=function(c){this.first.get(c); +var a=m();this.second.get(a);c.Fa(c.data>=a.data?1:0);--r};b.prototype.au=function(c){var a=this.Jf.Qu();ja(a)?c.Y(a):c.hc(a)};bc=b;n.prototype.Kg=function(){return this.type===ec.rg};n.prototype.Ab=function(){return this.type===ec.sg||this.type===ec.rg};n.prototype.Ng=function(){return this.type===ec.String};n.prototype.Zg=function(){this.Kg()||(this.Ng()&&(this.data=parseFloat(this.data)),this.type=ec.rg)};n.prototype.Fa=function(c){this.type=ec.sg;this.data=Math.floor(c)};n.prototype.Y=function(c){this.type= +ec.rg;this.data=c};n.prototype.hc=function(c){this.type=ec.String;this.data=c};n.prototype.ww=function(c){ja(c)?(this.type=ec.rg,this.data=c):y(c)?(this.type=ec.String,this.data=c.toString()):(this.type=ec.sg,this.data=0)};ac=n;ec={sg:0,rg:1,String:2}})();function Y(b){this.b=b;this.xc=[]} +Y.prototype.$a=function(){var b={},m,g,n,p,r,c,a,l;b.waits=[];var t=b.waits,e;m=0;for(g=this.xc.length;me&&(a=e);c.Y(a)};g.prototype.Ef=function(c){c.Y(this.b.Ef)};g.prototype.pg=function(c){c.Y(this.b.pg)};g.prototype.time=function(c){c.Y(this.b.Gb.fa)};g.prototype.Qd=function(c){c.Fa(this.b.Qd)};g.prototype.Jk=function(c){c.Fa(this.b.Jk)};g.prototype.fm=function(c){c.Fa(this.b.fm)};g.prototype.n=function(c,a,b,g,e){c.Y(Fa(La(a,b,g,e)))};g.prototype.zv=function(c){c.Fa(this.b.wa.height)}; +g.prototype.left=function(c,a,b){c.hc(y(a)?a.substr(0,b):"")};g.prototype.right=function(c,a,b){c.hc(y(a)?a.substr(a.length-b):"")};g.prototype.replace=function(c,a,b,g){y(a)&&y(b)&&y(g)?c.hc(a.replace(new RegExp(eb(b),"gi"),g)):c.hc(y(a)?a:"")};g.prototype.trim=function(c,a){c.hc(y(a)?a.trim():"")};g.prototype.bt=function(c){var a=ra(Math.random()*(arguments.length-1));c.ww(arguments[a+1])};g.prototype.Sl=function(c){c.Y(this.b.Sl/1E3)};g.prototype.zk=function(c){c.Y(this.b.zk)};n.lb=new g;n.hw= +function(){var c,a,b,g,e,d,k=this.b.Sb();c=0;for(b=this.xc.length;cthis.b.Gb.fa)continue;k.Oc=g.Ih;k.Mc=g.Mc;k.xb=0;for(a in g.wc)g.wc.hasOwnProperty(a)&&(e=this.b.A[parseInt(a,10)].za(),d=g.wc[a],e.Ma=d.Uq,Aa(e.e,d.Qf),e=d,V(e.Qf),r.push(e));g.Ih.fw();this.b.Ql(g.Na);g.Lo=!0}a=c=0;for(b=this.xc.length;ca.ma||d.top>a.la)},e.lx=function(){this.ya();var a=this.Aa,d=this.b.wa;return 0>a.right||0>a.bottom||a.left>d.width||a.top>d.height},e.zx=function(a,d,c){var e=this.za(), +b=e.Cc();if(!b.length)return!1;var g=b[0],k=g,l=Ta(g.x,g.y,d,c),p,m,n;p=1;for(m=b.length;pl)l=n,k=g;e.Ei(k);return!0},d.Sx=function(a){this.x!==a&&(this.x=a,this.C())},d.Tx=function(a){this.y!==a&&(this.y=a,this.C())},d.Ox=function(a,d){if(this.x!==a||this.y!==d)this.x=a,this.y=d,this.C()},d.Px=function(a,d){var c=a.Ju(this);if(c){var e;c.mm?(e=c.mm(d,!0),c=c.mm(d,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.C()}},d.rx= +function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.C())},d.qx=function(a,d){0!==d&&(this.x+=Math.cos(W(a))*d,this.y+=Math.sin(W(a))*d,this.C())},k.Yx=function(a){a.Y(this.x)},k.Zx=function(a){a.Y(this.y)},k.Ef=function(a){a.Y(this.b.Nh(this))});r&&(e.$w=function(a,d){return fc(this.width,a,d)},e.Xw=function(a,d){return fc(this.height,a,d)},d.Gs=function(a){this.width!==a&&(this.width=a,this.C())},d.Lx=function(a){this.height!==a&&(this.height=a,this.C())},d.Qx=function(a, +d){if(this.width!==a||this.height!==d)this.width=a,this.height=d,this.C()},k.Xx=function(a){a.Y(this.width)},k.gx=function(a){a.Y(this.height)},k.Tw=function(a){this.ya();a.Y(this.Aa.left)},k.Vw=function(a){this.ya();a.Y(this.Aa.top)},k.Uw=function(a){this.ya();a.Y(this.Aa.right)},k.Sw=function(a){this.ya();a.Y(this.Aa.bottom)});c&&(e.Nr=function(a,d){return Ma(this.n,W(d))<=W(a)},e.Xr=function(a){return Ra(this.n,W(a))},e.Vr=function(a,d){var c=Ka(a),e=Ka(d),b=Ia(this.n);return Ra(e,c)?Ra(b,c)&& +!Ra(b,e):!(!Ra(b,c)&&Ra(b,e))},d.Hx=function(a){a=W(Ha(a));isNaN(a)||this.n===a||(this.n=a,this.C())},d.Dx=function(a){0===a||isNaN(a)||(this.n+=W(a),this.n=Ia(this.n),this.C())},d.Ex=function(a){0===a||isNaN(a)||(this.n-=W(a),this.n=Ia(this.n),this.C())},d.Fx=function(a,d){var c=Qa(this.n,W(d),W(a));isNaN(c)||this.n===c||(this.n=c,this.C())},d.Gx=function(a,d,c){a=Qa(this.n,Math.atan2(c-this.y,d-this.x),W(a));isNaN(a)||this.n===a||(this.n=a,this.C())},d.Rx=function(a,d){var c=Math.atan2(d-this.y, +a-this.x);isNaN(c)||this.n===c||(this.n=c,this.C())},k.Rw=function(a){a.Y(Ja(this.n))});n||(e.Yw=function(a,d,c){return fc(this.pb[a],d,c)},e.ix=function(a){return this.pb[a]},e.Ax=function(a,d){var c=this.za(),e=c.Cc();if(!e.length)return!1;var b=e[0],g=b,k=b.pb[d],l,p,m;l=1;for(p=e.length;lk)k=m,g=b;c.Ei(g);return!0},e.yx=function(a){var d,c,e,b,g;if(this.b.$o().Cm){g=this.za();if(g.Ma)for(g.Ma=!1,V(g.e),V(g.pa),e=this.e,d=0,c=e.length;da?a=0:1b.j.index||e.j.index===b.j.index&&e.Gd()>b.Gd())b=e}else if(e.j.indexc)){var e=1===a;this.Fe[c]!==e&&(this.Fe[c]=e,this.wd(),this.b.ua=!0)}}},d.Kx=function(a,d,c){if(this.b.m){var e=this.type.lm(a);0>e||(a=this.type.P[e],e=this.Pa[e],d=Math.floor(d),0>d||d>=e.length||(1===this.b.m.Ou(a.kb,d)&&(c/=100),e[d]!==c&&(e[d]=c,a.Mb&&(this.b.ua=!0))))}})};Lb=function(){this.Ll=this.Gl=!0;this.type.lj=!0;this.b.ua=!0;var b,g,n=this.Hl;b=0;for(g= +n.length;bn;case 5:return b>=n;default:return!1}}})(); +var oc={hardlight:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nif (front.r * 0.299 + front.g * 0.587 + front.b * 0.114 <= 0.5)\n{\nfront *= back * 2.0;\n}\nelse\n{\nfront.rgb = 1.0 - ((1.0 - (2.0 * front.rgb - 1.0)) * (1.0 - back.rgb * front.a));\n}\ngl_FragColor = front;\n}",Qj:0, +Rj:0,Ul:!0,Uc:!1,El:!1,V:[]}};function tc(b){this.b=b} +(function(){function b(a){-1===nb.indexOf(a)&&nb.push(a)}function m(a){var d=a.k,c;try{c=d.play()}catch(e){b(a);return}c?c.catch(function(){b(a)}):Bc&&!D.Rf&&b(a)}function g(){var a,d,c,e;Cc||ga||!w||(n(),"running"===w.state&&(Cc=!0));var f=nb.slice(0);V(nb);if(!T)for(a=0,d=f.length;aa&&(a=0);1a&&(a=.01);this.Pk.gain.value=a;this.Ok.gain.value=Math.pow(1/a,.6)*d};u.prototype.shape=function(a,d,c){var b=1.05*c*d-d;c=0>a?-1:1;a=0>a?-a:a;d=af;++f)e=f/32768,e=this.shape(e,c,b),this.Hj[32768+f]=e,this.Hj[32768-f-1]=-e};u.prototype.Nc=function(a){this.O.disconnect();this.O.connect(a);this.N.disconnect();this.N.connect(a)};u.prototype.remove=function(){this.ea.disconnect();this.Pk.disconnect();this.ul.disconnect();this.Ok.disconnect();this.O.disconnect();this.N.disconnect()};u.prototype.Bc=function(){return this.ea};K.prototype.Nc=function(a){this.ka.disconnect();this.ka.connect(a)};K.prototype.remove= +function(){this.ka.disconnect()};K.prototype.Bc=function(){return this.ka};C.prototype.Ja=function(){this.ka.getFloatFrequencyData(this.wu);this.ka.getByteTimeDomainData(this.hr);for(var a=this.ka.fftSize,d=0,c=this.Di=0,b=0;db&&(b=-b),this.Did&&(c=d);return c};E.prototype.ai=function(){return!this.pc&&!this.Fd&&!this.ic&&!this.Nf()};E.prototype.yw=function(){return!this.Fd&&!this.ic&&!this.Nf()};E.prototype.Jw=function(){var a=this.volume* +Z;isFinite(a)||(a=0);switch(this.X){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.X?this.mb.gain.value=a*this.dh:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};E.prototype.Mj=function(a){switch(this.X){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.X?(this.dh=a?0:1,this.mb.gain.value=Z*this.volume*this.dh):this.k.muted!==!!a&&(this.k.muted=!!a)}};E.prototype.qw=function(){this.Lg= +!0;this.Mj(this.Lg||this.ci)};E.prototype.br=function(a){this.ci=!!a;this.Mj(this.Lg||this.ci)};E.prototype.rl=function(){var a=this.playbackRate;this.Jg&&(a*=D.pg);switch(this.X){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.X?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};E.prototype.sw=function(a){switch(this.X){case 0:a?this.ai()?(this.Ic=!0,this.k.pause()):this.Ic=!1:this.Ic&&(this.k.play(), +this.Ic=!1);break;case 1:a?this.ai()?(this.Ic=!0,1===this.buffer.X?(this.gc=this.om(!0),this.Id&&(this.gc=this.gc%this.Lf()),e(this.k)):this.k.pause()):this.Ic=!1:this.Ic&&(1===this.buffer.X?(this.k=w.createBufferSource(),this.k.buffer=this.buffer.ja,this.k.connect(this.mb),this.k.onended=this.qn,this.jj=this.k,this.k.loop=this.Id,this.mb.gain.value=Z*this.volume*this.dh,this.rl(),this.startTime=(this.Jg?D.Gb.fa:D.Be.fa)-this.gc/(this.playbackRate||.001),t(this.k,this.gc,this.Lf())):this.k.play(), +this.Ic=!1);break;case 2:a?this.ai()?(this.k.pause(),this.Ic=!0):this.Ic=!1:this.Ic&&(this.Ic=!1,this.k.play())}};G.T=function(a){this.type=a;D=this.b=a.b;J=this;this.rc=null;this.ki=-600;this.b.mk&&(ob=!0);!(this.b.Og||this.b.Ig&&(this.b.Em||this.b.ik))||this.b.Xh||this.b.Qa||this.b.hk||ob||(Bc=!0);w=null;"undefined"!==typeof AudioContext?(O=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(O=1,w=new webkitAudioContext);this.b.Og&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext? +w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==O&&(this.b.kd&&"undefined"!==typeof window.Media?O=2:this.b.rp&&(O=3));2===O&&(M=location.href,a=M.lastIndexOf("/"),-1"!==d&&(a.Lk=d,a.bn=b,a.fo=e),null;g=new E(a,d);x.push(g);return g};var Pa=[];S.prototype.hj=function(a){return lb(z,a)};G.u=new S;P.prototype.Play=function(a,d,c,b){!T&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&& +(c=0),1=a||0>=l||g>=m||c>=e?(this.Hf||jQuery(this.xa).hide(),this.Hf=!0):(1>g&&(g=1),1>c&&(c=1),a>=m&&(a=m-1),l>=e&&(l=e-1),m=window.innerWidth,e=window.innerHeight, +b||this.Ep!==g||this.Ip!==c||this.Gp!==a||this.Ap!==l||this.Kp!==m||this.Jp!==e?(this.Ep=g,this.Ip=c,this.Gp=a,this.Ap=l,this.Kp=m,this.Jp=e,this.Hf&&(jQuery(this.xa).show(),this.Hf=!1),b=Math.round(g)+jQuery(this.b.canvas).offset().left,m=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.xa).css("position","absolute"),jQuery(this.xa).offset({left:b,top:m}),jQuery(this.xa).width(Math.round(a-g)),jQuery(this.xa).height(Math.round(l-c)),this.Qs&&jQuery(this.xa).css("font-size",this.j.Zb(!0)/ +this.b.devicePixelRatio-.2+"em")):this.Hf&&(jQuery(this.xa).show(),this.Hf=!1))}};n.zc=function(){};n.Pb=function(){};b.prototype.mo=function(){return!0};g.u=new b;m.prototype.Fs=function(b){this.b.Qa||(this.visible=0!==b)};m.prototype.Cs=function(b,g){this.b.Qa||jQuery(this.xa).css(b,g)};g.qa=new m;g.lb=new function(){}})();function vc(b){this.b=b} +(function(){function b(){}function m(){}function g(){}var n=vc.prototype;n.Z=function(b){this.Da=b;this.b=b.b};n.Z.prototype.H=function(){};n.T=function(b){this.type=b;this.b=b.b};var p=n.T.prototype;p.H=function(){this.Ag={}};p.$a=function(){return this.Ag};p.rb=function(b){this.Ag=b;for(var c in this.Ag);};b.prototype.Ur=function(b){return this.Ag.hasOwnProperty(b)};n.u=new b;m.prototype.Mr=function(b,c){this.Ag[b]=c};n.qa=new m;g.prototype.ko=function(b){b.hc(JSON.stringify({c2dictionary:!0,data:this.Ag}))}; +n.lb=new g})();function wc(b){this.b=b} +(function(){function b(){}var m=wc.prototype;m.Z=function(b){this.Da=b;this.b=b.b};m.Z.prototype.H=function(){};m.T=function(b){this.type=b;this.b=b.b;this.Sg=Array(256);this.Zi=Array(256);this.ze=0};var g=m.T.prototype;g.H=function(){var b=this;this.b.Qa||(jQuery(document).keydown(function(g){b.nn(g)}),jQuery(document).keyup(function(g){b.pn(g)}))};var n=[32,33,34,35,36,37,38,39,40,44];g.nn=function(b){var g=!1;window!=window.top&&-1b;++b)if(this.Sg[b]){this.Sg[b]=!1;this.ze=b;this.b.trigger(wc.prototype.u.lo,this);var g=this.b.trigger(wc.prototype.u.qo,this),c=this.b.trigger(wc.prototype.u.po,this);if(g||c)this.Zi[b]=!0}};g.$a=function(){return{triggerKey:this.ze}};g.rb=function(b){this.ze=b.triggerKey};b.prototype.Yr=function(b){return this.Sg[b]};b.prototype.oo=function(b){return b===this.ze};b.prototype.es=function(){return!0}; +b.prototype.lo=function(){return!0};b.prototype.qo=function(b){return b===this.ze};b.prototype.ts=function(b){return b===this.ze};b.prototype.po=function(b){return b===this.ze};m.u=new b;m.qa=new function(){};m.lb=new function(){}})();function sc(b){this.b=b} +(function(){function b(){if(0===this.Wl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var d=a.getContext("2d");this.nh?d.drawImage(this.I,this.eh,this.fh,this.width,this.height,0,0,this.width,this.height):d.drawImage(this.I,0,0,this.width,this.height);this.Wl=a.toDataURL("image/png")}return this.Wl}function m(){}function g(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function n(a,d){return athis.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);var a=this.Ia.frames[this.G];this.R.Ni(a.Mk);this.Tb=a.Tb;this.Ub=a.Ub;this.xg=this.Ia.speed;this.Re=this.Ia.En;1===this.type.lc.length&&1===this.type.lc[0].frames.length||0===this.xg||this.b.Yi(this);this.vc?this.zd.reset():this.zd=new db;this.$d=this.zd.fa;this.vf=!0;this.Sd=0;this.uf=!0;this.Pl=this.vo="";this.Zs=0;this.Ol=-1;this.type.Xm();var d,c,b,e,f,g,k,a=0;for(d=this.type.lc.length;athis.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);this.xg=a.cas;this.$d=a.fs;this.Sd=a.ar;this.zd.reset();this.zd.fa=a.at;this.vf=a.hasOwnProperty("ap")?a.ap:!0;this.uf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Re=a.rt:this.Re=this.Ia.En;this.Db=this.Ia.frames[this.G];this.Ej=this.Db.D;this.R.Ni(this.Db.Mk);this.Tb=this.Db.Tb;this.Ub=this.Db.Ub};d.Fl=function(a){this.G=a?0:this.Ia.frames.length- +1;this.vf=!1;this.vo=this.Ia.name;this.b.trigger(sc.prototype.u.ds,this);this.b.trigger(sc.prototype.u.cs,this);this.Sd=0};d.nj=function(){return this.zd.fa};d.Ja=function(){this.zd.add(this.b.Nh(this));this.Pl.length&&this.mt();0<=this.Ol&&this.nt();var a=this.zd.fa,d=this.Ia,c=d.frames[this.G],b=c.duration/this.xg;this.vf&&a>=this.$d+b&&(this.uf?this.G++:this.G--,this.$d+=b,this.G>=d.frames.length&&(d.Gq?(this.uf=!1,this.G=d.frames.length-2):d.loop?this.G=this.Re:(this.Sd++,this.Sd>=d.Dn?this.Fl(!1): +this.G=this.Re)),0>this.G&&(d.Gq?(this.G=1,this.uf=!0,d.loop||(this.Sd++,this.Sd>=d.Dn&&this.Fl(!0))):d.loop?this.G=this.Re:(this.Sd++,this.Sd>=d.Dn?this.Fl(!0):this.G=this.Re)),0>this.G?this.G=0:this.G>=d.frames.length&&(this.G=d.frames.length-1),a>this.$d+d.frames[this.G].duration/this.xg&&(this.$d=a),a=d.frames[this.G],this.tg(c,a),this.b.ua=!0)};d.Wo=function(a){var d,c,b;d=0;for(c=this.type.lc.length;dthis.G&&(this.G=0),this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1),1===this.Zs&&(this.G=0),this.vf=!0,this.$d=this.zd.fa,this.uf=!0,this.tg(a,this.Ia.frames[this.G]),this.b.ua=!0)};d.nt=function(){var a=this.Ia.frames[this.G],d=this.G;this.G= +ra(this.Ol);0>this.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);d!==this.G&&(this.tg(a,this.Ia.frames[this.G]),this.$d=this.zd.fa,this.b.ua=!0);this.Ol=-1};d.tg=function(a,d){var c=a.width,b=a.height,e=d.width,f=d.height;c!=e&&(this.width*=e/c);b!=f&&(this.height*=f/b);this.Tb=d.Tb;this.Ub=d.Ub;this.R.Ni(d.Mk);this.C();this.Db=d;this.Ej=d.D;c=0;for(b=this.M.length;ce||e>=b.length)return d?this.x:this.y;var f=(b[e][1]-c.Tb)*this.width,b=b[e][2],b=(b-c.Ub)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var g=f*c-b*e,b=b*c+f*e,f=g+this.x,b=b+this.y;return d?f:b};var k=[],f=-2,v=[];m.prototype.hs=function(a){if(!a)return!1;var d=this.b,b=d.$o(),e=b.type,k=null;b.L.collmemory?k=b.L.collmemory:(k={},b.L.collmemory=k); +b.L.spriteCreatedDestroyCallback||(b.L.spriteCreatedDestroyCallback=!0,d.Cl(function(a){var d=b.L.collmemory;a=a.uid;var c,e;for(c in d)d.hasOwnProperty(c)&&(e=d[c],e[0]===a||e[1]===a)&&(g(d[c]),delete d[c])}));var l=e.za(),m=a.za(),l=l.Cc(),n,t,A,H,G,D,J,z=this.b.Qd,M=z-1,O=d.Sb().Oc;for(t=0;t=g.length&&g.push(b(c,Object));e=g[e];e.text=f;e.width=a.dn(f);a.we=na(a.we,e.width)}var n=xc.prototype;n.H=function(){};n.Z=function(a){this.Da=a;this.b=a.b};var p=n.Z.prototype;p.H=function(){this.F|| +(this.I=new Image,this.b.tl(this.I,this.kl),this.D=null)};p.gh=function(){this.F||(this.D=null)};p.Ci=function(){if(!this.F&&this.e.length){this.D||(this.D=this.b.m.Xg(this.I,!1,this.b.Ea,this.Xi));var a,c;a=0;for(c=this.e.length;a=c*e);n++){var r=n%c,t=Math.floor(n/c),C=h.charAt(n);if(this.b.m){var N=this.zj,L=r*m,E=t*p,r=(r+1)*m,t=(t+1)*p;void 0===N[C]&&(N[C]=b(l,ua));N[C].left=L;N[C].top=E;N[C].right=r;N[C].bottom=t}else N=this.yj,r=r*d,t=t*g,L=d,E=g,void 0===N[C]&&(N[C]=b(a,Object)),N[C].x=r,N[C].y=t,N[C].Kr=L,N[C].gp=E}};var t= +[];n.yl=function(a){V(t);for(var c="",b,e=0;e=g)m(c,f,!0);else{var l=a.Ne,n=a.wg;if(e.length*(a.xj*l+n)-n<=g&&-1===e.indexOf("\n")&&(n=a.dn(e),n<=g)){m(c,f,!0);f.push(b(c, +Object));f[0].text=e;f[0].width=n;a.we=n;a.Pd=a.Me*l+a.lineHeight;return}this.Al(a);a.Pd=f.length*(a.Me*l+a.lineHeight)}}else m(c,f,!0)};n.Al=function(a){var b=a.fj,e=a.text,l=a.Vb,m=a.width;b&&(this.yl(e),e=t);var n="",h,p,u,K=0,C=!1;for(u=0;um&&(""===h?(g(a,K,n),n="",C=!0):(g(a,K,h),n=e[u]),K++,b||" "!==n||(n="")));n.replace(/\s\s*$/,"").length&&(g(a,K,n),K++);for(u=K;uthis.width+1E-5)break;void 0!==w&&(D=G,J=P,0===m&&1===p&&(D=Math.round(D),J=Math.round(J)),a.drawImage(this.I,w.x,w.y,w.Kr,w.gp,D,J,w.Kr*p,w.gp*p));G+=I*p+L;if(0===m&&c+G>l)break}}P+=r;if(0===m&&(P+r+t>this.height||b+P>h))break}}a.restore()}};var e=new va;p.Pb=function(a){a.jb(this.D);a.pe(this.opacity);if(this.text&&(this.Qq(),!(this.heightthis.width+1E-5)break;if(void 0!== +B){var x=this.xj*N,F=this.Me*N;M=z;O=t;0===p&&1===N&&(M=Math.round(M),O=Math.round(O));e.Ga=M;e.Ha=O;e.ab=M+x;e.bb=O;e.Ta=M;e.Ua=O+F;e.Va=M+x;e.Wa=O+F;0!==p&&(M=e,O=D,x=J,F=void 0,F=M.Ga*O-M.Ha*x,M.Ha=M.Ha*O+M.Ga*x,M.Ga=F,F=M.ab*O-M.bb*x,M.bb=M.bb*O+M.ab*x,M.ab=F,F=M.Ta*O-M.Ua*x,M.Ua=M.Ua*O+M.Ta*x,M.Ta=F,F=M.Va*O-M.Wa*x,M.Wa=M.Wa*O+M.Va*x,M.Va=F);e.offset(b,c);a.rd(e.Ga,e.Ha,e.ab,e.bb,e.Va,e.Wa,e.Ta,e.Ua,B)}z+=G*N+I;if(0===p&&b+z>h)break}}t+=L;if(0===p&&(t+L+E>this.height||c+t>n))break}}};n.u=new function(){}; +p.nj=function(a,c){var b=parseInt(c,10);this.Oe[a]!==b&&(this.Oe[a]=b,this.ud=!0,this.b.ua=!0)};n.qa=new function(){};n.lb=new function(){}})();function yc(b){this.b=b} +(function(){function b(){return c.length?c.pop():{}}function m(a){var b,g;b=0;for(g=a.length;ba.ma||c.top>a.la)this.b.m.deleteTexture(this.sc),this.Jd=this.dg=this.sc=null}};p.ke=function(){this.Jd=this.dg=null;this.b.m&&this.sc&&this.b.m.deleteTexture(this.sc); +this.sc=null};p.nj=function(){this.font=this.Yj+" "+this.Gi.toString()+"pt "+this.Bg;this.ud=!0;this.b.ua=!0};p.zc=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var b=1;c&&(b=Math.abs(this.j.Zb()),a.save(),a.scale(b,b));if(this.ud||this.width!==this.Zf)this.type.Da.zl(this.text,this.Vb,a,this.width,this.fj),this.ud=!1,this.Zf=this.width;this.ya();var b=c?0:this.wb.Ga,e=c?0:this.wb.Ha;this.b.Hc&&(b=b+.5|0,e=e+.5|0);0===this.n||c||(a.save(), +a.translate(b,e),a.rotate(this.n),e=b=0);var d=e+this.height,g=this.zn,g=g+this.Um,f,m;1===this.Ae?e+=Math.max(this.height/2-this.Vb.length*g/2,0):2===this.Ae&&(e+=Math.max(this.height-this.Vb.length*g-2,0));for(m=0;m=d-g);m++);(0!==this.n||c)&&a.restore();this.Yf=this.b.Qd};p.Pb=function(a){if(!(1>this.width||1>this.height)){var c=this.ud|| +this.nq;this.nq=!1;var b=this.j.Zb(),e=this.j.nb(),d=this.hf,g=b*this.width,f=b*this.height,m=Math.ceil(g),n=Math.ceil(f),p=Math.abs(m),h=Math.abs(n),q=this.b.K/2,r=this.b.J/2;this.dg||(this.Jd=document.createElement("canvas"),this.Jd.width=p,this.Jd.height=h,this.uk=p,this.tk=h,c=!0,this.dg=this.Jd.getContext("2d"));if(p!==this.uk||h!==this.tk)this.Jd.width=p,this.Jd.height=h,this.sc&&(a.deleteTexture(this.sc),this.sc=null),c=!0;c&&(this.dg.clearRect(0,0,p,h),this.zc(this.dg,!0),this.sc||(this.sc= +a.Yb(p,h,this.b.Ea,this.b.Sf)),a.eo(this.Jd,this.sc,this.b.Sf));this.uk=p;this.tk=h;a.jb(this.sc);a.pe(this.opacity);a.Wc();a.translate(-q,-r);a.Kc();var K=this.wb,c=this.j.Ca(K.Ga,K.Ha,!0,!0),p=this.j.Ca(K.Ga,K.Ha,!1,!0),h=this.j.Ca(K.ab,K.bb,!0,!0),q=this.j.Ca(K.ab,K.bb,!1,!0),r=this.j.Ca(K.Va,K.Wa,!0,!0),C=this.j.Ca(K.Va,K.Wa,!1,!0),N=this.j.Ca(K.Ta,K.Ua,!0,!0),K=this.j.Ca(K.Ta,K.Ua,!1,!0);if(this.b.Hc||0===this.n&&0===e)var L=(c+.5|0)-c,E=(p+.5|0)-p,c=c+L,p=p+E,h=h+L,q=q+E,r=r+L,C=C+E,N=N+L,K= +K+E;0===this.n&&0===e?(h=c+m,q=p,r=h,C=p+n,N=c,K=C,d.right=1,d.bottom=1):(d.right=g/m,d.bottom=f/n);a.rd(c,p,h,q,r,C,N,K,d);a.Wc();a.scale(b,b);a.Yk(-this.j.nb());a.translate((this.j.ba+this.j.ma)/-2,(this.j.ca+this.j.la)/-2);a.Kc();this.Yf=this.b.Qd}};var r=[];n.yl=function(a){V(r);for(var c="",b,e=0;e=e)m(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=g.measureText(a).width;if(k<=e){m(c);c.push(b());c[0].text=a;c[0].width=k;return}}this.Al(a,c,g,e,d)}else m(c)};n.Al=function(a,l,m,e,d){d&&(this.yl(a),a=r);var k="",f,p,n,A=0;for(n=0;n=l.length&&l.push(b()),k=g(k),p=l[A],p.text=k,p.width=m.measureText(k).width,A++,k=""):(f=k,k+=a[n],p=m.measureText(k).width, +p>=e&&(A>=l.length&&l.push(b()),f=g(f),p=l[A],p.text=f,p.width=m.measureText(f).width,A++,k=a[n],d||" "!==k||(k="")));k.length&&(A>=l.length&&l.push(b()),k=g(k),p=l[A],p.text=k,p.width=m.measureText(k).width,A++);for(n=A;na&&(a+=this.I.width);0>l&&(l+=this.I.height);b.translate(m,p);b.rotate(this.n);b.translate(a,l);b.fillRect(r-a,c-l,this.width,this.height);b.restore()};m.Df=function(b){this.Pb(b)};m.Pb=function(b){b.jb(this.D); +b.pe(this.opacity);var m=this.hf;m.right=this.width/this.I.width;m.bottom=this.height/this.I.height;var p=this.wb;if(this.b.Hc){var r=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.rd(p.Ga+r,p.Ha+c,p.ab+r,p.bb+c,p.Va+r,p.Wa+c,p.Ta+r,p.Ua+c,m)}else b.rd(p.Ga,p.Ha,p.ab,p.bb,p.Va,p.Wa,p.Ta,p.Ua,m)};b.u=new function(){};b.qa=new function(){};b.lb=new function(){}})();function Ac(b){this.b=b} +(function(){function b(a){var d;if(!e[a])for(e[a]=Array(20),d=0;20>d;++d)e[a][d]=0;return e[a]}function m(a){var c;if(!d[a])for(d[a]=Array(20),c=0;20>c;++c)d[a][c]=0;return d[a]}function g(a,d){return d?4<=a?-1:a+16:16<=a?-1:a}function n(d){t[d.gamepad.index]=d.gamepad;a.trigger(Ac.prototype.u.os,l)}function p(d){a.trigger(Ac.prototype.u.qs,l);t[d.gamepad.index]=null}function r(){}var c=Ac.prototype;c.Z=function(a){this.Da=a;this.b=a.b};c.Z.prototype.H=function(){};var a=null,l=null,t=Array(16),e= +Array(16),d=Array(16),k="",f="",v=null,H={windows:{}};H.windows.firefox={};var A=[0,1,2,3,4,5,8,9,10,11],h=[0,1,[7,6],2,3,[14,15],[12,13]];H.windows.firefox.xbox360=function(a,d){return d?a>=h.length?-1:ja(h[a])?h[a]+16:h[a]:a>=A.length?-1:A[a]};var q=[2,0,1,3,4,6,5,7,8,9],u=[0,1,2,3,[14,15],[12,13]];H.windows.firefox.logitechdualaction=function(a,d){return d?a>=u.length?-1:ja(u[a])?u[a]+16:u[a]:a>=q.length?-1:q[a]};c.T=function(d){this.type=d;a=this.b=d.b;l=this};var K=c.T.prototype;K.H=function(){this.rk= +0;var a=navigator.userAgent;k="windows";/mac/i.test(a)&&(k="mac");v=H[k];f="chrome";/firefox/i.test(a)&&(f="firefox");v&&(v=v[f]);window.addEventListener("webkitgamepadconnected",n,!1);window.addEventListener("webkitgamepaddisconnected",p,!1);window.addEventListener("MozGamepadConnected",n,!1);window.addEventListener("MozGamepadDisconnected",p,!1);window.addEventListener("gamepadconnected",n,!1);window.addEventListener("gamepaddisconnected",p,!1);this.b.Yi(this);this.Bl=[]};K.Ja=function(){this.Bl.length= +0;var a=null,c=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.wp&&window.cr_getGamepads?(a=window.cr_getGamepads(),c=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||t;if(a){var f,h,k,l,p,n,q;f=0;for(h=a.length;fp;++p)l[p]= +k[p];c?k=g:v?(k="",l=r.id.toLowerCase(),-1n&&(z[n]=100*q,50<=z[n]&&50>u[n]&&(this.rk=n));k=0;for(l=r.axes.length;kn&&(z[n]=100*q):(z[n[0]]=0,z[n[1]]=0,0>=q?z[n[0]]=Math.abs(100*q):z[n[1]]=Math.abs(100*q));this.Bl.push(r)}else r= +f,e[r]=null,d[r]=null}for(;20>f;++f)a=f,e[a]=null,d[a]=null}};K.$a=function(){return{lastButton:this.rk}};K.rb=function(a){this.rk=a.lastButton};r.prototype.os=function(){return!0};r.prototype.qs=function(){return!0};r.prototype.Wr=function(a,d){a=Math.floor(a);if(0>a||a>=this.Bl.length)return!1;var c=b(a);if(!c)return!1;if(c=50<=c[d])this.rk=d;return c};c.u=new r;c.qa=new function(){};c.lb=new function(){}})();function Dc(b){this.b=b} +(function(){function b(a){a%=d.length;0>a&&(a+=d.length);return a}function m(){var a,c,e,g;a=0;for(c=d.length;af.width, +0>f.height));c.beginPath();c.moveTo(u[0],u[1]);f=2;for(g=u.length;f=Math.PI/2)};var D=0,J=0;n.Ws=function(){for(var a=v,d,c,b;a=a%e,d=2*a,c=t[d],b=t[d+1],u.push(c),u.push(b),a!==H;++a);var f=this.Wg,g=La(this.bf,this.cf,h,q),a=this.bf+Math.cos(g-Math.PI/2)*f,k=this.cf+Math.sin(g-Math.PI/2)*f,g=La(a,k,c,b),l=Ta(a,k,c,b),a=a+Math.cos(g)*(l+this.cc),k=k+Math.sin(g)*(l+this.cc);d=2*v;var m=t[d];d=t[d+1];var g=La(this.bf,this.cf,h,q),p=this.bf+Math.cos(g+ +Math.PI/2)*f,n=this.cf+Math.sin(g+Math.PI/2)*f,g=La(p,n,m,d),l=Ta(p,n,m,d),f=p+Math.cos(g)*(l+this.cc),g=n+Math.sin(g)*(l+this.cc);E=c;I=b;K=m;C=d;var r,A,G,l=a-c,p=k-b;r=f-m;A=g-d;G=-r*p+l*A;0===G?c=!1:(n=(-p*(c-m)+l*(b-d))/G,G=-r*p+l*A,0===G?c=!1:(m=(r*(b-d)-A*(c-m))/G,0<=n&&1>=n&&0<=m&&1>=m?(D=c+m*l,J=b+m*p,c=!0):c=!1));c?(u.push(D),u.push(J),S=D,P=J,N=D,L=J):(u.push(a),u.push(k),u.push(f),u.push(g),S=a,P=k,N=f,L=g)};n.Xs=function(a,d,c,b,e){if(e>=this.Op)return this.cc;if(0>=e)return 0;a=Ta(a, +d,c,b);a=Math.atan(a/(this.Op-e));e=e*Math.tan(a);e>=this.cc&&(e=this.cc);0>e&&(e=0);return e};n.Pb=function(c){c.pe(this.opacity);this.fp();var b,e,g,h,k,m,p,n,q,r;b=0;for(e=a.length;bu.length||(c.jb(this.D),c.Ho(u),-1g.width,0>g.height)),6>u.length||(c.jb(this.D),c.Ho(u),-1=this.xe)){var b=this.b.Nh(this.d);this.xe-=b;0>=this.xe?(this.xe=0,this.d.visible=!0,this.b.ua=!0,this.b.trigger(Ec.prototype.u.ns,this.d)):(this.ue-=b,0>=this.ue&&(0===this.Si?(this.d.visible=!1,this.Si=1,this.ue+=this.kn):(this.d.visible=!0,this.Si=0,this.ue+=this.rn),this.b.ua=!0))}};b.prototype.ns=function(){return!0};m.u=new b;m.qa=new function(){};m.lb=new function(){}})();function Fc(b){this.b=b} +(function(){function b(){}function m(){}var g=Fc.prototype;g.Z=function(b){this.behavior=b;this.b=b.b};g.Z.prototype.H=function(){};g.T=function(b,g){this.type=b;this.behavior=b.behavior;this.d=g;this.b=b.b;this.Qi=this.gl=this.fl=this.xm=this.Ah=this.Gh=this.Qg=this.Rg=this.Ji=this.ji=!1;this.Hb=null;this.Vm=-1;this.Ze=this.Ye=0;this.Mh=!1;this.Kf=this.dd=0;this.Xj=!0;this.ra=this.U=0};var n=g.T.prototype;n.Fr=function(){this.Xa=Math.cos(this.Fg);this.Ya=Math.sin(this.Fg);this.kf=Math.cos(this.Fg- +Math.PI/2);this.lf=Math.sin(this.Fg-Math.PI/2);this.Xa=kb(this.Xa);this.Ya=kb(this.Ya);this.kf=kb(this.kf);this.lf=kb(this.lf);this.hm=this.ae;0>this.ae&&(this.Xa*=-1,this.Ya*=-1,this.ae=Math.abs(this.ae))};n.H=function(){this.$g=this.q[0];this.ug=this.q[1];this.zg=this.q[2];this.fi=this.q[3];this.hm=this.ae=this.q[4];this.Fk=this.q[5];this.Oj=0!==this.q[6];this.Nm=this.q[7]/1E3;this.jt=1===this.q[8];this.enabled=0!==this.q[9];this.uh=!1;this.vh=this.b.ve(this.d);this.Wm=-1;this.ng=0;this.Fg=W(90); +this.Fr();var b=this;this.jt&&!this.b.Qa&&(jQuery(document).keydown(function(g){b.nn(g)}),jQuery(document).keyup(function(g){b.pn(g)}));this.vc||(this.mq=function(g){b.mn(g)});this.b.Cl(this.mq);this.d.L.isPlatformBehavior=!0};n.$a=function(){return{ii:this.xm,lfx:this.Ye,lfy:this.Ze,lfo:this.Hb?this.Hb.uid:-1,am:this.dd,en:this.enabled,fall:this.Kf,ft:this.Xj,dx:this.U,dy:this.ra,ms:this.$g,acc:this.ug,dec:this.zg,js:this.fi,g:this.ae,g1:this.hm,mf:this.Fk,wof:this.uh,woj:this.vh?this.vh.uid:-1, +ga:this.Fg,edj:this.Oj,cdj:this.Ah,dj:this.Gh,sus:this.Nm}};n.rb=function(b){this.xm=b.ii;this.Ye=b.lfx;this.Ze=b.lfy;this.Vm=b.lfo;this.dd=b.am;this.enabled=b.en;this.Kf=b.fall;this.Xj=b.ft;this.U=b.dx;this.ra=b.dy;this.$g=b.ms;this.ug=b.acc;this.zg=b.dec;this.fi=b.js;this.ae=b.g;this.hm=b.g1;this.Fk=b.mf;this.uh=b.wof;this.Wm=b.woj;this.Fg=b.ga;this.Oj=b.edj;this.Ah=b.cdj;this.Gh=b.dj;this.Nm=b.sus;this.Qi=this.gl=this.fl=this.Qg=this.Rg=this.Ji=this.ji=!1;this.ng=0;this.Fr()};n.yd=function(){-1=== +this.Vm?this.Hb=null:this.Hb=this.b.Gg(this.Vm);-1===this.Wm?this.vh=null:this.vh=this.b.Gg(this.Wm)};n.mn=function(b){this.Hb==b&&(this.Hb=null)};n.ke=function(){this.Hb=null;this.b.aw(this.mq)};n.nn=function(b){switch(b.which){case 38:b.preventDefault();this.Rg=!0;break;case 37:b.preventDefault();this.ji=!0;break;case 39:b.preventDefault(),this.Ji=!0}};n.pn=function(b){switch(b.which){case 38:b.preventDefault();this.Qg=this.Rg=!1;break;case 37:b.preventDefault();this.ji=!1;break;case 39:b.preventDefault(), +this.Ji=!1}};n.fg=function(){this.Rg=this.Ji=this.ji=!1};n.nj=function(){return 0>this.ae?-1:1};n.up=function(){var b=null,g=null,c,a;c=this.d.x;a=this.d.y;this.d.x+=this.Xa;this.d.y+=this.Ya;this.d.C();if(this.Hb&&this.b.Jc(this.d,this.Hb)&&(!this.b.Xn(this.Hb.type,qc)||this.Hb.L.solidEnabled))return this.d.x=c,this.d.y=a,this.d.C(),this.Hb;(b=this.b.kc(this.d))||0!==this.Kf||(g=this.b.ve(this.d,!0));this.d.x=c;this.d.y=a;this.d.C();if(b){if(this.b.Jc(this.d,b))return null;this.Mh=!1;return b}if(g&& +g.length){a=b=0;for(c=g.length;bthis.Fk&&(this.ra=this.Fk)),H&&(this.Qg=!0));this.uh=!!A;n==a&&(0>this.U?(this.U+=this.zg*b,0this.U&&(this.U=0)));n&&!a&&(this.U=0this.U?this.U+(this.ug+this.zg)*b:this.U+this.ug*b);this.U>this.$g?this.U=this.$g:this.U<-this.$g&&(this.U=-this.$g);n=!1;0!==this.U&&(k=this.d.x,f=this.d.y,g=this.U*b*this.kf,c=this.U*b*this.lf,this.d.x+=this.kf*(1this.U?1:-1),this.lf*(0>this.U?1:-1),g,!1)?!A||l||this.Mh||(k=this.d.x,f=this.d.y,this.d.x+=this.Xa,this.d.y+=this.Ya,this.b.kc(this.d)?this.b.qd(this.d,-this.Xa,-this.Ya,3,!1)||(this.d.x=k,this.d.y=f,this.d.C()):(this.d.x=k,this.d.y= +f,this.d.C())):(this.d.x=k,this.d.y=f,this.d.C()),l||(this.U=0)):!m&&!H&&Math.abs(this.ra)this.ra?1:-1),this.Ya*(0>this.ra?1:-1),g,l,c)?(this.Hb=c,this.Ye=c.x,this.Ze=c.y,(this.Mh=l)&&(n=!0),this.ra=0):(this.d.x=k,this.d.y=f,this.d.C(),this.uh=!0,l||(this.ra=0)))}3!==this.dd&&0this.d.opacity?this.d.opacity=0:1=this.behavior.Pi&&cc?(b.x=r+1-(g.right-b.x),b.C()):g.bottoml&& +(b.y=a+1-(g.bottom-b.y),b.C())}})();function pc(){return[tc,vc,uc,Ac,wc,Dc,yc,zc,xc,sc,Fc,Hc,qc,Gc,rc,Ec,Ic,wc.prototype.u.oo,Fc.prototype.qa.Sr,wc.prototype.u.Yr,Fc.prototype.qa.Hs,sc.prototype.qa.Es,sc.prototype.u.Qr,Y.prototype.lb.zv,Y.prototype.qa.As,sc.prototype.u.hs,Y.prototype.qa.Tr,uc.prototype.u.mo,tc.prototype.qa.Play,Y.prototype.qa.Bs,Y.prototype.qa.bs,Fc.prototype.qa.Ds,vc.prototype.qa.Mr,vc.prototype.u.Ur,Ac.prototype.u.Wr,Y.prototype.u.Zr,uc.prototype.qa.Cs]}; diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/data.js b/milesplatfomer demo 2.0/delet this miles wolf allen/data.js new file mode 100644 index 00000000..c8dc38a6 --- /dev/null +++ b/milesplatfomer demo 2.0/delet this miles wolf allen/data.js @@ -0,0 +1 @@ +{"project": [null,null,[[0,true,false,false,false,false,false,false,false,false],[1,false,false,false,false,false,false,false,false,false],[2,false,true,true,true,false,false,false,false,false],[3,true,false,false,false,false,false,false,false,false],[4,true,false,false,false,false,false,false,false,false],[5,false,true,true,false,false,true,true,true,false],[6,false,true,true,true,true,true,true,true,false],[7,false,true,true,true,true,true,true,true,true],[8,false,true,true,true,true,true,true,true,true],[9,false,true,true,true,true,true,true,true,false]],[["t0",7,false,[],0,0,["images/backgroundtile.png",100,1],null,[],false,false,974175178923433,[],null],["t1",9,false,[],2,0,null,[["Default",5,false,1,0,false,199337410584272,[["images/player-sheet0.png",140,0,0,32,32,1,0.5,1,[],[],1]]]],[["Platform",10,214701572890416],["ScrollTo",11,415103656925179]],false,false,331539777390260,[],null],["t2",7,false,[],1,0,["images/solidtile.png",100,1],null,[["Solid",12,599585694257168]],false,false,708973261151148,[],null],["t3",7,false,[],2,0,["images/solidtile.png",100,1],null,[["Solid",12,931257032372835],["Sine",13,764341034361465]],false,false,464149400725616,[],null],["t4",7,false,[],1,0,["images/jumpthrutile.png",100,1],null,[["Jumpthru",14,232017771557375]],false,false,193047308458890,[],null],["t5",4,false,[],0,0,null,null,[],false,false,260202108918534,[],null,[]],["t6",6,false,[],0,0,null,null,[],false,false,372699996461885,[],null],["t7",9,false,[],0,0,null,[["Default",5,false,1,0,false,606881471786350,[["images/nextlev-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],false,false,561646871186390,[],null],["t8",9,false,[],0,0,null,[["Default",5,false,1,0,false,780632398932944,[["images/lev-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],false,false,157761609397984,[],null],["t9",9,false,[],0,0,null,[["Default",5,false,1,0,false,702795703518917,[["images/sprite-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],false,false,769772692023826,[],null],["t10",8,false,[],1,0,["images/spritefont.png",1427,3],null,[["Flash",15,142916947579516]],false,false,353168054272763,[],null],["t11",9,false,[],0,0,null,[["Default",5,false,1,0,false,356487417087938,[["images/sprite2-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3],["images/sprite2-sheet1.png",168,0,0,250,250,1,0.5,0.5,[],[],3],["images/sprite2-sheet1.png",168,0,0,250,250,1,0.5,0.5,[],[],3],["images/sprite2-sheet1.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],false,false,269334172375579,[],null],["t12",8,false,[],1,0,["images/spritefont.png",1427,3],null,[["Flash",15,388527626645916]],false,false,596341619643736,[],null],["t13",8,false,[],1,0,["images/spritefont.png",1427,3],null,[["Flash",15,596490089038171]],false,false,810082827003488,[],null],["t14",2,false,[],1,0,null,null,[["Wrap",16,653180577057467]],false,false,724449311548528,[],null],["t15",8,false,[],0,1,["images/spritefont.png",1427,3],null,[],false,false,509881863086075,[["hardlight","HardLight"]],null],["t16",5,false,[],0,0,null,null,[],false,false,719993888362831,[],null],["t17",7,false,[],0,0,["images/backgroundtile2.png",100,1],null,[],false,false,589588475458344,[],null],["t18",9,false,[],0,0,null,[["Default",5,false,1,0,false,716120238881055,[["images/sprite3-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],false,false,822003764201616,[],null],["t19",2,false,[],0,0,null,null,[],false,false,559176432818402,[],null],["t20",5,false,[],0,0,null,null,[],false,false,153064975616896,[],null],["t21",9,false,[],0,0,null,[["Default",5,false,1,0,false,534417024202188,[["images/sprite4-sheet0.png",374,0,0,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,854824372041563,[],null],["t22",2,false,[],0,0,null,null,[],false,false,123955218704003,[],null],["t23",0,false,[],0,0,null,null,[],false,false,611170239216762,[],null,[0,0,0,1,1,600,600,10000,1]],["t24",1,false,[],0,0,null,null,[],true,false,625636585076500,[],null],["t25",3,false,[],0,0,null,null,[],false,false,173677751407616,[],null,[25]],["t26",9,false,[],0,0,null,[["Default",5,false,1,0,false,333671974951851,[["images/sprite5-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],false,false,175766118917468,[],null]],[],[["Layout 1",1708,960,false,"Event sheet 1",987044908640839,[["Layer 0",0,219511657923269,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[0,1,0,1280,1024,0,0,1,0,0,0,0,[]],0,52,[],[],[0,0]],[[246,348,0,72,24,0,0,1,0,0,0,0,[]],14,51,[],[[0]],[0,"start","",1,1,1,"",0]],[[134,236,0,625,34,0,0,1,0,0,0,0,[[]]],15,53,[],[],[16,16,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#\"'&()[]|`\\/@°+=*$£€<>","PLAATFOMER 200000m DEMO",1,0,0,0,0,1,0,0]],[[395,346,0,72,24,0,0,1,0,0,0,0,[]],19,67,[],[],[0,"lode","",1,1,1,"",0]]],[]]],[[null,24,65,[],[],[]]],[]],["IDK",1280,1024,false,"Event sheet 1",502478209867130,[["Background",0,223458695243897,true,[255,255,255],false,0.5,0.5,1,false,false,1,0,0,[[[-16,0,0,1280,1024,0,0,1,0,0,0,0,[]],0,0,[],[],[0,0]]],[]],["Game",1,874365787904593,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[128,684,0,32,32,0,0,1,0.5,1,0,0,[]],1,1,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[1]],[0,"Default",0,1]],[[64,752,0,320,128,0,0,1,0,0,0,0,[]],2,2,[],[[1]],[0,0]],[[864,800,0,96,32,0,0,1,0,0,0,0,[]],2,3,[],[[1]],[0,0]],[[1088,736,0,96,32,0,0,1,0,0,0,0,[]],2,4,[],[[1]],[0,0]],[[992,928,0,128,32,0,0,1,0,0,0,0,[]],2,5,[],[[1]],[0,0]],[[544,800,0,128,32,0,0,1,0,0,0,0,[]],3,6,[],[[1],[1,0,0,4,0,0,0,50,0]],[0,0]],[[1056,624,0,160,16,0,0,0.800000011920929,0,0,0,0,[]],4,7,[],[[1]],[0,0]],[[1056,528,0,160,16,0,0,0.800000011920929,0,0,0,0,[]],4,8,[],[[1]],[0,0]],[[624.1590576171875,432.0670776367188,0,372.0345458984375,32,0,0.1745329201221466,1,0,0,0,0,[]],2,9,[],[[1]],[0,0]],[[528,432,0,96,32,0,0,1,0,0,0,0,[]],2,10,[],[[1]],[0,0]],[[346,339,0,219,32,0,0.4535962343215942,1,0,0,0,0,[]],2,11,[],[[1]],[0,0]],[[160,224,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,12,[],[[1]],[0,0]],[[160,336,0,96,32,0,0,1,0,0,0,0,[]],2,13,[],[[1]],[0,0]],[[320,160,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,14,[],[[1]],[0,0]],[[512,128,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,15,[],[[1]],[0,0]],[[752,160,0,128,32,0,0,1,0,0,0,0,[]],3,16,[],[[1],[1,0,0,4,0,0,0,50,0]],[0,0]],[[1056,192,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,17,[],[[1]],[0,0]],[[928,288,0,96,16,0,0,1,0,0,0,0,[]],3,18,[],[[1],[1,1,0,4,0,0,0,50,0]],[0,0]],[[1104,144,0,48,48,0,0,1,0.5,0.5,0,0,[]],7,21,[],[],[0,"Default",0,1]]],[]],["UI",2,492068384196230,true,[255,255,255],true,0,0,1,false,false,1,0,0,[],[]]],[],[]],["Layout 2",1708,960,false,"Event sheet 1",392275521936766,[["platfomes",0,840250907224139,true,[255,255,255],false,1,1,1,false,false,1,0,0,[],[]],["bak",1,579657839874090,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[-2,1,0,1280,1024,0,0,1,0,0,0,0,[]],0,22,[],[],[0,0]]],[]],["Layer 0",2,582908115434475,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[108,575,0,32,32,0,0,1,0.5,1,0,0,[]],1,23,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[1]],[0,"Default",0,1]],[[62,581,0,227,110,0,0,1,0,0,0,0,[]],2,24,[],[[1]],[0,0]],[[383,580,0,128,32,0,0,1,0,0,0,0,[]],3,25,[],[[1],[1,0,0,4,0,0,0,50,0]],[0,0]],[[633,577,0,187,107,0,0,1,0,0,0,0,[]],2,26,[],[[1]],[0,0]],[[739,439,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,27,[],[[1]],[0,0]],[[644,332,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,28,[],[[1]],[0,0]],[[512,307,0,96,32,0,0,1,0,0,0,0,[]],2,29,[],[[1]],[0,0]],[[351,321,0,96,32,0,0,1,0,0,0,0,[]],2,30,[],[[1]],[0,0]],[[193,295,0,96,32,0,0,1,0,0,0,0,[]],2,31,[],[[1]],[0,0]],[[385,193,0,28,28,0,0,1,0,0,0,0,[]],2,32,[],[[1]],[0,0]],[[474,189,0,28,28,0,0,1,0,0,0,0,[]],2,33,[],[[1]],[0,0]],[[579,175,0,28,28,0,0,1,0,0,0,0,[]],2,34,[],[[1]],[0,0]],[[675,164,0,28,28,0,0,1,0,0,0,0,[]],2,35,[],[[1]],[0,0]],[[762,143,0,28,28,0,0,1,0,0,0,0,[]],2,36,[],[[1]],[0,0]],[[947,143,0,28,28,0,0,1,0,0,0,0,[]],2,37,[],[[1]],[0,0]],[[1044,142,0,227,110,0,0,1,0,0,0,0,[]],2,41,[],[[1]],[0,0]],[[1093,102,0,24,27,0,0,1,0.5,0.5,0,0,[]],8,42,[],[],[0,"Default",0,1]]],[]]],[],[]],["Layout 3",1708,960,false,"Event sheet 1",403959185604933,[["bakrowedn",0,955113377008222,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[0,-1,0,1280,1024,0,0,1,0,0,0,0,[]],0,38,[],[],[0,0]]],[]],["platfoming",1,212739767185800,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[40,629,0,227,110,0,0,1,0,0,0,0,[]],2,39,[],[[1]],[0,0]],[[123,596,0,32,32,0,0,1,0.5,1,0,0,[]],1,40,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[1]],[0,"Default",0,1]],[[355,644,0,128,32,0,0,1,0,0,0,0,[]],3,43,[],[[1],[1,0,0,4,0,0,0,50,0]],[0,0]],[[672,639,0,187,107,0,0,1,0,0,0,0,[]],2,44,[],[[1]],[0,0]],[[790,593,0,41,41,0,0,1,0.5,0.5,0,0,[]],9,45,[],[],[0,"Default",0,1]]],[]]],[],[]],["end",1708,960,false,"Event sheet 1",380346803635820,[["Layer 0",0,494808384597818,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[-1,-9,0,1280,1024,0,0,1,0,0,0,0,[]],0,46,[],[],[0,0]],[[133,152,0,1503,215,0,0,1,0,0,0,0,[]],2,47,[],[[1]],[0,0]],[[281,142,0,32,32,0,0,1,0.5,1,0,0,[]],1,48,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[1]],[0,"Default",0,1]],[[240,163,0,137,30,0,0.2730038464069367,1,0,0,0,0,[]],10,19,[],[[]],[16,16,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#\"'&()[]|`\\/@°+=*$£€<>","BY MILES",1,0,0,0,0,0,0,0]],[[230,223,0,199,30,0,0.2730038464069367,1,0,0,0,0,[]],12,50,[],[[]],[16,16,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#\"'&()[]|`\\/@°+=*$£€<>","COMING SOON",1,0,0,0,0,0,0,0]],[[217,250.9999694824219,0,343,30,0,0.2525443136692047,1,0,0,0,0,[]],13,49,[],[[]],[16,16,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#\"'&()[]|`\\/@°+=*$£€<>","coming to fun miles hav fun",1,0,0,0,0,0,0,0]],[[1542,120,0,72,24,0,0,1,0,0,0,0,[]],14,68,[],[[0]],[0,"start","",1,1,1,"",0]],[[1445,119,0,72,24,0,0,1,0,0,0,0,[]],22,69,[],[],[0,"OK","",1,1,1,"",0]]],[]]],[],[]],["net lev",1708,960,false,"Event sheet 1",726874795183342,[["Layer 0",0,829876288995039,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[1,28,0,1707,955,0,0,1,0,0,0,0,[]],17,55,[],[],[0,0]],[[35,366,0,159,95,0,0,1,0,0,0,0,[]],2,56,[],[[1]],[0,0]],[[105,324,0,32,32,0,0,1,0.5,1,0,0,[]],1,57,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[1]],[0,"Default",0,1]],[[281,359,0,128,32,0,0,1,0,0,0,0,[]],3,58,[],[[1],[1,0,0,4,0,0,0,50,0]],[0,0]],[[681,368,0,162,112,0,0,1,0,0,0,0,[]],2,59,[],[[1]],[0,0]],[[859,273,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,60,[],[[1]],[0,0]],[[254,83,0,128,98,0,0,1,0,0,0,0,[]],2,61,[],[[1]],[0,0]],[[632,79,0,128,32,0,0,1,0,0,0,0,[]],3,62,[],[[1],[1,0,0,4,0,0,0,50,0]],[0,0]],[[864,139,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,63,[],[[1]],[0,0]],[[284,58,0,22,23,0,0,1,0.5,0.5,0,0,[]],18,64,[],[],[0,"Default",0,1]]],[]]],[],[]],["4",1708,960,false,"Event sheet 1",636765174276852,[["Layer 0",0,570930586559406,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[0,-1,0,1280,1024,0,0,1,0,0,0,0,[]],0,80,[],[],[0,0]],[[66,731,0,190,158,0,0,1,0,0,0,0,[]],2,71,[],[[1]],[0,0]],[[139,695,0,32,32,0,0,1,0.5,1,0,0,[]],1,72,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[1]],[0,"Default",0,1]],[[369,745,0,96,16,0,0,1,0,0,0,0,[]],3,73,[],[[1],[1,1,0,4,0,0,0,50,0]],[0,0]],[[634,738,0,190,158,0,0,1,0,0,0,0,[]],2,74,[],[[1]],[0,0]],[[805,628,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,75,[],[[1]],[0,0]],[[668,556,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,76,[],[[1]],[0,0]],[[240,479,0,161,62,0,0,1,0,0,0,0,[]],2,77,[],[[1]],[0,0]],[[279,354,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,70,[],[[1]],[0,0]],[[869,182,0,59,58,0,-0.7140958309173584,1,0.5,0.5,0,0,[]],26,78,[],[],[0,"Default",0,1]],[[580,307,0,96,16,0,0,0.800000011920929,0,0,0,0,[]],4,79,[],[[1]],[0,0]]],[]]],[],[]]],[["Event sheet 1",[[0,null,false,null,756389252554735,[[5,17,null,1,false,false,false,891771441529049,false,[[9,40]]]],[[1,18,"Platform",481313591695542,false]]],[0,null,false,null,439710307203334,[[5,19,null,0,false,false,false,963207943607997,false,[[9,87]]]],[[1,20,"Platform",809679597795327,false,[[3,2]]]]],[0,null,false,null,573719578998107,[[5,19,null,0,false,false,false,578754065662811,false,[[9,65]]]],[[1,20,"Platform",964779574292193,false,[[3,0]]]]],[0,null,false,null,604404035521838,[[5,19,null,0,false,false,false,480048333287650,false,[[9,83]]]],[[1,18,"Platform",830975056644674,false]]],[0,null,false,null,931810985897467,[[5,19,null,0,false,false,false,356247757900100,false,[[9,68]]]],[[1,20,"Platform",789429316151081,false,[[3,1]]]]],[0,null,true,null,509985682191580,[[5,17,null,1,false,false,false,844771264058811,false,[[9,37]]],[5,17,null,1,false,false,false,535433068012907,false,[[9,65]]]],[[1,21,null,278435349175723,false,[[3,0]]]]],[0,null,true,null,508216756113042,[[5,17,null,1,false,false,false,554665231923090,false,[[9,39]]],[5,17,null,1,false,false,false,546439165906786,false,[[9,68]]]],[[1,21,null,396826489550859,false,[[3,1]]]]],[0,null,false,null,910708279649689,[[1,22,null,0,false,false,false,432270868530886,false,[[8,4],[0,[19,23]]]]],[[-1,24,null,306875488287801,false]]],[0,null,false,null,987205063741976,[[7,25,null,0,false,false,true,230529196388776,false,[[4,1]]]],[[-1,26,null,397797339317826,false,[[6,"Layout 2"]]]]],[0,null,false,null,868982267325339,[[8,25,null,0,false,false,true,658298775427561,false,[[4,1]]]],[[-1,26,null,506339301091028,false,[[6,"Layout 3"]]]]],[0,null,false,null,470037204686717,[[9,25,null,0,false,false,true,406208554809397,false,[[4,1]]]],[[-1,26,null,208409216971660,false,[[6,"net lev"]]]]],[0,null,false,null,511072283374118,[[14,27,null,1,false,false,false,972242417318389,false]],[[-1,26,null,576610815116208,false,[[6,"IDK"]]],[23,28,null,239130732440562,false,[[2,["untitled-video-made-with-clipchamp",true]],[3,1],[0,[0,0]],[1,[2,""]]]]]],[0,null,false,null,829156870874669,[[18,25,null,0,false,false,true,197979389782840,false,[[4,1]]]],[[-1,26,null,992837380465415,false,[[6,"4"]]]]],[0,null,false,null,704577285860106,[[5,19,null,0,false,false,false,906038867243513,false,[[9,27]]]],[[-1,29,null,836806008777419,false,[[1,[2,"mysave"]]]]]],[0,null,false,null,645471338255048,[[19,27,null,1,false,false,false,118206238156794,false]],[[-1,30,null,958302712872130,false,[[1,[2,"mysave"]]]]]],[0,null,false,null,738834764438175,[[22,27,null,1,false,false,false,706610646189872,false]],[[1,31,"Platform",138749800262879,false,[[3,1]]],[24,32,null,498502011454100,false,[[1,[2,"idk"]],[7,[0,1]]]]]],[0,null,false,null,134282191093289,[[24,33,null,0,false,false,false,453541565606888,false,[[1,[2,"idk"]]]]],[[1,31,"Platform",205250405306748,false,[[3,1]]]]],[0,null,false,null,120240038510980,[[14,27,null,1,false,false,false,941697677123821,false]],[]],[0,null,false,null,280516638180645,[[25,34,null,0,false,false,false,921433159304825,false,[[0,[0,0]],[3,2]]]],[[24,32,null,203074674780621,false,[[1,[2,"idk"]],[7,[0,1]]]]]],[0,null,false,null,843567531208078,[[26,25,null,0,false,false,true,245037493035494,false,[[4,1]]]],[[-1,26,null,284624040756959,false,[[6,"end"]]]]],[0,null,false,null,502127722654291,[[-1,35,null,0,false,false,false,549658972746310,false,[[3,0]]]],[[14,36,null,176431698442384,false,[[1,[2,"color"]],[1,[2,"red"]]]],[19,36,null,926288083007477,false,[[1,[2,"color"]],[1,[2,"red"]]]],[22,36,null,563880737493936,false,[[1,[2,"color"]],[1,[2,"red"]]]]]]]]],[],"media/",false,640,480,4,true,true,true,"1.0",true,false,4,0,81,false,true,1,true,"New project",0,[]]} \ No newline at end of file diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/icon-114.png b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-114.png new file mode 100644 index 00000000..bf56364d Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-114.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/icon-128.png b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-128.png new file mode 100644 index 00000000..523ffd0f Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-128.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/icon-16.png b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-16.png new file mode 100644 index 00000000..e1b785cc Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-16.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/icon-256.png b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-256.png new file mode 100644 index 00000000..0916f573 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-256.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/icon-32.png b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-32.png new file mode 100644 index 00000000..02edf8c2 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/icon-32.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/backgroundtile.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/backgroundtile.png new file mode 100644 index 00000000..f0c72517 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/backgroundtile.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/backgroundtile2.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/backgroundtile2.png new file mode 100644 index 00000000..f69e6229 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/backgroundtile2.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/jumpthrutile.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/jumpthrutile.png new file mode 100644 index 00000000..8abb575c Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/jumpthrutile.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/lev-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/lev-sheet0.png new file mode 100644 index 00000000..5982baac Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/lev-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/nextlev-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/nextlev-sheet0.png new file mode 100644 index 00000000..b66491e1 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/nextlev-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/player-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/player-sheet0.png new file mode 100644 index 00000000..9384702f Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/player-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/solidtile.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/solidtile.png new file mode 100644 index 00000000..774f3264 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/solidtile.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite-sheet0.png new file mode 100644 index 00000000..d692929d Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite2-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite2-sheet0.png new file mode 100644 index 00000000..84a62753 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite2-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite2-sheet1.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite2-sheet1.png new file mode 100644 index 00000000..7de39d49 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite2-sheet1.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite3-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite3-sheet0.png new file mode 100644 index 00000000..acc92bc0 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite3-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite4-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite4-sheet0.png new file mode 100644 index 00000000..cbf551e8 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite4-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite5-sheet0.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite5-sheet0.png new file mode 100644 index 00000000..1866e3c5 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/sprite5-sheet0.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/images/spritefont.png b/milesplatfomer demo 2.0/delet this miles wolf allen/images/spritefont.png new file mode 100644 index 00000000..30d69c17 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/images/spritefont.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/index.html b/milesplatfomer demo 2.0/delet this miles wolf allen/index.html new file mode 100644 index 00000000..71f85740 --- /dev/null +++ b/milesplatfomer demo 2.0/delet this miles wolf allen/index.html @@ -0,0 +1,136 @@ + + + + + + New project + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + +

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

+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/jquery-3.4.1.min.js b/milesplatfomer demo 2.0/delet this miles wolf allen/jquery-3.4.1.min.js new file mode 100644 index 00000000..a1c07fd8 --- /dev/null +++ b/milesplatfomer demo 2.0/delet this miles wolf allen/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),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("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0 this._OnBroadcastChannelMessage(e)); + } + + _OnBroadcastChannelMessage(e) + { + // Have a message callback set: just forward the call. + if (this._onMessageCallback) + { + this._onMessageCallback(e); + return; + } + + // Otherwise the app hasn't loaded far enough to set a message callback. + // Buffer the incoming messages to replay when the app sets a callback. + this._queuedMessages.push(e); + } + + SetMessageCallback(f) + { + this._onMessageCallback = f; + + // Replay any queued messages through the handler, then clear the queue. + for (let e of this._queuedMessages) + this._onMessageCallback(e); + + this._queuedMessages.length = 0; + } + }; + + // Create the offline client ASAP so we receive and start queueing any messages the SW broadcasts. + window.OfflineClientInfo = new OfflineClient(); + +}()); + diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/penumbra.png b/milesplatfomer demo 2.0/delet this miles wolf allen/penumbra.png new file mode 100644 index 00000000..49129328 Binary files /dev/null and b/milesplatfomer demo 2.0/delet this miles wolf allen/penumbra.png differ diff --git a/milesplatfomer demo 2.0/delet this miles wolf allen/sw.js b/milesplatfomer demo 2.0/delet this miles wolf allen/sw.js new file mode 100644 index 00000000..dfe699a5 --- /dev/null +++ b/milesplatfomer demo 2.0/delet this miles wolf allen/sw.js @@ -0,0 +1,403 @@ +"use strict"; + +const OFFLINE_DATA_FILE = "offline.js"; +const CACHE_NAME_PREFIX = "c2offline"; +const BROADCASTCHANNEL_NAME = "offline"; +const CONSOLE_PREFIX = "[SW] "; +const LAZYLOAD_KEYNAME = ""; + +// Create a BroadcastChannel if supported. +const broadcastChannel = (typeof BroadcastChannel === "undefined" ? null : new BroadcastChannel(BROADCASTCHANNEL_NAME)); + +////////////////////////////////////// +// Utility methods +function PostBroadcastMessage(o) +{ + if (!broadcastChannel) + return; // not supported + + // Impose artificial (and arbitrary!) delay of 3 seconds to make sure client is listening by the time the message is sent. + // Note we could remove the delay on some messages, but then we create a race condition where sometimes messages can arrive + // in the wrong order (e.g. "update ready" arrives before "started downloading update"). So to keep the consistent ordering, + // delay all messages by the same amount. + setTimeout(() => broadcastChannel.postMessage(o), 3000); +}; + +function Broadcast(type) +{ + PostBroadcastMessage({ + "type": type + }); +}; + +function BroadcastDownloadingUpdate(version) +{ + PostBroadcastMessage({ + "type": "downloading-update", + "version": version + }); +} + +function BroadcastUpdateReady(version) +{ + PostBroadcastMessage({ + "type": "update-ready", + "version": version + }); +} + +function IsUrlInLazyLoadList(url, lazyLoadList) +{ + if (!lazyLoadList) + return false; // presumably lazy load list failed to load + + try { + for (const lazyLoadRegex of lazyLoadList) + { + if (new RegExp(lazyLoadRegex).test(url)) + return true; + } + } + catch (err) + { + console.error(CONSOLE_PREFIX + "Error matching in lazy-load list: ", err); + } + + return false; +}; + +function WriteLazyLoadListToStorage(lazyLoadList) +{ + if (typeof localforage === "undefined") + return Promise.resolve(); // bypass if localforage not imported + else + return localforage.setItem(LAZYLOAD_KEYNAME, lazyLoadList) +}; + +function ReadLazyLoadListFromStorage() +{ + if (typeof localforage === "undefined") + return Promise.resolve([]); // bypass if localforage not imported + else + return localforage.getItem(LAZYLOAD_KEYNAME); +}; + +function GetCacheBaseName() +{ + // Include the scope to avoid name collisions with any other SWs on the same origin. + // e.g. "c2offline-https://example.com/foo/" (won't collide with anything under bar/) + return CACHE_NAME_PREFIX + "-" + self.registration.scope; +}; + +function GetCacheVersionName(version) +{ + // Append the version number to the cache name. + // e.g. "c2offline-https://example.com/foo/-v2" + return GetCacheBaseName() + "-v" + version; +}; + +// Return caches.keys() filtered down to just caches we're interested in (with the right base name). +// This filters out caches from unrelated scopes. +async function GetAvailableCacheNames() +{ + const cacheNames = await caches.keys(); + const cacheBaseName = GetCacheBaseName(); + return cacheNames.filter(n => n.startsWith(cacheBaseName)); +}; + +// Identify if an update is pending, which is the case when we have 2 or more available caches. +// One must be an update that is waiting, since the next navigate that does an upgrade will +// delete all the old caches leaving just one currently-in-use cache. +async function IsUpdatePending() +{ + const availableCacheNames = await GetAvailableCacheNames(); + return (availableCacheNames.length >= 2); +}; + +// Automatically deduce the main page URL (e.g. index.html or main.aspx) from the available browser windows. +// This prevents having to hard-code an index page in the file list, implicitly caching it like AppCache did. +async function GetMainPageUrl() +{ + const allClients = await clients.matchAll({ + includeUncontrolled: true, + type: "window" + }); + + for (const c of allClients) + { + // Parse off the scope from the full client URL, e.g. https://example.com/index.html -> index.html + let url = c.url; + if (url.startsWith(self.registration.scope)) + url = url.substring(self.registration.scope.length); + + if (url && url !== "/") // ./ is also implicitly cached so don't bother returning that + { + // If the URL is solely a search string, prefix it with / to ensure it caches correctly. + // e.g. https://example.com/?foo=bar needs to cache as /?foo=bar, not just ?foo=bar. + if (url.startsWith("?")) + url = "/" + url; + + return url; + } + } + + return ""; // no main page URL could be identified +}; + +// Hack to fetch optionally bypassing HTTP cache until fetch cache options are supported in Chrome (crbug.com/453190) +function fetchWithBypass(request, bypassCache) +{ + if (typeof request === "string") + request = new Request(request); + + if (bypassCache) + { + // bypass enabled: add a random search parameter to avoid getting a stale HTTP cache result + const url = new URL(request.url); + url.search += Math.floor(Math.random() * 1000000); + + return fetch(url, { + headers: request.headers, + mode: request.mode, + credentials: request.credentials, + redirect: request.redirect, + cache: "no-store" + }); + } + else + { + // bypass disabled: perform normal fetch which is allowed to return from HTTP cache + return fetch(request); + } +}; + +// Effectively a cache.addAll() that only creates the cache on all requests being successful (as a weak attempt at making it atomic) +// and can optionally cache-bypass with fetchWithBypass in every request +async function CreateCacheFromFileList(cacheName, fileList, bypassCache) +{ + // Kick off all requests and wait for them all to complete + const responses = await Promise.all(fileList.map(url => fetchWithBypass(url, bypassCache))); + + // Check if any request failed. If so don't move on to opening the cache. + // This makes sure we only open a cache if all requests succeeded. + let allOk = true; + + for (const response of responses) + { + if (!response.ok) + { + allOk = false; + console.error(CONSOLE_PREFIX + "Error fetching '" + response.url + "' (" + response.status + " " + response.statusText + ")"); + } + } + + if (!allOk) + throw new Error("not all resources were fetched successfully"); + + // Can now assume all responses are OK. Open a cache and write all responses there. + // TODO: ideally we can do this transactionally to ensure a complete cache is written as one atomic operation. + // This needs either new transactional features in the spec, or at the very least a way to rename a cache + // (so we can write to a temporary name that won't be returned by GetAvailableCacheNames() and then rename it when ready). + const cache = await caches.open(cacheName); + + try { + return await Promise.all(responses.map( + (response, i) => cache.put(fileList[i], response) + )); + } + catch (err) + { + // Not sure why cache.put() would fail (maybe if storage quota exceeded?) but in case it does, + // clean up the cache to try to avoid leaving behind an incomplete cache. + console.error(CONSOLE_PREFIX + "Error writing cache entries: ", err); + caches.delete(cacheName); + throw err; + } +}; + +async function UpdateCheck(isFirst) +{ + try { + // Always bypass cache when requesting offline.js to make sure we find out about new versions. + const response = await fetchWithBypass(OFFLINE_DATA_FILE, true); + + if (!response.ok) + throw new Error(OFFLINE_DATA_FILE + " responded with " + response.status + " " + response.statusText); + + const data = await response.json(); + + const version = data.version; + const fileList = data.fileList; + const lazyLoadList = data.lazyLoad; + const currentCacheName = GetCacheVersionName(version); + + const cacheExists = await caches.has(currentCacheName); + + // Don't recache if there is already a cache that exists for this version. Assume it is complete. + if (cacheExists) + { + // Log whether we are up-to-date or pending an update. + const isUpdatePending = await IsUpdatePending(); + if (isUpdatePending) + { + console.log(CONSOLE_PREFIX + "Update pending"); + Broadcast("update-pending"); + } + else + { + console.log(CONSOLE_PREFIX + "Up to date"); + Broadcast("up-to-date"); + } + return; + } + + // Implicitly add the main page URL to the file list, e.g. "index.html", so we don't have to assume a specific name. + const mainPageUrl = await GetMainPageUrl(); + + // Prepend the main page URL to the file list if we found one and it is not already in the list. + // Also make sure we request the base / which should serve the main page. + fileList.unshift("./"); + + if (mainPageUrl && fileList.indexOf(mainPageUrl) === -1) + fileList.unshift(mainPageUrl); + + console.log(CONSOLE_PREFIX + "Caching " + fileList.length + " files for offline use"); + + if (isFirst) + Broadcast("downloading"); + else + BroadcastDownloadingUpdate(version); + + // Note we don't bypass the cache on the first update check. This is because SW installation and the following + // update check caching will race with the normal page load requests. For any normal loading fetches that have already + // completed or are in-flight, it is pointless and wasteful to cache-bust the request for offline caching, since that + // forces a second network request to be issued when a response from the browser HTTP cache would be fine. + if (lazyLoadList) + await WriteLazyLoadListToStorage(lazyLoadList); // dump lazy load list to local storage# + + await CreateCacheFromFileList(currentCacheName, fileList, !isFirst); + const isUpdatePending = await IsUpdatePending(); + + if (isUpdatePending) + { + console.log(CONSOLE_PREFIX + "All resources saved, update ready"); + BroadcastUpdateReady(version); + } + else + { + console.log(CONSOLE_PREFIX + "All resources saved, offline support ready"); + Broadcast("offline-ready"); + } + } + catch (err) + { + // Update check fetches fail when we're offline, but in case there's any other kind of problem with it, log a warning. + console.warn(CONSOLE_PREFIX + "Update check failed: ", err); + } +}; + +self.addEventListener("install", event => +{ + // On install kick off an update check to cache files on first use. + // If it fails we can still complete the install event and leave the SW running, we'll just + // retry on the next navigate. + event.waitUntil( + UpdateCheck(true) // first update + .catch(() => null) + ); +}); + +async function GetCacheNameToUse(availableCacheNames, doUpdateCheck) +{ + // Prefer the oldest cache available. This avoids mixed-version responses by ensuring that if a new cache + // is created and filled due to an update check while the page is running, we keep returning resources + // from the original (oldest) cache only. + if (availableCacheNames.length === 1 || !doUpdateCheck) + return availableCacheNames[0]; + + // We are making a navigate request with more than one cache available. Check if we can expire any old ones. + const allClients = await clients.matchAll(); + + // If there are other clients open, don't expire anything yet. We don't want to delete any caches they + // might be using, which could cause mixed-version responses. + if (allClients.length > 1) + return availableCacheNames[0]; + + // Identify newest cache to use. Delete all the others. + const latestCacheName = availableCacheNames[availableCacheNames.length - 1]; + console.log(CONSOLE_PREFIX + "Updating to new version"); + + await Promise.all( + availableCacheNames.slice(0, -1) + .map(c => caches.delete(c)) + ); + + return latestCacheName; +}; + +async function HandleFetch(event, doUpdateCheck) +{ + const availableCacheNames = await GetAvailableCacheNames(); + + // No caches available: go to network + if (!availableCacheNames.length) + return fetch(event.request); + + const useCacheName = await GetCacheNameToUse(availableCacheNames, doUpdateCheck); + const cache = await caches.open(useCacheName); + const cachedResponse = await cache.match(event.request); + + if (cachedResponse) + return cachedResponse; // use cached response + + // We need to check if this request is to be lazy-cached. Send the request and load the lazy-load list + // from storage simultaneously. + const result = await Promise.all([fetch(event.request), ReadLazyLoadListFromStorage()]); + const fetchResponse = result[0]; + const lazyLoadList = result[1]; + + if (IsUrlInLazyLoadList(event.request.url, lazyLoadList)) + { + // Handle failure writing to the cache. This can happen if the storage quota is exceeded, which is particularly + // likely in Safari 11.1, which appears to have very tight storage limits. Make sure even in the event of an error + // we continue to return the response from the fetch. + try { + // Note clone response since we also respond with it + await cache.put(event.request, fetchResponse.clone()); + } + catch (err) + { + console.warn(CONSOLE_PREFIX + "Error caching '" + event.request.url + "': ", err); + } + } + + return fetchResponse; +}; + +self.addEventListener("fetch", event => +{ + /** NOTE (iain) + * This check is to prevent a bug with XMLHttpRequest where if its + * proxied with "FetchEvent.prototype.respondWith" no upload progress + * events are triggered. By returning we allow the default action to + * occur instead. Currently all cross-origin requests fall back to default. + */ + if (new URL(event.request.url).origin !== location.origin) + return; + + // Check for an update on navigate requests + const doUpdateCheck = (event.request.mode === "navigate"); + + const responsePromise = HandleFetch(event, doUpdateCheck); + + if (doUpdateCheck) + { + // allow the main request to complete, then check for updates + event.waitUntil( + responsePromise + .then(() => UpdateCheck(false)) // not first check + ); + } + + event.respondWith(responsePromise); +}); \ No newline at end of file diff --git a/mincrat.html b/mincrat.html index 7535f88d..4a31e719 100644 --- a/mincrat.html +++ b/mincrat.html @@ -62,8 +62,7 @@ Cookie-Clicker mod monkey mart Challenge Room -PLATFOMER DEMO old do no play -PLATFOMER DEMO NEW +platfomer maed by miles wolf allen or the oner this is in data and is not a good produkt
diff --git a/platfomermiles.html b/platfomermiles.html new file mode 100644 index 00000000..5ed0c878 --- /dev/null +++ b/platfomermiles.html @@ -0,0 +1,13 @@ + + + + + + home + + old demo 1 + old demo 2 + new vrshen demo + + \ No newline at end of file