UNPKG

seinjs-cli

Version:
1 lines 1.06 MB
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0);t.isSystemActor=function(e){return e.isAudioSystemActor};var a=s.World.UP,c=s.World.FORWARD,l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAudioSystemActor=!0,t._sources=[],t._connected=!1,t}var n;return o(t,e),n=t,Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){return this._gain.gain.value},set:function(e){this._gain.gain.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listener",{get:function(){return this._listener},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sources",{get:function(){return this._sources},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"running",{get:function(){return"running"===this._context.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closed",{get:function(){return"closed"===this._context.state},enumerable:!0,configurable:!0}),t.prototype.addSource=function(e){this._sources.push(e),e.outNode.connect(this._gain)},t.prototype.enableSource=function(e){e.outNode.connect(this._gain)},t.prototype.disableSource=function(e){e.outNode.disconnect(this._gain)},t.prototype.removeSource=function(e){var t=this._sources.indexOf(e);t<0||(e.outNode.disconnect(this._gain),this._sources.splice(t,1))},t.prototype.setListener=function(e,t){if(this._connected){var n=this._listener.gains[this.name.value];this._gain.disconnect(n),n.disconnect(this._context.destination)}this._listener=e,e?(this._gain.connect(t),t.connect(this._context.destination),this._connected=!0):this._connected=!1},t.prototype.start=function(){"suspended"!==this._context.state&&"interrupted"!==this._context.state||this._context.resume()},t.prototype.pause=function(){this.running&&this._context.suspend()},t.prototype.resume=function(){this.running||this._context.resume()},t.prototype.onInit=function(){var e=this,t=window.AudioContext||window.webkitAudioContext;this._context=new t,this._gain=this._context.createGain();var n=this.getGame();n.hid.addOnce("MouseClick",(function(){return e.start()})),n.hid.addOnce("TouchEnd",(function(){return e.start()})),n.event.addOnce("GameWillPause",(function(){n.event.addOnce("GameDidResume",(function(){return e.start()}))}))},t.prototype.onAdd=function(){var e=s.findActorByClass(this.getGame(),n);n&&this.setListener(e.listener)},t.prototype.onUpdate=function(){if(this._listener){var e,t,n=this._context.listener,i=this._listener.absolutePosition;if(n.setPosition(i.x,i.y,i.z),this._listener.rotatable){var o=this._listener.absoluteRotation,r=this.getWorld(),s=r.forwardVector,l=r.upVector;e=s.transformQuat(o),t=l.transformQuat(o)}else e=c,t=a;n.setOrientation(e.x,e.y,e.z,t.x,t.y,t.z)}},t.prototype.verifyRemoving=function(){if(this._sources.length>0)throw new Error("This audio system "+this.name+" has been linked in "+this._sources.length+" sources, you cannot remove it !")},t.prototype.onDestroy=function(){this._gain.disconnect(),this._context.close()},t=n=r([s.SClass({className:"AudioSystemActor"})],t)}(s.SystemActor);t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0);function a(){}var c=function(e){function t(t){var n=e.call(this)||this;return n.isAudioClip=!0,n.audioSource=null,n.handleStart=a,n.handleEnd=a,n.handlePause=a,n.handleResume=a,n._initState=null,n._initState=t,n}return o(t,e),Object.defineProperty(t.prototype,"parent",{get:function(){return this.audioSource},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actor",{get:function(){return this.audioSource.getOwner()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"system",{get:function(){return this.audioSource.system},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paused",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopt",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return[0,0]},enumerable:!0,configurable:!0}),t.prototype.getGame=function(){return this.actor.getGame()},t.prototype.getWorld=function(){return this.actor.getWorld()},t.prototype.getLevel=function(){return this.actor.getLevel()},t.prototype.onInit=function(e){},t.prototype.onPlay=function(e,t,n){},t.prototype.onPause=function(){},t.prototype.onResume=function(){},t.prototype.onStop=function(){},t.prototype.onUpdate=function(e){},t.prototype.onError=function(e,t){},t.prototype.initialize=function(){try{this.onInit(this._initState)}catch(e){s.throwException(e,this)}},t.prototype.play=function(e,t,n){try{this.onPlay(e||!1,t,n),this.handleStart(this,this.actor)}catch(e){s.throwException(e,this)}},t.prototype.pause=function(){try{this.onPause(),this.handlePause(this,this.actor)}catch(e){s.throwException(e,this)}},t.prototype.resume=function(){try{this.onResume(),this.handleResume(this,this.actor)}catch(e){s.throwException(e,this)}},t.prototype.stop=function(){try{this.onStop(),this.handleEnd(this,this.actor)}catch(e){s.throwException(e,this)}},t.prototype.update=function(e){try{this.onUpdate(e)}catch(e){s.throwException(e,this)}},t.prototype.clone=function(){return new this.constructor(this._initState)},t=r([s.SClass({className:"AudioClip"})],t)}(s.SObject);t.default=c},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(1),c={panningModel:"HRTF",distanceModel:"linear",refDistance:1,maxDistance:1e4,rolloffFactor:1,coneInnerAngle:360,coneOuterAngle:0,coneOuterGain:0};t.isSourceComponent=function(e){return e.isAudioSourceComponent},t.isSourceActor=function(e){return e.root.isAudioSourceComponent};var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAudioSourceComponent=!0,t.rotatable=!1,t._clips={},t._current=null,t._default=null,t._disabled=!1,t}return o(t,e),Object.defineProperty(t.prototype,"inNode",{get:function(){return this._gain},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outNode",{get:function(){return this._panner||this._gain},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"system",{get:function(){return this._system},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){return this._gain.gain.value},set:function(e){this._gain.gain.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spaceOption",{get:function(){return this._panner},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipNames",{get:function(){return Object.keys(this._clips)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},enumerable:!0,configurable:!0}),t.prototype.add=function(e,t,n){return t.audioSource=this,t.initialize(),this._clips[e]=t,(n||null===this._default)&&(this._default=e),this},t.prototype.remove=function(e,t,n){return this._current===t?(s.Debug.warn("Clip "+e+" is using, stop it before removing !"),this):(this._clips[e].destroy(),delete this._clips[e],e===this._default&&(this._default=this.clipNames[0]||null),this)},t.prototype.has=function(e){return!!this._clips[e]},t.prototype.get=function(e){return this._clips[e]||s.Debug.warn("Clip "+e+" is not existed in "+(this._owner&&this._owner.name)),this._clips[e]},t.prototype.getCurrent=function(){return this._current},t.prototype.play=function(e,t){return this._disabled?(s.Debug.warn("Audio "+this.name+" in actor "+(this._owner&&this._owner.name)+" is disabled !"),this):(t=t||{},e=e||this._default,this.has(e)?(this._current=this._clips[e],this._current.play(t.loop||!1,t.start,t.end),this):(s.Debug.warn("Clip "+e+" is not added !"),this))},t.prototype.pause=function(){this._current&&this._current.pause()},t.prototype.resume=function(){this._current&&this._current.resume()},t.prototype.stop=function(){this._current&&(this._current.stop(),this._current=null)},t.prototype.enable=function(){this._system.enableSource(this),this._disabled=!1},t.prototype.disable=function(){this._disabled=!0,this._current&&this._current.stop(),this._system.disableSource(this)},t.prototype.verifyAdding=function(){if(!s.findActorByClass(this.getGame(),a.default))throw new Error("Before using 'Source', you must add an 'Audio.SystemActor' to game !")},t.prototype.onInit=function(t){var n=this;e.prototype.onInit.call(this,t),this.rotatable=t.rotatable,this._event.register("Start"),this._event.register("End"),this._event.register("Pause"),this._event.register("Resume");var i=this.getGame();i.event.addOnce("GameWillPause",(function(){n._current.paused||(i.event.addOnce("GameDidResume",(function(){n._current.resume()})),n._current.pause())}))},t.prototype.onAdd=function(e){var t=e.system,n=e.clips,i=e.autoPlay,o=e.spaceOptions;if(this._system=t,this._gain=t.context.createGain(),o){for(var r in this._panner=t.context.createPanner(),c)c.hasOwnProperty(r)&&(this._panner[r]=o[r]||c[r]);this._gain.connect(this._panner),this.syncSpace()}if(t.addSource(this),n){for(var s=n.length,a=0;a<s;a+=1){var l=n[a],u=l.name,h=l.clip,d=l.isDefault;this.add(u,h,d)}s&&i&&this.play(null,i)}},t.prototype.onUnLink=function(){this.disable()},t.prototype.onReLink=function(){this.enable()},t.prototype.onUpdate=function(e){this._disabled||(this._current&&this._current.update(e),this._owner.isStatic||this.syncSpace())},t.prototype.syncSpace=function(){var e=this._panner;if(this._panner){var t=this.absolutePosition,n=t.x,i=t.y,o=t.z;if(e.setPosition(n,i,o),this.rotatable){var r=this.worldForwardVector,s=r.x,a=r.y,c=r.z;e.setOrientation(s,a,c)}else e.setOrientation(0,0,0)}},t.prototype.onDestroy=function(){this._system.removeSource(this)},t=r([s.SClass({className:"AudioSourceComponent"})],t)}(s.SceneComponent);t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(1);t.isListenerComponent=function(e){return e.isAudioListenerComponent},t.isListenerActor=function(e){return e.root.isAudioListenerComponent};var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAudioListenerComponent=!0,t.rotatable=!0,t._preVolume=1,t}return o(t,e),Object.defineProperty(t.prototype,"gains",{get:function(){return this._gains},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){var e=Object.keys(this._gains);return 0===e.length?this._preVolume:this._gains[e[0]].gain.value},set:function(e){var t=this;Object.keys(this._gains).forEach((function(n){t._gains[n].gain.value=e}))},enumerable:!0,configurable:!0}),t.prototype.enable=function(){var e=this,t=s.findActorsByClass(this.getGame(),a.default,(function(e){return e.updatePriority>s.SystemActor.UPDATE_PRIORITY.System}));return t.length<=0||t[0].listener===this||(this._gains={},t.forEach((function(t){var n=t.context.createGain();n.gain.value=e._preVolume,t.setListener(e,n),e._gains[t.name.value]=n}))),this},t.prototype.disable=function(){var e=s.findActorsByClass(this.getGame(),a.default,(function(e){return e.updatePriority>s.SystemActor.UPDATE_PRIORITY.System}));if(e.length<=0||e[0].listener!==this)return this;var t=Object.keys(this._gains);return 0!==t.length&&(this._preVolume=this._gains[t[0]].gain.value),e.forEach((function(e){return e.setListener(null)})),this},t.prototype.verifyAdding=function(){if(!s.findActorByClass(this.getGame(),a.default))throw new Error("Before using 'Listener', you must add an 'Audio.SystemActor' to game !")},t.prototype.onAdd=function(e){var t=s.findActorByClass(this.getGame(),a.default);this.rotatable=!1!==e.rotatable,t.listener||this.enable()},t.prototype.onUnLink=function(){this.disable()},t.prototype.onReLink=function(){this.enable()},t.prototype.onDestroy=function(){this.disable()},t=r([s.SClass({className:"AudioListenerComponent"})],t)}(s.SceneComponent);t.default=c},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAudioStreamClip=!0,t._stopt=!0,t._startAt=0,t._endAt=0,t.onTimeUpdate=function(){isNaN(t._endAt)&&(t._endAt=t.duration);var e=t._element.currentTime;t.loop?t._startAt<=.1&&t.duration-t._endAt<.1||(e>t._endAt||e<t._startAt)&&(t._element.currentTime=t._startAt):e>=t._endAt&&t.stop()},t}return o(t,e),Object.defineProperty(t.prototype,"paused",{get:function(){return this._element.paused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopt",{get:function(){return this._stopt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._element.duration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._element.currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._element.loop},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return[this._startAt,this._endAt]},enumerable:!0,configurable:!0}),t.prototype.onInit=function(e){var t=this,n=this.system.context;this._element=e.element.cloneNode(),this._track=n.createMediaElementSource(this._element),this._track.connect(this.audioSource.inNode),this._element.onended=function(){t.handleEnd(t,t.actor),t._stopt=!0},this._element.ontimeupdate=this.onTimeUpdate},t.prototype.onPlay=function(e,t,n){var i=this;this._element.loop=e,this._startAt=t||0,this._endAt=n||this.duration,this._element.currentTime=this._startAt,this._stopt=!1,this._element.play().catch((function(e){return s.throwException(e,i)}))},t.prototype.onPause=function(){this._stopt||this._element.pause()},t.prototype.onResume=function(){this._stopt||this._element.play()},t.prototype.onStop=function(){this._element.pause(),this._element.currentTime=0,this._stopt=!0},t.prototype.onDestroy=function(){this._track&&this._track.disconnect(this.audioSource.inNode)},t=r([s.SClass({className:"AudioStreamClip"})],t)}(n(2).default);t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAudioBufferClip=!0,t._isReady=!1,t._initPlayRequired={required:!1},t._paused=!0,t._stopt=!0,t._startTime=0,t._currentTime=0,t._startAt=0,t._pauseAt=0,t._endAt=0,t}return o(t,e),Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopt",{get:function(){return this._stopt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._buffer.duration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._source.loop},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return[this._startAt,this._endAt]},enumerable:!0,configurable:!0}),t.prototype.onInit=function(e){var t=this;this.createTrack(e).catch((function(e){return c.throwException(e,t)}))},t.prototype.createTrack=function(e){return s(this,void 0,void 0,(function(){var t,n,i,o,r,s;return a(this,(function(a){switch(a.label){case 0:return t=this.system.context,e.isLazy?(n=this,[4,t.decodeAudioData(e.buffer)]):[3,2];case 1:return n._buffer=a.sent(),this._isReady=!0,e.isLazy=!1,e.buffer=this._buffer,this._initPlayRequired.required&&(i=this._initPlayRequired,o=i.loop,r=i.from,s=i.to,this.play(o,r,s)),[3,3];case 2:this._buffer=e.buffer,this._isReady=!0,a.label=3;case 3:return[2]}}))}))},t.prototype.createSource=function(){var e=this;this._source&&this._source.numberOfOutputs>0&&this._source.disconnect(this.audioSource.inNode),this._source=this.system.context.createBufferSource(),this._source.buffer=this._buffer,this._source.connect(this.audioSource.inNode),this._source.onended=function(){return e.handleEnd(e,e.actor)}},t.prototype.onPlay=function(e,t,n){this._isReady?(this._stopt||this._paused||this.stop(),this.createSource(),this._startAt=t||0,this._endAt=n||this._buffer.duration,this._source.loop=e||!1,this._source.loopStart=this._startAt,this._source.loopEnd=this._endAt,this._source.loop?this._source.start(0,this._startAt):this._source.start(0,this._startAt,this._endAt-this._startAt),this._startTime=Date.now()/1e3,this._currentTime=this._startAt,this._paused=!1,this._stopt=!1):this._initPlayRequired={required:!0,loop:e,from:t,to:n}},t.prototype.onPause=function(){this._isReady?this._stopt||this._paused||(this._source.stop(),this._pauseAt=Date.now()/1e3-this._startTime,this._paused=!0):this._initPlayRequired.required=!1},t.prototype.onResume=function(){if(this._isReady){if(!this._stopt&&this._paused){var e=this._source,t=e.loop,n=e.loopStart,i=e.loopEnd;this.createSource(),t?(this._source.loop=t,this._source.loopStart=n,this._source.loopEnd=i,this._source.start(0,this._pauseAt)):this._source.start(0,this._pauseAt,this._endAt-this._pauseAt),this._startTime=Date.now()/1e3-this._pauseAt-this._startAt,this._paused=!1}}else this._initPlayRequired.required=!0},t.prototype.onStop=function(){this._isReady?this._stopt||(this._paused||this._source.stop(),this._startAt=0,this._pauseAt=0,this._currentTime=0,this._paused=!0,this._stopt=!0):this._initPlayRequired.required=!1},t.prototype.onUpdate=function(e){this._paused||(this._currentTime+=e/1e3,this._currentTime>=this._endAt&&(this._source.loop?this._currentTime-=this._endAt-this._startAt:(this._paused=!0,this._stopt=!0)))},t.prototype.onDestroy=function(){this._source&&this._source.numberOfOutputs>0&&this._source.disconnect(this.audioSource.inNode)},t=r([c.SClass({className:"AudioBufferClip"})],t)}(n(2).default);t.default=l},,,,,function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1);t.SystemActor=o.default,t.isSystemActor=o.isSystemActor;var r=n(14);t.Loader=r.default,t.isLoader=r.isLoader;var s=n(3);t.SourceComponent=s.default,t.isSourceActor=s.isSourceActor,t.isSourceComponent=s.isSourceComponent;var a=n(15);t.SourceActor=a.default;var c=n(4);t.ListenerComponent=c.default,t.isListenerActor=c.isListenerActor,t.isListenerComponent=c.isListenerComponent;var l=n(16);t.ListenerActor=l.default;var u=n(2);t.Clip=u.default;var h=n(5);t.StreamClip=h.default;var d=n(6);t.BufferClip=d.default,n(17),i.Audio={SystemActor:o.default,isSystemActor:o.isSystemActor,Loader:r.default,isLoader:r.isLoader,SourceComponent:s.default,isSourceActor:s.isSourceActor,isSourceComponent:s.isSourceComponent,SourceActor:a.default,ListenerComponent:c.default,isListenerActor:c.isListenerActor,isListenerComponent:c.isListenerComponent,ListenerActor:l.default,Clip:u.default,StreamClip:h.default,BufferClip:d.default}},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),l=n(5),u=n(6),h=n(1);function d(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){try{return[2,t.context.decodeAudioData(e)]}catch(n){return[2,new Promise((function(n,i){try{t.context.decodeAudioData(e,(function(e){return n(e)}))}catch(e){i(e)}}))]}return[2]}))}))}t.isLoader=function(e){return e.isAudioLoader};var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAudioLoader=!0,t}return o(t,e),t.prototype.load=function(e,t){var n=this,i=c.findActorByClass(this.game,h.default);if(!i)throw new Error("Before using 'AudioLoader', you must add an 'Audio.SystemActor' to game !");if(e.mode=e.mode||"Stream","Stream"!==e.mode){if(e.buffer&&!e.canceled)return e.isLazy?(e.result=new u.default({isLazy:!0,buffer:e.buffer}),void setTimeout((function(){return t.onLoaded(e)}),0)):void d(e.buffer,i).then((function(n){e.result=new u.default({isLazy:!1,buffer:n}),t.onLoaded(e)}));c.HTTP.get(e.url,{responseType:"arraybuffer",onDownloadProgress:function(n){var i=n.loaded,o=n.total;return t.onLoading(e,i/o)}}).then((function(o){var r=o.data;return s(n,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return e.canceled?(t.onLoaded(e),[2]):e.isLazy?(e.result=new u.default({isLazy:!0,buffer:r}),[3,3]):[3,1];case 1:return[4,d(r,i)];case 2:n=o.sent(),e.result=new u.default({isLazy:!1,buffer:n}),o.label=3;case 3:return t.onLoaded(e),[2]}}))}))})).catch((function(e){c.throwException(e,n)}))}else{var o=document.createElement("audio");if(e.isLazy){if(e.buffer&&!e.canceled){var r=URL.createObjectURL(new Blob([e.buffer]));e.blobUrl=r,o.src=r}else o.src=e.url;return o.crossOrigin=e.crossOrigin?"Anonymous":"",e.result=new l.default({isLazy:!0,element:o}),void setTimeout((function(){return t.onLoaded(e)}),0)}if(e.buffer&&!e.canceled){r=URL.createObjectURL(new Blob([e.buffer]));return e.blobUrl=r,o.src=r,e.result=new l.default({isLazy:!1,element:o}),void setTimeout((function(){return t.onLoaded(e)}),0)}c.HTTP.get(e.url,{responseType:"arraybuffer",onDownloadProgress:function(n){var i=n.loaded,o=n.total;return t.onLoading(e,i/o)}}).then((function(n){var i=n.data;if(e.canceled)t.onLoaded(e);else{var r=URL.createObjectURL(new Blob([i]));e.blobUrl=r,o.src=r,e.result=new l.default({isLazy:!1,element:o}),t.onLoaded(e)}})).catch((function(n){t.onError(e,n)}))}},t.prototype.release=function(e){e.blobUrl&&URL.revokeObjectURL(e.blobUrl)},t=r([c.SClass({className:"AudioLoader"})],t)}(c.ResourceLoader);t.default=p},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onCreateRoot=function(e){return this.addComponent("root",a.default,e)},Object.defineProperty(t.prototype,"audio",{get:function(){return this._root},enumerable:!0,configurable:!0}),t=r([s.SClass({className:"AudioSourceActor"})],t)}(s.SceneActor);t.default=c},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(4),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"listener",{get:function(){return this._root},enumerable:!0,configurable:!0}),t.prototype.onCreateRoot=function(e){return this.addComponent("root",a.default,e)},t.prototype.enable=function(){return this.root.enable(),this},t.prototype.disable=function(){return this.root.disable(),this},t=r([s.SClass({className:"AudioListenerActor"})],t)}(s.SceneActor);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(3),r=n(1),s=n(4);t.SeinAudioClipsExtension={name:"Sein_audioClips",init:function(e,t){var n=t.game.resource.getLoader("Audio");if(!n)throw new Error("Before load gltf contains audioClips, you must register Audio.Loader for type 'Audio' !");var i=[],o=((t.json.extensions||{}).Sein_audioClips||{}).clips||[];t.audioClips={};var r="",s=null;return o.forEach((function(e,o){if(e.uri)r=function(e,t){if(/^(?:http|blob|data:|\/)/.test(t))return t;var n=e.replace(/\/[^/]*?$/,"").split("/"),i=t.split("/"),o=0;for(o=0;o<i.length;o+=1){var r=i[o];if(".."===r)n.pop();else if("."!==r)break}return n.join("/")+"/"+i.slice(o).join("/")}(t.src,e.uri);else if(void 0!==e.bufferView&&null!==e.bufferView){var a=t.json.bufferViews[e.bufferView];s=t.binaryBody.slice(a.byteOffset,a.byteOffset+a.byteLength)}i.push(new Promise((function(i,a){n.load({type:"Audio",url:r,buffer:s,name:"",mode:e.mode,isLazy:e.isLazy},{onLoading:function(e,t){},onLoaded:function(e){t.audioClips[o]=e.result,i()},onError:function(e,t){return a(t)}})})))})),Promise.all(i)},parseOnEnd:function(e,t,n){return n.audioClips=t.audioClips,n}},t.SeinAudioSourceExtension={name:"Sein_audioSource",instantiate:function(e,t,n,s,a){if(!i.isSceneComponent(e)){var c=t.clips,l=t.defaultClip,u=t.needAutoPlay,h=t.autoPlayOptions,d=t.spaceOptions,p=t.isSpaceAudio,f=[];Object.keys(c).forEach((function(e){f.push({name:e,clip:a.audioClips[c[e]],isDefault:e===l})}));var m=i.findActorByClass(n,r.default);e.addComponent("audioSource",o.default,{system:m,autoPlay:u?h:null,spaceOptions:p?d:null,rotatable:!!p&&d.rotatable,clips:f})}}},t.SeinAudioListenerExtension={name:"Sein_audioListener",instantiate:function(e,t){i.isSceneComponent(e)||e.addComponent("audioListener",s.default,{rotatable:t.rotatable})}},i.GlTFLoader.REGISTER_EXTENSION(t.SeinAudioClipsExtension),i.GlTFLoader.REGISTER_EXTENSION(t.SeinAudioSourceExtension),i.GlTFLoader.REGISTER_EXTENSION(t.SeinAudioListenerExtension)},function(e,t,n){window["seinjs-inspector"]=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=19)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"render",(function(){return P})),n.d(t,"hydrate",(function(){return B})),n.d(t,"createElement",(function(){return m})),n.d(t,"h",(function(){return m})),n.d(t,"Fragment",(function(){return y})),n.d(t,"createRef",(function(){return v})),n.d(t,"isValidElement",(function(){return o})),n.d(t,"Component",(function(){return _})),n.d(t,"cloneElement",(function(){return k})),n.d(t,"createContext",(function(){return D})),n.d(t,"toChildArray",(function(){return S})),n.d(t,"_unmount",(function(){return N})),n.d(t,"options",(function(){return i}));var i,o,r,s,a,c,l,u={},h=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var i,o=arguments,r={};for(i in t)"key"!==i&&"ref"!==i&&(r[i]=t[i]);if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(o[i]);if(null!=n&&(r.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===r[i]&&(r[i]=e.defaultProps[i]);return g(e,r,t&&t.key,t&&t.ref)}function g(e,t,n,o){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0};return i.vnode&&i.vnode(r),r}function v(){return{}}function y(e){return e.children}function _(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function C(e){(!e.__d&&(e.__d=!0)&&1===r.push(e)||a!==i.debounceRendering)&&((a=i.debounceRendering)||s)(w)}function w(){var e,t,n,i,o,s,a;for(r.sort((function(e,t){return t.__v.__b-e.__v.__b}));e=r.pop();)e.__d&&(n=void 0,i=void 0,s=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],i=M(a,o,p({},o),t.__n,void 0!==a.ownerSVGElement,null,n,null==s?b(o):s),O(n,o),i!=s&&E(o)))}function A(e,t,n,i,o,r,s,a,c){var l,d,p,m,g,v,y,_=n&&n.__k||h,E=_.length;if(a==u&&(a=null!=r?r[0]:E?b(n,0):null),l=0,t.__k=S(t.__k,(function(n){if(null!=n){if(n.__=t,n.__b=t.__b+1,null===(p=_[l])||p&&n.key==p.key&&n.type===p.type)_[l]=void 0;else for(d=0;d<E;d++){if((p=_[d])&&n.key==p.key&&n.type===p.type){_[d]=void 0;break}p=null}if(m=M(e,n,p=p||u,i,o,r,s,a,c),(d=n.ref)&&p.ref!=d&&(y||(y=[]),p.ref&&y.push(p.ref,null,n),y.push(d,n.__c||m,n)),null!=m){var h;if(null==v&&(v=m),void 0!==n.__d)h=n.__d,n.__d=void 0;else if(r==p||m!=a||null==m.parentNode){e:if(null==a||a.parentNode!==e)e.appendChild(m),h=null;else{for(g=a,d=0;(g=g.nextSibling)&&d<E;d+=2)if(g==m)break e;e.insertBefore(m,a),h=a}"option"==t.type&&(e.value="")}a=void 0!==h?h:m.nextSibling,"function"==typeof t.type&&(t.__d=a)}else a&&p.__e==a&&a.parentNode!=e&&(a=b(p))}return l++,n})),t.__e=v,null!=r&&"function"!=typeof t.type)for(l=r.length;l--;)null!=r[l]&&f(r[l]);for(l=E;l--;)null!=_[l]&&N(_[l],_[l]);if(y)for(l=0;l<y.length;l++)I(y[l],y[++l],y[++l])}function S(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var i=0;i<e.length;i++)S(e[i],t,n);else n.push(t?t("string"==typeof e||"number"==typeof e?g(null,e,null,null):null!=e.__e||null!=e.__c?g(e.type,e.props,e.key,null):e):e);return n}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===d.test(t)?n+"px":null==n?"":n}function R(e,t,n,i,o){var r,s,a,c,l;if(o?"className"===t&&(t="class"):"class"===t&&(t="className"),"key"===t||"children"===t);else if("style"===t)if(r=e.style,"string"==typeof n)r.cssText=n;else{if("string"==typeof i&&(r.cssText="",i=null),i)for(s in i)n&&s in n||x(r,s,"");if(n)for(a in n)i&&n[a]===i[a]||x(r,a,n[a])}else"o"===t[0]&&"n"===t[1]?(c=t!==(t=t.replace(/Capture$/,"")),l=t.toLowerCase(),t=(l in e?l:t).slice(2),n?(i||e.addEventListener(t,T,c),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,T,c)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function T(e){this.l[e.type](i.event?i.event(e):e)}function M(e,t,n,o,r,s,a,c,l){var u,h,d,f,m,g,v,b,E,C,w=t.type;if(void 0!==t.constructor)return null;(u=i.__b)&&u(t);try{e:if("function"==typeof w){if(b=t.props,E=(u=w.contextType)&&o[u.__c],C=u?E?E.props.value:u.__:o,n.__c?v=(h=t.__c=n.__c).__=h.__E:("prototype"in w&&w.prototype.render?t.__c=h=new w(b,C):(t.__c=h=new _(b,C),h.constructor=w,h.render=F),E&&E.sub(h),h.props=b,h.state||(h.state={}),h.context=C,h.__n=o,d=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=w.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=p({},h.__s)),p(h.__s,w.getDerivedStateFromProps(b,h.__s))),f=h.props,m=h.state,d)null==w.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==w.getDerivedStateFromProps&&b!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,C),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,C)){for(h.props=b,h.state=h.__s,h.__d=!1,h.__v=t,t.__e=n.__e,t.__k=n.__k,h.__h.length&&a.push(h),u=0;u<t.__k.length;u++)t.__k[u]&&(t.__k[u].__=t);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,C),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,m,g)}))}h.context=C,h.props=b,h.state=h.__s,(u=i.__r)&&u(t),h.__d=!1,h.__v=t,h.__P=e,u=h.render(h.props,h.state,h.context),t.__k=null!=u&&u.type==y&&null==u.key?u.props.children:Array.isArray(u)?u:[u],null!=h.getChildContext&&(o=p(p({},o),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(f,m)),A(e,t,n,o,r,s,a,c,l),h.base=t.__e,h.__h.length&&a.push(h),v&&(h.__E=h.__=null),h.__e=!1}else t.__e=L(n.__e,t,n,o,r,s,a,l);(u=i.diffed)&&u(t)}catch(e){i.__e(e,t,n)}return t.__e}function O(e,t){i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function L(e,t,n,i,o,r,s,a){var c,l,d,p,f,m=n.props,g=t.props;if(o="svg"===t.type||o,null!=r)for(c=0;c<r.length;c++)if(null!=(l=r[c])&&((null===t.type?3===l.nodeType:l.localName===t.type)||e==l)){e=l,r[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,g.is&&{is:g.is}),r=null}if(null===t.type)m!==g&&e.data!=g&&(e.data=g);else if(t!==n){if(null!=r&&(r=h.slice.call(e.childNodes)),d=(m=n.props||u).dangerouslySetInnerHTML,p=g.dangerouslySetInnerHTML,!a){if(m===u)for(m={},f=0;f<e.attributes.length;f++)m[e.attributes[f].name]=e.attributes[f].value;(p||d)&&(p&&d&&p.__html==d.__html||(e.innerHTML=p&&p.__html||""))}(function(e,t,n,i,o){var r;for(r in n)r in t||R(e,r,null,n[r],i);for(r in t)o&&"function"!=typeof t[r]||"value"===r||"checked"===r||n[r]===t[r]||R(e,r,t[r],n[r],i)})(e,g,m,o,a),t.__k=t.props.children,p||A(e,t,n,i,"foreignObject"!==t.type&&o,r,s,u,a),a||("value"in g&&void 0!==g.value&&g.value!==e.value&&(e.value=null==g.value?"":g.value),"checked"in g&&void 0!==g.checked&&g.checked!==e.checked&&(e.checked=g.checked))}return e}function I(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function N(e,t,n){var o,r,s;if(i.unmount&&i.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||I(o,null,t)),n||"function"==typeof e.type||(n=null!=(r=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){i.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&N(o[s],t,n);null!=r&&f(r)}function F(e,t,n){return this.constructor(e,n)}function P(e,t,n){var o,r,s;i.__&&i.__(e,t),r=(o=n===c)?null:n&&n.__k||t.__k,e=m(y,null,[e]),s=[],M(t,(o?t:n||t).__k=e,r||u,u,void 0!==t.ownerSVGElement,n&&!o?[n]:r?null:h.slice.call(t.childNodes),s,n||u,o),O(s,e)}function B(e,t){P(e,t,c)}function k(e,t){return t=p(p({},e.props),t),arguments.length>2&&(t.children=h.slice.call(arguments,2)),g(e.type,t,t.key||e.key,t.ref||e.ref)}function D(e){var t={},n={__c:"__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var i,o=this;return this.getChildContext||(i=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(t){e.value!==t.value&&i.some((function(e){e.context=t.value,C(e)}))},this.sub=function(e){i.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i.splice(i.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n}i={__e:function(e,t){for(var n,i;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(i=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(i=!0,n.componentDidCatch(e)),i)return C(n.__E=n)}catch(t){e=t}throw e}},o=function(e){return null!=e&&void 0===e.constructor},_.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),C(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},_.prototype.render=y,r=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=u,l=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13);t.Group=i.default;var o=n(15);t.Switch=o.default;var r=n(32);t.Select=r.default;var s=n(35);t.Button=s.default;var a=n(7);t.Information=a.default;var c=n(40);t.Range=c.default;var l=n(43);t.ColorPicker=l.default;var u=n(46);t.ToolsBar=u.default;var h=n(49);t.Tab=h.default;var d=n(52);t.Tree=d.default;var p=n(59);t.Preview=p.default;var f=n(62);t.List=f.default;var m=n(65);t.Folder=m.default;var g=n(8);t.Text=g.default;var v=n(70);t.WithDetails=v.default},function(e,t,n){(function(t){e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var i=function(e,n){var i=e[1]||"",o=e[3];if(!o)return i;if(n){var r=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new t(JSON.stringify(a)).toString("base64")+" */"),s=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[i].concat(s).concat([r]).join("\n")}var a;return[i].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+i+"}":i})).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&i[s[0]]||(t&&!s[2]?s[2]=t:t&&(s[2]="("+s[2]+") and ("+t+")"),n.push(s))}},n}}).call(t,n(25).Buffer)},function(e,t){var n={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},o=i((function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())})),r=i((function(){return document.head||document.getElementsByTagName("head")[0]})),s=null,a=0,c=[];function l(e,t){for(var i=0;i<e.length;i++){var o=e[i],r=n[o.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](o.parts[s]);for(;s<o.parts.length;s++)r.parts.push(f(o.parts[s],t))}else{var a=[];for(s=0;s<o.parts.length;s++)a.push(f(o.parts[s],t));n[o.id]={id:o.id,refs:1,parts:a}}}}function u(e){for(var t=[],n={},i=0;i<e.length;i++){var o=e[i],r=o[0],s={css:o[1],media:o[2],sourceMap:o[3]};n[r]?n[r].parts.push(s):t.push(n[r]={id:r,parts:[s]})}return t}function h(e,t){var n=r(),i=c[c.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function d(e){e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function p(e){var t=document.createElement("style");return t.type="text/css",h(e,t),t}function f(e,t){var n,i,o;if(t.singleton){var r=a++;n=s||(s=p(t)),i=v.bind(null,n,r,!1),o=v.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",h(e,t),t}(t),i=_.bind(null,n),o=function(){d(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),i=y.bind(null,n),o=function(){d(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(t=t||{}).singleton&&(t.singleton=o()),void 0===t.insertAt&&(t.insertAt="bottom");var i=u(e);return l(i,t),function(e){for(var o=[],r=0;r<i.length;r++){var s=i[r];(a=n[s.id]).refs--,o.push(a)}e&&l(u(e),t);for(r=0;r<o.length;r++){var a;if(0===(a=o[r]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete n[a.id]}}}};var m,g=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function v(e,t,n,i){var o=n?"":i.css;if(e.