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

attadux

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attadux - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

cjs/middleware/multipliers.js

27

cjs/duck/create.js
'use strict';
exports.__esModule = true;
exports.createValidationMiddlewareHelpers = exports.createDuckReducer = exports.createDuckActionCreators = exports.createDuckActionEnhancers = exports.makeEnhancers = exports.createDuckSelectors = exports.createDuckInitialState = exports.createDuckMachines = exports.createDuckWorkers = exports.createDuckQueries = exports.createDuckValidators = exports.createDuckMetadata = exports.createDuckLookup = exports.createRow = undefined;
exports.createValidationMiddlewareHelpers = exports.createDuckReducer = exports.createDuckActionCreators = exports.createDuckActionMultipliers = exports.makeMultipliers = exports.createDuckActionEnhancers = exports.makeEnhancers = exports.createDuckSelectors = exports.createDuckInitialState = exports.createDuckMachines = exports.createDuckWorkers = exports.createDuckQueries = exports.createDuckValidators = exports.createDuckMetadata = exports.createDuckLookup = exports.createRow = undefined;

@@ -10,2 +10,6 @@ var _applySpec = require('ramda/src/applySpec');

var _juxt = require('ramda/src/juxt');
var _juxt2 = _interopRequireDefault(_juxt);
var _is = require('ramda/src/is');

@@ -313,2 +317,23 @@

/**
* Creates an Object of multiplier functions out of an Object of spec objects
* (or arrays of spec objects).
*
* @func
* @sig {k: [({k: v} -> {k: v}), ({k: v} -> {k: v}), ...]|({k: v} -> {k: v}) } -> {k: ({k: v} -> {k: v}) }
* @param {Object[]|Object} multipliers A single multiplier spec or an Array of multipler specs
* @returns {Object} An object of multipler functions, each ready to receive an
* input object and apply their single or many multipler functions to it.
*/
var makeMultipliers = exports.makeMultipliers = (0, _compose2['default'])(_juxt2['default'], (0, _map2['default'])(_shapey.makeShaper), (0, _unless2['default'])((0, _is2['default'])(Array), _of2['default']));
/**
* Creates the Duck's action multipliers (if they are present inside of its 'options' prop).
*
* @func
* @sig {k: v} -> {k: v}
* @param {Object} duck A duck which (may) contain action multipliers (inside of its 'options')
* @returns {Object} A clone of the duck, but now with action multipliers (if they were found inside of 'options').
*/
var createDuckActionMultipliers = exports.createDuckActionMultipliers = (0, _converge2['default'])(_mergeDeepRight2['default'], [_identity2['default'], (0, _ifElse2['default'])((0, _pathSatisfies2['default'])(_isNil2['default'], ['options', 'multipliers']), (0, _always2['default'])({}), (0, _compose2['default'])((0, _objOf2['default'])('multipliers'), (0, _map2['default'])(makeMultipliers), (0, _converge2['default'])(_call2['default'], [(0, _compose2['default'])(_util.coerceToFn, (0, _path2['default'])(['options', 'multipliers'])), _identity2['default']])))]);
/**
* Creates the Duck's action creators (if they are present inside of its 'options' prop).

@@ -315,0 +340,0 @@ *

2

cjs/duck/extend.js

@@ -248,5 +248,5 @@ 'use strict';

var childOptions = extendOptions(options);
var optionBuilders = [['consts', (0, _compose2['default'])((0, _mergeDeepWith2['default'])(_types.concatOrReplace, _2['default'], childOptions.consts), (0, _path2['default'])(['options', 'consts']))], ['types', (0, _compose2['default'])(_uniq2['default'], (0, _concat2['default'])(childOptions.types), (0, _path2['default'])(['options', 'types']))], ['initialState', createOptionsExtender(childOptions)], ['machines', createOptionsExtender(childOptions)], ['creators', createOptionsExtender(childOptions)], ['selectors', createOptionsExtender(childOptions)], ['queries', createOptionsExtender(childOptions)], ['enhancers', createOptionsExtender(childOptions)], ['validators', createOptionsExtender(childOptions)], ['workers', createOptionsExtender(childOptions)]];
var optionBuilders = [['consts', (0, _compose2['default'])((0, _mergeDeepWith2['default'])(_types.concatOrReplace, _2['default'], childOptions.consts), (0, _path2['default'])(['options', 'consts']))], ['types', (0, _compose2['default'])(_uniq2['default'], (0, _concat2['default'])(childOptions.types), (0, _path2['default'])(['options', 'types']))], ['initialState', createOptionsExtender(childOptions)], ['machines', createOptionsExtender(childOptions)], ['creators', createOptionsExtender(childOptions)], ['selectors', createOptionsExtender(childOptions)], ['queries', createOptionsExtender(childOptions)], ['enhancers', createOptionsExtender(childOptions)], ['multipliers', createOptionsExtender(childOptions)], ['validators', createOptionsExtender(childOptions)], ['workers', createOptionsExtender(childOptions)]];
return createExtendedOptions(optionBuilders, duck, childOptions);
};
};

@@ -47,3 +47,3 @@ 'use strict';

*/
var createDuck = exports.createDuck = (0, _compose2['default'])(Object.freeze, _create.createDuckReducer, _create.createDuckWorkers, _create.createValidationMiddlewareHelpers, _create.createDuckActionCreators, _create.createDuckActionEnhancers, _create.createDuckSelectors, _create.createDuckInitialState, _create.createDuckMachines, _create.createDuckValidators, _create.createDuckQueries, _create.createDuckMetadata, (0, _mergeDeepRight2['default'])(_schema.duxDefaults));
var createDuck = exports.createDuck = (0, _compose2['default'])(Object.freeze, _create.createDuckReducer, _create.createDuckWorkers, _create.createValidationMiddlewareHelpers, _create.createDuckActionCreators, _create.createDuckActionMultipliers, _create.createDuckActionEnhancers, _create.createDuckSelectors, _create.createDuckInitialState, _create.createDuckMachines, _create.createDuckValidators, _create.createDuckQueries, _create.createDuckMetadata, (0, _mergeDeepRight2['default'])(_schema.duxDefaults));

