diff --git a/app/build/mojs-curve-editor.js b/app/build/mojs-curve-editor.js index eaa6060..137b9dd 100644 --- a/app/build/mojs-curve-editor.js +++ b/app/build/mojs-curve-editor.js @@ -160,7 +160,7 @@ return /******/ (function(modules) { // webpackBootstrap }, { key: '_vars', value: function _vars() { - this.revision = '1.4.5'; + this.revision = '1.4.6'; this.store = (0, _store2.default)(); this._easings = []; @@ -177,34 +177,47 @@ return /******/ (function(modules) { // webpackBootstrap value: function _render() { var _this = this; - document.addEventListener('DOMContentLoaded', function () { - (0, _preact.render)((0, _preact.h)( - _preactRedux.Provider, - { store: _this.store }, - (0, _preact.h)(_curveEditor2.default, { progressLines: _this._progressLines, - ref: function ref(el) { - _this._el = el; - } }) - ), document.body); + var doc = document; + var docState = doc.readyState; + if (docState === "complete" || docState === "loaded" || docState === "interactive") { + return this._renderApp(); + } + + doc.addEventListener('DOMContentLoaded', function () { + _this._renderApp(); }); } + }, { + key: '_renderApp', + value: function _renderApp() { + var _this2 = this; + + (0, _preact.render)((0, _preact.h)( + _preactRedux.Provider, + { store: this.store }, + (0, _preact.h)(_curveEditor2.default, { progressLines: this._progressLines, + ref: function ref(el) { + _this2._el = el; + } }) + ), document.body); + } }, { key: '_listenUnload', value: function _listenUnload() { - var _this2 = this; + var _this3 = this; var unloadEvent = 'onpagehide' in window ? 'pagehide' : 'beforeunload'; window.addEventListener(unloadEvent, function () { - if (_this2._props.isSaveState) { - var preState = (0, _extends3.default)({}, _this2.store.getState()); + if (_this3._props.isSaveState) { + var preState = (0, _extends3.default)({}, _this3.store.getState()); delete preState.points.history; delete preState.pointControls.history; preState.progressLines.lines = []; - localStorage.setItem(_this2._localStorage, (0, _stringify2.default)(preState)); + localStorage.setItem(_this3._localStorage, (0, _stringify2.default)(preState)); } else { - localStorage.removeItem(_this2._localStorage); + localStorage.removeItem(_this3._localStorage); } }); } @@ -236,7 +249,7 @@ return /******/ (function(modules) { // webpackBootstrap }, { key: '_compilePath', value: function _compilePath() { - var _this3 = this; + var _this4 = this; var state = this.store.getState(); var points = state.points.present; @@ -249,10 +262,10 @@ return /******/ (function(modules) { // webpackBootstrap clearTimeout(this._tm); this._tm = setTimeout(function () { - if (_this3._prevPath !== path) { - _this3._prevPath = path; - _this3._easing = mojs.easing.path(path); - _this3._fireOnChange(path); + if (_this4._prevPath !== path) { + _this4._prevPath = path; + _this4._easing = mojs.easing.path(path); + _this4._fireOnChange(path); } }, 40); } @@ -302,17 +315,17 @@ return /******/ (function(modules) { // webpackBootstrap }, { key: 'getEasing', value: function getEasing() { - var _this4 = this; + var _this5 = this; var o = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; // get the easing function regarding reverse options var fun = function () { - var i = _this4._easings.length; + var i = _this5._easings.length; return function (k) { - _this4._updateProgressLine(k, i, _this4._progressLines); - var transform = _this4._easings[i].options.transform; - return transform ? transform(_this4._easing(k)) : _this4._easing(k); + _this5._updateProgressLine(k, i, _this5._progressLines); + var transform = _this5._easings[i].options.transform; + return transform ? transform(_this5._easing(k)) : _this5._easing(k); }; }(); @@ -320,7 +333,7 @@ return /******/ (function(modules) { // webpackBootstrap this._easings.push({ options: o, easing: fun }); (0, _defer2.default)(function () { - _this4._fireOnChange(_this4._prevPath); + _this5._fireOnChange(_this5._prevPath); }); return fun; } diff --git a/app/build/mojs-curve-editor.min.js b/app/build/mojs-curve-editor.min.js index 004778b..efc77f1 100644 --- a/app/build/mojs-curve-editor.min.js +++ b/app/build/mojs-curve-editor.min.js @@ -1,9 +1,9 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("mojs-curve-editor",[],e):"object"==typeof exports?exports["mojs-curve-editor"]=e():t["mojs-curve-editor"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="build/",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(5),s=r(a),u=n(42),c=r(u),l=n(43),f=r(l),p=n(47),d=n(48),h=n(65),_=r(h),v=n(185),y=r(v),m=n(114),g=(r(m),n(128)),b=r(g),x=n(212),T=r(x),E=n(213),w=r(E),P=n(181),M=n(134),S=(r(M),function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(0,c["default"])(this,t),this._o=e,this._decalareDefaults(),this._extendDefaults(),this._vars(),this._render(),this._tryToRestore(),this._listenUnload(),this._subscribe()}return(0,f["default"])(t,[{key:"_decalareDefaults",value:function(){this._defaults={name:"mojs-curve-editor",isSaveState:!0}}},{key:"_extendDefaults",value:function(){this._props={};for(var t in this._defaults)this._props[t]=(0,T["default"])(this._o[t],this._defaults[t])}},{key:"_vars",value:function(){this.revision="1.4.5",this.store=(0,y["default"])(),this._easings=[],this._progressLines=[];var t=(0,T["default"])(this._o.name,this._defaults.name);t+=t===this._defaults.name?"":"__"+this._defaults.name,this._localStorage=t+"__"+(0,b["default"])(t),this.store.dispatch({type:"SET_EDITOR_NAME",data:this._localStorage})}},{key:"_render",value:function(){var t=this;document.addEventListener("DOMContentLoaded",function(){(0,d.render)((0,d.h)(p.Provider,{store:t.store},(0,d.h)(_["default"],{progressLines:t._progressLines,ref:function(e){t._el=e}})),document.body)})}},{key:"_listenUnload",value:function(){var t=this,e="onpagehide"in window?"pagehide":"beforeunload";window.addEventListener(e,function(){if(t._props.isSaveState){var e=(0,s["default"])({},t.store.getState());delete e.points.history,delete e.pointControls.history,e.progressLines.lines=[],localStorage.setItem(t._localStorage,(0,o["default"])(e))}else localStorage.removeItem(t._localStorage)})}},{key:"_tryToRestore",value:function(){var t=localStorage.getItem(this._localStorage);t?this.store.dispatch({type:"SET_STATE",data:JSON.parse(t)}):(0,P.reset)(this.store)}},{key:"_subscribe",value:function(){this._compilePath(),this.store.subscribe(this._compilePath.bind(this))}},{key:"_compilePath",value:function(){var t=this,e=this.store.getState(),n=e.points.present,r=n.path;this._easing||(this._easing=mojs.easing.path(r)),clearTimeout(this._tm),this._tm=setTimeout(function(){t._prevPath!==r&&(t._prevPath=r,t._easing=mojs.easing.path(r),t._fireOnChange(r))},40)}},{key:"_fireOnChange",value:function(t){for(var e=0;ec;)for(var p,d=s(arguments[c++]),h=l?r(d).concat(l(d)):r(d),_=h.length,v=0;_>v;)f.call(d,p=h[v++])&&(n[p]=d[p]);return n}:u},function(t,e,n){var r=n(25),i=n(38);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(26),i=n(27),o=n(31)(!1),a=n(35)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(28),i=n(30);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(27),i=n(32),o=n(34);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(33),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(33),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(36)("keys"),i=n(37);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(10),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(30);t.exports=function(t){return Object(r(t))}},function(t,e){"use strict";e.__esModule=!0,e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(44),o=r(i);e["default"]=function(){function t(t,e){for(var n=0;n does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}function s(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o, "+('or explicitly pass "store" as a prop to "'+i+'".'));var r=n.store.getState();return n.state={storeState:r},n.clearCache(),n}return p.inherits(u,o),u.prototype.shouldComponentUpdate=function(){return!y||this.haveOwnPropsChanged||this.hasStoreStateChanged},u.prototype.computeStateProps=function(t,e){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,e);var r=t.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(r,e):this.finalMapStateToProps(r);return n(i,"mapStateToProps"),i},u.prototype.configureFinalMapState=function(t,e){var r=f(t.getState(),e),i="function"==typeof r;return this.finalMapStateToProps=i?r:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(t,e):(n(r,"mapStateToProps"),r)},u.prototype.computeDispatchProps=function(t,e){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,e);var r=t.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(r,e):this.finalMapDispatchToProps(r);return n(i,"mapDispatchToProps"),i},u.prototype.configureFinalMapDispatch=function(t,e){var r=d(t.dispatch,e),i="function"==typeof r;return this.finalMapDispatchToProps=i?r:d,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(t,e):(n(r,"mapDispatchToProps"),r)},u.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!s(t,this.stateProps))&&(this.stateProps=t,!0)},u.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!s(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},u.prototype.updateMergedPropsIfNeeded=function(){var t=r(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&b&&s(t,this.mergedProps))&&(this.mergedProps=t,!0)},u.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},u.prototype.trySubscribe=function(){a&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},u.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},u.prototype.componentDidMount=function(){this.trySubscribe()},u.prototype.componentWillReceiveProps=function(t){y&&s(t,this.props)||(this.haveOwnPropsChanged=!0)},u.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},u.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},u.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!y||e!==t){if(y&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===A&&(this.statePropsPrecalculationError=A.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},u.prototype.getWrappedInstance=function(){return C(g,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},u.prototype.render=function(){var n=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,i=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,a=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var s=!0,u=!0;y&&a&&(s=r||n&&this.doStatePropsDependOnOwnProps,u=n&&this.doDispatchPropsDependOnOwnProps);var c=!1,l=!1;i?c=!0:s&&(c=this.updateStatePropsIfNeeded()),u&&(l=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(c||l||n)&&this.updateMergedPropsIfNeeded(),!f&&a?a:(g?this.renderedElement=e.h(t,p["extends"]({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=e.h(t,this.mergedProps),this.renderedElement)},u}(e.Component);return u.displayName=i,u.WrappedComponent=t,u.contextTypes={store:_},u.prototype.componentWillUpdate=function(){this.version!==x&&(this.version=x,this.trySubscribe(),this.clearCache())},S(u,t)}}var p={};p.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},p["extends"]=Object.assign||function(t){for(var e=1;e2){var d=typeof r;if(3===p&&"object"!==d&&"function"!==d)c(r)||(i=[String(r)]);else{i=[];for(var h=2;h2?o(arguments,2):t.children)}function d(t,e,n){var r=e.split("."),o=r[0];return function(e){var c,l,f,p=e&&e.currentTarget||this,d=t.state,h=d;if(s(n)?(l=i(e,n),u(l)&&(p=p._component)&&(l=i(p,n))):l=p.nodeName?(p.nodeName+p.type).match(/^input(check|rad)/i)?p.checked:p.value:e,a(l)&&(l=l.call(p)),r.length>1){for(f=0;f=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=c++,r=!(arguments.length<2)&&s.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete u[t]}}).call(e,n(49).setImmediate,n(49).clearImmediate)},function(t,e){function n(){f&&c&&(f=!1,c.length?l=c.concat(l):p=-1,l.length&&r())}function r(){if(!f){var t=a.call(null,n);f=!0;for(var e=l.length;e;){for(c=l,l=[];++p1)for(var n=1;n0?"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:u.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:i}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){for(var n=Object.keys(e),r={},s=0;s2&&(0,A.reset)(t),clearTimeout(this._tm),this._tm=setTimeout(function(){e._resetCounter=0},300)}},{key:"_subscribeFocus",value:function(){var t=this;this._createActivePool();var e=this.context.store;(0,N["default"])(this.base,function(n){var r=mojs[v["default"].ACTIVE_POOL_NAME];r&&r.resetActive(t),t._state.controls.isActive||e.dispatch({type:"SET_ACTIVE",data:!0})})}},{key:"_getPool",value:function(){return mojs[v["default"].ACTIVE_POOL_NAME]||(mojs[v["default"].ACTIVE_POOL_NAME]=new L["default"]),mojs[v["default"].ACTIVE_POOL_NAME]}},{key:"_createActivePool",value:function(){var t=this._getPool();t.add(this._setInactive.bind(this)),mojs[v["default"].ACTIVE_POOL_NAME]=t}},{key:"_setInactive",value:function(t){var e=this.context.store;t!==this&&e.dispatch({type:"SET_ACTIVE",data:!1})}}]),e}(h.Component);e["default"]=R},function(t,e,n){t.exports={"default":n(67),__esModule:!0}},function(t,e,n){n(68),t.exports=n(4).Object.getPrototypeOf},function(t,e,n){var r=n(41),i=n(69);n(70)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(26),i=n(41),o=n(35)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(9),i=n(4),o=n(19);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(72),o=r(i);e["default"]=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o["default"])(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(73),o=r(i),a=n(92),s=r(a),u="function"==typeof s["default"]&&"symbol"==typeof o["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof s["default"]&&t.constructor===s["default"]?"symbol":typeof t};e["default"]="function"==typeof s["default"]&&"symbol"===u(o["default"])?function(t){return"undefined"==typeof t?"undefined":u(t)}:function(t){return t&&"function"==typeof s["default"]&&t.constructor===s["default"]?"symbol":"undefined"==typeof t?"undefined":u(t)}},function(t,e,n){t.exports={"default":n(74),__esModule:!0}},function(t,e,n){n(75),n(87),t.exports=n(91).f("iterator")},function(t,e,n){"use strict";var r=n(76)(!0);n(77)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(33),i=n(30);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(78),i=n(9),o=n(79),a=n(13),s=n(26),u=n(80),c=n(81),l=n(85),f=n(69),p=n(86)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",_="keys",v="values",y=function(){return this};t.exports=function(t,e,n,m,g,b,x){c(n,e,m);var T,E,w,P=function(t){if(!d&&t in C)return C[t];switch(t){case _:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",S=g==v,O=!1,C=t.prototype,k=C[p]||C[h]||g&&C[g],j=k||P(g),N=g?S?P("entries"):j:void 0,A="Array"==e?C.entries||k:k;if(A&&(w=f(A.call(new t)),w!==Object.prototype&&(l(w,M,!0),r||s(w,p)||a(w,p,y))),S&&k&&k.name!==v&&(O=!0,j=function(){return k.call(this)}),r&&!x||!d&&!O&&C[p]||a(C,p,j),u[e]=j,u[M]=y,g)if(T={values:S?j:P(v),keys:b?j:P(_),entries:N},x)for(E in T)E in C||o(C,E,T[E]);else i(i.P+i.F*(d||O),e,T);return T}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(13)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(82),i=n(22),o=n(85),a={};n(13)(a,n(86)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(15),i=n(83),o=n(38),a=n(35)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n(20)("iframe"),r=o.length,i="<",a=">";for(e.style.display="none",n(84).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;r--;)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(14),i=n(15),o=n(24);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){t.exports=n(10).document&&document.documentElement},function(t,e,n){var r=n(14).f,i=n(26),o=n(86)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(36)("wks"),i=n(37),o=n(10).Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},function(t,e,n){n(88);for(var r=n(10),i=n(13),o=n(80),a=n(86)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e,n){"use strict";var r=n(89),i=n(90),o=n(80),a=n(27);t.exports=n(77)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(86)},function(t,e,n){t.exports={"default":n(93),__esModule:!0}},function(t,e,n){n(94),n(103),n(104),n(105),t.exports=n(4).Symbol},function(t,e,n){"use strict";var r=n(10),i=n(26),o=n(18),a=n(9),s=n(79),u=n(95).KEY,c=n(19),l=n(36),f=n(85),p=n(37),d=n(86),h=n(91),_=n(96),v=n(97),y=n(98),m=n(99),g=n(15),b=n(27),x=n(21),T=n(22),E=n(82),w=n(100),P=n(102),M=n(14),S=n(24),O=P.f,C=M.f,k=w.f,j=r.Symbol,N=r.JSON,A=N&&N.stringify,I="prototype",L=d("_hidden"),R=d("toPrimitive"),D={}.propertyIsEnumerable,F=l("symbol-registry"),z=l("symbols"),U=l("op-symbols"),Y=Object[I],X="function"==typeof j,V=r.QObject,W=!V||!V[I]||!V[I].findChild,B=o&&c(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=O(Y,e);r&&delete Y[e],C(t,e,n),r&&t!==Y&&C(Y,e,r)}:C,H=function(t){var e=z[t]=E(j[I]);return e._k=t,e},Z=X&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},q=function(t,e,n){return t===Y&&q(U,e,n),g(t),e=x(e,!0),g(n),i(z,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:T(0,!1)})):(i(t,L)||C(t,L,T(1,{})),t[L][e]=!0),B(t,e,n)):C(t,e,n)},G=function(t,e){g(t);for(var n,r=y(e=b(e)),i=0,o=r.length;o>i;)q(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?E(t):G(E(t),e)},K=function(t){var e=D.call(this,t=x(t,!0));return!(this===Y&&i(z,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=b(t),e=x(e,!0),t!==Y||!i(z,e)||i(U,e)){var n=O(t,e);return!n||!i(z,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=k(b(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==L||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===Y,r=k(n?U:b(t)),o=[],a=0;r.length>a;)!i(z,e=r[a++])||n&&!i(Y,e)||o.push(z[e]);return o};X||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===Y&&e.call(U,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),B(this,t,T(1,n))};return o&&W&&B(Y,t,{configurable:!0,set:e}),H(t)},s(j[I],"toString",function(){return this._k}),P.f=Q,M.f=q,n(101).f=w.f=$,n(40).f=K,n(39).f=tt,o&&!n(78)&&s(Y,"propertyIsEnumerable",K,!0),h.f=function(t){return H(d(t))}),a(a.G+a.W+a.F*!X,{Symbol:j});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var et=S(d.store),nt=0;et.length>nt;)_(et[nt++]);a(a.S+a.F*!X,"Symbol",{"for":function(t){return i(F,t+="")?F[t]:F[t]=j(t)},keyFor:function(t){if(Z(t))return v(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!X,"Object",{create:J,defineProperty:q,defineProperties:G,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),N&&a(a.S+a.F*(!X||c(function(){var t=j();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Z(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!Z(e))return e}),r[1]=e,A.apply(N,r)}}}),j[I][R]||n(13)(j[I],R,j[I].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(37)("meta"),i=n(16),o=n(26),a=n(14).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(19)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return c&&h.NEED&&u(t)&&!o(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(10),i=n(4),o=n(78),a=n(91),s=n(14).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(24),i=n(27);t.exports=function(t,e){for(var n,o=i(t),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===e)return n}},function(t,e,n){var r=n(24),i=n(39),o=n(40);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(27),i=n(101).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(25),i=n(38).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(40),i=n(22),o=n(27),a=n(21),s=n(26),u=n(17),c=Object.getOwnPropertyDescriptor;e.f=n(18)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(96)("asyncIterator")},function(t,e,n){n(96)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(107),o=r(i),a=n(111),s=r(a),u=n(72),c=r(u);e["default"]=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c["default"])(e)));t.prototype=(0,s["default"])(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o["default"]?(0,o["default"])(t,e):t.__proto__=e)}},function(t,e,n){t.exports={"default":n(108),__esModule:!0}},function(t,e,n){n(109),t.exports=n(4).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(110).set})},function(t,e,n){var r=n(16),i=n(15),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(11)(Function.call,n(102).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={"default":n(112),__esModule:!0}},function(t,e,n){n(113);var r=n(4).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(82)})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=350;e["default"]={CURVE_SIZE:n,RESIZE_NEGATIVE_OFFSET:150,CURVE_PERCENT:n/100,CURVE_PADDING:10,ACTIVE_POOL_NAME:"_mojsCurveEditorPool"}},function(t,e,n){var r;/*! Hammer.JS - v2.0.7 - 2016-04-22 +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("mojs-curve-editor",[],e):"object"==typeof exports?exports["mojs-curve-editor"]=e():t["mojs-curve-editor"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="build/",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(5),s=r(a),u=n(42),c=r(u),l=n(43),f=r(l),p=n(47),d=n(48),h=n(65),_=r(h),v=n(185),y=r(v),m=n(114),g=(r(m),n(128)),b=r(g),x=n(212),T=r(x),E=n(213),w=r(E),P=n(181),S=n(134),M=(r(S),function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(0,c["default"])(this,t),this._o=e,this._decalareDefaults(),this._extendDefaults(),this._vars(),this._render(),this._tryToRestore(),this._listenUnload(),this._subscribe()}return(0,f["default"])(t,[{key:"_decalareDefaults",value:function(){this._defaults={name:"mojs-curve-editor",isSaveState:!0}}},{key:"_extendDefaults",value:function(){this._props={};for(var t in this._defaults)this._props[t]=(0,T["default"])(this._o[t],this._defaults[t])}},{key:"_vars",value:function(){this.revision="1.4.6",this.store=(0,y["default"])(),this._easings=[],this._progressLines=[];var t=(0,T["default"])(this._o.name,this._defaults.name);t+=t===this._defaults.name?"":"__"+this._defaults.name,this._localStorage=t+"__"+(0,b["default"])(t),this.store.dispatch({type:"SET_EDITOR_NAME",data:this._localStorage})}},{key:"_render",value:function(){var t=this,e=document,n=e.readyState;return"complete"===n||"loaded"===n||"interactive"===n?this._renderApp():void e.addEventListener("DOMContentLoaded",function(){t._renderApp()})}},{key:"_renderApp",value:function(){var t=this;(0,d.render)((0,d.h)(p.Provider,{store:this.store},(0,d.h)(_["default"],{progressLines:this._progressLines,ref:function(e){t._el=e}})),document.body)}},{key:"_listenUnload",value:function(){var t=this,e="onpagehide"in window?"pagehide":"beforeunload";window.addEventListener(e,function(){if(t._props.isSaveState){var e=(0,s["default"])({},t.store.getState());delete e.points.history,delete e.pointControls.history,e.progressLines.lines=[],localStorage.setItem(t._localStorage,(0,o["default"])(e))}else localStorage.removeItem(t._localStorage)})}},{key:"_tryToRestore",value:function(){var t=localStorage.getItem(this._localStorage);t?this.store.dispatch({type:"SET_STATE",data:JSON.parse(t)}):(0,P.reset)(this.store)}},{key:"_subscribe",value:function(){this._compilePath(),this.store.subscribe(this._compilePath.bind(this))}},{key:"_compilePath",value:function(){var t=this,e=this.store.getState(),n=e.points.present,r=n.path;this._easing||(this._easing=mojs.easing.path(r)),clearTimeout(this._tm),this._tm=setTimeout(function(){t._prevPath!==r&&(t._prevPath=r,t._easing=mojs.easing.path(r),t._fireOnChange(r))},40)}},{key:"_fireOnChange",value:function(t){for(var e=0;ec;)for(var p,d=s(arguments[c++]),h=l?r(d).concat(l(d)):r(d),_=h.length,v=0;_>v;)f.call(d,p=h[v++])&&(n[p]=d[p]);return n}:u},function(t,e,n){var r=n(25),i=n(38);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(26),i=n(27),o=n(31)(!1),a=n(35)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(28),i=n(30);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(27),i=n(32),o=n(34);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(33),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(33),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(36)("keys"),i=n(37);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(10),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(30);t.exports=function(t){return Object(r(t))}},function(t,e){"use strict";e.__esModule=!0,e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(44),o=r(i);e["default"]=function(){function t(t,e){for(var n=0;n does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}function s(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o, "+('or explicitly pass "store" as a prop to "'+i+'".'));var r=n.store.getState();return n.state={storeState:r},n.clearCache(),n}return p.inherits(u,o),u.prototype.shouldComponentUpdate=function(){return!y||this.haveOwnPropsChanged||this.hasStoreStateChanged},u.prototype.computeStateProps=function(t,e){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,e);var r=t.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(r,e):this.finalMapStateToProps(r);return n(i,"mapStateToProps"),i},u.prototype.configureFinalMapState=function(t,e){var r=f(t.getState(),e),i="function"==typeof r;return this.finalMapStateToProps=i?r:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(t,e):(n(r,"mapStateToProps"),r)},u.prototype.computeDispatchProps=function(t,e){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,e);var r=t.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(r,e):this.finalMapDispatchToProps(r);return n(i,"mapDispatchToProps"),i},u.prototype.configureFinalMapDispatch=function(t,e){var r=d(t.dispatch,e),i="function"==typeof r;return this.finalMapDispatchToProps=i?r:d,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(t,e):(n(r,"mapDispatchToProps"),r)},u.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!s(t,this.stateProps))&&(this.stateProps=t,!0)},u.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!s(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},u.prototype.updateMergedPropsIfNeeded=function(){var t=r(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&b&&s(t,this.mergedProps))&&(this.mergedProps=t,!0)},u.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},u.prototype.trySubscribe=function(){a&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},u.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},u.prototype.componentDidMount=function(){this.trySubscribe()},u.prototype.componentWillReceiveProps=function(t){y&&s(t,this.props)||(this.haveOwnPropsChanged=!0)},u.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},u.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},u.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!y||e!==t){if(y&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===A&&(this.statePropsPrecalculationError=A.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},u.prototype.getWrappedInstance=function(){return C(g,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},u.prototype.render=function(){var n=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,i=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,a=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var s=!0,u=!0;y&&a&&(s=r||n&&this.doStatePropsDependOnOwnProps,u=n&&this.doDispatchPropsDependOnOwnProps);var c=!1,l=!1;i?c=!0:s&&(c=this.updateStatePropsIfNeeded()),u&&(l=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(c||l||n)&&this.updateMergedPropsIfNeeded(),!f&&a?a:(g?this.renderedElement=e.h(t,p["extends"]({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=e.h(t,this.mergedProps),this.renderedElement)},u}(e.Component);return u.displayName=i,u.WrappedComponent=t,u.contextTypes={store:_},u.prototype.componentWillUpdate=function(){this.version!==x&&(this.version=x,this.trySubscribe(),this.clearCache())},M(u,t)}}var p={};p.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},p["extends"]=Object.assign||function(t){for(var e=1;e2){var d=typeof r;if(3===p&&"object"!==d&&"function"!==d)c(r)||(i=[String(r)]);else{i=[];for(var h=2;h2?o(arguments,2):t.children)}function d(t,e,n){var r=e.split("."),o=r[0];return function(e){var c,l,f,p=e&&e.currentTarget||this,d=t.state,h=d;if(s(n)?(l=i(e,n),u(l)&&(p=p._component)&&(l=i(p,n))):l=p.nodeName?(p.nodeName+p.type).match(/^input(check|rad)/i)?p.checked:p.value:e,a(l)&&(l=l.call(p)),r.length>1){for(f=0;f=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=c++,r=!(arguments.length<2)&&s.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete u[t]}}).call(e,n(49).setImmediate,n(49).clearImmediate)},function(t,e){function n(){f&&c&&(f=!1,c.length?l=c.concat(l):p=-1,l.length&&r())}function r(){if(!f){var t=a.call(null,n);f=!0;for(var e=l.length;e;){for(c=l,l=[];++p1)for(var n=1;n0?"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:u.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:i}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){for(var n=Object.keys(e),r={},s=0;s2&&(0,A.reset)(t),clearTimeout(this._tm),this._tm=setTimeout(function(){e._resetCounter=0},300)}},{key:"_subscribeFocus",value:function(){var t=this;this._createActivePool();var e=this.context.store;(0,N["default"])(this.base,function(n){var r=mojs[v["default"].ACTIVE_POOL_NAME];r&&r.resetActive(t),t._state.controls.isActive||e.dispatch({type:"SET_ACTIVE",data:!0})})}},{key:"_getPool",value:function(){return mojs[v["default"].ACTIVE_POOL_NAME]||(mojs[v["default"].ACTIVE_POOL_NAME]=new L["default"]),mojs[v["default"].ACTIVE_POOL_NAME]}},{key:"_createActivePool",value:function(){var t=this._getPool();t.add(this._setInactive.bind(this)),mojs[v["default"].ACTIVE_POOL_NAME]=t}},{key:"_setInactive",value:function(t){var e=this.context.store;t!==this&&e.dispatch({type:"SET_ACTIVE",data:!1})}}]),e}(h.Component);e["default"]=R},function(t,e,n){t.exports={"default":n(67),__esModule:!0}},function(t,e,n){n(68),t.exports=n(4).Object.getPrototypeOf},function(t,e,n){var r=n(41),i=n(69);n(70)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(26),i=n(41),o=n(35)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(9),i=n(4),o=n(19);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(72),o=r(i);e["default"]=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o["default"])(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(73),o=r(i),a=n(92),s=r(a),u="function"==typeof s["default"]&&"symbol"==typeof o["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof s["default"]&&t.constructor===s["default"]?"symbol":typeof t};e["default"]="function"==typeof s["default"]&&"symbol"===u(o["default"])?function(t){return"undefined"==typeof t?"undefined":u(t)}:function(t){return t&&"function"==typeof s["default"]&&t.constructor===s["default"]?"symbol":"undefined"==typeof t?"undefined":u(t)}},function(t,e,n){t.exports={"default":n(74),__esModule:!0}},function(t,e,n){n(75),n(87),t.exports=n(91).f("iterator")},function(t,e,n){"use strict";var r=n(76)(!0);n(77)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(33),i=n(30);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(78),i=n(9),o=n(79),a=n(13),s=n(26),u=n(80),c=n(81),l=n(85),f=n(69),p=n(86)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",_="keys",v="values",y=function(){return this};t.exports=function(t,e,n,m,g,b,x){c(n,e,m);var T,E,w,P=function(t){if(!d&&t in C)return C[t];switch(t){case _:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",M=g==v,O=!1,C=t.prototype,k=C[p]||C[h]||g&&C[g],j=k||P(g),N=g?M?P("entries"):j:void 0,A="Array"==e?C.entries||k:k;if(A&&(w=f(A.call(new t)),w!==Object.prototype&&(l(w,S,!0),r||s(w,p)||a(w,p,y))),M&&k&&k.name!==v&&(O=!0,j=function(){return k.call(this)}),r&&!x||!d&&!O&&C[p]||a(C,p,j),u[e]=j,u[S]=y,g)if(T={values:M?j:P(v),keys:b?j:P(_),entries:N},x)for(E in T)E in C||o(C,E,T[E]);else i(i.P+i.F*(d||O),e,T);return T}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(13)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(82),i=n(22),o=n(85),a={};n(13)(a,n(86)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(15),i=n(83),o=n(38),a=n(35)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n(20)("iframe"),r=o.length,i="<",a=">";for(e.style.display="none",n(84).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;r--;)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(14),i=n(15),o=n(24);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){t.exports=n(10).document&&document.documentElement},function(t,e,n){var r=n(14).f,i=n(26),o=n(86)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(36)("wks"),i=n(37),o=n(10).Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},function(t,e,n){n(88);for(var r=n(10),i=n(13),o=n(80),a=n(86)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e,n){"use strict";var r=n(89),i=n(90),o=n(80),a=n(27);t.exports=n(77)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(86)},function(t,e,n){t.exports={"default":n(93),__esModule:!0}},function(t,e,n){n(94),n(103),n(104),n(105),t.exports=n(4).Symbol},function(t,e,n){"use strict";var r=n(10),i=n(26),o=n(18),a=n(9),s=n(79),u=n(95).KEY,c=n(19),l=n(36),f=n(85),p=n(37),d=n(86),h=n(91),_=n(96),v=n(97),y=n(98),m=n(99),g=n(15),b=n(27),x=n(21),T=n(22),E=n(82),w=n(100),P=n(102),S=n(14),M=n(24),O=P.f,C=S.f,k=w.f,j=r.Symbol,N=r.JSON,A=N&&N.stringify,I="prototype",L=d("_hidden"),R=d("toPrimitive"),D={}.propertyIsEnumerable,F=l("symbol-registry"),z=l("symbols"),U=l("op-symbols"),Y=Object[I],X="function"==typeof j,V=r.QObject,W=!V||!V[I]||!V[I].findChild,B=o&&c(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=O(Y,e);r&&delete Y[e],C(t,e,n),r&&t!==Y&&C(Y,e,r)}:C,H=function(t){var e=z[t]=E(j[I]);return e._k=t,e},Z=X&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},q=function(t,e,n){return t===Y&&q(U,e,n),g(t),e=x(e,!0),g(n),i(z,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:T(0,!1)})):(i(t,L)||C(t,L,T(1,{})),t[L][e]=!0),B(t,e,n)):C(t,e,n)},G=function(t,e){g(t);for(var n,r=y(e=b(e)),i=0,o=r.length;o>i;)q(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?E(t):G(E(t),e)},K=function(t){var e=D.call(this,t=x(t,!0));return!(this===Y&&i(z,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=b(t),e=x(e,!0),t!==Y||!i(z,e)||i(U,e)){var n=O(t,e);return!n||!i(z,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=k(b(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==L||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===Y,r=k(n?U:b(t)),o=[],a=0;r.length>a;)!i(z,e=r[a++])||n&&!i(Y,e)||o.push(z[e]);return o};X||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===Y&&e.call(U,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),B(this,t,T(1,n))};return o&&W&&B(Y,t,{configurable:!0,set:e}),H(t)},s(j[I],"toString",function(){return this._k}),P.f=Q,S.f=q,n(101).f=w.f=$,n(40).f=K,n(39).f=tt,o&&!n(78)&&s(Y,"propertyIsEnumerable",K,!0),h.f=function(t){return H(d(t))}),a(a.G+a.W+a.F*!X,{Symbol:j});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var et=M(d.store),nt=0;et.length>nt;)_(et[nt++]);a(a.S+a.F*!X,"Symbol",{"for":function(t){return i(F,t+="")?F[t]:F[t]=j(t)},keyFor:function(t){if(Z(t))return v(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!X,"Object",{create:J,defineProperty:q,defineProperties:G,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),N&&a(a.S+a.F*(!X||c(function(){var t=j();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Z(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!Z(e))return e}),r[1]=e,A.apply(N,r)}}}),j[I][R]||n(13)(j[I],R,j[I].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(37)("meta"),i=n(16),o=n(26),a=n(14).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(19)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return c&&h.NEED&&u(t)&&!o(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(10),i=n(4),o=n(78),a=n(91),s=n(14).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(24),i=n(27);t.exports=function(t,e){for(var n,o=i(t),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===e)return n}},function(t,e,n){var r=n(24),i=n(39),o=n(40);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(27),i=n(101).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(25),i=n(38).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(40),i=n(22),o=n(27),a=n(21),s=n(26),u=n(17),c=Object.getOwnPropertyDescriptor;e.f=n(18)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(96)("asyncIterator")},function(t,e,n){n(96)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(107),o=r(i),a=n(111),s=r(a),u=n(72),c=r(u);e["default"]=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c["default"])(e)));t.prototype=(0,s["default"])(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o["default"]?(0,o["default"])(t,e):t.__proto__=e)}},function(t,e,n){t.exports={"default":n(108),__esModule:!0}},function(t,e,n){n(109),t.exports=n(4).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(110).set})},function(t,e,n){var r=n(16),i=n(15),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(11)(Function.call,n(102).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={"default":n(112),__esModule:!0}},function(t,e,n){n(113);var r=n(4).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(82)})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=350;e["default"]={CURVE_SIZE:n,RESIZE_NEGATIVE_OFFSET:150,CURVE_PERCENT:n/100,CURVE_PADDING:10,ACTIVE_POOL_NAME:"_mojsCurveEditorPool"}},function(t,e,n){var r;/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ -!function(i,o,a,s){"use strict";function u(t,e,n){return setTimeout(d(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(l(t,n[e],n),!0)}function l(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}function p(t,e,n){var r,i=e.prototype;r=t.prototype=Object.create(i),r.constructor=t,r._super=i,n&&_t(r,n)}function d(t,e){return function(){return t.apply(e,arguments)}}function h(t,e){return typeof t==mt?t.apply(e?e[0]||s:s,e):t}function _(t,e){return t===s?e:t}function v(t,e,n){l(b(e),function(e){t.addEventListener(e,n,!1)})}function y(t,e,n){l(b(e),function(e){t.removeEventListener(e,n,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function x(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]}):r.sort()),r}function w(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=A(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=I(r);e.timeStamp=xt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=F(s,u),e.distance=D(s,u),j(n,e),e.offsetDirection=R(e.deltaX,e.deltaY);var c=L(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=bt(c.x)>bt(c.y)?c.x:c.y,e.scale=a?U(a.pointers,r):1,e.rotation=a?z(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,N(n,e);var l=t.element;m(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function j(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==It&&o.eventType!==Rt||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function N(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=Dt&&(u>At||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,f=L(u,c,l);r=f.x,i=f.y,n=bt(f.x)>bt(f.y)?f.x:f.y,o=R(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function A(t){for(var e=[],n=0;n=bt(e)?t<0?zt:Ut:e<0?Yt:Xt}function D(t,e,n){n||(n=Ht);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function F(t,e,n){n||(n=Ht);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function z(t,e){return F(e[1],e[0],Zt)+F(t[1],t[0],Zt)}function U(t,e){return D(e[0],e[1],Zt)/D(t[0],t[1],Zt)}function Y(){this.evEl=Gt,this.evWin=Jt,this.pressed=!1,S.apply(this,arguments)}function X(){this.evEl=$t,this.evWin=te,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget=ne,this.evWin=re,this.started=!1,S.apply(this,arguments)}function W(t,e){var n=T(t.touches),r=T(t.changedTouches);return e&(Rt|Dt)&&(n=E(n.concat(r),"identifier",!0)),[n,r]}function B(){this.evTarget=oe,this.targetIds={},S.apply(this,arguments)}function H(t,e){var n=T(t.touches),r=this.targetIds;if(e&(It|Lt)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=T(t.changedTouches),s=[],u=this.target;if(o=n.filter(function(t){return m(t.target,u)}),e===It)for(i=0;i-1&&r.splice(t,1)};setTimeout(i,ae)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;r=be&&e(n.options.event+et(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Ee)},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&me||!(this.state&me)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(at,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[de]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&me)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(st,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||t.eventType&(Rt|Dt)&&!i)this.reset();else if(t.eventType&It)this.reset(),this._timer=u(function(){this.state=xe,this.tryEmit()},e.time,this);else if(t.eventType&Rt)return xe;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===xe&&(t&&t.eventType&Rt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=xt(),this.manager.emit(this.options.event,this._input)))}}),p(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[de]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&me)}}),p(ct,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Vt|Wt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Vt|Wt)?e=t.overallVelocity:n&Vt?e=t.overallVelocityX:n&Wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Rt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(lt,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance0?c._handlers[t]=r:(n.off(t,o),delete c._handlers[t]))}),c},c.emit=function(e,r){t=t||r.target,n.emit(e,r)},c.destroy=function(){var t=n.element.hammer,e=t.indexOf(c);e!==-1&&t.splice(e,1),t.length||delete n.element.hammer,c._handlers={},n.destroy()},c}})},function(t,e){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=i;return void 0===s?{past:[],present:e,future:[]}:{past:[].concat(n(o.slice(u?1:0)),[s]),present:e,future:[]}}function u(t){r("undo",{history:t});var e=t.past,i=t.present,o=t.future;return e.length<=0?t:{past:e.slice(0,e.length-1),present:e[e.length-1],future:[i].concat(n(o))}}function c(t){r("redo",{history:t});var e=t.past,i=t.present,o=t.future;return o.length<=0?t:{future:o.slice(1,o.length),present:o[0],past:[].concat(n(e),[i])}}function l(t,e){if(0===e)return c(t);var n=t.past,r=t.present,i=t.future;return{future:i.slice(e+1),present:i[e],past:n.concat([r]).concat(i.slice(0,e))}}function f(t,e){if(e===t.past.length-1)return u(t);var n=t.past,r=t.present,i=t.future;return{future:n.slice(e+1).concat([r]).concat(i),present:n[e],past:n.slice(0,e)}}function p(t){return x({},t,{history:t})}function d(t,e){return p(x({},t,e))}function h(t){return{past:[],present:t,future:[]}}function _(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return Array.isArray(t)?t:"string"==typeof t?[t]:e}function v(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];T=e.debug;var n={initialState:e.initialState,initTypes:_(e.initTypes,["@@redux/INIT","@@INIT"]),limit:e.limit,filter:e.filter||function(){return!0},undoType:e.undoType||E.UNDO,redoType:e.redoType||E.REDO,jumpToPastType:e.jumpToPastType||E.JUMP_TO_PAST,jumpToFutureType:e.jumpToFutureType||E.JUMP_TO_FUTURE};return n.history=e.initialHistory||h(n.initialState),0===n.initTypes.length&&console.warn("redux-undo: supply at least one action type in initTypes to ensure initial state"),function(e,_){i(_,e);var v=void 0;switch(_.type){case n.undoType:return v=u(e),r("after undo",v),o(),v?d(e,v):e;case n.redoType:return v=c(e),r("after redo",v),o(),v?d(e,v):e;case n.jumpToPastType:return v=f(e,_.index),r("after jumpToPast",v),o(),v?d(e,v):e;case n.jumpToFutureType:return v=l(e,_.index),r("after jumpToFuture",v),o(),v?d(e,v):e;default:if(v=t(e&&e.present,_),n.initTypes.some(function(t){return t===_.type}))return r("reset history due to init action"),o(),p(x({},e,h(v)));if(n.filter&&"function"==typeof n.filter&&!n.filter(_,v,e&&e.present))return r("filter prevented action, not storing it"),o(),p(x({},e,{present:v}));var y=e&&void 0!==e.present?e:n.history,m=s(y,v,n.limit);return r("after insert",{history:m,free:n.limit-a(m)}),o(),p(x({},e,m))}}}function y(){return function(t,e,n){return e!==n}}function m(t){var e=_(t);return function(t){return e.indexOf(t.type)>=0}}function g(t){return console.error("Deprecation Warning: Please change `ifAction` to `includeAction`"),m(t)}function b(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=_(t);return function(t){return e.indexOf(t.type)<0}}Object.defineProperty(e,"__esModule",{value:!0});var x=Object.assign||function(t){for(var e=1;e=0;i--){var o=n[i];r.push((0,h.h)(y["default"],o))}return r}},{key:"_updateDomProgressLines",value:function(){var t=this.props.progressLines;t.length=0;for(var e=this.base.querySelectorAll('[data-component="progress-line"]'),n=0;n-1}},{key:"componentDidMount",value:function(){var t=this;this._updateDomProgressLines();var e=this.context.store,n=this.base.querySelector("#js-segments"),r=(0,k["default"])(new O["default"].Manager(n));r.add(new O["default"].Tap),r.on("tap",function(n){var r=t.props.state,i=n.srcEvent,o=i.target;if("path"===o.tagName.toLowerCase()){var a=i.offsetX,s=i.offsetY,u=parseInt(o.getAttribute("data-index"))+1;t._isFirefox?(s*=M["default"].CURVE_PERCENT,a-=1,s-=1):a/=r.resize.scalerX,t._isFirefox,e.dispatch({type:"POINT_ADD",data:{point:{x:a,y:s},index:u},isRecord:!0}),e.dispatch({type:"POINT_SELECT",data:{index:u,type:"straight"}}),n.stopPropagation()}});var i=(this.base.querySelector("#js-svg"),(0,k["default"])(new O["default"].Manager(this.base)));i.add(new O["default"].Tap),i.add(new O["default"].Pan),i.on("tap",function(t){e.dispatch({type:"POINT_DESELECT_ALL"})}).on("pan",function(t){e.dispatch({type:"EDITOR_PAN",data:t.deltaY})}).on("panend",function(t){e.dispatch({type:"EDITOR_PAN_END",data:t.deltaY})})}}]),e}(h.Component);e["default"]=N},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){return mojs.h.getRadialPoint({angle:t,radius:e,center:{x:0,y:0}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48);n(122);var _=n(126),v=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props,e={backgroundColor:t.color};return(0,h.h)("div",{className:_["progress-line"],style:e,"data-component":"progress-line"})}}]),e}(h.Component);e["default"]=v},function(t,e,n){var r=n(123);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._progress-line_1j4pp_3{position:absolute;top:0;bottom:0;width:1px;margin-left:-1.5px}",""]); -},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function c(t,e){var n,r,i;if(e.singleton){var o=m++;n=y||(y=s(e)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=f.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function l(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var d={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},_=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,g=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=_()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a100?100-i.x:(0,T["default"])(i.x+o,5,1.5)-i.x},r=function(e){var n=t.props.state.resize,r=t.props,i=r.point,o=(r.index,i.y+e.deltaY),a=o;return oC["default"].CURVE_SIZE+n.bottom-n.panY&&(a=C["default"].CURVE_SIZE+n.bottom-n.panY),(0,T["default"])(a,5*C["default"].CURVE_PERCENT,2*C["default"].CURVE_PERCENT)-i.y},i=this.base.querySelector("#js-point-touch"),o=(0,b["default"])(new w["default"].Manager(i));o.add(new w["default"].Pan({threshold:0})),o.on("pan",function(i){var o=t.props,a=(o.point,o.index);e.dispatch({type:"POINT_TRANSLATE",data:{x:n(i),y:r(i),index:a}}),i.stopPropagation()}).on("panend",function(n){var r=t.props,i=(r.point,r.index);e.dispatch({type:"POINT_TRANSLATE_END",data:i,isRecord:!0}),n.stopPropagation()}).on("tap",function(t){t.stopPropagation()}),(0,v["default"])(i,function(n){var r=t.props,i=r.point,o=r.index;e.dispatch({type:"POINT_SELECT",data:{index:o,isDeselect:!n.shiftKey,type:i.type}})})}}]),e}(h.Component);e["default"]=j},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){window.navigator.msPointerEnabled?t.addEventListener("MSPointerDown",e):void 0!==window.ontouchstart?(t.addEventListener("touchstart",e),t.addEventListener("mousedown",e)):t.addEventListener("mousedown",e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(66),s=r(a),u=n(42),c=r(u),l=n(43),f=r(l),p=n(71),d=r(p),h=n(106),_=r(h),v=n(48),y=n(120),m=r(y),g=n(136),b=r(g),x=n(114),T=(r(x),n(137)),E=r(T),w=n(115),P=r(w),M=n(116),S=r(M);n(138);var O=n(140),C=function(t){function e(){return(0,c["default"])(this,e),(0,d["default"])(this,(0,s["default"])(e).apply(this,arguments))}return(0,_["default"])(e,t),(0,f["default"])(e,[{key:"render",value:function(){return(0,v.h)("div",{className:O["little-handle"],"data-component":"little-handle"},(0,v.h)("div",{"class":O["little-handle__point"],style:this._getPointStyle()},(0,v.h)("div",{className:O["little-handle__easy-touch"]})),(0,v.h)("div",{"class":O["little-handle__line"],style:this._getLineStyle()}))}},{key:"componentDidMount",value:function(){var t=this,e=this.context.store,n=(0,S["default"])(new P["default"].Manager(this.base)),r=this.props.handle;n.add(new P["default"].Pan({threshold:0})),n.on("panstart",function(e){r=t.props.handle}).on("pan",function(n){var i=t.props,a=i.index,s=i.parentIndex,u=i.state,c=(0,m["default"])(r.angle,r.radius),l=c.y+n.deltaY,f=u.resize,p=c.x+n.deltaX/f.absScalerX,d=(0,b["default"])(p,l);if(e.dispatch({type:"HANDLE_TRANSLATE",data:(0,o["default"])({index:a,parentIndex:s},d)}),"mirrored"===t.props.type){var h=1===a?2:1;e.dispatch({type:"HANDLE_TRANSLATE",data:{index:h,parentIndex:s,radius:d.radius,angle:d.angle-180}})}if("asymmetric"===t.props.type){var _=1===a?2:1;e.dispatch({type:"HANDLE_TRANSLATE",data:{index:_,parentIndex:s,radius:r.radius,angle:d.angle-180}})}n.stopPropagation()}).on("panend",function(t){e.dispatch({type:"HANDLE_TRANSLATE_END",isRecord:!0}),E["default"].clear(),t.stopPropagation()})}},{key:"_getPointStyle",value:function(){var t=this.props,e=t.handle,n=t.state,r=n.resize,i=(0,m["default"])(e.angle,e.radius),o="transform: translate("+i.x*r.absScalerX+"px, "+i.y+"px) rotate("+e.angle+"deg)";return""+mojs.h.prefix.css+o+"; "+o}},{key:"_getLineStyle",value:function(){var t=this.props,e=t.handle,n=t.state,r=n.resize,i=(0,m["default"])(e.angle,e.radius),o=(0,b["default"])(i.x*r.absScalerX,i.y),a="transform: rotate("+o.angle+"deg) scaleY("+o.radius+")";return""+mojs.h.prefix.css+a+"; "+a}}]),e}(v.Component);e["default"]=C},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){var n=Math.sqrt(t*t+e*e),r=Math.atan(e/t)*(180/Math.PI)-90;return t>0&&(r-=180),{radius:n,angle:r}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(42),o=r(i),a=n(43),s=r(a),u=function(){function t(){(0,o["default"])(this,t),this._states=[]}return(0,s["default"])(t,[{key:"push",value:function(t){return this}},{key:"clear",value:function(){return this._states=[],this}}]),t}();e["default"]=new u},function(t,e,n){var r=n(139);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._little-handle_x1mg1_3{position:absolute;left:50%;top:50%;width:0;height:0}._little-handle__point_x1mg1_1{position:absolute;z-index:1;width:6px;height:6px;left:50%;top:50%;margin-left:-3px;margin-top:-3px;background:#ff512f;box-shadow:1px 1px 0 rgba(0,0,0,.5)}._little-handle__easy-touch_x1mg1_1{position:absolute;z-index:1;width:200%;height:200%;left:50%;top:50%;margin-left:-100%;margin-top:-100%}._little-handle__line_x1mg1_1{position:absolute;width:1px;height:1px;margin-left:-1px;margin-top:-1px;left:50%;top:50%;background:#ff512f;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}",""])},function(t,e){t.exports={"little-handle":"_little-handle_x1mg1_3","little-handle__point":"_little-handle__point_x1mg1_1","little-handle__easy-touch":"_little-handle__easy-touch_x1mg1_1","little-handle__line":"_little-handle__line_x1mg1_1"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e,n){var r=Math.round(t/e)*e;return Math.abs(t-r)n?n:t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(114),o=r(i),a=o["default"].CURVE_SIZE,s=function(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],n=Math.abs(t%a),r=parseInt(t/a),i=15;return na-i&&(t=(r+1*e)*a),t};e["default"]=s},function(t,e,n){var r=n(145);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._point_14jnp_5{position:absolute;width:10px;height:10px;margin-left:-5px;margin-top:-5px;cursor:move;background:#fff;border-radius:50%;z-index:3;box-shadow:3px 3px 0 rgba(0,0,0,.5)}._point_14jnp_5 [data-component=little-handle]{display:none}._point__touch_14jnp_1{position:absolute;left:50%;top:50%;width:20px;height:20px;margin-left:-10px;margin-top:-10px}._point_14jnp_5._is-selected_14jnp_31,._point_14jnp_5:hover{background:#ff512f}._point_14jnp_5._is-selected_14jnp_31 [data-component=little-handle]{display:block}._point_14jnp_5._is-hide-handles_14jnp_43 [data-component=little-handle]{display:none}",""])},function(t,e){t.exports={point:"_point_14jnp_5",point__touch:"_point__touch_14jnp_1","is-selected":"_is-selected_14jnp_31","is-hide-handles":"_is-hide-handles_14jnp_43"}},function(t,e,n){var r=n(148);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._curve_1k7gs_5{position:absolute;left:0;top:10px;right:10px;bottom:10px;border-radius:2px;background:rgba(58,8,58,.75);border:1px solid #9c829a;box-shadow:inset 4px 4px 0 rgba(0,0,0,.5);z-index:2;overflow:hidden}._curve__background_1k7gs_1{position:absolute;z-index:0;top:0;bottom:0;width:350px;left:0;opacity:.5;border-radius:inherit}._curve__background_1k7gs_1 svg{width:100%}._curve__background_1k7gs_1 path{vector-effect:non-scaling-stroke}._curve__svg-wrapper_1k7gs_1{position:absolute;z-index:1;left:-1px;right:-1px}._curve__svg_1k7gs_1{display:block;overflow:visible;width:100%;position:relative;z-index:1}._curve__svg-segment_1k7gs_1{stroke:#fff;stroke-width:2px;cursor:crosshair}._curve__svg-segment_1k7gs_1:hover{stroke:#ff512f}",""])},function(t,e){t.exports={curve:"_curve_1k7gs_5",curve__background:"_curve__background_1k7gs_1","curve__svg-wrapper":"_curve__svg-wrapper_1k7gs_1",curve__svg:"_curve__svg_1k7gs_1","curve__svg-segment":"_curve__svg-segment_1k7gs_1"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(66),s=r(a),u=n(42),c=r(u),l=n(43),f=r(l),p=n(71),d=r(p),h=n(106),_=r(h),v=n(48),y=n(151),m=r(y),g=n(115),b=r(g),x=n(116),T=r(x),E=n(155),w=r(E),P=n(156);n(157);var M=function(t){function e(){return(0,c["default"])(this,e),(0,d["default"])(this,(0,s["default"])(e).apply(this,arguments))}return(0,_["default"])(e,t),(0,f["default"])(e,[{key:"render",value:function(){var t=this.props.type,e=""+P["resize-handle"],n=""+P["resize-handle--"+t];return(0,v.h)("div",{className:e+" "+n+" "+this.props.className,"data-type":t,"data-component":"resize-handle"},(0,v.h)(m["default"],{shape:"ellipsis"}))}},{key:"componentDidMount",value:function(){var t=this,e=this.props.type,n=this.context.store,r=(0,T["default"])(new b["default"].Manager(this.base));r.add(new b["default"].Pan({threshold:0})),r.on("pan",function(r){n.dispatch({type:"EDITOR_RESIZE",data:(0,o["default"])({},(0,w["default"])(r.deltaX,r.deltaY,e,t.props.state))}),r.stopPropagation()}).on("panend",function(r){n.dispatch({type:"EDITOR_RESIZE_END",data:(0,o["default"])({},(0,w["default"])(r.deltaX,r.deltaY,e,t.props.state))}),r.stopPropagation()})}}]),e}(v.Component);e["default"]=M},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(152);n(153);var v=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props.shape,e='';return(0,h.h)("div",{className:_.icon,"data-component":"icon",dangerouslySetInnerHTML:{__html:e}})}}]),e}(h.Component);e["default"]=v},function(t,e){t.exports={icon:"_icon_4a8lf_5"}},function(t,e,n){var r=n(154);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._icon_4a8lf_5{position:relative;width:32px;height:32px;cursor:pointer;fill:#fff;display:block}._icon_4a8lf_5>svg{position:absolute;left:0;top:0;width:100%;height:100%;fill:inherit}._icon_4a8lf_5>svg>use{fill:inherit}._icon_4a8lf_5:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;z-index:1}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(143),o=r(i),a=n(114);r(a);e["default"]=function(t,e,n,r){var i=r.resize;if("right"!==n){var a=i[n]+e,s="top"===n?-1:1;e=(0,o["default"])(a,s),e-=i[n];var u=0;a*s<-u&&(e=-i[n]-u)}else i[n]+t<0&&(t=-i[n]);return{x:t,y:e,type:n,resize:i}}},function(t,e){t.exports={"resize-handle":"_resize-handle_1uncf_4","resize-handle--right":"_resize-handle--right_1uncf_1","resize-handle--bottom":"_resize-handle--bottom_1uncf_1"}},function(t,e,n){var r=n(158);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._resize-handle_1uncf_4{background:#3d1b3c;width:32px;height:16px;display:block;cursor:n-resize;overflow:hidden;position:relative;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;box-shadow:inset 0 0 0 1px #572b51}._resize-handle_1uncf_4:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;z-index:2}._resize-handle_1uncf_4 [data-component=icon]{position:absolute;left:0;top:-7px}._resize-handle_1uncf_4:hover{opacity:.85}._resize-handle--right_1uncf_1{-webkit-transform:rotate(90deg);transform:rotate(90deg);cursor:e-resize}._resize-handle--bottom_1uncf_1{-webkit-transform:rotate(180deg);transform:rotate(180deg);cursor:s-resize}",""])},function(t,e){t.exports={"curve-editor":"_curve-editor_12556_3","curve-editor__left":"_curve-editor__left_12556_1","curve-editor__right":"_curve-editor__right_12556_140","curve-editor__resize-handle":"_curve-editor__resize-handle_12556_1","curve-editor__anchor-buttons":"_curve-editor__anchor-buttons_12556_135","curve-editor__mojs-logo":"_curve-editor__mojs-logo_12556_118","is-inactive":"_is-inactive_12556_117","is-minimized":"_is-minimized_12556_125","curve__svg-wrapper":"_curve__svg-wrapper_12556_144"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(48),o=n(151),a=r(o),s=n(161),u=r(s),c=n(166),l=r(c),f=n(167),p=r(f),d=n(168),h=r(d),_=n(172),v=r(_),y=n(159),m=function(t){var e=t.state;return(0,i.h)("div",{className:y["curve-editor__left"],id:"js-left-panel"},(0,i.h)(l["default"],{state:e}),(0,i.h)(p["default"],{state:e}),(0,i.h)(u["default"],{state:e}),(0,i.h)(h["default"],null),(0,i.h)(v["default"],{state:e,className:y["curve-editor__anchor-buttons"]}),(0,i.h)("a",{className:y["curve-editor__mojs-logo"],href:"https://github.com/legomushroom/mojs-curve-editor",target:"_blank"},(0,i.h)(a["default"],{shape:"mojs-logo"})))};e["default"]=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_),y=n(116),m=r(y),g=n(115),b=r(g),x=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props.state;return(0,h.h)("div",{"data-component":"code-button",title:"get code"},(0,h.h)(v["default"],{shape:"code",isCheck:t.controls.isCode}))}},{key:"componentDidMount",value:function(){var t=this.context.store,e=(0,m["default"])(new b["default"].Manager(this.base));e.add(new b["default"].Tap),e.on("tap",function(e){t.dispatch({type:"CODE_TAP"})})}}]),e}(h.Component);e["default"]=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(115),_=r(h),v=n(48),y=n(151),m=r(y);n(163);var g=n(165),b=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props,e=t.isCheck?g["is-checked"]:"";return(0,v.h)("div",{className:g["icon-button"]+" "+e,title:t.title||"","data-component":"icon-button"},(0,v.h)(m["default"],{shape:this.props.shape}))}},{key:"componentDidMount",value:function(){var t=this;if("function"==typeof this.props.onTap){new _["default"](this.base).on("tap",function(e){t.props.onTap(e,t.props)})}}}]),e}(v.Component);e["default"]=b},function(t,e,n){var r=n(164);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._icon-button_6ysdi_4{position:relative;width:24px;height:24px;display:block;background:#3a0839;border-radius:3px;box-shadow:1px 1px 0 rgba(0,0,0,.15)}._icon-button_6ysdi_4 [data-component=icon]{position:absolute;left:50%;top:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}._icon-button_6ysdi_4:hover{box-shadow:none}._icon-button_6ysdi_4:hover [data-component=icon]{-webkit-transform:translate(-52%,-52%);transform:translate(-52%,-52%)}._icon-button_6ysdi_4._is-checked_6ysdi_31,._icon-button_6ysdi_4:active{border-radius:3px;box-shadow:inset -1px -1px 0 hsla(0,0%,100%,.25),inset 1px 1px 1px rgba(0,0,0,.4)}._icon-button_6ysdi_4._is-checked_6ysdi_31 [data-component=icon],._icon-button_6ysdi_4:active [data-component=icon]{-webkit-transform:translate(-54%,-54%) scale(.95);transform:translate(-54%,-54%) scale(.95)}",""])},function(t,e){t.exports={"icon-button":"_icon-button_6ysdi_4","is-checked":"_is-checked_6ysdi_31"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_),y=n(116),m=r(y),g=n(115),b=r(g),x=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){this.props.state;return(0,h.h)("div",{"data-component":"minimize-button",title:"minimize"},(0,h.h)(v["default"],{shape:"minimize"}))}},{key:"componentDidMount",value:function(){var t=this.context.store,e=(0,m["default"])(new b["default"].Manager(this.base));e.add(new b["default"].Tap),e.on("tap",function(e){t.dispatch({type:"SET_MINIMIZE",data:!0})})}}]),e}(h.Component);e["default"]=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_),y=n(116),m=r(y),g=n(115),b=r(g),x=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){this.props.state;return(0,h.h)("div",{"data-component":"maximize-button",title:"maximize"},(0,h.h)(v["default"],{shape:"maximize"}))}},{key:"componentDidMount",value:function(){var t=this.context.store,e=(0,m["default"])(new b["default"].Manager(this.base));e.add(new b["default"].Tap),e.on("tap",function(e){t.dispatch({type:"SET_MINIMIZE",data:!1})})}}]),e}(h.Component);e["default"]=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48),i=n(169);n(170),e["default"]=function(){return(0,r.h)("div",{className:i["icon-divider"],"data-component":"icon-divider"})}},function(t,e){t.exports={"icon-divider":"_icon-divider_ftask_3"}},function(t,e,n){var r=n(171);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._icon-divider_ftask_3{position:relative;margin:0 auto;width:16px;height:1px;display:block;background:hsla(0,0%,100%,.3);box-shadow:0 1px 0 rgba(0,0,0,.3)}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_);n(173);var y=n(175),m=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props,e=t.state,n=e.pointControls.present,r=n.isShow?y["is-show"]:"",i=t.className+" "+y["point-controls"]+" "+r,o=this._addButtons(n);return(0,h.h)("div",{className:i}," ",o," ")}},{key:"_onButtonTap",value:function(t){var e=this;return function(n){var r=e.context.store;r.dispatch({type:"POINT_CHANGE_TYPE",data:t,isRecord:!0})}}},{key:"_addButtons",value:function(t){for(var e=["straight","disconnected","mirrored","asymmetric"],n=[],r=0;r\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '}})};e["default"]=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){t.dispatch({type:"POINTS_REMOVE"}),t.dispatch({type:"POINT_ADD",data:{point:{x:0,y:a["default"].CURVE_SIZE,isLockedX:!0},index:0}}),t.dispatch({type:"POINT_ADD",data:{point:{x:100,y:0,isLockedX:!0},index:1}})}Object.defineProperty(e,"__esModule",{value:!0}),e.reset=i;var o=n(114),a=r(o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(42),o=r(i),a=n(43),s=r(a),u=function(){function t(){(0,o["default"])(this,t),this._subscribers=[]}return(0,s["default"])(t,[{key:"add",value:function(t){this._subscribers.push(t)}},{key:"resetActive",value:function(t){for(var e=0;e1?(0,p["default"])(k):k,N=j.length>1?(0,h["default"])(j):{};return(0,s["default"])({},t,{points:j},N);case"POINT_DELETE":for(var A=t.points,I=(0,m["default"])(A),L=[],R=0;R1?arguments[1]:void 0,v=void 0!==_,y=0,m=l(p);if(v&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==m||d==Array&&s(m))for(e=u(p.length),n=new d(e);e>y;y++)c(n,y,v?_(p[y],y):p[y]);else for(f=m.call(p),n=new d;!(i=f.next()).done;y++)c(n,y,v?a(f,_,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,e,n){var r=n(15);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&r(a.call(t)),o}}},function(t,e,n){var r=n(80),i=n(86)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(14),i=n(22);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(198),i=n(86)("iterator"),o=n(80);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(29),i=n(86)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(86)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=function(t,e){return null!=t?t:e},s=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{index:a(t.index,0),angle:a(t.angle,null),radius:a(t.radius,null),isTouched:a(t.isTouched,!1),isSelected:a(t.isSelected,!1)}},u=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{x:a(t.x,0),y:a(t.y,0),tempX:a(t.tempX,0),tempY:a(t.tempY,0),isTouched:a(t.isTouched,!1),isSelected:a(t.isSelected,!1)}},c=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,o["default"])({isLockedX:a(t.isLockedX,!1),isLockedY:a(t.isLockedY,!1),type:a(t.type,"straight")},u(t),{handle1:s(t.handle1||{index:1}),handle2:s(t.handle2||{index:2})})};e["default"]=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(202),o=r(i);e["default"]=function(t){for(var e=[],n=0;n0&&(p-=180),u.angle=p,c.radius=u.radius,c.angle=u.angle-180}return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(204),o=r(i);e["default"]=function(t){for(var e="",n=[],r=0;r=0?t(r(n,i),{type:"@@redux-recycle/INIT"}):t(n,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){return null!=t?t:e}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){setTimeout(t,1)}}])}); \ No newline at end of file +!function(i,o,a,s){"use strict";function u(t,e,n){return setTimeout(d(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(l(t,n[e],n),!0)}function l(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}function p(t,e,n){var r,i=e.prototype;r=t.prototype=Object.create(i),r.constructor=t,r._super=i,n&&_t(r,n)}function d(t,e){return function(){return t.apply(e,arguments)}}function h(t,e){return typeof t==mt?t.apply(e?e[0]||s:s,e):t}function _(t,e){return t===s?e:t}function v(t,e,n){l(b(e),function(e){t.addEventListener(e,n,!1)})}function y(t,e,n){l(b(e),function(e){t.removeEventListener(e,n,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function x(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]}):r.sort()),r}function w(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=A(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=I(r);e.timeStamp=xt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=F(s,u),e.distance=D(s,u),j(n,e),e.offsetDirection=R(e.deltaX,e.deltaY);var c=L(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=bt(c.x)>bt(c.y)?c.x:c.y,e.scale=a?U(a.pointers,r):1,e.rotation=a?z(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,N(n,e);var l=t.element;m(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function j(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==It&&o.eventType!==Rt||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function N(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=Dt&&(u>At||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,f=L(u,c,l);r=f.x,i=f.y,n=bt(f.x)>bt(f.y)?f.x:f.y,o=R(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function A(t){for(var e=[],n=0;n=bt(e)?t<0?zt:Ut:e<0?Yt:Xt}function D(t,e,n){n||(n=Ht);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function F(t,e,n){n||(n=Ht);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function z(t,e){return F(e[1],e[0],Zt)+F(t[1],t[0],Zt)}function U(t,e){return D(e[0],e[1],Zt)/D(t[0],t[1],Zt)}function Y(){this.evEl=Gt,this.evWin=Jt,this.pressed=!1,M.apply(this,arguments)}function X(){this.evEl=$t,this.evWin=te,M.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget=ne,this.evWin=re,this.started=!1,M.apply(this,arguments)}function W(t,e){var n=T(t.touches),r=T(t.changedTouches);return e&(Rt|Dt)&&(n=E(n.concat(r),"identifier",!0)),[n,r]}function B(){this.evTarget=oe,this.targetIds={},M.apply(this,arguments)}function H(t,e){var n=T(t.touches),r=this.targetIds;if(e&(It|Lt)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=T(t.changedTouches),s=[],u=this.target;if(o=n.filter(function(t){return m(t.target,u)}),e===It)for(i=0;i-1&&r.splice(t,1)};setTimeout(i,ae)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;r=be&&e(n.options.event+et(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Ee)},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&me||!(this.state&me)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(at,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[de]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&me)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(st,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||t.eventType&(Rt|Dt)&&!i)this.reset();else if(t.eventType&It)this.reset(),this._timer=u(function(){this.state=xe,this.tryEmit()},e.time,this);else if(t.eventType&Rt)return xe;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===xe&&(t&&t.eventType&Rt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=xt(),this.manager.emit(this.options.event,this._input)))}}),p(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[de]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&me)}}),p(ct,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Vt|Wt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Vt|Wt)?e=t.overallVelocity:n&Vt?e=t.overallVelocityX:n&Wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Rt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(lt,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance0?c._handlers[t]=r:(n.off(t,o),delete c._handlers[t]))}),c},c.emit=function(e,r){t=t||r.target,n.emit(e,r)},c.destroy=function(){var t=n.element.hammer,e=t.indexOf(c);e!==-1&&t.splice(e,1),t.length||delete n.element.hammer,c._handlers={},n.destroy()},c}})},function(t,e){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=i;return void 0===s?{past:[],present:e,future:[]}:{past:[].concat(n(o.slice(u?1:0)),[s]),present:e,future:[]}}function u(t){r("undo",{history:t});var e=t.past,i=t.present,o=t.future;return e.length<=0?t:{past:e.slice(0,e.length-1),present:e[e.length-1],future:[i].concat(n(o))}}function c(t){r("redo",{history:t});var e=t.past,i=t.present,o=t.future;return o.length<=0?t:{future:o.slice(1,o.length),present:o[0],past:[].concat(n(e),[i])}}function l(t,e){if(0===e)return c(t);var n=t.past,r=t.present,i=t.future;return{future:i.slice(e+1),present:i[e],past:n.concat([r]).concat(i.slice(0,e))}}function f(t,e){if(e===t.past.length-1)return u(t);var n=t.past,r=t.present,i=t.future;return{future:n.slice(e+1).concat([r]).concat(i),present:n[e],past:n.slice(0,e)}}function p(t){return x({},t,{history:t})}function d(t,e){return p(x({},t,e))}function h(t){return{past:[],present:t,future:[]}}function _(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return Array.isArray(t)?t:"string"==typeof t?[t]:e}function v(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];T=e.debug;var n={initialState:e.initialState,initTypes:_(e.initTypes,["@@redux/INIT","@@INIT"]),limit:e.limit,filter:e.filter||function(){return!0},undoType:e.undoType||E.UNDO,redoType:e.redoType||E.REDO,jumpToPastType:e.jumpToPastType||E.JUMP_TO_PAST,jumpToFutureType:e.jumpToFutureType||E.JUMP_TO_FUTURE};return n.history=e.initialHistory||h(n.initialState),0===n.initTypes.length&&console.warn("redux-undo: supply at least one action type in initTypes to ensure initial state"),function(e,_){i(_,e);var v=void 0;switch(_.type){case n.undoType:return v=u(e),r("after undo",v),o(),v?d(e,v):e;case n.redoType:return v=c(e),r("after redo",v),o(),v?d(e,v):e;case n.jumpToPastType:return v=f(e,_.index),r("after jumpToPast",v),o(),v?d(e,v):e;case n.jumpToFutureType:return v=l(e,_.index),r("after jumpToFuture",v),o(),v?d(e,v):e;default:if(v=t(e&&e.present,_),n.initTypes.some(function(t){return t===_.type}))return r("reset history due to init action"),o(),p(x({},e,h(v)));if(n.filter&&"function"==typeof n.filter&&!n.filter(_,v,e&&e.present))return r("filter prevented action, not storing it"),o(),p(x({},e,{present:v}));var y=e&&void 0!==e.present?e:n.history,m=s(y,v,n.limit);return r("after insert",{history:m,free:n.limit-a(m)}),o(),p(x({},e,m))}}}function y(){return function(t,e,n){return e!==n}}function m(t){var e=_(t);return function(t){return e.indexOf(t.type)>=0}}function g(t){return console.error("Deprecation Warning: Please change `ifAction` to `includeAction`"),m(t)}function b(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=_(t);return function(t){return e.indexOf(t.type)<0}}Object.defineProperty(e,"__esModule",{value:!0});var x=Object.assign||function(t){for(var e=1;e=0;i--){var o=n[i];r.push((0,h.h)(y["default"],o))}return r}},{key:"_updateDomProgressLines",value:function(){var t=this.props.progressLines;t.length=0;for(var e=this.base.querySelectorAll('[data-component="progress-line"]'),n=0;n-1}},{key:"componentDidMount",value:function(){var t=this;this._updateDomProgressLines();var e=this.context.store,n=this.base.querySelector("#js-segments"),r=(0,k["default"])(new O["default"].Manager(n));r.add(new O["default"].Tap),r.on("tap",function(n){var r=t.props.state,i=n.srcEvent,o=i.target;if("path"===o.tagName.toLowerCase()){var a=i.offsetX,s=i.offsetY,u=parseInt(o.getAttribute("data-index"))+1;t._isFirefox?(s*=S["default"].CURVE_PERCENT,a-=1,s-=1):a/=r.resize.scalerX,t._isFirefox,e.dispatch({type:"POINT_ADD",data:{point:{x:a,y:s},index:u},isRecord:!0}),e.dispatch({type:"POINT_SELECT",data:{index:u,type:"straight"}}),n.stopPropagation()}});var i=(this.base.querySelector("#js-svg"),(0,k["default"])(new O["default"].Manager(this.base)));i.add(new O["default"].Tap),i.add(new O["default"].Pan),i.on("tap",function(t){e.dispatch({type:"POINT_DESELECT_ALL"})}).on("pan",function(t){e.dispatch({type:"EDITOR_PAN",data:t.deltaY})}).on("panend",function(t){e.dispatch({type:"EDITOR_PAN_END",data:t.deltaY})})}}]),e}(h.Component);e["default"]=N},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){return mojs.h.getRadialPoint({angle:t,radius:e,center:{x:0,y:0}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48);n(122);var _=n(126),v=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props,e={backgroundColor:t.color};return(0,h.h)("div",{className:_["progress-line"],style:e,"data-component":"progress-line"})}}]),e}(h.Component);e["default"]=v},function(t,e,n){var r=n(123);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._progress-line_1j4pp_3{position:absolute;top:0;bottom:0;width:1px;margin-left:-1.5px}",""]); +},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function c(t,e){var n,r,i;if(e.singleton){var o=m++;n=y||(y=s(e)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=f.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function l(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var d={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},_=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,g=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=_()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a100?100-i.x:(0,T["default"])(i.x+o,5,1.5)-i.x},r=function(e){var n=t.props.state.resize,r=t.props,i=r.point,o=(r.index,i.y+e.deltaY),a=o;return oC["default"].CURVE_SIZE+n.bottom-n.panY&&(a=C["default"].CURVE_SIZE+n.bottom-n.panY),(0,T["default"])(a,5*C["default"].CURVE_PERCENT,2*C["default"].CURVE_PERCENT)-i.y},i=this.base.querySelector("#js-point-touch"),o=(0,b["default"])(new w["default"].Manager(i));o.add(new w["default"].Pan({threshold:0})),o.on("pan",function(i){var o=t.props,a=(o.point,o.index);e.dispatch({type:"POINT_TRANSLATE",data:{x:n(i),y:r(i),index:a}}),i.stopPropagation()}).on("panend",function(n){var r=t.props,i=(r.point,r.index);e.dispatch({type:"POINT_TRANSLATE_END",data:i,isRecord:!0}),n.stopPropagation()}).on("tap",function(t){t.stopPropagation()}),(0,v["default"])(i,function(n){var r=t.props,i=r.point,o=r.index;e.dispatch({type:"POINT_SELECT",data:{index:o,isDeselect:!n.shiftKey,type:i.type}})})}}]),e}(h.Component);e["default"]=j},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){window.navigator.msPointerEnabled?t.addEventListener("MSPointerDown",e):void 0!==window.ontouchstart?(t.addEventListener("touchstart",e),t.addEventListener("mousedown",e)):t.addEventListener("mousedown",e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(66),s=r(a),u=n(42),c=r(u),l=n(43),f=r(l),p=n(71),d=r(p),h=n(106),_=r(h),v=n(48),y=n(120),m=r(y),g=n(136),b=r(g),x=n(114),T=(r(x),n(137)),E=r(T),w=n(115),P=r(w),S=n(116),M=r(S);n(138);var O=n(140),C=function(t){function e(){return(0,c["default"])(this,e),(0,d["default"])(this,(0,s["default"])(e).apply(this,arguments))}return(0,_["default"])(e,t),(0,f["default"])(e,[{key:"render",value:function(){return(0,v.h)("div",{className:O["little-handle"],"data-component":"little-handle"},(0,v.h)("div",{"class":O["little-handle__point"],style:this._getPointStyle()},(0,v.h)("div",{className:O["little-handle__easy-touch"]})),(0,v.h)("div",{"class":O["little-handle__line"],style:this._getLineStyle()}))}},{key:"componentDidMount",value:function(){var t=this,e=this.context.store,n=(0,M["default"])(new P["default"].Manager(this.base)),r=this.props.handle;n.add(new P["default"].Pan({threshold:0})),n.on("panstart",function(e){r=t.props.handle}).on("pan",function(n){var i=t.props,a=i.index,s=i.parentIndex,u=i.state,c=(0,m["default"])(r.angle,r.radius),l=c.y+n.deltaY,f=u.resize,p=c.x+n.deltaX/f.absScalerX,d=(0,b["default"])(p,l);if(e.dispatch({type:"HANDLE_TRANSLATE",data:(0,o["default"])({index:a,parentIndex:s},d)}),"mirrored"===t.props.type){var h=1===a?2:1;e.dispatch({type:"HANDLE_TRANSLATE",data:{index:h,parentIndex:s,radius:d.radius,angle:d.angle-180}})}if("asymmetric"===t.props.type){var _=1===a?2:1;e.dispatch({type:"HANDLE_TRANSLATE",data:{index:_,parentIndex:s,radius:r.radius,angle:d.angle-180}})}n.stopPropagation()}).on("panend",function(t){e.dispatch({type:"HANDLE_TRANSLATE_END",isRecord:!0}),E["default"].clear(),t.stopPropagation()})}},{key:"_getPointStyle",value:function(){var t=this.props,e=t.handle,n=t.state,r=n.resize,i=(0,m["default"])(e.angle,e.radius),o="transform: translate("+i.x*r.absScalerX+"px, "+i.y+"px) rotate("+e.angle+"deg)";return""+mojs.h.prefix.css+o+"; "+o}},{key:"_getLineStyle",value:function(){var t=this.props,e=t.handle,n=t.state,r=n.resize,i=(0,m["default"])(e.angle,e.radius),o=(0,b["default"])(i.x*r.absScalerX,i.y),a="transform: rotate("+o.angle+"deg) scaleY("+o.radius+")";return""+mojs.h.prefix.css+a+"; "+a}}]),e}(v.Component);e["default"]=C},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){var n=Math.sqrt(t*t+e*e),r=Math.atan(e/t)*(180/Math.PI)-90;return t>0&&(r-=180),{radius:n,angle:r}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(42),o=r(i),a=n(43),s=r(a),u=function(){function t(){(0,o["default"])(this,t),this._states=[]}return(0,s["default"])(t,[{key:"push",value:function(t){return this}},{key:"clear",value:function(){return this._states=[],this}}]),t}();e["default"]=new u},function(t,e,n){var r=n(139);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._little-handle_x1mg1_3{position:absolute;left:50%;top:50%;width:0;height:0}._little-handle__point_x1mg1_1{position:absolute;z-index:1;width:6px;height:6px;left:50%;top:50%;margin-left:-3px;margin-top:-3px;background:#ff512f;box-shadow:1px 1px 0 rgba(0,0,0,.5)}._little-handle__easy-touch_x1mg1_1{position:absolute;z-index:1;width:200%;height:200%;left:50%;top:50%;margin-left:-100%;margin-top:-100%}._little-handle__line_x1mg1_1{position:absolute;width:1px;height:1px;margin-left:-1px;margin-top:-1px;left:50%;top:50%;background:#ff512f;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}",""])},function(t,e){t.exports={"little-handle":"_little-handle_x1mg1_3","little-handle__point":"_little-handle__point_x1mg1_1","little-handle__easy-touch":"_little-handle__easy-touch_x1mg1_1","little-handle__line":"_little-handle__line_x1mg1_1"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e,n){var r=Math.round(t/e)*e;return Math.abs(t-r)n?n:t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(114),o=r(i),a=o["default"].CURVE_SIZE,s=function(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],n=Math.abs(t%a),r=parseInt(t/a),i=15;return na-i&&(t=(r+1*e)*a),t};e["default"]=s},function(t,e,n){var r=n(145);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._point_14jnp_5{position:absolute;width:10px;height:10px;margin-left:-5px;margin-top:-5px;cursor:move;background:#fff;border-radius:50%;z-index:3;box-shadow:3px 3px 0 rgba(0,0,0,.5)}._point_14jnp_5 [data-component=little-handle]{display:none}._point__touch_14jnp_1{position:absolute;left:50%;top:50%;width:20px;height:20px;margin-left:-10px;margin-top:-10px}._point_14jnp_5._is-selected_14jnp_31,._point_14jnp_5:hover{background:#ff512f}._point_14jnp_5._is-selected_14jnp_31 [data-component=little-handle]{display:block}._point_14jnp_5._is-hide-handles_14jnp_43 [data-component=little-handle]{display:none}",""])},function(t,e){t.exports={point:"_point_14jnp_5",point__touch:"_point__touch_14jnp_1","is-selected":"_is-selected_14jnp_31","is-hide-handles":"_is-hide-handles_14jnp_43"}},function(t,e,n){var r=n(148);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._curve_1k7gs_5{position:absolute;left:0;top:10px;right:10px;bottom:10px;border-radius:2px;background:rgba(58,8,58,.75);border:1px solid #9c829a;box-shadow:inset 4px 4px 0 rgba(0,0,0,.5);z-index:2;overflow:hidden}._curve__background_1k7gs_1{position:absolute;z-index:0;top:0;bottom:0;width:350px;left:0;opacity:.5;border-radius:inherit}._curve__background_1k7gs_1 svg{width:100%}._curve__background_1k7gs_1 path{vector-effect:non-scaling-stroke}._curve__svg-wrapper_1k7gs_1{position:absolute;z-index:1;left:-1px;right:-1px}._curve__svg_1k7gs_1{display:block;overflow:visible;width:100%;position:relative;z-index:1}._curve__svg-segment_1k7gs_1{stroke:#fff;stroke-width:2px;cursor:crosshair}._curve__svg-segment_1k7gs_1:hover{stroke:#ff512f}",""])},function(t,e){t.exports={curve:"_curve_1k7gs_5",curve__background:"_curve__background_1k7gs_1","curve__svg-wrapper":"_curve__svg-wrapper_1k7gs_1",curve__svg:"_curve__svg_1k7gs_1","curve__svg-segment":"_curve__svg-segment_1k7gs_1"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(66),s=r(a),u=n(42),c=r(u),l=n(43),f=r(l),p=n(71),d=r(p),h=n(106),_=r(h),v=n(48),y=n(151),m=r(y),g=n(115),b=r(g),x=n(116),T=r(x),E=n(155),w=r(E),P=n(156);n(157);var S=function(t){function e(){return(0,c["default"])(this,e),(0,d["default"])(this,(0,s["default"])(e).apply(this,arguments))}return(0,_["default"])(e,t),(0,f["default"])(e,[{key:"render",value:function(){var t=this.props.type,e=""+P["resize-handle"],n=""+P["resize-handle--"+t];return(0,v.h)("div",{className:e+" "+n+" "+this.props.className,"data-type":t,"data-component":"resize-handle"},(0,v.h)(m["default"],{shape:"ellipsis"}))}},{key:"componentDidMount",value:function(){var t=this,e=this.props.type,n=this.context.store,r=(0,T["default"])(new b["default"].Manager(this.base));r.add(new b["default"].Pan({threshold:0})),r.on("pan",function(r){n.dispatch({type:"EDITOR_RESIZE",data:(0,o["default"])({},(0,w["default"])(r.deltaX,r.deltaY,e,t.props.state))}),r.stopPropagation()}).on("panend",function(r){n.dispatch({type:"EDITOR_RESIZE_END",data:(0,o["default"])({},(0,w["default"])(r.deltaX,r.deltaY,e,t.props.state))}),r.stopPropagation()})}}]),e}(v.Component);e["default"]=S},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(152);n(153);var v=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props.shape,e='';return(0,h.h)("div",{className:_.icon,"data-component":"icon",dangerouslySetInnerHTML:{__html:e}})}}]),e}(h.Component);e["default"]=v},function(t,e){t.exports={icon:"_icon_4a8lf_5"}},function(t,e,n){var r=n(154);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._icon_4a8lf_5{position:relative;width:32px;height:32px;cursor:pointer;fill:#fff;display:block}._icon_4a8lf_5>svg{position:absolute;left:0;top:0;width:100%;height:100%;fill:inherit}._icon_4a8lf_5>svg>use{fill:inherit}._icon_4a8lf_5:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;z-index:1}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(143),o=r(i),a=n(114);r(a);e["default"]=function(t,e,n,r){var i=r.resize;if("right"!==n){var a=i[n]+e,s="top"===n?-1:1;e=(0,o["default"])(a,s),e-=i[n];var u=0;a*s<-u&&(e=-i[n]-u)}else i[n]+t<0&&(t=-i[n]);return{x:t,y:e,type:n,resize:i}}},function(t,e){t.exports={"resize-handle":"_resize-handle_1uncf_4","resize-handle--right":"_resize-handle--right_1uncf_1","resize-handle--bottom":"_resize-handle--bottom_1uncf_1"}},function(t,e,n){var r=n(158);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._resize-handle_1uncf_4{background:#3d1b3c;width:32px;height:16px;display:block;cursor:n-resize;overflow:hidden;position:relative;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;box-shadow:inset 0 0 0 1px #572b51}._resize-handle_1uncf_4:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;z-index:2}._resize-handle_1uncf_4 [data-component=icon]{position:absolute;left:0;top:-7px}._resize-handle_1uncf_4:hover{opacity:.85}._resize-handle--right_1uncf_1{-webkit-transform:rotate(90deg);transform:rotate(90deg);cursor:e-resize}._resize-handle--bottom_1uncf_1{-webkit-transform:rotate(180deg);transform:rotate(180deg);cursor:s-resize}",""])},function(t,e){t.exports={"curve-editor":"_curve-editor_12556_3","curve-editor__left":"_curve-editor__left_12556_1","curve-editor__right":"_curve-editor__right_12556_140","curve-editor__resize-handle":"_curve-editor__resize-handle_12556_1","curve-editor__anchor-buttons":"_curve-editor__anchor-buttons_12556_135","curve-editor__mojs-logo":"_curve-editor__mojs-logo_12556_118","is-inactive":"_is-inactive_12556_117","is-minimized":"_is-minimized_12556_125","curve__svg-wrapper":"_curve__svg-wrapper_12556_144"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(48),o=n(151),a=r(o),s=n(161),u=r(s),c=n(166),l=r(c),f=n(167),p=r(f),d=n(168),h=r(d),_=n(172),v=r(_),y=n(159),m=function(t){var e=t.state;return(0,i.h)("div",{className:y["curve-editor__left"],id:"js-left-panel"},(0,i.h)(l["default"],{state:e}),(0,i.h)(p["default"],{state:e}),(0,i.h)(u["default"],{state:e}),(0,i.h)(h["default"],null),(0,i.h)(v["default"],{state:e,className:y["curve-editor__anchor-buttons"]}),(0,i.h)("a",{className:y["curve-editor__mojs-logo"],href:"https://github.com/legomushroom/mojs-curve-editor",target:"_blank"},(0,i.h)(a["default"],{shape:"mojs-logo"})))};e["default"]=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_),y=n(116),m=r(y),g=n(115),b=r(g),x=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props.state;return(0,h.h)("div",{"data-component":"code-button",title:"get code"},(0,h.h)(v["default"],{shape:"code",isCheck:t.controls.isCode}))}},{key:"componentDidMount",value:function(){var t=this.context.store,e=(0,m["default"])(new b["default"].Manager(this.base));e.add(new b["default"].Tap),e.on("tap",function(e){t.dispatch({type:"CODE_TAP"})})}}]),e}(h.Component);e["default"]=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(115),_=r(h),v=n(48),y=n(151),m=r(y);n(163);var g=n(165),b=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props,e=t.isCheck?g["is-checked"]:"";return(0,v.h)("div",{className:g["icon-button"]+" "+e,title:t.title||"","data-component":"icon-button"},(0,v.h)(m["default"],{shape:this.props.shape}))}},{key:"componentDidMount",value:function(){var t=this;if("function"==typeof this.props.onTap){new _["default"](this.base).on("tap",function(e){t.props.onTap(e,t.props)})}}}]),e}(v.Component);e["default"]=b},function(t,e,n){var r=n(164);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._icon-button_6ysdi_4{position:relative;width:24px;height:24px;display:block;background:#3a0839;border-radius:3px;box-shadow:1px 1px 0 rgba(0,0,0,.15)}._icon-button_6ysdi_4 [data-component=icon]{position:absolute;left:50%;top:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}._icon-button_6ysdi_4:hover{box-shadow:none}._icon-button_6ysdi_4:hover [data-component=icon]{-webkit-transform:translate(-52%,-52%);transform:translate(-52%,-52%)}._icon-button_6ysdi_4._is-checked_6ysdi_31,._icon-button_6ysdi_4:active{border-radius:3px;box-shadow:inset -1px -1px 0 hsla(0,0%,100%,.25),inset 1px 1px 1px rgba(0,0,0,.4)}._icon-button_6ysdi_4._is-checked_6ysdi_31 [data-component=icon],._icon-button_6ysdi_4:active [data-component=icon]{-webkit-transform:translate(-54%,-54%) scale(.95);transform:translate(-54%,-54%) scale(.95)}",""])},function(t,e){t.exports={"icon-button":"_icon-button_6ysdi_4","is-checked":"_is-checked_6ysdi_31"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_),y=n(116),m=r(y),g=n(115),b=r(g),x=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){this.props.state;return(0,h.h)("div",{"data-component":"minimize-button",title:"minimize"},(0,h.h)(v["default"],{shape:"minimize"}))}},{key:"componentDidMount",value:function(){var t=this.context.store,e=(0,m["default"])(new b["default"].Manager(this.base));e.add(new b["default"].Tap),e.on("tap",function(e){t.dispatch({type:"SET_MINIMIZE",data:!0})})}}]),e}(h.Component);e["default"]=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_),y=n(116),m=r(y),g=n(115),b=r(g),x=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){this.props.state;return(0,h.h)("div",{"data-component":"maximize-button",title:"maximize"},(0,h.h)(v["default"],{shape:"maximize"}))}},{key:"componentDidMount",value:function(){var t=this.context.store,e=(0,m["default"])(new b["default"].Manager(this.base));e.add(new b["default"].Tap),e.on("tap",function(e){t.dispatch({type:"SET_MINIMIZE",data:!1})})}}]),e}(h.Component);e["default"]=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48),i=n(169);n(170),e["default"]=function(){return(0,r.h)("div",{className:i["icon-divider"],"data-component":"icon-divider"})}},function(t,e){t.exports={"icon-divider":"_icon-divider_ftask_3"}},function(t,e,n){var r=n(171);"string"==typeof r&&(r=[[t.id,r,""]]);n(125)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(124)(),e.push([t.id,"._icon-divider_ftask_3{position:relative;margin:0 auto;width:16px;height:1px;display:block;background:hsla(0,0%,100%,.3);box-shadow:0 1px 0 rgba(0,0,0,.3)}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(66),o=r(i),a=n(42),s=r(a),u=n(43),c=r(u),l=n(71),f=r(l),p=n(106),d=r(p),h=n(48),_=n(162),v=r(_);n(173);var y=n(175),m=function(t){function e(){return(0,s["default"])(this,e),(0,f["default"])(this,(0,o["default"])(e).apply(this,arguments))}return(0,d["default"])(e,t),(0,c["default"])(e,[{key:"render",value:function(){var t=this.props,e=t.state,n=e.pointControls.present,r=n.isShow?y["is-show"]:"",i=t.className+" "+y["point-controls"]+" "+r,o=this._addButtons(n);return(0,h.h)("div",{className:i}," ",o," ")}},{key:"_onButtonTap",value:function(t){var e=this;return function(n){var r=e.context.store;r.dispatch({type:"POINT_CHANGE_TYPE",data:t,isRecord:!0})}}},{key:"_addButtons",value:function(t){for(var e=["straight","disconnected","mirrored","asymmetric"],n=[],r=0;r\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '}})};e["default"]=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){t.dispatch({type:"POINTS_REMOVE"}),t.dispatch({type:"POINT_ADD",data:{point:{x:0,y:a["default"].CURVE_SIZE,isLockedX:!0},index:0}}),t.dispatch({type:"POINT_ADD",data:{point:{x:100,y:0,isLockedX:!0},index:1}})}Object.defineProperty(e,"__esModule",{value:!0}),e.reset=i;var o=n(114),a=r(o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(42),o=r(i),a=n(43),s=r(a),u=function(){function t(){(0,o["default"])(this,t),this._subscribers=[]}return(0,s["default"])(t,[{key:"add",value:function(t){this._subscribers.push(t)}},{key:"resetActive",value:function(t){for(var e=0;e1?(0,p["default"])(k):k,N=j.length>1?(0,h["default"])(j):{};return(0,s["default"])({},t,{points:j},N);case"POINT_DELETE":for(var A=t.points,I=(0,m["default"])(A),L=[],R=0;R1?arguments[1]:void 0,v=void 0!==_,y=0,m=l(p);if(v&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==m||d==Array&&s(m))for(e=u(p.length),n=new d(e);e>y;y++)c(n,y,v?_(p[y],y):p[y]);else for(f=m.call(p),n=new d;!(i=f.next()).done;y++)c(n,y,v?a(f,_,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,e,n){var r=n(15);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&r(a.call(t)),o}}},function(t,e,n){var r=n(80),i=n(86)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(14),i=n(22);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(198),i=n(86)("iterator"),o=n(80);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(29),i=n(86)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(86)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=function(t,e){return null!=t?t:e},s=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{index:a(t.index,0),angle:a(t.angle,null),radius:a(t.radius,null),isTouched:a(t.isTouched,!1),isSelected:a(t.isSelected,!1)}},u=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{x:a(t.x,0),y:a(t.y,0),tempX:a(t.tempX,0),tempY:a(t.tempY,0),isTouched:a(t.isTouched,!1),isSelected:a(t.isSelected,!1)}},c=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,o["default"])({isLockedX:a(t.isLockedX,!1),isLockedY:a(t.isLockedY,!1),type:a(t.type,"straight")},u(t),{handle1:s(t.handle1||{index:1}),handle2:s(t.handle2||{index:2})})};e["default"]=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(202),o=r(i);e["default"]=function(t){for(var e=[],n=0;n0&&(p-=180),u.angle=p,c.radius=u.radius,c.angle=u.angle-180}return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(204),o=r(i);e["default"]=function(t){for(var e="",n=[],r=0;r=0?t(r(n,i),{type:"@@redux-recycle/INIT"}):t(n,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e){return null!=t?t:e}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){setTimeout(t,1)}}])}); \ No newline at end of file diff --git a/app/index.html b/app/index.html index 3353076..96ad6ba 100644 --- a/app/index.html +++ b/app/index.html @@ -66,37 +66,14 @@ - +