mirror of
https://github.com/photonstorm/phaser
synced 2024-12-28 22:13:44 +00:00
1 line
No EOL
79 KiB
JavaScript
1 line
No EOL
79 KiB
JavaScript
var Camera3DPlugin=function(t){var i={};function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=74)}([function(t,i){function e(t,i,e){var n=e?t[i]:Object.getOwnPropertyDescriptor(t,i);return!e&&n.value&&"object"==typeof n.value&&(n=n.value),!(!n||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function n(t,i){var e=Object.getOwnPropertyDescriptor(t,i);return!!e&&(e.value&&"object"==typeof e.value&&(e=e.value),!1===e.configurable)}function s(t,i,s,r){for(var o in i)if(i.hasOwnProperty(o)){var a=e(i,o,s);if(!1!==a){if(n((r||t).prototype,o)){if(h.ignoreFinals)continue;throw new Error("cannot override final property '"+o+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,o,a)}else t.prototype[o]=i[o]}}function r(t,i){if(i){Array.isArray(i)||(i=[i]);for(var e=0;e<i.length;e++)s(t,i[e].prototype||i[e])}}function h(t){var i,e;if(t||(t={}),t.initialize){if("function"!=typeof t.initialize)throw new Error("initialize must be a function");i=t.initialize,delete t.initialize}else if(t.Extends){var n=t.Extends;i=function(){n.apply(this,arguments)}}else i=function(){};t.Extends?(i.prototype=Object.create(t.Extends.prototype),i.prototype.constructor=i,e=t.Extends,delete t.Extends):i.prototype.constructor=i;var h=null;return t.Mixins&&(h=t.Mixins,delete t.Mixins),r(i,h),s(i,t,!0,e),i}h.extend=s,h.mixin=r,h.ignoreFinals=!1,t.exports=h},function(t,i,e){var n=new(e(0))({initialize:function(t,i){void 0===t&&(t=0),void 0===i&&(i=t),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=n},function(t,i,e){var n=new(e(0))({initialize:function(t,i,e){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=e||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},clone:function(){return new n(this.x,this.y,this.z)},crossVectors:function(t,i){var e=t.x,n=t.y,s=t.z,r=i.x,h=i.y,o=i.z;return this.x=n*o-s*h,this.y=s*r-e*o,this.z=e*h-n*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,e){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=e||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,e=t.y-this.y,n=t.z-this.z||0;return Math.sqrt(i*i+e*e+n*n)},distanceSq:function(t){var i=t.x-this.x,e=t.y-this.y,n=t.z-this.z||0;return i*i+e*e+n*n},length:function(){var t=this.x,i=this.y,e=this.z;return Math.sqrt(t*t+i*i+e*e)},lengthSq:function(){var t=this.x,i=this.y,e=this.z;return t*t+i*i+e*e},normalize:function(){var t=this.x,i=this.y,e=this.z,n=t*t+i*i+e*e;return n>0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=i*n,this.z=e*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var i=this.x,e=this.y,n=this.z,s=t.x,r=t.y,h=t.z;return this.x=e*h-n*r,this.y=n*s-i*h,this.z=i*r-e*s,this},lerp:function(t,i){void 0===i&&(i=0);var e=this.x,n=this.y,s=this.z;return this.x=e+i*(t.x-e),this.y=n+i*(t.y-n),this.z=s+i*(t.z-s),this},transformMat3:function(t){var i=this.x,e=this.y,n=this.z,s=t.val;return this.x=i*s[0]+e*s[3]+n*s[6],this.y=i*s[1]+e*s[4]+n*s[7],this.z=i*s[2]+e*s[5]+n*s[8],this},transformMat4:function(t){var i=this.x,e=this.y,n=this.z,s=t.val;return this.x=s[0]*i+s[4]*e+s[8]*n+s[12],this.y=s[1]*i+s[5]*e+s[9]*n+s[13],this.z=s[2]*i+s[6]*e+s[10]*n+s[14],this},transformCoordinates:function(t){var i=this.x,e=this.y,n=this.z,s=t.val,r=i*s[0]+e*s[4]+n*s[8]+s[12],h=i*s[1]+e*s[5]+n*s[9]+s[13],o=i*s[2]+e*s[6]+n*s[10]+s[14],a=i*s[3]+e*s[7]+n*s[11]+s[15];return this.x=r/a,this.y=h/a,this.z=o/a,this},transformQuat:function(t){var i=this.x,e=this.y,n=this.z,s=t.x,r=t.y,h=t.z,o=t.w,a=o*i+r*n-h*e,u=o*e+h*i-s*n,c=o*n+s*e-r*i,f=-s*i-r*e-h*n;return this.x=a*o+f*-s+u*-h-c*-r,this.y=u*o+f*-r+c*-s-a*-h,this.z=c*o+f*-h+a*-r-u*-s,this},project:function(t){var i=this.x,e=this.y,n=this.z,s=t.val,r=s[0],h=s[1],o=s[2],a=s[3],u=s[4],c=s[5],f=s[6],l=s[7],p=s[8],d=s[9],y=s[10],v=s[11],x=s[12],m=s[13],g=s[14],w=1/(i*a+e*l+n*v+s[15]);return this.x=(i*r+e*u+n*p+x)*w,this.y=(i*h+e*c+n*d+m)*w,this.z=(i*o+e*f+n*y+g)*w,this},unproject:function(t,i){var e=t.x,n=t.y,s=t.z,r=t.w,h=this.x-e,o=r-this.y-1-n,a=this.z;return this.x=2*h/s-1,this.y=2*o/r-1,this.z=2*a-1,this.project(i)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});t.exports=n},function(t,i,e){var n=new(e(0))({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 n(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},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},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,e=t.y-this.y;return Math.sqrt(i*i+e*e)},distanceSq:function(t){var i=t.x-this.x,e=t.y-this.y;return i*i+e*e},length:function(){var t=this.x,i=this.y;return Math.sqrt(t*t+i*i)},lengthSq:function(){var t=this.x,i=this.y;return t*t+i*i},normalize:function(){var t=this.x,i=this.y,e=t*t+i*i;return e>0&&(e=1/Math.sqrt(e),this.x=t*e,this.y=i*e),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=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 e=this.x,n=this.y;return this.x=e+i*(t.x-e),this.y=n+i*(t.y-n),this},transformMat3:function(t){var i=this.x,e=this.y,n=t.val;return this.x=n[0]*i+n[3]*e+n[6],this.y=n[1]*i+n[4]*e+n[7],this},transformMat4:function(t){var i=this.x,e=this.y,n=t.val;return this.x=n[0]*i+n[4]*e+n[12],this.y=n[1]*i+n[5]*e+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,t.exports=n},function(t,i,e){var n=e(17),s=e(71);t.exports=function(t,i,e){var r=s(t,i,null);if(null===r)return e;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(i);return r}},function(t,i,e){var n=new(e(0))({initialize:function(t,i,e,n){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=e||0,this.w=n||0)},clone:function(){return new n(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,e,n){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=e||0,this.w=n||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,e=this.z,n=this.w;return Math.sqrt(t*t+i*i+e*e+n*n)},lengthSq:function(){var t=this.x,i=this.y,e=this.z,n=this.w;return t*t+i*i+e*e+n*n},normalize:function(){var t=this.x,i=this.y,e=this.z,n=this.w,s=t*t+i*i+e*e+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=i*s,this.z=e*s,this.w=n*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 e=this.x,n=this.y,s=this.z,r=this.w;return this.x=e+i*(t.x-e),this.y=n+i*(t.y-n),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,e=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(i*i+e*e+n*n+s*s)},distanceSq:function(t){var i=t.x-this.x,e=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return i*i+e*e+n*n+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,e=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*i+r[4]*e+r[8]*n+r[12]*s,this.y=r[1]*i+r[5]*e+r[9]*n+r[13]*s,this.z=r[2]*i+r[6]*e+r[10]*n+r[14]*s,this.w=r[3]*i+r[7]*e+r[11]*n+r[15]*s,this},transformQuat:function(t){var i=this.x,e=this.y,n=this.z,s=t.x,r=t.y,h=t.z,o=t.w,a=o*i+r*n-h*e,u=o*e+h*i-s*n,c=o*n+s*e-r*i,f=-s*i-r*e-h*n;return this.x=a*o+f*-s+u*-h-c*-r,this.y=u*o+f*-r+c*-s-a*-h,this.z=c*o+f*-h+a*-r-u*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,i){t.exports=function(){}},function(t,i){t.exports=function(t,i,e){var n=e-i;return i+((t-i)%n+n)%n}},function(t,i,e){var n=new(e(0))({initialize:function(t,i,e,n,s,r){void 0===t&&(t=1),void 0===i&&(i=0),void 0===e&&(e=0),void 0===n&&(n=1),void 0===s&&(s=0),void 0===r&&(r=0),this.matrix=new Float32Array([t,i,e,n,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)}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.c*this.c)}},scaleY:{get:function(){return Math.sqrt(this.b*this.b+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 e=this.matrix;return e[4]=e[0]*t+e[2]*i+e[4],e[5]=e[1]*t+e[3]*i+e[5],this},scale:function(t,i){var e=this.matrix;return e[0]*=t,e[1]*=t,e[2]*=i,e[3]*=i,this},rotate:function(t){var i=Math.sin(t),e=Math.cos(t),n=this.matrix,s=n[0],r=n[1],h=n[2],o=n[3];return n[0]=s*e+h*i,n[1]=r*e+o*i,n[2]=s*-i+h*e,n[3]=r*-i+o*e,this},multiply:function(t,i){var e=this.matrix,n=t.matrix,s=e[0],r=e[1],h=e[2],o=e[3],a=e[4],u=e[5],c=n[0],f=n[1],l=n[2],p=n[3],d=n[4],y=n[5],v=void 0===i?this:i;return v.a=c*s+f*h,v.b=c*r+f*o,v.c=l*s+p*h,v.d=l*r+p*o,v.e=d*s+y*h+a,v.f=d*r+y*o+u,v},multiplyWithOffset:function(t,i,e){var n=this.matrix,s=t.matrix,r=n[0],h=n[1],o=n[2],a=n[3],u=i*r+e*o+n[4],c=i*h+e*a+n[5],f=s[0],l=s[1],p=s[2],d=s[3],y=s[4],v=s[5];return n[0]=f*r+l*o,n[1]=f*h+l*a,n[2]=p*r+d*o,n[3]=p*h+d*a,n[4]=y*r+v*o+u,n[5]=y*h+v*a+c,this},transform:function(t,i,e,n,s,r){var h=this.matrix,o=h[0],a=h[1],u=h[2],c=h[3],f=h[4],l=h[5];return h[0]=t*o+i*u,h[1]=t*a+i*c,h[2]=e*o+n*u,h[3]=e*a+n*c,h[4]=s*o+r*u+f,h[5]=s*a+r*c+l,this},transformPoint:function(t,i,e){void 0===e&&(e={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],h=n[2],o=n[3],a=n[4],u=n[5];return e.x=t*s+i*h+a,e.y=t*r+i*o+u,e},invert:function(){var t=this.matrix,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=i*s-e*n;return t[0]=s/o,t[1]=-e/o,t[2]=-n/o,t[3]=i/o,t[4]=(n*h-s*r)/o,t[5]=-(i*h-e*r)/o,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,e,n,s,r){var h=this.matrix;return h[0]=t,h[1]=i,h[2]=e,h[3]=n,h[4]=s,h[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,i=this.matrix,e=i[0],n=i[1],s=i[2],r=i[3],h=e*e,o=n*n,a=s*s,u=r*r,c=Math.sqrt(h+a),f=Math.sqrt(o+u);return t.translateX=i[4],t.translateY=i[5],t.scaleX=c,t.scaleY=f,t.rotation=Math.acos(e/c)*(Math.atan(-s/e)<0?-1:1),t},applyITRS:function(t,i,e,n,s){var r=this.matrix,h=Math.sin(e),o=Math.cos(e);return r[4]=t,r[5]=i,r[0]=o*n,r[1]=h*n,r[2]=-h*s,r[3]=o*s,this},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},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=n},function(t,i){t.exports=function(t){return 2*(t.width+t.height)}},function(t,i,e){var n=e(9),s=e(1);t.exports=function(t,i,e){if(void 0===e&&(e=new s),i<=0||i>=1)return e.x=t.x,e.y=t.y,e;var r=n(t)*i;return i>.5?(r-=t.width+t.height)<=t.width?(e.x=t.right-r,e.y=t.bottom):(e.x=t.x,e.y=t.bottom-(r-t.width)):r<=t.width?(e.x=t.x+r,e.y=t.y):(e.x=t.right,e.y=t.y+(r-t.width)),e}},function(t,i,e){t.exports={Alpha:e(62),Animation:e(60),BlendMode:e(59),ComputedSize:e(58),Crop:e(57),Depth:e(56),Flip:e(55),GetBounds:e(54),Mask:e(43),Origin:e(40),Pipeline:e(39),ScaleMode:e(38),ScrollFactor:e(37),Size:e(36),Texture:e(35),TextureCrop:e(34),Tint:e(33),ToJSON:e(32),Transform:e(31),TransformMatrix:e(8),Visible:e(28)}},function(t,i,e){var n=e(0),s=e(11),r=e(27),h=e(26),o=new n({Extends:h,initialize:function(t,i){h.call(this),this.scene=t,this.type=i,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(),t.sys.events.once("shutdown",this.destroy,this)},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=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},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,i,e){return this.scene.sys.input.enable(this,t,i,e),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},update:function(){},toJSON:function(){return s.ToJSON(this)},willRender:function(t){return!(o.RENDER_MASK!==this.renderFlags||this.cameraFilter>0&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,i=this.parentContainer,e=[];i&&(e.unshift(i.getIndex(t)),t=i,i.parentContainer);)i=i.parentContainer;return e.unshift(this.scene.sys.displayList.getIndex(t)),e},destroy:function(){if(this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit("destroy",this);var t=this.scene.sys;t.displayList.remove(this),t.updateList.remove(this),this.input&&(t.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.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});o.RENDER_MASK=15,t.exports=o},function(t,i,e){var n=e(0),s=e(12),r=e(25),h=e(3),o=e(5),a=new n({Extends:s,initialize:function(t,i,e,n,a,u){s.call(this,t,"Sprite3D"),this.gameObject=new r(t,0,0,a,u),this.position=new o(i,e,n),this.size=new h(this.gameObject.width,this.gameObject.height),this.scale=new h(1,1),this.adjustScaleX=!0,this.adjustScaleY=!0,this._visible=!0},project:function(t){var i=this.position,e=this.gameObject;t.project(i,e),t.getPointSize(i,this.size,this.scale),this.scale.x<=0||this.scale.y<=0?e.setVisible(!1):(e.visible||e.setVisible(!0),this.adjustScaleX&&(e.scaleX=this.scale.x),this.adjustScaleY&&(e.scaleY=this.scale.y),e.setDepth(-1*e.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=a},function(t,i,e){var n=new(e(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var i=this.val,e=t.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[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,e){this.identity();var n=this.val;return n[12]=t,n[13]=i,n[14]=e,this},scaling:function(t,i,e){this.zero();var n=this.val;return n[0]=t,n[5]=i,n[10]=e,n[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],e=t[2],n=t[3],s=t[6],r=t[7],h=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]=e,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=h,this},invert:function(){var t=this.val,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=t[6],a=t[7],u=t[8],c=t[9],f=t[10],l=t[11],p=t[12],d=t[13],y=t[14],v=t[15],x=i*h-e*r,m=i*o-n*r,g=i*a-s*r,w=e*o-n*h,z=e*a-s*h,M=n*a-s*o,_=u*d-c*p,b=u*y-f*p,T=u*v-l*p,A=c*y-f*d,F=c*v-l*d,P=f*v-l*y,O=x*P-m*F+g*A+w*T-z*b+M*_;return O?(O=1/O,t[0]=(h*P-o*F+a*A)*O,t[1]=(n*F-e*P-s*A)*O,t[2]=(d*M-y*z+v*w)*O,t[3]=(f*z-c*M-l*w)*O,t[4]=(o*T-r*P-a*b)*O,t[5]=(i*P-n*T+s*b)*O,t[6]=(y*g-p*M-v*m)*O,t[7]=(u*M-f*g+l*m)*O,t[8]=(r*F-h*T+a*_)*O,t[9]=(e*T-i*F-s*_)*O,t[10]=(p*z-d*g+v*x)*O,t[11]=(c*g-u*z-l*x)*O,t[12]=(h*b-r*A-o*_)*O,t[13]=(i*A-e*b+n*_)*O,t[14]=(d*m-p*w-y*x)*O,t[15]=(u*w-c*m+f*x)*O,this):null},adjoint:function(){var t=this.val,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=t[6],a=t[7],u=t[8],c=t[9],f=t[10],l=t[11],p=t[12],d=t[13],y=t[14],v=t[15];return t[0]=h*(f*v-l*y)-c*(o*v-a*y)+d*(o*l-a*f),t[1]=-(e*(f*v-l*y)-c*(n*v-s*y)+d*(n*l-s*f)),t[2]=e*(o*v-a*y)-h*(n*v-s*y)+d*(n*a-s*o),t[3]=-(e*(o*l-a*f)-h*(n*l-s*f)+c*(n*a-s*o)),t[4]=-(r*(f*v-l*y)-u*(o*v-a*y)+p*(o*l-a*f)),t[5]=i*(f*v-l*y)-u*(n*v-s*y)+p*(n*l-s*f),t[6]=-(i*(o*v-a*y)-r*(n*v-s*y)+p*(n*a-s*o)),t[7]=i*(o*l-a*f)-r*(n*l-s*f)+u*(n*a-s*o),t[8]=r*(c*v-l*d)-u*(h*v-a*d)+p*(h*l-a*c),t[9]=-(i*(c*v-l*d)-u*(e*v-s*d)+p*(e*l-s*c)),t[10]=i*(h*v-a*d)-r*(e*v-s*d)+p*(e*a-s*h),t[11]=-(i*(h*l-a*c)-r*(e*l-s*c)+u*(e*a-s*h)),t[12]=-(r*(c*y-f*d)-u*(h*y-o*d)+p*(h*f-o*c)),t[13]=i*(c*y-f*d)-u*(e*y-n*d)+p*(e*f-n*c),t[14]=-(i*(h*y-o*d)-r*(e*y-n*d)+p*(e*o-n*h)),t[15]=i*(h*f-o*c)-r*(e*f-n*c)+u*(e*o-n*h),this},determinant:function(){var t=this.val,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=t[6],a=t[7],u=t[8],c=t[9],f=t[10],l=t[11],p=t[12],d=t[13],y=t[14],v=t[15];return(i*h-e*r)*(f*v-l*y)-(i*o-n*r)*(c*v-l*d)+(i*a-s*r)*(c*y-f*d)+(e*o-n*h)*(u*v-l*p)-(e*a-s*h)*(u*y-f*p)+(n*a-s*o)*(u*d-c*p)},multiply:function(t){var i=this.val,e=i[0],n=i[1],s=i[2],r=i[3],h=i[4],o=i[5],a=i[6],u=i[7],c=i[8],f=i[9],l=i[10],p=i[11],d=i[12],y=i[13],v=i[14],x=i[15],m=t.val,g=m[0],w=m[1],z=m[2],M=m[3];return i[0]=g*e+w*h+z*c+M*d,i[1]=g*n+w*o+z*f+M*y,i[2]=g*s+w*a+z*l+M*v,i[3]=g*r+w*u+z*p+M*x,g=m[4],w=m[5],z=m[6],M=m[7],i[4]=g*e+w*h+z*c+M*d,i[5]=g*n+w*o+z*f+M*y,i[6]=g*s+w*a+z*l+M*v,i[7]=g*r+w*u+z*p+M*x,g=m[8],w=m[9],z=m[10],M=m[11],i[8]=g*e+w*h+z*c+M*d,i[9]=g*n+w*o+z*f+M*y,i[10]=g*s+w*a+z*l+M*v,i[11]=g*r+w*u+z*p+M*x,g=m[12],w=m[13],z=m[14],M=m[15],i[12]=g*e+w*h+z*c+M*d,i[13]=g*n+w*o+z*f+M*y,i[14]=g*s+w*a+z*l+M*v,i[15]=g*r+w*u+z*p+M*x,this},multiplyLocal:function(t){var i=[],e=this.val,n=t.val;return i[0]=e[0]*n[0]+e[1]*n[4]+e[2]*n[8]+e[3]*n[12],i[1]=e[0]*n[1]+e[1]*n[5]+e[2]*n[9]+e[3]*n[13],i[2]=e[0]*n[2]+e[1]*n[6]+e[2]*n[10]+e[3]*n[14],i[3]=e[0]*n[3]+e[1]*n[7]+e[2]*n[11]+e[3]*n[15],i[4]=e[4]*n[0]+e[5]*n[4]+e[6]*n[8]+e[7]*n[12],i[5]=e[4]*n[1]+e[5]*n[5]+e[6]*n[9]+e[7]*n[13],i[6]=e[4]*n[2]+e[5]*n[6]+e[6]*n[10]+e[7]*n[14],i[7]=e[4]*n[3]+e[5]*n[7]+e[6]*n[11]+e[7]*n[15],i[8]=e[8]*n[0]+e[9]*n[4]+e[10]*n[8]+e[11]*n[12],i[9]=e[8]*n[1]+e[9]*n[5]+e[10]*n[9]+e[11]*n[13],i[10]=e[8]*n[2]+e[9]*n[6]+e[10]*n[10]+e[11]*n[14],i[11]=e[8]*n[3]+e[9]*n[7]+e[10]*n[11]+e[11]*n[15],i[12]=e[12]*n[0]+e[13]*n[4]+e[14]*n[8]+e[15]*n[12],i[13]=e[12]*n[1]+e[13]*n[5]+e[14]*n[9]+e[15]*n[13],i[14]=e[12]*n[2]+e[13]*n[6]+e[14]*n[10]+e[15]*n[14],i[15]=e[12]*n[3]+e[13]*n[7]+e[14]*n[11]+e[15]*n[15],this.fromArray(i)},translate:function(t){var i=t.x,e=t.y,n=t.z,s=this.val;return s[12]=s[0]*i+s[4]*e+s[8]*n+s[12],s[13]=s[1]*i+s[5]*e+s[9]*n+s[13],s[14]=s[2]*i+s[6]*e+s[10]*n+s[14],s[15]=s[3]*i+s[7]*e+s[11]*n+s[15],this},scale:function(t){var i=t.x,e=t.y,n=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]*e,s[5]=s[5]*e,s[6]=s[6]*e,s[7]=s[7]*e,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},makeRotationAxis:function(t,i){var e=Math.cos(i),n=Math.sin(i),s=1-e,r=t.x,h=t.y,o=t.z,a=s*r,u=s*h;return this.fromArray([a*r+e,a*h-n*o,a*o+n*h,0,a*h+n*o,u*h+e,u*o-n*r,0,a*o-n*h,u*o+n*r,s*o*o+e,0,0,0,0,1]),this},rotate:function(t,i){var e=this.val,n=i.x,s=i.y,r=i.z,h=Math.sqrt(n*n+s*s+r*r);if(Math.abs(h)<1e-6)return null;n*=h=1/h,s*=h,r*=h;var o=Math.sin(t),a=Math.cos(t),u=1-a,c=e[0],f=e[1],l=e[2],p=e[3],d=e[4],y=e[5],v=e[6],x=e[7],m=e[8],g=e[9],w=e[10],z=e[11],M=n*n*u+a,_=s*n*u+r*o,b=r*n*u-s*o,T=n*s*u-r*o,A=s*s*u+a,F=r*s*u+n*o,P=n*r*u+s*o,O=s*r*u-n*o,R=r*r*u+a;return e[0]=c*M+d*_+m*b,e[1]=f*M+y*_+g*b,e[2]=l*M+v*_+w*b,e[3]=p*M+x*_+z*b,e[4]=c*T+d*A+m*F,e[5]=f*T+y*A+g*F,e[6]=l*T+v*A+w*F,e[7]=p*T+x*A+z*F,e[8]=c*P+d*O+m*R,e[9]=f*P+y*O+g*R,e[10]=l*P+v*O+w*R,e[11]=p*P+x*O+z*R,this},rotateX:function(t){var i=this.val,e=Math.sin(t),n=Math.cos(t),s=i[4],r=i[5],h=i[6],o=i[7],a=i[8],u=i[9],c=i[10],f=i[11];return i[4]=s*n+a*e,i[5]=r*n+u*e,i[6]=h*n+c*e,i[7]=o*n+f*e,i[8]=a*n-s*e,i[9]=u*n-r*e,i[10]=c*n-h*e,i[11]=f*n-o*e,this},rotateY:function(t){var i=this.val,e=Math.sin(t),n=Math.cos(t),s=i[0],r=i[1],h=i[2],o=i[3],a=i[8],u=i[9],c=i[10],f=i[11];return i[0]=s*n-a*e,i[1]=r*n-u*e,i[2]=h*n-c*e,i[3]=o*n-f*e,i[8]=s*e+a*n,i[9]=r*e+u*n,i[10]=h*e+c*n,i[11]=o*e+f*n,this},rotateZ:function(t){var i=this.val,e=Math.sin(t),n=Math.cos(t),s=i[0],r=i[1],h=i[2],o=i[3],a=i[4],u=i[5],c=i[6],f=i[7];return i[0]=s*n+a*e,i[1]=r*n+u*e,i[2]=h*n+c*e,i[3]=o*n+f*e,i[4]=a*n-s*e,i[5]=u*n-r*e,i[6]=c*n-h*e,i[7]=f*n-o*e,this},fromRotationTranslation:function(t,i){var e=this.val,n=t.x,s=t.y,r=t.z,h=t.w,o=n+n,a=s+s,u=r+r,c=n*o,f=n*a,l=n*u,p=s*a,d=s*u,y=r*u,v=h*o,x=h*a,m=h*u;return e[0]=1-(p+y),e[1]=f+m,e[2]=l-x,e[3]=0,e[4]=f-m,e[5]=1-(c+y),e[6]=d+v,e[7]=0,e[8]=l+x,e[9]=d-v,e[10]=1-(c+p),e[11]=0,e[12]=i.x,e[13]=i.y,e[14]=i.z,e[15]=1,this},fromQuat:function(t){var i=this.val,e=t.x,n=t.y,s=t.z,r=t.w,h=e+e,o=n+n,a=s+s,u=e*h,c=e*o,f=e*a,l=n*o,p=n*a,d=s*a,y=r*h,v=r*o,x=r*a;return i[0]=1-(l+d),i[1]=c+x,i[2]=f-v,i[3]=0,i[4]=c-x,i[5]=1-(u+d),i[6]=p+y,i[7]=0,i[8]=f+v,i[9]=p-y,i[10]=1-(u+l),i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this},frustum:function(t,i,e,n,s,r){var h=this.val,o=1/(i-t),a=1/(n-e),u=1/(s-r);return h[0]=2*s*o,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*s*a,h[6]=0,h[7]=0,h[8]=(i+t)*o,h[9]=(n+e)*a,h[10]=(r+s)*u,h[11]=-1,h[12]=0,h[13]=0,h[14]=r*s*2*u,h[15]=0,this},perspective:function(t,i,e,n){var s=this.val,r=1/Math.tan(t/2),h=1/(e-n);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]=(n+e)*h,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*e*h,s[15]=0,this},perspectiveLH:function(t,i,e,n){var s=this.val;return s[0]=2*e/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*e/i,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(e-n),s[11]=1,s[12]=0,s[13]=0,s[14]=e*n/(e-n),s[15]=0,this},ortho:function(t,i,e,n,s,r){var h=this.val,o=t-i,a=e-n,u=s-r;return o=0===o?o:1/o,a=0===a?a:1/a,u=0===u?u:1/u,h[0]=-2*o,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=-2*a,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=2*u,h[11]=0,h[12]=(t+i)*o,h[13]=(n+e)*a,h[14]=(r+s)*u,h[15]=1,this},lookAt:function(t,i,e){var n=this.val,s=t.x,r=t.y,h=t.z,o=e.x,a=e.y,u=e.z,c=i.x,f=i.y,l=i.z;if(Math.abs(s-c)<1e-6&&Math.abs(r-f)<1e-6&&Math.abs(h-l)<1e-6)return this.identity();var p=s-c,d=r-f,y=h-l,v=1/Math.sqrt(p*p+d*d+y*y),x=a*(y*=v)-u*(d*=v),m=u*(p*=v)-o*y,g=o*d-a*p;(v=Math.sqrt(x*x+m*m+g*g))?(x*=v=1/v,m*=v,g*=v):(x=0,m=0,g=0);var w=d*g-y*m,z=y*x-p*g,M=p*m-d*x;return(v=Math.sqrt(w*w+z*z+M*M))?(w*=v=1/v,z*=v,M*=v):(w=0,z=0,M=0),n[0]=x,n[1]=w,n[2]=p,n[3]=0,n[4]=m,n[5]=z,n[6]=d,n[7]=0,n[8]=g,n[9]=M,n[10]=y,n[11]=0,n[12]=-(x*s+m*r+g*h),n[13]=-(w*s+z*r+M*h),n[14]=-(p*s+d*r+y*h),n[15]=1,this},yawPitchRoll:function(t,i,e){this.zero(),s.zero(),r.zero();var n=this.val,h=s.val,o=r.val,a=Math.sin(e),u=Math.cos(e);return n[10]=1,n[15]=1,n[0]=u,n[1]=a,n[4]=-a,n[5]=u,a=Math.sin(i),u=Math.cos(i),h[0]=1,h[15]=1,h[5]=u,h[10]=u,h[9]=-a,h[6]=a,a=Math.sin(t),u=Math.cos(t),o[5]=1,o[15]=1,o[0]=u,o[2]=-a,o[8]=a,o[10]=u,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,i,e,n,h){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(e.x,e.y,e.z),r.xyz(i.x,i.y,i.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==h&&this.multiplyLocal(h),this}}),s=new n,r=new n;t.exports=n},function(t,i,e){var n=e(0),s=e(14),r=e(68),h=e(67),o=e(66),a=e(63),u=e(13),c=e(3),f=e(2),l=e(5),p=new f,d=new l,y=new f,v=new f,x=new s,m=new n({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,e){return this.position.set(t,i,e),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,e,n,s,r){void 0===r&&(r=!0);var h=new u(this.scene,t,i,e,n,s);return this.displayList.add(h.gameObject),this.updateList.add(h.gameObject),h.visible=r,this.children.set(h),this.updateChildren(),h},createMultiple:function(t,i,e,n){void 0===n&&(n=!0);for(var s=[],r=0;r<t;r++){var h=new u(this.scene,0,0,0,i,e);this.displayList.add(h.gameObject),this.updateList.add(h.gameObject),h.visible=n,this.children.set(h),s.push(h)}return s},createRect:function(t,i,e,n){"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,e,n),h=0,o=.5-t.z/2;o<t.z/2;o++)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,l=o*i.z;r[h].position.set(c,f,l),h++}return this.update(),r},randomSphere:function(t,i){void 0===i&&(i=this.getChildren());for(var e=0;e<i.length;e++)r(i[e].position,t);return this.update()},randomCube:function(t,i){void 0===i&&(i=this.getChildren());for(var e=0;e<i.length;e++)h(i[e].position,t);return this.update()},translateChildren:function(t,i){void 0===i&&(i=this.getChildren());for(var e=0;e<i.length;e++)i[e].position.add(t);return this.update()},transformChildren:function(t,i){void 0===i&&(i=this.getChildren());for(var e=0;e<i.length;e++)i[e].position.transformMat4(t);return this.update()},setViewport:function(t,i){return this.viewportWidth=t,this.viewportHeight=i,this.update()},translate:function(t,i,e){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+=e||0),this.update()},lookAt:function(t,i,e){var n=this.direction,s=this.up;return"object"==typeof t?n.copy(t):n.set(t,i,e),n.subtract(this.position).normalize(),p.copy(n).cross(s).normalize(),s.copy(p).cross(n).normalize(),this.update()},rotate:function(t,i){return o(this.direction,i,t),o(this.up,i,t),this.update()},rotateAround:function(t,i,e){return p.copy(t).subtract(this.position),this.translate(p),this.rotate(i,e),this.translate(p.negate()),this.update()},project:function(t,i){void 0===i&&(i=new l);var e=this.viewportWidth,n=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=e/2*d.x+(0+e/2),i.y=n/2*d.y+(0+n/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 e=d.set(0,0,this.viewportWidth,this.viewportHeight);return i.copy(t).unproject(e,this.invProjectionView)},getPickRay:function(t,i){var e=this.ray.origin.set(t,i,0),n=this.ray.direction.set(t,i,1),s=d.set(0,0,this.viewportWidth,this.viewportHeight),r=this.invProjectionView;return e.unproject(s,r),n.unproject(s,r),n.subtract(e).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=v.set(this.up).cross(t).normalize(),e=p.set(t).cross(i).normalize(),n=x.val;n[0]=i.x,n[1]=i.y,n[2]=i.z,n[3]=0,n[4]=e.x,n[5]=e.y,n[6]=e.z,n[7]=0,n[8]=t.x,n[9]=t.y,n[10]=t.z,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this.billboardMatrixDirty=!1},getPointSize:function(t,i,e){void 0===e&&(e=new c),this.billboardMatrixDirty&&this.updateBillboardMatrix();var n=p,s=i.x/this.pixelScale/2,r=i.y/this.pixelScale/2;n.set(-s,-r,0).transformMat4(x).add(t),this.project(n,n);var h=n.x,o=n.y;n.set(s,r,0).transformMat4(x).add(t),this.project(n,n);var a=n.x-h,u=n.y-o;return e.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){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,i,e){var n=e(72),s={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:new n};t.exports=s},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}},function(t,i,e){var n=new(e(0))({initialize:function(t){this.pluginManager=t,this.game=t.game,this.scene,this.systems},init:function(){},start:function(){},stop:function(){},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},function(t,i,e){var n=e(19),s=new(e(0))({Extends:n,initialize:function(t,i){n.call(this,i),this.scene=t,this.systems=t.sys,t.sys.events.once("boot",this.boot,this)},boot:function(){}});t.exports=s},function(t,i,e){var n=e(15),s=e(0),r=new(e(2)),h=new s({Extends:n,initialize:function(t,i,e,s){void 0===i&&(i=80),void 0===e&&(e=0),void 0===s&&(s=0),n.call(this,t),this.viewportWidth=e,this.viewportHeight=s,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=h},function(t,i){t.exports=function(t,i,e,n,s){t.batchSprite(i,i.frame,n,s)}},function(t,i){t.exports=function(t,i,e,n,s){this.pipeline.batchSprite(i,n,s)}},function(t,i,e){var n=e(6),s=e(6);n=e(23),s=e(22),t.exports={renderWebGL:n,renderCanvas:s}},function(t,i,e){var n=e(0),s=e(11),r=e(12),h=e(24),o=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScaleMode,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,h],initialize:function(t,i,e,n,h){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,h),this.setPosition(i,e),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline("TextureTintPipeline")},preUpdate:function(t,i){this.anims.update(t,i)},play:function(t,i,e){return this.anims.play(t,i,e),this},toJSON:function(){return s.ToJSON(this)}});t.exports=o},function(t,i,e){"use strict";var n=Object.prototype.hasOwnProperty,s="~";function r(){}function h(t,i,e,n,r){if("function"!=typeof e)throw new TypeError("The listener must be a function");var h=new function(t,i,e){this.fn=t,this.context=i,this.once=e||!1}(e,n||t,r),o=s?s+i:i;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],h]:t._events[o].push(h):(t._events[o]=h,t._eventsCount++),t}function o(t,i){0==--t._eventsCount?t._events=new r:delete t._events[i]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(s=!1)),a.prototype.eventNames=function(){var t,i,e=[];if(0===this._eventsCount)return e;for(i in t=this._events)n.call(t,i)&&e.push(s?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},a.prototype.listeners=function(t){var i=s?s+t:t,e=this._events[i];if(!e)return[];if(e.fn)return[e.fn];for(var n=0,r=e.length,h=new Array(r);n<r;n++)h[n]=e[n].fn;return h},a.prototype.listenerCount=function(t){var i=s?s+t:t,e=this._events[i];return e?e.fn?1:e.length:0},a.prototype.emit=function(t,i,e,n,r,h){var o=s?s+t:t;if(!this._events[o])return!1;var a,u,c=this._events[o],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,i),!0;case 3:return c.fn.call(c.context,i,e),!0;case 4:return c.fn.call(c.context,i,e,n),!0;case 5:return c.fn.call(c.context,i,e,n,r),!0;case 6:return c.fn.call(c.context,i,e,n,r,h),!0}for(u=1,a=new Array(f-1);u<f;u++)a[u-1]=arguments[u];c.fn.apply(c.context,a)}else{var l,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,i);break;case 3:c[u].fn.call(c[u].context,i,e);break;case 4:c[u].fn.call(c[u].context,i,e,n);break;default:if(!a)for(l=1,a=new Array(f-1);l<f;l++)a[l-1]=arguments[l];c[u].fn.apply(c[u].context,a)}}return!0},a.prototype.on=function(t,i,e){return h(this,t,i,e,!1)},a.prototype.once=function(t,i,e){return h(this,t,i,e,!0)},a.prototype.removeListener=function(t,i,e,n){var r=s?s+t:t;if(!this._events[r])return this;if(!i)return o(this,r),this;var h=this._events[r];if(h.fn)h.fn!==i||n&&!h.once||e&&h.context!==e||o(this,r);else{for(var a=0,u=[],c=h.length;a<c;a++)(h[a].fn!==i||n&&!h[a].once||e&&h[a].context!==e)&&u.push(h[a]);u.length?this._events[r]=1===u.length?u[0]:u:o(this,r)}return this},a.prototype.removeAllListeners=function(t){var i;return t?(i=s?s+t:t,this._events[i]&&o(this,i)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=s,a.EventEmitter=a,t.exports=a},function(t,i,e){var n=new(e(0))({initialize:function(t,i){this.parent=t,this.events=i,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 e=[],n=0;n<t.length;n++)e.push(i[t[n]]);return e}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 e in this.list)this.list.hasOwnProperty(e)&&e.match(t)&&(i[e]=this.list[e]);return i},set:function(t,i){if(this._frozen)return this;if("string"==typeof t)return this.setValue(t,i);for(var e in t)this.setValue(e,t[e]);return this},setValue:function(t,i){if(this._frozen)return this;if(this.has(t))this.values[t]=i;else{var e=this,n=this.list,s=this.events,r=this.parent;Object.defineProperty(this.values,t,{enumerable:!0,configurable:!0,get:function(){return n[t]},set:function(i){if(!e._frozen){var h=n[t];n[t]=i,s.emit("changedata",r,t,i,h),s.emit("changedata_"+t,r,i,h)}}}),n[t]=i,s.emit("setdata",r,t,i)}return this},each:function(t,i){for(var e=[this.parent,null,void 0],n=1;n<arguments.length;n++)e.push(arguments[n]);for(var s in this.list)e[1]=s,e[2]=this.list[s],t.apply(i,e);return this},merge:function(t,i){for(var e in void 0===i&&(i=!0),t)t.hasOwnProperty(e)&&(i||!i&&!this.has(e))&&this.setValue(e,t[e]);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){if(this.has(t)){var i=this.list[t];delete this.list[t],delete this.values[t],this.events.emit("removedata",this.parent,t,i)}return 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("removedata",this,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("changedata"),this.events.off("setdata"),this.events.off("removedata"),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=n},function(t,i){var e={_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=e},function(t,i,e){var n=e(7);t.exports=function(t){return n(t,-180,180)}},function(t,i,e){var n=e(7);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,i,e){var n=e(17),s=e(8),r=e(30),h=e(29),o={_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4}},angle:{get:function(){return h(this._rotation*n.RAD_TO_DEG)},set:function(t){this.rotation=h(t)*n.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=r(t)}},setPosition:function(t,i,e,n){return void 0===t&&(t=0),void 0===i&&(i=t),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=i,this.z=e,this.w=n,this},setRandomPosition:function(t,i,e,n){return void 0===t&&(t=0),void 0===i&&(i=0),void 0===e&&(e=this.scene.sys.game.config.width),void 0===n&&(n=this.scene.sys.game.config.height),this.x=t+Math.random()*e,this.y=i+Math.random()*n,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){void 0===t&&(t=new s);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(var e=[];i;)e.unshift(i),i=i.parentContainer;t.loadIdentity();for(var n=e.length,r=0;r<n;++r)i=e[r],t.translate(i.x,i.y),t.rotate(i.rotation),t.scale(i.scaleX,i.scaleY);return t.translate(this.x,this.y),t.rotate(this._rotation),t.scale(this._scaleX,this._scaleY),t}};t.exports=o},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,scaleMode:t.scaleMode,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(i.textureKey=t.texture.key,i.frameKey=t.frame.name),i}},function(t,i){var e=function(t){return(t>>16)+(65280&t)+((255&t)<<16)},n={_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,s){return void 0===t&&(t=16777215),void 0===i&&(i=t,n=t,s=t),this._tintTL=e(t),this._tintTR=e(i),this._tintBL=e(n),this._tintBR=e(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,i,e,n){return this.setTint(t,i,e,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=e(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=e(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=e(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=e(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,i){var e={texture:null,frame:null,isCropped:!1,setCrop:function(t,i,e,n){if(void 0===t)this.isCropped=!1;else if(this.frame){if("number"==typeof t)this.frame.setCropUVs(this._crop,t,i,e,n,this.flipX,this.flipY);else{var s=t;this.frame.setCropUVs(this._crop,s.x,s.y,s.width,s.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(t,i){return this.texture=this.scene.sys.textures.get(t),this.setFrame(i)},setFrame:function(t,i,e){return void 0===i&&(i=!0),void 0===e&&(e=!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&&e&&(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=e},function(t,i){var e={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,e){return void 0===i&&(i=!0),void 0===e&&(e=!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&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};t.exports=e},function(t,i){var e={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.frame.realWidth},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return 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=e},function(t,i){var e={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,i){return void 0===i&&(i=t),this.scrollFactorX=t,this.scrollFactorY=i,this}};t.exports=e},function(t,i,e){var n=e(16),s={_scaleMode:n.DEFAULT,scaleMode:{get:function(){return this._scaleMode},set:function(t){t!==n.LINEAR&&t!==n.NEAREST||(this._scaleMode=t)}},setScaleMode:function(t){return this.scaleMode=t,this}};t.exports=s},function(t,i){t.exports={defaultPipeline:null,pipeline:null,initPipeline:function(t){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}}},function(t,i){var e={_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=Math.round(this.originX*this.width),this._displayOriginY=Math.round(this.originY*this.height),this}};t.exports=e},function(t,i,e){var n=new(e(0))({initialize:function(t,i){this.geometryMask=i},setShape:function(t){this.geometryMask=t},preRenderWebGL:function(t,i,e){var n=t.gl,s=this.geometryMask;t.flush(),n.enable(n.STENCIL_TEST),n.clear(n.STENCIL_BUFFER_BIT),n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.NOTEQUAL,1,1),n.stencilOp(n.REPLACE,n.REPLACE,n.REPLACE),s.renderWebGL(t,s,0,e),t.flush(),n.colorMask(!0,!0,!0,!0),n.stencilFunc(n.EQUAL,1,1),n.stencilOp(n.KEEP,n.KEEP,n.KEEP)},postRenderWebGL:function(t){var i=t.gl;t.flush(),i.disable(i.STENCIL_TEST)},preRenderCanvas:function(t,i,e){var n=this.geometryMask;t.currentContext.save(),n.renderCanvas(t,n,0,e,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=n},function(t,i,e){var n=new(e(0))({initialize:function(t,i){var e=t.sys.game.renderer;if(this.renderer=e,this.bitmapMask=i,this.maskTexture=null,this.mainTexture=null,this.dirty=!0,this.mainFramebuffer=null,this.maskFramebuffer=null,this.invertAlpha=!1,e&&e.gl){var n=e.width,s=e.height,r=0==(n&n-1)&&0==(s&s-1),h=e.gl,o=r?h.REPEAT:h.CLAMP_TO_EDGE,a=h.LINEAR;this.mainTexture=e.createTexture2D(0,a,a,o,o,h.RGBA,null,n,s),this.maskTexture=e.createTexture2D(0,a,a,o,o,h.RGBA,null,n,s),this.mainFramebuffer=e.createFramebuffer(n,s,this.mainTexture,!1),this.maskFramebuffer=e.createFramebuffer(n,s,this.maskTexture,!1),e.onContextRestored(function(t){var i=t.width,e=t.height,n=0==(i&i-1)&&0==(e&e-1),s=t.gl,r=n?s.REPEAT:s.CLAMP_TO_EDGE,h=s.LINEAR;this.mainTexture=t.createTexture2D(0,h,h,r,r,s.RGBA,null,i,e),this.maskTexture=t.createTexture2D(0,h,h,r,r,s.RGBA,null,i,e),this.mainFramebuffer=t.createFramebuffer(i,e,this.mainTexture,!1),this.maskFramebuffer=t.createFramebuffer(i,e,this.maskTexture,!1)},this)}},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,i,e){t.pipelines.BitmapMaskPipeline.beginMask(this,i,e)},postRenderWebGL:function(t){t.pipelines.BitmapMaskPipeline.endMask(this)},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.renderer=null}});t.exports=n},function(t,i,e){var n=e(42),s=e(41),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&&(t=this),new n(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){t.exports=function(t,i,e,n){var s=Math.cos(n),r=Math.sin(n),h=t.x-i,o=t.y-e;return t.x=h*s-o*r+i,t.y=h*r+o*s+e,t}},function(t,i,e){var n=e(1);t.exports=function(t,i){return void 0===i&&(i=new n),i.x=t.x+Math.random()*t.width,i.y=t.y+Math.random()*t.height,i}},function(t,i,e){var n=e(1);t.exports=function(t,i){void 0===i&&(i=new n);var e=Math.random();return i.x=t.x1+e*(t.x2-t.x1),i.y=t.y1+e*(t.y2-t.y1),i}},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,e){var n=e(47),s=e(1);t.exports=function(t,i,e,r){void 0===r&&(r=[]),i||(i=n(t)/e);for(var h=t.x1,o=t.y1,a=t.x2,u=t.y2,c=0;c<i;c++){var f=c/i,l=h+(a-h)*f,p=o+(u-o)*f;r.push(new s(l,p))}return r}},function(t,i,e){var n=e(1);t.exports=function(t,i,e){return void 0===e&&(e=new n),e.x=t.x1+(t.x2-t.x1)*i,e.y=t.y1+(t.y2-t.y1)*i,e}},function(t,i,e){var n=e(0),s=e(49),r=e(48),h=e(46),o=e(3),a=new n({initialize:function(t,i,e,n){void 0===t&&(t=0),void 0===i&&(i=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x1=t,this.y1=i,this.x2=e,this.y2=n},getPoint:function(t,i){return s(this,t,i)},getPoints:function(t,i,e){return r(this,t,i,e)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,i,e,n){return void 0===t&&(t=0),void 0===i&&(i=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x1=t,this.y1=i,this.x2=e,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new o),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new o),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=a},function(t,i,e){var n=e(10),s=e(9);t.exports=function(t,i,e,r){void 0===r&&(r=[]),i||(i=s(t)/e);for(var h=0;h<i;h++){var o=h/i;r.push(n(t,o))}return r}},function(t,i){t.exports=function(t,i,e){return!(t.width<=0||t.height<=0)&&t.x<=i&&t.x+t.width>=i&&t.y<=e&&t.y+t.height>=e}},function(t,i,e){var n=e(0),s=e(52),r=e(10),h=e(51),o=e(50),a=e(45),u=new n({initialize:function(t,i,e,n){void 0===t&&(t=0),void 0===i&&(i=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=i,this.width=e,this.height=n},contains:function(t,i){return s(this,t,i)},getPoint:function(t,i){return r(this,t,i)},getPoints:function(t,i,e){return h(this,t,i,e)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,i,e,n){return this.x=t,this.y=i,this.width=e,this.height=n,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 o),t.setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return void 0===t&&(t=new o),t.setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return void 0===t&&(t=new o),t.setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return void 0===t&&(t=new o),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=u},function(t,i,e){var n=e(53),s=e(44),r=e(3),h={getCenter:function(t){return void 0===t&&(t=new r),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){(t||(t=new r),void 0===i&&(i=!1),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,0!==this.rotation&&s(t,this.x,this.y,this.rotation),i&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getTopRight:function(t,i){(t||(t=new r),void 0===i&&(i=!1),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,0!==this.rotation&&s(t,this.x,this.y,this.rotation),i&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getBottomLeft:function(t,i){(t||(t=new r),void 0===i&&(i=!1),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,0!==this.rotation&&s(t,this.x,this.y,this.rotation),i&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getBottomRight:function(t,i){(t||(t=new r),void 0===i&&(i=!1),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,0!==this.rotation&&s(t,this.x,this.y,this.rotation),i&&this.parentContainer)&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t);return t},getBounds:function(t){var i,e,s,r,h,o,a,u;if(void 0===t&&(t=new n),this.parentContainer){var c=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(t),c.transformPoint(t.x,t.y,t),i=t.x,e=t.y,this.getTopRight(t),c.transformPoint(t.x,t.y,t),s=t.x,r=t.y,this.getBottomLeft(t),c.transformPoint(t.x,t.y,t),h=t.x,o=t.y,this.getBottomRight(t),c.transformPoint(t.x,t.y,t),a=t.x,u=t.y}else this.getTopLeft(t),i=t.x,e=t.y,this.getTopRight(t),s=t.x,r=t.y,this.getBottomLeft(t),h=t.x,o=t.y,this.getBottomRight(t),a=t.x,u=t.y;return t.x=Math.min(i,s,h,a),t.y=Math.min(e,r,o,u),t.width=Math.max(i,s,h,a)-t.x,t.height=Math.max(e,r,o,u)-t.y,t}};t.exports=h},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){var e={_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=e},function(t,i){var e={texture:null,frame:null,isCropped:!1,setCrop:function(t,i,e,n){if(void 0===t)this.isCropped=!1;else if(this.frame){if("number"==typeof t)this.frame.setCropUVs(this._crop,t,i,e,n,this.flipX,this.flipY);else{var s=t;this.frame.setCropUVs(this._crop,s.x,s.y,s.width,s.height,this.flipX,this.flipY)}this.isCropped=!0}return 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=e},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,e){var n=e(18),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,i,e){var n=new(e(0))({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.once("remove",this.remove,this),this.isPlaying=!1,this.currentAnim=null,this.currentFrame=null,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},setDelay:function(t){return void 0===t&&(t=0),this._delay=t,this.parent},getDelay:function(){return this._delay},delayedPlay:function(t,i,e){return this.play(i,!0,e),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,e){return void 0===i&&(i=!1),void 0===e&&(e=0),i&&this.isPlaying&&this.currentAnim.key===t?this.parent:(this.forward=!0,this._reverse=!1,this._startAnimation(t,e))},playReverse:function(t,i,e){return void 0===i&&(i=!1),void 0===e&&(e=0),i&&this.isPlaying&&this.currentAnim.key===t?this.parent:(this.forward=!1,this._reverse=!0,this._startAnimation(t,e))},_startAnimation:function(t,i){this.load(t,i);var e=this.currentAnim,n=this.parent;return this.repeatCounter=-1===this._repeat?Number.MAX_VALUE:this._repeat,e.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,e.showOnStart&&(n.visible=!0),n.emit("animationstart",this.currentAnim,this.currentFrame),n},reverse:function(t){return this.isPlaying&&this.currentAnim.key===t?(this._reverse=!this._reverse,this.forward=!this.forward,this.parent):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=0,this.parent},getRepeatDelay:function(){return this._repeatDelay},setRepeatDelay:function(t){return this._repeatDelay=t,this.parent},restart:function(t){return void 0===t&&(t=!1),this.currentAnim.getFirstTick(this,t),this.forward=!0,this.isPlaying=!0,this.pendingRepeat=!1,this._paused=!1,this.updateFrame(this.currentAnim.frames[0]),this.parent},stop:function(){this._pendingStop=0,this.isPlaying=!1;var t=this.parent;return t.emit("animationcomplete",this.currentAnim,this.currentFrame),t},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.setSizeToFrame(),t.frame.customPivot?i.setOrigin(t.frame.pivotX,t.frame.pivotY):i.updateDisplayOrigin(),i},updateFrame:function(t){var i=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(i.alpha=t.alpha);var e=this.currentAnim;i.emit("animationupdate",e,t),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off("remove",this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=n},function(t,i){t.exports=function(t,i,e){return Math.max(i,Math.min(e,t))}},function(t,i,e){var n=e(61),s={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,i,e,s){return void 0===t&&(t=1),void 0===i?this.alpha=t:(this._alphaTL=n(t,0,1),this._alphaTR=n(i,0,1),this._alphaBL=n(e,0,1),this._alphaBR=n(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){var i=n(t,0,1);this._alpha=i,this._alphaTL=i,this._alphaTR=i,this._alphaBL=i,this._alphaBR=i,0===i?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){var i=n(t,0,1);this._alphaTL=i,0!==i&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){var i=n(t,0,1);this._alphaTR=i,0!==i&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){var i=n(t,0,1);this._alphaBL=i,0!==i&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){var i=n(t,0,1);this._alphaBR=i,0!==i&&(this.renderFlags|=2)}}};t.exports=s},function(t,i,e){var n=new(e(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 e=0;e<this.entries.length;e++){var n=this.entries[e];if(n[t]===i)return n}},getArray:function(){return this.entries.slice(0)},delete:function(t){var i=this.entries.indexOf(t);return i>-1&&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 e,n=this.entries.slice(),s=n.length;if(i)for(e=0;e<s&&!1!==t.call(i,n[e],e);e++);else for(e=0;e<s&&!1!==t(n[e],e);e++);return this},iterate:function(t,i){var e,n=this.entries.length;if(i)for(e=0;e<n&&!1!==t.call(i,this.entries[e],e);e++);else for(e=0;e<n&&!1!==t(this.entries[e],e);e++);return this},iterateLocal:function(t){var i,e=[];for(i=1;i<arguments.length;i++)e.push(arguments[i]);var n=this.entries.length;for(i=0;i<n;i++){var s=this.entries[i];s[t].apply(s,e)}return this},clear:function(){return this.entries.length=0,this},contains:function(t){return this.entries.indexOf(t)>-1},union:function(t){var i=new n;return t.entries.forEach(function(t){i.set(t)}),this.entries.forEach(function(t){i.set(t)}),i},intersect:function(t){var i=new n;return this.entries.forEach(function(e){t.contains(e)&&i.set(e)}),i},difference:function(t){var i=new n;return this.entries.forEach(function(e){t.contains(e)||i.set(e)}),i},size:{get:function(){return this.entries.length},set:function(t){return this.entries.length=t}}});t.exports=n},function(t,i,e){var n=new(e(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var i=this.val,e=t.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],this},fromMat4:function(t){var i=t.val,e=this.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[4],e[4]=i[5],e[5]=i[6],e[6]=i[8],e[7]=i[9],e[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],e=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=i,t[5]=t[7],t[6]=e,t[7]=n,this},invert:function(){var t=this.val,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=t[6],a=t[7],u=t[8],c=u*r-h*a,f=-u*s+h*o,l=a*s-r*o,p=i*c+e*f+n*l;return p?(p=1/p,t[0]=c*p,t[1]=(-u*e+n*a)*p,t[2]=(h*e-n*r)*p,t[3]=f*p,t[4]=(u*i-n*o)*p,t[5]=(-h*i+n*s)*p,t[6]=l*p,t[7]=(-a*i+e*o)*p,t[8]=(r*i-e*s)*p,this):null},adjoint:function(){var t=this.val,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=t[6],a=t[7],u=t[8];return t[0]=r*u-h*a,t[1]=n*a-e*u,t[2]=e*h-n*r,t[3]=h*o-s*u,t[4]=i*u-n*o,t[5]=n*s-i*h,t[6]=s*a-r*o,t[7]=e*o-i*a,t[8]=i*r-e*s,this},determinant:function(){var t=this.val,i=t[0],e=t[1],n=t[2],s=t[3],r=t[4],h=t[5],o=t[6],a=t[7],u=t[8];return i*(u*r-h*a)+e*(-u*s+h*o)+n*(a*s-r*o)},multiply:function(t){var i=this.val,e=i[0],n=i[1],s=i[2],r=i[3],h=i[4],o=i[5],a=i[6],u=i[7],c=i[8],f=t.val,l=f[0],p=f[1],d=f[2],y=f[3],v=f[4],x=f[5],m=f[6],g=f[7],w=f[8];return i[0]=l*e+p*r+d*a,i[1]=l*n+p*h+d*u,i[2]=l*s+p*o+d*c,i[3]=y*e+v*r+x*a,i[4]=y*n+v*h+x*u,i[5]=y*s+v*o+x*c,i[6]=m*e+g*r+w*a,i[7]=m*n+g*h+w*u,i[8]=m*s+g*o+w*c,this},translate:function(t){var i=this.val,e=t.x,n=t.y;return i[6]=e*i[0]+n*i[3]+i[6],i[7]=e*i[1]+n*i[4]+i[7],i[8]=e*i[2]+n*i[5]+i[8],this},rotate:function(t){var i=this.val,e=i[0],n=i[1],s=i[2],r=i[3],h=i[4],o=i[5],a=Math.sin(t),u=Math.cos(t);return i[0]=u*e+a*r,i[1]=u*n+a*h,i[2]=u*s+a*o,i[3]=u*r-a*e,i[4]=u*h-a*n,i[5]=u*o-a*s,this},scale:function(t){var i=this.val,e=t.x,n=t.y;return i[0]=e*i[0],i[1]=e*i[1],i[2]=e*i[2],i[3]=n*i[3],i[4]=n*i[4],i[5]=n*i[5],this},fromQuat:function(t){var i=t.x,e=t.y,n=t.z,s=t.w,r=i+i,h=e+e,o=n+n,a=i*r,u=i*h,c=i*o,f=e*h,l=e*o,p=n*o,d=s*r,y=s*h,v=s*o,x=this.val;return x[0]=1-(f+p),x[3]=u+v,x[6]=c-y,x[1]=u-v,x[4]=1-(a+p),x[7]=l+d,x[2]=c+y,x[5]=l-d,x[8]=1-(a+f),this},normalFromMat4:function(t){var i=t.val,e=this.val,n=i[0],s=i[1],r=i[2],h=i[3],o=i[4],a=i[5],u=i[6],c=i[7],f=i[8],l=i[9],p=i[10],d=i[11],y=i[12],v=i[13],x=i[14],m=i[15],g=n*a-s*o,w=n*u-r*o,z=n*c-h*o,M=s*u-r*a,_=s*c-h*a,b=r*c-h*u,T=f*v-l*y,A=f*x-p*y,F=f*m-d*y,P=l*x-p*v,O=l*m-d*v,R=p*m-d*x,C=g*R-w*O+z*P+M*F-_*A+b*T;return C?(C=1/C,e[0]=(a*R-u*O+c*P)*C,e[1]=(u*F-o*R-c*A)*C,e[2]=(o*O-a*F+c*T)*C,e[3]=(r*O-s*R-h*P)*C,e[4]=(n*R-r*F+h*A)*C,e[5]=(s*F-n*O-h*T)*C,e[6]=(v*b-x*_+m*M)*C,e[7]=(x*z-y*b-m*w)*C,e[8]=(y*_-v*z+m*g)*C,this):null}});t.exports=n},function(t,i,e){var n=e(0),s=e(2),r=e(64),h=new Int8Array([1,2,0]),o=new Float32Array([0,0,0]),a=new s(1,0,0),u=new s(0,1,0),c=new s,f=new r,l=new n({initialize:function(t,i,e,n){"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=e||0,this.w=n||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,e,n){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=e||0,this.w=n||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,e=this.z,n=this.w;return Math.sqrt(t*t+i*i+e*e+n*n)},lengthSq:function(){var t=this.x,i=this.y,e=this.z,n=this.w;return t*t+i*i+e*e+n*n},normalize:function(){var t=this.x,i=this.y,e=this.z,n=this.w,s=t*t+i*i+e*e+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=i*s,this.z=e*s,this.w=n*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 e=this.x,n=this.y,s=this.z,r=this.w;return this.x=e+i*(t.x-e),this.y=n+i*(t.y-n),this.z=s+i*(t.z-s),this.w=r+i*(t.w-r),this},rotationTo:function(t,i){var e=t.x*i.x+t.y*i.y+t.z*i.z;return e<-.999999?(c.copy(a).cross(t).length()<1e-6&&c.copy(u).cross(t),c.normalize(),this.setAxisAngle(c,Math.PI)):e>.999999?(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+e,this.normalize())},setAxes:function(t,i,e){var n=f.val;return n[0]=i.x,n[3]=i.y,n[6]=i.z,n[1]=e.x,n[4]=e.y,n[7]=e.z,n[2]=-t.x,n[5]=-t.y,n[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 e=Math.sin(i);return this.x=e*t.x,this.y=e*t.y,this.z=e*t.z,this.w=Math.cos(i),this},multiply:function(t){var i=this.x,e=this.y,n=this.z,s=this.w,r=t.x,h=t.y,o=t.z,a=t.w;return this.x=i*a+s*r+e*o-n*h,this.y=e*a+s*h+n*r-i*o,this.z=n*a+s*o+i*h-e*r,this.w=s*a-i*r-e*h-n*o,this},slerp:function(t,i){var e=this.x,n=this.y,s=this.z,r=this.w,h=t.x,o=t.y,a=t.z,u=t.w,c=e*h+n*o+s*a+r*u;c<0&&(c=-c,h=-h,o=-o,a=-a,u=-u);var f=1-i,l=i;if(1-c>1e-6){var p=Math.acos(c),d=Math.sin(p);f=Math.sin((1-i)*p)/d,l=Math.sin(i*p)/d}return this.x=f*e+l*h,this.y=f*n+l*o,this.z=f*s+l*a,this.w=f*r+l*u,this},invert:function(){var t=this.x,i=this.y,e=this.z,n=this.w,s=t*t+i*i+e*e+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-i*r,this.z=-e*r,this.w=n*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,e=this.y,n=this.z,s=this.w,r=Math.sin(t),h=Math.cos(t);return this.x=i*h+s*r,this.y=e*h+n*r,this.z=n*h-e*r,this.w=s*h-i*r,this},rotateY:function(t){t*=.5;var i=this.x,e=this.y,n=this.z,s=this.w,r=Math.sin(t),h=Math.cos(t);return this.x=i*h-n*r,this.y=e*h+s*r,this.z=n*h+i*r,this.w=s*h-e*r,this},rotateZ:function(t){t*=.5;var i=this.x,e=this.y,n=this.z,s=this.w,r=Math.sin(t),h=Math.cos(t);return this.x=i*h+e*r,this.y=e*h-i*r,this.z=n*h+s*r,this.w=s*h-n*r,this},calculateW:function(){var t=this.x,i=this.y,e=this.z;return this.w=-Math.sqrt(1-t*t-i*i-e*e),this},fromMat3:function(t){var i,e=t.val,n=e[0]+e[4]+e[8];if(n>0)i=Math.sqrt(n+1),this.w=.5*i,i=.5/i,this.x=(e[7]-e[5])*i,this.y=(e[2]-e[6])*i,this.z=(e[3]-e[1])*i;else{var s=0;e[4]>e[0]&&(s=1),e[8]>e[3*s+s]&&(s=2);var r=h[s],a=h[r];i=Math.sqrt(e[3*s+s]-e[3*r+r]-e[3*a+a]+1),o[s]=.5*i,i=.5/i,o[r]=(e[3*r+s]+e[3*s+r])*i,o[a]=(e[3*a+s]+e[3*s+a])*i,this.x=o[0],this.y=o[1],this.z=o[2],this.w=(e[3*a+r]-e[3*r+a])*i}return this}});t.exports=l},function(t,i,e){var n=e(2),s=e(14),r=e(65),h=new s,o=new r,a=new n;t.exports=function(t,i,e){return o.setAxisAngle(i,e),h.fromRotationTranslation(o,a.set(0,0,0)),t.transformMat4(h)}},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){void 0===i&&(i=1);var e=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*i;return t.x=Math.cos(e)*s,t.y=Math.sin(e)*s,t.z=n*i,t}},function(t,i,e){var n=e(15),s=e(0),r=new(e(2)),h=new s({Extends:n,initialize:function(t,i,e){void 0===i&&(i=0),void 0===e&&(e=0),n.call(this,t),this.viewportWidth=i,this.viewportHeight=e,this._zoom=1,this.near=0,this.update()},setToOrtho:function(t,i,e){void 0===i&&(i=this.viewportWidth),void 0===e&&(e=this.viewportHeight);var n=this.zoom;return this.up.set(0,t?-1:1,0),this.direction.set(0,0,t?1:-1),this.position.set(n*i/2,n*e/2,0),this.viewportWidth=i,this.viewportHeight=e,this.update()},update:function(){var t=this.viewportWidth,i=this.viewportHeight,e=Math.abs(this.near),n=Math.abs(this.far),s=this.zoom;return 0===t||0===i?this:(this.projection.ortho(s*-t/2,s*t/2,s*-i/2,s*i/2,e,n),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=h},function(t,i,e){var n=e(4);t.exports=function(t,i){var e=n(i,"anims",null);if(null===e)return t;if("string"==typeof e)t.anims.play(e);else if("object"==typeof e){var s=t.anims,r=n(e,"key",void 0),h=n(e,"startFrame",void 0),o=n(e,"delay",0),a=n(e,"repeat",0),u=n(e,"repeatDelay",0),c=n(e,"yoyo",!1),f=n(e,"play",!1),l=n(e,"delayedPlay",0);s.setDelay(o),s.setRepeat(a),s.setRepeatDelay(u),s.setYoyo(c),f?s.play(r,h):l>0?s.delayedPlay(l,r,h):s.load(r)}return t}},function(t,i){t.exports=function(t,i,e){if(t&&"number"!=typeof t){if(t.hasOwnProperty(i))return t[i];if(i.indexOf(".")){for(var n=i.split("."),s=t,r=e,h=0;h<n.length;h++){if(!s.hasOwnProperty(n[h])){r=e;break}r=s[n[h]],s=s[n[h]]}return r}return e}return e}},function(t,i,e){var n=new(e(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,e=this.n;t=t.toString();for(var n=0;n<t.length;n++)i=.02519603282416938*(e+=t.charCodeAt(n)),i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e);return this.n=e,2.3283064365386963e-10*(e>>>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 e=t[i];this.s0-=this.hash(e),this.s0+=~~(this.s0<0),this.s1-=this.hash(e),this.s1+=~~(this.s1<0),this.s2-=this.hash(e),this.s2+=~~(this.s2<0)}},integer:function(){return 4294967296*this.rnd()},frac:function(){return this.rnd()+1.1102230246251565e-16*(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(){var t="",i="";for(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,e=i;e>0;e--){var n=Math.floor(this.frac()*(i+1)),s=t[n];t[n]=t[e],t[e]=s}return t}});t.exports=n},function(t,i,e){var n=e(18),s=e(4),r=e(16);t.exports=function(t,i,e){i.x=s(e,"x",0),i.y=s(e,"y",0),i.depth=s(e,"depth",0),i.flipX=s(e,"flipX",!1),i.flipY=s(e,"flipY",!1);var h=s(e,"scale",null);"number"==typeof h?i.setScale(h):null!==h&&(i.scaleX=s(h,"x",1),i.scaleY=s(h,"y",1));var o=s(e,"scrollFactor",null);"number"==typeof o?i.setScrollFactor(o):null!==o&&(i.scrollFactorX=s(o,"x",1),i.scrollFactorY=s(o,"y",1)),i.rotation=s(e,"rotation",0);var a=s(e,"angle",null);null!==a&&(i.angle=a),i.alpha=s(e,"alpha",1);var u=s(e,"origin",null);if("number"==typeof u)i.setOrigin(u);else if(null!==u){var c=s(u,"x",.5),f=s(u,"y",.5);i.setOrigin(c,f)}return i.scaleMode=s(e,"scaleMode",r.DEFAULT),i.blendMode=s(e,"blendMode",n.NORMAL),i.visible=s(e,"visible",!0),s(e,"add",!0)&&t.sys.displayList.add(i),i.preUpdate&&t.sys.updateList.add(i),i}},function(t,i,e){var n=e(73),s=e(70),r=e(0),h=e(4),o=e(69),a=e(21),u=e(20),c=e(13),f=new r({Extends:u,initialize:function(t,i){u.call(this,t,i),this.cameras=[],i.registerGameObject("sprite3D",this.sprite3DFactory,this.sprite3DCreator)},sprite3DFactory:function(t,i,e,n,s){var r=new c(this.scene,t,i,e,n,s);return this.displayList.add(r.gameObject),this.updateList.add(r.gameObject),r},sprite3DCreator:function(t,i){void 0===t&&(t={});var e=h(t,"key",null),r=h(t,"frame",null),o=new c(this.scene,0,0,e,r);return void 0!==i&&(t.add=i),n(this.scene,o,t),s(o,t),o},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,e){return this.addPerspectiveCamera(t,i,e)},addOrthographicCamera:function(t,i){var e=this.scene.sys.game.config;void 0===t&&(t=e.width),void 0===i&&(i=e.height);var n=new o(this.scene,t,i);return this.cameras.push(n),n},addPerspectiveCamera:function(t,i,e){var n=this.scene.sys.game.config;void 0===t&&(t=80),void 0===i&&(i=n.width),void 0===e&&(e=n.height);var s=new a(this.scene,t,i,e);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(;this.cameras.length>0;){this.cameras.pop().destroy()}return this.main},update:function(t,i){for(var e=0,n=this.cameras.length;e<n;++e)this.cameras[e].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}]); |