Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

futil

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

futil - npm Package Compare versions

Comparing version 1.56.0 to 1.57.0

13

CHANGELOG.md

@@ -1,2 +0,13 @@

# 1.56.0
# 1.57.0
- Added new `object` functions:
`omitNil`
`omitNull`
`omitBlank`
`omitEmpty`
- Added new `array` functions:
`replaceElementBy`
`replaceElement`
# 1.56.0
- New lens helper for React users: `stateLens`

@@ -3,0 +14,0 @@

2

lib/futil-js.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports["futil-js"]=t(require("lodash/fp")):e["futil-js"]=t(e["lodash/fp"])}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(5);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys(function(e){return e+"In"},f),t.extendOn=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(3),i=n(1);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})(function(e){return[e]}),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry(function(e,t){return a.default.compact(t).join(e)}),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy(function(e){return e}),a.default.filter(function(e){return e.length>1}),a.default.flatten,a.default.uniq),t.push=a.default.curry(function(e,t){return t.concat([e])})),h=(t.pushIn=a.default.curry(function(e,t){return e.concat([t])}),t.pushOn=a.default.curry(function(e,t){return e.push(t),e}),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d(function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)})),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce(function(e,t){return s(e).concat(h(a.default.flatten(p(e)),t))},[])),t.cycle=a.default.curry(function(e,t){return e[(e.indexOf(t)+1)%e.length]}),t.arrayToObject=a.default.curry(function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)}),t.zipObjectDeepWith=a.default.curry(function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)})),m=(t.flags=g(a.default,function(){return!0}),t.prefixes=function(e){return a.default.range(1,e.length+1).map(function(t){return a.default.take(t,e)})},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry(function(e,t){return a.default.reduce(function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(t),[[n]])},[[a.default.head(t)]],a.default.tail(t))}),t.toggleElementBy=a.default.curry(function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)}));t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry(function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,i.reduceIndexed)(function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(t),[(0,o.callOrReturn)(e,t,r,a),n])},[u],a)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry(function(e,t){return a.default.iteratee(e)(a.default.find(e,t))});var f=t.map=a.default.curry(function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)}),i=t.deepMap=a.default.curry(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n(function(t){return r(t)?i(e,e(t),n,r):t},t)});t.insertAtIndex=a.default.curry(function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),i=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry(function(e,t){return t+e}),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then(function(){return s(n,r)}).then(function(){return e.apply(void 0,l(n))}).then(function(e){a=e}).then(function(){return c(a,r,n)}).catch(function(e){return h(e,r,n)}).catch(function(e){o=e}).then(function(){return y(r,n)}).then(function(){if(o)throw o}).then(function(){return a})});return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,l(n));return c(a,r,n),a}catch(e){throw h(e,r,n),e}finally{y(r,n)}});return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)(function(e,t){t.setStatus("failed")}),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout(function(){t.setStatus(null)},e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return l(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,l){return n(a,l,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(i(u)),[l].concat(i(f))),t(a,l,u,f)||[])||r(a,l,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r})},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return d(e)(function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))})(r),n})},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){return p(e)(function(e,n){return(0,f.push)(t(n),e)},[],n)})},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)(function(e){return e})},h=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},g=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry(function(n,r){return a.default.reduce(function(n,r){return a.default.find(t(r),e(n))},r,n)})},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues(function(u){return s(e)(function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)},r)}))(r)})},b=t.treeKeys=function(e,t,n,r){return[t].concat(i(r))},O=t.treeValues=function(e,t,n){return[e].concat(i(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)(function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)},{})}}),w=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:h(e),lookup:g(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:w(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},i=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=i(),r=a.default.debounce(e,function(){n.resolve(t.apply(void 0,arguments)),n=i()});return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry(function(e,t,n){return function(r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)}}),l=t.when=a.default.curry(function(e,t){return i(e,t,a.default.identity)});t.unless=a.default.curry(function(e,t){return i(e,a.default.identity,t)}),t.whenExists=l(f.exists),t.whenTruthy=l(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var a=n(3);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=n(7);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var f=n(11);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var i=n(12);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var l=n(5);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(2);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(8);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var s=n(13);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var p=n(4);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var y=n(14);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var v=n(6);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var h=n(9);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var g,m=n(0),b=(g=m)&&g.__esModule?g:{default:g},O=T(u),j=T(a),_=T(o),w=T(f),x=T(i),A=T(l),k=T(c),P=T(d),E=T(s),M=T(p),I=T(y),B=T(v),S=T(h);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var R=t.greaterThanOne=b.default.lt(1),N=t.VERSION="1.56.0";t.default=r({},O,j,_,w,x,A,k,P,E,M,I,B,S,{greaterThanOne:R,VERSION:N})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(8),i=n(2),l=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry(function(e,t,n){return o.default.flow((0,i.intersperse)((0,l.differentLast)(function(){return e},function(){return t})),o.default.join(""))(n)}));t.toSentence=p(", "," and ")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),i=n(8),l=n(4),c=n(1),d=n(3),s=n(5);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry(function(e,t){return p({},e,t)}),h=t.singleObjectR=o.default.flip(v),g=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry(function(e,t,n){return n[t]=n[e],delete n[e],n}),t.unwind=o.default.curry(function(e,t){return o.default.map(function(n){return o.default.set(e,n,t)},o.default.get(e,t))}),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)(function(t,r,u){return o.default.merge(t,(O(r)?h:e)(r,(0,f.dotJoinWith)(l.isNotNil)([n,u])))},{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry(function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length}),t.matchesSome=o.default.flow(g,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry(function(e,t,n){return o.default.get(e,t)===n}),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry(function(e,t){return o.default.getOr(t,e,t)}),t.alias=o.default.curry(function(e,t){return o.default.getOr(e,e,t)}),t.aliasIn=o.default.curry(function(e,t){return o.default.getOr(t,t,e)}),t.cascade=o.default.curryN(2,function(e,t,n){return o.default.flow((0,d.findApply)(function(e){return e&&o.default.iteratee(e)(t)}),o.default.defaultTo(n))(e)})),w=(t.cascadeIn=o.default.curryN(2,function(e,t,n){return _(t,e,n)}),t.cascadeKey=o.default.curry(function(e,t){return o.default.find((0,c.getIn)(t),e)}),t.cascadePropKey=o.default.curry(function(e,t){return o.default.find((0,c.hasIn)(t),e)})),x=(t.cascadeProp=o.default.curry(function(e,t){return o.default.get(w(e,t),t)}),t.unkeyBy=o.default.curry(function(e,t){return(0,c.mapIndexed)(function(t,n){return o.default.extend(t,p({},e||n,n))})(t)})),A=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:e}}),o.default.omitBy(function(e){return e.from===e.to}))(t)},k=(t.simpleDiffArray=o.default.flow(A,x("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:r[t]}}),o.default.omitBy(function(e){return e.from===e.to}))(o.default.merge(n,r))}),P=(t.diffArray=o.default.flow(k,x("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map(function(n){o.default.includes(n,e)||delete t[n]}))(t)},t.mergeAllArrays=o.default.mergeAllWith(function(e,t){if(o.default.isArray(e))return e.concat(t)}));t.invertByArray=o.default.flow((0,c.mapIndexed)(function(e,t){return(0,f.zipObjectDeepWith)(e,function(){return[t]})}),P),t.stampKey=o.default.curry(function(e,t){return(0,c.mapValuesIndexed)(function(t,n){return u({},t,p({},e,n))},t)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var i=t.testRegex=a.default.curry(function(e,t){return new RegExp(e).test(t)}),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},a.default.flow(a.default.words,a.default.join("|"))),d=a.default.flow(a.default.words,a.default.map(function(e){return"(?=.*"+e+")"}),a.default.join("")),s=a.default.curry(function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}}),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry(function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u}),t.postings=a.default.curry(function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r})),y=t.postingsForWords=a.default.curry(function(e,t){return a.default.reduce(function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)},[])(a.default.words(e))}),v=t.highlightFromPostings=a.default.curry(function(e,t,n,r){var u=0;return a.default.each(function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length},(0,o.mergeRanges)(n)),r});t.highlight=a.default.curry(function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),i=n(2);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var c=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},d=(t.lensOf=function(e){return o.default.reduce(function(t,n){return t[n]=c(n,e),t},{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,p.apply(void 0,n))},set:function(t){return y.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,p.apply(void 0,n)))].concat(n))}}}),s=function(){return(arguments.length<=1?void 0:arguments[1])?c.apply(void 0,arguments):arguments.length<=0?void 0:arguments[0]},p=t.view=function(){return(e=s.apply(void 0,arguments)).get?e.get():e();var e},y=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return p.apply(void 0,t)}},o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(e,t){return t.set?t.set(e):t(e)}(e,s.apply(void 0,n))}));t.set=y;var v=t.sets=o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return y.apply(void 0,[e].concat(n))}}),h=t.setsWith=o.default.curry(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return y.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}}),g=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return y.apply(void 0,[!p.apply(void 0,t)].concat(t))}},t.on=v(!0)),m=t.off=v(!1),b=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return l(n={},e,p.apply(void 0,u)),l(n,"onChange",h.apply(void 0,[t].concat(u))),n}},O=function(e){return b(e,"target."+e)};t.domLens={value:O("value"),checkboxValues:o.default.flow(d,O("checked")),hover:function(){return{onMouseOver:g.apply(void 0,arguments),onMouseOut:m.apply(void 0,arguments)}},focus:function(){return{onFocus:g.apply(void 0,arguments),onBlur:m.apply(void 0,arguments)}},targetBinding:O,binding:b},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports["futil-js"]=t(require("lodash/fp")):e["futil-js"]=t(e["lodash/fp"])}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(5);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys(function(e){return e+"In"},f),t.extendOn=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=t.replaceElementBy=t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(3),i=n(1);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})(function(e){return[e]}),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry(function(e,t){return a.default.compact(t).join(e)}),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy(function(e){return e}),a.default.filter(function(e){return e.length>1}),a.default.flatten,a.default.uniq),t.push=a.default.curry(function(e,t){return t.concat([e])})),h=(t.pushIn=a.default.curry(function(e,t){return e.concat([t])}),t.pushOn=a.default.curry(function(e,t){return e.push(t),e}),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d(function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)})),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce(function(e,t){return s(e).concat(h(a.default.flatten(p(e)),t))},[])),t.cycle=a.default.curry(function(e,t){return e[(e.indexOf(t)+1)%e.length]}),t.arrayToObject=a.default.curry(function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)}),t.zipObjectDeepWith=a.default.curry(function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)})),m=(t.flags=g(a.default,function(){return!0}),t.prefixes=function(e){return a.default.range(1,e.length+1).map(function(t){return a.default.take(t,e)})},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry(function(e,t){return a.default.reduce(function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(t),[[n]])},[[a.default.head(t)]],a.default.tail(t))}),t.toggleElementBy=a.default.curry(function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)})),O=(t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry(function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,i.reduceIndexed)(function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(t),[(0,o.callOrReturn)(e,t,r,a),n])},[u],a)}),t.replaceElementBy=a.default.curry(function(e,t,n){return a.default.map(function(n){return e(n)?t:n},n)}));t.replaceElement=a.default.curry(function(e,t,n){return O(a.default.isEqual(e),t,n)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry(function(e,t){return a.default.iteratee(e)(a.default.find(e,t))});var f=t.map=a.default.curry(function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)}),i=t.deepMap=a.default.curry(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n(function(t){return r(t)?i(e,e(t),n,r):t},t)});t.insertAtIndex=a.default.curry(function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),i=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry(function(e,t){return t+e}),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then(function(){return s(n,r)}).then(function(){return e.apply(void 0,l(n))}).then(function(e){a=e}).then(function(){return c(a,r,n)}).catch(function(e){return h(e,r,n)}).catch(function(e){o=e}).then(function(){return y(r,n)}).then(function(){if(o)throw o}).then(function(){return a})});return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,l(n));return c(a,r,n),a}catch(e){throw h(e,r,n),e}finally{y(r,n)}});return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)(function(e,t){t.setStatus("failed")}),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout(function(){t.setStatus(null)},e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return l(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,l){return n(a,l,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(i(u)),[l].concat(i(f))),t(a,l,u,f)||[])||r(a,l,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r})},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return d(e)(function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))})(r),n})},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){return p(e)(function(e,n){return(0,f.push)(t(n),e)},[],n)})},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)(function(e){return e})},h=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},g=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry(function(n,r){return a.default.reduce(function(n,r){return a.default.find(t(r),e(n))},r,n)})},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues(function(u){return s(e)(function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)},r)}))(r)})},b=t.treeKeys=function(e,t,n,r){return[t].concat(i(r))},O=t.treeValues=function(e,t,n){return[e].concat(i(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)(function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)},{})}}),w=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:h(e),lookup:g(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:w(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},i=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=i(),r=a.default.debounce(e,function(){n.resolve(t.apply(void 0,arguments)),n=i()});return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry(function(e,t,n){return function(r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)}}),l=t.when=a.default.curry(function(e,t){return i(e,t,a.default.identity)});t.unless=a.default.curry(function(e,t){return i(e,a.default.identity,t)}),t.whenExists=l(f.exists),t.whenTruthy=l(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var a=n(3);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=n(7);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var f=n(11);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var i=n(12);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var l=n(5);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(2);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(8);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var s=n(13);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var p=n(4);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var y=n(14);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var v=n(6);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var h=n(9);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var g,m=n(0),b=(g=m)&&g.__esModule?g:{default:g},O=T(u),j=T(a),_=T(o),w=T(f),x=T(i),A=T(l),E=T(c),k=T(d),P=T(s),M=T(p),I=T(y),B=T(v),S=T(h);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var N=t.greaterThanOne=b.default.lt(1),R=t.VERSION="1.57.0";t.default=r({},O,j,_,w,x,A,E,k,P,M,I,B,S,{greaterThanOne:N,VERSION:R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(8),i=n(2),l=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry(function(e,t,n){return o.default.flow((0,i.intersperse)((0,l.differentLast)(function(){return e},function(){return t})),o.default.join(""))(n)}));t.toSentence=p(", "," and ")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omitEmpty=t.omitBlank=t.omitNull=t.omitNil=t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),i=n(8),l=n(4),c=n(1),d=n(3),s=n(5);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry(function(e,t){return p({},e,t)}),h=t.singleObjectR=o.default.flip(v),g=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry(function(e,t,n){return n[t]=n[e],delete n[e],n}),t.unwind=o.default.curry(function(e,t){return o.default.map(function(n){return o.default.set(e,n,t)},o.default.get(e,t))}),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)(function(t,r,u){return o.default.merge(t,(O(r)?h:e)(r,(0,f.dotJoinWith)(l.isNotNil)([n,u])))},{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry(function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length}),t.matchesSome=o.default.flow(g,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry(function(e,t,n){return o.default.get(e,t)===n}),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry(function(e,t){return o.default.getOr(t,e,t)}),t.alias=o.default.curry(function(e,t){return o.default.getOr(e,e,t)}),t.aliasIn=o.default.curry(function(e,t){return o.default.getOr(t,t,e)}),t.cascade=o.default.curryN(2,function(e,t,n){return o.default.flow((0,d.findApply)(function(e){return e&&o.default.iteratee(e)(t)}),o.default.defaultTo(n))(e)})),w=(t.cascadeIn=o.default.curryN(2,function(e,t,n){return _(t,e,n)}),t.cascadeKey=o.default.curry(function(e,t){return o.default.find((0,c.getIn)(t),e)}),t.cascadePropKey=o.default.curry(function(e,t){return o.default.find((0,c.hasIn)(t),e)})),x=(t.cascadeProp=o.default.curry(function(e,t){return o.default.get(w(e,t),t)}),t.unkeyBy=o.default.curry(function(e,t){return(0,c.mapIndexed)(function(t,n){return o.default.extend(t,p({},e||n,n))})(t)})),A=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:e}}),o.default.omitBy(function(e){return e.from===e.to}))(t)},E=(t.simpleDiffArray=o.default.flow(A,x("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:r[t]}}),o.default.omitBy(function(e){return e.from===e.to}))(o.default.merge(n,r))}),k=(t.diffArray=o.default.flow(E,x("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map(function(n){o.default.includes(n,e)||delete t[n]}))(t)},t.mergeAllArrays=o.default.mergeAllWith(function(e,t){if(o.default.isArray(e))return e.concat(t)}));t.invertByArray=o.default.flow((0,c.mapIndexed)(function(e,t){return(0,f.zipObjectDeepWith)(e,function(){return[t]})}),k),t.stampKey=o.default.curry(function(e,t){return(0,c.mapValuesIndexed)(function(t,n){return u({},t,p({},e,n))},t)}),t.omitNil=function(e){return o.default.omitBy(o.default.isNil,e)},t.omitNull=function(e){return o.default.omitBy(o.default.isNull,e)},t.omitBlank=function(e){return o.default.omitBy(l.isBlank,e)},t.omitEmpty=function(e){return o.default.omitBy(o.default.isEmpty,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var i=t.testRegex=a.default.curry(function(e,t){return new RegExp(e).test(t)}),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},a.default.flow(a.default.words,a.default.join("|"))),d=a.default.flow(a.default.words,a.default.map(function(e){return"(?=.*"+e+")"}),a.default.join("")),s=a.default.curry(function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}}),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry(function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u}),t.postings=a.default.curry(function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r})),y=t.postingsForWords=a.default.curry(function(e,t){return a.default.reduce(function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)},[])(a.default.words(e))}),v=t.highlightFromPostings=a.default.curry(function(e,t,n,r){var u=0;return a.default.each(function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length},(0,o.mergeRanges)(n)),r});t.highlight=a.default.curry(function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),i=n(2);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var c=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},d=(t.lensOf=function(e){return o.default.reduce(function(t,n){return t[n]=c(n,e),t},{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,p.apply(void 0,n))},set:function(t){return y.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,p.apply(void 0,n)))].concat(n))}}}),s=function(){return(arguments.length<=1?void 0:arguments[1])?c.apply(void 0,arguments):arguments.length<=0?void 0:arguments[0]},p=t.view=function(){return(e=s.apply(void 0,arguments)).get?e.get():e();var e},y=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return p.apply(void 0,t)}},o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(e,t){return t.set?t.set(e):t(e)}(e,s.apply(void 0,n))}));t.set=y;var v=t.sets=o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return y.apply(void 0,[e].concat(n))}}),h=t.setsWith=o.default.curry(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return y.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}}),g=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return y.apply(void 0,[!p.apply(void 0,t)].concat(t))}},t.on=v(!0)),m=t.off=v(!1),b=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return l(n={},e,p.apply(void 0,u)),l(n,"onChange",h.apply(void 0,[t].concat(u))),n}},O=function(e){return b(e,"target."+e)};t.domLens={value:O("value"),checkboxValues:o.default.flow(d,O("checked")),hover:function(){return{onMouseOver:g.apply(void 0,arguments),onMouseOut:m.apply(void 0,arguments)}},focus:function(){return{onFocus:g.apply(void 0,arguments),onBlur:m.apply(void 0,arguments)}},targetBinding:O,binding:b},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}}}])});
//# sourceMappingURL=futil-js.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports.futil=t(require("lodash/fp")):e.futil=t(e["lodash/fp"])}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(5);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys(function(e){return e+"In"},f),t.extendOn=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(3),i=n(1);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})(function(e){return[e]}),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry(function(e,t){return a.default.compact(t).join(e)}),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy(function(e){return e}),a.default.filter(function(e){return e.length>1}),a.default.flatten,a.default.uniq),t.push=a.default.curry(function(e,t){return t.concat([e])})),h=(t.pushIn=a.default.curry(function(e,t){return e.concat([t])}),t.pushOn=a.default.curry(function(e,t){return e.push(t),e}),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d(function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)})),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce(function(e,t){return s(e).concat(h(a.default.flatten(p(e)),t))},[])),t.cycle=a.default.curry(function(e,t){return e[(e.indexOf(t)+1)%e.length]}),t.arrayToObject=a.default.curry(function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)}),t.zipObjectDeepWith=a.default.curry(function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)})),m=(t.flags=g(a.default,function(){return!0}),t.prefixes=function(e){return a.default.range(1,e.length+1).map(function(t){return a.default.take(t,e)})},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry(function(e,t){return a.default.reduce(function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(t),[[n]])},[[a.default.head(t)]],a.default.tail(t))}),t.toggleElementBy=a.default.curry(function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)}));t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry(function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,i.reduceIndexed)(function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(t),[(0,o.callOrReturn)(e,t,r,a),n])},[u],a)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry(function(e,t){return a.default.iteratee(e)(a.default.find(e,t))});var f=t.map=a.default.curry(function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)}),i=t.deepMap=a.default.curry(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n(function(t){return r(t)?i(e,e(t),n,r):t},t)});t.insertAtIndex=a.default.curry(function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),i=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry(function(e,t){return t+e}),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then(function(){return s(n,r)}).then(function(){return e.apply(void 0,l(n))}).then(function(e){a=e}).then(function(){return c(a,r,n)}).catch(function(e){return h(e,r,n)}).catch(function(e){o=e}).then(function(){return y(r,n)}).then(function(){if(o)throw o}).then(function(){return a})});return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,l(n));return c(a,r,n),a}catch(e){throw h(e,r,n),e}finally{y(r,n)}});return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)(function(e,t){t.setStatus("failed")}),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout(function(){t.setStatus(null)},e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return l(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,l){return n(a,l,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(i(u)),[l].concat(i(f))),t(a,l,u,f)||[])||r(a,l,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r})},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return d(e)(function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))})(r),n})},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){return p(e)(function(e,n){return(0,f.push)(t(n),e)},[],n)})},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)(function(e){return e})},h=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},g=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry(function(n,r){return a.default.reduce(function(n,r){return a.default.find(t(r),e(n))},r,n)})},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues(function(u){return s(e)(function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)},r)}))(r)})},b=t.treeKeys=function(e,t,n,r){return[t].concat(i(r))},O=t.treeValues=function(e,t,n){return[e].concat(i(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)(function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)},{})}}),w=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:h(e),lookup:g(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:w(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},i=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=i(),r=a.default.debounce(e,function(){n.resolve(t.apply(void 0,arguments)),n=i()});return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry(function(e,t,n){return function(r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)}}),l=t.when=a.default.curry(function(e,t){return i(e,t,a.default.identity)});t.unless=a.default.curry(function(e,t){return i(e,a.default.identity,t)}),t.whenExists=l(f.exists),t.whenTruthy=l(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var a=n(3);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=n(7);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var f=n(11);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var i=n(12);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var l=n(5);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(2);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(8);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var s=n(13);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var p=n(4);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var y=n(14);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var v=n(6);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var h=n(9);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var g,m=n(0),b=(g=m)&&g.__esModule?g:{default:g},O=T(u),j=T(a),_=T(o),w=T(f),x=T(i),A=T(l),k=T(c),P=T(d),E=T(s),M=T(p),I=T(y),B=T(v),S=T(h);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var R=t.greaterThanOne=b.default.lt(1),N=t.VERSION="1.56.0";t.default=r({},O,j,_,w,x,A,k,P,E,M,I,B,S,{greaterThanOne:R,VERSION:N})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(8),i=n(2),l=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry(function(e,t,n){return o.default.flow((0,i.intersperse)((0,l.differentLast)(function(){return e},function(){return t})),o.default.join(""))(n)}));t.toSentence=p(", "," and ")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),i=n(8),l=n(4),c=n(1),d=n(3),s=n(5);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry(function(e,t){return p({},e,t)}),h=t.singleObjectR=o.default.flip(v),g=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry(function(e,t,n){return n[t]=n[e],delete n[e],n}),t.unwind=o.default.curry(function(e,t){return o.default.map(function(n){return o.default.set(e,n,t)},o.default.get(e,t))}),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)(function(t,r,u){return o.default.merge(t,(O(r)?h:e)(r,(0,f.dotJoinWith)(l.isNotNil)([n,u])))},{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry(function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length}),t.matchesSome=o.default.flow(g,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry(function(e,t,n){return o.default.get(e,t)===n}),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry(function(e,t){return o.default.getOr(t,e,t)}),t.alias=o.default.curry(function(e,t){return o.default.getOr(e,e,t)}),t.aliasIn=o.default.curry(function(e,t){return o.default.getOr(t,t,e)}),t.cascade=o.default.curryN(2,function(e,t,n){return o.default.flow((0,d.findApply)(function(e){return e&&o.default.iteratee(e)(t)}),o.default.defaultTo(n))(e)})),w=(t.cascadeIn=o.default.curryN(2,function(e,t,n){return _(t,e,n)}),t.cascadeKey=o.default.curry(function(e,t){return o.default.find((0,c.getIn)(t),e)}),t.cascadePropKey=o.default.curry(function(e,t){return o.default.find((0,c.hasIn)(t),e)})),x=(t.cascadeProp=o.default.curry(function(e,t){return o.default.get(w(e,t),t)}),t.unkeyBy=o.default.curry(function(e,t){return(0,c.mapIndexed)(function(t,n){return o.default.extend(t,p({},e||n,n))})(t)})),A=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:e}}),o.default.omitBy(function(e){return e.from===e.to}))(t)},k=(t.simpleDiffArray=o.default.flow(A,x("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:r[t]}}),o.default.omitBy(function(e){return e.from===e.to}))(o.default.merge(n,r))}),P=(t.diffArray=o.default.flow(k,x("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map(function(n){o.default.includes(n,e)||delete t[n]}))(t)},t.mergeAllArrays=o.default.mergeAllWith(function(e,t){if(o.default.isArray(e))return e.concat(t)}));t.invertByArray=o.default.flow((0,c.mapIndexed)(function(e,t){return(0,f.zipObjectDeepWith)(e,function(){return[t]})}),P),t.stampKey=o.default.curry(function(e,t){return(0,c.mapValuesIndexed)(function(t,n){return u({},t,p({},e,n))},t)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var i=t.testRegex=a.default.curry(function(e,t){return new RegExp(e).test(t)}),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},a.default.flow(a.default.words,a.default.join("|"))),d=a.default.flow(a.default.words,a.default.map(function(e){return"(?=.*"+e+")"}),a.default.join("")),s=a.default.curry(function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}}),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry(function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u}),t.postings=a.default.curry(function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r})),y=t.postingsForWords=a.default.curry(function(e,t){return a.default.reduce(function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)},[])(a.default.words(e))}),v=t.highlightFromPostings=a.default.curry(function(e,t,n,r){var u=0;return a.default.each(function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length},(0,o.mergeRanges)(n)),r});t.highlight=a.default.curry(function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),i=n(2);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var c=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},d=(t.lensOf=function(e){return o.default.reduce(function(t,n){return t[n]=c(n,e),t},{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,p.apply(void 0,n))},set:function(t){return y.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,p.apply(void 0,n)))].concat(n))}}}),s=function(){return(arguments.length<=1?void 0:arguments[1])?c.apply(void 0,arguments):arguments.length<=0?void 0:arguments[0]},p=t.view=function(){return(e=s.apply(void 0,arguments)).get?e.get():e();var e},y=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return p.apply(void 0,t)}},o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(e,t){return t.set?t.set(e):t(e)}(e,s.apply(void 0,n))}));t.set=y;var v=t.sets=o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return y.apply(void 0,[e].concat(n))}}),h=t.setsWith=o.default.curry(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return y.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}}),g=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return y.apply(void 0,[!p.apply(void 0,t)].concat(t))}},t.on=v(!0)),m=t.off=v(!1),b=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return l(n={},e,p.apply(void 0,u)),l(n,"onChange",h.apply(void 0,[t].concat(u))),n}},O=function(e){return b(e,"target."+e)};t.domLens={value:O("value"),checkboxValues:o.default.flow(d,O("checked")),hover:function(){return{onMouseOver:g.apply(void 0,arguments),onMouseOut:m.apply(void 0,arguments)}},focus:function(){return{onFocus:g.apply(void 0,arguments),onBlur:m.apply(void 0,arguments)}},targetBinding:O,binding:b},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports.futil=t(require("lodash/fp")):e.futil=t(e["lodash/fp"])}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(5);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys(function(e){return e+"In"},f),t.extendOn=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=t.replaceElementBy=t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(3),i=n(1);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})(function(e){return[e]}),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry(function(e,t){return a.default.compact(t).join(e)}),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy(function(e){return e}),a.default.filter(function(e){return e.length>1}),a.default.flatten,a.default.uniq),t.push=a.default.curry(function(e,t){return t.concat([e])})),h=(t.pushIn=a.default.curry(function(e,t){return e.concat([t])}),t.pushOn=a.default.curry(function(e,t){return e.push(t),e}),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d(function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)})),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce(function(e,t){return s(e).concat(h(a.default.flatten(p(e)),t))},[])),t.cycle=a.default.curry(function(e,t){return e[(e.indexOf(t)+1)%e.length]}),t.arrayToObject=a.default.curry(function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)}),t.zipObjectDeepWith=a.default.curry(function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)})),m=(t.flags=g(a.default,function(){return!0}),t.prefixes=function(e){return a.default.range(1,e.length+1).map(function(t){return a.default.take(t,e)})},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry(function(e,t){return a.default.reduce(function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(t),[[n]])},[[a.default.head(t)]],a.default.tail(t))}),t.toggleElementBy=a.default.curry(function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)})),O=(t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry(function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,i.reduceIndexed)(function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(t),[(0,o.callOrReturn)(e,t,r,a),n])},[u],a)}),t.replaceElementBy=a.default.curry(function(e,t,n){return a.default.map(function(n){return e(n)?t:n},n)}));t.replaceElement=a.default.curry(function(e,t,n){return O(a.default.isEqual(e),t,n)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry(function(e,t){return a.default.iteratee(e)(a.default.find(e,t))});var f=t.map=a.default.curry(function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)}),i=t.deepMap=a.default.curry(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n(function(t){return r(t)?i(e,e(t),n,r):t},t)});t.insertAtIndex=a.default.curry(function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),i=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry(function(e,t){return t+e}),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then(function(){return s(n,r)}).then(function(){return e.apply(void 0,l(n))}).then(function(e){a=e}).then(function(){return c(a,r,n)}).catch(function(e){return h(e,r,n)}).catch(function(e){o=e}).then(function(){return y(r,n)}).then(function(){if(o)throw o}).then(function(){return a})});return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},n,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,l(n));return c(a,r,n),a}catch(e){throw h(e,r,n),e}finally{y(r,n)}});return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)(function(e,t){t.setStatus("failed")}),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout(function(){t.setStatus(null)},e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return l(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,l){return n(a,l,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(i(u)),[l].concat(i(f))),t(a,l,u,f)||[])||r(a,l,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r})},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return d(e)(function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))})(r),n})},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n){return p(e)(function(e,n){return(0,f.push)(t(n),e)},[],n)})},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)(function(e){return e})},h=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},g=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry(function(n,r){return a.default.reduce(function(n,r){return a.default.find(t(r),e(n))},r,n)})},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry(function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues(function(u){return s(e)(function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)},r)}))(r)})},b=t.treeKeys=function(e,t,n,r){return[t].concat(i(r))},O=t.treeValues=function(e,t,n){return[e].concat(i(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)(function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)},{})}}),w=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:h(e),lookup:g(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:w(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},i=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=i(),r=a.default.debounce(e,function(){n.resolve(t.apply(void 0,arguments)),n=i()});return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry(function(e,t,n){return function(r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)}}),l=t.when=a.default.curry(function(e,t){return i(e,t,a.default.identity)});t.unless=a.default.curry(function(e,t){return i(e,a.default.identity,t)}),t.whenExists=l(f.exists),t.whenTruthy=l(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var a=n(3);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=n(7);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var f=n(11);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var i=n(12);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var l=n(5);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(2);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var d=n(8);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var s=n(13);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var p=n(4);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var y=n(14);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var v=n(6);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var h=n(9);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var g,m=n(0),b=(g=m)&&g.__esModule?g:{default:g},O=T(u),j=T(a),_=T(o),w=T(f),x=T(i),A=T(l),E=T(c),k=T(d),P=T(s),M=T(p),I=T(y),B=T(v),S=T(h);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var N=t.greaterThanOne=b.default.lt(1),R=t.VERSION="1.57.0";t.default=r({},O,j,_,w,x,A,E,k,P,M,I,B,S,{greaterThanOne:N,VERSION:R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(8),i=n(2),l=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry(function(e,t,n){return o.default.flow((0,i.intersperse)((0,l.differentLast)(function(){return e},function(){return t})),o.default.join(""))(n)}));t.toSentence=p(", "," and ")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omitEmpty=t.omitBlank=t.omitNull=t.omitNil=t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),i=n(8),l=n(4),c=n(1),d=n(3),s=n(5);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry(function(e,t){return p({},e,t)}),h=t.singleObjectR=o.default.flip(v),g=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry(function(e,t,n){return n[t]=n[e],delete n[e],n}),t.unwind=o.default.curry(function(e,t){return o.default.map(function(n){return o.default.set(e,n,t)},o.default.get(e,t))}),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)(function(t,r,u){return o.default.merge(t,(O(r)?h:e)(r,(0,f.dotJoinWith)(l.isNotNil)([n,u])))},{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry(function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length}),t.matchesSome=o.default.flow(g,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry(function(e,t,n){return o.default.get(e,t)===n}),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry(function(e,t){return o.default.getOr(t,e,t)}),t.alias=o.default.curry(function(e,t){return o.default.getOr(e,e,t)}),t.aliasIn=o.default.curry(function(e,t){return o.default.getOr(t,t,e)}),t.cascade=o.default.curryN(2,function(e,t,n){return o.default.flow((0,d.findApply)(function(e){return e&&o.default.iteratee(e)(t)}),o.default.defaultTo(n))(e)})),w=(t.cascadeIn=o.default.curryN(2,function(e,t,n){return _(t,e,n)}),t.cascadeKey=o.default.curry(function(e,t){return o.default.find((0,c.getIn)(t),e)}),t.cascadePropKey=o.default.curry(function(e,t){return o.default.find((0,c.hasIn)(t),e)})),x=(t.cascadeProp=o.default.curry(function(e,t){return o.default.get(w(e,t),t)}),t.unkeyBy=o.default.curry(function(e,t){return(0,c.mapIndexed)(function(t,n){return o.default.extend(t,p({},e||n,n))})(t)})),A=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:e}}),o.default.omitBy(function(e){return e.from===e.to}))(t)},E=(t.simpleDiffArray=o.default.flow(A,x("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)(function(e,t){return{from:n[t],to:r[t]}}),o.default.omitBy(function(e){return e.from===e.to}))(o.default.merge(n,r))}),k=(t.diffArray=o.default.flow(E,x("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map(function(n){o.default.includes(n,e)||delete t[n]}))(t)},t.mergeAllArrays=o.default.mergeAllWith(function(e,t){if(o.default.isArray(e))return e.concat(t)}));t.invertByArray=o.default.flow((0,c.mapIndexed)(function(e,t){return(0,f.zipObjectDeepWith)(e,function(){return[t]})}),k),t.stampKey=o.default.curry(function(e,t){return(0,c.mapValuesIndexed)(function(t,n){return u({},t,p({},e,n))},t)}),t.omitNil=function(e){return o.default.omitBy(o.default.isNil,e)},t.omitNull=function(e){return o.default.omitBy(o.default.isNull,e)},t.omitBlank=function(e){return o.default.omitBy(l.isBlank,e)},t.omitEmpty=function(e){return o.default.omitBy(o.default.isEmpty,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var i=t.testRegex=a.default.curry(function(e,t){return new RegExp(e).test(t)}),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},a.default.flow(a.default.words,a.default.join("|"))),d=a.default.flow(a.default.words,a.default.map(function(e){return"(?=.*"+e+")"}),a.default.join("")),s=a.default.curry(function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}}),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry(function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u}),t.postings=a.default.curry(function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r})),y=t.postingsForWords=a.default.curry(function(e,t){return a.default.reduce(function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)},[])(a.default.words(e))}),v=t.highlightFromPostings=a.default.curry(function(e,t,n,r){var u=0;return a.default.each(function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length},(0,o.mergeRanges)(n)),r});t.highlight=a.default.curry(function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),i=n(2);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var c=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},d=(t.lensOf=function(e){return o.default.reduce(function(t,n){return t[n]=c(n,e),t},{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,p.apply(void 0,n))},set:function(t){return y.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,p.apply(void 0,n)))].concat(n))}}}),s=function(){return(arguments.length<=1?void 0:arguments[1])?c.apply(void 0,arguments):arguments.length<=0?void 0:arguments[0]},p=t.view=function(){return(e=s.apply(void 0,arguments)).get?e.get():e();var e},y=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return p.apply(void 0,t)}},o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(e,t){return t.set?t.set(e):t(e)}(e,s.apply(void 0,n))}));t.set=y;var v=t.sets=o.default.curryN(2,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return y.apply(void 0,[e].concat(n))}}),h=t.setsWith=o.default.curry(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return y.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}}),g=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return y.apply(void 0,[!p.apply(void 0,t)].concat(t))}},t.on=v(!0)),m=t.off=v(!1),b=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return l(n={},e,p.apply(void 0,u)),l(n,"onChange",h.apply(void 0,[t].concat(u))),n}},O=function(e){return b(e,"target."+e)};t.domLens={value:O("value"),checkboxValues:o.default.flow(d,O("checked")),hover:function(){return{onMouseOver:g.apply(void 0,arguments),onMouseOut:m.apply(void 0,arguments)}},focus:function(){return{onFocus:g.apply(void 0,arguments),onBlur:m.apply(void 0,arguments)}},targetBinding:O,binding:b},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}}}])});
//# sourceMappingURL=futil.js.map
{
"name": "futil",
"version": "1.56.0",
"version": "1.57.0",
"description": "F(unctional) util(ities). Resistance is futile.",

@@ -5,0 +5,0 @@ "main": "lib/futil-js.js",

@@ -238,2 +238,8 @@ <a href='https://smartprocure.github.io/futil-js/'><img src='https://user-images.githubusercontent.com/8062245/28718527-796382ac-7374-11e7-98a3-9791223042a4.png' width='200' alt='futil-js'></a>

### replaceElementBy
`(fn(array_element), value, array) -> array` Replaces an element in an array with `value` based on the boolean result of a function `fn`.
### replaceElement
`(target, value, array) -> array` Replaces all elements equal to `target` in an array with `value`.
## Object

@@ -369,2 +375,14 @@

### omitNil
`_.omitBy` using `_.isNil` as function argument.
### omitNull
`_.omitBy` using `_.isNull` as function argument.
### omitBlank
`_.omitBy` using `F.isBlank` as function argument.
### omitEmpty
`_.omitBy` using `_.isEmpty` as function argument.
## String

@@ -371,0 +389,0 @@

@@ -106,1 +106,8 @@ import _ from 'lodash/fp'

)
export let replaceElementBy = _.curry((f, b, arr) =>
_.map(c => (f(c) ? b : c), arr)
)
export let replaceElement = _.curry((a, b, arr) =>
replaceElementBy(_.isEqual(a), b, arr)
)
import _ from 'lodash/fp'
import { dotJoinWith, zipObjectDeepWith } from './array'
import { overNone } from './logic'
import { isNotNil } from './lang'
import { isNotNil, isBlank } from './lang'
import {

@@ -182,1 +182,6 @@ reduceIndexed,

)
export let omitNil = x => _.omitBy(_.isNil, x)
export let omitNull = x => _.omitBy(_.isNull, x)
export let omitBlank = x => _.omitBy(isBlank, x)
export let omitEmpty = x => _.omitBy(_.isEmpty, x)
{
"stats": {
"suites": 28,
"tests": 164,
"passes": 164,
"tests": 170,
"passes": 170,
"pending": 0,
"failures": 0,
"start": "2019-06-12T21:57:24.698Z",
"end": "2019-06-12T21:57:25.334Z",
"duration": 636
"start": "2019-06-21T14:31:41.356Z",
"end": "2019-06-21T14:31:41.999Z",
"duration": 643
},

@@ -16,3 +16,3 @@ "tests": [

"fullTitle": "Algebras map arrays",
"duration": 1,
"duration": 2,
"currentRetry": 0,

@@ -24,3 +24,3 @@ "err": {}

"fullTitle": "Algebras map plain objects",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -39,3 +39,3 @@ "err": {}

"fullTitle": "Algebras deepMap plain objects",
"duration": 2,
"duration": 3,
"currentRetry": 0,

@@ -103,3 +103,3 @@ "err": {}

"fullTitle": "Array Functions pushOn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -174,3 +174,3 @@ "err": {}

"fullTitle": "Array Functions toggleElementBy",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -187,2 +187,16 @@ "err": {}

{
"title": "replaceElementBy",
"fullTitle": "Array Functions replaceElementBy",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "replaceElement",
"fullTitle": "Array Functions replaceElement",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "should combine aspect states",

@@ -197,3 +211,3 @@ "fullTitle": "Aspect Functions should combine aspect states",

"fullTitle": "Aspect Functions should support .after calls (`logs` aspect)",
"duration": 1,
"duration": 2,
"currentRetry": 0,

@@ -205,3 +219,3 @@ "err": {}

"fullTitle": "Aspect Functions should support .onError and before (`concurrency`, `errors`, and `status` aspects)",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -213,3 +227,3 @@ "err": {}

"fullTitle": "Aspect Functions should support throwing in onError",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -221,3 +235,3 @@ "err": {}

"fullTitle": "Aspect Functions should support single error",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -229,3 +243,3 @@ "err": {}

"fullTitle": "Aspect Functions should support status and clearing status",
"duration": 524,
"duration": 523,
"currentRetry": 0,

@@ -244,3 +258,3 @@ "err": {}

"fullTitle": "Collections Functions flowMap",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -252,3 +266,3 @@ "err": {}

"fullTitle": "Collections Functions findApply",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -267,3 +281,3 @@ "err": {}

"fullTitle": "Converted Functions Flips getIn",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -275,3 +289,3 @@ "err": {}

"fullTitle": "Converted Functions Flips pickIn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -283,3 +297,3 @@ "err": {}

"fullTitle": "Converted Functions Flips includesIn",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -291,3 +305,3 @@ "err": {}

"fullTitle": "Converted Functions Mutables extendOn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -306,3 +320,3 @@ "err": {}

"fullTitle": "Function Functions should debounceAsync",
"duration": 22,
"duration": 23,
"currentRetry": 0,

@@ -335,3 +349,3 @@ "err": {}

"fullTitle": "Lang Functions throws",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -378,3 +392,3 @@ "err": {}

"fullTitle": "Lang Functions should isBlankDeep",
"duration": 4,
"duration": 3,
"currentRetry": 0,

@@ -428,3 +442,3 @@ "err": {}

"fullTitle": "Lens Functions Construction lensOf",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -492,3 +506,3 @@ "err": {}

"fullTitle": "Lens Functions Manipulation off",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -563,3 +577,3 @@ "err": {}

"fullTitle": "Lens Functions domLens hover",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -683,3 +697,3 @@ "err": {}

"fullTitle": "Object Functions singleObject",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -768,3 +782,3 @@ "err": {}

"fullTitle": "Object Functions matchesSignature",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -783,3 +797,3 @@ "err": {}

"fullTitle": "Object Functions compareDeep",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -791,3 +805,3 @@ "err": {}

"fullTitle": "Object Functions mapProp",
"duration": 16,
"duration": 18,
"currentRetry": 0,

@@ -876,3 +890,3 @@ "err": {}

"fullTitle": "Object Functions simpleDiffArray",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -891,3 +905,3 @@ "err": {}

"fullTitle": "Object Functions diffArray",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -899,3 +913,3 @@ "err": {}

"fullTitle": "Object Functions mergeAllArrays",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -919,2 +933,30 @@ "err": {}

{
"title": "omitNil",
"fullTitle": "Object Functions omitNil",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "omitNull",
"fullTitle": "Object Functions omitNull",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "omitBlank",
"fullTitle": "Object Functions omitBlank",
"duration": 1,
"currentRetry": 0,
"err": {}
},
{
"title": "omitEmpty",
"fullTitle": "Object Functions omitEmpty",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "testRegex",

@@ -957,3 +999,3 @@ "fullTitle": "Regexp Functions testRegex",

"fullTitle": "Regexp Functions should return all matched results",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -972,3 +1014,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should get postings by word",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -987,3 +1029,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should highlight backwards postings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1009,3 +1051,3 @@ "err": {}

"fullTitle": "String Functions quote",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1031,3 +1073,3 @@ "err": {}

"fullTitle": "String Functions trimStrings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1039,3 +1081,3 @@ "err": {}

"fullTitle": "String Functions autoLabel",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1089,3 +1131,3 @@ "err": {}

"fullTitle": "Tree Functions reduceTree",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1111,3 +1153,3 @@ "err": {}

"fullTitle": "Tree Functions leaves",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1126,3 +1168,3 @@ "err": {}

"fullTitle": "Tree Functions lookup",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1162,3 +1204,3 @@ "err": {}

"fullTitle": "Tree Functions flattenTree with propTreePath",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1191,3 +1233,3 @@ "err": {}

"fullTitle": "Tree Functions walk halting with tree return",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1210,3 +1252,3 @@ "err": {}

"fullTitle": "Algebras map arrays",
"duration": 1,
"duration": 2,
"currentRetry": 0,

@@ -1218,3 +1260,3 @@ "err": {}

"fullTitle": "Algebras map plain objects",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1233,3 +1275,3 @@ "err": {}

"fullTitle": "Algebras deepMap plain objects",
"duration": 2,
"duration": 3,
"currentRetry": 0,

@@ -1297,3 +1339,3 @@ "err": {}

"fullTitle": "Array Functions pushOn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1368,3 +1410,3 @@ "err": {}

"fullTitle": "Array Functions toggleElementBy",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1381,2 +1423,16 @@ "err": {}

{
"title": "replaceElementBy",
"fullTitle": "Array Functions replaceElementBy",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "replaceElement",
"fullTitle": "Array Functions replaceElement",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "should combine aspect states",

@@ -1391,3 +1447,3 @@ "fullTitle": "Aspect Functions should combine aspect states",

"fullTitle": "Aspect Functions should support .after calls (`logs` aspect)",
"duration": 1,
"duration": 2,
"currentRetry": 0,

@@ -1399,3 +1455,3 @@ "err": {}

"fullTitle": "Aspect Functions should support .onError and before (`concurrency`, `errors`, and `status` aspects)",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1407,3 +1463,3 @@ "err": {}

"fullTitle": "Aspect Functions should support throwing in onError",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1415,3 +1471,3 @@ "err": {}

"fullTitle": "Aspect Functions should support single error",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1423,3 +1479,3 @@ "err": {}

"fullTitle": "Aspect Functions should support status and clearing status",
"duration": 524,
"duration": 523,
"currentRetry": 0,

@@ -1438,3 +1494,3 @@ "err": {}

"fullTitle": "Collections Functions flowMap",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1446,3 +1502,3 @@ "err": {}

"fullTitle": "Collections Functions findApply",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1461,3 +1517,3 @@ "err": {}

"fullTitle": "Converted Functions Flips getIn",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1469,3 +1525,3 @@ "err": {}

"fullTitle": "Converted Functions Flips pickIn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1477,3 +1533,3 @@ "err": {}

"fullTitle": "Converted Functions Flips includesIn",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1485,3 +1541,3 @@ "err": {}

"fullTitle": "Converted Functions Mutables extendOn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1500,3 +1556,3 @@ "err": {}

"fullTitle": "Function Functions should debounceAsync",
"duration": 22,
"duration": 23,
"currentRetry": 0,

@@ -1529,3 +1585,3 @@ "err": {}

"fullTitle": "Lang Functions throws",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1572,3 +1628,3 @@ "err": {}

"fullTitle": "Lang Functions should isBlankDeep",
"duration": 4,
"duration": 3,
"currentRetry": 0,

@@ -1622,3 +1678,3 @@ "err": {}

"fullTitle": "Lens Functions Construction lensOf",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1686,3 +1742,3 @@ "err": {}

"fullTitle": "Lens Functions Manipulation off",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1757,3 +1813,3 @@ "err": {}

"fullTitle": "Lens Functions domLens hover",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1877,3 +1933,3 @@ "err": {}

"fullTitle": "Object Functions singleObject",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1962,3 +2018,3 @@ "err": {}

"fullTitle": "Object Functions matchesSignature",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1977,3 +2033,3 @@ "err": {}

"fullTitle": "Object Functions compareDeep",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1985,3 +2041,3 @@ "err": {}

"fullTitle": "Object Functions mapProp",
"duration": 16,
"duration": 18,
"currentRetry": 0,

@@ -2070,3 +2126,3 @@ "err": {}

"fullTitle": "Object Functions simpleDiffArray",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2085,3 +2141,3 @@ "err": {}

"fullTitle": "Object Functions diffArray",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -2093,3 +2149,3 @@ "err": {}

"fullTitle": "Object Functions mergeAllArrays",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2113,2 +2169,30 @@ "err": {}

{
"title": "omitNil",
"fullTitle": "Object Functions omitNil",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "omitNull",
"fullTitle": "Object Functions omitNull",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "omitBlank",
"fullTitle": "Object Functions omitBlank",
"duration": 1,
"currentRetry": 0,
"err": {}
},
{
"title": "omitEmpty",
"fullTitle": "Object Functions omitEmpty",
"duration": 0,
"currentRetry": 0,
"err": {}
},
{
"title": "testRegex",

@@ -2151,3 +2235,3 @@ "fullTitle": "Regexp Functions testRegex",

"fullTitle": "Regexp Functions should return all matched results",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2166,3 +2250,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should get postings by word",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2181,3 +2265,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should highlight backwards postings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2203,3 +2287,3 @@ "err": {}

"fullTitle": "String Functions quote",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2225,3 +2309,3 @@ "err": {}

"fullTitle": "String Functions trimStrings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2233,3 +2317,3 @@ "err": {}

"fullTitle": "String Functions autoLabel",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2283,3 +2367,3 @@ "err": {}

"fullTitle": "Tree Functions reduceTree",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2305,3 +2389,3 @@ "err": {}

"fullTitle": "Tree Functions leaves",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2320,3 +2404,3 @@ "err": {}

"fullTitle": "Tree Functions lookup",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2356,3 +2440,3 @@ "err": {}

"fullTitle": "Tree Functions flattenTree with propTreePath",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2385,3 +2469,3 @@ "err": {}

"fullTitle": "Tree Functions walk halting with tree return",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2388,0 +2472,0 @@ "err": {}

@@ -147,2 +147,13 @@ import chai from 'chai'

})
it('replaceElementBy', () => {
expect(F.replaceElementBy(c => c > 10, 0, [1, 11, 3, 5])).to.deep.equal([
1,
0,
3,
5,
])
})
it('replaceElement', () => {
expect(F.replaceElement(11, 0, [1, 11, 3, 5])).to.deep.equal([1, 0, 3, 5])
})
})

@@ -562,2 +562,30 @@ import chai from 'chai'

})
it('omitNil', () => {
expect(F.omitNil({ a: 1, b: 'c', d: null, e: undefined })).to.deep.equal({
a: 1,
b: 'c',
})
})
it('omitNull', () => {
expect(F.omitNull({ a: 1, b: 'c', d: null, e: undefined })).to.deep.equal({
a: 1,
b: 'c',
e: undefined,
})
})
it('omitBlank', () => {
expect(
F.omitBlank({ a: 1, b: 'c', d: null, e: undefined, f: [], g: {}, h: '' })
).to.deep.equal({
a: 1,
b: 'c',
})
})
it('omitEmpty', () => {
expect(
F.omitEmpty({ a: 1, b: 'c', d: null, e: undefined, f: [], g: {}, h: '' })
).to.deep.equal({
b: 'c',
})
})
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc