hilo3d 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -1
- package/README.md +7 -4
- package/README_ZH.md +8 -4
- package/build/Hilo3d.js +3 -3
- package/build/Hilo3d.single.js +2 -2
- package/build/math.single.js +2 -2
- package/package.json +2 -2
- package/types/index.d.ts +67 -1
package/build/math.single.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Hilo3d 1.
|
|
2
|
+
* Hilo3d 1.18.0
|
|
3
3
|
* Copyright (c) 2017-present Alibaba Group Holding Ltd.
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -31,4 +31,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
31
31
|
THE SOFTWARE.
|
|
32
32
|
|
|
33
33
|
*/
|
|
34
|
-
"undefined"!=typeof self&&self,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=10)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setMatrixArrayType=function(t){n.ARRAY_TYPE=t},n.toRadian=function(t){return t*i},n.equals=function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))};var r=n.EPSILON=1e-6;n.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random;var i=Math.PI/180},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.forEach=n.sqrLen=n.len=n.sqrDist=n.dist=n.div=n.mul=n.sub=void 0,n.create=i,n.clone=function(t){var n=new r.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},n.fromValues=function(t,n,e,i){var u=new r.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=e,u[3]=i,u},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},n.set=function(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t},n.subtract=u,n.multiply=o,n.divide=s,n.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},n.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},n.min=function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},n.max=function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},n.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t},n.scaleAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},n.distance=a,n.squaredDistance=c,n.length=f,n.squaredLength=h,n.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},n.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},n.normalize=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e*e+r*r+i*i+u*u;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=u*o),t},n.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},n.lerp=function(t,n,e,r){var i=n[0],u=n[1],o=n[2],s=n[3];return t[0]=i+r*(e[0]-i),t[1]=u+r*(e[1]-u),t[2]=o+r*(e[2]-o),t[3]=s+r*(e[3]-s),t},n.random=function(t,n){var e,i,u,o,s,a;n=n||1;do{s=(e=2*r.RANDOM()-1)*e+(i=2*r.RANDOM()-1)*i}while(s>=1);do{a=(u=2*r.RANDOM()-1)*u+(o=2*r.RANDOM()-1)*o}while(a>=1);var c=Math.sqrt((1-s)/a);return t[0]=n*e,t[1]=n*i,t[2]=n*u*c,t[3]=n*o*c,t},n.transformMat4=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*u+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*u+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*u+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*u+e[15]*o,t},n.transformQuat=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[0],s=e[1],a=e[2],c=e[3],f=c*r+s*u-a*i,h=c*i+a*r-o*u,l=c*u+o*i-s*r,d=-o*r-s*i-a*u;return t[0]=f*c+d*-o+h*-a-l*-s,t[1]=h*c+d*-s+l*-o-f*-a,t[2]=l*c+d*-a+f*-s-h*-o,t[3]=n[3],t},n.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=n[0],a=n[1],c=n[2],f=n[3];return Math.abs(e-s)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(u-c)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function o(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function s(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function a(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],u=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+u*u)}function c(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],u=n[3]-t[3];return e*e+r*r+i*i+u*u}function f(t){var n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function h(t){var n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}n.sub=u,n.mul=o,n.div=s,n.dist=a,n.sqrDist=c,n.len=f,n.sqrLen=h,n.forEach=function(){var t=i();return function(n,e,r,i,u,o){var s,a=void 0;for(e||(e=4),r||(r=0),s=i?Math.min(i*e+r,n.length):n.length,a=r;a<s;a+=e)t[0]=n[a],t[1]=n[a+1],t[2]=n[a+2],t[3]=n[a+3],u(t,t,o),n[a]=t[0],n[a+1]=t[1],n[a+2]=t[2],n[a+3]=t[3];return n}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.forEach=n.sqrLen=n.len=n.sqrDist=n.dist=n.div=n.mul=n.sub=void 0,n.create=i,n.clone=function(t){var n=new r.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},n.length=u,n.fromValues=o,n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},n.set=function(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t},n.subtract=s,n.multiply=a,n.divide=c,n.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},n.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},n.min=function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t},n.max=function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t},n.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},n.scaleAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t},n.distance=f,n.squaredDistance=h,n.squaredLength=l,n.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},n.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},n.normalize=d,n.dot=E,n.cross=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[0],s=e[1],a=e[2];return t[0]=i*a-u*s,t[1]=u*o-r*a,t[2]=r*s-i*o,t},n.lerp=function(t,n,e,r){var i=n[0],u=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=u+r*(e[1]-u),t[2]=o+r*(e[2]-o),t},n.hermite=function(t,n,e,r,i,u){var o=u*u,s=o*(2*u-3)+1,a=o*(u-2)+u,c=o*(u-1),f=o*(3-2*u);return t[0]=n[0]*s+e[0]*a+r[0]*c+i[0]*f,t[1]=n[1]*s+e[1]*a+r[1]*c+i[1]*f,t[2]=n[2]*s+e[2]*a+r[2]*c+i[2]*f,t},n.bezier=function(t,n,e,r,i,u){var o=1-u,s=o*o,a=u*u,c=s*o,f=3*u*s,h=3*a*o,l=a*u;return t[0]=n[0]*c+e[0]*f+r[0]*h+i[0]*l,t[1]=n[1]*c+e[1]*f+r[1]*h+i[1]*l,t[2]=n[2]*c+e[2]*f+r[2]*h+i[2]*l,t},n.random=function(t,n){n=n||1;var e=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,u=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=i*n,t},n.transformMat4=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[3]*r+e[7]*i+e[11]*u+e[15];return o=o||1,t[0]=(e[0]*r+e[4]*i+e[8]*u+e[12])/o,t[1]=(e[1]*r+e[5]*i+e[9]*u+e[13])/o,t[2]=(e[2]*r+e[6]*i+e[10]*u+e[14])/o,t},n.transformMat3=function(t,n,e){var r=n[0],i=n[1],u=n[2];return t[0]=r*e[0]+i*e[3]+u*e[6],t[1]=r*e[1]+i*e[4]+u*e[7],t[2]=r*e[2]+i*e[5]+u*e[8],t},n.transformQuat=function(t,n,e){var r=e[0],i=e[1],u=e[2],o=e[3],s=n[0],a=n[1],c=n[2],f=i*c-u*a,h=u*s-r*c,l=r*a-i*s,d=i*l-u*h,E=u*f-r*l,m=r*h-i*f,_=2*o;return f*=_,h*=_,l*=_,d*=2,E*=2,m*=2,t[0]=s+f+d,t[1]=a+h+E,t[2]=c+l+m,t},n.rotateX=function(t,n,e,r){var i=[],u=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],u[0]=i[0],u[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),u[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=u[0]+e[0],t[1]=u[1]+e[1],t[2]=u[2]+e[2],t},n.rotateY=function(t,n,e,r){var i=[],u=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],u[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),u[1]=i[1],u[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=u[0]+e[0],t[1]=u[1]+e[1],t[2]=u[2]+e[2],t},n.rotateZ=function(t,n,e,r){var i=[],u=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],u[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),u[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),u[2]=i[2],t[0]=u[0]+e[0],t[1]=u[1]+e[1],t[2]=u[2]+e[2],t},n.angle=function(t,n){var e=o(t[0],t[1],t[2]),r=o(n[0],n[1],n[2]);d(e,e),d(r,r);var i=E(e,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},n.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=n[0],s=n[1],a=n[2];return Math.abs(e-o)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(u-a)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(a))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function u(t){var n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n,e){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=n,i[2]=e,i}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function a(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function h(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function l(t){var n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function d(t,n){var e=n[0],r=n[1],i=n[2],u=e*e+r*r+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=n[0]*u,t[1]=n[1]*u,t[2]=n[2]*u),t}function E(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}n.sub=s,n.mul=a,n.div=c,n.dist=f,n.sqrDist=h,n.len=u,n.sqrLen=l,n.forEach=function(){var t=i();return function(n,e,r,i,u,o){var s,a=void 0;for(e||(e=3),r||(r=0),s=i?Math.min(i*e+r,n.length):n.length,a=r;a<s;a+=e)t[0]=n[a],t[1]=n[a+1],t[2]=n[a+2],u(t,t,o),n[a]=t[0],n[a+1]=t[1],n[a+2]=t[2];return n}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setAxes=n.sqlerp=n.rotationTo=n.equals=n.exactEquals=n.normalize=n.sqrLen=n.squaredLength=n.len=n.length=n.lerp=n.dot=n.scale=n.mul=n.add=n.set=n.copy=n.fromValues=n.clone=void 0,n.create=a,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},n.setAxisAngle=c,n.getAxisAngle=function(t,n){var e=2*Math.acos(n[3]),i=Math.sin(e/2);return i>r.EPSILON?(t[0]=n[0]/i,t[1]=n[1]/i,t[2]=n[2]/i):(t[0]=1,t[1]=0,t[2]=0),e},n.multiply=f,n.rotateX=function(t,n,e){e*=.5;var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a+o*s,t[1]=i*a+u*s,t[2]=u*a-i*s,t[3]=o*a-r*s,t},n.rotateY=function(t,n,e){e*=.5;var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a-u*s,t[1]=i*a+o*s,t[2]=u*a+r*s,t[3]=o*a-i*s,t},n.rotateZ=function(t,n,e){e*=.5;var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a+i*s,t[1]=i*a-r*s,t[2]=u*a+o*s,t[3]=o*a-u*s,t},n.calculateW=function(t,n){var e=n[0],r=n[1],i=n[2];return t[0]=e,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-i*i)),t},n.slerp=h,n.random=function(t){var n=r.RANDOM(),e=r.RANDOM(),i=r.RANDOM(),u=Math.sqrt(1-n),o=Math.sqrt(n);return t[0]=u*Math.sin(2*Math.PI*e),t[1]=u*Math.cos(2*Math.PI*e),t[2]=o*Math.sin(2*Math.PI*i),t[3]=o*Math.cos(2*Math.PI*i),t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e*e+r*r+i*i+u*u,s=o?1/o:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-i*s,t[3]=u*s,t},n.conjugate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t},n.fromMat3=l,n.fromEuler=function(t,n,e,r){var i=.5*Math.PI/180;n*=i,e*=i,r*=i;var u=Math.sin(n),o=Math.cos(n),s=Math.sin(e),a=Math.cos(e),c=Math.sin(r),f=Math.cos(r);return t[0]=u*a*f-o*s*c,t[1]=o*s*f+u*a*c,t[2]=o*a*c-u*s*f,t[3]=o*a*f+u*s*c,t},n.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"};var r=s(e(0)),i=s(e(5)),u=s(e(2)),o=s(e(1));function s(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function a(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function c(t,n,e){e*=.5;var r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function f(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*f+o*s+i*c-u*a,t[1]=i*f+o*a+u*s-r*c,t[2]=u*f+o*c+r*a-i*s,t[3]=o*f-r*s-i*a-u*c,t}function h(t,n,e,i){var u=n[0],o=n[1],s=n[2],a=n[3],c=e[0],f=e[1],h=e[2],l=e[3],d=void 0,E=void 0,m=void 0,_=void 0,R=void 0;return(E=u*c+o*f+s*h+a*l)<0&&(E=-E,c=-c,f=-f,h=-h,l=-l),1-E>r.EPSILON?(d=Math.acos(E),m=Math.sin(d),_=Math.sin((1-i)*d)/m,R=Math.sin(i*d)/m):(_=1-i,R=i),t[0]=_*u+R*c,t[1]=_*o+R*f,t[2]=_*s+R*h,t[3]=_*a+R*l,t}function l(t,n){var e=n[0]+n[4]+n[8],r=void 0;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{var i=0;n[4]>n[0]&&(i=1),n[8]>n[3*i+i]&&(i=2);var u=(i+1)%3,o=(i+2)%3;r=Math.sqrt(n[3*i+i]-n[3*u+u]-n[3*o+o]+1),t[i]=.5*r,r=.5/r,t[3]=(n[3*u+o]-n[3*o+u])*r,t[u]=(n[3*u+i]+n[3*i+u])*r,t[o]=(n[3*o+i]+n[3*i+o])*r}return t}n.clone=o.clone,n.fromValues=o.fromValues,n.copy=o.copy,n.set=o.set,n.add=o.add,n.mul=f,n.scale=o.scale,n.dot=o.dot,n.lerp=o.lerp;var d=n.length=o.length,E=(n.len=d,n.squaredLength=o.squaredLength),m=(n.sqrLen=E,n.normalize=o.normalize);n.exactEquals=o.exactEquals,n.equals=o.equals,n.rotationTo=function(){var t=u.create(),n=u.fromValues(1,0,0),e=u.fromValues(0,1,0);return function(r,i,o){var s=u.dot(i,o);return s<-.999999?(u.cross(t,n,i),u.len(t)<1e-6&&u.cross(t,e,i),u.normalize(t,t),c(r,t,Math.PI),r):s>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(u.cross(t,i,o),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+s,m(r,r))}}(),n.sqlerp=function(){var t=a(),n=a();return function(e,r,i,u,o,s){return h(t,r,o,s),h(n,i,u,s),h(e,t,n,2*s*(1-s)),e}}(),n.setAxes=function(){var t=i.create();return function(n,e,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-e[0],t[5]=-e[1],t[8]=-e[2],m(n,l(n,t))}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},n.fromValues=function(t,n,e,i,u,o,s,a,c,f,h,l,d,E,m,_){var R=new r.ARRAY_TYPE(16);return R[0]=t,R[1]=n,R[2]=e,R[3]=i,R[4]=u,R[5]=o,R[6]=s,R[7]=a,R[8]=c,R[9]=f,R[10]=h,R[11]=l,R[12]=d,R[13]=E,R[14]=m,R[15]=_,R},n.set=function(t,n,e,r,i,u,o,s,a,c,f,h,l,d,E,m,_){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t[6]=s,t[7]=a,t[8]=c,t[9]=f,t[10]=h,t[11]=l,t[12]=d,t[13]=E,t[14]=m,t[15]=_,t},n.identity=i,n.transpose=function(t,n){if(t===n){var e=n[1],r=n[2],i=n[3],u=n[6],o=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=u,t[11]=n[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],d=n[11],E=n[12],m=n[13],_=n[14],R=n[15],M=e*s-r*o,A=e*a-i*o,T=e*c-u*o,v=r*a-i*s,p=r*c-u*s,N=i*c-u*a,I=f*m-h*E,S=f*_-l*E,O=f*R-d*E,L=h*_-l*m,P=h*R-d*m,F=l*R-d*_,g=M*F-A*P+T*L+v*O-p*S+N*I;return g?(g=1/g,t[0]=(s*F-a*P+c*L)*g,t[1]=(i*P-r*F-u*L)*g,t[2]=(m*N-_*p+R*v)*g,t[3]=(l*p-h*N-d*v)*g,t[4]=(a*O-o*F-c*S)*g,t[5]=(e*F-i*O+u*S)*g,t[6]=(_*T-E*N-R*A)*g,t[7]=(f*N-l*T+d*A)*g,t[8]=(o*P-s*O+c*I)*g,t[9]=(r*O-e*P-u*I)*g,t[10]=(E*p-m*T+R*M)*g,t[11]=(h*T-f*p-d*M)*g,t[12]=(s*S-o*L-a*I)*g,t[13]=(e*L-r*S+i*I)*g,t[14]=(m*A-E*v-_*M)*g,t[15]=(f*v-h*A+l*M)*g,t):null},n.adjoint=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],d=n[11],E=n[12],m=n[13],_=n[14],R=n[15];return t[0]=s*(l*R-d*_)-h*(a*R-c*_)+m*(a*d-c*l),t[1]=-(r*(l*R-d*_)-h*(i*R-u*_)+m*(i*d-u*l)),t[2]=r*(a*R-c*_)-s*(i*R-u*_)+m*(i*c-u*a),t[3]=-(r*(a*d-c*l)-s*(i*d-u*l)+h*(i*c-u*a)),t[4]=-(o*(l*R-d*_)-f*(a*R-c*_)+E*(a*d-c*l)),t[5]=e*(l*R-d*_)-f*(i*R-u*_)+E*(i*d-u*l),t[6]=-(e*(a*R-c*_)-o*(i*R-u*_)+E*(i*c-u*a)),t[7]=e*(a*d-c*l)-o*(i*d-u*l)+f*(i*c-u*a),t[8]=o*(h*R-d*m)-f*(s*R-c*m)+E*(s*d-c*h),t[9]=-(e*(h*R-d*m)-f*(r*R-u*m)+E*(r*d-u*h)),t[10]=e*(s*R-c*m)-o*(r*R-u*m)+E*(r*c-u*s),t[11]=-(e*(s*d-c*h)-o*(r*d-u*h)+f*(r*c-u*s)),t[12]=-(o*(h*_-l*m)-f*(s*_-a*m)+E*(s*l-a*h)),t[13]=e*(h*_-l*m)-f*(r*_-i*m)+E*(r*l-i*h),t[14]=-(e*(s*_-a*m)-o*(r*_-i*m)+E*(r*a-i*s)),t[15]=e*(s*l-a*h)-o*(r*l-i*h)+f*(r*a-i*s),t},n.determinant=function(t){var n=t[0],e=t[1],r=t[2],i=t[3],u=t[4],o=t[5],s=t[6],a=t[7],c=t[8],f=t[9],h=t[10],l=t[11],d=t[12],E=t[13],m=t[14],_=t[15];return(n*o-e*u)*(h*_-l*m)-(n*s-r*u)*(f*_-l*E)+(n*a-i*u)*(f*m-h*E)+(e*s-r*o)*(c*_-l*d)-(e*a-i*o)*(c*m-h*d)+(r*a-i*s)*(c*E-f*d)},n.multiply=u,n.translate=function(t,n,e){var r=e[0],i=e[1],u=e[2],o=void 0,s=void 0,a=void 0,c=void 0,f=void 0,h=void 0,l=void 0,d=void 0,E=void 0,m=void 0,_=void 0,R=void 0;return n===t?(t[12]=n[0]*r+n[4]*i+n[8]*u+n[12],t[13]=n[1]*r+n[5]*i+n[9]*u+n[13],t[14]=n[2]*r+n[6]*i+n[10]*u+n[14],t[15]=n[3]*r+n[7]*i+n[11]*u+n[15]):(o=n[0],s=n[1],a=n[2],c=n[3],f=n[4],h=n[5],l=n[6],d=n[7],E=n[8],m=n[9],_=n[10],R=n[11],t[0]=o,t[1]=s,t[2]=a,t[3]=c,t[4]=f,t[5]=h,t[6]=l,t[7]=d,t[8]=E,t[9]=m,t[10]=_,t[11]=R,t[12]=o*r+f*i+E*u+n[12],t[13]=s*r+h*i+m*u+n[13],t[14]=a*r+l*i+_*u+n[14],t[15]=c*r+d*i+R*u+n[15]),t},n.scale=function(t,n,e){var r=e[0],i=e[1],u=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*u,t[9]=n[9]*u,t[10]=n[10]*u,t[11]=n[11]*u,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},n.rotate=function(t,n,e,i){var u,o,s,a,c,f,h,l,d,E,m,_,R,M,A,T,v,p,N,I,S,O,L,P,F=i[0],g=i[1],C=i[2],D=Math.sqrt(F*F+g*g+C*C);return D<r.EPSILON?null:(F*=D=1/D,g*=D,C*=D,u=Math.sin(e),s=1-(o=Math.cos(e)),a=n[0],c=n[1],f=n[2],h=n[3],l=n[4],d=n[5],E=n[6],m=n[7],_=n[8],R=n[9],M=n[10],A=n[11],T=F*F*s+o,v=g*F*s+C*u,p=C*F*s-g*u,N=F*g*s-C*u,I=g*g*s+o,S=C*g*s+F*u,O=F*C*s+g*u,L=g*C*s-F*u,P=C*C*s+o,t[0]=a*T+l*v+_*p,t[1]=c*T+d*v+R*p,t[2]=f*T+E*v+M*p,t[3]=h*T+m*v+A*p,t[4]=a*N+l*I+_*S,t[5]=c*N+d*I+R*S,t[6]=f*N+E*I+M*S,t[7]=h*N+m*I+A*S,t[8]=a*O+l*L+_*P,t[9]=c*O+d*L+R*P,t[10]=f*O+E*L+M*P,t[11]=h*O+m*L+A*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)},n.rotateX=function(t,n,e){var r=Math.sin(e),i=Math.cos(e),u=n[4],o=n[5],s=n[6],a=n[7],c=n[8],f=n[9],h=n[10],l=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=u*i+c*r,t[5]=o*i+f*r,t[6]=s*i+h*r,t[7]=a*i+l*r,t[8]=c*i-u*r,t[9]=f*i-o*r,t[10]=h*i-s*r,t[11]=l*i-a*r,t},n.rotateY=function(t,n,e){var r=Math.sin(e),i=Math.cos(e),u=n[0],o=n[1],s=n[2],a=n[3],c=n[8],f=n[9],h=n[10],l=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=u*i-c*r,t[1]=o*i-f*r,t[2]=s*i-h*r,t[3]=a*i-l*r,t[8]=u*r+c*i,t[9]=o*r+f*i,t[10]=s*r+h*i,t[11]=a*r+l*i,t},n.rotateZ=function(t,n,e){var r=Math.sin(e),i=Math.cos(e),u=n[0],o=n[1],s=n[2],a=n[3],c=n[4],f=n[5],h=n[6],l=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=u*i+c*r,t[1]=o*i+f*r,t[2]=s*i+h*r,t[3]=a*i+l*r,t[4]=c*i-u*r,t[5]=f*i-o*r,t[6]=h*i-s*r,t[7]=l*i-a*r,t},n.fromTranslation=function(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,n,e){var i,u,o,s=e[0],a=e[1],c=e[2],f=Math.sqrt(s*s+a*a+c*c);return f<r.EPSILON?null:(s*=f=1/f,a*=f,c*=f,i=Math.sin(n),o=1-(u=Math.cos(n)),t[0]=s*s*o+u,t[1]=a*s*o+c*i,t[2]=c*s*o-a*i,t[3]=0,t[4]=s*a*o-c*i,t[5]=a*a*o+u,t[6]=c*a*o+s*i,t[7]=0,t[8]=s*c*o+a*i,t[9]=a*c*o-s*i,t[10]=c*c*o+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,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,t},n.fromRotationTranslation=o,n.fromQuat2=function(t,n){var e=new r.ARRAY_TYPE(3),i=-n[0],u=-n[1],s=-n[2],a=n[3],c=n[4],f=n[5],h=n[6],l=n[7],d=i*i+u*u+s*s+a*a;return d>0?(e[0]=2*(c*a+l*i+f*s-h*u)/d,e[1]=2*(f*a+l*u+h*i-c*s)/d,e[2]=2*(h*a+l*s+c*u-f*i)/d):(e[0]=2*(c*a+l*i+f*s-h*u),e[1]=2*(f*a+l*u+h*i-c*s),e[2]=2*(h*a+l*s+c*u-f*i)),o(t,n,e),t},n.getTranslation=function(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t},n.getScaling=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[4],o=n[5],s=n[6],a=n[8],c=n[9],f=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(u*u+o*o+s*s),t[2]=Math.sqrt(a*a+c*c+f*f),t},n.getRotation=function(t,n){var e=n[0]+n[5]+n[10],r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t},n.fromRotationTranslationScale=function(t,n,e,r){var i=n[0],u=n[1],o=n[2],s=n[3],a=i+i,c=u+u,f=o+o,h=i*a,l=i*c,d=i*f,E=u*c,m=u*f,_=o*f,R=s*a,M=s*c,A=s*f,T=r[0],v=r[1],p=r[2];return t[0]=(1-(E+_))*T,t[1]=(l+A)*T,t[2]=(d-M)*T,t[3]=0,t[4]=(l-A)*v,t[5]=(1-(h+_))*v,t[6]=(m+R)*v,t[7]=0,t[8]=(d+M)*p,t[9]=(m-R)*p,t[10]=(1-(h+E))*p,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,n,e,r,i){var u=n[0],o=n[1],s=n[2],a=n[3],c=u+u,f=o+o,h=s+s,l=u*c,d=u*f,E=u*h,m=o*f,_=o*h,R=s*h,M=a*c,A=a*f,T=a*h,v=r[0],p=r[1],N=r[2],I=i[0],S=i[1],O=i[2],L=(1-(m+R))*v,P=(d+T)*v,F=(E-A)*v,g=(d-T)*p,C=(1-(l+R))*p,D=(_+M)*p,y=(E+A)*N,U=(_-M)*N,B=(1-(l+m))*N;return t[0]=L,t[1]=P,t[2]=F,t[3]=0,t[4]=g,t[5]=C,t[6]=D,t[7]=0,t[8]=y,t[9]=U,t[10]=B,t[11]=0,t[12]=e[0]+I-(L*I+g*S+y*O),t[13]=e[1]+S-(P*I+C*S+U*O),t[14]=e[2]+O-(F*I+D*S+B*O),t[15]=1,t},n.fromQuat=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e+e,s=r+r,a=i+i,c=e*o,f=r*o,h=r*s,l=i*o,d=i*s,E=i*a,m=u*o,_=u*s,R=u*a;return t[0]=1-h-E,t[1]=f+R,t[2]=l-_,t[3]=0,t[4]=f-R,t[5]=1-c-E,t[6]=d+m,t[7]=0,t[8]=l+_,t[9]=d-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,n,e,r,i,u,o){var s=1/(e-n),a=1/(i-r),c=1/(u-o);return t[0]=2*u*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*u*a,t[6]=0,t[7]=0,t[8]=(e+n)*s,t[9]=(i+r)*a,t[10]=(o+u)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*u*2*c,t[15]=0,t},n.perspective=function(t,n,e,r,i){var u=1/Math.tan(n/2),o=void 0;return t[0]=u/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,n,e,r){var i=Math.tan(n.upDegrees*Math.PI/180),u=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),a=2/(o+s),c=2/(i+u);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*a*.5,t[9]=(i-u)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},n.ortho=function(t,n,e,r,i,u,o){var s=1/(n-e),a=1/(r-i),c=1/(u-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*s,t[13]=(i+r)*a,t[14]=(o+u)*c,t[15]=1,t},n.lookAt=function(t,n,e,u){var o=void 0,s=void 0,a=void 0,c=void 0,f=void 0,h=void 0,l=void 0,d=void 0,E=void 0,m=void 0,_=n[0],R=n[1],M=n[2],A=u[0],T=u[1],v=u[2],p=e[0],N=e[1],I=e[2];return Math.abs(_-p)<r.EPSILON&&Math.abs(R-N)<r.EPSILON&&Math.abs(M-I)<r.EPSILON?i(t):(l=_-p,d=R-N,E=M-I,o=T*(E*=m=1/Math.sqrt(l*l+d*d+E*E))-v*(d*=m),s=v*(l*=m)-A*E,a=A*d-T*l,(m=Math.sqrt(o*o+s*s+a*a))?(o*=m=1/m,s*=m,a*=m):(o=0,s=0,a=0),c=d*a-E*s,f=E*o-l*a,h=l*s-d*o,(m=Math.sqrt(c*c+f*f+h*h))?(c*=m=1/m,f*=m,h*=m):(c=0,f=0,h=0),t[0]=o,t[1]=c,t[2]=l,t[3]=0,t[4]=s,t[5]=f,t[6]=d,t[7]=0,t[8]=a,t[9]=h,t[10]=E,t[11]=0,t[12]=-(o*_+s*R+a*M),t[13]=-(c*_+f*R+h*M),t[14]=-(l*_+d*R+E*M),t[15]=1,t)},n.targetTo=function(t,n,e,r){var i=n[0],u=n[1],o=n[2],s=r[0],a=r[1],c=r[2],f=i-e[0],h=u-e[1],l=o-e[2],d=f*f+h*h+l*l;d>0&&(f*=d=1/Math.sqrt(d),h*=d,l*=d);var E=a*l-c*h,m=c*f-s*l,_=s*h-a*f;return(d=E*E+m*m+_*_)>0&&(E*=d=1/Math.sqrt(d),m*=d,_*=d),t[0]=E,t[1]=m,t[2]=_,t[3]=0,t[4]=h*_-l*m,t[5]=l*E-f*_,t[6]=f*m-h*E,t[7]=0,t[8]=f,t[9]=h,t[10]=l,t[11]=0,t[12]=i,t[13]=u,t[14]=o,t[15]=1,t},n.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},n.subtract=s,n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=t[6],f=t[7],h=t[8],l=t[9],d=t[10],E=t[11],m=t[12],_=t[13],R=t[14],M=t[15],A=n[0],T=n[1],v=n[2],p=n[3],N=n[4],I=n[5],S=n[6],O=n[7],L=n[8],P=n[9],F=n[10],g=n[11],C=n[12],D=n[13],y=n[14],U=n[15];return Math.abs(e-A)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(A))&&Math.abs(i-T)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(o-p)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-N)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(N))&&Math.abs(a-I)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(I))&&Math.abs(c-S)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(f-O)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(h-L)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(l-P)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(d-F)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(E-g)<=r.EPSILON*Math.max(1,Math.abs(E),Math.abs(g))&&Math.abs(m-C)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(_-D)<=r.EPSILON*Math.max(1,Math.abs(_),Math.abs(D))&&Math.abs(R-y)<=r.EPSILON*Math.max(1,Math.abs(R),Math.abs(y))&&Math.abs(M-U)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(U))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t){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,t}function u(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=n[9],d=n[10],E=n[11],m=n[12],_=n[13],R=n[14],M=n[15],A=e[0],T=e[1],v=e[2],p=e[3];return t[0]=A*r+T*s+v*h+p*m,t[1]=A*i+T*a+v*l+p*_,t[2]=A*u+T*c+v*d+p*R,t[3]=A*o+T*f+v*E+p*M,A=e[4],T=e[5],v=e[6],p=e[7],t[4]=A*r+T*s+v*h+p*m,t[5]=A*i+T*a+v*l+p*_,t[6]=A*u+T*c+v*d+p*R,t[7]=A*o+T*f+v*E+p*M,A=e[8],T=e[9],v=e[10],p=e[11],t[8]=A*r+T*s+v*h+p*m,t[9]=A*i+T*a+v*l+p*_,t[10]=A*u+T*c+v*d+p*R,t[11]=A*o+T*f+v*E+p*M,A=e[12],T=e[13],v=e[14],p=e[15],t[12]=A*r+T*s+v*h+p*m,t[13]=A*i+T*a+v*l+p*_,t[14]=A*u+T*c+v*d+p*R,t[15]=A*o+T*f+v*E+p*M,t}function o(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=r+r,a=i+i,c=u+u,f=r*s,h=r*a,l=r*c,d=i*a,E=i*c,m=u*c,_=o*s,R=o*a,M=o*c;return t[0]=1-(d+m),t[1]=h+M,t[2]=l-R,t[3]=0,t[4]=h-M,t[5]=1-(f+m),t[6]=E+_,t[7]=0,t[8]=l+R,t[9]=E-_,t[10]=1-(f+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}n.mul=u,n.sub=s},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t},n.clone=function(t){var n=new r.ARRAY_TYPE(9);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},n.fromValues=function(t,n,e,i,u,o,s,a,c){var f=new r.ARRAY_TYPE(9);return f[0]=t,f[1]=n,f[2]=e,f[3]=i,f[4]=u,f[5]=o,f[6]=s,f[7]=a,f[8]=c,f},n.set=function(t,n,e,r,i,u,o,s,a,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t[6]=s,t[7]=a,t[8]=c,t},n.identity=function(t){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,t},n.transpose=function(t,n){if(t===n){var e=n[1],r=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=f*o-s*c,l=-f*u+s*a,d=c*u-o*a,E=e*h+r*l+i*d;return E?(E=1/E,t[0]=h*E,t[1]=(-f*r+i*c)*E,t[2]=(s*r-i*o)*E,t[3]=l*E,t[4]=(f*e-i*a)*E,t[5]=(-s*e+i*u)*E,t[6]=d*E,t[7]=(-c*e+r*a)*E,t[8]=(o*e-r*u)*E,t):null},n.adjoint=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8];return t[0]=o*f-s*c,t[1]=i*c-r*f,t[2]=r*s-i*o,t[3]=s*a-u*f,t[4]=e*f-i*a,t[5]=i*u-e*s,t[6]=u*c-o*a,t[7]=r*a-e*c,t[8]=e*o-r*u,t},n.determinant=function(t){var n=t[0],e=t[1],r=t[2],i=t[3],u=t[4],o=t[5],s=t[6],a=t[7],c=t[8];return n*(c*u-o*a)+e*(-c*i+o*s)+r*(a*i-u*s)},n.multiply=i,n.translate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=e[0],d=e[1];return t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=s,t[5]=a,t[6]=l*r+d*o+c,t[7]=l*i+d*s+f,t[8]=l*u+d*a+h,t},n.rotate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=Math.sin(e),d=Math.cos(e);return t[0]=d*r+l*o,t[1]=d*i+l*s,t[2]=d*u+l*a,t[3]=d*o-l*r,t[4]=d*s-l*i,t[5]=d*a-l*u,t[6]=c,t[7]=f,t[8]=h,t},n.scale=function(t,n,e){var r=e[0],i=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},n.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},n.fromRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},n.fromQuat=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e+e,s=r+r,a=i+i,c=e*o,f=r*o,h=r*s,l=i*o,d=i*s,E=i*a,m=u*o,_=u*s,R=u*a;return t[0]=1-h-E,t[3]=f-R,t[6]=l+_,t[1]=f+R,t[4]=1-c-E,t[7]=d-m,t[2]=l-_,t[5]=d+m,t[8]=1-c-h,t},n.normalFromMat4=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],d=n[11],E=n[12],m=n[13],_=n[14],R=n[15],M=e*s-r*o,A=e*a-i*o,T=e*c-u*o,v=r*a-i*s,p=r*c-u*s,N=i*c-u*a,I=f*m-h*E,S=f*_-l*E,O=f*R-d*E,L=h*_-l*m,P=h*R-d*m,F=l*R-d*_,g=M*F-A*P+T*L+v*O-p*S+N*I;return g?(g=1/g,t[0]=(s*F-a*P+c*L)*g,t[1]=(a*O-o*F-c*S)*g,t[2]=(o*P-s*O+c*I)*g,t[3]=(i*P-r*F-u*L)*g,t[4]=(e*F-i*O+u*S)*g,t[5]=(r*O-e*P-u*I)*g,t[6]=(m*N-_*p+R*v)*g,t[7]=(_*T-E*N-R*A)*g,t[8]=(E*p-m*T+R*M)*g,t):null},n.projection=function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},n.subtract=u,n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=t[6],f=t[7],h=t[8],l=n[0],d=n[1],E=n[2],m=n[3],_=n[4],R=n[5],M=n[6],A=n[7],T=n[8];return Math.abs(e-l)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(u-E)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(o-m)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(s-_)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(a-R)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(c-M)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(h-T)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=e[0],d=e[1],E=e[2],m=e[3],_=e[4],R=e[5],M=e[6],A=e[7],T=e[8];return t[0]=l*r+d*o+E*c,t[1]=l*i+d*s+E*f,t[2]=l*u+d*a+E*h,t[3]=m*r+_*o+R*c,t[4]=m*i+_*s+R*f,t[5]=m*u+_*a+R*h,t[6]=M*r+A*o+T*c,t[7]=M*i+A*s+T*f,t[8]=M*u+A*a+T*h,t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}n.mul=i,n.sub=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.forEach=n.sqrLen=n.sqrDist=n.dist=n.div=n.mul=n.sub=n.len=void 0,n.create=i,n.clone=function(t){var n=new r.ARRAY_TYPE(2);return n[0]=t[0],n[1]=t[1],n},n.fromValues=function(t,n){var e=new r.ARRAY_TYPE(2);return e[0]=t,e[1]=n,e},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t},n.set=function(t,n,e){return t[0]=n,t[1]=e,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t},n.subtract=u,n.multiply=o,n.divide=s,n.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},n.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},n.min=function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},n.max=function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},n.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t},n.scaleAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},n.distance=a,n.squaredDistance=c,n.length=f,n.squaredLength=h,n.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t},n.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},n.normalize=function(t,n){var e=n[0],r=n[1],i=e*e+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i),t},n.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]},n.cross=function(t,n,e){var r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},n.lerp=function(t,n,e,r){var i=n[0],u=n[1];return t[0]=i+r*(e[0]-i),t[1]=u+r*(e[1]-u),t},n.random=function(t,n){n=n||1;var e=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},n.transformMat2=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[2]*i,t[1]=e[1]*r+e[3]*i,t},n.transformMat2d=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[2]*i+e[4],t[1]=e[1]*r+e[3]*i+e[5],t},n.transformMat3=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[3]*i+e[6],t[1]=e[1]*r+e[4]*i+e[7],t},n.transformMat4=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[4]*i+e[12],t[1]=e[1]*r+e[5]*i+e[13],t},n.rotate=function(t,n,e,r){var i=n[0]-e[0],u=n[1]-e[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-u*o+e[0],t[1]=i*o+u*s+e[1],t},n.angle=function(t,n){var e=t[0],r=t[1],i=n[0],u=n[1],o=e*e+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+u*u;s>0&&(s=1/Math.sqrt(s));var a=(e*i+r*u)*o*s;return a>1?0:a<-1?Math.PI:Math.acos(a)},n.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]},n.equals=function(t,n){var e=t[0],i=t[1],u=n[0],o=n[1];return Math.abs(e-u)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(i-o)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function o(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function s(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function a(t,n){var e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function c(t,n){var e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function f(t){var n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function h(t){var n=t[0],e=t[1];return n*n+e*e}n.len=f,n.sub=u,n.mul=o,n.div=s,n.dist=a,n.sqrDist=c,n.sqrLen=h,n.forEach=function(){var t=i();return function(n,e,r,i,u,o){var s,a=void 0;for(e||(e=2),r||(r=0),s=i?Math.min(i*e+r,n.length):n.length,a=r;a<s;a+=e)t[0]=n[a],t[1]=n[a+1],u(t,t,o),n[a]=t[0],n[a+1]=t[1];return n}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sqrLen=n.squaredLength=n.len=n.length=n.dot=n.mul=n.setReal=n.getReal=void 0,n.create=function(){var t=new r.ARRAY_TYPE(8);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(8);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n},n.fromValues=function(t,n,e,i,u,o,s,a){var c=new r.ARRAY_TYPE(8);return c[0]=t,c[1]=n,c[2]=e,c[3]=i,c[4]=u,c[5]=o,c[6]=s,c[7]=a,c},n.fromRotationTranslationValues=function(t,n,e,i,u,o,s){var a=new r.ARRAY_TYPE(8);a[0]=t,a[1]=n,a[2]=e,a[3]=i;var c=.5*u,f=.5*o,h=.5*s;return a[4]=c*i+f*e-h*n,a[5]=f*i+h*t-c*e,a[6]=h*i+c*n-f*t,a[7]=-c*t-f*n-h*e,a},n.fromRotationTranslation=s,n.fromTranslation=function(t,n){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*n[0],t[5]=.5*n[1],t[6]=.5*n[2],t[7]=0,t},n.fromRotation=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,n){var e=i.create();u.getRotation(e,n);var o=new r.ARRAY_TYPE(3);return u.getTranslation(o,n),s(t,e,o),t},n.copy=a,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,n,e,r,i,u,o,s,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t[6]=s,t[7]=a,t},n.getDual=function(t,n){return t[0]=n[4],t[1]=n[5],t[2]=n[6],t[3]=n[7],t},n.setDual=function(t,n){return t[4]=n[0],t[5]=n[1],t[6]=n[2],t[7]=n[3],t},n.getTranslation=function(t,n){var e=n[4],r=n[5],i=n[6],u=n[7],o=-n[0],s=-n[1],a=-n[2],c=n[3];return t[0]=2*(e*c+u*o+r*a-i*s),t[1]=2*(r*c+u*s+i*o-e*a),t[2]=2*(i*c+u*a+e*s-r*o),t},n.translate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=.5*e[0],a=.5*e[1],c=.5*e[2],f=n[4],h=n[5],l=n[6],d=n[7];return t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=o*s+i*c-u*a+f,t[5]=o*a+u*s-r*c+h,t[6]=o*c+r*a-i*s+l,t[7]=-r*s-i*a-u*c+d,t},n.rotateX=function(t,n,e){var r=-n[0],u=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],f=n[6],h=n[7],l=a*s+h*r+c*o-f*u,d=c*s+h*u+f*r-a*o,E=f*s+h*o+a*u-c*r,m=h*s-a*r-c*u-f*o;return i.rotateX(t,n,e),r=t[0],u=t[1],o=t[2],s=t[3],t[4]=l*s+m*r+d*o-E*u,t[5]=d*s+m*u+E*r-l*o,t[6]=E*s+m*o+l*u-d*r,t[7]=m*s-l*r-d*u-E*o,t},n.rotateY=function(t,n,e){var r=-n[0],u=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],f=n[6],h=n[7],l=a*s+h*r+c*o-f*u,d=c*s+h*u+f*r-a*o,E=f*s+h*o+a*u-c*r,m=h*s-a*r-c*u-f*o;return i.rotateY(t,n,e),r=t[0],u=t[1],o=t[2],s=t[3],t[4]=l*s+m*r+d*o-E*u,t[5]=d*s+m*u+E*r-l*o,t[6]=E*s+m*o+l*u-d*r,t[7]=m*s-l*r-d*u-E*o,t},n.rotateZ=function(t,n,e){var r=-n[0],u=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],f=n[6],h=n[7],l=a*s+h*r+c*o-f*u,d=c*s+h*u+f*r-a*o,E=f*s+h*o+a*u-c*r,m=h*s-a*r-c*u-f*o;return i.rotateZ(t,n,e),r=t[0],u=t[1],o=t[2],s=t[3],t[4]=l*s+m*r+d*o-E*u,t[5]=d*s+m*u+E*r-l*o,t[6]=E*s+m*o+l*u-d*r,t[7]=m*s-l*r-d*u-E*o,t},n.rotateByQuatAppend=function(t,n,e){var r=e[0],i=e[1],u=e[2],o=e[3],s=n[0],a=n[1],c=n[2],f=n[3];return t[0]=s*o+f*r+a*u-c*i,t[1]=a*o+f*i+c*r-s*u,t[2]=c*o+f*u+s*i-a*r,t[3]=f*o-s*r-a*i-c*u,s=n[4],a=n[5],c=n[6],f=n[7],t[4]=s*o+f*r+a*u-c*i,t[5]=a*o+f*i+c*r-s*u,t[6]=c*o+f*u+s*i-a*r,t[7]=f*o-s*r-a*i-c*u,t},n.rotateByQuatPrepend=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*f+o*s+i*c-u*a,t[1]=i*f+o*a+u*s-r*c,t[2]=u*f+o*c+r*a-i*s,t[3]=o*f-r*s-i*a-u*c,s=e[4],a=e[5],c=e[6],f=e[7],t[4]=r*f+o*s+i*c-u*a,t[5]=i*f+o*a+u*s-r*c,t[6]=u*f+o*c+r*a-i*s,t[7]=o*f-r*s-i*a-u*c,t},n.rotateAroundAxis=function(t,n,e,i){if(Math.abs(i)<r.EPSILON)return a(t,n);var u=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);i*=.5;var o=Math.sin(i),s=o*e[0]/u,c=o*e[1]/u,f=o*e[2]/u,h=Math.cos(i),l=n[0],d=n[1],E=n[2],m=n[3];t[0]=l*h+m*s+d*f-E*c,t[1]=d*h+m*c+E*s-l*f,t[2]=E*h+m*f+l*c-d*s,t[3]=m*h-l*s-d*c-E*f;var _=n[4],R=n[5],M=n[6],A=n[7];return t[4]=_*h+A*s+R*f-M*c,t[5]=R*h+A*c+M*s-_*f,t[6]=M*h+A*f+_*c-R*s,t[7]=A*h-_*s-R*c-M*f,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t},n.multiply=c,n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t},n.lerp=function(t,n,e,r){var i=1-r;return f(n,e)<0&&(r=-r),t[0]=n[0]*i+e[0]*r,t[1]=n[1]*i+e[1]*r,t[2]=n[2]*i+e[2]*r,t[3]=n[3]*i+e[3]*r,t[4]=n[4]*i+e[4]*r,t[5]=n[5]*i+e[5]*r,t[6]=n[6]*i+e[6]*r,t[7]=n[7]*i+e[7]*r,t},n.invert=function(t,n){var e=l(n);return t[0]=-n[0]/e,t[1]=-n[1]/e,t[2]=-n[2]/e,t[3]=n[3]/e,t[4]=-n[4]/e,t[5]=-n[5]/e,t[6]=-n[6]/e,t[7]=n[7]/e,t},n.conjugate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t[4]=-n[4],t[5]=-n[5],t[6]=-n[6],t[7]=n[7],t},n.normalize=function(t,n){var e=l(n);if(e>0){e=Math.sqrt(e);var r=n[0]/e,i=n[1]/e,u=n[2]/e,o=n[3]/e,s=n[4],a=n[5],c=n[6],f=n[7],h=r*s+i*a+u*c+o*f;t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=(s-r*h)/e,t[5]=(a-i*h)/e,t[6]=(c-u*h)/e,t[7]=(f-o*h)/e}return t},n.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=t[6],f=t[7],h=n[0],l=n[1],d=n[2],E=n[3],m=n[4],_=n[5],R=n[6],M=n[7];return Math.abs(e-h)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(u-d)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(o-E)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-m)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-_)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(c-R)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(f-M)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))};var r=o(e(0)),i=o(e(3)),u=o(e(4));function o(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function s(t,n,e){var r=.5*e[0],i=.5*e[1],u=.5*e[2],o=n[0],s=n[1],a=n[2],c=n[3];return t[0]=o,t[1]=s,t[2]=a,t[3]=c,t[4]=r*c+i*a-u*s,t[5]=i*c+u*o-r*a,t[6]=u*c+r*s-i*o,t[7]=-r*o-i*s-u*a,t}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t}function c(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[4],a=e[5],c=e[6],f=e[7],h=n[4],l=n[5],d=n[6],E=n[7],m=e[0],_=e[1],R=e[2],M=e[3];return t[0]=r*M+o*m+i*R-u*_,t[1]=i*M+o*_+u*m-r*R,t[2]=u*M+o*R+r*_-i*m,t[3]=o*M-r*m-i*_-u*R,t[4]=r*f+o*s+i*c-u*a+h*M+E*m+l*R-d*_,t[5]=i*f+o*a+u*s-r*c+l*M+E*_+d*m-h*R,t[6]=u*f+o*c+r*a-i*s+d*M+E*R+h*_-l*m,t[7]=o*f-r*s-i*a-u*c+E*M-h*m-l*_-d*R,t}n.getReal=i.copy,n.setReal=i.copy,n.mul=c;var f=n.dot=i.dot,h=n.length=i.length,l=(n.len=h,n.squaredLength=i.squaredLength);n.sqrLen=l},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},n.fromValues=function(t,n,e,i,u,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=n,s[2]=e,s[3]=i,s[4]=u,s[5]=o,s},n.set=function(t,n,e,r,i,u,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=e*u-r*i;return a?(a=1/a,t[0]=u*a,t[1]=-r*a,t[2]=-i*a,t[3]=e*a,t[4]=(i*s-u*o)*a,t[5]=(r*o-e*s)*a,t):null},n.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},n.multiply=i,n.rotate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=Math.sin(e),f=Math.cos(e);return t[0]=r*f+u*c,t[1]=i*f+o*c,t[2]=r*-c+u*f,t[3]=i*-c+o*f,t[4]=s,t[5]=a,t},n.scale=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=e[0],f=e[1];return t[0]=r*c,t[1]=i*c,t[2]=u*f,t[3]=o*f,t[4]=s,t[5]=a,t},n.translate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=e[0],f=e[1];return t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=r*c+u*f+s,t[5]=i*c+o*f+a,t},n.fromRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=-e,t[3]=r,t[4]=0,t[5]=0,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},n.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},n.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t},n.subtract=u,n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=n[0],f=n[1],h=n[2],l=n[3],d=n[4],E=n[5];return Math.abs(e-c)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(i-f)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(u-h)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(s-d)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(a-E)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(E))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=e[0],f=e[1],h=e[2],l=e[3],d=e[4],E=e[5];return t[0]=r*c+u*f,t[1]=i*c+o*f,t[2]=r*h+u*l,t[3]=i*h+o*l,t[4]=r*d+u*E+s,t[5]=i*d+o*E+a,t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t}n.mul=i,n.sub=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},n.fromValues=function(t,n,e,i){var u=new r.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=e,u[3]=i,u},n.set=function(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t},n.transpose=function(t,n){if(t===n){var e=n[1];t[1]=n[2],t[2]=e}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e*u-i*r;return o?(o=1/o,t[0]=u*o,t[1]=-r*o,t[2]=-i*o,t[3]=e*o,t):null},n.adjoint=function(t,n){var e=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=e,t},n.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},n.multiply=i,n.rotate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a+u*s,t[1]=i*a+o*s,t[2]=r*-s+u*a,t[3]=i*-s+o*a,t},n.scale=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1];return t[0]=r*s,t[1]=i*s,t[2]=u*a,t[3]=o*a,t},n.fromRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=-e,t[3]=r,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},n.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},n.LDU=function(t,n,e,r){return t[2]=r[2]/r[0],e[0]=r[0],e[1]=r[1],e[3]=r[3]-t[2]*e[1],[t,n,e]},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t},n.subtract=u,n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=n[0],a=n[1],c=n[2],f=n[3];return Math.abs(e-s)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(u-c)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))},n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*s+u*a,t[1]=i*s+o*a,t[2]=r*c+u*f,t[3]=i*c+o*f,t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}n.mul=i,n.sub=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.vec4=n.vec3=n.vec2=n.quat2=n.quat=n.mat4=n.mat3=n.mat2d=n.mat2=n.glMatrix=void 0;var r=d(e(0)),i=d(e(9)),u=d(e(8)),o=d(e(5)),s=d(e(4)),a=d(e(3)),c=d(e(7)),f=d(e(6)),h=d(e(2)),l=d(e(1));function d(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}n.glMatrix=r,n.mat2=i,n.mat2d=u,n.mat3=o,n.mat4=s,n.quat=a,n.quat2=c,n.vec2=f,n.vec3=h,n.vec4=l}])},function(t,n,e){"use strict";var r=function(){var t,n;try{t=Object.defineProperty,n=Object.defineProperties,t({},"$",{value:0})}catch(e){"__defineGetter__"in Object&&(t=function(t,n,e){return"value"in e&&(t[n]=e.value),"get"in e&&t.__defineGetter__(n,e.get),"set"in e&&t.__defineSetter__(n,e.set),t},n=function(n,e){for(var r in e)e.hasOwnProperty(r)&&t(n,r,e[r]);return n})}var e=function(t){for(var e=1,r=arguments.length;e<r;e++){var i=arguments[e],u=void 0;for(var o in i){var s=i[o];!s||"object"!=typeof s||void 0===s.value&&"function"!=typeof s.get&&"function"!=typeof s.set?t[o]=s:(u=u||{})[o]=s}u&&n(t,u)}return t},r=function(){if(Object.__proto__)return function(t){return{__proto__:t}};var t=function(){};return function(n){return t.prototype=n,new t}}(),i={Extends:function(t){var n=this.prototype,i=r(t.prototype);e(this,t),e(i,n),i.constructor=this,this.prototype=i,this.superclass=t.prototype},Mixes:function(t){t instanceof Array||(t=[t]);for(var n,r=this.prototype;n=t.shift();)e(r,n.prototype||n)},Statics:function(t){e(this,t)}},u=function(t){var n,r,u={};for(r in t)n=t[r],i.hasOwnProperty(r)?i[r].call(this,n):u[r]=n;e(this.prototype,u)};return{create:function(t){var n=(t=t||{}).hasOwnProperty("constructor")?t.constructor:function(){};return u.call(n,t),n},mix:e}}();n.a=r},function(t,n,e){"use strict";var r={};e.r(r),e.d(r,"ACTIVE_ATTRIBUTES",(function(){return s})),e.d(r,"ACTIVE_ATTRIBUTE_MAX_LENGTH",(function(){return a})),e.d(r,"ACTIVE_TEXTURE",(function(){return c})),e.d(r,"ACTIVE_UNIFORMS",(function(){return f})),e.d(r,"ACTIVE_UNIFORM_MAX_LENGTH",(function(){return h})),e.d(r,"ALIASED_LINE_WIDTH_RANGE",(function(){return l})),e.d(r,"ALIASED_POINT_SIZE_RANGE",(function(){return d})),e.d(r,"ALPHA",(function(){return E})),e.d(r,"ALPHA_BITS",(function(){return m})),e.d(r,"ALWAYS",(function(){return _})),e.d(r,"ARRAY_BUFFER",(function(){return R})),e.d(r,"ARRAY_BUFFER_BINDING",(function(){return M})),e.d(r,"ATTACHED_SHADERS",(function(){return A})),e.d(r,"BACK",(function(){return T})),e.d(r,"BLEND",(function(){return v})),e.d(r,"BLEND_COLOR",(function(){return p})),e.d(r,"BLEND_DST_ALPHA",(function(){return N})),e.d(r,"BLEND_DST_RGB",(function(){return I})),e.d(r,"BLEND_EQUATION",(function(){return S})),e.d(r,"BLEND_EQUATION_ALPHA",(function(){return O})),e.d(r,"BLEND_EQUATION_RGB",(function(){return L})),e.d(r,"BLEND_SRC_ALPHA",(function(){return P})),e.d(r,"BLEND_SRC_RGB",(function(){return F})),e.d(r,"BLUE_BITS",(function(){return g})),e.d(r,"BOOL",(function(){return C})),e.d(r,"BOOL_VEC2",(function(){return D})),e.d(r,"BOOL_VEC3",(function(){return y})),e.d(r,"BOOL_VEC4",(function(){return U})),e.d(r,"BROWSER_DEFAULT_WEBGL",(function(){return B})),e.d(r,"BUFFER_SIZE",(function(){return b})),e.d(r,"BUFFER_USAGE",(function(){return G})),e.d(r,"BYTE",(function(){return X})),e.d(r,"CCW",(function(){return q})),e.d(r,"CLAMP_TO_EDGE",(function(){return x})),e.d(r,"COLOR_ATTACHMENT0",(function(){return Y})),e.d(r,"COLOR_BUFFER_BIT",(function(){return w})),e.d(r,"COLOR_CLEAR_VALUE",(function(){return H})),e.d(r,"COLOR_WRITEMASK",(function(){return V})),e.d(r,"COMPILE_STATUS",(function(){return W})),e.d(r,"COMPRESSED_TEXTURE_FORMATS",(function(){return Z})),e.d(r,"CONSTANT_ALPHA",(function(){return j})),e.d(r,"CONSTANT_COLOR",(function(){return K})),e.d(r,"CONTEXT_LOST_WEBGL",(function(){return z})),e.d(r,"CULL_FACE",(function(){return Q})),e.d(r,"CULL_FACE_MODE",(function(){return k})),e.d(r,"CURRENT_PROGRAM",(function(){return J})),e.d(r,"CURRENT_VERTEX_ATTRIB",(function(){return $})),e.d(r,"CW",(function(){return tt})),e.d(r,"DECR",(function(){return nt})),e.d(r,"DECR_WRAP",(function(){return et})),e.d(r,"DELETE_STATUS",(function(){return rt})),e.d(r,"DEPTH_ATTACHMENT",(function(){return it})),e.d(r,"DEPTH_BITS",(function(){return ut})),e.d(r,"DEPTH_BUFFER_BIT",(function(){return ot})),e.d(r,"DEPTH_CLEAR_VALUE",(function(){return st})),e.d(r,"DEPTH_COMPONENT",(function(){return at})),e.d(r,"DEPTH_COMPONENT16",(function(){return ct})),e.d(r,"DEPTH_FUNC",(function(){return ft})),e.d(r,"DEPTH_RANGE",(function(){return ht})),e.d(r,"DEPTH_STENCIL",(function(){return lt})),e.d(r,"DEPTH_STENCIL_ATTACHMENT",(function(){return dt})),e.d(r,"DEPTH_TEST",(function(){return Et})),e.d(r,"DEPTH_WRITEMASK",(function(){return mt})),e.d(r,"DITHER",(function(){return _t})),e.d(r,"DONT_CARE",(function(){return Rt})),e.d(r,"DST_ALPHA",(function(){return Mt})),e.d(r,"DST_COLOR",(function(){return At})),e.d(r,"DYNAMIC_DRAW",(function(){return Tt})),e.d(r,"ELEMENT_ARRAY_BUFFER",(function(){return vt})),e.d(r,"ELEMENT_ARRAY_BUFFER_BINDING",(function(){return pt})),e.d(r,"EQUAL",(function(){return Nt})),e.d(r,"FASTEST",(function(){return It})),e.d(r,"FLOAT",(function(){return St})),e.d(r,"FLOAT_MAT2",(function(){return Ot})),e.d(r,"FLOAT_MAT3",(function(){return Lt})),e.d(r,"FLOAT_MAT4",(function(){return Pt})),e.d(r,"FLOAT_VEC2",(function(){return Ft})),e.d(r,"FLOAT_VEC3",(function(){return gt})),e.d(r,"FLOAT_VEC4",(function(){return Ct})),e.d(r,"FRAGMENT_SHADER",(function(){return Dt})),e.d(r,"FRAMEBUFFER",(function(){return yt})),e.d(r,"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",(function(){return Ut})),e.d(r,"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",(function(){return Bt})),e.d(r,"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",(function(){return bt})),e.d(r,"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",(function(){return Gt})),e.d(r,"FRAMEBUFFER_BINDING",(function(){return Xt})),e.d(r,"FRAMEBUFFER_COMPLETE",(function(){return qt})),e.d(r,"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",(function(){return xt})),e.d(r,"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",(function(){return Yt})),e.d(r,"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",(function(){return wt})),e.d(r,"FRAMEBUFFER_UNSUPPORTED",(function(){return Ht})),e.d(r,"FRONT",(function(){return Vt})),e.d(r,"FRONT_AND_BACK",(function(){return Wt})),e.d(r,"FRONT_FACE",(function(){return Zt})),e.d(r,"FUNC_ADD",(function(){return jt})),e.d(r,"FUNC_REVERSE_SUBTRACT",(function(){return Kt})),e.d(r,"FUNC_SUBTRACT",(function(){return zt})),e.d(r,"GENERATE_MIPMAP_HINT",(function(){return Qt})),e.d(r,"GEQUAL",(function(){return kt})),e.d(r,"GREATER",(function(){return Jt})),e.d(r,"GREEN_BITS",(function(){return $t})),e.d(r,"HIGH_FLOAT",(function(){return tn})),e.d(r,"HIGH_INT",(function(){return nn})),e.d(r,"INCR",(function(){return en})),e.d(r,"INCR_WRAP",(function(){return rn})),e.d(r,"INFO_LOG_LENGTH",(function(){return un})),e.d(r,"INT",(function(){return on})),e.d(r,"INT_VEC2",(function(){return sn})),e.d(r,"INT_VEC3",(function(){return an})),e.d(r,"INT_VEC4",(function(){return cn})),e.d(r,"INVALID_ENUM",(function(){return fn})),e.d(r,"INVALID_FRAMEBUFFER_OPERATION",(function(){return hn})),e.d(r,"INVALID_OPERATION",(function(){return ln})),e.d(r,"INVALID_VALUE",(function(){return dn})),e.d(r,"INVERT",(function(){return En})),e.d(r,"KEEP",(function(){return mn})),e.d(r,"LEQUAL",(function(){return _n})),e.d(r,"LESS",(function(){return Rn})),e.d(r,"LINEAR",(function(){return Mn})),e.d(r,"LINEAR_MIPMAP_LINEAR",(function(){return An})),e.d(r,"LINEAR_MIPMAP_NEAREST",(function(){return Tn})),e.d(r,"LINES",(function(){return vn})),e.d(r,"LINE_LOOP",(function(){return pn})),e.d(r,"LINE_STRIP",(function(){return Nn})),e.d(r,"LINE_WIDTH",(function(){return In})),e.d(r,"LINK_STATUS",(function(){return Sn})),e.d(r,"LOW_FLOAT",(function(){return On})),e.d(r,"LOW_INT",(function(){return Ln})),e.d(r,"LUMINANCE",(function(){return Pn})),e.d(r,"LUMINANCE_ALPHA",(function(){return Fn})),e.d(r,"MAX_COMBINED_TEXTURE_IMAGE_UNITS",(function(){return gn})),e.d(r,"MAX_CUBE_MAP_TEXTURE_SIZE",(function(){return Cn})),e.d(r,"MAX_FRAGMENT_UNIFORM_VECTORS",(function(){return Dn})),e.d(r,"MAX_RENDERBUFFER_SIZE",(function(){return yn})),e.d(r,"MAX_TEXTURE_IMAGE_UNITS",(function(){return Un})),e.d(r,"MAX_TEXTURE_SIZE",(function(){return Bn})),e.d(r,"MAX_VARYING_VECTORS",(function(){return bn})),e.d(r,"MAX_VERTEX_ATTRIBS",(function(){return Gn})),e.d(r,"MAX_VERTEX_TEXTURE_IMAGE_UNITS",(function(){return Xn})),e.d(r,"MAX_VERTEX_UNIFORM_VECTORS",(function(){return qn})),e.d(r,"MAX_VIEWPORT_DIMS",(function(){return xn})),e.d(r,"MEDIUM_FLOAT",(function(){return Yn})),e.d(r,"MEDIUM_INT",(function(){return wn})),e.d(r,"MIRRORED_REPEAT",(function(){return Hn})),e.d(r,"NEAREST",(function(){return Vn})),e.d(r,"NEAREST_MIPMAP_LINEAR",(function(){return Wn})),e.d(r,"NEAREST_MIPMAP_NEAREST",(function(){return Zn})),e.d(r,"NEVER",(function(){return jn})),e.d(r,"NICEST",(function(){return Kn})),e.d(r,"NONE",(function(){return zn})),e.d(r,"NOTEQUAL",(function(){return Qn})),e.d(r,"NO_ERROR",(function(){return kn})),e.d(r,"NUM_COMPRESSED_TEXTURE_FORMATS",(function(){return Jn})),e.d(r,"ONE",(function(){return $n})),e.d(r,"ONE_MINUS_CONSTANT_ALPHA",(function(){return te})),e.d(r,"ONE_MINUS_CONSTANT_COLOR",(function(){return ne})),e.d(r,"ONE_MINUS_DST_ALPHA",(function(){return ee})),e.d(r,"ONE_MINUS_DST_COLOR",(function(){return re})),e.d(r,"ONE_MINUS_SRC_ALPHA",(function(){return ie})),e.d(r,"ONE_MINUS_SRC_COLOR",(function(){return ue})),e.d(r,"OUT_OF_MEMORY",(function(){return oe})),e.d(r,"PACK_ALIGNMENT",(function(){return se})),e.d(r,"POINTS",(function(){return ae})),e.d(r,"POLYGON_OFFSET_FACTOR",(function(){return ce})),e.d(r,"POLYGON_OFFSET_FILL",(function(){return fe})),e.d(r,"POLYGON_OFFSET_UNITS",(function(){return he})),e.d(r,"RED_BITS",(function(){return le})),e.d(r,"RENDERBUFFER",(function(){return de})),e.d(r,"RENDERBUFFER_ALPHA_SIZE",(function(){return Ee})),e.d(r,"RENDERBUFFER_BINDING",(function(){return me})),e.d(r,"RENDERBUFFER_BLUE_SIZE",(function(){return _e})),e.d(r,"RENDERBUFFER_DEPTH_SIZE",(function(){return Re})),e.d(r,"RENDERBUFFER_GREEN_SIZE",(function(){return Me})),e.d(r,"RENDERBUFFER_HEIGHT",(function(){return Ae})),e.d(r,"RENDERBUFFER_INTERNAL_FORMAT",(function(){return Te})),e.d(r,"RENDERBUFFER_RED_SIZE",(function(){return ve})),e.d(r,"RENDERBUFFER_STENCIL_SIZE",(function(){return pe})),e.d(r,"RENDERBUFFER_WIDTH",(function(){return Ne})),e.d(r,"RENDERER",(function(){return Ie})),e.d(r,"REPEAT",(function(){return Se})),e.d(r,"REPLACE",(function(){return Oe})),e.d(r,"RGB",(function(){return Le})),e.d(r,"RGB5_A1",(function(){return Pe})),e.d(r,"RGB565",(function(){return Fe})),e.d(r,"RGBA",(function(){return ge})),e.d(r,"RGBA4",(function(){return Ce})),e.d(r,"SAMPLER_2D",(function(){return De})),e.d(r,"SAMPLER_CUBE",(function(){return ye})),e.d(r,"SAMPLES",(function(){return Ue})),e.d(r,"SAMPLE_ALPHA_TO_COVERAGE",(function(){return Be})),e.d(r,"SAMPLE_BUFFERS",(function(){return be})),e.d(r,"SAMPLE_COVERAGE",(function(){return Ge})),e.d(r,"SAMPLE_COVERAGE_INVERT",(function(){return Xe})),e.d(r,"SAMPLE_COVERAGE_VALUE",(function(){return qe})),e.d(r,"SCISSOR_BOX",(function(){return xe})),e.d(r,"SCISSOR_TEST",(function(){return Ye})),e.d(r,"SHADER_COMPILER",(function(){return we})),e.d(r,"SHADER_SOURCE_LENGTH",(function(){return He})),e.d(r,"SHADER_TYPE",(function(){return Ve})),e.d(r,"SHADING_LANGUAGE_VERSION",(function(){return We})),e.d(r,"SHORT",(function(){return Ze})),e.d(r,"SRC_ALPHA",(function(){return je})),e.d(r,"SRC_ALPHA_SATURATE",(function(){return Ke})),e.d(r,"SRC_COLOR",(function(){return ze})),e.d(r,"STATIC_DRAW",(function(){return Qe})),e.d(r,"STENCIL_ATTACHMENT",(function(){return ke})),e.d(r,"STENCIL_BACK_FAIL",(function(){return Je})),e.d(r,"STENCIL_BACK_FUNC",(function(){return $e})),e.d(r,"STENCIL_BACK_PASS_DEPTH_FAIL",(function(){return tr})),e.d(r,"STENCIL_BACK_PASS_DEPTH_PASS",(function(){return nr})),e.d(r,"STENCIL_BACK_REF",(function(){return er})),e.d(r,"STENCIL_BACK_VALUE_MASK",(function(){return rr})),e.d(r,"STENCIL_BACK_WRITEMASK",(function(){return ir})),e.d(r,"STENCIL_BITS",(function(){return ur})),e.d(r,"STENCIL_BUFFER_BIT",(function(){return or})),e.d(r,"STENCIL_CLEAR_VALUE",(function(){return sr})),e.d(r,"STENCIL_FAIL",(function(){return ar})),e.d(r,"STENCIL_FUNC",(function(){return cr})),e.d(r,"STENCIL_INDEX",(function(){return fr})),e.d(r,"STENCIL_INDEX8",(function(){return hr})),e.d(r,"STENCIL_PASS_DEPTH_FAIL",(function(){return lr})),e.d(r,"STENCIL_PASS_DEPTH_PASS",(function(){return dr})),e.d(r,"STENCIL_REF",(function(){return Er})),e.d(r,"STENCIL_TEST",(function(){return mr})),e.d(r,"STENCIL_VALUE_MASK",(function(){return _r})),e.d(r,"STENCIL_WRITEMASK",(function(){return Rr})),e.d(r,"STREAM_DRAW",(function(){return Mr})),e.d(r,"SUBPIXEL_BITS",(function(){return Ar})),e.d(r,"TEXTURE",(function(){return Tr})),e.d(r,"TEXTURE0",(function(){return vr})),e.d(r,"TEXTURE1",(function(){return pr})),e.d(r,"TEXTURE2",(function(){return Nr})),e.d(r,"TEXTURE3",(function(){return Ir})),e.d(r,"TEXTURE4",(function(){return Sr})),e.d(r,"TEXTURE5",(function(){return Or})),e.d(r,"TEXTURE6",(function(){return Lr})),e.d(r,"TEXTURE7",(function(){return Pr})),e.d(r,"TEXTURE8",(function(){return Fr})),e.d(r,"TEXTURE9",(function(){return gr})),e.d(r,"TEXTURE10",(function(){return Cr})),e.d(r,"TEXTURE11",(function(){return Dr})),e.d(r,"TEXTURE12",(function(){return yr})),e.d(r,"TEXTURE13",(function(){return Ur})),e.d(r,"TEXTURE14",(function(){return Br})),e.d(r,"TEXTURE15",(function(){return br})),e.d(r,"TEXTURE16",(function(){return Gr})),e.d(r,"TEXTURE17",(function(){return Xr})),e.d(r,"TEXTURE18",(function(){return qr})),e.d(r,"TEXTURE19",(function(){return xr})),e.d(r,"TEXTURE20",(function(){return Yr})),e.d(r,"TEXTURE21",(function(){return wr})),e.d(r,"TEXTURE22",(function(){return Hr})),e.d(r,"TEXTURE23",(function(){return Vr})),e.d(r,"TEXTURE24",(function(){return Wr})),e.d(r,"TEXTURE25",(function(){return Zr})),e.d(r,"TEXTURE26",(function(){return jr})),e.d(r,"TEXTURE27",(function(){return Kr})),e.d(r,"TEXTURE28",(function(){return zr})),e.d(r,"TEXTURE29",(function(){return Qr})),e.d(r,"TEXTURE30",(function(){return kr})),e.d(r,"TEXTURE31",(function(){return Jr})),e.d(r,"TEXTURE_2D",(function(){return $r})),e.d(r,"TEXTURE_BINDING_2D",(function(){return ti})),e.d(r,"TEXTURE_BINDING_CUBE_MAP",(function(){return ni})),e.d(r,"TEXTURE_CUBE_MAP",(function(){return ei})),e.d(r,"TEXTURE_CUBE_MAP_NEGATIVE_X",(function(){return ri})),e.d(r,"TEXTURE_CUBE_MAP_NEGATIVE_Y",(function(){return ii})),e.d(r,"TEXTURE_CUBE_MAP_NEGATIVE_Z",(function(){return ui})),e.d(r,"TEXTURE_CUBE_MAP_POSITIVE_X",(function(){return oi})),e.d(r,"TEXTURE_CUBE_MAP_POSITIVE_Y",(function(){return si})),e.d(r,"TEXTURE_CUBE_MAP_POSITIVE_Z",(function(){return ai})),e.d(r,"TEXTURE_MAG_FILTER",(function(){return ci})),e.d(r,"TEXTURE_MIN_FILTER",(function(){return fi})),e.d(r,"TEXTURE_WRAP_S",(function(){return hi})),e.d(r,"TEXTURE_WRAP_T",(function(){return li})),e.d(r,"TRIANGLES",(function(){return di})),e.d(r,"TRIANGLE_FAN",(function(){return Ei})),e.d(r,"TRIANGLE_STRIP",(function(){return mi})),e.d(r,"UNPACK_ALIGNMENT",(function(){return _i})),e.d(r,"UNPACK_COLORSPACE_CONVERSION_WEBGL",(function(){return Ri})),e.d(r,"UNPACK_FLIP_Y_WEBGL",(function(){return Mi})),e.d(r,"UNPACK_PREMULTIPLY_ALPHA_WEBGL",(function(){return Ai})),e.d(r,"UNSIGNED_BYTE",(function(){return Ti})),e.d(r,"UNSIGNED_INT",(function(){return vi})),e.d(r,"UNSIGNED_SHORT",(function(){return pi})),e.d(r,"UNSIGNED_SHORT_4_4_4_4",(function(){return Ni})),e.d(r,"UNSIGNED_SHORT_5_5_5_1",(function(){return Ii})),e.d(r,"UNSIGNED_SHORT_5_6_5",(function(){return Si})),e.d(r,"VALIDATE_STATUS",(function(){return Oi})),e.d(r,"VENDOR",(function(){return Li})),e.d(r,"VERSION",(function(){return Pi})),e.d(r,"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",(function(){return Fi})),e.d(r,"VERTEX_ATTRIB_ARRAY_ENABLED",(function(){return gi})),e.d(r,"VERTEX_ATTRIB_ARRAY_NORMALIZED",(function(){return Ci})),e.d(r,"VERTEX_ATTRIB_ARRAY_POINTER",(function(){return Di})),e.d(r,"VERTEX_ATTRIB_ARRAY_SIZE",(function(){return yi})),e.d(r,"VERTEX_ATTRIB_ARRAY_STRIDE",(function(){return Ui})),e.d(r,"VERTEX_ATTRIB_ARRAY_TYPE",(function(){return Bi})),e.d(r,"VERTEX_SHADER",(function(){return bi})),e.d(r,"VIEWPORT",(function(){return Gi})),e.d(r,"ZERO",(function(){return Xi}));var i={};e.r(i),e.d(i,"READ_BUFFER",(function(){return qi})),e.d(i,"UNPACK_ROW_LENGTH",(function(){return xi})),e.d(i,"UNPACK_SKIP_ROWS",(function(){return Yi})),e.d(i,"UNPACK_SKIP_PIXELS",(function(){return wi})),e.d(i,"PACK_ROW_LENGTH",(function(){return Hi})),e.d(i,"PACK_SKIP_ROWS",(function(){return Vi})),e.d(i,"PACK_SKIP_PIXELS",(function(){return Wi})),e.d(i,"TEXTURE_BINDING_3D",(function(){return Zi})),e.d(i,"UNPACK_SKIP_IMAGES",(function(){return ji})),e.d(i,"UNPACK_IMAGE_HEIGHT",(function(){return Ki})),e.d(i,"MAX_3D_TEXTURE_SIZE",(function(){return zi})),e.d(i,"MAX_ELEMENTS_VERTICES",(function(){return Qi})),e.d(i,"MAX_ELEMENTS_INDICES",(function(){return ki})),e.d(i,"MAX_TEXTURE_LOD_BIAS",(function(){return Ji})),e.d(i,"MAX_FRAGMENT_UNIFORM_COMPONENTS",(function(){return $i})),e.d(i,"MAX_VERTEX_UNIFORM_COMPONENTS",(function(){return tu})),e.d(i,"MAX_ARRAY_TEXTURE_LAYERS",(function(){return nu})),e.d(i,"MIN_PROGRAM_TEXEL_OFFSET",(function(){return eu})),e.d(i,"MAX_PROGRAM_TEXEL_OFFSET",(function(){return ru})),e.d(i,"MAX_VARYING_COMPONENTS",(function(){return iu})),e.d(i,"FRAGMENT_SHADER_DERIVATIVE_HINT",(function(){return uu})),e.d(i,"RASTERIZER_DISCARD",(function(){return ou})),e.d(i,"VERTEX_ARRAY_BINDING",(function(){return su})),e.d(i,"MAX_VERTEX_OUTPUT_COMPONENTS",(function(){return au})),e.d(i,"MAX_FRAGMENT_INPUT_COMPONENTS",(function(){return cu})),e.d(i,"MAX_SERVER_WAIT_TIMEOUT",(function(){return fu})),e.d(i,"MAX_ELEMENT_INDEX",(function(){return hu})),e.d(i,"RED",(function(){return lu})),e.d(i,"RGB8",(function(){return du})),e.d(i,"RGBA8",(function(){return Eu})),e.d(i,"RGB10_A2",(function(){return mu})),e.d(i,"TEXTURE_3D",(function(){return _u})),e.d(i,"TEXTURE_WRAP_R",(function(){return Ru})),e.d(i,"TEXTURE_MIN_LOD",(function(){return Mu})),e.d(i,"TEXTURE_MAX_LOD",(function(){return Au})),e.d(i,"TEXTURE_BASE_LEVEL",(function(){return Tu})),e.d(i,"TEXTURE_MAX_LEVEL",(function(){return vu})),e.d(i,"TEXTURE_COMPARE_MODE",(function(){return pu})),e.d(i,"TEXTURE_COMPARE_FUNC",(function(){return Nu})),e.d(i,"SRGB",(function(){return Iu})),e.d(i,"SRGB8",(function(){return Su})),e.d(i,"SRGB8_ALPHA8",(function(){return Ou})),e.d(i,"COMPARE_REF_TO_TEXTURE",(function(){return Lu})),e.d(i,"RGBA32F",(function(){return Pu})),e.d(i,"RGB32F",(function(){return Fu})),e.d(i,"RGBA16F",(function(){return gu})),e.d(i,"RGB16F",(function(){return Cu})),e.d(i,"TEXTURE_2D_ARRAY",(function(){return Du})),e.d(i,"TEXTURE_BINDING_2D_ARRAY",(function(){return yu})),e.d(i,"R11F_G11F_B10F",(function(){return Uu})),e.d(i,"RGB9_E5",(function(){return Bu})),e.d(i,"RGBA32UI",(function(){return bu})),e.d(i,"RGB32UI",(function(){return Gu})),e.d(i,"RGBA16UI",(function(){return Xu})),e.d(i,"RGB16UI",(function(){return qu})),e.d(i,"RGBA8UI",(function(){return xu})),e.d(i,"RGB8UI",(function(){return Yu})),e.d(i,"RGBA32I",(function(){return wu})),e.d(i,"RGB32I",(function(){return Hu})),e.d(i,"RGBA16I",(function(){return Vu})),e.d(i,"RGB16I",(function(){return Wu})),e.d(i,"RGBA8I",(function(){return Zu})),e.d(i,"RGB8I",(function(){return ju})),e.d(i,"RED_INTEGER",(function(){return Ku})),e.d(i,"RGB_INTEGER",(function(){return zu})),e.d(i,"RGBA_INTEGER",(function(){return Qu})),e.d(i,"R8",(function(){return ku})),e.d(i,"RG8",(function(){return Ju})),e.d(i,"R16F",(function(){return $u})),e.d(i,"R32F",(function(){return to})),e.d(i,"RG16F",(function(){return no})),e.d(i,"RG32F",(function(){return eo})),e.d(i,"R8I",(function(){return ro})),e.d(i,"R8UI",(function(){return io})),e.d(i,"R16I",(function(){return uo})),e.d(i,"R16UI",(function(){return oo})),e.d(i,"R32I",(function(){return so})),e.d(i,"R32UI",(function(){return ao})),e.d(i,"RG8I",(function(){return co})),e.d(i,"RG8UI",(function(){return fo})),e.d(i,"RG16I",(function(){return ho})),e.d(i,"RG16UI",(function(){return lo})),e.d(i,"RG32I",(function(){return Eo})),e.d(i,"RG32UI",(function(){return mo})),e.d(i,"R8_SNORM",(function(){return _o})),e.d(i,"RG8_SNORM",(function(){return Ro})),e.d(i,"RGB8_SNORM",(function(){return Mo})),e.d(i,"RGBA8_SNORM",(function(){return Ao})),e.d(i,"RGB10_A2UI",(function(){return To})),e.d(i,"TEXTURE_IMMUTABLE_FORMAT",(function(){return vo})),e.d(i,"TEXTURE_IMMUTABLE_LEVELS",(function(){return po})),e.d(i,"UNSIGNED_INT_2_10_10_10_REV",(function(){return No})),e.d(i,"UNSIGNED_INT_10F_11F_11F_REV",(function(){return Io})),e.d(i,"UNSIGNED_INT_5_9_9_9_REV",(function(){return So})),e.d(i,"FLOAT_32_UNSIGNED_INT_24_8_REV",(function(){return Oo})),e.d(i,"UNSIGNED_INT_24_8",(function(){return Lo})),e.d(i,"HALF_FLOAT",(function(){return Po})),e.d(i,"RG",(function(){return Fo})),e.d(i,"RG_INTEGER",(function(){return go})),e.d(i,"INT_2_10_10_10_REV",(function(){return Co})),e.d(i,"URRENT_QUERY",(function(){return Do})),e.d(i,"QUERY_RESULT",(function(){return yo})),e.d(i,"QUERY_RESULT_AVAILABLE",(function(){return Uo})),e.d(i,"ANY_SAMPLES_PASSED",(function(){return Bo})),e.d(i,"ANY_SAMPLES_PASSED_CONSERVATIVE",(function(){return bo})),e.d(i,"MAX_DRAW_BUFFERS",(function(){return Go})),e.d(i,"DRAW_BUFFER0",(function(){return Xo})),e.d(i,"DRAW_BUFFER1",(function(){return qo})),e.d(i,"DRAW_BUFFER2",(function(){return xo})),e.d(i,"DRAW_BUFFER3",(function(){return Yo})),e.d(i,"DRAW_BUFFER4",(function(){return wo})),e.d(i,"DRAW_BUFFER5",(function(){return Ho})),e.d(i,"DRAW_BUFFER6",(function(){return Vo})),e.d(i,"DRAW_BUFFER7",(function(){return Wo})),e.d(i,"DRAW_BUFFER8",(function(){return Zo})),e.d(i,"DRAW_BUFFER9",(function(){return jo})),e.d(i,"DRAW_BUFFER10",(function(){return Ko})),e.d(i,"DRAW_BUFFER11",(function(){return zo})),e.d(i,"DRAW_BUFFER12",(function(){return Qo})),e.d(i,"DRAW_BUFFER13",(function(){return ko})),e.d(i,"DRAW_BUFFER14",(function(){return Jo})),e.d(i,"DRAW_BUFFER15",(function(){return $o})),e.d(i,"MAX_COLOR_ATTACHMENTS",(function(){return ts})),e.d(i,"COLOR_ATTACHMENT1",(function(){return ns})),e.d(i,"COLOR_ATTACHMENT2",(function(){return es})),e.d(i,"COLOR_ATTACHMENT3",(function(){return rs})),e.d(i,"COLOR_ATTACHMENT4",(function(){return is})),e.d(i,"COLOR_ATTACHMENT5",(function(){return us})),e.d(i,"COLOR_ATTACHMENT6",(function(){return os})),e.d(i,"COLOR_ATTACHMENT7",(function(){return ss})),e.d(i,"COLOR_ATTACHMENT8",(function(){return as})),e.d(i,"COLOR_ATTACHMENT9",(function(){return cs})),e.d(i,"COLOR_ATTACHMENT10",(function(){return fs})),e.d(i,"COLOR_ATTACHMENT11",(function(){return hs})),e.d(i,"COLOR_ATTACHMENT12",(function(){return ls})),e.d(i,"COLOR_ATTACHMENT13",(function(){return ds})),e.d(i,"COLOR_ATTACHMENT14",(function(){return Es})),e.d(i,"COLOR_ATTACHMENT15",(function(){return ms})),e.d(i,"SAMPLER_3D",(function(){return _s})),e.d(i,"SAMPLER_2D_SHADOW",(function(){return Rs})),e.d(i,"SAMPLER_2D_ARRAY",(function(){return Ms})),e.d(i,"SAMPLER_2D_ARRAY_SHADOW",(function(){return As})),e.d(i,"SAMPLER_CUBE_SHADOW",(function(){return Ts})),e.d(i,"INT_SAMPLER_2D",(function(){return vs})),e.d(i,"INT_SAMPLER_3D",(function(){return ps})),e.d(i,"INT_SAMPLER_CUBE",(function(){return Ns})),e.d(i,"INT_SAMPLER_2D_ARRAY",(function(){return Is})),e.d(i,"UNSIGNED_INT_SAMPLER_2D",(function(){return Ss})),e.d(i,"UNSIGNED_INT_SAMPLER_3D",(function(){return Os})),e.d(i,"UNSIGNED_INT_SAMPLER_CUBE",(function(){return Ls})),e.d(i,"UNSIGNED_INT_SAMPLER_2D_ARRAY",(function(){return Ps})),e.d(i,"MAX_SAMPLES",(function(){return Fs})),e.d(i,"SAMPLER_BINDING",(function(){return gs})),e.d(i,"PIXEL_PACK_BUFFER",(function(){return Cs})),e.d(i,"PIXEL_UNPACK_BUFFER",(function(){return Ds})),e.d(i,"PIXEL_PACK_BUFFER_BINDING",(function(){return ys})),e.d(i,"PIXEL_UNPACK_BUFFER_BINDING",(function(){return Us})),e.d(i,"COPY_READ_BUFFER",(function(){return Bs})),e.d(i,"COPY_WRITE_BUFFER",(function(){return bs})),e.d(i,"COPY_READ_BUFFER_BINDING",(function(){return Gs})),e.d(i,"COPY_WRITE_BUFFER_BINDING",(function(){return Xs})),e.d(i,"FLOAT_MAT2x3",(function(){return qs})),e.d(i,"FLOAT_MAT2x4",(function(){return xs})),e.d(i,"FLOAT_MAT3x2",(function(){return Ys})),e.d(i,"FLOAT_MAT3x4",(function(){return ws})),e.d(i,"FLOAT_MAT4x2",(function(){return Hs})),e.d(i,"FLOAT_MAT4x3",(function(){return Vs})),e.d(i,"UNSIGNED_INT_VEC2",(function(){return Ws})),e.d(i,"UNSIGNED_INT_VEC3",(function(){return Zs})),e.d(i,"UNSIGNED_INT_VEC4",(function(){return js})),e.d(i,"UNSIGNED_NORMALIZED",(function(){return Ks})),e.d(i,"SIGNED_NORMALIZED",(function(){return zs})),e.d(i,"VERTEX_ATTRIB_ARRAY_INTEGER",(function(){return Qs})),e.d(i,"VERTEX_ATTRIB_ARRAY_DIVISOR",(function(){return ks})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_MODE",(function(){return Js})),e.d(i,"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",(function(){return $s})),e.d(i,"TRANSFORM_FEEDBACK_VARYINGS",(function(){return ta})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_START",(function(){return na})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_SIZE",(function(){return ea})),e.d(i,"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",(function(){return ra})),e.d(i,"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",(function(){return ia})),e.d(i,"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",(function(){return ua})),e.d(i,"INTERLEAVED_ATTRIBS",(function(){return oa})),e.d(i,"SEPARATE_ATTRIBS",(function(){return sa})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER",(function(){return aa})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_BINDING",(function(){return ca})),e.d(i,"TRANSFORM_FEEDBACK",(function(){return fa})),e.d(i,"TRANSFORM_FEEDBACK_PAUSED",(function(){return ha})),e.d(i,"TRANSFORM_FEEDBACK_ACTIVE",(function(){return la})),e.d(i,"TRANSFORM_FEEDBACK_BINDING",(function(){return da})),e.d(i,"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",(function(){return Ea})),e.d(i,"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",(function(){return ma})),e.d(i,"FRAMEBUFFER_ATTACHMENT_RED_SIZE",(function(){return _a})),e.d(i,"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",(function(){return Ra})),e.d(i,"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",(function(){return Ma})),e.d(i,"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",(function(){return Aa})),e.d(i,"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",(function(){return Ta})),e.d(i,"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",(function(){return va})),e.d(i,"FRAMEBUFFER_DEFAULT",(function(){return pa})),e.d(i,"DEPTH_STENCIL_ATTACHMENT",(function(){return Na})),e.d(i,"DEPTH_STENCIL",(function(){return Ia})),e.d(i,"DEPTH24_STENCIL8",(function(){return Sa})),e.d(i,"DRAW_FRAMEBUFFER_BINDING",(function(){return Oa})),e.d(i,"READ_FRAMEBUFFER",(function(){return La})),e.d(i,"DRAW_FRAMEBUFFER",(function(){return Pa})),e.d(i,"READ_FRAMEBUFFER_BINDING",(function(){return Fa})),e.d(i,"RENDERBUFFER_SAMPLES",(function(){return ga})),e.d(i,"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",(function(){return Ca})),e.d(i,"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",(function(){return Da})),e.d(i,"UNIFORM_BUFFER",(function(){return ya})),e.d(i,"UNIFORM_BUFFER_BINDING",(function(){return Ua})),e.d(i,"UNIFORM_BUFFER_START",(function(){return Ba})),e.d(i,"UNIFORM_BUFFER_SIZE",(function(){return ba})),e.d(i,"MAX_VERTEX_UNIFORM_BLOCKS",(function(){return Ga})),e.d(i,"MAX_FRAGMENT_UNIFORM_BLOCKS",(function(){return Xa})),e.d(i,"MAX_COMBINED_UNIFORM_BLOCKS",(function(){return qa})),e.d(i,"MAX_UNIFORM_BUFFER_BINDINGS",(function(){return xa})),e.d(i,"MAX_UNIFORM_BLOCK_SIZE",(function(){return Ya})),e.d(i,"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",(function(){return wa})),e.d(i,"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",(function(){return Ha})),e.d(i,"UNIFORM_BUFFER_OFFSET_ALIGNMENT",(function(){return Va})),e.d(i,"ACTIVE_UNIFORM_BLOCKS",(function(){return Wa})),e.d(i,"UNIFORM_TYPE",(function(){return Za})),e.d(i,"UNIFORM_SIZE",(function(){return ja})),e.d(i,"UNIFORM_BLOCK_INDEX",(function(){return Ka})),e.d(i,"UNIFORM_OFFSET",(function(){return za})),e.d(i,"UNIFORM_ARRAY_STRIDE",(function(){return Qa})),e.d(i,"UNIFORM_MATRIX_STRIDE",(function(){return ka})),e.d(i,"UNIFORM_IS_ROW_MAJOR",(function(){return Ja})),e.d(i,"UNIFORM_BLOCK_BINDING",(function(){return $a})),e.d(i,"UNIFORM_BLOCK_DATA_SIZE",(function(){return tc})),e.d(i,"UNIFORM_BLOCK_ACTIVE_UNIFORMS",(function(){return nc})),e.d(i,"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",(function(){return ec})),e.d(i,"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",(function(){return rc})),e.d(i,"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",(function(){return ic})),e.d(i,"OBJECT_TYPE",(function(){return uc})),e.d(i,"SYNC_CONDITION",(function(){return oc})),e.d(i,"SYNC_STATUS",(function(){return sc})),e.d(i,"SYNC_FLAGS",(function(){return ac})),e.d(i,"SYNC_FENCE",(function(){return cc})),e.d(i,"SYNC_GPU_COMMANDS_COMPLETE",(function(){return fc})),e.d(i,"UNSIGNALED",(function(){return hc})),e.d(i,"SIGNALED",(function(){return lc})),e.d(i,"ALREADY_SIGNALED",(function(){return dc})),e.d(i,"TIMEOUT_EXPIRED",(function(){return Ec})),e.d(i,"CONDITION_SATISFIED",(function(){return mc})),e.d(i,"WAIT_FAILED",(function(){return _c})),e.d(i,"SYNC_FLUSH_COMMANDS_BIT",(function(){return Rc})),e.d(i,"COLOR",(function(){return Mc})),e.d(i,"DEPTH",(function(){return Ac})),e.d(i,"STENCIL",(function(){return Tc})),e.d(i,"MIN",(function(){return vc})),e.d(i,"MAX",(function(){return pc})),e.d(i,"DEPTH_COMPONENT24",(function(){return Nc})),e.d(i,"STREAM_READ",(function(){return Ic})),e.d(i,"STREAM_COPY",(function(){return Sc})),e.d(i,"STATIC_READ",(function(){return Oc})),e.d(i,"STATIC_COPY",(function(){return Lc})),e.d(i,"DYNAMIC_READ",(function(){return Pc})),e.d(i,"DYNAMIC_COPY",(function(){return Fc})),e.d(i,"DEPTH_COMPONENT32F",(function(){return gc})),e.d(i,"DEPTH32F_STENCIL8",(function(){return Cc})),e.d(i,"INVALID_INDEX",(function(){return Dc})),e.d(i,"TIMEOUT_IGNO",(function(){return yc})),e.d(i,"MAX_CLIENT_WAIT_TIMEOUT_WEBGL",(function(){return Uc}));var u={};e.r(u),e.d(u,"VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",(function(){return Bc})),e.d(u,"UNMASKED_VENDOR_WEBGL",(function(){return bc})),e.d(u,"UNMASKED_RENDERER_WEBGL",(function(){return Gc})),e.d(u,"MAX_TEXTURE_MAX_ANISOTROPY_EXT",(function(){return Xc})),e.d(u,"TEXTURE_MAX_ANISOTROPY_EXT",(function(){return qc})),e.d(u,"COMPRESSED_RGB_S3TC_DXT1_EXT",(function(){return xc})),e.d(u,"COMPRESSED_RGBA_S3TC_DXT1_EXT",(function(){return Yc})),e.d(u,"COMPRESSED_RGBA_S3TC_DXT3_EXT",(function(){return wc})),e.d(u,"COMPRESSED_RGBA_S3TC_DXT5_EXT",(function(){return Hc})),e.d(u,"COMPRESSED_R11_EAC",(function(){return Vc})),e.d(u,"COMPRESSED_SIGNED_R11_EAC",(function(){return Wc})),e.d(u,"COMPRESSED_RG11_EAC",(function(){return Zc})),e.d(u,"COMPRESSED_SIGNED_RG11_EAC",(function(){return jc})),e.d(u,"COMPRESSED_RGB8_ETC2",(function(){return Kc})),e.d(u,"COMPRESSED_RGBA8_ETC2_EAC",(function(){return zc})),e.d(u,"COMPRESSED_SRGB8_ETC2",(function(){return Qc})),e.d(u,"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",(function(){return kc})),e.d(u,"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",(function(){return Jc})),e.d(u,"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",(function(){return $c})),e.d(u,"COMPRESSED_RGB_PVRTC_4BPPV1_IMG",(function(){return tf})),e.d(u,"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",(function(){return nf})),e.d(u,"COMPRESSED_RGB_PVRTC_2BPPV1_IMG",(function(){return ef})),e.d(u,"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",(function(){return rf})),e.d(u,"COMPRESSED_RGB_ETC1_WEBGL",(function(){return uf})),e.d(u,"_WEBGL",(function(){return of})),e.d(u,"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",(function(){return sf})),e.d(u,"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",(function(){return af})),e.d(u,"UNSIGNED_INT_24_8_WEBGL",(function(){return cf})),e.d(u,"HALF_FLOAT_OES",(function(){return ff})),e.d(u,"RGBA32F_EXT",(function(){return hf})),e.d(u,"RGB32F_EXT",(function(){return lf})),e.d(u,"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",(function(){return df})),e.d(u,"UNSIGNED_NORMALIZED_EXT",(function(){return Ef})),e.d(u,"MIN_EXT",(function(){return mf})),e.d(u,"MAX_EXT",(function(){return _f})),e.d(u,"SRGB_EXT",(function(){return Rf})),e.d(u,"SRGB_ALPHA_EXT",(function(){return Mf})),e.d(u,"SRGB8_ALPHA8_EXT",(function(){return Af})),e.d(u,"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",(function(){return Tf})),e.d(u,"FRAGMENT_SHADER_DERIVATIVE_HINT_OES",(function(){return vf})),e.d(u,"COLOR_ATTACHMENT0_WEBGL",(function(){return pf})),e.d(u,"COLOR_ATTACHMENT1_WEBGL",(function(){return Nf})),e.d(u,"COLOR_ATTACHMENT2_WEBGL",(function(){return If})),e.d(u,"COLOR_ATTACHMENT3_WEBGL",(function(){return Sf})),e.d(u,"COLOR_ATTACHMENT4_WEBGL",(function(){return Of})),e.d(u,"COLOR_ATTACHMENT5_WEBGL",(function(){return Lf})),e.d(u,"COLOR_ATTACHMENT6_WEBGL",(function(){return Pf})),e.d(u,"COLOR_ATTACHMENT7_WEBGL",(function(){return Ff})),e.d(u,"COLOR_ATTACHMENT8_WEBGL",(function(){return gf})),e.d(u,"COLOR_ATTACHMENT9_WEBGL",(function(){return Cf})),e.d(u,"COLOR_ATTACHMENT10_WEBGL",(function(){return Df})),e.d(u,"COLOR_ATTACHMENT11_WEBGL",(function(){return yf})),e.d(u,"COLOR_ATTACHMENT12_WEBGL",(function(){return Uf})),e.d(u,"COLOR_ATTACHMENT13_WEBGL",(function(){return Bf})),e.d(u,"COLOR_ATTACHMENT14_WEBGL",(function(){return bf})),e.d(u,"COLOR_ATTACHMENT15_WEBGL",(function(){return Gf})),e.d(u,"DRAW_BUFFER0_WEBGL",(function(){return Xf})),e.d(u,"DRAW_BUFFER1_WEBGL",(function(){return qf})),e.d(u,"DRAW_BUFFER2_WEBGL",(function(){return xf})),e.d(u,"DRAW_BUFFER3_WEBGL",(function(){return Yf})),e.d(u,"DRAW_BUFFER4_WEBGL",(function(){return wf})),e.d(u,"DRAW_BUFFER5_WEBGL",(function(){return Hf})),e.d(u,"DRAW_BUFFER6_WEBGL",(function(){return Vf})),e.d(u,"DRAW_BUFFER7_WEBGL",(function(){return Wf})),e.d(u,"DRAW_BUFFER8_WEBGL",(function(){return Zf})),e.d(u,"DRAW_BUFFER9_WEBGL",(function(){return jf})),e.d(u,"DRAW_BUFFER10_WEBGL",(function(){return Kf})),e.d(u,"DRAW_BUFFER11_WEBGL",(function(){return zf})),e.d(u,"DRAW_BUFFER12_WEBGL",(function(){return Qf})),e.d(u,"DRAW_BUFFER13_WEBGL",(function(){return kf})),e.d(u,"DRAW_BUFFER14_WEBGL",(function(){return Jf})),e.d(u,"DRAW_BUFFER15_WEBGL",(function(){return $f})),e.d(u,"MAX_COLOR_ATTACHMENTS_WEBGL",(function(){return th})),e.d(u,"MAX_DRAW_BUFFERS_WEBGL",(function(){return nh})),e.d(u,"VERTEX_ARRAY_BINDING_OES",(function(){return eh})),e.d(u,"QUERY_COUNTER_BITS_EXT",(function(){return rh})),e.d(u,"CURRENT_QUERY_EXT",(function(){return ih})),e.d(u,"QUERY_RESULT_EXT",(function(){return uh})),e.d(u,"QUERY_RESULT_AVAILABLE_EXT",(function(){return oh})),e.d(u,"TIME_ELAPSED_EXT",(function(){return sh})),e.d(u,"TIMESTAMP_EXT",(function(){return ah})),e.d(u,"GPU_DISJOINT_EXT",(function(){return ch}));var o={};e.r(o),e.d(o,"POSITION",(function(){return fh})),e.d(o,"NORMAL",(function(){return hh})),e.d(o,"DEPTH",(function(){return lh})),e.d(o,"DISTANCE",(function(){return dh}));var s=35721,a=35722,c=34016,f=35718,h=35719,l=33902,d=33901,E=6406,m=3413,_=519,R=34962,M=34964,A=35717,T=1029,v=3042,p=32773,N=32970,I=32968,S=32777,O=34877,L=32777,P=32971,F=32969,g=3412,C=35670,D=35671,y=35672,U=35673,B=37444,b=34660,G=34661,X=5120,q=2305,x=33071,Y=36064,w=16384,H=3106,V=3107,W=35713,Z=34467,j=32771,K=32769,z=37442,Q=2884,k=2885,J=35725,$=34342,tt=2304,nt=7683,et=34056,rt=35712,it=36096,ut=3414,ot=256,st=2931,at=6402,ct=33189,ft=2932,ht=2928,lt=34041,dt=33306,Et=2929,mt=2930,_t=3024,Rt=4352,Mt=772,At=774,Tt=35048,vt=34963,pt=34965,Nt=514,It=4353,St=5126,Ot=35674,Lt=35675,Pt=35676,Ft=35664,gt=35665,Ct=35666,Dt=35632,yt=36160,Ut=36049,Bt=36048,bt=36051,Gt=36050,Xt=36006,qt=36053,xt=36054,Yt=36057,wt=36055,Ht=36061,Vt=1028,Wt=1032,Zt=2886,jt=32774,Kt=32779,zt=32778,Qt=33170,kt=518,Jt=516,$t=3411,tn=36338,nn=36341,en=7682,rn=34055,un=35716,on=5124,sn=35667,an=35668,cn=35669,fn=1280,hn=1286,ln=1282,dn=1281,En=5386,mn=7680,_n=515,Rn=513,Mn=9729,An=9987,Tn=9985,vn=1,pn=2,Nn=3,In=2849,Sn=35714,On=36336,Ln=36339,Pn=6409,Fn=6410,gn=35661,Cn=34076,Dn=36349,yn=34024,Un=34930,Bn=3379,bn=36348,Gn=34921,Xn=35660,qn=36347,xn=3386,Yn=36337,wn=36340,Hn=33648,Vn=9728,Wn=9986,Zn=9984,jn=512,Kn=4354,zn=0,Qn=517,kn=0,Jn=34466,$n=1,te=32772,ne=32770,ee=773,re=775,ie=771,ue=769,oe=1285,se=3333,ae=0,ce=32824,fe=32823,he=10752,le=3410,de=36161,Ee=36179,me=36007,_e=36178,Re=36180,Me=36177,Ae=36163,Te=36164,ve=36176,pe=36181,Ne=36162,Ie=7937,Se=10497,Oe=7681,Le=6407,Pe=32855,Fe=36194,ge=6408,Ce=32854,De=35678,ye=35680,Ue=32937,Be=32926,be=32936,Ge=32928,Xe=32939,qe=32938,xe=3088,Ye=3089,we=36346,He=35720,Ve=35663,We=35724,Ze=5122,je=770,Ke=776,ze=768,Qe=35044,ke=36128,Je=34817,$e=34816,tr=34818,nr=34819,er=36003,rr=36004,ir=36005,ur=3415,or=1024,sr=2961,ar=2964,cr=2962,fr=6401,hr=36168,lr=2965,dr=2966,Er=2967,mr=2960,_r=2963,Rr=2968,Mr=35040,Ar=3408,Tr=5890,vr=33984,pr=33985,Nr=33986,Ir=33987,Sr=33988,Or=33989,Lr=33990,Pr=33991,Fr=33992,gr=33993,Cr=33994,Dr=33995,yr=33996,Ur=33997,Br=33998,br=33999,Gr=34e3,Xr=34001,qr=34002,xr=34003,Yr=34004,wr=34005,Hr=34006,Vr=34007,Wr=34008,Zr=34009,jr=34010,Kr=34011,zr=34012,Qr=34013,kr=34014,Jr=34015,$r=3553,ti=32873,ni=34068,ei=34067,ri=34070,ii=34072,ui=34074,oi=34069,si=34071,ai=34073,ci=10240,fi=10241,hi=10242,li=10243,di=4,Ei=6,mi=5,_i=3317,Ri=37443,Mi=37440,Ai=37441,Ti=5121,vi=5125,pi=5123,Ni=32819,Ii=32820,Si=33635,Oi=35715,Li=7936,Pi=7938,Fi=34975,gi=34338,Ci=34922,Di=34373,yi=34339,Ui=34340,Bi=34341,bi=35633,Gi=2978,Xi=0,qi=3074,xi=3314,Yi=3315,wi=3316,Hi=3330,Vi=3331,Wi=3332,Zi=32874,ji=32877,Ki=32878,zi=32883,Qi=33e3,ki=33001,Ji=34045,$i=35657,tu=35658,nu=35071,eu=35076,ru=35077,iu=35659,uu=35723,ou=35977,su=34229,au=37154,cu=37157,fu=37137,hu=2262,lu=6403,du=32849,Eu=32856,mu=32857,_u=32879,Ru=32882,Mu=33082,Au=33083,Tu=33084,vu=33085,pu=34892,Nu=34893,Iu=35904,Su=35905,Ou=35907,Lu=34894,Pu=34836,Fu=34837,gu=34842,Cu=34843,Du=35866,yu=35869,Uu=35898,Bu=35901,bu=36208,Gu=36209,Xu=36214,qu=36215,xu=36220,Yu=36221,wu=36226,Hu=36227,Vu=36232,Wu=36233,Zu=36238,ju=36239,Ku=36244,zu=36248,Qu=36249,ku=33321,Ju=33323,$u=33325,to=33326,no=33327,eo=33328,ro=33329,io=33330,uo=33331,oo=33332,so=33333,ao=33334,co=33335,fo=33336,ho=33337,lo=33338,Eo=33339,mo=33340,_o=36756,Ro=36757,Mo=36758,Ao=36759,To=36975,vo=37167,po=2093,No=33640,Io=35899,So=35902,Oo=36269,Lo=34042,Po=5131,Fo=33319,go=33320,Co=2265,Do=34917,yo=34918,Uo=34919,Bo=35887,bo=2262,Go=34852,Xo=34853,qo=34854,xo=34855,Yo=34856,wo=34857,Ho=34858,Vo=34859,Wo=34860,Zo=34861,jo=34862,Ko=34863,zo=34864,Qo=34865,ko=34866,Jo=34867,$o=34868,ts=36063,ns=36065,es=36066,rs=36067,is=36068,us=36069,os=36070,ss=36071,as=36072,cs=36073,fs=36074,hs=36075,ls=36076,ds=36077,Es=36078,ms=2254,_s=35679,Rs=35682,Ms=36289,As=36292,Ts=36293,vs=36298,ps=36299,Ns=36300,Is=36303,Ss=36306,Os=36307,Ls=36308,Ps=36311,Fs=36183,gs=2193,Cs=35051,Ds=35052,ys=35053,Us=35055,Bs=36662,bs=36663,Gs=36662,Xs=2291,qs=35685,xs=35686,Ys=35687,ws=35688,Hs=35689,Vs=35690,Ws=36294,Zs=36295,js=36296,Ks=35863,zs=2297,Qs=35069,ks=2191,Js=35967,$s=35968,ta=35971,na=35972,ea=35973,ra=35976,ia=35978,ua=35979,oa=35980,sa=35981,aa=35982,ca=35983,fa=36386,ha=36387,la=36388,da=2274,Ea=33296,ma=33297,_a=33298,Ra=33299,Ma=33300,Aa=33301,Ta=33302,va=33303,pa=33304,Na=33306,Ia=34041,Sa=35056,Oa=36006,La=36008,Pa=36009,Fa=36010,ga=36011,Ca=36052,Da=2261,ya=35345,Ua=35368,Ba=35369,ba=35370,Ga=35371,Xa=35373,qa=35374,xa=35375,Ya=35376,wa=35377,Ha=35379,Va=35380,Wa=35382,Za=35383,ja=35384,Ka=35386,za=35387,Qa=35388,ka=35389,Ja=35390,$a=35391,tc=35392,nc=35394,ec=35395,rc=35396,ic=2212,uc=37138,oc=37139,sc=37140,ac=37141,cc=37142,fc=37143,hc=37144,lc=37145,dc=37146,Ec=37147,mc=37148,_c=37149,Rc=0,Mc=6144,Ac=6145,Tc=6146,vc=32775,pc=32776,Nc=33190,Ic=35041,Sc=35042,Oc=35045,Lc=35046,Pc=35049,Fc=35050,gc=36012,Cc=36013,Dc=268435455,yc=lu-1,Uc=2340,Bc=35070,bc=37445,Gc=37446,Xc=34047,qc=34046,xc=33776,Yc=33777,wc=33778,Hc=33779,Vc=37488,Wc=37489,Zc=37490,jc=37491,Kc=37492,zc=37493,Qc=37494,kc=37495,Jc=37496,$c=37497,tf=35840,nf=35842,ef=35841,rf=35843,uf=36196,of=35986,sf=35986,af=34798,cf=34042,ff=36193,hf=34836,lf=34837,df=33297,Ef=35863,mf=32775,_f=32776,Rf=35904,Mf=35906,Af=35907,Tf=33296,vf=35723,pf=36064,Nf=36065,If=36066,Sf=36067,Of=36068,Lf=36069,Pf=36070,Ff=36071,gf=36072,Cf=36073,Df=36074,yf=36075,Uf=36076,Bf=36077,bf=36078,Gf=36079,Xf=34853,qf=34854,xf=34855,Yf=34856,wf=34857,Hf=34858,Vf=34859,Wf=34860,Zf=34861,jf=34862,Kf=34863,zf=34864,Qf=34865,kf=34866,Jf=34867,$f=34868,th=36063,nh=34852,eh=34229,rh=34916,ih=34917,uh=34918,oh=34919,sh=35007,ah=36392,ch=36795,fh="POSITION",hh="NORMAL",lh="DEPTH",dh="DISTANCE",Eh={webgl:r,webglExtensions:u,webgl2:i,Hilo:o};Object.assign(Eh,r,u,i,o);n.a=Eh},function(t,n,e){"use strict";var r={},i={_cache:r,level:7,LEVEL_NONE:0,LEVEL_LOG:1,LEVEL_WARN:2,LEVEL_ERROR:4,log:function(){var t=this.console;return 1&this.level&&t.log.apply(t,arguments),this},warn:function(){var t=this.console;return 2&this.level&&t.warn.apply(t,arguments),this},error:function(){var t=this.console;return 4&this.level&&t.error.apply(t,arguments),this},logOnce:function(t){return r["log_"+t]||(r["log_"+t]=!0,this.log.apply(this,Array.prototype.slice.call(arguments,1))),this},warnOnce:function(t){return r["warn_"+t]||(r["warn_"+t]=!0,this.warn.apply(this,Array.prototype.slice.call(arguments,1))),this},errorOnce:function(t){return r["error_"+t]||(r["error_"+t]=!0,this.error.apply(this,Array.prototype.slice.call(arguments,1))),this},_console:console,get console(){return this._console},set console(t){this._console=t}};n.a=i},function(t,n,e){"use strict";e.r(n),e.d(n,"each",(function(){return _})),e.d(n,"getRelativePath",(function(){return d})),e.d(n,"convertUint8ArrayToString",(function(){return E})),e.d(n,"getExtension",(function(){return m})),e.d(n,"getIndexFromSortedArray",(function(){return R})),e.d(n,"insertToSortedArray",(function(){return M})),e.d(n,"padLeft",(function(){return A})),e.d(n,"getTypedArrayClass",(function(){return N})),e.d(n,"copyArrayData",(function(){return I})),e.d(n,"isStrOrNumber",(function(){return S})),e.d(n,"getTypedArrayGLType",(function(){return T})),e.d(n,"getBlobUrl",(function(){return P})),e.d(n,"isBlobUrl",(function(){return O})),e.d(n,"revokeBlobUrl",(function(){return L})),e.d(n,"isArrayLike",(function(){return F})),e.d(n,"getElementRect",(function(){return g})),e.d(n,"serialRun",(function(){return C})),e.d(n,"hasOwnProperty",(function(){return D})),e.d(n,"isWebGL2",(function(){return y}));var r=e(3),i=e(2);function u(t,n,e){return(n=function(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var o,s=i.a.BYTE,a=i.a.UNSIGNED_BYTE,c=i.a.SHORT,f=i.a.UNSIGNED_SHORT,h=i.a.UNSIGNED_INT,l=i.a.FLOAT;function d(t,n){if(/^(?:http|blob|data:|\/)/.test(n))return n;var e;for(t=t.replace(/\/[^/]*?$/,"").split("/"),n=n.split("/"),e=0;e<n.length;e++){var r=n[e];if(".."===r)t.pop();else if("."!==r)break}return t.join("/")+"/"+n.slice(e).join("/")}function E(t,n){if(window.TextDecoder)return o||(o=new TextDecoder("utf-8")),t instanceof Uint8Array||(t=new Uint8Array(t)),o.decode(t);for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return n&&(e=decodeURIComponent(escape(e))),e}function m(t){var n=String(t).match(/\/?[^/]+\.(\w+)(\?\S+)?$/i);return n&&n[1].toLowerCase()||null}function _(t,n){t&&(Array.isArray(t)?t.forEach(n):Object.keys(t).forEach((function(e){n(t[e],e)})))}function R(t,n,e){if(!t||!t.length)return[0,0];for(var r=0,i=t.length-1;r<=i;){var u=r+i>>1,o=e(t[u],n);if(0===o)return[u,u];o<0?r=u+1:i=u-1}return r>i?[i,r]:[r,i]}function M(t,n,e){var r=R(t,n,e);t.splice(r[1],0,n)}function A(t,n,e){return n<=t.length?t:new Array(n-t.length+1).join(e||"0")+t}function T(t){return t instanceof Float32Array?l:t instanceof Int8Array?s:t instanceof Uint8Array?a:t instanceof Int16Array?c:t instanceof Uint16Array?f:t instanceof Uint32Array?h:l}var v,p,N=(u(v={},s,Int8Array),u(v,a,Uint8Array),u(v,c,Int16Array),u(v,f,Uint16Array),u(v,h,Uint32Array),u(v,l,Float32Array),p=v,function(t){return p[t]||Float32Array});function I(t,n,e,r,i){if(t&&n){n.isGeometryData&&(n=n.data);for(var u=0;u<i;u++)t[e+u]=n[r+u]}}function S(t){return"string"==typeof t||"number"==typeof t}function O(t){return/^blob:/.test(t)}function L(t){window.URL&&URL.revokeObjectURL(t)}function P(t,n){if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),window.Blob&&window.URL)try{var e=new Blob([n],{type:t});return window.URL.createObjectURL(e)}catch(n){r.a.warn("new Blob error",t)}return"data:".concat(t,";base64,").concat(btoa(E(n)))}function F(t){return Array.isArray(t)||t.BYTES_PER_ELEMENT||t.length}function g(t){var n,e=document.documentElement;try{n=t.getBoundingClientRect()}catch(e){n={top:t.offsetTop,left:t.offsetLeft,right:t.offsetLeft+t.offsetWidth,bottom:t.offsetTop+t.offsetHeight}}var r=(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)||0,i=(window.pageYOffset||e.scrollTop)-(e.clientTop||0)||0,u=window.getComputedStyle?getComputedStyle(t):t.currentStyle,o=parseInt,s=o(u.paddingLeft)+o(u.borderLeftWidth)||0,a=o(u.paddingTop)+o(u.borderTopWidth)||0,c=o(u.paddingRight)+o(u.borderRightWidth)||0,f=o(u.paddingBottom)+o(u.borderBottomWidth)||0,h=n.top||0,l=n.left||0;return{left:l+r+s,top:h+i+a,width:(n.right||0)-c-l-s,height:(n.bottom||0)-f-h-a}}function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)||(t=Object.values(t)),t.reduce((function(t,e,r){return t.then((function(){return n(e,r)}))}),Promise.resolve())}function D(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function y(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext}},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Vector3",isVector3:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.elements=r.vec3.fromValues(t,n,e)},copy:function(t){return r.vec3.copy(this.elements,t.elements),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t[2+n]=e[2],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],e[2]=t[n+2],this},set:function(t,n,e){return r.vec3.set(this.elements,t,n,e),this},add:function(t,n){return n||(n=t,t=this),r.vec3.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.vec3.subtract(this.elements,t.elements,n.elements),this},multiply:function(t,n){return n||(n=t,t=this),r.vec3.multiply(this.elements,t.elements,n.elements),this},divide:function(t,n){return n||(n=t,t=this),r.vec3.divide(this.elements,t.elements,n.elements),this},ceil:function(){return r.vec3.ceil(this.elements,this.elements),this},floor:function(){return r.vec3.floor(this.elements,this.elements),this},min:function(t,n){return n||(n=t,t=this),r.vec3.min(this.elements,t.elements,n.elements),this},max:function(t,n){return n||(n=t,t=this),r.vec3.max(this.elements,t.elements,n.elements),this},round:function(){return r.vec3.round(this.elements,this.elements),this},scale:function(t){return r.vec3.scale(this.elements,this.elements,t),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec3.scaleAndAdd(this.elements,n.elements,e.elements,t),this},distance:function(t,n){return n||(n=t,t=this),r.vec3.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec3.squaredDistance(t.elements,n.elements)},length:function(){return r.vec3.length(this.elements)},squaredLength:function(){return r.vec3.squaredLength(this.elements)},negate:function(){return r.vec3.negate(this.elements,this.elements),this},inverse:function(t){return t||(t=this),r.vec3.inverse(this.elements,t.elements),this},normalize:function(){return r.vec3.normalize(this.elements,this.elements),this},dot:function(t,n){return n||(n=t,t=this),r.vec3.dot(t.elements,n.elements)},cross:function(t,n){return n||(n=t,t=this),r.vec3.cross(this.elements,t.elements,n.elements),this},lerp:function(t,n){return r.vec3.lerp(this.elements,this.elements,t.elements,n),this},hermite:function(t,n,e,i,u){return r.vec3.hermite(this.elements,t.elements,n.elements,e.elements,i.elements,u),this},bezier:function(t,n,e,i,u){return r.vec3.bezier(this.elements,t.elements,n.elements,e.elements,i.elements,u),this},random:function(t){return r.vec3.random(this.elements,t),this},transformMat3:function(t){return r.vec3.transformMat3(this.elements,this.elements,t.elements),this},transformMat4:function(t){return r.vec3.transformMat4(this.elements,this.elements,t.elements),this},transformDirection:function(t){var n=this.elements,e=t.elements,r=n[0],i=n[1],u=n[2];return n[0]=r*e[0]+i*e[4]+u*e[8],n[1]=r*e[1]+i*e[5]+u*e[9],n[2]=r*e[2]+i*e[6]+u*e[10],this},transformQuat:function(t){return r.vec3.transformQuat(this.elements,this.elements,t.elements),this},rotateX:function(t,n){return r.vec3.rotateX(this.elements,this.elements,t.elements,n),this},rotateY:function(t,n){return r.vec3.rotateY(this.elements,this.elements,t.elements,n),this},rotateZ:function(t,n){return r.vec3.rotateZ(this.elements,this.elements,t.elements,n),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec3.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec3.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t}}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,i.prototype.div=i.prototype.divide,i.prototype.dist=i.prototype.distance,i.prototype.sqrDist=i.prototype.squaredDistance,i.prototype.len=i.prototype.length,i.prototype.sqrLen=i.prototype.squaredLength,n.a=i},function(t,n,e){"use strict";var r,i={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:(r=0,function(t){var n=++r;return t?n=t+"_"+n:n+="",n}),clamp:function(t,n,e){return Math.max(n,Math.min(e,t))},degToRad:function(t){return t*this.DEG2RAD},radToDeg:function(t){return t*this.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}};n.a=i},function(t,n,e){"use strict";var r,i=e(0),u=e(1),o=e(5),s=e(10),a=new o.a,c=new o.a,f=u.a.create({className:"Matrix4",isMatrix4:!0,constructor:function(){this.elements=i.mat4.create()},copy:function(t){return i.mat4.copy(this.elements,t.elements),this},clone:function(){var t=new this.constructor;return i.mat4.copy(t.elements,this.elements),t},toArray:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<16;r++)t[n+r]=e[r];return t},fromArray:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<16;r++)e[r]=t[n+r];return this},set:function(t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_){return i.mat4.set(this.elements,t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_),this},identity:function(){return i.mat4.identity(this.elements),this},transpose:function(){return i.mat4.transpose(this.elements,this.elements),this},invert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.invert(this.elements,t.elements),this},adjoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.adjoint(this.elements,t.elements),this},determinant:function(){return i.mat4.determinant(this.elements)},multiply:function(t,n){return n||(n=t,t=this),i.mat4.multiply(this.elements,t.elements,n.elements),this},premultiply:function(t){return this.multiply(t,this),this},translate:function(t){return i.mat4.translate(this.elements,this.elements,t.elements),this},scale:function(t){return i.mat4.scale(this.elements,this.elements,t.elements),this},rotate:function(t,n){return i.mat4.rotate(this.elements,this.elements,t,n.elements),this},rotateX:function(t){return i.mat4.rotateX(this.elements,this.elements,t),this},rotateY:function(t){return i.mat4.rotateY(this.elements,this.elements,t),this},rotateZ:function(t){return i.mat4.rotateZ(this.elements,this.elements,t),this},fromTranslation:function(t){return i.mat4.fromTranslation(this.elements,t.elements),this},fromScaling:function(t){return i.mat4.fromScaling(this.elements,t.elements),this},fromRotation:function(t,n){return i.mat4.fromRotation(this.elements,t,n.elements),this},fromXRotation:function(t){return i.mat4.fromXRotation(this.elements,t),this},fromYRotation:function(t){return i.mat4.fromYRotation(this.elements,t),this},fromZRotation:function(t){return i.mat4.fromZRotation(this.elements,t),this},fromRotationTranslation:function(t,n){return i.mat4.fromRotationTranslation(this.elements,t.elements,n.elements),this},getTranslation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.a;return i.mat4.getTranslation(t.elements,this.elements),t},getScaling:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.a;return i.mat4.getScaling(t.elements,this.elements),t},getRotation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new s.a;return i.mat4.getRotation(t.elements,this.elements),t},fromRotationTranslationScale:function(t,n,e){return i.mat4.fromRotationTranslationScale(this.elements,t.elements,n.elements,e.elements),this},fromRotationTranslationScaleOrigin:function(t,n,e,r){return i.mat4.fromRotationTranslationScaleOrigin(this.elements,t.elements,n.elements,e.elements,r.elements),this},fromQuat:function(t){return i.mat4.fromQuat(this.elements,t.elements),this},frustum:function(t,n,e,r,u,o){return i.mat4.frustum(this.elements,t,n,e,r,u,o),this},perspective:function(t,n,e,r){return i.mat4.perspective(this.elements,t,n,e,r),this},perspectiveFromFieldOfView:function(t,n,e){return i.mat4.perspectiveFromFieldOfView(this.elements,t,n,e),this},ortho:function(t,n,e,r,u,o){return i.mat4.ortho(this.elements,t,n,e,r,u,o),this},lookAt:function(t,n,e){return t.isVector3||(t=a.set(t.x,t.y,t.z)),n.isVector3||(n=c.set(n.x,n.y,n.z)),i.mat4.lookAt(this.elements,t.elements,n.elements,e.elements),this},targetTo:function(t,n,e){t.isVector3||(t=a.set(t.x,t.y,t.z)),n.isVector3||(n=c.set(n.x,n.y,n.z)),t=t.elements,n=n.elements,e=e.elements;var r=this.elements,i=t[0],u=t[1],o=t[2],s=e[0],f=e[1],h=e[2],l=i-n[0],d=u-n[1],E=o-n[2],m=l*l+d*d+E*E;m>0?(l*=m=1/Math.sqrt(m),d*=m,E*=m):E=1;var _=f*E-h*d,R=h*l-s*E,M=s*d-f*l;return(m=_*_+R*R+M*M)>0?(_*=m=1/Math.sqrt(m),R*=m,M*=m):(m=(_=f*E-h*d)*_+(R=h*l-(s+=1e-7)*E)*R+(M=s*d-f*l)*M,_*=m=1/Math.sqrt(m),R*=m,M*=m),r[0]=_,r[1]=R,r[2]=M,r[3]=0,r[4]=d*M-E*R,r[5]=E*_-l*M,r[6]=l*R-d*_,r[7]=0,r[8]=l,r[9]=d,r[10]=E,r[11]=0,r[12]=i,r[13]=u,r[14]=o,r[15]=1,this},frob:function(){return i.mat4.frob(this.elements)},add:function(t,n){return n||(n=t,t=this),i.mat4.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),i.mat4.subtract(this.elements,t.elements,n.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),i.mat4.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),i.mat4.equals(t.elements,n.elements)},compose:function(t,n,e,r){return r?this.fromRotationTranslationScaleOrigin(t,n,e,r):this.fromRotationTranslationScale(t,n,e),this},decompose:function(t,n,e,i){return this.getScaling(e),this.getTranslation(n),r||(r=new f),this.determinant()<0&&(e.x*=-1),r.copy(this),a.inverse(e),r.scale(a),t.fromMat4(r),i&&i.set(0,0,0),this}});f.prototype.sub=f.prototype.subtract,f.prototype.mul=f.prototype.multiply,n.a=f},function(t,n,e){"use strict";var r=e(1),i=e(12),u=e(4),o=r.a.create({Extends:i.a,className:"Color",isColor:!0,r:{get:function(){return this.x},set:function(t){this.x=t}},g:{get:function(){return this.y},set:function(t){this.y=t}},b:{get:function(){return this.z},set:function(t){this.z=t}},a:{get:function(){return this.w},set:function(t){this.w=t}},constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;o.superclass.constructor.call(this,t,n,e,r)},toRGBArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t},fromUintArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.elements[0]=t[n]/255,this.elements[1]=t[n+1]/255,this.elements[2]=t[n+2]/255,this.elements[3]=t[n+3]/255,this},fromHEX:function(t){return"number"==typeof t?t=Object(u.padLeft)(t.toString(16),6):("#"===t[0]&&(t=t.slice(1)),3===t.length&&(t=t.replace(/(\w)/g,"$1$1"))),this.elements[0]=parseInt(t.slice(0,2),16)/255,this.elements[1]=parseInt(t.slice(2,4),16)/255,this.elements[2]=parseInt(t.slice(4,6),16)/255,this},toHEX:function(){for(var t="",n=0;n<3;n++)t+=Object(u.padLeft)(Math.floor(255*this.elements[n]).toString(16),2);return t}});n.a=o},function(t,n,e){"use strict";var r=e(1).a.create({constructor:function(t,n,e){this.type=t,this.target=n,this.detail=e,this.timeStamp=+new Date},type:null,target:null,detail:null,timeStamp:0,stopImmediatePropagation:function(){this._stopped=!0}}),i={_listeners:null,on:function(t,n,e){for(var r=this._listeners=this._listeners||{},i=r[t]=r[t]||[],u=0,o=i.length;u<o;u++){if(i[u].listener===n)return this}return i.push({listener:n,once:e}),this},off:function(t,n){if(0===arguments.length)return this._listeners=null,this;var e=this._listeners&&this._listeners[t];if(e&&e.length>0){if(1===arguments.length)return delete this._listeners[t],this;for(var r=0,i=e.length;r<i;r++){var u=e[r];if(u.listener===n){e.splice(r,1);break}}}return this},fire:function(t,n){var e,i;"string"==typeof t?i=t:(e=t,i=t.type);var u=this._listeners;if(!u)return!1;var o=u[i];if(o&&o.length>0){var s=o.slice(0);if((e=e||new r(i,this,n))._stopped)return!1;for(var a=0;a<s.length;a++){var c=s[a];if(c.listener.call(this,e),c.once){var f=o.indexOf(c);f>-1&&o.splice(f,1)}}return!0}return!1}};n.a=i},function(t,n,e){"use strict";var r=e(0),i=e(11),u=e(1),o=e(9),s=new i.a,a=u.a.create({Mixes:o.a,className:"Quaternion",isQuaternion:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.elements=r.quat.fromValues(t,n,e,i)},copy:function(t,n){return r.quat.copy(this.elements,t.elements),n||this.fire("update"),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2],t[3])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2?arguments[2]:void 0,r=this.elements;return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],e||this.fire("update"),this},set:function(t,n,e,i,u){return r.quat.set(this.elements,t,n,e,i),u||this.fire("update"),this},identity:function(t){return r.quat.identity(this.elements),t||this.fire("update"),this},rotationTo:function(t,n,e){return r.quat.rotationTo(this.elements,t.elements,n.elements),e||this.fire("update"),this},setAxes:function(t,n,e,i){return r.quat.setAxes(this.elements,t.elements,n.elements,e.elements),i||this.fire("update"),this},setAxisAngle:function(t,n,e){return r.quat.setAxisAngle(this.elements,t.elements,n),e||this.fire("update"),this},getAxisAngle:function(t){return r.quat.getAxisAngle(t.elements,this.elements)},add:function(t,n){return r.quat.add(this.elements,this.elements,t.elements),n||this.fire("update"),this},multiply:function(t,n){return r.quat.multiply(this.elements,this.elements,t.elements),n||this.fire("update"),this},premultiply:function(t,n){return r.quat.multiply(this.elements,t.elements,this.elements),n||this.fire("update"),this},scale:function(t,n){return r.quat.scale(this.elements,this.elements,t),n||this.fire("update"),this},rotateX:function(t,n){return r.quat.rotateX(this.elements,this.elements,t),n||this.fire("update"),this},rotateY:function(t,n){return r.quat.rotateY(this.elements,this.elements,t),n||this.fire("update"),this},rotateZ:function(t,n){return r.quat.rotateZ(this.elements,this.elements,t),n||this.fire("update"),this},calculateW:function(t){return r.quat.calculateW(this.elements,this.elements),t||this.fire("update"),this},dot:function(t){return r.quat.dot(this.elements,t.elements)},lerp:function(t,n,e){return r.quat.lerp(this.elements,this.elements,t.elements,n),e||this.fire("update"),this},slerp:function(t,n,e){return r.quat.slerp(this.elements,this.elements,t.elements,n),e||this.fire("update"),this},sqlerp:function(t,n,e,i,u,o){return r.quat.sqlerp(this.elements,t.elements,n.elements,e.elements,i.elements,u),o||this.fire("update"),this},invert:function(t){return r.quat.invert(this.elements,this.elements),t||this.fire("update"),this},conjugate:function(t){return r.quat.conjugate(this.elements,this.elements),t||this.fire("update"),this},length:function(){return r.quat.length(this.elements)},squaredLength:function(){return r.quat.squaredLength(this.elements)},normalize:function(t){return r.quat.normalize(this.elements,this.elements),t||this.fire("update"),this},fromMat3:function(t,n){return r.quat.fromMat3(this.elements,t.elements),n||this.fire("update"),this},fromMat4:function(t,n){return s.fromMat4(t),this.fromMat3(s,n),this},exactEquals:function(t){return r.quat.exactEquals(this.elements,t.elements)},equals:function(t){return r.quat.equals(this.elements,t.elements)},fromEuler:function(t,n){var e=.5*t.x,r=.5*t.y,i=.5*t.z,u=t.order||"ZYX",o=Math.sin(e),s=Math.cos(e),a=Math.sin(r),c=Math.cos(r),f=Math.sin(i),h=Math.cos(i),l=this.elements;return"XYZ"===u?(l[0]=o*c*h+s*a*f,l[1]=s*a*h-o*c*f,l[2]=s*c*f+o*a*h,l[3]=s*c*h-o*a*f):"YXZ"===u?(l[0]=o*c*h+s*a*f,l[1]=s*a*h-o*c*f,l[2]=s*c*f-o*a*h,l[3]=s*c*h+o*a*f):"ZXY"===u?(l[0]=o*c*h-s*a*f,l[1]=s*a*h+o*c*f,l[2]=s*c*f+o*a*h,l[3]=s*c*h-o*a*f):"ZYX"===u?(l[0]=o*c*h-s*a*f,l[1]=s*a*h+o*c*f,l[2]=s*c*f-o*a*h,l[3]=s*c*h+o*a*f):"YZX"===u?(l[0]=o*c*h+s*a*f,l[1]=s*a*h+o*c*f,l[2]=s*c*f-o*a*h,l[3]=s*c*h-o*a*f):"XZY"===u&&(l[0]=o*c*h-s*a*f,l[1]=s*a*h-o*c*f,l[2]=s*c*f+o*a*h,l[3]=s*c*h+o*a*f),n||this.fire("update"),this},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this.fire("update")}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this.fire("update")}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this.fire("update")}},w:{get:function(){return this.elements[3]},set:function(t){this.elements[3]=t,this.fire("update")}}});a.prototype.mul=a.prototype.multiply,a.prototype.len=a.prototype.length,a.prototype.sqrLen=a.prototype.squaredLength,n.a=a},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Matrix3",isMatrix3:!0,constructor:function(){this.elements=r.mat3.create()},copy:function(t){return r.mat3.copy(this.elements,t.elements),this},clone:function(){var t=new this.constructor;return r.mat3.copy(t.elements,this.elements),t},toArray:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<9;r++)t[n+r]=e[r];return t},fromArray:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<9;r++)e[r]=t[n+r];return this},set:function(t,n,e,i,u,o,s,a,c){return r.mat3.set(this.elements,t,n,e,i,u,o,s,a,c),this},identity:function(){return r.mat3.identity(this.elements),this},transpose:function(){return r.mat3.transpose(this.elements,this.elements),this},invert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return r.mat3.invert(this.elements,t.elements),this},adjoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return r.mat3.adjoint(this.elements,t.elements),this},determinant:function(){return r.mat3.determinant(this.elements)},multiply:function(t,n){return n||(n=t,t=this),r.mat3.multiply(this.elements,t.elements,n.elements),this},premultiply:function(t){return this.multiply(t,this),this},translate:function(t){return r.mat3.translate(this.elements,this.elements,t.elements),this},rotate:function(t){return r.mat3.rotate(this.elements,this.elements,t),this},scale:function(t){return r.mat3.scale(this.elements,this.elements,t.elements),this},fromTranslation:function(t){return r.mat3.fromTranslation(this.elements,t.elements),this},fromRotation:function(t){return r.mat3.fromRotation(this.elements,t),this},fromScaling:function(t){return r.mat3.fromScaling(this.elements,t.elements),this},fromQuat:function(t){return r.mat3.fromQuat(this.elements,t.elements),this},normalFromMat4:function(t){return r.mat3.normalFromMat4(this.elements,t.elements),this},fromMat4:function(t){return r.mat3.fromMat4(this.elements,t.elements),this},frob:function(){return r.mat3.frob(this.elements)},add:function(t,n){return n||(n=t,t=this),r.mat3.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.mat3.subtract(this.elements,t.elements,n.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),r.mat3.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.mat3.equals(t.elements,n.elements)},fromRotationTranslationScale:function(t,n,e,r,i){var u=Math.cos(t),o=Math.sin(t);return this.set(r*u,-i*o,0,r*o,i*u,0,n,e,1),this}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,n.a=i},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Vector4",isVector4:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.elements=r.vec4.fromValues(t,n,e,i)},copy:function(t){return r.vec4.copy(this.elements,t.elements),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2],t[3])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t[2+n]=e[2],t[3+n]=e[3],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],this},set:function(t,n,e,i){return r.vec4.set(this.elements,t,n,e,i),this},add:function(t,n){return n||(n=t,t=this),r.vec4.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.vec4.subtract(this.elements,t.elements,n.elements),this},multiply:function(t,n){return n||(n=t,t=this),r.vec4.multiply(this.elements,t.elements,n.elements),this},divide:function(t,n){return n||(n=t,t=this),r.vec4.divide(this.elements,t.elements,n.elements),this},ceil:function(){return r.vec4.ceil(this.elements,this.elements),this},floor:function(){return r.vec4.floor(this.elements,this.elements),this},min:function(t,n){return n||(n=t,t=this),r.vec4.min(this.elements,t.elements,n.elements),this},max:function(t,n){return n||(n=t,t=this),r.vec4.max(this.elements,t.elements,n.elements),this},round:function(){return r.vec4.round(this.elements,this.elements),this},scale:function(t){return r.vec4.scale(this.elements,this.elements,t),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec4.scaleAndAdd(this.elements,n.elements,e.elements,t),this},distance:function(t,n){return n||(n=t,t=this),r.vec4.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec4.squaredDistance(t.elements,n.elements)},length:function(){return r.vec4.length(this.elements)},squaredLength:function(){return r.vec4.squaredLength(this.elements)},negate:function(){return r.vec4.negate(this.elements,this.elements),this},inverse:function(t){return t||(t=this),r.vec4.inverse(this.elements,t.elements),this},normalize:function(){return r.vec4.normalize(this.elements,this.elements),this},dot:function(t,n){return n||(n=t,t=this),r.vec4.dot(t.elements,n.elements)},lerp:function(t,n){return r.vec4.lerp(this.elements,this.elements,t.elements,n),this},random:function(t){return t=t||1,this.elements[0]=Math.random(),this.elements[1]=Math.random(),this.elements[2]=Math.random(),this.elements[3]=Math.random(),this.normalize(),this.scale(t),this},transformMat4:function(t){return r.vec4.transformMat4(this.elements,this.elements,t.elements),this},transformQuat:function(t){return r.vec4.transformQuat(this.elements,this.elements,t.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec4.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec4.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t}},w:{get:function(){return this.elements[3]},set:function(t){this.elements[3]=t}}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,i.prototype.div=i.prototype.divide,i.prototype.dist=i.prototype.distance,i.prototype.sqrDist=i.prototype.squaredDistance,i.prototype.len=i.prototype.length,i.prototype.sqrLen=i.prototype.squaredLength,n.a=i},function(t,n,e){"use strict";var r=e(1),i=e(6),u=e(7),o=e(3),s=new u.a,a=i.a.DEG2RAD,c=i.a.RAD2DEG,f=r.a.create({className:"Euler",isEuler:!0,order:"ZYX",constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.elements=new Float32Array([t,n,e]),this.updateDegrees()},clone:function(){var t=new this.constructor;return t.copy(this),t},copy:function(t){return this.elements[0]=t.x,this.elements[1]=t.y,this.elements[2]=t.z,this.order=t.order,this.updateDegrees(),this},set:function(t,n,e){return this.elements[0]=t,this.elements[1]=n,this.elements[2]=e,this.updateDegrees(),this},setDegree:function(t,n,e){return this._degX=t,this._degY=n,this._degZ=e,this.updateRadians(),this},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.elements[0]=t[n],this.elements[1]=t[n+1],this.elements[2]=t[n+2],this.updateDegrees(),this},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[n]=this.elements[0],t[n+1]=this.elements[1],t[n+2]=this.elements[2],t},fromMat4:function(t,n){var e=t.elements,r=e[0],u=e[1],s=e[2],a=e[4],c=e[5],f=e[6],h=e[8],l=e[9],d=e[10];n=n||this.order,this.order=n;var E=i.a.clamp;return"XYZ"===n?(this.elements[1]=Math.asin(E(h,-1,1)),Math.abs(h)<.99999?(this.elements[0]=Math.atan2(-l,d),this.elements[2]=Math.atan2(-a,r)):(this.elements[0]=Math.atan2(f,c),this.elements[2]=0)):"YXZ"===n?(this.elements[0]=Math.asin(-E(l,-1,1)),Math.abs(l)<.99999?(this.elements[1]=Math.atan2(h,d),this.elements[2]=Math.atan2(u,c)):(this.elements[1]=Math.atan2(-s,r),this.elements[2]=0)):"ZXY"===n?(this.elements[0]=Math.asin(E(f,-1,1)),Math.abs(f)<.99999?(this.elements[1]=Math.atan2(-s,d),this.elements[2]=Math.atan2(-a,c)):(this.elements[1]=0,this.elements[2]=Math.atan2(u,r))):"ZYX"===n?(this.elements[1]=Math.asin(-E(s,-1,1)),Math.abs(s)<.99999?(this.elements[0]=Math.atan2(f,d),this.elements[2]=Math.atan2(u,r)):(this.elements[0]=0,this.elements[2]=Math.atan2(-a,c))):"YZX"===n?(this.elements[2]=Math.asin(E(u,-1,1)),Math.abs(u)<.99999?(this.elements[0]=Math.atan2(-l,c),this.elements[1]=Math.atan2(-s,r)):(this.elements[0]=0,this.elements[1]=Math.atan2(h,d))):"XZY"===n?(this.elements[2]=Math.asin(-E(a,-1,1)),Math.abs(a)<.99999?(this.elements[0]=Math.atan2(f,c),this.elements[1]=Math.atan2(h,r)):(this.elements[0]=Math.atan2(-l,d),this.elements[1]=0)):o.a.warn("Euler fromMat4() unsupported order: "+n),this.updateDegrees(),this},fromQuat:function(t,n){return s.fromQuat(t),this.fromMat4(s,n)},updateDegrees:function(){return this._degX=this.elements[0]*c,this._degY=this.elements[1]*c,this._degZ=this.elements[2]*c,this},updateRadians:function(){return this.elements[0]=this._degX*a,this.elements[1]=this._degY*a,this.elements[2]=this._degZ*a,this},degX:{get:function(){return this._degX},set:function(t){this._degX=t,this.elements[0]=t*a}},degY:{get:function(){return this._degY},set:function(t){this._degY=t,this.elements[1]=t*a}},degZ:{get:function(){return this._degZ},set:function(t){this._degZ=t,this.elements[2]=t*a}},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this._degX=t*c}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this._degY=t*c}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this._degZ=t*c}}});n.a=f},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Vector2",isVector2:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.elements=r.vec2.fromValues(t,n)},copy:function(t){return r.vec2.copy(this.elements,t.elements),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],this},set:function(t,n){return r.vec2.set(this.elements,t,n),this},add:function(t,n){return n||(n=t,t=this),r.vec2.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.vec2.subtract(this.elements,t.elements,n.elements),this},multiply:function(t,n){return n||(n=t,t=this),r.vec2.multiply(this.elements,t.elements,n.elements),this},divide:function(t,n){return n||(n=t,t=this),r.vec2.divide(this.elements,t.elements,n.elements),this},ceil:function(){return r.vec2.ceil(this.elements,this.elements),this},floor:function(){return r.vec2.floor(this.elements,this.elements),this},min:function(t,n){return n||(n=t,t=this),r.vec2.min(this.elements,t.elements,n.elements),this},max:function(t,n){return n||(n=t,t=this),r.vec2.max(this.elements,t.elements,n.elements),this},round:function(){return r.vec2.round(this.elements,this.elements),this},scale:function(t){return r.vec2.scale(this.elements,this.elements,t),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec2.scaleAndAdd(this.elements,n.elements,e.elements,t),this},distance:function(t,n){return n||(n=t,t=this),r.vec2.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec2.squaredDistance(t.elements,n.elements)},length:function(){return r.vec2.length(this.elements)},squaredLength:function(){return r.vec2.squaredLength(this.elements)},negate:function(){return r.vec2.negate(this.elements,this.elements),this},inverse:function(t){return t||(t=this),r.vec2.inverse(this.elements,t.elements),this},normalize:function(){return r.vec2.normalize(this.elements,this.elements),this},dot:function(t,n){return n||(n=t,t=this),r.vec2.dot(t.elements,n.elements)},cross:function(t,n){return n||(n=t,t=this),r.vec2.cross(this.elements,t.elements,n.elements),this},lerp:function(t,n){return r.vec2.lerp(this.elements,this.elements,t.elements,n),this},random:function(t){return r.vec2.random(this.elements,t),this},transformMat3:function(t){return r.vec2.transformMat3(this.elements,this.elements,t.elements),this},transformMat4:function(t){return r.vec2.transformMat4(this.elements,this.elements,t.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec2.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec2.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t}}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,i.prototype.div=i.prototype.divide,i.prototype.dist=i.prototype.distance,i.prototype.sqrDist=i.prototype.squaredDistance,i.prototype.len=i.prototype.length,i.prototype.sqrLen=i.prototype.squaredLength,n.a=i},,function(t,n,e){"use strict";var r=e(34),i=e.n(r),u=e(1),o=e(5),s=u.a.create({className:"Ray",isRay:!0,origin:{get:function(){return this._origin},set:function(t){this._origin=t,this._ray.origin=t.elements}},direction:{get:function(){return this._direction},set:function(t){this._direction=t,this._ray.direction=t.elements}},constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._ray=new i.a,this.origin=t.origin||new o.a(0,0,0),this.direction=t.direction||new o.a(0,0,-1)},set:function(t,n){return this.origin=t,this.direction=n,this},copy:function(t){this.origin.copy(t.origin),this.direction.copy(t.direction)},clone:function(){return new this.constructor({origin:this.origin.clone(),direction:this.direction.clone()})},fromCamera:function(t,n,e,r,i){t.isPerspectiveCamera?(t.worldMatrix.getTranslation(this.origin),this.direction.set(n,e,0),this.direction.copy(t.unprojectVector(this.direction,r,i)),this.direction.sub(this.origin).normalize()):t.isOrthographicCamera&&(this.origin.set(n,e,(t.near+t.far)/(t.near-t.far)),this.origin.copy(t.unprojectVector(this.origin,r,i)),this.direction.set(0,0,-1).transformDirection(t.worldMatrix).normalize())},transformMat4:function(t){this.origin.transformMat4(t),this.direction.transformDirection(t).normalize()},sortPoints:function(t,n){var e=this;n?t.sort((function(t,r){return e.squaredDistance(t[n])-e.squaredDistance(r[n])})):t.sort((function(t,n){return e.squaredDistance(t)-e.squaredDistance(n)}))},squaredDistance:function(t){return this.origin.squaredDistance(t)},distance:function(t){return this.origin.distance(t)},intersectsSphere:function(t,n){var e=this._ray.intersectsSphere(t,n);return this._getRes(e)},intersectsPlane:function(t,n){var e=this._ray.intersectsPlane(t,n);return this._getRes(e)},intersectsTriangle:function(t){var n=this._ray.intersectsTriangle(t);return this._getRes(n)},intersectsBox:function(t){var n=this._ray.intersectsBox(t);return this._getRes(n)},intersectsTriangleCell:function(t,n){var e=this._ray.intersectsTriangleCell(t,n);return this._getRes(e)},_getRes:function(t){return t?new o.a(t[0],t[1],t[2]):null}});n.a=s},function(t,n,e){"use strict";var r=e(0),i=e(1),u=e(9),o=e(5),s=i.a.create({Mixes:u.a,Extends:o.a,className:"Vector3Notifier",isVector3Notifier:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.elements=r.vec3.fromValues(t,n,e)},copy:function(t){return r.vec3.copy(this.elements,t.elements),this.fire("update"),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t[2+n]=e[2],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],e[2]=t[n+2],this.fire("update"),this},set:function(t,n,e){return r.vec3.set(this.elements,t,n,e),this.fire("update"),this},add:function(t,n){return n||(n=t,t=this),r.vec3.add(this.elements,t.elements,n.elements),this.fire("update"),this},subtract:function(t,n){return n||(n=t,t=this),r.vec3.subtract(this.elements,t.elements,n.elements),this.fire("update"),this},multiply:function(t,n){return n||(n=t,t=this),r.vec3.multiply(this.elements,t.elements,n.elements),this.fire("update"),this},divide:function(t,n){return n||(n=t,t=this),r.vec3.divide(this.elements,t.elements,n.elements),this.fire("update"),this},ceil:function(){return r.vec3.ceil(this.elements,this.elements),this.fire("update"),this},floor:function(){return r.vec3.floor(this.elements,this.elements),this.fire("update"),this},min:function(t,n){return n||(n=t,t=this),r.vec3.min(this.elements,t.elements,n.elements),this.fire("update"),this},max:function(t,n){return n||(n=t,t=this),r.vec3.max(this.elements,t.elements,n.elements),this.fire("update"),this},round:function(){return r.vec3.round(this.elements,this.elements),this.fire("update"),this},scale:function(t){return r.vec3.scale(this.elements,this.elements,t),this.fire("update"),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec3.scaleAndAdd(this.elements,n.elements,e.elements,t),this.fire("update"),this},distance:function(t,n){return n||(n=t,t=this),r.vec3.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec3.squaredDistance(t.elements,n.elements)},length:function(){return r.vec3.length(this.elements)},squaredLength:function(){return r.vec3.squaredLength(this.elements)},negate:function(){return r.vec3.negate(this.elements,this.elements),this.fire("update"),this},inverse:function(t){return t||(t=this),r.vec3.inverse(this.elements,t.elements),this.fire("update"),this},normalize:function(){return r.vec3.normalize(this.elements,this.elements),this.fire("update"),this},dot:function(t,n){return n||(n=t,t=this),r.vec3.dot(t.elements,n.elements)},cross:function(t,n){return n||(n=t,t=this),r.vec3.cross(this.elements,t.elements,n.elements),this.fire("update"),this},lerp:function(t,n){return r.vec3.lerp(this.elements,this.elements,t.elements,n),this.fire("update"),this},hermite:function(t,n,e,i,u){return r.vec3.hermite(this.elements,t.elements,n.elements,e.elements,i.elements,u),this.fire("update"),this},bezier:function(t,n,e,i,u){return r.vec3.bezier(this.elements,t.elements,n.elements,e.elements,i.elements,u),this.fire("update"),this},random:function(t){return r.vec3.random(this.elements,t),this.fire("update"),this},transformMat3:function(t){return r.vec3.transformMat3(this.elements,this.elements,t.elements),this.fire("update"),this},transformMat4:function(t){return r.vec3.transformMat4(this.elements,this.elements,t.elements),this.fire("update"),this},transformDirection:function(t){var n=this.elements,e=t.elements,r=n[0],i=n[1],u=n[2];return n[0]=r*e[0]+i*e[4]+u*e[8],n[1]=r*e[1]+i*e[5]+u*e[9],n[2]=r*e[2]+i*e[6]+u*e[10],this.fire("update"),this},transformQuat:function(t){return r.vec3.transformQuat(this.elements,this.elements,t.elements),this.fire("update"),this},rotateX:function(t,n){return r.vec3.rotateX(this.elements,this.elements,t.elements,n),this.fire("update"),this},rotateY:function(t,n){return r.vec3.rotateY(this.elements,this.elements,t.elements,n),this.fire("update"),this},rotateZ:function(t,n){return r.vec3.rotateZ(this.elements,this.elements,t.elements,n),this.fire("update"),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec3.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec3.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this.fire("update")}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this.fire("update")}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this.fire("update")}}});n.a=s},,function(t,n,e){"use strict";var r=e(1),i=e(5),u=r.a.create({className:"Plane",isPlane:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new i.a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.normal=t,this.distance=n},copy:function(t){return this.normal.copy(t.normal),this.distance=t.distance,this},clone:function(){return new this.constructor(this.normal.clone(),this.distance)},set:function(t,n,e,r){return this.normal.set(t,n,e),this.distance=r,this},normalize:function(){var t=1/this.normal.length();return this.normal.scale(t),this.distance*=t,this},distanceToPoint:function(t){return this.normal.dot(t)+this.distance},projectPoint:function(t){return(new i.a).copy(this.normal).scale(-this.distanceToPoint(t)).add(t)}});n.a=u},function(t,n,e){"use strict";var r=e(1),i=e(5),u=new i.a,o=r.a.create({className:"Sphere",isSphere:!0,radius:0,constructor:function(t){Object.assign(this,t),this.center||(this.center=new i.a(0,0,0))},clone:function(){var t=new this.constructor;return t.copy(this),t},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},fromPoints:function(t){for(var n=this.center,e=0,r=0;r<t.length;r+=3){var i=t[r]-n.x,u=t[r+1]-n.y,o=t[r+2]-n.z;e=Math.max(i*i+u*u+o*o,e)}return this.radius=Math.sqrt(e),this},fromGeometryData:function(t){var n=this.center,e=0;return t.traverse((function(t){var r=t.x-n.x,i=t.y-n.y,u=t.z-n.z;e=Math.max(r*r+i*i+u*u,e)})),this.radius=Math.sqrt(e),this},transformMat4:function(t){this.center.transformMat4(t);var n=t.getScaling(u);return this.radius*=Math.max(n.x,n.y,n.z),this}});n.a=o},function(t,n,e){"use strict";var r,i=e(0),u=e(1),o=e(9),s=e(5),a=e(7),c=e(10),f=new s.a,h=new s.a,l=u.a.create({Mixes:o.a,Extends:a.a,className:"Matrix4Notifier",isMatrix4Notifier:!0,constructor:function(){this.elements=i.mat4.create()},copy:function(t){return i.mat4.copy(this.elements,t.elements),this.fire("update"),this},fromArray:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<16;r++)e[r]=t[n+r];return this.fire("update"),this},set:function(t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_){return i.mat4.set(this.elements,t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_),this.fire("update"),this},identity:function(){return i.mat4.identity(this.elements),this.fire("update"),this},transpose:function(){return i.mat4.transpose(this.elements,this.elements),this.fire("update"),this},invert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.invert(this.elements,t.elements),this.fire("update"),this},adjoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.adjoint(this.elements,t.elements),this.fire("update"),this},determinant:function(){return i.mat4.determinant(this.elements)},multiply:function(t,n){return n||(n=t,t=this),i.mat4.multiply(this.elements,t.elements,n.elements),this.fire("update"),this},premultiply:function(t){return this.multiply(t,this),this.fire("update"),this},translate:function(t){return i.mat4.translate(this.elements,this.elements,t.elements),this.fire("update"),this},scale:function(t){return i.mat4.scale(this.elements,this.elements,t.elements),this.fire("update"),this},rotate:function(t,n){return i.mat4.rotate(this.elements,this.elements,t,n.elements),this.fire("update"),this},rotateX:function(t){return i.mat4.rotateX(this.elements,this.elements,t),this.fire("update"),this},rotateY:function(t){return i.mat4.rotateY(this.elements,this.elements,t),this.fire("update"),this},rotateZ:function(t){return i.mat4.rotateZ(this.elements,this.elements,t),this.fire("update"),this},fromTranslation:function(t){return i.mat4.fromTranslation(this.elements,t.elements),this.fire("update"),this},fromScaling:function(t){return i.mat4.fromScaling(this.elements,t.elements),this.fire("update"),this},fromRotation:function(t,n){return i.mat4.fromRotation(this.elements,t,n.elements),this.fire("update"),this},fromXRotation:function(t){return i.mat4.fromXRotation(this.elements,t),this.fire("update"),this},fromYRotation:function(t){return i.mat4.fromYRotation(this.elements,t),this.fire("update"),this},fromZRotation:function(t){return i.mat4.fromZRotation(this.elements,t),this.fire("update"),this},fromRotationTranslation:function(t,n){return i.mat4.fromRotationTranslation(this.elements,t.elements,n.elements),this.fire("update"),this},getTranslation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new s.a;return i.mat4.getTranslation(t.elements,this.elements),t},getScaling:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new s.a;return i.mat4.getScaling(t.elements,this.elements),t},getRotation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new c.a;return i.mat4.getRotation(t.elements,this.elements),t},fromRotationTranslationScale:function(t,n,e){return i.mat4.fromRotationTranslationScale(this.elements,t.elements,n.elements,e.elements),this.fire("update"),this},fromRotationTranslationScaleOrigin:function(t,n,e,r,u){return i.mat4.fromRotationTranslationScaleOrigin(this.elements,t.elements,n.elements,e.elements,r.elements),u||this.fire("update"),this},fromQuat:function(t){return i.mat4.fromQuat(this.elements,t.elements),this.fire("update"),this},frustum:function(t,n,e,r,u,o){return i.mat4.frustum(this.elements,t,n,e,r,u,o),this.fire("update"),this},perspective:function(t,n,e,r){return i.mat4.perspective(this.elements,t,n,e,r),this.fire("update"),this},perspectiveFromFieldOfView:function(t,n,e){return i.mat4.perspectiveFromFieldOfView(this.elements,t,n,e),this.fire("update"),this},ortho:function(t,n,e,r,u,o){return i.mat4.ortho(this.elements,t,n,e,r,u,o),this.fire("update"),this},lookAt:function(t,n,e){return t.isVector3||(t=f.set(t.x,t.y,t.z)),n.isVector3||(n=h.set(n.x,n.y,n.z)),i.mat4.lookAt(this.elements,t.elements,n.elements,e.elements),this.fire("update"),this},targetTo:function(t,n,e){t.isVector3||(t=f.set(t.x,t.y,t.z)),n.isVector3||(n=h.set(n.x,n.y,n.z)),t=t.elements,n=n.elements,e=e.elements;var r=this.elements,i=t[0],u=t[1],o=t[2],s=e[0],a=e[1],c=e[2],l=i-n[0],d=u-n[1],E=o-n[2],m=l*l+d*d+E*E;m>0?(l*=m=1/Math.sqrt(m),d*=m,E*=m):E=1;var _=a*E-c*d,R=c*l-s*E,M=s*d-a*l;return(m=_*_+R*R+M*M)>0?(_*=m=1/Math.sqrt(m),R*=m,M*=m):(m=(_=a*E-c*d)*_+(R=c*l-(s+=1e-7)*E)*R+(M=s*d-a*l)*M,_*=m=1/Math.sqrt(m),R*=m,M*=m),r[0]=_,r[1]=R,r[2]=M,r[3]=0,r[4]=d*M-E*R,r[5]=E*_-l*M,r[6]=l*R-d*_,r[7]=0,r[8]=l,r[9]=d,r[10]=E,r[11]=0,r[12]=i,r[13]=u,r[14]=o,r[15]=1,this.fire("update"),this},frob:function(){return i.mat4.frob(this.elements)},add:function(t,n){return n||(n=t,t=this),i.mat4.add(this.elements,t.elements,n.elements),this.fire("update"),this},subtract:function(t,n){return n||(n=t,t=this),i.mat4.subtract(this.elements,t.elements,n.elements),this.fire("update"),this},exactEquals:function(t,n){return n||(n=t,t=this),i.mat4.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),i.mat4.equals(t.elements,n.elements)},compose:function(t,n,e,r){return r?this.fromRotationTranslationScaleOrigin(t,n,e,r):this.fromRotationTranslationScale(t,n,e),this},decompose:function(t,n,e,i){return this.getScaling(e),this.getTranslation(n),r||(r=new a.a),this.determinant()<0&&(e.x*=-1),r.copy(this),f.inverse(e),r.scale(f),t.fromMat4(r),i&&i.set(0,0,0),this}});n.a=l},function(t,n,e){"use strict";var r=e(1),i=e(9),u=e(6),o=e(13),s=u.a.DEG2RAD,a=u.a.RAD2DEG,c=r.a.create({Mixes:i.a,Extends:o.a,className:"EulerNotifier",isEulerNotifier:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;o.a.call(this,t,n,e)},updateDegrees:function(){return c.superclass.updateDegrees.call(this),this.fire("update"),this},updateRadians:function(){return c.superclass.updateRadians.call(this),this.fire("update"),this},degX:{get:function(){return this._degX},set:function(t){this._degX=t,this.elements[0]=t*s,this.fire("update")}},degY:{get:function(){return this._degY},set:function(t){this._degY=t,this.elements[1]=t*s,this.fire("update")}},degZ:{get:function(){return this._degZ},set:function(t){this._degZ=t,this.elements[2]=t*s,this.fire("update")}},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this._degX=t*a,this.fire("update")}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this._degY=t*a,this.fire("update")}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this._degZ=t*a,this.fire("update")}}});n.a=c},function(t,n,e){"use strict";var r=e(1),i=e(19),u=r.a.create({className:"Frustum",isFrustum:!0,constructor:function(){this.planes=[];for(var t=6;t--;)this.planes.push(new i.a)},copy:function(t){var n=t.planes;return this.planes.forEach((function(t,e){t.copy(n[e])})),this},clone:function(){var t=new this.constructor;return t.copy(this),t},fromMatrix:function(t){var n=this.planes,e=t.elements,r=e[0],i=e[1],u=e[2],o=e[3],s=e[4],a=e[5],c=e[6],f=e[7],h=e[8],l=e[9],d=e[10],E=e[11],m=e[12],_=e[13],R=e[14],M=e[15];return n[0].set(o-r,f-s,E-h,M-m).normalize(),n[1].set(o+r,f+s,E+h,M+m).normalize(),n[2].set(o+i,f+a,E+l,M+_).normalize(),n[3].set(o-i,f-a,E-l,M-_).normalize(),n[4].set(o-u,f-c,E-d,M-R).normalize(),n[5].set(o+u,f+c,E+d,M+R).normalize(),this},intersectsSphere:function(t){for(var n=this.planes,e=t.center,r=-t.radius,i=0;i<6;i++){if(n[i].distanceToPoint(e)<r)return!1}return!0}});n.a=u},,,function(t,n){t.exports=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}},function(t,n,e){"use strict";e.r(n),e.d(n,"Color",(function(){return r.a})),e.d(n,"Euler",(function(){return i.a})),e.d(n,"EulerNotifier",(function(){return u.a})),e.d(n,"Frustum",(function(){return o.a})),e.d(n,"math",(function(){return s.a})),e.d(n,"Matrix3",(function(){return a.a})),e.d(n,"Matrix4",(function(){return c.a})),e.d(n,"Matrix4Notifier",(function(){return f.a})),e.d(n,"Plane",(function(){return h.a})),e.d(n,"Quaternion",(function(){return l.a})),e.d(n,"Ray",(function(){return d.a})),e.d(n,"Sphere",(function(){return E.a})),e.d(n,"SphericalHarmonics3",(function(){return A})),e.d(n,"Vector2",(function(){return T.a})),e.d(n,"Vector3",(function(){return _.a})),e.d(n,"Vector3Notifier",(function(){return v.a})),e.d(n,"Vector4",(function(){return p.a}));var r=e(8),i=e(13),u=e(22),o=e(23),s=e(6),a=e(11),c=e(7),f=e(21),h=e(19),l=e(10),d=e(16),E=e(20),m=e(1),_=e(5),R=new Float32Array(27),M=m.a.create({className:"SphericalHarmonics3",isSphericalHarmonics3:!0,Statics:{SH3_SCALE:[Math.sqrt(1/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(3/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(15/(4*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(5/(16*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(15/(16*Math.PI))]},constructor:function(){this.coefficients=[];for(var t=0;t<9;t++)this.coefficients.push(new _.a)},scale:function(t){return this.coefficients.forEach((function(n){n.scale(t)})),this},fromArray:function(t){return 9===t.length?this.coefficients.forEach((function(n,e){n.fromArray(t[e])})):27===t.length&&this.coefficients.forEach((function(n,e){n.fromArray(t,3*e)})),this},scaleForRender:function(){var t=M.SH3_SCALE;return this.coefficients.forEach((function(n,e){n.scale(t[e])})),this.scale(1/Math.PI),this},toArray:function(){return this.coefficients.forEach((function(t,n){t.toArray(R,3*n)})),R},clone:function(){var t=new this.constructor;return t.copy(this),t},copy:function(t){var n=t.coefficients;return this.coefficients.forEach((function(t,e){t.copy(n[e])})),this}}),A=M,T=e(14),v=e(17),p=e(12)},,,function(t,n){t.exports=function(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}},function(t,n){t.exports=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}},function(t,n){t.exports=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}},function(t,n){t.exports=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}},function(t,n,e){var r=e(88),i=e(90),u=e(91),o=e(94),s=e(33),a=[[0,0,0],[0,0,0],[0,0,0]],c=[0,0,0];function f(t,n){this.origin=t||[0,0,0],this.direction=n||[0,0,-1]}t.exports=f,f.prototype.set=function(t,n){this.origin=t,this.direction=n},f.prototype.copy=function(t){s(this.origin,t.origin),s(this.direction,t.direction)},f.prototype.clone=function(){var t=new f;return t.copy(this),t},f.prototype.intersectsSphere=function(t,n){return u(c,this.origin,this.direction,t,n)},f.prototype.intersectsPlane=function(t,n){return i(c,this.origin,this.direction,t,n)},f.prototype.intersectsTriangle=function(t){return r(c,this.origin,this.direction,t)},f.prototype.intersectsBox=function(t){return o(c,this.origin,this.direction,t)},f.prototype.intersectsTriangleCell=function(t,n){var e=t[0],r=t[1],i=t[2];return a[0]=n[e],a[1]=n[r],a[2]=n[i],this.intersectsTriangle(a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){var r=e(89),i=e(26),u=e(30),o=[0,0,0],s=[0,0,0],a=[0,0,0],c=[0,0,0],f=[0,0,0];t.exports=function(t,n,e,h){u(o,h[1],h[0]),u(s,h[2],h[0]),r(c,e,s);var l=i(o,c);if(l<1e-6)return null;u(a,n,h[0]);var d=i(a,c);if(d<0||d>l)return null;r(f,a,o);var E=i(e,f);if(E<0||d+E>l)return null;var m=i(s,f)/l;return t[0]=n[0]+m*e[0],t[1]=n[1]+m*e[1],t[2]=n[2]+m*e[2],t}},function(t,n){t.exports=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[0],s=e[1],a=e[2];return t[0]=i*a-u*s,t[1]=u*o-r*a,t[2]=r*s-i*o,t}},function(t,n,e){var r=e(26),i=e(31),u=e(32),o=e(33);t.exports=function(t,n,e,a,c){var f=r(e,a);if(0!==f){var h=-(r(n,a)+c)/f;return h<0?null:(u(s,e,h),i(t,n,s))}return r(a,n)+c===0?o(t,n):null};var s=[0,0,0]},function(t,n,e){var r=e(92),i=e(26),u=e(30),o=e(93),s=e(32),a=e(31),c=[0,0,0];t.exports=function(t,n,e,f,h){u(c,f,n);var l=i(e,c);if(l<0)return null;o(c,n,e,l);var d=r(f,c),E=h*h;if(d>E)return null;return s(t,e,l-Math.sqrt(E-d)),a(t,t,n)}},function(t,n){t.exports=function(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}},function(t,n){t.exports=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}},function(t,n){function e(t,n,e){for(var r=t.length,i=-1/0,u=1/0,o=0;o<r;o++){var s=(e[0][o]-t[o])/n[o],a=(e[1][o]-t[o])/n[o];if(s>a){var c=s;s=a,a=c}if(a<i||s>u)return 1/0;s>i&&(i=s),a<u&&(u=a)}return i>u?1/0:i}t.exports=function(t,n,r,i){var u=e(n,r,i);if(u===1/0)t=null;else{t=t||[];for(var o=0;o<n.length;o++)t[o]=n[o]+r[o]*u}return t},t.exports.distance=e},,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n);var r=e(27);Object.assign(r,{version:"1.17.0"}),"undefined"!=typeof window&&(window.Hilo3dMath=r),n.default=r}]),"undefined"!=typeof window&&window.Hilo3d&&"object"==typeof exports&&"object"==typeof module&&(module.exports=window.Hilo3d);
|
|
34
|
+
"undefined"!=typeof self&&self,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=10)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setMatrixArrayType=function(t){n.ARRAY_TYPE=t},n.toRadian=function(t){return t*i},n.equals=function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))};var r=n.EPSILON=1e-6;n.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random;var i=Math.PI/180},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.forEach=n.sqrLen=n.len=n.sqrDist=n.dist=n.div=n.mul=n.sub=void 0,n.create=i,n.clone=function(t){var n=new r.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},n.fromValues=function(t,n,e,i){var u=new r.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=e,u[3]=i,u},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},n.set=function(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t},n.subtract=u,n.multiply=o,n.divide=s,n.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},n.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},n.min=function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},n.max=function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},n.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t},n.scaleAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},n.distance=a,n.squaredDistance=c,n.length=f,n.squaredLength=h,n.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},n.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},n.normalize=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e*e+r*r+i*i+u*u;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=u*o),t},n.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},n.lerp=function(t,n,e,r){var i=n[0],u=n[1],o=n[2],s=n[3];return t[0]=i+r*(e[0]-i),t[1]=u+r*(e[1]-u),t[2]=o+r*(e[2]-o),t[3]=s+r*(e[3]-s),t},n.random=function(t,n){var e,i,u,o,s,a;n=n||1;do{s=(e=2*r.RANDOM()-1)*e+(i=2*r.RANDOM()-1)*i}while(s>=1);do{a=(u=2*r.RANDOM()-1)*u+(o=2*r.RANDOM()-1)*o}while(a>=1);var c=Math.sqrt((1-s)/a);return t[0]=n*e,t[1]=n*i,t[2]=n*u*c,t[3]=n*o*c,t},n.transformMat4=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*u+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*u+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*u+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*u+e[15]*o,t},n.transformQuat=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[0],s=e[1],a=e[2],c=e[3],f=c*r+s*u-a*i,h=c*i+a*r-o*u,l=c*u+o*i-s*r,d=-o*r-s*i-a*u;return t[0]=f*c+d*-o+h*-a-l*-s,t[1]=h*c+d*-s+l*-o-f*-a,t[2]=l*c+d*-a+f*-s-h*-o,t[3]=n[3],t},n.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=n[0],a=n[1],c=n[2],f=n[3];return Math.abs(e-s)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(u-c)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function o(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function s(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function a(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],u=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+u*u)}function c(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],u=n[3]-t[3];return e*e+r*r+i*i+u*u}function f(t){var n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function h(t){var n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}n.sub=u,n.mul=o,n.div=s,n.dist=a,n.sqrDist=c,n.len=f,n.sqrLen=h,n.forEach=function(){var t=i();return function(n,e,r,i,u,o){var s,a=void 0;for(e||(e=4),r||(r=0),s=i?Math.min(i*e+r,n.length):n.length,a=r;a<s;a+=e)t[0]=n[a],t[1]=n[a+1],t[2]=n[a+2],t[3]=n[a+3],u(t,t,o),n[a]=t[0],n[a+1]=t[1],n[a+2]=t[2],n[a+3]=t[3];return n}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.forEach=n.sqrLen=n.len=n.sqrDist=n.dist=n.div=n.mul=n.sub=void 0,n.create=i,n.clone=function(t){var n=new r.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},n.length=u,n.fromValues=o,n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},n.set=function(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t},n.subtract=s,n.multiply=a,n.divide=c,n.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},n.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},n.min=function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t},n.max=function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t},n.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},n.scaleAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t},n.distance=f,n.squaredDistance=h,n.squaredLength=l,n.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},n.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},n.normalize=d,n.dot=E,n.cross=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[0],s=e[1],a=e[2];return t[0]=i*a-u*s,t[1]=u*o-r*a,t[2]=r*s-i*o,t},n.lerp=function(t,n,e,r){var i=n[0],u=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=u+r*(e[1]-u),t[2]=o+r*(e[2]-o),t},n.hermite=function(t,n,e,r,i,u){var o=u*u,s=o*(2*u-3)+1,a=o*(u-2)+u,c=o*(u-1),f=o*(3-2*u);return t[0]=n[0]*s+e[0]*a+r[0]*c+i[0]*f,t[1]=n[1]*s+e[1]*a+r[1]*c+i[1]*f,t[2]=n[2]*s+e[2]*a+r[2]*c+i[2]*f,t},n.bezier=function(t,n,e,r,i,u){var o=1-u,s=o*o,a=u*u,c=s*o,f=3*u*s,h=3*a*o,l=a*u;return t[0]=n[0]*c+e[0]*f+r[0]*h+i[0]*l,t[1]=n[1]*c+e[1]*f+r[1]*h+i[1]*l,t[2]=n[2]*c+e[2]*f+r[2]*h+i[2]*l,t},n.random=function(t,n){n=n||1;var e=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,u=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=i*n,t},n.transformMat4=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[3]*r+e[7]*i+e[11]*u+e[15];return o=o||1,t[0]=(e[0]*r+e[4]*i+e[8]*u+e[12])/o,t[1]=(e[1]*r+e[5]*i+e[9]*u+e[13])/o,t[2]=(e[2]*r+e[6]*i+e[10]*u+e[14])/o,t},n.transformMat3=function(t,n,e){var r=n[0],i=n[1],u=n[2];return t[0]=r*e[0]+i*e[3]+u*e[6],t[1]=r*e[1]+i*e[4]+u*e[7],t[2]=r*e[2]+i*e[5]+u*e[8],t},n.transformQuat=function(t,n,e){var r=e[0],i=e[1],u=e[2],o=e[3],s=n[0],a=n[1],c=n[2],f=i*c-u*a,h=u*s-r*c,l=r*a-i*s,d=i*l-u*h,E=u*f-r*l,m=r*h-i*f,_=2*o;return f*=_,h*=_,l*=_,d*=2,E*=2,m*=2,t[0]=s+f+d,t[1]=a+h+E,t[2]=c+l+m,t},n.rotateX=function(t,n,e,r){var i=[],u=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],u[0]=i[0],u[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),u[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=u[0]+e[0],t[1]=u[1]+e[1],t[2]=u[2]+e[2],t},n.rotateY=function(t,n,e,r){var i=[],u=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],u[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),u[1]=i[1],u[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=u[0]+e[0],t[1]=u[1]+e[1],t[2]=u[2]+e[2],t},n.rotateZ=function(t,n,e,r){var i=[],u=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],u[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),u[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),u[2]=i[2],t[0]=u[0]+e[0],t[1]=u[1]+e[1],t[2]=u[2]+e[2],t},n.angle=function(t,n){var e=o(t[0],t[1],t[2]),r=o(n[0],n[1],n[2]);d(e,e),d(r,r);var i=E(e,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},n.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=n[0],s=n[1],a=n[2];return Math.abs(e-o)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(u-a)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(a))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function u(t){var n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n,e){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=n,i[2]=e,i}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function a(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function h(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function l(t){var n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function d(t,n){var e=n[0],r=n[1],i=n[2],u=e*e+r*r+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=n[0]*u,t[1]=n[1]*u,t[2]=n[2]*u),t}function E(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}n.sub=s,n.mul=a,n.div=c,n.dist=f,n.sqrDist=h,n.len=u,n.sqrLen=l,n.forEach=function(){var t=i();return function(n,e,r,i,u,o){var s,a=void 0;for(e||(e=3),r||(r=0),s=i?Math.min(i*e+r,n.length):n.length,a=r;a<s;a+=e)t[0]=n[a],t[1]=n[a+1],t[2]=n[a+2],u(t,t,o),n[a]=t[0],n[a+1]=t[1],n[a+2]=t[2];return n}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setAxes=n.sqlerp=n.rotationTo=n.equals=n.exactEquals=n.normalize=n.sqrLen=n.squaredLength=n.len=n.length=n.lerp=n.dot=n.scale=n.mul=n.add=n.set=n.copy=n.fromValues=n.clone=void 0,n.create=a,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},n.setAxisAngle=c,n.getAxisAngle=function(t,n){var e=2*Math.acos(n[3]),i=Math.sin(e/2);return i>r.EPSILON?(t[0]=n[0]/i,t[1]=n[1]/i,t[2]=n[2]/i):(t[0]=1,t[1]=0,t[2]=0),e},n.multiply=f,n.rotateX=function(t,n,e){e*=.5;var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a+o*s,t[1]=i*a+u*s,t[2]=u*a-i*s,t[3]=o*a-r*s,t},n.rotateY=function(t,n,e){e*=.5;var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a-u*s,t[1]=i*a+o*s,t[2]=u*a+r*s,t[3]=o*a-i*s,t},n.rotateZ=function(t,n,e){e*=.5;var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a+i*s,t[1]=i*a-r*s,t[2]=u*a+o*s,t[3]=o*a-u*s,t},n.calculateW=function(t,n){var e=n[0],r=n[1],i=n[2];return t[0]=e,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-i*i)),t},n.slerp=h,n.random=function(t){var n=r.RANDOM(),e=r.RANDOM(),i=r.RANDOM(),u=Math.sqrt(1-n),o=Math.sqrt(n);return t[0]=u*Math.sin(2*Math.PI*e),t[1]=u*Math.cos(2*Math.PI*e),t[2]=o*Math.sin(2*Math.PI*i),t[3]=o*Math.cos(2*Math.PI*i),t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e*e+r*r+i*i+u*u,s=o?1/o:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-i*s,t[3]=u*s,t},n.conjugate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t},n.fromMat3=l,n.fromEuler=function(t,n,e,r){var i=.5*Math.PI/180;n*=i,e*=i,r*=i;var u=Math.sin(n),o=Math.cos(n),s=Math.sin(e),a=Math.cos(e),c=Math.sin(r),f=Math.cos(r);return t[0]=u*a*f-o*s*c,t[1]=o*s*f+u*a*c,t[2]=o*a*c-u*s*f,t[3]=o*a*f+u*s*c,t},n.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"};var r=s(e(0)),i=s(e(5)),u=s(e(2)),o=s(e(1));function s(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function a(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function c(t,n,e){e*=.5;var r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function f(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*f+o*s+i*c-u*a,t[1]=i*f+o*a+u*s-r*c,t[2]=u*f+o*c+r*a-i*s,t[3]=o*f-r*s-i*a-u*c,t}function h(t,n,e,i){var u=n[0],o=n[1],s=n[2],a=n[3],c=e[0],f=e[1],h=e[2],l=e[3],d=void 0,E=void 0,m=void 0,_=void 0,R=void 0;return(E=u*c+o*f+s*h+a*l)<0&&(E=-E,c=-c,f=-f,h=-h,l=-l),1-E>r.EPSILON?(d=Math.acos(E),m=Math.sin(d),_=Math.sin((1-i)*d)/m,R=Math.sin(i*d)/m):(_=1-i,R=i),t[0]=_*u+R*c,t[1]=_*o+R*f,t[2]=_*s+R*h,t[3]=_*a+R*l,t}function l(t,n){var e=n[0]+n[4]+n[8],r=void 0;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{var i=0;n[4]>n[0]&&(i=1),n[8]>n[3*i+i]&&(i=2);var u=(i+1)%3,o=(i+2)%3;r=Math.sqrt(n[3*i+i]-n[3*u+u]-n[3*o+o]+1),t[i]=.5*r,r=.5/r,t[3]=(n[3*u+o]-n[3*o+u])*r,t[u]=(n[3*u+i]+n[3*i+u])*r,t[o]=(n[3*o+i]+n[3*i+o])*r}return t}n.clone=o.clone,n.fromValues=o.fromValues,n.copy=o.copy,n.set=o.set,n.add=o.add,n.mul=f,n.scale=o.scale,n.dot=o.dot,n.lerp=o.lerp;var d=n.length=o.length,E=(n.len=d,n.squaredLength=o.squaredLength),m=(n.sqrLen=E,n.normalize=o.normalize);n.exactEquals=o.exactEquals,n.equals=o.equals,n.rotationTo=function(){var t=u.create(),n=u.fromValues(1,0,0),e=u.fromValues(0,1,0);return function(r,i,o){var s=u.dot(i,o);return s<-.999999?(u.cross(t,n,i),u.len(t)<1e-6&&u.cross(t,e,i),u.normalize(t,t),c(r,t,Math.PI),r):s>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(u.cross(t,i,o),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+s,m(r,r))}}(),n.sqlerp=function(){var t=a(),n=a();return function(e,r,i,u,o,s){return h(t,r,o,s),h(n,i,u,s),h(e,t,n,2*s*(1-s)),e}}(),n.setAxes=function(){var t=i.create();return function(n,e,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-e[0],t[5]=-e[1],t[8]=-e[2],m(n,l(n,t))}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},n.fromValues=function(t,n,e,i,u,o,s,a,c,f,h,l,d,E,m,_){var R=new r.ARRAY_TYPE(16);return R[0]=t,R[1]=n,R[2]=e,R[3]=i,R[4]=u,R[5]=o,R[6]=s,R[7]=a,R[8]=c,R[9]=f,R[10]=h,R[11]=l,R[12]=d,R[13]=E,R[14]=m,R[15]=_,R},n.set=function(t,n,e,r,i,u,o,s,a,c,f,h,l,d,E,m,_){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t[6]=s,t[7]=a,t[8]=c,t[9]=f,t[10]=h,t[11]=l,t[12]=d,t[13]=E,t[14]=m,t[15]=_,t},n.identity=i,n.transpose=function(t,n){if(t===n){var e=n[1],r=n[2],i=n[3],u=n[6],o=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=u,t[11]=n[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],d=n[11],E=n[12],m=n[13],_=n[14],R=n[15],M=e*s-r*o,A=e*a-i*o,T=e*c-u*o,v=r*a-i*s,p=r*c-u*s,N=i*c-u*a,I=f*m-h*E,S=f*_-l*E,O=f*R-d*E,L=h*_-l*m,P=h*R-d*m,F=l*R-d*_,g=M*F-A*P+T*L+v*O-p*S+N*I;return g?(g=1/g,t[0]=(s*F-a*P+c*L)*g,t[1]=(i*P-r*F-u*L)*g,t[2]=(m*N-_*p+R*v)*g,t[3]=(l*p-h*N-d*v)*g,t[4]=(a*O-o*F-c*S)*g,t[5]=(e*F-i*O+u*S)*g,t[6]=(_*T-E*N-R*A)*g,t[7]=(f*N-l*T+d*A)*g,t[8]=(o*P-s*O+c*I)*g,t[9]=(r*O-e*P-u*I)*g,t[10]=(E*p-m*T+R*M)*g,t[11]=(h*T-f*p-d*M)*g,t[12]=(s*S-o*L-a*I)*g,t[13]=(e*L-r*S+i*I)*g,t[14]=(m*A-E*v-_*M)*g,t[15]=(f*v-h*A+l*M)*g,t):null},n.adjoint=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],d=n[11],E=n[12],m=n[13],_=n[14],R=n[15];return t[0]=s*(l*R-d*_)-h*(a*R-c*_)+m*(a*d-c*l),t[1]=-(r*(l*R-d*_)-h*(i*R-u*_)+m*(i*d-u*l)),t[2]=r*(a*R-c*_)-s*(i*R-u*_)+m*(i*c-u*a),t[3]=-(r*(a*d-c*l)-s*(i*d-u*l)+h*(i*c-u*a)),t[4]=-(o*(l*R-d*_)-f*(a*R-c*_)+E*(a*d-c*l)),t[5]=e*(l*R-d*_)-f*(i*R-u*_)+E*(i*d-u*l),t[6]=-(e*(a*R-c*_)-o*(i*R-u*_)+E*(i*c-u*a)),t[7]=e*(a*d-c*l)-o*(i*d-u*l)+f*(i*c-u*a),t[8]=o*(h*R-d*m)-f*(s*R-c*m)+E*(s*d-c*h),t[9]=-(e*(h*R-d*m)-f*(r*R-u*m)+E*(r*d-u*h)),t[10]=e*(s*R-c*m)-o*(r*R-u*m)+E*(r*c-u*s),t[11]=-(e*(s*d-c*h)-o*(r*d-u*h)+f*(r*c-u*s)),t[12]=-(o*(h*_-l*m)-f*(s*_-a*m)+E*(s*l-a*h)),t[13]=e*(h*_-l*m)-f*(r*_-i*m)+E*(r*l-i*h),t[14]=-(e*(s*_-a*m)-o*(r*_-i*m)+E*(r*a-i*s)),t[15]=e*(s*l-a*h)-o*(r*l-i*h)+f*(r*a-i*s),t},n.determinant=function(t){var n=t[0],e=t[1],r=t[2],i=t[3],u=t[4],o=t[5],s=t[6],a=t[7],c=t[8],f=t[9],h=t[10],l=t[11],d=t[12],E=t[13],m=t[14],_=t[15];return(n*o-e*u)*(h*_-l*m)-(n*s-r*u)*(f*_-l*E)+(n*a-i*u)*(f*m-h*E)+(e*s-r*o)*(c*_-l*d)-(e*a-i*o)*(c*m-h*d)+(r*a-i*s)*(c*E-f*d)},n.multiply=u,n.translate=function(t,n,e){var r=e[0],i=e[1],u=e[2],o=void 0,s=void 0,a=void 0,c=void 0,f=void 0,h=void 0,l=void 0,d=void 0,E=void 0,m=void 0,_=void 0,R=void 0;return n===t?(t[12]=n[0]*r+n[4]*i+n[8]*u+n[12],t[13]=n[1]*r+n[5]*i+n[9]*u+n[13],t[14]=n[2]*r+n[6]*i+n[10]*u+n[14],t[15]=n[3]*r+n[7]*i+n[11]*u+n[15]):(o=n[0],s=n[1],a=n[2],c=n[3],f=n[4],h=n[5],l=n[6],d=n[7],E=n[8],m=n[9],_=n[10],R=n[11],t[0]=o,t[1]=s,t[2]=a,t[3]=c,t[4]=f,t[5]=h,t[6]=l,t[7]=d,t[8]=E,t[9]=m,t[10]=_,t[11]=R,t[12]=o*r+f*i+E*u+n[12],t[13]=s*r+h*i+m*u+n[13],t[14]=a*r+l*i+_*u+n[14],t[15]=c*r+d*i+R*u+n[15]),t},n.scale=function(t,n,e){var r=e[0],i=e[1],u=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*u,t[9]=n[9]*u,t[10]=n[10]*u,t[11]=n[11]*u,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},n.rotate=function(t,n,e,i){var u,o,s,a,c,f,h,l,d,E,m,_,R,M,A,T,v,p,N,I,S,O,L,P,F=i[0],g=i[1],C=i[2],D=Math.sqrt(F*F+g*g+C*C);return D<r.EPSILON?null:(F*=D=1/D,g*=D,C*=D,u=Math.sin(e),s=1-(o=Math.cos(e)),a=n[0],c=n[1],f=n[2],h=n[3],l=n[4],d=n[5],E=n[6],m=n[7],_=n[8],R=n[9],M=n[10],A=n[11],T=F*F*s+o,v=g*F*s+C*u,p=C*F*s-g*u,N=F*g*s-C*u,I=g*g*s+o,S=C*g*s+F*u,O=F*C*s+g*u,L=g*C*s-F*u,P=C*C*s+o,t[0]=a*T+l*v+_*p,t[1]=c*T+d*v+R*p,t[2]=f*T+E*v+M*p,t[3]=h*T+m*v+A*p,t[4]=a*N+l*I+_*S,t[5]=c*N+d*I+R*S,t[6]=f*N+E*I+M*S,t[7]=h*N+m*I+A*S,t[8]=a*O+l*L+_*P,t[9]=c*O+d*L+R*P,t[10]=f*O+E*L+M*P,t[11]=h*O+m*L+A*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)},n.rotateX=function(t,n,e){var r=Math.sin(e),i=Math.cos(e),u=n[4],o=n[5],s=n[6],a=n[7],c=n[8],f=n[9],h=n[10],l=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=u*i+c*r,t[5]=o*i+f*r,t[6]=s*i+h*r,t[7]=a*i+l*r,t[8]=c*i-u*r,t[9]=f*i-o*r,t[10]=h*i-s*r,t[11]=l*i-a*r,t},n.rotateY=function(t,n,e){var r=Math.sin(e),i=Math.cos(e),u=n[0],o=n[1],s=n[2],a=n[3],c=n[8],f=n[9],h=n[10],l=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=u*i-c*r,t[1]=o*i-f*r,t[2]=s*i-h*r,t[3]=a*i-l*r,t[8]=u*r+c*i,t[9]=o*r+f*i,t[10]=s*r+h*i,t[11]=a*r+l*i,t},n.rotateZ=function(t,n,e){var r=Math.sin(e),i=Math.cos(e),u=n[0],o=n[1],s=n[2],a=n[3],c=n[4],f=n[5],h=n[6],l=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=u*i+c*r,t[1]=o*i+f*r,t[2]=s*i+h*r,t[3]=a*i+l*r,t[4]=c*i-u*r,t[5]=f*i-o*r,t[6]=h*i-s*r,t[7]=l*i-a*r,t},n.fromTranslation=function(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,n,e){var i,u,o,s=e[0],a=e[1],c=e[2],f=Math.sqrt(s*s+a*a+c*c);return f<r.EPSILON?null:(s*=f=1/f,a*=f,c*=f,i=Math.sin(n),o=1-(u=Math.cos(n)),t[0]=s*s*o+u,t[1]=a*s*o+c*i,t[2]=c*s*o-a*i,t[3]=0,t[4]=s*a*o-c*i,t[5]=a*a*o+u,t[6]=c*a*o+s*i,t[7]=0,t[8]=s*c*o+a*i,t[9]=a*c*o-s*i,t[10]=c*c*o+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,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,t},n.fromRotationTranslation=o,n.fromQuat2=function(t,n){var e=new r.ARRAY_TYPE(3),i=-n[0],u=-n[1],s=-n[2],a=n[3],c=n[4],f=n[5],h=n[6],l=n[7],d=i*i+u*u+s*s+a*a;return d>0?(e[0]=2*(c*a+l*i+f*s-h*u)/d,e[1]=2*(f*a+l*u+h*i-c*s)/d,e[2]=2*(h*a+l*s+c*u-f*i)/d):(e[0]=2*(c*a+l*i+f*s-h*u),e[1]=2*(f*a+l*u+h*i-c*s),e[2]=2*(h*a+l*s+c*u-f*i)),o(t,n,e),t},n.getTranslation=function(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t},n.getScaling=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[4],o=n[5],s=n[6],a=n[8],c=n[9],f=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(u*u+o*o+s*s),t[2]=Math.sqrt(a*a+c*c+f*f),t},n.getRotation=function(t,n){var e=n[0]+n[5]+n[10],r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t},n.fromRotationTranslationScale=function(t,n,e,r){var i=n[0],u=n[1],o=n[2],s=n[3],a=i+i,c=u+u,f=o+o,h=i*a,l=i*c,d=i*f,E=u*c,m=u*f,_=o*f,R=s*a,M=s*c,A=s*f,T=r[0],v=r[1],p=r[2];return t[0]=(1-(E+_))*T,t[1]=(l+A)*T,t[2]=(d-M)*T,t[3]=0,t[4]=(l-A)*v,t[5]=(1-(h+_))*v,t[6]=(m+R)*v,t[7]=0,t[8]=(d+M)*p,t[9]=(m-R)*p,t[10]=(1-(h+E))*p,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,n,e,r,i){var u=n[0],o=n[1],s=n[2],a=n[3],c=u+u,f=o+o,h=s+s,l=u*c,d=u*f,E=u*h,m=o*f,_=o*h,R=s*h,M=a*c,A=a*f,T=a*h,v=r[0],p=r[1],N=r[2],I=i[0],S=i[1],O=i[2],L=(1-(m+R))*v,P=(d+T)*v,F=(E-A)*v,g=(d-T)*p,C=(1-(l+R))*p,D=(_+M)*p,y=(E+A)*N,U=(_-M)*N,B=(1-(l+m))*N;return t[0]=L,t[1]=P,t[2]=F,t[3]=0,t[4]=g,t[5]=C,t[6]=D,t[7]=0,t[8]=y,t[9]=U,t[10]=B,t[11]=0,t[12]=e[0]+I-(L*I+g*S+y*O),t[13]=e[1]+S-(P*I+C*S+U*O),t[14]=e[2]+O-(F*I+D*S+B*O),t[15]=1,t},n.fromQuat=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e+e,s=r+r,a=i+i,c=e*o,f=r*o,h=r*s,l=i*o,d=i*s,E=i*a,m=u*o,_=u*s,R=u*a;return t[0]=1-h-E,t[1]=f+R,t[2]=l-_,t[3]=0,t[4]=f-R,t[5]=1-c-E,t[6]=d+m,t[7]=0,t[8]=l+_,t[9]=d-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,n,e,r,i,u,o){var s=1/(e-n),a=1/(i-r),c=1/(u-o);return t[0]=2*u*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*u*a,t[6]=0,t[7]=0,t[8]=(e+n)*s,t[9]=(i+r)*a,t[10]=(o+u)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*u*2*c,t[15]=0,t},n.perspective=function(t,n,e,r,i){var u=1/Math.tan(n/2),o=void 0;return t[0]=u/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,n,e,r){var i=Math.tan(n.upDegrees*Math.PI/180),u=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),a=2/(o+s),c=2/(i+u);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*a*.5,t[9]=(i-u)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},n.ortho=function(t,n,e,r,i,u,o){var s=1/(n-e),a=1/(r-i),c=1/(u-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*s,t[13]=(i+r)*a,t[14]=(o+u)*c,t[15]=1,t},n.lookAt=function(t,n,e,u){var o=void 0,s=void 0,a=void 0,c=void 0,f=void 0,h=void 0,l=void 0,d=void 0,E=void 0,m=void 0,_=n[0],R=n[1],M=n[2],A=u[0],T=u[1],v=u[2],p=e[0],N=e[1],I=e[2];return Math.abs(_-p)<r.EPSILON&&Math.abs(R-N)<r.EPSILON&&Math.abs(M-I)<r.EPSILON?i(t):(l=_-p,d=R-N,E=M-I,o=T*(E*=m=1/Math.sqrt(l*l+d*d+E*E))-v*(d*=m),s=v*(l*=m)-A*E,a=A*d-T*l,(m=Math.sqrt(o*o+s*s+a*a))?(o*=m=1/m,s*=m,a*=m):(o=0,s=0,a=0),c=d*a-E*s,f=E*o-l*a,h=l*s-d*o,(m=Math.sqrt(c*c+f*f+h*h))?(c*=m=1/m,f*=m,h*=m):(c=0,f=0,h=0),t[0]=o,t[1]=c,t[2]=l,t[3]=0,t[4]=s,t[5]=f,t[6]=d,t[7]=0,t[8]=a,t[9]=h,t[10]=E,t[11]=0,t[12]=-(o*_+s*R+a*M),t[13]=-(c*_+f*R+h*M),t[14]=-(l*_+d*R+E*M),t[15]=1,t)},n.targetTo=function(t,n,e,r){var i=n[0],u=n[1],o=n[2],s=r[0],a=r[1],c=r[2],f=i-e[0],h=u-e[1],l=o-e[2],d=f*f+h*h+l*l;d>0&&(f*=d=1/Math.sqrt(d),h*=d,l*=d);var E=a*l-c*h,m=c*f-s*l,_=s*h-a*f;return(d=E*E+m*m+_*_)>0&&(E*=d=1/Math.sqrt(d),m*=d,_*=d),t[0]=E,t[1]=m,t[2]=_,t[3]=0,t[4]=h*_-l*m,t[5]=l*E-f*_,t[6]=f*m-h*E,t[7]=0,t[8]=f,t[9]=h,t[10]=l,t[11]=0,t[12]=i,t[13]=u,t[14]=o,t[15]=1,t},n.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},n.subtract=s,n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=t[6],f=t[7],h=t[8],l=t[9],d=t[10],E=t[11],m=t[12],_=t[13],R=t[14],M=t[15],A=n[0],T=n[1],v=n[2],p=n[3],N=n[4],I=n[5],S=n[6],O=n[7],L=n[8],P=n[9],F=n[10],g=n[11],C=n[12],D=n[13],y=n[14],U=n[15];return Math.abs(e-A)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(A))&&Math.abs(i-T)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(o-p)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-N)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(N))&&Math.abs(a-I)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(I))&&Math.abs(c-S)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(f-O)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(h-L)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(l-P)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(d-F)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(E-g)<=r.EPSILON*Math.max(1,Math.abs(E),Math.abs(g))&&Math.abs(m-C)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(_-D)<=r.EPSILON*Math.max(1,Math.abs(_),Math.abs(D))&&Math.abs(R-y)<=r.EPSILON*Math.max(1,Math.abs(R),Math.abs(y))&&Math.abs(M-U)<=r.EPSILON*Math.max(1,Math.abs(M),Math.abs(U))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t){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,t}function u(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=n[9],d=n[10],E=n[11],m=n[12],_=n[13],R=n[14],M=n[15],A=e[0],T=e[1],v=e[2],p=e[3];return t[0]=A*r+T*s+v*h+p*m,t[1]=A*i+T*a+v*l+p*_,t[2]=A*u+T*c+v*d+p*R,t[3]=A*o+T*f+v*E+p*M,A=e[4],T=e[5],v=e[6],p=e[7],t[4]=A*r+T*s+v*h+p*m,t[5]=A*i+T*a+v*l+p*_,t[6]=A*u+T*c+v*d+p*R,t[7]=A*o+T*f+v*E+p*M,A=e[8],T=e[9],v=e[10],p=e[11],t[8]=A*r+T*s+v*h+p*m,t[9]=A*i+T*a+v*l+p*_,t[10]=A*u+T*c+v*d+p*R,t[11]=A*o+T*f+v*E+p*M,A=e[12],T=e[13],v=e[14],p=e[15],t[12]=A*r+T*s+v*h+p*m,t[13]=A*i+T*a+v*l+p*_,t[14]=A*u+T*c+v*d+p*R,t[15]=A*o+T*f+v*E+p*M,t}function o(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=r+r,a=i+i,c=u+u,f=r*s,h=r*a,l=r*c,d=i*a,E=i*c,m=u*c,_=o*s,R=o*a,M=o*c;return t[0]=1-(d+m),t[1]=h+M,t[2]=l-R,t[3]=0,t[4]=h-M,t[5]=1-(f+m),t[6]=E+_,t[7]=0,t[8]=l+R,t[9]=E-_,t[10]=1-(f+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}n.mul=u,n.sub=s},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t},n.clone=function(t){var n=new r.ARRAY_TYPE(9);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},n.fromValues=function(t,n,e,i,u,o,s,a,c){var f=new r.ARRAY_TYPE(9);return f[0]=t,f[1]=n,f[2]=e,f[3]=i,f[4]=u,f[5]=o,f[6]=s,f[7]=a,f[8]=c,f},n.set=function(t,n,e,r,i,u,o,s,a,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t[6]=s,t[7]=a,t[8]=c,t},n.identity=function(t){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,t},n.transpose=function(t,n){if(t===n){var e=n[1],r=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=f*o-s*c,l=-f*u+s*a,d=c*u-o*a,E=e*h+r*l+i*d;return E?(E=1/E,t[0]=h*E,t[1]=(-f*r+i*c)*E,t[2]=(s*r-i*o)*E,t[3]=l*E,t[4]=(f*e-i*a)*E,t[5]=(-s*e+i*u)*E,t[6]=d*E,t[7]=(-c*e+r*a)*E,t[8]=(o*e-r*u)*E,t):null},n.adjoint=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8];return t[0]=o*f-s*c,t[1]=i*c-r*f,t[2]=r*s-i*o,t[3]=s*a-u*f,t[4]=e*f-i*a,t[5]=i*u-e*s,t[6]=u*c-o*a,t[7]=r*a-e*c,t[8]=e*o-r*u,t},n.determinant=function(t){var n=t[0],e=t[1],r=t[2],i=t[3],u=t[4],o=t[5],s=t[6],a=t[7],c=t[8];return n*(c*u-o*a)+e*(-c*i+o*s)+r*(a*i-u*s)},n.multiply=i,n.translate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=e[0],d=e[1];return t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=s,t[5]=a,t[6]=l*r+d*o+c,t[7]=l*i+d*s+f,t[8]=l*u+d*a+h,t},n.rotate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=Math.sin(e),d=Math.cos(e);return t[0]=d*r+l*o,t[1]=d*i+l*s,t[2]=d*u+l*a,t[3]=d*o-l*r,t[4]=d*s-l*i,t[5]=d*a-l*u,t[6]=c,t[7]=f,t[8]=h,t},n.scale=function(t,n,e){var r=e[0],i=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},n.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},n.fromRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},n.fromQuat=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e+e,s=r+r,a=i+i,c=e*o,f=r*o,h=r*s,l=i*o,d=i*s,E=i*a,m=u*o,_=u*s,R=u*a;return t[0]=1-h-E,t[3]=f-R,t[6]=l+_,t[1]=f+R,t[4]=1-c-E,t[7]=d-m,t[2]=l-_,t[5]=d+m,t[8]=1-c-h,t},n.normalFromMat4=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],d=n[11],E=n[12],m=n[13],_=n[14],R=n[15],M=e*s-r*o,A=e*a-i*o,T=e*c-u*o,v=r*a-i*s,p=r*c-u*s,N=i*c-u*a,I=f*m-h*E,S=f*_-l*E,O=f*R-d*E,L=h*_-l*m,P=h*R-d*m,F=l*R-d*_,g=M*F-A*P+T*L+v*O-p*S+N*I;return g?(g=1/g,t[0]=(s*F-a*P+c*L)*g,t[1]=(a*O-o*F-c*S)*g,t[2]=(o*P-s*O+c*I)*g,t[3]=(i*P-r*F-u*L)*g,t[4]=(e*F-i*O+u*S)*g,t[5]=(r*O-e*P-u*I)*g,t[6]=(m*N-_*p+R*v)*g,t[7]=(_*T-E*N-R*A)*g,t[8]=(E*p-m*T+R*M)*g,t):null},n.projection=function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},n.subtract=u,n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=t[6],f=t[7],h=t[8],l=n[0],d=n[1],E=n[2],m=n[3],_=n[4],R=n[5],M=n[6],A=n[7],T=n[8];return Math.abs(e-l)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(u-E)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(o-m)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(s-_)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(a-R)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(c-M)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(h-T)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=n[6],f=n[7],h=n[8],l=e[0],d=e[1],E=e[2],m=e[3],_=e[4],R=e[5],M=e[6],A=e[7],T=e[8];return t[0]=l*r+d*o+E*c,t[1]=l*i+d*s+E*f,t[2]=l*u+d*a+E*h,t[3]=m*r+_*o+R*c,t[4]=m*i+_*s+R*f,t[5]=m*u+_*a+R*h,t[6]=M*r+A*o+T*c,t[7]=M*i+A*s+T*f,t[8]=M*u+A*a+T*h,t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}n.mul=i,n.sub=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.forEach=n.sqrLen=n.sqrDist=n.dist=n.div=n.mul=n.sub=n.len=void 0,n.create=i,n.clone=function(t){var n=new r.ARRAY_TYPE(2);return n[0]=t[0],n[1]=t[1],n},n.fromValues=function(t,n){var e=new r.ARRAY_TYPE(2);return e[0]=t,e[1]=n,e},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t},n.set=function(t,n,e){return t[0]=n,t[1]=e,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t},n.subtract=u,n.multiply=o,n.divide=s,n.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},n.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},n.min=function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},n.max=function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},n.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t},n.scaleAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},n.distance=a,n.squaredDistance=c,n.length=f,n.squaredLength=h,n.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t},n.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},n.normalize=function(t,n){var e=n[0],r=n[1],i=e*e+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i),t},n.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]},n.cross=function(t,n,e){var r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},n.lerp=function(t,n,e,r){var i=n[0],u=n[1];return t[0]=i+r*(e[0]-i),t[1]=u+r*(e[1]-u),t},n.random=function(t,n){n=n||1;var e=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},n.transformMat2=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[2]*i,t[1]=e[1]*r+e[3]*i,t},n.transformMat2d=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[2]*i+e[4],t[1]=e[1]*r+e[3]*i+e[5],t},n.transformMat3=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[3]*i+e[6],t[1]=e[1]*r+e[4]*i+e[7],t},n.transformMat4=function(t,n,e){var r=n[0],i=n[1];return t[0]=e[0]*r+e[4]*i+e[12],t[1]=e[1]*r+e[5]*i+e[13],t},n.rotate=function(t,n,e,r){var i=n[0]-e[0],u=n[1]-e[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-u*o+e[0],t[1]=i*o+u*s+e[1],t},n.angle=function(t,n){var e=t[0],r=t[1],i=n[0],u=n[1],o=e*e+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+u*u;s>0&&(s=1/Math.sqrt(s));var a=(e*i+r*u)*o*s;return a>1?0:a<-1?Math.PI:Math.acos(a)},n.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]},n.equals=function(t,n){var e=t[0],i=t[1],u=n[0],o=n[1];return Math.abs(e-u)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(i-o)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function o(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function s(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function a(t,n){var e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function c(t,n){var e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function f(t){var n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function h(t){var n=t[0],e=t[1];return n*n+e*e}n.len=f,n.sub=u,n.mul=o,n.div=s,n.dist=a,n.sqrDist=c,n.sqrLen=h,n.forEach=function(){var t=i();return function(n,e,r,i,u,o){var s,a=void 0;for(e||(e=2),r||(r=0),s=i?Math.min(i*e+r,n.length):n.length,a=r;a<s;a+=e)t[0]=n[a],t[1]=n[a+1],u(t,t,o),n[a]=t[0],n[a+1]=t[1];return n}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sqrLen=n.squaredLength=n.len=n.length=n.dot=n.mul=n.setReal=n.getReal=void 0,n.create=function(){var t=new r.ARRAY_TYPE(8);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(8);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n},n.fromValues=function(t,n,e,i,u,o,s,a){var c=new r.ARRAY_TYPE(8);return c[0]=t,c[1]=n,c[2]=e,c[3]=i,c[4]=u,c[5]=o,c[6]=s,c[7]=a,c},n.fromRotationTranslationValues=function(t,n,e,i,u,o,s){var a=new r.ARRAY_TYPE(8);a[0]=t,a[1]=n,a[2]=e,a[3]=i;var c=.5*u,f=.5*o,h=.5*s;return a[4]=c*i+f*e-h*n,a[5]=f*i+h*t-c*e,a[6]=h*i+c*n-f*t,a[7]=-c*t-f*n-h*e,a},n.fromRotationTranslation=s,n.fromTranslation=function(t,n){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*n[0],t[5]=.5*n[1],t[6]=.5*n[2],t[7]=0,t},n.fromRotation=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,n){var e=i.create();u.getRotation(e,n);var o=new r.ARRAY_TYPE(3);return u.getTranslation(o,n),s(t,e,o),t},n.copy=a,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,n,e,r,i,u,o,s,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t[6]=s,t[7]=a,t},n.getDual=function(t,n){return t[0]=n[4],t[1]=n[5],t[2]=n[6],t[3]=n[7],t},n.setDual=function(t,n){return t[4]=n[0],t[5]=n[1],t[6]=n[2],t[7]=n[3],t},n.getTranslation=function(t,n){var e=n[4],r=n[5],i=n[6],u=n[7],o=-n[0],s=-n[1],a=-n[2],c=n[3];return t[0]=2*(e*c+u*o+r*a-i*s),t[1]=2*(r*c+u*s+i*o-e*a),t[2]=2*(i*c+u*a+e*s-r*o),t},n.translate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=.5*e[0],a=.5*e[1],c=.5*e[2],f=n[4],h=n[5],l=n[6],d=n[7];return t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=o*s+i*c-u*a+f,t[5]=o*a+u*s-r*c+h,t[6]=o*c+r*a-i*s+l,t[7]=-r*s-i*a-u*c+d,t},n.rotateX=function(t,n,e){var r=-n[0],u=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],f=n[6],h=n[7],l=a*s+h*r+c*o-f*u,d=c*s+h*u+f*r-a*o,E=f*s+h*o+a*u-c*r,m=h*s-a*r-c*u-f*o;return i.rotateX(t,n,e),r=t[0],u=t[1],o=t[2],s=t[3],t[4]=l*s+m*r+d*o-E*u,t[5]=d*s+m*u+E*r-l*o,t[6]=E*s+m*o+l*u-d*r,t[7]=m*s-l*r-d*u-E*o,t},n.rotateY=function(t,n,e){var r=-n[0],u=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],f=n[6],h=n[7],l=a*s+h*r+c*o-f*u,d=c*s+h*u+f*r-a*o,E=f*s+h*o+a*u-c*r,m=h*s-a*r-c*u-f*o;return i.rotateY(t,n,e),r=t[0],u=t[1],o=t[2],s=t[3],t[4]=l*s+m*r+d*o-E*u,t[5]=d*s+m*u+E*r-l*o,t[6]=E*s+m*o+l*u-d*r,t[7]=m*s-l*r-d*u-E*o,t},n.rotateZ=function(t,n,e){var r=-n[0],u=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],f=n[6],h=n[7],l=a*s+h*r+c*o-f*u,d=c*s+h*u+f*r-a*o,E=f*s+h*o+a*u-c*r,m=h*s-a*r-c*u-f*o;return i.rotateZ(t,n,e),r=t[0],u=t[1],o=t[2],s=t[3],t[4]=l*s+m*r+d*o-E*u,t[5]=d*s+m*u+E*r-l*o,t[6]=E*s+m*o+l*u-d*r,t[7]=m*s-l*r-d*u-E*o,t},n.rotateByQuatAppend=function(t,n,e){var r=e[0],i=e[1],u=e[2],o=e[3],s=n[0],a=n[1],c=n[2],f=n[3];return t[0]=s*o+f*r+a*u-c*i,t[1]=a*o+f*i+c*r-s*u,t[2]=c*o+f*u+s*i-a*r,t[3]=f*o-s*r-a*i-c*u,s=n[4],a=n[5],c=n[6],f=n[7],t[4]=s*o+f*r+a*u-c*i,t[5]=a*o+f*i+c*r-s*u,t[6]=c*o+f*u+s*i-a*r,t[7]=f*o-s*r-a*i-c*u,t},n.rotateByQuatPrepend=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*f+o*s+i*c-u*a,t[1]=i*f+o*a+u*s-r*c,t[2]=u*f+o*c+r*a-i*s,t[3]=o*f-r*s-i*a-u*c,s=e[4],a=e[5],c=e[6],f=e[7],t[4]=r*f+o*s+i*c-u*a,t[5]=i*f+o*a+u*s-r*c,t[6]=u*f+o*c+r*a-i*s,t[7]=o*f-r*s-i*a-u*c,t},n.rotateAroundAxis=function(t,n,e,i){if(Math.abs(i)<r.EPSILON)return a(t,n);var u=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);i*=.5;var o=Math.sin(i),s=o*e[0]/u,c=o*e[1]/u,f=o*e[2]/u,h=Math.cos(i),l=n[0],d=n[1],E=n[2],m=n[3];t[0]=l*h+m*s+d*f-E*c,t[1]=d*h+m*c+E*s-l*f,t[2]=E*h+m*f+l*c-d*s,t[3]=m*h-l*s-d*c-E*f;var _=n[4],R=n[5],M=n[6],A=n[7];return t[4]=_*h+A*s+R*f-M*c,t[5]=R*h+A*c+M*s-_*f,t[6]=M*h+A*f+_*c-R*s,t[7]=A*h-_*s-R*c-M*f,t},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t},n.multiply=c,n.scale=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t},n.lerp=function(t,n,e,r){var i=1-r;return f(n,e)<0&&(r=-r),t[0]=n[0]*i+e[0]*r,t[1]=n[1]*i+e[1]*r,t[2]=n[2]*i+e[2]*r,t[3]=n[3]*i+e[3]*r,t[4]=n[4]*i+e[4]*r,t[5]=n[5]*i+e[5]*r,t[6]=n[6]*i+e[6]*r,t[7]=n[7]*i+e[7]*r,t},n.invert=function(t,n){var e=l(n);return t[0]=-n[0]/e,t[1]=-n[1]/e,t[2]=-n[2]/e,t[3]=n[3]/e,t[4]=-n[4]/e,t[5]=-n[5]/e,t[6]=-n[6]/e,t[7]=n[7]/e,t},n.conjugate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t[4]=-n[4],t[5]=-n[5],t[6]=-n[6],t[7]=n[7],t},n.normalize=function(t,n){var e=l(n);if(e>0){e=Math.sqrt(e);var r=n[0]/e,i=n[1]/e,u=n[2]/e,o=n[3]/e,s=n[4],a=n[5],c=n[6],f=n[7],h=r*s+i*a+u*c+o*f;t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=(s-r*h)/e,t[5]=(a-i*h)/e,t[6]=(c-u*h)/e,t[7]=(f-o*h)/e}return t},n.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=t[6],f=t[7],h=n[0],l=n[1],d=n[2],E=n[3],m=n[4],_=n[5],R=n[6],M=n[7];return Math.abs(e-h)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(u-d)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(o-E)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-m)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-_)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(c-R)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(f-M)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))};var r=o(e(0)),i=o(e(3)),u=o(e(4));function o(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function s(t,n,e){var r=.5*e[0],i=.5*e[1],u=.5*e[2],o=n[0],s=n[1],a=n[2],c=n[3];return t[0]=o,t[1]=s,t[2]=a,t[3]=c,t[4]=r*c+i*a-u*s,t[5]=i*c+u*o-r*a,t[6]=u*c+r*s-i*o,t[7]=-r*o-i*s-u*a,t}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t}function c(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[4],a=e[5],c=e[6],f=e[7],h=n[4],l=n[5],d=n[6],E=n[7],m=e[0],_=e[1],R=e[2],M=e[3];return t[0]=r*M+o*m+i*R-u*_,t[1]=i*M+o*_+u*m-r*R,t[2]=u*M+o*R+r*_-i*m,t[3]=o*M-r*m-i*_-u*R,t[4]=r*f+o*s+i*c-u*a+h*M+E*m+l*R-d*_,t[5]=i*f+o*a+u*s-r*c+l*M+E*_+d*m-h*R,t[6]=u*f+o*c+r*a-i*s+d*M+E*R+h*_-l*m,t[7]=o*f-r*s-i*a-u*c+E*M-h*m-l*_-d*R,t}n.getReal=i.copy,n.setReal=i.copy,n.mul=c;var f=n.dot=i.dot,h=n.length=i.length,l=(n.len=h,n.squaredLength=i.squaredLength);n.sqrLen=l},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},n.fromValues=function(t,n,e,i,u,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=n,s[2]=e,s[3]=i,s[4]=u,s[5]=o,s},n.set=function(t,n,e,r,i,u,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=u,t[5]=o,t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=n[4],s=n[5],a=e*u-r*i;return a?(a=1/a,t[0]=u*a,t[1]=-r*a,t[2]=-i*a,t[3]=e*a,t[4]=(i*s-u*o)*a,t[5]=(r*o-e*s)*a,t):null},n.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},n.multiply=i,n.rotate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=Math.sin(e),f=Math.cos(e);return t[0]=r*f+u*c,t[1]=i*f+o*c,t[2]=r*-c+u*f,t[3]=i*-c+o*f,t[4]=s,t[5]=a,t},n.scale=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=e[0],f=e[1];return t[0]=r*c,t[1]=i*c,t[2]=u*f,t[3]=o*f,t[4]=s,t[5]=a,t},n.translate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=e[0],f=e[1];return t[0]=r,t[1]=i,t[2]=u,t[3]=o,t[4]=r*c+u*f+s,t[5]=i*c+o*f+a,t},n.fromRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=-e,t[3]=r,t[4]=0,t[5]=0,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},n.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},n.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t},n.subtract=u,n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t},n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=t[4],a=t[5],c=n[0],f=n[1],h=n[2],l=n[3],d=n[4],E=n[5];return Math.abs(e-c)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(i-f)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(u-h)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(s-d)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(a-E)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(E))};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=n[4],a=n[5],c=e[0],f=e[1],h=e[2],l=e[3],d=e[4],E=e[5];return t[0]=r*c+u*f,t[1]=i*c+o*f,t[2]=r*h+u*l,t[3]=i*h+o*l,t[4]=r*d+u*E+s,t[5]=i*d+o*E+a,t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t}n.mul=i,n.sub=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sub=n.mul=void 0,n.create=function(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},n.clone=function(t){var n=new r.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},n.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},n.fromValues=function(t,n,e,i){var u=new r.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=e,u[3]=i,u},n.set=function(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t},n.transpose=function(t,n){if(t===n){var e=n[1];t[1]=n[2],t[2]=e}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},n.invert=function(t,n){var e=n[0],r=n[1],i=n[2],u=n[3],o=e*u-i*r;return o?(o=1/o,t[0]=u*o,t[1]=-r*o,t[2]=-i*o,t[3]=e*o,t):null},n.adjoint=function(t,n){var e=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=e,t},n.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},n.multiply=i,n.rotate=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=Math.sin(e),a=Math.cos(e);return t[0]=r*a+u*s,t[1]=i*a+o*s,t[2]=r*-s+u*a,t[3]=i*-s+o*a,t},n.scale=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1];return t[0]=r*s,t[1]=i*s,t[2]=u*a,t[3]=o*a,t},n.fromRotation=function(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=-e,t[3]=r,t},n.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},n.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},n.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},n.LDU=function(t,n,e,r){return t[2]=r[2]/r[0],e[0]=r[0],e[1]=r[1],e[3]=r[3]-t[2]*e[1],[t,n,e]},n.add=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t},n.subtract=u,n.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},n.equals=function(t,n){var e=t[0],i=t[1],u=t[2],o=t[3],s=n[0],a=n[1],c=n[2],f=n[3];return Math.abs(e-s)<=r.EPSILON*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(u-c)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))},n.multiplyScalar=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t},n.multiplyScalarAndAdd=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t};var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));function i(t,n,e){var r=n[0],i=n[1],u=n[2],o=n[3],s=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*s+u*a,t[1]=i*s+o*a,t[2]=r*c+u*f,t[3]=i*c+o*f,t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}n.mul=i,n.sub=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.vec4=n.vec3=n.vec2=n.quat2=n.quat=n.mat4=n.mat3=n.mat2d=n.mat2=n.glMatrix=void 0;var r=d(e(0)),i=d(e(9)),u=d(e(8)),o=d(e(5)),s=d(e(4)),a=d(e(3)),c=d(e(7)),f=d(e(6)),h=d(e(2)),l=d(e(1));function d(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}n.glMatrix=r,n.mat2=i,n.mat2d=u,n.mat3=o,n.mat4=s,n.quat=a,n.quat2=c,n.vec2=f,n.vec3=h,n.vec4=l}])},function(t,n,e){"use strict";var r=function(){var t,n;try{t=Object.defineProperty,n=Object.defineProperties,t({},"$",{value:0})}catch(e){"__defineGetter__"in Object&&(t=function(t,n,e){return"value"in e&&(t[n]=e.value),"get"in e&&t.__defineGetter__(n,e.get),"set"in e&&t.__defineSetter__(n,e.set),t},n=function(n,e){for(var r in e)e.hasOwnProperty(r)&&t(n,r,e[r]);return n})}var e=function(t){for(var e=1,r=arguments.length;e<r;e++){var i=arguments[e],u=void 0;for(var o in i){var s=i[o];!s||"object"!=typeof s||void 0===s.value&&"function"!=typeof s.get&&"function"!=typeof s.set?t[o]=s:(u=u||{})[o]=s}u&&n(t,u)}return t},r=function(){if(Object.__proto__)return function(t){return{__proto__:t}};var t=function(){};return function(n){return t.prototype=n,new t}}(),i={Extends:function(t){var n=this.prototype,i=r(t.prototype);e(this,t),e(i,n),i.constructor=this,this.prototype=i,this.superclass=t.prototype},Mixes:function(t){t instanceof Array||(t=[t]);for(var n,r=this.prototype;n=t.shift();)e(r,n.prototype||n)},Statics:function(t){e(this,t)}},u=function(t){var n,r,u={};for(r in t)n=t[r],i.hasOwnProperty(r)?i[r].call(this,n):u[r]=n;e(this.prototype,u)};return{create:function(t){var n=(t=t||{}).hasOwnProperty("constructor")?t.constructor:function(){};return u.call(n,t),n},mix:e}}();n.a=r},function(t,n,e){"use strict";var r={};e.r(r),e.d(r,"ACTIVE_ATTRIBUTES",(function(){return s})),e.d(r,"ACTIVE_ATTRIBUTE_MAX_LENGTH",(function(){return a})),e.d(r,"ACTIVE_TEXTURE",(function(){return c})),e.d(r,"ACTIVE_UNIFORMS",(function(){return f})),e.d(r,"ACTIVE_UNIFORM_MAX_LENGTH",(function(){return h})),e.d(r,"ALIASED_LINE_WIDTH_RANGE",(function(){return l})),e.d(r,"ALIASED_POINT_SIZE_RANGE",(function(){return d})),e.d(r,"ALPHA",(function(){return E})),e.d(r,"ALPHA_BITS",(function(){return m})),e.d(r,"ALWAYS",(function(){return _})),e.d(r,"ARRAY_BUFFER",(function(){return R})),e.d(r,"ARRAY_BUFFER_BINDING",(function(){return M})),e.d(r,"ATTACHED_SHADERS",(function(){return A})),e.d(r,"BACK",(function(){return T})),e.d(r,"BLEND",(function(){return v})),e.d(r,"BLEND_COLOR",(function(){return p})),e.d(r,"BLEND_DST_ALPHA",(function(){return N})),e.d(r,"BLEND_DST_RGB",(function(){return I})),e.d(r,"BLEND_EQUATION",(function(){return S})),e.d(r,"BLEND_EQUATION_ALPHA",(function(){return O})),e.d(r,"BLEND_EQUATION_RGB",(function(){return L})),e.d(r,"BLEND_SRC_ALPHA",(function(){return P})),e.d(r,"BLEND_SRC_RGB",(function(){return F})),e.d(r,"BLUE_BITS",(function(){return g})),e.d(r,"BOOL",(function(){return C})),e.d(r,"BOOL_VEC2",(function(){return D})),e.d(r,"BOOL_VEC3",(function(){return y})),e.d(r,"BOOL_VEC4",(function(){return U})),e.d(r,"BROWSER_DEFAULT_WEBGL",(function(){return B})),e.d(r,"BUFFER_SIZE",(function(){return b})),e.d(r,"BUFFER_USAGE",(function(){return G})),e.d(r,"BYTE",(function(){return X})),e.d(r,"CCW",(function(){return q})),e.d(r,"CLAMP_TO_EDGE",(function(){return x})),e.d(r,"COLOR_ATTACHMENT0",(function(){return Y})),e.d(r,"COLOR_BUFFER_BIT",(function(){return w})),e.d(r,"COLOR_CLEAR_VALUE",(function(){return H})),e.d(r,"COLOR_WRITEMASK",(function(){return V})),e.d(r,"COMPILE_STATUS",(function(){return W})),e.d(r,"COMPRESSED_TEXTURE_FORMATS",(function(){return Z})),e.d(r,"CONSTANT_ALPHA",(function(){return j})),e.d(r,"CONSTANT_COLOR",(function(){return K})),e.d(r,"CONTEXT_LOST_WEBGL",(function(){return z})),e.d(r,"CULL_FACE",(function(){return Q})),e.d(r,"CULL_FACE_MODE",(function(){return k})),e.d(r,"CURRENT_PROGRAM",(function(){return J})),e.d(r,"CURRENT_VERTEX_ATTRIB",(function(){return $})),e.d(r,"CW",(function(){return tt})),e.d(r,"DECR",(function(){return nt})),e.d(r,"DECR_WRAP",(function(){return et})),e.d(r,"DELETE_STATUS",(function(){return rt})),e.d(r,"DEPTH_ATTACHMENT",(function(){return it})),e.d(r,"DEPTH_BITS",(function(){return ut})),e.d(r,"DEPTH_BUFFER_BIT",(function(){return ot})),e.d(r,"DEPTH_CLEAR_VALUE",(function(){return st})),e.d(r,"DEPTH_COMPONENT",(function(){return at})),e.d(r,"DEPTH_COMPONENT16",(function(){return ct})),e.d(r,"DEPTH_FUNC",(function(){return ft})),e.d(r,"DEPTH_RANGE",(function(){return ht})),e.d(r,"DEPTH_STENCIL",(function(){return lt})),e.d(r,"DEPTH_STENCIL_ATTACHMENT",(function(){return dt})),e.d(r,"DEPTH_TEST",(function(){return Et})),e.d(r,"DEPTH_WRITEMASK",(function(){return mt})),e.d(r,"DITHER",(function(){return _t})),e.d(r,"DONT_CARE",(function(){return Rt})),e.d(r,"DST_ALPHA",(function(){return Mt})),e.d(r,"DST_COLOR",(function(){return At})),e.d(r,"DYNAMIC_DRAW",(function(){return Tt})),e.d(r,"ELEMENT_ARRAY_BUFFER",(function(){return vt})),e.d(r,"ELEMENT_ARRAY_BUFFER_BINDING",(function(){return pt})),e.d(r,"EQUAL",(function(){return Nt})),e.d(r,"FASTEST",(function(){return It})),e.d(r,"FLOAT",(function(){return St})),e.d(r,"FLOAT_MAT2",(function(){return Ot})),e.d(r,"FLOAT_MAT3",(function(){return Lt})),e.d(r,"FLOAT_MAT4",(function(){return Pt})),e.d(r,"FLOAT_VEC2",(function(){return Ft})),e.d(r,"FLOAT_VEC3",(function(){return gt})),e.d(r,"FLOAT_VEC4",(function(){return Ct})),e.d(r,"FRAGMENT_SHADER",(function(){return Dt})),e.d(r,"FRAMEBUFFER",(function(){return yt})),e.d(r,"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",(function(){return Ut})),e.d(r,"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",(function(){return Bt})),e.d(r,"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",(function(){return bt})),e.d(r,"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",(function(){return Gt})),e.d(r,"FRAMEBUFFER_BINDING",(function(){return Xt})),e.d(r,"FRAMEBUFFER_COMPLETE",(function(){return qt})),e.d(r,"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",(function(){return xt})),e.d(r,"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",(function(){return Yt})),e.d(r,"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",(function(){return wt})),e.d(r,"FRAMEBUFFER_UNSUPPORTED",(function(){return Ht})),e.d(r,"FRONT",(function(){return Vt})),e.d(r,"FRONT_AND_BACK",(function(){return Wt})),e.d(r,"FRONT_FACE",(function(){return Zt})),e.d(r,"FUNC_ADD",(function(){return jt})),e.d(r,"FUNC_REVERSE_SUBTRACT",(function(){return Kt})),e.d(r,"FUNC_SUBTRACT",(function(){return zt})),e.d(r,"GENERATE_MIPMAP_HINT",(function(){return Qt})),e.d(r,"GEQUAL",(function(){return kt})),e.d(r,"GREATER",(function(){return Jt})),e.d(r,"GREEN_BITS",(function(){return $t})),e.d(r,"HIGH_FLOAT",(function(){return tn})),e.d(r,"HIGH_INT",(function(){return nn})),e.d(r,"INCR",(function(){return en})),e.d(r,"INCR_WRAP",(function(){return rn})),e.d(r,"INFO_LOG_LENGTH",(function(){return un})),e.d(r,"INT",(function(){return on})),e.d(r,"INT_VEC2",(function(){return sn})),e.d(r,"INT_VEC3",(function(){return an})),e.d(r,"INT_VEC4",(function(){return cn})),e.d(r,"INVALID_ENUM",(function(){return fn})),e.d(r,"INVALID_FRAMEBUFFER_OPERATION",(function(){return hn})),e.d(r,"INVALID_OPERATION",(function(){return ln})),e.d(r,"INVALID_VALUE",(function(){return dn})),e.d(r,"INVERT",(function(){return En})),e.d(r,"KEEP",(function(){return mn})),e.d(r,"LEQUAL",(function(){return _n})),e.d(r,"LESS",(function(){return Rn})),e.d(r,"LINEAR",(function(){return Mn})),e.d(r,"LINEAR_MIPMAP_LINEAR",(function(){return An})),e.d(r,"LINEAR_MIPMAP_NEAREST",(function(){return Tn})),e.d(r,"LINES",(function(){return vn})),e.d(r,"LINE_LOOP",(function(){return pn})),e.d(r,"LINE_STRIP",(function(){return Nn})),e.d(r,"LINE_WIDTH",(function(){return In})),e.d(r,"LINK_STATUS",(function(){return Sn})),e.d(r,"LOW_FLOAT",(function(){return On})),e.d(r,"LOW_INT",(function(){return Ln})),e.d(r,"LUMINANCE",(function(){return Pn})),e.d(r,"LUMINANCE_ALPHA",(function(){return Fn})),e.d(r,"MAX_COMBINED_TEXTURE_IMAGE_UNITS",(function(){return gn})),e.d(r,"MAX_CUBE_MAP_TEXTURE_SIZE",(function(){return Cn})),e.d(r,"MAX_FRAGMENT_UNIFORM_VECTORS",(function(){return Dn})),e.d(r,"MAX_RENDERBUFFER_SIZE",(function(){return yn})),e.d(r,"MAX_TEXTURE_IMAGE_UNITS",(function(){return Un})),e.d(r,"MAX_TEXTURE_SIZE",(function(){return Bn})),e.d(r,"MAX_VARYING_VECTORS",(function(){return bn})),e.d(r,"MAX_VERTEX_ATTRIBS",(function(){return Gn})),e.d(r,"MAX_VERTEX_TEXTURE_IMAGE_UNITS",(function(){return Xn})),e.d(r,"MAX_VERTEX_UNIFORM_VECTORS",(function(){return qn})),e.d(r,"MAX_VIEWPORT_DIMS",(function(){return xn})),e.d(r,"MEDIUM_FLOAT",(function(){return Yn})),e.d(r,"MEDIUM_INT",(function(){return wn})),e.d(r,"MIRRORED_REPEAT",(function(){return Hn})),e.d(r,"NEAREST",(function(){return Vn})),e.d(r,"NEAREST_MIPMAP_LINEAR",(function(){return Wn})),e.d(r,"NEAREST_MIPMAP_NEAREST",(function(){return Zn})),e.d(r,"NEVER",(function(){return jn})),e.d(r,"NICEST",(function(){return Kn})),e.d(r,"NONE",(function(){return zn})),e.d(r,"NOTEQUAL",(function(){return Qn})),e.d(r,"NO_ERROR",(function(){return kn})),e.d(r,"NUM_COMPRESSED_TEXTURE_FORMATS",(function(){return Jn})),e.d(r,"ONE",(function(){return $n})),e.d(r,"ONE_MINUS_CONSTANT_ALPHA",(function(){return te})),e.d(r,"ONE_MINUS_CONSTANT_COLOR",(function(){return ne})),e.d(r,"ONE_MINUS_DST_ALPHA",(function(){return ee})),e.d(r,"ONE_MINUS_DST_COLOR",(function(){return re})),e.d(r,"ONE_MINUS_SRC_ALPHA",(function(){return ie})),e.d(r,"ONE_MINUS_SRC_COLOR",(function(){return ue})),e.d(r,"OUT_OF_MEMORY",(function(){return oe})),e.d(r,"PACK_ALIGNMENT",(function(){return se})),e.d(r,"POINTS",(function(){return ae})),e.d(r,"POLYGON_OFFSET_FACTOR",(function(){return ce})),e.d(r,"POLYGON_OFFSET_FILL",(function(){return fe})),e.d(r,"POLYGON_OFFSET_UNITS",(function(){return he})),e.d(r,"RED_BITS",(function(){return le})),e.d(r,"RENDERBUFFER",(function(){return de})),e.d(r,"RENDERBUFFER_ALPHA_SIZE",(function(){return Ee})),e.d(r,"RENDERBUFFER_BINDING",(function(){return me})),e.d(r,"RENDERBUFFER_BLUE_SIZE",(function(){return _e})),e.d(r,"RENDERBUFFER_DEPTH_SIZE",(function(){return Re})),e.d(r,"RENDERBUFFER_GREEN_SIZE",(function(){return Me})),e.d(r,"RENDERBUFFER_HEIGHT",(function(){return Ae})),e.d(r,"RENDERBUFFER_INTERNAL_FORMAT",(function(){return Te})),e.d(r,"RENDERBUFFER_RED_SIZE",(function(){return ve})),e.d(r,"RENDERBUFFER_STENCIL_SIZE",(function(){return pe})),e.d(r,"RENDERBUFFER_WIDTH",(function(){return Ne})),e.d(r,"RENDERER",(function(){return Ie})),e.d(r,"REPEAT",(function(){return Se})),e.d(r,"REPLACE",(function(){return Oe})),e.d(r,"RGB",(function(){return Le})),e.d(r,"RGB5_A1",(function(){return Pe})),e.d(r,"RGB565",(function(){return Fe})),e.d(r,"RGBA",(function(){return ge})),e.d(r,"RGBA4",(function(){return Ce})),e.d(r,"SAMPLER_2D",(function(){return De})),e.d(r,"SAMPLER_CUBE",(function(){return ye})),e.d(r,"SAMPLES",(function(){return Ue})),e.d(r,"SAMPLE_ALPHA_TO_COVERAGE",(function(){return Be})),e.d(r,"SAMPLE_BUFFERS",(function(){return be})),e.d(r,"SAMPLE_COVERAGE",(function(){return Ge})),e.d(r,"SAMPLE_COVERAGE_INVERT",(function(){return Xe})),e.d(r,"SAMPLE_COVERAGE_VALUE",(function(){return qe})),e.d(r,"SCISSOR_BOX",(function(){return xe})),e.d(r,"SCISSOR_TEST",(function(){return Ye})),e.d(r,"SHADER_COMPILER",(function(){return we})),e.d(r,"SHADER_SOURCE_LENGTH",(function(){return He})),e.d(r,"SHADER_TYPE",(function(){return Ve})),e.d(r,"SHADING_LANGUAGE_VERSION",(function(){return We})),e.d(r,"SHORT",(function(){return Ze})),e.d(r,"SRC_ALPHA",(function(){return je})),e.d(r,"SRC_ALPHA_SATURATE",(function(){return Ke})),e.d(r,"SRC_COLOR",(function(){return ze})),e.d(r,"STATIC_DRAW",(function(){return Qe})),e.d(r,"STENCIL_ATTACHMENT",(function(){return ke})),e.d(r,"STENCIL_BACK_FAIL",(function(){return Je})),e.d(r,"STENCIL_BACK_FUNC",(function(){return $e})),e.d(r,"STENCIL_BACK_PASS_DEPTH_FAIL",(function(){return tr})),e.d(r,"STENCIL_BACK_PASS_DEPTH_PASS",(function(){return nr})),e.d(r,"STENCIL_BACK_REF",(function(){return er})),e.d(r,"STENCIL_BACK_VALUE_MASK",(function(){return rr})),e.d(r,"STENCIL_BACK_WRITEMASK",(function(){return ir})),e.d(r,"STENCIL_BITS",(function(){return ur})),e.d(r,"STENCIL_BUFFER_BIT",(function(){return or})),e.d(r,"STENCIL_CLEAR_VALUE",(function(){return sr})),e.d(r,"STENCIL_FAIL",(function(){return ar})),e.d(r,"STENCIL_FUNC",(function(){return cr})),e.d(r,"STENCIL_INDEX",(function(){return fr})),e.d(r,"STENCIL_INDEX8",(function(){return hr})),e.d(r,"STENCIL_PASS_DEPTH_FAIL",(function(){return lr})),e.d(r,"STENCIL_PASS_DEPTH_PASS",(function(){return dr})),e.d(r,"STENCIL_REF",(function(){return Er})),e.d(r,"STENCIL_TEST",(function(){return mr})),e.d(r,"STENCIL_VALUE_MASK",(function(){return _r})),e.d(r,"STENCIL_WRITEMASK",(function(){return Rr})),e.d(r,"STREAM_DRAW",(function(){return Mr})),e.d(r,"SUBPIXEL_BITS",(function(){return Ar})),e.d(r,"TEXTURE",(function(){return Tr})),e.d(r,"TEXTURE0",(function(){return vr})),e.d(r,"TEXTURE1",(function(){return pr})),e.d(r,"TEXTURE2",(function(){return Nr})),e.d(r,"TEXTURE3",(function(){return Ir})),e.d(r,"TEXTURE4",(function(){return Sr})),e.d(r,"TEXTURE5",(function(){return Or})),e.d(r,"TEXTURE6",(function(){return Lr})),e.d(r,"TEXTURE7",(function(){return Pr})),e.d(r,"TEXTURE8",(function(){return Fr})),e.d(r,"TEXTURE9",(function(){return gr})),e.d(r,"TEXTURE10",(function(){return Cr})),e.d(r,"TEXTURE11",(function(){return Dr})),e.d(r,"TEXTURE12",(function(){return yr})),e.d(r,"TEXTURE13",(function(){return Ur})),e.d(r,"TEXTURE14",(function(){return Br})),e.d(r,"TEXTURE15",(function(){return br})),e.d(r,"TEXTURE16",(function(){return Gr})),e.d(r,"TEXTURE17",(function(){return Xr})),e.d(r,"TEXTURE18",(function(){return qr})),e.d(r,"TEXTURE19",(function(){return xr})),e.d(r,"TEXTURE20",(function(){return Yr})),e.d(r,"TEXTURE21",(function(){return wr})),e.d(r,"TEXTURE22",(function(){return Hr})),e.d(r,"TEXTURE23",(function(){return Vr})),e.d(r,"TEXTURE24",(function(){return Wr})),e.d(r,"TEXTURE25",(function(){return Zr})),e.d(r,"TEXTURE26",(function(){return jr})),e.d(r,"TEXTURE27",(function(){return Kr})),e.d(r,"TEXTURE28",(function(){return zr})),e.d(r,"TEXTURE29",(function(){return Qr})),e.d(r,"TEXTURE30",(function(){return kr})),e.d(r,"TEXTURE31",(function(){return Jr})),e.d(r,"TEXTURE_2D",(function(){return $r})),e.d(r,"TEXTURE_BINDING_2D",(function(){return ti})),e.d(r,"TEXTURE_BINDING_CUBE_MAP",(function(){return ni})),e.d(r,"TEXTURE_CUBE_MAP",(function(){return ei})),e.d(r,"TEXTURE_CUBE_MAP_NEGATIVE_X",(function(){return ri})),e.d(r,"TEXTURE_CUBE_MAP_NEGATIVE_Y",(function(){return ii})),e.d(r,"TEXTURE_CUBE_MAP_NEGATIVE_Z",(function(){return ui})),e.d(r,"TEXTURE_CUBE_MAP_POSITIVE_X",(function(){return oi})),e.d(r,"TEXTURE_CUBE_MAP_POSITIVE_Y",(function(){return si})),e.d(r,"TEXTURE_CUBE_MAP_POSITIVE_Z",(function(){return ai})),e.d(r,"TEXTURE_MAG_FILTER",(function(){return ci})),e.d(r,"TEXTURE_MIN_FILTER",(function(){return fi})),e.d(r,"TEXTURE_WRAP_S",(function(){return hi})),e.d(r,"TEXTURE_WRAP_T",(function(){return li})),e.d(r,"TRIANGLES",(function(){return di})),e.d(r,"TRIANGLE_FAN",(function(){return Ei})),e.d(r,"TRIANGLE_STRIP",(function(){return mi})),e.d(r,"UNPACK_ALIGNMENT",(function(){return _i})),e.d(r,"UNPACK_COLORSPACE_CONVERSION_WEBGL",(function(){return Ri})),e.d(r,"UNPACK_FLIP_Y_WEBGL",(function(){return Mi})),e.d(r,"UNPACK_PREMULTIPLY_ALPHA_WEBGL",(function(){return Ai})),e.d(r,"UNSIGNED_BYTE",(function(){return Ti})),e.d(r,"UNSIGNED_INT",(function(){return vi})),e.d(r,"UNSIGNED_SHORT",(function(){return pi})),e.d(r,"UNSIGNED_SHORT_4_4_4_4",(function(){return Ni})),e.d(r,"UNSIGNED_SHORT_5_5_5_1",(function(){return Ii})),e.d(r,"UNSIGNED_SHORT_5_6_5",(function(){return Si})),e.d(r,"VALIDATE_STATUS",(function(){return Oi})),e.d(r,"VENDOR",(function(){return Li})),e.d(r,"VERSION",(function(){return Pi})),e.d(r,"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",(function(){return Fi})),e.d(r,"VERTEX_ATTRIB_ARRAY_ENABLED",(function(){return gi})),e.d(r,"VERTEX_ATTRIB_ARRAY_NORMALIZED",(function(){return Ci})),e.d(r,"VERTEX_ATTRIB_ARRAY_POINTER",(function(){return Di})),e.d(r,"VERTEX_ATTRIB_ARRAY_SIZE",(function(){return yi})),e.d(r,"VERTEX_ATTRIB_ARRAY_STRIDE",(function(){return Ui})),e.d(r,"VERTEX_ATTRIB_ARRAY_TYPE",(function(){return Bi})),e.d(r,"VERTEX_SHADER",(function(){return bi})),e.d(r,"VIEWPORT",(function(){return Gi})),e.d(r,"ZERO",(function(){return Xi}));var i={};e.r(i),e.d(i,"READ_BUFFER",(function(){return qi})),e.d(i,"UNPACK_ROW_LENGTH",(function(){return xi})),e.d(i,"UNPACK_SKIP_ROWS",(function(){return Yi})),e.d(i,"UNPACK_SKIP_PIXELS",(function(){return wi})),e.d(i,"PACK_ROW_LENGTH",(function(){return Hi})),e.d(i,"PACK_SKIP_ROWS",(function(){return Vi})),e.d(i,"PACK_SKIP_PIXELS",(function(){return Wi})),e.d(i,"TEXTURE_BINDING_3D",(function(){return Zi})),e.d(i,"UNPACK_SKIP_IMAGES",(function(){return ji})),e.d(i,"UNPACK_IMAGE_HEIGHT",(function(){return Ki})),e.d(i,"MAX_3D_TEXTURE_SIZE",(function(){return zi})),e.d(i,"MAX_ELEMENTS_VERTICES",(function(){return Qi})),e.d(i,"MAX_ELEMENTS_INDICES",(function(){return ki})),e.d(i,"MAX_TEXTURE_LOD_BIAS",(function(){return Ji})),e.d(i,"MAX_FRAGMENT_UNIFORM_COMPONENTS",(function(){return $i})),e.d(i,"MAX_VERTEX_UNIFORM_COMPONENTS",(function(){return tu})),e.d(i,"MAX_ARRAY_TEXTURE_LAYERS",(function(){return nu})),e.d(i,"MIN_PROGRAM_TEXEL_OFFSET",(function(){return eu})),e.d(i,"MAX_PROGRAM_TEXEL_OFFSET",(function(){return ru})),e.d(i,"MAX_VARYING_COMPONENTS",(function(){return iu})),e.d(i,"FRAGMENT_SHADER_DERIVATIVE_HINT",(function(){return uu})),e.d(i,"RASTERIZER_DISCARD",(function(){return ou})),e.d(i,"VERTEX_ARRAY_BINDING",(function(){return su})),e.d(i,"MAX_VERTEX_OUTPUT_COMPONENTS",(function(){return au})),e.d(i,"MAX_FRAGMENT_INPUT_COMPONENTS",(function(){return cu})),e.d(i,"MAX_SERVER_WAIT_TIMEOUT",(function(){return fu})),e.d(i,"MAX_ELEMENT_INDEX",(function(){return hu})),e.d(i,"RED",(function(){return lu})),e.d(i,"RGB8",(function(){return du})),e.d(i,"RGBA8",(function(){return Eu})),e.d(i,"RGB10_A2",(function(){return mu})),e.d(i,"TEXTURE_3D",(function(){return _u})),e.d(i,"TEXTURE_WRAP_R",(function(){return Ru})),e.d(i,"TEXTURE_MIN_LOD",(function(){return Mu})),e.d(i,"TEXTURE_MAX_LOD",(function(){return Au})),e.d(i,"TEXTURE_BASE_LEVEL",(function(){return Tu})),e.d(i,"TEXTURE_MAX_LEVEL",(function(){return vu})),e.d(i,"TEXTURE_COMPARE_MODE",(function(){return pu})),e.d(i,"TEXTURE_COMPARE_FUNC",(function(){return Nu})),e.d(i,"SRGB",(function(){return Iu})),e.d(i,"SRGB8",(function(){return Su})),e.d(i,"SRGB8_ALPHA8",(function(){return Ou})),e.d(i,"COMPARE_REF_TO_TEXTURE",(function(){return Lu})),e.d(i,"RGBA32F",(function(){return Pu})),e.d(i,"RGB32F",(function(){return Fu})),e.d(i,"RGBA16F",(function(){return gu})),e.d(i,"RGB16F",(function(){return Cu})),e.d(i,"TEXTURE_2D_ARRAY",(function(){return Du})),e.d(i,"TEXTURE_BINDING_2D_ARRAY",(function(){return yu})),e.d(i,"R11F_G11F_B10F",(function(){return Uu})),e.d(i,"RGB9_E5",(function(){return Bu})),e.d(i,"RGBA32UI",(function(){return bu})),e.d(i,"RGB32UI",(function(){return Gu})),e.d(i,"RGBA16UI",(function(){return Xu})),e.d(i,"RGB16UI",(function(){return qu})),e.d(i,"RGBA8UI",(function(){return xu})),e.d(i,"RGB8UI",(function(){return Yu})),e.d(i,"RGBA32I",(function(){return wu})),e.d(i,"RGB32I",(function(){return Hu})),e.d(i,"RGBA16I",(function(){return Vu})),e.d(i,"RGB16I",(function(){return Wu})),e.d(i,"RGBA8I",(function(){return Zu})),e.d(i,"RGB8I",(function(){return ju})),e.d(i,"RED_INTEGER",(function(){return Ku})),e.d(i,"RGB_INTEGER",(function(){return zu})),e.d(i,"RGBA_INTEGER",(function(){return Qu})),e.d(i,"R8",(function(){return ku})),e.d(i,"RG8",(function(){return Ju})),e.d(i,"R16F",(function(){return $u})),e.d(i,"R32F",(function(){return to})),e.d(i,"RG16F",(function(){return no})),e.d(i,"RG32F",(function(){return eo})),e.d(i,"R8I",(function(){return ro})),e.d(i,"R8UI",(function(){return io})),e.d(i,"R16I",(function(){return uo})),e.d(i,"R16UI",(function(){return oo})),e.d(i,"R32I",(function(){return so})),e.d(i,"R32UI",(function(){return ao})),e.d(i,"RG8I",(function(){return co})),e.d(i,"RG8UI",(function(){return fo})),e.d(i,"RG16I",(function(){return ho})),e.d(i,"RG16UI",(function(){return lo})),e.d(i,"RG32I",(function(){return Eo})),e.d(i,"RG32UI",(function(){return mo})),e.d(i,"R8_SNORM",(function(){return _o})),e.d(i,"RG8_SNORM",(function(){return Ro})),e.d(i,"RGB8_SNORM",(function(){return Mo})),e.d(i,"RGBA8_SNORM",(function(){return Ao})),e.d(i,"RGB10_A2UI",(function(){return To})),e.d(i,"TEXTURE_IMMUTABLE_FORMAT",(function(){return vo})),e.d(i,"TEXTURE_IMMUTABLE_LEVELS",(function(){return po})),e.d(i,"UNSIGNED_INT_2_10_10_10_REV",(function(){return No})),e.d(i,"UNSIGNED_INT_10F_11F_11F_REV",(function(){return Io})),e.d(i,"UNSIGNED_INT_5_9_9_9_REV",(function(){return So})),e.d(i,"FLOAT_32_UNSIGNED_INT_24_8_REV",(function(){return Oo})),e.d(i,"UNSIGNED_INT_24_8",(function(){return Lo})),e.d(i,"HALF_FLOAT",(function(){return Po})),e.d(i,"RG",(function(){return Fo})),e.d(i,"RG_INTEGER",(function(){return go})),e.d(i,"INT_2_10_10_10_REV",(function(){return Co})),e.d(i,"URRENT_QUERY",(function(){return Do})),e.d(i,"QUERY_RESULT",(function(){return yo})),e.d(i,"QUERY_RESULT_AVAILABLE",(function(){return Uo})),e.d(i,"ANY_SAMPLES_PASSED",(function(){return Bo})),e.d(i,"ANY_SAMPLES_PASSED_CONSERVATIVE",(function(){return bo})),e.d(i,"MAX_DRAW_BUFFERS",(function(){return Go})),e.d(i,"DRAW_BUFFER0",(function(){return Xo})),e.d(i,"DRAW_BUFFER1",(function(){return qo})),e.d(i,"DRAW_BUFFER2",(function(){return xo})),e.d(i,"DRAW_BUFFER3",(function(){return Yo})),e.d(i,"DRAW_BUFFER4",(function(){return wo})),e.d(i,"DRAW_BUFFER5",(function(){return Ho})),e.d(i,"DRAW_BUFFER6",(function(){return Vo})),e.d(i,"DRAW_BUFFER7",(function(){return Wo})),e.d(i,"DRAW_BUFFER8",(function(){return Zo})),e.d(i,"DRAW_BUFFER9",(function(){return jo})),e.d(i,"DRAW_BUFFER10",(function(){return Ko})),e.d(i,"DRAW_BUFFER11",(function(){return zo})),e.d(i,"DRAW_BUFFER12",(function(){return Qo})),e.d(i,"DRAW_BUFFER13",(function(){return ko})),e.d(i,"DRAW_BUFFER14",(function(){return Jo})),e.d(i,"DRAW_BUFFER15",(function(){return $o})),e.d(i,"MAX_COLOR_ATTACHMENTS",(function(){return ts})),e.d(i,"COLOR_ATTACHMENT1",(function(){return ns})),e.d(i,"COLOR_ATTACHMENT2",(function(){return es})),e.d(i,"COLOR_ATTACHMENT3",(function(){return rs})),e.d(i,"COLOR_ATTACHMENT4",(function(){return is})),e.d(i,"COLOR_ATTACHMENT5",(function(){return us})),e.d(i,"COLOR_ATTACHMENT6",(function(){return os})),e.d(i,"COLOR_ATTACHMENT7",(function(){return ss})),e.d(i,"COLOR_ATTACHMENT8",(function(){return as})),e.d(i,"COLOR_ATTACHMENT9",(function(){return cs})),e.d(i,"COLOR_ATTACHMENT10",(function(){return fs})),e.d(i,"COLOR_ATTACHMENT11",(function(){return hs})),e.d(i,"COLOR_ATTACHMENT12",(function(){return ls})),e.d(i,"COLOR_ATTACHMENT13",(function(){return ds})),e.d(i,"COLOR_ATTACHMENT14",(function(){return Es})),e.d(i,"COLOR_ATTACHMENT15",(function(){return ms})),e.d(i,"SAMPLER_3D",(function(){return _s})),e.d(i,"SAMPLER_2D_SHADOW",(function(){return Rs})),e.d(i,"SAMPLER_2D_ARRAY",(function(){return Ms})),e.d(i,"SAMPLER_2D_ARRAY_SHADOW",(function(){return As})),e.d(i,"SAMPLER_CUBE_SHADOW",(function(){return Ts})),e.d(i,"INT_SAMPLER_2D",(function(){return vs})),e.d(i,"INT_SAMPLER_3D",(function(){return ps})),e.d(i,"INT_SAMPLER_CUBE",(function(){return Ns})),e.d(i,"INT_SAMPLER_2D_ARRAY",(function(){return Is})),e.d(i,"UNSIGNED_INT_SAMPLER_2D",(function(){return Ss})),e.d(i,"UNSIGNED_INT_SAMPLER_3D",(function(){return Os})),e.d(i,"UNSIGNED_INT_SAMPLER_CUBE",(function(){return Ls})),e.d(i,"UNSIGNED_INT_SAMPLER_2D_ARRAY",(function(){return Ps})),e.d(i,"MAX_SAMPLES",(function(){return Fs})),e.d(i,"SAMPLER_BINDING",(function(){return gs})),e.d(i,"PIXEL_PACK_BUFFER",(function(){return Cs})),e.d(i,"PIXEL_UNPACK_BUFFER",(function(){return Ds})),e.d(i,"PIXEL_PACK_BUFFER_BINDING",(function(){return ys})),e.d(i,"PIXEL_UNPACK_BUFFER_BINDING",(function(){return Us})),e.d(i,"COPY_READ_BUFFER",(function(){return Bs})),e.d(i,"COPY_WRITE_BUFFER",(function(){return bs})),e.d(i,"COPY_READ_BUFFER_BINDING",(function(){return Gs})),e.d(i,"COPY_WRITE_BUFFER_BINDING",(function(){return Xs})),e.d(i,"FLOAT_MAT2x3",(function(){return qs})),e.d(i,"FLOAT_MAT2x4",(function(){return xs})),e.d(i,"FLOAT_MAT3x2",(function(){return Ys})),e.d(i,"FLOAT_MAT3x4",(function(){return ws})),e.d(i,"FLOAT_MAT4x2",(function(){return Hs})),e.d(i,"FLOAT_MAT4x3",(function(){return Vs})),e.d(i,"UNSIGNED_INT_VEC2",(function(){return Ws})),e.d(i,"UNSIGNED_INT_VEC3",(function(){return Zs})),e.d(i,"UNSIGNED_INT_VEC4",(function(){return js})),e.d(i,"UNSIGNED_NORMALIZED",(function(){return Ks})),e.d(i,"SIGNED_NORMALIZED",(function(){return zs})),e.d(i,"VERTEX_ATTRIB_ARRAY_INTEGER",(function(){return Qs})),e.d(i,"VERTEX_ATTRIB_ARRAY_DIVISOR",(function(){return ks})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_MODE",(function(){return Js})),e.d(i,"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",(function(){return $s})),e.d(i,"TRANSFORM_FEEDBACK_VARYINGS",(function(){return ta})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_START",(function(){return na})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_SIZE",(function(){return ea})),e.d(i,"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",(function(){return ra})),e.d(i,"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",(function(){return ia})),e.d(i,"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",(function(){return ua})),e.d(i,"INTERLEAVED_ATTRIBS",(function(){return oa})),e.d(i,"SEPARATE_ATTRIBS",(function(){return sa})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER",(function(){return aa})),e.d(i,"TRANSFORM_FEEDBACK_BUFFER_BINDING",(function(){return ca})),e.d(i,"TRANSFORM_FEEDBACK",(function(){return fa})),e.d(i,"TRANSFORM_FEEDBACK_PAUSED",(function(){return ha})),e.d(i,"TRANSFORM_FEEDBACK_ACTIVE",(function(){return la})),e.d(i,"TRANSFORM_FEEDBACK_BINDING",(function(){return da})),e.d(i,"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",(function(){return Ea})),e.d(i,"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",(function(){return ma})),e.d(i,"FRAMEBUFFER_ATTACHMENT_RED_SIZE",(function(){return _a})),e.d(i,"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",(function(){return Ra})),e.d(i,"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",(function(){return Ma})),e.d(i,"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",(function(){return Aa})),e.d(i,"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",(function(){return Ta})),e.d(i,"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",(function(){return va})),e.d(i,"FRAMEBUFFER_DEFAULT",(function(){return pa})),e.d(i,"DEPTH_STENCIL_ATTACHMENT",(function(){return Na})),e.d(i,"DEPTH_STENCIL",(function(){return Ia})),e.d(i,"DEPTH24_STENCIL8",(function(){return Sa})),e.d(i,"DRAW_FRAMEBUFFER_BINDING",(function(){return Oa})),e.d(i,"READ_FRAMEBUFFER",(function(){return La})),e.d(i,"DRAW_FRAMEBUFFER",(function(){return Pa})),e.d(i,"READ_FRAMEBUFFER_BINDING",(function(){return Fa})),e.d(i,"RENDERBUFFER_SAMPLES",(function(){return ga})),e.d(i,"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",(function(){return Ca})),e.d(i,"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",(function(){return Da})),e.d(i,"UNIFORM_BUFFER",(function(){return ya})),e.d(i,"UNIFORM_BUFFER_BINDING",(function(){return Ua})),e.d(i,"UNIFORM_BUFFER_START",(function(){return Ba})),e.d(i,"UNIFORM_BUFFER_SIZE",(function(){return ba})),e.d(i,"MAX_VERTEX_UNIFORM_BLOCKS",(function(){return Ga})),e.d(i,"MAX_FRAGMENT_UNIFORM_BLOCKS",(function(){return Xa})),e.d(i,"MAX_COMBINED_UNIFORM_BLOCKS",(function(){return qa})),e.d(i,"MAX_UNIFORM_BUFFER_BINDINGS",(function(){return xa})),e.d(i,"MAX_UNIFORM_BLOCK_SIZE",(function(){return Ya})),e.d(i,"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",(function(){return wa})),e.d(i,"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",(function(){return Ha})),e.d(i,"UNIFORM_BUFFER_OFFSET_ALIGNMENT",(function(){return Va})),e.d(i,"ACTIVE_UNIFORM_BLOCKS",(function(){return Wa})),e.d(i,"UNIFORM_TYPE",(function(){return Za})),e.d(i,"UNIFORM_SIZE",(function(){return ja})),e.d(i,"UNIFORM_BLOCK_INDEX",(function(){return Ka})),e.d(i,"UNIFORM_OFFSET",(function(){return za})),e.d(i,"UNIFORM_ARRAY_STRIDE",(function(){return Qa})),e.d(i,"UNIFORM_MATRIX_STRIDE",(function(){return ka})),e.d(i,"UNIFORM_IS_ROW_MAJOR",(function(){return Ja})),e.d(i,"UNIFORM_BLOCK_BINDING",(function(){return $a})),e.d(i,"UNIFORM_BLOCK_DATA_SIZE",(function(){return tc})),e.d(i,"UNIFORM_BLOCK_ACTIVE_UNIFORMS",(function(){return nc})),e.d(i,"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",(function(){return ec})),e.d(i,"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",(function(){return rc})),e.d(i,"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",(function(){return ic})),e.d(i,"OBJECT_TYPE",(function(){return uc})),e.d(i,"SYNC_CONDITION",(function(){return oc})),e.d(i,"SYNC_STATUS",(function(){return sc})),e.d(i,"SYNC_FLAGS",(function(){return ac})),e.d(i,"SYNC_FENCE",(function(){return cc})),e.d(i,"SYNC_GPU_COMMANDS_COMPLETE",(function(){return fc})),e.d(i,"UNSIGNALED",(function(){return hc})),e.d(i,"SIGNALED",(function(){return lc})),e.d(i,"ALREADY_SIGNALED",(function(){return dc})),e.d(i,"TIMEOUT_EXPIRED",(function(){return Ec})),e.d(i,"CONDITION_SATISFIED",(function(){return mc})),e.d(i,"WAIT_FAILED",(function(){return _c})),e.d(i,"SYNC_FLUSH_COMMANDS_BIT",(function(){return Rc})),e.d(i,"COLOR",(function(){return Mc})),e.d(i,"DEPTH",(function(){return Ac})),e.d(i,"STENCIL",(function(){return Tc})),e.d(i,"MIN",(function(){return vc})),e.d(i,"MAX",(function(){return pc})),e.d(i,"DEPTH_COMPONENT24",(function(){return Nc})),e.d(i,"STREAM_READ",(function(){return Ic})),e.d(i,"STREAM_COPY",(function(){return Sc})),e.d(i,"STATIC_READ",(function(){return Oc})),e.d(i,"STATIC_COPY",(function(){return Lc})),e.d(i,"DYNAMIC_READ",(function(){return Pc})),e.d(i,"DYNAMIC_COPY",(function(){return Fc})),e.d(i,"DEPTH_COMPONENT32F",(function(){return gc})),e.d(i,"DEPTH32F_STENCIL8",(function(){return Cc})),e.d(i,"INVALID_INDEX",(function(){return Dc})),e.d(i,"TIMEOUT_IGNO",(function(){return yc})),e.d(i,"MAX_CLIENT_WAIT_TIMEOUT_WEBGL",(function(){return Uc}));var u={};e.r(u),e.d(u,"VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",(function(){return Bc})),e.d(u,"UNMASKED_VENDOR_WEBGL",(function(){return bc})),e.d(u,"UNMASKED_RENDERER_WEBGL",(function(){return Gc})),e.d(u,"MAX_TEXTURE_MAX_ANISOTROPY_EXT",(function(){return Xc})),e.d(u,"TEXTURE_MAX_ANISOTROPY_EXT",(function(){return qc})),e.d(u,"COMPRESSED_RGB_S3TC_DXT1_EXT",(function(){return xc})),e.d(u,"COMPRESSED_RGBA_S3TC_DXT1_EXT",(function(){return Yc})),e.d(u,"COMPRESSED_RGBA_S3TC_DXT3_EXT",(function(){return wc})),e.d(u,"COMPRESSED_RGBA_S3TC_DXT5_EXT",(function(){return Hc})),e.d(u,"COMPRESSED_R11_EAC",(function(){return Vc})),e.d(u,"COMPRESSED_SIGNED_R11_EAC",(function(){return Wc})),e.d(u,"COMPRESSED_RG11_EAC",(function(){return Zc})),e.d(u,"COMPRESSED_SIGNED_RG11_EAC",(function(){return jc})),e.d(u,"COMPRESSED_RGB8_ETC2",(function(){return Kc})),e.d(u,"COMPRESSED_RGBA8_ETC2_EAC",(function(){return zc})),e.d(u,"COMPRESSED_SRGB8_ETC2",(function(){return Qc})),e.d(u,"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",(function(){return kc})),e.d(u,"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",(function(){return Jc})),e.d(u,"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",(function(){return $c})),e.d(u,"COMPRESSED_RGB_PVRTC_4BPPV1_IMG",(function(){return tf})),e.d(u,"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",(function(){return nf})),e.d(u,"COMPRESSED_RGB_PVRTC_2BPPV1_IMG",(function(){return ef})),e.d(u,"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",(function(){return rf})),e.d(u,"COMPRESSED_RGB_ETC1_WEBGL",(function(){return uf})),e.d(u,"_WEBGL",(function(){return of})),e.d(u,"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",(function(){return sf})),e.d(u,"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",(function(){return af})),e.d(u,"UNSIGNED_INT_24_8_WEBGL",(function(){return cf})),e.d(u,"HALF_FLOAT_OES",(function(){return ff})),e.d(u,"RGBA32F_EXT",(function(){return hf})),e.d(u,"RGB32F_EXT",(function(){return lf})),e.d(u,"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",(function(){return df})),e.d(u,"UNSIGNED_NORMALIZED_EXT",(function(){return Ef})),e.d(u,"MIN_EXT",(function(){return mf})),e.d(u,"MAX_EXT",(function(){return _f})),e.d(u,"SRGB_EXT",(function(){return Rf})),e.d(u,"SRGB_ALPHA_EXT",(function(){return Mf})),e.d(u,"SRGB8_ALPHA8_EXT",(function(){return Af})),e.d(u,"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",(function(){return Tf})),e.d(u,"FRAGMENT_SHADER_DERIVATIVE_HINT_OES",(function(){return vf})),e.d(u,"COLOR_ATTACHMENT0_WEBGL",(function(){return pf})),e.d(u,"COLOR_ATTACHMENT1_WEBGL",(function(){return Nf})),e.d(u,"COLOR_ATTACHMENT2_WEBGL",(function(){return If})),e.d(u,"COLOR_ATTACHMENT3_WEBGL",(function(){return Sf})),e.d(u,"COLOR_ATTACHMENT4_WEBGL",(function(){return Of})),e.d(u,"COLOR_ATTACHMENT5_WEBGL",(function(){return Lf})),e.d(u,"COLOR_ATTACHMENT6_WEBGL",(function(){return Pf})),e.d(u,"COLOR_ATTACHMENT7_WEBGL",(function(){return Ff})),e.d(u,"COLOR_ATTACHMENT8_WEBGL",(function(){return gf})),e.d(u,"COLOR_ATTACHMENT9_WEBGL",(function(){return Cf})),e.d(u,"COLOR_ATTACHMENT10_WEBGL",(function(){return Df})),e.d(u,"COLOR_ATTACHMENT11_WEBGL",(function(){return yf})),e.d(u,"COLOR_ATTACHMENT12_WEBGL",(function(){return Uf})),e.d(u,"COLOR_ATTACHMENT13_WEBGL",(function(){return Bf})),e.d(u,"COLOR_ATTACHMENT14_WEBGL",(function(){return bf})),e.d(u,"COLOR_ATTACHMENT15_WEBGL",(function(){return Gf})),e.d(u,"DRAW_BUFFER0_WEBGL",(function(){return Xf})),e.d(u,"DRAW_BUFFER1_WEBGL",(function(){return qf})),e.d(u,"DRAW_BUFFER2_WEBGL",(function(){return xf})),e.d(u,"DRAW_BUFFER3_WEBGL",(function(){return Yf})),e.d(u,"DRAW_BUFFER4_WEBGL",(function(){return wf})),e.d(u,"DRAW_BUFFER5_WEBGL",(function(){return Hf})),e.d(u,"DRAW_BUFFER6_WEBGL",(function(){return Vf})),e.d(u,"DRAW_BUFFER7_WEBGL",(function(){return Wf})),e.d(u,"DRAW_BUFFER8_WEBGL",(function(){return Zf})),e.d(u,"DRAW_BUFFER9_WEBGL",(function(){return jf})),e.d(u,"DRAW_BUFFER10_WEBGL",(function(){return Kf})),e.d(u,"DRAW_BUFFER11_WEBGL",(function(){return zf})),e.d(u,"DRAW_BUFFER12_WEBGL",(function(){return Qf})),e.d(u,"DRAW_BUFFER13_WEBGL",(function(){return kf})),e.d(u,"DRAW_BUFFER14_WEBGL",(function(){return Jf})),e.d(u,"DRAW_BUFFER15_WEBGL",(function(){return $f})),e.d(u,"MAX_COLOR_ATTACHMENTS_WEBGL",(function(){return th})),e.d(u,"MAX_DRAW_BUFFERS_WEBGL",(function(){return nh})),e.d(u,"VERTEX_ARRAY_BINDING_OES",(function(){return eh})),e.d(u,"QUERY_COUNTER_BITS_EXT",(function(){return rh})),e.d(u,"CURRENT_QUERY_EXT",(function(){return ih})),e.d(u,"QUERY_RESULT_EXT",(function(){return uh})),e.d(u,"QUERY_RESULT_AVAILABLE_EXT",(function(){return oh})),e.d(u,"TIME_ELAPSED_EXT",(function(){return sh})),e.d(u,"TIMESTAMP_EXT",(function(){return ah})),e.d(u,"GPU_DISJOINT_EXT",(function(){return ch}));var o={};e.r(o),e.d(o,"POSITION",(function(){return fh})),e.d(o,"NORMAL",(function(){return hh})),e.d(o,"DEPTH",(function(){return lh})),e.d(o,"DISTANCE",(function(){return dh}));var s=35721,a=35722,c=34016,f=35718,h=35719,l=33902,d=33901,E=6406,m=3413,_=519,R=34962,M=34964,A=35717,T=1029,v=3042,p=32773,N=32970,I=32968,S=32777,O=34877,L=32777,P=32971,F=32969,g=3412,C=35670,D=35671,y=35672,U=35673,B=37444,b=34660,G=34661,X=5120,q=2305,x=33071,Y=36064,w=16384,H=3106,V=3107,W=35713,Z=34467,j=32771,K=32769,z=37442,Q=2884,k=2885,J=35725,$=34342,tt=2304,nt=7683,et=34056,rt=35712,it=36096,ut=3414,ot=256,st=2931,at=6402,ct=33189,ft=2932,ht=2928,lt=34041,dt=33306,Et=2929,mt=2930,_t=3024,Rt=4352,Mt=772,At=774,Tt=35048,vt=34963,pt=34965,Nt=514,It=4353,St=5126,Ot=35674,Lt=35675,Pt=35676,Ft=35664,gt=35665,Ct=35666,Dt=35632,yt=36160,Ut=36049,Bt=36048,bt=36051,Gt=36050,Xt=36006,qt=36053,xt=36054,Yt=36057,wt=36055,Ht=36061,Vt=1028,Wt=1032,Zt=2886,jt=32774,Kt=32779,zt=32778,Qt=33170,kt=518,Jt=516,$t=3411,tn=36338,nn=36341,en=7682,rn=34055,un=35716,on=5124,sn=35667,an=35668,cn=35669,fn=1280,hn=1286,ln=1282,dn=1281,En=5386,mn=7680,_n=515,Rn=513,Mn=9729,An=9987,Tn=9985,vn=1,pn=2,Nn=3,In=2849,Sn=35714,On=36336,Ln=36339,Pn=6409,Fn=6410,gn=35661,Cn=34076,Dn=36349,yn=34024,Un=34930,Bn=3379,bn=36348,Gn=34921,Xn=35660,qn=36347,xn=3386,Yn=36337,wn=36340,Hn=33648,Vn=9728,Wn=9986,Zn=9984,jn=512,Kn=4354,zn=0,Qn=517,kn=0,Jn=34466,$n=1,te=32772,ne=32770,ee=773,re=775,ie=771,ue=769,oe=1285,se=3333,ae=0,ce=32824,fe=32823,he=10752,le=3410,de=36161,Ee=36179,me=36007,_e=36178,Re=36180,Me=36177,Ae=36163,Te=36164,ve=36176,pe=36181,Ne=36162,Ie=7937,Se=10497,Oe=7681,Le=6407,Pe=32855,Fe=36194,ge=6408,Ce=32854,De=35678,ye=35680,Ue=32937,Be=32926,be=32936,Ge=32928,Xe=32939,qe=32938,xe=3088,Ye=3089,we=36346,He=35720,Ve=35663,We=35724,Ze=5122,je=770,Ke=776,ze=768,Qe=35044,ke=36128,Je=34817,$e=34816,tr=34818,nr=34819,er=36003,rr=36004,ir=36005,ur=3415,or=1024,sr=2961,ar=2964,cr=2962,fr=6401,hr=36168,lr=2965,dr=2966,Er=2967,mr=2960,_r=2963,Rr=2968,Mr=35040,Ar=3408,Tr=5890,vr=33984,pr=33985,Nr=33986,Ir=33987,Sr=33988,Or=33989,Lr=33990,Pr=33991,Fr=33992,gr=33993,Cr=33994,Dr=33995,yr=33996,Ur=33997,Br=33998,br=33999,Gr=34e3,Xr=34001,qr=34002,xr=34003,Yr=34004,wr=34005,Hr=34006,Vr=34007,Wr=34008,Zr=34009,jr=34010,Kr=34011,zr=34012,Qr=34013,kr=34014,Jr=34015,$r=3553,ti=32873,ni=34068,ei=34067,ri=34070,ii=34072,ui=34074,oi=34069,si=34071,ai=34073,ci=10240,fi=10241,hi=10242,li=10243,di=4,Ei=6,mi=5,_i=3317,Ri=37443,Mi=37440,Ai=37441,Ti=5121,vi=5125,pi=5123,Ni=32819,Ii=32820,Si=33635,Oi=35715,Li=7936,Pi=7938,Fi=34975,gi=34338,Ci=34922,Di=34373,yi=34339,Ui=34340,Bi=34341,bi=35633,Gi=2978,Xi=0,qi=3074,xi=3314,Yi=3315,wi=3316,Hi=3330,Vi=3331,Wi=3332,Zi=32874,ji=32877,Ki=32878,zi=32883,Qi=33e3,ki=33001,Ji=34045,$i=35657,tu=35658,nu=35071,eu=35076,ru=35077,iu=35659,uu=35723,ou=35977,su=34229,au=37154,cu=37157,fu=37137,hu=2262,lu=6403,du=32849,Eu=32856,mu=32857,_u=32879,Ru=32882,Mu=33082,Au=33083,Tu=33084,vu=33085,pu=34892,Nu=34893,Iu=35904,Su=35905,Ou=35907,Lu=34894,Pu=34836,Fu=34837,gu=34842,Cu=34843,Du=35866,yu=35869,Uu=35898,Bu=35901,bu=36208,Gu=36209,Xu=36214,qu=36215,xu=36220,Yu=36221,wu=36226,Hu=36227,Vu=36232,Wu=36233,Zu=36238,ju=36239,Ku=36244,zu=36248,Qu=36249,ku=33321,Ju=33323,$u=33325,to=33326,no=33327,eo=33328,ro=33329,io=33330,uo=33331,oo=33332,so=33333,ao=33334,co=33335,fo=33336,ho=33337,lo=33338,Eo=33339,mo=33340,_o=36756,Ro=36757,Mo=36758,Ao=36759,To=36975,vo=37167,po=2093,No=33640,Io=35899,So=35902,Oo=36269,Lo=34042,Po=5131,Fo=33319,go=33320,Co=2265,Do=34917,yo=34918,Uo=34919,Bo=35887,bo=2262,Go=34852,Xo=34853,qo=34854,xo=34855,Yo=34856,wo=34857,Ho=34858,Vo=34859,Wo=34860,Zo=34861,jo=34862,Ko=34863,zo=34864,Qo=34865,ko=34866,Jo=34867,$o=34868,ts=36063,ns=36065,es=36066,rs=36067,is=36068,us=36069,os=36070,ss=36071,as=36072,cs=36073,fs=36074,hs=36075,ls=36076,ds=36077,Es=36078,ms=2254,_s=35679,Rs=35682,Ms=36289,As=36292,Ts=36293,vs=36298,ps=36299,Ns=36300,Is=36303,Ss=36306,Os=36307,Ls=36308,Ps=36311,Fs=36183,gs=2193,Cs=35051,Ds=35052,ys=35053,Us=35055,Bs=36662,bs=36663,Gs=36662,Xs=2291,qs=35685,xs=35686,Ys=35687,ws=35688,Hs=35689,Vs=35690,Ws=36294,Zs=36295,js=36296,Ks=35863,zs=2297,Qs=35069,ks=2191,Js=35967,$s=35968,ta=35971,na=35972,ea=35973,ra=35976,ia=35978,ua=35979,oa=35980,sa=35981,aa=35982,ca=35983,fa=36386,ha=36387,la=36388,da=2274,Ea=33296,ma=33297,_a=33298,Ra=33299,Ma=33300,Aa=33301,Ta=33302,va=33303,pa=33304,Na=33306,Ia=34041,Sa=35056,Oa=36006,La=36008,Pa=36009,Fa=36010,ga=36011,Ca=36052,Da=2261,ya=35345,Ua=35368,Ba=35369,ba=35370,Ga=35371,Xa=35373,qa=35374,xa=35375,Ya=35376,wa=35377,Ha=35379,Va=35380,Wa=35382,Za=35383,ja=35384,Ka=35386,za=35387,Qa=35388,ka=35389,Ja=35390,$a=35391,tc=35392,nc=35394,ec=35395,rc=35396,ic=2212,uc=37138,oc=37139,sc=37140,ac=37141,cc=37142,fc=37143,hc=37144,lc=37145,dc=37146,Ec=37147,mc=37148,_c=37149,Rc=0,Mc=6144,Ac=6145,Tc=6146,vc=32775,pc=32776,Nc=33190,Ic=35041,Sc=35042,Oc=35045,Lc=35046,Pc=35049,Fc=35050,gc=36012,Cc=36013,Dc=268435455,yc=lu-1,Uc=2340,Bc=35070,bc=37445,Gc=37446,Xc=34047,qc=34046,xc=33776,Yc=33777,wc=33778,Hc=33779,Vc=37488,Wc=37489,Zc=37490,jc=37491,Kc=37492,zc=37493,Qc=37494,kc=37495,Jc=37496,$c=37497,tf=35840,nf=35842,ef=35841,rf=35843,uf=36196,of=35986,sf=35986,af=34798,cf=34042,ff=36193,hf=34836,lf=34837,df=33297,Ef=35863,mf=32775,_f=32776,Rf=35904,Mf=35906,Af=35907,Tf=33296,vf=35723,pf=36064,Nf=36065,If=36066,Sf=36067,Of=36068,Lf=36069,Pf=36070,Ff=36071,gf=36072,Cf=36073,Df=36074,yf=36075,Uf=36076,Bf=36077,bf=36078,Gf=36079,Xf=34853,qf=34854,xf=34855,Yf=34856,wf=34857,Hf=34858,Vf=34859,Wf=34860,Zf=34861,jf=34862,Kf=34863,zf=34864,Qf=34865,kf=34866,Jf=34867,$f=34868,th=36063,nh=34852,eh=34229,rh=34916,ih=34917,uh=34918,oh=34919,sh=35007,ah=36392,ch=36795,fh="POSITION",hh="NORMAL",lh="DEPTH",dh="DISTANCE",Eh={webgl:r,webglExtensions:u,webgl2:i,Hilo:o};Object.assign(Eh,r,u,i,o);n.a=Eh},function(t,n,e){"use strict";var r={},i={_cache:r,level:7,LEVEL_NONE:0,LEVEL_LOG:1,LEVEL_WARN:2,LEVEL_ERROR:4,log:function(){var t=this.console;return 1&this.level&&t.log.apply(t,arguments),this},warn:function(){var t=this.console;return 2&this.level&&t.warn.apply(t,arguments),this},error:function(){var t=this.console;return 4&this.level&&t.error.apply(t,arguments),this},logOnce:function(t){return r["log_"+t]||(r["log_"+t]=!0,this.log.apply(this,Array.prototype.slice.call(arguments,1))),this},warnOnce:function(t){return r["warn_"+t]||(r["warn_"+t]=!0,this.warn.apply(this,Array.prototype.slice.call(arguments,1))),this},errorOnce:function(t){return r["error_"+t]||(r["error_"+t]=!0,this.error.apply(this,Array.prototype.slice.call(arguments,1))),this},_console:console,get console(){return this._console},set console(t){this._console=t}};n.a=i},function(t,n,e){"use strict";e.r(n),e.d(n,"each",(function(){return _})),e.d(n,"getRelativePath",(function(){return d})),e.d(n,"convertUint8ArrayToString",(function(){return E})),e.d(n,"getExtension",(function(){return m})),e.d(n,"getIndexFromSortedArray",(function(){return R})),e.d(n,"insertToSortedArray",(function(){return M})),e.d(n,"padLeft",(function(){return A})),e.d(n,"getTypedArrayClass",(function(){return N})),e.d(n,"copyArrayData",(function(){return I})),e.d(n,"isStrOrNumber",(function(){return S})),e.d(n,"getTypedArrayGLType",(function(){return T})),e.d(n,"getBlobUrl",(function(){return P})),e.d(n,"isBlobUrl",(function(){return O})),e.d(n,"revokeBlobUrl",(function(){return L})),e.d(n,"isArrayLike",(function(){return F})),e.d(n,"getElementRect",(function(){return g})),e.d(n,"serialRun",(function(){return C})),e.d(n,"hasOwnProperty",(function(){return D})),e.d(n,"isWebGL2",(function(){return y}));var r=e(3),i=e(2);function u(t,n,e){return(n=function(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var o,s=i.a.BYTE,a=i.a.UNSIGNED_BYTE,c=i.a.SHORT,f=i.a.UNSIGNED_SHORT,h=i.a.UNSIGNED_INT,l=i.a.FLOAT;function d(t,n){if(/^(?:http|blob|data:|\/)/.test(n))return n;var e;for(t=t.replace(/\/[^/]*?$/,"").split("/"),n=n.split("/"),e=0;e<n.length;e++){var r=n[e];if(".."===r)t.pop();else if("."!==r)break}return t.join("/")+"/"+n.slice(e).join("/")}function E(t,n){if(window.TextDecoder)return o||(o=new TextDecoder("utf-8")),t instanceof Uint8Array||(t=new Uint8Array(t)),o.decode(t);for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return n&&(e=decodeURIComponent(escape(e))),e}function m(t){var n=String(t).match(/\/?[^/]+\.(\w+)(\?\S+)?$/i);return n&&n[1].toLowerCase()||null}function _(t,n){t&&(Array.isArray(t)?t.forEach(n):Object.keys(t).forEach((function(e){n(t[e],e)})))}function R(t,n,e){if(!t||!t.length)return[0,0];for(var r=0,i=t.length-1;r<=i;){var u=r+i>>1,o=e(t[u],n);if(0===o)return[u,u];o<0?r=u+1:i=u-1}return r>i?[i,r]:[r,i]}function M(t,n,e){var r=R(t,n,e);t.splice(r[1],0,n)}function A(t,n,e){return n<=t.length?t:new Array(n-t.length+1).join(e||"0")+t}function T(t){return t instanceof Float32Array?l:t instanceof Int8Array?s:t instanceof Uint8Array?a:t instanceof Int16Array?c:t instanceof Uint16Array?f:t instanceof Uint32Array?h:l}var v,p,N=(u(v={},s,Int8Array),u(v,a,Uint8Array),u(v,c,Int16Array),u(v,f,Uint16Array),u(v,h,Uint32Array),u(v,l,Float32Array),p=v,function(t){return p[t]||Float32Array});function I(t,n,e,r,i){if(t&&n){n.isGeometryData&&(n=n.data);for(var u=0;u<i;u++)t[e+u]=n[r+u]}}function S(t){return"string"==typeof t||"number"==typeof t}function O(t){return/^blob:/.test(t)}function L(t){window.URL&&URL.revokeObjectURL(t)}function P(t,n){if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),window.Blob&&window.URL)try{var e=new Blob([n],{type:t});return window.URL.createObjectURL(e)}catch(n){r.a.warn("new Blob error",t)}return"data:".concat(t,";base64,").concat(btoa(E(n)))}function F(t){return Array.isArray(t)||t.BYTES_PER_ELEMENT||t.length}function g(t){var n,e=document.documentElement;try{n=t.getBoundingClientRect()}catch(e){n={top:t.offsetTop,left:t.offsetLeft,right:t.offsetLeft+t.offsetWidth,bottom:t.offsetTop+t.offsetHeight}}var r=(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)||0,i=(window.pageYOffset||e.scrollTop)-(e.clientTop||0)||0,u=window.getComputedStyle?getComputedStyle(t):t.currentStyle,o=parseInt,s=o(u.paddingLeft)+o(u.borderLeftWidth)||0,a=o(u.paddingTop)+o(u.borderTopWidth)||0,c=o(u.paddingRight)+o(u.borderRightWidth)||0,f=o(u.paddingBottom)+o(u.borderBottomWidth)||0,h=n.top||0,l=n.left||0;return{left:l+r+s,top:h+i+a,width:(n.right||0)-c-l-s,height:(n.bottom||0)-f-h-a}}function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)||(t=Object.values(t)),t.reduce((function(t,e,r){return t.then((function(){return n(e,r)}))}),Promise.resolve())}function D(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function y(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext}},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Vector3",isVector3:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.elements=r.vec3.fromValues(t,n,e)},copy:function(t){return r.vec3.copy(this.elements,t.elements),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t[2+n]=e[2],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],e[2]=t[n+2],this},set:function(t,n,e){return r.vec3.set(this.elements,t,n,e),this},add:function(t,n){return n||(n=t,t=this),r.vec3.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.vec3.subtract(this.elements,t.elements,n.elements),this},multiply:function(t,n){return n||(n=t,t=this),r.vec3.multiply(this.elements,t.elements,n.elements),this},divide:function(t,n){return n||(n=t,t=this),r.vec3.divide(this.elements,t.elements,n.elements),this},ceil:function(){return r.vec3.ceil(this.elements,this.elements),this},floor:function(){return r.vec3.floor(this.elements,this.elements),this},min:function(t,n){return n||(n=t,t=this),r.vec3.min(this.elements,t.elements,n.elements),this},max:function(t,n){return n||(n=t,t=this),r.vec3.max(this.elements,t.elements,n.elements),this},round:function(){return r.vec3.round(this.elements,this.elements),this},scale:function(t){return r.vec3.scale(this.elements,this.elements,t),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec3.scaleAndAdd(this.elements,n.elements,e.elements,t),this},distance:function(t,n){return n||(n=t,t=this),r.vec3.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec3.squaredDistance(t.elements,n.elements)},length:function(){return r.vec3.length(this.elements)},squaredLength:function(){return r.vec3.squaredLength(this.elements)},negate:function(){return r.vec3.negate(this.elements,this.elements),this},inverse:function(t){return t||(t=this),r.vec3.inverse(this.elements,t.elements),this},normalize:function(){return r.vec3.normalize(this.elements,this.elements),this},dot:function(t,n){return n||(n=t,t=this),r.vec3.dot(t.elements,n.elements)},cross:function(t,n){return n||(n=t,t=this),r.vec3.cross(this.elements,t.elements,n.elements),this},lerp:function(t,n){return r.vec3.lerp(this.elements,this.elements,t.elements,n),this},hermite:function(t,n,e,i,u){return r.vec3.hermite(this.elements,t.elements,n.elements,e.elements,i.elements,u),this},bezier:function(t,n,e,i,u){return r.vec3.bezier(this.elements,t.elements,n.elements,e.elements,i.elements,u),this},random:function(t){return r.vec3.random(this.elements,t),this},transformMat3:function(t){return r.vec3.transformMat3(this.elements,this.elements,t.elements),this},transformMat4:function(t){return r.vec3.transformMat4(this.elements,this.elements,t.elements),this},transformDirection:function(t){var n=this.elements,e=t.elements,r=n[0],i=n[1],u=n[2];return n[0]=r*e[0]+i*e[4]+u*e[8],n[1]=r*e[1]+i*e[5]+u*e[9],n[2]=r*e[2]+i*e[6]+u*e[10],this},transformQuat:function(t){return r.vec3.transformQuat(this.elements,this.elements,t.elements),this},rotateX:function(t,n){return r.vec3.rotateX(this.elements,this.elements,t.elements,n),this},rotateY:function(t,n){return r.vec3.rotateY(this.elements,this.elements,t.elements,n),this},rotateZ:function(t,n){return r.vec3.rotateZ(this.elements,this.elements,t.elements,n),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec3.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec3.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t}}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,i.prototype.div=i.prototype.divide,i.prototype.dist=i.prototype.distance,i.prototype.sqrDist=i.prototype.squaredDistance,i.prototype.len=i.prototype.length,i.prototype.sqrLen=i.prototype.squaredLength,n.a=i},function(t,n,e){"use strict";var r,i={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:(r=0,function(t){var n=++r;return t?n=t+"_"+n:n+="",n}),clamp:function(t,n,e){return Math.max(n,Math.min(e,t))},degToRad:function(t){return t*this.DEG2RAD},radToDeg:function(t){return t*this.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}};n.a=i},function(t,n,e){"use strict";var r,i=e(0),u=e(1),o=e(5),s=e(10),a=new o.a,c=new o.a,f=u.a.create({className:"Matrix4",isMatrix4:!0,constructor:function(){this.elements=i.mat4.create()},copy:function(t){return i.mat4.copy(this.elements,t.elements),this},clone:function(){var t=new this.constructor;return i.mat4.copy(t.elements,this.elements),t},toArray:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<16;r++)t[n+r]=e[r];return t},fromArray:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<16;r++)e[r]=t[n+r];return this},set:function(t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_){return i.mat4.set(this.elements,t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_),this},identity:function(){return i.mat4.identity(this.elements),this},transpose:function(){return i.mat4.transpose(this.elements,this.elements),this},invert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.invert(this.elements,t.elements),this},adjoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.adjoint(this.elements,t.elements),this},determinant:function(){return i.mat4.determinant(this.elements)},multiply:function(t,n){return n||(n=t,t=this),i.mat4.multiply(this.elements,t.elements,n.elements),this},premultiply:function(t){return this.multiply(t,this),this},translate:function(t){return i.mat4.translate(this.elements,this.elements,t.elements),this},scale:function(t){return i.mat4.scale(this.elements,this.elements,t.elements),this},rotate:function(t,n){return i.mat4.rotate(this.elements,this.elements,t,n.elements),this},rotateX:function(t){return i.mat4.rotateX(this.elements,this.elements,t),this},rotateY:function(t){return i.mat4.rotateY(this.elements,this.elements,t),this},rotateZ:function(t){return i.mat4.rotateZ(this.elements,this.elements,t),this},fromTranslation:function(t){return i.mat4.fromTranslation(this.elements,t.elements),this},fromScaling:function(t){return i.mat4.fromScaling(this.elements,t.elements),this},fromRotation:function(t,n){return i.mat4.fromRotation(this.elements,t,n.elements),this},fromXRotation:function(t){return i.mat4.fromXRotation(this.elements,t),this},fromYRotation:function(t){return i.mat4.fromYRotation(this.elements,t),this},fromZRotation:function(t){return i.mat4.fromZRotation(this.elements,t),this},fromRotationTranslation:function(t,n){return i.mat4.fromRotationTranslation(this.elements,t.elements,n.elements),this},getTranslation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.a;return i.mat4.getTranslation(t.elements,this.elements),t},getScaling:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.a;return i.mat4.getScaling(t.elements,this.elements),t},getRotation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new s.a;return i.mat4.getRotation(t.elements,this.elements),t},fromRotationTranslationScale:function(t,n,e){return i.mat4.fromRotationTranslationScale(this.elements,t.elements,n.elements,e.elements),this},fromRotationTranslationScaleOrigin:function(t,n,e,r){return i.mat4.fromRotationTranslationScaleOrigin(this.elements,t.elements,n.elements,e.elements,r.elements),this},fromQuat:function(t){return i.mat4.fromQuat(this.elements,t.elements),this},frustum:function(t,n,e,r,u,o){return i.mat4.frustum(this.elements,t,n,e,r,u,o),this},perspective:function(t,n,e,r){return i.mat4.perspective(this.elements,t,n,e,r),this},perspectiveFromFieldOfView:function(t,n,e){return i.mat4.perspectiveFromFieldOfView(this.elements,t,n,e),this},ortho:function(t,n,e,r,u,o){return i.mat4.ortho(this.elements,t,n,e,r,u,o),this},lookAt:function(t,n,e){return t.isVector3||(t=a.set(t.x,t.y,t.z)),n.isVector3||(n=c.set(n.x,n.y,n.z)),i.mat4.lookAt(this.elements,t.elements,n.elements,e.elements),this},targetTo:function(t,n,e){t.isVector3||(t=a.set(t.x,t.y,t.z)),n.isVector3||(n=c.set(n.x,n.y,n.z)),t=t.elements,n=n.elements,e=e.elements;var r=this.elements,i=t[0],u=t[1],o=t[2],s=e[0],f=e[1],h=e[2],l=i-n[0],d=u-n[1],E=o-n[2],m=l*l+d*d+E*E;m>0?(l*=m=1/Math.sqrt(m),d*=m,E*=m):E=1;var _=f*E-h*d,R=h*l-s*E,M=s*d-f*l;return(m=_*_+R*R+M*M)>0?(_*=m=1/Math.sqrt(m),R*=m,M*=m):(m=(_=f*E-h*d)*_+(R=h*l-(s+=1e-7)*E)*R+(M=s*d-f*l)*M,_*=m=1/Math.sqrt(m),R*=m,M*=m),r[0]=_,r[1]=R,r[2]=M,r[3]=0,r[4]=d*M-E*R,r[5]=E*_-l*M,r[6]=l*R-d*_,r[7]=0,r[8]=l,r[9]=d,r[10]=E,r[11]=0,r[12]=i,r[13]=u,r[14]=o,r[15]=1,this},frob:function(){return i.mat4.frob(this.elements)},add:function(t,n){return n||(n=t,t=this),i.mat4.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),i.mat4.subtract(this.elements,t.elements,n.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),i.mat4.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),i.mat4.equals(t.elements,n.elements)},compose:function(t,n,e,r){return r?this.fromRotationTranslationScaleOrigin(t,n,e,r):this.fromRotationTranslationScale(t,n,e),this},decompose:function(t,n,e,i){return this.getScaling(e),this.getTranslation(n),r||(r=new f),this.determinant()<0&&(e.x*=-1),r.copy(this),a.inverse(e),r.scale(a),t.fromMat4(r),i&&i.set(0,0,0),this}});f.prototype.sub=f.prototype.subtract,f.prototype.mul=f.prototype.multiply,n.a=f},function(t,n,e){"use strict";var r=e(1),i=e(12),u=e(4),o=r.a.create({Extends:i.a,className:"Color",isColor:!0,r:{get:function(){return this.x},set:function(t){this.x=t}},g:{get:function(){return this.y},set:function(t){this.y=t}},b:{get:function(){return this.z},set:function(t){this.z=t}},a:{get:function(){return this.w},set:function(t){this.w=t}},constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;o.superclass.constructor.call(this,t,n,e,r)},toRGBArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t},fromUintArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.elements[0]=t[n]/255,this.elements[1]=t[n+1]/255,this.elements[2]=t[n+2]/255,this.elements[3]=t[n+3]/255,this},fromHEX:function(t){return"number"==typeof t?t=Object(u.padLeft)(t.toString(16),6):("#"===t[0]&&(t=t.slice(1)),3===t.length&&(t=t.replace(/(\w)/g,"$1$1"))),this.elements[0]=parseInt(t.slice(0,2),16)/255,this.elements[1]=parseInt(t.slice(2,4),16)/255,this.elements[2]=parseInt(t.slice(4,6),16)/255,this},toHEX:function(){for(var t="",n=0;n<3;n++)t+=Object(u.padLeft)(Math.floor(255*this.elements[n]).toString(16),2);return t}});n.a=o},function(t,n,e){"use strict";var r=e(1).a.create({constructor:function(t,n,e){this.type=t,this.target=n,this.detail=e,this.timeStamp=+new Date},type:null,target:null,detail:null,timeStamp:0,stopImmediatePropagation:function(){this._stopped=!0}}),i={_listeners:null,on:function(t,n,e){for(var r=this._listeners=this._listeners||{},i=r[t]=r[t]||[],u=0,o=i.length;u<o;u++){if(i[u].listener===n)return this}return i.push({listener:n,once:e}),this},off:function(t,n){if(0===arguments.length)return this._listeners=null,this;var e=this._listeners&&this._listeners[t];if(e&&e.length>0){if(1===arguments.length)return delete this._listeners[t],this;for(var r=0,i=e.length;r<i;r++){var u=e[r];if(u.listener===n){e.splice(r,1);break}}}return this},fire:function(t,n){var e,i;"string"==typeof t?i=t:(e=t,i=t.type);var u=this._listeners;if(!u)return!1;var o=u[i];if(o&&o.length>0){var s=o.slice(0);if((e=e||new r(i,this,n))._stopped)return!1;for(var a=0;a<s.length;a++){var c=s[a];if(c.listener.call(this,e),c.once){var f=o.indexOf(c);f>-1&&o.splice(f,1)}}return!0}return!1}};n.a=i},function(t,n,e){"use strict";var r=e(0),i=e(11),u=e(1),o=e(9),s=new i.a,a=u.a.create({Mixes:o.a,className:"Quaternion",isQuaternion:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.elements=r.quat.fromValues(t,n,e,i)},copy:function(t,n){return r.quat.copy(this.elements,t.elements),n||this.fire("update"),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2],t[3])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2?arguments[2]:void 0,r=this.elements;return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],e||this.fire("update"),this},set:function(t,n,e,i,u){return r.quat.set(this.elements,t,n,e,i),u||this.fire("update"),this},identity:function(t){return r.quat.identity(this.elements),t||this.fire("update"),this},rotationTo:function(t,n,e){return r.quat.rotationTo(this.elements,t.elements,n.elements),e||this.fire("update"),this},setAxes:function(t,n,e,i){return r.quat.setAxes(this.elements,t.elements,n.elements,e.elements),i||this.fire("update"),this},setAxisAngle:function(t,n,e){return r.quat.setAxisAngle(this.elements,t.elements,n),e||this.fire("update"),this},getAxisAngle:function(t){return r.quat.getAxisAngle(t.elements,this.elements)},add:function(t,n){return r.quat.add(this.elements,this.elements,t.elements),n||this.fire("update"),this},multiply:function(t,n){return r.quat.multiply(this.elements,this.elements,t.elements),n||this.fire("update"),this},premultiply:function(t,n){return r.quat.multiply(this.elements,t.elements,this.elements),n||this.fire("update"),this},scale:function(t,n){return r.quat.scale(this.elements,this.elements,t),n||this.fire("update"),this},rotateX:function(t,n){return r.quat.rotateX(this.elements,this.elements,t),n||this.fire("update"),this},rotateY:function(t,n){return r.quat.rotateY(this.elements,this.elements,t),n||this.fire("update"),this},rotateZ:function(t,n){return r.quat.rotateZ(this.elements,this.elements,t),n||this.fire("update"),this},calculateW:function(t){return r.quat.calculateW(this.elements,this.elements),t||this.fire("update"),this},dot:function(t){return r.quat.dot(this.elements,t.elements)},lerp:function(t,n,e){return r.quat.lerp(this.elements,this.elements,t.elements,n),e||this.fire("update"),this},slerp:function(t,n,e){return r.quat.slerp(this.elements,this.elements,t.elements,n),e||this.fire("update"),this},sqlerp:function(t,n,e,i,u,o){return r.quat.sqlerp(this.elements,t.elements,n.elements,e.elements,i.elements,u),o||this.fire("update"),this},invert:function(t){return r.quat.invert(this.elements,this.elements),t||this.fire("update"),this},conjugate:function(t){return r.quat.conjugate(this.elements,this.elements),t||this.fire("update"),this},length:function(){return r.quat.length(this.elements)},squaredLength:function(){return r.quat.squaredLength(this.elements)},normalize:function(t){return r.quat.normalize(this.elements,this.elements),t||this.fire("update"),this},fromMat3:function(t,n){return r.quat.fromMat3(this.elements,t.elements),n||this.fire("update"),this},fromMat4:function(t,n){return s.fromMat4(t),this.fromMat3(s,n),this},exactEquals:function(t){return r.quat.exactEquals(this.elements,t.elements)},equals:function(t){return r.quat.equals(this.elements,t.elements)},fromEuler:function(t,n){var e=.5*t.x,r=.5*t.y,i=.5*t.z,u=t.order||"ZYX",o=Math.sin(e),s=Math.cos(e),a=Math.sin(r),c=Math.cos(r),f=Math.sin(i),h=Math.cos(i),l=this.elements;return"XYZ"===u?(l[0]=o*c*h+s*a*f,l[1]=s*a*h-o*c*f,l[2]=s*c*f+o*a*h,l[3]=s*c*h-o*a*f):"YXZ"===u?(l[0]=o*c*h+s*a*f,l[1]=s*a*h-o*c*f,l[2]=s*c*f-o*a*h,l[3]=s*c*h+o*a*f):"ZXY"===u?(l[0]=o*c*h-s*a*f,l[1]=s*a*h+o*c*f,l[2]=s*c*f+o*a*h,l[3]=s*c*h-o*a*f):"ZYX"===u?(l[0]=o*c*h-s*a*f,l[1]=s*a*h+o*c*f,l[2]=s*c*f-o*a*h,l[3]=s*c*h+o*a*f):"YZX"===u?(l[0]=o*c*h+s*a*f,l[1]=s*a*h+o*c*f,l[2]=s*c*f-o*a*h,l[3]=s*c*h-o*a*f):"XZY"===u&&(l[0]=o*c*h-s*a*f,l[1]=s*a*h-o*c*f,l[2]=s*c*f+o*a*h,l[3]=s*c*h+o*a*f),n||this.fire("update"),this},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this.fire("update")}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this.fire("update")}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this.fire("update")}},w:{get:function(){return this.elements[3]},set:function(t){this.elements[3]=t,this.fire("update")}}});a.prototype.mul=a.prototype.multiply,a.prototype.len=a.prototype.length,a.prototype.sqrLen=a.prototype.squaredLength,n.a=a},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Matrix3",isMatrix3:!0,constructor:function(){this.elements=r.mat3.create()},copy:function(t){return r.mat3.copy(this.elements,t.elements),this},clone:function(){var t=new this.constructor;return r.mat3.copy(t.elements,this.elements),t},toArray:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<9;r++)t[n+r]=e[r];return t},fromArray:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<9;r++)e[r]=t[n+r];return this},set:function(t,n,e,i,u,o,s,a,c){return r.mat3.set(this.elements,t,n,e,i,u,o,s,a,c),this},identity:function(){return r.mat3.identity(this.elements),this},transpose:function(){return r.mat3.transpose(this.elements,this.elements),this},invert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return r.mat3.invert(this.elements,t.elements),this},adjoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return r.mat3.adjoint(this.elements,t.elements),this},determinant:function(){return r.mat3.determinant(this.elements)},multiply:function(t,n){return n||(n=t,t=this),r.mat3.multiply(this.elements,t.elements,n.elements),this},premultiply:function(t){return this.multiply(t,this),this},translate:function(t){return r.mat3.translate(this.elements,this.elements,t.elements),this},rotate:function(t){return r.mat3.rotate(this.elements,this.elements,t),this},scale:function(t){return r.mat3.scale(this.elements,this.elements,t.elements),this},fromTranslation:function(t){return r.mat3.fromTranslation(this.elements,t.elements),this},fromRotation:function(t){return r.mat3.fromRotation(this.elements,t),this},fromScaling:function(t){return r.mat3.fromScaling(this.elements,t.elements),this},fromQuat:function(t){return r.mat3.fromQuat(this.elements,t.elements),this},normalFromMat4:function(t){return r.mat3.normalFromMat4(this.elements,t.elements),this},fromMat4:function(t){return r.mat3.fromMat4(this.elements,t.elements),this},frob:function(){return r.mat3.frob(this.elements)},add:function(t,n){return n||(n=t,t=this),r.mat3.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.mat3.subtract(this.elements,t.elements,n.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),r.mat3.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.mat3.equals(t.elements,n.elements)},fromRotationTranslationScale:function(t,n,e,r,i){var u=Math.cos(t),o=Math.sin(t);return this.set(r*u,-i*o,0,r*o,i*u,0,n,e,1),this}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,n.a=i},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Vector4",isVector4:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.elements=r.vec4.fromValues(t,n,e,i)},copy:function(t){return r.vec4.copy(this.elements,t.elements),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2],t[3])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t[2+n]=e[2],t[3+n]=e[3],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],this},set:function(t,n,e,i){return r.vec4.set(this.elements,t,n,e,i),this},add:function(t,n){return n||(n=t,t=this),r.vec4.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.vec4.subtract(this.elements,t.elements,n.elements),this},multiply:function(t,n){return n||(n=t,t=this),r.vec4.multiply(this.elements,t.elements,n.elements),this},divide:function(t,n){return n||(n=t,t=this),r.vec4.divide(this.elements,t.elements,n.elements),this},ceil:function(){return r.vec4.ceil(this.elements,this.elements),this},floor:function(){return r.vec4.floor(this.elements,this.elements),this},min:function(t,n){return n||(n=t,t=this),r.vec4.min(this.elements,t.elements,n.elements),this},max:function(t,n){return n||(n=t,t=this),r.vec4.max(this.elements,t.elements,n.elements),this},round:function(){return r.vec4.round(this.elements,this.elements),this},scale:function(t){return r.vec4.scale(this.elements,this.elements,t),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec4.scaleAndAdd(this.elements,n.elements,e.elements,t),this},distance:function(t,n){return n||(n=t,t=this),r.vec4.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec4.squaredDistance(t.elements,n.elements)},length:function(){return r.vec4.length(this.elements)},squaredLength:function(){return r.vec4.squaredLength(this.elements)},negate:function(){return r.vec4.negate(this.elements,this.elements),this},inverse:function(t){return t||(t=this),r.vec4.inverse(this.elements,t.elements),this},normalize:function(){return r.vec4.normalize(this.elements,this.elements),this},dot:function(t,n){return n||(n=t,t=this),r.vec4.dot(t.elements,n.elements)},lerp:function(t,n){return r.vec4.lerp(this.elements,this.elements,t.elements,n),this},random:function(t){return t=t||1,this.elements[0]=Math.random(),this.elements[1]=Math.random(),this.elements[2]=Math.random(),this.elements[3]=Math.random(),this.normalize(),this.scale(t),this},transformMat4:function(t){return r.vec4.transformMat4(this.elements,this.elements,t.elements),this},transformQuat:function(t){return r.vec4.transformQuat(this.elements,this.elements,t.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec4.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec4.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t}},w:{get:function(){return this.elements[3]},set:function(t){this.elements[3]=t}}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,i.prototype.div=i.prototype.divide,i.prototype.dist=i.prototype.distance,i.prototype.sqrDist=i.prototype.squaredDistance,i.prototype.len=i.prototype.length,i.prototype.sqrLen=i.prototype.squaredLength,n.a=i},function(t,n,e){"use strict";var r=e(1),i=e(6),u=e(7),o=e(3),s=new u.a,a=i.a.DEG2RAD,c=i.a.RAD2DEG,f=r.a.create({className:"Euler",isEuler:!0,order:"ZYX",constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.elements=new Float32Array([t,n,e]),this.updateDegrees()},clone:function(){var t=new this.constructor;return t.copy(this),t},copy:function(t){return this.elements[0]=t.x,this.elements[1]=t.y,this.elements[2]=t.z,this.order=t.order,this.updateDegrees(),this},set:function(t,n,e){return this.elements[0]=t,this.elements[1]=n,this.elements[2]=e,this.updateDegrees(),this},setDegree:function(t,n,e){return this._degX=t,this._degY=n,this._degZ=e,this.updateRadians(),this},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.elements[0]=t[n],this.elements[1]=t[n+1],this.elements[2]=t[n+2],this.updateDegrees(),this},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[n]=this.elements[0],t[n+1]=this.elements[1],t[n+2]=this.elements[2],t},fromMat4:function(t,n){var e=t.elements,r=e[0],u=e[1],s=e[2],a=e[4],c=e[5],f=e[6],h=e[8],l=e[9],d=e[10];n=n||this.order,this.order=n;var E=i.a.clamp;return"XYZ"===n?(this.elements[1]=Math.asin(E(h,-1,1)),Math.abs(h)<.99999?(this.elements[0]=Math.atan2(-l,d),this.elements[2]=Math.atan2(-a,r)):(this.elements[0]=Math.atan2(f,c),this.elements[2]=0)):"YXZ"===n?(this.elements[0]=Math.asin(-E(l,-1,1)),Math.abs(l)<.99999?(this.elements[1]=Math.atan2(h,d),this.elements[2]=Math.atan2(u,c)):(this.elements[1]=Math.atan2(-s,r),this.elements[2]=0)):"ZXY"===n?(this.elements[0]=Math.asin(E(f,-1,1)),Math.abs(f)<.99999?(this.elements[1]=Math.atan2(-s,d),this.elements[2]=Math.atan2(-a,c)):(this.elements[1]=0,this.elements[2]=Math.atan2(u,r))):"ZYX"===n?(this.elements[1]=Math.asin(-E(s,-1,1)),Math.abs(s)<.99999?(this.elements[0]=Math.atan2(f,d),this.elements[2]=Math.atan2(u,r)):(this.elements[0]=0,this.elements[2]=Math.atan2(-a,c))):"YZX"===n?(this.elements[2]=Math.asin(E(u,-1,1)),Math.abs(u)<.99999?(this.elements[0]=Math.atan2(-l,c),this.elements[1]=Math.atan2(-s,r)):(this.elements[0]=0,this.elements[1]=Math.atan2(h,d))):"XZY"===n?(this.elements[2]=Math.asin(-E(a,-1,1)),Math.abs(a)<.99999?(this.elements[0]=Math.atan2(f,c),this.elements[1]=Math.atan2(h,r)):(this.elements[0]=Math.atan2(-l,d),this.elements[1]=0)):o.a.warn("Euler fromMat4() unsupported order: "+n),this.updateDegrees(),this},fromQuat:function(t,n){return s.fromQuat(t),this.fromMat4(s,n)},updateDegrees:function(){return this._degX=this.elements[0]*c,this._degY=this.elements[1]*c,this._degZ=this.elements[2]*c,this},updateRadians:function(){return this.elements[0]=this._degX*a,this.elements[1]=this._degY*a,this.elements[2]=this._degZ*a,this},degX:{get:function(){return this._degX},set:function(t){this._degX=t,this.elements[0]=t*a}},degY:{get:function(){return this._degY},set:function(t){this._degY=t,this.elements[1]=t*a}},degZ:{get:function(){return this._degZ},set:function(t){this._degZ=t,this.elements[2]=t*a}},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this._degX=t*c}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this._degY=t*c}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this._degZ=t*c}}});n.a=f},function(t,n,e){"use strict";var r=e(0),i=e(1).a.create({className:"Vector2",isVector2:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.elements=r.vec2.fromValues(t,n)},copy:function(t){return r.vec2.copy(this.elements,t.elements),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],this},set:function(t,n){return r.vec2.set(this.elements,t,n),this},add:function(t,n){return n||(n=t,t=this),r.vec2.add(this.elements,t.elements,n.elements),this},subtract:function(t,n){return n||(n=t,t=this),r.vec2.subtract(this.elements,t.elements,n.elements),this},multiply:function(t,n){return n||(n=t,t=this),r.vec2.multiply(this.elements,t.elements,n.elements),this},divide:function(t,n){return n||(n=t,t=this),r.vec2.divide(this.elements,t.elements,n.elements),this},ceil:function(){return r.vec2.ceil(this.elements,this.elements),this},floor:function(){return r.vec2.floor(this.elements,this.elements),this},min:function(t,n){return n||(n=t,t=this),r.vec2.min(this.elements,t.elements,n.elements),this},max:function(t,n){return n||(n=t,t=this),r.vec2.max(this.elements,t.elements,n.elements),this},round:function(){return r.vec2.round(this.elements,this.elements),this},scale:function(t){return r.vec2.scale(this.elements,this.elements,t),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec2.scaleAndAdd(this.elements,n.elements,e.elements,t),this},distance:function(t,n){return n||(n=t,t=this),r.vec2.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec2.squaredDistance(t.elements,n.elements)},length:function(){return r.vec2.length(this.elements)},squaredLength:function(){return r.vec2.squaredLength(this.elements)},negate:function(){return r.vec2.negate(this.elements,this.elements),this},inverse:function(t){return t||(t=this),r.vec2.inverse(this.elements,t.elements),this},normalize:function(){return r.vec2.normalize(this.elements,this.elements),this},dot:function(t,n){return n||(n=t,t=this),r.vec2.dot(t.elements,n.elements)},cross:function(t,n){return n||(n=t,t=this),r.vec2.cross(this.elements,t.elements,n.elements),this},lerp:function(t,n){return r.vec2.lerp(this.elements,this.elements,t.elements,n),this},random:function(t){return r.vec2.random(this.elements,t),this},transformMat3:function(t){return r.vec2.transformMat3(this.elements,this.elements,t.elements),this},transformMat4:function(t){return r.vec2.transformMat4(this.elements,this.elements,t.elements),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec2.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec2.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t}}});i.prototype.sub=i.prototype.subtract,i.prototype.mul=i.prototype.multiply,i.prototype.div=i.prototype.divide,i.prototype.dist=i.prototype.distance,i.prototype.sqrDist=i.prototype.squaredDistance,i.prototype.len=i.prototype.length,i.prototype.sqrLen=i.prototype.squaredLength,n.a=i},,function(t,n,e){"use strict";var r=e(34),i=e.n(r),u=e(1),o=e(5),s=u.a.create({className:"Ray",isRay:!0,origin:{get:function(){return this._origin},set:function(t){this._origin=t,this._ray.origin=t.elements}},direction:{get:function(){return this._direction},set:function(t){this._direction=t,this._ray.direction=t.elements}},constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._ray=new i.a,this.origin=t.origin||new o.a(0,0,0),this.direction=t.direction||new o.a(0,0,-1)},set:function(t,n){return this.origin=t,this.direction=n,this},copy:function(t){this.origin.copy(t.origin),this.direction.copy(t.direction)},clone:function(){return new this.constructor({origin:this.origin.clone(),direction:this.direction.clone()})},fromCamera:function(t,n,e,r,i){t.isPerspectiveCamera?(t.worldMatrix.getTranslation(this.origin),this.direction.set(n,e,0),this.direction.copy(t.unprojectVector(this.direction,r,i)),this.direction.sub(this.origin).normalize()):t.isOrthographicCamera&&(this.origin.set(n,e,(t.near+t.far)/(t.near-t.far)),this.origin.copy(t.unprojectVector(this.origin,r,i)),this.direction.set(0,0,-1).transformDirection(t.worldMatrix).normalize())},transformMat4:function(t){this.origin.transformMat4(t),this.direction.transformDirection(t).normalize()},sortPoints:function(t,n){var e=this;n?t.sort((function(t,r){return e.squaredDistance(t[n])-e.squaredDistance(r[n])})):t.sort((function(t,n){return e.squaredDistance(t)-e.squaredDistance(n)}))},squaredDistance:function(t){return this.origin.squaredDistance(t)},distance:function(t){return this.origin.distance(t)},intersectsSphere:function(t,n){var e=this._ray.intersectsSphere(t,n);return this._getRes(e)},intersectsPlane:function(t,n){var e=this._ray.intersectsPlane(t,n);return this._getRes(e)},intersectsTriangle:function(t){var n=this._ray.intersectsTriangle(t);return this._getRes(n)},intersectsBox:function(t){var n=this._ray.intersectsBox(t);return this._getRes(n)},intersectsTriangleCell:function(t,n){var e=this._ray.intersectsTriangleCell(t,n);return this._getRes(e)},_getRes:function(t){return t?new o.a(t[0],t[1],t[2]):null}});n.a=s},function(t,n,e){"use strict";var r=e(0),i=e(1),u=e(9),o=e(5),s=i.a.create({Mixes:u.a,Extends:o.a,className:"Vector3Notifier",isVector3Notifier:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.elements=r.vec3.fromValues(t,n,e)},copy:function(t){return r.vec3.copy(this.elements,t.elements),this.fire("update"),this},clone:function(){var t=this.elements;return new this.constructor(t[0],t[1],t[2])},toArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return t[0+n]=e[0],t[1+n]=e[1],t[2+n]=e[2],t},fromArray:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements;return e[0]=t[n+0],e[1]=t[n+1],e[2]=t[n+2],this.fire("update"),this},set:function(t,n,e){return r.vec3.set(this.elements,t,n,e),this.fire("update"),this},add:function(t,n){return n||(n=t,t=this),r.vec3.add(this.elements,t.elements,n.elements),this.fire("update"),this},subtract:function(t,n){return n||(n=t,t=this),r.vec3.subtract(this.elements,t.elements,n.elements),this.fire("update"),this},multiply:function(t,n){return n||(n=t,t=this),r.vec3.multiply(this.elements,t.elements,n.elements),this.fire("update"),this},divide:function(t,n){return n||(n=t,t=this),r.vec3.divide(this.elements,t.elements,n.elements),this.fire("update"),this},ceil:function(){return r.vec3.ceil(this.elements,this.elements),this.fire("update"),this},floor:function(){return r.vec3.floor(this.elements,this.elements),this.fire("update"),this},min:function(t,n){return n||(n=t,t=this),r.vec3.min(this.elements,t.elements,n.elements),this.fire("update"),this},max:function(t,n){return n||(n=t,t=this),r.vec3.max(this.elements,t.elements,n.elements),this.fire("update"),this},round:function(){return r.vec3.round(this.elements,this.elements),this.fire("update"),this},scale:function(t){return r.vec3.scale(this.elements,this.elements,t),this.fire("update"),this},scaleAndAdd:function(t,n,e){return e||(e=n,n=this),r.vec3.scaleAndAdd(this.elements,n.elements,e.elements,t),this.fire("update"),this},distance:function(t,n){return n||(n=t,t=this),r.vec3.distance(t.elements,n.elements)},squaredDistance:function(t,n){return n||(n=t,t=this),r.vec3.squaredDistance(t.elements,n.elements)},length:function(){return r.vec3.length(this.elements)},squaredLength:function(){return r.vec3.squaredLength(this.elements)},negate:function(){return r.vec3.negate(this.elements,this.elements),this.fire("update"),this},inverse:function(t){return t||(t=this),r.vec3.inverse(this.elements,t.elements),this.fire("update"),this},normalize:function(){return r.vec3.normalize(this.elements,this.elements),this.fire("update"),this},dot:function(t,n){return n||(n=t,t=this),r.vec3.dot(t.elements,n.elements)},cross:function(t,n){return n||(n=t,t=this),r.vec3.cross(this.elements,t.elements,n.elements),this.fire("update"),this},lerp:function(t,n){return r.vec3.lerp(this.elements,this.elements,t.elements,n),this.fire("update"),this},hermite:function(t,n,e,i,u){return r.vec3.hermite(this.elements,t.elements,n.elements,e.elements,i.elements,u),this.fire("update"),this},bezier:function(t,n,e,i,u){return r.vec3.bezier(this.elements,t.elements,n.elements,e.elements,i.elements,u),this.fire("update"),this},random:function(t){return r.vec3.random(this.elements,t),this.fire("update"),this},transformMat3:function(t){return r.vec3.transformMat3(this.elements,this.elements,t.elements),this.fire("update"),this},transformMat4:function(t){return r.vec3.transformMat4(this.elements,this.elements,t.elements),this.fire("update"),this},transformDirection:function(t){var n=this.elements,e=t.elements,r=n[0],i=n[1],u=n[2];return n[0]=r*e[0]+i*e[4]+u*e[8],n[1]=r*e[1]+i*e[5]+u*e[9],n[2]=r*e[2]+i*e[6]+u*e[10],this.fire("update"),this},transformQuat:function(t){return r.vec3.transformQuat(this.elements,this.elements,t.elements),this.fire("update"),this},rotateX:function(t,n){return r.vec3.rotateX(this.elements,this.elements,t.elements,n),this.fire("update"),this},rotateY:function(t,n){return r.vec3.rotateY(this.elements,this.elements,t.elements,n),this.fire("update"),this},rotateZ:function(t,n){return r.vec3.rotateZ(this.elements,this.elements,t.elements,n),this.fire("update"),this},exactEquals:function(t,n){return n||(n=t,t=this),r.vec3.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),r.vec3.equals(t.elements,n.elements)},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this.fire("update")}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this.fire("update")}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this.fire("update")}}});n.a=s},,function(t,n,e){"use strict";var r=e(1),i=e(5),u=r.a.create({className:"Plane",isPlane:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new i.a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.normal=t,this.distance=n},copy:function(t){return this.normal.copy(t.normal),this.distance=t.distance,this},clone:function(){return new this.constructor(this.normal.clone(),this.distance)},set:function(t,n,e,r){return this.normal.set(t,n,e),this.distance=r,this},normalize:function(){var t=1/this.normal.length();return this.normal.scale(t),this.distance*=t,this},distanceToPoint:function(t){return this.normal.dot(t)+this.distance},projectPoint:function(t){return(new i.a).copy(this.normal).scale(-this.distanceToPoint(t)).add(t)}});n.a=u},function(t,n,e){"use strict";var r=e(1),i=e(5),u=new i.a,o=r.a.create({className:"Sphere",isSphere:!0,radius:0,constructor:function(t){Object.assign(this,t),this.center||(this.center=new i.a(0,0,0))},clone:function(){var t=new this.constructor;return t.copy(this),t},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},fromPoints:function(t){for(var n=this.center,e=0,r=0;r<t.length;r+=3){var i=t[r]-n.x,u=t[r+1]-n.y,o=t[r+2]-n.z;e=Math.max(i*i+u*u+o*o,e)}return this.radius=Math.sqrt(e),this},fromGeometryData:function(t){var n=this.center,e=0;return t.traverse((function(t){var r=t.x-n.x,i=t.y-n.y,u=t.z-n.z;e=Math.max(r*r+i*i+u*u,e)})),this.radius=Math.sqrt(e),this},transformMat4:function(t){this.center.transformMat4(t);var n=t.getScaling(u);return this.radius*=Math.max(n.x,n.y,n.z),this}});n.a=o},function(t,n,e){"use strict";var r,i=e(0),u=e(1),o=e(9),s=e(5),a=e(7),c=e(10),f=new s.a,h=new s.a,l=u.a.create({Mixes:o.a,Extends:a.a,className:"Matrix4Notifier",isMatrix4Notifier:!0,constructor:function(){this.elements=i.mat4.create()},copy:function(t){return i.mat4.copy(this.elements,t.elements),this.fire("update"),this},fromArray:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this.elements,r=0;r<16;r++)e[r]=t[n+r];return this.fire("update"),this},set:function(t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_){return i.mat4.set(this.elements,t,n,e,r,u,o,s,a,c,f,h,l,d,E,m,_),this.fire("update"),this},identity:function(){return i.mat4.identity(this.elements),this.fire("update"),this},transpose:function(){return i.mat4.transpose(this.elements,this.elements),this.fire("update"),this},invert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.invert(this.elements,t.elements),this.fire("update"),this},adjoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return i.mat4.adjoint(this.elements,t.elements),this.fire("update"),this},determinant:function(){return i.mat4.determinant(this.elements)},multiply:function(t,n){return n||(n=t,t=this),i.mat4.multiply(this.elements,t.elements,n.elements),this.fire("update"),this},premultiply:function(t){return this.multiply(t,this),this.fire("update"),this},translate:function(t){return i.mat4.translate(this.elements,this.elements,t.elements),this.fire("update"),this},scale:function(t){return i.mat4.scale(this.elements,this.elements,t.elements),this.fire("update"),this},rotate:function(t,n){return i.mat4.rotate(this.elements,this.elements,t,n.elements),this.fire("update"),this},rotateX:function(t){return i.mat4.rotateX(this.elements,this.elements,t),this.fire("update"),this},rotateY:function(t){return i.mat4.rotateY(this.elements,this.elements,t),this.fire("update"),this},rotateZ:function(t){return i.mat4.rotateZ(this.elements,this.elements,t),this.fire("update"),this},fromTranslation:function(t){return i.mat4.fromTranslation(this.elements,t.elements),this.fire("update"),this},fromScaling:function(t){return i.mat4.fromScaling(this.elements,t.elements),this.fire("update"),this},fromRotation:function(t,n){return i.mat4.fromRotation(this.elements,t,n.elements),this.fire("update"),this},fromXRotation:function(t){return i.mat4.fromXRotation(this.elements,t),this.fire("update"),this},fromYRotation:function(t){return i.mat4.fromYRotation(this.elements,t),this.fire("update"),this},fromZRotation:function(t){return i.mat4.fromZRotation(this.elements,t),this.fire("update"),this},fromRotationTranslation:function(t,n){return i.mat4.fromRotationTranslation(this.elements,t.elements,n.elements),this.fire("update"),this},getTranslation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new s.a;return i.mat4.getTranslation(t.elements,this.elements),t},getScaling:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new s.a;return i.mat4.getScaling(t.elements,this.elements),t},getRotation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new c.a;return i.mat4.getRotation(t.elements,this.elements),t},fromRotationTranslationScale:function(t,n,e){return i.mat4.fromRotationTranslationScale(this.elements,t.elements,n.elements,e.elements),this.fire("update"),this},fromRotationTranslationScaleOrigin:function(t,n,e,r,u){return i.mat4.fromRotationTranslationScaleOrigin(this.elements,t.elements,n.elements,e.elements,r.elements),u||this.fire("update"),this},fromQuat:function(t){return i.mat4.fromQuat(this.elements,t.elements),this.fire("update"),this},frustum:function(t,n,e,r,u,o){return i.mat4.frustum(this.elements,t,n,e,r,u,o),this.fire("update"),this},perspective:function(t,n,e,r){return i.mat4.perspective(this.elements,t,n,e,r),this.fire("update"),this},perspectiveFromFieldOfView:function(t,n,e){return i.mat4.perspectiveFromFieldOfView(this.elements,t,n,e),this.fire("update"),this},ortho:function(t,n,e,r,u,o){return i.mat4.ortho(this.elements,t,n,e,r,u,o),this.fire("update"),this},lookAt:function(t,n,e){return t.isVector3||(t=f.set(t.x,t.y,t.z)),n.isVector3||(n=h.set(n.x,n.y,n.z)),i.mat4.lookAt(this.elements,t.elements,n.elements,e.elements),this.fire("update"),this},targetTo:function(t,n,e){t.isVector3||(t=f.set(t.x,t.y,t.z)),n.isVector3||(n=h.set(n.x,n.y,n.z)),t=t.elements,n=n.elements,e=e.elements;var r=this.elements,i=t[0],u=t[1],o=t[2],s=e[0],a=e[1],c=e[2],l=i-n[0],d=u-n[1],E=o-n[2],m=l*l+d*d+E*E;m>0?(l*=m=1/Math.sqrt(m),d*=m,E*=m):E=1;var _=a*E-c*d,R=c*l-s*E,M=s*d-a*l;return(m=_*_+R*R+M*M)>0?(_*=m=1/Math.sqrt(m),R*=m,M*=m):(m=(_=a*E-c*d)*_+(R=c*l-(s+=1e-7)*E)*R+(M=s*d-a*l)*M,_*=m=1/Math.sqrt(m),R*=m,M*=m),r[0]=_,r[1]=R,r[2]=M,r[3]=0,r[4]=d*M-E*R,r[5]=E*_-l*M,r[6]=l*R-d*_,r[7]=0,r[8]=l,r[9]=d,r[10]=E,r[11]=0,r[12]=i,r[13]=u,r[14]=o,r[15]=1,this.fire("update"),this},frob:function(){return i.mat4.frob(this.elements)},add:function(t,n){return n||(n=t,t=this),i.mat4.add(this.elements,t.elements,n.elements),this.fire("update"),this},subtract:function(t,n){return n||(n=t,t=this),i.mat4.subtract(this.elements,t.elements,n.elements),this.fire("update"),this},exactEquals:function(t,n){return n||(n=t,t=this),i.mat4.exactEquals(t.elements,n.elements)},equals:function(t,n){return n||(n=t,t=this),i.mat4.equals(t.elements,n.elements)},compose:function(t,n,e,r){return r?this.fromRotationTranslationScaleOrigin(t,n,e,r):this.fromRotationTranslationScale(t,n,e),this},decompose:function(t,n,e,i){return this.getScaling(e),this.getTranslation(n),r||(r=new a.a),this.determinant()<0&&(e.x*=-1),r.copy(this),f.inverse(e),r.scale(f),t.fromMat4(r),i&&i.set(0,0,0),this}});n.a=l},function(t,n,e){"use strict";var r=e(1),i=e(9),u=e(6),o=e(13),s=u.a.DEG2RAD,a=u.a.RAD2DEG,c=r.a.create({Mixes:i.a,Extends:o.a,className:"EulerNotifier",isEulerNotifier:!0,constructor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;o.a.call(this,t,n,e)},updateDegrees:function(){return c.superclass.updateDegrees.call(this),this.fire("update"),this},updateRadians:function(){return c.superclass.updateRadians.call(this),this.fire("update"),this},degX:{get:function(){return this._degX},set:function(t){this._degX=t,this.elements[0]=t*s,this.fire("update")}},degY:{get:function(){return this._degY},set:function(t){this._degY=t,this.elements[1]=t*s,this.fire("update")}},degZ:{get:function(){return this._degZ},set:function(t){this._degZ=t,this.elements[2]=t*s,this.fire("update")}},x:{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t,this._degX=t*a,this.fire("update")}},y:{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t,this._degY=t*a,this.fire("update")}},z:{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t,this._degZ=t*a,this.fire("update")}}});n.a=c},function(t,n,e){"use strict";var r=e(1),i=e(19),u=r.a.create({className:"Frustum",isFrustum:!0,constructor:function(){this.planes=[];for(var t=6;t--;)this.planes.push(new i.a)},copy:function(t){var n=t.planes;return this.planes.forEach((function(t,e){t.copy(n[e])})),this},clone:function(){var t=new this.constructor;return t.copy(this),t},fromMatrix:function(t){var n=this.planes,e=t.elements,r=e[0],i=e[1],u=e[2],o=e[3],s=e[4],a=e[5],c=e[6],f=e[7],h=e[8],l=e[9],d=e[10],E=e[11],m=e[12],_=e[13],R=e[14],M=e[15];return n[0].set(o-r,f-s,E-h,M-m).normalize(),n[1].set(o+r,f+s,E+h,M+m).normalize(),n[2].set(o+i,f+a,E+l,M+_).normalize(),n[3].set(o-i,f-a,E-l,M-_).normalize(),n[4].set(o-u,f-c,E-d,M-R).normalize(),n[5].set(o+u,f+c,E+d,M+R).normalize(),this},intersectsSphere:function(t){for(var n=this.planes,e=t.center,r=-t.radius,i=0;i<6;i++){if(n[i].distanceToPoint(e)<r)return!1}return!0}});n.a=u},,,function(t,n){t.exports=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}},function(t,n,e){"use strict";e.r(n),e.d(n,"Color",(function(){return r.a})),e.d(n,"Euler",(function(){return i.a})),e.d(n,"EulerNotifier",(function(){return u.a})),e.d(n,"Frustum",(function(){return o.a})),e.d(n,"math",(function(){return s.a})),e.d(n,"Matrix3",(function(){return a.a})),e.d(n,"Matrix4",(function(){return c.a})),e.d(n,"Matrix4Notifier",(function(){return f.a})),e.d(n,"Plane",(function(){return h.a})),e.d(n,"Quaternion",(function(){return l.a})),e.d(n,"Ray",(function(){return d.a})),e.d(n,"Sphere",(function(){return E.a})),e.d(n,"SphericalHarmonics3",(function(){return A})),e.d(n,"Vector2",(function(){return T.a})),e.d(n,"Vector3",(function(){return _.a})),e.d(n,"Vector3Notifier",(function(){return v.a})),e.d(n,"Vector4",(function(){return p.a}));var r=e(8),i=e(13),u=e(22),o=e(23),s=e(6),a=e(11),c=e(7),f=e(21),h=e(19),l=e(10),d=e(16),E=e(20),m=e(1),_=e(5),R=new Float32Array(27),M=m.a.create({className:"SphericalHarmonics3",isSphericalHarmonics3:!0,Statics:{SH3_SCALE:[Math.sqrt(1/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(3/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(15/(4*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(5/(16*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(15/(16*Math.PI))]},constructor:function(){this.coefficients=[];for(var t=0;t<9;t++)this.coefficients.push(new _.a)},scale:function(t){return this.coefficients.forEach((function(n){n.scale(t)})),this},fromArray:function(t){return 9===t.length?this.coefficients.forEach((function(n,e){n.fromArray(t[e])})):27===t.length&&this.coefficients.forEach((function(n,e){n.fromArray(t,3*e)})),this},scaleForRender:function(){var t=M.SH3_SCALE;return this.coefficients.forEach((function(n,e){n.scale(t[e])})),this.scale(1/Math.PI),this},toArray:function(){return this.coefficients.forEach((function(t,n){t.toArray(R,3*n)})),R},clone:function(){var t=new this.constructor;return t.copy(this),t},copy:function(t){var n=t.coefficients;return this.coefficients.forEach((function(t,e){t.copy(n[e])})),this}}),A=M,T=e(14),v=e(17),p=e(12)},,,function(t,n){t.exports=function(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}},function(t,n){t.exports=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}},function(t,n){t.exports=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}},function(t,n){t.exports=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}},function(t,n,e){var r=e(88),i=e(90),u=e(91),o=e(94),s=e(33),a=[[0,0,0],[0,0,0],[0,0,0]],c=[0,0,0];function f(t,n){this.origin=t||[0,0,0],this.direction=n||[0,0,-1]}t.exports=f,f.prototype.set=function(t,n){this.origin=t,this.direction=n},f.prototype.copy=function(t){s(this.origin,t.origin),s(this.direction,t.direction)},f.prototype.clone=function(){var t=new f;return t.copy(this),t},f.prototype.intersectsSphere=function(t,n){return u(c,this.origin,this.direction,t,n)},f.prototype.intersectsPlane=function(t,n){return i(c,this.origin,this.direction,t,n)},f.prototype.intersectsTriangle=function(t){return r(c,this.origin,this.direction,t)},f.prototype.intersectsBox=function(t){return o(c,this.origin,this.direction,t)},f.prototype.intersectsTriangleCell=function(t,n){var e=t[0],r=t[1],i=t[2];return a[0]=n[e],a[1]=n[r],a[2]=n[i],this.intersectsTriangle(a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){var r=e(89),i=e(26),u=e(30),o=[0,0,0],s=[0,0,0],a=[0,0,0],c=[0,0,0],f=[0,0,0];t.exports=function(t,n,e,h){u(o,h[1],h[0]),u(s,h[2],h[0]),r(c,e,s);var l=i(o,c);if(l<1e-6)return null;u(a,n,h[0]);var d=i(a,c);if(d<0||d>l)return null;r(f,a,o);var E=i(e,f);if(E<0||d+E>l)return null;var m=i(s,f)/l;return t[0]=n[0]+m*e[0],t[1]=n[1]+m*e[1],t[2]=n[2]+m*e[2],t}},function(t,n){t.exports=function(t,n,e){var r=n[0],i=n[1],u=n[2],o=e[0],s=e[1],a=e[2];return t[0]=i*a-u*s,t[1]=u*o-r*a,t[2]=r*s-i*o,t}},function(t,n,e){var r=e(26),i=e(31),u=e(32),o=e(33);t.exports=function(t,n,e,a,c){var f=r(e,a);if(0!==f){var h=-(r(n,a)+c)/f;return h<0?null:(u(s,e,h),i(t,n,s))}return r(a,n)+c===0?o(t,n):null};var s=[0,0,0]},function(t,n,e){var r=e(92),i=e(26),u=e(30),o=e(93),s=e(32),a=e(31),c=[0,0,0];t.exports=function(t,n,e,f,h){u(c,f,n);var l=i(e,c);if(l<0)return null;o(c,n,e,l);var d=r(f,c),E=h*h;if(d>E)return null;return s(t,e,l-Math.sqrt(E-d)),a(t,t,n)}},function(t,n){t.exports=function(t,n){var e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}},function(t,n){t.exports=function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}},function(t,n){function e(t,n,e){for(var r=t.length,i=-1/0,u=1/0,o=0;o<r;o++){var s=(e[0][o]-t[o])/n[o],a=(e[1][o]-t[o])/n[o];if(s>a){var c=s;s=a,a=c}if(a<i||s>u)return 1/0;s>i&&(i=s),a<u&&(u=a)}return i>u?1/0:i}t.exports=function(t,n,r,i){var u=e(n,r,i);if(u===1/0)t=null;else{t=t||[];for(var o=0;o<n.length;o++)t[o]=n[o]+r[o]*u}return t},t.exports.distance=e},,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n);var r=e(27);Object.assign(r,{version:"1.18.0"}),"undefined"!=typeof window&&(window.Hilo3dMath=r),n.default=r}]),"undefined"!=typeof window&&window.Hilo3d&&"object"==typeof exports&&"object"==typeof module&&(module.exports=window.Hilo3d);
|