@@ -50,0 +50,0 @@ /**

@@ -154,2 +154,3 @@ 'use strict';

enhancers: [[(0, _either2['default'])(_is3.isPlainObj, (0, _is2['default'])(Function)), 'must be an object (or a function returning an object)']],
multipliers: [[(0, _either2['default'])(_is3.isPlainObj, (0, _is2['default'])(Function)), 'must be an object (or a function returning an object)']],
queries: [[(0, _either2['default'])(_is3.isPlainObj, (0, _is2['default'])(Function)), 'must be an object (or a function returning an object)']],

@@ -156,0 +157,0 @@ workers: [[(0, _either2['default'])(_is3.isPlainObj, (0, _is2['default'])(Function)), 'must be an object (or a function returning an object)']],

'use strict';
exports.__esModule = true;
exports.createWorkerMiddleware = exports.createValidatorMiddleware = exports.createEnhancerMiddleware = undefined;
exports.createWorkerMiddleware = exports.createValidatorMiddleware = exports.createMultiplierMiddleware = exports.createEnhancerMiddleware = undefined;

@@ -10,2 +10,6 @@ var _enhancers = require('./enhancers');

var _multipliers = require('./multipliers');
var _multipliers2 = _interopRequireDefault(_multipliers);
var _validators = require('./validators');

@@ -22,3 +26,4 @@

exports.createEnhancerMiddleware = _enhancers2['default'];
exports.createMultiplierMiddleware = _multipliers2['default'];
exports.createValidatorMiddleware = _validators2['default'];
exports.createWorkerMiddleware = _workers2['default'];

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.attadux={})}(this,function(t){"use strict";var n=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]};var r=function(t){return function r(e){return 0===arguments.length||n(e)?r:t.apply(this,arguments)}};var e=function(t){return function e(u,o){switch(arguments.length){case 0:return e;case 1:return n(u)?e:r(function(n){return t(u,n)});default:return n(u)&&n(o)?e:n(u)?r(function(n){return t(n,o)}):n(o)?r(function(n){return t(u,n)}):t(u,o)}}},u=e(function(t,n){return t.apply(this,n)});var o=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}};var i=function t(r,e,u){return function(){for(var i=[],a=0,c=r,f=0;e.length>f||arguments.length>a;){var s;f>=e.length||n(e[f])&&arguments.length>a?(s=arguments[a],a+=1):s=e[f],i[f]=s,n(s)||(c-=1),f+=1}return c>0?o(c,t(r,i,u)):u.apply(this,i)}},a=e(function(t,n){return 1===t?r(n):o(t,i(t,[],n))}),c=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};var f=function(t){return"function"==typeof t["@@transducer/step"]};var s=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!c(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(f(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}};var l=function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u};var p=function(t){return"[object String]"===Object.prototype.toString.call(t)},y=r(function(t){return!!c(t)||!!t&&("object"==typeof t&&(!p(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),h=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();var d=function(t){return new h(t)},v=e(function(t,n){return o(t.length,function(){return t.apply(n,arguments)})});function g(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function b(t,n,r,e){return t["@@transducer/result"](r[e](v(t["@@transducer/step"],t),n))}var m="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";var j=function(t,n,r){if("function"==typeof t&&(t=d(t)),y(r))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return b(t,n,r,"fantasy-land/reduce");if(null!=r[m])return g(t,n,r[m]());if("function"==typeof r.next)return g(t,n,r);if("function"==typeof r.reduce)return b(t,n,r,"reduce");throw new TypeError("reduce: list must be array or iterable")},O=function(){return this.xf["@@transducer/init"]()},S=function(t){return this.xf["@@transducer/result"](t)},w=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},t}(),A=e(function(t,n){return new w(t,n)});var x=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},E=Object.prototype.toString,k=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return x("callee",t)}},_=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(){return arguments.propertyIsEnumerable("length")}(),F=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1},M=r("function"!=typeof Object.keys||N?function(t){if(Object(t)!==t)return[];var n,r,e=[],u=N&&k(t);for(n in t)!x(n,t)||u&&"length"===n||(e[e.length]=n);if(_)for(r=P.length-1;r>=0;)x(n=P[r],t)&&!F(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)}),C=e(s(["fantasy-land/map","map"],A,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return a(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return j(function(r,e){return r[e]=t(n[e]),r},{},M(n));default:return l(t,n)}})),q=e(function(t,n){return n>t?n:t}),T=e(function(t,n){for(var r=n,e=0;t.length>e;){if(null==r)return;r=r[t[e]],e+=1}return r}),L=e(function(t,n){return T([t],n)}),U=e(function(t,n){return C(L(t),n)});var I=function(t){return function u(o,i,a){switch(arguments.length){case 0:return u;case 1:return n(o)?u:e(function(n,r){return t(o,n,r)});case 2:return n(o)&&n(i)?u:n(o)?e(function(n,r){return t(n,i,r)}):n(i)?e(function(n,r){return t(o,n,r)}):r(function(n){return t(o,i,n)});default:return n(o)&&n(i)&&n(a)?u:n(o)&&n(i)?e(function(n,r){return t(n,r,a)}):n(o)&&n(a)?e(function(n,r){return t(n,i,r)}):n(i)&&n(a)?e(function(n,r){return t(o,n,r)}):n(o)?r(function(n){return t(n,i,a)}):n(i)?r(function(n){return t(o,n,a)}):n(a)?r(function(n){return t(o,i,n)}):t(o,i,a)}}},R=I(j),D=r(function(t){for(var n=M(t),r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),z=r(function t(n){return n=C(function(n){return"function"==typeof n?n:t(n)},n),a(R(q,0,U("length",D(n))),function(){var t=arguments;return C(function(n){return u(n,t)},n)})}),B=e(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),V=Number.isInteger||function(t){return t<<0===t},$=I(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),W=r(function(t){return null==t}),Z=I(function t(n,r,e){if(0===n.length)return r;var u=n[0];if(n.length>1){var o=!W(e)&&x(u,e)?e[u]:V(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,o)}if(V(u)&&c(e)){var i=[].concat(e);return i[u]=r,i}return $(u,r,e)}),G=e(function(t,n){return n(t)});var H=function(t){return"[object Object]"===Object.prototype.toString.call(t)},X=r(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():c(t)?[]:p(t)?"":H(t)?{}:k(t)?function(){return arguments}():void 0});var J=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r};var K=function(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1};var Y=function(t){var n=(t+"").match(/^function (\w*)/);return null==n?"":n[1]},Q=e(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),tt=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function nt(t,n,r,e){var u=J(t),o=J(n);function i(t,n){return rt(t,n,r.slice(),e.slice())}return!K(function(t,n){return!K(i,n,t)},o,u)}function rt(t,n,r,e){if(Q(t,n))return!0;var u=tt(t);if(u!==tt(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===Y(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!Q(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Q(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return e[o]===n;o-=1}switch(u){case"Map":return t.size===n.size&&nt(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size===n.size&&nt(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=M(t);if(i.length!==M(n).length)return!1;var a=r.concat([t]),c=e.concat([n]);for(o=i.length-1;o>=0;){var f=i[o];if(!x(f,n)||!rt(n[f],t[f],a,c))return!1;o-=1}return!0}var et=rt,ut=e(function(t,n){return et(t,n,[],[])}),ot=r(function(t){return null!=t&&ut(t,X(t))}),it=I(function(t,n,r){return t(r[n])}),at=r(function(t){return a(t.length,t)}),ct=at(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),ft=I(function(t,n,r){return n.length>0&&t(T(n,r))}),st=I(function(t,n,r){return ut(n,r[t])}),lt=I(function(t,n,r){return t(r)?r:n(r)}),pt=I(function(t,n,r){return t(r)?n(r):r}),yt=e(function(t,n){for(var r={},e=0;t.length>e;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),ht=e(function t(n,r){var e,u,o,i={};for(u in r)i[u]="function"===(o=typeof(e=n[u]))?e(r[u]):e&&"object"===o?t(e,r[u]):r[u];return i}),dt=I(function(t,n,r){var e,u={};for(e in n)x(e,n)&&(u[e]=x(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)x(e,r)&&!x(e,u)&&(u[e]=r[e]);return u}),vt=I(function t(n,r,e){return dt(function(r,e,u){return H(e)&&H(u)?t(n,e,u):n(r,e,u)},r,e)}),gt=e(function(t,n){return vt(function(t,n,r){return r},t,n)}),bt=e(function(t,n){return a(R(q,0,U("length",n)),function(){var r=arguments,e=this;return t.apply(e,l(function(t){return t.apply(e,r)},n))})}),mt=e(function(t,n){var r={};return r[t]=n,r});var jt=function(t,n){var r,e=(t=t||[]).length,u=(n=n||[]).length,o=[];for(r=0;e>r;)o[o.length]=t[r],r+=1;for(r=0;u>r;)o[o.length]=n[r],r+=1;return o},Ot=e(function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:j(function(t,r){return jt(t,C(r,n))},[],t)});var St=r(function(t){return[t]});var wt="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;e>r;){var u=arguments[r];if(null!=u)for(var o in u)x(o,u)&&(n[o]=u[o]);r+=1}return n},At=r(function(t){return wt.apply(null,[{}].concat(t))});var xt=function(t){return"[object Function]"===Object.prototype.toString.call(t)};var Et=function(t,n,r){var e,u;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(e=1/n;t.length>r;){if(0===(u=t[r])&&1/u===e)return r;r+=1}return-1}if(n!=n){for(;t.length>r;){if("number"==typeof(u=t[r])&&u!=u)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;t.length>r;){if(ut(t[r],n))return r;r+=1}return-1};var kt=function(t,n){return Et(n,t,0)>=0};var _t=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'},Pt=function(t){return(10>t?"0":"")+t},Nt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Pt(t.getUTCMonth()+1)+"-"+Pt(t.getUTCDate())+"T"+Pt(t.getUTCHours())+":"+Pt(t.getUTCMinutes())+":"+Pt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var Ft=function(t){return function(){return!t.apply(this,arguments)}};var Mt=function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u},Ct=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},t}(),qt=e(s(["filter"],e(function(t,n){return new Ct(t,n)}),function(t,n){return H(n)?j(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},M(n)):Mt(t,n)})),Tt=e(function(t,n){return qt(Ft(t),n)});var Lt=function t(n,r){var e=function(e){var u=r.concat([n]);return kt(e,u)?"<Circular>":t(e,u)},u=function(t,n){return l(function(n){return _t(n)+": "+e(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+l(e,n).join(", ")+"))";case"[object Array]":return"["+l(e,n).concat(u(n,Tt(function(t){return/^\d+$/.test(t)},M(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+e(n.valueOf())+")":""+n;case"[object Date]":return"new Date("+(isNaN(n.valueOf())?e(NaN):_t(Nt(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+e(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+e(n.valueOf())+")":_t(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var o=""+n;if("[object Object]"!==o)return o}return"{"+u(n,M(n)).join(", ")+"}"}},Ut=r(function(t){return Lt(t,[])}),It=e(function(t,n){return a(t+1,function(){var r=arguments[t];if(null!=r&&xt(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ut(r)+' does not have a method named "'+n+'"')})}),Rt=It(1,"split"),Dt=e(function(t,n){var r=0>t?n.length+t:t;return p(n)?n.charAt(r):n[r]}),zt=Dt(0),Bt=e(function(t,n){var r=a(t,n);return a(t,function(){return j(Ot,C(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Vt=r(function(t){return Bt(t.length,t)}),$t=e(function(t,n){return t||n}),Wt=e(function(t,n){return xt(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:Vt($t)(t,n)}),Zt=r(function(t){return function(){return t}}),Gt={"@@functional/placeholder":!0},Ht=I(function(t,n,r){return a(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Xt=e(function(t,n){return null==n||n!=n?t:n});var Jt=r(function(t){return t}),Kt=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});var Yt=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}};var Qt=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return c(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}},tn=I(Qt("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),nn=r(Qt("tail",tn(1,1/0)));var rn=function(){if(0===arguments.length)throw Error("pipe requires at least one argument");return o(arguments[0].length,R(Yt,arguments[0],nn(arguments)))},en=r(function(t){return p(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});var un=function(){if(0===arguments.length)throw Error("compose requires at least one argument");return rn.apply(this,en(arguments))};var on,an,cn=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},fn=function(t){return function n(r){return 0===arguments.length||cn(r)?n:t.apply(this,arguments)}},sn=fn(function(t){return t}),ln=function(t){return function n(r,e){switch(arguments.length){case 0:return n;case 1:return cn(r)?n:fn(function(n){return t(r,n)});default:return cn(r)&&cn(e)?n:cn(r)?fn(function(n){return t(n,e)}):cn(e)?fn(function(n){return t(r,n)}):t(r,e)}}},pn=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},yn=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!pn(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(function(t){return"function"==typeof t["@@transducer/step"]}(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}},hn=fn(function(t){return!!pn(t)||!!t&&("object"==typeof t&&(!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),dn=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}(),vn=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}},gn=ln(function(t,n){return vn(t.length,function(){return t.apply(n,arguments)})}),bn=function(){function t(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function n(t,n,r,e){return t["@@transducer/result"](r[e](gn(t["@@transducer/step"],t),n))}var r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(e,u,o){if("function"==typeof e&&(e=dn(e)),hn(o))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(e,u,o);if("function"==typeof o["fantasy-land/reduce"])return n(e,u,o,"fantasy-land/reduce");if(null!=o[r])return t(e,u,o[r]());if("function"==typeof o.next)return t(e,u,o);if("function"==typeof o.reduce)return n(e,u,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}(),mn=function(){return this.xf["@@transducer/init"]()},jn=function(t){return this.xf["@@transducer/result"](t)},On=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=mn,t.prototype["@@transducer/result"]=jn,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},ln(function(n,r){return new t(n,r)})}(),Sn=ln(function(t,n){return 1===t?fn(n):vn(t,function t(n,r,e){return function(){for(var u=[],o=0,i=n,a=0;r.length>a||arguments.length>o;){var c;a>=r.length||cn(r[a])&&arguments.length>o?(c=arguments[o],o+=1):c=r[a],u[a]=c,cn(c)||(i-=1),a+=1}return i>0?vn(i,t(n,u,e)):e.apply(this,u)}}(t,[],n))}),wn=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},An=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(n){return"[object Arguments]"===t.call(n)}:function(t){return wn("callee",t)}}(),xn=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(){return arguments.propertyIsEnumerable("length")}(),e=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1};return fn("function"!=typeof Object.keys||r?function(u){if(Object(u)!==u)return[];var o,i,a=[],c=r&&An(u);for(o in u)!wn(o,u)||c&&"length"===o||(a[a.length]=o);if(t)for(i=n.length-1;i>=0;)wn(o=n[i],u)&&!e(a,o)&&(a[a.length]=o),i-=1;return a}:function(t){return Object(t)!==t?[]:Object.keys(t)})}(),En=ln(yn(["fantasy-land/map","map"],On,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Sn(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return bn(function(r,e){return r[e]=t(n[e]),r},{},xn(n));default:return function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u}(t,n)}})),kn=(on=bn,function t(n,r,e){switch(arguments.length){case 0:return t;case 1:return cn(n)?t:ln(function(t,r){return on(n,t,r)});case 2:return cn(n)&&cn(r)?t:cn(n)?ln(function(t,n){return on(t,r,n)}):cn(r)?ln(function(t,r){return on(n,t,r)}):fn(function(t){return on(n,r,t)});default:return cn(n)&&cn(r)&&cn(e)?t:cn(n)&&cn(r)?ln(function(t,n){return on(t,n,e)}):cn(n)&&cn(e)?ln(function(t,n){return on(t,r,n)}):cn(r)&&cn(e)?ln(function(t,r){return on(n,t,r)}):cn(n)?fn(function(t){return on(t,r,e)}):cn(r)?fn(function(t){return on(n,t,e)}):cn(e)?fn(function(t){return on(n,r,t)}):on(n,r,e)}}),_n=fn(function(t){return Sn(t.length,t)}),Pn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=mn,t.prototype["@@transducer/result"]=jn,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},ln(function(n,r){return new t(n,r)})}(),Nn=ln(yn(["filter"],Pn,function(t,n){return"[object Object]"===Object.prototype.toString.call(n)?bn(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},xn(n)):function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u}(t,n)})),Fn=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r},Mn=ln(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),Cn=fn(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),qn=ln(function(t,n){return function t(n,r,e,u){if(Mn(n,r))return!0;if(Cn(n)!==Cn(r))return!1;if(null==n||null==r)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof r["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](r)&&"function"==typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof r.equals)return"function"==typeof n.equals&&n.equals(r)&&"function"==typeof r.equals&&r.equals(n);switch(Cn(n)){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(null==(o=(n.constructor+"").match(/^function (\w*)/))?"":o[1]))return n===r;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof r||!Mn(n.valueOf(),r.valueOf()))return!1;break;case"Date":if(!Mn(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(n.source!==r.source||n.global!==r.global||n.ignoreCase!==r.ignoreCase||n.multiline!==r.multiline||n.sticky!==r.sticky||n.unicode!==r.unicode)return!1;break;case"Map":case"Set":if(!t(Fn(n.entries()),Fn(r.entries()),e,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o,i=xn(n);if(i.length!==xn(r).length)return!1;for(var a=e.length-1;a>=0;){if(e[a]===n)return u[a]===r;a-=1}for(e.push(n),u.push(r),a=i.length-1;a>=0;){var c=i[a];if(!wn(c,r)||!t(r[c],n[c],e,u))return!1;a-=1}return e.pop(),u.pop(),!0}(t,n,[],[])}),Tn=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=mn,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r;return this.f(n)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},ln(function(n,r){return new t(n,r)})}(),Ln=ln(yn(["all"],Tn,function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),Un=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validate=void 0;var r=p(sn),e=p(En),u=p(kn),o=p(_n),i=p(Nn),a=p(qn),c=p(Ln),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},l=function(){return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var r=[],e=!0,u=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){u=!0,o=t}finally{try{!e&&a.return&&a.return()}finally{if(u)throw o}}return r}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function p(t){return t&&t.__esModule?t:{default:t}}function y(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var h=n.validate=(0,o.default)(function(t,n,r,o){return(0,u.default)(function(u,p){var d=o[p],v=r[p];if(Array.isArray(v))return s({},u,y({},p,function(t,n,r){return(0,c.default)((0,a.default)(!0),r)?t():n((0,i.default)(function(t){return!0!==t},r))}(function(){return t(d)},n,(0,e.default)(function(t){return function(t,n,r,e){var u=l(t,2),o=u[1];return!!(0,u[0])(n,r)||("function"==typeof o?o(n,e):o)}(t,d,o,p)},v))));if("object"===(void 0===v?"undefined":f(v)))return s({},u,y({},p,h(t,n,v,d)));if("function"==typeof v){var g=v(d);return s({},u,y({},p,h(t,n,g,d)))}return s({},u,y({},p,t([])))},{},Object.keys(o))});n.default=(0,o.default)(function(t,n){return h(function(){return!0},r.default,t,n)})}),In=(an=Un)&&an.__esModule&&Object.prototype.hasOwnProperty.call(an,"default")?an.default:an;var Rn=function(t){return RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))};var Dn=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},zn=e(function(t,n){if(!Dn(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ut(t));return Rn(t).test(n)}),Bn=e(function(t,n){return t&&n}),Vn=e(function(t,n){return xt(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:Vt(Bn)(t,n)}),$n=e(function(t,n){for(var r={},e={},u=0,o=t.length;o>u;)e[t[u]]=1,u+=1;for(var i in n)e.hasOwnProperty(i)||(r[i]=n[i]);return r}),Wn=Zt(!0);var Zn=r(function(t){return function n(r){for(var e,u,o,i=[],a=0,c=r.length;c>a;){if(y(r[a]))for(o=0,u=(e=t?n(r[a]):r[a]).length;u>o;)i[i.length]=e[o],o+=1;else i[i.length]=r[a];a+=1}return i}}(!0)),Gn=It(1,"join"),Hn=R(e(function(t,n){return+t+ +n}),0);var Xn=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},Jn=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=Xn(this.xf["@@transducer/step"](t,!1))),t},t}(),Kn=e(s(["all"],e(function(t,n){return new Jn(t,n)}),function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),Yn=r(function(t){var n=R(q,0,C(function(t){return t[0].length},t));return o(n,function(){for(var n=0;t.length>n;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})}),Qn=e(function(t,n){for(var r=[],e=0,u=t.length;u>e;)kt(t[e],n)||kt(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),tr=e(function(t,n){return wt({},t,n)}),nr=e(function(t,n){return o(t.length,function(){try{return t.apply(this,arguments)}catch(t){return n.apply(this,jt([t],arguments))}})}),rr=r(function(t){var n=[];for(var r in t)x(r,t)&&(n[n.length]=[r,t[r]]);return n}),er=r(function(t){for(var n={},r=0;t.length>r;)n[t[r][0]]=t[r][1],r+=1;return n}),ur=I(function(t,n,r){return ut(T(t,r),n)})(["constructor","name"],"Object"),or=at(function(t,n){return console.error('\n Transform on field "'+t+'" failed\n',n)}),ir=un(er,C(function(t){var n=t[0],r=t[1];return[n,pt(B(Function),nr(Gt,or(n)))(r)]}),rr),ar=at(function(t,n){return rn(lt(ur,Zt({})),tr,G(Tt(B(Function),t)),ht(un(ir,qt(B(Function)))(t)),bt(tr,[Jt,bt(G,[pt(ot,Zt(n)),un(z,ir,G(t),yt,Qn(M(qt(B(Function),t))),M)])]))(n)}),cr=at(function(t,n){return Yn([[Kn(B(Number)),Hn],[Kn(B(String)),Gn("")],[Kn(B(Array)),Zn],[Kn(ur),At],[Wn,Zt(t)]])([t,n])}),fr=(at(function(t,n){return bt(cr,[Jt,z(ir(t))])(n)}),at(function(t,n){return un(yt(M(t)),ar(t))(n)})),sr=at(function(t,n){return un(pt(ur,$n(["shapeyMode"])),Yn([[B(Function),Jt],[Vn(ur,ft(zn(/strict/i),["shapeyMode"])),fr],[ur,ar],[Wn,Zt]])(t))(n)}),lr=at(function(t,n){return R(function(t,n){return n(t)},n,C(sr,t||[]))}),pr=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=Xn(this.xf["@@transducer/step"](t,!0))),t},t}(),yr=e(function(t,n){return new pr(t,n)}),hr=e(s(["any"],yr,function(t,n){for(var r=0;n.length>r;){if(t(n[r]))return!0;r+=1}return!1})),dr=e(function(t,n){return[t,n]}),vr=Dt(-1),gr=e(kt),br=e(x),mr=e(function(t,n){return a(n.length,function(){for(var r=[],e=0;n.length>e;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))})}),jr=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})});function Or(t,n,r){var e,u=typeof t;switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?t in r._items[u]||(n&&(r._items[u][t]=!0),!1):(n&&(r._items[u]={},r._items[u][t]=!0),!1);case"boolean":if(u in r._items){var o=t?1:0;return!!r._items[u][o]||(n&&(r._items[u][o]=!0),!1)}return n&&(r._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?!!kt(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1);case"undefined":return!!r._items[u]||(n&&(r._items[u]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in r._items?!!kt(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}var Sr=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Or(t,!0,this)},t.prototype.has=function(t){return Or(t,!1,this)},t}(),wr=e(function(t,n){for(var r,e,u=new Sr,o=[],i=0;n.length>i;)r=t(e=n[i]),u.add(r)&&o.push(e),i+=1;return o})(Jt),Ar=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),xr=r(function(t){return!t}),Er=Vt(xr),kr=zn(/^(?:[A-Z])([A-Z0-9_\-.]+)([A-Z0-9])$/i),_r=un(ut("Promise"),T(["constructor","name"]),Xt("")),Pr=un(ut("Object"),T(["constructor","name"]),Xt("")),Nr=Er(W),Fr=Er(ot),Mr=un(xr,zn(/^\s*$/)),Cr=jr([Mr,Wt(B(Number),B(String)),Nr]),qr=Ar([B(Boolean),B(Number),B(String),B(RegExp),B(Date)]),Tr=at(function(t,n){return un(Nr,T(t))(n)}),Lr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ur=lt(B(Array),Array),Ir=lt(B(Function),Zt),Rr=lt(B(String),toString),Dr=function(t,n){var r;return Lr({},t,((r={})[n[0]]=n[1],r))},zr=function(t,n){if(tt(t)!==tt(n)||W(n)){if(B(Array,t)&&!W(n))return[].concat(t,Ur(n));if(!Pr(t))return t}else{if(qr(n)||B(Function,n))return n;if(B(Array,t))return[].concat(t,Ur(n))}return gt(t,n)},Br=e(function(t,n){for(var r=0,e=Math.min(t.length,n.length),u={};e>r;)u[t[r]]=n[r],r+=1;return u}),Vr=un(D,L("types")),$r=function(t,n){return B(Array,t)?[].concat(t,Ur(n)):n},Wr=Ht(jr([un(xr,qr),un(xr,B(Array)),B(Object)]),un(Object.freeze,R(Dr,{}),Tt(hr(Wt(W,ot))),C(function(t){var n=t[0],r=t[1];return B(Array,r)?[n,Object.freeze(Br(r.filter(qr),r.filter(qr)))]:Pr(r)?[n,un(Ht(ot,Zt(null),Object.freeze),qt(qr))(r)]:qr(r)?[n,r]:null}),rr,Tt(ot)),Zt({})),Zr=at(function(t,n){var r=t.namespace,e=t.store;return Br(n,n.map(function(t){return(r||"")+"/"+(e||"")+"/"+t}))}),Gr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Hr=Ar([W,ot]),Xr=at(function(t,n){var r=n.initialState,e=void 0===r?{}:r,u=n.stateMachinesPropName,o=void 0===u?["states"]:u;return un(lt(Tr(o),Z(o,{})),Xt(e))(t)}),Jr=un(wr,qt(Cr),Zn,C(D),D),Kr=un(wr,qt(Cr),Zn,C(M),D),Yr=un(wr,Zn,C(Kr),D,L("machines")),Qr=bt(Qn,[Yr,Vr]),te=un(Kn(B(String)),M),ne=un(Kn(jr([Pr,Wt(ot,un(Kn(Kn(B(String))),rr))])),D),re=(un(Kn(ot),Qr),mr(Qn,[Jr,M])),ee=(at(function(t,n,r){return un(br(Rr(t)),Xt({}),T([Rr(n)]),Xt({}))(r)}),at(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return un(Object.freeze,R(Dr,{}),C(function(r){var e=r[1];return[r[0],yt(un(C(zt),qt(un(gr(Gt,D(n)),zt)),qt(un(br(Gt,t),vr)),qt(Kn(B(String))),rr)(e),e)]}),qt(Vn(un(B(String),zt),un(Pr,vr))),rr)(t)})),ue=at(function(t,n){return un(Object.freeze,R(Dr,{}),C(function(t){return[t[0],ee(t[1],n.types)]}),rr)(t)}),oe=Ht(jr([B(String),gr("."),kr]),Rt("."),un(pt(ot,Zt(["states"])),qt(Mr),pt(B(String),Array))),ie=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.machines,r=void 0===n?{}:n,e=t.stateMachinesPropName;return un(gt(C(Zt("initial"),r)),yt(M(r)),Xt({}),T(Ur(e)))},ae=at(function(t,n,r){var e=r.machines,u=void 0===e?{}:e,o=ie({machines:u,stateMachinesPropName:r.stateMachinesPropName})(t);return un(R(Dr,{}),C(function(t){var r=t[0],e=t[1];return un(dr(r),lt(Nr,Zt(o[r])),L(n.type),Xt({}),L(o[r]))(e)}),rr)(u)}),ce=at(function(t,n,r){var e=r.machines,u=ie({machines:e,stateMachinesPropName:r.stateMachinesPropName})(t);return un(hr(function(t){var r=t[0],e=t[1];return un(Nr,L(n.type),Xt({}),L(Gt,e),L(r))(u)}),rr)(e)}),fe=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},se=function(t,n){return W(t)?L("initialState",n):t},le=at(function(t,n,r,e){return t(se(r,n),e,n)}),pe=at(function(t,n,r,e){var u=Xr(se(r,n),n),o=Z(n.stateMachinesPropName,ae(u,e,n),{});return fe({},t(fe({},u,o),e,n),o)}),ye=at(function(t,n,r,e,u){return n.reducer(t.reducer(se(r),e,u),e,u)}),he=bt(le,[un(Xt(Jt),T(["options","reducer"])),Jt]),de=bt(pe,[un(Xt(Jt),T(["options","reducer"])),Jt]),ve=tn(0,-1),ge=e(function(t,n){var r={};return o(n.length,function(){var e=t.apply(this,arguments);return x(e,r)||(r[e]=n.apply(this,arguments)),r[e]})})(function(){return Ut(arguments)}),be=e(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),me=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},je=un(ut(!0),L("needsExtraction")),Oe=function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return ge(bt(vr(n),ve(n)))},Se=I(function(t,n,r){return Xt(t,T(n,r))}),we=I(function(t,n,r){return r.replace(t,n)});function Ae(t,n,r){t.addEventListener("message",function(e){var u=e.data,o=u.id;if("RPC"===u.type&&null!=o)if(u.method){var i=n[u.method];null==i?t.postMessage({type:"RPC",id:o,error:"NO_SUCH_METHOD"}):Promise.resolve().then(function(){return i.apply(null,u.params)}).then(function(n){t.postMessage({type:"RPC",id:o,result:n})}).catch(function(n){t.postMessage({type:"RPC",id:o,error:""+n})})}else{var a=r[o];if(null==a)throw Error("Unknown callback "+o);delete r[o],u.error?a[1](Error(u.error)):a[0](u.result)}})}var xe="undefined"!=typeof Worker&&null!==Worker&&"undefined"!=typeof Blob&&null!==Blob,Ee=Yn([[B(Function),It(0,"toString")],[B(String),Jt],[Wn,Zt("")]]),ke=rn(we(/^(\s*)\(/m,"export const run = ("),we(/^(\s*)const/m,"export const"),we(/^(\s*)function\s*\(/m,"export function run("),we(/^(\s*)function\s+/m,"export function "),we(/^(\s*)function\*\s+/m,"export function* "),we(/^(\s*)async\s+\(/m,"export const run = async ("),we(/^(\s*)async\s+function\s*\(/m,"export async function run(")),_e=rn(Ee,ke,lt(zn(/^\s*$/),function(t){return function(t,n){var r=this,e={},u="__xpo"+(""+Math.random()).substring(2)+"__";"function"==typeof t&&(t="("+Function.prototype.toString.call(t)+")("+u+")"),t=function(t,n,r){return t=(t=t.replace(/^(\s*)export\s+default\s+/m,function(t,e){return r.default=!0,""+e+n+".default="})).replace(/^(\s*)export\s+((?:async\s*)?function(?:\s*\*)?|const|let|var)(\s+)([a-zA-Z$_][a-zA-Z0-9$_]*)/gm,function(t,e,u,o,i){return r[i]=!0,""+e+n+"."+i+"="+u+o+i}),"var "+n+"={};\n"+t+"\n"+n+";"}(t,u,e)+"\n("+Function.prototype.toString.call(Ae)+")(self,"+u+",{})";var o,i=URL.createObjectURL(new Blob([t])),a=new Worker(i,n),c=a.terminate,f={},s=0;for(o in a.kill=function(t){a.postMessage({type:"KILL",signal:t}),setTimeout(a.terminate)},a.terminate=function(){URL.revokeObjectURL(i),c.call(r)},a.call=function(t,n){return new Promise(function(r,e){var u="rpc"+ ++s;f[u]=[r,e],a.postMessage({type:"RPC",id:u,method:t,params:n})})},a.rpcMethods={},Ae(a,a.rpcMethods,f),a.expose=function(t){a[o]=function(){return a.call(t,[].slice.call(arguments))}},e)o in a||a.expose(o);return a}(""+t)})),Pe=bt(ct,[un(Ir,Se({},["options","workers"])),Jt]),Ne=rn(Pe,C(xe?_e:rn(Ee,ke)),Tt(zn(/^\s*$/))),Fe=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=Xn(this.xf["@@transducer/step"](t,n))),t},t}(),Me=e(s(["find"],e(function(t,n){return new Fe(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return n[r];r+=1}})),Ce=bt(ct,[un(Ir,Se({},["options","queries"])),Jt]),qe=un(Tt(W),C(function(t){return B(Array,t)?(Me(B(Function),t)||Jt)(Me(B(String),t)||""):B(String,t)?t:null}),Ce),Te=un(qt(B(String)),C(Ht(B(Array),Me(B(String)),Zt(null))),L("queries")),Le=bt(Z(["consts","queries"]),[Te,Jt]),Ue=e(Ft(s(["any"],yr,hr)));var Ie=function(t){return"[object Number]"===Object.prototype.toString.call(t)},Re=r(function(t){return null!=t&&Ie(t.length)?t.length:NaN}),De=r(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),ze=r(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),Be="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Ve=r(!("function"==typeof String.prototype.trim)||Be.trim()?function(t){var n=RegExp("^["+Be+"]["+Be+"]*"),r=RegExp("["+Be+"]["+Be+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()}),$e=It(0,"toUpperCase"),We=Wr({VALIDATION_LEVELS:["STRICT","CANCEL","PRUNE","LOG"]}).VALIDATION_LEVELS,Ze=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ge=gr(Gt,M(We)),He=un(lt(Ge,Zt("CANCEL")),$e,Ve,Rr),Xe=at(function(t,n){return un(R(function(n,r){var e,u=r[0],o=r[1],i=Pr(o)?Xe(t[u],o):o;return Pr(i)&&ot(i)?n:Ze({},n,((e={})[u]=!0===i?t[u]:i,e))},{}),Tt(un(B(Array),Dt(1))),ze)(n)}),Je=un(R(function(t,n){var r,e=n[0],u=n[1],o=Pr(u)?Je(u):u;return Pr(o)&&ot(o)?t:Ze({},t,((r={})[e]=o,r))},{}),Tt(function(t){return!0===t[1]}),ze),Ke=function(t){return un(Xt(Wn),L(Gt,t),L("type"))},Ye=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(hr(Wt(Vn(Pr,t),B(Array))),De)(n)},Qe={namespace:Jt,store:Jt,validationLevel:He,stateMachinesPropName:oe,consts:Wr},tu={consts:{},creators:{},machines:{},queries:{},workers:{},selectors:{},stateMachinesPropName:"states",types:[],validationLevel:"CANCEL",validators:{}},nu={validationLevel:[[Ge,"must be: STRICT, CANCEL, PRUNE, or LOG. CANCEL is the default."]],store:[[Cr,"must be a (non-blank) string"]],namespace:[[Cr,"must be a (non-blank) string"]],stateMachinesPropName:[[Wt(Cr,Vn(B(Array),Kn(Cr))),"must be a string (or array of strings)"]],consts:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],creators:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],machines:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],selectors:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],types:[[Vn(B(Array),Kn(B(String))),"must be an object (or a function returning an object)"]],validators:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],enhancers:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],queries:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],workers:[[Wt(Pr,B(Function)),"must be an object (or a function returning an object)"]],reducer:[[B(Function),"must be a function"]],initialState:[[Ar([qr,Pr,B(Function)]),"must be an object, a function returning an object, or a primitive value"]]},ru={store:[[Cr,"must be a (non-blank) string"]],namespace:[[Cr,"must be a (non-blank) string"]],types:[[Pr,"must be an object"],[un(Kn(un(ut(1),Re,wr)),C(function(t){var n=t[1];return[t[0],un(vr,Rt("/"))(n)]}),qt(Kn(B(String))),rr),"each key and value are identical"]],machines:[[un(Kn(Pr),D),"must be an object"],[un(Kn(Fr),D),"must not be empty"],[un(Kn(jr([te,ne])),D),"each machine contains nested objects (states) whose inputs and transitions are strings"],[un(Kn(re),D),"each transition value must also be a state"]],stateMachinesPropName:[[Vn(B(Array),Kn(Cr)),'must be an array of strings (representing the path to the "current state" prop)']]},eu=un(ot,Qn(["store","namespace","validators","types"]),M),uu=Ar([Er(Pr),un(ot,M),un(Ue(eu),D)]),ou=e(function(t,n){return n.match(t)||[]}),iu=e(function(t,n){for(var r=[],e=0,u=Math.min(t.length,n.length);u>e;)r[e]=[t[e],n[e]],e+=1;return r}),au=at(function(t,n){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;n>e;e++)r[e-1]=arguments[e];return Cr(t)&&r.length?iu(ou(/(%?)(%([jods]))/g,t),C(Yn([[Wt(B(Number),B(String)),Jt],[Wt(B(Array),Pr),JSON.stringify]]))(r)).reduce(function(t,n){return t.replace(n[0],n[1])},t).replace(/%{2,2}/g,"%"):t}(t,n)}),cu=un(C(au("These inputs are not valid Action Types: %o")),qt(Fr),C(Qr),D,qt(eu)),fu=un(C(au("These violations of the schema rules for the middleware were found: %o")),qt(Fr),C(un(Je,In(ru))),D,qt(eu)),su=un(Kn(function(t){return ut(t[0],L("store",t[1]))}),rr,qt(eu)),lu=function(t){if(uu(t))return"No ducks have been provided! To create the Attadux middleware please provide an Object containing one or more ducks";if(!su(t))return"The name of each duck should match its 'store' prop, otherwise it will not be possible to find the correct duck for each dispatched action";var n=cu(t);if(Fr(n))return au("Invalid State Machines: %o",n);var r=fu(t);return Fr(r)?au("Invalid Ducks: %o",r):null},pu=un(R(function(t,n){return $(n.store,n,t)},{}),qt(eu),Kt(Jt)),yu=function(t){return un(Xt({}),Ht(Mr,L(Gt,qt(eu,t)),Zt({})),Wt(Dt(1),zt),Rt("/"),L("type"))},hu=un(At,Ot([un(mt("stateMachinesPropName"),Zt(["states"])),un(bt(gt,[un(ht(Qe),yt(M(Qe)),Le),un(mt("types"),bt(Zr,[Jt,L("types")]))]),L("validatedOptions")),un(pt(Fr,mt("invalidOptions")),Je,L("validationsResult")),un(mt("options"),L("validatedOptions"))]),St,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=yt(M(nu),t),r=In(nu,n);return{validationsResult:r,validatedOptions:Xe(n,r)}}),du=un(lt(st("validationLevel","PRUNE"),ht({validators:C(function(t){return un(Je,t)})})),bt(gt,[Jt,Ht(ft(W,["options","validators"]),Zt({}),un(mt("validators"),C(In),bt(ct,[un(Ir,T(["options","validators"])),Jt])))])),vu=bt(gt,[Jt,Ht(ft(W,["options","queries"]),Zt({}),un(mt("queries"),qe))]),gu=bt(gt,[Jt,Ht(ft(W,["options","workers"]),Zt({}),un(mt("workers"),Ne))]),bu=bt(gt,[Jt,Ht(ft(W,["options","machines"]),Zt({}),un(mt("machines"),bt(ue,[bt(ct,[un(Ir,T(["options","machines"])),Jt]),Jt])))]),mu=bt(gt,[Jt,un(mt("initialState"),bt(gt,[bt(ct,[un(Ir,T(["options","initialState"])),Jt]),Ht(it(ot,"machines"),Zt({}),un(G({}),bt(Z,[L("stateMachinesPropName"),un(function(){return R(function(t,n){var r;return Gr({},t,((r={})[n]="initial",r))},{},M((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})||{}))},L("machines"))])))]))]),ju=bt(gt,[Jt,Ht(ft(W,["options","selectors"]),Zt({}),un(mt("selectors"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(R(function(t,n){var r;return me({},t,((r={})[n[0]]=n[1].justAddDuckSelectors(t),r))},t),rr,be(je))(t)},bt(ct,[un(Ir,T(["options","selectors"])),Jt])))]),Ou=Ht(B(Array),lr,sr),Su=bt(gt,[Jt,Ht(ft(W,["options","enhancers"]),Zt({}),un(mt("enhancers"),C(Ou),bt(ct,[un(Ir,T(["options","enhancers"])),Jt])))]),wu=bt(gt,[Jt,Ht(ft(W,["options","creators"]),Zt({}),un(mt("creators"),bt(ct,[un(Ir,T(["options","creators"])),Jt])))]),Au=bt(gt,[Jt,Ht(Wt(ft(W,["options","reducer"]),it(ot,"machines")),un(mt("reducer"),he),un(mt("reducer"),de))]),xu=bt(gt,[Jt,Ht(it(W,"validators"),Zt({}),un(z({isPayloadValid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(xr,Ye,G(n),Ke(t))(n)}},getValidationErrors:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(pt(ot,Zt(null)),Je,G(n),Ke(t))(n)}},pruneInvalidFields:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(pt(ot,Zt(null)),Xe(n),function(t){return t(n)},Ke(t))(n)}}}),L("validators")))]),Eu=e(function(t,n){return a(t,function(){for(var r,e=1,u=n,o=0;t>=e&&"function"==typeof u;)u=u.apply(this,Array.prototype.slice.call(arguments,o,r=e===t?arguments.length:o+u.length)),e+=1,o=r;return u})}),ku=I(function(t,n,r){for(var e=0,u=r.length,o=[],i=[n];u>e;)i=t(i[0],r[e]),o[e]=i[1],e+=1;return[i[0],o]}),_u=e(function(t,n){if(c(t)){if(c(n))return t.concat(n);throw new TypeError(Ut(n)+" is not an array")}if(p(t)){if(p(n))return t+n;throw new TypeError(Ut(n)+" is not a string")}if(null!=t&&xt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&xt(t.concat))return t.concat(n);throw new TypeError(Ut(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),Pu=I(function(t,n,r){return vt(function(n,r,e){return t(r,e)},n,r)}),Nu=at(function(t,n,r){var e=n.options;return Yn([[un(hr(B(Function)),C(L(r)),dr(e)),Zt(bt(Pu(zr),[Ir(e[r]),bt(Ir(t[r]),[Jt,Ir(e[r])])]))],[un(W,L(r)),Zt(e[r])],[Wn,un(Pu(zr,e[r]),L(r))]])(t)}),Fu=function(t){return un(bt(gt,[Jt,un(mt("reducer"),(n=t,r=n.options,un(Ht(Kn(br("reducer")),un(ye(r),vr),un(Me(br("reducer")),dr(r))),dr(r))))]),R(gt,{}),_u([tu,t.options]),St,G(t),Ir);var n,r},Mu=at(function(t,n,r){return un(gt(r),At,vr,ku(function(t,n){var r=n[0],e=n[1],u=un(mt(r),pt(B(Function),G(r)),e)(t);return[gt(t,u),u]},n))(t)}),Cu=un(Object.freeze,Au,gu,xu,wu,Su,ju,mu,bu,du,vu,hu,gt(tu)),qu=bt(un,[Zt(Cu),function(t){var n=Fu(t);return function(r){var e=n(r),u=[["consts",un(Pu($r,Gt,e.consts),T(["options","consts"]))],["types",un(wr,_u(e.types),T(["options","types"]))],["initialState",Nu(e)],["machines",Nu(e)],["creators",Nu(e)],["selectors",Nu(e)],["queries",Nu(e)],["enhancers",Nu(e)],["validators",Nu(e)],["workers",Nu(e)]];return Mu(u,t,e)}}]),Tu=Eu(2,qu),Lu=Zt(!1),Uu=I(function(t,n,r){return B(t,r[n])}),Iu=I(function(t,n,r){return null!=r&&x(n,r)?r[n]:t}),Ru=un(Dt(1),Rt("/"));t.createRow=pu,t.createDuck=Cu,t.extendDuck=Tu,t.createExtenderForDuck=qu,t.createSelector=Oe,t.createDuckSelector=function(t){return{needsExtraction:!0,justAddDuckSelectors:function(){var n=t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return Array.isArray(n)?Oe.apply(void 0,n):n}}},t.createEnhancerMiddleware=function(t){var n=lu(t);if(n)throw Error(n);var r=yu(t);return function(t){var n=t.dispatch;return function(t){return function(e){var u=r(e).enhancers,o=(void 0===u?{}:u)[e.type];if(!B(Function,o))return t(e);var i=o(e);return Wt(W,ot)(i)?t(e):(i.type!==e.type&&n(i),t(i))}}}},t.createValidatorMiddleware=function(t){var n=lu(t);if(n)throw Error(n);var r=yu(t);return function(t){var n=t.getState;return function(t){return function(e){var u,o=r(e),i=o.machines,a=o.isPayloadValid,c=void 0===a?Wn:a,f=o.getValidationErrors,s=void 0===f?Zt(null):f,l=o.pruneInvalidFields,p=void 0===l?Zt(e):l,y=o.stateMachinesPropName,h=void 0===y?"states":y,d=o.validationLevel,v=void 0===d?We.CANCEL:d;if(Hr(i))return t(e);var g=((u={})[We.CANCEL]=lt(c,Lu),u[We.LOG]=bt(tr,[Jt,un(Ht(W,Zt({}),mt("validationErrors")),s)]),u[We.PRUNE]=p,u[We.STRICT]=lt(bt(ce,[n,Jt,Zt({machines:i,stateMachinesPropName:h})]),Lu),u),b=ct(un(Xt(Jt),L(v))(g),e);return b&&t(b)}}}},t.createWorkerMiddleware=function(t){var n=lu(t);if(n)throw Error(n);var r=yu(t),e=rn(r,Iu({},"workers")),u=Ht(T(["meta","worker"]),bt(lt(B(String)),[rn(L("type"),Zt),T(["meta","worker"])]),Zt(null)),o=rn(u,L),i=bt(ct,[o,e]);return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(e){var o=u(e);if(o){var a=rn(i,Xt({}),function(t){return Yn([[B(Function),Jt],[Uu(Function,t),L(t)],[Uu(Function,"run"),L("run")]])}(o))(e);if(B(Function,a)){var c=Ru(e.type),f=a({action:e,state:c?r()[c]:{}});_r(f)?f.then(function(t){L("type",t)&&n(t)}):L("type",f)&&n(f)}}return t(e)}}}},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.attadux={})}(this,function(t){"use strict";var n=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]};var r=function(t){return function r(e){return 0===arguments.length||n(e)?r:t.apply(this,arguments)}};var e=function(t){return function e(u,o){switch(arguments.length){case 0:return e;case 1:return n(u)?e:r(function(n){return t(u,n)});default:return n(u)&&n(o)?e:n(u)?r(function(n){return t(n,o)}):n(o)?r(function(n){return t(u,n)}):t(u,o)}}},u=e(function(t,n){return t.apply(this,n)});var o=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}};var i=function t(r,e,u){return function(){for(var i=[],a=0,c=r,f=0;e.length>f||arguments.length>a;){var s;f>=e.length||n(e[f])&&arguments.length>a?(s=arguments[a],a+=1):s=e[f],i[f]=s,n(s)||(c-=1),f+=1}return c>0?o(c,t(r,i,u)):u.apply(this,i)}},a=e(function(t,n){return 1===t?r(n):o(t,i(t,[],n))}),c=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};var f=function(t){return"function"==typeof t["@@transducer/step"]};var s=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!c(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(f(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}};var l=function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u};var p=function(t){return"[object String]"===Object.prototype.toString.call(t)},y=r(function(t){return!!c(t)||!!t&&("object"==typeof t&&(!p(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),h=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();var d=function(t){return new h(t)},v=e(function(t,n){return o(t.length,function(){return t.apply(n,arguments)})});function g(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function b(t,n,r,e){return t["@@transducer/result"](r[e](v(t["@@transducer/step"],t),n))}var m="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";var j=function(t,n,r){if("function"==typeof t&&(t=d(t)),y(r))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return b(t,n,r,"fantasy-land/reduce");if(null!=r[m])return g(t,n,r[m]());if("function"==typeof r.next)return g(t,n,r);if("function"==typeof r.reduce)return b(t,n,r,"reduce");throw new TypeError("reduce: list must be array or iterable")},O=function(){return this.xf["@@transducer/init"]()},S=function(t){return this.xf["@@transducer/result"](t)},w=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},t}(),A=e(function(t,n){return new w(t,n)});var x=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},E=Object.prototype.toString,k=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return x("callee",t)}},_=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(){return arguments.propertyIsEnumerable("length")}(),F=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1},M=r("function"!=typeof Object.keys||N?function(t){if(Object(t)!==t)return[];var n,r,e=[],u=N&&k(t);for(n in t)!x(n,t)||u&&"length"===n||(e[e.length]=n);if(_)for(r=P.length-1;r>=0;)x(n=P[r],t)&&!F(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)}),C=e(s(["fantasy-land/map","map"],A,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return a(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return j(function(r,e){return r[e]=t(n[e]),r},{},M(n));default:return l(t,n)}})),q=e(function(t,n){return n>t?n:t}),T=e(function(t,n){for(var r=n,e=0;t.length>e;){if(null==r)return;r=r[t[e]],e+=1}return r}),L=e(function(t,n){return T([t],n)}),U=e(function(t,n){return C(L(t),n)});var I=function(t){return function u(o,i,a){switch(arguments.length){case 0:return u;case 1:return n(o)?u:e(function(n,r){return t(o,n,r)});case 2:return n(o)&&n(i)?u:n(o)?e(function(n,r){return t(n,i,r)}):n(i)?e(function(n,r){return t(o,n,r)}):r(function(n){return t(o,i,n)});default:return n(o)&&n(i)&&n(a)?u:n(o)&&n(i)?e(function(n,r){return t(n,r,a)}):n(o)&&n(a)?e(function(n,r){return t(n,i,r)}):n(i)&&n(a)?e(function(n,r){return t(o,n,r)}):n(o)?r(function(n){return t(n,i,a)}):n(i)?r(function(n){return t(o,n,a)}):n(a)?r(function(n){return t(o,i,n)}):t(o,i,a)}}},R=I(j),D=r(function(t){for(var n=M(t),r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),z=r(function t(n){return n=C(function(n){return"function"==typeof n?n:t(n)},n),a(R(q,0,U("length",D(n))),function(){var t=arguments;return C(function(n){return u(n,t)},n)})}),B=e(function(t,n){return a(R(q,0,U("length",n)),function(){var r=arguments,e=this;return t.apply(e,l(function(t){return t.apply(e,r)},n))})}),V=r(function(t){return B(function(){return Array.prototype.slice.call(arguments,0)},t)}),$=e(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),W=Number.isInteger||function(t){return t<<0===t},Z=I(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),G=r(function(t){return null==t}),H=I(function t(n,r,e){if(0===n.length)return r;var u=n[0];if(n.length>1){var o=!G(e)&&x(u,e)?e[u]:W(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,o)}if(W(u)&&c(e)){var i=[].concat(e);return i[u]=r,i}return Z(u,r,e)}),X=e(function(t,n){return n(t)});var J=function(t){return"[object Object]"===Object.prototype.toString.call(t)},K=r(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():c(t)?[]:p(t)?"":J(t)?{}:k(t)?function(){return arguments}():void 0});var Y=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r};var Q=function(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1};var tt=function(t){var n=(t+"").match(/^function (\w*)/);return null==n?"":n[1]},nt=e(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),rt=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function et(t,n,r,e){var u=Y(t),o=Y(n);function i(t,n){return ut(t,n,r.slice(),e.slice())}return!Q(function(t,n){return!Q(i,n,t)},o,u)}function ut(t,n,r,e){if(nt(t,n))return!0;var u=rt(t);if(u!==rt(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===tt(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!nt(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!nt(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return e[o]===n;o-=1}switch(u){case"Map":return t.size===n.size&&et(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size===n.size&&et(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=M(t);if(i.length!==M(n).length)return!1;var a=r.concat([t]),c=e.concat([n]);for(o=i.length-1;o>=0;){var f=i[o];if(!x(f,n)||!ut(n[f],t[f],a,c))return!1;o-=1}return!0}var ot=ut,it=e(function(t,n){return ot(t,n,[],[])}),at=r(function(t){return null!=t&&it(t,K(t))}),ct=I(function(t,n,r){return t(r[n])}),ft=r(function(t){return a(t.length,t)}),st=ft(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),lt=I(function(t,n,r){return n.length>0&&t(T(n,r))}),pt=I(function(t,n,r){return it(n,r[t])}),yt=I(function(t,n,r){return t(r)?r:n(r)}),ht=I(function(t,n,r){return t(r)?n(r):r}),dt=e(function(t,n){for(var r={},e=0;t.length>e;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),vt=e(function t(n,r){var e,u,o,i={};for(u in r)i[u]="function"===(o=typeof(e=n[u]))?e(r[u]):e&&"object"===o?t(e,r[u]):r[u];return i}),gt=I(function(t,n,r){var e,u={};for(e in n)x(e,n)&&(u[e]=x(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)x(e,r)&&!x(e,u)&&(u[e]=r[e]);return u}),bt=I(function t(n,r,e){return gt(function(r,e,u){return J(e)&&J(u)?t(n,e,u):n(r,e,u)},r,e)}),mt=e(function(t,n){return bt(function(t,n,r){return r},t,n)}),jt=e(function(t,n){var r={};return r[t]=n,r});var Ot=function(t,n){var r,e=(t=t||[]).length,u=(n=n||[]).length,o=[];for(r=0;e>r;)o[o.length]=t[r],r+=1;for(r=0;u>r;)o[o.length]=n[r],r+=1;return o},St=e(function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:j(function(t,r){return Ot(t,C(r,n))},[],t)});var wt=r(function(t){return[t]});var At="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;e>r;){var u=arguments[r];if(null!=u)for(var o in u)x(o,u)&&(n[o]=u[o]);r+=1}return n},xt=r(function(t){return At.apply(null,[{}].concat(t))});var Et=function(t){return"[object Function]"===Object.prototype.toString.call(t)};var kt=function(t,n,r){var e,u;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(e=1/n;t.length>r;){if(0===(u=t[r])&&1/u===e)return r;r+=1}return-1}if(n!=n){for(;t.length>r;){if("number"==typeof(u=t[r])&&u!=u)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;t.length>r;){if(it(t[r],n))return r;r+=1}return-1};var _t=function(t,n){return kt(n,t,0)>=0};var Pt=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'},Nt=function(t){return(10>t?"0":"")+t},Ft="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Nt(t.getUTCMonth()+1)+"-"+Nt(t.getUTCDate())+"T"+Nt(t.getUTCHours())+":"+Nt(t.getUTCMinutes())+":"+Nt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var Mt=function(t){return function(){return!t.apply(this,arguments)}};var Ct=function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u},qt=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},t}(),Tt=e(s(["filter"],e(function(t,n){return new qt(t,n)}),function(t,n){return J(n)?j(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},M(n)):Ct(t,n)})),Lt=e(function(t,n){return Tt(Mt(t),n)});var Ut=function t(n,r){var e=function(e){var u=r.concat([n]);return _t(e,u)?"<Circular>":t(e,u)},u=function(t,n){return l(function(n){return Pt(n)+": "+e(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+l(e,n).join(", ")+"))";case"[object Array]":return"["+l(e,n).concat(u(n,Lt(function(t){return/^\d+$/.test(t)},M(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+e(n.valueOf())+")":""+n;case"[object Date]":return"new Date("+(isNaN(n.valueOf())?e(NaN):Pt(Ft(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+e(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+e(n.valueOf())+")":Pt(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var o=""+n;if("[object Object]"!==o)return o}return"{"+u(n,M(n)).join(", ")+"}"}},It=r(function(t){return Ut(t,[])}),Rt=e(function(t,n){return a(t+1,function(){var r=arguments[t];if(null!=r&&Et(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(It(r)+' does not have a method named "'+n+'"')})}),Dt=Rt(1,"split"),zt=e(function(t,n){var r=0>t?n.length+t:t;return p(n)?n.charAt(r):n[r]}),Bt=zt(0),Vt=e(function(t,n){var r=a(t,n);return a(t,function(){return j(St,C(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),$t=r(function(t){return Vt(t.length,t)}),Wt=e(function(t,n){return t||n}),Zt=e(function(t,n){return Et(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:$t(Wt)(t,n)}),Gt=r(function(t){return function(){return t}}),Ht={"@@functional/placeholder":!0},Xt=I(function(t,n,r){return a(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Jt=e(function(t,n){return null==n||n!=n?t:n});var Kt=r(function(t){return t}),Yt=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});var Qt=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}};var tn=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return c(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}},nn=I(tn("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),rn=r(tn("tail",nn(1,1/0)));var en=function(){if(0===arguments.length)throw Error("pipe requires at least one argument");return o(arguments[0].length,R(Qt,arguments[0],rn(arguments)))},un=r(function(t){return p(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});var on=function(){if(0===arguments.length)throw Error("compose requires at least one argument");return en.apply(this,un(arguments))};var an,cn,fn=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},sn=function(t){return function n(r){return 0===arguments.length||fn(r)?n:t.apply(this,arguments)}},ln=sn(function(t){return t}),pn=function(t){return function n(r,e){switch(arguments.length){case 0:return n;case 1:return fn(r)?n:sn(function(n){return t(r,n)});default:return fn(r)&&fn(e)?n:fn(r)?sn(function(n){return t(n,e)}):fn(e)?sn(function(n){return t(r,n)}):t(r,e)}}},yn=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},hn=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!yn(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(function(t){return"function"==typeof t["@@transducer/step"]}(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}},dn=sn(function(t){return!!yn(t)||!!t&&("object"==typeof t&&(!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),vn=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}(),gn=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}},bn=pn(function(t,n){return gn(t.length,function(){return t.apply(n,arguments)})}),mn=function(){function t(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function n(t,n,r,e){return t["@@transducer/result"](r[e](bn(t["@@transducer/step"],t),n))}var r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(e,u,o){if("function"==typeof e&&(e=vn(e)),dn(o))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(e,u,o);if("function"==typeof o["fantasy-land/reduce"])return n(e,u,o,"fantasy-land/reduce");if(null!=o[r])return t(e,u,o[r]());if("function"==typeof o.next)return t(e,u,o);if("function"==typeof o.reduce)return n(e,u,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}(),jn=function(){return this.xf["@@transducer/init"]()},On=function(t){return this.xf["@@transducer/result"](t)},Sn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=jn,t.prototype["@@transducer/result"]=On,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},pn(function(n,r){return new t(n,r)})}(),wn=pn(function(t,n){return 1===t?sn(n):gn(t,function t(n,r,e){return function(){for(var u=[],o=0,i=n,a=0;r.length>a||arguments.length>o;){var c;a>=r.length||fn(r[a])&&arguments.length>o?(c=arguments[o],o+=1):c=r[a],u[a]=c,fn(c)||(i-=1),a+=1}return i>0?gn(i,t(n,u,e)):e.apply(this,u)}}(t,[],n))}),An=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},xn=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(n){return"[object Arguments]"===t.call(n)}:function(t){return An("callee",t)}}(),En=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(){return arguments.propertyIsEnumerable("length")}(),e=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1};return sn("function"!=typeof Object.keys||r?function(u){if(Object(u)!==u)return[];var o,i,a=[],c=r&&xn(u);for(o in u)!An(o,u)||c&&"length"===o||(a[a.length]=o);if(t)for(i=n.length-1;i>=0;)An(o=n[i],u)&&!e(a,o)&&(a[a.length]=o),i-=1;return a}:function(t){return Object(t)!==t?[]:Object.keys(t)})}(),kn=pn(hn(["fantasy-land/map","map"],Sn,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return wn(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return mn(function(r,e){return r[e]=t(n[e]),r},{},En(n));default:return function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u}(t,n)}})),_n=(an=mn,function t(n,r,e){switch(arguments.length){case 0:return t;case 1:return fn(n)?t:pn(function(t,r){return an(n,t,r)});case 2:return fn(n)&&fn(r)?t:fn(n)?pn(function(t,n){return an(t,r,n)}):fn(r)?pn(function(t,r){return an(n,t,r)}):sn(function(t){return an(n,r,t)});default:return fn(n)&&fn(r)&&fn(e)?t:fn(n)&&fn(r)?pn(function(t,n){return an(t,n,e)}):fn(n)&&fn(e)?pn(function(t,n){return an(t,r,n)}):fn(r)&&fn(e)?pn(function(t,r){return an(n,t,r)}):fn(n)?sn(function(t){return an(t,r,e)}):fn(r)?sn(function(t){return an(n,t,e)}):fn(e)?sn(function(t){return an(n,r,t)}):an(n,r,e)}}),Pn=sn(function(t){return wn(t.length,t)}),Nn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=jn,t.prototype["@@transducer/result"]=On,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},pn(function(n,r){return new t(n,r)})}(),Fn=pn(hn(["filter"],Nn,function(t,n){return"[object Object]"===Object.prototype.toString.call(n)?mn(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},En(n)):function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u}(t,n)})),Mn=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r},Cn=pn(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),qn=sn(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),Tn=pn(function(t,n){return function t(n,r,e,u){if(Cn(n,r))return!0;if(qn(n)!==qn(r))return!1;if(null==n||null==r)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof r["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](r)&&"function"==typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof r.equals)return"function"==typeof n.equals&&n.equals(r)&&"function"==typeof r.equals&&r.equals(n);switch(qn(n)){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(null==(o=(n.constructor+"").match(/^function (\w*)/))?"":o[1]))return n===r;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof r||!Cn(n.valueOf(),r.valueOf()))return!1;break;case"Date":if(!Cn(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(n.source!==r.source||n.global!==r.global||n.ignoreCase!==r.ignoreCase||n.multiline!==r.multiline||n.sticky!==r.sticky||n.unicode!==r.unicode)return!1;break;case"Map":case"Set":if(!t(Mn(n.entries()),Mn(r.entries()),e,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o,i=En(n);if(i.length!==En(r).length)return!1;for(var a=e.length-1;a>=0;){if(e[a]===n)return u[a]===r;a-=1}for(e.push(n),u.push(r),a=i.length-1;a>=0;){var c=i[a];if(!An(c,r)||!t(r[c],n[c],e,u))return!1;a-=1}return e.pop(),u.pop(),!0}(t,n,[],[])}),Ln=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=jn,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r;return this.f(n)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},pn(function(n,r){return new t(n,r)})}(),Un=pn(hn(["all"],Ln,function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),In=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validate=void 0;var r=p(ln),e=p(kn),u=p(_n),o=p(Pn),i=p(Fn),a=p(Tn),c=p(Un),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},l=function(){return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var r=[],e=!0,u=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){u=!0,o=t}finally{try{!e&&a.return&&a.return()}finally{if(u)throw o}}return r}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function p(t){return t&&t.__esModule?t:{default:t}}function y(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var h=n.validate=(0,o.default)(function(t,n,r,o){return(0,u.default)(function(u,p){var d=o[p],v=r[p];if(Array.isArray(v))return s({},u,y({},p,function(t,n,r){return(0,c.default)((0,a.default)(!0),r)?t():n((0,i.default)(function(t){return!0!==t},r))}(function(){return t(d)},n,(0,e.default)(function(t){return function(t,n,r,e){var u=l(t,2),o=u[1];return!!(0,u[0])(n,r)||("function"==typeof o?o(n,e):o)}(t,d,o,p)},v))));if("object"===(void 0===v?"undefined":f(v)))return s({},u,y({},p,h(t,n,v,d)));if("function"==typeof v){var g=v(d);return s({},u,y({},p,h(t,n,g,d)))}return s({},u,y({},p,t([])))},{},Object.keys(o))});n.default=(0,o.default)(function(t,n){return h(function(){return!0},r.default,t,n)})}),Rn=(cn=In)&&cn.__esModule&&Object.prototype.hasOwnProperty.call(cn,"default")?cn.default:cn;var Dn=function(t){return RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))};var zn=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},Bn=e(function(t,n){if(!zn(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+It(t));return Dn(t).test(n)}),Vn=e(function(t,n){return t&&n}),$n=e(function(t,n){return Et(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:$t(Vn)(t,n)}),Wn=e(function(t,n){for(var r={},e={},u=0,o=t.length;o>u;)e[t[u]]=1,u+=1;for(var i in n)e.hasOwnProperty(i)||(r[i]=n[i]);return r}),Zn=Gt(!0);var Gn=r(function(t){return function n(r){for(var e,u,o,i=[],a=0,c=r.length;c>a;){if(y(r[a]))for(o=0,u=(e=t?n(r[a]):r[a]).length;u>o;)i[i.length]=e[o],o+=1;else i[i.length]=r[a];a+=1}return i}}(!0)),Hn=Rt(1,"join"),Xn=R(e(function(t,n){return+t+ +n}),0);var Jn=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},Kn=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=Jn(this.xf["@@transducer/step"](t,!1))),t},t}(),Yn=e(s(["all"],e(function(t,n){return new Kn(t,n)}),function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),Qn=r(function(t){var n=R(q,0,C(function(t){return t[0].length},t));return o(n,function(){for(var n=0;t.length>n;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})}),tr=e(function(t,n){for(var r=[],e=0,u=t.length;u>e;)_t(t[e],n)||_t(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),nr=e(function(t,n){return At({},t,n)}),rr=e(function(t,n){return o(t.length,function(){try{return t.apply(this,arguments)}catch(t){return n.apply(this,Ot([t],arguments))}})}),er=r(function(t){var n=[];for(var r in t)x(r,t)&&(n[n.length]=[r,t[r]]);return n}),ur=r(function(t){for(var n={},r=0;t.length>r;)n[t[r][0]]=t[r][1],r+=1;return n}),or=I(function(t,n,r){return it(T(t,r),n)})(["constructor","name"],"Object"),ir=ft(function(t,n){return console.error('\n Transform on field "'+t+'" failed\n',n)}),ar=on(ur,C(function(t){var n=t[0],r=t[1];return[n,ht($(Function),rr(Ht,ir(n)))(r)]}),er),cr=ft(function(t,n){return en(yt(or,Gt({})),nr,X(Lt($(Function),t)),vt(on(ar,Tt($(Function)))(t)),B(nr,[Kt,B(X,[ht(at,Gt(n)),on(z,ar,X(t),dt,tr(M(Tt($(Function),t))),M)])]))(n)}),fr=ft(function(t,n){return Qn([[Yn($(Number)),Xn],[Yn($(String)),Hn("")],[Yn($(Array)),Gn],[Yn(or),xt],[Zn,Gt(t)]])([t,n])}),sr=(ft(function(t,n){return B(fr,[Kt,z(ar(t))])(n)}),ft(function(t,n){return on(dt(M(t)),cr(t))(n)})),lr=ft(function(t,n){return on(ht(or,Wn(["shapeyMode"])),Qn([[$(Function),Kt],[$n(or,lt(Bn(/strict/i),["shapeyMode"])),sr],[or,cr],[Zn,Gt]])(t))(n)}),pr=ft(function(t,n){return R(function(t,n){return n(t)},n,C(lr,t||[]))}),yr=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=Jn(this.xf["@@transducer/step"](t,!0))),t},t}(),hr=e(function(t,n){return new yr(t,n)}),dr=e(s(["any"],hr,function(t,n){for(var r=0;n.length>r;){if(t(n[r]))return!0;r+=1}return!1})),vr=e(function(t,n){return[t,n]}),gr=zt(-1),br=e(_t),mr=e(x),jr=e(function(t,n){return a(n.length,function(){for(var r=[],e=0;n.length>e;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))})}),Or=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})});function Sr(t,n,r){var e,u=typeof t;switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?t in r._items[u]||(n&&(r._items[u][t]=!0),!1):(n&&(r._items[u]={},r._items[u][t]=!0),!1);case"boolean":if(u in r._items){var o=t?1:0;return!!r._items[u][o]||(n&&(r._items[u][o]=!0),!1)}return n&&(r._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?!!_t(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1);case"undefined":return!!r._items[u]||(n&&(r._items[u]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in r._items?!!_t(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}var wr=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Sr(t,!0,this)},t.prototype.has=function(t){return Sr(t,!1,this)},t}(),Ar=e(function(t,n){for(var r,e,u=new wr,o=[],i=0;n.length>i;)r=t(e=n[i]),u.add(r)&&o.push(e),i+=1;return o})(Kt),xr=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),Er=r(function(t){return!t}),kr=$t(Er),_r=Bn(/^(?:[A-Z])([A-Z0-9_\-.]+)([A-Z0-9])$/i),Pr=on(it("Promise"),T(["constructor","name"]),Jt("")),Nr=on(it("Object"),T(["constructor","name"]),Jt("")),Fr=kr(G),Mr=kr(at),Cr=on(Er,Bn(/^\s*$/)),qr=Or([Cr,Zt($(Number),$(String)),Fr]),Tr=xr([$(Boolean),$(Number),$(String),$(RegExp),$(Date)]),Lr=ft(function(t,n){return on(Fr,T(t))(n)}),Ur=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ir=yt($(Array),Array),Rr=yt($(Function),Gt),Dr=yt($(String),toString),zr=function(t,n){var r;return Ur({},t,((r={})[n[0]]=n[1],r))},Br=function(t,n){if(rt(t)!==rt(n)||G(n)){if($(Array,t)&&!G(n))return[].concat(t,Ir(n));if(!Nr(t))return t}else{if(Tr(n)||$(Function,n))return n;if($(Array,t))return[].concat(t,Ir(n))}return mt(t,n)},Vr=e(function(t,n){for(var r=0,e=Math.min(t.length,n.length),u={};e>r;)u[t[r]]=n[r],r+=1;return u}),$r=on(D,L("types")),Wr=function(t,n){return $(Array,t)?[].concat(t,Ir(n)):n},Zr=Xt(Or([on(Er,Tr),on(Er,$(Array)),$(Object)]),on(Object.freeze,R(zr,{}),Lt(dr(Zt(G,at))),C(function(t){var n=t[0],r=t[1];return $(Array,r)?[n,Object.freeze(Vr(r.filter(Tr),r.filter(Tr)))]:Nr(r)?[n,on(Xt(at,Gt(null),Object.freeze),Tt(Tr))(r)]:Tr(r)?[n,r]:null}),er,Lt(at)),Gt({})),Gr=ft(function(t,n){var r=t.namespace,e=t.store;return Vr(n,n.map(function(t){return(r||"")+"/"+(e||"")+"/"+t}))}),Hr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Xr=xr([G,at]),Jr=ft(function(t,n){var r=n.initialState,e=void 0===r?{}:r,u=n.stateMachinesPropName,o=void 0===u?["states"]:u;return on(yt(Lr(o),H(o,{})),Jt(e))(t)}),Kr=on(Ar,Tt(qr),Gn,C(D),D),Yr=on(Ar,Tt(qr),Gn,C(M),D),Qr=on(Ar,Gn,C(Yr),D,L("machines")),te=B(tr,[Qr,$r]),ne=on(Yn($(String)),M),re=on(Yn(Or([Nr,Zt(at,on(Yn(Yn($(String))),er))])),D),ee=(on(Yn(at),te),jr(tr,[Kr,M])),ue=(ft(function(t,n,r){return on(mr(Dr(t)),Jt({}),T([Dr(n)]),Jt({}))(r)}),ft(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return on(Object.freeze,R(zr,{}),C(function(r){var e=r[1];return[r[0],dt(on(C(Bt),Tt(on(br(Ht,D(n)),Bt)),Tt(on(mr(Ht,t),gr)),Tt(Yn($(String))),er)(e),e)]}),Tt($n(on($(String),Bt),on(Nr,gr))),er)(t)})),oe=ft(function(t,n){return on(Object.freeze,R(zr,{}),C(function(t){return[t[0],ue(t[1],n.types)]}),er)(t)}),ie=Xt(Or([$(String),br("."),_r]),Dt("."),on(ht(at,Gt(["states"])),Tt(Cr),ht($(String),Array))),ae=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.machines,r=void 0===n?{}:n,e=t.stateMachinesPropName;return on(mt(C(Gt("initial"),r)),dt(M(r)),Jt({}),T(Ir(e)))},ce=ft(function(t,n,r){var e=r.machines,u=void 0===e?{}:e,o=ae({machines:u,stateMachinesPropName:r.stateMachinesPropName})(t);return on(R(zr,{}),C(function(t){var r=t[0],e=t[1];return on(vr(r),yt(Fr,Gt(o[r])),L(n.type),Jt({}),L(o[r]))(e)}),er)(u)}),fe=ft(function(t,n,r){var e=r.machines,u=ae({machines:e,stateMachinesPropName:r.stateMachinesPropName})(t);return on(dr(function(t){var r=t[0],e=t[1];return on(Fr,L(n.type),Jt({}),L(Ht,e),L(r))(u)}),er)(e)}),se=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},le=function(t,n){return G(t)?L("initialState",n):t},pe=ft(function(t,n,r,e){return t(le(r,n),e,n)}),ye=ft(function(t,n,r,e){var u=Jr(le(r,n),n),o=H(n.stateMachinesPropName,ce(u,e,n),{});return se({},t(se({},u,o),e,n),o)}),he=ft(function(t,n,r,e,u){return n.reducer(t.reducer(le(r),e,u),e,u)}),de=B(pe,[on(Jt(Kt),T(["options","reducer"])),Kt]),ve=B(ye,[on(Jt(Kt),T(["options","reducer"])),Kt]),ge=nn(0,-1),be=e(function(t,n){var r={};return o(n.length,function(){var e=t.apply(this,arguments);return x(e,r)||(r[e]=n.apply(this,arguments)),r[e]})})(function(){return It(arguments)}),me=e(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),je=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Oe=on(it(!0),L("needsExtraction")),Se=function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return be(B(gr(n),ge(n)))},we=I(function(t,n,r){return Jt(t,T(n,r))}),Ae=I(function(t,n,r){return r.replace(t,n)});function xe(t,n,r){t.addEventListener("message",function(e){var u=e.data,o=u.id;if("RPC"===u.type&&null!=o)if(u.method){var i=n[u.method];null==i?t.postMessage({type:"RPC",id:o,error:"NO_SUCH_METHOD"}):Promise.resolve().then(function(){return i.apply(null,u.params)}).then(function(n){t.postMessage({type:"RPC",id:o,result:n})}).catch(function(n){t.postMessage({type:"RPC",id:o,error:""+n})})}else{var a=r[o];if(null==a)throw Error("Unknown callback "+o);delete r[o],u.error?a[1](Error(u.error)):a[0](u.result)}})}var Ee="undefined"!=typeof Worker&&null!==Worker&&"undefined"!=typeof Blob&&null!==Blob,ke=Qn([[$(Function),Rt(0,"toString")],[$(String),Kt],[Zn,Gt("")]]),_e=en(Ae(/^(\s*)\(/m,"export const run = ("),Ae(/^(\s*)const/m,"export const"),Ae(/^(\s*)function\s*\(/m,"export function run("),Ae(/^(\s*)function\s+/m,"export function "),Ae(/^(\s*)function\*\s+/m,"export function* "),Ae(/^(\s*)async\s+\(/m,"export const run = async ("),Ae(/^(\s*)async\s+function\s*\(/m,"export async function run(")),Pe=en(ke,_e,yt(Bn(/^\s*$/),function(t){return function(t,n){var r=this,e={},u="__xpo"+(""+Math.random()).substring(2)+"__";"function"==typeof t&&(t="("+Function.prototype.toString.call(t)+")("+u+")"),t=function(t,n,r){return t=(t=t.replace(/^(\s*)export\s+default\s+/m,function(t,e){return r.default=!0,""+e+n+".default="})).replace(/^(\s*)export\s+((?:async\s*)?function(?:\s*\*)?|const|let|var)(\s+)([a-zA-Z$_][a-zA-Z0-9$_]*)/gm,function(t,e,u,o,i){return r[i]=!0,""+e+n+"."+i+"="+u+o+i}),"var "+n+"={};\n"+t+"\n"+n+";"}(t,u,e)+"\n("+Function.prototype.toString.call(xe)+")(self,"+u+",{})";var o,i=URL.createObjectURL(new Blob([t])),a=new Worker(i,n),c=a.terminate,f={},s=0;for(o in a.kill=function(t){a.postMessage({type:"KILL",signal:t}),setTimeout(a.terminate)},a.terminate=function(){URL.revokeObjectURL(i),c.call(r)},a.call=function(t,n){return new Promise(function(r,e){var u="rpc"+ ++s;f[u]=[r,e],a.postMessage({type:"RPC",id:u,method:t,params:n})})},a.rpcMethods={},xe(a,a.rpcMethods,f),a.expose=function(t){a[o]=function(){return a.call(t,[].slice.call(arguments))}},e)o in a||a.expose(o);return a}(""+t)})),Ne=B(st,[on(Rr,we({},["options","workers"])),Kt]),Fe=en(Ne,C(Ee?Pe:en(ke,_e)),Lt(Bn(/^\s*$/))),Me=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=Jn(this.xf["@@transducer/step"](t,n))),t},t}(),Ce=e(s(["find"],e(function(t,n){return new Me(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return n[r];r+=1}})),qe=B(st,[on(Rr,we({},["options","queries"])),Kt]),Te=on(Lt(G),C(function(t){return $(Array,t)?(Ce($(Function),t)||Kt)(Ce($(String),t)||""):$(String,t)?t:null}),qe),Le=on(Tt($(String)),C(Xt($(Array),Ce($(String)),Gt(null))),L("queries")),Ue=B(H(["consts","queries"]),[Le,Kt]),Ie=e(Mt(s(["any"],hr,dr)));var Re=function(t){return"[object Number]"===Object.prototype.toString.call(t)},De=r(function(t){return null!=t&&Re(t.length)?t.length:NaN}),ze=r(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),Be=r(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),Ve="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",$e=r(!("function"==typeof String.prototype.trim)||Ve.trim()?function(t){var n=RegExp("^["+Ve+"]["+Ve+"]*"),r=RegExp("["+Ve+"]["+Ve+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()}),We=Rt(0,"toUpperCase"),Ze=Zr({VALIDATION_LEVELS:["STRICT","CANCEL","PRUNE","LOG"]}).VALIDATION_LEVELS,Ge=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},He=br(Ht,M(Ze)),Xe=on(yt(He,Gt("CANCEL")),We,$e,Dr),Je=ft(function(t,n){return on(R(function(n,r){var e,u=r[0],o=r[1],i=Nr(o)?Je(t[u],o):o;return Nr(i)&&at(i)?n:Ge({},n,((e={})[u]=!0===i?t[u]:i,e))},{}),Lt(on($(Array),zt(1))),Be)(n)}),Ke=on(R(function(t,n){var r,e=n[0],u=n[1],o=Nr(u)?Ke(u):u;return Nr(o)&&at(o)?t:Ge({},t,((r={})[e]=o,r))},{}),Lt(function(t){return!0===t[1]}),Be),Ye=function(t){return on(Jt(Zn),L(Ht,t),L("type"))},Qe=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return on(dr(Zt($n(Nr,t),$(Array))),ze)(n)},tu={namespace:Kt,store:Kt,validationLevel:Xe,stateMachinesPropName:ie,consts:Zr},nu={consts:{},creators:{},machines:{},queries:{},workers:{},selectors:{},stateMachinesPropName:"states",types:[],validationLevel:"CANCEL",validators:{}},ru={validationLevel:[[He,"must be: STRICT, CANCEL, PRUNE, or LOG. CANCEL is the default."]],store:[[qr,"must be a (non-blank) string"]],namespace:[[qr,"must be a (non-blank) string"]],stateMachinesPropName:[[Zt(qr,$n($(Array),Yn(qr))),"must be a string (or array of strings)"]],consts:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],creators:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],machines:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],selectors:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],types:[[$n($(Array),Yn($(String))),"must be an object (or a function returning an object)"]],validators:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],enhancers:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],multipliers:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],queries:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],workers:[[Zt(Nr,$(Function)),"must be an object (or a function returning an object)"]],reducer:[[$(Function),"must be a function"]],initialState:[[xr([Tr,Nr,$(Function)]),"must be an object, a function returning an object, or a primitive value"]]},eu={store:[[qr,"must be a (non-blank) string"]],namespace:[[qr,"must be a (non-blank) string"]],types:[[Nr,"must be an object"],[on(Yn(on(it(1),De,Ar)),C(function(t){var n=t[1];return[t[0],on(gr,Dt("/"))(n)]}),Tt(Yn($(String))),er),"each key and value are identical"]],machines:[[on(Yn(Nr),D),"must be an object"],[on(Yn(Mr),D),"must not be empty"],[on(Yn(Or([ne,re])),D),"each machine contains nested objects (states) whose inputs and transitions are strings"],[on(Yn(ee),D),"each transition value must also be a state"]],stateMachinesPropName:[[$n($(Array),Yn(qr)),'must be an array of strings (representing the path to the "current state" prop)']]},uu=on(at,tr(["store","namespace","validators","types"]),M),ou=xr([kr(Nr),on(at,M),on(Ie(uu),D)]),iu=e(function(t,n){return n.match(t)||[]}),au=e(function(t,n){for(var r=[],e=0,u=Math.min(t.length,n.length);u>e;)r[e]=[t[e],n[e]],e+=1;return r}),cu=ft(function(t,n){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;n>e;e++)r[e-1]=arguments[e];return qr(t)&&r.length?au(iu(/(%?)(%([jods]))/g,t),C(Qn([[Zt($(Number),$(String)),Kt],[Zt($(Array),Nr),JSON.stringify]]))(r)).reduce(function(t,n){return t.replace(n[0],n[1])},t).replace(/%{2,2}/g,"%"):t}(t,n)}),fu=on(C(cu("These inputs are not valid Action Types: %o")),Tt(Mr),C(te),D,Tt(uu)),su=on(C(cu("These violations of the schema rules for the middleware were found: %o")),Tt(Mr),C(on(Ke,Rn(eu))),D,Tt(uu)),lu=on(Yn(function(t){return it(t[0],L("store",t[1]))}),er,Tt(uu)),pu=function(t){if(ou(t))return"No ducks have been provided! To create the Attadux middleware please provide an Object containing one or more ducks";if(!lu(t))return"The name of each duck should match its 'store' prop, otherwise it will not be possible to find the correct duck for each dispatched action";var n=fu(t);if(Mr(n))return cu("Invalid State Machines: %o",n);var r=su(t);return Mr(r)?cu("Invalid Ducks: %o",r):null},yu=on(R(function(t,n){return Z(n.store,n,t)},{}),Tt(uu),Yt(Kt)),hu=function(t){return on(Jt({}),Xt(Cr,L(Ht,Tt(uu,t)),Gt({})),Zt(zt(1),Bt),Dt("/"),L("type"))},du=on(xt,St([on(jt("stateMachinesPropName"),Gt(["states"])),on(B(mt,[on(vt(tu),dt(M(tu)),Ue),on(jt("types"),B(Gr,[Kt,L("types")]))]),L("validatedOptions")),on(ht(Mr,jt("invalidOptions")),Ke,L("validationsResult")),on(jt("options"),L("validatedOptions"))]),wt,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=dt(M(ru),t),r=Rn(ru,n);return{validationsResult:r,validatedOptions:Je(n,r)}}),vu=on(yt(pt("validationLevel","PRUNE"),vt({validators:C(function(t){return on(Ke,t)})})),B(mt,[Kt,Xt(lt(G,["options","validators"]),Gt({}),on(jt("validators"),C(Rn),B(st,[on(Rr,T(["options","validators"])),Kt])))])),gu=B(mt,[Kt,Xt(lt(G,["options","queries"]),Gt({}),on(jt("queries"),Te))]),bu=B(mt,[Kt,Xt(lt(G,["options","workers"]),Gt({}),on(jt("workers"),Fe))]),mu=B(mt,[Kt,Xt(lt(G,["options","machines"]),Gt({}),on(jt("machines"),B(oe,[B(st,[on(Rr,T(["options","machines"])),Kt]),Kt])))]),ju=B(mt,[Kt,on(jt("initialState"),B(mt,[B(st,[on(Rr,T(["options","initialState"])),Kt]),Xt(ct(at,"machines"),Gt({}),on(X({}),B(H,[L("stateMachinesPropName"),on(function(){return R(function(t,n){var r;return Hr({},t,((r={})[n]="initial",r))},{},M((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})||{}))},L("machines"))])))]))]),Ou=B(mt,[Kt,Xt(lt(G,["options","selectors"]),Gt({}),on(jt("selectors"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return on(R(function(t,n){var r;return je({},t,((r={})[n[0]]=n[1].justAddDuckSelectors(t),r))},t),er,me(Oe))(t)},B(st,[on(Rr,T(["options","selectors"])),Kt])))]),Su=Xt($(Array),pr,lr),wu=B(mt,[Kt,Xt(lt(G,["options","enhancers"]),Gt({}),on(jt("enhancers"),C(Su),B(st,[on(Rr,T(["options","enhancers"])),Kt])))]),Au=on(V,C(lr),yt($(Array),wt)),xu=B(mt,[Kt,Xt(lt(G,["options","multipliers"]),Gt({}),on(jt("multipliers"),C(Au),B(st,[on(Rr,T(["options","multipliers"])),Kt])))]),Eu=B(mt,[Kt,Xt(lt(G,["options","creators"]),Gt({}),on(jt("creators"),B(st,[on(Rr,T(["options","creators"])),Kt])))]),ku=B(mt,[Kt,Xt(Zt(lt(G,["options","reducer"]),ct(at,"machines")),on(jt("reducer"),de),on(jt("reducer"),ve))]),_u=B(mt,[Kt,Xt(ct(G,"validators"),Gt({}),on(z({isPayloadValid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return on(Er,Qe,X(n),Ye(t))(n)}},getValidationErrors:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return on(ht(at,Gt(null)),Ke,X(n),Ye(t))(n)}},pruneInvalidFields:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return on(ht(at,Gt(null)),Je(n),function(t){return t(n)},Ye(t))(n)}}}),L("validators")))]),Pu=e(function(t,n){return a(t,function(){for(var r,e=1,u=n,o=0;t>=e&&"function"==typeof u;)u=u.apply(this,Array.prototype.slice.call(arguments,o,r=e===t?arguments.length:o+u.length)),e+=1,o=r;return u})}),Nu=I(function(t,n,r){for(var e=0,u=r.length,o=[],i=[n];u>e;)i=t(i[0],r[e]),o[e]=i[1],e+=1;return[i[0],o]}),Fu=e(function(t,n){if(c(t)){if(c(n))return t.concat(n);throw new TypeError(It(n)+" is not an array")}if(p(t)){if(p(n))return t+n;throw new TypeError(It(n)+" is not a string")}if(null!=t&&Et(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&Et(t.concat))return t.concat(n);throw new TypeError(It(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),Mu=I(function(t,n,r){return bt(function(n,r,e){return t(r,e)},n,r)}),Cu=ft(function(t,n,r){var e=n.options;return Qn([[on(dr($(Function)),C(L(r)),vr(e)),Gt(B(Mu(Br),[Rr(e[r]),B(Rr(t[r]),[Kt,Rr(e[r])])]))],[on(G,L(r)),Gt(e[r])],[Zn,on(Mu(Br,e[r]),L(r))]])(t)}),qu=function(t){return on(B(mt,[Kt,on(jt("reducer"),(n=t,r=n.options,on(Xt(Yn(mr("reducer")),on(he(r),gr),on(Ce(mr("reducer")),vr(r))),vr(r))))]),R(mt,{}),Fu([nu,t.options]),wt,X(t),Rr);var n,r},Tu=ft(function(t,n,r){return on(mt(r),xt,gr,Nu(function(t,n){var r=n[0],e=n[1],u=on(jt(r),ht($(Function),X(r)),e)(t);return[mt(t,u),u]},n))(t)}),Lu=on(Object.freeze,ku,bu,_u,Eu,xu,wu,Ou,ju,mu,vu,gu,du,mt(nu)),Uu=B(on,[Gt(Lu),function(t){var n=qu(t);return function(r){var e=n(r),u=[["consts",on(Mu(Wr,Ht,e.consts),T(["options","consts"]))],["types",on(Ar,Fu(e.types),T(["options","types"]))],["initialState",Cu(e)],["machines",Cu(e)],["creators",Cu(e)],["selectors",Cu(e)],["queries",Cu(e)],["enhancers",Cu(e)],["multipliers",Cu(e)],["validators",Cu(e)],["workers",Cu(e)]];return Tu(u,t,e)}}]),Iu=Pu(2,Uu),Ru=Gt(!1),Du=I(function(t,n,r){return $(t,r[n])}),zu=I(function(t,n,r){return null!=r&&x(n,r)?r[n]:t}),Bu=on(zt(1),Dt("/"));t.createRow=yu,t.createDuck=Lu,t.extendDuck=Iu,t.createExtenderForDuck=Uu,t.createSelector=Se,t.createDuckSelector=function(t){return{needsExtraction:!0,justAddDuckSelectors:function(){var n=t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return Array.isArray(n)?Se.apply(void 0,n):n}}},t.createEnhancerMiddleware=function(t){var n=pu(t);if(n)throw Error(n);var r=hu(t);return function(t){var n=t.dispatch;return function(t){return function(e){var u=r(e).enhancers,o=(void 0===u?{}:u)[e.type];if(!$(Function,o))return t(e);var i=o(e);return Zt(G,at)(i)?t(e):(i.type!==e.type&&n(i),t(i))}}}},t.createMultiplierMiddleware=function(t){var n=pu(t);if(n)throw Error(n);var r=hu(t);return function(t){var n=t.dispatch;return function(t){return function(e){t(e);var u=r(e).multipliers,o=(void 0===u?{}:u)[e.type];if($(Function,o)){var i=o(e);$(Array,i)&&i.forEach(function(t){return n(t)})}}}}},t.createValidatorMiddleware=function(t){var n=pu(t);if(n)throw Error(n);var r=hu(t);return function(t){var n=t.getState;return function(t){return function(e){var u,o=r(e),i=o.machines,a=o.isPayloadValid,c=void 0===a?Zn:a,f=o.getValidationErrors,s=void 0===f?Gt(null):f,l=o.pruneInvalidFields,p=void 0===l?Gt(e):l,y=o.stateMachinesPropName,h=void 0===y?"states":y,d=o.validationLevel,v=void 0===d?Ze.CANCEL:d;if(Xr(i))return t(e);var g=((u={})[Ze.CANCEL]=yt(c,Ru),u[Ze.LOG]=B(nr,[Kt,on(Xt(G,Gt({}),jt("validationErrors")),s)]),u[Ze.PRUNE]=p,u[Ze.STRICT]=yt(B(fe,[n,Kt,Gt({machines:i,stateMachinesPropName:h})]),Ru),u),b=st(on(Jt(Kt),L(v))(g),e);return b&&t(b)}}}},t.createWorkerMiddleware=function(t){var n=pu(t);if(n)throw Error(n);var r=hu(t),e=en(r,zu({},"workers")),u=Xt(T(["meta","worker"]),B(yt($(String)),[en(L("type"),Gt),T(["meta","worker"])]),Gt(null)),o=en(u,L),i=B(st,[o,e]);return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(e){var o=u(e);if(o){var a=en(i,Jt({}),function(t){return Qn([[$(Function),Kt],[Du(Function,t),L(t)],[Du(Function,"run"),L("run")]])}(o))(e);if($(Function,a)){var c=Bu(e.type),f=a({action:e,state:c?r()[c]:{}});Pr(f)?f.then(function(t){L("type",t)&&n(t)}):L("type",f)&&n(f)}}return t(e)}}}},Object.defineProperty(t,"__esModule",{value:!0})});

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

import _default38 from 'ramda/src/applySpec';
import _default39 from 'ramda/src/applySpec';
import _default38 from 'ramda/src/juxt';
import _default37 from 'ramda/src/is';

@@ -179,2 +180,23 @@ import _default36 from 'ramda/src/assocPath';

/**
* Creates an Object of multiplier functions out of an Object of spec objects
* (or arrays of spec objects).
*
* @func
* @sig {k: [({k: v} -> {k: v}), ({k: v} -> {k: v}), ...]|({k: v} -> {k: v}) } -> {k: ({k: v} -> {k: v}) }
* @param {Object[]|Object} multipliers A single multiplier spec or an Array of multipler specs
* @returns {Object} An object of multipler functions, each ready to receive an
* input object and apply their single or many multipler functions to it.
*/
export var makeMultipliers = _default(_default38, _default28(makeShaper), _default26(_default37(Array), _default17));
/**
* Creates the Duck's action multipliers (if they are present inside of its 'options' prop).
*
* @func
* @sig {k: v} -> {k: v}
* @param {Object} duck A duck which (may) contain action multipliers (inside of its 'options')
* @returns {Object} A clone of the duck, but now with action multipliers (if they were found inside of 'options').
*/
export var createDuckActionMultipliers = _default20(_default21, [_default6, _default8(_default29(_default30, ['options', 'multipliers']), _default11({}), _default(_default19('multipliers'), _default28(makeMultipliers), _default20(_default31, [_default(coerceToFn, _default32(['options', 'multipliers'])), _default6])))]);
/**
* Creates the Duck's action creators (if they are present inside of its 'options' prop).

@@ -207,3 +229,3 @@ *

*/
export var createValidationMiddlewareHelpers = _default20(_default21, [_default6, _default8(_default33(_default30, 'validators'), _default11({}), _default(_default38({
export var createValidationMiddlewareHelpers = _default20(_default21, [_default6, _default8(_default33(_default30, 'validators'), _default11({}), _default(_default39({
isPayloadValid: createPayloadValidator,

@@ -210,0 +232,0 @@ getValidationErrors: createPayloadValidationsLogger,

@@ -146,5 +146,5 @@ import _default31 from 'ramda/src/uniq';

var childOptions = extendOptions(options);
var optionBuilders = [['consts', _default3(_default11(concatOrReplace, _default29, childOptions.consts), _default30(['options', 'consts']))], ['types', _default3(_default31, _default24(childOptions.types), _default30(['options', 'types']))], ['initialState', createOptionsExtender(childOptions)], ['machines', createOptionsExtender(childOptions)], ['creators', createOptionsExtender(childOptions)], ['selectors', createOptionsExtender(childOptions)], ['queries', createOptionsExtender(childOptions)], ['enhancers', createOptionsExtender(childOptions)], ['validators', createOptionsExtender(childOptions)], ['workers', createOptionsExtender(childOptions)]];
var optionBuilders = [['consts', _default3(_default11(concatOrReplace, _default29, childOptions.consts), _default30(['options', 'consts']))], ['types', _default3(_default31, _default24(childOptions.types), _default30(['options', 'types']))], ['initialState', createOptionsExtender(childOptions)], ['machines', createOptionsExtender(childOptions)], ['creators', createOptionsExtender(childOptions)], ['selectors', createOptionsExtender(childOptions)], ['queries', createOptionsExtender(childOptions)], ['enhancers', createOptionsExtender(childOptions)], ['multipliers', createOptionsExtender(childOptions)], ['validators', createOptionsExtender(childOptions)], ['workers', createOptionsExtender(childOptions)]];
return createExtendedOptions(optionBuilders, duck, childOptions);
};
};

@@ -8,3 +8,3 @@ import _default5 from 'ramda/src/uncurryN';

import { duxDefaults } from './schema';
import { createDuckWorkers, createDuckQueries, createDuckValidators, createDuckMachines, createDuckInitialState, createDuckSelectors, createDuckActionCreators, createDuckActionEnhancers, createDuckReducer, createDuckMetadata, createValidationMiddlewareHelpers } from './create';
import { createDuckWorkers, createDuckQueries, createDuckValidators, createDuckMachines, createDuckInitialState, createDuckSelectors, createDuckActionCreators, createDuckActionEnhancers, createDuckActionMultipliers, createDuckReducer, createDuckMetadata, createValidationMiddlewareHelpers } from './create';
import { createDuckExtender } from './extend';

@@ -25,3 +25,3 @@

*/
export var createDuck = _default(Object.freeze, createDuckReducer, createDuckWorkers, createValidationMiddlewareHelpers, createDuckActionCreators, createDuckActionEnhancers, createDuckSelectors, createDuckInitialState, createDuckMachines, createDuckValidators, createDuckQueries, createDuckMetadata, _default2(duxDefaults));
export var createDuck = _default(Object.freeze, createDuckReducer, createDuckWorkers, createValidationMiddlewareHelpers, createDuckActionCreators, createDuckActionMultipliers, createDuckActionEnhancers, createDuckSelectors, createDuckInitialState, createDuckMachines, createDuckValidators, createDuckQueries, createDuckMetadata, _default2(duxDefaults));

@@ -28,0 +28,0 @@ /**

@@ -79,2 +79,3 @@ import _default22 from 'ramda/src/none';

enhancers: [[_default2(isPlainObj, _default4(Function)), 'must be an object (or a function returning an object)']],
multipliers: [[_default2(isPlainObj, _default4(Function)), 'must be an object (or a function returning an object)']],
queries: [[_default2(isPlainObj, _default4(Function)), 'must be an object (or a function returning an object)']],

@@ -81,0 +82,0 @@ workers: [[_default2(isPlainObj, _default4(Function)), 'must be an object (or a function returning an object)']],

import createEnhancerMiddleware from './enhancers';
import createMultiplierMiddleware from './multipliers';
import createValidatorMiddleware from './validators';
import createWorkerMiddleware from './workers';
export { createEnhancerMiddleware, createValidatorMiddleware, createWorkerMiddleware };
export { createEnhancerMiddleware, createMultiplierMiddleware, createValidatorMiddleware, createWorkerMiddleware };
{
"name": "attadux",
"version": "0.1.13",
"version": "0.1.14",
"description": "Implementation of the redux-modular-ducks, forked from the extensible-duck implementation and extended to include spected validators, state machines, helpers, and to follow a broader/looser definition of constants",

@@ -5,0 +5,0 @@ "main": "cjs/index.js",

@@ -33,2 +33,3 @@ # Attadux

* __enhancers__ - An `Object` of action-enhancer functions (or a `Function` returning an `Object` of them) which return a plain 'old JavaScript `Object` representing the action to be modified prior to hitting the reducers (in the Redux middleware chain). These enhancers are generic enough that you don't have to use them in Redux, as then simply modify an object containing (at least) a `type` prop The syntax for writing the enhancers is to define (what looks like) just an object whose keys represent names of props on the original action or new ones to be created on it. You can use the enhancer function to modify existing props (formatting, etc.) or create new props from existing ones. The values you set on the enhancer function's spec object are usually functions that make those modifications to existing props (or creates new ones), however you can also set values that are _not_ functions, which will cause them be be passed right through onto the modified object. See [shapey](https://github.com/arizonatribe/shapey) for further examples on this type of API. One last caveat to these Action enhancers is that you don't (and shouldn't usually) set a `type` prop on the enhancer function's spec object, however if you _do_ so, the behavior of the enhancer changes to create a new object with _only_ the fields you named in the spec object (the default behavior of the enhancer function is to _merge_ the result of the enhancement back onto the original action).
* __multipliers__ - An `Object` of action-multiplying functions (or a `Function` returning an `Object` of them) which return an Array of one or more plain 'old JavaScript `Object`. One action in and one or more (new ones) are created from it. Again, either a single new object to create (from input passed in) or many new objects to create from it. When using this in Redux middleware, you can apply a fanout behavior to a dispatched Redux action (ie, in response to some kind of "post login" action, you can create several new actions to go an retrieve one-time lookup data, new that the user is authenticated). You even have access to enhancements for the new objects, as each new object you spec out can have a function as one of its props, which will follow the same re-shaping logic as discussed for the __enhancers__.
* __queries__ - An `Object` whose values are an `Array` of 2 values `[Function, String]` (similar to the format for _validators_). In this case the function operates on the string value of the query itself. If you use GraqphQL queries, the first arg would be just the instance of a function (could even be a third-party lib, like the `gql` function from the `graphql-tools` and the `react-apollo` packages). The second arg would be the string template literal that constitutes the query. The last param is always the actual `String` value of the query.

@@ -35,0 +36,0 @@ query itself. When two params are passed into the query builder The first param is defaults to identity when it isn't provided

Sorry, the diff of this file is too big to display

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