test-mixer 4.0.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -2
- package/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +11 -3
- package/package.json +2 -2
- package/types/index.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [4.1.0](https://github.com/codsen/codsen/compare/test-mixer@4.0.2...test-mixer@4.1.0) (2022-12-22)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- allow non-bool keys in `ref` (1st arg) which are not present in `defaults` (2nd arg) ([5259c82](https://github.com/codsen/codsen/commit/5259c82d134798fd8ef1d0ef41ab7b777f0d529c))
|
|
9
11
|
|
|
10
12
|
## 4.0.0 (2022-12-01)
|
|
11
13
|
|
package/dist/test-mixer.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.0
|
|
4
|
+
* @version 4.1.0
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{combinations as u}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="4.0
|
|
10
|
+
import{combinations as u}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="4.1.0";var h=i;function f(o={},t={}){if(o&&typeof o!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let s;if(typeof o=="object"&&typeof t=="object"&&Object.keys(o).filter(e=>typeof o[e]=="boolean").some(e=>Object.keys(t).includes(e)?!1:(s=e,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${s}" which 2nd input arg object doesn't have.`);if(!Object.keys(t).length)return[];let p=l(o),n=l(t),r={};return Object.keys(t).forEach(e=>{typeof n[e]=="boolean"&&!Object.keys(o).includes(e)&&(r[e]=n[e])}),u(r).map(e=>({...t,...p,...e}))}export{f as mixer,h as version};
|
package/dist/test-mixer.umd.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.0
|
|
4
|
+
* @version 4.1.0
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var testMixer=(()=>{var Pe=Object.create;var E=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,De=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var bt=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))yt.call(e,n)&&bt(t,n,e[n]);if(_t)for(var n of _t(e))He.call(e,n)&&bt(t,n,e[n]);return t};var N=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Re=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},mt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $e(e))!yt.call(t,o)&&o!==n&&E(t,o,{get:()=>e[o],enumerable:!(r=Me(e,o))||r.enumerable});return t};var I=(t,e,n)=>(n=t!=null?Pe(De(t)):{},mt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Ne=t=>mt(E({},"__esModule",{value:!0}),t);var Pt=N((Go,It)=>{var Y="__lodash_hash_undefined__",Fe=9007199254740991,Le="[object Function]",Ge="[object GeneratorFunction]",Be=/[\\^$.*+?()[\]{}|]/g,Ve=/^\[object .+?Constructor\]$/,We=typeof global=="object"&&global&&global.Object===Object&&global,Ue=typeof self=="object"&&self&&self.Object===Object&&self,xt=We||Ue||Function("return this")();function Ke(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Je(t,e){var n=t?t.length:0;return!!n&&Xe(t,e,0)>-1}function ke(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function Ot(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function qe(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Xe(t,e,n){if(e!==e)return qe(t,Ye,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Ye(t){return t!==t}function Ze(t){return function(e){return t(e)}}function jt(t,e){return t.has(e)}function Qe(t,e){return t==null?void 0:t[e]}function ze(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var tn=Array.prototype,en=Function.prototype,Ct=Object.prototype,X=xt["__core-js_shared__"],vt=function(){var t=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),St=en.toString,Z=Ct.hasOwnProperty,nn=Ct.toString,rn=RegExp("^"+St.call(Z).replace(Be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=tn.splice,wt=Math.max,cn=Math.min,an=Tt(xt,"Map"),P=Tt(Object,"create");function m(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function sn(){this.__data__=P?P(null):{}}function un(t){return this.has(t)&&delete this.__data__[t]}function ln(t){var e=this.__data__;if(P){var n=e[t];return n===Y?void 0:n}return Z.call(e,t)?e[t]:void 0}function fn(t){var e=this.__data__;return P?e[t]!==void 0:Z.call(e,t)}function hn(t,e){var n=this.__data__;return n[t]=P&&e===void 0?Y:e,this}m.prototype.clear=sn;m.prototype.delete=un;m.prototype.get=ln;m.prototype.has=fn;m.prototype.set=hn;function x(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function pn(){this.__data__=[]}function dn(t){var e=this.__data__,n=L(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():on.call(e,n,1),!0}function gn(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]}function _n(t){return L(this.__data__,t)>-1}function bn(t,e){var n=this.__data__,r=L(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}x.prototype.clear=pn;x.prototype.delete=dn;x.prototype.get=gn;x.prototype.has=_n;x.prototype.set=bn;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function yn(){this.__data__={hash:new m,map:new(an||x),string:new m}}function mn(t){return G(this,t).delete(t)}function jn(t){return G(this,t).get(t)}function vn(t){return G(this,t).has(t)}function wn(t,e){return G(this,t).set(t,e),this}O.prototype.clear=yn;O.prototype.delete=mn;O.prototype.get=jn;O.prototype.has=vn;O.prototype.set=wn;function F(t){var e=-1,n=t?t.length:0;for(this.__data__=new O;++e<n;)this.add(t[e])}function xn(t){return this.__data__.set(t,Y),this}function On(t){return this.__data__.has(t)}F.prototype.add=F.prototype.push=xn;F.prototype.has=On;function L(t,e){for(var n=t.length;n--;)if($n(t[n][0],e))return n;return-1}function Cn(t,e,n){for(var r=n?ke:Je,o=t[0].length,i=t.length,c=i,a=Array(i),h=1/0,l=[];c--;){var u=t[c];c&&e&&(u=Ot(u,Ze(e))),h=cn(u.length,h),a[c]=!n&&(e||o>=120&&u.length>=120)?new F(c&&u):void 0}u=t[0];var d=-1,g=a[0];t:for(;++d<o&&l.length<h;){var f=u[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?jt(g,p):r(l,p,n))){for(c=i;--c;){var gt=a[c];if(!(gt?jt(gt,p):r(t[c],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function Sn(t){if(!Et(t)||In(t))return!1;var e=At(t)||ze(t)?rn:Ve;return e.test(Pn(t))}function Tn(t,e){return e=wt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=wt(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var c=Array(e+1);++r<e;)c[r]=n[r];return c[e]=i,Ke(t,this,c)}}function An(t){return Hn(t)?t:[]}function G(t,e){var n=t.__data__;return En(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Tt(t,e){var n=Qe(t,e);return Sn(n)?n:void 0}function En(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function In(t){return!!vt&&vt in t}function Pn(t){if(t!=null){try{return St.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Mn=Tn(function(t){var e=Ot(t,An);return e.length&&e[0]===t[0]?Cn(e):[]});function $n(t,e){return t===e||t!==t&&e!==e}function Dn(t){return t!=null&&Rn(t.length)&&!At(t)}function Hn(t){return Nn(t)&&Dn(t)}function At(t){var e=Et(t)?nn.call(t):"";return e==Le||e==Ge}function Rn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fe}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Nn(t){return!!t&&typeof t=="object"}It.exports=Mn});var Ht=N((Bo,Dt)=>{function Fn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ln(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Gn(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Bn(t,e,n){if(e!==e)return Gn(t,Wn,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Vn(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function Wn(t){return t!==t}function Un(t){return function(e){return t(e)}}var Kn=Array.prototype,Mt=Kn.splice,$t=Math.max;function Jn(t,e,n,r){var o=r?Vn:Bn,i=-1,c=e.length,a=t;for(t===e&&(e=qn(e)),n&&(a=Ln(t,Un(n)));++i<c;)for(var h=0,l=e[i],u=n?n(l):l;(h=o(a,u,h,r))>-1;)a!==t&&Mt.call(a,h,1),Mt.call(t,h,1);return t}function kn(t,e){return e=$t(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=$t(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var c=Array(e+1);++r<e;)c[r]=n[r];return c[e]=i,Fn(t,this,c)}}function qn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Xn=kn(Yn);function Yn(t,e){return t&&t.length&&e&&e.length?Jn(t,e):t}Dt.exports=Xn});var Lt=N((Vo,Ft)=>{var Zn="[object Object]";function Qn(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function zn(t,e){return function(n){return t(e(n))}}var tr=Function.prototype,Rt=Object.prototype,Nt=tr.toString,er=Rt.hasOwnProperty,nr=Nt.call(Object),rr=Rt.toString,or=zn(Object.getPrototypeOf,Object);function ir(t){return!!t&&typeof t=="object"}function cr(t){if(!ir(t)||rr.call(t)!=Zn||Qn(t))return!1;var e=or(t);if(e===null)return!0;var n=er.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Nt.call(n)==nr}Ft.exports=cr});var ht=N((M,C)=>{var ar=200,Zt="__lodash_hash_undefined__",Qt=9007199254740991,it="[object Arguments]",sr="[object Array]",zt="[object Boolean]",te="[object Date]",ur="[object Error]",ct="[object Function]",ee="[object GeneratorFunction]",B="[object Map]",ne="[object Number]",at="[object Object]",Gt="[object Promise]",re="[object RegExp]",V="[object Set]",oe="[object String]",ie="[object Symbol]",z="[object WeakMap]",ce="[object ArrayBuffer]",W="[object DataView]",ae="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",le="[object Int16Array]",fe="[object Int32Array]",he="[object Uint8Array]",pe="[object Uint8ClampedArray]",de="[object Uint16Array]",ge="[object Uint32Array]",lr=/[\\^$.*+?()[\]{}|]/g,fr=/\w*$/,hr=/^\[object .+?Constructor\]$/,pr=/^(?:0|[1-9]\d*)$/,s={};s[it]=s[sr]=s[ce]=s[W]=s[zt]=s[te]=s[ae]=s[se]=s[ue]=s[le]=s[fe]=s[B]=s[ne]=s[at]=s[re]=s[V]=s[oe]=s[ie]=s[he]=s[pe]=s[de]=s[ge]=!0;s[ur]=s[ct]=s[z]=!1;var dr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,_=dr||gr||Function("return this")(),_e=typeof M=="object"&&M&&!M.nodeType&&M,Bt=_e&&typeof C=="object"&&C&&!C.nodeType&&C,_r=Bt&&Bt.exports===_e;function br(t,e){return t.set(e[0],e[1]),t}function yr(t,e){return t.add(e),t}function mr(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function jr(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function be(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function vr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function wr(t,e){return t==null?void 0:t[e]}function ye(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function Vt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function st(t,e){return function(n){return t(e(n))}}function Wt(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var xr=Array.prototype,Or=Function.prototype,U=Object.prototype,Q=_["__core-js_shared__"],Ut=function(){var t=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),me=Or.toString,y=U.hasOwnProperty,K=U.toString,Cr=RegExp("^"+me.call(y).replace(lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=_r?_.Buffer:void 0,Jt=_.Symbol,kt=_.Uint8Array,Sr=st(Object.getPrototypeOf,Object),Tr=Object.create,Ar=U.propertyIsEnumerable,Er=xr.splice,qt=Object.getOwnPropertySymbols,Ir=Kt?Kt.isBuffer:void 0,Pr=st(Object.keys,Object),tt=A(_,"DataView"),$=A(_,"Map"),et=A(_,"Promise"),nt=A(_,"Set"),rt=A(_,"WeakMap"),D=A(Object,"create"),Mr=w(tt),$r=w($),Dr=w(et),Hr=w(nt),Rr=w(rt),Xt=Jt?Jt.prototype:void 0,Yt=Xt?Xt.valueOf:void 0;function v(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nr(){this.__data__=D?D(null):{}}function Fr(t){return this.has(t)&&delete this.__data__[t]}function Lr(t){var e=this.__data__;if(D){var n=e[t];return n===Zt?void 0:n}return y.call(e,t)?e[t]:void 0}function Gr(t){var e=this.__data__;return D?e[t]!==void 0:y.call(e,t)}function Br(t,e){var n=this.__data__;return n[t]=D&&e===void 0?Zt:e,this}v.prototype.clear=Nr;v.prototype.delete=Fr;v.prototype.get=Lr;v.prototype.has=Gr;v.prototype.set=Br;function b(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vr(){this.__data__=[]}function Wr(t){var e=this.__data__,n=J(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Er.call(e,n,1),!0}function Ur(t){var e=this.__data__,n=J(e,t);return n<0?void 0:e[n][1]}function Kr(t){return J(this.__data__,t)>-1}function Jr(t,e){var n=this.__data__,r=J(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}b.prototype.clear=Vr;b.prototype.delete=Wr;b.prototype.get=Ur;b.prototype.has=Kr;b.prototype.set=Jr;function S(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kr(){this.__data__={hash:new v,map:new($||b),string:new v}}function qr(t){return k(this,t).delete(t)}function Xr(t){return k(this,t).get(t)}function Yr(t){return k(this,t).has(t)}function Zr(t,e){return k(this,t).set(t,e),this}S.prototype.clear=kr;S.prototype.delete=qr;S.prototype.get=Xr;S.prototype.has=Yr;S.prototype.set=Zr;function T(t){this.__data__=new b(t)}function Qr(){this.__data__=new b}function zr(t){return this.__data__.delete(t)}function to(t){return this.__data__.get(t)}function eo(t){return this.__data__.has(t)}function no(t,e){var n=this.__data__;if(n instanceof b){var r=n.__data__;if(!$||r.length<ar-1)return r.push([t,e]),this;n=this.__data__=new S(r)}return n.set(t,e),this}T.prototype.clear=Qr;T.prototype.delete=zr;T.prototype.get=to;T.prototype.has=eo;T.prototype.set=no;function ro(t,e){var n=lt(t)||Ao(t)?vr(t.length,String):[],r=n.length,o=!!r;for(var i in t)(e||y.call(t,i))&&!(o&&(i=="length"||Oo(i,r)))&&n.push(i);return n}function je(t,e,n){var r=t[e];(!(y.call(t,e)&&Oe(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function J(t,e){for(var n=t.length;n--;)if(Oe(t[n][0],e))return n;return-1}function oo(t,e){return t&&ve(e,ft(e),t)}function ot(t,e,n,r,o,i,c){var a;if(r&&(a=i?r(t,o,i,c):r(t)),a!==void 0)return a;if(!q(t))return t;var h=lt(t);if(h){if(a=vo(t),!e)return yo(t,a)}else{var l=j(t),u=l==ct||l==ee;if(Io(t))return lo(t,e);if(l==at||l==it||u&&!i){if(ye(t))return i?t:{};if(a=wo(u?{}:t),!e)return mo(t,oo(a,t))}else{if(!s[l])return i?t:{};a=xo(t,l,ot,e)}}c||(c=new T);var d=c.get(t);if(d)return d;if(c.set(t,a),!h)var g=n?jo(t):ft(t);return mr(g||t,function(f,p){g&&(p=f,f=t[p]),je(a,p,ot(f,e,n,r,p,t,c))}),a}function io(t){return q(t)?Tr(t):{}}function co(t,e,n){var r=e(t);return lt(t)?r:jr(r,n(t))}function ao(t){return K.call(t)}function so(t){if(!q(t)||So(t))return!1;var e=Se(t)||ye(t)?Cr:hr;return e.test(w(t))}function uo(t){if(!xe(t))return Pr(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function lo(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ut(t){var e=new t.constructor(t.byteLength);return new kt(e).set(new kt(t)),e}function fo(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function ho(t,e,n){var r=e?n(Vt(t),!0):Vt(t);return be(r,br,new t.constructor)}function po(t){var e=new t.constructor(t.source,fr.exec(t));return e.lastIndex=t.lastIndex,e}function go(t,e,n){var r=e?n(Wt(t),!0):Wt(t);return be(r,yr,new t.constructor)}function _o(t){return Yt?Object(Yt.call(t)):{}}function bo(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function yo(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function ve(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var c=e[o],a=r?r(n[c],t[c],c,n,t):void 0;je(n,c,a===void 0?t[c]:a)}return n}function mo(t,e){return ve(t,we(t),e)}function jo(t){return co(t,ft,we)}function k(t,e){var n=t.__data__;return Co(e)?n[typeof e=="string"?"string":"hash"]:n.map}function A(t,e){var n=wr(t,e);return so(n)?n:void 0}var we=qt?st(qt,Object):$o,j=ao;(tt&&j(new tt(new ArrayBuffer(1)))!=W||$&&j(new $)!=B||et&&j(et.resolve())!=Gt||nt&&j(new nt)!=V||rt&&j(new rt)!=z)&&(j=function(t){var e=K.call(t),n=e==at?t.constructor:void 0,r=n?w(n):void 0;if(r)switch(r){case Mr:return W;case $r:return B;case Dr:return Gt;case Hr:return V;case Rr:return z}return e});function vo(t){var e=t.length,n=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function wo(t){return typeof t.constructor=="function"&&!xe(t)?io(Sr(t)):{}}function xo(t,e,n,r){var o=t.constructor;switch(e){case ce:return ut(t);case zt:case te:return new o(+t);case W:return fo(t,r);case ae:case se:case ue:case le:case fe:case he:case pe:case de:case ge:return bo(t,r);case B:return ho(t,r,n);case ne:case oe:return new o(t);case re:return po(t);case V:return go(t,r,n);case ie:return _o(t)}}function Oo(t,e){return e=e==null?Qt:e,!!e&&(typeof t=="number"||pr.test(t))&&t>-1&&t%1==0&&t<e}function Co(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function So(t){return!!Ut&&Ut in t}function xe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||U;return t===n}function w(t){if(t!=null){try{return me.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function To(t){return ot(t,!0,!0)}function Oe(t,e){return t===e||t!==t&&e!==e}function Ao(t){return Eo(t)&&y.call(t,"callee")&&(!Ar.call(t,"callee")||K.call(t)==it)}var lt=Array.isArray;function Ce(t){return t!=null&&Po(t.length)&&!Se(t)}function Eo(t){return Mo(t)&&Ce(t)}var Io=Ir||Do;function Se(t){var e=q(t)?K.call(t):"";return e==ct||e==ee}function Po(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qt}function q(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Mo(t){return!!t&&typeof t=="object"}function ft(t){return Ce(t)?ro(t):uo(t)}function $o(){return[]}function Do(){return!1}C.exports=To});var Fo={};Re(Fo,{mixer:()=>No,version:()=>Ro});var Te=I(Pt(),1),Ae=I(Ht(),1),H=I(Lt(),1),pt=I(ht(),1);function Ee(t,e={}){function n(u){let d=[];for(let g=0;g<1<<u;g++){let f=[];for(let p=0;p<u;p++)f.push(g&1<<p?1:0);d.push(f)}return d}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!(0,H.default)(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!(0,H.default)(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),o=(0,pt.default)(e),i=Object.keys(r),c=[],a=[];(0,H.default)(o)&&Object.keys(o).length&&(a=(0,Te.default)(Object.keys(o),Object.keys(r)),a.forEach(u=>(0,Ae.default)(i,u)));let h=n(Object.keys(i).length),l;return h.forEach((u,d)=>{l={},i.forEach((g,f)=>{l[g]=h[d][f]===1}),c.push(l)}),(0,H.default)(o)&&Object.keys(o).length&&c.forEach(u=>{a.forEach(d=>{u[d]=o[d]})}),c}var dt=I(ht(),1);var Ie="4.0.2";var Ro=Ie;function No(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).some(a=>Object.keys(e).includes(a)?!1:(n=a,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(e).length)return[];let r=(0,dt.default)(t),o=(0,dt.default)(e),i={};return Object.keys(e).forEach(a=>{typeof o[a]=="boolean"&&!Object.keys(t).includes(a)&&(i[a]=o[a])}),Ee(i).map(a=>R(R(R({},e),r),a))}return Ne(Fo);})();
|
|
10
|
+
"use strict";var testMixer=(()=>{var Ae=Object.create;var E=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,Ie=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var _t=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))yt.call(e,n)&&_t(t,n,e[n]);if(bt)for(var n of bt(e))Pe.call(e,n)&&_t(t,n,e[n]);return t};var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),De=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},mt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ee(e))!yt.call(t,o)&&o!==n&&E(t,o,{get:()=>e[o],enumerable:!(r=Te(e,o))||r.enumerable});return t};var L=(t,e,n)=>(n=t!=null?Ae(Ie(t)):{},mt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Me=t=>mt(E({},"__esModule",{value:!0}),t);var Pt=Q((So,It)=>{var X="__lodash_hash_undefined__",$e=9007199254740991,He="[object Function]",Le="[object GeneratorFunction]",Re=/[\\^$.*+?()[\]{}|]/g,Ne=/^\[object .+?Constructor\]$/,Fe=typeof global=="object"&&global&&global.Object===Object&&global,Ge=typeof self=="object"&&self&&self.Object===Object&&self,xt=Fe||Ge||Function("return this")();function Be(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ue(t,e){var n=t?t.length:0;return!!n&&ke(t,e,0)>-1}function We(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function Ot(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Ve(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function ke(t,e,n){if(e!==e)return Ve(t,Ke,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Ke(t){return t!==t}function Je(t){return function(e){return t(e)}}function wt(t,e){return t.has(e)}function Qe(t,e){return t==null?void 0:t[e]}function qe(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var Xe=Array.prototype,Ye=Function.prototype,Ct=Object.prototype,q=xt["__core-js_shared__"],vt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),St=Ye.toString,Y=Ct.hasOwnProperty,Ze=Ct.toString,ze=RegExp("^"+St.call(Y).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=Xe.splice,jt=Math.max,en=Math.min,nn=At(xt,"Map"),I=At(Object,"create");function m(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__=I?I(null):{}}function on(t){return this.has(t)&&delete this.__data__[t]}function an(t){var e=this.__data__;if(I){var n=e[t];return n===X?void 0:n}return Y.call(e,t)?e[t]:void 0}function sn(t){var e=this.__data__;return I?e[t]!==void 0:Y.call(e,t)}function cn(t,e){var n=this.__data__;return n[t]=I&&e===void 0?X:e,this}m.prototype.clear=rn;m.prototype.delete=on;m.prototype.get=an;m.prototype.has=sn;m.prototype.set=cn;function x(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function un(){this.__data__=[]}function ln(t){var e=this.__data__,n=N(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():tn.call(e,n,1),!0}function fn(t){var e=this.__data__,n=N(e,t);return n<0?void 0:e[n][1]}function hn(t){return N(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,r=N(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}x.prototype.clear=un;x.prototype.delete=ln;x.prototype.get=fn;x.prototype.has=hn;x.prototype.set=pn;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dn(){this.__data__={hash:new m,map:new(nn||x),string:new m}}function gn(t){return F(this,t).delete(t)}function bn(t){return F(this,t).get(t)}function _n(t){return F(this,t).has(t)}function yn(t,e){return F(this,t).set(t,e),this}O.prototype.clear=dn;O.prototype.delete=gn;O.prototype.get=bn;O.prototype.has=_n;O.prototype.set=yn;function R(t){var e=-1,n=t?t.length:0;for(this.__data__=new O;++e<n;)this.add(t[e])}function mn(t){return this.__data__.set(t,X),this}function wn(t){return this.__data__.has(t)}R.prototype.add=R.prototype.push=mn;R.prototype.has=wn;function N(t,e){for(var n=t.length;n--;)if(En(t[n][0],e))return n;return-1}function vn(t,e,n){for(var r=n?We:Ue,o=t[0].length,i=t.length,s=i,a=Array(i),h=1/0,l=[];s--;){var u=t[s];s&&e&&(u=Ot(u,Je(e))),h=en(u.length,h),a[s]=!n&&(e||o>=120&&u.length>=120)?new R(s&&u):void 0}u=t[0];var d=-1,g=a[0];t:for(;++d<o&&l.length<h;){var f=u[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?wt(g,p):r(l,p,n))){for(s=i;--s;){var gt=a[s];if(!(gt?wt(gt,p):r(t[s],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function jn(t){if(!Et(t)||Sn(t))return!1;var e=Tt(t)||qe(t)?ze:Ne;return e.test(An(t))}function xn(t,e){return e=jt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=jt(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=i,Be(t,this,s)}}function On(t){return Pn(t)?t:[]}function F(t,e){var n=t.__data__;return Cn(e)?n[typeof e=="string"?"string":"hash"]:n.map}function At(t,e){var n=Qe(t,e);return jn(n)?n:void 0}function Cn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Sn(t){return!!vt&&vt in t}function An(t){if(t!=null){try{return St.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Tn=xn(function(t){var e=Ot(t,On);return e.length&&e[0]===t[0]?vn(e):[]});function En(t,e){return t===e||t!==t&&e!==e}function In(t){return t!=null&&Dn(t.length)&&!Tt(t)}function Pn(t){return Mn(t)&&In(t)}function Tt(t){var e=Et(t)?Ze.call(t):"";return e==He||e==Le}function Dn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=$e}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Mn(t){return!!t&&typeof t=="object"}It.exports=Tn});var Ht=Q((Ao,$t)=>{function $n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Hn(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Ln(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Rn(t,e,n){if(e!==e)return Ln(t,Fn,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Nn(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function Fn(t){return t!==t}function Gn(t){return function(e){return t(e)}}var Bn=Array.prototype,Dt=Bn.splice,Mt=Math.max;function Un(t,e,n,r){var o=r?Nn:Rn,i=-1,s=e.length,a=t;for(t===e&&(e=Vn(e)),n&&(a=Hn(t,Gn(n)));++i<s;)for(var h=0,l=e[i],u=n?n(l):l;(h=o(a,u,h,r))>-1;)a!==t&&Dt.call(a,h,1),Dt.call(t,h,1);return t}function Wn(t,e){return e=Mt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=Mt(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=i,$n(t,this,s)}}function Vn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var kn=Wn(Kn);function Kn(t,e){return t&&t.length&&e&&e.length?Un(t,e):t}$t.exports=kn});var ht=Q((D,C)=>{var Jn=200,Jt="__lodash_hash_undefined__",Qt=9007199254740991,it="[object Arguments]",Qn="[object Array]",qt="[object Boolean]",Xt="[object Date]",qn="[object Error]",at="[object Function]",Yt="[object GeneratorFunction]",G="[object Map]",Zt="[object Number]",st="[object Object]",Lt="[object Promise]",zt="[object RegExp]",B="[object Set]",te="[object String]",ee="[object Symbol]",z="[object WeakMap]",ne="[object ArrayBuffer]",U="[object DataView]",re="[object Float32Array]",oe="[object Float64Array]",ie="[object Int8Array]",ae="[object Int16Array]",se="[object Int32Array]",ce="[object Uint8Array]",ue="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",Xn=/[\\^$.*+?()[\]{}|]/g,Yn=/\w*$/,Zn=/^\[object .+?Constructor\]$/,zn=/^(?:0|[1-9]\d*)$/,c={};c[it]=c[Qn]=c[ne]=c[U]=c[qt]=c[Xt]=c[re]=c[oe]=c[ie]=c[ae]=c[se]=c[G]=c[Zt]=c[st]=c[zt]=c[B]=c[te]=c[ee]=c[ce]=c[ue]=c[le]=c[fe]=!0;c[qn]=c[at]=c[z]=!1;var tr=typeof global=="object"&&global&&global.Object===Object&&global,er=typeof self=="object"&&self&&self.Object===Object&&self,b=tr||er||Function("return this")(),he=typeof D=="object"&&D&&!D.nodeType&&D,Rt=he&&typeof C=="object"&&C&&!C.nodeType&&C,nr=Rt&&Rt.exports===he;function rr(t,e){return t.set(e[0],e[1]),t}function or(t,e){return t.add(e),t}function ir(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function ar(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function pe(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function sr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function cr(t,e){return t==null?void 0:t[e]}function de(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function Nt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function ct(t,e){return function(n){return t(e(n))}}function Ft(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var ur=Array.prototype,lr=Function.prototype,W=Object.prototype,Z=b["__core-js_shared__"],Gt=function(){var t=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=lr.toString,y=W.hasOwnProperty,V=W.toString,fr=RegExp("^"+ge.call(y).replace(Xn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=nr?b.Buffer:void 0,Ut=b.Symbol,Wt=b.Uint8Array,hr=ct(Object.getPrototypeOf,Object),pr=Object.create,dr=W.propertyIsEnumerable,gr=ur.splice,Vt=Object.getOwnPropertySymbols,br=Bt?Bt.isBuffer:void 0,_r=ct(Object.keys,Object),tt=T(b,"DataView"),M=T(b,"Map"),et=T(b,"Promise"),nt=T(b,"Set"),rt=T(b,"WeakMap"),$=T(Object,"create"),yr=j(tt),mr=j(M),wr=j(et),vr=j(nt),jr=j(rt),kt=Ut?Ut.prototype:void 0,Kt=kt?kt.valueOf:void 0;function v(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xr(){this.__data__=$?$(null):{}}function Or(t){return this.has(t)&&delete this.__data__[t]}function Cr(t){var e=this.__data__;if($){var n=e[t];return n===Jt?void 0:n}return y.call(e,t)?e[t]:void 0}function Sr(t){var e=this.__data__;return $?e[t]!==void 0:y.call(e,t)}function Ar(t,e){var n=this.__data__;return n[t]=$&&e===void 0?Jt:e,this}v.prototype.clear=xr;v.prototype.delete=Or;v.prototype.get=Cr;v.prototype.has=Sr;v.prototype.set=Ar;function _(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tr(){this.__data__=[]}function Er(t){var e=this.__data__,n=k(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gr.call(e,n,1),!0}function Ir(t){var e=this.__data__,n=k(e,t);return n<0?void 0:e[n][1]}function Pr(t){return k(this.__data__,t)>-1}function Dr(t,e){var n=this.__data__,r=k(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}_.prototype.clear=Tr;_.prototype.delete=Er;_.prototype.get=Ir;_.prototype.has=Pr;_.prototype.set=Dr;function S(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Mr(){this.__data__={hash:new v,map:new(M||_),string:new v}}function $r(t){return K(this,t).delete(t)}function Hr(t){return K(this,t).get(t)}function Lr(t){return K(this,t).has(t)}function Rr(t,e){return K(this,t).set(t,e),this}S.prototype.clear=Mr;S.prototype.delete=$r;S.prototype.get=Hr;S.prototype.has=Lr;S.prototype.set=Rr;function A(t){this.__data__=new _(t)}function Nr(){this.__data__=new _}function Fr(t){return this.__data__.delete(t)}function Gr(t){return this.__data__.get(t)}function Br(t){return this.__data__.has(t)}function Ur(t,e){var n=this.__data__;if(n instanceof _){var r=n.__data__;if(!M||r.length<Jn-1)return r.push([t,e]),this;n=this.__data__=new S(r)}return n.set(t,e),this}A.prototype.clear=Nr;A.prototype.delete=Fr;A.prototype.get=Gr;A.prototype.has=Br;A.prototype.set=Ur;function Wr(t,e){var n=lt(t)||po(t)?sr(t.length,String):[],r=n.length,o=!!r;for(var i in t)(e||y.call(t,i))&&!(o&&(i=="length"||uo(i,r)))&&n.push(i);return n}function be(t,e,n){var r=t[e];(!(y.call(t,e)&&we(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function k(t,e){for(var n=t.length;n--;)if(we(t[n][0],e))return n;return-1}function Vr(t,e){return t&&_e(e,ft(e),t)}function ot(t,e,n,r,o,i,s){var a;if(r&&(a=i?r(t,o,i,s):r(t)),a!==void 0)return a;if(!J(t))return t;var h=lt(t);if(h){if(a=ao(t),!e)return ro(t,a)}else{var l=w(t),u=l==at||l==Yt;if(bo(t))return Xr(t,e);if(l==st||l==it||u&&!i){if(de(t))return i?t:{};if(a=so(u?{}:t),!e)return oo(t,Vr(a,t))}else{if(!c[l])return i?t:{};a=co(t,l,ot,e)}}s||(s=new A);var d=s.get(t);if(d)return d;if(s.set(t,a),!h)var g=n?io(t):ft(t);return ir(g||t,function(f,p){g&&(p=f,f=t[p]),be(a,p,ot(f,e,n,r,p,t,s))}),a}function kr(t){return J(t)?pr(t):{}}function Kr(t,e,n){var r=e(t);return lt(t)?r:ar(r,n(t))}function Jr(t){return V.call(t)}function Qr(t){if(!J(t)||fo(t))return!1;var e=je(t)||de(t)?fr:Zn;return e.test(j(t))}function qr(t){if(!me(t))return _r(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function Xr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ut(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Yr(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Zr(t,e,n){var r=e?n(Nt(t),!0):Nt(t);return pe(r,rr,new t.constructor)}function zr(t){var e=new t.constructor(t.source,Yn.exec(t));return e.lastIndex=t.lastIndex,e}function to(t,e,n){var r=e?n(Ft(t),!0):Ft(t);return pe(r,or,new t.constructor)}function eo(t){return Kt?Object(Kt.call(t)):{}}function no(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ro(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function _e(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=r?r(n[s],t[s],s,n,t):void 0;be(n,s,a===void 0?t[s]:a)}return n}function oo(t,e){return _e(t,ye(t),e)}function io(t){return Kr(t,ft,ye)}function K(t,e){var n=t.__data__;return lo(e)?n[typeof e=="string"?"string":"hash"]:n.map}function T(t,e){var n=cr(t,e);return Qr(n)?n:void 0}var ye=Vt?ct(Vt,Object):mo,w=Jr;(tt&&w(new tt(new ArrayBuffer(1)))!=U||M&&w(new M)!=G||et&&w(et.resolve())!=Lt||nt&&w(new nt)!=B||rt&&w(new rt)!=z)&&(w=function(t){var e=V.call(t),n=e==st?t.constructor:void 0,r=n?j(n):void 0;if(r)switch(r){case yr:return U;case mr:return G;case wr:return Lt;case vr:return B;case jr:return z}return e});function ao(t){var e=t.length,n=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function so(t){return typeof t.constructor=="function"&&!me(t)?kr(hr(t)):{}}function co(t,e,n,r){var o=t.constructor;switch(e){case ne:return ut(t);case qt:case Xt:return new o(+t);case U:return Yr(t,r);case re:case oe:case ie:case ae:case se:case ce:case ue:case le:case fe:return no(t,r);case G:return Zr(t,r,n);case Zt:case te:return new o(t);case zt:return zr(t);case B:return to(t,r,n);case ee:return eo(t)}}function uo(t,e){return e=e==null?Qt:e,!!e&&(typeof t=="number"||zn.test(t))&&t>-1&&t%1==0&&t<e}function lo(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fo(t){return!!Gt&&Gt in t}function me(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||W;return t===n}function j(t){if(t!=null){try{return ge.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ho(t){return ot(t,!0,!0)}function we(t,e){return t===e||t!==t&&e!==e}function po(t){return go(t)&&y.call(t,"callee")&&(!dr.call(t,"callee")||V.call(t)==it)}var lt=Array.isArray;function ve(t){return t!=null&&_o(t.length)&&!je(t)}function go(t){return yo(t)&&ve(t)}var bo=br||wo;function je(t){var e=J(t)?V.call(t):"";return e==at||e==Yt}function _o(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qt}function J(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function yo(t){return!!t&&typeof t=="object"}function ft(t){return ve(t)?Wr(t):qr(t)}function mo(){return[]}function wo(){return!1}C.exports=ho});var Oo={};De(Oo,{mixer:()=>xo,version:()=>jo});var xe=L(Pt(),1),Oe=L(Ht(),1);function P(t){if(t==null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null?!1:!(Symbol.iterator in t)&&!(Symbol.toStringTag in t)}var pt=L(ht(),1);function Ce(t,e={}){function n(u){let d=[];for(let g=0;g<1<<u;g++){let f=[];for(let p=0;p<u;p++)f.push(g&1<<p?1:0);d.push(f)}return d}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!P(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!P(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),o=(0,pt.default)(e),i=Object.keys(r),s=[],a=[];P(o)&&Object.keys(o).length&&(a=(0,xe.default)(Object.keys(o),Object.keys(r)),a.forEach(u=>(0,Oe.default)(i,u)));let h=n(Object.keys(i).length),l;return h.forEach((u,d)=>{l={},i.forEach((g,f)=>{l[g]=h[d][f]===1}),s.push(l)}),P(o)&&Object.keys(o).length&&s.forEach(u=>{a.forEach(d=>{u[d]=o[d]})}),s}var dt=L(ht(),1);var Se="4.1.0";var jo=Se;function xo(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).filter(a=>typeof t[a]=="boolean").some(a=>Object.keys(e).includes(a)?!1:(n=a,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(e).length)return[];let r=(0,dt.default)(t),o=(0,dt.default)(e),i={};return Object.keys(e).forEach(a=>{typeof o[a]=="boolean"&&!Object.keys(t).includes(a)&&(i[a]=o[a])}),Ce(i).map(a=>H(H(H({},e),r),a))}return Me(Oo);})();
|
|
11
|
+
/**
|
|
12
|
+
* @name codsen-utils
|
|
13
|
+
* @fileoverview Various utility functions
|
|
14
|
+
* @version 1.0.1
|
|
15
|
+
* @author Roy Revelt, Codsen Ltd
|
|
16
|
+
* @license MIT
|
|
17
|
+
* {@link https://codsen.com/os/codsen-utils/}
|
|
18
|
+
*/
|
|
11
19
|
/**
|
|
12
20
|
* @name object-boolean-combinations
|
|
13
21
|
* @fileoverview Consumes a defaults object with booleans, generates all possible variations of it
|
|
14
|
-
* @version 6.0.
|
|
22
|
+
* @version 6.0.3
|
|
15
23
|
* @author Roy Revelt, Codsen Ltd
|
|
16
24
|
* @license MIT
|
|
17
25
|
* {@link https://codsen.com/os/object-boolean-combinations/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-mixer",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"lodash.clonedeep": "^4.5.0",
|
|
72
|
-
"object-boolean-combinations": "^6.0.
|
|
72
|
+
"object-boolean-combinations": "^6.0.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/lodash.clonedeep": "^4.5.7"
|
package/types/index.d.ts
CHANGED
|
File without changes
|