@jumpn/utils-composite
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),utilsArray=require("@jumpn/utils-array"),_Object$keys=_interopDefault(require("babel-runtime/core-js/object/keys")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),isDeepEqual=_interopDefault(require("fast-deep-equal")),_defineProperty=_interopDefault(require("babel-runtime/helpers/defineProperty")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),_slicedToArray=_interopDefault(require("babel-runtime/helpers/slicedToArray")),_Object$entries=_interopDefault(require("babel-runtime/core-js/object/entries")),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_this=void 0,get=function(e,r){return _newArrowCheck(this,_this),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$1=void 0,getInRecur=function(e,r,t){return _newArrowCheck(this,_this$1),utilsArray.isLastIndex(r,e)?get$1(r[e],t):hasKey$1(r[e],t)?getInRecur(e+1,r,get$1(r[e],t)):void 0}.bind(void 0),getIn=function(e,r){return _newArrowCheck(this,_this$1),0===e.length?void 0:getInRecur(0,e,r)}.bind(void 0),getIn$1=Fun.curry(getIn),_this$3=void 0,getKeys=function(e){return _newArrowCheck(this,_this$3),Array.isArray(e)?[].concat(_toConsumableArray(e.keys())):_Object$keys(e)}.bind(void 0),_this$4=void 0,hasIn=function(e,r,t){return _newArrowCheck(this,_this$4),isDeepEqual(getIn$1(e,t),r)}.bind(void 0),hasIn$1=Fun.curry(hasIn),_this$5=void 0,haveSameProps=function(e,r){_newArrowCheck(this,_this$5);var t=getKeys(e);return t.length===getKeys(r).length&&t.every(function(t){return _newArrowCheck(this,_this$5),hasKey$1(t,r)&&get$1(t,e)===get$1(t,r)}.bind(this))}.bind(void 0),haveSameProps$1=Fun.curry(haveSameProps),_this$6=void 0,mapObject=function(e,r){return _newArrowCheck(this,_this$6),_Object$entries(r).reduce(function(t,n){var i=_slicedToArray(n,2),o=i[0],s=i[1];return _newArrowCheck(this,_this$6),_extends({},t,_defineProperty({},o,e(s,o,r)))}.bind(this),{})}.bind(void 0),map=function(e,r){return _newArrowCheck(this,_this$6),Array.isArray(r)?r.map(e):mapObject(e,r)}.bind(void 0),map$1=Fun.curry(map),_this$7=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$7),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$7),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=Fun.curry(remove$1),_this$10=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$10),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$9=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$9);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$9),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$9),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,n){return _newArrowCheck(this,_this$9),utilsArray.isLastIndex(e,t)?r(get$1(e[t],n)):copyOrCreate(e[t],e[t+1],n)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$9),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,n){return _newArrowCheck(this,_this$9),_extends({},n,{current:set(e[r],t,n.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$9);var n=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:n,origin:n}):_extends({},t,{previous:set(e[r-1],n,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,n){return _newArrowCheck(this,_this$9),t===removeAction?updateRemove(e,r,n):updateSet(e,r,t,n)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$9),function(t,n,i){return _newArrowCheck(this,_this$9),update(e,i,getNext(e,r,i,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$9),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction;var _this$8=void 0,remove$3=function(){return _newArrowCheck(this,_this$8),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this$8),updateInCurried(e,remove$3,r)}.bind(void 0),removeIn$1=Fun.curry(removeIn),_this$11=void 0,set$1=function(e,r,t){_newArrowCheck(this,_this$11);var n=shallowCopy(t);return n[e]=r,n}.bind(void 0),set$2=Fun.curry(set$1),_this$12=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this$12),updateInCurried(e,function(){return _newArrowCheck(this,_this$12),r}.bind(this),t)}.bind(void 0),setIn$1=Fun.curry(setIn),_this$13=void 0,xor=function(e,r){return _newArrowCheck(this,_this$13),Boolean(Number(e)^Number(r))}.bind(void 0),shallowEqual=function(e,r){return _newArrowCheck(this,_this$13),e===r||!xor(Array.isArray(e),Array.isArray(r))&&haveSameProps$1(e,r)}.bind(void 0),shallowEqual$1=Fun.curry(shallowEqual);exports.get=get$1,exports.getIn=getIn$1,exports.getKeys=getKeys,exports.hasIn=hasIn$1,exports.hasKey=hasKey$1,exports.haveSameProps=haveSameProps$1,exports.map=map$1,exports.remove=remove$2,exports.removeIn=removeIn$1,exports.set=set$2,exports.setIn=setIn$1,exports.shallowCopy=shallowCopy,exports.shallowEqual=shallowEqual$1,exports.updateIn=updateInCurried; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),utilsArray=require("@jumpn/utils-array"),_Object$keys=_interopDefault(require("babel-runtime/core-js/object/keys")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),isDeepEqual=_interopDefault(require("fast-deep-equal")),_defineProperty=_interopDefault(require("babel-runtime/helpers/defineProperty")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),_slicedToArray=_interopDefault(require("babel-runtime/helpers/slicedToArray")),_Object$entries=_interopDefault(require("babel-runtime/core-js/object/entries")),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_this=void 0,get=function(e,r){return _newArrowCheck(this,_this),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$1=void 0,getInRecur=function(e,r,t){return _newArrowCheck(this,_this$1),utilsArray.isLastIndex(r,e)?get$1(r[e],t):hasKey$1(r[e],t)?getInRecur(e+1,r,get$1(r[e],t)):void 0}.bind(void 0),getIn=function(e,r){return _newArrowCheck(this,_this$1),0===e.length?void 0:getInRecur(0,e,r)}.bind(void 0),getIn$1=Fun.curry(getIn),_this$3=void 0,getKeys=function(e){return _newArrowCheck(this,_this$3),Array.isArray(e)?[].concat(_toConsumableArray(e.keys())):_Object$keys(e)}.bind(void 0),_this$4=void 0,hasIn=function(e,r,t){return _newArrowCheck(this,_this$4),isDeepEqual(getIn$1(e,t),r)}.bind(void 0),hasIn$1=Fun.curry(hasIn),_this$5=void 0,haveSameProps=function(e,r){_newArrowCheck(this,_this$5);var t=getKeys(e);return t.length===getKeys(r).length&&t.every(function(t){return _newArrowCheck(this,_this$5),hasKey$1(t,r)&&get$1(t,e)===get$1(t,r)}.bind(this))}.bind(void 0),haveSameProps$1=Fun.curry(haveSameProps),_this$6=void 0,mapObject=function(e,r){return _newArrowCheck(this,_this$6),_Object$entries(r).reduce(function(t,n){var i=_slicedToArray(n,2),o=i[0],s=i[1];return _newArrowCheck(this,_this$6),_extends({},t,_defineProperty({},o,e(s,o,r)))}.bind(this),{})}.bind(void 0),map=function(e,r){return _newArrowCheck(this,_this$6),Array.isArray(r)?r.map(e):mapObject(e,r)}.bind(void 0),map$1=Fun.curry(map),_this$7=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$7),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$7),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=Fun.curry(remove$1),_this$10=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$10),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$9=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$9);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$9),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,n){return _newArrowCheck(this,_this$9),_extends({},n,{current:set(e[r],t,n.current),previous:n.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$9);var n=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:n,origin:n}):_extends({},t,{previous:set(e[r-1],n,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,n){return _newArrowCheck(this,_this$9),t===removeAction?updateRemove(e,r,n):updateSet(e,r,t,n)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$9),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$9),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,n){return _newArrowCheck(this,_this$9),utilsArray.isLastIndex(e,t)?r(get$1(e[t],n)):copyOrCreate(e[t],e[t+1],n)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$9),function(t,n,i){return _newArrowCheck(this,_this$9),update(e,i,getNext(e,r,i,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$9),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction;var _this$8=void 0,remove$3=function(){return _newArrowCheck(this,_this$8),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this$8),updateInCurried(e,remove$3,r)}.bind(void 0),removeIn$1=Fun.curry(removeIn),_this$11=void 0,set$1=function(e,r,t){_newArrowCheck(this,_this$11);var n=shallowCopy(t);return n[e]=r,n}.bind(void 0),set$2=Fun.curry(set$1),_this$12=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this$12),updateInCurried(e,function(){return _newArrowCheck(this,_this$12),r}.bind(this),t)}.bind(void 0),setIn$1=Fun.curry(setIn),_this$13=void 0,xor=function(e,r){return _newArrowCheck(this,_this$13),Boolean(Number(e)^Number(r))}.bind(void 0),shallowEqual=function(e,r){return _newArrowCheck(this,_this$13),e===r||!xor(Array.isArray(e),Array.isArray(r))&&haveSameProps$1(e,r)}.bind(void 0),shallowEqual$1=Fun.curry(shallowEqual);exports.get=get$1,exports.getIn=getIn$1,exports.getKeys=getKeys,exports.hasIn=hasIn$1,exports.hasKey=hasKey$1,exports.haveSameProps=haveSameProps$1,exports.map=map$1,exports.remove=remove$2,exports.removeIn=removeIn$1,exports.set=set$2,exports.setIn=setIn$1,exports.shallowCopy=shallowCopy,exports.shallowEqual=shallowEqual$1,exports.updateIn=updateInCurried; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),_Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),utilsArray=require("@jumpn/utils-array"),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),_this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$2=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$3=Fun.curry(remove$2),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$1),utilsArray.isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$1),_extends({},i,{current:set(e[r],t,i.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var i=remove$3(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,i,n){return _newArrowCheck(this,_this$1),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,remove$1=function(){return _newArrowCheck(this,_this),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this),updateInCurried(e,remove$1,r)}.bind(void 0),removeIn$1=Fun.curry(removeIn);module.exports=removeIn$1; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),_Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),utilsArray=require("@jumpn/utils-array"),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),_this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$2=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$3=Fun.curry(remove$2),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$1),_extends({},i,{current:set(e[r],t,i.current),previous:i.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var i=remove$3(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$1),utilsArray.isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,i,n){return _newArrowCheck(this,_this$1),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,remove$1=function(){return _newArrowCheck(this,_this),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this),updateInCurried(e,remove$1,r)}.bind(void 0),removeIn$1=Fun.curry(removeIn);module.exports=removeIn$1; | ||
//# sourceMappingURL=removeIn.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),_Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),utilsArray=require("@jumpn/utils-array"),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),_this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=Fun.curry(remove$1),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$1),utilsArray.isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$1),_extends({},i,{current:set(e[r],t,i.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,i,n){return _newArrowCheck(this,_this$1),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this),updateInCurried(e,function(){return _newArrowCheck(this,_this),r}.bind(this),t)}.bind(void 0),setIn$1=Fun.curry(setIn);module.exports=setIn$1; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),_Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),utilsArray=require("@jumpn/utils-array"),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),_this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=Fun.curry(remove$1),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$1),_extends({},i,{current:set(e[r],t,i.current),previous:i.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$1),utilsArray.isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,i,n){return _newArrowCheck(this,_this$1),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this),updateInCurried(e,function(){return _newArrowCheck(this,_this),r}.bind(this),t)}.bind(void 0),setIn$1=Fun.curry(setIn);module.exports=setIn$1; | ||
//# sourceMappingURL=setIn.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),_newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),utilsArray=require("@jumpn/utils-array"),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),_this$1=void 0,get=function(e,r){return _newArrowCheck(this,_this$1),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$3=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$3),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$3),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=Fun.curry(remove$1),_this$4=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$4),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this=void 0,createReduceContext=function(e){_newArrowCheck(this,_this);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this),utilsArray.isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this),_extends({},i,{current:set(e[r],t,i.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this),function(t,i,n){return _newArrowCheck(this,_this),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction,module.exports=updateInCurried; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _Symbol=_interopDefault(require("babel-runtime/core-js/symbol")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),_newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),utilsArray=require("@jumpn/utils-array"),_objectWithoutProperties=_interopDefault(require("babel-runtime/helpers/objectWithoutProperties")),_toConsumableArray=_interopDefault(require("babel-runtime/helpers/toConsumableArray")),_this$1=void 0,get=function(e,r){return _newArrowCheck(this,_this$1),r[e]}.bind(void 0),get$1=Fun.curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$3=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$3),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$3),Array.isArray(r)?utilsArray.remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=Fun.curry(remove$1),_this$4=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$4),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this=void 0,createReduceContext=function(e){_newArrowCheck(this,_this);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this),_extends({},i,{current:set(e[r],t,i.current),previous:i.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this),utilsArray.isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this),function(t,i,n){return _newArrowCheck(this,_this),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=Fun.curry(updateIn);updateInCurried.remove=removeAction,module.exports=updateInCurried; | ||
//# sourceMappingURL=updateIn.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.UtilsComposite={})}(this,function(t){"use strict";function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,n){return n={exports:{}},t(n,n.exports),n.exports}var e=n(r(function(t,n){n.__esModule=!0,n.default=function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}})),i=r(function(t,n){function r(t,n,e){return function(){var i=e.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):r(t,n,i)}}Object.defineProperty(n,"__esModule",{value:!0}),n.flip=function(t){return function(n,r){return t(r,n)}},n.constant=function(t){return function(){return t}},n.on=function(t,n){return function(r,e){return t(n(r),n(e))}},n.compose=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=i;o>-1;o--)e=r[o].call(t,e);return e}},n.pipe=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=0;o<=i;o++)e=r[o].call(t,e);return e}},n.curry=function(t){return r(t,t.length,[])}});n(i);var o=i.curry,u=o(function(t,n){return e(this,void 0),n[t]}.bind(void 0)),c=Math.ceil,f=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?f:c)(t)},s=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},l=r(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),d=r(function(t){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)}),v=function(t,n,r){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},p=function(t){if(!h(t))throw TypeError(t+" is not an object!");return t},y=function(t){try{return!!t()}catch(t){return!0}},b=!y(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),g=l.document,m=h(g)&&h(g.createElement),O=function(t){return m?g.createElement(t):{}},_=!b&&!y(function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a}),S=function(t,n){if(!h(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!h(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!h(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!h(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},j=Object.defineProperty,w={f:b?Object.defineProperty:function(t,n,r){if(p(t),n=S(n,!0),p(r),_)try{return j(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},A=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},M=b?function(t,n,r){return w.f(t,n,A(1,r))}:function(t,n,r){return t[n]=r,t},P=function(t,n,r){var e,i,o,u=t&P.F,c=t&P.G,f=t&P.S,a=t&P.P,s=t&P.B,h=t&P.W,p=c?d:d[n]||(d[n]={}),y=p.prototype,b=c?l:f?l[n]:(l[n]||{}).prototype;c&&(r=n);for(e in r)(i=!u&&b&&void 0!==b[e])&&e in p||(o=i?b[e]:r[e],p[e]=c&&"function"!=typeof b[e]?r[e]:s&&i?v(o,l):h&&b[e]==o?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(o):a&&"function"==typeof o?v(Function.call,o):o,a&&((p.virtual||(p.virtual={}))[e]=o,t&P.R&&y&&!y[e]&&M(y,e,o)))};P.F=1,P.G=2,P.S=4,P.P=8,P.B=16,P.W=32,P.U=64,P.R=128;var E=P,x=M,T={}.hasOwnProperty,L=function(t,n){return T.call(t,n)},k={},I={}.toString,N=function(t){return I.call(t).slice(8,-1)},F=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==N(t)?t.split(""):Object(t)},C=function(t){return F(s(t))},D=Math.min,R=function(t){return t>0?D(a(t),9007199254740991):0},G=Math.max,V=Math.min,W=l["__core-js_shared__"]||(l["__core-js_shared__"]={}),K=function(t){return W[t]||(W[t]={})},B=0,H=Math.random(),J=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++B+H).toString(36))},q=K("keys"),U=function(t){return q[t]||(q[t]=J(t))},z=function(t){return function(n,r,e){var i,o=C(n),u=R(o.length),c=function(t,n){return(t=a(t))<0?G(t+n,0):V(t,n)}(e,u);if(t&&r!=r){for(;u>c;)if((i=o[c++])!=i)return!0}else for(;u>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}}(!1),Y=U("IE_PROTO"),Q=function(t,n){var r,e=C(t),i=0,o=[];for(r in e)r!=Y&&L(e,r)&&o.push(r);for(;n.length>i;)L(e,r=n[i++])&&(~z(o,r)||o.push(r));return o},X="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Z=Object.keys||function(t){return Q(t,X)},$=b?Object.defineProperties:function(t,n){p(t);for(var r,e=Z(n),i=e.length,o=0;i>o;)w.f(t,r=e[o++],n[r]);return t},tt=l.document,nt=tt&&tt.documentElement,rt=U("IE_PROTO"),et=function(){},it=function(){var t,n=O("iframe"),r=X.length;for(n.style.display="none",nt.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),it=t.F;r--;)delete it.prototype[X[r]];return it()},ot=Object.create||function(t,n){var r;return null!==t?(et.prototype=p(t),r=new et,et.prototype=null,r[rt]=t):r=it(),void 0===n?r:$(r,n)},ut=r(function(t){var n=K("wks"),r=l.Symbol,e="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=e&&r[t]||(e?r:J)("Symbol."+t))}).store=n}),ct=w.f,ft=ut("toStringTag"),at=function(t,n,r){t&&!L(t=r?t:t.prototype,ft)&&ct(t,ft,{configurable:!0,value:n})},st={};M(st,ut("iterator"),function(){return this});var lt=function(t,n,r){t.prototype=ot(st,{next:A(1,r)}),at(t,n+" Iterator")},dt=function(t){return Object(s(t))},vt=U("IE_PROTO"),ht=Object.prototype,pt=Object.getPrototypeOf||function(t){return t=dt(t),L(t,vt)?t[vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ht:null},yt=ut("iterator"),bt=!([].keys&&"next"in[].keys()),gt=function(){return this},mt=function(t,n,r,e,i,o,u){lt(r,n,e);var c,f,a,s=function(t){if(!bt&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},l=n+" Iterator",d="values"==i,v=!1,h=t.prototype,p=h[yt]||h["@@iterator"]||i&&h[i],y=p||s(i),b=i?d?s("entries"):y:void 0,g="Array"==n?h.entries||p:p;if(g&&(a=pt(g.call(new t)))!==Object.prototype&&a.next&&at(a,l,!0),d&&p&&"values"!==p.name&&(v=!0,y=function(){return p.call(this)}),u&&(bt||v||!h[yt])&&M(h,yt,y),k[n]=y,k[l]=gt,i)if(c={values:d?y:s("values"),keys:o?y:s("keys"),entries:b},u)for(f in c)f in h||x(h,f,c[f]);else E(E.P+E.F*(bt||v),n,c);return c},Ot=function(t){return function(n,r){var e,i,o=String(s(n)),u=a(r),c=o.length;return u<0||u>=c?t?"":void 0:(e=o.charCodeAt(u))<55296||e>56319||u+1===c||(i=o.charCodeAt(u+1))<56320||i>57343?t?o.charAt(u):e:t?o.slice(u,u+2):i-56320+(e-55296<<10)+65536}}(!0);mt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=Ot(n,r),this._i+=t.length,{value:t,done:!1})});var _t=ut("iterator"),St=Array.prototype,jt=function(t,n,r){n in t?w.f(t,n,A(0,r)):t[n]=r},wt=ut("toStringTag"),At="Arguments"==N(function(){return arguments}()),Mt=function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),wt))?r:At?N(n):"Object"==(e=N(n))&&"function"==typeof n.callee?"Arguments":e},Pt=ut("iterator"),Et=d.getIteratorMethod=function(t){if(void 0!=t)return t[Pt]||t["@@iterator"]||k[Mt(t)]},xt=ut("iterator"),Tt=!1;try{[7][xt]().return=function(){Tt=!0}}catch(t){}E(E.S+E.F*!function(t,n){if(!n&&!Tt)return!1;var r=!1;try{var e=[7],i=e[xt]();i.next=function(){return{done:r=!0}},e[xt]=function(){return i},t(e)}catch(t){}return r}(function(t){}),"Array",{from:function(t){var n,r,e,i,o=dt(t),u="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,a=void 0!==f,s=0,l=Et(o);if(a&&(f=v(f,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&function(t){return void 0!==t&&(k.Array===t||St[_t]===t)}(l))for(r=new u(n=R(o.length));n>s;s++)jt(r,s,a?f(o[s],s):o[s]);else for(i=l.call(o),r=new u;!(e=i.next()).done;s++)jt(r,s,a?function(t,n,r,e){try{return e?n(p(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&p(i.call(t)),n}}(i,f,[e.value,s],!0):e.value);return r.length=s,r}});var Lt=d.Array.from,kt=r(function(t){t.exports={default:Lt,__esModule:!0}}),It=n(kt),Nt=n(r(function(t,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(kt);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,r.default)(t)}})),Ft=r(function(t,n){function r(t,n,e){return function(){var i=e.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):r(t,n,i)}}Object.defineProperty(n,"__esModule",{value:!0}),n.flip=function(t){return function(n,r){return t(r,n)}},n.constant=function(t){return function(){return t}},n.on=function(t,n){return function(r,e){return t(n(r),n(e))}},n.compose=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=i;o>-1;o--)e=r[o].call(t,e);return e}},n.pipe=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=0;o<=i;o++)e=r[o].call(t,e);return e}},n.curry=function(t){return r(t,t.length,[])}});n(Ft);var Ct=Ft.curry,Dt={f:Object.getOwnPropertySymbols},Rt={f:{}.propertyIsEnumerable},Gt=Object.assign,Vt=!Gt||y(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=Gt({},t)[r]||Object.keys(Gt({},n)).join("")!=e})?function(t,n){for(var r=dt(t),e=arguments.length,i=1,o=Dt.f,u=Rt.f;e>i;)for(var c,f=F(arguments[i++]),a=o?Z(f).concat(o(f)):Z(f),s=a.length,l=0;s>l;)u.call(f,c=a[l++])&&(r[c]=f[c]);return r}:Gt;E(E.S+E.F,"Object",{assign:Vt});var Wt=d.Object.assign,Kt=r(function(t){t.exports={default:Wt,__esModule:!0}});n(Kt);var Bt=n(r(function(t,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(Kt);n.default=r.default||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}}));!function(t,n){var r=(d.Object||{})[t]||Object[t],e={};e[t]=n(r),E(E.S+E.F*y(function(){r(1)}),"Object",e)}("keys",function(){return function(t){return Z(dt(t))}});var Ht=d.Object.keys,Jt=n(r(function(t){t.exports={default:Ht,__esModule:!0}})),qt=Math.floor;E(E.S,"Number",{isInteger:function(t){return!h(t)&&isFinite(t)&&qt(t)===t}});var Ut=d.Number.isInteger,zt=n(r(function(t){t.exports={default:Ut,__esModule:!0}})),Yt=n(r(function(t,n){n.__esModule=!0,n.default=function(t,n){var r={};for(var e in t)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}})),Qt=(Ct(function(t,n){return e(this,void 0),[].concat(Nt(n),Nt(t))}.bind(void 0)),function(t){return e(this,void 0),Array.isArray(t)?t:[t]}.bind(void 0),Ct(function(t,n){return e(this,void 0),n===t.length-1}.bind(void 0))),Xt=(Ct(function(t,n){return e(this,void 0),Qt(t,n)?0:n+1}.bind(void 0)),function(t){return e(this,void 0),Math.max.apply(Math,Nt(Jt(t)))+1}.bind(void 0)),Zt=(function(t){return e(this,void 0),It("length"in t?t:Bt({},t,{length:Xt(t)}))}.bind(void 0),Ct(function(t,n,r){return e(this,void 0),[].concat(Nt(r.slice(0,t)),Nt(n),Nt(r.slice(t+1)))}.bind(void 0)),function(t,n){return e(this,void 0),zt(t)&&t>=n}.bind(void 0)),$t=function(t){return e(this,void 0),Zt(Number(t),0)}.bind(void 0),tn=(function(t){t.length;var n=Yt(t,["length"]);return e(this,void 0),Jt(n).every($t)}.bind(void 0),Ct(function(t,n){return e(this,void 0),[].concat(Nt(t),Nt(n))}.bind(void 0)),Ct(function(t,n,r,i){return e(this,void 0),i.reduce(function(r,i,o){return e(this,void 0),t(i,o,r)?n(r,i,o):r}.bind(this),r)}.bind(void 0)),Ct(function(t,n,r,i){e(this,void 0);var o=r;return i.every(function(r,i){e(this,void 0);var u=t(r,i,o);return u&&(o=n(o,r,i)),u}.bind(this)),o}.bind(void 0)),Ct(function(t,n,r){return e(this,void 0),[].concat(Nt(r.slice(0,t)),Nt(r.slice(t+n)))}.bind(void 0))),nn=(Ct(function(t,n){return e(this,void 0),[].concat(Nt(Array(t))).map(function(){return e(this,void 0),n}.bind(this))}.bind(void 0)),Ct(function(t,n,r){return e(this,void 0),[].concat(Nt(r.slice(0,t)),Nt(n),Nt(r.slice(t+n.length)))}.bind(void 0)),Ct(function(t,n){return e(this,void 0),n<0?t.length-n:n}.bind(void 0)),o(function(t,n){return e(this,void 0),Object.prototype.hasOwnProperty.call(n,t)}.bind(void 0))),rn=function(t,n,r){return e(this,void 0),Qt(n,t)?u(n[t],r):nn(n[t],r)?rn(t+1,n,u(n[t],r)):void 0}.bind(void 0),en=o(function(t,n){return e(this,void 0),0===t.length?void 0:rn(0,t,n)}.bind(void 0)),on=function(t){return e(this,void 0),Array.isArray(t)?[].concat(Nt(t.keys())):Jt(t)}.bind(void 0),un=o(function(t,n,r){return e(this,void 0),function t(n,r){if(n===r)return!0;var e,i=Array.isArray(n),o=Array.isArray(r);if(i&&o){if(n.length!=r.length)return!1;for(e=0;e<n.length;e++)if(!t(n[e],r[e]))return!1;return!0}if(i!=o)return!1;if(n&&r&&"object"==typeof n&&"object"==typeof r){var u=Object.keys(n);if(u.length!==Object.keys(r).length)return!1;var c=n instanceof Date,f=r instanceof Date;if(c&&f)return n.getTime()==r.getTime();if(c!=f)return!1;var a=n instanceof RegExp,s=r instanceof RegExp;if(a&&s)return n.toString()==r.toString();if(a!=s)return!1;for(e=0;e<u.length;e++)if(!Object.prototype.hasOwnProperty.call(r,u[e]))return!1;for(e=0;e<u.length;e++)if(!t(n[u[e]],r[u[e]]))return!1;return!0}return!1}(en(t,r),n)}.bind(void 0)),cn=o(function(t,n){e(this,void 0);var r=on(t);return r.length===on(n).length&&r.every(function(r){return e(this,void 0),nn(r,n)&&u(r,t)===u(r,n)}.bind(this))}.bind(void 0));E(E.S+E.F*!b,"Object",{defineProperty:w.f});var fn=d.Object,an=r(function(t){t.exports={default:function(t,n,r){return fn.defineProperty(t,n,r)},__esModule:!0}});n(an);var sn=n(r(function(t,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(an);n.default=function(t,n,e){return n in t?(0,r.default)(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}})),ln=function(t,n){return{value:n,done:!!t}};mt(Array,"Array",function(t,n){this._t=C(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,ln(1)):"keys"==n?ln(0,r):"values"==n?ln(0,t[r]):ln(0,[r,t[r]])},"values");k.Arguments=k.Array;for(var dn=ut("toStringTag"),vn="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),hn=0;hn<vn.length;hn++){var pn=vn[hn],yn=l[pn],bn=yn&&yn.prototype;bn&&!bn[dn]&&M(bn,dn,pn),k[pn]=k.Array}var gn=ut("iterator"),mn=d.isIterable=function(t){var n=Object(t);return void 0!==n[gn]||"@@iterator"in n||k.hasOwnProperty(Mt(n))},On=r(function(t){t.exports={default:mn,__esModule:!0}});n(On);var _n=d.getIterator=function(t){var n=Et(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return p(n.call(t))},Sn=r(function(t){t.exports={default:_n,__esModule:!0}});n(Sn);var jn=n(r(function(t,n){function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var e=r(On),i=r(Sn);n.default=function(){return function(t,n){if(Array.isArray(t))return t;if((0,e.default)(Object(t)))return function(t,n){var r=[],e=!0,o=!1,u=void 0;try{for(var c,f=(0,i.default)(t);!(e=(c=f.next()).done)&&(r.push(c.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{!e&&f.return&&f.return()}finally{if(o)throw u}}return r}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()})),wn=Rt.f,An=function(t){return function(n){for(var r,e=C(n),i=Z(e),o=i.length,u=0,c=[];o>u;)wn.call(e,r=i[u++])&&c.push(t?[r,e[r]]:e[r]);return c}}(!0);E(E.S,"Object",{entries:function(t){return An(t)}});var Mn=d.Object.entries,Pn=n(r(function(t){t.exports={default:Mn,__esModule:!0}})),En=function(t,n){return e(this,void 0),Pn(n).reduce(function(r,i){var o=jn(i,2),u=o[0],c=o[1];return e(this,void 0),Bt({},r,sn({},u,t(c,u,n)))}.bind(this),{})}.bind(void 0),xn=o(function(t,n){return e(this,void 0),Array.isArray(n)?n.map(t):En(t,n)}.bind(void 0)),Tn=function(t,n){n[t];var r=Yt(n,[t]);return e(this,void 0),r}.bind(void 0),Ln=o(function(t,n){return e(this,void 0),Array.isArray(n)?tn(t,1,n):Tn(t,n)}.bind(void 0)),kn=r(function(t){var n=J("meta"),r=w.f,e=0,i=Object.isExtensible||function(){return!0},o=!y(function(){return i(Object.preventExtensions({}))}),u=function(t){r(t,n,{value:{i:"O"+ ++e,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,r){if(!h(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!L(t,n)){if(!i(t))return"F";if(!r)return"E";u(t)}return t[n].i},getWeak:function(t,r){if(!L(t,n)){if(!i(t))return!0;if(!r)return!1;u(t)}return t[n].w},onFreeze:function(t){return o&&c.NEED&&i(t)&&!L(t,n)&&u(t),t}}}),In={f:ut},Nn=w.f,Fn=function(t){var n=d.Symbol||(d.Symbol={});"_"==t.charAt(0)||t in n||Nn(n,t,{value:In.f(t)})},Cn=Array.isArray||function(t){return"Array"==N(t)},Dn=X.concat("length","prototype"),Rn={f:Object.getOwnPropertyNames||function(t){return Q(t,Dn)}},Gn=Rn.f,Vn={}.toString,Wn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kn={f:function(t){return Wn&&"[object Window]"==Vn.call(t)?function(t){try{return Gn(t)}catch(t){return Wn.slice()}}(t):Gn(C(t))}},Bn=Object.getOwnPropertyDescriptor,Hn={f:b?Bn:function(t,n){if(t=C(t),n=S(n,!0),_)try{return Bn(t,n)}catch(t){}if(L(t,n))return A(!Rt.f.call(t,n),t[n])}},Jn=kn.KEY,qn=Hn.f,Un=w.f,zn=Kn.f,Yn=l.Symbol,Qn=l.JSON,Xn=Qn&&Qn.stringify,Zn=ut("_hidden"),$n=ut("toPrimitive"),tr={}.propertyIsEnumerable,nr=K("symbol-registry"),rr=K("symbols"),er=K("op-symbols"),ir=Object.prototype,or="function"==typeof Yn,ur=l.QObject,cr=!ur||!ur.prototype||!ur.prototype.findChild,fr=b&&y(function(){return 7!=ot(Un({},"a",{get:function(){return Un(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=qn(ir,n);e&&delete ir[n],Un(t,n,r),e&&t!==ir&&Un(ir,n,e)}:Un,ar=function(t){var n=rr[t]=ot(Yn.prototype);return n._k=t,n},sr=or&&"symbol"==typeof Yn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Yn},lr=function(t,n,r){return t===ir&&lr(er,n,r),p(t),n=S(n,!0),p(r),L(rr,n)?(r.enumerable?(L(t,Zn)&&t[Zn][n]&&(t[Zn][n]=!1),r=ot(r,{enumerable:A(0,!1)})):(L(t,Zn)||Un(t,Zn,A(1,{})),t[Zn][n]=!0),fr(t,n,r)):Un(t,n,r)},dr=function(t,n){p(t);for(var r,e=function(t){var n=Z(t),r=Dt.f;if(r)for(var e,i=r(t),o=Rt.f,u=0;i.length>u;)o.call(t,e=i[u++])&&n.push(e);return n}(n=C(n)),i=0,o=e.length;o>i;)lr(t,r=e[i++],n[r]);return t},vr=function(t){var n=tr.call(this,t=S(t,!0));return!(this===ir&&L(rr,t)&&!L(er,t))&&(!(n||!L(this,t)||!L(rr,t)||L(this,Zn)&&this[Zn][t])||n)},hr=function(t,n){if(t=C(t),n=S(n,!0),t!==ir||!L(rr,n)||L(er,n)){var r=qn(t,n);return!r||!L(rr,n)||L(t,Zn)&&t[Zn][n]||(r.enumerable=!0),r}},pr=function(t){for(var n,r=zn(C(t)),e=[],i=0;r.length>i;)L(rr,n=r[i++])||n==Zn||n==Jn||e.push(n);return e},yr=function(t){for(var n,r=t===ir,e=zn(r?er:C(t)),i=[],o=0;e.length>o;)!L(rr,n=e[o++])||r&&!L(ir,n)||i.push(rr[n]);return i};or||(x((Yn=function(){if(this instanceof Yn)throw TypeError("Symbol is not a constructor!");var t=J(arguments.length>0?arguments[0]:void 0),n=function(r){this===ir&&n.call(er,r),L(this,Zn)&&L(this[Zn],t)&&(this[Zn][t]=!1),fr(this,t,A(1,r))};return b&&cr&&fr(ir,t,{configurable:!0,set:n}),ar(t)}).prototype,"toString",function(){return this._k}),Hn.f=hr,w.f=lr,Rn.f=Kn.f=pr,Rt.f=vr,Dt.f=yr,In.f=function(t){return ar(ut(t))}),E(E.G+E.W+E.F*!or,{Symbol:Yn});for(var br="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),gr=0;br.length>gr;)ut(br[gr++]);for(var mr=Z(ut.store),Or=0;mr.length>Or;)Fn(mr[Or++]);E(E.S+E.F*!or,"Symbol",{for:function(t){return L(nr,t+="")?nr[t]:nr[t]=Yn(t)},keyFor:function(t){if(!sr(t))throw TypeError(t+" is not a symbol!");for(var n in nr)if(nr[n]===t)return n},useSetter:function(){cr=!0},useSimple:function(){cr=!1}}),E(E.S+E.F*!or,"Object",{create:function(t,n){return void 0===n?ot(t):dr(ot(t),n)},defineProperty:lr,defineProperties:dr,getOwnPropertyDescriptor:hr,getOwnPropertyNames:pr,getOwnPropertySymbols:yr}),Qn&&E(E.S+E.F*(!or||y(function(){var t=Yn();return"[null]"!=Xn([t])||"{}"!=Xn({a:t})||"{}"!=Xn(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!sr(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return"function"==typeof(n=e[1])&&(r=n),!r&&Cn(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!sr(n))return n}),e[1]=n,Xn.apply(Qn,e)}}}),Yn.prototype[$n]||M(Yn.prototype,$n,Yn.prototype.valueOf),at(Yn,"Symbol"),at(Math,"Math",!0),at(l.JSON,"JSON",!0),Fn("asyncIterator"),Fn("observable");var _r=d.Symbol,Sr=n(r(function(t){t.exports={default:_r,__esModule:!0}})),jr=function(t){return e(this,void 0),Array.isArray(t)?[].concat(Nt(t)):Bt({},t)}.bind(void 0),wr=function(t){e(this,void 0);var n=jr(t);return{origin:n,previous:void 0,current:n}}.bind(void 0),Ar=function(t){return e(this,void 0),"number"==typeof t?[]:{}}.bind(void 0),Mr=function(t,n,r){return e(this,void 0),nn(t,r)?jr(u(t,r)):Ar(n)}.bind(void 0),Pr=function(t,n,r,i){return e(this,void 0),Qt(t,r)?n(u(t[r],i)):Mr(t[r],t[r+1],i)}.bind(void 0),Er=function(t,n,r){return e(this,void 0),r[t]=n,u(t,r)}.bind(void 0),xr=function(t,n,r,i){return e(this,void 0),Bt({},i,{current:Er(t[n],r,i.current)})}.bind(void 0),Tr=function(t,n,r){e(this,void 0);var i=Ln(t[n],r.current);return 0===n?Bt({},r,{current:i,origin:i}):Bt({},r,{previous:Er(t[n-1],i,r.previous)})}.bind(void 0),Lr=Sr("composite.updateIn.removeAction"),kr=function(t,n,r,i){return e(this,void 0),r===Lr?Tr(t,n,i):xr(t,n,r,i)}.bind(void 0),Ir=function(t,n){return e(this,void 0),function(r,i,o){return e(this,void 0),kr(t,o,Pr(t,n,o,r.current),r)}.bind(this)}.bind(void 0),Nr=o(function(t,n,r){return e(this,void 0),0===t.length?r:t.reduce(Ir(t,n),wr(r)).origin}.bind(void 0));Nr.remove=Lr;var Fr=function(){return e(this,void 0),Nr.remove}.bind(void 0),Cr=o(function(t,n){return e(this,void 0),Nr(t,Fr,n)}.bind(void 0)),Dr=o(function(t,n,r){e(this,void 0);var i=jr(r);return i[t]=n,i}.bind(void 0)),Rr=o(function(t,n,r){return e(this,void 0),Nr(t,function(){return e(this,void 0),n}.bind(this),r)}.bind(void 0)),Gr=function(t,n){return e(this,void 0),Boolean(Number(t)^Number(n))}.bind(void 0),Vr=o(function(t,n){return e(this,void 0),t===n||!Gr(Array.isArray(t),Array.isArray(n))&&cn(t,n)}.bind(void 0));t.get=u,t.getIn=en,t.getKeys=on,t.hasIn=un,t.hasKey=nn,t.haveSameProps=cn,t.map=xn,t.remove=Ln,t.removeIn=Cr,t.set=Dr,t.setIn=Rr,t.shallowCopy=jr,t.shallowEqual=Vr,t.updateIn=Nr,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.UtilsComposite={})}(this,function(t){"use strict";function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,n){return n={exports:{}},t(n,n.exports),n.exports}var e=n(r(function(t,n){n.__esModule=!0,n.default=function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}})),i=r(function(t,n){function r(t,n,e){return function(){var i=e.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):r(t,n,i)}}Object.defineProperty(n,"__esModule",{value:!0}),n.flip=function(t){return function(n,r){return t(r,n)}},n.constant=function(t){return function(){return t}},n.on=function(t,n){return function(r,e){return t(n(r),n(e))}},n.compose=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=i;o>-1;o--)e=r[o].call(t,e);return e}},n.pipe=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=0;o<=i;o++)e=r[o].call(t,e);return e}},n.curry=function(t){return r(t,t.length,[])}});n(i);var o=i.curry,u=o(function(t,n){return e(this,void 0),n[t]}.bind(void 0)),c=Math.ceil,f=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?f:c)(t)},s=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},l=r(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),d=r(function(t){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)}),v=function(t,n,r){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},p=function(t){if(!h(t))throw TypeError(t+" is not an object!");return t},y=function(t){try{return!!t()}catch(t){return!0}},b=!y(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),g=l.document,m=h(g)&&h(g.createElement),O=function(t){return m?g.createElement(t):{}},_=!b&&!y(function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a}),S=function(t,n){if(!h(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!h(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!h(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!h(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},j=Object.defineProperty,w={f:b?Object.defineProperty:function(t,n,r){if(p(t),n=S(n,!0),p(r),_)try{return j(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},A=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},M=b?function(t,n,r){return w.f(t,n,A(1,r))}:function(t,n,r){return t[n]=r,t},P=function(t,n,r){var e,i,o,u=t&P.F,c=t&P.G,f=t&P.S,a=t&P.P,s=t&P.B,h=t&P.W,p=c?d:d[n]||(d[n]={}),y=p.prototype,b=c?l:f?l[n]:(l[n]||{}).prototype;c&&(r=n);for(e in r)(i=!u&&b&&void 0!==b[e])&&e in p||(o=i?b[e]:r[e],p[e]=c&&"function"!=typeof b[e]?r[e]:s&&i?v(o,l):h&&b[e]==o?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(o):a&&"function"==typeof o?v(Function.call,o):o,a&&((p.virtual||(p.virtual={}))[e]=o,t&P.R&&y&&!y[e]&&M(y,e,o)))};P.F=1,P.G=2,P.S=4,P.P=8,P.B=16,P.W=32,P.U=64,P.R=128;var E=P,x=M,T={}.hasOwnProperty,L=function(t,n){return T.call(t,n)},k={},I={}.toString,N=function(t){return I.call(t).slice(8,-1)},F=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==N(t)?t.split(""):Object(t)},C=function(t){return F(s(t))},D=Math.min,R=function(t){return t>0?D(a(t),9007199254740991):0},G=Math.max,V=Math.min,W=l["__core-js_shared__"]||(l["__core-js_shared__"]={}),K=function(t){return W[t]||(W[t]={})},B=0,H=Math.random(),J=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++B+H).toString(36))},q=K("keys"),U=function(t){return q[t]||(q[t]=J(t))},z=function(t){return function(n,r,e){var i,o=C(n),u=R(o.length),c=function(t,n){return(t=a(t))<0?G(t+n,0):V(t,n)}(e,u);if(t&&r!=r){for(;u>c;)if((i=o[c++])!=i)return!0}else for(;u>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}}(!1),Y=U("IE_PROTO"),Q=function(t,n){var r,e=C(t),i=0,o=[];for(r in e)r!=Y&&L(e,r)&&o.push(r);for(;n.length>i;)L(e,r=n[i++])&&(~z(o,r)||o.push(r));return o},X="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Z=Object.keys||function(t){return Q(t,X)},$=b?Object.defineProperties:function(t,n){p(t);for(var r,e=Z(n),i=e.length,o=0;i>o;)w.f(t,r=e[o++],n[r]);return t},tt=l.document,nt=tt&&tt.documentElement,rt=U("IE_PROTO"),et=function(){},it=function(){var t,n=O("iframe"),r=X.length;for(n.style.display="none",nt.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),it=t.F;r--;)delete it.prototype[X[r]];return it()},ot=Object.create||function(t,n){var r;return null!==t?(et.prototype=p(t),r=new et,et.prototype=null,r[rt]=t):r=it(),void 0===n?r:$(r,n)},ut=r(function(t){var n=K("wks"),r=l.Symbol,e="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=e&&r[t]||(e?r:J)("Symbol."+t))}).store=n}),ct=w.f,ft=ut("toStringTag"),at=function(t,n,r){t&&!L(t=r?t:t.prototype,ft)&&ct(t,ft,{configurable:!0,value:n})},st={};M(st,ut("iterator"),function(){return this});var lt=function(t,n,r){t.prototype=ot(st,{next:A(1,r)}),at(t,n+" Iterator")},dt=function(t){return Object(s(t))},vt=U("IE_PROTO"),ht=Object.prototype,pt=Object.getPrototypeOf||function(t){return t=dt(t),L(t,vt)?t[vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ht:null},yt=ut("iterator"),bt=!([].keys&&"next"in[].keys()),gt=function(){return this},mt=function(t,n,r,e,i,o,u){lt(r,n,e);var c,f,a,s=function(t){if(!bt&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},l=n+" Iterator",d="values"==i,v=!1,h=t.prototype,p=h[yt]||h["@@iterator"]||i&&h[i],y=p||s(i),b=i?d?s("entries"):y:void 0,g="Array"==n?h.entries||p:p;if(g&&(a=pt(g.call(new t)))!==Object.prototype&&a.next&&at(a,l,!0),d&&p&&"values"!==p.name&&(v=!0,y=function(){return p.call(this)}),u&&(bt||v||!h[yt])&&M(h,yt,y),k[n]=y,k[l]=gt,i)if(c={values:d?y:s("values"),keys:o?y:s("keys"),entries:b},u)for(f in c)f in h||x(h,f,c[f]);else E(E.P+E.F*(bt||v),n,c);return c},Ot=function(t){return function(n,r){var e,i,o=String(s(n)),u=a(r),c=o.length;return u<0||u>=c?t?"":void 0:(e=o.charCodeAt(u))<55296||e>56319||u+1===c||(i=o.charCodeAt(u+1))<56320||i>57343?t?o.charAt(u):e:t?o.slice(u,u+2):i-56320+(e-55296<<10)+65536}}(!0);mt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=Ot(n,r),this._i+=t.length,{value:t,done:!1})});var _t=ut("iterator"),St=Array.prototype,jt=function(t,n,r){n in t?w.f(t,n,A(0,r)):t[n]=r},wt=ut("toStringTag"),At="Arguments"==N(function(){return arguments}()),Mt=function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),wt))?r:At?N(n):"Object"==(e=N(n))&&"function"==typeof n.callee?"Arguments":e},Pt=ut("iterator"),Et=d.getIteratorMethod=function(t){if(void 0!=t)return t[Pt]||t["@@iterator"]||k[Mt(t)]},xt=ut("iterator"),Tt=!1;try{[7][xt]().return=function(){Tt=!0}}catch(t){}E(E.S+E.F*!function(t,n){if(!n&&!Tt)return!1;var r=!1;try{var e=[7],i=e[xt]();i.next=function(){return{done:r=!0}},e[xt]=function(){return i},t(e)}catch(t){}return r}(function(t){}),"Array",{from:function(t){var n,r,e,i,o=dt(t),u="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,a=void 0!==f,s=0,l=Et(o);if(a&&(f=v(f,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&function(t){return void 0!==t&&(k.Array===t||St[_t]===t)}(l))for(r=new u(n=R(o.length));n>s;s++)jt(r,s,a?f(o[s],s):o[s]);else for(i=l.call(o),r=new u;!(e=i.next()).done;s++)jt(r,s,a?function(t,n,r,e){try{return e?n(p(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&p(i.call(t)),n}}(i,f,[e.value,s],!0):e.value);return r.length=s,r}});var Lt=d.Array.from,kt=r(function(t){t.exports={default:Lt,__esModule:!0}}),It=n(kt),Nt=n(r(function(t,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(kt);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,r.default)(t)}})),Ft=r(function(t,n){function r(t,n,e){return function(){var i=e.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):r(t,n,i)}}Object.defineProperty(n,"__esModule",{value:!0}),n.flip=function(t){return function(n,r){return t(r,n)}},n.constant=function(t){return function(){return t}},n.on=function(t,n){return function(r,e){return t(n(r),n(e))}},n.compose=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=i;o>-1;o--)e=r[o].call(t,e);return e}},n.pipe=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var i=r.length-1;return function(n){for(var e=n,o=0;o<=i;o++)e=r[o].call(t,e);return e}},n.curry=function(t){return r(t,t.length,[])}});n(Ft);var Ct=Ft.curry,Dt={f:Object.getOwnPropertySymbols},Rt={f:{}.propertyIsEnumerable},Gt=Object.assign,Vt=!Gt||y(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=Gt({},t)[r]||Object.keys(Gt({},n)).join("")!=e})?function(t,n){for(var r=dt(t),e=arguments.length,i=1,o=Dt.f,u=Rt.f;e>i;)for(var c,f=F(arguments[i++]),a=o?Z(f).concat(o(f)):Z(f),s=a.length,l=0;s>l;)u.call(f,c=a[l++])&&(r[c]=f[c]);return r}:Gt;E(E.S+E.F,"Object",{assign:Vt});var Wt=d.Object.assign,Kt=r(function(t){t.exports={default:Wt,__esModule:!0}});n(Kt);var Bt=n(r(function(t,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(Kt);n.default=r.default||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}}));!function(t,n){var r=(d.Object||{})[t]||Object[t],e={};e[t]=n(r),E(E.S+E.F*y(function(){r(1)}),"Object",e)}("keys",function(){return function(t){return Z(dt(t))}});var Ht=d.Object.keys,Jt=n(r(function(t){t.exports={default:Ht,__esModule:!0}})),qt=Math.floor;E(E.S,"Number",{isInteger:function(t){return!h(t)&&isFinite(t)&&qt(t)===t}});var Ut=d.Number.isInteger,zt=n(r(function(t){t.exports={default:Ut,__esModule:!0}})),Yt=n(r(function(t,n){n.__esModule=!0,n.default=function(t,n){var r={};for(var e in t)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}})),Qt=(Ct(function(t,n){return e(this,void 0),[].concat(Nt(n),Nt(t))}.bind(void 0)),function(t){return e(this,void 0),Array.isArray(t)?t:[t]}.bind(void 0),Ct(function(t,n){return e(this,void 0),n===t.length-1}.bind(void 0))),Xt=(Ct(function(t,n){return e(this,void 0),Qt(t,n)?0:n+1}.bind(void 0)),function(t){return e(this,void 0),Math.max.apply(Math,Nt(Jt(t)))+1}.bind(void 0)),Zt=(function(t){return e(this,void 0),It("length"in t?t:Bt({},t,{length:Xt(t)}))}.bind(void 0),Ct(function(t,n,r){return e(this,void 0),[].concat(Nt(r.slice(0,t)),Nt(n),Nt(r.slice(t+1)))}.bind(void 0)),function(t,n){return e(this,void 0),zt(t)&&t>=n}.bind(void 0)),$t=function(t){return e(this,void 0),Zt(Number(t),0)}.bind(void 0),tn=(function(t){t.length;var n=Yt(t,["length"]);return e(this,void 0),Jt(n).every($t)}.bind(void 0),Ct(function(t,n){return e(this,void 0),[].concat(Nt(t),Nt(n))}.bind(void 0)),Ct(function(t,n,r,i){return e(this,void 0),i.reduce(function(r,i,o){return e(this,void 0),t(i,o,r)?n(r,i,o):r}.bind(this),r)}.bind(void 0)),Ct(function(t,n,r,i){e(this,void 0);var o=r;return i.every(function(r,i){e(this,void 0);var u=t(r,i,o);return u&&(o=n(o,r,i)),u}.bind(this)),o}.bind(void 0)),Ct(function(t,n,r){return e(this,void 0),[].concat(Nt(r.slice(0,t)),Nt(r.slice(t+n)))}.bind(void 0))),nn=(Ct(function(t,n){return e(this,void 0),[].concat(Nt(Array(t))).map(function(){return e(this,void 0),n}.bind(this))}.bind(void 0)),Ct(function(t,n,r){return e(this,void 0),[].concat(Nt(r.slice(0,t)),Nt(n),Nt(r.slice(t+n.length)))}.bind(void 0)),Ct(function(t,n){return e(this,void 0),n<0?t.length-n:n}.bind(void 0)),o(function(t,n){return e(this,void 0),Object.prototype.hasOwnProperty.call(n,t)}.bind(void 0))),rn=function(t,n,r){return e(this,void 0),Qt(n,t)?u(n[t],r):nn(n[t],r)?rn(t+1,n,u(n[t],r)):void 0}.bind(void 0),en=o(function(t,n){return e(this,void 0),0===t.length?void 0:rn(0,t,n)}.bind(void 0)),on=function(t){return e(this,void 0),Array.isArray(t)?[].concat(Nt(t.keys())):Jt(t)}.bind(void 0),un=o(function(t,n,r){return e(this,void 0),function t(n,r){if(n===r)return!0;var e,i=Array.isArray(n),o=Array.isArray(r);if(i&&o){if(n.length!=r.length)return!1;for(e=0;e<n.length;e++)if(!t(n[e],r[e]))return!1;return!0}if(i!=o)return!1;if(n&&r&&"object"==typeof n&&"object"==typeof r){var u=Object.keys(n);if(u.length!==Object.keys(r).length)return!1;var c=n instanceof Date,f=r instanceof Date;if(c&&f)return n.getTime()==r.getTime();if(c!=f)return!1;var a=n instanceof RegExp,s=r instanceof RegExp;if(a&&s)return n.toString()==r.toString();if(a!=s)return!1;for(e=0;e<u.length;e++)if(!Object.prototype.hasOwnProperty.call(r,u[e]))return!1;for(e=0;e<u.length;e++)if(!t(n[u[e]],r[u[e]]))return!1;return!0}return!1}(en(t,r),n)}.bind(void 0)),cn=o(function(t,n){e(this,void 0);var r=on(t);return r.length===on(n).length&&r.every(function(r){return e(this,void 0),nn(r,n)&&u(r,t)===u(r,n)}.bind(this))}.bind(void 0));E(E.S+E.F*!b,"Object",{defineProperty:w.f});var fn=d.Object,an=r(function(t){t.exports={default:function(t,n,r){return fn.defineProperty(t,n,r)},__esModule:!0}});n(an);var sn=n(r(function(t,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(an);n.default=function(t,n,e){return n in t?(0,r.default)(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}})),ln=function(t,n){return{value:n,done:!!t}};mt(Array,"Array",function(t,n){this._t=C(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,ln(1)):"keys"==n?ln(0,r):"values"==n?ln(0,t[r]):ln(0,[r,t[r]])},"values");k.Arguments=k.Array;for(var dn=ut("toStringTag"),vn="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),hn=0;hn<vn.length;hn++){var pn=vn[hn],yn=l[pn],bn=yn&&yn.prototype;bn&&!bn[dn]&&M(bn,dn,pn),k[pn]=k.Array}var gn=ut("iterator"),mn=d.isIterable=function(t){var n=Object(t);return void 0!==n[gn]||"@@iterator"in n||k.hasOwnProperty(Mt(n))},On=r(function(t){t.exports={default:mn,__esModule:!0}});n(On);var _n=d.getIterator=function(t){var n=Et(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return p(n.call(t))},Sn=r(function(t){t.exports={default:_n,__esModule:!0}});n(Sn);var jn=n(r(function(t,n){function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var e=r(On),i=r(Sn);n.default=function(){return function(t,n){if(Array.isArray(t))return t;if((0,e.default)(Object(t)))return function(t,n){var r=[],e=!0,o=!1,u=void 0;try{for(var c,f=(0,i.default)(t);!(e=(c=f.next()).done)&&(r.push(c.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{!e&&f.return&&f.return()}finally{if(o)throw u}}return r}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()})),wn=Rt.f,An=function(t){return function(n){for(var r,e=C(n),i=Z(e),o=i.length,u=0,c=[];o>u;)wn.call(e,r=i[u++])&&c.push(t?[r,e[r]]:e[r]);return c}}(!0);E(E.S,"Object",{entries:function(t){return An(t)}});var Mn=d.Object.entries,Pn=n(r(function(t){t.exports={default:Mn,__esModule:!0}})),En=function(t,n){return e(this,void 0),Pn(n).reduce(function(r,i){var o=jn(i,2),u=o[0],c=o[1];return e(this,void 0),Bt({},r,sn({},u,t(c,u,n)))}.bind(this),{})}.bind(void 0),xn=o(function(t,n){return e(this,void 0),Array.isArray(n)?n.map(t):En(t,n)}.bind(void 0)),Tn=function(t,n){n[t];var r=Yt(n,[t]);return e(this,void 0),r}.bind(void 0),Ln=o(function(t,n){return e(this,void 0),Array.isArray(n)?tn(t,1,n):Tn(t,n)}.bind(void 0)),kn=r(function(t){var n=J("meta"),r=w.f,e=0,i=Object.isExtensible||function(){return!0},o=!y(function(){return i(Object.preventExtensions({}))}),u=function(t){r(t,n,{value:{i:"O"+ ++e,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,r){if(!h(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!L(t,n)){if(!i(t))return"F";if(!r)return"E";u(t)}return t[n].i},getWeak:function(t,r){if(!L(t,n)){if(!i(t))return!0;if(!r)return!1;u(t)}return t[n].w},onFreeze:function(t){return o&&c.NEED&&i(t)&&!L(t,n)&&u(t),t}}}),In={f:ut},Nn=w.f,Fn=function(t){var n=d.Symbol||(d.Symbol={});"_"==t.charAt(0)||t in n||Nn(n,t,{value:In.f(t)})},Cn=Array.isArray||function(t){return"Array"==N(t)},Dn=X.concat("length","prototype"),Rn={f:Object.getOwnPropertyNames||function(t){return Q(t,Dn)}},Gn=Rn.f,Vn={}.toString,Wn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kn={f:function(t){return Wn&&"[object Window]"==Vn.call(t)?function(t){try{return Gn(t)}catch(t){return Wn.slice()}}(t):Gn(C(t))}},Bn=Object.getOwnPropertyDescriptor,Hn={f:b?Bn:function(t,n){if(t=C(t),n=S(n,!0),_)try{return Bn(t,n)}catch(t){}if(L(t,n))return A(!Rt.f.call(t,n),t[n])}},Jn=kn.KEY,qn=Hn.f,Un=w.f,zn=Kn.f,Yn=l.Symbol,Qn=l.JSON,Xn=Qn&&Qn.stringify,Zn=ut("_hidden"),$n=ut("toPrimitive"),tr={}.propertyIsEnumerable,nr=K("symbol-registry"),rr=K("symbols"),er=K("op-symbols"),ir=Object.prototype,or="function"==typeof Yn,ur=l.QObject,cr=!ur||!ur.prototype||!ur.prototype.findChild,fr=b&&y(function(){return 7!=ot(Un({},"a",{get:function(){return Un(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=qn(ir,n);e&&delete ir[n],Un(t,n,r),e&&t!==ir&&Un(ir,n,e)}:Un,ar=function(t){var n=rr[t]=ot(Yn.prototype);return n._k=t,n},sr=or&&"symbol"==typeof Yn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Yn},lr=function(t,n,r){return t===ir&&lr(er,n,r),p(t),n=S(n,!0),p(r),L(rr,n)?(r.enumerable?(L(t,Zn)&&t[Zn][n]&&(t[Zn][n]=!1),r=ot(r,{enumerable:A(0,!1)})):(L(t,Zn)||Un(t,Zn,A(1,{})),t[Zn][n]=!0),fr(t,n,r)):Un(t,n,r)},dr=function(t,n){p(t);for(var r,e=function(t){var n=Z(t),r=Dt.f;if(r)for(var e,i=r(t),o=Rt.f,u=0;i.length>u;)o.call(t,e=i[u++])&&n.push(e);return n}(n=C(n)),i=0,o=e.length;o>i;)lr(t,r=e[i++],n[r]);return t},vr=function(t){var n=tr.call(this,t=S(t,!0));return!(this===ir&&L(rr,t)&&!L(er,t))&&(!(n||!L(this,t)||!L(rr,t)||L(this,Zn)&&this[Zn][t])||n)},hr=function(t,n){if(t=C(t),n=S(n,!0),t!==ir||!L(rr,n)||L(er,n)){var r=qn(t,n);return!r||!L(rr,n)||L(t,Zn)&&t[Zn][n]||(r.enumerable=!0),r}},pr=function(t){for(var n,r=zn(C(t)),e=[],i=0;r.length>i;)L(rr,n=r[i++])||n==Zn||n==Jn||e.push(n);return e},yr=function(t){for(var n,r=t===ir,e=zn(r?er:C(t)),i=[],o=0;e.length>o;)!L(rr,n=e[o++])||r&&!L(ir,n)||i.push(rr[n]);return i};or||(x((Yn=function(){if(this instanceof Yn)throw TypeError("Symbol is not a constructor!");var t=J(arguments.length>0?arguments[0]:void 0),n=function(r){this===ir&&n.call(er,r),L(this,Zn)&&L(this[Zn],t)&&(this[Zn][t]=!1),fr(this,t,A(1,r))};return b&&cr&&fr(ir,t,{configurable:!0,set:n}),ar(t)}).prototype,"toString",function(){return this._k}),Hn.f=hr,w.f=lr,Rn.f=Kn.f=pr,Rt.f=vr,Dt.f=yr,In.f=function(t){return ar(ut(t))}),E(E.G+E.W+E.F*!or,{Symbol:Yn});for(var br="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),gr=0;br.length>gr;)ut(br[gr++]);for(var mr=Z(ut.store),Or=0;mr.length>Or;)Fn(mr[Or++]);E(E.S+E.F*!or,"Symbol",{for:function(t){return L(nr,t+="")?nr[t]:nr[t]=Yn(t)},keyFor:function(t){if(!sr(t))throw TypeError(t+" is not a symbol!");for(var n in nr)if(nr[n]===t)return n},useSetter:function(){cr=!0},useSimple:function(){cr=!1}}),E(E.S+E.F*!or,"Object",{create:function(t,n){return void 0===n?ot(t):dr(ot(t),n)},defineProperty:lr,defineProperties:dr,getOwnPropertyDescriptor:hr,getOwnPropertyNames:pr,getOwnPropertySymbols:yr}),Qn&&E(E.S+E.F*(!or||y(function(){var t=Yn();return"[null]"!=Xn([t])||"{}"!=Xn({a:t})||"{}"!=Xn(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!sr(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return"function"==typeof(n=e[1])&&(r=n),!r&&Cn(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!sr(n))return n}),e[1]=n,Xn.apply(Qn,e)}}}),Yn.prototype[$n]||M(Yn.prototype,$n,Yn.prototype.valueOf),at(Yn,"Symbol"),at(Math,"Math",!0),at(l.JSON,"JSON",!0),Fn("asyncIterator"),Fn("observable");var _r=d.Symbol,Sr=n(r(function(t){t.exports={default:_r,__esModule:!0}})),jr=function(t){return e(this,void 0),Array.isArray(t)?[].concat(Nt(t)):Bt({},t)}.bind(void 0),wr=function(t){e(this,void 0);var n=jr(t);return{origin:n,current:n,previous:void 0}}.bind(void 0),Ar=function(t,n,r){return e(this,void 0),r[t]=n,u(t,r)}.bind(void 0),Mr=function(t,n,r,i){return e(this,void 0),Bt({},i,{current:Ar(t[n],r,i.current),previous:i.current})}.bind(void 0),Pr=function(t,n,r){e(this,void 0);var i=Ln(t[n],r.current);return 0===n?Bt({},r,{current:i,origin:i}):Bt({},r,{previous:Ar(t[n-1],i,r.previous)})}.bind(void 0),Er=Sr("composite.updateIn.removeAction"),xr=function(t,n,r,i){return e(this,void 0),r===Er?Pr(t,n,i):Mr(t,n,r,i)}.bind(void 0),Tr=function(t){return e(this,void 0),"number"==typeof t?[]:{}}.bind(void 0),Lr=function(t,n,r){return e(this,void 0),nn(t,r)?jr(u(t,r)):Tr(n)}.bind(void 0),kr=function(t,n,r,i){return e(this,void 0),Qt(t,r)?n(u(t[r],i)):Lr(t[r],t[r+1],i)}.bind(void 0),Ir=function(t,n){return e(this,void 0),function(r,i,o){return e(this,void 0),xr(t,o,kr(t,n,o,r.current),r)}.bind(this)}.bind(void 0),Nr=o(function(t,n,r){return e(this,void 0),0===t.length?r:t.reduce(Ir(t,n),wr(r)).origin}.bind(void 0));Nr.remove=Er;var Fr=function(){return e(this,void 0),Nr.remove}.bind(void 0),Cr=o(function(t,n){return e(this,void 0),Nr(t,Fr,n)}.bind(void 0)),Dr=o(function(t,n,r){e(this,void 0);var i=jr(r);return i[t]=n,i}.bind(void 0)),Rr=o(function(t,n,r){return e(this,void 0),Nr(t,function(){return e(this,void 0),n}.bind(this),r)}.bind(void 0)),Gr=function(t,n){return e(this,void 0),Boolean(Number(t)^Number(n))}.bind(void 0),Vr=o(function(t,n){return e(this,void 0),t===n||!Gr(Array.isArray(t),Array.isArray(n))&&cn(t,n)}.bind(void 0));t.get=u,t.getIn=en,t.getKeys=on,t.hasIn=un,t.hasKey=nn,t.haveSameProps=cn,t.map=xn,t.remove=Ln,t.removeIn=Cr,t.set=Dr,t.setIn=Rr,t.shallowCopy=jr,t.shallowEqual=Vr,t.updateIn=Nr,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import{isLastIndex,remove}from"@jumpn/utils-array";import _Object$keys from"babel-runtime/core-js/object/keys";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";import isDeepEqual from"fast-deep-equal";import _defineProperty from"babel-runtime/helpers/defineProperty";import _extends from"babel-runtime/helpers/extends";import _slicedToArray from"babel-runtime/helpers/slicedToArray";import _Object$entries from"babel-runtime/core-js/object/entries";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _Symbol from"babel-runtime/core-js/symbol";var _this=void 0,get=function(e,r){return _newArrowCheck(this,_this),r[e]}.bind(void 0),get$1=curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$1=void 0,getInRecur=function(e,r,t){return _newArrowCheck(this,_this$1),isLastIndex(r,e)?get$1(r[e],t):hasKey$1(r[e],t)?getInRecur(e+1,r,get$1(r[e],t)):void 0}.bind(void 0),getIn=function(e,r){return _newArrowCheck(this,_this$1),0===e.length?void 0:getInRecur(0,e,r)}.bind(void 0),getIn$1=curry(getIn),_this$3=void 0,getKeys=function(e){return _newArrowCheck(this,_this$3),Array.isArray(e)?[].concat(_toConsumableArray(e.keys())):_Object$keys(e)}.bind(void 0),_this$4=void 0,hasIn=function(e,r,t){return _newArrowCheck(this,_this$4),isDeepEqual(getIn$1(e,t),r)}.bind(void 0),hasIn$1=curry(hasIn),_this$5=void 0,haveSameProps=function(e,r){_newArrowCheck(this,_this$5);var t=getKeys(e);return t.length===getKeys(r).length&&t.every(function(t){return _newArrowCheck(this,_this$5),hasKey$1(t,r)&&get$1(t,e)===get$1(t,r)}.bind(this))}.bind(void 0),haveSameProps$1=curry(haveSameProps),_this$6=void 0,mapObject=function(e,r){return _newArrowCheck(this,_this$6),_Object$entries(r).reduce(function(t,i){var n=_slicedToArray(i,2),o=n[0],s=n[1];return _newArrowCheck(this,_this$6),_extends({},t,_defineProperty({},o,e(s,o,r)))}.bind(this),{})}.bind(void 0),map=function(e,r){return _newArrowCheck(this,_this$6),Array.isArray(r)?r.map(e):mapObject(e,r)}.bind(void 0),map$1=curry(map),_this$7=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$7),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$7),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=curry(remove$1),_this$10=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$10),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$9=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$9);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$9),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$9),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$9),isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$9),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$9),_extends({},i,{current:set(e[r],t,i.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$9);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$9),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$9),function(t,i,n){return _newArrowCheck(this,_this$9),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$9),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;var _this$8=void 0,remove$3=function(){return _newArrowCheck(this,_this$8),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this$8),updateInCurried(e,remove$3,r)}.bind(void 0),removeIn$1=curry(removeIn),_this$11=void 0,set$1=function(e,r,t){_newArrowCheck(this,_this$11);var i=shallowCopy(t);return i[e]=r,i}.bind(void 0),set$2=curry(set$1),_this$12=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this$12),updateInCurried(e,function(){return _newArrowCheck(this,_this$12),r}.bind(this),t)}.bind(void 0),setIn$1=curry(setIn),_this$13=void 0,xor=function(e,r){return _newArrowCheck(this,_this$13),Boolean(Number(e)^Number(r))}.bind(void 0),shallowEqual=function(e,r){return _newArrowCheck(this,_this$13),e===r||!xor(Array.isArray(e),Array.isArray(r))&&haveSameProps$1(e,r)}.bind(void 0),shallowEqual$1=curry(shallowEqual);export{get$1 as get,getIn$1 as getIn,getKeys,hasIn$1 as hasIn,hasKey$1 as hasKey,haveSameProps$1 as haveSameProps,map$1 as map,remove$2 as remove,removeIn$1 as removeIn,set$2 as set,setIn$1 as setIn,shallowCopy,shallowEqual$1 as shallowEqual,updateInCurried as updateIn}; | ||
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import{isLastIndex,remove}from"@jumpn/utils-array";import _Object$keys from"babel-runtime/core-js/object/keys";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";import isDeepEqual from"fast-deep-equal";import _defineProperty from"babel-runtime/helpers/defineProperty";import _extends from"babel-runtime/helpers/extends";import _slicedToArray from"babel-runtime/helpers/slicedToArray";import _Object$entries from"babel-runtime/core-js/object/entries";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _Symbol from"babel-runtime/core-js/symbol";var _this=void 0,get=function(e,r){return _newArrowCheck(this,_this),r[e]}.bind(void 0),get$1=curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$1=void 0,getInRecur=function(e,r,t){return _newArrowCheck(this,_this$1),isLastIndex(r,e)?get$1(r[e],t):hasKey$1(r[e],t)?getInRecur(e+1,r,get$1(r[e],t)):void 0}.bind(void 0),getIn=function(e,r){return _newArrowCheck(this,_this$1),0===e.length?void 0:getInRecur(0,e,r)}.bind(void 0),getIn$1=curry(getIn),_this$3=void 0,getKeys=function(e){return _newArrowCheck(this,_this$3),Array.isArray(e)?[].concat(_toConsumableArray(e.keys())):_Object$keys(e)}.bind(void 0),_this$4=void 0,hasIn=function(e,r,t){return _newArrowCheck(this,_this$4),isDeepEqual(getIn$1(e,t),r)}.bind(void 0),hasIn$1=curry(hasIn),_this$5=void 0,haveSameProps=function(e,r){_newArrowCheck(this,_this$5);var t=getKeys(e);return t.length===getKeys(r).length&&t.every(function(t){return _newArrowCheck(this,_this$5),hasKey$1(t,r)&&get$1(t,e)===get$1(t,r)}.bind(this))}.bind(void 0),haveSameProps$1=curry(haveSameProps),_this$6=void 0,mapObject=function(e,r){return _newArrowCheck(this,_this$6),_Object$entries(r).reduce(function(t,i){var n=_slicedToArray(i,2),o=n[0],s=n[1];return _newArrowCheck(this,_this$6),_extends({},t,_defineProperty({},o,e(s,o,r)))}.bind(this),{})}.bind(void 0),map=function(e,r){return _newArrowCheck(this,_this$6),Array.isArray(r)?r.map(e):mapObject(e,r)}.bind(void 0),map$1=curry(map),_this$7=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$7),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$7),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=curry(remove$1),_this$10=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$10),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$9=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$9);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$9),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$9),_extends({},i,{current:set(e[r],t,i.current),previous:i.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$9);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$9),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$9),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$9),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$9),isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$9),function(t,i,n){return _newArrowCheck(this,_this$9),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$9),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;var _this$8=void 0,remove$3=function(){return _newArrowCheck(this,_this$8),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this$8),updateInCurried(e,remove$3,r)}.bind(void 0),removeIn$1=curry(removeIn),_this$11=void 0,set$1=function(e,r,t){_newArrowCheck(this,_this$11);var i=shallowCopy(t);return i[e]=r,i}.bind(void 0),set$2=curry(set$1),_this$12=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this$12),updateInCurried(e,function(){return _newArrowCheck(this,_this$12),r}.bind(this),t)}.bind(void 0),setIn$1=curry(setIn),_this$13=void 0,xor=function(e,r){return _newArrowCheck(this,_this$13),Boolean(Number(e)^Number(r))}.bind(void 0),shallowEqual=function(e,r){return _newArrowCheck(this,_this$13),e===r||!xor(Array.isArray(e),Array.isArray(r))&&haveSameProps$1(e,r)}.bind(void 0),shallowEqual$1=curry(shallowEqual);export{get$1 as get,getIn$1 as getIn,getKeys,hasIn$1 as hasIn,hasKey$1 as hasKey,haveSameProps$1 as haveSameProps,map$1 as map,remove$2 as remove,removeIn$1 as removeIn,set$2 as set,setIn$1 as setIn,shallowCopy,shallowEqual$1 as shallowEqual,updateInCurried as updateIn}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import _Symbol from"babel-runtime/core-js/symbol";import _extends from"babel-runtime/helpers/extends";import{isLastIndex,remove}from"@jumpn/utils-array";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$2=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$3=curry(remove$2),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,o){return _newArrowCheck(this,_this$1),isLastIndex(e,t)?r(get$1(e[t],o)):copyOrCreate(e[t],e[t+1],o)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,o){return _newArrowCheck(this,_this$1),_extends({},o,{current:set(e[r],t,o.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var o=remove$3(e[r],t.current);return 0===r?_extends({},t,{current:o,origin:o}):_extends({},t,{previous:set(e[r-1],o,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,o){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,o):updateSet(e,r,t,o)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,o,i){return _newArrowCheck(this,_this$1),update(e,i,getNext(e,r,i,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,remove$1=function(){return _newArrowCheck(this,_this),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this),updateInCurried(e,remove$1,r)}.bind(void 0),removeIn$1=curry(removeIn);export default removeIn$1; | ||
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import _Symbol from"babel-runtime/core-js/symbol";import _extends from"babel-runtime/helpers/extends";import{isLastIndex,remove}from"@jumpn/utils-array";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$2=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$3=curry(remove$2),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,o){return _newArrowCheck(this,_this$1),_extends({},o,{current:set(e[r],t,o.current),previous:o.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var o=remove$3(e[r],t.current);return 0===r?_extends({},t,{current:o,origin:o}):_extends({},t,{previous:set(e[r-1],o,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,o){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,o):updateSet(e,r,t,o)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,o){return _newArrowCheck(this,_this$1),isLastIndex(e,t)?r(get$1(e[t],o)):copyOrCreate(e[t],e[t+1],o)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,o,i){return _newArrowCheck(this,_this$1),update(e,i,getNext(e,r,i,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,remove$1=function(){return _newArrowCheck(this,_this),updateInCurried.remove}.bind(void 0),removeIn=function(e,r){return _newArrowCheck(this,_this),updateInCurried(e,remove$1,r)}.bind(void 0),removeIn$1=curry(removeIn);export default removeIn$1; | ||
//# sourceMappingURL=removeIn.js.map |
@@ -1,2 +0,2 @@ | ||
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import _Symbol from"babel-runtime/core-js/symbol";import _extends from"babel-runtime/helpers/extends";import{isLastIndex,remove}from"@jumpn/utils-array";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=curry(remove$1),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$1),isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$1),_extends({},i,{current:set(e[r],t,i.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,i,n){return _newArrowCheck(this,_this$1),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this),updateInCurried(e,function(){return _newArrowCheck(this,_this),r}.bind(this),t)}.bind(void 0),setIn$1=curry(setIn);export default setIn$1; | ||
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import _Symbol from"babel-runtime/core-js/symbol";import _extends from"babel-runtime/helpers/extends";import{isLastIndex,remove}from"@jumpn/utils-array";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$4=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$4),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$4),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=curry(remove$1),_this$5=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$5),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this$1=void 0,createReduceContext=function(e){_newArrowCheck(this,_this$1);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this$1),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,i){return _newArrowCheck(this,_this$1),_extends({},i,{current:set(e[r],t,i.current),previous:i.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this$1);var i=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:i,origin:i}):_extends({},t,{previous:set(e[r-1],i,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,i){return _newArrowCheck(this,_this$1),t===removeAction?updateRemove(e,r,i):updateSet(e,r,t,i)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this$1),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this$1),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,i){return _newArrowCheck(this,_this$1),isLastIndex(e,t)?r(get$1(e[t],i)):copyOrCreate(e[t],e[t+1],i)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this$1),function(t,i,n){return _newArrowCheck(this,_this$1),update(e,n,getNext(e,r,n,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this$1),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;var _this=void 0,setIn=function(e,r,t){return _newArrowCheck(this,_this),updateInCurried(e,function(){return _newArrowCheck(this,_this),r}.bind(this),t)}.bind(void 0),setIn$1=curry(setIn);export default setIn$1; | ||
//# sourceMappingURL=setIn.js.map |
@@ -1,2 +0,2 @@ | ||
import _Symbol from"babel-runtime/core-js/symbol";import _extends from"babel-runtime/helpers/extends";import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import{isLastIndex,remove}from"@jumpn/utils-array";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$1=void 0,get=function(e,r){return _newArrowCheck(this,_this$1),r[e]}.bind(void 0),get$1=curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$3=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$3),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$3),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=curry(remove$1),_this$4=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$4),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this=void 0,createReduceContext=function(e){_newArrowCheck(this,_this);var r=shallowCopy(e);return{origin:r,previous:void 0,current:r}}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,o){return _newArrowCheck(this,_this),isLastIndex(e,t)?r(get$1(e[t],o)):copyOrCreate(e[t],e[t+1],o)}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,o){return _newArrowCheck(this,_this),_extends({},o,{current:set(e[r],t,o.current)})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this);var o=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:o,origin:o}):_extends({},t,{previous:set(e[r-1],o,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,o){return _newArrowCheck(this,_this),t===removeAction?updateRemove(e,r,o):updateSet(e,r,t,o)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this),function(t,o,i){return _newArrowCheck(this,_this),update(e,i,getNext(e,r,i,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;export default updateInCurried; | ||
import _Symbol from"babel-runtime/core-js/symbol";import _extends from"babel-runtime/helpers/extends";import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import{isLastIndex,remove}from"@jumpn/utils-array";import _objectWithoutProperties from"babel-runtime/helpers/objectWithoutProperties";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$1=void 0,get=function(e,r){return _newArrowCheck(this,_this$1),r[e]}.bind(void 0),get$1=curry(get),_this$2=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$3=void 0,objectRemove=function(e,r){r[e];var t=_objectWithoutProperties(r,[e]);return _newArrowCheck(this,_this$3),t}.bind(void 0),remove$1=function(e,r){return _newArrowCheck(this,_this$3),Array.isArray(r)?remove(e,1,r):objectRemove(e,r)}.bind(void 0),remove$2=curry(remove$1),_this$4=void 0,shallowCopy=function(e){return _newArrowCheck(this,_this$4),Array.isArray(e)?[].concat(_toConsumableArray(e)):_extends({},e)}.bind(void 0),_this=void 0,createReduceContext=function(e){_newArrowCheck(this,_this);var r=shallowCopy(e);return{origin:r,current:r,previous:void 0}}.bind(void 0),set=function(e,r,t){return _newArrowCheck(this,_this),t[e]=r,get$1(e,t)}.bind(void 0),updateSet=function(e,r,t,o){return _newArrowCheck(this,_this),_extends({},o,{current:set(e[r],t,o.current),previous:o.current})}.bind(void 0),updateRemove=function(e,r,t){_newArrowCheck(this,_this);var o=remove$2(e[r],t.current);return 0===r?_extends({},t,{current:o,origin:o}):_extends({},t,{previous:set(e[r-1],o,t.previous)})}.bind(void 0),removeAction=_Symbol("composite.updateIn.removeAction"),update=function(e,r,t,o){return _newArrowCheck(this,_this),t===removeAction?updateRemove(e,r,o):updateSet(e,r,t,o)}.bind(void 0),createSupporting=function(e){return _newArrowCheck(this,_this),"number"==typeof e?[]:{}}.bind(void 0),copyOrCreate=function(e,r,t){return _newArrowCheck(this,_this),hasKey$1(e,t)?shallowCopy(get$1(e,t)):createSupporting(r)}.bind(void 0),getNext=function(e,r,t,o){return _newArrowCheck(this,_this),isLastIndex(e,t)?r(get$1(e[t],o)):copyOrCreate(e[t],e[t+1],o)}.bind(void 0),getReducer=function(e,r){return _newArrowCheck(this,_this),function(t,o,i){return _newArrowCheck(this,_this),update(e,i,getNext(e,r,i,t.current),t)}.bind(this)}.bind(void 0),updateIn=function(e,r,t){return _newArrowCheck(this,_this),0===e.length?t:e.reduce(getReducer(e,r),createReduceContext(t)).origin}.bind(void 0),updateInCurried=curry(updateIn);updateInCurried.remove=removeAction;export default updateInCurried; | ||
//# sourceMappingURL=updateIn.js.map |
{ | ||
"name": "@jumpn/utils-composite", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Composite utilities (immutability, fp helpers)", | ||
"module": "dist/index.js", | ||
"main": "compat/cjs/index.js", | ||
"react-native": "src/index.js", | ||
"scripts": { | ||
@@ -8,0 +9,0 @@ "flow-copy-source": "flow-copy-source -v src", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
303927
308