ThreeJS-Webpack-ES6-Boilerp.../build/js/2.app.js

13 lines
565 KiB
JavaScript
Raw Normal View History

2020-03-17 22:37:47 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(t,e,n){"use strict";function r(){}n.r(e),n.d(e,"WebGLRenderTargetCube",function(){return Jn}),n.d(e,"WebGLRenderTarget",function(){return Yn}),n.d(e,"WebGLRenderer",function(){return Bs}),n.d(e,"ShaderLib",function(){return yr}),n.d(e,"UniformsLib",function(){return vr}),n.d(e,"UniformsUtils",function(){return ur}),n.d(e,"ShaderChunk",function(){return rr}),n.d(e,"FogExp2",function(){return Ns}),n.d(e,"Fog",function(){return zs}),n.d(e,"Scene",function(){return Us}),n.d(e,"Sprite",function(){return ks}),n.d(e,"LOD",function(){return js}),n.d(e,"SkinnedMesh",function(){return Ws}),n.d(e,"Skeleton",function(){return qs}),n.d(e,"Bone",function(){return Xs}),n.d(e,"Mesh",function(){return ya}),n.d(e,"LineSegments",function(){return Zs}),n.d(e,"LineLoop",function(){return Qs}),n.d(e,"Line",function(){return Js}),n.d(e,"Points",function(){return $s}),n.d(e,"Group",function(){return Ko}),n.d(e,"VideoTexture",function(){return tc}),n.d(e,"DataTexture",function(){return Zn}),n.d(e,"DataTexture3D",function(){return Ia}),n.d(e,"CompressedTexture",function(){return ec}),n.d(e,"CubeTexture",function(){return Oa}),n.d(e,"CanvasTexture",function(){return nc}),n.d(e,"DepthTexture",function(){return rc}),n.d(e,"Texture",function(){return qn}),n.d(e,"AnimationLoader",function(){return Xu}),n.d(e,"CompressedTextureLoader",function(){return Yu}),n.d(e,"DataTextureLoader",function(){return Ju}),n.d(e,"CubeTextureLoader",function(){return Qu}),n.d(e,"TextureLoader",function(){return Ku}),n.d(e,"ObjectLoader",function(){return zh}),n.d(e,"MaterialLoader",function(){return Ih}),n.d(e,"BufferGeometryLoader",function(){return Bh}),n.d(e,"DefaultLoadingManager",function(){return ju}),n.d(e,"LoadingManager",function(){return Vu}),n.d(e,"ImageLoader",function(){return Zu}),n.d(e,"ImageBitmapLoader",function(){return qh}),n.d(e,"FontLoader",function(){return Zh}),n.d(e,"FileLoader",function(){return qu}),n.d(e,"Loader",function(){return Qh}),n.d(e,"LoaderUtils",function(){return Dh}),n.d(e,"Cache",function(){return ku}),n.d(e,"AudioLoader",function(){return yl}),n.d(e,"SpotLightShadow",function(){return Sh}),n.d(e,"SpotLight",function(){return Th}),n.d(e,"PointLight",function(){return Ah}),n.d(e,"RectAreaLight",function(){return Oh}),n.d(e,"HemisphereLight",function(){return Mh}),n.d(e,"DirectionalLightShadow",function(){return Ph}),n.d(e,"DirectionalLight",function(){return Ch}),n.d(e,"AmbientLight",function(){return Rh}),n.d(e,"LightShadow",function(){return Eh}),n.d(e,"Light",function(){return _h}),n.d(e,"StereoCamera",function(){return xl}),n.d(e,"PerspectiveCamera",function(){return ts}),n.d(e,"OrthographicCamera",function(){return Lh}),n.d(e,"CubeCamera",function(){return bl}),n.d(e,"ArrayCamera",function(){return es}),n.d(e,"Camera",function(){return $o}),n.d(e,"AudioListener",function(){return _l}),n.d(e,"PositionalAudio",function(){return El}),n.d(e,"AudioContext",function(){return vl}),n.d(e,"AudioAnalyser",function(){return Sl}),n.d(e,"Audio",function(){return Ml}),n.d(e,"VectorKeyframeTrack",function(){return Gu}),n.d(e,"StringKeyframeTrack",function(){return Uu}),n.d(e,"QuaternionKeyframeTrack",function(){return zu}),n.d(e,"NumberKeyframeTrack",function(){return Bu}),n.d(e,"ColorKeyframeTrack",function(){return Du}),n.d(e,"BooleanKeyframeTrack",function(){return Iu}),n.d(e,"PropertyMixer",function(){return Tl}),n.d(e,"PropertyBinding",function(){return pd}),n.d(e,"KeyframeTrack",function(){return Ou}),n.d(e,"AnimationUtils",function(){return Au}),n.d(e,"AnimationObjectGroup",function(){return fd}),n.d(e,"AnimationMixer",function(){return gd}),n.d(e,"AnimationClip",function(){return Fu}),n.d(e,"Uniform",function(){return vd}),n.d(e,"InstancedBufferGeometry",function(){return yd}),n.d(e,"BufferGeometry",function(){return _i}),n.d(e,"Geometry",function(){return Kr}),n.d(e,"InterleavedBufferAttribute",function(){return Fs}),n.d(e,"InstancedInterleavedBuffer",function(){return xd}),n.d(e,"InterleavedBuffer",function(){return Gs}),n.d(e,"InstancedBufferAttribute",function(){ret
2019-01-29 21:54:53 +00:00
//!\ DECLARE ALIAS AFTER assign prototype !
2020-03-17 22:37:47 +00:00
Object.assign(Lu.prototype,{beforeStart_:Lu.prototype.copySampleValue_,afterEnd_:Lu.prototype.copySampleValue_}),Pu.prototype=Object.assign(Object.create(Lu.prototype),{constructor:Pu,DefaultSettings_:{endingStart:Ve,endingEnd:Ve},intervalChanged_:function(t,e,n){var r=this.parameterPositions,i=t-2,a=t+1,o=r[i],s=r[a];if(void 0===o)switch(this.getSettings_().endingStart){case je:i=t,o=2*e-n;break;case We:o=e+r[i=r.length-2]-r[i+1];break;default:i=t,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case je:a=t,s=2*n-e;break;case We:s=n+r[a=1]-r[0];break;default:a=t-1,s=e}var c=.5*(n-e),u=this.valueSize;this._weightPrev=c/(e-o),this._weightNext=c/(s-n),this._offsetPrev=i*u,this._offsetNext=a*u},interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,c=s-o,u=this._offsetPrev,h=this._offsetNext,l=this._weightPrev,d=this._weightNext,p=(n-e)/(r-e),f=p*p,m=f*p,g=-l*m+2*l*f-l*p,v=(1+l)*m+(-1.5-2*l)*f+(-.5+l)*p+1,y=(-1-d)*m+(1.5+d)*f+.5*p,x=d*m-d*f,b=0;b!==o;++b)i[b]=g*a[u+b]+v*a[c+b]+y*a[s+b]+x*a[h+b];return i}}),Cu.prototype=Object.assign(Object.create(Lu.prototype),{constructor:Cu,interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,c=s-o,u=(n-e)/(r-e),h=1-u,l=0;l!==o;++l)i[l]=a[c+l]*h+a[s+l]*u;return i}}),Ru.prototype=Object.assign(Object.create(Lu.prototype),{constructor:Ru,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Ou,{toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Au.convertArray(t.times,Array),values:Au.convertArray(t.values,Array)};var r=t.getInterpolation();r!==t.DefaultInterpolation&&(e.interpolation=r)}return e.type=t.ValueTypeName,e}}),Object.assign(Ou.prototype,{constructor:Ou,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:He,InterpolantFactoryMethodDiscrete:function(t){return new Ru(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Cu(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new Pu(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e;switch(t){case Fe:e=this.InterpolantFactoryMethodDiscrete;break;case He:e=this.InterpolantFactoryMethodLinear;break;case ke:e=this.InterpolantFactoryMethodSmooth}if(void 0!==e)return this.createInterpolant=e,this;var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Fe;case this.InterpolantFactoryMethodLinear:return He;case this.InterpolantFactoryMethodSmooth:return ke}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,n=0,r=e.length;n!==r;++n)e[n]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,n=0,r=e.length;n!==r;++n)e[n]*=t;return this},trim:function(t,e){for(var n=this.times,r=n.length,i=0,a=r-1;i!==r&&n[i]<t;)++i;for(;-1!==a&&n[a]>e;)--a;if(++a,0!==i||a!==r){a<=i&&(i=(a=Math.max(a,1))-1);var o=this.getValueSize();this.times=Au.arraySlice(n,i,a),this.values=Au.arraySlice(this.values,i*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var a=null,o=0;o!==i;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),t=!1;break}if(null!==a&&s<a){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),t=!1;break}a=s}if(void 0!==r&&Au.isTypedArray(r)){o=0;for(var c=r.length;o!==c;++o){var u=r[o];if(isNaN(u)){consol
2019-01-29 21:54:53 +00:00
//!\ DECLARE ALIAS AFTER assign prototype !
2020-03-17 22:37:47 +00:00
Object.assign(pd.prototype,{_getValue_unbound:pd.prototype.getValue,_setValue_unbound:pd.prototype.setValue}),Object.assign(fd.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,c=void 0,u=0,h=arguments.length;u!==h;++u){var l=arguments[u],d=l.uuid,p=r[d];if(void 0===p){p=e++,r[d]=p,t.push(l);for(var f=0,m=s;f!==m;++f)o[f].push(new pd(l,i[f],a[f]))}else if(p<n){c=t[p];var g=--n,v=t[g];t[r[v.uuid]=p]=v,t[r[d]=g]=l;for(f=0,m=s;f!==m;++f){var y=o[f],x=y[g],b=y[p];y[p]=x,void 0===b&&(b=new pd(l,i[f],a[f])),y[g]=b}}else t[p]!==c&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,i=r.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],c=s.uuid,u=n[c];if(void 0!==u&&e<=u){var h=e++,l=t[h];t[n[l.uuid]=u]=l,t[n[c]=h]=s;for(var d=0,p=i;d!==p;++d){var f=r[d],m=f[h],g=f[u];f[u]=m,f[h]=g}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._bindings,a=i.length,o=0,s=arguments.length;o!==s;++o){var c=arguments[o].uuid,u=r[c];if(void 0!==u)if(delete r[c],u<n){var h=--n,l=t[h],d=t[v=--e];t[r[l.uuid]=u]=l,t[r[d.uuid]=h]=d,t.pop();for(var p=0,f=a;p!==f;++p){var m=(y=i[p])[h],g=y[v];y[u]=m,y[h]=g,y.pop()}}else{var v;t[r[(d=t[v=--e]).uuid]=u]=d,t.pop();for(p=0,f=a;p!==f;++p){var y;(y=i[p])[u]=y[v],y.pop()}}}this.nCachedObjects_=n},subscribe_:function(t,e){var n=this._bindingsIndicesByPath,r=n[t],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,c=s.length,u=this.nCachedObjects_,h=new Array(c);r=i.length,n[t]=r,a.push(t),o.push(e),i.push(h);for(var l=u,d=s.length;l!==d;++l){var p=s[l];h[l]=new pd(p,t,e)}return h},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];a[e[t[o]]=n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}),Object.assign(md.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){var r=this._clip.duration,i=t._clip.duration,a=i/r,o=r/i;t.warp(1,a,e),this.warp(o,1,e)}return this},crossFadeTo:function(t,e,n){return t.crossFadeFrom(this,e,n)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,n){var r=this._mixer,i=r.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=r._lendControlInterpolan
2019-01-29 21:54:53 +00:00
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
2020-03-17 22:37:47 +00:00
* @version v4.2.8+1e68dce6
2019-01-29 21:54:53 +00:00
*/
2020-03-17 22:37:47 +00:00
t.exports=function(){"use strict";function r(t){var e=typeof t;return t!==null&&(e==="object"||e==="function")}function c(t){return typeof t==="function"}var t=void 0;if(Array.isArray){t=Array.isArray}else{t=function(t){return Object.prototype.toString.call(t)==="[object Array]"}}var n=t,i=0,e=void 0,a=void 0,o=function t(e,n){b[i]=e;b[i+1]=n;i+=2;if(i===2){if(a){a(w)}else{M()}}};function s(t){a=t}function u(t){o=t}var h=typeof window!=="undefined"?window:undefined,l=h||{},d=l.MutationObserver||l.WebKitMutationObserver,p=typeof self==="undefined"&&typeof rt!=="undefined"&&{}.toString.call(rt)==="[object process]",f=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function m(){return function(){return rt.nextTick(w)}}function g(){if(typeof e!=="undefined"){return function(){e(w)}}return x()}function v(){var t=0;var e=new d(w);var n=document.createTextNode("");e.observe(n,{characterData:true});return function(){n.data=t=++t%2}}function y(){var t=new MessageChannel;t.port1.onmessage=w;return function(){return t.port2.postMessage(0)}}function x(){var t=setTimeout;return function(){return t(w,1)}}var b=new Array(1e3);function w(){for(var t=0;t<i;t+=2){var e=b[t];var n=b[t+1];e(n);b[t]=undefined;b[t+1]=undefined}i=0}function _(){try{var t=Function("return this")().require("vertx");e=t.runOnLoop||t.runOnContext;return g()}catch(t){return x()}}var M=void 0;if(p){M=m()}else if(d){M=v()}else if(f){M=y()}else if(h===undefined&&"function"==="function"){M=_()}else{M=x()}function E(t,e){var n=this;var r=new this.constructor(A);if(r[T]===undefined){X(r)}var i=n._state;if(i){var a=arguments[i-1];o(function(){return V(i,r,a,n._result)})}else{H(n,r,t,e)}return r}function S(t){var e=this;if(t&&typeof t==="object"&&t.constructor===e){return t}var n=new e(A);z(n,t);return n}var T=Math.random().toString(36).substring(2);function A(){}var L=void 0,P=1,C=2;function R(){return new TypeError("You cannot resolve a promise with itself")}function O(){return new TypeError("A promises callback cannot return that same promise.")}function I(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function D(t,r,i){o(function(e){var n=false;var t=I(i,r,function(t){if(n){return}n=true;if(r!==t){z(e,t)}else{G(e,t)}},function(t){if(n){return}n=true;F(e,t)},"Settle: "+(e._label||" unknown promise"));if(!n&&t){n=true;F(e,t)}},t)}function B(e,t){if(t._state===P){G(e,t._result)}else if(t._state===C){F(e,t._result)}else{H(t,undefined,function(t){return z(e,t)},function(t){return F(e,t)})}}function N(t,e,n){if(e.constructor===t.constructor&&n===E&&e.constructor.resolve===S){B(t,e)}else{if(n===undefined){G(t,e)}else if(c(n)){D(t,e,n)}else{G(t,e)}}}function z(e,t){if(e===t){F(e,R())}else if(r(t)){var n=void 0;try{n=t.then}catch(t){F(e,t);return}N(e,t,n)}else{G(e,t)}}function U(t){if(t._onerror){t._onerror(t._result)}k(t)}function G(t,e){if(t._state!==L){return}t._result=e;t._state=P;if(t._subscribers.length!==0){o(k,t)}}function F(t,e){if(t._state!==L){return}t._state=C;t._result=e;o(U,t)}function H(t,e,n,r){var i=t._subscribers;var a=i.length;t._onerror=null;i[a]=e;i[a+P]=n;i[a+C]=r;if(a===0&&t._state){o(k,t)}}function k(t){var e=t._subscribers;var n=t._state;if(e.length===0){return}var r=void 0,i=void 0,a=t._result;for(var o=0;o<e.length;o+=3){r=e[o];i=e[o+n];if(r){V(n,r,i,a)}else{i(a)}}t._subscribers.length=0}function V(t,e,n,r){var i=c(n),a=void 0,o=void 0,s=true;if(i){try{a=n(r)}catch(t){s=false;o=t}if(e===a){F(e,O());return}}else{a=r}if(e._state!==L){}else if(i&&s){z(e,a)}else if(s===false){F(e,o)}else if(t===P){G(e,a)}else if(t===C){F(e,a)}}function j(n,t){try{t(function t(e){z(n,e)},function t(e){F(n,e)})}catch(t){F(n,t)}}var W=0;function q(){return W++}function X(t){t[T]=W++;t._state=undefined;t._result=undefined;t._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var J=function(){function t(t,e){this._instanceConstructor=t;this.promise=new t(A);if(!this.promise[T]){X(this.promise)}if(n(e)){this.length=e.length;this._remaining=e.length;this._result=new Array(this.le