mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
1 line
No EOL
112 KiB
JavaScript
1 line
No EOL
112 KiB
JavaScript
var Camera3DPlugin=function(n){var e={};function s(t){if(e[t])return e[t].exports;var i=e[t]={i:t,l:!1,exports:{}};return n[t].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=n,s.c=e,s.d=function(t,i,n){s.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(i,t){if(1&t&&(i=s(i)),8&t)return i;if(4&t&&"object"==typeof i&&i&&i.__esModule)return i;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),2&t&&"string"!=typeof i)for(var e in i)s.d(n,e,function(t){return i[t]}.bind(null,e));return n},s.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(i,"a",i),i},s.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},s.p="",s(s.s=43)}([function(t,i){function r(t,i,n,e){for(var s in i)if(i.hasOwnProperty(s)){var r=(u=i,c=s,l=p=void 0,l=(f=n)?u[c]:Object.getOwnPropertyDescriptor(u,c),!f&&l.value&&"object"==typeof l.value&&(l=l.value),!(!l||!((p=l).get&&"function"==typeof p.get||p.set&&"function"==typeof p.set))&&(void 0===l.enumerable&&(l.enumerable=!0),void 0===l.configurable&&(l.configurable=!0),l));if(!1!==r){if(o=(e||t).prototype,h=s,a=void 0,(a=Object.getOwnPropertyDescriptor(o,h))&&(a.value&&"object"==typeof a.value&&(a=a.value),!1===a.configurable)){if(d.ignoreFinals)continue;throw new Error("cannot override final property '"+s+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,s,r)}else t.prototype[s]=i[s]}var o,h,a,u,c,f,p,l}function o(t,i){if(i){Array.isArray(i)||(i=[i]);for(var n=0;n<i.length;n++)r(t,i[n].prototype||i[n])}}function d(t){var i,n,e;if((t=t||{}).initialize){if("function"!=typeof t.initialize)throw new Error("initialize must be a function");e=t.initialize,delete t.initialize}else{e=t.Extends?(n=t.Extends,function(){n.apply(this,arguments)}):function(){}}t.Extends?(e.prototype=Object.create(t.Extends.prototype),e.prototype.constructor=e,i=t.Extends,delete t.Extends):e.prototype.constructor=e;var s=null;return t.Mixins&&(s=t.Mixins,delete t.Mixins),o(e,s),r(e,t,!0,i),e}d.extend=r,d.mixin=o,d.ignoreFinals=!1,t.exports=d},function(t,i,n){var e=n(0),s=n(17),r=new e({initialize:function(t,i){this.x=0,this.y=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===i&&(i=t),this.x=t||0,this.y=i||0)},clone:function(){return new r(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,i){return void 0===i&&(i=t),this.x=t,this.y=i,this},setTo:function(t,i){return this.set(t,i)},setToPolar:function(t,i){return null==i&&(i=1),this.x=Math.cos(t)*i,this.y=Math.sin(t)*i,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,i){return s(this.x,t.x,i)&&s(this.y,t.y,i)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var i=t.x-this.x,n=t.y-this.y;return Math.sqrt(i*i+n*n)},distanceSq:function(t){var i=t.x-this.x,n=t.y-this.y;return i*i+n*n},length:function(){var t=this.x,i=this.y;return Math.sqrt(t*t+i*i)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,i=this.y;return t*t+i*i},normalize:function(){var t=this.x,i=this.y,n=t*t+i*i;return 0<n&&(n=1/Math.sqrt(n),this.x=t*n,this.y=i*n),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},normalizeLeftHand:function(){var t=this.x;return this.x=this.y,this.y=-1*t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,i){void 0===i&&(i=0);var n=this.x,e=this.y;return this.x=n+i*(t.x-n),this.y=e+i*(t.y-e),this},transformMat3:function(t){var i=this.x,n=this.y,e=t.val;return this.x=e[0]*i+e[3]*n+e[6],this.y=e[1]*i+e[4]*n+e[7],this},transformMat4:function(t){var i=this.x,n=this.y,e=t.val;return this.x=e[0]*i+e[4]*n+e[12],this.y=e[1]*i+e[5]*n+e[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(t){var i=this.length();return i&&t<i&&this.scale(t/i),this},reflect:function(t){return t=t.clone().normalize(),this.subtract(t.scale(2*this.dot(t)))},mirror:function(t){return this.reflect(t).negate()},rotate:function(t){var i=Math.cos(t),n=Math.sin(t);return this.set(i*this.x-n*this.y,n*this.x+i*this.y)}});r.ZERO=new r,r.RIGHT=new r(1,0),r.LEFT=new r(-1,0),r.UP=new r(0,-1),r.DOWN=new r(0,1),r.ONE=new r(1,1),t.exports=r},function(t,i){var n={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=n},function(t,i,n){var e=new(n(0))({initialize:function(t,i,n){this.x=0,this.y=0,this.z=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=i||0,this.z=n||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},clone:function(){return new e(this.x,this.y,this.z)},crossVectors:function(t,i){var n=t.x,e=t.y,s=t.z,r=i.x,o=i.y,h=i.z;return this.x=e*h-s*o,this.y=s*r-n*h,this.z=n*o-e*r,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=i||0,this.z=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var i=t.x-this.x,n=t.y-this.y,e=t.z-this.z||0;return Math.sqrt(i*i+n*n+e*e)},distanceSq:function(t){var i=t.x-this.x,n=t.y-this.y,e=t.z-this.z||0;return i*i+n*n+e*e},length:function(){var t=this.x,i=this.y,n=this.z;return Math.sqrt(t*t+i*i+n*n)},lengthSq:function(){var t=this.x,i=this.y,n=this.z;return t*t+i*i+n*n},normalize:function(){var t=this.x,i=this.y,n=this.z,e=t*t+i*i+n*n;return 0<e&&(e=1/Math.sqrt(e),this.x=t*e,this.y=i*e,this.z=n*e),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var i=this.x,n=this.y,e=this.z,s=t.x,r=t.y,o=t.z;return this.x=n*o-e*r,this.y=e*s-i*o,this.z=i*r-n*s,this},lerp:function(t,i){void 0===i&&(i=0);var n=this.x,e=this.y,s=this.z;return this.x=n+i*(t.x-n),this.y=e+i*(t.y-e),this.z=s+i*(t.z-s),this},transformMat3:function(t){var i=this.x,n=this.y,e=this.z,s=t.val;return this.x=i*s[0]+n*s[3]+e*s[6],this.y=i*s[1]+n*s[4]+e*s[7],this.z=i*s[2]+n*s[5]+e*s[8],this},transformMat4:function(t){var i=this.x,n=this.y,e=this.z,s=t.val;return this.x=s[0]*i+s[4]*n+s[8]*e+s[12],this.y=s[1]*i+s[5]*n+s[9]*e+s[13],this.z=s[2]*i+s[6]*n+s[10]*e+s[14],this},transformCoordinates:function(t){var i=this.x,n=this.y,e=this.z,s=t.val,r=i*s[0]+n*s[4]+e*s[8]+s[12],o=i*s[1]+n*s[5]+e*s[9]+s[13],h=i*s[2]+n*s[6]+e*s[10]+s[14],a=i*s[3]+n*s[7]+e*s[11]+s[15];return this.x=r/a,this.y=o/a,this.z=h/a,this},transformQuat:function(t){var i=this.x,n=this.y,e=this.z,s=t.x,r=t.y,o=t.z,h=t.w,a=h*i+r*e-o*n,u=h*n+o*i-s*e,c=h*e+s*n-r*i,f=-s*i-r*n-o*e;return this.x=a*h+f*-s+u*-o-c*-r,this.y=u*h+f*-r+c*-s-a*-o,this.z=c*h+f*-o+a*-r-u*-s,this},project:function(t){var i=this.x,n=this.y,e=this.z,s=t.val,r=s[0],o=s[1],h=s[2],a=s[3],u=s[4],c=s[5],f=s[6],p=s[7],l=s[8],d=s[9],y=s[10],x=s[11],v=s[12],m=s[13],g=s[14],w=1/(i*a+n*p+e*x+s[15]);return this.x=(i*r+n*u+e*l+v)*w,this.y=(i*o+n*c+e*d+m)*w,this.z=(i*h+n*f+e*y+g)*w,this},unproject:function(t,i){var n=t.x,e=t.y,s=t.z,r=t.w,o=this.x-n,h=r-this.y-1-e,a=this.z;return this.x=2*o/s-1,this.y=2*h/r-1,this.z=2*a-1,this.project(i)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});e.ZERO=new e,e.RIGHT=new e(1,0,0),e.LEFT=new e(-1,0,0),e.UP=new e(0,-1,0),e.DOWN=new e(0,1,0),e.FORWARD=new e(0,0,1),e.BACK=new e(0,0,-1),e.ONE=new e(1,1,1),t.exports=e},function(t,i){t.exports=function(t,i,n){return Math.max(i,Math.min(n,t))}},function(t,i,n){var e=n(0),s=n(12),r=new e({initialize:function(t,i){void 0===t&&(t=0),void 0===i&&(i=t),this.type=s.POINT,this.x=t,this.y=i},setTo:function(t,i){return void 0===t&&(t=0),void 0===i&&(i=t),this.x=t,this.y=i,this}});t.exports=r},function(t,i,n){var s=n(45),r=n(11);t.exports=function(t,i,n){var e=r(t,i,null);if(null===e)return n;if(Array.isArray(e))return s.RND.pick(e);if("object"==typeof e){if(e.hasOwnProperty("randInt"))return s.RND.integerInRange(e.randInt[0],e.randInt[1]);if(e.hasOwnProperty("randFloat"))return s.RND.realInRange(e.randFloat[0],e.randFloat[1])}else if("function"==typeof e)return e(i);return e}},function(t,i){t.exports=function(t,i){return Math.random()*(i-t)+t}},function(t,i){t.exports=function(t,i,n){var e=n-i;return i+((t-i)%e+e)%e}},function(t,i,n){var e=new(n(0))({initialize:function(t,i,n,e){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=i||0,this.z=n||0,this.w=e||0)},clone:function(){return new e(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,i,n,e){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=i||0,this.z=n||0,this.w=e||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,i=this.y,n=this.z,e=this.w;return Math.sqrt(t*t+i*i+n*n+e*e)},lengthSq:function(){var t=this.x,i=this.y,n=this.z,e=this.w;return t*t+i*i+n*n+e*e},normalize:function(){var t=this.x,i=this.y,n=this.z,e=this.w,s=t*t+i*i+n*n+e*e;return 0<s&&(s=1/Math.sqrt(s),this.x=t*s,this.y=i*s,this.z=n*s,this.w=e*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,i){void 0===i&&(i=0);var n=this.x,e=this.y,s=this.z,r=this.w;return this.x=n+i*(t.x-n),this.y=e+i*(t.y-e),this.z=s+i*(t.z-s),this.w=r+i*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var i=t.x-this.x,n=t.y-this.y,e=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(i*i+n*n+e*e+s*s)},distanceSq:function(t){var i=t.x-this.x,n=t.y-this.y,e=t.z-this.z||0,s=t.w-this.w||0;return i*i+n*n+e*e+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var i=this.x,n=this.y,e=this.z,s=this.w,r=t.val;return this.x=r[0]*i+r[4]*n+r[8]*e+r[12]*s,this.y=r[1]*i+r[5]*n+r[9]*e+r[13]*s,this.z=r[2]*i+r[6]*n+r[10]*e+r[14]*s,this.w=r[3]*i+r[7]*n+r[11]*e+r[15]*s,this},transformQuat:function(t){var i=this.x,n=this.y,e=this.z,s=t.x,r=t.y,o=t.z,h=t.w,a=h*i+r*e-o*n,u=h*n+o*i-s*e,c=h*e+s*n-r*i,f=-s*i-r*n-o*e;return this.x=a*h+f*-s+u*-o-c*-r,this.y=u*h+f*-r+c*-s-a*-o,this.z=c*h+f*-o+a*-r-u*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});e.prototype.sub=e.prototype.subtract,e.prototype.mul=e.prototype.multiply,e.prototype.div=e.prototype.divide,e.prototype.dist=e.prototype.distance,e.prototype.distSq=e.prototype.distanceSq,e.prototype.len=e.prototype.length,e.prototype.lenSq=e.prototype.lengthSq,t.exports=e},function(t,i,n){var e=n(0),s=new e({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},copy:function(t){var i=this.val,n=t.val;return i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],i[4]=n[4],i[5]=n[5],i[6]=n[6],i[7]=n[7],i[8]=n[8],i[9]=n[9],i[10]=n[10],i[11]=n[11],i[12]=n[12],i[13]=n[13],i[14]=n[14],i[15]=n[15],this},fromArray:function(t){var i=this.val;return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],i[9]=t[9],i[10]=t[10],i[11]=t[11],i[12]=t[12],i[13]=t[13],i[14]=t[14],i[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,i,n){this.identity();var e=this.val;return e[12]=t,e[13]=i,e[14]=n,this},scaling:function(t,i,n){this.zero();var e=this.val;return e[0]=t,e[5]=i,e[10]=n,e[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,i=t[1],n=t[2],e=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=i,t[6]=t[9],t[7]=t[13],t[8]=n,t[9]=s,t[11]=t[14],t[12]=e,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=t[6],a=t[7],u=t[8],c=t[9],f=t[10],p=t[11],l=t[12],d=t[13],y=t[14],x=t[15],v=i*o-n*r,m=i*h-e*r,g=i*a-s*r,w=n*h-e*o,M=n*a-s*o,_=e*a-s*h,T=u*d-c*l,A=u*y-f*l,E=u*x-p*l,O=c*y-f*d,z=c*x-p*d,R=f*x-p*y,P=v*R-m*z+g*O+w*E-M*A+_*T;return P?(P=1/P,t[0]=(o*R-h*z+a*O)*P,t[1]=(e*z-n*R-s*O)*P,t[2]=(d*_-y*M+x*w)*P,t[3]=(f*M-c*_-p*w)*P,t[4]=(h*E-r*R-a*A)*P,t[5]=(i*R-e*E+s*A)*P,t[6]=(y*g-l*_-x*m)*P,t[7]=(u*_-f*g+p*m)*P,t[8]=(r*z-o*E+a*T)*P,t[9]=(n*E-i*z-s*T)*P,t[10]=(l*M-d*g+x*v)*P,t[11]=(c*g-u*M-p*v)*P,t[12]=(o*A-r*O-h*T)*P,t[13]=(i*O-n*A+e*T)*P,t[14]=(d*m-l*w-y*v)*P,t[15]=(u*w-c*m+f*v)*P,this):null},adjoint:function(){var t=this.val,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=t[6],a=t[7],u=t[8],c=t[9],f=t[10],p=t[11],l=t[12],d=t[13],y=t[14],x=t[15];return t[0]=o*(f*x-p*y)-c*(h*x-a*y)+d*(h*p-a*f),t[1]=-(n*(f*x-p*y)-c*(e*x-s*y)+d*(e*p-s*f)),t[2]=n*(h*x-a*y)-o*(e*x-s*y)+d*(e*a-s*h),t[3]=-(n*(h*p-a*f)-o*(e*p-s*f)+c*(e*a-s*h)),t[4]=-(r*(f*x-p*y)-u*(h*x-a*y)+l*(h*p-a*f)),t[5]=i*(f*x-p*y)-u*(e*x-s*y)+l*(e*p-s*f),t[6]=-(i*(h*x-a*y)-r*(e*x-s*y)+l*(e*a-s*h)),t[7]=i*(h*p-a*f)-r*(e*p-s*f)+u*(e*a-s*h),t[8]=r*(c*x-p*d)-u*(o*x-a*d)+l*(o*p-a*c),t[9]=-(i*(c*x-p*d)-u*(n*x-s*d)+l*(n*p-s*c)),t[10]=i*(o*x-a*d)-r*(n*x-s*d)+l*(n*a-s*o),t[11]=-(i*(o*p-a*c)-r*(n*p-s*c)+u*(n*a-s*o)),t[12]=-(r*(c*y-f*d)-u*(o*y-h*d)+l*(o*f-h*c)),t[13]=i*(c*y-f*d)-u*(n*y-e*d)+l*(n*f-e*c),t[14]=-(i*(o*y-h*d)-r*(n*y-e*d)+l*(n*h-e*o)),t[15]=i*(o*f-h*c)-r*(n*f-e*c)+u*(n*h-e*o),this},determinant:function(){var t=this.val,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=t[6],a=t[7],u=t[8],c=t[9],f=t[10],p=t[11],l=t[12],d=t[13],y=t[14],x=t[15];return(i*o-n*r)*(f*x-p*y)-(i*h-e*r)*(c*x-p*d)+(i*a-s*r)*(c*y-f*d)+(n*h-e*o)*(u*x-p*l)-(n*a-s*o)*(u*y-f*l)+(e*a-s*h)*(u*d-c*l)},multiply:function(t){var i=this.val,n=i[0],e=i[1],s=i[2],r=i[3],o=i[4],h=i[5],a=i[6],u=i[7],c=i[8],f=i[9],p=i[10],l=i[11],d=i[12],y=i[13],x=i[14],v=i[15],m=t.val,g=m[0],w=m[1],M=m[2],_=m[3];return i[0]=g*n+w*o+M*c+_*d,i[1]=g*e+w*h+M*f+_*y,i[2]=g*s+w*a+M*p+_*x,i[3]=g*r+w*u+M*l+_*v,g=m[4],w=m[5],M=m[6],_=m[7],i[4]=g*n+w*o+M*c+_*d,i[5]=g*e+w*h+M*f+_*y,i[6]=g*s+w*a+M*p+_*x,i[7]=g*r+w*u+M*l+_*v,g=m[8],w=m[9],M=m[10],_=m[11],i[8]=g*n+w*o+M*c+_*d,i[9]=g*e+w*h+M*f+_*y,i[10]=g*s+w*a+M*p+_*x,i[11]=g*r+w*u+M*l+_*v,g=m[12],w=m[13],M=m[14],_=m[15],i[12]=g*n+w*o+M*c+_*d,i[13]=g*e+w*h+M*f+_*y,i[14]=g*s+w*a+M*p+_*x,i[15]=g*r+w*u+M*l+_*v,this},multiplyLocal:function(t){var i=[],n=this.val,e=t.val;return i[0]=n[0]*e[0]+n[1]*e[4]+n[2]*e[8]+n[3]*e[12],i[1]=n[0]*e[1]+n[1]*e[5]+n[2]*e[9]+n[3]*e[13],i[2]=n[0]*e[2]+n[1]*e[6]+n[2]*e[10]+n[3]*e[14],i[3]=n[0]*e[3]+n[1]*e[7]+n[2]*e[11]+n[3]*e[15],i[4]=n[4]*e[0]+n[5]*e[4]+n[6]*e[8]+n[7]*e[12],i[5]=n[4]*e[1]+n[5]*e[5]+n[6]*e[9]+n[7]*e[13],i[6]=n[4]*e[2]+n[5]*e[6]+n[6]*e[10]+n[7]*e[14],i[7]=n[4]*e[3]+n[5]*e[7]+n[6]*e[11]+n[7]*e[15],i[8]=n[8]*e[0]+n[9]*e[4]+n[10]*e[8]+n[11]*e[12],i[9]=n[8]*e[1]+n[9]*e[5]+n[10]*e[9]+n[11]*e[13],i[10]=n[8]*e[2]+n[9]*e[6]+n[10]*e[10]+n[11]*e[14],i[11]=n[8]*e[3]+n[9]*e[7]+n[10]*e[11]+n[11]*e[15],i[12]=n[12]*e[0]+n[13]*e[4]+n[14]*e[8]+n[15]*e[12],i[13]=n[12]*e[1]+n[13]*e[5]+n[14]*e[9]+n[15]*e[13],i[14]=n[12]*e[2]+n[13]*e[6]+n[14]*e[10]+n[15]*e[14],i[15]=n[12]*e[3]+n[13]*e[7]+n[14]*e[11]+n[15]*e[15],this.fromArray(i)},translate:function(t){var i=t.x,n=t.y,e=t.z,s=this.val;return s[12]=s[0]*i+s[4]*n+s[8]*e+s[12],s[13]=s[1]*i+s[5]*n+s[9]*e+s[13],s[14]=s[2]*i+s[6]*n+s[10]*e+s[14],s[15]=s[3]*i+s[7]*n+s[11]*e+s[15],this},translateXYZ:function(t,i,n){var e=this.val;return e[12]=e[0]*t+e[4]*i+e[8]*n+e[12],e[13]=e[1]*t+e[5]*i+e[9]*n+e[13],e[14]=e[2]*t+e[6]*i+e[10]*n+e[14],e[15]=e[3]*t+e[7]*i+e[11]*n+e[15],this},scale:function(t){var i=t.x,n=t.y,e=t.z,s=this.val;return s[0]=s[0]*i,s[1]=s[1]*i,s[2]=s[2]*i,s[3]=s[3]*i,s[4]=s[4]*n,s[5]=s[5]*n,s[6]=s[6]*n,s[7]=s[7]*n,s[8]=s[8]*e,s[9]=s[9]*e,s[10]=s[10]*e,s[11]=s[11]*e,this},scaleXYZ:function(t,i,n){var e=this.val;return e[0]=e[0]*t,e[1]=e[1]*t,e[2]=e[2]*t,e[3]=e[3]*t,e[4]=e[4]*i,e[5]=e[5]*i,e[6]=e[6]*i,e[7]=e[7]*i,e[8]=e[8]*n,e[9]=e[9]*n,e[10]=e[10]*n,e[11]=e[11]*n,this},makeRotationAxis:function(t,i){var n=Math.cos(i),e=Math.sin(i),s=1-n,r=t.x,o=t.y,h=t.z,a=s*r,u=s*o;return this.fromArray([a*r+n,a*o-e*h,a*h+e*o,0,a*o+e*h,u*o+n,u*h-e*r,0,a*h-e*o,u*h+e*r,s*h*h+n,0,0,0,0,1]),this},rotate:function(t,i){var n=this.val,e=i.x,s=i.y,r=i.z,o=Math.sqrt(e*e+s*s+r*r);if(Math.abs(o)<1e-6)return null;e*=o=1/o,s*=o,r*=o;var h=Math.sin(t),a=Math.cos(t),u=1-a,c=n[0],f=n[1],p=n[2],l=n[3],d=n[4],y=n[5],x=n[6],v=n[7],m=n[8],g=n[9],w=n[10],M=n[11],_=e*e*u+a,T=s*e*u+r*h,A=r*e*u-s*h,E=e*s*u-r*h,O=s*s*u+a,z=r*s*u+e*h,R=e*r*u+s*h,P=s*r*u-e*h,F=r*r*u+a;return n[0]=c*_+d*T+m*A,n[1]=f*_+y*T+g*A,n[2]=p*_+x*T+w*A,n[3]=l*_+v*T+M*A,n[4]=c*E+d*O+m*z,n[5]=f*E+y*O+g*z,n[6]=p*E+x*O+w*z,n[7]=l*E+v*O+M*z,n[8]=c*R+d*P+m*F,n[9]=f*R+y*P+g*F,n[10]=p*R+x*P+w*F,n[11]=l*R+v*P+M*F,this},rotateX:function(t){var i=this.val,n=Math.sin(t),e=Math.cos(t),s=i[4],r=i[5],o=i[6],h=i[7],a=i[8],u=i[9],c=i[10],f=i[11];return i[4]=s*e+a*n,i[5]=r*e+u*n,i[6]=o*e+c*n,i[7]=h*e+f*n,i[8]=a*e-s*n,i[9]=u*e-r*n,i[10]=c*e-o*n,i[11]=f*e-h*n,this},rotateY:function(t){var i=this.val,n=Math.sin(t),e=Math.cos(t),s=i[0],r=i[1],o=i[2],h=i[3],a=i[8],u=i[9],c=i[10],f=i[11];return i[0]=s*e-a*n,i[1]=r*e-u*n,i[2]=o*e-c*n,i[3]=h*e-f*n,i[8]=s*n+a*e,i[9]=r*n+u*e,i[10]=o*n+c*e,i[11]=h*n+f*e,this},rotateZ:function(t){var i=this.val,n=Math.sin(t),e=Math.cos(t),s=i[0],r=i[1],o=i[2],h=i[3],a=i[4],u=i[5],c=i[6],f=i[7];return i[0]=s*e+a*n,i[1]=r*e+u*n,i[2]=o*e+c*n,i[3]=h*e+f*n,i[4]=a*e-s*n,i[5]=u*e-r*n,i[6]=c*e-o*n,i[7]=f*e-h*n,this},fromRotationTranslation:function(t,i){var n=this.val,e=t.x,s=t.y,r=t.z,o=t.w,h=e+e,a=s+s,u=r+r,c=e*h,f=e*a,p=e*u,l=s*a,d=s*u,y=r*u,x=o*h,v=o*a,m=o*u;return n[0]=1-(l+y),n[1]=f+m,n[2]=p-v,n[3]=0,n[4]=f-m,n[5]=1-(c+y),n[6]=d+x,n[7]=0,n[8]=p+v,n[9]=d-x,n[10]=1-(c+l),n[11]=0,n[12]=i.x,n[13]=i.y,n[14]=i.z,n[15]=1,this},fromQuat:function(t){var i=this.val,n=t.x,e=t.y,s=t.z,r=t.w,o=n+n,h=e+e,a=s+s,u=n*o,c=n*h,f=n*a,p=e*h,l=e*a,d=s*a,y=r*o,x=r*h,v=r*a;return i[0]=1-(p+d),i[1]=c+v,i[2]=f-x,i[3]=0,i[4]=c-v,i[5]=1-(u+d),i[6]=l+y,i[7]=0,i[8]=f+x,i[9]=l-y,i[10]=1-(u+p),i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this},frustum:function(t,i,n,e,s,r){var o=this.val,h=1/(i-t),a=1/(e-n),u=1/(s-r);return o[0]=2*s*h,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*a,o[6]=0,o[7]=0,o[8]=(i+t)*h,o[9]=(e+n)*a,o[10]=(r+s)*u,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*u,o[15]=0,this},perspective:function(t,i,n,e){var s=this.val,r=1/Math.tan(t/2),o=1/(n-e);return s[0]=r/i,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(e+n)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*e*n*o,s[15]=0,this},perspectiveLH:function(t,i,n,e){var s=this.val;return s[0]=2*n/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*n/i,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-e/(n-e),s[11]=1,s[12]=0,s[13]=0,s[14]=n*e/(n-e),s[15]=0,this},ortho:function(t,i,n,e,s,r){var o=this.val,h=0===(h=t-i)?h:1/h,a=0===(a=n-e)?a:1/a,u=0===(u=s-r)?u:1/u;return o[0]=-2*h,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*a,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*u,o[11]=0,o[12]=(t+i)*h,o[13]=(e+n)*a,o[14]=(r+s)*u,o[15]=1,this},lookAt:function(t,i,n){var e=this.val,s=t.x,r=t.y,o=t.z,h=n.x,a=n.y,u=n.z,c=i.x,f=i.y,p=i.z;if(Math.abs(s-c)<1e-6&&Math.abs(r-f)<1e-6&&Math.abs(o-p)<1e-6)return this.identity();var l=s-c,d=r-f,y=o-p,x=1/Math.sqrt(l*l+d*d+y*y),v=a*(y*=x)-u*(d*=x),m=u*(l*=x)-h*y,g=h*d-a*l;(x=Math.sqrt(v*v+m*m+g*g))?(v*=x=1/x,m*=x,g*=x):g=m=v=0;var w=d*g-y*m,M=y*v-l*g,_=l*m-d*v;return(x=Math.sqrt(w*w+M*M+_*_))?(w*=x=1/x,M*=x,_*=x):_=M=w=0,e[0]=v,e[1]=w,e[2]=l,e[3]=0,e[4]=m,e[5]=M,e[6]=d,e[7]=0,e[8]=g,e[9]=_,e[10]=y,e[11]=0,e[12]=-(v*s+m*r+g*o),e[13]=-(w*s+M*r+_*o),e[14]=-(l*s+d*r+y*o),e[15]=1,this},yawPitchRoll:function(t,i,n){this.zero(),a.zero(),u.zero();var e=this.val,s=a.val,r=u.val,o=Math.sin(n),h=Math.cos(n);return e[10]=1,e[15]=1,e[0]=h,e[1]=o,e[4]=-o,e[5]=h,o=Math.sin(i),h=Math.cos(i),s[0]=1,s[15]=1,s[5]=h,s[10]=h,s[9]=-o,s[6]=o,o=Math.sin(t),h=Math.cos(t),r[5]=1,r[15]=1,r[0]=h,r[2]=-o,r[8]=o,r[10]=h,this.multiplyLocal(a),this.multiplyLocal(u),this},setWorldMatrix:function(t,i,n,e,s){return this.yawPitchRoll(t.y,t.x,t.z),a.scaling(n.x,n.y,n.z),u.xyz(i.x,i.y,i.z),this.multiplyLocal(a),this.multiplyLocal(u),void 0!==e&&this.multiplyLocal(e),void 0!==s&&this.multiplyLocal(s),this}}),a=new s,u=new s;t.exports=s},function(t,i){t.exports=function(t,i,n){if(t&&"number"!=typeof t){if(t.hasOwnProperty(i))return t[i];if(-1===i.indexOf("."))return n;for(var e=i.split("."),s=t,r=n,o=0;o<e.length;o++){if(!s.hasOwnProperty(e[o])){r=n;break}r=s[e[o]],s=s[e[o]]}return r}return n}},function(t,i){t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},function(t,i){t.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},function(t,i){t.exports=function(t){return 0<=(t%=2*Math.PI)?t:t+2*Math.PI}},function(t,i,n){var e=n(8);t.exports=function(t){return e(t,-Math.PI,Math.PI)}},function(t,i,n){var e=n(8);t.exports=function(t){return e(t,-180,180)}},function(t,i){t.exports=function(t,i,n){return void 0===n&&(n=1e-4),Math.abs(t-i)<n}},function(t,i,n){var e=n(19);t.exports=function(t,i){return e(t)/e(i)/e(t-i)}},function(t,i){t.exports=function(t){if(0===t)return 1;for(var i=t;--t;)i*=t;return i}},function(t,i){t.exports=function(t,i,n,e,s){var r=.5*(e-i),o=.5*(s-n),h=t*t;return(2*n-2*e+r+o)*(t*h)+(-3*n+3*e-2*r-o)*h+r*t+n}},function(t,i){t.exports=function(t,i,n){return(i-t)*n+t}},function(t,i){t.exports=function(t,i,n){return t<=i?0:n<=t?1:(t=(t-i)/(n-i))*t*(3-2*t)}},function(t,i){t.exports=function(t,i,n){return(t=Math.max(0,Math.min(1,(t-i)/(n-i))))*t*t*(t*(6*t-15)+10)}},function(t,i,n){var e=n(2);t.exports=function(t){return t*e.DEG_TO_RAD}},function(t,i){t.exports=function(t,i){void 0===i&&(i=1);var n=2*Math.random()*Math.PI,e=2*Math.random()-1,s=Math.sqrt(1-e*e)*i;return t.x=Math.cos(n)*s,t.y=Math.sin(n)*s,t.z=e*i,t}},function(t,i){t.exports=function(t,i){return void 0===i&&(i=1),t.x=(2*Math.random()-1)*i,t.y=(2*Math.random()-1)*i,t.z=(2*Math.random()-1)*i,t.w=(2*Math.random()-1)*i,t}},function(t,i){t.exports=function(t,i,n,e){var s=Math.cos(e),r=Math.sin(e),o=t.x-i,h=t.y-n;return t.x=o*s-h*r+i,t.y=o*r+h*s+n,t}},function(t,i,n){var y=n(1);t.exports=function(t,i,n,e,s,r,o,h){void 0===h&&(h=new y);var a=Math.sin(s),u=Math.cos(s),c=u*r,f=a*r,p=-a*o,l=u*o,d=1/(c*l+p*-f);return h.x=l*d*t+-p*d*i+(e*p-n*l)*d,h.y=c*d*i+-f*d*t+(-e*c+n*f)*d,h}},function(t,i,n){var e=new(n(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new e(this)},set:function(t){return this.copy(t)},copy:function(t){var i=this.val,n=t.val;return i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],i[4]=n[4],i[5]=n[5],i[6]=n[6],i[7]=n[7],i[8]=n[8],this},fromMat4:function(t){var i=t.val,n=this.val;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[4],n[4]=i[5],n[5]=i[6],n[6]=i[8],n[7]=i[9],n[8]=i[10],this},fromArray:function(t){var i=this.val;return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,i=t[1],n=t[2],e=t[5];return t[1]=t[3],t[2]=t[6],t[3]=i,t[5]=t[7],t[6]=n,t[7]=e,this},invert:function(){var t=this.val,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=t[6],a=t[7],u=t[8],c=u*r-o*a,f=-u*s+o*h,p=a*s-r*h,l=i*c+n*f+e*p;return l?(l=1/l,t[0]=c*l,t[1]=(-u*n+e*a)*l,t[2]=(o*n-e*r)*l,t[3]=f*l,t[4]=(u*i-e*h)*l,t[5]=(-o*i+e*s)*l,t[6]=p*l,t[7]=(-a*i+n*h)*l,t[8]=(r*i-n*s)*l,this):null},adjoint:function(){var t=this.val,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=t[6],a=t[7],u=t[8];return t[0]=r*u-o*a,t[1]=e*a-n*u,t[2]=n*o-e*r,t[3]=o*h-s*u,t[4]=i*u-e*h,t[5]=e*s-i*o,t[6]=s*a-r*h,t[7]=n*h-i*a,t[8]=i*r-n*s,this},determinant:function(){var t=this.val,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=t[6],a=t[7],u=t[8];return i*(u*r-o*a)+n*(-u*s+o*h)+e*(a*s-r*h)},multiply:function(t){var i=this.val,n=i[0],e=i[1],s=i[2],r=i[3],o=i[4],h=i[5],a=i[6],u=i[7],c=i[8],f=t.val,p=f[0],l=f[1],d=f[2],y=f[3],x=f[4],v=f[5],m=f[6],g=f[7],w=f[8];return i[0]=p*n+l*r+d*a,i[1]=p*e+l*o+d*u,i[2]=p*s+l*h+d*c,i[3]=y*n+x*r+v*a,i[4]=y*e+x*o+v*u,i[5]=y*s+x*h+v*c,i[6]=m*n+g*r+w*a,i[7]=m*e+g*o+w*u,i[8]=m*s+g*h+w*c,this},translate:function(t){var i=this.val,n=t.x,e=t.y;return i[6]=n*i[0]+e*i[3]+i[6],i[7]=n*i[1]+e*i[4]+i[7],i[8]=n*i[2]+e*i[5]+i[8],this},rotate:function(t){var i=this.val,n=i[0],e=i[1],s=i[2],r=i[3],o=i[4],h=i[5],a=Math.sin(t),u=Math.cos(t);return i[0]=u*n+a*r,i[1]=u*e+a*o,i[2]=u*s+a*h,i[3]=u*r-a*n,i[4]=u*o-a*e,i[5]=u*h-a*s,this},scale:function(t){var i=this.val,n=t.x,e=t.y;return i[0]=n*i[0],i[1]=n*i[1],i[2]=n*i[2],i[3]=e*i[3],i[4]=e*i[4],i[5]=e*i[5],this},fromQuat:function(t){var i=t.x,n=t.y,e=t.z,s=t.w,r=i+i,o=n+n,h=e+e,a=i*r,u=i*o,c=i*h,f=n*o,p=n*h,l=e*h,d=s*r,y=s*o,x=s*h,v=this.val;return v[0]=1-(f+l),v[3]=u+x,v[6]=c-y,v[1]=u-x,v[4]=1-(a+l),v[7]=p+d,v[2]=c+y,v[5]=p-d,v[8]=1-(a+f),this},normalFromMat4:function(t){var i=t.val,n=this.val,e=i[0],s=i[1],r=i[2],o=i[3],h=i[4],a=i[5],u=i[6],c=i[7],f=i[8],p=i[9],l=i[10],d=i[11],y=i[12],x=i[13],v=i[14],m=i[15],g=e*a-s*h,w=e*u-r*h,M=e*c-o*h,_=s*u-r*a,T=s*c-o*a,A=r*c-o*u,E=f*x-p*y,O=f*v-l*y,z=f*m-d*y,R=p*v-l*x,P=p*m-d*x,F=l*m-d*v,I=g*F-w*P+M*R+_*z-T*O+A*E;return I?(I=1/I,n[0]=(a*F-u*P+c*R)*I,n[1]=(u*z-h*F-c*O)*I,n[2]=(h*P-a*z+c*E)*I,n[3]=(r*P-s*F-o*R)*I,n[4]=(e*F-r*z+o*O)*I,n[5]=(s*z-e*P-o*E)*I,n[6]=(x*A-v*T+m*_)*I,n[7]=(v*M-y*A-m*w)*I,n[8]=(y*T-x*M+m*g)*I,this):null}});t.exports=e},function(t,i,n){var e=n(0),s=n(3),r=n(29),h=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),o=new s(1,0,0),u=new s(0,1,0),c=new s,f=new r,p=new e({initialize:function(t,i,n,e){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=i||0,this.z=n||0,this.w=e||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,i,n,e){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=i||0,this.z=n||0,this.w=e||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,i=this.y,n=this.z,e=this.w;return Math.sqrt(t*t+i*i+n*n+e*e)},lengthSq:function(){var t=this.x,i=this.y,n=this.z,e=this.w;return t*t+i*i+n*n+e*e},normalize:function(){var t=this.x,i=this.y,n=this.z,e=this.w,s=t*t+i*i+n*n+e*e;return 0<s&&(s=1/Math.sqrt(s),this.x=t*s,this.y=i*s,this.z=n*s,this.w=e*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,i){void 0===i&&(i=0);var n=this.x,e=this.y,s=this.z,r=this.w;return this.x=n+i*(t.x-n),this.y=e+i*(t.y-e),this.z=s+i*(t.z-s),this.w=r+i*(t.w-r),this},rotationTo:function(t,i){var n=t.x*i.x+t.y*i.y+t.z*i.z;return n<-.999999?(c.copy(o).cross(t).length()<1e-6&&c.copy(u).cross(t),c.normalize(),this.setAxisAngle(c,Math.PI)):.999999<n?(this.x=0,this.y=0,this.z=0,this.w=1,this):(c.copy(t).cross(i),this.x=c.x,this.y=c.y,this.z=c.z,this.w=1+n,this.normalize())},setAxes:function(t,i,n){var e=f.val;return e[0]=i.x,e[3]=i.y,e[6]=i.z,e[1]=n.x,e[4]=n.y,e[7]=n.z,e[2]=-t.x,e[5]=-t.y,e[8]=-t.z,this.fromMat3(f).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,i){i*=.5;var n=Math.sin(i);return this.x=n*t.x,this.y=n*t.y,this.z=n*t.z,this.w=Math.cos(i),this},multiply:function(t){var i=this.x,n=this.y,e=this.z,s=this.w,r=t.x,o=t.y,h=t.z,a=t.w;return this.x=i*a+s*r+n*h-e*o,this.y=n*a+s*o+e*r-i*h,this.z=e*a+s*h+i*o-n*r,this.w=s*a-i*r-n*o-e*h,this},slerp:function(t,i){var n=this.x,e=this.y,s=this.z,r=this.w,o=t.x,h=t.y,a=t.z,u=t.w,c=n*o+e*h+s*a+r*u;c<0&&(c=-c,o=-o,h=-h,a=-a,u=-u);var f,p,l=1-i,d=i;return 1e-6<1-c&&(f=Math.acos(c),p=Math.sin(f),l=Math.sin((1-i)*f)/p,d=Math.sin(i*f)/p),this.x=l*n+d*o,this.y=l*e+d*h,this.z=l*s+d*a,this.w=l*r+d*u,this},invert:function(){var t=this.x,i=this.y,n=this.z,e=this.w,s=t*t+i*i+n*n+e*e,r=s?1/s:0;return this.x=-t*r,this.y=-i*r,this.z=-n*r,this.w=e*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var i=this.x,n=this.y,e=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=i*o+s*r,this.y=n*o+e*r,this.z=e*o-n*r,this.w=s*o-i*r,this},rotateY:function(t){t*=.5;var i=this.x,n=this.y,e=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=i*o-e*r,this.y=n*o+s*r,this.z=e*o+i*r,this.w=s*o-n*r,this},rotateZ:function(t){t*=.5;var i=this.x,n=this.y,e=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=i*o+n*r,this.y=n*o-i*r,this.z=e*o+s*r,this.w=s*o-e*r,this},calculateW:function(){var t=this.x,i=this.y,n=this.z;return this.w=-Math.sqrt(1-t*t-i*i-n*n),this},fromMat3:function(t){var i,n,e,s,r=t.val,o=r[0]+r[4]+r[8];return 0<o?(s=Math.sqrt(o+1),this.w=.5*s,s=.5/s,this.x=(r[7]-r[5])*s,this.y=(r[2]-r[6])*s,this.z=(r[3]-r[1])*s):(i=0,r[4]>r[0]&&(i=1),r[8]>r[3*i+i]&&(i=2),n=h[i],e=h[n],s=Math.sqrt(r[3*i+i]-r[3*n+n]-r[3*e+e]+1),a[i]=.5*s,s=.5/s,a[n]=(r[3*n+i]+r[3*i+n])*s,a[e]=(r[3*e+i]+r[3*i+e])*s,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(r[3*e+n]-r[3*n+e])*s),this}});t.exports=p},function(t,i,n){var e=n(3),s=n(10),r=n(30),o=new s,h=new r,a=new e;t.exports=function(t,i,n){return h.setAxisAngle(i,n),o.fromRotationTranslation(h,a.set(0,0,0)),t.transformMat4(o)}},function(t,i,n){var e=n(0),s=n(10),r=n(25),o=n(26),h=n(31),a=n(158),u=n(33),c=n(1),f=n(3),p=n(9),l=new f,d=new p,y=new f,x=new f,v=new s,m=new e({initialize:function(t){this.scene=t,this.displayList=t.sys.displayList,this.updateList=t.sys.updateList,this.name="",this.direction=new f(0,0,-1),this.up=new f(0,1,0),this.position=new f,this.pixelScale=128,this.projection=new s,this.view=new s,this.combined=new s,this.invProjectionView=new s,this.near=1,this.far=100,this.ray={origin:new f,direction:new f},this.viewportWidth=0,this.viewportHeight=0,this.billboardMatrixDirty=!0,this.children=new a},setPosition:function(t,i,n){return this.position.set(t,i,n),this.update()},setScene:function(t){return this.scene=t,this},setPixelScale:function(t){return this.pixelScale=t,this.update()},add:function(t){return this.children.set(t),this.displayList.add(t.gameObject),this.updateList.add(t.gameObject),this.updateChildren(),t},remove:function(t){return this.displayList.remove(t.gameObject),this.updateList.remove(t.gameObject),this.children.delete(t),this},clear:function(){for(var t=this.getChildren(),i=0;i<t.length;i++)this.remove(t[i]);return this},getChildren:function(){return this.children.entries},create:function(t,i,n,e,s,r){void 0===r&&(r=!0);var o=new u(this.scene,t,i,n,e,s);return this.displayList.add(o.gameObject),this.updateList.add(o.gameObject),o.visible=r,this.children.set(o),this.updateChildren(),o},createMultiple:function(t,i,n,e){void 0===e&&(e=!0);for(var s=[],r=0;r<t;r++){var o=new u(this.scene,0,0,0,i,n);this.displayList.add(o.gameObject),this.updateList.add(o.gameObject),o.visible=e,this.children.set(o),s.push(o)}return s},createRect:function(t,i,n,e){"number"==typeof t&&(t={x:t,y:t,z:t}),"number"==typeof i&&(i={x:i,y:i,z:i});for(var s=t.x*t.y*t.z,r=this.createMultiple(s,n,e),o=0,h=.5-t.z/2;h<t.z/2;h++)for(var a=.5-t.y/2;a<t.y/2;a++)for(var u=.5-t.x/2;u<t.x/2;u++){var c=u*i.x,f=a*i.y,p=h*i.z;r[o].position.set(c,f,p),o++}return this.update(),r},randomSphere:function(t,i){void 0===i&&(i=this.getChildren());for(var n=0;n<i.length;n++)r(i[n].position,t);return this.update()},randomCube:function(t,i){void 0===i&&(i=this.getChildren());for(var n=0;n<i.length;n++)o(i[n].position,t);return this.update()},translateChildren:function(t,i){void 0===i&&(i=this.getChildren());for(var n=0;n<i.length;n++)i[n].position.add(t);return this.update()},transformChildren:function(t,i){void 0===i&&(i=this.getChildren());for(var n=0;n<i.length;n++)i[n].position.transformMat4(t);return this.update()},setViewport:function(t,i){return this.viewportWidth=t,this.viewportHeight=i,this.update()},translate:function(t,i,n){return"object"==typeof t?(this.position.x+=t.x||0,this.position.y+=t.y||0,this.position.z+=t.z||0):(this.position.x+=t||0,this.position.y+=i||0,this.position.z+=n||0),this.update()},lookAt:function(t,i,n){var e=this.direction,s=this.up;return"object"==typeof t?e.copy(t):e.set(t,i,n),e.subtract(this.position).normalize(),l.copy(e).cross(s).normalize(),s.copy(l).cross(e).normalize(),this.update()},rotate:function(t,i){return h(this.direction,i,t),h(this.up,i,t),this.update()},rotateAround:function(t,i,n){return l.copy(t).subtract(this.position),this.translate(l),this.rotate(i,n),this.translate(l.negate()),this.update()},project:function(t,i){void 0===i&&(i=new p);var n=this.viewportWidth,e=this.viewportHeight,s=m.NEAR_RANGE,r=m.FAR_RANGE;return d.set(t.x,t.y,t.z,1),d.transformMat4(this.combined),0===d.w&&(d.w=1),d.x=d.x/d.w,d.y=d.y/d.w,d.z=d.z/d.w,i.x=n/2*d.x+(0+n/2),i.y=e/2*d.y+(0+e/2),i.z=(r-s)/2*d.z+(r+s)/2,0!==i.w&&!i.w||(i.w=1/d.w),i},unproject:function(t,i){void 0===i&&(i=new f);var n=d.set(0,0,this.viewportWidth,this.viewportHeight);return i.copy(t).unproject(n,this.invProjectionView)},getPickRay:function(t,i){var n=this.ray.origin.set(t,i,0),e=this.ray.direction.set(t,i,1),s=d.set(0,0,this.viewportWidth,this.viewportHeight),r=this.invProjectionView;return n.unproject(s,r),e.unproject(s,r),e.subtract(n).normalize(),this.ray},updateChildren:function(){for(var t=this.children.entries,i=0;i<t.length;i++)t[i].project(this);return this},update:function(){return this.updateChildren()},updateBillboardMatrix:function(){var t=y.set(this.direction).negate(),i=x.set(this.up).cross(t).normalize(),n=l.set(t).cross(i).normalize(),e=v.val;e[0]=i.x,e[1]=i.y,e[2]=i.z,e[3]=0,e[4]=n.x,e[5]=n.y,e[6]=n.z,e[7]=0,e[8]=t.x,e[9]=t.y,e[10]=t.z,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.billboardMatrixDirty=!1},getPointSize:function(t,i,n){void 0===n&&(n=new c),this.billboardMatrixDirty&&this.updateBillboardMatrix();var e=l,s=i.x/this.pixelScale/2,r=i.y/this.pixelScale/2;e.set(-s,-r,0).transformMat4(v).add(t),this.project(e,e);var o=e.x,h=e.y;e.set(s,r,0).transformMat4(v).add(t),this.project(e,e);var a=e.x-o,u=e.y-h;return n.set(a,u)},destroy:function(){this.children.clear(),this.scene=void 0,this.children=void 0},setX:function(t){return this.position.x=t,this.update()},setY:function(t){return this.position.y=t,this.update()},setZ:function(t){return this.position.z=t,this.update()},x:{get:function(){return this.position.x},set:function(t){this.position.x=t,this.update()}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t,this.update()}},z:{get:function(){return this.position.z},set:function(t){this.position.z=t,this.update()}}});m.FAR_RANGE=1,m.NEAR_RANGE=0,t.exports=m},function(t,i,n){var e=n(0),o=n(34),h=n(178),a=n(1),u=n(9),s=new e({Extends:o,initialize:function(t,i,n,e,s,r){o.call(this,t,"Sprite3D"),this.gameObject=new h(t,0,0,s,r),this.position=new u(i,n,e),this.size=new a(this.gameObject.width,this.gameObject.height),this.scale=new a(1,1),this.adjustScaleX=!0,this.adjustScaleY=!0,this._visible=!0},project:function(t){var i=this.position,n=this.gameObject;t.project(i,n),t.getPointSize(i,this.size,this.scale),this.scale.x<=0||this.scale.y<=0?n.setVisible(!1):(n.visible||n.setVisible(!0),this.adjustScaleX&&(n.scaleX=this.scale.x),this.adjustScaleY&&(n.scaleY=this.scale.y),n.setDepth(-1*n.z))},setVisible:function(t){return this.visible=t,this},visible:{get:function(){return this._visible},set:function(t){this._visible=t,this.gameObject.visible=t}},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},z:{get:function(){return this.position.z},set:function(t){this.position.z=t}}});t.exports=s},function(t,i,n){var e=n(0),s=n(35),r=n(159),o=n(36),h=n(37),a=new e({Extends:o,initialize:function(t,i){o.call(this),this.scene=t,this.type=i,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,i){return this.data||(this.data=new r(this)),this.data.set(t,i),this},incData:function(t,i){return this.data||(this.data=new r(this)),this.data.inc(t,i),this},toggleData:function(t){return this.data||(this.data=new r(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,i,n){return this.scene.sys.input.enable(this,t,i,n),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(a.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,i=this.parentContainer,n=[];i&&(n.unshift(i.getIndex(t)),(t=i).parentContainer);)i=i.parentContainer;return n.unshift(this.scene.sys.displayList.getIndex(t)),n},destroy:function(t){var i;void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy&&(this.preDestroy&&this.preDestroy.call(this),this.emit(h.DESTROY,this),i=this.scene.sys,t||i.displayList.remove(this),this.input&&(i.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||i.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners())}});a.RENDER_MASK=15,t.exports=a},function(t,i){t.exports=function(t){var i={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(i.textureKey=t.texture.key,i.frameKey=t.frame.name),i}},function(t,i,n){"use strict";var e=Object.prototype.hasOwnProperty,l="~";function s(){}function h(t,i,n){this.fn=t,this.context=i,this.once=n||!1}function r(t,i,n,e,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var r=new h(n,e||t,s),o=l?l+i:i;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],r]:t._events[o].push(r):(t._events[o]=r,t._eventsCount++),t}function u(t,i){0==--t._eventsCount?t._events=new s:delete t._events[i]}function o(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,i,n=[];if(0===this._eventsCount)return n;for(i in t=this._events)e.call(t,i)&&n.push(l?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t){var i=l?l+t:t,n=this._events[i];if(!n)return[];if(n.fn)return[n.fn];for(var e=0,s=n.length,r=new Array(s);e<s;e++)r[e]=n[e].fn;return r},o.prototype.listenerCount=function(t){var i=l?l+t:t,n=this._events[i];return n?n.fn?1:n.length:0},o.prototype.emit=function(t,i,n,e,s,r){var o=l?l+t:t;if(!this._events[o])return!1;var h,a=this._events[o],u=arguments.length;if(a.fn){switch(a.once&&this.removeListener(t,a.fn,void 0,!0),u){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,i),!0;case 3:return a.fn.call(a.context,i,n),!0;case 4:return a.fn.call(a.context,i,n,e),!0;case 5:return a.fn.call(a.context,i,n,e,s),!0;case 6:return a.fn.call(a.context,i,n,e,s,r),!0}for(p=1,h=new Array(u-1);p<u;p++)h[p-1]=arguments[p];a.fn.apply(a.context,h)}else for(var c,f=a.length,p=0;p<f;p++)switch(a[p].once&&this.removeListener(t,a[p].fn,void 0,!0),u){case 1:a[p].fn.call(a[p].context);break;case 2:a[p].fn.call(a[p].context,i);break;case 3:a[p].fn.call(a[p].context,i,n);break;case 4:a[p].fn.call(a[p].context,i,n,e);break;default:if(!h)for(c=1,h=new Array(u-1);c<u;c++)h[c-1]=arguments[c];a[p].fn.apply(a[p].context,h)}return!0},o.prototype.on=function(t,i,n){return r(this,t,i,n,!1)},o.prototype.once=function(t,i,n){return r(this,t,i,n,!0)},o.prototype.removeListener=function(t,i,n,e){var s=l?l+t:t;if(!this._events[s])return this;if(!i)return u(this,s),this;var r=this._events[s];if(r.fn)r.fn!==i||e&&!r.once||n&&r.context!==n||u(this,s);else{for(var o=0,h=[],a=r.length;o<a;o++)(r[o].fn!==i||e&&!r[o].once||n&&r[o].context!==n)&&h.push(r[o]);h.length?this._events[s]=1===h.length?h[0]:h:u(this,s)}return this},o.prototype.removeAllListeners=function(t){var i;return t?(i=l?l+t:t,this._events[i]&&u(this,i)):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=l,o.EventEmitter=o,t.exports=o},function(t,i,n){t.exports={ADDED_TO_SCENE:n(165),DESTROY:n(166),REMOVED_FROM_SCENE:n(167),VIDEO_COMPLETE:n(168),VIDEO_CREATED:n(169),VIDEO_ERROR:n(170),VIDEO_LOOP:n(171),VIDEO_PLAY:n(172),VIDEO_SEEKED:n(173),VIDEO_SEEKING:n(174),VIDEO_STOP:n(175),VIDEO_TIMEOUT:n(176),VIDEO_UNLOCKED:n(177)}},function(t,i,n){t.exports={ADD_ANIMATION:n(184),ANIMATION_COMPLETE:n(185),ANIMATION_REPEAT:n(186),ANIMATION_RESTART:n(187),ANIMATION_START:n(188),PAUSE_ALL:n(189),REMOVE_ANIMATION:n(190),RESUME_ALL:n(191),SPRITE_ANIMATION_COMPLETE:n(192),SPRITE_ANIMATION_KEY_COMPLETE:n(193),SPRITE_ANIMATION_KEY_REPEAT:n(194),SPRITE_ANIMATION_KEY_RESTART:n(195),SPRITE_ANIMATION_KEY_START:n(196),SPRITE_ANIMATION_KEY_UPDATE:n(197),SPRITE_ANIMATION_REPEAT:n(198),SPRITE_ANIMATION_RESTART:n(199),SPRITE_ANIMATION_START:n(200),SPRITE_ANIMATION_UPDATE:n(201)}},function(t,i,n){var s=n(40),r=n(5);t.exports=function(t,i,n){if(void 0===n&&(n=new r),i<=0||1<=i)return n.x=t.x,n.y=t.y,n;var e=s(t)*i;return.5<i?(e-=t.width+t.height)<=t.width?(n.x=t.right-e,n.y=t.bottom):(n.x=t.x,n.y=t.bottom-(e-t.width)):e<=t.width?(n.x=t.x+e,n.y=t.y):(n.x=t.right,n.y=t.y+(e-t.width)),n}},function(t,i){t.exports=function(t){return 2*(t.width+t.height)}},function(t,i,n){var e=n(0),r=n(2),f=n(1),s=new e({initialize:function(t,i,n,e,s,r){void 0===t&&(t=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===e&&(e=1),void 0===s&&(s=0),void 0===r&&(r=0),this.matrix=new Float32Array([t,i,n,e,s,r,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0}},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,i=t[0],n=t[1],e=t[2],s=t[3];return i||n?0<n?Math.acos(i/this.scaleX):-Math.acos(i/this.scaleX):e||s?r.TAU-(0<s?Math.acos(-e/this.scaleY):-Math.acos(e/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,i){var n=this.matrix;return n[4]=n[0]*t+n[2]*i+n[4],n[5]=n[1]*t+n[3]*i+n[5],this},scale:function(t,i){var n=this.matrix;return n[0]*=t,n[1]*=t,n[2]*=i,n[3]*=i,this},rotate:function(t){var i=Math.sin(t),n=Math.cos(t),e=this.matrix,s=e[0],r=e[1],o=e[2],h=e[3];return e[0]=s*n+o*i,e[1]=r*n+h*i,e[2]=s*-i+o*n,e[3]=r*-i+h*n,this},multiply:function(t,i){var n=this.matrix,e=t.matrix,s=n[0],r=n[1],o=n[2],h=n[3],a=n[4],u=n[5],c=e[0],f=e[1],p=e[2],l=e[3],d=e[4],y=e[5],x=void 0===i?this:i;return x.a=c*s+f*o,x.b=c*r+f*h,x.c=p*s+l*o,x.d=p*r+l*h,x.e=d*s+y*o+a,x.f=d*r+y*h+u,x},multiplyWithOffset:function(t,i,n){var e=this.matrix,s=t.matrix,r=e[0],o=e[1],h=e[2],a=e[3],u=i*r+n*h+e[4],c=i*o+n*a+e[5],f=s[0],p=s[1],l=s[2],d=s[3],y=s[4],x=s[5];return e[0]=f*r+p*h,e[1]=f*o+p*a,e[2]=l*r+d*h,e[3]=l*o+d*a,e[4]=y*r+x*h+u,e[5]=y*o+x*a+c,this},transform:function(t,i,n,e,s,r){var o=this.matrix,h=o[0],a=o[1],u=o[2],c=o[3],f=o[4],p=o[5];return o[0]=t*h+i*u,o[1]=t*a+i*c,o[2]=n*h+e*u,o[3]=n*a+e*c,o[4]=s*h+r*u+f,o[5]=s*a+r*c+p,this},transformPoint:function(t,i,n){void 0===n&&(n={x:0,y:0});var e=this.matrix,s=e[0],r=e[1],o=e[2],h=e[3],a=e[4],u=e[5];return n.x=t*s+i*o+a,n.y=t*r+i*h+u,n},invert:function(){var t=this.matrix,i=t[0],n=t[1],e=t[2],s=t[3],r=t[4],o=t[5],h=i*s-n*e;return t[0]=s/h,t[1]=-n/h,t[2]=-e/h,t[3]=i/h,t[4]=(e*o-s*r)/h,t[5]=-(i*o-n*r)/h,this},copyFrom:function(t){var i=this.matrix;return i[0]=t.a,i[1]=t.b,i[2]=t.c,i[3]=t.d,i[4]=t.e,i[5]=t.f,this},copyFromArray:function(t){var i=this.matrix;return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],this},copyToContext:function(t){var i=this.matrix;return t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t},setToContext:function(t){var i=this.matrix;return t.setTransform(i[0],i[1],i[2],i[3],i[4],i[5]),t},copyToArray:function(t){var i=this.matrix;return void 0===t?t=[i[0],i[1],i[2],i[3],i[4],i[5]]:(t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5]),t},setTransform:function(t,i,n,e,s,r){var o=this.matrix;return o[0]=t,o[1]=i,o[2]=n,o[3]=e,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t,i,n=this.decomposedMatrix,e=this.matrix,s=e[0],r=e[1],o=e[2],h=e[3],a=s*h-r*o;return n.translateX=e[4],n.translateY=e[5],s||r?(t=Math.sqrt(s*s+r*r),n.rotation=0<r?Math.acos(s/t):-Math.acos(s/t),n.scaleX=t,n.scaleY=a/t):o||h?(i=Math.sqrt(o*o+h*h),n.rotation=.5*Math.PI-(0<h?Math.acos(-o/i):-Math.acos(o/i)),n.scaleX=a/i,n.scaleY=i):(n.rotation=0,n.scaleX=0,n.scaleY=0),n},applyITRS:function(t,i,n,e,s){var r=this.matrix,o=Math.sin(n),h=Math.cos(n);return r[4]=t,r[5]=i,r[0]=h*e,r[1]=o*e,r[2]=-o*s,r[3]=h*s,this},applyInverse:function(t,i,n){void 0===n&&(n=new f);var e=this.matrix,s=e[0],r=e[1],o=e[2],h=e[3],a=e[4],u=e[5],c=1/(s*h+o*-r);return n.x=h*c*t+-o*c*i+(u*o-a*h)*c,n.y=s*c*i+-r*c*t+(-u*s+a*r)*c,n},getX:function(t,i){return t*this.a+i*this.c+this.e},getY:function(t,i){return t*this.b+i*this.d+this.f},getXRound:function(t,i,n){var e=this.getX(t,i);return n&&(e=Math.round(e)),e},getYRound:function(t,i,n){var e=this.getY(t,i);return n&&(e=Math.round(e)),e},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=s},function(t,i){t.exports=function(){}},function(t,i,n){var r=n(44),o=n(156),e=n(0),h=n(6),s=n(157),a=n(255),u=n(256),c=n(33),f=new e({Extends:u,initialize:function(t,i){u.call(this,t,i),this.cameras=[],i.registerGameObject("sprite3D",this.sprite3DFactory,this.sprite3DCreator)},sprite3DFactory:function(t,i,n,e,s){var r=new c(this.scene,t,i,n,e,s);return this.displayList.add(r.gameObject),this.updateList.add(r.gameObject),r},sprite3DCreator:function(t,i){void 0===t&&(t={});var n=h(t,"key",null),e=h(t,"frame",null),s=new c(this.scene,0,0,n,e);return void 0!==i&&(t.add=i),r(this.scene,s,t),o(s,t),s},boot:function(){this.systems.events.once("destroy",this.destroy,this)},start:function(){var t=this.systems.events;t.on("update",this.update,this),t.once("shutdown",this.shutdown,this)},add:function(t,i,n){return this.addPerspectiveCamera(t,i,n)},addOrthographicCamera:function(t,i){var n=this.scene.sys.game.config;void 0===t&&(t=n.width),void 0===i&&(i=n.height);var e=new s(this.scene,t,i);return this.cameras.push(e),e},addPerspectiveCamera:function(t,i,n){var e=this.scene.sys.game.config;void 0===t&&(t=80),void 0===i&&(i=e.width),void 0===n&&(n=e.height);var s=new a(this.scene,t,i,n);return this.cameras.push(s),s},getCamera:function(t){for(var i=0;i<this.cameras.length;i++)if(this.cameras[i].name===t)return this.cameras[i];return null},removeCamera:function(t){var i=this.cameras.indexOf(t);-1!==i&&this.cameras.splice(i,1)},removeAll:function(){for(;0<this.cameras.length;){this.cameras.pop().destroy()}return this.main},update:function(t,i){for(var n=0,e=this.cameras.length;n<e;++n)this.cameras[n].update(t,i)},shutdown:function(){var t=this.systems.events;t.off("update",this.update,this),t.off("shutdown",this.shutdown,this),this.removeAll()},destroy:function(){this.shutdown(),this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=f},function(t,i,n){var u=n(13),c=n(6);t.exports=function(t,i,n){i.x=c(n,"x",0),i.y=c(n,"y",0),i.depth=c(n,"depth",0),i.flipX=c(n,"flipX",!1),i.flipY=c(n,"flipY",!1);var e=c(n,"scale",null);"number"==typeof e?i.setScale(e):null!==e&&(i.scaleX=c(e,"x",1),i.scaleY=c(e,"y",1));var s=c(n,"scrollFactor",null);"number"==typeof s?i.setScrollFactor(s):null!==s&&(i.scrollFactorX=c(s,"x",1),i.scrollFactorY=c(s,"y",1)),i.rotation=c(n,"rotation",0);var r=c(n,"angle",null);null!==r&&(i.angle=r),i.alpha=c(n,"alpha",1);var o,h,a=c(n,"origin",null);return"number"==typeof a?i.setOrigin(a):null!==a&&(o=c(a,"x",.5),h=c(a,"y",.5),i.setOrigin(o,h)),i.blendMode=c(n,"blendMode",u.NORMAL),i.visible=c(n,"visible",!0),c(n,"add",!0)&&t.sys.displayList.add(i),i.preUpdate&&t.sys.updateList.add(i),i}},function(t,i,n){var e=n(2),s=n(46)(!1,s={Angle:n(48),Distance:n(59),Easing:n(67),Fuzzy:n(112),Interpolation:n(117),Pow2:n(125),Snap:n(129),RandomDataGenerator:n(133),Average:n(134),Bernstein:n(18),Between:n(135),CatmullRom:n(20),CeilTo:n(136),Clamp:n(4),DegToRad:n(24),Difference:n(137),Factorial:n(19),FloatBetween:n(7),FloorTo:n(138),FromPercent:n(139),GetSpeed:n(140),IsEven:n(141),IsEvenStrict:n(142),Linear:n(21),MaxAdd:n(143),MinSub:n(144),Percent:n(145),RadToDeg:n(146),RandomXY:n(147),RandomXYZ:n(25),RandomXYZW:n(26),Rotate:n(148),RotateAround:n(27),RotateAroundDistance:n(149),RotateTo:n(150),RoundAwayFromZero:n(151),RoundTo:n(152),SinCosTableGenerator:n(153),SmootherStep:n(23),SmoothStep:n(22),ToXY:n(154),TransformXY:n(28),Within:n(155),Wrap:n(8),Vector2:n(1),Vector3:n(3),Vector4:n(9),Matrix3:n(29),Matrix4:n(10),Quaternion:n(30),RotateVec3:n(31)},e);t.exports=s},function(t,i,n){var c=n(47),f=function(){var t,i,n,e,s,r,o=arguments[0]||{},h=1,a=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[1]||{},h=2),a===h&&(o=this,--h);h<a;h++)if(null!=(t=arguments[h]))for(i in t)n=o[i],o!==(e=t[i])&&(u&&e&&(c(e)||(s=Array.isArray(e)))?(r=s?(s=!1,n&&Array.isArray(n)?n:[]):n&&c(n)?n:{},o[i]=f(u,r,e)):void 0!==e&&(o[i]=e));return o};t.exports=f},function(t,i){t.exports=function(t){if("object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0}},function(t,i,n){t.exports={Between:n(49),BetweenPoints:n(50),BetweenPointsY:n(51),BetweenY:n(52),CounterClockwise:n(53),Normalize:n(14),Random:n(54),RandomDegrees:n(55),Reverse:n(56),RotateTo:n(57),ShortestBetween:n(58),Wrap:n(15),WrapDegrees:n(16)}},function(t,i){t.exports=function(t,i,n,e){return Math.atan2(e-i,n-t)}},function(t,i){t.exports=function(t,i){return Math.atan2(i.y-t.y,i.x-t.x)}},function(t,i){t.exports=function(t,i){return Math.atan2(i.x-t.x,i.y-t.y)}},function(t,i){t.exports=function(t,i,n,e){return Math.atan2(n-t,e-i)}},function(t,i,n){var e=n(2);t.exports=function(t){return t>Math.PI&&(t-=e.PI2),Math.abs(((t+e.TAU)%e.PI2-e.PI2)%e.PI2)}},function(t,i,n){var e=n(7);t.exports=function(){return e(-Math.PI,Math.PI)}},function(t,i,n){var e=n(7);t.exports=function(){return e(-180,180)}},function(t,i,n){var e=n(14);t.exports=function(t){return e(t+Math.PI)}},function(t,i,n){var e=n(2);t.exports=function(t,i,n){return void 0===n&&(n=.05),t===i||(Math.abs(i-t)<=n||Math.abs(i-t)>=e.PI2-n?t=i:(Math.abs(i-t)>Math.PI&&(i<t?i+=e.PI2:i-=e.PI2),t<i?t+=n:i<t&&(t-=n))),t}},function(t,i){t.exports=function(t,i){var n=i-t;return 0==n?0:n-360*Math.floor((n+180)/360)}},function(t,i,n){t.exports={Between:n(60),BetweenPoints:n(61),BetweenPointsSquared:n(62),Chebyshev:n(63),Power:n(64),Snake:n(65),Squared:n(66)}},function(t,i){t.exports=function(t,i,n,e){var s=t-n,r=i-e;return Math.sqrt(s*s+r*r)}},function(t,i){t.exports=function(t,i){var n=t.x-i.x,e=t.y-i.y;return Math.sqrt(n*n+e*e)}},function(t,i){t.exports=function(t,i){var n=t.x-i.x,e=t.y-i.y;return n*n+e*e}},function(t,i){t.exports=function(t,i,n,e){return Math.max(Math.abs(t-n),Math.abs(i-e))}},function(t,i){t.exports=function(t,i,n,e,s){return void 0===s&&(s=2),Math.sqrt(Math.pow(n-t,s)+Math.pow(e-i,s))}},function(t,i){t.exports=function(t,i,n,e){return Math.abs(t-n)+Math.abs(i-e)}},function(t,i){t.exports=function(t,i,n,e){var s=t-n,r=i-e;return s*s+r*r}},function(t,i,n){t.exports={Back:n(68),Bounce:n(72),Circular:n(76),Cubic:n(80),Elastic:n(84),Expo:n(88),Linear:n(92),Quadratic:n(94),Quartic:n(98),Quintic:n(102),Sine:n(106),Stepped:n(110)}},function(t,i,n){t.exports={In:n(69),Out:n(70),InOut:n(71)}},function(t,i){t.exports=function(t,i){return void 0===i&&(i=1.70158),t*t*((i+1)*t-i)}},function(t,i){t.exports=function(t,i){return void 0===i&&(i=1.70158),--t*t*((i+1)*t+i)+1}},function(t,i){t.exports=function(t,i){void 0===i&&(i=1.70158);var n=1.525*i;return(t*=2)<1?t*t*((1+n)*t-n)*.5:.5*((t-=2)*t*((1+n)*t+n)+2)}},function(t,i,n){t.exports={In:n(73),Out:n(74),InOut:n(75)}},function(t,i){t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},function(t,i){t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},function(t,i){t.exports=function(t){var i=!1;return t<.5?(t=1-2*t,i=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,i?.5*(1-t):.5*t+.5}},function(t,i,n){t.exports={In:n(77),Out:n(78),InOut:n(79)}},function(t,i){t.exports=function(t){return 1-Math.sqrt(1-t*t)}},function(t,i){t.exports=function(t){return Math.sqrt(1- --t*t)}},function(t,i){t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},function(t,i,n){t.exports={In:n(81),Out:n(82),InOut:n(83)}},function(t,i){t.exports=function(t){return t*t*t}},function(t,i){t.exports=function(t){return--t*t*t+1}},function(t,i){t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},function(t,i,n){t.exports={In:n(85),Out:n(86),InOut:n(87)}},function(t,i){t.exports=function(t,i,n){if(void 0===i&&(i=.1),void 0===n&&(n=.1),0===t)return 0;if(1===t)return 1;var e=n/4;return i<1?i=1:e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n))}},function(t,i){t.exports=function(t,i,n){if(void 0===i&&(i=.1),void 0===n&&(n=.1),0===t)return 0;if(1===t)return 1;var e=n/4;return i<1?i=1:e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1}},function(t,i){t.exports=function(t,i,n){if(void 0===i&&(i=.1),void 0===n&&(n=.1),0===t)return 0;if(1===t)return 1;var e=n/4;return i<1?i=1:e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*.5+1}},function(t,i,n){t.exports={In:n(89),Out:n(90),InOut:n(91)}},function(t,i){t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},function(t,i){t.exports=function(t){return 1-Math.pow(2,-10*t)}},function(t,i){t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},function(t,i,n){t.exports=n(93)},function(t,i){t.exports=function(t){return t}},function(t,i,n){t.exports={In:n(95),Out:n(96),InOut:n(97)}},function(t,i){t.exports=function(t){return t*t}},function(t,i){t.exports=function(t){return t*(2-t)}},function(t,i){t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},function(t,i,n){t.exports={In:n(99),Out:n(100),InOut:n(101)}},function(t,i){t.exports=function(t){return t*t*t*t}},function(t,i){t.exports=function(t){return 1- --t*t*t*t}},function(t,i){t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},function(t,i,n){t.exports={In:n(103),Out:n(104),InOut:n(105)}},function(t,i){t.exports=function(t){return t*t*t*t*t}},function(t,i){t.exports=function(t){return--t*t*t*t*t+1}},function(t,i){t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},function(t,i,n){t.exports={In:n(107),Out:n(108),InOut:n(109)}},function(t,i){t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},function(t,i){t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},function(t,i){t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},function(t,i,n){t.exports=n(111)},function(t,i){t.exports=function(t,i){return void 0===i&&(i=1),t<=0?0:1<=t?1:1/i*(1+(i*t|0))}},function(t,i,n){t.exports={Ceil:n(113),Equal:n(17),Floor:n(114),GreaterThan:n(115),LessThan:n(116)}},function(t,i){t.exports=function(t,i){return void 0===i&&(i=1e-4),Math.ceil(t-i)}},function(t,i){t.exports=function(t,i){return void 0===i&&(i=1e-4),Math.floor(t+i)}},function(t,i){t.exports=function(t,i,n){return void 0===n&&(n=1e-4),i-n<t}},function(t,i){t.exports=function(t,i,n){return void 0===n&&(n=1e-4),t<i+n}},function(t,i,n){t.exports={Bezier:n(118),CatmullRom:n(119),CubicBezier:n(120),Linear:n(121),QuadraticBezier:n(122),SmoothStep:n(123),SmootherStep:n(124)}},function(t,i,n){var r=n(18);t.exports=function(t,i){for(var n=0,e=t.length-1,s=0;s<=e;s++)n+=Math.pow(1-i,e-s)*Math.pow(i,s)*t[s]*r(e,s);return n}},function(t,i,n){var r=n(20);t.exports=function(t,i){var n=t.length-1,e=n*i,s=Math.floor(e);return t[0]===t[n]?(i<0&&(s=Math.floor(e=n*(1+i))),r(e-s,t[(s-1+n)%n],t[s],t[(s+1)%n],t[(s+2)%n])):i<0?t[0]-(r(-e,t[0],t[0],t[1],t[1])-t[0]):1<i?t[n]-(r(e-n,t[n],t[n],t[n-1],t[n-1])-t[n]):r(e-s,t[s?s-1:0],t[s],t[n<s+1?n:s+1],t[n<s+2?n:s+2])}},function(t,i){t.exports=function(t,i,n,e,s){return(u=1-t)*u*u*i+3*(a=1-(h=t))*a*h*n+3*(1-(o=t))*o*o*e+(r=t)*r*r*s;var r,o,h,a,u}},function(t,i,n){var r=n(21);t.exports=function(t,i){var n=t.length-1,e=n*i,s=Math.floor(e);return i<0?r(t[0],t[1],e):1<i?r(t[n],t[n-1],n-e):r(t[s],t[n<s+1?n:s+1],e-s)}},function(t,i){t.exports=function(t,i,n,e){return(o=1-t)*o*i+2*(1-(r=t))*r*n+(s=t)*s*e;var s,r,o}},function(t,i,n){var e=n(22);t.exports=function(t,i,n){return i+(n-i)*e(t,0,1)}},function(t,i,n){var e=n(23);t.exports=function(t,i,n){return i+(n-i)*e(t,0,1)}},function(t,i,n){t.exports={GetNext:n(126),IsSize:n(127),IsValue:n(128)}},function(t,i){t.exports=function(t){var i=Math.log(t)/.6931471805599453;return 1<<Math.ceil(i)}},function(t,i){t.exports=function(t,i){return 0<t&&0==(t&t-1)&&0<i&&0==(i&i-1)}},function(t,i){t.exports=function(t){return 0<t&&0==(t&t-1)}},function(t,i,n){t.exports={Ceil:n(130),Floor:n(131),To:n(132)}},function(t,i){t.exports=function(t,i,n,e){return void 0===n&&(n=0),0===i?t:(t-=n,t=i*Math.ceil(t/i),e?(n+t)/i:n+t)}},function(t,i){t.exports=function(t,i,n,e){return void 0===n&&(n=0),0===i?t:(t-=n,t=i*Math.floor(t/i),e?(n+t)/i:n+t)}},function(t,i){t.exports=function(t,i,n,e){return void 0===n&&(n=0),0===i?t:(t-=n,t=i*Math.round(t/i),e?(n+t)/i:n+t)}},function(t,i,n){var e=new(n(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var i,n=this.n;t=t.toString();for(var e=0;e<t.length;e++)i=.02519603282416938*(n+=t.charCodeAt(e)),i-=n=i>>>0,n=(i*=n)>>>0,n+=4294967296*(i-=n);return 2.3283064365386963e-10*((this.n=n)>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var i=0;i<t.length&&null!=t[i];i++){var n=t[i];this.s0-=this.hash(n),this.s0+=~~(this.s0<0),this.s1-=this.hash(n),this.s1+=~~(this.s1<0),this.s2-=this.hash(n),this.s2+=~~(this.s2<0)}},integer:function(){return 4294967296*this.rnd()},frac:function(){return this.rnd()+11102230246251565e-32*(2097152*this.rnd()|0)},real:function(){return this.integer()+this.frac()},integerInRange:function(t,i){return Math.floor(this.realInRange(0,i-t+1)+t)},between:function(t,i){return Math.floor(this.realInRange(0,i-t+1)+t)},realInRange:function(t,i){return this.frac()*(i-t)+t},normal:function(){return 1-2*this.frac()},uuid:function(){for(var t="",i="",i=t="";t++<36;i+=~t%5|3*t&4?(15^t?8^this.frac()*(20^t?16:4):4).toString(16):"-");return i},pick:function(t){return t[this.integerInRange(0,t.length-1)]},sign:function(){return this.pick(this.signs)},weightedPick:function(t){return t[~~(Math.pow(this.frac(),2)*(t.length-1)+.5)]},timestamp:function(t,i){return this.realInRange(t||9466848e5,i||1577862e6)},angle:function(){return this.integerInRange(-180,180)},rotation:function(){return this.realInRange(-3.1415926,3.1415926)},state:function(t){return"string"==typeof t&&t.match(/^!rnd/)&&(t=t.split(","),this.c=parseFloat(t[1]),this.s0=parseFloat(t[2]),this.s1=parseFloat(t[3]),this.s2=parseFloat(t[4])),["!rnd",this.c,this.s0,this.s1,this.s2].join(",")},shuffle:function(t){for(var i=t.length-1;0<i;i--){var n=Math.floor(this.frac()*(i+1)),e=t[n];t[n]=t[i],t[i]=e}return t}});t.exports=e},function(t,i){t.exports=function(t){for(var i=0,n=0;n<t.length;n++)i+=+t[n];return i/t.length}},function(t,i){t.exports=function(t,i){return Math.floor(Math.random()*(i-t+1)+t)}},function(t,i){t.exports=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=10);var e=Math.pow(n,-i);return Math.ceil(t*e)/e}},function(t,i){t.exports=function(t,i){return Math.abs(t-i)}},function(t,i){t.exports=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=10);var e=Math.pow(n,-i);return Math.floor(t*e)/e}},function(t,i,n){var e=n(4);t.exports=function(t,i,n){return(n-i)*(t=e(t,0,1))}},function(t,i){t.exports=function(t,i){return t/i/1e3}},function(t,i){t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},function(t,i){t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},function(t,i){t.exports=function(t,i,n){return Math.min(t+i,n)}},function(t,i){t.exports=function(t,i,n){return Math.max(t-i,n)}},function(t,i){t.exports=function(t,i,n,e){void 0===n&&(n=i+1);var s=(t-i)/(n-i);return 1<s?void 0!==e?(s=(e-t)/(e-n))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,i,n){var e=n(2);t.exports=function(t){return t*e.RAD_TO_DEG}},function(t,i){t.exports=function(t,i){void 0===i&&(i=1);var n=2*Math.random()*Math.PI;return t.x=Math.cos(n)*i,t.y=Math.sin(n)*i,t}},function(t,i){t.exports=function(t,i){var n=t.x,e=t.y;return t.x=n*Math.cos(i)-e*Math.sin(i),t.y=n*Math.sin(i)+e*Math.cos(i),t}},function(t,i){t.exports=function(t,i,n,e,s){var r=e+Math.atan2(t.y-n,t.x-i);return t.x=i+s*Math.cos(r),t.y=n+s*Math.sin(r),t}},function(t,i){t.exports=function(t,i,n,e,s){return t.x=i+s*Math.cos(e),t.y=n+s*Math.sin(e),t}},function(t,i){t.exports=function(t){return 0<t?Math.ceil(t):Math.floor(t)}},function(t,i){t.exports=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=10);var e=Math.pow(n,-i);return Math.round(t*e)/e}},function(t,i){t.exports=function(t,i,n,e){void 0===i&&(i=1),void 0===n&&(n=1),void 0===e&&(e=1),e*=Math.PI/t;for(var s=[],r=[],o=0;o<t;o++)i+=(n-=i*e)*e,s[o]=n,r[o]=i;return{sin:r,cos:s,length:t}}},function(t,i,n){var o=n(1);t.exports=function(t,i,n,e){void 0===e&&(e=new o);var s=0,r=0;return 0<t&&t<=i*n&&(s=i-1<t?t-(r=Math.floor(t/i))*i:t,e.set(s,r)),e}},function(t,i){t.exports=function(t,i,n){return Math.abs(t-i)<=n}},function(t,i,n){var p=n(6);t.exports=function(t,i){var n,e,s,r,o,h,a,u,c,f=p(i,"anims",null);return null===f||("string"==typeof f?t.anims.play(f):"object"==typeof f&&(n=t.anims,e=p(f,"key",void 0),s=p(f,"startFrame",void 0),r=p(f,"delay",0),o=p(f,"repeat",0),h=p(f,"repeatDelay",0),a=p(f,"yoyo",!1),u=p(f,"play",!1),c=p(f,"delayedPlay",0),n.setDelay(r),n.setRepeat(o),n.setRepeatDelay(h),n.setYoyo(a),u?n.play(e,s):0<c?n.delayedPlay(c,e,s):n.load(e))),t}},function(t,i,n){var e=n(32),s=n(0),r=new(n(3)),o=new s({Extends:e,initialize:function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=0),e.call(this,t),this.viewportWidth=i,this.viewportHeight=n,this._zoom=1,this.near=0,this.update()},setToOrtho:function(t,i,n){void 0===i&&(i=this.viewportWidth),void 0===n&&(n=this.viewportHeight);var e=this.zoom;return this.up.set(0,t?-1:1,0),this.direction.set(0,0,t?1:-1),this.position.set(e*i/2,e*n/2,0),this.viewportWidth=i,this.viewportHeight=n,this.update()},update:function(){var t=this.viewportWidth,i=this.viewportHeight,n=Math.abs(this.near),e=Math.abs(this.far),s=this.zoom;return 0===t||0===i||(this.projection.ortho(s*-t/2,s*t/2,s*-i/2,s*i/2,n,e),r.copy(this.position).add(this.direction),this.view.lookAt(this.position,r,this.up),this.combined.copy(this.projection).multiply(this.view),this.invProjectionView.copy(this.combined).invert(),this.billboardMatrixDirty=!0,this.updateChildren()),this},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.update()}}});t.exports=o},function(t,i,n){var e=new(n(0))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var i=0;i<t.length;i++)this.set(t[i])},set:function(t){return-1===this.entries.indexOf(t)&&this.entries.push(t),this},get:function(t,i){for(var n=0;n<this.entries.length;n++){var e=this.entries[n];if(e[t]===i)return e}},getArray:function(){return this.entries.slice(0)},delete:function(t){var i=this.entries.indexOf(t);return-1<i&&this.entries.splice(i,1),this},dump:function(){console.group("Set");for(var t=0;t<this.entries.length;t++){var i=this.entries[t];console.log(i)}console.groupEnd()},each:function(t,i){var n,e=this.entries.slice(),s=e.length;if(i)for(n=0;n<s&&!1!==t.call(i,e[n],n);n++);else for(n=0;n<s&&!1!==t(e[n],n);n++);return this},iterate:function(t,i){var n,e=this.entries.length;if(i)for(n=0;n<e&&!1!==t.call(i,this.entries[n],n);n++);else for(n=0;n<e&&!1!==t(this.entries[n],n);n++);return this},iterateLocal:function(t){for(var i=[],n=1;n<arguments.length;n++)i.push(arguments[n]);var e=this.entries.length;for(n=0;n<e;n++){var s=this.entries[n];s[t].apply(s,i)}return this},clear:function(){return this.entries.length=0,this},contains:function(t){return-1<this.entries.indexOf(t)},union:function(t){var i=new e;return t.entries.forEach(function(t){i.set(t)}),this.entries.forEach(function(t){i.set(t)}),i},intersect:function(i){var n=new e;return this.entries.forEach(function(t){i.contains(t)&&n.set(t)}),n},difference:function(i){var n=new e;return this.entries.forEach(function(t){i.contains(t)||n.set(t)}),n},size:{get:function(){return this.entries.length},set:function(t){return t<this.entries.length?this.entries.length=t:this.entries.length}}});t.exports=e},function(t,i,n){var e=n(0),h=n(160),s=new e({initialize:function(t,i){this.parent=t,(this.events=i)||(this.events=t.events?t.events:t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once("destroy",this.destroy,this)},get:function(t){var i=this.list;if(Array.isArray(t)){for(var n=[],e=0;e<t.length;e++)n.push(i[t[e]]);return n}return i[t]},getAll:function(){var t={};for(var i in this.list)this.list.hasOwnProperty(i)&&(t[i]=this.list[i]);return t},query:function(t){var i={};for(var n in this.list)this.list.hasOwnProperty(n)&&n.match(t)&&(i[n]=this.list[n]);return i},set:function(t,i){if(this._frozen)return this;if("string"==typeof t)return this.setValue(t,i);for(var n in t)this.setValue(n,t[n]);return this},inc:function(t,i){if(this._frozen)return this;void 0===i&&(i=1);var n=this.get(t);return void 0===n&&(n=0),this.set(t,n+i),this},toggle:function(t){return this._frozen||this.set(t,!this.get(t)),this},setValue:function(n,t){return this._frozen||(this.has(n)?this.values[n]=t:(s=(e=this).list,r=this.events,o=this.parent,Object.defineProperty(this.values,n,{enumerable:!0,configurable:!0,get:function(){return s[n]},set:function(t){var i;e._frozen||(i=s[n],s[n]=t,r.emit(h.CHANGE_DATA,o,n,t,i),r.emit(h.CHANGE_DATA_KEY+n,o,t,i))}}),s[n]=t,r.emit(h.SET_DATA,o,n,t))),this;var e,s,r,o},each:function(t,i){for(var n=[this.parent,null,void 0],e=1;e<arguments.length;e++)n.push(arguments[e]);for(var s in this.list)n[1]=s,n[2]=this.list[s],t.apply(i,n);return this},merge:function(t,i){for(var n in void 0===i&&(i=!0),t)t.hasOwnProperty(n)&&(i||!i&&!this.has(n))&&this.setValue(n,t[n]);return this},remove:function(t){if(this._frozen)return this;if(!Array.isArray(t))return this.removeValue(t);for(var i=0;i<t.length;i++)this.removeValue(t[i]);return this},removeValue:function(t){var i;return this.has(t)&&(i=this.list[t],delete this.list[t],delete this.values[t],this.events.emit(h.REMOVE_DATA,this.parent,t,i)),this},pop:function(t){var i=void 0;return!this._frozen&&this.has(t)&&(i=this.list[t],delete this.list[t],delete this.values[t],this.events.emit(h.REMOVE_DATA,this.parent,t,i)),i},has:function(t){return this.list.hasOwnProperty(t)},setFreeze:function(t){return this._frozen=t,this},reset:function(){for(var t in this.list)delete this.list[t],delete this.values[t];return this._frozen=!1,this},destroy:function(){this.reset(),this.events.off(h.CHANGE_DATA),this.events.off(h.SET_DATA),this.events.off(h.REMOVE_DATA),this.parent=null},freeze:{get:function(){return this._frozen},set:function(t){this._frozen=!!t}},count:{get:function(){var t=0;for(var i in this.list)void 0!==this.list[i]&&t++;return t}}});t.exports=s},function(t,i,n){t.exports={CHANGE_DATA:n(161),CHANGE_DATA_KEY:n(162),REMOVE_DATA:n(163),SET_DATA:n(164)}},function(t,i){t.exports="changedata"},function(t,i){t.exports="changedata-"},function(t,i){t.exports="removedata"},function(t,i){t.exports="setdata"},function(t,i){t.exports="addedtoscene"},function(t,i){t.exports="destroy"},function(t,i){t.exports="removedfromscene"},function(t,i){t.exports="complete"},function(t,i){t.exports="created"},function(t,i){t.exports="error"},function(t,i){t.exports="loop"},function(t,i){t.exports="play"},function(t,i){t.exports="seeked"},function(t,i){t.exports="seeking"},function(t,i){t.exports="stop"},function(t,i){t.exports="timeout"},function(t,i){t.exports="unlocked"},function(t,i,n){var e=n(0),r=n(179),o=n(34),h=n(37),s=n(252),a=new e({Extends:o,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,s],initialize:function(t,i,n,e,s){o.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new r.Animation(this),this.setTexture(e,s),this.setPosition(i,n),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.on(h.ADDED_TO_SCENE,this.addedToScene,this),this.on(h.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,i){this.anims.update(t,i)},play:function(t,i,n){return this.anims.play(t,i,n),this},toJSON:function(){return r.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,i,n){t.exports={Alpha:n(180),AlphaSingle:n(181),Animation:n(182),BlendMode:n(204),ComputedSize:n(205),Crop:n(206),Depth:n(207),Flip:n(208),GetBounds:n(209),Mask:n(219),Origin:n(239),PathFollower:n(240),Pipeline:n(243),ScrollFactor:n(244),Size:n(245),Texture:n(246),TextureCrop:n(247),Tint:n(248),ToJSON:n(35),Transform:n(250),TransformMatrix:n(41),Visible:n(251)}},function(t,i,n){var s=n(4),e={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,i,n,e){return void 0===t&&(t=1),void 0===i?this.alpha=t:(this._alphaTL=s(t,0,1),this._alphaTR=s(i,0,1),this._alphaBL=s(n,0,1),this._alphaBR=s(e,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){var i=s(t,0,1);this._alpha=i,this._alphaTL=i,this._alphaTR=i,this._alphaBL=i,0===(this._alphaBR=i)?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){var i=s(t,0,1);0!==(this._alphaTL=i)&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){var i=s(t,0,1);0!==(this._alphaTR=i)&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){var i=s(t,0,1);0!==(this._alphaBL=i)&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){var i=s(t,0,1);0!==(this._alphaBR=i)&&(this.renderFlags|=2)}}};t.exports=e},function(t,i,n){var e=n(4),s={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return void 0===t&&(t=1),this.alpha=t,this},alpha:{get:function(){return this._alpha},set:function(t){var i=e(t,0,1);0===(this._alpha=i)?this.renderFlags&=-3:this.renderFlags|=2}}};t.exports=s},function(t,i,n){var e=n(183),s=n(0),r=n(38),o=new s({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.once(r.REMOVE_ANIMATION,this.remove,this),this.isPlaying=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this._timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this._delay=0,this._repeat=0,this._repeatDelay=0,this._yoyo=!1,this.forward=!0,this._reverse=!1,this.accumulator=0,this.nextTick=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(t){return t instanceof e&&(t=t.key),null===this.nextAnim?this.nextAnim=t:this.nextAnimsQueue.push(t),this.parent},setDelay:function(t){return void 0===t&&(t=0),this._delay=t,this.parent},getDelay:function(){return this._delay},delayedPlay:function(t,i,n){return this.play(i,!0,n),this.nextTick+=t,this.parent},getCurrentKey:function(){if(this.currentAnim)return this.currentAnim.key},load:function(t,i){return void 0===i&&(i=0),this.isPlaying&&this.stop(),this.animationManager.load(this,t,i),this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.updateFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.updateFrame(t),this.parent},isPaused:{get:function(){return this._paused}},play:function(t,i,n){return void 0===i&&(i=!1),void 0===n&&(n=0),t instanceof e&&(t=t.key),i&&this.isPlaying&&this.currentAnim.key===t?this.parent:(this.forward=!0,this._reverse=!1,this._paused=!1,this._wasPlaying=!0,this._startAnimation(t,n))},playReverse:function(t,i,n){return void 0===i&&(i=!1),void 0===n&&(n=0),t instanceof e&&(t=t.key),i&&this.isPlaying&&this.currentAnim.key===t?this.parent:(this.forward=!1,this._reverse=!0,this._startAnimation(t,n))},_startAnimation:function(t,i){this.load(t,i);var n=this.currentAnim,e=this.parent;if(!n)return e;this.repeatCounter=-1===this._repeat?Number.MAX_VALUE:this._repeat,n.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,n.showOnStart&&(e.visible=!0);var s=this.currentFrame;return n.emit(r.ANIMATION_START,n,s,e),e.emit(r.SPRITE_ANIMATION_KEY_START+t,n,s,e),e.emit(r.SPRITE_ANIMATION_START,n,s,e),e},reverse:function(){return this.isPlaying&&(this._reverse=!this._reverse,this.forward=!this.forward),this.parent},getProgress:function(){var t=this.currentFrame.progress;return this.forward||(t=1-t),t},setProgress:function(t){return this.forward||(t=1-t),this.setCurrentFrame(this.currentAnim.getFrameByProgress(t)),this.parent},remove:function(t,i){void 0===i&&(i=this.currentAnim),this.isPlaying&&i.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},getRepeat:function(){return this._repeat},setRepeat:function(t){return this._repeat=t,this.repeatCounter=-1===t?Number.MAX_VALUE:t,this.parent},getRepeatDelay:function(){return this._repeatDelay},setRepeatDelay:function(t){return this._repeatDelay=t,this.parent},restart:function(t){void 0===t&&(t=!1);var i=this.currentAnim;i.getFirstTick(this,t),this.forward=!0,this.isPlaying=!0,this.pendingRepeat=!1,this._paused=!1,this.updateFrame(i.frames[0]);var n=this.parent,e=this.currentFrame;return i.emit(r.ANIMATION_RESTART,i,e,n),n.emit(r.SPRITE_ANIMATION_KEY_RESTART+i.key,i,e,n),n.emit(r.SPRITE_ANIMATION_RESTART,i,e,n),this.parent},stop:function(){this._pendingStop=0,this.isPlaying=!1;var t,i=this.parent,n=this.currentAnim,e=this.currentFrame;return n&&(n.emit(r.ANIMATION_COMPLETE,n,e,i),i.emit(r.SPRITE_ANIMATION_KEY_COMPLETE+n.key,n,e,i),i.emit(r.SPRITE_ANIMATION_COMPLETE,n,e,i)),this.nextAnim&&(t=this.nextAnim,this.nextAnim=0<this.nextAnimsQueue.length?this.nextAnimsQueue.shift():null,this.play(t)),i},stopAfterDelay:function(t){return this._pendingStop=1,this._pendingStopValue=t,this.parent},stopOnRepeat:function(){return this._pendingStop=2,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},setTimeScale:function(t){return void 0===t&&(t=1),this._timeScale=t,this.parent},getTimeScale:function(){return this._timeScale},getTotalFrames:function(){return this.currentAnim.frames.length},update:function(t,i){if(this.currentAnim&&this.isPlaying&&!this.currentAnim.paused){if(this.accumulator+=i*this._timeScale,1===this._pendingStop&&(this._pendingStopValue-=i,this._pendingStopValue<=0))return this.currentAnim.completeAnimation(this);this.accumulator>=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var i=this.parent;return this.currentFrame=t,i.texture=t.frame.texture,i.frame=t.frame,i.isCropped&&i.frame.updateCropUVs(i._crop,i.flipX,i.flipY),i.setSizeToFrame(),i._originComponent&&(t.frame.customPivot?i.setOrigin(t.frame.pivotX,t.frame.pivotY):i.updateDisplayOrigin()),i},updateFrame:function(t){var i,n=this.setCurrentFrame(t);this.isPlaying&&(t.setAlpha&&(n.alpha=t.alpha),i=this.currentAnim,n.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,n),n.emit(r.SPRITE_ANIMATION_UPDATE,i,t,n),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this))},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,i,n){var e=n(4),s=n(0),r=n(36),o=n(38),h=n(202),y=n(203),x=n(11),a=new s({Extends:r,initialize:function(t,i,n){r.call(this),this.manager=t,this.key=i,this.type="frame",this.frames=this.getFrames(t.textureManager,x(n,"frames",[]),x(n,"defaultTextureKey",null)),this.frameRate=x(n,"frameRate",null),this.duration=x(n,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=x(n,"skipMissedFrames",!0),this.delay=x(n,"delay",0),this.repeat=x(n,"repeat",0),this.repeatDelay=x(n,"repeatDelay",0),this.yoyo=x(n,"yoyo",!1),this.showOnStart=x(n,"showOnStart",!1),this.hideOnComplete=x(n,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,i){var n,e,s=this.getFrames(this.manager.textureManager,i);return 0<s.length&&(0===t?this.frames=s.concat(this.frames):t===this.frames.length?this.frames=this.frames.concat(s):(n=this.frames.slice(0,t),e=this.frames.slice(t),this.frames=n.concat(s,e)),this.updateFrameSequence()),this},checkFrame:function(t){return 0<=t&&t<this.frames.length},completeAnimation:function(t){this.hideOnComplete&&(t.parent.visible=!1),t.stop()},getFirstTick:function(t,i){void 0===i&&(i=!0),t.accumulator=0,t.nextTick=t.msPerFrame+t.currentFrame.duration,i&&(t.nextTick+=t._delay)},getFrameAt:function(t){return this.frames[t]},getFrames:function(t,n,i){var e,s,r,o=[],h=1;if("string"==typeof n&&(s=n,r=t.get(s).getFrameNames(),n=[],r.forEach(function(t,i){n.push({key:s,frame:i})})),!Array.isArray(n)||0===n.length)return o;for(d=0;d<n.length;d++){var a,u,c,f=n[d],p=x(f,"key",i);p&&(a=x(f,"frame",0),u=t.getFrame(p,a),(c=new y(p,a,h,u)).duration=x(f,"duration",0),c.isFirst=!e,e&&((e.nextFrame=c).prevFrame=e),o.push(c),e=c,h++)}if(0<o.length){c.isLast=!0,c.nextFrame=o[0],o[0].prevFrame=c;for(var l=1/(o.length-1),d=0;d<o.length;d++)o[d].progress=d*l}return o},getNextTick:function(t){t.accumulator-=t.nextTick,t.nextTick=t.msPerFrame+t.currentFrame.duration},load:function(t,i){i>=this.frames.length&&(i=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var n=this.frames[i];0!==i||t.forward||(n=this.getLastFrame()),t.updateFrame(n)},getFrameByProgress:function(t){return t=e(t,0,1),h(t,this.frames,"progress")},nextFrame:function(t){var i=t.currentFrame;i.isLast?t._yoyo?this.handleYoyoFrame(t,!1):0<t.repeatCounter?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,i.nextFrame)},handleYoyoFrame:function(t,i){if(i=i||!1,t._reverse===!i&&0<t.repeatCounter)return t._repeatDelay&&!t.pendingRepeat||(t.forward=i),void this.repeatAnimation(t);var n;t._reverse===i||0!==t.repeatCounter?(n=(t.forward=i)?t.currentFrame.nextFrame:t.currentFrame.prevFrame,this.updateAndGetNextTick(t,n)):this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var i=t.currentFrame;i.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):0<t.repeatCounter?(t._reverse&&!t.forward?t.currentFrame=this.getLastFrame():t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,i.prevFrame)},updateAndGetNextTick:function(t,i){t.updateFrame(i),this.getNextTick(t)},removeFrame:function(t){var i=this.frames.indexOf(t);return-1!==i&&this.removeFrameAt(i),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);var i,n;0<t._repeatDelay&&!1===t.pendingRepeat?(t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay):(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying&&(this.getNextTick(t),t.pendingRepeat=!1,i=t.currentFrame,n=t.parent,this.emit(o.ANIMATION_REPEAT,this,i),n.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,i,t.repeatCounter,n),n.emit(o.SPRITE_ANIMATION_REPEAT,this,i,t.repeatCounter,n)))},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var i={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(t){i.frames.push(t.toJSON())}),i},updateFrameSequence:function(){for(var t,i=this.frames.length,n=1/(i-1),e=0;e<i;e++)(t=this.frames[e]).index=e+1,t.isFirst=!1,t.isLast=!1,t.progress=e*n,0===e?(t.isFirst=!0,1===i?(t.isLast=!0,(t.nextFrame=t).prevFrame=t):(t.isLast=!1,t.prevFrame=this.frames[i-1],t.nextFrame=this.frames[e+1])):e===i-1&&1<i?(t.isLast=!0,t.prevFrame=this.frames[i-2],t.nextFrame=this.frames[0]):1<i&&(t.prevFrame=this.frames[e-1],t.nextFrame=this.frames[e+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t<this.frames.length;t++)this.frames[t].destroy();this.frames=[],this.manager=null}});t.exports=a},function(t,i){t.exports="add"},function(t,i){t.exports="complete"},function(t,i){t.exports="repeat"},function(t,i){t.exports="restart"},function(t,i){t.exports="start"},function(t,i){t.exports="pauseall"},function(t,i){t.exports="remove"},function(t,i){t.exports="resumeall"},function(t,i){t.exports="animationcomplete"},function(t,i){t.exports="animationcomplete-"},function(t,i){t.exports="animationrepeat-"},function(t,i){t.exports="animationrestart-"},function(t,i){t.exports="animationstart-"},function(t,i){t.exports="animationupdate-"},function(t,i){t.exports="animationrepeat"},function(t,i){t.exports="animationrestart"},function(t,i){t.exports="animationstart"},function(t,i){t.exports="animationupdate"},function(t,i){t.exports=function(t,i,n){if(!i.length)return NaN;if(1===i.length)return i[0];var e,s,r=1;if(n){if(t<i[0][n])return i[0];for(;i[r][n]<t;)r++}else for(;i[r]<t;)r++;return r>i.length&&(r=i.length),n?(e=i[r-1][n],(s=i[r][n])-t<=t-e?i[r]:i[r-1]):(e=i[r-1],(s=i[r])-t<=t-e?s:e)}},function(t,i,n){var e=new(n(0))({initialize:function(t,i,n,e){this.textureKey=t,this.textureFrame=i,this.index=n,this.frame=e,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=e},function(t,i,n){var e=n(13),s={_blendMode:e.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=e[t]),-1<=(t|=0)&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,i){t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,i){return this.width=t,this.height=i,this},setDisplaySize:function(t,i){return this.displayWidth=t,this.displayHeight=i,this}}},function(t,i){var n={texture:null,frame:null,isCropped:!1,setCrop:function(t,i,n,e){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,i,n,e,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};t.exports=n},function(t,i){var n={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=n},function(t,i){t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,i){return this.flipX=t,this.flipY=i,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},function(t,i,n){var c=n(210),e=n(27),s=n(1),r={prepareBoundsOutput:function(t,i){return void 0===i&&(i=!1),0!==this.rotation&&e(t,this.x,this.y,this.rotation),i&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t){return void 0===t&&(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,t},getTopLeft:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,i)},getTopCenter:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,i)},getTopRight:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,i)},getLeftCenter:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,i)},getRightCenter:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,i)},getBottomLeft:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,i)},getBottomCenter:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,i)},getBottomRight:function(t,i){return(t=t||new s).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,i)},getBounds:function(t){var i,n,e,s,r,o,h,a,u;return void 0===t&&(t=new c),a=(h=(this.parentContainer?(u=this.parentContainer.getBoundsTransformMatrix(),this.getTopLeft(t),u.transformPoint(t.x,t.y,t),i=t.x,n=t.y,this.getTopRight(t),u.transformPoint(t.x,t.y,t),e=t.x,s=t.y,this.getBottomLeft(t),u.transformPoint(t.x,t.y,t),r=t.x,o=t.y,this.getBottomRight(t),u.transformPoint(t.x,t.y,t)):(this.getTopLeft(t),i=t.x,n=t.y,this.getTopRight(t),e=t.x,s=t.y,this.getBottomLeft(t),r=t.x,o=t.y,this.getBottomRight(t)),t.x),t.y),t.x=Math.min(i,e,r,h),t.y=Math.min(n,s,o,a),t.width=Math.max(i,e,r,h)-t.x,t.height=Math.max(n,s,o,a)-t.y,t}};t.exports=r},function(t,i,n){var e=n(0),s=n(211),r=n(39),o=n(212),h=n(12),a=n(213),u=n(218),c=new e({initialize:function(t,i,n,e){void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===e&&(e=0),this.type=h.RECTANGLE,this.x=t,this.y=i,this.width=n,this.height=e},contains:function(t,i){return s(this,t,i)},getPoint:function(t,i){return r(this,t,i)},getPoints:function(t,i,n){return o(this,t,i,n)},getRandomPoint:function(t){return u(this,t)},setTo:function(t,i,n,e){return this.x=t,this.y=i,this.width=n,this.height=e,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,i){return void 0===i&&(i=t),this.x=t,this.y=i,this},setSize:function(t,i){return void 0===i&&(i=t),this.width=t,this.height=i,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return void 0===t&&(t=new a),t.setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return void 0===t&&(t=new a),t.setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return void 0===t&&(t=new a),t.setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return void 0===t&&(t=new a),t.setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=c},function(t,i){t.exports=function(t,i,n){return!(t.width<=0||t.height<=0)&&(t.x<=i&&t.x+t.width>=i&&t.y<=n&&t.y+t.height>=n)}},function(t,i,n){var o=n(39),h=n(40);t.exports=function(t,i,n,e){void 0===e&&(e=[]),!i&&0<n&&(i=h(t)/n);for(var s=0;s<i;s++){var r=s/i;e.push(o(t,r))}return e}},function(t,i,n){var e=n(0),s=n(214),r=n(215),o=n(12),h=n(217),a=n(1),u=new e({initialize:function(t,i,n,e){void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===e&&(e=0),this.type=o.LINE,this.x1=t,this.y1=i,this.x2=n,this.y2=e},getPoint:function(t,i){return s(this,t,i)},getPoints:function(t,i,n){return r(this,t,i,n)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,i,n,e){return void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===e&&(e=0),this.x1=t,this.y1=i,this.x2=n,this.y2=e,this},getPointA:function(t){return void 0===t&&(t=new a),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new a),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=u},function(t,i,n){var e=n(5);t.exports=function(t,i,n){return void 0===n&&(n=new e),n.x=t.x1+(t.x2-t.x1)*i,n.y=t.y1+(t.y2-t.y1)*i,n}},function(t,i,n){var p=n(216),l=n(5);t.exports=function(t,i,n,e){void 0===e&&(e=[]),!i&&0<n&&(i=p(t)/n);for(var s=t.x1,r=t.y1,o=t.x2,h=t.y2,a=0;a<i;a++){var u=a/i,c=s+(o-s)*u,f=r+(h-r)*u;e.push(new l(c,f))}return e}},function(t,i){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,i,n){var e=n(5);t.exports=function(t,i){void 0===i&&(i=new e);var n=Math.random();return i.x=t.x1+n*(t.x2-t.x1),i.y=t.y1+n*(t.y2-t.y1),i}},function(t,i,n){var e=n(5);t.exports=function(t,i){return void 0===i&&(i=new e),i.x=t.x+Math.random()*t.width,i.y=t.y+Math.random()*t.height,i}},function(t,i,n){var e=n(220),s=n(238),r={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t){return void 0===t&&(this.texture||this.shader)&&(t=this),new e(this.scene,t)},createGeometryMask:function(t){return void 0===t&&"Graphics"===this.type&&(t=this),new s(this.scene,t)}};t.exports=r},function(t,i,n){var e=n(0),u=n(221),s=new e({initialize:function(t,i){var n,e,s,r,o,h,a=t.sys.game.renderer;this.renderer=a,this.bitmapMask=i,this.maskTexture=null,this.mainTexture=null,this.dirty=!0,this.mainFramebuffer=null,this.maskFramebuffer=null,this.prevFramebuffer=null,this.invertAlpha=!1,this.isStencil=!1,a&&a.gl&&(n=a.width,e=a.height,s=0==(n&n-1)&&0==(e&e-1),r=a.gl,o=s?r.REPEAT:r.CLAMP_TO_EDGE,h=r.LINEAR,this.mainTexture=a.createTexture2D(0,h,h,o,o,r.RGBA,null,n,e),this.maskTexture=a.createTexture2D(0,h,h,o,o,r.RGBA,null,n,e),this.mainFramebuffer=a.createFramebuffer(n,e,this.mainTexture,!0),this.maskFramebuffer=a.createFramebuffer(n,e,this.maskTexture,!0),t.sys.game.events.on(u.CONTEXT_RESTORED,function(t){var i=t.width,n=t.height,e=0==(i&i-1)&&0==(n&n-1),s=t.gl,r=e?s.REPEAT:s.CLAMP_TO_EDGE,o=s.LINEAR;this.mainTexture=t.createTexture2D(0,o,o,r,r,s.RGBA,null,i,n),this.maskTexture=t.createTexture2D(0,o,o,r,r,s.RGBA,null,i,n),this.mainFramebuffer=t.createFramebuffer(i,n,this.mainTexture,!0),this.maskFramebuffer=t.createFramebuffer(i,n,this.maskTexture,!0)},this))},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,i,n){t.pipelines.BitmapMaskPipeline.beginMask(this,i,n)},postRenderWebGL:function(t,i){t.pipelines.BitmapMaskPipeline.endMask(this,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null;var t=this.renderer;t&&t.gl&&(t.deleteTexture(this.mainTexture),t.deleteTexture(this.maskTexture),t.deleteFramebuffer(this.mainFramebuffer),t.deleteFramebuffer(this.maskFramebuffer)),this.mainTexture=null,this.maskTexture=null,this.mainFramebuffer=null,this.maskFramebuffer=null,this.prevFramebuffer=null,this.renderer=null}});t.exports=s},function(t,i,n){t.exports={BLUR:n(222),BOOT:n(223),CONTEXT_LOST:n(224),CONTEXT_RESTORED:n(225),DESTROY:n(226),FOCUS:n(227),HIDDEN:n(228),PAUSE:n(229),POST_RENDER:n(230),POST_STEP:n(231),PRE_RENDER:n(232),PRE_STEP:n(233),READY:n(234),RESUME:n(235),STEP:n(236),VISIBLE:n(237)}},function(t,i){t.exports="blur"},function(t,i){t.exports="boot"},function(t,i){t.exports="contextlost"},function(t,i){t.exports="contextrestored"},function(t,i){t.exports="destroy"},function(t,i){t.exports="focus"},function(t,i){t.exports="hidden"},function(t,i){t.exports="pause"},function(t,i){t.exports="postrender"},function(t,i){t.exports="poststep"},function(t,i){t.exports="prerender"},function(t,i){t.exports="prestep"},function(t,i){t.exports="ready"},function(t,i){t.exports="resume"},function(t,i){t.exports="step"},function(t,i){t.exports="visible"},function(t,i,n){var e=new(n(0))({initialize:function(t,i){this.geometryMask=i,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return void 0===t&&(t=!0),this.invertAlpha=t,this},preRenderWebGL:function(t,i,n){var e=t.gl;t.flush(),0===t.maskStack.length&&(e.enable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:n}),this.applyStencil(t,n,!0),t.maskCount++},applyStencil:function(t,i,n){var e=t.gl,s=this.geometryMask,r=t.maskCount;e.colorMask(!1,!1,!1,!1),n?(e.stencilFunc(e.EQUAL,r,255),e.stencilOp(e.KEEP,e.KEEP,e.INCR)):(e.stencilFunc(e.EQUAL,r+1,255),e.stencilOp(e.KEEP,e.KEEP,e.DECR)),s.renderWebGL(t,s,0,i),t.flush(),e.colorMask(!0,!0,!0,!0),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),n?this.invertAlpha?e.stencilFunc(e.NOTEQUAL,r+1,255):e.stencilFunc(e.EQUAL,r+1,255):this.invertAlpha?e.stencilFunc(e.NOTEQUAL,r,255):e.stencilFunc(e.EQUAL,r,255)},postRenderWebGL:function(t){var i,n=t.gl;t.maskStack.pop(),t.maskCount--,0===t.maskStack.length?(t.flush(),t.currentMask.mask=null,n.disable(n.STENCIL_TEST)):(t.flush(),(i=t.maskStack[t.maskStack.length-1]).mask.applyStencil(t,i.camera,!1),t.currentCameraMask.mask!==i.mask?(t.currentMask.mask=i.mask,t.currentMask.camera=i.camera):t.currentMask.mask=null)},preRenderCanvas:function(t,i,n){var e=this.geometryMask;t.currentContext.save(),e.renderCanvas(t,e,0,n,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=e},function(t,i){var n={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,i){return void 0===t&&(t=.5),void 0===i&&(i=t),this.originX=t,this.originY=i,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,i){return void 0===t&&(t=0),void 0===i&&(i=t),this.displayOriginX=t,this.displayOriginY=i,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}};t.exports=n},function(t,i,n){var a=n(24),o=n(241),h=n(11),u=n(242),c=n(1),e={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:u.PLAYING_FORWARD,setPath:function(t,i){void 0===i&&(i=this.pathConfig);var n=this.pathTween;return n&&n.isPlaying()&&n.stop(),this.path=t,i&&this.startFollow(i),this},setRotateToPath:function(t,i){return void 0===i&&(i=0),this.rotateToPath=t,this.pathRotationOffset=i,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,i){void 0===t&&(t={}),void 0===i&&(i=0);var n=this.pathTween;n&&n.isPlaying()&&n.stop(),"number"==typeof t&&(t={duration:t}),t.from=h(t,"from",0),t.to=h(t,"to",1);var e=o(t,"positionOnPath",!1);this.rotateToPath=o(t,"rotateToPath",!1),this.pathRotationOffset=h(t,"rotationOffset",0);var s,r=h(t,"startAt",i);return r&&(t.onStart=function(t){var i=t.data[0];i.progress=r,i.elapsed=i.duration*r;var n=i.ease(i.progress);i.current=i.start+(i.end-i.start)*n,i.target[i.key]=i.current}),this.pathOffset||(this.pathOffset=new c(this.x,this.y)),this.pathVector||(this.pathVector=new c),this.pathDelta||(this.pathDelta=new c),this.pathDelta.reset(),this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),e&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=u.PLAYING_FORWARD,this.rotateToPath&&(s=this.path.getPoint(.1),this.rotation=Math.atan2(s.y-this.y,s.x-this.x)+a(this.pathRotationOffset)),this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t=this.pathTween;if(t){var i=t.data[0],n=this.pathDelta,e=this.pathVector;if(n.copy(e).negate(),i.state===u.COMPLETE)return this.path.getPoint(1,e),n.add(e),e.add(this.pathOffset),void this.setPosition(e.x,e.y);if(i.state!==u.PLAYING_FORWARD&&i.state!==u.PLAYING_BACKWARD)return;this.path.getPoint(t.getValue(),e),n.add(e),e.add(this.pathOffset);var s=this.x,r=this.y;this.setPosition(e.x,e.y);var o=this.x-s,h=this.y-r;if(0==o&&0==h)return;if(i.state!==this._prevDirection)return void(this._prevDirection=i.state);this.rotateToPath&&(this.rotation=Math.atan2(h,o)+a(this.pathRotationOffset))}}};t.exports=e},function(t,i){t.exports=function(t,i,n){return t&&t.hasOwnProperty(i)?t[i]:n}},function(t,i){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,i){var n={defaultPipeline:null,pipeline:null,initPipeline:function(t){void 0===t&&(t="MultiPipeline");var i=this.scene.sys.game.renderer;return!!(i&&i.gl&&i.hasPipeline(t))&&(this.defaultPipeline=i.getPipeline(t),this.pipeline=this.defaultPipeline,!0)},setPipeline:function(t){var i=this.scene.sys.game.renderer;return i&&i.gl&&i.hasPipeline(t)&&(this.pipeline=i.getPipeline(t)),this},resetPipeline:function(){return this.pipeline=this.defaultPipeline,null!==this.pipeline},getPipelineName:function(){return this.pipeline.name}};t.exports=n},function(t,i){var n={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,i){return void 0===i&&(i=t),this.scrollFactorX=t,this.scrollFactorY=i,this}};t.exports=n},function(t,i){var n={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){return void 0===t&&(t=this.frame),this.width=t.realWidth,this.height=t.realHeight,this},setSize:function(t,i){return this.width=t,this.height=i,this},setDisplaySize:function(t,i){return this.displayWidth=t,this.displayHeight=i,this}};t.exports=n},function(t,i){var n={texture:null,frame:null,isCropped:!1,setTexture:function(t,i){return this.texture=this.scene.sys.textures.get(t),this.setFrame(i)},setFrame:function(t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=!0),this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&i&&this.setSizeToFrame(),this._originComponent&&n&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};t.exports=n},function(t,i){var n={texture:null,frame:null,isCropped:!1,setCrop:function(t,i,n,e){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,i,n,e,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},setTexture:function(t,i){return this.texture=this.scene.sys.textures.get(t),this.setFrame(i)},setFrame:function(t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=!0),this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&i&&this.setSizeToFrame(),this._originComponent&&n&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};t.exports=n},function(t,i,n){var s=n(249),e={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,i,n,e){return void 0===t&&(t=16777215),void 0===i&&(e=n=i=t),this._tintTL=s(t),this._tintTR=s(i),this._tintBL=s(n),this._tintBR=s(e),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,i,n,e){return this.setTint(t,i,n,e),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=s(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=s(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=s(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=s(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=e},function(t,i){t.exports=function(t){return(t>>16)+(65280&t)+((255&t)<<16)}},function(t,i,n){var e=n(2),s=n(41),a=n(28),r=n(15),o=n(16),u=n(1),h={_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){0===(this._scaleX=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleY:{get:function(){return this._scaleY},set:function(t){0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},angle:{get:function(){return o(this._rotation*e.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*e.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=r(t)}},setPosition:function(t,i,n,e){return void 0===t&&(t=0),void 0===i&&(i=t),void 0===n&&(n=0),void 0===e&&(e=0),this.x=t,this.y=i,this.z=n,this.w=e,this},setRandomPosition:function(t,i,n,e){return void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=this.scene.sys.scale.width),void 0===e&&(e=this.scene.sys.scale.height),this.x=t+Math.random()*n,this.y=i+Math.random()*e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,this},setScale:function(t,i){return void 0===t&&(t=1),void 0===i&&(i=t),this.scaleX=t,this.scaleY=i,this},setX:function(t){return void 0===t&&(t=0),this.x=t,this},setY:function(t){return void 0===t&&(t=0),this.y=t,this},setZ:function(t){return void 0===t&&(t=0),this.z=t,this},setW:function(t){return void 0===t&&(t=0),this.w=t,this},getLocalTransformMatrix:function(t){return void 0===t&&(t=new s),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,i){void 0===t&&(t=new s),void 0===i&&(i=new s);var n=this.parentContainer;if(!n)return this.getLocalTransformMatrix(t);for(t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);n;)i.applyITRS(n.x,n.y,n._rotation,n._scaleX,n._scaleY),i.multiply(t,t),n=n.parentContainer;return t},getLocalPoint:function(t,i,n,e){n=n||new u;var s=(e=e||this.scene.sys.cameras.main).scrollX,r=e.scrollY,o=t+s*this.scrollFactorX-s,h=i+r*this.scrollFactorY-r;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(o,h,n):a(o,h,this.x,this.y,this.rotation,this.scaleX,this.scaleY,n),this._originComponent&&(n.x+=this._displayOriginX,n.y+=this._displayOriginY),n},getParentRotation:function(){for(var t=0,i=this.parentContainer;i;)t+=i.rotation,i=i.parentContainer;return t}};t.exports=h},function(t,i){var n={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}};t.exports=n},function(t,i,n){var e=n(42),s=n(42),e=n(253),s=n(254);t.exports={renderWebGL:e,renderCanvas:s}},function(t,i){t.exports=function(t,i,n,e,s){this.pipeline.batchSprite(i,e,s)}},function(t,i){t.exports=function(t,i,n,e,s){t.batchSprite(i,i.frame,e,s)}},function(t,i,n){var s=n(32),e=n(0),r=new(n(3)),o=new e({Extends:s,initialize:function(t,i,n,e){void 0===i&&(i=80),void 0===n&&(n=0),void 0===e&&(e=0),s.call(this,t),this.viewportWidth=n,this.viewportHeight=e,this.fieldOfView=i*Math.PI/180,this.update()},setFOV:function(t){return this.fieldOfView=t*Math.PI/180,this},update:function(){var t=this.viewportWidth/this.viewportHeight;return this.projection.perspective(this.fieldOfView,t,Math.abs(this.near),Math.abs(this.far)),r.copy(this.position).add(this.direction),this.view.lookAt(this.position,r,this.up),this.combined.copy(this.projection).multiply(this.view),this.invProjectionView.copy(this.combined).invert(),this.billboardMatrixDirty=!0,this.updateChildren(),this}});t.exports=o},function(t,i,n){var e=n(257),s=n(0),r=n(258),o=new s({Extends:e,initialize:function(t,i){e.call(this,i),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,i,n){var e=new(n(0))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=e},function(t,i,n){t.exports={ADDED_TO_SCENE:n(259),BOOT:n(260),CREATE:n(261),DESTROY:n(262),PAUSE:n(263),POST_UPDATE:n(264),PRE_UPDATE:n(265),READY:n(266),REMOVED_FROM_SCENE:n(267),RENDER:n(268),RESUME:n(269),SHUTDOWN:n(270),SLEEP:n(271),START:n(272),TRANSITION_COMPLETE:n(273),TRANSITION_INIT:n(274),TRANSITION_OUT:n(275),TRANSITION_START:n(276),TRANSITION_WAKE:n(277),UPDATE:n(278),WAKE:n(279)}},function(t,i){t.exports="addedtoscene"},function(t,i){t.exports="boot"},function(t,i){t.exports="create"},function(t,i){t.exports="destroy"},function(t,i){t.exports="pause"},function(t,i){t.exports="postupdate"},function(t,i){t.exports="preupdate"},function(t,i){t.exports="ready"},function(t,i){t.exports="removedfromscene"},function(t,i){t.exports="render"},function(t,i){t.exports="resume"},function(t,i){t.exports="shutdown"},function(t,i){t.exports="sleep"},function(t,i){t.exports="start"},function(t,i){t.exports="transitioncomplete"},function(t,i){t.exports="transitioninit"},function(t,i){t.exports="transitionout"},function(t,i){t.exports="transitionstart"},function(t,i){t.exports="transitionwake"},function(t,i){t.exports="update"},function(t,i){t.exports="wake"}]); |