diff --git a/dist/aframe-inspector.js b/dist/aframe-inspector.js index 8c79b1fa..a7fa69cd 100644 --- a/dist/aframe-inspector.js +++ b/dist/aframe-inspector.js @@ -258,7 +258,7 @@ (function init() { var webFontLoader = document.createElement('script'); - webFontLoader.innerHTML = 'WebFont.load({google: {families: ["Roboto Mono"]}});'; + webFontLoader.innerHTML = 'WebFont.load({google: {families: ["Roboto", "Roboto Mono"]}});'; var webFont = document.createElement('script'); webFont.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js'; @@ -277,7 +277,7 @@ window.addEventListener('inspector-loaded', function () { _reactDom2.default.render(_react2.default.createElement(Main, null), div); }); - console.log('A-Frame Inspector Version:', ("0.5.1"), '(' + ("18-04-2017") + ' Commit: ' + ("b066edba380db9aa6d48dd9b71c46e57330f7434\n").substr(0, 7) + ')'); + console.log('A-Frame Inspector Version:', ("0.5.2"), '(' + ("18-04-2017") + ' Commit: ' + ("66020eedc69e51a3937a8b18c34b5697eab0d46d\n").substr(0, 7) + ')'); })(); /***/ }, @@ -21830,6 +21830,9 @@ var INSPECTOR = __webpack_require__(200); + + var DELIMITER = ' '; + var AddComponent = function (_React$Component) { _inherits(AddComponent, _React$Component); @@ -21852,7 +21855,7 @@ })[0]; if (selectedOption.origin === 'registry') { - var _selectedOption$value = selectedOption.value.split('.'); + var _selectedOption$value = selectedOption.value.split(DELIMITER); var _selectedOption$value2 = _slicedToArray(_selectedOption$value, 2); @@ -21909,7 +21912,7 @@ }); }); var registryOptions = registryComponents.map(function (item) { - return { value: item.componentPackageName + '.' + item.componentName, + return { value: item.componentPackageName + DELIMITER + item.componentName, label: item.componentName, origin: 'registry' }; }); @@ -25582,12 +25585,25 @@ if (onDownPosition.distanceTo(onUpPosition) === 0) { var intersects = getIntersects(onUpPosition, objects); if (intersects.length > 0) { - var object = intersects[0].object; - if (object.userData.object !== undefined) { - // helper - inspector.selectEntity(object.userData.object.el); - } else { - inspector.selectEntity(object.el); + var selected = false; + for (var i = 0; i < intersects.length; i++) { + var object = intersects[i].object; + if (!object.el.getAttribute('visible')) { + continue; + } + + selected = true; + + if (object.userData.object !== undefined) { + // helper + inspector.selectEntity(object.userData.object.el); + } else { + inspector.selectEntity(object.el); + } + } + + if (!selected) { + inspector.selectEntity(null); } } else { inspector.selectEntity(null); @@ -27900,8 +27916,9 @@ document.getElementById('filter').focus(); } } - // tab: toggle sidebars visibility - if (event.keyCode === 9) { + + // º: toggle sidebars visibility + if (event.keyCode === 192) { Events.emit('togglesidebar', { which: 'all' }); event.preventDefault(); event.stopPropagation(); @@ -32602,7 +32619,7 @@ // module - exports.push([module.id, "body.aframe-inspector-opened {\n color: #fff;\n font-family: 'Roboto', sans-serif;\n font-size: 12px;\n margin: 0;\n overflow: hidden;\n}\n\nhr {\n border: 0;\n border-top: 1px solid #ccc;\n}\n\na {\n cursor: pointer;\n}\n\nbutton {\n position: relative;\n}\n\ncode {\n font-family: Consolas, Andale Mono, Monaco, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;\n}\n\ntextarea {\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n white-space: pre;\n word-wrap: normal;\n}\n\ntextarea.success {\n border-color: #8b8 !important;\n}\n\ntextarea.fail {\n background-color: rgba(255, 0, 0, 0.05);\n border-color: #f00 !important;\n}\n\ntextarea,\ninput {\n outline: none; /* osx */\n}\n\n#left-sidebar,\n#right-panels {\n z-index: 9998;\n}\n\n#sidebar,\n#left-sidebar,\n.panel {\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.collapsible .static {\n margin: 0;\n}\n\n.collapsible .static .collapse-button {\n border: 6px solid transparent;\n float: left;\n height: 0;\n margin-right: 6px;\n width: 0;\n}\n\n.collapsible.collapsed .static .collapse-button {\n border-left-color: #1faaf2;\n margin-top: 2px;\n}\n\n.collapsible:not(.collapsed) .static .collapse-button {\n border-top-color: #1faaf2;\n margin-top: 6px;\n}\n\n.collapsible.collapsed .content {\n display: none;\n}\n\n.toggle-edit {\n background-color: #ed3160;\n color: #fff;\n font-family: 'Roboto', sans-serif;\n font-size: 12px;\n left: 3px;\n margin: 0;\n padding: 6px 10px;\n position: fixed;\n text-align: center;\n text-decoration: none;\n top: 3px;\n width: 204px;\n z-index: 99999;\n}\n\n.toggle-edit:hover {\n background-color: rgb(228, 43, 90);\n}\n\n.scenegraph {\n border-top: 1px solid #111;\n padding-top: 32px;\n}\n\n.scenegraph .search {\n padding: 5px;\n}\n\n.scenegraph-toolbar {\n background-color: #333;\n position: fixed;\n top: 32px;\n}\n\n.scenegraph-actions {\n padding: 9px 0 5px;\n}\n\n.search {\n color: #aaa;\n font-size: 16px;\n position: relative;\n}\n\n.search input {\n background: #222;\n border-radius: 5px;\n height: 22px;\n text-indent: 10px;\n width: 216px;\n}\n\n.search .fa-search {\n position: absolute;\n right: 11px;\n top: 10px;\n}\n\n.search .fa-times {\n position: absolute;\n right: 32px;\n top: 10px;\n}\n\ninput {\n background-color: transparent;\n border: 1px solid #555;\n color: #fff;\n}\n\ninput,\n.texture canvas {\n -webkit-transition: 0.1s background-color ease-in-out, 0.1s border-color ease-in-out, 0.1s color ease-in-out;\n transition: 0.1s background-color ease-in-out, 0.1s border-color ease-in-out, 0.1s color ease-in-out;\n}\n\ninput[type=text],\ninput[type=number],\ninput.string,\ninput.number {\n min-height: 14px;\n outline: none;\n}\n\ninput.number {\n background-color: transparent !important;\n border: 0;\n color: #20b1fb !important;\n cursor: col-resize;\n font-size: 12px;\n padding: 2px;\n}\n\ninput.string:focus,\ninput.number:focus {\n border: 1px solid #20b1fb;\n color: #fff;\n cursor: auto;\n}\n\ninput.error {\n border: 1px solid #a00;\n}\n\n#left-sidebar {\n background: #2b2b2b;\n bottom: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n left: 0;\n overflow: auto;\n position: fixed;\n top: 0;\n width: 230px;\n}\n\n#sidebar {\n background: #2b2b2b;\n width: 331px;\n}\n\n#sidebar * {\n vertical-align: middle;\n}\n\ninput,\ntextarea,\nselect {\n background: #222;\n border: 1px solid transparent;\n color: #888;\n}\n\n.row {\n margin-bottom: 10px;\n min-height: 20px;\n}\n\ninput[type=color] {\n background-color: #333;\n border: 1px solid #111;\n cursor: pointer;\n}\n\n.texture canvas {\n border: 1px solid #222;\n cursor: pointer;\n}\n\n.texture canvas:hover {\n border-color: #1faaf2;\n}\n\ninput[type=color] {\n cursor: pointer;\n height: 16px;\n padding: 0;\n width: 64px;\n}\n\n/* Note: these vendor-prefixed selectors cannot be grouped! */\n\ninput[type=color]::-webkit-color-swatch {\n border: 0; /* To remove the gray border. */\n}\n\ninput[type=color]::-webkit-color-swatch-wrapper {\n padding: 0; /* To remove the inner padding. */\n}\n\ninput[type=color]::-moz-color-swatch {\n border: 0;\n}\n\ninput[type=color]::-moz-focus-inner {\n border: 0; /* To remove the inner border (specific to Firefox). */\n padding: 0;\n}\n\n.components {\n background-color: #323232;\n color: #bcbcbc;\n height: 100%;\n overflow: auto;\n position: fixed;\n width: 331px;\n}\n\ndiv.vec2,\ndiv.vec3,\ndiv.vec4 {\n display: inline;\n}\n\n.vec2 input.number,\n.vec3 input.number {\n width: 46px;\n}\n\n.vec4 input.number {\n width: 34px;\n}\n\n.collapsible-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.component-title span {\n float: left;\n max-width: 110px;\n overflow: hidden;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.collapsible .static {\n background-color: #323232;\n border-bottom: 1px solid #262626;\n border-top: 1px solid #262626;\n color: #fff;\n height: 16px;\n padding: 10px;\n vertical-align: middle;\n}\n\n.collapsible .menu {\n text-align: right;\n}\n\n.collapsible .menu::after {\n color: #bbb;\n content: '\\2807';\n font-size: 12px;\n padding: 5px;\n text-align: right;\n}\n\n.collapsible .static .collapse-button {\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n float: left;\n height: 0;\n margin-right: 10px;\n margin-top: 2px;\n width: 0;\n}\n\n.collapsible.collapsed .static .collapse-button {\n border-left-color: #bbb;\n}\n\n.collapsible:not(.collapsed) .static .collapse-button {\n border-top-color: #bbb;\n}\n\n.collapsible .content {\n background-color: #2b2b2b;\n padding: 10px;\n}\n\n.components .row {\n margin-bottom: 10px;\n min-height: 20px;\n}\n\n.components * {\n vertical-align: middle;\n}\n\n.components .row .text {\n cursor: default;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: middle;\n width: 120px;\n}\n\n.components .row .map_value {\n margin: 0 0 0 5px;\n width: 68px;\n}\n\n.hidden {\n visibility: hidden;\n}\n\n.uploader-normal-button .hidden {\n display: none;\n}\n\n.texture canvas + input {\n margin-left: 5px;\n}\n\n.texture .fa {\n padding-right: 5px;\n}\n\n.texture .fa-external-link {\n font-size: 14px;\n padding-top: 2px;\n}\n\n.scenegraph-bottom {\n background-color: #323232;\n border-top: 1px solid #111;\n bottom: 10;\n height: 40px;\n left: 0;\n z-index: 100;\n}\n\na.button {\n color: #bcbcbc;\n font-size: 16px;\n margin-left: 10px;\n text-decoration: none;\n}\n\na.button:hover {\n color: #1faaf2;\n}\n\n.scenegraph-bottom a {\n float: right;\n margin: 10px;\n}\n\n.modal {\n -webkit-animation: animateopacity 0.2s ease-out;\n animation: animateopacity 0.2s ease-out;\n background-color: rgb(0, 0, 0);\n background-color: rgba(0, 0, 0, 0.6);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n left: 0;\n overflow: auto;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 9999;\n}\n\n.modal h3 {\n font-size: 18px;\n font-weight: 100;\n margin: 0.6em 0;\n}\n\n#texture-modal .modal-content {\n height: calc(100% - 50px);\n width: calc(100% - 50px);\n}\n\n.modal-content {\n -webkit-animation: animatetop 0.2s ease-out;\n animation: animatetop 0.2s ease-out;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n -webkit-animation-name: animatetop;\n animation-name: animatetop;\n background-color: #232323;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);\n margin: auto;\n overflow: hidden;\n padding: 0;\n}\n\n@-webkit-keyframes animateopacity {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes animateopacity {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n.close {\n color: white;\n float: right;\n font-size: 28px;\n font-weight: bold;\n}\n\n.close:hover,\n.close:focus {\n color: #08f;\n cursor: pointer;\n text-decoration: none;\n}\n\n.modal-header {\n color: white;\n padding: 2px 16px;\n}\n\n.modal-body {\n overflow: auto;\n padding: 16px;\n}\n\n.modal-footer {\n color: white;\n padding: 2px 16px;\n}\n\n/* Gallery */\n\n.gallery {\n background: #232323;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin: 15px auto 0;\n max-height: 50vh;\n overflow: auto;\n padding: 15px 3px 3px;\n}\n\n.newimage .gallery {\n padding: 16px;\n}\n\n.gallery li {\n border-radius: 2px;\n box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);\n cursor: pointer;\n margin: 8px;\n overflow: hidden;\n width: 155px;\n}\n\n.gallery li.selected,\n.gallery li:hover {\n box-shadow: 0 0 0 2px #1eaaf1;\n}\n\n.gallery li .detail {\n background-color: #323232;\n margin: 0;\n min-height: 60px;\n padding: 3px 10px;\n}\n\n.gallery li .button.fa-external-link {\n margin-left: 136px;\n margin-top: 5px;\n position: fixed;\n}\n\n.preview {\n padding: 10px;\n width: 150px;\n}\n\n.preview input {\n display: block;\n margin: 8px 0;\n width: 144px;\n}\n\n.preview button {\n width: 155px;\n}\n\n.preview .detail .title {\n color: #fff;\n display: inline-block;\n max-width: 155px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.gallery li.selected .detail,\n.gallery li:hover .detail {\n background-color: #444;\n}\n\n.gallery li .detail span {\n color: #777;\n display: block;\n margin-top: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 140px;\n}\n\n.gallery li.selected .detail span,\n.gallery li:hover .detail span {\n color: #888;\n}\n\n.gallery li .detail span.title {\n color: #fff !important;\n}\n\n.modal button {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: 0;\n box-shadow: none;\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n line-height: 1.8;\n margin: 0 10px 0 0;\n padding: 5px 10px;\n}\n\n.modal button:focus {\n outline: none;\n}\n\n.modal button {\n background-color: #1eaaf1;\n border: none;\n color: #fff;\n}\n\n.modal button:hover,\n.modal button.hover {\n background-color: #346392;\n text-shadow: -1px 1px #27496d;\n}\n\n.modal button:active,\n.modal button.active {\n background-color: #27496d;\n text-shadow: -1px 1px #193047;\n}\n\n.modal button:disabled {\n background-color: #888;\n cursor: none;\n}\n\n.newimage {\n background-color: #323232;\n color: #bcbcbc;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 13px;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n margin-top: 10px;\n overflow: auto;\n padding: 10px;\n}\n\n.newimage input {\n color: #1eaaf1;\n padding: 3px 5px;\n}\n\n.hide {\n display: none;\n}\n\nspan.value {\n color: #fff;\n display: inline-block;\n}\n\nspan.mixinlist {\n color: #888 !important;\n display: inline-block;\n}\n\nspan.mixinlist ul {\n background-color: #222;\n list-style-type: none;\n margin: 5px 0 0;\n padding: 5px;\n}\n\nspan.mixinlist ul li {\n font-size: 11px;\n margin-bottom: 3px;\n}\n\nspan.mixinlist ul li:last-child {\n margin-bottom: 0;\n}\n\nspan.mixin {\n display: inline-block;\n width: 100px;\n}\n\n.mixinlist {\n margin-left: 120px;\n}\n\nspan.subcomponent {\n color: #999;\n float: none !important;\n margin-left: 10px;\n vertical-align: top !important;\n}\n\n.collapsible .static {\n cursor: pointer;\n}\n\n.a-canvas.state-dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n\ncode,\npre,\ninput,\ntextarea,\nselect {\n font-family: Consolas, Andale Mono, Monaco, Courier New, monospace;\n}\n\n.Select,\n.wf-active code,\n.wf-active pre,\n.wf-active input,\n.wf-active textarea,\n.wf-active select {\n font-family: Roboto Mono, Consolas, Andale Mono, Monaco, Courier New, monospace;\n}\n\n.tagName {\n font-weight: 500;\n}\n\n.sidebar-title {\n background-color: #444;\n color: #aaa;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 12px;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 6px 10px;\n position: relative;\n text-align: center;\n}\n\n.toolbar {\n background-color: #262626;\n color: #333;\n height: 32px;\n position: relative;\n}\n\n.toolbar * {\n margin-left: 0;\n padding: 8px;\n vertical-align: middle;\n}\n\n.toolbar a.button {\n margin: 0 6px 0 0;\n}\n\n.toolbar .active {\n background-color: #1faaf2;\n color: #fff;\n}\n\n.toolbar .active:hover {\n color: #fff !important;\n}\n\n.local-transform {\n padding-left: 10px;\n}\n\n.local-transform label {\n color: #aaa;\n padding-left: 5px;\n}\n\n.local-transform a.button {\n padding-top: 0;\n}\n\n.outliner {\n background: #2b2b2b;\n color: #868686;\n cursor: default;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n font-size: 12px;\n height: calc(100% - 98px);\n outline: none;\n overflow-y: auto;\n padding: 0;\n position: fixed;\n top: 98px;\n width: 230px;\n}\n\n.outliner .option {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 4px;\n white-space: nowrap;\n}\n\n.outliner .option.active {\n background-color: #1faaf2;\n color: #fff;\n}\n\n.outliner .option .component:hover {\n color: #1faaf2;\n}\n\n.outliner .option.active .component:hover {\n color: #1888c1;\n}\n\n.outliner .option .icons {\n display: none;\n margin: 0 3px 0 10px;\n}\n\n.outliner .option .icons .button {\n color: #fff;\n font-size: 12px;\n}\n\n.outliner .option.active .icons {\n display: inline;\n}\n\n.outliner .fa {\n color: #aaa;\n}\n\n.outliner .active .fa {\n color: #fff;\n}\n\na.flat-button {\n background-color: #262626;\n color: #bcbcbc;\n font-size: 11px;\n margin-left: 10px;\n padding: 5px;\n text-decoration: none;\n}\n\na.flat-button:hover {\n color: #1faaf2;\n}\n\n.component-title {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n\na.help-link {\n opacity: 0.4;\n}\n\na.help-link:hover {\n opacity: 1;\n}\n\n#right-panels {\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n position: fixed;\n right: 0;\n top: 0;\n}\n\n#aframe-inspector-panels {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n/* This is a temporaly hack, we should style the editor instead of overwriting\n the a-scene to fix the \"display: block\" issue. */\n\n.aframe-inspector-opened a-scene {\n display: inline !important;\n}\n\n.aframe-inspector-opened a-scene .a-canvas {\n background-color: #191919;\n z-index: 9998;\n}\n\n.uploadcare-widget-button-open {\n background-color: #1eaaf1;\n border-radius: 0;\n cursor: pointer;\n margin-left: 10px;\n padding: 10px 15px;\n}\n\n.uploadcare-widget-button-open:hover {\n background-color: #346392;\n}\n\n.new_asset_options {\n margin: 10px;\n}\n\n.new_asset_options > ul {\n margin-left: 10px;\n padding: 5px;\n}\n\n.new_asset_options > ul > li {\n padding: 10px 0;\n}\n\n.new_asset_options .imageUrl {\n margin-left: 5px;\n width: 350px;\n}\n\nspan.entity-name {\n color: #fff;\n font-family: Consolas, Andale Mono, Monaco, Courier New, monospace;\n font-size: 16px;\n}\n\n.add-component {\n width: 200px;\n}\n\n.Select-control {\n background-color: #222 !important;\n border: none;\n border-radius: 0;\n color: #1faaf2;\n}\n\n.Select-menu-outer {\n border: none;\n}\n\n.Select-menu-outer .is-focused {\n background-color: #1faaf2 !important;\n color: #fff;\n}\n\n.Select-option {\n background-color: #222 !important;\n}\n\n.select-widget {\n display: inline-block;\n width: 157px;\n}\n\n.Select-placeholder,\n.Select--single > .Select-control .Select-value {\n color: #1faaf2 !important;\n}\n\n.Select-value-label {\n color: #1faaf2 !important;\n}\n\n.row .Select-control {\n font-size: 11px;\n height: 24px;\n}\n\n.row .Select-placeholder,\n.row .Select--single > .Select-control .Select-value {\n line-height: 19px;\n}\n\n.row .Select-input {\n height: 22px;\n}\n\n.row input[type=text],\n.row input[type=number],\n.row input.string,\n.row input.number {\n background: #222;\n border: 1px solid transparent;\n color: #1faaf2;\n min-height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n\n.row input.string {\n box-sizing: border-box;\n width: 165px;\n}\n\n.help-lists {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n\n.help-list {\n list-style: none;\n margin: 0;\n padding: 0 0 10px;\n width: 350px;\n}\n\n.help-list li {\n margin-right: 40px;\n}\n\n.help-key-unit {\n line-height: 1.8;\n margin-right: 2em;\n padding: 5px 0;\n}\n\n.help-key {\n bottom: 2px;\n margin-right: 4px;\n min-width: 60px;\n position: relative;\n}\n\n.help-key span {\n background-color: #2e2e2e;\n background-repeat: repeat-x;\n border: 1px solid #666;\n border-radius: 3px;\n box-shadow: 0 0 5px #000;\n color: #999;\n display: inline-block;\n font-size: 12px;\n padding: 0 8px;\n text-align: center;\n}\n\n.help-key-def {\n color: #bbb;\n display: inline-block;\n margin-left: 1em;\n}\n\n.add-component {\n text-align: left;\n}\n\n.add-component .option {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.add-component .option span {\n color: #1faaf2;\n}\n\n.Select-menu-outer .is-focused span {\n color: #fff;\n}\n\n.add-component-container {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background-color: #2b2b2b;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n padding: 10px;\n}\n\n.aregistry-button {\n font-size: 12px;\n margin-left: 10px;\n padding: 8px;\n}\n\n.aregistry-button:hover {\n background-color: #1faaf2;\n}\n\n.aregistry-button img {\n height: 20px;\n width: 20px;\n}\n\n.components .row .color_value {\n margin: 0 0 0 5px;\n width: 68px;\n}\n\n.assets.search {\n margin-top: 10px;\n width: 200px;\n}\n\n.assets.search .fa-search {\n top: 7px;\n}\n\n.gallery a.fa.texture-link {\n box-shadow: 0 0 14px -1px rgba(0, 0, 0, 0.75);\n position: fixed;\n}\n\n.outliner .id {\n color: #ccc;\n}\n\n.outliner .option.active .id {\n color: #fff;\n}\n\n.outliner .collasespace {\n color: #eee;\n display: inline-block;\n text-align: center;\n width: 14px;\n}\n\n.outliner .fa-eye {\n color: #bbb;\n}\n\n.outliner .option {\n white-space: pre;\n}\n\n.option span:first-child {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.outliner .option.novisible span,\n.outliner .option.novisible .fa,\n.outliner .option.novisible .collasespace,\n.outliner .option.novisible .id {\n color: #575757;\n}\n\n.outliner .option .icons a.button {\n color: #fff;\n}\n\n.toggle-sidebar {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n position: absolute;\n z-index: 9998;\n}\n\n.toggle-sidebar.left {\n left: 0;\n}\n\n.toggle-sidebar.right {\n right: 0;\n}\n\n.toggle-sidebar a {\n background-color: #262626;\n color: #bcbcbc;\n padding: 5px;\n z-index: 9998;\n}\n\n.toggle-sidebar a:hover {\n background-color: #1faaf2;\n color: #fff;\n}\n", ""]); + exports.push([module.id, "body.aframe-inspector-opened,\n.toggle-edit {\n font-family: BlinkMacSystemFont, -apple-system, \"Segoe UI\", Helvetica, Arial, sans-serif;\n}\n\n.wf-roboto-n4-active body.aframe-inspector-opened,\n.wf-roboto-n4-active .toggle-edit {\n font-family: Roboto, BlinkMacSystemFont, -apple-system, \"Segoe UI\", Helvetica, Arial, sans-serif;\n}\n\n.Select,\ncode,\npre,\ninput,\ntextarea,\nselect {\n font-family: Consolas, Andale Mono, Monaco, Courier New, monospace;\n}\n\n.wf-robotomono-n4-active .Select,\n.wf-robotomono-n4-active code,\n.wf-robotomono-n4-active pre,\n.wf-robotomono-n4-active input,\n.wf-robotomono-n4-active textarea,\n.wf-robotomono-n4-active select {\n font-family: Roboto Mono, Consolas, Andale Mono, Monaco, Courier New, monospace;\n}\n\nbody.aframe-inspector-opened {\n color: #fff;\n font-size: 12px;\n margin: 0;\n overflow: hidden;\n}\n\nhr {\n border: 0;\n border-top: 1px solid #ccc;\n}\n\na {\n cursor: pointer;\n}\n\nbutton {\n position: relative;\n}\n\ncode {\n font-family: Consolas, Andale Mono, Monaco, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;\n}\n\ntextarea {\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n white-space: pre;\n word-wrap: normal;\n}\n\ntextarea.success {\n border-color: #8b8 !important;\n}\n\ntextarea.fail {\n background-color: rgba(255, 0, 0, 0.05);\n border-color: #f00 !important;\n}\n\ntextarea,\ninput {\n outline: none; /* osx */\n}\n\n#left-sidebar,\n#right-panels {\n z-index: 9998;\n}\n\n#sidebar,\n#left-sidebar,\n.panel {\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.collapsible .static {\n margin: 0;\n}\n\n.collapsible .static .collapse-button {\n border: 6px solid transparent;\n float: left;\n height: 0;\n margin-right: 6px;\n width: 0;\n}\n\n.collapsible.collapsed .static .collapse-button {\n border-left-color: #1faaf2;\n margin-top: 2px;\n}\n\n.collapsible:not(.collapsed) .static .collapse-button {\n border-top-color: #1faaf2;\n margin-top: 6px;\n}\n\n.collapsible.collapsed .content {\n display: none;\n}\n\n.toggle-edit {\n background-color: #ed3160;\n color: #fff;\n font-size: 12px;\n left: 3px;\n margin: 0;\n padding: 6px 10px;\n position: fixed;\n text-align: center;\n text-decoration: none;\n top: 3px;\n width: 204px;\n z-index: 99999;\n}\n\n.toggle-edit:hover {\n background-color: rgb(228, 43, 90);\n}\n\n.scenegraph {\n border-top: 1px solid #111;\n padding-top: 32px;\n}\n\n.scenegraph .search {\n padding: 5px;\n}\n\n.scenegraph-toolbar {\n background-color: #333;\n position: fixed;\n top: 32px;\n}\n\n.scenegraph-actions {\n padding: 9px 0 5px;\n}\n\n.search {\n color: #aaa;\n font-size: 16px;\n position: relative;\n}\n\n.search input {\n background: #222;\n border-radius: 5px;\n height: 22px;\n text-indent: 10px;\n width: 216px;\n}\n\n.search .fa-search {\n position: absolute;\n right: 11px;\n top: 10px;\n}\n\n.search .fa-times {\n position: absolute;\n right: 32px;\n top: 10px;\n}\n\ninput {\n background-color: transparent;\n border: 1px solid #555;\n color: #fff;\n}\n\ninput,\n.texture canvas {\n -webkit-transition: 0.1s background-color ease-in-out, 0.1s border-color ease-in-out, 0.1s color ease-in-out;\n transition: 0.1s background-color ease-in-out, 0.1s border-color ease-in-out, 0.1s color ease-in-out;\n}\n\ninput[type=text],\ninput[type=number],\ninput.string,\ninput.number {\n min-height: 14px;\n outline: none;\n}\n\ninput.number {\n background-color: transparent !important;\n border: 0;\n color: #20b1fb !important;\n cursor: col-resize;\n font-size: 12px;\n padding: 2px;\n}\n\ninput.string:focus,\ninput.number:focus {\n border: 1px solid #20b1fb;\n color: #fff;\n cursor: auto;\n}\n\ninput.error {\n border: 1px solid #a00;\n}\n\n#left-sidebar {\n background: #2b2b2b;\n bottom: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n left: 0;\n overflow: auto;\n position: fixed;\n top: 0;\n width: 230px;\n}\n\n#sidebar {\n background: #2b2b2b;\n width: 331px;\n}\n\n#sidebar * {\n vertical-align: middle;\n}\n\ninput,\ntextarea,\nselect {\n background: #222;\n border: 1px solid transparent;\n color: #888;\n}\n\n.row {\n margin-bottom: 10px;\n min-height: 20px;\n}\n\ninput[type=color] {\n background-color: #333;\n border: 1px solid #111;\n cursor: pointer;\n}\n\n.texture canvas {\n border: 1px solid #222;\n cursor: pointer;\n}\n\n.texture canvas:hover {\n border-color: #1faaf2;\n}\n\ninput[type=color] {\n cursor: pointer;\n height: 16px;\n padding: 0;\n width: 64px;\n}\n\n/* Note: these vendor-prefixed selectors cannot be grouped! */\n\ninput[type=color]::-webkit-color-swatch {\n border: 0; /* To remove the gray border. */\n}\n\ninput[type=color]::-webkit-color-swatch-wrapper {\n padding: 0; /* To remove the inner padding. */\n}\n\ninput[type=color]::-moz-color-swatch {\n border: 0;\n}\n\ninput[type=color]::-moz-focus-inner {\n border: 0; /* To remove the inner border (specific to Firefox). */\n padding: 0;\n}\n\n.components {\n background-color: #323232;\n color: #bcbcbc;\n height: 100%;\n overflow: auto;\n position: fixed;\n width: 331px;\n}\n\ndiv.vec2,\ndiv.vec3,\ndiv.vec4 {\n display: inline;\n}\n\n.vec2 input.number,\n.vec3 input.number {\n width: 46px;\n}\n\n.vec4 input.number {\n width: 34px;\n}\n\n.collapsible-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.component-title span {\n float: left;\n max-width: 110px;\n overflow: hidden;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.collapsible .static {\n background-color: #323232;\n border-bottom: 1px solid #262626;\n border-top: 1px solid #262626;\n color: #fff;\n height: 16px;\n padding: 10px;\n vertical-align: middle;\n}\n\n.collapsible .menu {\n text-align: right;\n}\n\n.collapsible .menu::after {\n color: #bbb;\n content: '\\2807';\n font-size: 12px;\n padding: 5px;\n text-align: right;\n}\n\n.collapsible .static .collapse-button {\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n float: left;\n height: 0;\n margin-right: 10px;\n margin-top: 2px;\n width: 0;\n}\n\n.collapsible.collapsed .static .collapse-button {\n border-left-color: #bbb;\n}\n\n.collapsible:not(.collapsed) .static .collapse-button {\n border-top-color: #bbb;\n}\n\n.collapsible .content {\n background-color: #2b2b2b;\n padding: 10px;\n}\n\n.components .row {\n margin-bottom: 10px;\n min-height: 20px;\n}\n\n.components * {\n vertical-align: middle;\n}\n\n.components .row .text {\n cursor: default;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: middle;\n width: 120px;\n}\n\n.components .row .map_value {\n margin: 0 0 0 5px;\n width: 68px;\n}\n\n.hidden {\n visibility: hidden;\n}\n\n.uploader-normal-button .hidden {\n display: none;\n}\n\n.texture canvas + input {\n margin-left: 5px;\n}\n\n.texture .fa {\n padding-right: 5px;\n}\n\n.texture .fa-external-link {\n font-size: 14px;\n padding-top: 2px;\n}\n\n.scenegraph-bottom {\n background-color: #323232;\n border-top: 1px solid #111;\n bottom: 10;\n height: 40px;\n left: 0;\n z-index: 100;\n}\n\na.button {\n color: #bcbcbc;\n font-size: 16px;\n margin-left: 10px;\n text-decoration: none;\n}\n\na.button:hover {\n color: #1faaf2;\n}\n\n.scenegraph-bottom a {\n float: right;\n margin: 10px;\n}\n\n.modal {\n -webkit-animation: animateopacity 0.2s ease-out;\n animation: animateopacity 0.2s ease-out;\n background-color: rgb(0, 0, 0);\n background-color: rgba(0, 0, 0, 0.6);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n left: 0;\n overflow: auto;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 9999;\n}\n\n.modal h3 {\n font-size: 18px;\n font-weight: 100;\n margin: 0.6em 0;\n}\n\n#texture-modal .modal-content {\n height: calc(100% - 50px);\n width: calc(100% - 50px);\n}\n\n.modal-content {\n -webkit-animation: animatetop 0.2s ease-out;\n animation: animatetop 0.2s ease-out;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n -webkit-animation-name: animatetop;\n animation-name: animatetop;\n background-color: #232323;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);\n margin: auto;\n overflow: hidden;\n padding: 0;\n}\n\n@-webkit-keyframes animateopacity {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes animateopacity {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n.close {\n color: white;\n float: right;\n font-size: 28px;\n font-weight: bold;\n}\n\n.close:hover,\n.close:focus {\n color: #08f;\n cursor: pointer;\n text-decoration: none;\n}\n\n.modal-header {\n color: white;\n padding: 2px 16px;\n}\n\n.modal-body {\n overflow: auto;\n padding: 16px;\n}\n\n.modal-footer {\n color: white;\n padding: 2px 16px;\n}\n\n/* Gallery */\n\n.gallery {\n background: #232323;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin: 15px auto 0;\n max-height: 50vh;\n overflow: auto;\n padding: 15px 3px 3px;\n}\n\n.newimage .gallery {\n padding: 16px;\n}\n\n.gallery li {\n border-radius: 2px;\n box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);\n cursor: pointer;\n margin: 8px;\n overflow: hidden;\n width: 155px;\n}\n\n.gallery li.selected,\n.gallery li:hover {\n box-shadow: 0 0 0 2px #1eaaf1;\n}\n\n.gallery li .detail {\n background-color: #323232;\n margin: 0;\n min-height: 60px;\n padding: 3px 10px;\n}\n\n.gallery li .button.fa-external-link {\n margin-left: 136px;\n margin-top: 5px;\n position: fixed;\n}\n\n.preview {\n padding: 10px;\n width: 150px;\n}\n\n.preview input {\n display: block;\n margin: 8px 0;\n width: 144px;\n}\n\n.preview button {\n width: 155px;\n}\n\n.preview .detail .title {\n color: #fff;\n display: inline-block;\n max-width: 155px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.gallery li.selected .detail,\n.gallery li:hover .detail {\n background-color: #444;\n}\n\n.gallery li .detail span {\n color: #777;\n display: block;\n margin-top: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 140px;\n}\n\n.gallery li.selected .detail span,\n.gallery li:hover .detail span {\n color: #888;\n}\n\n.gallery li .detail span.title {\n color: #fff !important;\n}\n\n.modal button {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: 0;\n box-shadow: none;\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n line-height: 1.8;\n margin: 0 10px 0 0;\n padding: 5px 10px;\n}\n\n.modal button:focus {\n outline: none;\n}\n\n.modal button {\n background-color: #1eaaf1;\n border: none;\n color: #fff;\n}\n\n.modal button:hover,\n.modal button.hover {\n background-color: #346392;\n text-shadow: -1px 1px #27496d;\n}\n\n.modal button:active,\n.modal button.active {\n background-color: #27496d;\n text-shadow: -1px 1px #193047;\n}\n\n.modal button:disabled {\n background-color: #888;\n cursor: none;\n}\n\n.newimage {\n background-color: #323232;\n color: #bcbcbc;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 13px;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n margin-top: 10px;\n overflow: auto;\n padding: 10px;\n}\n\n.newimage input {\n color: #1eaaf1;\n padding: 3px 5px;\n}\n\n.hide {\n display: none;\n}\n\nspan.value {\n color: #fff;\n display: inline-block;\n}\n\nspan.mixinlist {\n color: #888 !important;\n display: inline-block;\n}\n\nspan.mixinlist ul {\n background-color: #222;\n list-style-type: none;\n margin: 5px 0 0;\n padding: 5px;\n}\n\nspan.mixinlist ul li {\n font-size: 11px;\n margin-bottom: 3px;\n}\n\nspan.mixinlist ul li:last-child {\n margin-bottom: 0;\n}\n\nspan.mixin {\n display: inline-block;\n width: 100px;\n}\n\n.mixinlist {\n margin-left: 120px;\n}\n\nspan.subcomponent {\n color: #999;\n float: none !important;\n margin-left: 10px;\n vertical-align: top !important;\n}\n\n.collapsible .static {\n cursor: pointer;\n}\n\n.a-canvas.state-dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n\n.tagName {\n font-weight: 500;\n}\n\n.sidebar-title {\n background-color: #444;\n color: #aaa;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 12px;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 6px 10px;\n position: relative;\n text-align: center;\n}\n\n.toolbar {\n background-color: #262626;\n color: #333;\n height: 32px;\n position: relative;\n}\n\n.toolbar * {\n margin-left: 0;\n padding: 8px;\n vertical-align: middle;\n}\n\n.toolbar a.button {\n margin: 0 6px 0 0;\n}\n\n.toolbar .active {\n background-color: #1faaf2;\n color: #fff;\n}\n\n.toolbar .active:hover {\n color: #fff !important;\n}\n\n.local-transform {\n padding-left: 10px;\n}\n\n.local-transform label {\n color: #aaa;\n padding-left: 5px;\n}\n\n.local-transform a.button {\n padding-top: 0;\n}\n\n.outliner {\n background: #2b2b2b;\n color: #868686;\n cursor: default;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n font-size: 12px;\n height: calc(100% - 98px);\n outline: none;\n overflow-y: auto;\n padding: 0;\n position: fixed;\n top: 98px;\n width: 230px;\n}\n\n.outliner .option {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 4px;\n white-space: nowrap;\n}\n\n.outliner .option.active {\n background-color: #1faaf2;\n color: #fff;\n}\n\n.outliner .option .component:hover {\n color: #1faaf2;\n}\n\n.outliner .option.active .component:hover {\n color: #1888c1;\n}\n\n.outliner .option .icons {\n display: none;\n margin: 0 3px 0 10px;\n}\n\n.outliner .option .icons .button {\n color: #fff;\n font-size: 12px;\n}\n\n.outliner .option.active .icons {\n display: inline;\n}\n\n.outliner .fa {\n color: #aaa;\n}\n\n.outliner .active .fa {\n color: #fff;\n}\n\na.flat-button {\n background-color: #262626;\n color: #bcbcbc;\n font-size: 11px;\n margin-left: 10px;\n padding: 5px;\n text-decoration: none;\n}\n\na.flat-button:hover {\n color: #1faaf2;\n}\n\n.component-title {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n\na.help-link {\n opacity: 0.4;\n}\n\na.help-link:hover {\n opacity: 1;\n}\n\n#right-panels {\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n position: fixed;\n right: 0;\n top: 0;\n}\n\n#aframe-inspector-panels {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n/* This is a temporaly hack, we should style the editor instead of overwriting\n the a-scene to fix the \"display: block\" issue. */\n\n.aframe-inspector-opened a-scene {\n display: inline !important;\n}\n\n.aframe-inspector-opened a-scene .a-canvas {\n background-color: #191919;\n z-index: 9998;\n}\n\n.uploadcare-widget-button-open {\n background-color: #1eaaf1;\n border-radius: 0;\n cursor: pointer;\n margin-left: 10px;\n padding: 10px 15px;\n}\n\n.uploadcare-widget-button-open:hover {\n background-color: #346392;\n}\n\n.new_asset_options {\n margin: 10px;\n}\n\n.new_asset_options > ul {\n margin-left: 10px;\n padding: 5px;\n}\n\n.new_asset_options > ul > li {\n padding: 10px 0;\n}\n\n.new_asset_options .imageUrl {\n margin-left: 5px;\n width: 350px;\n}\n\nspan.entity-name {\n color: #fff;\n font-family: Consolas, Andale Mono, Monaco, Courier New, monospace;\n font-size: 16px;\n}\n\n.add-component {\n width: 200px;\n}\n\n.Select-control {\n background-color: #222 !important;\n border: none;\n border-radius: 0;\n color: #1faaf2;\n}\n\n.Select-menu-outer {\n border: none;\n}\n\n.Select-menu-outer .is-focused {\n background-color: #1faaf2 !important;\n color: #fff;\n}\n\n.Select-option {\n background-color: #222 !important;\n}\n\n.select-widget {\n display: inline-block;\n width: 157px;\n}\n\n.Select-placeholder,\n.Select--single > .Select-control .Select-value {\n color: #1faaf2 !important;\n}\n\n.Select-value-label {\n color: #1faaf2 !important;\n}\n\n.row .Select-control {\n font-size: 11px;\n height: 24px;\n}\n\n.row .Select-placeholder,\n.row .Select--single > .Select-control .Select-value {\n line-height: 19px;\n}\n\n.row .Select-input {\n height: 22px;\n}\n\n.row input[type=text],\n.row input[type=number],\n.row input.string,\n.row input.number {\n background: #222;\n border: 1px solid transparent;\n color: #1faaf2;\n min-height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n\n.row input.string {\n box-sizing: border-box;\n width: 165px;\n}\n\n.help-lists {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n\n.help-list {\n list-style: none;\n margin: 0;\n padding: 0 0 10px;\n width: 350px;\n}\n\n.help-list li {\n margin-right: 40px;\n}\n\n.help-key-unit {\n line-height: 1.8;\n margin-right: 2em;\n padding: 5px 0;\n}\n\n.help-key {\n bottom: 2px;\n margin-right: 4px;\n min-width: 60px;\n position: relative;\n}\n\n.help-key span {\n background-color: #2e2e2e;\n background-repeat: repeat-x;\n border: 1px solid #666;\n border-radius: 3px;\n box-shadow: 0 0 5px #000;\n color: #999;\n display: inline-block;\n font-size: 12px;\n padding: 0 8px;\n text-align: center;\n}\n\n.help-key-def {\n color: #bbb;\n display: inline-block;\n margin-left: 1em;\n}\n\n.add-component {\n text-align: left;\n}\n\n.add-component .option {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.add-component .option span {\n color: #1faaf2;\n}\n\n.Select-menu-outer .is-focused span {\n color: #fff;\n}\n\n.add-component-container {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background-color: #2b2b2b;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n padding: 10px;\n}\n\n.aregistry-button {\n font-size: 12px;\n margin-left: 10px;\n padding: 8px;\n}\n\n.aregistry-button:hover {\n background-color: #1faaf2;\n}\n\n.aregistry-button img {\n height: 20px;\n width: 20px;\n}\n\n.components .row .color_value {\n margin: 0 0 0 5px;\n width: 68px;\n}\n\n.assets.search {\n margin-top: 10px;\n width: 200px;\n}\n\n.assets.search .fa-search {\n top: 7px;\n}\n\n.gallery a.fa.texture-link {\n box-shadow: 0 0 14px -1px rgba(0, 0, 0, 0.75);\n position: fixed;\n}\n\n.outliner .id {\n color: #ccc;\n}\n\n.outliner .option.active .id {\n color: #fff;\n}\n\n.outliner .collasespace {\n color: #eee;\n display: inline-block;\n text-align: center;\n width: 14px;\n}\n\n.outliner .fa-eye {\n color: #bbb;\n}\n\n.outliner .option {\n white-space: pre;\n}\n\n.option span:first-child {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.outliner .option.novisible span,\n.outliner .option.novisible .fa,\n.outliner .option.novisible .collasespace,\n.outliner .option.novisible .id {\n color: #575757;\n}\n\n.outliner .option .icons a.button {\n color: #fff;\n}\n\n.toggle-sidebar {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n position: absolute;\n z-index: 9998;\n}\n\n.toggle-sidebar.left {\n left: 0;\n}\n\n.toggle-sidebar.right {\n right: 0;\n}\n\n.toggle-sidebar a {\n background-color: #262626;\n color: #bcbcbc;\n padding: 5px;\n z-index: 9998;\n}\n\n.toggle-sidebar a:hover {\n background-color: #1faaf2;\n color: #fff;\n}\n", ""]); // exports diff --git a/dist/aframe-inspector.min.js b/dist/aframe-inspector.min.js index c0d11d0b..5488706b 100644 --- a/dist/aframe-inspector.min.js +++ b/dist/aframe-inspector.min.js @@ -1,5 +1,5 @@ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n1){for(var v=Array(m),y=0;y1){for(var b=Array(g),E=0;E>"),O={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:u,element:l(),instanceOf:c,node:h(),objectOf:d,oneOf:p,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=O},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t){"use strict";e.exports="15.4.0"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)?void 0:r("143"),e}var r=n(7),i=n(9);n(8);e.exports=o},function(e,t,n){"use strict";e.exports=n(30)},function(e,t,n){"use strict";var o=n(31),r=n(35),i=n(158),a=n(56),s=n(53),u=n(163),l=n(164),c=n(165),p=n(166);n(11);r.inject();var d={findDOMNode:l,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:u,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:o.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?o.getNodeFromInstance(e):null}},Mount:i,Reconciler:a});e.exports=d},function(e,t,n){"use strict";function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function r(e,t){var n=o(e);n._hostNode=t,t[m]=n}function i(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function a(e,t){if(!(e._flags&h.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],u=o(s)._domID;if(0!==u){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(f)===String(u)||8===i.nodeType&&i.nodeValue===" react-text: "+u+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+u+" "){r(s,i);continue e}c("32",u)}}e._flags|=h.hasCachedChildNodes}}function s(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,o;e&&(o=e[m]);e=t.pop())n=o,t.length&&a(o,e);return n}function u(e){var t=s(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode?c("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:c("34"),e=e._hostParent;for(;t.length;e=t.pop())a(e,e._hostNode);return e._hostNode}var c=n(32),p=n(33),d=n(34),f=(n(8),p.ID_ATTRIBUTE_NAME),h=d,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:a,precacheNode:r,uncacheNode:i};e.exports=v},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o8&&x<=11),T=32,_=String.fromCharCode(T),P={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},O=!1,k=null,S={eventTypes:P,extractEvents:function(e,t,n,o){return[l(e,t,n,o),d(e,t,n,o)]}};e.exports=S},function(e,t,n){"use strict";function o(e,t,n){var o=t.dispatchConfig.phasedRegistrationNames[n];return y(e,o)}function r(e,t,n){var r=o(e,n,t);r&&(n._dispatchListeners=m(n._dispatchListeners,r),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,r,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,r,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,r=y(e,o);r&&(n._dispatchListeners=m(n._dispatchListeners,r),n._dispatchInstances=m(n._dispatchInstances,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function l(e){v(e,i)}function c(e){v(e,a)}function p(e,t,n,o){h.traverseEnterLeave(n,o,s,e,t)}function d(e){v(e,u)}var f=n(39),h=n(41),m=n(43),v=n(44),y=(n(11),f.getListener),g={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};e.exports=g},function(e,t,n){"use strict";var o=n(32),r=n(40),i=n(41),a=n(42),s=n(43),u=n(44),l=(n(8),{}),c=null,p=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return p(e,!0)},f=function(e){return p(e,!1)},h=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?o("94",t,typeof n):void 0;var i=h(e),a=l[t]||(l[t]={});a[i]=n;var s=r.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t],o=h(e);return n&&n[o]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=l[t];if(o){var i=h(e);delete o[i]}},deleteAllListeners:function(e){var t=h(e);for(var n in l)if(l.hasOwnProperty(n)&&l[n][t]){var o=r.registrationNameModules[n];o&&o.willDeleteListener&&o.willDeleteListener(e,n),delete l[n][t]}},extractEvents:function(e,t,n,o){for(var i,a=r.plugins,u=0;u-1?void 0:a("96",e),!l.plugins[n]){t.extractEvents?void 0:a("97",e),l.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)?void 0:a("98",i,e)}}}function r(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){l.registrationNameModules[e]?a("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(32),s=(n(8),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];u.hasOwnProperty(n)&&u[n]===r||(u[n]?a("102",n):void 0,u[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=l.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=l.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=l},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(32),r=(n(8),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},s=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},u=function(e,t,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,o,r),a}return new i(e,t,n,o,r)},l=function(e){var t=this;e instanceof t?void 0:o("25"),e.destructor(),t.instancePool.length8));var N=!1;E.canUseDOM&&(N=_("input")&&(!document.documentMode||document.documentMode>11));var D={get:function(){return A.get.call(this)},set:function(e){M=""+e,A.set.call(this,e)}},j={eventTypes:O,extractEvents:function(e,t,n,r){var i,a,s=t?x.getNodeFromInstance(t):window;if(o(s)?R?i=u:a=l:P(s)?N?i=f:(i=m,a=h):v(s)&&(i=y),i){var c=i(e,t);if(c){var p=C.getPooled(O.change,c,n,r);return p.type="change",b.accumulateTwoPhaseDispatches(p),p}}a&&a(e,s,t)}};e.exports=j},function(e,t,n){"use strict";function o(){O.ReactReconcileTransaction&&x?void 0:c("123")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,r,i,a){return o(),x.batchedUpdates(e,t,n,r,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?c("124",t,y.length):void 0,y.sort(a),g++;for(var n=0;n1){for(var v=Array(m),y=0;y1){for(var b=Array(g),E=0;E>"),O={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:u,element:l(),instanceOf:c,node:h(),objectOf:d,oneOf:p,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=O},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t){"use strict";e.exports="15.4.0"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)?void 0:r("143"),e}var r=n(7),i=n(9);n(8);e.exports=o},function(e,t,n){"use strict";e.exports=n(30)},function(e,t,n){"use strict";var o=n(31),r=n(35),i=n(158),a=n(56),s=n(53),u=n(163),l=n(164),c=n(165),p=n(166);n(11);r.inject();var d={findDOMNode:l,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:u,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:o.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?o.getNodeFromInstance(e):null}},Mount:i,Reconciler:a});e.exports=d},function(e,t,n){"use strict";function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function r(e,t){var n=o(e);n._hostNode=t,t[m]=n}function i(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function a(e,t){if(!(e._flags&h.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],u=o(s)._domID;if(0!==u){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(f)===String(u)||8===i.nodeType&&i.nodeValue===" react-text: "+u+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+u+" "){r(s,i);continue e}c("32",u)}}e._flags|=h.hasCachedChildNodes}}function s(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,o;e&&(o=e[m]);e=t.pop())n=o,t.length&&a(o,e);return n}function u(e){var t=s(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode?c("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:c("34"),e=e._hostParent;for(;t.length;e=t.pop())a(e,e._hostNode);return e._hostNode}var c=n(32),p=n(33),d=n(34),f=(n(8),p.ID_ATTRIBUTE_NAME),h=d,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:a,precacheNode:r,uncacheNode:i};e.exports=v},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o8&&w<=11),T=32,_=String.fromCharCode(T),P={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},O=!1,k=null,S={eventTypes:P,extractEvents:function(e,t,n,o){return[l(e,t,n,o),d(e,t,n,o)]}};e.exports=S},function(e,t,n){"use strict";function o(e,t,n){var o=t.dispatchConfig.phasedRegistrationNames[n];return y(e,o)}function r(e,t,n){var r=o(e,n,t);r&&(n._dispatchListeners=m(n._dispatchListeners,r),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,r,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,r,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,r=y(e,o);r&&(n._dispatchListeners=m(n._dispatchListeners,r),n._dispatchInstances=m(n._dispatchInstances,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function l(e){v(e,i)}function c(e){v(e,a)}function p(e,t,n,o){h.traverseEnterLeave(n,o,s,e,t)}function d(e){v(e,u)}var f=n(39),h=n(41),m=n(43),v=n(44),y=(n(11),f.getListener),g={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};e.exports=g},function(e,t,n){"use strict";var o=n(32),r=n(40),i=n(41),a=n(42),s=n(43),u=n(44),l=(n(8),{}),c=null,p=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return p(e,!0)},f=function(e){return p(e,!1)},h=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?o("94",t,typeof n):void 0;var i=h(e),a=l[t]||(l[t]={});a[i]=n;var s=r.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t],o=h(e);return n&&n[o]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=l[t];if(o){var i=h(e);delete o[i]}},deleteAllListeners:function(e){var t=h(e);for(var n in l)if(l.hasOwnProperty(n)&&l[n][t]){var o=r.registrationNameModules[n];o&&o.willDeleteListener&&o.willDeleteListener(e,n),delete l[n][t]}},extractEvents:function(e,t,n,o){for(var i,a=r.plugins,u=0;u-1?void 0:a("96",e),!l.plugins[n]){t.extractEvents?void 0:a("97",e),l.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)?void 0:a("98",i,e)}}}function r(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){l.registrationNameModules[e]?a("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(32),s=(n(8),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];u.hasOwnProperty(n)&&u[n]===r||(u[n]?a("102",n):void 0,u[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=l.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=l.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=l},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(32),r=(n(8),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},s=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},u=function(e,t,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,o,r),a}return new i(e,t,n,o,r)},l=function(e){var t=this;e instanceof t?void 0:o("25"),e.destructor(),t.instancePool.length8));var N=!1;E.canUseDOM&&(N=_("input")&&(!document.documentMode||document.documentMode>11));var D={get:function(){return A.get.call(this)},set:function(e){M=""+e,A.set.call(this,e)}},j={eventTypes:O,extractEvents:function(e,t,n,r){var i,a,s=t?w.getNodeFromInstance(t):window;if(o(s)?R?i=u:a=l:P(s)?N?i=f:(i=m,a=h):v(s)&&(i=y),i){var c=i(e,t);if(c){var p=C.getPooled(O.change,c,n,r);return p.type="change",b.accumulateTwoPhaseDispatches(p),p}}a&&a(e,s,t)}};e.exports=j},function(e,t,n){"use strict";function o(){O.ReactReconcileTransaction&&w?void 0:c("123")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,r,i,a){return o(),w.batchedUpdates(e,t,n,r,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?c("124",t,y.length):void 0,y.sort(a),g++;for(var n=0;n]/,u=n(76),l=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=l},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=n},function(e,t,n){"use strict";var o=n(45),r=n(78),i=n(75),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void i(e,r(t))})),e.exports=a},function(e,t){"use strict";function n(e){var t=""+e,n=r.exec(t);if(!n)return t;var o,i="",a=0,s=0;for(a=n.index;a]/;e.exports=o},function(e,t,n){"use strict";var o=n(32),r=n(73),i=n(45),a=n(80),s=n(12),u=(n(8),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:o("56"),t?void 0:o("57"),"HTML"===e.nodeName?o("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=u},function(e,t,n){"use strict";function o(e){var t=e.match(c);return t&&t[1].toLowerCase()}function r(e,t){var n=l;l?void 0:u(!1);var r=o(e),i=r&&s(r);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:u(!1),a(p).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=n(45),a=n(81),s=n(82),u=n(8),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?a(!1):void 0,"number"!=typeof t?a(!1):void 0,0===t||t-1 in e?void 0:a(!1),"function"==typeof e.callee?a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var r=n(45),i=n(8),a=r.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],p=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=p,s[e]=!0}),e.exports=o},function(e,t,n){"use strict";var o=n(72),r=n(31),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function r(e,t){t&&(X[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?m("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?m("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&B in t.dangerouslySetInnerHTML?void 0:m("61")),null!=t.style&&"object"!=typeof t.style?m("62",o(e)):void 0)}function i(e,t,n,o){if(!(o instanceof N)){var r=e._hostContainerInfo,i=r._node&&r._node.nodeType===W,s=i?r._node:r._ownerDocument;L(t,s),o.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n})}}function a(){var e=this;C.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;k.postMountWrapper(e)}function u(){var e=this;A.postMountWrapper(e)}function l(){var e=this;S.postMountWrapper(e)}function c(){var e=this;e._rootNodeID?void 0:m("63");var t=F(e);switch(t?void 0:m("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[_.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in K)K.hasOwnProperty(n)&&e._wrapperState.listeners.push(_.trapBubbledEvent(n,K[n],t));break;case"source":e._wrapperState.listeners=[_.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[_.trapBubbledEvent("topError","error",t),_.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[_.trapBubbledEvent("topReset","reset",t),_.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[_.trapBubbledEvent("topInvalid","invalid",t)]}}function p(){M.postUpdateWrapper(this)}function d(e){Q.call(Z,e)||(G.test(e)?void 0:m("65",e),Z[e]=!0)}function f(e,t){return e.indexOf("-")>=0||null!=t.is}function h(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(32),v=n(4),y=n(85),g=n(87),b=n(73),E=n(74),x=n(33),w=n(95),C=n(39),T=n(40),_=n(97),P=n(34),O=n(31),k=n(100),S=n(103),M=n(104),A=n(105),R=(n(59),n(106)),N=n(125),D=(n(12),n(78)),j=(n(8),n(62),n(114),n(128),n(11),P),I=C.deleteListener,F=O.getNodeFromInstance,L=_.listenTo,H=T.registrationNameModules,U={string:!0,number:!0},V="style",B="__html",z={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Y={listing:!0,pre:!0,textarea:!0},X=v({menuitem:!0},q),G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z={},Q={}.hasOwnProperty,$=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=$++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":S.mountWrapper(this,i,t),i=S.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":A.mountWrapper(this,i,t),i=A.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,p;null!=t?(a=t._namespaceURI,p=t._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===E.svg&&"foreignobject"===p)&&(a=E.html),a===E.html&&("svg"===this._tag?a=E.svg:"math"===this._tag&&(a=E.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===E.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);O.precacheNode(this,f),this._flags|=j.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var g=b(f);this._createInitialChildren(e,i,o,g),d=g}else{var x=this._createOpenTagMarkupAndPutListeners(e,i),C=this._createContentMarkup(e,i,o);d=!C&&q[this._tag]?x+"/>":x+">"+C+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(H.hasOwnProperty(o))r&&i(this,o,r,e);else{o===V&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=g.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?z.hasOwnProperty(o)||(a=w.createMarkupForCustomAttribute(o,r)):a=w.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=U[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=D(i);else if(null!=a){var s=this.mountChildren(a,e,n);o=s.join("")}}return Y[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&b.queueHTML(o,r.__html);else{var i=U[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)b.queueText(o,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u1)for(var n=1;n0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(32),s=(n(10),n(108)),u=(n(59),n(53)),l=(n(8),n(11),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var r=i(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void o(r)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,r(e)):void 0}});e.exports=l},function(e,t,n){"use strict";var o=(n(4),n(12)),r=(n(11),o);e.exports=r},function(e,t,n){"use strict";var o=n(4),r=n(73),i=n(31),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};o(a.prototype,{mountComponent:function(e,t,n,o){var a=n._idCounter++;this._domID=a,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var u=n._ownerDocument,l=u.createComment(s);return i.precacheNode(this,l),r(l)}return e.renderToStaticMarkup?"":""},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e?void 0:u("33"),"_hostNode"in t?void 0:u("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e?void 0:u("35"),"_hostNode"in t?void 0:u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1; -}function i(e){return"_hostNode"in e?void 0:u("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(u[l],"captured",i)}var u=n(32);n(8);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";var o=n(32),r=n(4),i=n(72),a=n(73),s=n(31),u=n(78),l=(n(8),n(128),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(l.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",l=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,p=c.createComment(i),d=c.createComment(l),f=a(c.createDocumentFragment());return a.queueChild(f,a(p)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(d)),s.precacheNode(this,p),this._closingComment=d,f}var h=u(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?o("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=l},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(4),i=n(53),a=n(60),s=n(12),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var p=new o,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?e(t,n,o,r,i):p.perform(e,null,t,n,o,r,i)}};e.exports=d},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=p.getClosestInstanceFromNode(t),r=n;do e.ancestors.push(r),r=r&&o(r);while(r);for(var i=0;it.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var s=l(e,r),u=l(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),r>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(45),l=n(140),c=n(48),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?r:i,setOffsets:p?a:s};e.exports=d},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function r(e,t){for(var r=n(e),i=0,a=0;r;){if(3===r.nodeType){if(a=i+r.textContent.length,i<=t&&a>=t)return{node:r,offset:t-i};i=a}r=n(o(r))}}e.exports=r},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(142);e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(143);e.exports=o},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},r={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){r.Properties[e]=0,o[e]&&(r.DOMAttributeNames[e]=o[e])}),e.exports=r},function(e,t,n){"use strict";function o(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function r(e,t){if(g||null==m||m!==c())return null;var n=o(m);if(!y||!d(y,n)){y=n;var r=l.getPooled(h.select,v,e,t);return r.type="select",r.target=m,i.accumulateTwoPhaseDispatches(r),r}return null}var i=n(38),a=n(45),s=n(31),u=n(138),l=n(50),c=n(144),p=n(63),d=n(114),f=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,v=null,y=null,g=!1,b=!1,E={eventTypes:h,extractEvents:function(e,t,n,o){if(!b)return null;var i=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(p(i)||"true"===i.contentEditable)&&(m=i,v=t,y=null);break;case"topBlur":m=null,v=null,y=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,r(n,o);case"topSelectionChange":if(f)break;case"topKeyDown":case"topKeyUp":return r(n,o)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};e.exports=E},function(e,t,n){"use strict";function o(e){return"."+e._rootNodeID}function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function i(e){if(e){var t=e._currentElement&&e._currentElement.props.disabled;if(t)return r(e._tag)}return!1}var a=n(32),s=n(134),u=n(38),l=n(31),c=n(148),p=n(149),d=n(50),f=n(150),h=n(151),m=n(66),v=n(154),y=n(155),g=n(156),b=n(67),E=n(157),x=n(12),w=n(152),C=(n(8),{}),T={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,o="top"+t,r={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[o]};C[e]=r,T[o]=r});var _={},P={eventTypes:C,extractEvents:function(e,t,n,o){var r=T[e];if(!r)return null;var s;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":s=d;break;case"topKeyPress":if(0===w(n))return null;case"topKeyDown":case"topKeyUp":s=h;break;case"topBlur":case"topFocus":s=f;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":if(i(t))return null;case"topMouseOut":case"topMouseOver":case"topContextMenu":s=m;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":s=v;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":s=y;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":s=c;break;case"topTransitionEnd":s=g;break;case"topScroll":s=b;break;case"topWheel":s=E;break;case"topCopy":case"topCut":case"topPaste":s=p}s?void 0:a("86",e);var l=s.getPooled(r,t,n,o);return u.accumulateTwoPhaseDispatches(l),l},didPutListener:function(e,t,n){if("onClick"===t&&!r(e._tag)){var i=o(e),a=l.getNodeFromInstance(e);_[i]||(_[i]=s.listen(a,"click",x))}},willDeleteListener:function(e,t){if("onClick"===t&&!r(e._tag)){var n=o(e);_[n].remove(),delete _[n]}}};e.exports=P},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i={animationName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i={relatedTarget:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i=n(152),a=n(153),s=n(69),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};r.augmentClass(o,u),e.exports=o},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t,n){"use strict";function o(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var r=n(152),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(66),i={dataTransfer:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i=n(69),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i={propertyName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(66),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t){for(var n=Math.min(e.length,t.length),o=0;o.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(L,{child:t});if(e){var u=w.get(e);a=u._processChildContext(u._context)}else a=O;var c=d(n);if(c){var p=c._currentElement,h=p.props.child;if(M(h,t)){var m=c._renderedComponent.getPublicInstance(),y=o&&function(){o.call(m)};return H._updateRootComponent(c,s,a,n,y),m}H.unmountComponentAtNode(n)}var g=r(n),b=g&&!!i(g),E=l(n),x=b&&!c&&!E,C=H._renderNewRootComponent(s,n,x,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return H._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=d(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(R);return!1}return delete I[t._instance.rootID],P.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)?void 0:f("41"),i){var s=r(t);if(C.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(C.CHECKSUM_ATTR_NAME);s.removeAttribute(C.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(C.CHECKSUM_ATTR_NAME,u);var p=e,d=o(p,l),m=" (client) "+p.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);t.nodeType===D?f("42",m):void 0}if(t.nodeType===D?f("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else S(t,e),g.precacheNode(n,t.firstChild)}};e.exports=H},function(e,t,n){"use strict";function o(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===r?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var r=(n(128),9);e.exports=o},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var o=n(162),r=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=o(e);return r===n}};e.exports=a},function(e,t){"use strict";function n(e){for(var t=1,n=0,r=0,i=e.length,a=i&-4;r0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){/*! +function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(45);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var o=n(38),r=n(31),i=n(66),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,p;if("topMouseOut"===e){c=t;var d=n.relatedTarget||n.toElement;p=d?r.getClosestInstanceFromNode(d):null}else c=null,p=t;if(c===p)return null;var f=null==c?u:r.getNodeFromInstance(c),h=null==p?u:r.getNodeFromInstance(p),m=i.getPooled(a.mouseLeave,c,n,s);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,p,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,p),[m,v]}};e.exports=s},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i=n(68),a=n(69),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};r.augmentClass(o,s),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i=n(61),a={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};r.augmentClass(o,a),e.exports=o},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=r[e];return!!o&&!!n[o]}function o(e){return n}var r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";var o=n(33),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,s=o.injection.HAS_POSITIVE_NUMERIC_VALUE,u=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=l},function(e,t,n){"use strict";var o=n(72),r=n(83),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function r(e,t,n){c.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):m(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],u(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,o){for(var r=t;;){var i=r.nextSibling;if(m(e,r,o),r===n)break;r=i}}function u(e,t,n){for(;;){var o=t.nextSibling;if(o===n)break;e.removeChild(o)}}function l(e,t,n){var o=e.parentNode,r=e.nextSibling;r===t?n&&m(o,document.createTextNode(n),r):n?(h(r,n),u(o,r,t)):u(o,e,t)}var c=n(73),p=n(79),d=(n(31),n(59),n(76)),f=n(75),h=n(77),m=d(function(e,t,n){e.insertBefore(t,n)}),v=p.dangerouslyReplaceNodeWithMarkup,y={dangerouslyReplaceNodeWithMarkup:v,replaceDelimitedText:l,processUpdates:function(e,t){for(var n=0;n]/,u=n(76),l=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=l},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=n},function(e,t,n){"use strict";var o=n(45),r=n(78),i=n(75),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void i(e,r(t))})),e.exports=a},function(e,t){"use strict";function n(e){var t=""+e,n=r.exec(t);if(!n)return t;var o,i="",a=0,s=0;for(a=n.index;a]/;e.exports=o},function(e,t,n){"use strict";var o=n(32),r=n(73),i=n(45),a=n(80),s=n(12),u=(n(8),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:o("56"),t?void 0:o("57"),"HTML"===e.nodeName?o("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=u},function(e,t,n){"use strict";function o(e){var t=e.match(c);return t&&t[1].toLowerCase()}function r(e,t){var n=l;l?void 0:u(!1);var r=o(e),i=r&&s(r);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:u(!1),a(p).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=n(45),a=n(81),s=n(82),u=n(8),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?a(!1):void 0,"number"!=typeof t?a(!1):void 0,0===t||t-1 in e?void 0:a(!1),"function"==typeof e.callee?a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var r=n(45),i=n(8),a=r.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],p=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=p,s[e]=!0}),e.exports=o},function(e,t,n){"use strict";var o=n(72),r=n(31),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function r(e,t){t&&(X[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?m("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?m("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&B in t.dangerouslySetInnerHTML?void 0:m("61")),null!=t.style&&"object"!=typeof t.style?m("62",o(e)):void 0)}function i(e,t,n,o){if(!(o instanceof N)){var r=e._hostContainerInfo,i=r._node&&r._node.nodeType===W,s=i?r._node:r._ownerDocument;L(t,s),o.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n})}}function a(){var e=this;C.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;k.postMountWrapper(e)}function u(){var e=this;A.postMountWrapper(e)}function l(){var e=this;S.postMountWrapper(e)}function c(){var e=this;e._rootNodeID?void 0:m("63");var t=F(e);switch(t?void 0:m("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[_.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in K)K.hasOwnProperty(n)&&e._wrapperState.listeners.push(_.trapBubbledEvent(n,K[n],t));break;case"source":e._wrapperState.listeners=[_.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[_.trapBubbledEvent("topError","error",t),_.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[_.trapBubbledEvent("topReset","reset",t),_.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[_.trapBubbledEvent("topInvalid","invalid",t)]}}function p(){M.postUpdateWrapper(this)}function d(e){Q.call(Z,e)||(G.test(e)?void 0:m("65",e),Z[e]=!0)}function f(e,t){return e.indexOf("-")>=0||null!=t.is}function h(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(32),v=n(4),y=n(85),g=n(87),b=n(73),E=n(74),w=n(33),x=n(95),C=n(39),T=n(40),_=n(97),P=n(34),O=n(31),k=n(100),S=n(103),M=n(104),A=n(105),R=(n(59),n(106)),N=n(125),D=(n(12),n(78)),j=(n(8),n(62),n(114),n(128),n(11),P),I=C.deleteListener,F=O.getNodeFromInstance,L=_.listenTo,H=T.registrationNameModules,U={string:!0,number:!0},V="style",B="__html",z={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Y={listing:!0,pre:!0,textarea:!0},X=v({menuitem:!0},q),G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z={},Q={}.hasOwnProperty,$=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=$++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":S.mountWrapper(this,i,t),i=S.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":A.mountWrapper(this,i,t),i=A.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,p;null!=t?(a=t._namespaceURI,p=t._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===E.svg&&"foreignobject"===p)&&(a=E.html),a===E.html&&("svg"===this._tag?a=E.svg:"math"===this._tag&&(a=E.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===E.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);O.precacheNode(this,f),this._flags|=j.hasCachedChildNodes,this._hostParent||x.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var g=b(f);this._createInitialChildren(e,i,o,g),d=g}else{var w=this._createOpenTagMarkupAndPutListeners(e,i),C=this._createContentMarkup(e,i,o);d=!C&&q[this._tag]?w+"/>":w+">"+C+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(H.hasOwnProperty(o))r&&i(this,o,r,e);else{o===V&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=g.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?z.hasOwnProperty(o)||(a=x.createMarkupForCustomAttribute(o,r)):a=x.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+x.createMarkupForRoot()),n+=" "+x.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=U[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=D(i);else if(null!=a){var s=this.mountChildren(a,e,n);o=s.join("")}}return Y[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&b.queueHTML(o,r.__html);else{var i=U[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)b.queueText(o,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u1)for(var n=1;n0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(32),s=(n(10),n(108)),u=(n(59),n(53)),l=(n(8),n(11),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var r=i(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void o(r)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,r(e)):void 0}});e.exports=l},function(e,t,n){"use strict";var o=(n(4),n(12)),r=(n(11),o);e.exports=r},function(e,t,n){"use strict";var o=n(4),r=n(73),i=n(31),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};o(a.prototype,{mountComponent:function(e,t,n,o){var a=n._idCounter++;this._domID=a,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var u=n._ownerDocument,l=u.createComment(s);return i.precacheNode(this,l),r(l)}return e.renderToStaticMarkup?"":""},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e?void 0:u("33"),"_hostNode"in t?void 0:u("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e?void 0:u("35"),"_hostNode"in t?void 0:u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1; +}function i(e){return"_hostNode"in e?void 0:u("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(u[l],"captured",i)}var u=n(32);n(8);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";var o=n(32),r=n(4),i=n(72),a=n(73),s=n(31),u=n(78),l=(n(8),n(128),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(l.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",l=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,p=c.createComment(i),d=c.createComment(l),f=a(c.createDocumentFragment());return a.queueChild(f,a(p)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(d)),s.precacheNode(this,p),this._closingComment=d,f}var h=u(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?o("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=l},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(4),i=n(53),a=n(60),s=n(12),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var p=new o,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?e(t,n,o,r,i):p.perform(e,null,t,n,o,r,i)}};e.exports=d},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=p.getClosestInstanceFromNode(t),r=n;do e.ancestors.push(r),r=r&&o(r);while(r);for(var i=0;it.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var s=l(e,r),u=l(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),r>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(45),l=n(140),c=n(48),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?r:i,setOffsets:p?a:s};e.exports=d},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function r(e,t){for(var r=n(e),i=0,a=0;r;){if(3===r.nodeType){if(a=i+r.textContent.length,i<=t&&a>=t)return{node:r,offset:t-i};i=a}r=n(o(r))}}e.exports=r},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(142);e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(143);e.exports=o},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},r={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){r.Properties[e]=0,o[e]&&(r.DOMAttributeNames[e]=o[e])}),e.exports=r},function(e,t,n){"use strict";function o(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function r(e,t){if(g||null==m||m!==c())return null;var n=o(m);if(!y||!d(y,n)){y=n;var r=l.getPooled(h.select,v,e,t);return r.type="select",r.target=m,i.accumulateTwoPhaseDispatches(r),r}return null}var i=n(38),a=n(45),s=n(31),u=n(138),l=n(50),c=n(144),p=n(63),d=n(114),f=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,v=null,y=null,g=!1,b=!1,E={eventTypes:h,extractEvents:function(e,t,n,o){if(!b)return null;var i=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(p(i)||"true"===i.contentEditable)&&(m=i,v=t,y=null);break;case"topBlur":m=null,v=null,y=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,r(n,o);case"topSelectionChange":if(f)break;case"topKeyDown":case"topKeyUp":return r(n,o)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};e.exports=E},function(e,t,n){"use strict";function o(e){return"."+e._rootNodeID}function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function i(e){if(e){var t=e._currentElement&&e._currentElement.props.disabled;if(t)return r(e._tag)}return!1}var a=n(32),s=n(134),u=n(38),l=n(31),c=n(148),p=n(149),d=n(50),f=n(150),h=n(151),m=n(66),v=n(154),y=n(155),g=n(156),b=n(67),E=n(157),w=n(12),x=n(152),C=(n(8),{}),T={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,o="top"+t,r={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[o]};C[e]=r,T[o]=r});var _={},P={eventTypes:C,extractEvents:function(e,t,n,o){var r=T[e];if(!r)return null;var s;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":s=d;break;case"topKeyPress":if(0===x(n))return null;case"topKeyDown":case"topKeyUp":s=h;break;case"topBlur":case"topFocus":s=f;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":if(i(t))return null;case"topMouseOut":case"topMouseOver":case"topContextMenu":s=m;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":s=v;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":s=y;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":s=c;break;case"topTransitionEnd":s=g;break;case"topScroll":s=b;break;case"topWheel":s=E;break;case"topCopy":case"topCut":case"topPaste":s=p}s?void 0:a("86",e);var l=s.getPooled(r,t,n,o);return u.accumulateTwoPhaseDispatches(l),l},didPutListener:function(e,t,n){if("onClick"===t&&!r(e._tag)){var i=o(e),a=l.getNodeFromInstance(e);_[i]||(_[i]=s.listen(a,"click",w))}},willDeleteListener:function(e,t){if("onClick"===t&&!r(e._tag)){var n=o(e);_[n].remove(),delete _[n]}}};e.exports=P},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i={animationName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i={relatedTarget:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i=n(152),a=n(153),s=n(69),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};r.augmentClass(o,u),e.exports=o},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t,n){"use strict";function o(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var r=n(152),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(66),i={dataTransfer:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(67),i=n(69),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(50),i={propertyName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(66),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t){for(var n=Math.min(e.length,t.length),o=0;o.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(L,{child:t});if(e){var u=x.get(e);a=u._processChildContext(u._context)}else a=O;var c=d(n);if(c){var p=c._currentElement,h=p.props.child;if(M(h,t)){var m=c._renderedComponent.getPublicInstance(),y=o&&function(){o.call(m)};return H._updateRootComponent(c,s,a,n,y),m}H.unmountComponentAtNode(n)}var g=r(n),b=g&&!!i(g),E=l(n),w=b&&!c&&!E,C=H._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return H._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=d(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(R);return!1}return delete I[t._instance.rootID],P.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)?void 0:f("41"),i){var s=r(t);if(C.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(C.CHECKSUM_ATTR_NAME);s.removeAttribute(C.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(C.CHECKSUM_ATTR_NAME,u);var p=e,d=o(p,l),m=" (client) "+p.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);t.nodeType===D?f("42",m):void 0}if(t.nodeType===D?f("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else S(t,e),g.precacheNode(n,t.firstChild)}};e.exports=H},function(e,t,n){"use strict";function o(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===r?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var r=(n(128),9);e.exports=o},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var o=n(162),r=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=o(e);return r===n}};e.exports=a},function(e,t){"use strict";function n(e){for(var t=1,n=0,r=0,i=e.length,a=i&-4;r0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ -"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;ts.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var r=this.expandValue(e,o);return r?[r]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,r=t.valueKey;if(o)for(var i=0;i0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var r=n-this.props.pageSize;n=r<0?0:r}else if("page_down"===e){var r=n+this.props.pageSize;n=r>t.length-1?t.length-1:r}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,r=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(r,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(i=null),l.default.createElement(r,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},o(e[0])))},renderInput:function(e,t){var n=this;if(this.props.inputRenderer)return this.props.inputRenderer();var o,a=(0,m.default)("Select-input",this.props.inputProps.className),u=!!this.state.isOpen,c=(0,m.default)((o={},i(o,this._instancePrefix+"-list",u),i(o,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),o)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+u,"aria-owns":c,"aria-haspopup":""+u,"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return n.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,h=(d.inputClassName,r(d,["inputClassName"]));return l.default.createElement("div",s({},h,{role:"combobox","aria-expanded":u,"aria-owns":u?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return n.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(f.default,s({},p,{minWidth:"5px"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading)return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},l.default.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}}))},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.props.arrowRenderer({onMouseDown:e});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},t)},filterOptions:function e(t){var n=this.state.inputValue,o=this.props.options||[];if(this.props.filterOptions){var e="function"==typeof this.props.filterOptions?this.props.filterOptions:b.default;return e(o,n,t,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return o},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.state.focusedOption||e;if(n&&!n.disabled){var o=t.indexOf(n);if(o!==-1)return o}for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;ts.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var r=this.expandValue(e,o);return r?[r]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,r=t.valueKey;if(o)for(var i=0;i0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var r=n-this.props.pageSize;n=r<0?0:r}else if("page_down"===e){var r=n+this.props.pageSize;n=r>t.length-1?t.length-1:r}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,r=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(r,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(i=null),l.default.createElement(r,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},o(e[0])))},renderInput:function(e,t){var n=this;if(this.props.inputRenderer)return this.props.inputRenderer();var o,a=(0,m.default)("Select-input",this.props.inputProps.className),u=!!this.state.isOpen,c=(0,m.default)((o={},i(o,this._instancePrefix+"-list",u),i(o,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),o)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+u,"aria-owns":c,"aria-haspopup":""+u,"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return n.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,h=(d.inputClassName,r(d,["inputClassName"]));return l.default.createElement("div",s({},h,{role:"combobox","aria-expanded":u,"aria-owns":u?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return n.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(f.default,s({},p,{minWidth:"5px"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading)return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},l.default.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}}))},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.props.arrowRenderer({onMouseDown:e});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},t)},filterOptions:function e(t){var n=this.state.inputValue,o=this.props.options||[];if(this.props.filterOptions){var e="function"==typeof this.props.filterOptions?this.props.filterOptions:b.default;return e(o,n,t,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return o},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.state.focusedOption||e;if(n&&!n.disabled){var o=t.indexOf(n);if(o!==-1)return o}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(r,e,t);if(!t)return!0;var i=String(e[o.valueKey]),s=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(i=(0,a.default)(i)),"value"!==o.matchProp&&(s=(0,a.default)(s))),o.ignoreCase&&("label"!==o.matchProp&&(i=i.toLowerCase()),"value"!==o.matchProp&&(s=s.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&i.substr(0,t.length)===t||"value"!==o.matchProp&&s.substr(0,t.length)===t:"label"!==o.matchProp&&i.indexOf(t)>=0||"value"!==o.matchProp&&s.indexOf(t)>=0})}var i=n(177),a=o(i);e.exports=r},function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t-1,m=e===t,v=(0,a.default)(i,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return u.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+s+"-"+e[d],onFocus:o,onSelect:r,option:e,optionIndex:s,ref:function(e){f(e,m)}},l(e,s))})}var i=n(174),a=o(i),s=n(2),u=o(s);e.exports=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return d.default.createElement(h.default,e)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e){return f.default.createElement(m.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,r=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[r]===t[r]}).length}function s(e){var t=e.label;return!!t}function u(e){var t=e.label,n=e.labelKey,o=e.valueKey,r={};return r[o]=t,r[n]=t,r.className="Select-create-option-placeholder",r}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;t.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none}.is-searchable.is-open>.Select-control{cursor:text}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control>.Select-arrow{border-color:transparent transparent #999;border-width:0 5px 5px}.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0}.is-open .Select-arrow,.Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,o,r;if(t.singleton){var i=g++;n=y||(y=s(t)),o=c.bind(null,n,i,!1),r=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),o=d.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=p.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function c(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=E(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,g=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a",e),t.init(this.sceneEl)}},initUI:function(){function e(e){for(var t=0;t0){var o=t[0].object;void 0!==o.userData.object?e.selectEntity(o.userData.object.el):e.selectEntity(o.el)}else e.selectEntity(null)}}function i(t){if(!(t instanceof CustomEvent)){t.preventDefault();var n=o(e.container,t.clientX,t.clientY);S.fromArray(n),document.addEventListener("mouseup",a,!1)}}function a(t){if(!(t instanceof CustomEvent)){var n=o(e.container,t.clientX,t.clientY);M.fromArray(n),r(),document.removeEventListener("mouseup",a,!1)}}function s(t){var n=t.changedTouches[0],r=o(e.container,n.clientX,n.clientY);S.fromArray(r),document.addEventListener("touchend",u,!1)}function u(t){var n=t.changedTouches[0],i=o(e.container,n.clientX,n.clientY);M.fromArray(i),r(),document.removeEventListener("touchend",u,!1)}function f(t){var r=o(e.container,t.clientX,t.clientY);A.fromArray(r);var i=n(A,b);if(i.length>0){var a=i[0];c.emit("objectfocused",a.object)}}function h(){e.container.removeEventListener("mousedown",i),e.container.removeEventListener("touchstart",s),e.container.removeEventListener("dblclick",f),P.dispose(),R.enabled=!1}function m(){e.container.addEventListener("mousedown",i,!1),e.container.addEventListener("touchstart",s,!1),e.container.addEventListener("dblclick",f,!1),P.activate(),R.enabled=!0}var v={dom:e.container},y=e.currentCameraEl;e.sceneEl.addEventListener("camera-set-active",function(t){e.opened&&(t.detail.cameraEl!==e.inspectorCameraEl&&(y=t.detail.cameraEl),t.detail.cameraEl.isInspector||e.inspectorCameraEl.setAttribute("camera","active","true"))});var g=e.sceneHelpers,b=[],E=new THREE.GridHelper(30,60,5592405,2697513);g.add(E);var x=e.inspectorCameraEl.getObject3D("camera"),w=new THREE.BoxHelper;w.material.depthTest=!1,w.material.transparent=!0,w.material.color.set(2075378),w.visible=!1,g.add(w);var C=null,T=null,_=null,P=new THREE.TransformControls(x,e.container);P.addEventListener("change",function(){var e=P.object;if(void 0!==e){w.update(e),t(e);var n=P.getMode();switch(n){case"translate":e.el.setAttribute("position",{x:(0,l.getNumber)(e.position.x),y:(0,l.getNumber)(e.position.y),z:(0,l.getNumber)(e.position.z)});break;case"rotate":e.el.setAttribute("rotation",{x:THREE.Math.radToDeg((0,l.getNumber)(e.rotation.x)),y:THREE.Math.radToDeg((0,l.getNumber)(e.rotation.y)),z:THREE.Math.radToDeg((0,l.getNumber)(e.rotation.z))});break;case"scale":e.el.setAttribute("scale",{x:(0,l.getNumber)(e.scale.x),y:(0,l.getNumber)(e.scale.y),z:(0,l.getNumber)(e.scale.z)})}c.emit("refreshsidebarobject3d",e),p(n)}}),P.addEventListener("mouseDown",function(){var e=P.object;C=e.position.clone(),T=e.rotation.clone(),_=e.scale.clone(),R.enabled=!1}),P.addEventListener("mouseUp",function(){var e=P.object;if(null!==e)switch(P.getMode()){case"translate":!C.equals(e.position);break;case"rotate":!T.equals(e.rotation);break;case"scale":!_.equals(e.scale)}R.enabled=!0}),g.add(P),c.on("objectchanged",function(){e.selectedEntity.object3DMap.mesh&&w.update(e.selected)});var O=new THREE.Raycaster,k=new THREE.Vector2,S=new THREE.Vector2,M=new THREE.Vector2,A=new THREE.Vector2,R=new THREE.EditorControls(x,e.container);m(),R.addEventListener("change",function(){P.update(),d()}),c.on("inspectorcleared",function(){R.center.set(0,0,0)}),c.on("transformmodechanged",function(e){P.setMode(e)}),c.on("snapchanged",function(e){P.setTranslationSnap(e)}),c.on("spacechanged",function(e){P.setSpace(e)}),c.on("objectselected",function(e){w.visible=!1,P.detach(),e&&e.el&&(e.el.getObject3D("mesh")&&(w.update(e),w.visible=!0),P.attach(e))}),c.on("objectfocused",function(e){R.focus(e),ga("send","event","Viewport","selectEntity")}),c.on("geometrychanged",function(e){null!==e&&w.update(e)}),c.on("objectadded",function(e){e.traverse(function(e){b.indexOf(e)===-1&&b.push(e)})}),c.on("objectchanged",function(n){e.selected===n&&n.geometry&&n.geometry.vertices&&n.geometry.vertices.length>0&&w.update(n),P.update(),n instanceof THREE.PerspectiveCamera&&n.updateProjectionMatrix(),t(n)}),c.on("selectedentitycomponentchanged",function(){c.emit("objectchanged",e.selectedEntity.object3D)}),c.on("objectremoved",function(e){e.traverse(function(e){b.splice(b.indexOf(e),1)})}),c.on("helperadded",function(e){b.push(e.getObjectByName("picker")),t(e.fromObject.parent)}),c.on("helperremoved",function(e){b.splice(b.indexOf(e.getObjectByName("picker")),1)}),c.on("windowresize",function(){x.aspect=v.dom.offsetWidth/v.dom.offsetHeight,x.updateProjectionMatrix()}),c.on("gridvisibilitychanged",function(e){E.visible=e}),c.on("togglegrid",function(){E.visible=!E.visible}),c.on("inspectormodechanged",function(t){t?(m(),e.inspectorCameraEl.setAttribute("camera","active","true"),Array.prototype.slice.call(document.querySelectorAll(".a-enter-vr,.rs-base")).forEach(function(e){e.style.display="none"})):(h(),y.setAttribute("camera","active","true"),Array.prototype.slice.call(document.querySelectorAll(".a-enter-vr,.rs-base")).forEach(function(e){e.style.display="block"})),ga("send","event","Viewport","toggleEditor",t)})}var i=n(190),a=o(i),s=n(191),u=(o(s),n(192)),l=(o(u),n(193)),c=n(170),p=(0,a.default)(function(e){ga("send","event","Viewport","transformEntity",e)},3e3),d=(0,a.default)(function(){ga("send","event","Viewport","changeEditorCamera")},3e3);e.exports=r},function(e,t){(function(t){function n(e,t,n){function r(t){var n=m,o=v;return m=v=void 0,T=t,g=e.apply(o,n)}function i(e){return T=e,b=setTimeout(c,t),_?r(e):g}function u(e){var n=e-C,o=e-T,r=t-n;return P?x(r,y-o):r}function l(e){var n=e-C,o=e-T;return void 0===C||n>=t||n<0||P&&o>=y}function c(){var e=w();return l(e)?p(e):void(b=setTimeout(c,u(e)))}function p(e){return b=void 0,O&&m?r(e):(m=v=void 0,g)}function d(){void 0!==b&&clearTimeout(b),T=0,m=C=v=b=void 0}function f(){return void 0===b?g:p(w())}function h(){var e=w(),n=l(e);if(m=arguments,v=this,C=e,n){if(void 0===b)return i(C);if(P)return b=setTimeout(c,t),r(C)}return void 0===b&&(b=setTimeout(c,t)),g}var m,v,y,g,b,C,T=0,_=!1,P=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,o(n)&&(_=!!n.leading,P="maxWait"in n,y=P?E(a(n.maxWait)||0,t):y,O="trailing"in n?!!n.trailing:O),h.cancel=d,h.flush=f,h}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function i(e){return"symbol"==typeof e||r(e)&&b.call(e)==l}function a(e){if("number"==typeof e)return e;if(i(e))return u;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=d.test(e);return n||f.test(e)?h(e.slice(2),n?2:8):p.test(e)?u:+e}var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,y=m||v||Function("return this")(),g=Object.prototype,b=g.toString,E=Math.max,x=Math.min,w=function(){return y.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";!function(){var e=function(e){THREE.MeshBasicMaterial.call(this),this.depthTest=!1,this.depthWrite=!1,this.side=THREE.FrontSide,this.transparent=!0,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}};e.prototype=Object.create(THREE.MeshBasicMaterial.prototype),e.prototype.constructor=e;var t=function(e){THREE.LineBasicMaterial.call(this),this.depthTest=!1,this.depthWrite=!1,this.transparent=!0,this.linewidth=1,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}};t.prototype=Object.create(THREE.LineBasicMaterial.prototype),t.prototype.constructor=t;var n=new e({visible:!1,transparent:!1});THREE.TransformGizmo=function(){this.init=function(){THREE.Object3D.call(this),this.handles=new THREE.Object3D,this.pickers=new THREE.Object3D,this.planes=new THREE.Object3D,this.add(this.handles),this.add(this.pickers),this.add(this.planes);var e=new THREE.PlaneBufferGeometry(50,50,2,2),t=new THREE.MeshBasicMaterial({visible:!1,side:THREE.DoubleSide}),n={XY:new THREE.Mesh(e,t),YZ:new THREE.Mesh(e,t),XZ:new THREE.Mesh(e,t),XYZE:new THREE.Mesh(e,t)};this.activePlane=n.XYZE,n.YZ.rotation.set(0,Math.PI/2,0),n.XZ.rotation.set(-Math.PI/2,0,0);for(var o in n)n[o].name=o,this.planes.add(n[o]),this.planes[o]=n[o];var r=function(e,t){for(var n in e)for(o=e[n].length;o--;){var r=e[n][o][0],i=e[n][o][1],a=e[n][o][2];r.name=n,i&&r.position.set(i[0],i[1],i[2]),a&&r.rotation.set(a[0],a[1],a[2]),t.add(r)}};r(this.handleGizmos,this.handles),r(this.pickerGizmos,this.pickers),this.traverse(function(e){if(e instanceof THREE.Mesh){e.updateMatrix();var t=e.geometry.clone();t.applyMatrix(e.matrix),e.geometry=t,e.position.set(0,0,0),e.rotation.set(0,0,0),e.scale.set(1,1,1)}})},this.highlight=function(e){this.traverse(function(t){t.material&&t.material.highlight&&(t.name===e?t.material.highlight(!0):t.material.highlight(!1))})}},THREE.TransformGizmo.prototype=Object.create(THREE.Object3D.prototype),THREE.TransformGizmo.prototype.constructor=THREE.TransformGizmo,THREE.TransformGizmo.prototype.update=function(e,t){var n=new THREE.Vector3(0,0,0),o=new THREE.Vector3(0,1,0),r=new THREE.Matrix4;this.traverse(function(i){i.name.search("E")!==-1?i.quaternion.setFromRotationMatrix(r.lookAt(t,n,o)):i.name.search("X")===-1&&i.name.search("Y")===-1&&i.name.search("Z")===-1||i.quaternion.setFromEuler(e)})},THREE.TransformGizmoTranslate=function(){THREE.TransformGizmo.call(this);var o=new THREE.Geometry,r=new THREE.Mesh(new THREE.CylinderGeometry(0,.05,.2,12,1,!1));r.position.y=.5,r.updateMatrix(),o.merge(r.geometry,r.matrix);var i=new THREE.BufferGeometry;i.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var a=new THREE.BufferGeometry;a.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var s=new THREE.BufferGeometry;s.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(o,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(i,new t({color:16711680}))]],Y:[[new THREE.Mesh(o,new e({color:65280})),[0,.5,0]],[new THREE.Line(a,new t({color:65280}))]],Z:[[new THREE.Mesh(o,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(s,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.1,0),new e({color:16777215,opacity:.25})),[0,0,0],[0,0,0]]],XY:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:16776960,opacity:.25})),[.15,.15,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:65535,opacity:.25})),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:16711935,opacity:.25})),[.15,0,.15],[-Math.PI/2,0,0]]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.2,0),n)]],XY:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[.2,.2,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[0,.2,.2],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[.2,0,.2],[-Math.PI/2,0,0]]]},this.setActivePlane=function(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.getInverse(n.extractRotation(this.planes.XY.matrixWorld))),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE),"XY"===e&&(this.activePlane=this.planes.XY),"YZ"===e&&(this.activePlane=this.planes.YZ),"XZ"===e&&(this.activePlane=this.planes.XZ)},this.init()},THREE.TransformGizmoTranslate.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoTranslate.prototype.constructor=THREE.TransformGizmoTranslate,THREE.TransformGizmoRotate=function(){THREE.TransformGizmo.call(this);var e=function(e,t,n){var o=new THREE.BufferGeometry,r=[];n=n?n:1;for(var i=0;i<=64*n;++i)"x"===t&&r.push(0,Math.cos(i/32*Math.PI)*e,Math.sin(i/32*Math.PI)*e),"y"===t&&r.push(Math.cos(i/32*Math.PI)*e,0,Math.sin(i/32*Math.PI)*e),"z"===t&&r.push(Math.sin(i/32*Math.PI)*e,Math.cos(i/32*Math.PI)*e,0);return o.addAttribute("position",new THREE.Float32BufferAttribute(r,3)),o};this.handleGizmos={X:[[new THREE.Line(new e(1,"x",.5),new t({color:16711680}))]],Y:[[new THREE.Line(new e(1,"y",.5),new t({color:65280}))]],Z:[[new THREE.Line(new e(1,"z",.5),new t({color:255}))]],E:[[new THREE.Line(new e(1.25,"z",1),new t({color:13421568}))]],XYZE:[[new THREE.Line(new e(1,"z",1),new t({color:7895160}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[Math.PI/2,0,0]]],Z:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,0,-Math.PI/2]]],E:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1.25,.12,2,24),n)]],XYZE:[[new THREE.Mesh(new THREE.Geometry)]]},this.setActivePlane=function(e){"E"===e&&(this.activePlane=this.planes.XYZE),"X"===e&&(this.activePlane=this.planes.YZ),"Y"===e&&(this.activePlane=this.planes.XZ),"Z"===e&&(this.activePlane=this.planes.XY)},this.update=function(e,t){THREE.TransformGizmo.prototype.update.apply(this,arguments);var n=({handles:this.handles,pickers:this.pickers},new THREE.Matrix4),o=new THREE.Euler(0,0,1),r=new THREE.Quaternion,i=new THREE.Vector3(1,0,0),a=new THREE.Vector3(0,1,0),s=new THREE.Vector3(0,0,1),u=new THREE.Quaternion,l=new THREE.Quaternion,c=new THREE.Quaternion,p=t.clone();o.copy(this.planes.XY.rotation),r.setFromEuler(o),n.makeRotationFromQuaternion(r).getInverse(n),p.applyMatrix4(n),this.traverse(function(e){r.setFromEuler(o),"X"===e.name&&(u.setFromAxisAngle(i,Math.atan2(-p.y,p.z)),r.multiplyQuaternions(r,u),e.quaternion.copy(r)),"Y"===e.name&&(l.setFromAxisAngle(a,Math.atan2(p.x,p.z)),r.multiplyQuaternions(r,l),e.quaternion.copy(r)),"Z"===e.name&&(c.setFromAxisAngle(s,Math.atan2(p.y,p.x)),r.multiplyQuaternions(r,c),e.quaternion.copy(r))})},this.init()},THREE.TransformGizmoRotate.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoRotate.prototype.constructor=THREE.TransformGizmoRotate,THREE.TransformGizmoScale=function(){THREE.TransformGizmo.call(this);var o=new THREE.Geometry,r=new THREE.Mesh(new THREE.BoxGeometry(.125,.125,.125));r.position.y=.5,r.updateMatrix(),o.merge(r.geometry,r.matrix);var i=new THREE.BufferGeometry;i.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var a=new THREE.BufferGeometry;a.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var s=new THREE.BufferGeometry;s.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(o,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(i,new t({color:16711680}))]],Y:[[new THREE.Mesh(o,new e({color:65280})),[0,.5,0]],[new THREE.Line(a,new t({color:65280}))]],Z:[[new THREE.Mesh(o,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(s,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.BoxBufferGeometry(.125,.125,.125),new e({color:16777215,opacity:.25}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.BoxBufferGeometry(.4,.4,.4),n)]]},this.setActivePlane=function(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.getInverse(n.extractRotation(this.planes.XY.matrixWorld))),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE)},this.init()},THREE.TransformGizmoScale.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoScale.prototype.constructor=THREE.TransformGizmoScale,THREE.TransformControls=function(e,t){function n(e){if(void 0!==s.object&&l!==!0&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e,n=a(t,c[u].pickers.children),o=null;n&&(o=n.object.name,e.preventDefault()),s.axis!==o&&(s.axis=o,s.update(),s.dispatchEvent(f))}}function o(e){if(void 0!==s.object&&l!==!0&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e;if(0===t.button||void 0===t.button){var n=a(t,c[u].pickers.children);if(n){e.preventDefault(),e.stopPropagation(),s.dispatchEvent(h),s.axis=n.object.name,s.update(),_.copy(K).sub(B).normalize(),c[u].setActivePlane(s.axis,_);var o=a(t,[c[u].activePlane]);o&&(F.copy(s.object.position),L.copy(s.object.scale),H.extractRotation(s.object.matrix),W.extractRotation(s.object.matrixWorld),U.extractRotation(s.object.parent.matrixWorld),V.setFromMatrixScale(P.getInverse(s.object.parent.matrixWorld)),E.copy(o.point))}}l=!0}}function r(e){if(void 0!==s.object&&null!==s.axis&&l!==!1&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e,n=a(t,[c[u].activePlane]);n!==!1&&(e.preventDefault(),e.stopPropagation(),b.copy(n.point),"translate"===u?(b.sub(E),b.multiply(V),"local"!==s.space&&"scale"!==u||(b.applyMatrix4(P.getInverse(W)),s.axis.search("X")===-1&&(b.x=0),s.axis.search("Y")===-1&&(b.y=0),s.axis.search("Z")===-1&&(b.z=0),b.applyMatrix4(H),s.object.position.copy(F),s.object.position.add(b)),"world"!==s.space&&s.axis.search("XYZ")===-1||(s.axis.search("X")===-1&&(b.x=0),s.axis.search("Y")===-1&&(b.y=0),s.axis.search("Z")===-1&&(b.z=0),b.applyMatrix4(P.getInverse(U)),s.object.position.copy(F),s.object.position.add(b)),null!==s.translationSnap&&("local"!==s.space&&"scale"!==u||s.object.position.applyMatrix4(P.getInverse(W)),s.axis.search("X")!==-1&&(s.object.position.x=Math.round(s.object.position.x/s.translationSnap)*s.translationSnap),s.axis.search("Y")!==-1&&(s.object.position.y=Math.round(s.object.position.y/s.translationSnap)*s.translationSnap),s.axis.search("Z")!==-1&&(s.object.position.z=Math.round(s.object.position.z/s.translationSnap)*s.translationSnap),"local"!==s.space&&"scale"!==u||s.object.position.applyMatrix4(W))):"scale"===u?(b.sub(E),b.multiply(V),"local"!==s.space&&"scale"!==u||("XYZ"===s.axis?(C=1+b.y/Math.max(L.x,L.y,L.z),s.object.scale.x=L.x*C,s.object.scale.y=L.y*C,s.object.scale.z=L.z*C):(b.applyMatrix4(P.getInverse(W)),"X"===s.axis&&(s.object.scale.x=L.x*(1+b.x/L.x)),"Y"===s.axis&&(s.object.scale.y=L.y*(1+b.y/L.y)),"Z"===s.axis&&(s.object.scale.z=L.z*(1+b.z/L.z))))):"rotate"===u&&(b.sub(B),b.multiply(V),O.copy(E).sub(B),O.multiply(V),"E"===s.axis?(b.applyMatrix4(P.getInverse(T)),O.applyMatrix4(P.getInverse(T)),x.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),w.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),k.setFromRotationMatrix(P.getInverse(U)),I.setFromAxisAngle(_,x.z-w.z),R.setFromRotationMatrix(W),k.multiplyQuaternions(k,I),k.multiplyQuaternions(k,R),s.object.quaternion.copy(k)):"XYZE"===s.axis?(I.setFromEuler(b.clone().cross(O).normalize()),k.setFromRotationMatrix(P.getInverse(U)),N.setFromAxisAngle(I,-b.clone().angleTo(O)),R.setFromRotationMatrix(W),k.multiplyQuaternions(k,N),k.multiplyQuaternions(k,R),s.object.quaternion.copy(k)):"local"===s.space||"scale"===u?(b.applyMatrix4(P.getInverse(W)),O.applyMatrix4(P.getInverse(W)),x.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),w.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),R.setFromRotationMatrix(H),null!==s.rotationSnap?(N.setFromAxisAngle(S,Math.round((x.x-w.x)/s.rotationSnap)*s.rotationSnap),D.setFromAxisAngle(M,Math.round((x.y-w.y)/s.rotationSnap)*s.rotationSnap),j.setFromAxisAngle(A,Math.round((x.z-w.z)/s.rotationSnap)*s.rotationSnap)):(N.setFromAxisAngle(S,x.x-w.x),D.setFromAxisAngle(M,x.y-w.y),j.setFromAxisAngle(A,x.z-w.z)),"X"===s.axis&&R.multiplyQuaternions(R,N),"Y"===s.axis&&R.multiplyQuaternions(R,D),"Z"===s.axis&&R.multiplyQuaternions(R,j),s.object.quaternion.copy(R)):"world"===s.space&&(x.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),w.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),k.setFromRotationMatrix(P.getInverse(U)),null!==s.rotationSnap?(N.setFromAxisAngle(S,Math.round((x.x-w.x)/s.rotationSnap)*s.rotationSnap),D.setFromAxisAngle(M,Math.round((x.y-w.y)/s.rotationSnap)*s.rotationSnap),j.setFromAxisAngle(A,Math.round((x.z-w.z)/s.rotationSnap)*s.rotationSnap)):(N.setFromAxisAngle(S,x.x-w.x),D.setFromAxisAngle(M,x.y-w.y),j.setFromAxisAngle(A,x.z-w.z)),R.setFromRotationMatrix(W),"X"===s.axis&&k.multiplyQuaternions(k,N),"Y"===s.axis&&k.multiplyQuaternions(k,D),"Z"===s.axis&&k.multiplyQuaternions(k,j),k.multiplyQuaternions(k,R),s.object.quaternion.copy(k))),s.update(),s.dispatchEvent(f),s.dispatchEvent(v))}}function i(e){e.preventDefault(),void 0!==e.button&&0!==e.button||(l&&null!==s.axis&&(m.mode=u,s.dispatchEvent(m)),l=!1,"TouchEvent"in window&&e instanceof TouchEvent?(s.axis=null,s.update(),s.dispatchEvent(f)):n(e))}function a(n,o){var r=t.getBoundingClientRect(),i=(n.clientX-r.left)/r.width,a=(n.clientY-r.top)/r.height;g.set(2*i-1,-(2*a)+1),y.setFromCamera(g,e);var s=y.intersectObjects(o,!0);return!!s[0]&&s[0]}THREE.Object3D.call(this),t=void 0!==t?t:document,this.object=void 0,this.visible=!1,this.translationSnap=null,this.rotationSnap=null,this.space="world",this.size=1,this.axis=null;var s=this,u="translate",l=!1,c={translate:new THREE.TransformGizmoTranslate,rotate:new THREE.TransformGizmoRotate,scale:new THREE.TransformGizmoScale};for(var p in c){var d=c[p];d.visible=p===u,this.add(d)}var f={type:"change"},h={type:"mouseDown"},m={type:"mouseUp",mode:u},v={type:"objectChange"},y=new THREE.Raycaster,g=new THREE.Vector2,b=new THREE.Vector3,E=new THREE.Vector3,x=new THREE.Vector3,w=new THREE.Vector3,C=1,T=new THREE.Matrix4,_=new THREE.Vector3,P=new THREE.Matrix4,O=new THREE.Vector3,k=new THREE.Quaternion,S=new THREE.Vector3(1,0,0),M=new THREE.Vector3(0,1,0),A=new THREE.Vector3(0,0,1),R=new THREE.Quaternion,N=new THREE.Quaternion,D=new THREE.Quaternion,j=new THREE.Quaternion,I=new THREE.Quaternion,F=new THREE.Vector3,L=new THREE.Vector3,H=new THREE.Matrix4,U=new THREE.Matrix4,V=new THREE.Vector3,B=new THREE.Vector3,z=new THREE.Euler,W=new THREE.Matrix4,K=new THREE.Vector3,q=new THREE.Euler;this.activate=function(){t.addEventListener("mousedown",o,!1),t.addEventListener("touchstart",o,!1),t.addEventListener("mousemove",n,!1),t.addEventListener("touchmove",n,!1),t.addEventListener("mousemove",r,!1),t.addEventListener("touchmove",r,!1),t.addEventListener("mouseup",i,!1),t.addEventListener("mouseout",i,!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1),t.addEventListener("touchleave",i,!1)},this.activate(),this.dispose=function(){t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",o),t.removeEventListener("mousemove",n),t.removeEventListener("touchmove",n),t.removeEventListener("mousemove",r),t.removeEventListener("touchmove",r),t.removeEventListener("mouseup",i),t.removeEventListener("mouseout",i),t.removeEventListener("touchend",i),t.removeEventListener("touchcancel",i),t.removeEventListener("touchleave",i)},this.attach=function(e){this.object=e,this.visible=!0,this.update()},this.detach=function(){this.object=void 0,this.visible=!1,this.axis=null},this.getMode=function(){return u},this.setMode=function(e){u=e?e:u;for(var t in c)c[t].visible=t===u;this.update(),s.dispatchEvent(f)},this.setTranslationSnap=function(e){s.translationSnap=e},this.setRotationSnap=function(e){s.rotationSnap=e},this.setSize=function(e){s.size=e,this.update(),s.dispatchEvent(f)},this.toggleSpace=function(){this.setSpace("local"===s.space?"world":"local")},this.setSpace=function(e){s.space=e,this.update(),s.dispatchEvent(f)},this.update=function(){void 0!==s.object&&(s.object.updateMatrixWorld(),B.setFromMatrixPosition(s.object.matrixWorld),z.setFromRotationMatrix(P.extractRotation(s.object.matrixWorld)),e.updateMatrixWorld(),K.setFromMatrixPosition(e.matrixWorld),q.setFromRotationMatrix(P.extractRotation(e.matrixWorld)),C=B.distanceTo(K)/6*s.size,this.position.copy(B),this.scale.set(C,C,C),_.copy(K).sub(B).normalize(),"local"===s.space||"scale"===u?c[u].update(z,_):"world"===s.space&&c[u].update(new THREE.Euler,_),c[u].highlight(s.axis))}},THREE.TransformControls.prototype=Object.create(THREE.Object3D.prototype),THREE.TransformControls.prototype.constructor=THREE.TransformControls}()},function(e,t){"use strict";THREE.EditorControls=function(e,t){function n(e){l.enabled!==!1&&(0===e.button?f=p.ROTATE:1===e.button?f=p.ZOOM:2===e.button&&(f=p.PAN),t.classList.add(d[f]),y.set(e.clientX,e.clientY),t.addEventListener("mousemove",o,!1), -t.addEventListener("mouseup",r,!1),t.addEventListener("mouseout",r,!1),t.addEventListener("dblclick",r,!1))}function o(e){if(l.enabled!==!1){v.set(e.clientX,e.clientY);var t=v.x-y.x,n=v.y-y.y;f===p.ROTATE?l.rotate(new THREE.Vector3(.005*-t,.005*-n,0)):f===p.ZOOM?l.zoom(new THREE.Vector3(0,0,n)):f===p.PAN&&l.pan(new THREE.Vector3(-t,n,0)),y.set(e.clientX,e.clientY)}}function r(e){t.removeEventListener("mousemove",o,!1),t.removeEventListener("mouseup",r,!1),t.removeEventListener("mouseout",r,!1),t.removeEventListener("dblclick",r,!1),t.classList.remove(d[f]),f=p.NONE}function i(e){e.preventDefault();var t=0;e.wheelDelta?t=-e.wheelDelta:e.detail&&(t=10*e.detail),l.zoom(new THREE.Vector3(0,0,t))}function a(e){e.preventDefault()}function s(e){if(l.enabled!==!1){switch(e.touches.length){case 1:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[0].pageX,e.touches[0].pageY,0);break;case 2:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[1].pageX,e.touches[1].pageY,0),x=b[0].distanceTo(b[1])}E[0].copy(b[0]),E[1].copy(b[1])}}function u(e){function t(e,t){var n=t[0];for(var o in t)n.distanceTo(e)>t[o].distanceTo(e)&&(n=t[o]);return n}if(l.enabled!==!1){switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[0].pageX,e.touches[0].pageY,0),l.rotate(b[0].sub(t(b[0],E)).multiplyScalar(-.005));break;case 2:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[1].pageX,e.touches[1].pageY,0),distance=b[0].distanceTo(b[1]),l.zoom(new THREE.Vector3(0,0,x-distance)),x=distance;var n=b[0].clone().sub(t(b[0],E)),o=b[1].clone().sub(t(b[1],E));n.x=-n.x,o.x=-o.x,l.pan(n.add(o).multiplyScalar(.5))}E[0].copy(b[0]),E[1].copy(b[1])}}t=void 0!==t?t:document,this.enabled=!0,this.center=new THREE.Vector3;var l=this,c=new THREE.Vector3,p={NONE:-1,ROTATE:0,ZOOM:1,PAN:2},d=["state-rotating","state-zooming","state-dragging"],f=p.NONE,h=this.center,m=new THREE.Matrix3,v=new THREE.Vector2,y=new THREE.Vector2,g={type:"change"};this.focus=function(t,n){var o=new THREE.Vector3;if(t.matrixWorld.decompose(h,new THREE.Quaternion,o),n&&t.geometry){o=(o.x+o.y+o.z)/3,h.add(t.geometry.boundingSphere.center.clone().multiplyScalar(o));var r=t.geometry.boundingSphere.radius*o,i=e.position.clone().sub(h).normalize().multiplyScalar(2*r);e.position.copy(h).add(i)}e.lookAt(h),l.dispatchEvent(g)},this.pan=function(t){var n=e.position.distanceTo(h);t.multiplyScalar(.001*n),t.applyMatrix3(m.getNormalMatrix(e.matrix)),e.position.add(t),h.add(t),l.dispatchEvent(g)},this.zoom=function(t){var n=e.position.distanceTo(h);t.multiplyScalar(.001*n),t.length()>n||(t.applyMatrix3(m.getNormalMatrix(e.matrix)),e.position.add(t),l.dispatchEvent(g))},this.rotate=function(t){c.copy(e.position).sub(h);var n=Math.atan2(c.x,c.z),o=Math.atan2(Math.sqrt(c.x*c.x+c.z*c.z),c.y);n+=t.x,o+=t.y;var r=1e-6;o=Math.max(r,Math.min(Math.PI-r,o));var i=c.length();c.x=i*Math.sin(o)*Math.sin(n),c.y=i*Math.cos(o),c.z=i*Math.sin(o)*Math.cos(n),e.position.copy(h).add(c),e.lookAt(h),l.dispatchEvent(g)},this.dispose=function(){t.removeEventListener("contextmenu",a,!1),t.removeEventListener("mousedown",n,!1),t.removeEventListener("mousewheel",i,!1),t.removeEventListener("MozMousePixelScroll",i,!1),t.removeEventListener("mousemove",o,!1),t.removeEventListener("mouseup",r,!1),t.removeEventListener("mouseout",r,!1),t.removeEventListener("dblclick",r,!1),t.removeEventListener("touchstart",s,!1),t.removeEventListener("touchmove",u,!1)},t.addEventListener("contextmenu",a,!1),t.addEventListener("mousedown",n,!1),t.addEventListener("mousewheel",i,!1),t.addEventListener("MozMousePixelScroll",i,!1);var b=(new THREE.Vector3,[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3]),E=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3],x=null;t.addEventListener("touchstart",s,!1),t.addEventListener("touchmove",u,!1)},THREE.EditorControls.prototype=Object.create(THREE.EventDispatcher.prototype),THREE.EditorControls.prototype.constructor=THREE.EditorControls},function(e,t){"use strict";function n(e){return parseFloat(e.toFixed(3))}function o(e){for(var t=e.split("."),n=!1,o=0;o already registered as shorcut within the same module",e)},registerModuleShortcut:function(e,t,n,o){this.checkModuleShortcutCollision(e,n,o)||(this.shortcuts.modules[n]||(this.shortcuts.modules[n]={}),o!==!1&&(o=!0),this.shortcuts.modules[n][e]={callback:t,mustBeActive:o})}}},function(e,t,n){"use strict";function o(e,t,n){if(t.indexOf(".")!==-1){var o=t.split(".");if(null===n||void 0===n){var r=e.getAttribute(o[0]);delete r[o[1]],e.setAttribute(o[0],r)}else e.setAttribute(o[0],o[1],n)}else null===n||void 0===n?e.removeAttribute(t):e.setAttribute(t,n);f.emit("objectchanged",e.object3D)}function r(e,t){if(e&&(t===!0||confirm("Do you really want to remove entity `"+(e.id||e.tagName)+"`?"))){var n=i(e);AFRAME.INSPECTOR.removeObject(e.object3D),e.parentNode.removeChild(e),AFRAME.INSPECTOR.selectEntity(n)}}function i(e){for(var t=e.nextElementSibling;t&&(!t.isEntity||t.isInspector);)t=t.nextElementSibling;if(t&&t.isEntity&&!t.isInspector)return t;for(var n=e.previousElementSibling;n&&(!n.isEntity||n.isInspector);)n=n.previousElementSibling;return n&&n.isEntity&&!n.isInspector?n:null}function a(e){AFRAME.INSPECTOR.selectedEntity&&r(AFRAME.INSPECTOR.selectedEntity,e)}function s(e,t){t.parentNode||(t=AFRAME.INSPECTOR.selectedEntity),t?t.parentNode.insertBefore(e,t.nextSibling):AFRAME.INSPECTOR.sceneEl.appendChild(e)}function u(e){e.flushToDOM();var t=e.cloneNode(!0);t.addEventListener("loaded",function(e){AFRAME.INSPECTOR.selectEntity(t)}),e.id&&(t.id=p(e.id)),t.addEventListener("loaded",function(){f.emit("dommodified"),AFRAME.INSPECTOR.selectEntity(t)}),s(t,e)}function l(){AFRAME.INSPECTOR.selectedEntity&&u(AFRAME.INSPECTOR.selectedEntity)}function c(e){function t(e){for(var n=0;n",e);var n={status:{active:!1},registerShortcut:function(e,t,n){o.registerModuleShortcut(e,t,this.moduleName,n)},toggleActive:function(){this.active?this.deactivate():this.activate()},activate:function(){this.active=!0,t.activate.call(this)},deactivate:function(){this.active=!1,t.deactivate.call(this)}},r=Object.assign({},t,n);AFRAME.INSPECTOR.modules[e]=r}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0)return c.default.createElement(w.default,s({},a,{options:t.schema.oneOf}));if("map"===o||n)return c.default.createElement(T.default,a);switch(o){case"number":return c.default.createElement(E.default,s({},a,u));case"int":return c.default.createElement(E.default,s({},a,u,{precision:0}));case"vec2":return c.default.createElement(M.default,a);case"vec3":return c.default.createElement(k.default,a);case"vec4":return c.default.createElement(P.default,a);case"color":return c.default.createElement(v.default,a);case"boolean":return c.default.createElement(h.default,a);default:return c.default.createElement(g.default,a)}}},{key:"render",value:function(){var e=this.props,t="selector"===e.schema.type?e.entity.getDOMAttribute(e.componentname)[e.name]:JSON.stringify(e.data),n=e.name+"\n - type: "+e.schema.type+"\n - value: "+t,o=e.showHelp?(0,R.getComponentDocsHtmlLink)(e.name):"";return c.default.createElement("div",{className:"row"},c.default.createElement("label",{htmlFor:this.id,className:"text",title:n},e.name,o),this.getWidget(e.schema.type))}}]),t}(c.default.Component);N.propTypes={componentname:c.default.PropTypes.string.isRequired,id:c.default.PropTypes.string,name:c.default.PropTypes.string.isRequired,schema:c.default.PropTypes.object.isRequired},t.default=N},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;nthis.props.max&&(e=this.props.max),this.setState({value:e,displayValue:e.toFixed(this.props.precision)}),this.props.onChange&&this.props.onChange(this.props.name,e))}},{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value,displayValue:e.value.toFixed(this.props.precision)})}},{key:"render",value:function(){return l.default.createElement("input",{ref:"input",className:"number",type:"text",value:this.state.displayValue,onKeyDown:this.onKeyDown,onChange:this.onChange,onMouseDown:this.onMouseDown,onFocus:this.onFocus,onBlur:this.onBlur})}}]),t}(l.default.Component);c.propTypes={componentname:l.default.PropTypes.string,entity:l.default.PropTypes.object,max:l.default.PropTypes.number,min:l.default.PropTypes.number,name:l.default.PropTypes.string,onChange:l.default.PropTypes.func,precision:l.default.PropTypes.number,step:l.default.PropTypes.number,value:l.default.PropTypes.number},c.defaultProps={min:-(1/0),max:1/0,value:0,precision:3,step:1},t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n1&&document.querySelector(e)&&document.querySelector(e).getAttribute("src")}function u(e){if(e){var t=e.toString().match(/.*\/(.+?)\./);if(t&&t.length>1)return t[1]}return""}function l(e,t,n){var o=null;switch(e){case"img":o=document.createElement("img"),o.id=t,o.src=n}o&&document.getElementsByTagName("a-assets")[0].appendChild(o)}function c(e){var t=u(e),n=document.querySelector("a-assets > img[src='"+e+"']");if(n)t=n.id;else{if(isNaN(parseInt(t[0],10))||(t="i"+t),document.getElementById(t)){for(var o=1;document.getElementById(t+"_"+o);)o++;t+="_"+o}l("img",t,e)}return t}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var n=0;n0){i.title=t;var n=i.width/e.width;a.drawImage(e,0,0,e.width*n,e.height*n)}else a.clearRect(0,0,i.width,i.height)}function n(e){var n=e.image;t(n)}function o(e){for(var t in m.default.sceneEl.systems.material.textureCache)if(JSON.parse(t).src===e)return m.default.sceneEl.systems.material.textureCache[t];return null}var r,i=this.refs.canvas,a=i.getContext("2d");r="#"===e[0]?s(e):AFRAME.utils.srcLoader.parseUrl(e);var u=o(e),l=null;if(l="#"===e[0]?"asset":"url",u)u.then(n);else if(r){var c=new Image;c.addEventListener("load",function(){t(c)},!1),c.src=r}else a.clearRect(0,0,i.width,i.height);this.setState({value:e,valueType:l,url:r})}},{key:"render",value:function(){var e="",t="";return this.state.value&&(e="asset"===this.state.valueType?"Asset ID: "+this.state.value+"\nURL: "+this.state.url:"URL: "+this.state.value,t=f.default.createElement("a",{target:"_blank",className:"button fa fa-external-link",title:"Open image in a new tab",href:this.state.url})),f.default.createElement("span",{className:"texture"},f.default.createElement("canvas",{ref:"canvas",width:"32",height:"16",title:e,onClick:this.openDialog}),f.default.createElement("input",{className:"map_value string",type:"text",title:e,value:this.state.value,onChange:this.onChange}),t,f.default.createElement("a",{onClick:this.removeMap,className:"button fa fa-times"}))}}]),t}(f.default.Component);y.propTypes={componentname:f.default.PropTypes.string,entity:f.default.PropTypes.object,mapName:f.default.PropTypes.string,name:f.default.PropTypes.string.isRequired,onChange:f.default.PropTypes.func,value:f.default.PropTypes.string},y.defaultProps={value:"",mapName:"nomap",dataURL:""},t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,p.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(t),target:this.target(t),text:this.text(t),trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}]),t}(c.default);e.exports=f})},function(e,t,n){var o,r,i;!function(a,s){r=[e,n(217)],o=s,i="function"==typeof o?o.apply(t,r):o,!(void 0!==i&&(e.exports=i))}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(t),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,n)),this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"==typeof e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function o(){r.off(e,o),t.apply(n,arguments)}var r=this;return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;for(o;o",n=c.default.createElement("div",null,c.default.createElement("a",{href:"#",title:"Copy entity HTML to clipboard","data-action":"copy-entity-to-clipboard",className:"button fa fa-clipboard",onClick:function(e){return e.stopPropagation()}}));return c.default.createElement(y.default,null,c.default.createElement("div",{className:"collapsible-header"},c.default.createElement("span",{className:"entity-name"},t),n),c.default.createElement("div",{className:"collapsible-content"},c.default.createElement("div",{className:"row"},c.default.createElement("span",{className:"text"},"ID"),c.default.createElement(p.InputWidget,{onChange:s,entity:e,name:"id",value:e.id})),this.renderCommonAttributes(),c.default.createElement(b.default,{entity:e})))}}]),t}(c.default.Component);_.propTypes={entity:c.default.PropTypes.object},t.default=_},function(e,t,n){"use strict";e.exports={BooleanWidget:n(204).default,ColorWidget:n(205).default,InputWidget:n(206).default,NumberWidget:n(207).default,SelectWidget:n(208).default,TextureWidget:n(209).default,Vec4Widget:n(210).default,Vec3Widget:n(211).default,Vec2Widget:n(212).default}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["visible","position","scale","rotation"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e=e.replace(/(^\s*)|(\s*$)/gi,""),e=e.replace(/[ ]{2,}/gi," "),e=e.replace(/\n /,"\n")}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=e.split("/").pop();return t&&(n=l(n)),n}function u(e){var t=/^[A-Za-z]+[\w\-]*$/;return t.test(e)}function l(e){return e.split(".").shift().replace(/\s/,"-").replace(/^\d+\s*/,"").replace(/[\W]/,"").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n-1||e.name.toUpperCase().indexOf(n)>-1||e.tags.indexOf(n)>-1}).map(function(e){var n=t.bind(this,e);return h.default.createElement("li",{key:e.src,onClick:n},h.default.createElement("img",{width:"155px",height:"155px",src:e.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},e.name),h.default.createElement("span",null,s(e.src)),h.default.createElement("span",null,e.width," x ",e.height)))})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.state.loadedTextures,n=this.state.preview,o=u(this.state.preview.name),r=this.isValidAsset(),i=this.state.addNewDialogOpened?"BACK":"LOAD TEXTURE";return h.default.createElement(v.default,{id:"texture-modal",title:"Textures",isOpen:e,onClose:this.onClose,closeOnClickOutside:!1},h.default.createElement("button",{onClick:this.toggleNewDialog},i),h.default.createElement("div",{className:this.state.addNewDialogOpened?"":"hide"},h.default.createElement("div",{className:"newimage"},h.default.createElement("div",{className:"new_asset_options"},h.default.createElement("span",null,"Load a new texture from one of these sources:"),h.default.createElement("ul",null,h.default.createElement("li",null,h.default.createElement("span",null,"From URL (and press Enter):")," ",h.default.createElement("input",{type:"text",className:"imageUrl",value:this.state.newUrl,onChange:this.onUrlChange,onKeyUp:this.onNewUrl})),h.default.createElement("li",null,h.default.createElement("div",{className:"uploader-normal-button"},"From a file: ",h.default.createElement("input",{type:"hidden",role:"uploadcare-uploader"}))),h.default.createElement("li",null,h.default.createElement("span",null,"From assets registry: "),h.default.createElement("div",{className:"assets search"},h.default.createElement("input",{placeholder:"Filter...",value:this.state.filterText,onChange:this.onChangeFilter}),h.default.createElement("span",{className:"fa fa-search"})),h.default.createElement("ul",{ref:"registryGallery",className:"gallery"},this.renderRegistryImages())))),h.default.createElement("div",{className:"preview"},"Name: ",h.default.createElement("input",{ref:"imageName",className:this.state.preview.name.length>0&&!o?"error":"",type:"text",value:this.state.preview.name,onChange:this.onNameChanged,onKeyUp:this.onNameKeyUp}),h.default.createElement("img",{ref:"preview",width:"155px",height:"155px",src:n.src}),this.state.preview.loaded?h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title",title:n.filename},n.filename),h.default.createElement("br",null),h.default.createElement("span",null,n.width," x ",n.height)):h.default.createElement("span",null),h.default.createElement("br",null),h.default.createElement("button",{disabled:!r,onClick:this.addNewAsset},"LOAD THIS TEXTURE")))),h.default.createElement("div",{className:this.state.addNewDialogOpened?"hide":""},h.default.createElement("ul",{className:"gallery"},this.state.assetsImages.sort(function(e,t){return e.id>t.id}).map(function(e){var t=this.selectTexture.bind(this,e),n=this.props.selectedTexture==="#"+e.id?"selected":"";return h.default.createElement("li",{key:e.id,onClick:t,className:n},h.default.createElement("a",{href:e.src,title:"Open image in a new tab",className:"button fa fa-external-link",target:"_blank"}),h.default.createElement("img",{width:"155px",height:"155px",src:e.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},e.name),h.default.createElement("span",null,s(e.src)),h.default.createElement("span",null,e.width," x ",e.height)))}.bind(this)),t.map(function(e){var t=e.image,n=this.selectTexture.bind(this,e);return h.default.createElement("li",{key:e.uuid,onClick:n},h.default.createElement("img",{width:"155px",height:"155px",src:t.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},"Name:")," ",h.default.createElement("span",null,t.name),h.default.createElement("span",{className:"title"},"Filename:")," ",h.default.createElement("span",null,s(t.src)),h.default.createElement("span",null,t.width," x ",t.height)))}))))}}]),t}(h.default.Component);w.propTypes={isOpen:h.default.PropTypes.bool,onClose:h.default.PropTypes.func,selectedTexture:h.default.PropTypes.string},t.default=w},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n'}();"   ".repeat(o),a.id?a.id:"<"+a.tagName.toLowerCase()+">";t.push({static:!0,depth:o,value:a,hasChildren:a.children.length>0,tagName:a.tagName.toLowerCase(),id:a.id,extra:s}),e(a,o)}}}}var t=[{static:!0,value:n.props.scene,tagName:"a-scene",hasChildren:!0}];e(n.props.scene),n.setState({options:t})},n.selectIndex=function(e){e>=0&&e-1||o.tagName.toUpperCase().indexOf(t)>-1)return!0;for(var r in o.components){var i=o.components[r];if(i.attrName.toUpperCase().indexOf(t)>-1)return!0;for(var a in i.attrValue){var s=i.attrValue[a].toString();if(s.toUpperCase().indexOf(t)>-1)return!0}}return!1}).map(function(t,n){var o=l.default.createElement("a",{onClick:function(){return e.cloneEntity(t.value)},title:"Clone entity",className:"button fa fa-clone"}),r=l.default.createElement("a",{onClick:function(e){e.stopPropagation(),(0,h.removeEntity)(t.value)},title:"Remove entity",className:"button fa fa-trash-o"});"A-SCENE"===t.value.tagName&&(o="",r="");var i=" ".repeat(t.depth),a=null,s=t.value,u="a-scene"==s.tagName.toLowerCase()?s.object3D.visible:s.getAttribute("visible"),c=l.default.createElement("i",{title:"Toggle entity visibility",className:"fa "+(u?"fa-eye":"fa-eye-slash"),onClick:function(n){e.toggleVisibility(t.value,n)}}),d=(0,p.default)({option:!0,active:t.value===e.state.value,novisible:!u});return l.default.createElement("div",{key:n,className:d,value:t.value,onClick:function(){return e.setValue(t.value)}},l.default.createElement("span",null,c," ",a,i," <",t.tagName,l.default.createElement("span",{className:"id"},t.id?" "+t.id:""),l.default.createElement("span",{dangerouslySetInnerHTML:{__html:t.extra}}),">"),l.default.createElement("span",{className:"icons"},o,r))})}},{key:"render",value:function(){if(!this.props.visible)return null;var e=this.state.filterText?l.default.createElement("a",{onClick:this.clearFilter,className:"button fa fa-times"}):null;return l.default.createElement("div",{id:this.props.id,className:"scenegraph"},l.default.createElement("div",{className:"scenegraph-toolbar"},l.default.createElement(v.default,null),l.default.createElement("div",{className:"search"},l.default.createElement("input",{id:"filter",placeholder:"Search...",value:this.state.filterText,onChange:this.onChangeFilter,onKeyUp:this.onFilterKeyUp}),e,l.default.createElement("span",{className:"fa fa-search"}))),l.default.createElement("div",{className:"outliner",tabIndex:"0",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp},this.renderOptions()))}}]),t}(l.default.Component);E.propTypes={onChange:l.default.PropTypes.func,scene:l.default.PropTypes.object,value:l.default.PropTypes.string,visible:l.default.PropTypes.bool},E.defaultProps={value:"",index:-1,id:"left-sidebar"},t.default=E},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;nul{margin-left:10px;padding:5px}.new_asset_options>ul>li{padding:10px 0}.new_asset_options .imageUrl{margin-left:5px;width:350px}span.entity-name{color:#fff;font-family:Consolas,Andale Mono,Monaco,Courier New,monospace;font-size:16px}.add-component{width:200px}.Select-control{background-color:#222!important;border:none;border-radius:0;color:#1faaf2}.Select-menu-outer{border:none}.Select-menu-outer .is-focused{background-color:#1faaf2!important;color:#fff}.Select-option{background-color:#222!important}.select-widget{display:inline-block;width:157px}.Select--single>.Select-control .Select-value,.Select-placeholder,.Select-value-label{color:#1faaf2!important}.row .Select-control{font-size:11px;height:24px}.row .Select--single>.Select-control .Select-value,.row .Select-placeholder{line-height:19px}.row .Select-input{height:22px}.row input.number,.row input.string,.row input[type=number],.row input[type=text]{background:#222;border:1px solid transparent;color:#1faaf2;min-height:20px;padding-left:5px;padding-right:5px}.row input.string{box-sizing:border-box;width:165px}.help-lists{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.help-list{list-style:none;margin:0;padding:0 0 10px;width:350px}.help-list li{margin-right:40px}.help-key-unit{line-height:1.8;margin-right:2em;padding:5px 0}.help-key{bottom:2px;margin-right:4px;min-width:60px;position:relative}.help-key span{background-color:#2e2e2e;background-repeat:repeat-x;border:1px solid #666;border-radius:3px;box-shadow:0 0 5px #000;color:#999;display:inline-block;font-size:12px;padding:0 8px;text-align:center}.help-key-def{color:#bbb;display:inline-block;margin-left:1em}.add-component{text-align:left}.add-component .option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.add-component .option span{color:#1faaf2}.Select-menu-outer .is-focused span{color:#fff}.add-component-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#2b2b2b;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:10px}.aregistry-button{font-size:12px;margin-left:10px;padding:8px}.aregistry-button:hover{background-color:#1faaf2}.aregistry-button img{height:20px;width:20px}.components .row .color_value{margin:0 0 0 5px;width:68px}.assets.search{margin-top:10px;width:200px}.assets.search .fa-search{top:7px}.gallery a.fa.texture-link{box-shadow:0 0 14px -1px rgba(0,0,0,.75);position:fixed}.outliner .id{color:#ccc}.outliner .option.active .id{color:#fff}.outliner .collasespace{color:#eee;display:inline-block;text-align:center;width:14px}.outliner .fa-eye{color:#bbb}.outliner .option{white-space:pre}.option span:first-child{overflow:hidden;text-overflow:ellipsis}.outliner .option.novisible .collasespace,.outliner .option.novisible .fa,.outliner .option.novisible .id,.outliner .option.novisible span{color:#575757}.outliner .option .icons a.button{color:#fff}.toggle-sidebar{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;position:absolute;z-index:9998}.toggle-sidebar.left{left:0}.toggle-sidebar.right{right:0}.toggle-sidebar a{background-color:#262626;color:#bcbcbc;padding:5px;z-index:9998}.toggle-sidebar a:hover{background-color:#1faaf2;color:#fff}",""]); +"use strict";function o(){this.modules=[],this.opened=!1,"complete"===document.readyState||"loaded"===document.readyState?this.onDomLoaded():document.addEventListener("DOMContentLoaded",this.onDomLoaded.bind(this))}var r=n(170),i=n(189),a=n(194),s=n(195),u=n(196),l=n(197);o.prototype={onDomLoaded:function(){this.componentLoader=new a,this.shaderLoader=new u,this.assetsLoader=new s,this.sceneEl=document.querySelector("a-scene"),this.sceneEl.hasLoaded?this.onSceneLoaded():this.sceneEl.addEventListener("loaded",this.onSceneLoaded.bind(this))},onSceneLoaded:function(){var e=this;this.container=document.querySelector(".a-canvas"),this.currentCameraEl=document.querySelector("[camera]"),this.currentCameraEl.hasAttribute("data-aframe-default-camera")&&(this.currentCameraEl.removeAttribute("data-aframe-default-camera"),this.currentCameraEl.setAttribute("data-aframe-inspector","default-camera")),this.inspectorCameraEl=document.createElement("a-entity"),this.inspectorCameraEl.isInspector=!0,this.inspectorCameraEl.addEventListener("loaded",function(t){e.EDITOR_CAMERA=e.inspectorCameraEl.getObject3D("camera"),e.initUI(),e.initModules()}),this.inspectorCameraEl.setAttribute("camera",{far:1e4,fov:50,near:.05,active:!0}),document.querySelector("a-scene").appendChild(this.inspectorCameraEl)},initModules:function(){for(var e in this.modules){var t=this.modules[e];console.log("Initializing module <%s>",e),t.init(this.sceneEl)}},initUI:function(){function e(e){for(var t=0;t0){for(var o=!1,r=0;r0){var a=i[0];c.emit("objectfocused",a.object)}}function h(){e.container.removeEventListener("mousedown",i),e.container.removeEventListener("touchstart",s),e.container.removeEventListener("dblclick",f),P.dispose(),R.enabled=!1}function m(){e.container.addEventListener("mousedown",i,!1),e.container.addEventListener("touchstart",s,!1),e.container.addEventListener("dblclick",f,!1),P.activate(),R.enabled=!0}var v={dom:e.container},y=e.currentCameraEl;e.sceneEl.addEventListener("camera-set-active",function(t){e.opened&&(t.detail.cameraEl!==e.inspectorCameraEl&&(y=t.detail.cameraEl),t.detail.cameraEl.isInspector||e.inspectorCameraEl.setAttribute("camera","active","true"))});var g=e.sceneHelpers,b=[],E=new THREE.GridHelper(30,60,5592405,2697513);g.add(E);var w=e.inspectorCameraEl.getObject3D("camera"),x=new THREE.BoxHelper;x.material.depthTest=!1,x.material.transparent=!0,x.material.color.set(2075378),x.visible=!1,g.add(x);var C=null,T=null,_=null,P=new THREE.TransformControls(w,e.container);P.addEventListener("change",function(){var e=P.object;if(void 0!==e){x.update(e),t(e);var n=P.getMode();switch(n){case"translate":e.el.setAttribute("position",{x:(0,l.getNumber)(e.position.x),y:(0,l.getNumber)(e.position.y),z:(0,l.getNumber)(e.position.z)});break;case"rotate":e.el.setAttribute("rotation",{x:THREE.Math.radToDeg((0,l.getNumber)(e.rotation.x)),y:THREE.Math.radToDeg((0,l.getNumber)(e.rotation.y)),z:THREE.Math.radToDeg((0,l.getNumber)(e.rotation.z))});break;case"scale":e.el.setAttribute("scale",{x:(0,l.getNumber)(e.scale.x),y:(0,l.getNumber)(e.scale.y),z:(0,l.getNumber)(e.scale.z)})}c.emit("refreshsidebarobject3d",e),p(n)}}),P.addEventListener("mouseDown",function(){var e=P.object;C=e.position.clone(),T=e.rotation.clone(),_=e.scale.clone(),R.enabled=!1}),P.addEventListener("mouseUp",function(){var e=P.object;if(null!==e)switch(P.getMode()){case"translate":!C.equals(e.position);break;case"rotate":!T.equals(e.rotation);break;case"scale":!_.equals(e.scale)}R.enabled=!0}),g.add(P),c.on("objectchanged",function(){e.selectedEntity.object3DMap.mesh&&x.update(e.selected)});var O=new THREE.Raycaster,k=new THREE.Vector2,S=new THREE.Vector2,M=new THREE.Vector2,A=new THREE.Vector2,R=new THREE.EditorControls(w,e.container);m(),R.addEventListener("change",function(){P.update(),d()}),c.on("inspectorcleared",function(){R.center.set(0,0,0)}),c.on("transformmodechanged",function(e){P.setMode(e)}),c.on("snapchanged",function(e){P.setTranslationSnap(e)}),c.on("spacechanged",function(e){P.setSpace(e)}),c.on("objectselected",function(e){x.visible=!1,P.detach(),e&&e.el&&(e.el.getObject3D("mesh")&&(x.update(e),x.visible=!0),P.attach(e))}),c.on("objectfocused",function(e){R.focus(e),ga("send","event","Viewport","selectEntity")}),c.on("geometrychanged",function(e){null!==e&&x.update(e)}),c.on("objectadded",function(e){e.traverse(function(e){b.indexOf(e)===-1&&b.push(e)})}),c.on("objectchanged",function(n){e.selected===n&&n.geometry&&n.geometry.vertices&&n.geometry.vertices.length>0&&x.update(n),P.update(),n instanceof THREE.PerspectiveCamera&&n.updateProjectionMatrix(),t(n)}),c.on("selectedentitycomponentchanged",function(){c.emit("objectchanged",e.selectedEntity.object3D)}),c.on("objectremoved",function(e){e.traverse(function(e){b.splice(b.indexOf(e),1)})}),c.on("helperadded",function(e){b.push(e.getObjectByName("picker")),t(e.fromObject.parent)}),c.on("helperremoved",function(e){b.splice(b.indexOf(e.getObjectByName("picker")),1)}),c.on("windowresize",function(){w.aspect=v.dom.offsetWidth/v.dom.offsetHeight,w.updateProjectionMatrix()}),c.on("gridvisibilitychanged",function(e){E.visible=e}),c.on("togglegrid",function(){E.visible=!E.visible}),c.on("inspectormodechanged",function(t){t?(m(),e.inspectorCameraEl.setAttribute("camera","active","true"),Array.prototype.slice.call(document.querySelectorAll(".a-enter-vr,.rs-base")).forEach(function(e){e.style.display="none"})):(h(),y.setAttribute("camera","active","true"),Array.prototype.slice.call(document.querySelectorAll(".a-enter-vr,.rs-base")).forEach(function(e){e.style.display="block"})),ga("send","event","Viewport","toggleEditor",t)})}var i=n(190),a=o(i),s=n(191),u=(o(s),n(192)),l=(o(u),n(193)),c=n(170),p=(0,a.default)(function(e){ga("send","event","Viewport","transformEntity",e)},3e3),d=(0,a.default)(function(){ga("send","event","Viewport","changeEditorCamera")},3e3);e.exports=r},function(e,t){(function(t){function n(e,t,n){function r(t){var n=m,o=v;return m=v=void 0,T=t,g=e.apply(o,n)}function i(e){return T=e,b=setTimeout(c,t),_?r(e):g}function u(e){var n=e-C,o=e-T,r=t-n;return P?w(r,y-o):r}function l(e){var n=e-C,o=e-T;return void 0===C||n>=t||n<0||P&&o>=y}function c(){var e=x();return l(e)?p(e):void(b=setTimeout(c,u(e)))}function p(e){return b=void 0,O&&m?r(e):(m=v=void 0,g)}function d(){void 0!==b&&clearTimeout(b),T=0,m=C=v=b=void 0}function f(){return void 0===b?g:p(x())}function h(){var e=x(),n=l(e);if(m=arguments,v=this,C=e,n){if(void 0===b)return i(C);if(P)return b=setTimeout(c,t),r(C)}return void 0===b&&(b=setTimeout(c,t)),g}var m,v,y,g,b,C,T=0,_=!1,P=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,o(n)&&(_=!!n.leading,P="maxWait"in n,y=P?E(a(n.maxWait)||0,t):y,O="trailing"in n?!!n.trailing:O),h.cancel=d,h.flush=f,h}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function i(e){return"symbol"==typeof e||r(e)&&b.call(e)==l}function a(e){if("number"==typeof e)return e;if(i(e))return u;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=d.test(e);return n||f.test(e)?h(e.slice(2),n?2:8):p.test(e)?u:+e}var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,y=m||v||Function("return this")(),g=Object.prototype,b=g.toString,E=Math.max,w=Math.min,x=function(){return y.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";!function(){var e=function(e){THREE.MeshBasicMaterial.call(this),this.depthTest=!1,this.depthWrite=!1,this.side=THREE.FrontSide,this.transparent=!0,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}};e.prototype=Object.create(THREE.MeshBasicMaterial.prototype),e.prototype.constructor=e;var t=function(e){THREE.LineBasicMaterial.call(this),this.depthTest=!1,this.depthWrite=!1,this.transparent=!0,this.linewidth=1,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}};t.prototype=Object.create(THREE.LineBasicMaterial.prototype),t.prototype.constructor=t;var n=new e({visible:!1,transparent:!1});THREE.TransformGizmo=function(){this.init=function(){THREE.Object3D.call(this),this.handles=new THREE.Object3D,this.pickers=new THREE.Object3D,this.planes=new THREE.Object3D,this.add(this.handles),this.add(this.pickers),this.add(this.planes);var e=new THREE.PlaneBufferGeometry(50,50,2,2),t=new THREE.MeshBasicMaterial({visible:!1,side:THREE.DoubleSide}),n={XY:new THREE.Mesh(e,t),YZ:new THREE.Mesh(e,t),XZ:new THREE.Mesh(e,t),XYZE:new THREE.Mesh(e,t)};this.activePlane=n.XYZE,n.YZ.rotation.set(0,Math.PI/2,0),n.XZ.rotation.set(-Math.PI/2,0,0);for(var o in n)n[o].name=o,this.planes.add(n[o]),this.planes[o]=n[o];var r=function(e,t){for(var n in e)for(o=e[n].length;o--;){var r=e[n][o][0],i=e[n][o][1],a=e[n][o][2];r.name=n,i&&r.position.set(i[0],i[1],i[2]),a&&r.rotation.set(a[0],a[1],a[2]),t.add(r)}};r(this.handleGizmos,this.handles),r(this.pickerGizmos,this.pickers),this.traverse(function(e){if(e instanceof THREE.Mesh){e.updateMatrix();var t=e.geometry.clone();t.applyMatrix(e.matrix),e.geometry=t,e.position.set(0,0,0),e.rotation.set(0,0,0),e.scale.set(1,1,1)}})},this.highlight=function(e){this.traverse(function(t){t.material&&t.material.highlight&&(t.name===e?t.material.highlight(!0):t.material.highlight(!1))})}},THREE.TransformGizmo.prototype=Object.create(THREE.Object3D.prototype),THREE.TransformGizmo.prototype.constructor=THREE.TransformGizmo,THREE.TransformGizmo.prototype.update=function(e,t){var n=new THREE.Vector3(0,0,0),o=new THREE.Vector3(0,1,0),r=new THREE.Matrix4;this.traverse(function(i){i.name.search("E")!==-1?i.quaternion.setFromRotationMatrix(r.lookAt(t,n,o)):i.name.search("X")===-1&&i.name.search("Y")===-1&&i.name.search("Z")===-1||i.quaternion.setFromEuler(e)})},THREE.TransformGizmoTranslate=function(){THREE.TransformGizmo.call(this);var o=new THREE.Geometry,r=new THREE.Mesh(new THREE.CylinderGeometry(0,.05,.2,12,1,!1));r.position.y=.5,r.updateMatrix(),o.merge(r.geometry,r.matrix);var i=new THREE.BufferGeometry;i.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var a=new THREE.BufferGeometry;a.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var s=new THREE.BufferGeometry;s.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(o,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(i,new t({color:16711680}))]],Y:[[new THREE.Mesh(o,new e({color:65280})),[0,.5,0]],[new THREE.Line(a,new t({color:65280}))]],Z:[[new THREE.Mesh(o,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(s,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.1,0),new e({color:16777215,opacity:.25})),[0,0,0],[0,0,0]]],XY:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:16776960,opacity:.25})),[.15,.15,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:65535,opacity:.25})),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:16711935,opacity:.25})),[.15,0,.15],[-Math.PI/2,0,0]]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.2,0),n)]],XY:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[.2,.2,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[0,.2,.2],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[.2,0,.2],[-Math.PI/2,0,0]]]},this.setActivePlane=function(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.getInverse(n.extractRotation(this.planes.XY.matrixWorld))),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE),"XY"===e&&(this.activePlane=this.planes.XY),"YZ"===e&&(this.activePlane=this.planes.YZ),"XZ"===e&&(this.activePlane=this.planes.XZ)},this.init()},THREE.TransformGizmoTranslate.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoTranslate.prototype.constructor=THREE.TransformGizmoTranslate,THREE.TransformGizmoRotate=function(){THREE.TransformGizmo.call(this);var e=function(e,t,n){var o=new THREE.BufferGeometry,r=[];n=n?n:1;for(var i=0;i<=64*n;++i)"x"===t&&r.push(0,Math.cos(i/32*Math.PI)*e,Math.sin(i/32*Math.PI)*e),"y"===t&&r.push(Math.cos(i/32*Math.PI)*e,0,Math.sin(i/32*Math.PI)*e),"z"===t&&r.push(Math.sin(i/32*Math.PI)*e,Math.cos(i/32*Math.PI)*e,0);return o.addAttribute("position",new THREE.Float32BufferAttribute(r,3)),o};this.handleGizmos={X:[[new THREE.Line(new e(1,"x",.5),new t({color:16711680}))]],Y:[[new THREE.Line(new e(1,"y",.5),new t({color:65280}))]],Z:[[new THREE.Line(new e(1,"z",.5),new t({color:255}))]],E:[[new THREE.Line(new e(1.25,"z",1),new t({color:13421568}))]],XYZE:[[new THREE.Line(new e(1,"z",1),new t({color:7895160}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[Math.PI/2,0,0]]],Z:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,0,-Math.PI/2]]],E:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1.25,.12,2,24),n)]],XYZE:[[new THREE.Mesh(new THREE.Geometry)]]},this.setActivePlane=function(e){"E"===e&&(this.activePlane=this.planes.XYZE),"X"===e&&(this.activePlane=this.planes.YZ),"Y"===e&&(this.activePlane=this.planes.XZ),"Z"===e&&(this.activePlane=this.planes.XY)},this.update=function(e,t){THREE.TransformGizmo.prototype.update.apply(this,arguments);var n=({handles:this.handles,pickers:this.pickers},new THREE.Matrix4),o=new THREE.Euler(0,0,1),r=new THREE.Quaternion,i=new THREE.Vector3(1,0,0),a=new THREE.Vector3(0,1,0),s=new THREE.Vector3(0,0,1),u=new THREE.Quaternion,l=new THREE.Quaternion,c=new THREE.Quaternion,p=t.clone();o.copy(this.planes.XY.rotation),r.setFromEuler(o),n.makeRotationFromQuaternion(r).getInverse(n),p.applyMatrix4(n),this.traverse(function(e){r.setFromEuler(o),"X"===e.name&&(u.setFromAxisAngle(i,Math.atan2(-p.y,p.z)),r.multiplyQuaternions(r,u),e.quaternion.copy(r)),"Y"===e.name&&(l.setFromAxisAngle(a,Math.atan2(p.x,p.z)),r.multiplyQuaternions(r,l),e.quaternion.copy(r)),"Z"===e.name&&(c.setFromAxisAngle(s,Math.atan2(p.y,p.x)),r.multiplyQuaternions(r,c),e.quaternion.copy(r))})},this.init()},THREE.TransformGizmoRotate.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoRotate.prototype.constructor=THREE.TransformGizmoRotate,THREE.TransformGizmoScale=function(){THREE.TransformGizmo.call(this);var o=new THREE.Geometry,r=new THREE.Mesh(new THREE.BoxGeometry(.125,.125,.125));r.position.y=.5,r.updateMatrix(),o.merge(r.geometry,r.matrix);var i=new THREE.BufferGeometry;i.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var a=new THREE.BufferGeometry;a.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var s=new THREE.BufferGeometry;s.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(o,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(i,new t({color:16711680}))]],Y:[[new THREE.Mesh(o,new e({color:65280})),[0,.5,0]],[new THREE.Line(a,new t({color:65280}))]],Z:[[new THREE.Mesh(o,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(s,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.BoxBufferGeometry(.125,.125,.125),new e({color:16777215,opacity:.25}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.BoxBufferGeometry(.4,.4,.4),n)]]},this.setActivePlane=function(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.getInverse(n.extractRotation(this.planes.XY.matrixWorld))),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE)},this.init()},THREE.TransformGizmoScale.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoScale.prototype.constructor=THREE.TransformGizmoScale,THREE.TransformControls=function(e,t){function n(e){if(void 0!==s.object&&l!==!0&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e,n=a(t,c[u].pickers.children),o=null;n&&(o=n.object.name,e.preventDefault()),s.axis!==o&&(s.axis=o,s.update(),s.dispatchEvent(f))}}function o(e){if(void 0!==s.object&&l!==!0&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e;if(0===t.button||void 0===t.button){var n=a(t,c[u].pickers.children);if(n){e.preventDefault(),e.stopPropagation(),s.dispatchEvent(h),s.axis=n.object.name,s.update(),_.copy(K).sub(B).normalize(),c[u].setActivePlane(s.axis,_);var o=a(t,[c[u].activePlane]);o&&(F.copy(s.object.position),L.copy(s.object.scale),H.extractRotation(s.object.matrix),W.extractRotation(s.object.matrixWorld),U.extractRotation(s.object.parent.matrixWorld),V.setFromMatrixScale(P.getInverse(s.object.parent.matrixWorld)),E.copy(o.point))}}l=!0}}function r(e){if(void 0!==s.object&&null!==s.axis&&l!==!1&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e,n=a(t,[c[u].activePlane]);n!==!1&&(e.preventDefault(),e.stopPropagation(),b.copy(n.point),"translate"===u?(b.sub(E),b.multiply(V),"local"!==s.space&&"scale"!==u||(b.applyMatrix4(P.getInverse(W)),s.axis.search("X")===-1&&(b.x=0),s.axis.search("Y")===-1&&(b.y=0),s.axis.search("Z")===-1&&(b.z=0),b.applyMatrix4(H),s.object.position.copy(F),s.object.position.add(b)),"world"!==s.space&&s.axis.search("XYZ")===-1||(s.axis.search("X")===-1&&(b.x=0),s.axis.search("Y")===-1&&(b.y=0),s.axis.search("Z")===-1&&(b.z=0),b.applyMatrix4(P.getInverse(U)),s.object.position.copy(F),s.object.position.add(b)),null!==s.translationSnap&&("local"!==s.space&&"scale"!==u||s.object.position.applyMatrix4(P.getInverse(W)),s.axis.search("X")!==-1&&(s.object.position.x=Math.round(s.object.position.x/s.translationSnap)*s.translationSnap),s.axis.search("Y")!==-1&&(s.object.position.y=Math.round(s.object.position.y/s.translationSnap)*s.translationSnap),s.axis.search("Z")!==-1&&(s.object.position.z=Math.round(s.object.position.z/s.translationSnap)*s.translationSnap),"local"!==s.space&&"scale"!==u||s.object.position.applyMatrix4(W))):"scale"===u?(b.sub(E),b.multiply(V),"local"!==s.space&&"scale"!==u||("XYZ"===s.axis?(C=1+b.y/Math.max(L.x,L.y,L.z),s.object.scale.x=L.x*C,s.object.scale.y=L.y*C,s.object.scale.z=L.z*C):(b.applyMatrix4(P.getInverse(W)),"X"===s.axis&&(s.object.scale.x=L.x*(1+b.x/L.x)),"Y"===s.axis&&(s.object.scale.y=L.y*(1+b.y/L.y)),"Z"===s.axis&&(s.object.scale.z=L.z*(1+b.z/L.z))))):"rotate"===u&&(b.sub(B),b.multiply(V),O.copy(E).sub(B),O.multiply(V),"E"===s.axis?(b.applyMatrix4(P.getInverse(T)),O.applyMatrix4(P.getInverse(T)),w.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),x.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),k.setFromRotationMatrix(P.getInverse(U)),I.setFromAxisAngle(_,w.z-x.z),R.setFromRotationMatrix(W),k.multiplyQuaternions(k,I),k.multiplyQuaternions(k,R),s.object.quaternion.copy(k)):"XYZE"===s.axis?(I.setFromEuler(b.clone().cross(O).normalize()),k.setFromRotationMatrix(P.getInverse(U)),N.setFromAxisAngle(I,-b.clone().angleTo(O)),R.setFromRotationMatrix(W),k.multiplyQuaternions(k,N),k.multiplyQuaternions(k,R),s.object.quaternion.copy(k)):"local"===s.space||"scale"===u?(b.applyMatrix4(P.getInverse(W)),O.applyMatrix4(P.getInverse(W)),w.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),x.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),R.setFromRotationMatrix(H),null!==s.rotationSnap?(N.setFromAxisAngle(S,Math.round((w.x-x.x)/s.rotationSnap)*s.rotationSnap),D.setFromAxisAngle(M,Math.round((w.y-x.y)/s.rotationSnap)*s.rotationSnap),j.setFromAxisAngle(A,Math.round((w.z-x.z)/s.rotationSnap)*s.rotationSnap)):(N.setFromAxisAngle(S,w.x-x.x),D.setFromAxisAngle(M,w.y-x.y),j.setFromAxisAngle(A,w.z-x.z)),"X"===s.axis&&R.multiplyQuaternions(R,N),"Y"===s.axis&&R.multiplyQuaternions(R,D),"Z"===s.axis&&R.multiplyQuaternions(R,j),s.object.quaternion.copy(R)):"world"===s.space&&(w.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),x.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),k.setFromRotationMatrix(P.getInverse(U)),null!==s.rotationSnap?(N.setFromAxisAngle(S,Math.round((w.x-x.x)/s.rotationSnap)*s.rotationSnap),D.setFromAxisAngle(M,Math.round((w.y-x.y)/s.rotationSnap)*s.rotationSnap),j.setFromAxisAngle(A,Math.round((w.z-x.z)/s.rotationSnap)*s.rotationSnap)):(N.setFromAxisAngle(S,w.x-x.x),D.setFromAxisAngle(M,w.y-x.y),j.setFromAxisAngle(A,w.z-x.z)),R.setFromRotationMatrix(W),"X"===s.axis&&k.multiplyQuaternions(k,N),"Y"===s.axis&&k.multiplyQuaternions(k,D),"Z"===s.axis&&k.multiplyQuaternions(k,j),k.multiplyQuaternions(k,R),s.object.quaternion.copy(k))),s.update(),s.dispatchEvent(f),s.dispatchEvent(v))}}function i(e){e.preventDefault(),void 0!==e.button&&0!==e.button||(l&&null!==s.axis&&(m.mode=u,s.dispatchEvent(m)),l=!1,"TouchEvent"in window&&e instanceof TouchEvent?(s.axis=null,s.update(),s.dispatchEvent(f)):n(e))}function a(n,o){var r=t.getBoundingClientRect(),i=(n.clientX-r.left)/r.width,a=(n.clientY-r.top)/r.height;g.set(2*i-1,-(2*a)+1),y.setFromCamera(g,e);var s=y.intersectObjects(o,!0);return!!s[0]&&s[0]}THREE.Object3D.call(this),t=void 0!==t?t:document,this.object=void 0,this.visible=!1,this.translationSnap=null,this.rotationSnap=null,this.space="world",this.size=1,this.axis=null;var s=this,u="translate",l=!1,c={translate:new THREE.TransformGizmoTranslate,rotate:new THREE.TransformGizmoRotate,scale:new THREE.TransformGizmoScale};for(var p in c){var d=c[p];d.visible=p===u,this.add(d)}var f={type:"change"},h={type:"mouseDown"},m={type:"mouseUp",mode:u},v={type:"objectChange"},y=new THREE.Raycaster,g=new THREE.Vector2,b=new THREE.Vector3,E=new THREE.Vector3,w=new THREE.Vector3,x=new THREE.Vector3,C=1,T=new THREE.Matrix4,_=new THREE.Vector3,P=new THREE.Matrix4,O=new THREE.Vector3,k=new THREE.Quaternion,S=new THREE.Vector3(1,0,0),M=new THREE.Vector3(0,1,0),A=new THREE.Vector3(0,0,1),R=new THREE.Quaternion,N=new THREE.Quaternion,D=new THREE.Quaternion,j=new THREE.Quaternion,I=new THREE.Quaternion,F=new THREE.Vector3,L=new THREE.Vector3,H=new THREE.Matrix4,U=new THREE.Matrix4,V=new THREE.Vector3,B=new THREE.Vector3,z=new THREE.Euler,W=new THREE.Matrix4,K=new THREE.Vector3,q=new THREE.Euler;this.activate=function(){t.addEventListener("mousedown",o,!1),t.addEventListener("touchstart",o,!1),t.addEventListener("mousemove",n,!1),t.addEventListener("touchmove",n,!1),t.addEventListener("mousemove",r,!1),t.addEventListener("touchmove",r,!1),t.addEventListener("mouseup",i,!1),t.addEventListener("mouseout",i,!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1),t.addEventListener("touchleave",i,!1)},this.activate(),this.dispose=function(){t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",o),t.removeEventListener("mousemove",n),t.removeEventListener("touchmove",n),t.removeEventListener("mousemove",r),t.removeEventListener("touchmove",r),t.removeEventListener("mouseup",i),t.removeEventListener("mouseout",i),t.removeEventListener("touchend",i),t.removeEventListener("touchcancel",i),t.removeEventListener("touchleave",i)},this.attach=function(e){this.object=e,this.visible=!0,this.update()},this.detach=function(){this.object=void 0,this.visible=!1,this.axis=null},this.getMode=function(){return u},this.setMode=function(e){u=e?e:u;for(var t in c)c[t].visible=t===u;this.update(),s.dispatchEvent(f)},this.setTranslationSnap=function(e){s.translationSnap=e},this.setRotationSnap=function(e){s.rotationSnap=e},this.setSize=function(e){s.size=e,this.update(),s.dispatchEvent(f)},this.toggleSpace=function(){this.setSpace("local"===s.space?"world":"local")},this.setSpace=function(e){s.space=e,this.update(),s.dispatchEvent(f)},this.update=function(){void 0!==s.object&&(s.object.updateMatrixWorld(),B.setFromMatrixPosition(s.object.matrixWorld),z.setFromRotationMatrix(P.extractRotation(s.object.matrixWorld)),e.updateMatrixWorld(),K.setFromMatrixPosition(e.matrixWorld),q.setFromRotationMatrix(P.extractRotation(e.matrixWorld)),C=B.distanceTo(K)/6*s.size,this.position.copy(B),this.scale.set(C,C,C),_.copy(K).sub(B).normalize(),"local"===s.space||"scale"===u?c[u].update(z,_):"world"===s.space&&c[u].update(new THREE.Euler,_),c[u].highlight(s.axis))}},THREE.TransformControls.prototype=Object.create(THREE.Object3D.prototype),THREE.TransformControls.prototype.constructor=THREE.TransformControls}()},function(e,t){"use strict";THREE.EditorControls=function(e,t){function n(e){l.enabled!==!1&&(0===e.button?f=p.ROTATE:1===e.button?f=p.ZOOM:2===e.button&&(f=p.PAN), +t.classList.add(d[f]),y.set(e.clientX,e.clientY),t.addEventListener("mousemove",o,!1),t.addEventListener("mouseup",r,!1),t.addEventListener("mouseout",r,!1),t.addEventListener("dblclick",r,!1))}function o(e){if(l.enabled!==!1){v.set(e.clientX,e.clientY);var t=v.x-y.x,n=v.y-y.y;f===p.ROTATE?l.rotate(new THREE.Vector3(.005*-t,.005*-n,0)):f===p.ZOOM?l.zoom(new THREE.Vector3(0,0,n)):f===p.PAN&&l.pan(new THREE.Vector3(-t,n,0)),y.set(e.clientX,e.clientY)}}function r(e){t.removeEventListener("mousemove",o,!1),t.removeEventListener("mouseup",r,!1),t.removeEventListener("mouseout",r,!1),t.removeEventListener("dblclick",r,!1),t.classList.remove(d[f]),f=p.NONE}function i(e){e.preventDefault();var t=0;e.wheelDelta?t=-e.wheelDelta:e.detail&&(t=10*e.detail),l.zoom(new THREE.Vector3(0,0,t))}function a(e){e.preventDefault()}function s(e){if(l.enabled!==!1){switch(e.touches.length){case 1:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[0].pageX,e.touches[0].pageY,0);break;case 2:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[1].pageX,e.touches[1].pageY,0),w=b[0].distanceTo(b[1])}E[0].copy(b[0]),E[1].copy(b[1])}}function u(e){function t(e,t){var n=t[0];for(var o in t)n.distanceTo(e)>t[o].distanceTo(e)&&(n=t[o]);return n}if(l.enabled!==!1){switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[0].pageX,e.touches[0].pageY,0),l.rotate(b[0].sub(t(b[0],E)).multiplyScalar(-.005));break;case 2:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[1].pageX,e.touches[1].pageY,0),distance=b[0].distanceTo(b[1]),l.zoom(new THREE.Vector3(0,0,w-distance)),w=distance;var n=b[0].clone().sub(t(b[0],E)),o=b[1].clone().sub(t(b[1],E));n.x=-n.x,o.x=-o.x,l.pan(n.add(o).multiplyScalar(.5))}E[0].copy(b[0]),E[1].copy(b[1])}}t=void 0!==t?t:document,this.enabled=!0,this.center=new THREE.Vector3;var l=this,c=new THREE.Vector3,p={NONE:-1,ROTATE:0,ZOOM:1,PAN:2},d=["state-rotating","state-zooming","state-dragging"],f=p.NONE,h=this.center,m=new THREE.Matrix3,v=new THREE.Vector2,y=new THREE.Vector2,g={type:"change"};this.focus=function(t,n){var o=new THREE.Vector3;if(t.matrixWorld.decompose(h,new THREE.Quaternion,o),n&&t.geometry){o=(o.x+o.y+o.z)/3,h.add(t.geometry.boundingSphere.center.clone().multiplyScalar(o));var r=t.geometry.boundingSphere.radius*o,i=e.position.clone().sub(h).normalize().multiplyScalar(2*r);e.position.copy(h).add(i)}e.lookAt(h),l.dispatchEvent(g)},this.pan=function(t){var n=e.position.distanceTo(h);t.multiplyScalar(.001*n),t.applyMatrix3(m.getNormalMatrix(e.matrix)),e.position.add(t),h.add(t),l.dispatchEvent(g)},this.zoom=function(t){var n=e.position.distanceTo(h);t.multiplyScalar(.001*n),t.length()>n||(t.applyMatrix3(m.getNormalMatrix(e.matrix)),e.position.add(t),l.dispatchEvent(g))},this.rotate=function(t){c.copy(e.position).sub(h);var n=Math.atan2(c.x,c.z),o=Math.atan2(Math.sqrt(c.x*c.x+c.z*c.z),c.y);n+=t.x,o+=t.y;var r=1e-6;o=Math.max(r,Math.min(Math.PI-r,o));var i=c.length();c.x=i*Math.sin(o)*Math.sin(n),c.y=i*Math.cos(o),c.z=i*Math.sin(o)*Math.cos(n),e.position.copy(h).add(c),e.lookAt(h),l.dispatchEvent(g)},this.dispose=function(){t.removeEventListener("contextmenu",a,!1),t.removeEventListener("mousedown",n,!1),t.removeEventListener("mousewheel",i,!1),t.removeEventListener("MozMousePixelScroll",i,!1),t.removeEventListener("mousemove",o,!1),t.removeEventListener("mouseup",r,!1),t.removeEventListener("mouseout",r,!1),t.removeEventListener("dblclick",r,!1),t.removeEventListener("touchstart",s,!1),t.removeEventListener("touchmove",u,!1)},t.addEventListener("contextmenu",a,!1),t.addEventListener("mousedown",n,!1),t.addEventListener("mousewheel",i,!1),t.addEventListener("MozMousePixelScroll",i,!1);var b=(new THREE.Vector3,[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3]),E=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3],w=null;t.addEventListener("touchstart",s,!1),t.addEventListener("touchmove",u,!1)},THREE.EditorControls.prototype=Object.create(THREE.EventDispatcher.prototype),THREE.EditorControls.prototype.constructor=THREE.EditorControls},function(e,t){"use strict";function n(e){return parseFloat(e.toFixed(3))}function o(e){for(var t=e.split("."),n=!1,o=0;o already registered as shorcut within the same module",e)},registerModuleShortcut:function(e,t,n,o){this.checkModuleShortcutCollision(e,n,o)||(this.shortcuts.modules[n]||(this.shortcuts.modules[n]={}),o!==!1&&(o=!0),this.shortcuts.modules[n][e]={callback:t,mustBeActive:o})}}},function(e,t,n){"use strict";function o(e,t,n){if(t.indexOf(".")!==-1){var o=t.split(".");if(null===n||void 0===n){var r=e.getAttribute(o[0]);delete r[o[1]],e.setAttribute(o[0],r)}else e.setAttribute(o[0],o[1],n)}else null===n||void 0===n?e.removeAttribute(t):e.setAttribute(t,n);f.emit("objectchanged",e.object3D)}function r(e,t){if(e&&(t===!0||confirm("Do you really want to remove entity `"+(e.id||e.tagName)+"`?"))){var n=i(e);AFRAME.INSPECTOR.removeObject(e.object3D),e.parentNode.removeChild(e),AFRAME.INSPECTOR.selectEntity(n)}}function i(e){for(var t=e.nextElementSibling;t&&(!t.isEntity||t.isInspector);)t=t.nextElementSibling;if(t&&t.isEntity&&!t.isInspector)return t;for(var n=e.previousElementSibling;n&&(!n.isEntity||n.isInspector);)n=n.previousElementSibling;return n&&n.isEntity&&!n.isInspector?n:null}function a(e){AFRAME.INSPECTOR.selectedEntity&&r(AFRAME.INSPECTOR.selectedEntity,e)}function s(e,t){t.parentNode||(t=AFRAME.INSPECTOR.selectedEntity),t?t.parentNode.insertBefore(e,t.nextSibling):AFRAME.INSPECTOR.sceneEl.appendChild(e)}function u(e){e.flushToDOM();var t=e.cloneNode(!0);t.addEventListener("loaded",function(e){AFRAME.INSPECTOR.selectEntity(t)}),e.id&&(t.id=p(e.id)),t.addEventListener("loaded",function(){f.emit("dommodified"),AFRAME.INSPECTOR.selectEntity(t)}),s(t,e)}function l(){AFRAME.INSPECTOR.selectedEntity&&u(AFRAME.INSPECTOR.selectedEntity)}function c(e){function t(e){for(var n=0;n",e);var n={status:{active:!1},registerShortcut:function(e,t,n){o.registerModuleShortcut(e,t,this.moduleName,n)},toggleActive:function(){this.active?this.deactivate():this.activate()},activate:function(){this.active=!0,t.activate.call(this)},deactivate:function(){this.active=!1,t.deactivate.call(this)}},r=Object.assign({},t,n);AFRAME.INSPECTOR.modules[e]=r}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0)return c.default.createElement(x.default,s({},a,{options:t.schema.oneOf}));if("map"===o||n)return c.default.createElement(T.default,a);switch(o){case"number":return c.default.createElement(E.default,s({},a,u));case"int":return c.default.createElement(E.default,s({},a,u,{precision:0}));case"vec2":return c.default.createElement(M.default,a);case"vec3":return c.default.createElement(k.default,a);case"vec4":return c.default.createElement(P.default,a);case"color":return c.default.createElement(v.default,a);case"boolean":return c.default.createElement(h.default,a);default:return c.default.createElement(g.default,a)}}},{key:"render",value:function(){var e=this.props,t="selector"===e.schema.type?e.entity.getDOMAttribute(e.componentname)[e.name]:JSON.stringify(e.data),n=e.name+"\n - type: "+e.schema.type+"\n - value: "+t,o=e.showHelp?(0,R.getComponentDocsHtmlLink)(e.name):"";return c.default.createElement("div",{className:"row"},c.default.createElement("label",{htmlFor:this.id,className:"text",title:n},e.name,o),this.getWidget(e.schema.type))}}]),t}(c.default.Component);N.propTypes={componentname:c.default.PropTypes.string.isRequired,id:c.default.PropTypes.string,name:c.default.PropTypes.string.isRequired,schema:c.default.PropTypes.object.isRequired},t.default=N},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;nthis.props.max&&(e=this.props.max),this.setState({value:e,displayValue:e.toFixed(this.props.precision)}),this.props.onChange&&this.props.onChange(this.props.name,e))}},{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value,displayValue:e.value.toFixed(this.props.precision)})}},{key:"render",value:function(){return l.default.createElement("input",{ref:"input",className:"number",type:"text",value:this.state.displayValue,onKeyDown:this.onKeyDown,onChange:this.onChange,onMouseDown:this.onMouseDown,onFocus:this.onFocus,onBlur:this.onBlur})}}]),t}(l.default.Component);c.propTypes={componentname:l.default.PropTypes.string,entity:l.default.PropTypes.object,max:l.default.PropTypes.number,min:l.default.PropTypes.number,name:l.default.PropTypes.string,onChange:l.default.PropTypes.func,precision:l.default.PropTypes.number,step:l.default.PropTypes.number,value:l.default.PropTypes.number},c.defaultProps={min:-(1/0),max:1/0,value:0,precision:3,step:1},t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n1&&document.querySelector(e)&&document.querySelector(e).getAttribute("src")}function u(e){if(e){var t=e.toString().match(/.*\/(.+?)\./);if(t&&t.length>1)return t[1]}return""}function l(e,t,n){var o=null;switch(e){case"img":o=document.createElement("img"),o.id=t,o.src=n}o&&document.getElementsByTagName("a-assets")[0].appendChild(o)}function c(e){var t=u(e),n=document.querySelector("a-assets > img[src='"+e+"']");if(n)t=n.id;else{if(isNaN(parseInt(t[0],10))||(t="i"+t),document.getElementById(t)){for(var o=1;document.getElementById(t+"_"+o);)o++;t+="_"+o}l("img",t,e)}return t}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var n=0;n0){i.title=t;var n=i.width/e.width;a.drawImage(e,0,0,e.width*n,e.height*n)}else a.clearRect(0,0,i.width,i.height)}function n(e){var n=e.image;t(n)}function o(e){for(var t in m.default.sceneEl.systems.material.textureCache)if(JSON.parse(t).src===e)return m.default.sceneEl.systems.material.textureCache[t];return null}var r,i=this.refs.canvas,a=i.getContext("2d");r="#"===e[0]?s(e):AFRAME.utils.srcLoader.parseUrl(e);var u=o(e),l=null;if(l="#"===e[0]?"asset":"url",u)u.then(n);else if(r){var c=new Image;c.addEventListener("load",function(){t(c)},!1),c.src=r}else a.clearRect(0,0,i.width,i.height);this.setState({value:e,valueType:l,url:r})}},{key:"render",value:function(){var e="",t="";return this.state.value&&(e="asset"===this.state.valueType?"Asset ID: "+this.state.value+"\nURL: "+this.state.url:"URL: "+this.state.value,t=f.default.createElement("a",{target:"_blank",className:"button fa fa-external-link",title:"Open image in a new tab",href:this.state.url})),f.default.createElement("span",{className:"texture"},f.default.createElement("canvas",{ref:"canvas",width:"32",height:"16",title:e,onClick:this.openDialog}),f.default.createElement("input",{className:"map_value string",type:"text",title:e,value:this.state.value,onChange:this.onChange}),t,f.default.createElement("a",{onClick:this.removeMap,className:"button fa fa-times"}))}}]),t}(f.default.Component);y.propTypes={componentname:f.default.PropTypes.string,entity:f.default.PropTypes.object,mapName:f.default.PropTypes.string,name:f.default.PropTypes.string.isRequired,onChange:f.default.PropTypes.func,value:f.default.PropTypes.string},y.defaultProps={value:"",mapName:"nomap",dataURL:""},t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,p.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(t),target:this.target(t),text:this.text(t),trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}]),t}(c.default);e.exports=f})},function(e,t,n){var o,r,i;!function(a,s){r=[e,n(217)],o=s,i="function"==typeof o?o.apply(t,r):o,!(void 0!==i&&(e.exports=i))}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(t),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,n)),this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"==typeof e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function o(){r.off(e,o),t.apply(n,arguments)}var r=this;return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;for(o;o",n=c.default.createElement("div",null,c.default.createElement("a",{href:"#",title:"Copy entity HTML to clipboard","data-action":"copy-entity-to-clipboard",className:"button fa fa-clipboard",onClick:function(e){return e.stopPropagation()}}));return c.default.createElement(y.default,null,c.default.createElement("div",{className:"collapsible-header"},c.default.createElement("span",{className:"entity-name"},t),n),c.default.createElement("div",{className:"collapsible-content"},c.default.createElement("div",{className:"row"},c.default.createElement("span",{className:"text"},"ID"),c.default.createElement(p.InputWidget,{onChange:s,entity:e,name:"id",value:e.id})),this.renderCommonAttributes(),c.default.createElement(b.default,{entity:e})))}}]),t}(c.default.Component);_.propTypes={entity:c.default.PropTypes.object},t.default=_},function(e,t,n){"use strict";e.exports={BooleanWidget:n(204).default,ColorWidget:n(205).default,InputWidget:n(206).default,NumberWidget:n(207).default,SelectWidget:n(208).default,TextureWidget:n(209).default,Vec4Widget:n(210).default,Vec3Widget:n(211).default,Vec2Widget:n(212).default}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["visible","position","scale","rotation"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e=e.replace(/(^\s*)|(\s*$)/gi,""),e=e.replace(/[ ]{2,}/gi," "),e=e.replace(/\n /,"\n")}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=e.split("/").pop();return t&&(n=l(n)),n}function u(e){var t=/^[A-Za-z]+[\w\-]*$/;return t.test(e)}function l(e){return e.split(".").shift().replace(/\s/,"-").replace(/^\d+\s*/,"").replace(/[\W]/,"").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n-1||e.name.toUpperCase().indexOf(n)>-1||e.tags.indexOf(n)>-1}).map(function(e){var n=t.bind(this,e);return h.default.createElement("li",{key:e.src,onClick:n},h.default.createElement("img",{width:"155px",height:"155px",src:e.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},e.name),h.default.createElement("span",null,s(e.src)),h.default.createElement("span",null,e.width," x ",e.height)))})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.state.loadedTextures,n=this.state.preview,o=u(this.state.preview.name),r=this.isValidAsset(),i=this.state.addNewDialogOpened?"BACK":"LOAD TEXTURE";return h.default.createElement(v.default,{id:"texture-modal",title:"Textures",isOpen:e,onClose:this.onClose,closeOnClickOutside:!1},h.default.createElement("button",{onClick:this.toggleNewDialog},i),h.default.createElement("div",{className:this.state.addNewDialogOpened?"":"hide"},h.default.createElement("div",{className:"newimage"},h.default.createElement("div",{className:"new_asset_options"},h.default.createElement("span",null,"Load a new texture from one of these sources:"),h.default.createElement("ul",null,h.default.createElement("li",null,h.default.createElement("span",null,"From URL (and press Enter):")," ",h.default.createElement("input",{type:"text",className:"imageUrl",value:this.state.newUrl,onChange:this.onUrlChange,onKeyUp:this.onNewUrl})),h.default.createElement("li",null,h.default.createElement("div",{className:"uploader-normal-button"},"From a file: ",h.default.createElement("input",{type:"hidden",role:"uploadcare-uploader"}))),h.default.createElement("li",null,h.default.createElement("span",null,"From assets registry: "),h.default.createElement("div",{className:"assets search"},h.default.createElement("input",{placeholder:"Filter...",value:this.state.filterText,onChange:this.onChangeFilter}),h.default.createElement("span",{className:"fa fa-search"})),h.default.createElement("ul",{ref:"registryGallery",className:"gallery"},this.renderRegistryImages())))),h.default.createElement("div",{className:"preview"},"Name: ",h.default.createElement("input",{ref:"imageName",className:this.state.preview.name.length>0&&!o?"error":"",type:"text",value:this.state.preview.name,onChange:this.onNameChanged,onKeyUp:this.onNameKeyUp}),h.default.createElement("img",{ref:"preview",width:"155px",height:"155px",src:n.src}),this.state.preview.loaded?h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title",title:n.filename},n.filename),h.default.createElement("br",null),h.default.createElement("span",null,n.width," x ",n.height)):h.default.createElement("span",null),h.default.createElement("br",null),h.default.createElement("button",{disabled:!r,onClick:this.addNewAsset},"LOAD THIS TEXTURE")))),h.default.createElement("div",{className:this.state.addNewDialogOpened?"hide":""},h.default.createElement("ul",{className:"gallery"},this.state.assetsImages.sort(function(e,t){return e.id>t.id}).map(function(e){var t=this.selectTexture.bind(this,e),n=this.props.selectedTexture==="#"+e.id?"selected":"";return h.default.createElement("li",{key:e.id,onClick:t,className:n},h.default.createElement("a",{href:e.src,title:"Open image in a new tab",className:"button fa fa-external-link",target:"_blank"}),h.default.createElement("img",{width:"155px",height:"155px",src:e.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},e.name),h.default.createElement("span",null,s(e.src)),h.default.createElement("span",null,e.width," x ",e.height)))}.bind(this)),t.map(function(e){var t=e.image,n=this.selectTexture.bind(this,e);return h.default.createElement("li",{key:e.uuid,onClick:n},h.default.createElement("img",{width:"155px",height:"155px",src:t.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},"Name:")," ",h.default.createElement("span",null,t.name),h.default.createElement("span",{className:"title"},"Filename:")," ",h.default.createElement("span",null,s(t.src)),h.default.createElement("span",null,t.width," x ",t.height)))}))))}}]),t}(h.default.Component);x.propTypes={isOpen:h.default.PropTypes.bool,onClose:h.default.PropTypes.func,selectedTexture:h.default.PropTypes.string},t.default=x},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n'}();"   ".repeat(o),a.id?a.id:"<"+a.tagName.toLowerCase()+">";t.push({static:!0,depth:o,value:a,hasChildren:a.children.length>0,tagName:a.tagName.toLowerCase(),id:a.id,extra:s}),e(a,o)}}}}var t=[{static:!0,value:n.props.scene,tagName:"a-scene",hasChildren:!0}];e(n.props.scene),n.setState({options:t})},n.selectIndex=function(e){e>=0&&e-1||o.tagName.toUpperCase().indexOf(t)>-1)return!0;for(var r in o.components){var i=o.components[r];if(i.attrName.toUpperCase().indexOf(t)>-1)return!0;for(var a in i.attrValue){var s=i.attrValue[a].toString();if(s.toUpperCase().indexOf(t)>-1)return!0}}return!1}).map(function(t,n){var o=l.default.createElement("a",{onClick:function(){return e.cloneEntity(t.value)},title:"Clone entity",className:"button fa fa-clone"}),r=l.default.createElement("a",{onClick:function(e){e.stopPropagation(),(0,h.removeEntity)(t.value)},title:"Remove entity",className:"button fa fa-trash-o"});"A-SCENE"===t.value.tagName&&(o="",r="");var i=" ".repeat(t.depth),a=null,s=t.value,u="a-scene"==s.tagName.toLowerCase()?s.object3D.visible:s.getAttribute("visible"),c=l.default.createElement("i",{title:"Toggle entity visibility",className:"fa "+(u?"fa-eye":"fa-eye-slash"),onClick:function(n){e.toggleVisibility(t.value,n)}}),d=(0,p.default)({option:!0,active:t.value===e.state.value,novisible:!u});return l.default.createElement("div",{key:n,className:d,value:t.value,onClick:function(){return e.setValue(t.value)}},l.default.createElement("span",null,c," ",a,i," <",t.tagName,l.default.createElement("span",{className:"id"},t.id?" "+t.id:""),l.default.createElement("span",{dangerouslySetInnerHTML:{__html:t.extra}}),">"),l.default.createElement("span",{className:"icons"},o,r))})}},{key:"render",value:function(){if(!this.props.visible)return null;var e=this.state.filterText?l.default.createElement("a",{onClick:this.clearFilter,className:"button fa fa-times"}):null;return l.default.createElement("div",{id:this.props.id,className:"scenegraph"},l.default.createElement("div",{className:"scenegraph-toolbar"},l.default.createElement(v.default,null),l.default.createElement("div",{className:"search"},l.default.createElement("input",{id:"filter",placeholder:"Search...",value:this.state.filterText,onChange:this.onChangeFilter,onKeyUp:this.onFilterKeyUp}),e,l.default.createElement("span",{className:"fa fa-search"}))),l.default.createElement("div",{className:"outliner",tabIndex:"0",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp},this.renderOptions()))}}]),t}(l.default.Component);E.propTypes={onChange:l.default.PropTypes.func,scene:l.default.PropTypes.object,value:l.default.PropTypes.string,visible:l.default.PropTypes.bool},E.defaultProps={value:"",index:-1,id:"left-sidebar"},t.default=E},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;nul{margin-left:10px;padding:5px}.new_asset_options>ul>li{padding:10px 0}.new_asset_options .imageUrl{margin-left:5px;width:350px}span.entity-name{color:#fff;font-family:Consolas,Andale Mono,Monaco,Courier New,monospace;font-size:16px}.add-component{width:200px}.Select-control{background-color:#222!important;border:none;border-radius:0;color:#1faaf2}.Select-menu-outer{border:none}.Select-menu-outer .is-focused{background-color:#1faaf2!important;color:#fff}.Select-option{background-color:#222!important}.select-widget{display:inline-block;width:157px}.Select--single>.Select-control .Select-value,.Select-placeholder,.Select-value-label{color:#1faaf2!important}.row .Select-control{font-size:11px;height:24px}.row .Select--single>.Select-control .Select-value,.row .Select-placeholder{line-height:19px}.row .Select-input{height:22px}.row input.number,.row input.string,.row input[type=number],.row input[type=text]{background:#222;border:1px solid transparent;color:#1faaf2;min-height:20px;padding-left:5px;padding-right:5px}.row input.string{box-sizing:border-box;width:165px}.help-lists{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.help-list{list-style:none;margin:0;padding:0 0 10px;width:350px}.help-list li{margin-right:40px}.help-key-unit{line-height:1.8;margin-right:2em;padding:5px 0}.help-key{bottom:2px;margin-right:4px;min-width:60px;position:relative}.help-key span{background-color:#2e2e2e;background-repeat:repeat-x;border:1px solid #666;border-radius:3px;box-shadow:0 0 5px #000;color:#999;display:inline-block;font-size:12px;padding:0 8px;text-align:center}.help-key-def{color:#bbb;display:inline-block;margin-left:1em}.add-component{text-align:left}.add-component .option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.add-component .option span{color:#1faaf2}.Select-menu-outer .is-focused span{color:#fff}.add-component-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#2b2b2b;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:10px}.aregistry-button{font-size:12px;margin-left:10px;padding:8px}.aregistry-button:hover{background-color:#1faaf2}.aregistry-button img{height:20px;width:20px}.components .row .color_value{margin:0 0 0 5px;width:68px}.assets.search{margin-top:10px;width:200px}.assets.search .fa-search{top:7px}.gallery a.fa.texture-link{box-shadow:0 0 14px -1px rgba(0,0,0,.75);position:fixed}.outliner .id{color:#ccc}.outliner .option.active .id{color:#fff}.outliner .collasespace{color:#eee;display:inline-block;text-align:center;width:14px}.outliner .fa-eye{color:#bbb}.outliner .option{white-space:pre}.option span:first-child{overflow:hidden;text-overflow:ellipsis}.outliner .option.novisible .collasespace,.outliner .option.novisible .fa,.outliner .option.novisible .id,.outliner .option.novisible span{color:#575757}.outliner .option .icons a.button{color:#fff}.toggle-sidebar{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;position:absolute;z-index:9998}.toggle-sidebar.left{left:0}.toggle-sidebar.right{right:0}.toggle-sidebar a{background-color:#262626;color:#bcbcbc;padding:5px;z-index:9998}.toggle-sidebar a:hover{background-color:#1faaf2;color:#fff}",""]); },function(e,t){"use strict";!function(e,t,n,o,r,i,a){e.GoogleAnalyticsObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,i=t.createElement(n),a=t.getElementsByTagName(n)[0],i.async=1,i.src=o,a.parentNode.insertBefore(i,a)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create","UA-80530812-1","auto"),ga("send","pageview")}]); \ No newline at end of file diff --git a/package.json b/package.json index d510a179..94ddf0b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aframe-inspector", - "version": "0.5.1", + "version": "0.5.2", "description": "A visual inspector tool for A-Frame.", "main": "dist/aframe-inspector.min.js", "scripts": {