From 590d0c73a695d076faebb474308ff553159ec985 Mon Sep 17 00:00:00 2001 From: Alexander Buzin Date: Thu, 1 Jun 2017 17:58:00 +0300 Subject: [PATCH] 2.0.0-beta.9 --- build/whitestorm.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/whitestorm.js b/build/whitestorm.js index cb8e28f71..21fb407e8 100644 --- a/build/whitestorm.js +++ b/build/whitestorm.js @@ -1,2 +1,2 @@ -/*! WhitestormJS Framework v2.0.0-beta.8 */ +/*! WhitestormJS Framework v2.0.0-beta.9 */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("three")):"function"==typeof define&&define.amd?define(["three"],e):"object"==typeof exports?exports.WHS=e(require("three")):t.WHS=e(t.THREE)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=204)}([function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(33),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:e.defaults,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.instructions;l()(this,e);var o=d()(this,(e.__proto__||s()(e)).call(this,t,n,r));if(o.params.build){var i=o.build(o.params);if(!i)throw new k.a("MeshComponent",".build() method should return a THREE.Object3D or a Promise resolved with THREE.Object3D.",o);i instanceof a.a?i.then(function(t){o.native=t,o.wrap()}):(o.native=i,o.wrap())}return o}return g()(e,t),m()(e,null,[{key:"custom",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.Mesh;return function(e){function r(){return l()(this,r),d()(this,(r.__proto__||s()(r)).apply(this,arguments))}return g()(r,e),m()(r,[{key:"build",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,r=this.applyBridge({geometry:t,material:e.material}),o=r.geometry,i=r.material;return this.applyBridge({mesh:new n(o,i)}).mesh}}]),r}(e)}},{key:"create",value:function(t,n,r){return new(e.custom(t,r))(n)}}]),m()(e,[{key:"build",value:function(){throw new k.a("MeshComponent","Instance should have it's own .build().",this)}},{key:"wrap",value:function(){var t=this;return new a.a(function(e){var n=t.params,r=n.position,o=n.rotation,i=n.scale,a=n.shadow;t.position.set(r.x,r.y,r.z),t.rotation.set(o.x,o.y,o.z),t.scale.set(i.x,i.y,i.z),t.native.castShadow=a.cast,t.native.receiveShadow=a.receive,t.applyBridge({onWrap:1}),e(t)})}},{key:"copy",value:function(t){var n=this;return p()(e.prototype.__proto__||s()(e.prototype),"copy",this).call(this,t,function(){n.position.copy(t.position),n.rotation.copy(t.rotation),n.quaternion.copy(t.quaternion)})}},{key:"clone",value:function(t,e){var n=new this.constructor({build:!1}).copy(this);return t&&(n.geometry=n.geometry.clone()),e&&(n.material=n.material.clone()),n}}]),e}(w.a),M.defaults=o()({},w.a.defaults,{build:!0,geometry:{},material:!1,shadow:{cast:!0,receive:!0},position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0},scale:{x:1,y:1,z:1}}),M.instructions={position:["x","y","z"],rotation:["x","y","z"],scale:["x","y","z"]},S=O))||S},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(2),i=r(o),a=n(149),u=r(a);e.default=function t(e,n,r){null===e&&(e=Function.prototype);var o=(0,u.default)(e,n);if(void 0===o){var a=(0,i.default)(e);return null===a?void 0:t(a,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(58)("wks"),o=n(38),i=n(11).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports={default:n(156),__esModule:!0}},function(t,e,n){var r=n(25);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports={default:n(163),__esModule:!0}},function(t,e,n){t.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11),o=n(9),i=n(28),a=n(21),u=function(t,e,n){var s,c,l,f=t&u.F,d=t&u.G,h=t&u.S,p=t&u.P,v=t&u.B,m=t&u.W,y=d?o:o[e]||(o[e]={}),g=y.prototype,b=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(s in n)(c=!f&&b&&void 0!==b[s])&&s in y||(l=c?b[s]:n[s],y[s]=d&&"function"!=typeof b[s]?n[s]:v&&c?i(l,r):m&&b[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):p&&"function"==typeof l?i(Function.call,l):l,p&&((y.virtual||(y.virtual={}))[s]=l,t&u.R&&g&&!g[s]&&a(g,s,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(13),o=n(78),i=n(61),a=Object.defineProperty;e.f=n(15)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(79),o=n(50);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(14),a=n.n(i),u=n(2),s=n.n(u),c=n(0),l=n.n(c),f=n(1),d=n.n(f),h=n(4),p=n.n(h),v=n(8),m=n.n(v),y=n(3),g=n.n(y),b=n(26),w=n(40),_=n(22);n.d(e,"a",function(){return O});var k,x,S,M,O=(k=n.i(w.a)(n.i(w.b)("position","rotation","quaternion","target")))((M=S=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaults,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.instructions;l()(this,e);var o=p()(this,(e.__proto__||s()(e)).call(this,t,n,r));if(o.params.build){var i=o.build(o.params);if(!i)throw new _.a("LightComponent",".build() method should return a THREE.Object3D or a Promise resolved with THREE.Object3D.",o);i instanceof a.a?i.then(function(t){o.native=t}):o.native=i,o.wrap()}return o}return g()(e,t),d()(e,[{key:"build",value:function(){throw new _.a("MeshComponent","Instance should have it's own .build().",this)}},{key:"wrap",value:function(){var t=this;return new a.a(function(e){t.defer(function(){var n=t.params,r=n.position,o=n.rotation;t.position.set(r.x,r.y,r.z),t.rotation.set(o.x,o.y,o.z),t.applyBridge({onWrap:1}),e(t)})})}},{key:"wrapShadow",value:function(){var t=this.native,e=this.params.shadow;t.castShadow=e.cast,t.shadow.mapSize.width=e.mapSize.width,t.shadow.mapSize.height=e.mapSize.height,t.shadow.bias=e.bias,t.shadow.radius=e.radius;var n=t.shadow.camera,r=e.camera;n.near=r.near,n.far=r.far,n.fov=r.fov,n.left=r.left,n.right=r.right,n.top=r.top,n.bottom=r.bottom}},{key:"copy",value:function(t){var n=this;return m()(e.prototype.__proto__||s()(e.prototype),"copy",this).call(this,t,function(){n.target&&n.target.copy(t.target()),n.position.copy(t.position),n.rotation.copy(t.rotation),n.quaternion.copy(t.quaternion)})}},{key:"clone",value:function(){return new this.constructor({build:!1}).copy(this)}}]),e}(b.a),S.defaults=o()({},b.a.defaults,{build:!0,shadow:{cast:!0,bias:0,radius:1,mapSize:{width:1024,height:1024},camera:{near:!0,far:400,fov:90,top:200,bottom:-200,left:-200,right:200}},position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0}}),S.instructions={position:["x","y","z"],rotation:["x","y","z"],scale:["x","y","z"]},x=M))||x},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(17),o=n(36);t.exports=n(15)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";(function(t){var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(4),s=n.n(u),c=n(3),l=n.n(c);n.d(e,"a",function(){return f}),n.d(e,"c",function(){return d}),n.d(e,"b",function(){return h});var f=function(e){function n(e,r,i){a()(this,n);var u=s()(this,(n.__proto__||o()(n)).call(this,"@"+e+": "+r)),c=u.stack.split("\n");return c.splice(1,2),u.stack=c.join("\n"),t||console.error("Component:",i),u.name="CompositionError",u}return l()(n,e),n}(Error),d=function(e){function n(e,r,i){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];a()(this,n);var c=s()(this,(n.__proto__||o()(n)).call(this,"@"+e+": "+r)),l=c.stack.split("\n");return l.splice(1,2),c.stack=l.join("\n"),t||console.error("Active module:",i),!t&&u&&console.error("Dependency published by module:",u),c.name="DependencyError",c}return l()(n,e),n}(Error),h=function(e){function n(e,r,i){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];a()(this,n);var c=s()(this,(n.__proto__||o()(n)).call(this,"@"+e+": "+r)),l=c.stack.split("\n");return l.splice(1,2),c.stack=l.join("\n"),t||console.error("Component:",dependencyModule),!t&&u&&console.error("Active module:",u),c.name="ManagerError",c}return l()(n,e),n}(Error)}).call(e,n(203))},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i);n.d(e,"a",function(){return u});var u=function(){function t(e){o()(this,t),this.uniqName=void 0===e?"pass_"+(65536*(1+Math.random())|0).toString(16).substring(1):e,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}return a()(t,[{key:"setSize",value:function(t,e){}},{key:"render",value:function(t,e,n,r,o){console.error("Pass: .render() must be implemented in derived pass.")}},{key:"name",get:function(){return this.uniqName}}]),t}()},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(14),a=n.n(i),u=n(2),s=n.n(u),c=n(0),l=n.n(c),f=n(1),d=n.n(f),h=n(4),p=n.n(h),v=n(3),m=n.n(v),y=n(74),g=n(69),b=n(39),w=n(22);n.d(e,"a",function(){return x});var _,k,x=(k=_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaults,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.instructions;l()(this,e);var i=p()(this,(e.__proto__||s()(e)).call(this));return i._wait=[],i.modules=[],i.children=[],i.params=n.i(y.a)(n.i(y.c)(t,o),r),i.params.manager&&(i.manager=new b.a),i.modules=i.params.modules,i.integrateModules(),i}return m()(e,t),d()(e,[{key:"wait",value:function(t){return t&&this._wait.push(t),a.a.all(this._wait)}},{key:"defer",value:function(t){var e=this;this.isDeffered?this.wait().then(function(){return t(e)}):t(this)}},{key:"updateParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.params=n.i(y.a)(t,this.params),this.params}},{key:"clone",value:function(){return new this.constructor(this.params).copy(this)}},{key:"copy",value:function(t,e){return this.params=o()({},t.params),t.native&&(this.native=t.native.clone(t.params)),e&&e(),this.integrateModules(t),this}},{key:"add",value:function(t){var e=this;return t.parent=this,new a.a(function(n,r){e.defer(function(){var o=t.native;o||r();var i=e.applyBridge({onAdd:t}).onAdd,u=function(){e.native.add(o),e.children.push(t),n(t)};i instanceof a.a?i.then(u):u()})})}},{key:"remove",value:function(t){t.parent=null,this.native.remove(t.native)}},{key:"addTo",value:function(t){return t.add(this)}},{key:"isDeffered",get:function(){return this._wait.length>0}},{key:"manager",get:function(){if(this._manager)return this._manager;throw new w.b("Component","ModuleManager is not used in this component. 'manager' parameter should be set as 'true'",this)},set:function(t){this._manager=t}},{key:"native",get:function(){return this._native},set:function(t){return this._native=t,this._native.component=this,this._native}}]),e}(g.a),_.defaults={modules:[],manager:!0},_.instructions={},k)},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports={}},function(t,e,n){var r=n(84),o=n(52);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(14),a=n.n(i),u=n(2),s=n.n(u),c=n(0),l=n.n(c),f=n(1),d=n.n(f),h=n(4),p=n.n(h),v=n(8),m=n.n(v),y=n(3),g=n.n(y),b=n(26),w=n(40),_=n(22);n.d(e,"a",function(){return O});var k,x,S,M,O=(k=n.i(w.a)(n.i(w.b)("position","rotation","quaternion","target")))((M=S=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaults,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.instructions;l()(this,e);var o=p()(this,(e.__proto__||s()(e)).call(this,t,n,r));if(o.params.build){var i=o.build(o.params);if(!i)throw new _.a("CameraComponent",".build() method should return a THREE.Object3D or a Promise resolved with THREE.Object3D.",o);i instanceof a.a?i.then(function(t){o.native=t}):o.native=i,o.wrap()}return o}return g()(e,t),d()(e,[{key:"build",value:function(){throw new _.a("CameraComponent","Instance should have it's own .build().",this)}},{key:"wrap",value:function(){var t=this;return new a.a(function(e){t.defer(function(){t.position.set(t.params.position.x,t.params.position.y,t.params.position.z),t.rotation.set(t.params.rotation.x,t.params.rotation.y,t.params.rotation.z),t.applyBridge({onWrap:1}),e(t)})})}},{key:"copy",value:function(t){var n=this;return m()(e.prototype.__proto__||s()(e.prototype),"copy",this).call(this,t,function(){n.target&&n.target.copy(t.target()),n.position.copy(t.position),n.rotation.copy(t.rotation),n.quaternion.copy(t.quaternion)})}},{key:"clone",value:function(){return new this.constructor({build:!1}).copy(this)}}]),e}(b.a),S.defaults=o()({},b.a.defaults,{build:!0,position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0}}),S.instructions={position:["x","y","z"],rotation:["x","y","z"],scale:["x","y","z"]},x=M))||x},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),u=n(5);n.n(u);n.d(e,"a",function(){return s});var s=function(){function t(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o()(this,t),this.func=e,this.clock=n?new u.Clock:null,this.enabled=!1}return a()(t,[{key:"start",value:function(t){this.enabled||(t&&t.addLoop(this),this.clock&&this.clock.start(),this.enabled=!0)}},{key:"stop",value:function(t){this.enabled&&(this.clock&&this.clock.stop(),this.enabled=!1,t&&t.removeLoop(this))}},{key:"execute",value:function(){return this.func(this.clock)}}]),t}()},function(t,e,n){t.exports={default:n(158),__esModule:!0}},function(t,e){t.exports=!0},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(17).f,o=n(20),i=n(10)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";var r=n(33),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(22);n.d(e,"a",function(){return l});var l=function(){function t(e){a()(this,t),this.handler=e,this.currentModule=null,this.store={},this.updateMap={}}return s()(t,[{key:"active",value:function(t){this.currentModule=t}},{key:"reset",value:function(){this.currentModule=null}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this.updateMap[e]?this.updateMap[e].push(t[e]):this.updateMap[e]=[t[e]]}},{key:"add",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.store[t]&&this.store[t][2].immutable)throw new c.c("ModuleManager","Dependency '"+t+"' is immutable and already used by another module",this.currentModule,this.store[t][1]);if(this.store[t]=[e,this.currentModule,r],r.alias&&o()(this.handler,r.alias,{get:function(){return n.store[t][0]},set:function(e){if(n.store[t]&&n.store[t][2].immutable)throw new c.c("ModuleManager","Dependency '"+t+"' is immutable and already used by another module",n.currentModule,n.store[t][1]);if(n.store[t][0]=e,n.updateMap[t])for(var r=0,o=n.updateMap[t].length;r1&&void 0!==arguments[1]&&arguments[1];if(!this.store[t])throw new c.c("ModuleManager","Module requires '"+t+"' dependency",this.currentModule);return e?this.store[t][1]:this.store[t][0]}},{key:"has",value:function(t){return Boolean(this.store[t])}},{key:"set",value:function(t,e){this.add(t,e,this.store[t][2]||{})}}]),t}()},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};a()(this,t),this.params=o()({fov:75,near:1,far:1e3,position:{x:0,y:0,z:0}},e),this.camera=new c.a({camera:{fov:this.params.fov,aspect:this.params.aspect,near:this.params.near,far:this.params.far},modules:[],position:{x:this.params.position.x,y:this.params.position.y,z:this.params.position.z}})}return s()(t,[{key:"integrate",value:function(t){this.add(t.camera)}},{key:"manager",value:function(t){t.add("camera",this.camera,{alias:"$camera"})}}]),t}()},function(t,e,n){"use strict";var r=n(12),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u);n.d(e,"a",function(){return c});var c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,t),this.params=o()({container:document.body},e),this.element=window.document.createElement("div"),this.element.className="whs",this.element.style.width="inherit",this.element.style.height="inherit",this.element.style.position="relative"}return s()(t,[{key:"manager",value:function(t){t.add("element",this.element,{alias:"$element"}),t.add("container",this.params.container,{alias:"$container"})}},{key:"integrate",value:function(t){t.params.container.appendChild(t.element)}}]),t}()},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i);n.d(e,"a",function(){return u});var u=function(){function t(){o()(this,t)}return a()(t,[{key:"manager",value:function(t){this.element=t.get("renderer").domElement}},{key:"patchEvents",value:function(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).forEach(function(n){return t.addEventListener(n,function(t){return e.emit(n,t)})})}},{key:"integrate",value:function(t){var e=t.element,n=t.patchEvents;n(e,this,["mousemove","mouseup","contextmenu","mousedown","click","wheel","touchstart","touchend","touchmove","keydown"]),n(e,this,["keydown","keyup","keypress"])}}]),t}()},function(t,e,n){"use strict";var r=n(12),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(5),l=(n.n(c),n(32));n.d(e,"a",function(){return h});var f,d,h=(d=f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shadow:!1},r=n.shadow;a()(this,t),this.params=o()({width:window.innerWidth,height:window.innerHeight,resolution:new c.Vector2(1,1),pixelRatio:window.devicePixelRatio,bgColor:0,bgOpacity:1,renderer:{}},e);var i=this.params,u=i.bgColor,s=i.bgOpacity,l=i.renderer,f=i.pixelRatio,d=i.width,h=i.height,p=i.resolution;this.renderer=new c.WebGLRenderer(l),this.applyAdditional("shadow",r),this.renderer.setClearColor(u,s),f&&this.renderer.setPixelRatio(f),this.setSize(Number(d*p.x).toFixed(),Number(h*p.y).toFixed())}return s()(t,[{key:"applyAdditional",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&t.additional[e].apply(this,[this.renderer])}},{key:"integrateRenderer",value:function(t,e,n){var r=this;return this.scene=e,this.camera=n,this.renderLoop=new l.a(function(){return r.renderer.render(r.scene,r.camera)}),this.attachToCanvas(t),this.renderLoop}},{key:"setSize",value:function(t,e){this.renderer&&this.renderer.setSize(t,e)}},{key:"attachToCanvas",value:function(t){var e=this.renderer.domElement;t.appendChild(e),e.style.width="100%",e.style.height="100%"}},{key:"stop",value:function(){this.renderLoop.stop()}},{key:"play",value:function(){this.renderLoop.start()}},{key:"manager",value:function(t){var e=this;this.renderLoop=this.integrateRenderer(t.get("element"),t.get("scene"),t.get("camera").native),t.update({element:function(t){e.attachToCanvas(t)},scene:function(t){e.scene=t},camera:function(t){e.camera=t.native}}),t.add("renderer",this.renderer,{alias:"$rendering"})}},{key:"integrate",value:function(t){t.renderLoop.start(this)}},{key:"dispose",value:function(t){t.renderLoop.stop(this),t.renderer.forceContextLoss()}}]),t}(),f.additional={shadow:function(t){t.shadowMap.enabled=!0}},d)},function(t,e,n){"use strict";var r=n(12),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u);n.d(e,"a",function(){return c});var c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,t),this.params=o()({auto:!0},e)}return s()(t,[{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.camera.native.aspect=t/e,this.camera.native.updateProjectionMatrix(),this.rendering&&this.rendering.setSize(t,e)}},{key:"trigger",value:function(){var t=this.container,e=t.offsetWidth,n=t.offsetHeight,r=this.resolution;this.setSize(Number(e*r.x).toFixed(),Number(n*r.y).toFixed())}},{key:"addAutoresize",value:function(){this.container=this.getContainer(),this.resolution=this.getResolution(),this.params.auto&&window.addEventListener("resize",this.trigger.bind(this))}},{key:"manager",value:function(t){this.rendering=t.get("renderer"),this.camera=t.get("camera"),this.getResolution=function(){return t.get("renderer",!0).params.resolution},this.getContainer=function(){return t.get("container")},this.addAutoresize()}}]),t}()},function(t,e,n){"use strict";var r=n(14),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(5);n.n(c);n.d(e,"a",function(){return l});var l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a()(this,t),this.scene=e?null:new c.Scene}return s()(t,[{key:"manager",value:function(t){t.add("scene",this.scene,{alias:"$scene"})}},{key:"integrate",value:function(t){this.children=[],this.add=function(e){var n=this;return e.parent=this,new o.a(function(r,i){e.defer(function(){var a=e.native;a||i();var u=n.applyBridge({onAdd:e}).onAdd,s=function(){t.scene.add(a),n.children.push(e),r(e)};u instanceof o.a?u.then(s):s()})})},this.remove=function(e){e.parent=null,t.scene.remove(e.native)},this.setScene=function(e){t.scene=e,this.manager.set("scene",e)}}}]),t}()},function(t,e,n){"use strict";(function(t){var r=n(202),o=n.n(r);n.d(e,"a",function(){return i});var i={window:"undefined"==typeof window?t:window};t.performance={now:o.a}}).call(e,n(91))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(25),o=n(11).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(13),o=n(182),i=n(52),a=n(57)("IE_PROTO"),u=function(){},s=function(){var t,e=n(51)("iframe"),r=i.length;for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(""),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(35),o=n(36),i=n(18),a=n(61),u=n(20),s=n(78),c=Object.getOwnPropertyDescriptor;e.f=n(15)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(16),o=n(9),i=n(24);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(58)("keys"),o=n(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(11),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(50);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(25);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(11),o=n(9),i=n(34),a=n(63),u=n(17).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(10)},function(t,e,n){"use strict";var r=n(187)(!0);n(80)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(190);for(var r=n(11),o=n(21),i=n(29),a=n(10)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=u[s],l=r[c],f=l&&l.prototype;f&&!f[a]&&o(f,a,c),i[c]=i.Array}},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(31)),y=n(48);n.d(e,"a",function(){return w});var g,b,w=(b=g=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({camera:new v.PerspectiveCamera(t.camera.fov,t.camera.aspect,t.camera.near,t.camera.far)}).camera}}]),e}(m.a),g.defaults=o()({},m.a.defaults,{camera:{near:1,far:1e3,fov:45,aspect:y.a.window.innerWidth/y.a.window.innerHeight}}),b)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(14),a=n.n(i),u=n(2),s=n.n(u),c=n(0),l=n.n(c),f=n(4),d=n.n(f),h=n(8),p=n.n(h),v=n(1),m=n.n(v),y=n(3),g=n.n(y),b=n(5),w=(n.n(b),n(7));n.d(e,"a",function(){return x});var _,k,x=(k=_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l()(this,e),d()(this,(e.__proto__||s()(e)).call(this,t,e.defaults,e.instructions,!1))}return g()(e,t),m()(e,null,[{key:"filter",value:function(t,e){return function t(n){return n.children.forEach(function(r,o){r.children&&t(r),e(r)||n.children.splice(o,1)}),n}(t)}}]),m()(e,[{key:"build",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new a.a(function(e){n.texturePath&&n.laoder.setTexturePath(n.texturePath),n.loader.load(n.url,function(){n.onLoad.apply(n,arguments);var r=t.applyBridge({mesh:n.parser.apply(n,arguments)}).mesh,o=t.applyBridge({geometry:r.geometry,material:n.useCustomMaterial?n.material:r.material}),i=o.geometry,a=o.material;r.geometry&&(r.geometry=i),r.material&&(r.material=a),e(r)},n.onProgress,n.onError)});return p()(e.prototype.__proto__||s()(e.prototype),"wait",this).call(this,r),r}}]),e}(w.a),_.defaults=o()({},w.a.defaults,{url:"",loader:new b.JSONLoader,onLoad:function(){},onProgress:function(){},onError:function(){},texturePath:null,useCustomMaterial:!1,parser:function(t,e){return new b.Mesh(t,e)}}),_.instructions=o()({},w.a.instructions),k)},function(t,e,n){"use strict";var r=n(14),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(48),m=n(69),y=n(39);n.d(e,"a",function(){return g});var g=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this));return n.simulate=!1,n.updateEnabled=!0,n.loops=[],n.manager=new y.a(n),n.modules=t,n.integrateModules(),n}return p()(e,t),l()(e,[{key:"start",value:function(){function t(){if(e(t),r)for(var o=0,i=n.length;o0&&void 0!==arguments[0]?arguments[0]:{},e=this.modules,n=0,r=e.length;n1&&void 0!==arguments[1])||arguments[1];if(t){if(e&&this.modules.push(t),this.manager&&this.manager.active(t),t.manager&&this.manager)t.manager(this.manager);else if(t.manager)throw new m.b("Component","Module requires ModuleManager that is turned off for this component",this,t);return t.integrate&&t.integrate.bind(this)(t),t}}},{key:"applyModuleOnce",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!this.modules.some(function(e){return e instanceof t}))return this.applyModule(e(),n)}},{key:"disposeModules",value:function(){for(;this.modules.length;)this.disposeModule(this.modules[0])}},{key:"disposeModule",value:function(t){if(t)return this.modules.splice(this.modules.indexOf(t),1),t.dispose&&t.dispose.bind(this)(t),t}},{key:"module",value:function(t){return this.applyModule(t),this}}]),e}(v.a)},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(4),l=n.n(c),f=n(3),d=n.n(f),h=n(23);n.d(e,"a",function(){return p}),n.d(e,"b",function(){return v});var p=function(t){function e(t,n,r){a()(this,e);var i=l()(this,(e.__proto__||o()(e)).call(this,t));return i.scene=n,i.camera=r,i.clear=!0,i.needsSwap=!1,i.inverse=!1,i}return d()(e,t),s()(e,[{key:"render",value:function(t,e,n){var r=t.context,o=t.state;o.buffers.color.setMask(!1),o.buffers.depth.setMask(!1),o.buffers.color.setLocked(!0),o.buffers.depth.setLocked(!0);var i=this.inverse?0:1,a=this.inverse?1:0;o.buffers.stencil.setTest(!0),o.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),o.buffers.stencil.setFunc(r.ALWAYS,i,4294967295),o.buffers.stencil.setClear(a),t.render(this.scene,this.camera,n,this.clear),t.render(this.scene,this.camera,e,this.clear),o.buffers.color.setLocked(!1),o.buffers.depth.setLocked(!1),o.buffers.stencil.setFunc(r.EQUAL,1,4294967295),o.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP)}}]),e}(h.a),v=function(t){function e(t){a()(this,e);var n=l()(this,(e.__proto__||o()(e)).call(this,t));return n.needsSwap=!1,n}return d()(e,t),s()(e,[{key:"render",value:function(t){t.state.buffers.stencil.setTest(!1)}}]),e}(h.a)},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(4),l=n.n(c),f=n(3),d=n.n(f),h=n(23);n.d(e,"a",function(){return p});var p=function(t){function e(t,n,r,i,u,s){a()(this,e);var c=l()(this,(e.__proto__||o()(e)).call(this,t));return c.scene=n,c.camera=r,c.overrideMaterial=i,c.clearColor=u,c.clearAlpha=void 0===s?0:s,c.clear=!0,c.needsSwap=!1,c}return d()(e,t),s()(e,[{key:"render",value:function(t,e,n){var r=void 0,o=void 0,i=t.autoClear;t.autoClear=!1,this.scene.overrideMaterial=this.overrideMaterial,this.clearColor&&(r=t.getClearColor().getHex(),o=t.getClearAlpha(),t.setClearColor(this.clearColor,this.clearAlpha)),t.render(this.scene,this.camera,this.renderToScreen?null:n,this.clear),this.clearColor&&t.setClearColor(r,o),this.scene.overrideMaterial=null,t.autoClear=i}}]),e}(h.a)},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(4),l=n.n(c),f=n(3),d=n.n(f),h=n(5),p=(n.n(h),n(23));n.d(e,"a",function(){return v});var v=function(t){function e(t,n,r){a()(this,e);var i=l()(this,(e.__proto__||o()(e)).call(this,t));return i.textureID=void 0===r?"tDiffuse":r,n instanceof h.ShaderMaterial?(i.uniforms=n.uniforms,i.material=n):n&&(i.uniforms=h.UniformsUtils.clone(n.uniforms),i.material=new h.ShaderMaterial({defines:n.defines||{},uniforms:i.uniforms,vertexShader:n.vertexShader,fragmentShader:n.fragmentShader})),i.camera=new h.OrthographicCamera(-1,1,1,-1,0,1),i.scene=new h.Scene,i.quad=new h.Mesh(new h.PlaneBufferGeometry(2,2),null),i.scene.add(i.quad),i}return d()(e,t),s()(e,[{key:"render",value:function(t,e,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.quad.material=this.material,this.renderToScreen?t.render(this.scene,this.camera):t.render(this.scene,this.camera,e,this.clear)}}]),e}(p.a)},function(t,e,n){"use strict";var r=n(12),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(32),l=n(44);n.d(e,"a",function(){return f});var f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a()(this,t),this.params=o()({controls:!1,fix:function(t){return t},update:function(t){this.controls.update(t.getDelta())}},e),this.controls=this.params.controls,this.update=this.params.update,this.patchEvents=n}return s()(t,null,[{key:"from",value:function(e){return new t({controls:e})}}]),s()(t,[{key:"setControls",value:function(t){return this.controls=t,this}},{key:"setUpdate",value:function(t){return this.update=t,this}},{key:"integrate",value:function(t){t.patchEvents&&this.applyModuleOnce(l.a,function(){return new l.a}),t.updateLoop=new c.a(t.update.bind(t)).start(this)}}]),t}()},function(t,e,n){"use strict";var r=n(145);n.d(e,"a",function(){return r.a});var o=n(146);n.d(e,"b",function(){return o.a}),n.d(e,"c",function(){return o.b}),n.d(e,"d",function(){return o.c})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(153),i=r(o),a=n(152),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){var r=n(27),o=n(10)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){t.exports=n(11).document&&document.documentElement},function(t,e,n){t.exports=!n(15)&&!n(24)(function(){return 7!=Object.defineProperty(n(51)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(34),o=n(16),i=n(85),a=n(21),u=n(20),s=n(29),c=n(175),l=n(37),f=n(83),d=n(10)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,v,m,y,g){c(n,e,v);var b,w,_,k=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==m,M=!1,O=t.prototype,P=O[d]||O["@@iterator"]||m&&O[m],E=P||k(m),j=m?S?k("entries"):E:void 0,C="Array"==e?O.entries||P:P;if(C&&(_=f(C.call(new t)))!==Object.prototype&&(l(_,x,!0),r||u(_,d)||a(_,d,p)),S&&P&&"values"!==P.name&&(M=!0,E=function(){return P.call(this)}),r&&!g||!h&&!M&&O[d]||a(O,d,E),s[e]=E,s[x]=p,m)if(b={values:S?E:k("values"),keys:y?E:k("keys"),entries:j},g)for(w in b)w in O||i(O,w,b[w]);else o(o.P+o.F*(h||M),e,b);return b}},function(t,e,n){var r=n(18),o=n(82).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(84),o=n(52).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=n(60),i=n(57)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(20),o=n(18),i=n(168)(!1),a=n(57)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){t.exports=n(21)},function(t,e,n){var r,o,i,a=n(28),u=n(171),s=n(77),c=n(51),l=n(11),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},g=function(t){y.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(27)(f)?r=function(t){f.nextTick(a(y,t,1))}:p?(o=new p,i=o.port2,o.port1.onmessage=g,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",g,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:h}},function(t,e,n){var r=n(59),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(76),o=n(10)("iterator"),i=n(29);t.exports=n(9).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e){},function(t,e){t.exports=function(t){var e={},n=[];t=t||this,t.on=function(t,n,r){(e[t]=e[t]||[]).push([n,r])},t.off=function(t,r){t||(e={});for(var o=e[t]||n,i=o.length=r?o.length:0;i--;)r==o[i][0]&&o.splice(i,1)},t.emit=function(t){for(var r,o=e[t]||n,i=o.length>0?o.slice(0,o.length):o,a=0;r=i[a++];)r[0].apply(r[1],n.slice.call(arguments,1))}}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(125);n.d(e,"Component",function(){return r.a}),n.d(e,"MeshComponent",function(){return r.b}),n.d(e,"LightComponent",function(){return r.c}),n.d(e,"CameraComponent",function(){return r.d}),n.d(e,"App",function(){return r.e}),n.d(e,"TestApp",function(){return r.f}),n.d(e,"Loop",function(){return r.g}),n.d(e,"ModuleManager",function(){return r.h});var o=n(102);n.d(e,"AmbientLight",function(){return o.a}),n.d(e,"DirectionalLight",function(){return o.b}),n.d(e,"HemisphereLight",function(){return o.c}),n.d(e,"PointLight",function(){return o.d}),n.d(e,"SpotLight",function(){return o.e}),n.d(e,"AreaLight",function(){return o.f});var i=n(95);n.d(e,"CubeCamera",function(){return i.a}),n.d(e,"OrthographicCamera",function(){return i.b}),n.d(e,"PerspectiveCamera",function(){return i.c});var a=n(123);n.d(e,"Box",function(){return a.a}),n.d(e,"Cylinder",function(){return a.b}),n.d(e,"Dodecahedron",function(){return a.c}),n.d(e,"Extrude",function(){return a.d}),n.d(e,"Icosahedron",function(){return a.e}),n.d(e,"Lathe",function(){return a.f}),n.d(e,"Line",function(){return a.g}),n.d(e,"Importer",function(){return a.h}),n.d(e,"Octahedron",function(){return a.i}),n.d(e,"Parametric",function(){return a.j}),n.d(e,"Plane",function(){return a.k}),n.d(e,"Polyhedron",function(){return a.l}),n.d(e,"Ring",function(){return a.m}),n.d(e,"Shape",function(){return a.n}),n.d(e,"Sphere",function(){return a.o}),n.d(e,"Tetrahedron",function(){return a.p}),n.d(e,"Text",function(){return a.q}),n.d(e,"Torus",function(){return a.r}),n.d(e,"Torusknot",function(){return a.s}),n.d(e,"Tube",function(){return a.t}),n.d(e,"Group",function(){return a.u});var u=n(127);n.d(e,"ClearPass",function(){return u.a}),n.d(e,"MaskPass",function(){return u.b}),n.d(e,"ClearMaskPass",function(){return u.c}),n.d(e,"Pass",function(){return u.d}),n.d(e,"RenderPass",function(){return u.e}),n.d(e,"ShaderPass",function(){return u.f}),n.d(e,"TexturePass",function(){return u.g}),n.d(e,"CopyShader",function(){return u.h});var s=n(74);n.d(e,"extend",function(){return s.a}),n.d(e,"instruct",function(){return s.b}),n.d(e,"transformData",function(){return s.c}),n.d(e,"toArray",function(){return s.d});var c=n(138);n.d(e,"ElementModule",function(){return c.a}),n.d(e,"CameraModule",function(){return c.b}),n.d(e,"RenderingModule",function(){return c.c}),n.d(e,"SceneModule",function(){return c.d}),n.d(e,"ResizeModule",function(){return c.e}),n.d(e,"PostProcessorModule",function(){return c.f}),n.d(e,"VirtualMouseModule",function(){return c.g}),n.d(e,"EventsPatchModule",function(){return c.h}),n.d(e,"ControlsModule",function(){return c.i}),n.d(e,"FogModule",function(){return c.j});var l=n(136);n.d(e,"OrbitControlsModule",function(){return l.a});var f=n(141);n.d(e,"DynamicGeometryModule",function(){return f.a}),n.d(e,"TextureModule",function(){return f.b});var d=n(144);n.d(e,"BasicAppPreset",function(){return d.a});var h=n(126);n.d(e,"Model",function(){return h.a})},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(31));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({camera:new v.CubeCamera(t.camera.near,t.camera.far,t.camera.cubeResolution)}).camera}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{camera:{near:1,far:1e3,cubeResolution:128}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(31)),y=n(48);n.d(e,"a",function(){return w});var g,b,w=(b=g=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({camera:new v.OrthographicCamera(t.camera.left,t.camera.right,t.camera.top,t.camera.bottom,t.camera.near,t.camera.far)}).camera}}]),e}(m.a),g.defaults=o()({},m.a.defaults,{camera:{near:1,far:1e3,left:y.a.window.innerWidth/-2,right:y.a.window.innerWidth/2,top:y.a.window.innerHeight/2,bottom:y.a.window.innerHeight/-2}}),b)},function(t,e,n){"use strict";var r=n(93);n.d(e,"a",function(){return r.a});var o=n(94);n.d(e,"b",function(){return o.a});var i=n(66);n.d(e,"c",function(){return i.a})},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(19));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({light:new v.AmbientLight(t.light.color,t.light.intensity)}).light}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{light:{color:16777215,intensity:1}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(19));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({light:new v.RectAreaLight(t.light.color,t.light.intensity,t.light.width,t.light.height)}).light}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{light:{color:16777215,intensity:1,width:10,height:10}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(19));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults));return n.wrapShadow(),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({light:new v.DirectionalLight(t.light.color,t.light.intensity)}).light}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{light:{color:16777215,intensity:1}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(19));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({light:new v.HemisphereLight(t.light.skyColor,t.light.groundColor,t.light.intensity)}).light}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{light:{skyColor:16777215,groundColor:16777215,intensity:1}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(19));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults));return n.wrapShadow(),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({light:new v.PointLight(t.light.color,t.light.intensity,t.light.distance,t.light.decay)}).light}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{light:{color:16777215,intensity:1,distance:100,decay:1}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(19));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults));return n.wrapShadow(),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.applyBridge({light:new v.SpotLight(t.light.color,t.light.intensity,t.light.distance,t.light.angle,t.light.exponent,t.light.decay)}).light}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{light:{color:16777215,intensity:1,distance:100,angle:Math.PI/3,exponent:0,decay:1}}),g)},function(t,e,n){"use strict";var r=n(96);n.d(e,"a",function(){return r.a});var o=n(98);n.d(e,"b",function(){return o.a});var i=n(99);n.d(e,"c",function(){return i.a});var a=n(100);n.d(e,"d",function(){return a.a});var u=n(101);n.d(e,"e",function(){return u.a});var s=n(97);n.d(e,"f",function(){return s.a})},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(7));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new v.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer?v.BoxBufferGeometry:v.BoxGeometry)(t.geometry.width,t.geometry.height,t.geometry.depth,t.geometry.widthSegments,t.geometry.heightSegments,t.geometry.depthSegments)}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{geometry:{width:1,height:1,depth:1,widthSegments:1,heightSegments:1,depthSegments:1}}),y.instructions=o()({},m.a.instructions,{geometry:["width","height","depth","widthSegments","heightSegments","depthSegements"]}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buffer&&!t.softbody?y.CylinderBufferGeometry:y.CylinderGeometry,n=new e(t.geometry.radiusTop,t.geometry.radiusBottom,t.geometry.height,t.geometry.radiusSegments,t.geometry.heightSegments,t.geometry.openEnded,t.geometry.thetaStart,t.geometry.thetaLength);return t.softbody&&this.proccessSoftbodyGeometry(n),n}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radiusTop:0,radiusBottom:1,height:1,radiusSegments:32,heightSegments:1,openEnded:!1,thetaStart:0,thetaLength:2*Math.PI}}),b.instructions=o()({},g.a.instructions,{geometry:["radiusTop","radiusBottom","height","radiusSegments","heightSegments","openEnded","thetaStart","thetaLength"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.DodecahedronBufferGeometry:y.DodecahedronGeometry)(t.geometry.radius,t.geometry.detail)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radius:1,detail:0}}),b.instructions=o()({},g.a.instructions,{geometry:["radius","detail"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new y.ExtrudeGeometry(t.geometry.shapes,t.geometry.options);return t.buffer?(new y.BufferGeometry).fromGeometry(e):e}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{shapes:[],options:{}}}),b.instructions=o()({},g.a.instructions,{geometry:["shapes","options"]}),w)},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(4),l=n.n(c),f=n(3),d=n.n(f),h=n(5),p=(n.n(h),n(7)),v=n(26);n.d(e,"a",function(){return m});var m=function(t){function e(){a()(this,e);for(var t=l()(this,(e.__proto__||o()(e)).call(this,{})),n=arguments.length,r=Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.IcosahedronBufferGeometry:y.IcosahedronGeometry)(t.geometry.radius,t.geometry.detail)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radius:1,detail:0}}),b.instructions=o()({},g.a.instructions,{geometry:["radius","detail"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.LatheBufferGeometry:y.LatheGeometry)(t.geometry.points)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{points:[]}}),b.instructions=o()({},g.a.instructions,{geometry:["points"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(7));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(t){return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new v.Line(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buffer?new v.BufferGeometry:new v.Geometry;if(t.geometry.curve===!1)return e.vertices.push(t.geometry.start),e.vertices.push(t.geometry.end),e;if(t.buffer){for(var n=t.geometry.curve.getPoints(t.geometry.points),r=new Float32Array(3*n.length),o=0,i=n.length;o0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.OctahedronBufferGeometry:y.OctahedronGeometry)(t.geometry.radius,t.geometry.detail)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radius:1,detail:0}}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(7));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new v.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?v.ParametricBufferGeometry:v.ParametricGeometry)(t.geometry.func,t.geometry.slices,t.geometry.stacks)}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{geometry:{func:function(t,e){return new v.Vector3(t,e,0)},slices:10,stacks:10}}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buffer||t.softbody?y.PlaneBufferGeometry:y.PlaneGeometry,n=new e(t.geometry.width,t.geometry.height,t.geometry.wSegments,t.geometry.hSegments);return t.softbody&&this.proccessSoftbodyGeometry(n),n}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{width:10,height:10,wSegments:1,hSegments:1}}),b.instructions=o()({},g.a.instructions,{geometry:["width","height","wSegments","hSegments"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return x});var b,w,_=[-1,-1,-1,1,-1,-1,1,1,-1,-1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1],k=[2,1,0,0,3,2,0,4,7,7,3,0,0,1,5,5,4,0,1,2,6,6,5,1,2,3,7,7,6,2,4,5,6,6,7,4],x=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.PolyhedronBufferGeometry:y.PolyhedronGeometry)(t.geometry.verticesOfCube,t.geometry.indicesOfFaces,t.geometry.radius,t.geometry.detail)}}]),e}(g.a),b.verticesOfCube=_,b.indicesOfFaces=k,b.defaults=o()({},g.a.defaults,{geometry:{verticesOfCube:_,indicesOfFaces:k,radius:6,detail:2},physics:{create:!1}}),b.instructions=o()({},g.a.instructions,{geometry:["verticesOfCube","indicesOfFaces","radius","detail"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.RingBufferGeometry:y.RingGeometry)(t.geometry.innerRadius,t.geometry.outerRadius,t.geometry.thetaSegments,t.geometry.phiSegments,t.geometry.thetaStart,t.geometry.thetaLength)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{innerRadius:0,outerRadius:50,thetaSegments:8,phiSegments:8,thetaStart:0,thetaLength:2*Math.PI}}),b.defaults=o()({},g.a.defaults,{geometry:["innerRadius","outerRadius","thetaSegments","phiSegments","thetaStart","thetaLength"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.ShapeBufferGeometry:y.ShapeGeometry)(t.geometry.shapes)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{shapes:[]}}),b.instructions=o()({},g.a.instructions,{geometry:["shapes"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(7));n.d(e,"a",function(){return b});var y,g,b=(g=y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s()(this,e),d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions))}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new v.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buffer&&!t.softbody?v.SphereBufferGeometry:v.SphereGeometry,n=new e(t.geometry.radius,t.geometry.widthSegments,t.geometry.heightSegments);return t.softbody&&this.proccessSoftbodyGeometry(n),n}}]),e}(m.a),y.defaults=o()({},m.a.defaults,{geometry:{radius:1,widthSegments:8,heightSegments:6}}),y.instructions=o()({},m.a.instructions,{geometry:["radius","widthSegments","heightSegments"]}),g)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.TetrahedronBufferGeometry:y.TetrahedronGeometry)(t.geometry.radius,t.geometry.detail)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radius:1,detail:0},physics:{create:!1}}),b.instructions=o()({},g.a.instructions,{geometry:["radius","detail"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(14),a=n.n(i),u=n(2),s=n.n(u),c=n(0),l=n.n(c),f=n(1),d=n.n(f),h=n(4),p=n.n(h),v=n(3),m=n.n(v),y=n(8),g=n.n(y),b=n(5),w=(n.n(b),n(7));n.d(e,"a",function(){return x});var _,k,x=(k=_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,e);var n=p()(this,(e.__proto__||s()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),g()(e.prototype.__proto__||s()(e.prototype),"wrap",n).call(n)),n}return m()(e,t),d()(e,[{key:"build",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new a.a(function(e){b.FontLoader.load(n.geometry.parameters.font,function(r){n.geometry.parameters.font=r;var o=t.applyBridge({geometry:new b.TextGeometry(n.geometry.text,n.geometry.parameters),material:n.material}),i=o.geometry,a=o.material;e(t.applyBridge({mesh:new b.Mesh(i,a)}).mesh)})});return g()(e.prototype.__proto__||s()(e.prototype),"wait",this).call(this,r),r}}]),e}(w.a),_.defaults=o()({},w.a.defaults,{geometry:{text:"Hello World!",loader:new b.FontLoader,parameters:{size:12,height:50,curveSegments:12,font:new b.Font,bevelEnabled:!1,bevelThickness:10,bevelSize:8}}}),_.instructions=o()({},w.a.instructions,{geometry:["text","parameters"]}),k)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new y.TorusGeometry(t.geometry.radius,t.geometry.tube,t.geometry.radialSegments,t.geometry.tubularSegments,t.geometry.arc)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radius:100,tube:40,radialSegments:8,tubularSegments:6,arc:2*Math.PI}}),b.instructions=o()({},g.a.instructions,{geometry:["radius","tube","radialSegments","tubularSegments","arc"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(t.buffer&&!t.softbody?y.TorusKnotBufferGeometry:y.TorusKnotGeometry)(t.geometry.radius,t.geometry.tube,t.geometry.radialSegments,t.geometry.tubularSegments,t.geometry.p,t.geometry.q)}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{radius:100,tube:40,radialSegments:64,tubularSegments:8,p:2,q:3}}),b.instructions=o()({},g.a.instructions,{geometry:["radius","tube","radialSegments","tubularSegments","p","q"]}),w)},function(t,e,n){"use strict";var r=n(6),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(8),m=n.n(v),y=n(5),g=(n.n(y),n(7));n.d(e,"a",function(){return _});var b,w,_=(w=b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,e);var n=d()(this,(e.__proto__||a()(e)).call(this,t,e.defaults,e.instructions));return t.build&&(n.build(t),m()(e.prototype.__proto__||a()(e.prototype),"wrap",n).call(n)),n}return p()(e,t),l()(e,[{key:"build",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params,e=this.applyBridge({geometry:this.buildGeometry(t),material:t.material}),n=e.geometry,r=e.material;return this.applyBridge({mesh:new y.Mesh(n,r)}).mesh}},{key:"buildGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buffer&&!t.softbody?y.TubeBufferGeometry:y.TubeGeometry,n=new e(t.geometry.path,t.geometry.segments,t.geometry.radius,t.geometry.radiusSegments,t.geometry.closed);return t.softbody&&this.proccessSoftbodyGeometry(n),n}}]),e}(g.a),b.defaults=o()({},g.a.defaults,{geometry:{path:new y.LineCurve3(new y.Vector3(0,0,0),new y.Vector3(0,0,1)),segments:20,radius:2,radiusSegments:8,closed:!1}}),b.instructions=o()({},g.a.instructions,{geometry:["path","segments","radius","radiusSegments","closed"]}),w)},function(t,e,n){"use strict";var r=n(103);n.d(e,"a",function(){return r.a});var o=n(104);n.d(e,"b",function(){return o.a});var i=n(105);n.d(e,"c",function(){return i.a});var a=n(106);n.d(e,"d",function(){return a.a});var u=n(108);n.d(e,"e",function(){return u.a});var s=n(109);n.d(e,"f",function(){return s.a});var c=n(110);n.d(e,"g",function(){return c.a});var l=n(67);n.d(e,"h",function(){return l.a});var f=n(111);n.d(e,"i",function(){return f.a});var d=n(112);n.d(e,"j",function(){return d.a});var h=n(113);n.d(e,"k",function(){return h.a});var p=n(114);n.d(e,"l",function(){return p.a});var v=n(115);n.d(e,"m",function(){return v.a});var m=n(116);n.d(e,"n",function(){return m.a});var y=n(117);n.d(e,"o",function(){return y.a});var g=n(118);n.d(e,"p",function(){return g.a});var b=n(119);n.d(e,"q",function(){return b.a});var w=n(120);n.d(e,"r",function(){return w.a});var _=n(121);n.d(e,"s",function(){return _.a});var k=n(122);n.d(e,"t",function(){return k.a});var x=n(107);n.d(e,"u",function(){return x.a})},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(4),s=n.n(u),c=n(3),l=n.n(c),f=n(43),d=n(47),h=n(42),p=n(45),v=n(46),m=n(68);n.d(e,"a",function(){return y});var y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a()(this,e);var n=[new f.a,new d.a,new h.a,new p.a({},{shadow:!0}),new v.a].concat(t);return s()(this,(e.__proto__||o()(e)).call(this,n))}return l()(e,t),e}(m.a)},function(t,e,n){"use strict";var r=n(26);n.d(e,"a",function(){return r.a});var o=n(7);n.d(e,"b",function(){return o.a});var i=n(19);n.d(e,"c",function(){return i.a});var a=n(31);n.d(e,"d",function(){return a.a});var u=n(68);n.d(e,"e",function(){return u.a});var s=n(124);n.d(e,"f",function(){return s.a});var c=n(32);n.d(e,"g",function(){return c.a});var l=n(39);n.d(e,"h",function(){return l.a})},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(4),s=n.n(u),c=n(3),l=n.n(c),f=n(67);n.d(e,"a",function(){return d});var d=function(t){function e(t){var n;a()(this,e),console.warn("Model is deprecated. Use Importer instead."),t.geometry&&(t.url=t.geometry.path,t.loader=t.geometry.loader);for(var r=arguments.length,i=Array(r>1?r-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];a()(this,t),this.params=o()({color:15716789,density:.02,near:10,far:1e3},e),n&&"exp2"!==n?"linear"===n&&(this.fog=new c.Fog(this.params.color,this.params.near,this.params.far)):this.fog=new c.FogExp2(this.params.color,this.params.density)}return s()(t,[{key:"manager",value:function(t){this.scene=t.get("scene"),this.scene.fog=this.fog}}]),t}()},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),u=n(5),s=(n.n(u),n(41)),c=n(72),l=n(71),f=n(70),d=n(32);n.d(e,"a",function(){return h});var h=function(){function t(){o()(this,t),this.renderTargetA=null,this.renderTargetB=null,this.writeBuffer=null,this.readBuffer=null,this.passes=[],this.copyPass=new c.a(s.a),this.params={}}return a()(t,[{key:"manager",value:function(t){var e=this;this.renderer=t.get("renderer"),this.scene=t.get("scene"),this.camera=t.get("camera"),this.oldLoop=t.get("renderer",!0).renderLoop,this.renderLoop=new d.a(function(t){return e.render(t.getDelta())}),this.configure()}},{key:"integrate",value:function(t){t.oldLoop.stop(this),t.renderLoop.start(this)}},{key:"configure",value:function(){var t=this.renderer.getSize();this.renderTargetA=new u.WebGLRenderTarget(t.width,t.height,{minFilter:u.LinearFilter,magFilter:u.LinearFilter,format:u.RGBAFormat,stencilBuffer:!1}),this.renderTargetB=this.renderTargetA.clone(),this.writeBuffer=this.renderTargetA,this.readBuffer=this.renderTargetB}},{key:"swapBuffers",value:function(){var t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}},{key:"addPass",value:function(t){if(t){var e=this.renderer?this.renderer.getSize():{width:0,height:0};t.setSize(e.width,e.height),this.passes.push(t)}}},{key:"getPass",value:function(t){return this.passes.filter(function(e){return e.name===t})[0]}},{key:"getPassIndex",value:function(t){var e="string"==typeof t?t:t.name;return this.passes.indexOf(this.getPass(e))}},{key:"addPassAfter",value:function(t,e){if(e){var n=this.getPassIndex(t);n=n<0?0:n+1,this.insertPass(e,n)}}},{key:"insertPass",value:function(t,e){t&&this.passes.splice(e,0,t)}},{key:"removePass",value:function(t){var e=this.getPassIndex(t);e>-1&&this.passes.splice(e,1)}},{key:"createRenderPass",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.scene&&this.camera){var e=new l.a("renderscene",this.scene,this.camera.native);e.renderToScreen=t,this.addPass(e)}}},{key:"render",value:function(t){for(var e,n=0,r=this.passes.length,o=!1;n0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a()(this,e);var r=l()(this,(e.__proto__||o()(e)).call(this));return r.mouse=new h.Vector2,r.raycaster=new h.Raycaster,r.world=null,r.canvas=null,r.projectionPlane=new h.Plane(new h.Vector3(0,0,1),0),r.globalMovement=t,r.patchEvents=n,r}return d()(e,t),s()(e,[{key:"update",value:function(t,e,n){var r=this.canvas.getBoundingClientRect(),o=e||t.clientX,i=n||t.clientY;this.mouse.x=(o-r.left)/(r.right-r.left)*2-1,this.mouse.y=2*-((i-r.top)/(r.bottom-r.top))+1,this.projectionPlane.normal.copy(this.camera.getWorldDirection()),this.raycaster.setFromCamera(this.mouse,this.camera),this.emit("move")}},{key:"manager",value:function(t){this.canvas=t.get("renderer").domElement,this.camera=t.get("camera").native}},{key:"integrate",value:function(t){var e=this;t.patchEvents&&this.applyModuleOnce(m.a,function(){return new m.a}),["click","mousedown","mouseup","mousemove"].forEach(function(n){return e.on(n,function(e){return t.emit(n,e)})}),t.globalX=0,t.globalY=0,this.on("mousemove",function(e){null!==document.pointerLockElement?(t.globalX+=e.movementX,t.globalY+=e.movementY,t.update(e,t.globalX,t.globalY)):t.update(e)})}},{key:"track",value:function(t){var e=this,n=!1;this.on("move",function(){e.hovers(t)?n?t.emit("mousemove"):(t.emit("mouseover"),n=!0):n&&(t.emit("mouseout"),n=!1)}),this.on("click",function(){n?t.emit("click"):t.emit("offClick")}),this.on("mousedown",function(){n&&t.emit("mousedown")}),this.on("mouseup",function(){n&&t.emit("mouseup")})}},{key:"intersection",value:function(t){return this.raycaster.intersectObject(t.native)}},{key:"project",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.projectionPlane;return this.raycaster.ray.intersectPlane(t)}},{key:"hovers",value:function(t){var e=this.intersection(t)[0];return!!e&&e.object===t.native}},{key:"ray",get:function(){return this.raycaster.ray}},{key:"x",get:function(){return this.mouse.x}},{key:"y",get:function(){return this.mouse.y}}]),e}(v.a)},function(t,e,n){"use strict";var r=n(12),o=n.n(r),i=n(2),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(4),d=n.n(f),h=n(3),p=n.n(h),v=n(5),m=(n.n(v),n(73)),y=n(137);n.d(e,"a",function(){return g});var g=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s()(this,e);var r=d()(this,(e.__proto__||a()(e)).call(this,t,n));return r.params=o()({follow:!1,target:new v.Vector3(0,0,0)},t),r}return p()(e,t),l()(e,[{key:"manager",value:function(t){var e=new y.a(t.get("camera").native,t.get("element"),t.handler),n=this.params,r=n.follow?function(t){e.update(t.getDelta()),e.target.copy(n.target)}:function(t){e.update(t.getDelta())};this.setControls(e),this.setUpdate(r),t.update({camera:function(t){e.object=t.native}}),e.target.copy(n.target)}}]),e}(m.a)},function(t,e,n){"use strict";var r=n(135);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(2),o=n.n(r),i=n(0),a=n.n(i),u=n(1),s=n.n(u),c=n(4),l=n.n(c),f=n(3),d=n.n(f),h=n(5);n.n(h);n.d(e,"a",function(){return p});var p=function(t){function e(t,n,r){a()(this,e);var i=l()(this,(e.__proto__||o()(e)).call(this));i.object=t,i.domElement=void 0===n?document:n,i.eventHandler=r,i.enabled=!0,i.target=new h.Vector3,i.minDistance=0,i.maxDistance=1/0,i.minZoom=0,i.maxZoom=1/0,i.minPolarAngle=0,i.maxPolarAngle=Math.PI,i.minAzimuthAngle=-(1/0),i.maxAzimuthAngle=1/0,i.enableDamping=!1,i.dampingFactor=.25,i.enableZoom=!0,i.zoomSpeed=1,i.enableRotate=!0,i.rotateSpeed=1,i.enablePan=!0,i.keyPanSpeed=7,i.autoRotate=!1,i.autoRotateSpeed=2,i.enableKeys=!0,i.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},i.mouseButtons={ORBIT:h.MOUSE.LEFT,ZOOM:h.MOUSE.MIDDLE,PAN:h.MOUSE.RIGHT},i.target0=i.target.clone(),i.position0=i.object.position.clone(),i.zoom0=i.object.zoom,i.getPolarAngle=function(){return v.phi},i.getAzimuthalAngle=function(){return v.theta},i.reset=function(){i.target.copy(i.target0),i.object.position.copy(i.position0),i.object.zoom=i.zoom0,i.object.updateProjectionMatrix(),i.dispatchEvent(u),i.update(),d=f.NONE},i.update=function(){var e=new h.Vector3,n=(new h.Quaternion).setFromUnitVectors(t.up,new h.Vector3(0,1,0)),r=n.clone().inverse(),o=new h.Vector3,a=new h.Quaternion;return function(){var t=i.object.position;return e.copy(t).sub(i.target),e.applyQuaternion(n),v.setFromVector3(e),i.autoRotate&&d===f.NONE&&T(j()),v.theta+=m.theta,v.phi+=m.phi,v.theta=Math.max(i.minAzimuthAngle,Math.min(i.maxAzimuthAngle,v.theta)),v.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,v.phi)),v.makeSafe(),v.radius*=y,v.radius=Math.max(i.minDistance,Math.min(i.maxDistance,v.radius)),i.target.add(g),e.setFromSpherical(v),e.applyQuaternion(r),t.copy(i.target).add(e),i.object.lookAt(i.target),i.enableDamping===!0?(m.theta*=1-i.dampingFactor,m.phi*=1-i.dampingFactor):m.set(0,0,0),y=1,g.set(0,0,0),!!(b||o.distanceToSquared(i.object.position)>p||8*(1-a.dot(i.object.quaternion))>p)&&(i.dispatchEvent(u),o.copy(i.object.position),a.copy(i.object.quaternion),b=!1,!0)}()},i.dispose=function(){i.domElement.removeEventListener("contextmenu",at,!1),i.domElement.removeEventListener("mousedown",$,!1),i.domElement.removeEventListener("wheel",et,!1),i.domElement.removeEventListener("touchstart",rt,!1),i.domElement.removeEventListener("touchend",it,!1),i.domElement.removeEventListener("touchmove",ot,!1),document.removeEventListener("mousemove",J,!1),document.removeEventListener("mouseup",tt,!1),window.removeEventListener("keydown",nt,!1)};var u={type:"change"},s={type:"start"},c={type:"end"},f={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},d=f.NONE,p=1e-6,v=new h.Spherical,m=new h.Spherical,y=1,g=new h.Vector3,b=!1,w=new h.Vector2,_=new h.Vector2,k=new h.Vector2,x=new h.Vector2,S=new h.Vector2,M=new h.Vector2,O=new h.Vector2,P=new h.Vector2,E=new h.Vector2,j=function(){return 2*Math.PI/60/60*i.autoRotateSpeed},C=function(){return Math.pow(.95,i.zoomSpeed)},T=function(t){m.theta-=t},B=function(t){m.phi-=t},A=function(){var t=new h.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),g.add(t)}}(),L=function(){var t=new h.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),g.add(t)}}(),G=function(){var t=new h.Vector3;return function(e,n){var r=i.domElement===document?i.domElement.body:i.domElement;if(i.object instanceof h.PerspectiveCamera){var o=i.object.position;t.copy(o).sub(i.target);var a=t.length();a*=Math.tan(i.object.fov/2*Math.PI/180),A(2*e*a/r.clientHeight,i.object.matrix),L(2*n*a/r.clientHeight,i.object.matrix)}else i.object instanceof h.OrthographicCamera?(A(e*(i.object.right-i.object.left)/i.object.zoom/r.clientWidth,i.object.matrix),L(n*(i.object.top-i.object.bottom)/i.object.zoom/r.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControlsModule.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}}(),R=function(t){i.object instanceof h.PerspectiveCamera?y/=t:i.object instanceof h.OrthographicCamera?(i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom*t)),i.object.updateProjectionMatrix(),b=!0):(console.warn("WARNING: OrbitControlsModule.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)},z=function(t){i.object instanceof h.PerspectiveCamera?y*=t:i.object instanceof h.OrthographicCamera?(i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/t)),i.object.updateProjectionMatrix(),b=!0):(console.warn("WARNING: OrbitControlsModule.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)},F=function(t){w.set(t.clientX,t.clientY)},D=function(t){O.set(t.clientX,t.clientY)},N=function(t){x.set(t.clientX,t.clientY)},I=function(t){_.set(t.clientX,t.clientY),k.subVectors(_,w);var e=i.domElement===document?i.domElement.body:i.domElement;T(2*Math.PI*k.x/e.clientWidth*i.rotateSpeed),B(2*Math.PI*k.y/e.clientHeight*i.rotateSpeed),w.copy(_),i.update()},H=function(t){P.set(t.clientX,t.clientY),E.subVectors(P,O),E.y>0?R(C()):E.y<0&&z(C()),O.copy(P),i.update()},U=function(t){S.set(t.clientX,t.clientY),M.subVectors(S,x),G(M.x,M.y),x.copy(S),i.update()},V=function(t){t.deltaY<0?z(C()):t.deltaY>0&&R(C()),i.update()},q=function(t){switch(t.keyCode){case i.keys.UP:G(0,i.keyPanSpeed),i.update();break;case i.keys.BOTTOM:G(0,-i.keyPanSpeed),i.update();break;case i.keys.LEFT:G(i.keyPanSpeed,0),i.update();break;case i.keys.RIGHT:G(-i.keyPanSpeed,0),i.update()}},W=function(t){w.set(t.touches[0].pageX,t.touches[0].pageY)},Y=function(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,r=Math.sqrt(e*e+n*n);O.set(0,r)},Z=function(t){x.set(t.touches[0].pageX,t.touches[0].pageY)},K=function(t){_.set(t.touches[0].pageX,t.touches[0].pageY),k.subVectors(_,w);var e=i.domElement===document?i.domElement.body:i.domElement;T(2*Math.PI*k.x/e.clientWidth*i.rotateSpeed),B(2*Math.PI*k.y/e.clientHeight*i.rotateSpeed),w.copy(_),i.update()},X=function(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,r=Math.sqrt(e*e+n*n);P.set(0,r),E.subVectors(P,O),E.y>0?z(C()):E.y<0&&R(C()),O.copy(P),i.update()},Q=function(t){S.set(t.touches[0].pageX,t.touches[0].pageY),M.subVectors(S,x),G(M.x,M.y),x.copy(S),i.update()},$=function(t){if(i.enabled!==!1){if(t.preventDefault(),t.button===i.mouseButtons.ORBIT){if(i.enableRotate===!1)return;F(t),d=f.ROTATE}else if(t.button===i.mouseButtons.ZOOM){if(i.enableZoom===!1)return;D(t),d=f.DOLLY}else if(t.button===i.mouseButtons.PAN){if(i.enablePan===!1)return;N(t),d=f.PAN}d!==f.NONE&&(i.eventHandler.on("mousemove",J,!1),i.eventHandler.on("mouseup",tt,!1),i.dispatchEvent(s))}},J=function(t){if(i.enabled!==!1)if(t.preventDefault(),d===f.ROTATE){if(i.enableRotate===!1)return;I(t)}else if(d===f.DOLLY){if(i.enableZoom===!1)return;H(t)}else if(d===f.PAN){if(i.enablePan===!1)return;U(t)}},tt=function t(e){i.enabled!==!1&&(document.removeEventListener("mousemove",J,!1),document.removeEventListener("mouseup",t,!1),i.dispatchEvent(c),d=f.NONE)},et=function(t){i.enabled===!1||i.enableZoom===!1||d!==f.NONE&&d!==f.ROTATE||(t.preventDefault(),t.stopPropagation(),V(t),i.dispatchEvent(s),i.dispatchEvent(c))},nt=function(t){i.enabled!==!1&&i.enableKeys!==!1&&i.enablePan!==!1&&q(t)},rt=function(t){if(i.enabled!==!1){switch(t.touches.length){case 1:if(i.enableRotate===!1)return;W(t),d=f.TOUCH_ROTATE;break;case 2:if(i.enableZoom===!1)return;Y(t),d=f.TOUCH_DOLLY;break;case 3:if(i.enablePan===!1)return;Z(t),d=f.TOUCH_PAN;break;default:d=f.NONE}d!==f.NONE&&i.dispatchEvent(s)}},ot=function(t){if(i.enabled!==!1)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(i.enableRotate===!1)return;if(d!==f.TOUCH_ROTATE)return;K(t);break;case 2:if(i.enableZoom===!1)return;if(d!==f.TOUCH_DOLLY)return;X(t);break;case 3:if(i.enablePan===!1)return;if(d!==f.TOUCH_PAN)return;Q(t);break;default:d=f.NONE}},it=function(t){i.enabled!==!1&&(i.dispatchEvent(c),d=f.NONE)},at=function(t){t.preventDefault()};return i.eventHandler.on("contextmenu",at,!1),i.eventHandler.on("mousedown",$,!1),i.eventHandler.on("wheel",et,!1),i.eventHandler.on("touchstart",rt,!1),i.eventHandler.on("touchend",it,!1),i.eventHandler.on("touchmove",ot,!1),i.eventHandler.on("keydown",nt,!1),i.update(),i}return d()(e,t),s()(e,[{key:"center",get:function(){return console.warn("OrbitControls: .center has been renamed to .target"),this.target}},{key:"noZoom",get:function(){return console.warn("OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(t){console.warn("OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!t}},{key:"noRotate",get:function(){return console.warn("OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(t){console.warn("OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!t}},{key:"noPan",get:function(){return console.warn("OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(t){console.warn("OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!t}},{key:"noKeys",get:function(){return console.warn("OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(t){console.warn("OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!t}},{key:"staticMoving",get:function(){return console.warn("OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(t){console.warn("OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!t}},{key:"dynamicDampingFactor",get:function(){return console.warn("OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(t){console.warn("OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=t}}]),e}(h.EventDispatcher)},function(t,e,n){"use strict";var r=n(43);n.d(e,"a",function(){return r.a});var o=n(42);n.d(e,"b",function(){return o.a});var i=n(45);n.d(e,"c",function(){return i.a});var a=n(47);n.d(e,"d",function(){return a.a});var u=n(46);n.d(e,"e",function(){return u.a});var s=n(133);n.d(e,"f",function(){return s.a});var c=n(134);n.d(e,"g",function(){return c.a});var l=n(44);n.d(e,"h",function(){return l.a});var f=n(73);n.d(e,"i",function(){return f.a});var d=n(132);n.d(e,"j",function(){return d.a})},function(t,e,n){"use strict";var r=n(154),o=n.n(r),i=n(12),a=n.n(i),u=n(0),s=n.n(u),c=n(1),l=n.n(c);n.d(e,"a",function(){return f});var f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s()(this,t),this.params=a()({attributes:!1},e)}return l()(t,[{key:"integrate",value:function(t){var e=this,n=t.params;if(this.g_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.buildGeometry&&(this.native.geometry=this.buildGeometry(this.updateParams({geometry:t})))},n.attributes){for(var r in this.params.geometry)!function(t){t&&Object.defineProperty(e,"g_"+t,{get:function(){return this.native.geometry.parameters[t]},set:function(e){this.native.geometry=this.buildGeometry(this.updateParams({geometry:o()({},t,e)}))},configurable:!0,enumerable:!0})}(r)}}}]),t}()},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),u=n(5);n.n(u);n.d(e,"a",function(){return c});var s=new u.TextureLoader,c=function(){function t(){var e=this;o()(this,t),this.textures=[],this.bridge={material:function(t,e){return e.textures.forEach(function(e){t[e[0]]=e[1]}),t}};for(var n=arguments.length,r=Array(n),i=0;i0?(y.wrapS=d[0],y.wrapT=d[1]):y.wrapS=y.wrapT=d,y.mapping=p,y.offset.copy(a),y.repeat.copy(l),y.magFilter=u.NearestFilter,y.minFilter=u.LinearMipMapLinearFilter,e.textures.push([o,m(y)])})}return a()(t,null,[{key:"load",value:function(e){return new t({url:e}).textures[0][1]}}]),t}()},function(t,e,n){"use strict";var r=n(139);n.d(e,"a",function(){return r.a});var o=n(140);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i);n.d(e,"a",function(){return u});var u=function(){function t(e){o()(this,t),this.modules=e}return a()(t,null,[{key:"Array",value:function t(){for(var e=[],n=arguments.length,r=t(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=t.camera,r=t.rendering,i=t.element;return a()(this,e),l()(this,(e.__proto__||o()(e)).call(this,[new p.a(i),new v.a,new m.a(n),new y.a(r,{shadow:!0})]))}return d()(e,t),s()(e,[{key:"autoresize",value:function(){return this.modules.push(new g.a),this}}]),e}(h.a)},function(t,e,n){"use strict";var r=n(143);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(150),o=n.n(r),i=n(147),a=n.n(i);n.d(e,"a",function(){return u});var u=function t(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;il;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(30),o=n(55),i=n(35);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,n){var r=n(28),o=n(174),i=n(172),a=n(13),u=n(87),s=n(88),c={},l={},e=t.exports=function(t,e,n,f,d){var h,p,v,m,y=d?function(){return t}:s(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=u(t.length);h>b;b++)if((m=e?g(a(p=t[b])[0],p[1]):g(t[b]))===c||m===l)return m}else for(v=y.call(t);!(p=v.next()).done;)if((m=o(v,g,p.value,e))===c||m===l)return m};e.BREAK=c,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(29),o=n(10)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(13);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(53),o=n(36),i=n(37),a={};n(21)(a,n(10)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(10)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(30),o=n(18);t.exports=function(t,e){for(var n,i=o(t),a=r(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===e)return n}},function(t,e,n){var r=n(38)("meta"),o=n(25),i=n(20),a=n(17).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(24)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},f=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},d=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return c&&p.NEED&&s(t)&&!i(t,r)&&l(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(t,e,n){var r=n(11),o=n(86).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(27)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(i){var l=!0,f=document.createTextNode("");new i(c).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(u&&u.resolve){var d=u.resolve();n=function(){d.then(c)}}else n=function(){o.call(r,c)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(30),o=n(55),i=n(35),a=n(60),u=n(79),s=Object.assign;t.exports=!s||n(24)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,l=o.f,f=i.f;s>c;)for(var d,h=u(arguments[c++]),p=l?r(h).concat(l(h)):r(h),v=p.length,m=0;v>m;)f.call(h,d=p[m++])&&(n[d]=h[d]);return n}:s},function(t,e,n){var r=n(17),o=n(13),i=n(30);t.exports=n(15)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(25),o=n(13),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(28)(Function.call,n(54).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){"use strict";var r=n(11),o=n(9),i=n(17),a=n(15),u=n(10)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(13),o=n(49),i=n(10)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(59),o=n(50);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(59),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(13),o=n(88);t.exports=n(9).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){"use strict";var r=n(166),o=n(177),i=n(29),a=n(18);t.exports=n(80)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(16);r(r.S+r.F,"Object",{assign:n(181)})},function(t,e,n){var r=n(16);r(r.S,"Object",{create:n(53)})},function(t,e,n){var r=n(16);r(r.S+r.F*!n(15),"Object",{defineProperty:n(17).f})},function(t,e,n){var r=n(18),o=n(54).f;n(56)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){n(56)("getOwnPropertyNames",function(){return n(81).f})},function(t,e,n){var r=n(60),o=n(83);n(56)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(16);r(r.S,"Object",{setPrototypeOf:n(184).set})},function(t,e,n){"use strict";var r,o,i,a=n(34),u=n(11),s=n(28),c=n(76),l=n(16),f=n(25),d=n(49),h=n(167),p=n(170),v=n(186),m=n(86).set,y=n(180)(),g=u.TypeError,b=u.process,w=u.Promise,b=u.process,_="process"==c(b),k=function(){},x=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(10)("species")]=function(t){t(k,k)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),S=function(t,e){return t===e||t===w&&e===i},M=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},O=function(t){return S(w,t)?new P(t):new o(t)},P=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw g("Bad Promise constructor");e=t,n=r}),this.resolve=d(e),this.reject=d(n)},E=function(t){try{t()}catch(t){return{error:t}}},j=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,a=o?e.ok:e.fail,u=e.resolve,s=e.reject,c=e.domain;try{a?(o||(2==t._h&&B(t),t._h=1),a===!0?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?s(g("Promise-chain cycle")):(i=M(n))?i.call(n,u,s):u(n)):s(r)}catch(t){s(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&C(t)})}},C=function(t){m.call(u,function(){var e,n,r,o=t._v;if(T(t)&&(e=E(function(){_?b.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=_||T(t)?2:1),t._a=void 0,e)throw e.error})},T=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!T(e.promise))return!1;return!0},B=function(t){m.call(u,function(){var e;_?b.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw g("Promise can't be resolved itself");(e=M(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,s(L,r,1),s(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,j(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};x||(w=function(t){h(this,w,"Promise","_h"),d(t),r.call(this);try{t(s(L,this,1),s(A,this,1))}catch(t){A.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(183)(w.prototype,{then:function(t,e){var n=O(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=_?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),P=function(){var t=new r;this.promise=t,this.resolve=s(L,t,1),this.reject=s(A,t,1)}),l(l.G+l.W+l.F*!x,{Promise:w}),n(37)(w,"Promise"),n(185)("Promise"),i=n(9).Promise,l(l.S+l.F*!x,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!x),"Promise",{resolve:function(t){if(t instanceof w&&S(t.constructor,this))return t;var e=O(this);return(0,e.resolve)(t),e.promise}}),l(l.S+l.F*!(x&&n(176)(function(t){w.all(t).catch(k)})),"Promise",{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,i=E(function(){var n=[],i=0,a=1;p(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=E(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){"use strict";var r=n(11),o=n(20),i=n(15),a=n(16),u=n(85),s=n(179).KEY,c=n(24),l=n(58),f=n(37),d=n(38),h=n(10),p=n(63),v=n(62),m=n(178),y=n(169),g=n(173),b=n(13),w=n(18),_=n(61),k=n(36),x=n(53),S=n(81),M=n(54),O=n(17),P=n(30),E=M.f,j=O.f,C=S.f,T=r.Symbol,B=r.JSON,A=B&&B.stringify,L=h("_hidden"),G=h("toPrimitive"),R={}.propertyIsEnumerable,z=l("symbol-registry"),F=l("symbols"),D=l("op-symbols"),N=Object.prototype,I="function"==typeof T,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,V=i&&c(function(){return 7!=x(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(N,e);r&&delete N[e],j(t,e,n),r&&t!==N&&j(N,e,r)}:j,q=function(t){var e=F[t]=x(T.prototype);return e._k=t,e},W=I&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,n){return t===N&&Y(D,e,n),b(t),e=_(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,L)&&t[L][e]&&(t[L][e]=!1),n=x(n,{enumerable:k(0,!1)})):(o(t,L)||j(t,L,k(1,{})),t[L][e]=!0),V(t,e,n)):j(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)Y(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?x(t):Z(x(t),e)},X=function(t){var e=R.call(this,t=_(t,!0));return!(this===N&&o(F,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=w(t),e=_(e,!0),t!==N||!o(F,e)||o(D,e)){var n=E(t,e);return!n||!o(F,e)||o(t,L)&&t[L][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=C(w(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==L||e==s||r.push(e);return r},J=function(t){for(var e,n=t===N,r=C(n?D:w(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(N,e)||i.push(F[e]);return i};I||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===N&&e.call(D,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),V(this,t,k(1,n))};return i&&U&&V(N,t,{configurable:!0,set:e}),q(t)},u(T.prototype,"toString",function(){return this._k}),M.f=Q,O.f=Y,n(82).f=S.f=$,n(35).f=X,n(55).f=J,i&&!n(34)&&u(N,"propertyIsEnumerable",X,!0),p.f=function(t){return q(h(t))}),a(a.G+a.W+a.F*!I,{Symbol:T});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var tt=P(h.store),et=0;tt.length>et;)v(tt[et++]);a(a.S+a.F*!I,"Symbol",{for:function(t){return o(z,t+="")?z[t]:z[t]=T(t)},keyFor:function(t){if(W(t))return m(z,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!I,"Object",{create:K,defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:J}),B&&a(a.S+a.F*(!I||c(function(){var t=T();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,A.apply(B,r)}}}),T.prototype[G]||n(21)(T.prototype,G,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){n(62)("asyncIterator")},function(t,e,n){n(62)("observable")},function(t,e,n){(function(e){var n=e.performance||{},r=function(){for(var t=["now","webkitNow","msNow","mozNow","oNow"];t.length;){var e=t.shift();if(e in n)return n[e].bind(n)}var r=Date.now||function(){return(new Date).getTime()},o=(n.timing||{}).navigationStart||r();return function(){return r()-o}}();r.performanceNow=n.now,r.noConflict=function(){n.now=r.performanceNow},r.conflict=function(){n.now=r},r.conflict(),t.exports=r}).call(e,n(91))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?p=h.concat(p):m=-1,p.length&&u())}function u(){if(!v){var t=o(a);v=!0;for(var e=p.length;e;){for(h=p,p=[];++m1)for(var n=1;n