Comparing version 4.2.18 to 4.3.0
@@ -80,2 +80,3 @@ var deepdash = (function () { | ||
) { | ||
if (options.break) { return; } | ||
var currentObj = { | ||
@@ -126,2 +127,6 @@ value: value, | ||
isLeaf: isLeaf, | ||
"break": function () { | ||
options.break = true; | ||
return false; | ||
}, | ||
}; | ||
@@ -137,24 +142,25 @@ if (options.childrenPath !== undefined) { | ||
} | ||
function forChildren(children, cp) { | ||
if (children && _.isObject(children)) { | ||
_.forOwn(children, function(childValue, childKey) { | ||
var childPath = (path || []).concat( (cp || []), [childKey]); | ||
if (!options.break && res !== false && !isCircular && _.isObject(value)) { | ||
if (options.childrenPath !== undefined) { | ||
function forChildren(children, cp) { | ||
if (children && _.isObject(children)) { | ||
_.forOwn(children, function(childValue, childKey) { | ||
var childPath = (path || []).concat( (cp || []), [childKey]); | ||
iterate( | ||
childValue, | ||
callback, | ||
options, | ||
childKey, | ||
childPath, | ||
depth + 1, | ||
currentObj, | ||
currentParents, | ||
obj, | ||
cp | ||
); | ||
}); | ||
} | ||
} | ||
if (res !== false && !isCircular && _.isObject(value)) { | ||
if (options.childrenPath !== undefined) { | ||
iterate( | ||
childValue, | ||
callback, | ||
options, | ||
childKey, | ||
childPath, | ||
depth + 1, | ||
currentObj, | ||
currentParents, | ||
obj, | ||
cp | ||
); | ||
}); | ||
} | ||
} | ||
if (!depth && options.rootIsChildren) { | ||
@@ -525,2 +531,3 @@ forChildren(value, undefined); | ||
function(value, key, parent, context) { | ||
delete context.break; | ||
var curPath = pathToString(context.path); | ||
@@ -633,3 +640,2 @@ if (!context.afterIterate) { | ||
} | ||
// console.log('←', replies); | ||
@@ -644,20 +650,2 @@ return; | ||
} | ||
// else { | ||
// // console.log(replies); | ||
// // console.log(res); | ||
// _.each(replies, (reply, path) => { | ||
// if (reply.empty) { | ||
// if (!reply.keepIfEmpty) { | ||
// if (exists(res, path)) { | ||
// console.log('del empty', path); | ||
// } | ||
// // console.log('remove ' + path); | ||
// _.unset(res, path); | ||
// } | ||
// // else if (!_.has(res, path)) { | ||
// // console.log('miss empty', path); | ||
// // } | ||
// } | ||
// }); | ||
// } | ||
_.each(foundCircular, function(c) { | ||
@@ -831,2 +819,3 @@ var cv; | ||
function(value, key, parent, context) { | ||
delete context.break; | ||
if (!accumulatorInited) { | ||
@@ -860,2 +849,3 @@ accumulator = value; | ||
function(value, key, parent, context) { | ||
delete context.break; | ||
var r = iteratee(value, key, parent, context); | ||
@@ -862,0 +852,0 @@ if (key === undefined) { |
@@ -1,2 +0,2 @@ | ||
var deepdash=function(){"use strict";function e(e){return function(n,r,t){if(!e[n])if(e.mixin){var i={};i[n]=r,void 0===t&&(t=!0),e.mixin(i,{chain:t})}else e[n]=r;return e}}var n=/^\d+$/,r=/^[a-zA-Z_$]+([\w_$]*)$/;function t(e){return function(t){return e.isString(t)?t:e.isArray(t)?e.reduce(t,function(e,t){return n.test(t)?e+"["+t+"]":r.test(t)?e+(e?".":"")+t:e+'["'+t.toString().replace(/"/g,'\\"')+'"]'},""):void 0}}function i(e){var n=function(e){var n=t(e),r=function(e){return function(n,r){return e.some(r,function(r){var t=e.get(n,r);return!e.isEmpty(t)})}}(e),i=e.each||e.forArray;return function t(a,o,c,l,u,h,d,s,p,f){var v,y={value:a,key:l,path:"array"==c.pathFormat?u:n(u),parent:d},C=s.concat([y]),m=void 0,k=void 0,P=void 0;c.checkCircular&&(e.isObject(a)&&!e.isEmpty(a)?P=s[k=e.findIndex(s,function(e){return e.value===a})]||null:(k=-1,P=null),m=-1!==k);var g=!e.isObject(a)||e.isEmpty(a)||m||void 0!==c.childrenPath&&!r(a,c.childrenPath),O=(h||c.includeRoot)&&(!c.leavesOnly||g);if(O){var D={path:"array"==c.pathFormat?u:n(u),parent:d,parents:s,obj:p,depth:h,isCircular:m,circularParent:P,circularParentIndex:k,isLeaf:g};void 0!==c.childrenPath&&(y.childrenPath="array"==c.pathFormat?f:n(f),D.childrenPath=y.childrenPath),v=o(a,l,d&&d.value,D)}function I(n,r){n&&e.isObject(n)&&e.forOwn(n,function(e,n){var i=(u||[]).concat(r||[],[n]);t(e,o,c,n,i,h+1,y,C,p,r)})}!1!==v&&!m&&e.isObject(a)&&(void 0!==c.childrenPath?!h&&c.rootIsChildren?I(a,void 0):i(c.childrenPath,function(n){I(e.get(a,n),n)}):e.forOwn(a,function(n,r){if(!e.isArray(a)||void 0!==n||r in a){var i=(u||[]).concat([r]);t(n,o,c,r,i,h+1,y,C,p)}})),c.callbackAfterIterate&&O&&(D.afterIterate=!0,o(a,l,d&&d.value,D))}}(e);return function(r,t,i){if(void 0===t&&(t=e.identity),void 0!==(i=e.merge({includeRoot:!e.isArray(r),pathFormat:"string",checkCircular:!1,leavesOnly:!1},i||{})).childrenPath){if(i.includeRoot||void 0!==i.rootIsChildren||(i.rootIsChildren=e.isArray(r)),!e.isString(i.childrenPath)&&!e.isArray(i.childrenPath))throw Error("childrenPath can be string or array");e.isString(i.childrenPath)&&(i.childrenPath=[i.childrenPath]);for(var a=i.childrenPath.length-1;a>=0;a--)i.childrenPath[a]=e.toPath(i.childrenPath[a])}return n(r,t,i,void 0,void 0,0,void 0,[],r),r}}function a(n){return e(n)("index",function(e){var n=i(e);return function(r,t){(t=e.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!t||void 0===t.childrenPath},t||{}))&&void 0!==t.leafsOnly&&(t.leavesOnly=t.leafsOnly);var i={pathFormat:"string",checkCircular:t.checkCircular,includeRoot:t.includeRoot,childrenPath:t.childrenPath,rootIsChildren:t.rootIsChildren,leavesOnly:t.leavesOnly},a={};return n(r,function(e,n,r,i){i.isCircular&&!t.includeCircularPath||void 0!==i.path&&(a[i.path]=e)},i),a}}(n))}function o(e){var n=i(e);return function(r,t){t&&void 0!==t.leafsOnly&&(t.leavesOnly=t.leafsOnly);var i={pathFormat:(t=e.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!t||void 0===t.childrenPath,pathFormat:"string"},t||{})).pathFormat,checkCircular:t.checkCircular,includeRoot:t.includeRoot,childrenPath:t.childrenPath,rootIsChildren:t.rootIsChildren,leavesOnly:t.leavesOnly},a=[];return n(r,function(e,n,r,i){i.isCircular&&!t.includeCircularPath||void 0!==i.path&&a.push(i.path)},i),a}}function c(e){return function(n,r){var t=(r=e.isArray(r)?e.clone(r):e.toPath(r)).pop(),i=r.length?e.get(n,r):n;return void 0!==i&&t in i}}function l(e){return function(e){for(var n=[],r=0;r<e.length;r++)r in e||n.push(r);for(var t=n.length;t--;)e.splice(n[t],1);return e}}function u(e){var n=i(e),r=l(),t=e.each||e.forArray;return function(i,a){var o={checkCircular:(a=e.merge({checkCircular:!1},a||{})).checkCircular},c=[];return n(i,function(n,r,t,i){!i.isCircular&&e.isArray(n)&&c.push(n)},o),e.isArray(i)&&c.push(i),t(c,r),i}}function h(e){return function(n,r){return void 0===r?n:e.get(n,r)}}function d(e){var n=i(e),r=t(e),a=h(e),o=u(e),l=c(e);return function(t,i,c){i=e.iteratee(i),c?void 0!==(c=e.cloneDeep(c)).leafsOnly&&(c.leavesOnly=c.leafsOnly):c={},c.onTrue||(c.onTrue={}),c.onFalse||(c.onFalse={}),c.onUndefined||(c.onUndefined={}),void 0!==c.childrenPath&&(void 0===c.onTrue.skipChildren&&(c.onTrue.skipChildren=!1),void 0===c.onUndefined.skipChildren&&(c.onUndefined.skipChildren=!1),void 0===c.onFalse.skipChildren&&(c.onFalse.skipChildren=!1),void 0===c.onTrue.cloneDeep&&(c.onTrue.cloneDeep=!0),void 0===c.onUndefined.cloneDeep&&(c.onUndefined.cloneDeep=!0),void 0===c.onFalse.cloneDeep&&(c.onFalse.cloneDeep=!0));var u,h={pathFormat:(c=e.merge({checkCircular:!1,keepCircular:!0,leavesOnly:void 0===c.childrenPath,condense:!0,cloneDeep:e.cloneDeep,pathFormat:"string",onTrue:{skipChildren:!0,cloneDeep:!0,keepIfEmpty:!0},onUndefined:{skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1},onFalse:{skipChildren:!0,cloneDeep:!1,keepIfEmpty:!1}},c)).pathFormat,checkCircular:c.checkCircular,childrenPath:c.childrenPath,includeRoot:c.includeRoot,callbackAfterIterate:!0,leavesOnly:!1},d=e.isArray(t)?[]:e.isObject(t)?{}:null,s={},p=[];return n(t,function(n,t,a,o){var l=r(o.path);if(!o.afterIterate){if(o.isCircular)return e.unset(d,o.path),c.keepCircular&&p.push([o.path,o.circularParent.path]),!1;var h=!c.leavesOnly||o.isLeaf?i(n,t,a,o):void 0;return e.isObject(h)||(h=void 0===h?e.clone(c.onUndefined):h?e.clone(c.onTrue):e.clone(c.onFalse)),void 0===h.empty&&(h.empty=!0),void 0!==l?(s[l]=h,u||(u={skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1,empty:h.empty})):u=h,!h.keepIfEmpty&&h.skipChildren||(c.cloneDeep&&h.cloneDeep?void 0!==o.path?e.set(d,o.path,c.cloneDeep(n)):d=c.cloneDeep(n):void 0!==o.path?e.set(d,o.path,e.isArray(n)?[]:e.isPlainObject(n)?{}:n):d=e.isArray(n)?[]:e.isPlainObject(n)?{}:n),!h.skipChildren}!o.afterIterate||o.isCircular||(void 0===l&&u.empty&&!u.keepIfEmpty?d=null:void 0!==l&&s[l].empty&&!s[l].keepIfEmpty?e.unset(d,o.path):(e.eachRight(o.parents,function(e){var n=r(e.path);if(void 0===n||!s[n].empty)return!1;s[n].empty=!1}),u.empty=!1))},h),u&&u.empty&&!u.keepIfEmpty&&(d=null),e.each(p,function(n){var r;(void 0===n[1]||l(d,n[1]))&&(r=e.has(c,"replaceCircularBy")?c.replaceCircularBy:a(d,n[1]),e.set(d,n[0],r))}),c.condense&&(d=o(d,{checkCircular:c.checkCircular})),!e.isArray(d)||d.length||h.includeRoot?d:null}}function s(e){var n=t(e);return function(r,t){var i,a;e.isString(r)?i=r:a=r,t=e.isArray(t)?e.cloneDeep(t):[t];for(var o=0;o<t.length;o++)if(e.isString(t[o])&&(t[o]=e.toPath(t[o])),e.isArray(t[o])){if(void 0===a&&(a=e.toPath(i)),a.length>=t[o].length&&e.isEqual(e.takeRight(a,t[o].length),t[o]))return t[o]}else{if(!(t[o]instanceof RegExp))throw new Error("To match path use only string/regex or array of them.");if(void 0===i&&(i=n(r)),t[o].test(i))return t[o]}return!1}}function p(e){var n=s(e),r=d(e);return function(t,i,a){var o=!(a=e.merge({invert:!1},a||{})).invert;return(a=e.merge({onMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:!o},onNotMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:o}},a)).leavesOnly=!1,a.childrenPath=void 0,a.includeRoot=void 0,a.pathFormat="array",a.onTrue=a.invert?a.onMatch:a.onNotMatch,a.onFalse=a.invert?a.onNotMatch:a.onMatch,r(t,function(e,r,t,o){return!1!==n(o.path,i)?a.invert:!a.invert},a)}}function f(n){return e(n)("pickDeep",function(e){var n=p(e);return function(r,t,i){return(i=e.merge({invert:!1},i||{})).invert=!0,n(r,t,i)}}(n))}function v(n){return e(n)("reduceDeep",function(e){var n=i(e);return function(r,t,i,a){t=e.iteratee(t);var o=void 0!==i;return n(r,function(e,n,r,a){o?i=t(i,e,n,r,a):(i=e,o=!0)},a),i}}(n))}function y(n){return e(n)("mapDeep",function(e){var n=i(e);return function(r,t,i){t=e.iteratee(t);var a=e.isArray(r)?[]:e.isObject(r)?{}:e.clone(r);return n(r,function(n,r,i,o){var c=t(n,r,i,o);void 0===r?a=c:e.set(a,o.path,c)},i),a}}(n))}return function(n){return function(n){e(n)("pathToString",t(n),!1)}(n),function(n){e(n)("eachDeep",i(n))}(n),function(n){e(n)("forEachDeep",i(n))}(n),a(n),function(n){e(n)("paths",o(n))}(n),function(n){e(n)("keysDeep",o(n))}(n),function(n){e(n)("exists",c(n),!1)}(n),function(n){e(n)("condense",l())}(n),function(n){e(n)("condenseDeep",u(n))}(n),function(n){e(n)("filterDeep",d(n))}(n),function(n){e(n)("omitDeep",p(n))}(n),f(n),function(n){e(n)("obtain",h(n),!0)}(n),function(n){e(n)("pathMatches",s(n),!1)}(n),v(n),y(n),n}}(); | ||
var deepdash=function(){"use strict";function e(e){return function(n,r,t){if(!e[n])if(e.mixin){var i={};i[n]=r,void 0===t&&(t=!0),e.mixin(i,{chain:t})}else e[n]=r;return e}}var n=/^\d+$/,r=/^[a-zA-Z_$]+([\w_$]*)$/;function t(e){return function(t){return e.isString(t)?t:e.isArray(t)?e.reduce(t,function(e,t){return n.test(t)?e+"["+t+"]":r.test(t)?e+(e?".":"")+t:e+'["'+t.toString().replace(/"/g,'\\"')+'"]'},""):void 0}}function i(e){var n=function(e){var n=t(e),r=function(e){return function(n,r){return e.some(r,function(r){var t=e.get(n,r);return!e.isEmpty(t)})}}(e),i=e.each||e.forArray;return function t(a,o,c,l,u,h,d,s,p,f){if(!c.break){var v,y={value:a,key:l,path:"array"==c.pathFormat?u:n(u),parent:d},k=s.concat([y]),C=void 0,m=void 0,P=void 0;c.checkCircular&&(e.isObject(a)&&!e.isEmpty(a)?P=s[m=e.findIndex(s,function(e){return e.value===a})]||null:(m=-1,P=null),C=-1!==m);var g=!e.isObject(a)||e.isEmpty(a)||C||void 0!==c.childrenPath&&!r(a,c.childrenPath),O=(h||c.includeRoot)&&(!c.leavesOnly||g);if(O){var D={path:"array"==c.pathFormat?u:n(u),parent:d,parents:s,obj:p,depth:h,isCircular:C,circularParent:P,circularParentIndex:m,isLeaf:g,break:function(){return c.break=!0,!1}};void 0!==c.childrenPath&&(y.childrenPath="array"==c.pathFormat?f:n(f),D.childrenPath=y.childrenPath),v=o(a,l,d&&d.value,D)}if(!c.break&&!1!==v&&!C&&e.isObject(a))if(void 0!==c.childrenPath){function I(n,r){n&&e.isObject(n)&&e.forOwn(n,function(e,n){var i=(u||[]).concat(r||[],[n]);t(e,o,c,n,i,h+1,y,k,p,r)})}!h&&c.rootIsChildren?I(a,void 0):i(c.childrenPath,function(n){I(e.get(a,n),n)})}else e.forOwn(a,function(n,r){if(!e.isArray(a)||void 0!==n||r in a){var i=(u||[]).concat([r]);t(n,o,c,r,i,h+1,y,k,p)}});c.callbackAfterIterate&&O&&(D.afterIterate=!0,o(a,l,d&&d.value,D))}}}(e);return function(r,t,i){if(void 0===t&&(t=e.identity),void 0!==(i=e.merge({includeRoot:!e.isArray(r),pathFormat:"string",checkCircular:!1,leavesOnly:!1},i||{})).childrenPath){if(i.includeRoot||void 0!==i.rootIsChildren||(i.rootIsChildren=e.isArray(r)),!e.isString(i.childrenPath)&&!e.isArray(i.childrenPath))throw Error("childrenPath can be string or array");e.isString(i.childrenPath)&&(i.childrenPath=[i.childrenPath]);for(var a=i.childrenPath.length-1;a>=0;a--)i.childrenPath[a]=e.toPath(i.childrenPath[a])}return n(r,t,i,void 0,void 0,0,void 0,[],r),r}}function a(n){return e(n)("index",function(e){var n=i(e);return function(r,t){(t=e.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!t||void 0===t.childrenPath},t||{}))&&void 0!==t.leafsOnly&&(t.leavesOnly=t.leafsOnly);var i={pathFormat:"string",checkCircular:t.checkCircular,includeRoot:t.includeRoot,childrenPath:t.childrenPath,rootIsChildren:t.rootIsChildren,leavesOnly:t.leavesOnly},a={};return n(r,function(e,n,r,i){i.isCircular&&!t.includeCircularPath||void 0!==i.path&&(a[i.path]=e)},i),a}}(n))}function o(e){var n=i(e);return function(r,t){t&&void 0!==t.leafsOnly&&(t.leavesOnly=t.leafsOnly);var i={pathFormat:(t=e.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!t||void 0===t.childrenPath,pathFormat:"string"},t||{})).pathFormat,checkCircular:t.checkCircular,includeRoot:t.includeRoot,childrenPath:t.childrenPath,rootIsChildren:t.rootIsChildren,leavesOnly:t.leavesOnly},a=[];return n(r,function(e,n,r,i){i.isCircular&&!t.includeCircularPath||void 0!==i.path&&a.push(i.path)},i),a}}function c(e){return function(n,r){var t=(r=e.isArray(r)?e.clone(r):e.toPath(r)).pop(),i=r.length?e.get(n,r):n;return void 0!==i&&t in i}}function l(e){return function(e){for(var n=[],r=0;r<e.length;r++)r in e||n.push(r);for(var t=n.length;t--;)e.splice(n[t],1);return e}}function u(e){var n=i(e),r=l(),t=e.each||e.forArray;return function(i,a){var o={checkCircular:(a=e.merge({checkCircular:!1},a||{})).checkCircular},c=[];return n(i,function(n,r,t,i){!i.isCircular&&e.isArray(n)&&c.push(n)},o),e.isArray(i)&&c.push(i),t(c,r),i}}function h(e){return function(n,r){return void 0===r?n:e.get(n,r)}}function d(e){var n=i(e),r=t(e),a=h(e),o=u(e),l=c(e);return function(t,i,c){i=e.iteratee(i),c?void 0!==(c=e.cloneDeep(c)).leafsOnly&&(c.leavesOnly=c.leafsOnly):c={},c.onTrue||(c.onTrue={}),c.onFalse||(c.onFalse={}),c.onUndefined||(c.onUndefined={}),void 0!==c.childrenPath&&(void 0===c.onTrue.skipChildren&&(c.onTrue.skipChildren=!1),void 0===c.onUndefined.skipChildren&&(c.onUndefined.skipChildren=!1),void 0===c.onFalse.skipChildren&&(c.onFalse.skipChildren=!1),void 0===c.onTrue.cloneDeep&&(c.onTrue.cloneDeep=!0),void 0===c.onUndefined.cloneDeep&&(c.onUndefined.cloneDeep=!0),void 0===c.onFalse.cloneDeep&&(c.onFalse.cloneDeep=!0));var u,h={pathFormat:(c=e.merge({checkCircular:!1,keepCircular:!0,leavesOnly:void 0===c.childrenPath,condense:!0,cloneDeep:e.cloneDeep,pathFormat:"string",onTrue:{skipChildren:!0,cloneDeep:!0,keepIfEmpty:!0},onUndefined:{skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1},onFalse:{skipChildren:!0,cloneDeep:!1,keepIfEmpty:!1}},c)).pathFormat,checkCircular:c.checkCircular,childrenPath:c.childrenPath,includeRoot:c.includeRoot,callbackAfterIterate:!0,leavesOnly:!1},d=e.isArray(t)?[]:e.isObject(t)?{}:null,s={},p=[];return n(t,function(n,t,a,o){delete o.break;var l=r(o.path);if(!o.afterIterate){if(o.isCircular)return e.unset(d,o.path),c.keepCircular&&p.push([o.path,o.circularParent.path]),!1;var h=!c.leavesOnly||o.isLeaf?i(n,t,a,o):void 0;return e.isObject(h)||(h=void 0===h?e.clone(c.onUndefined):h?e.clone(c.onTrue):e.clone(c.onFalse)),void 0===h.empty&&(h.empty=!0),void 0!==l?(s[l]=h,u||(u={skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1,empty:h.empty})):u=h,!h.keepIfEmpty&&h.skipChildren||(c.cloneDeep&&h.cloneDeep?void 0!==o.path?e.set(d,o.path,c.cloneDeep(n)):d=c.cloneDeep(n):void 0!==o.path?e.set(d,o.path,e.isArray(n)?[]:e.isPlainObject(n)?{}:n):d=e.isArray(n)?[]:e.isPlainObject(n)?{}:n),!h.skipChildren}!o.afterIterate||o.isCircular||(void 0===l&&u.empty&&!u.keepIfEmpty?d=null:void 0!==l&&s[l].empty&&!s[l].keepIfEmpty?e.unset(d,o.path):(e.eachRight(o.parents,function(e){var n=r(e.path);if(void 0===n||!s[n].empty)return!1;s[n].empty=!1}),u.empty=!1))},h),u&&u.empty&&!u.keepIfEmpty&&(d=null),e.each(p,function(n){var r;(void 0===n[1]||l(d,n[1]))&&(r=e.has(c,"replaceCircularBy")?c.replaceCircularBy:a(d,n[1]),e.set(d,n[0],r))}),c.condense&&(d=o(d,{checkCircular:c.checkCircular})),!e.isArray(d)||d.length||h.includeRoot?d:null}}function s(e){var n=t(e);return function(r,t){var i,a;e.isString(r)?i=r:a=r,t=e.isArray(t)?e.cloneDeep(t):[t];for(var o=0;o<t.length;o++)if(e.isString(t[o])&&(t[o]=e.toPath(t[o])),e.isArray(t[o])){if(void 0===a&&(a=e.toPath(i)),a.length>=t[o].length&&e.isEqual(e.takeRight(a,t[o].length),t[o]))return t[o]}else{if(!(t[o]instanceof RegExp))throw new Error("To match path use only string/regex or array of them.");if(void 0===i&&(i=n(r)),t[o].test(i))return t[o]}return!1}}function p(e){var n=s(e),r=d(e);return function(t,i,a){var o=!(a=e.merge({invert:!1},a||{})).invert;return(a=e.merge({onMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:!o},onNotMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:o}},a)).leavesOnly=!1,a.childrenPath=void 0,a.includeRoot=void 0,a.pathFormat="array",a.onTrue=a.invert?a.onMatch:a.onNotMatch,a.onFalse=a.invert?a.onNotMatch:a.onMatch,r(t,function(e,r,t,o){return!1!==n(o.path,i)?a.invert:!a.invert},a)}}function f(n){return e(n)("pickDeep",function(e){var n=p(e);return function(r,t,i){return(i=e.merge({invert:!1},i||{})).invert=!0,n(r,t,i)}}(n))}function v(n){return e(n)("reduceDeep",function(e){var n=i(e);return function(r,t,i,a){t=e.iteratee(t);var o=void 0!==i;return n(r,function(e,n,r,a){delete a.break,o?i=t(i,e,n,r,a):(i=e,o=!0)},a),i}}(n))}function y(n){return e(n)("mapDeep",function(e){var n=i(e);return function(r,t,i){t=e.iteratee(t);var a=e.isArray(r)?[]:e.isObject(r)?{}:e.clone(r);return n(r,function(n,r,i,o){delete o.break;var c=t(n,r,i,o);void 0===r?a=c:e.set(a,o.path,c)},i),a}}(n))}return function(n){return function(n){e(n)("pathToString",t(n),!1)}(n),function(n){e(n)("eachDeep",i(n))}(n),function(n){e(n)("forEachDeep",i(n))}(n),a(n),function(n){e(n)("paths",o(n))}(n),function(n){e(n)("keysDeep",o(n))}(n),function(n){e(n)("exists",c(n),!1)}(n),function(n){e(n)("condense",l())}(n),function(n){e(n)("condenseDeep",u(n))}(n),function(n){e(n)("filterDeep",d(n))}(n),function(n){e(n)("omitDeep",p(n))}(n),f(n),function(n){e(n)("obtain",h(n),!0)}(n),function(n){e(n)("pathMatches",s(n),!1)}(n),v(n),y(n),n}}(); | ||
//# sourceMappingURL=deepdash.min.js.map |
@@ -1,2 +0,2 @@ | ||
var deepdash=function(t){"use strict";var r="object"==typeof global&&global&&global.Object===Object&&global,e="object"==typeof self&&self&&self.Object===Object&&self,n=r||e||Function("return this")(),o=n.Symbol,i=Object.prototype,a=i.hasOwnProperty,c=i.toString,u=o?o.toStringTag:void 0;var l=Object.prototype.toString;var f="[object Null]",s="[object Undefined]",v=o?o.toStringTag:void 0;function p(t){return null==t?void 0===t?s:f:v&&v in Object(t)?function(t){var r=a.call(t,u),e=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(r?t[u]=e:delete t[u]),o}(t):function(t){return l.call(t)}(t)}var h=Array.isArray;function d(t){return null!=t&&"object"==typeof t}var y="[object String]";function b(t){return"string"==typeof t||!h(t)&&d(t)&&p(t)==y}var g=Array.isArray;function j(t,r,e,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(e=t[++o]);++o<i;)e=r(e,t[o],o,t);return e}function _(t){return function(r,e,n){for(var o=-1,i=Object(r),a=n(r),c=a.length;c--;){var u=a[t?c:++o];if(!1===e(i[u],u,i))break}return r}}var O=_();var m="[object Arguments]";function A(t){return d(t)&&p(t)==m}var w=Object.prototype,P=w.hasOwnProperty,k=w.propertyIsEnumerable,C=A(function(){return arguments}())?A:function(t){return d(t)&&P.call(t,"callee")&&!k.call(t,"callee")};var D="object"==typeof t&&t&&!t.nodeType&&t,S=D&&"object"==typeof module&&module&&!module.nodeType&&module,I=S&&S.exports===D?n.Buffer:void 0,E=(I?I.isBuffer:void 0)||function(){return!1},F=9007199254740991,x=/^(?:0|[1-9]\d*)$/;function z(t,r){var e=typeof t;return!!(r=null==r?F:r)&&("number"==e||"symbol"!=e&&x.test(t))&&t>-1&&t%1==0&&t<r}var M=9007199254740991;function U(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=M}var R={};function T(t){return function(r){return t(r)}}R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Arguments]"]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object Boolean]"]=R["[object DataView]"]=R["[object Date]"]=R["[object Error]"]=R["[object Function]"]=R["[object Map]"]=R["[object Number]"]=R["[object Object]"]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object WeakMap]"]=!1;var $="object"==typeof t&&t&&!t.nodeType&&t,B=$&&"object"==typeof module&&module&&!module.nodeType&&module,N=B&&B.exports===$&&r.process,L=function(){try{var t=B&&B.require&&B.require("util").types;return t||N&&N.binding&&N.binding("util")}catch(t){}}(),V=L&&L.isTypedArray,W=V?T(V):function(t){return d(t)&&U(t.length)&&!!R[p(t)]},q=Object.prototype.hasOwnProperty;function G(t,r){var e=h(t),n=!e&&C(t),o=!e&&!n&&E(t),i=!e&&!n&&!o&&W(t),a=e||n||o||i,c=a?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],u=c.length;for(var l in t)!r&&!q.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||z(l,u))||c.push(l);return c}var Z=Object.prototype;function H(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Z)}function J(t,r){return function(e){return t(r(e))}}var K=J(Object.keys,Object),Q=Object.prototype.hasOwnProperty;function X(t){if(!H(t))return K(t);var r=[];for(var e in Object(t))Q.call(t,e)&&"constructor"!=e&&r.push(e);return r}function Y(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}var tt="[object AsyncFunction]",rt="[object Function]",et="[object GeneratorFunction]",nt="[object Proxy]";function ot(t){if(!Y(t))return!1;var r=p(t);return r==rt||r==et||r==tt||r==nt}function it(t){return null!=t&&U(t.length)&&!ot(t)}function at(t){return it(t)?G(t):X(t)}function ct(t,r){return t&&O(t,r,at)}function ut(t,r){return function(e,n){if(null==e)return e;if(!it(e))return t(e,n);for(var o=e.length,i=r?o:-1,a=Object(e);(r?i--:++i<o)&&!1!==n(a[i],i,a););return e}}var lt=ut(ct);function ft(t,r){return t===r||t!=t&&r!=r}function st(t,r){for(var e=t.length;e--;)if(ft(t[e][0],r))return e;return-1}var vt=Array.prototype.splice;function pt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}pt.prototype.clear=function(){this.__data__=[],this.size=0},pt.prototype.delete=function(t){var r=this.__data__,e=st(r,t);return!(e<0||(e==r.length-1?r.pop():vt.call(r,e,1),--this.size,0))},pt.prototype.get=function(t){var r=this.__data__,e=st(r,t);return e<0?void 0:r[e][1]},pt.prototype.has=function(t){return st(this.__data__,t)>-1},pt.prototype.set=function(t,r){var e=this.__data__,n=st(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var ht,dt=n["__core-js_shared__"],yt=(ht=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ht:"";var bt=Function.prototype.toString;function gt(t){if(null!=t){try{return bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var jt=/^\[object .+?Constructor\]$/,_t=Function.prototype,Ot=Object.prototype,mt=_t.toString,At=Ot.hasOwnProperty,wt=RegExp("^"+mt.call(At).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pt(t){return!(!Y(t)||(r=t,yt&&yt in r))&&(ot(t)?wt:jt).test(gt(t));var r}function kt(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return Pt(e)?e:void 0}var Ct=kt(n,"Map"),Dt=kt(Object,"create");var St="__lodash_hash_undefined__",It=Object.prototype.hasOwnProperty;var Et=Object.prototype.hasOwnProperty;var Ft="__lodash_hash_undefined__";function xt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function zt(t,r){var e,n,o=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof r?"string":"hash"]:o.map}function Mt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}xt.prototype.clear=function(){this.__data__=Dt?Dt(null):{},this.size=0},xt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},xt.prototype.get=function(t){var r=this.__data__;if(Dt){var e=r[t];return e===St?void 0:e}return It.call(r,t)?r[t]:void 0},xt.prototype.has=function(t){var r=this.__data__;return Dt?void 0!==r[t]:Et.call(r,t)},xt.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Dt&&void 0===r?Ft:r,this},Mt.prototype.clear=function(){this.size=0,this.__data__={hash:new xt,map:new(Ct||pt),string:new xt}},Mt.prototype.delete=function(t){var r=zt(this,t).delete(t);return this.size-=r?1:0,r},Mt.prototype.get=function(t){return zt(this,t).get(t)},Mt.prototype.has=function(t){return zt(this,t).has(t)},Mt.prototype.set=function(t,r){var e=zt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};var Ut=200;function Rt(t){var r=this.__data__=new pt(t);this.size=r.size}Rt.prototype.clear=function(){this.__data__=new pt,this.size=0},Rt.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},Rt.prototype.get=function(t){return this.__data__.get(t)},Rt.prototype.has=function(t){return this.__data__.has(t)},Rt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof pt){var n=e.__data__;if(!Ct||n.length<Ut-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Mt(n)}return e.set(t,r),this.size=e.size,this};var Tt="__lodash_hash_undefined__";function $t(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new Mt;++r<e;)this.add(t[r])}function Bt(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}$t.prototype.add=$t.prototype.push=function(t){return this.__data__.set(t,Tt),this},$t.prototype.has=function(t){return this.__data__.has(t)};var Nt=1,Lt=2;function Vt(t,r,e,n,o,i){var a=e&Nt,c=t.length,u=r.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t);if(l&&i.get(r))return l==r;var f=-1,s=!0,v=e&Lt?new $t:void 0;for(i.set(t,r),i.set(r,t);++f<c;){var p=t[f],h=r[f];if(n)var d=a?n(h,p,f,r,t,i):n(p,h,f,t,r,i);if(void 0!==d){if(d)continue;s=!1;break}if(v){if(!Bt(r,function(t,r){if(a=r,!v.has(a)&&(p===t||o(p,t,e,n,i)))return v.push(r);var a})){s=!1;break}}else if(p!==h&&!o(p,h,e,n,i)){s=!1;break}}return i.delete(t),i.delete(r),s}var Wt=n.Uint8Array;function qt(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function Gt(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}var Zt=1,Ht=2,Jt="[object Boolean]",Kt="[object Date]",Qt="[object Error]",Xt="[object Map]",Yt="[object Number]",tr="[object RegExp]",rr="[object Set]",er="[object String]",nr="[object Symbol]",or="[object ArrayBuffer]",ir="[object DataView]",ar=o?o.prototype:void 0,cr=ar?ar.valueOf:void 0;function ur(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}function lr(t,r,e){var n=r(t);return h(t)?n:ur(n,e(t))}function fr(){return[]}var sr=Object.prototype.propertyIsEnumerable,vr=Object.getOwnPropertySymbols,pr=vr?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}(vr(t),function(r){return sr.call(t,r)}))}:fr;function hr(t){return lr(t,at,pr)}var dr=1,yr=Object.prototype.hasOwnProperty;var br=kt(n,"DataView"),gr=kt(n,"Promise"),jr=kt(n,"Set"),_r=kt(n,"WeakMap"),Or=gt(br),mr=gt(Ct),Ar=gt(gr),wr=gt(jr),Pr=gt(_r),kr=p;(br&&"[object DataView]"!=kr(new br(new ArrayBuffer(1)))||Ct&&"[object Map]"!=kr(new Ct)||gr&&"[object Promise]"!=kr(gr.resolve())||jr&&"[object Set]"!=kr(new jr)||_r&&"[object WeakMap]"!=kr(new _r))&&(kr=function(t){var r=p(t),e="[object Object]"==r?t.constructor:void 0,n=e?gt(e):"";if(n)switch(n){case Or:return"[object DataView]";case mr:return"[object Map]";case Ar:return"[object Promise]";case wr:return"[object Set]";case Pr:return"[object WeakMap]"}return r});var Cr=kr,Dr=1,Sr="[object Arguments]",Ir="[object Array]",Er="[object Object]",Fr=Object.prototype.hasOwnProperty;function xr(t,r,e,n,o,i){var a=h(t),c=h(r),u=a?Ir:Cr(t),l=c?Ir:Cr(r),f=(u=u==Sr?Er:u)==Er,s=(l=l==Sr?Er:l)==Er,v=u==l;if(v&&E(t)){if(!E(r))return!1;a=!0,f=!1}if(v&&!f)return i||(i=new Rt),a||W(t)?Vt(t,r,e,n,o,i):function(t,r,e,n,o,i,a){switch(e){case ir:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case or:return!(t.byteLength!=r.byteLength||!i(new Wt(t),new Wt(r)));case Jt:case Kt:case Yt:return ft(+t,+r);case Qt:return t.name==r.name&&t.message==r.message;case tr:case er:return t==r+"";case Xt:var c=qt;case rr:var u=n&Zt;if(c||(c=Gt),t.size!=r.size&&!u)return!1;var l=a.get(t);if(l)return l==r;n|=Ht,a.set(t,r);var f=Vt(c(t),c(r),n,o,i,a);return a.delete(t),f;case nr:if(cr)return cr.call(t)==cr.call(r)}return!1}(t,r,u,e,n,o,i);if(!(e&Dr)){var p=f&&Fr.call(t,"__wrapped__"),d=s&&Fr.call(r,"__wrapped__");if(p||d){var y=p?t.value():t,b=d?r.value():r;return i||(i=new Rt),o(y,b,e,n,i)}}return!!v&&(i||(i=new Rt),function(t,r,e,n,o,i){var a=e&dr,c=hr(t),u=c.length;if(u!=hr(r).length&&!a)return!1;for(var l=u;l--;){var f=c[l];if(!(a?f in r:yr.call(r,f)))return!1}var s=i.get(t);if(s&&i.get(r))return s==r;var v=!0;i.set(t,r),i.set(r,t);for(var p=a;++l<u;){var h=t[f=c[l]],d=r[f];if(n)var y=a?n(d,h,f,r,t,i):n(h,d,f,t,r,i);if(!(void 0===y?h===d||o(h,d,e,n,i):y)){v=!1;break}p||(p="constructor"==f)}if(v&&!p){var b=t.constructor,g=r.constructor;b!=g&&"constructor"in t&&"constructor"in r&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(v=!1)}return i.delete(t),i.delete(r),v}(t,r,e,n,o,i))}function zr(t,r,e,n,o){return t===r||(null==t||null==r||!d(t)&&!d(r)?t!=t&&r!=r:xr(t,r,e,n,zr,o))}var Mr=1,Ur=2;function Rr(t){return t==t&&!Y(t)}function Tr(t,r){return function(e){return null!=e&&(e[t]===r&&(void 0!==r||t in Object(e)))}}function $r(t){var r=function(t){for(var r=at(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,Rr(o)]}return r}(t);return 1==r.length&&r[0][2]?Tr(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var o=e.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=e[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=e[o])[0],l=t[u],f=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var s=new Rt;if(n)var v=n(l,f,u,t,r,s);if(!(void 0===v?zr(f,l,Mr|Ur,n,s):v))return!1}}return!0}(e,t,r)}}var Br="[object Symbol]";function Nr(t){return"symbol"==typeof t||d(t)&&p(t)==Br}var Lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vr=/^\w*$/;function Wr(t,r){if(h(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Nr(t))||(Vr.test(t)||!Lr.test(t)||null!=r&&t in Object(r))}var qr="Expected a function";function Gr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError(qr);var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return e.cache=i.set(o,a)||i,a};return e.cache=new(Gr.Cache||Mt),e}Gr.Cache=Mt;var Zr=500;var Hr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jr=/\\(\\)?/g,Kr=function(t){var r=Gr(t,function(t){return e.size===Zr&&e.clear(),t}),e=r.cache;return r}(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Hr,function(t,e,n,o){r.push(n?o.replace(Jr,"$1"):e||t)}),r});function Qr(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}var Xr=1/0,Yr=o?o.prototype:void 0,te=Yr?Yr.toString:void 0;function re(t){if("string"==typeof t)return t;if(h(t))return Qr(t,re)+"";if(Nr(t))return te?te.call(t):"";var r=t+"";return"0"==r&&1/t==-Xr?"-0":r}function ee(t){return null==t?"":re(t)}function ne(t,r){return h(t)?t:Wr(t,r)?[t]:Kr(ee(t))}var oe=1/0;function ie(t){if("string"==typeof t||Nr(t))return t;var r=t+"";return"0"==r&&1/t==-oe?"-0":r}function ae(t,r){for(var e=0,n=(r=ne(r,t)).length;null!=t&&e<n;)t=t[ie(r[e++])];return e&&e==n?t:void 0}function ce(t,r,e){var n=null==t?void 0:ae(t,r);return void 0===n?e:n}function ue(t,r){return null!=t&&r in Object(t)}function le(t,r,e){for(var n=-1,o=(r=ne(r,t)).length,i=!1;++n<o;){var a=ie(r[n]);if(!(i=null!=t&&e(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&U(o)&&z(a,o)&&(h(t)||C(t))}var fe=1,se=2;function ve(t,r){return Wr(t)&&Rr(r)?Tr(ie(t),r):function(e){var n=ce(e,t);return void 0===n&&n===r?function(t,r){return null!=t&&le(t,r,ue)}(e,t):zr(r,n,fe|se)}}function pe(t){return t}function he(t){return Wr(t)?(r=ie(t),function(t){return null==t?void 0:t[r]}):function(t){return function(r){return ae(r,t)}}(t);var r}function de(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?h(t)?ve(t[0],t[1]):$r(t):he(t)}function ye(t,r,e,n,o){return o(t,function(t,o,i){e=n?(n=!1,t):r(e,t,o,i)}),e}var be={isString:b,isArray:g,reduce:function(t,r,e){var n=h(t)?j:ye,o=arguments.length<3;return n(t,de(r),e,o,lt)}},ge=/^\d+$/,je=/^[a-zA-Z_$]+([\w_$]*)$/;function _e(t){return function(r){return t.isString(r)?r:t.isArray(r)?t.reduce(r,function(t,r){return ge.test(r)?t+"["+r+"]":je.test(r)?t+(t?".":"")+r:t+'["'+r.toString().replace(/"/g,'\\"')+'"]'},""):void 0}}var Oe=_e(be),me=function(){try{var t=kt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Ae(t,r,e){"__proto__"==r&&me?me(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function we(t,r,e){(void 0===e||ft(t[r],e))&&(void 0!==e||r in t)||Ae(t,r,e)}var Pe="object"==typeof t&&t&&!t.nodeType&&t,ke=Pe&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=ke&&ke.exports===Pe?n.Buffer:void 0,De=Ce?Ce.allocUnsafe:void 0;function Se(t,r){if(r)return t.slice();var e=t.length,n=De?De(e):new t.constructor(e);return t.copy(n),n}function Ie(t){var r=new t.constructor(t.byteLength);return new Wt(r).set(new Wt(t)),r}function Ee(t,r){var e=r?Ie(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Fe(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}var xe=Object.create,ze=function(){function t(){}return function(r){if(!Y(r))return{};if(xe)return xe(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}(),Me=J(Object.getPrototypeOf,Object);function Ue(t){return"function"!=typeof t.constructor||H(t)?{}:ze(Me(t))}var Re="[object Object]",Te=Function.prototype,$e=Object.prototype,Be=Te.toString,Ne=$e.hasOwnProperty,Le=Be.call(Object);function Ve(t){if(!d(t)||p(t)!=Re)return!1;var r=Me(t);if(null===r)return!0;var e=Ne.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Be.call(e)==Le}function We(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}var qe=Object.prototype.hasOwnProperty;function Ge(t,r,e){var n=t[r];qe.call(t,r)&&ft(n,e)&&(void 0!==e||r in t)||Ae(t,r,e)}function Ze(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i<a;){var c=r[i],u=n?n(e[c],t[c],c,e,t):void 0;void 0===u&&(u=t[c]),o?Ae(e,c,u):Ge(e,c,u)}return e}var He=Object.prototype.hasOwnProperty;function Je(t){if(!Y(t))return function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}(t);var r=H(t),e=[];for(var n in t)("constructor"!=n||!r&&He.call(t,n))&&e.push(n);return e}function Ke(t){return it(t)?G(t,!0):Je(t)}function Qe(t,r,e,n,o,i,a){var c=We(t,e),u=We(r,e),l=a.get(u);if(l)we(t,e,l);else{var f,s=i?i(c,u,e+"",t,r,a):void 0,v=void 0===s;if(v){var p=h(u),y=!p&&E(u),b=!p&&!y&&W(u);s=u,p||y||b?h(c)?s=c:d(f=c)&&it(f)?s=Fe(c):y?(v=!1,s=Se(u,!0)):b?(v=!1,s=Ee(u,!0)):s=[]:Ve(u)||C(u)?(s=c,C(c)?s=function(t){return Ze(t,Ke(t))}(c):Y(c)&&!ot(c)||(s=Ue(u))):v=!1}v&&(a.set(u,s),o(s,u,n,i,a),a.delete(u)),we(t,e,s)}}function Xe(t,r,e,n,o){t!==r&&O(r,function(i,a){if(o||(o=new Rt),Y(i))Qe(t,r,a,e,Xe,n,o);else{var c=n?n(We(t,a),i,a+"",t,r,o):void 0;void 0===c&&(c=i),we(t,a,c)}},Ke)}function Ye(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}var tn=Math.max;var rn=me?function(t,r){return me(t,"toString",{configurable:!0,enumerable:!1,value:(e=r,function(){return e}),writable:!0});var e}:pe,en=800,nn=16,on=Date.now;var an,cn,un,ln=(an=rn,cn=0,un=0,function(){var t=on(),r=nn-(t-un);if(un=t,r>0){if(++cn>=en)return arguments[0]}else cn=0;return an.apply(void 0,arguments)});function fn(t,r){return ln(function(t,r,e){return r=tn(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,i=tn(n.length-r,0),a=Array(i);++o<i;)a[o]=n[r+o];o=-1;for(var c=Array(r+1);++o<r;)c[o]=n[o];return c[r]=e(a),Ye(t,this,c)}}(t,r,pe),t+"")}function sn(t,r,e){if(!Y(e))return!1;var n=typeof r;return!!("number"==n?it(e)&&z(r,e.length):"string"==n&&r in e)&&ft(e[r],t)}var vn,pn=(vn=function(t,r,e){Xe(t,r,e)},fn(function(t,r){var e=-1,n=r.length,o=n>1?r[n-1]:void 0,i=n>2?r[2]:void 0;for(o=vn.length>3&&"function"==typeof o?(n--,o):void 0,i&&sn(r[0],r[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++e<n;){var a=r[e];a&&vn(t,a,e,o)}return t}));function hn(t){return h(t)?Qr(t,ie):Nr(t)?[t]:Fe(Kr(ee(t)))}var dn="[object Map]",yn="[object Set]",bn=Object.prototype.hasOwnProperty;function gn(t){if(null==t)return!0;if(it(t)&&(h(t)||"string"==typeof t||"function"==typeof t.splice||E(t)||W(t)||C(t)))return!t.length;var r=Cr(t);if(r==dn||r==yn)return!t.size;if(H(t))return!X(t).length;for(var e in t)if(bn.call(t,e))return!1;return!0}var jn=NaN,_n=/^\s+|\s+$/g,On=/^[-+]0x[0-9a-f]+$/i,mn=/^0b[01]+$/i,An=/^0o[0-7]+$/i,wn=parseInt;var Pn=1/0,kn=17976931348623157e292;function Cn(t){return t?(t=function(t){if("number"==typeof t)return t;if(Nr(t))return jn;if(Y(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Y(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(_n,"");var e=mn.test(t);return e||An.test(t)?wn(t.slice(2),e?2:8):On.test(t)?jn:+t}(t))===Pn||t===-Pn?(t<0?-1:1)*kn:t==t?t:0:0===t?t:0}function Dn(t){var r=Cn(t),e=r%1;return r==r?e?r-e:r:0}var Sn=Math.max;function In(t){return"function"==typeof t?t:pe}function En(t,r){for(var e=0;e<t.length&&!1!==r(t[e],e,t);e++);return t}function Fn(t,r){var e;return lt(t,function(t,n,o){return!(e=r(t,n,o))}),!!e}var xn=pn({isObject:Y,isEmpty:gn,findIndex:function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var o=null==e?0:Dn(e);return o<0&&(o=Sn(n+o,0)),function(t,r,e,n){for(var o=t.length,i=e+(n?1:-1);n?i--:++i<o;)if(r(t[i],i,t))return i;return-1}(t,de(r),o)},forOwn:function(t,r){return t&&ct(t,In(r))},forArray:En,get:ce,isArray:g},be,{some:function(t,r,e){var n=h(t)?Bt:Fn;return e&&sn(t,r,e)&&(r=void 0),n(t,de(r))},get:ce,isEmpty:gn}),zn=pn({identity:pe,merge:pn,isArray:g,isString:b,toPath:hn},xn);function Mn(t){var r=function(t){var r=_e(t),e=function(t){return function(r,e){return t.some(e,function(e){var n=t.get(r,e);return!t.isEmpty(n)})}}(t),n=t.each||t.forArray;return function o(i,a,c,u,l,f,s,v,p,h){var d,y={value:i,key:u,path:"array"==c.pathFormat?l:r(l),parent:s},b=v.concat([y]),g=void 0,j=void 0,_=void 0;c.checkCircular&&(t.isObject(i)&&!t.isEmpty(i)?_=v[j=t.findIndex(v,function(t){return t.value===i})]||null:(j=-1,_=null),g=-1!==j);var O=!t.isObject(i)||t.isEmpty(i)||g||void 0!==c.childrenPath&&!e(i,c.childrenPath),m=(f||c.includeRoot)&&(!c.leavesOnly||O);if(m){var A={path:"array"==c.pathFormat?l:r(l),parent:s,parents:v,obj:p,depth:f,isCircular:g,circularParent:_,circularParentIndex:j,isLeaf:O};void 0!==c.childrenPath&&(y.childrenPath="array"==c.pathFormat?h:r(h),A.childrenPath=y.childrenPath),d=a(i,u,s&&s.value,A)}function w(r,e){r&&t.isObject(r)&&t.forOwn(r,function(t,r){var n=(l||[]).concat(e||[],[r]);o(t,a,c,r,n,f+1,y,b,p,e)})}!1!==d&&!g&&t.isObject(i)&&(void 0!==c.childrenPath?!f&&c.rootIsChildren?w(i,void 0):n(c.childrenPath,function(r){w(t.get(i,r),r)}):t.forOwn(i,function(r,e){if(!t.isArray(i)||void 0!==r||e in i){var n=(l||[]).concat([e]);o(r,a,c,e,n,f+1,y,b,p)}})),c.callbackAfterIterate&&m&&(A.afterIterate=!0,a(i,u,s&&s.value,A))}}(t);return function(e,n,o){if(void 0===n&&(n=t.identity),void 0!==(o=t.merge({includeRoot:!t.isArray(e),pathFormat:"string",checkCircular:!1,leavesOnly:!1},o||{})).childrenPath){if(o.includeRoot||void 0!==o.rootIsChildren||(o.rootIsChildren=t.isArray(e)),!t.isString(o.childrenPath)&&!t.isArray(o.childrenPath))throw Error("childrenPath can be string or array");t.isString(o.childrenPath)&&(o.childrenPath=[o.childrenPath]);for(var i=o.childrenPath.length-1;i>=0;i--)o.childrenPath[i]=t.toPath(o.childrenPath[i])}return r(e,n,o,void 0,void 0,0,void 0,[],e),e}}var Un=Mn(zn),Rn=Un;var Tn=function(t){var r=Mn(t);return function(e,n){(n=t.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!n||void 0===n.childrenPath},n||{}))&&void 0!==n.leafsOnly&&(n.leavesOnly=n.leafsOnly);var o={pathFormat:"string",checkCircular:n.checkCircular,includeRoot:n.includeRoot,childrenPath:n.childrenPath,rootIsChildren:n.rootIsChildren,leavesOnly:n.leavesOnly},i={};return r(e,function(t,r,e,o){o.isCircular&&!n.includeCircularPath||void 0!==o.path&&(i[o.path]=t)},o),i}}(pn({merge:pn},zn));var $n=function(t){var r=Mn(t);return function(e,n){n&&void 0!==n.leafsOnly&&(n.leavesOnly=n.leafsOnly);var o={pathFormat:(n=t.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!n||void 0===n.childrenPath,pathFormat:"string"},n||{})).pathFormat,checkCircular:n.checkCircular,includeRoot:n.includeRoot,childrenPath:n.childrenPath,rootIsChildren:n.rootIsChildren,leavesOnly:n.leavesOnly},i=[];return r(e,function(t,r,e,o){o.isCircular&&!n.includeCircularPath||void 0!==o.path&&i.push(o.path)},o),i}}(pn({merge:pn},zn)),Bn=$n;function Nn(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}var Ln=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)ur(r,pr(t)),t=Me(t);return r}:fr;function Vn(t){return lr(t,Ke,Ln)}var Wn=Object.prototype.hasOwnProperty;var qn=/\w*$/;var Gn=o?o.prototype:void 0,Zn=Gn?Gn.valueOf:void 0;var Hn="[object Boolean]",Jn="[object Date]",Kn="[object Map]",Qn="[object Number]",Xn="[object RegExp]",Yn="[object Set]",to="[object String]",ro="[object Symbol]",eo="[object ArrayBuffer]",no="[object DataView]",oo="[object Float32Array]",io="[object Float64Array]",ao="[object Int8Array]",co="[object Int16Array]",uo="[object Int32Array]",lo="[object Uint8Array]",fo="[object Uint8ClampedArray]",so="[object Uint16Array]",vo="[object Uint32Array]";function po(t,r,e){var n,o,i,a=t.constructor;switch(r){case eo:return Ie(t);case Hn:case Jn:return new a(+t);case no:return function(t,r){var e=r?Ie(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case oo:case io:case ao:case co:case uo:case lo:case fo:case so:case vo:return Ee(t,e);case Kn:return new a;case Qn:case to:return new a(t);case Xn:return(i=new(o=t).constructor(o.source,qn.exec(o))).lastIndex=o.lastIndex,i;case Yn:return new a;case ro:return n=t,Zn?Object(Zn.call(n)):{}}}var ho="[object Map]";var yo=L&&L.isMap,bo=yo?T(yo):function(t){return d(t)&&Cr(t)==ho},go="[object Set]";var jo=L&&L.isSet,_o=jo?T(jo):function(t){return d(t)&&Cr(t)==go},Oo=1,mo=2,Ao=4,wo="[object Arguments]",Po="[object Function]",ko="[object GeneratorFunction]",Co="[object Object]",Do={};function So(t,r,e,n,o,i){var a,c=r&Oo,u=r&mo,l=r&Ao;if(e&&(a=o?e(t,n,o,i):e(t)),void 0!==a)return a;if(!Y(t))return t;var f=h(t);if(f){if(a=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Wn.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return Fe(t,a)}else{var s=Cr(t),v=s==Po||s==ko;if(E(t))return Se(t,c);if(s==Co||s==wo||v&&!o){if(a=u||v?{}:Ue(t),!c)return u?function(t,r){return Ze(t,Ln(t),r)}(t,function(t,r){return t&&Ze(r,Ke(r),t)}(a,t)):function(t,r){return Ze(t,pr(t),r)}(t,function(t,r){return t&&Ze(r,at(r),t)}(a,t))}else{if(!Do[s])return o?t:{};a=po(t,s,c)}}i||(i=new Rt);var p=i.get(t);if(p)return p;i.set(t,a),_o(t)?t.forEach(function(n){a.add(So(n,r,e,n,t,i))}):bo(t)&&t.forEach(function(n,o){a.set(o,So(n,r,e,o,t,i))});var d=l?u?Vn:hr:u?keysIn:at,y=f?void 0:d(t);return Nn(y||t,function(n,o){y&&(n=t[o=n]),Ge(a,o,So(n,r,e,o,t,i))}),a}Do[wo]=Do["[object Array]"]=Do["[object ArrayBuffer]"]=Do["[object DataView]"]=Do["[object Boolean]"]=Do["[object Date]"]=Do["[object Float32Array]"]=Do["[object Float64Array]"]=Do["[object Int8Array]"]=Do["[object Int16Array]"]=Do["[object Int32Array]"]=Do["[object Map]"]=Do["[object Number]"]=Do[Co]=Do["[object RegExp]"]=Do["[object Set]"]=Do["[object String]"]=Do["[object Symbol]"]=Do["[object Uint8Array]"]=Do["[object Uint8ClampedArray]"]=Do["[object Uint16Array]"]=Do["[object Uint32Array]"]=!0,Do["[object Error]"]=Do[Po]=Do["[object WeakMap]"]=!1;var Io=4;function Eo(t){return So(t,Io)}var Fo={isArray:g,clone:Eo,toPath:hn,get:ce};function xo(t){return function(r,e){var n=(e=t.isArray(e)?t.clone(e):t.toPath(e)).pop(),o=e.length?t.get(r,e):r;return void 0!==o&&n in o}}var zo=xo(Fo);function Mo(t){return function(t){for(var r=[],e=0;e<t.length;e++)e in t||r.push(e);for(var n=r.length;n--;)t.splice(r[n],1);return t}}var Uo=Mo(),Ro=pn({merge:pn,isArray:g,forArray:En},{},zn);function To(t){var r=Mn(t),e=Mo(),n=t.each||t.forArray;return function(o,i){var a={checkCircular:(i=t.merge({checkCircular:!1},i||{})).checkCircular},c=[];return r(o,function(r,e,n,o){!o.isCircular&&t.isArray(r)&&c.push(r)},a),t.isArray(o)&&c.push(o),n(c,e),o}}var $o=To(Ro),Bo=1,No=4;function Lo(t){return So(t,Bo|No)}function Vo(t,r){for(var e=null==t?0:t.length;e--&&!1!==r(t[e],e,t););return t}var Wo=_(!0);var qo=ut(function(t,r){return t&&Wo(t,r,at)},!0);var Go=Object.prototype.hasOwnProperty;function Zo(t,r){return null!=t&&Go.call(t,r)}function Ho(t,r,e){return null==t?t:function(t,r,e,n){if(!Y(t))return t;for(var o=-1,i=(r=ne(r,t)).length,a=i-1,c=t;null!=c&&++o<i;){var u=ie(r[o]),l=e;if(o!=a){var f=c[u];void 0===(l=n?n(f,u,c):void 0)&&(l=Y(f)?f:z(r[o+1])?[]:{})}Ge(c,u,l),c=c[u]}return t}(t,r,e)}function Jo(t,r,e){var n=-1,o=t.length;r<0&&(r=-r>o?0:o+r),(e=e>o?o:e)<0&&(e+=o),o=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+r];return i}function Ko(t,r){return null==(t=function(t,r){return r.length<2?t:ae(t,Jo(r,0,-1))}(t,r=ne(r,t)))||delete t[ie((e=r,n=null==e?0:e.length,n?e[n-1]:void 0))];var e,n}var Qo=1;function Xo(t){return de("function"==typeof t?t:So(t,Qo))}var Yo={get:ce},ti=pn({merge:pn,clone:Eo,cloneDeep:Lo,isArray:g,isObject:Y,each:function(t,r){return(h(t)?Nn:lt)(t,In(r))},eachRight:function(t,r){return(h(t)?Vo:qo)(t,In(r))},has:function(t,r){return null!=t&&le(t,r,Zo)},set:Ho,unset:function(t,r){return null==t||Ko(t,r)},isPlainObject:Ve,iteratee:Xo},zn,be,Yo,Ro,Fo);function ri(t){return function(r,e){return void 0===e?r:t.get(r,e)}}function ei(t){var r=Mn(t),e=_e(t),n=ri(t),o=To(t),i=xo(t);return function(a,c,u){c=t.iteratee(c),u?void 0!==(u=t.cloneDeep(u)).leafsOnly&&(u.leavesOnly=u.leafsOnly):u={},u.onTrue||(u.onTrue={}),u.onFalse||(u.onFalse={}),u.onUndefined||(u.onUndefined={}),void 0!==u.childrenPath&&(void 0===u.onTrue.skipChildren&&(u.onTrue.skipChildren=!1),void 0===u.onUndefined.skipChildren&&(u.onUndefined.skipChildren=!1),void 0===u.onFalse.skipChildren&&(u.onFalse.skipChildren=!1),void 0===u.onTrue.cloneDeep&&(u.onTrue.cloneDeep=!0),void 0===u.onUndefined.cloneDeep&&(u.onUndefined.cloneDeep=!0),void 0===u.onFalse.cloneDeep&&(u.onFalse.cloneDeep=!0));var l,f={pathFormat:(u=t.merge({checkCircular:!1,keepCircular:!0,leavesOnly:void 0===u.childrenPath,condense:!0,cloneDeep:t.cloneDeep,pathFormat:"string",onTrue:{skipChildren:!0,cloneDeep:!0,keepIfEmpty:!0},onUndefined:{skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1},onFalse:{skipChildren:!0,cloneDeep:!1,keepIfEmpty:!1}},u)).pathFormat,checkCircular:u.checkCircular,childrenPath:u.childrenPath,includeRoot:u.includeRoot,callbackAfterIterate:!0,leavesOnly:!1},s=t.isArray(a)?[]:t.isObject(a)?{}:null,v={},p=[];return r(a,function(r,n,o,i){var a=e(i.path);if(!i.afterIterate){if(i.isCircular)return t.unset(s,i.path),u.keepCircular&&p.push([i.path,i.circularParent.path]),!1;var f=!u.leavesOnly||i.isLeaf?c(r,n,o,i):void 0;return t.isObject(f)||(f=void 0===f?t.clone(u.onUndefined):f?t.clone(u.onTrue):t.clone(u.onFalse)),void 0===f.empty&&(f.empty=!0),void 0!==a?(v[a]=f,l||(l={skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1,empty:f.empty})):l=f,!f.keepIfEmpty&&f.skipChildren||(u.cloneDeep&&f.cloneDeep?void 0!==i.path?t.set(s,i.path,u.cloneDeep(r)):s=u.cloneDeep(r):void 0!==i.path?t.set(s,i.path,t.isArray(r)?[]:t.isPlainObject(r)?{}:r):s=t.isArray(r)?[]:t.isPlainObject(r)?{}:r),!f.skipChildren}!i.afterIterate||i.isCircular||(void 0===a&&l.empty&&!l.keepIfEmpty?s=null:void 0!==a&&v[a].empty&&!v[a].keepIfEmpty?t.unset(s,i.path):(t.eachRight(i.parents,function(t){var r=e(t.path);if(void 0===r||!v[r].empty)return!1;v[r].empty=!1}),l.empty=!1))},f),l&&l.empty&&!l.keepIfEmpty&&(s=null),t.each(p,function(r){var e;(void 0===r[1]||i(s,r[1]))&&(e=t.has(u,"replaceCircularBy")?u.replaceCircularBy:n(s,r[1]),t.set(s,r[0],e))}),u.condense&&(s=o(s,{checkCircular:u.checkCircular})),!t.isArray(s)||s.length||f.includeRoot?s:null}}var ni=ei(ti);var oi=pn({isString:b,isArray:g,toPath:hn,isEqual:function(t,r){return zr(t,r)},takeRight:function(t,r,e){var n=null==t?0:t.length;return n?Jo(t,(r=n-(r=e||void 0===r?1:Dn(r)))<0?0:r,n):[]},cloneDeep:Lo},be),ii=pn({merge:pn},oi,ti);function ai(t){var r=_e(t);return function(e,n){var o,i;t.isString(e)?o=e:i=e,n=t.isArray(n)?t.cloneDeep(n):[n];for(var a=0;a<n.length;a++)if(t.isString(n[a])&&(n[a]=t.toPath(n[a])),t.isArray(n[a])){if(void 0===i&&(i=t.toPath(o)),i.length>=n[a].length&&t.isEqual(t.takeRight(i,n[a].length),n[a]))return n[a]}else{if(!(n[a]instanceof RegExp))throw new Error("To match path use only string/regex or array of them.");if(void 0===o&&(o=r(e)),n[a].test(o))return n[a]}return!1}}function ci(t){var r=ai(t),e=ei(t);return function(n,o,i){var a=!(i=t.merge({invert:!1},i||{})).invert;return(i=t.merge({onMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:!a},onNotMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:a}},i)).leavesOnly=!1,i.childrenPath=void 0,i.includeRoot=void 0,i.pathFormat="array",i.onTrue=i.invert?i.onMatch:i.onNotMatch,i.onFalse=i.invert?i.onNotMatch:i.onMatch,e(n,function(t,e,n,a){return!1!==r(a.path,o)?i.invert:!i.invert},i)}}var ui=ci(ii);var li=function(t){var r=ci(t);return function(e,n,o){return(o=t.merge({invert:!1},o||{})).invert=!0,r(e,n,o)}}(pn({merge:pn},ii)),fi=ri(Yo),si=ai(oi);var vi=function(t){var r=Mn(t);return function(e,n,o,i){n=t.iteratee(n);var a=void 0!==o;return r(e,function(t,r,e,i){a?o=n(o,t,r,e,i):(o=t,a=!0)},i),o}}(pn({iteratee:Xo},zn));var pi=function(t){var r=Mn(t);return function(e,n,o){n=t.iteratee(n);var i=t.isArray(e)?[]:t.isObject(e)?{}:t.clone(e);return r(e,function(r,e,o,a){var c=n(r,e,o,a);void 0===e?i=c:t.set(i,a.path,c)},o),i}}(pn({iteratee:Xo,isArray:h,isObject:Y,clone:Eo,set:Ho},zn));return t.condense=Uo,t.condenseDeep=$o,t.eachDeep=Un,t.exists=zo,t.filterDeep=ni,t.forEachDeep=Rn,t.index=Tn,t.keysDeep=Bn,t.mapDeep=pi,t.obtain=fi,t.omitDeep=ui,t.pathMatches=si,t.pathToString=Oe,t.paths=$n,t.pickDeep=li,t.reduceDeep=vi,t}({}); | ||
var deepdash=function(r){"use strict";var t="object"==typeof global&&global&&global.Object===Object&&global,e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")(),o=n.Symbol,i=Object.prototype,a=i.hasOwnProperty,c=i.toString,u=o?o.toStringTag:void 0;var l=Object.prototype.toString;var f="[object Null]",s="[object Undefined]",v=o?o.toStringTag:void 0;function p(r){return null==r?void 0===r?s:f:v&&v in Object(r)?function(r){var t=a.call(r,u),e=r[u];try{r[u]=void 0;var n=!0}catch(r){}var o=c.call(r);return n&&(t?r[u]=e:delete r[u]),o}(r):function(r){return l.call(r)}(r)}var h=Array.isArray;function d(r){return null!=r&&"object"==typeof r}var y="[object String]";function b(r){return"string"==typeof r||!h(r)&&d(r)&&p(r)==y}var g=Array.isArray;function j(r,t,e,n){var o=-1,i=null==r?0:r.length;for(n&&i&&(e=r[++o]);++o<i;)e=t(e,r[o],o,r);return e}function _(r){return function(t,e,n){for(var o=-1,i=Object(t),a=n(t),c=a.length;c--;){var u=a[r?c:++o];if(!1===e(i[u],u,i))break}return t}}var O=_();var m="[object Arguments]";function A(r){return d(r)&&p(r)==m}var w=Object.prototype,k=w.hasOwnProperty,P=w.propertyIsEnumerable,C=A(function(){return arguments}())?A:function(r){return d(r)&&k.call(r,"callee")&&!P.call(r,"callee")};var D="object"==typeof r&&r&&!r.nodeType&&r,S=D&&"object"==typeof module&&module&&!module.nodeType&&module,I=S&&S.exports===D?n.Buffer:void 0,E=(I?I.isBuffer:void 0)||function(){return!1},F=9007199254740991,x=/^(?:0|[1-9]\d*)$/;function z(r,t){var e=typeof r;return!!(t=null==t?F:t)&&("number"==e||"symbol"!=e&&x.test(r))&&r>-1&&r%1==0&&r<t}var M=9007199254740991;function U(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=M}var R={};function T(r){return function(t){return r(t)}}R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Arguments]"]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object Boolean]"]=R["[object DataView]"]=R["[object Date]"]=R["[object Error]"]=R["[object Function]"]=R["[object Map]"]=R["[object Number]"]=R["[object Object]"]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object WeakMap]"]=!1;var $="object"==typeof r&&r&&!r.nodeType&&r,B=$&&"object"==typeof module&&module&&!module.nodeType&&module,N=B&&B.exports===$&&t.process,L=function(){try{var r=B&&B.require&&B.require("util").types;return r||N&&N.binding&&N.binding("util")}catch(r){}}(),V=L&&L.isTypedArray,W=V?T(V):function(r){return d(r)&&U(r.length)&&!!R[p(r)]},q=Object.prototype.hasOwnProperty;function G(r,t){var e=h(r),n=!e&&C(r),o=!e&&!n&&E(r),i=!e&&!n&&!o&&W(r),a=e||n||o||i,c=a?function(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}(r.length,String):[],u=c.length;for(var l in r)!t&&!q.call(r,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||z(l,u))||c.push(l);return c}var Z=Object.prototype;function H(r){var t=r&&r.constructor;return r===("function"==typeof t&&t.prototype||Z)}function J(r,t){return function(e){return r(t(e))}}var K=J(Object.keys,Object),Q=Object.prototype.hasOwnProperty;function X(r){if(!H(r))return K(r);var t=[];for(var e in Object(r))Q.call(r,e)&&"constructor"!=e&&t.push(e);return t}function Y(r){var t=typeof r;return null!=r&&("object"==t||"function"==t)}var rr="[object AsyncFunction]",tr="[object Function]",er="[object GeneratorFunction]",nr="[object Proxy]";function or(r){if(!Y(r))return!1;var t=p(r);return t==tr||t==er||t==rr||t==nr}function ir(r){return null!=r&&U(r.length)&&!or(r)}function ar(r){return ir(r)?G(r):X(r)}function cr(r,t){return r&&O(r,t,ar)}function ur(r,t){return function(e,n){if(null==e)return e;if(!ir(e))return r(e,n);for(var o=e.length,i=t?o:-1,a=Object(e);(t?i--:++i<o)&&!1!==n(a[i],i,a););return e}}var lr=ur(cr);function fr(r,t){return r===t||r!=r&&t!=t}function sr(r,t){for(var e=r.length;e--;)if(fr(r[e][0],t))return e;return-1}var vr=Array.prototype.splice;function pr(r){var t=-1,e=null==r?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}pr.prototype.clear=function(){this.__data__=[],this.size=0},pr.prototype.delete=function(r){var t=this.__data__,e=sr(t,r);return!(e<0||(e==t.length-1?t.pop():vr.call(t,e,1),--this.size,0))},pr.prototype.get=function(r){var t=this.__data__,e=sr(t,r);return e<0?void 0:t[e][1]},pr.prototype.has=function(r){return sr(this.__data__,r)>-1},pr.prototype.set=function(r,t){var e=this.__data__,n=sr(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this};var hr,dr=n["__core-js_shared__"],yr=(hr=/[^.]+$/.exec(dr&&dr.keys&&dr.keys.IE_PROTO||""))?"Symbol(src)_1."+hr:"";var br=Function.prototype.toString;function gr(r){if(null!=r){try{return br.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var jr=/^\[object .+?Constructor\]$/,_r=Function.prototype,Or=Object.prototype,mr=_r.toString,Ar=Or.hasOwnProperty,wr=RegExp("^"+mr.call(Ar).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kr(r){return!(!Y(r)||(t=r,yr&&yr in t))&&(or(r)?wr:jr).test(gr(r));var t}function Pr(r,t){var e=function(r,t){return null==r?void 0:r[t]}(r,t);return kr(e)?e:void 0}var Cr=Pr(n,"Map"),Dr=Pr(Object,"create");var Sr="__lodash_hash_undefined__",Ir=Object.prototype.hasOwnProperty;var Er=Object.prototype.hasOwnProperty;var Fr="__lodash_hash_undefined__";function xr(r){var t=-1,e=null==r?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}function zr(r,t){var e,n,o=r.__data__;return("string"==(n=typeof(e=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof t?"string":"hash"]:o.map}function Mr(r){var t=-1,e=null==r?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}xr.prototype.clear=function(){this.__data__=Dr?Dr(null):{},this.size=0},xr.prototype.delete=function(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t},xr.prototype.get=function(r){var t=this.__data__;if(Dr){var e=t[r];return e===Sr?void 0:e}return Ir.call(t,r)?t[r]:void 0},xr.prototype.has=function(r){var t=this.__data__;return Dr?void 0!==t[r]:Er.call(t,r)},xr.prototype.set=function(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=Dr&&void 0===t?Fr:t,this},Mr.prototype.clear=function(){this.size=0,this.__data__={hash:new xr,map:new(Cr||pr),string:new xr}},Mr.prototype.delete=function(r){var t=zr(this,r).delete(r);return this.size-=t?1:0,t},Mr.prototype.get=function(r){return zr(this,r).get(r)},Mr.prototype.has=function(r){return zr(this,r).has(r)},Mr.prototype.set=function(r,t){var e=zr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this};var Ur=200;function Rr(r){var t=this.__data__=new pr(r);this.size=t.size}Rr.prototype.clear=function(){this.__data__=new pr,this.size=0},Rr.prototype.delete=function(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e},Rr.prototype.get=function(r){return this.__data__.get(r)},Rr.prototype.has=function(r){return this.__data__.has(r)},Rr.prototype.set=function(r,t){var e=this.__data__;if(e instanceof pr){var n=e.__data__;if(!Cr||n.length<Ur-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Mr(n)}return e.set(r,t),this.size=e.size,this};var Tr="__lodash_hash_undefined__";function $r(r){var t=-1,e=null==r?0:r.length;for(this.__data__=new Mr;++t<e;)this.add(r[t])}function Br(r,t){for(var e=-1,n=null==r?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}$r.prototype.add=$r.prototype.push=function(r){return this.__data__.set(r,Tr),this},$r.prototype.has=function(r){return this.__data__.has(r)};var Nr=1,Lr=2;function Vr(r,t,e,n,o,i){var a=e&Nr,c=r.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(r);if(l&&i.get(t))return l==t;var f=-1,s=!0,v=e&Lr?new $r:void 0;for(i.set(r,t),i.set(t,r);++f<c;){var p=r[f],h=t[f];if(n)var d=a?n(h,p,f,t,r,i):n(p,h,f,r,t,i);if(void 0!==d){if(d)continue;s=!1;break}if(v){if(!Br(t,function(r,t){if(a=t,!v.has(a)&&(p===r||o(p,r,e,n,i)))return v.push(t);var a})){s=!1;break}}else if(p!==h&&!o(p,h,e,n,i)){s=!1;break}}return i.delete(r),i.delete(t),s}var Wr=n.Uint8Array;function qr(r){var t=-1,e=Array(r.size);return r.forEach(function(r,n){e[++t]=[n,r]}),e}function Gr(r){var t=-1,e=Array(r.size);return r.forEach(function(r){e[++t]=r}),e}var Zr=1,Hr=2,Jr="[object Boolean]",Kr="[object Date]",Qr="[object Error]",Xr="[object Map]",Yr="[object Number]",rt="[object RegExp]",tt="[object Set]",et="[object String]",nt="[object Symbol]",ot="[object ArrayBuffer]",it="[object DataView]",at=o?o.prototype:void 0,ct=at?at.valueOf:void 0;function ut(r,t){for(var e=-1,n=t.length,o=r.length;++e<n;)r[o+e]=t[e];return r}function lt(r,t,e){var n=t(r);return h(r)?n:ut(n,e(r))}function ft(){return[]}var st=Object.prototype.propertyIsEnumerable,vt=Object.getOwnPropertySymbols,pt=vt?function(r){return null==r?[]:(r=Object(r),function(r,t){for(var e=-1,n=null==r?0:r.length,o=0,i=[];++e<n;){var a=r[e];t(a,e,r)&&(i[o++]=a)}return i}(vt(r),function(t){return st.call(r,t)}))}:ft;function ht(r){return lt(r,ar,pt)}var dt=1,yt=Object.prototype.hasOwnProperty;var bt=Pr(n,"DataView"),gt=Pr(n,"Promise"),jt=Pr(n,"Set"),_t=Pr(n,"WeakMap"),Ot=gr(bt),mt=gr(Cr),At=gr(gt),wt=gr(jt),kt=gr(_t),Pt=p;(bt&&"[object DataView]"!=Pt(new bt(new ArrayBuffer(1)))||Cr&&"[object Map]"!=Pt(new Cr)||gt&&"[object Promise]"!=Pt(gt.resolve())||jt&&"[object Set]"!=Pt(new jt)||_t&&"[object WeakMap]"!=Pt(new _t))&&(Pt=function(r){var t=p(r),e="[object Object]"==t?r.constructor:void 0,n=e?gr(e):"";if(n)switch(n){case Ot:return"[object DataView]";case mt:return"[object Map]";case At:return"[object Promise]";case wt:return"[object Set]";case kt:return"[object WeakMap]"}return t});var Ct=Pt,Dt=1,St="[object Arguments]",It="[object Array]",Et="[object Object]",Ft=Object.prototype.hasOwnProperty;function xt(r,t,e,n,o,i){var a=h(r),c=h(t),u=a?It:Ct(r),l=c?It:Ct(t),f=(u=u==St?Et:u)==Et,s=(l=l==St?Et:l)==Et,v=u==l;if(v&&E(r)){if(!E(t))return!1;a=!0,f=!1}if(v&&!f)return i||(i=new Rr),a||W(r)?Vr(r,t,e,n,o,i):function(r,t,e,n,o,i,a){switch(e){case it:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case ot:return!(r.byteLength!=t.byteLength||!i(new Wr(r),new Wr(t)));case Jr:case Kr:case Yr:return fr(+r,+t);case Qr:return r.name==t.name&&r.message==t.message;case rt:case et:return r==t+"";case Xr:var c=qr;case tt:var u=n&Zr;if(c||(c=Gr),r.size!=t.size&&!u)return!1;var l=a.get(r);if(l)return l==t;n|=Hr,a.set(r,t);var f=Vr(c(r),c(t),n,o,i,a);return a.delete(r),f;case nt:if(ct)return ct.call(r)==ct.call(t)}return!1}(r,t,u,e,n,o,i);if(!(e&Dt)){var p=f&&Ft.call(r,"__wrapped__"),d=s&&Ft.call(t,"__wrapped__");if(p||d){var y=p?r.value():r,b=d?t.value():t;return i||(i=new Rr),o(y,b,e,n,i)}}return!!v&&(i||(i=new Rr),function(r,t,e,n,o,i){var a=e&dt,c=ht(r),u=c.length;if(u!=ht(t).length&&!a)return!1;for(var l=u;l--;){var f=c[l];if(!(a?f in t:yt.call(t,f)))return!1}var s=i.get(r);if(s&&i.get(t))return s==t;var v=!0;i.set(r,t),i.set(t,r);for(var p=a;++l<u;){var h=r[f=c[l]],d=t[f];if(n)var y=a?n(d,h,f,t,r,i):n(h,d,f,r,t,i);if(!(void 0===y?h===d||o(h,d,e,n,i):y)){v=!1;break}p||(p="constructor"==f)}if(v&&!p){var b=r.constructor,g=t.constructor;b!=g&&"constructor"in r&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(v=!1)}return i.delete(r),i.delete(t),v}(r,t,e,n,o,i))}function zt(r,t,e,n,o){return r===t||(null==r||null==t||!d(r)&&!d(t)?r!=r&&t!=t:xt(r,t,e,n,zt,o))}var Mt=1,Ut=2;function Rt(r){return r==r&&!Y(r)}function Tt(r,t){return function(e){return null!=e&&(e[r]===t&&(void 0!==t||r in Object(e)))}}function $t(r){var t=function(r){for(var t=ar(r),e=t.length;e--;){var n=t[e],o=r[n];t[e]=[n,o,Rt(o)]}return t}(r);return 1==t.length&&t[0][2]?Tt(t[0][0],t[0][1]):function(e){return e===r||function(r,t,e,n){var o=e.length,i=o,a=!n;if(null==r)return!i;for(r=Object(r);o--;){var c=e[o];if(a&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++o<i;){var u=(c=e[o])[0],l=r[u],f=c[1];if(a&&c[2]){if(void 0===l&&!(u in r))return!1}else{var s=new Rr;if(n)var v=n(l,f,u,r,t,s);if(!(void 0===v?zt(f,l,Mt|Ut,n,s):v))return!1}}return!0}(e,r,t)}}var Bt="[object Symbol]";function Nt(r){return"symbol"==typeof r||d(r)&&p(r)==Bt}var Lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vt=/^\w*$/;function Wt(r,t){if(h(r))return!1;var e=typeof r;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=r&&!Nt(r))||(Vt.test(r)||!Lt.test(r)||null!=t&&r in Object(t))}var qt="Expected a function";function Gt(r,t){if("function"!=typeof r||null!=t&&"function"!=typeof t)throw new TypeError(qt);var e=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var a=r.apply(this,n);return e.cache=i.set(o,a)||i,a};return e.cache=new(Gt.Cache||Mr),e}Gt.Cache=Mr;var Zt=500;var Ht=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jt=/\\(\\)?/g,Kt=function(r){var t=Gt(r,function(r){return e.size===Zt&&e.clear(),r}),e=t.cache;return t}(function(r){var t=[];return 46===r.charCodeAt(0)&&t.push(""),r.replace(Ht,function(r,e,n,o){t.push(n?o.replace(Jt,"$1"):e||r)}),t});function Qt(r,t){for(var e=-1,n=null==r?0:r.length,o=Array(n);++e<n;)o[e]=t(r[e],e,r);return o}var Xt=1/0,Yt=o?o.prototype:void 0,re=Yt?Yt.toString:void 0;function te(r){if("string"==typeof r)return r;if(h(r))return Qt(r,te)+"";if(Nt(r))return re?re.call(r):"";var t=r+"";return"0"==t&&1/r==-Xt?"-0":t}function ee(r){return null==r?"":te(r)}function ne(r,t){return h(r)?r:Wt(r,t)?[r]:Kt(ee(r))}var oe=1/0;function ie(r){if("string"==typeof r||Nt(r))return r;var t=r+"";return"0"==t&&1/r==-oe?"-0":t}function ae(r,t){for(var e=0,n=(t=ne(t,r)).length;null!=r&&e<n;)r=r[ie(t[e++])];return e&&e==n?r:void 0}function ce(r,t,e){var n=null==r?void 0:ae(r,t);return void 0===n?e:n}function ue(r,t){return null!=r&&t in Object(r)}function le(r,t,e){for(var n=-1,o=(t=ne(t,r)).length,i=!1;++n<o;){var a=ie(t[n]);if(!(i=null!=r&&e(r,a)))break;r=r[a]}return i||++n!=o?i:!!(o=null==r?0:r.length)&&U(o)&&z(a,o)&&(h(r)||C(r))}var fe=1,se=2;function ve(r,t){return Wt(r)&&Rt(t)?Tt(ie(r),t):function(e){var n=ce(e,r);return void 0===n&&n===t?function(r,t){return null!=r&&le(r,t,ue)}(e,r):zt(t,n,fe|se)}}function pe(r){return r}function he(r){return Wt(r)?(t=ie(r),function(r){return null==r?void 0:r[t]}):function(r){return function(t){return ae(t,r)}}(r);var t}function de(r){return"function"==typeof r?r:null==r?pe:"object"==typeof r?h(r)?ve(r[0],r[1]):$t(r):he(r)}function ye(r,t,e,n,o){return o(r,function(r,o,i){e=n?(n=!1,r):t(e,r,o,i)}),e}var be={isString:b,isArray:g,reduce:function(r,t,e){var n=h(r)?j:ye,o=arguments.length<3;return n(r,de(t),e,o,lr)}},ge=/^\d+$/,je=/^[a-zA-Z_$]+([\w_$]*)$/;function _e(r){return function(t){return r.isString(t)?t:r.isArray(t)?r.reduce(t,function(r,t){return ge.test(t)?r+"["+t+"]":je.test(t)?r+(r?".":"")+t:r+'["'+t.toString().replace(/"/g,'\\"')+'"]'},""):void 0}}var Oe=_e(be),me=function(){try{var r=Pr(Object,"defineProperty");return r({},"",{}),r}catch(r){}}();function Ae(r,t,e){"__proto__"==t&&me?me(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function we(r,t,e){(void 0===e||fr(r[t],e))&&(void 0!==e||t in r)||Ae(r,t,e)}var ke="object"==typeof r&&r&&!r.nodeType&&r,Pe=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=Pe&&Pe.exports===ke?n.Buffer:void 0,De=Ce?Ce.allocUnsafe:void 0;function Se(r,t){if(t)return r.slice();var e=r.length,n=De?De(e):new r.constructor(e);return r.copy(n),n}function Ie(r){var t=new r.constructor(r.byteLength);return new Wr(t).set(new Wr(r)),t}function Ee(r,t){var e=t?Ie(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}function Fe(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var xe=Object.create,ze=function(){function r(){}return function(t){if(!Y(t))return{};if(xe)return xe(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}}(),Me=J(Object.getPrototypeOf,Object);function Ue(r){return"function"!=typeof r.constructor||H(r)?{}:ze(Me(r))}var Re="[object Object]",Te=Function.prototype,$e=Object.prototype,Be=Te.toString,Ne=$e.hasOwnProperty,Le=Be.call(Object);function Ve(r){if(!d(r)||p(r)!=Re)return!1;var t=Me(r);if(null===t)return!0;var e=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&Be.call(e)==Le}function We(r,t){if(("constructor"!==t||"function"!=typeof r[t])&&"__proto__"!=t)return r[t]}var qe=Object.prototype.hasOwnProperty;function Ge(r,t,e){var n=r[t];qe.call(r,t)&&fr(n,e)&&(void 0!==e||t in r)||Ae(r,t,e)}function Ze(r,t,e,n){var o=!e;e||(e={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=n?n(e[c],r[c],c,e,r):void 0;void 0===u&&(u=r[c]),o?Ae(e,c,u):Ge(e,c,u)}return e}var He=Object.prototype.hasOwnProperty;function Je(r){if(!Y(r))return function(r){var t=[];if(null!=r)for(var e in Object(r))t.push(e);return t}(r);var t=H(r),e=[];for(var n in r)("constructor"!=n||!t&&He.call(r,n))&&e.push(n);return e}function Ke(r){return ir(r)?G(r,!0):Je(r)}function Qe(r,t,e,n,o,i,a){var c=We(r,e),u=We(t,e),l=a.get(u);if(l)we(r,e,l);else{var f,s=i?i(c,u,e+"",r,t,a):void 0,v=void 0===s;if(v){var p=h(u),y=!p&&E(u),b=!p&&!y&&W(u);s=u,p||y||b?h(c)?s=c:d(f=c)&&ir(f)?s=Fe(c):y?(v=!1,s=Se(u,!0)):b?(v=!1,s=Ee(u,!0)):s=[]:Ve(u)||C(u)?(s=c,C(c)?s=function(r){return Ze(r,Ke(r))}(c):Y(c)&&!or(c)||(s=Ue(u))):v=!1}v&&(a.set(u,s),o(s,u,n,i,a),a.delete(u)),we(r,e,s)}}function Xe(r,t,e,n,o){r!==t&&O(t,function(i,a){if(o||(o=new Rr),Y(i))Qe(r,t,a,e,Xe,n,o);else{var c=n?n(We(r,a),i,a+"",r,t,o):void 0;void 0===c&&(c=i),we(r,a,c)}},Ke)}function Ye(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var rn=Math.max;var tn=me?function(r,t){return me(r,"toString",{configurable:!0,enumerable:!1,value:(e=t,function(){return e}),writable:!0});var e}:pe,en=800,nn=16,on=Date.now;var an,cn,un,ln=(an=tn,cn=0,un=0,function(){var r=on(),t=nn-(r-un);if(un=r,t>0){if(++cn>=en)return arguments[0]}else cn=0;return an.apply(void 0,arguments)});function fn(r,t){return ln(function(r,t,e){return t=rn(void 0===t?r.length-1:t,0),function(){for(var n=arguments,o=-1,i=rn(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=n[o];return c[t]=e(a),Ye(r,this,c)}}(r,t,pe),r+"")}function sn(r,t,e){if(!Y(e))return!1;var n=typeof t;return!!("number"==n?ir(e)&&z(t,e.length):"string"==n&&t in e)&&fr(e[t],r)}var vn,pn=(vn=function(r,t,e){Xe(r,t,e)},fn(function(r,t){var e=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=vn.length>3&&"function"==typeof o?(n--,o):void 0,i&&sn(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),r=Object(r);++e<n;){var a=t[e];a&&vn(r,a,e,o)}return r}));function hn(r){return h(r)?Qt(r,ie):Nt(r)?[r]:Fe(Kt(ee(r)))}var dn="[object Map]",yn="[object Set]",bn=Object.prototype.hasOwnProperty;function gn(r){if(null==r)return!0;if(ir(r)&&(h(r)||"string"==typeof r||"function"==typeof r.splice||E(r)||W(r)||C(r)))return!r.length;var t=Ct(r);if(t==dn||t==yn)return!r.size;if(H(r))return!X(r).length;for(var e in r)if(bn.call(r,e))return!1;return!0}var jn=NaN,_n=/^\s+|\s+$/g,On=/^[-+]0x[0-9a-f]+$/i,mn=/^0b[01]+$/i,An=/^0o[0-7]+$/i,wn=parseInt;var kn=1/0,Pn=17976931348623157e292;function Cn(r){return r?(r=function(r){if("number"==typeof r)return r;if(Nt(r))return jn;if(Y(r)){var t="function"==typeof r.valueOf?r.valueOf():r;r=Y(t)?t+"":t}if("string"!=typeof r)return 0===r?r:+r;r=r.replace(_n,"");var e=mn.test(r);return e||An.test(r)?wn(r.slice(2),e?2:8):On.test(r)?jn:+r}(r))===kn||r===-kn?(r<0?-1:1)*Pn:r==r?r:0:0===r?r:0}function Dn(r){var t=Cn(r),e=t%1;return t==t?e?t-e:t:0}var Sn=Math.max;function In(r){return"function"==typeof r?r:pe}function En(r,t){for(var e=0;e<r.length&&!1!==t(r[e],e,r);e++);return r}function Fn(r,t){var e;return lr(r,function(r,n,o){return!(e=t(r,n,o))}),!!e}var xn=pn({isObject:Y,isEmpty:gn,findIndex:function(r,t,e){var n=null==r?0:r.length;if(!n)return-1;var o=null==e?0:Dn(e);return o<0&&(o=Sn(n+o,0)),function(r,t,e,n){for(var o=r.length,i=e+(n?1:-1);n?i--:++i<o;)if(t(r[i],i,r))return i;return-1}(r,de(t),o)},forOwn:function(r,t){return r&&cr(r,In(t))},forArray:En,get:ce,isArray:g},be,{some:function(r,t,e){var n=h(r)?Br:Fn;return e&&sn(r,t,e)&&(t=void 0),n(r,de(t))},get:ce,isEmpty:gn}),zn=pn({identity:pe,merge:pn,isArray:g,isString:b,toPath:hn},xn);function Mn(r){var t=function(r){var t=_e(r),e=function(r){return function(t,e){return r.some(e,function(e){var n=r.get(t,e);return!r.isEmpty(n)})}}(r),n=r.each||r.forArray;return function o(i,a,c,u,l,f,s,v,p,h){if(!c.break){var d,y={value:i,key:u,path:"array"==c.pathFormat?l:t(l),parent:s},b=v.concat([y]),g=void 0,j=void 0,_=void 0;c.checkCircular&&(r.isObject(i)&&!r.isEmpty(i)?_=v[j=r.findIndex(v,function(r){return r.value===i})]||null:(j=-1,_=null),g=-1!==j);var O=!r.isObject(i)||r.isEmpty(i)||g||void 0!==c.childrenPath&&!e(i,c.childrenPath),m=(f||c.includeRoot)&&(!c.leavesOnly||O);if(m){var A={path:"array"==c.pathFormat?l:t(l),parent:s,parents:v,obj:p,depth:f,isCircular:g,circularParent:_,circularParentIndex:j,isLeaf:O,break:function(){return c.break=!0,!1}};void 0!==c.childrenPath&&(y.childrenPath="array"==c.pathFormat?h:t(h),A.childrenPath=y.childrenPath),d=a(i,u,s&&s.value,A)}if(!c.break&&!1!==d&&!g&&r.isObject(i))if(void 0!==c.childrenPath){function w(t,e){t&&r.isObject(t)&&r.forOwn(t,function(r,t){var n=(l||[]).concat(e||[],[t]);o(r,a,c,t,n,f+1,y,b,p,e)})}!f&&c.rootIsChildren?w(i,void 0):n(c.childrenPath,function(t){w(r.get(i,t),t)})}else r.forOwn(i,function(t,e){if(!r.isArray(i)||void 0!==t||e in i){var n=(l||[]).concat([e]);o(t,a,c,e,n,f+1,y,b,p)}});c.callbackAfterIterate&&m&&(A.afterIterate=!0,a(i,u,s&&s.value,A))}}}(r);return function(e,n,o){if(void 0===n&&(n=r.identity),void 0!==(o=r.merge({includeRoot:!r.isArray(e),pathFormat:"string",checkCircular:!1,leavesOnly:!1},o||{})).childrenPath){if(o.includeRoot||void 0!==o.rootIsChildren||(o.rootIsChildren=r.isArray(e)),!r.isString(o.childrenPath)&&!r.isArray(o.childrenPath))throw Error("childrenPath can be string or array");r.isString(o.childrenPath)&&(o.childrenPath=[o.childrenPath]);for(var i=o.childrenPath.length-1;i>=0;i--)o.childrenPath[i]=r.toPath(o.childrenPath[i])}return t(e,n,o,void 0,void 0,0,void 0,[],e),e}}var Un=Mn(zn),Rn=Un;var Tn=function(r){var t=Mn(r);return function(e,n){(n=r.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!n||void 0===n.childrenPath},n||{}))&&void 0!==n.leafsOnly&&(n.leavesOnly=n.leafsOnly);var o={pathFormat:"string",checkCircular:n.checkCircular,includeRoot:n.includeRoot,childrenPath:n.childrenPath,rootIsChildren:n.rootIsChildren,leavesOnly:n.leavesOnly},i={};return t(e,function(r,t,e,o){o.isCircular&&!n.includeCircularPath||void 0!==o.path&&(i[o.path]=r)},o),i}}(pn({merge:pn},zn));var $n=function(r){var t=Mn(r);return function(e,n){n&&void 0!==n.leafsOnly&&(n.leavesOnly=n.leafsOnly);var o={pathFormat:(n=r.merge({checkCircular:!1,includeCircularPath:!0,leavesOnly:!n||void 0===n.childrenPath,pathFormat:"string"},n||{})).pathFormat,checkCircular:n.checkCircular,includeRoot:n.includeRoot,childrenPath:n.childrenPath,rootIsChildren:n.rootIsChildren,leavesOnly:n.leavesOnly},i=[];return t(e,function(r,t,e,o){o.isCircular&&!n.includeCircularPath||void 0!==o.path&&i.push(o.path)},o),i}}(pn({merge:pn},zn)),Bn=$n;function Nn(r,t){for(var e=-1,n=null==r?0:r.length;++e<n&&!1!==t(r[e],e,r););return r}var Ln=Object.getOwnPropertySymbols?function(r){for(var t=[];r;)ut(t,pt(r)),r=Me(r);return t}:ft;function Vn(r){return lt(r,Ke,Ln)}var Wn=Object.prototype.hasOwnProperty;var qn=/\w*$/;var Gn=o?o.prototype:void 0,Zn=Gn?Gn.valueOf:void 0;var Hn="[object Boolean]",Jn="[object Date]",Kn="[object Map]",Qn="[object Number]",Xn="[object RegExp]",Yn="[object Set]",ro="[object String]",to="[object Symbol]",eo="[object ArrayBuffer]",no="[object DataView]",oo="[object Float32Array]",io="[object Float64Array]",ao="[object Int8Array]",co="[object Int16Array]",uo="[object Int32Array]",lo="[object Uint8Array]",fo="[object Uint8ClampedArray]",so="[object Uint16Array]",vo="[object Uint32Array]";function po(r,t,e){var n,o,i,a=r.constructor;switch(t){case eo:return Ie(r);case Hn:case Jn:return new a(+r);case no:return function(r,t){var e=t?Ie(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}(r,e);case oo:case io:case ao:case co:case uo:case lo:case fo:case so:case vo:return Ee(r,e);case Kn:return new a;case Qn:case ro:return new a(r);case Xn:return(i=new(o=r).constructor(o.source,qn.exec(o))).lastIndex=o.lastIndex,i;case Yn:return new a;case to:return n=r,Zn?Object(Zn.call(n)):{}}}var ho="[object Map]";var yo=L&&L.isMap,bo=yo?T(yo):function(r){return d(r)&&Ct(r)==ho},go="[object Set]";var jo=L&&L.isSet,_o=jo?T(jo):function(r){return d(r)&&Ct(r)==go},Oo=1,mo=2,Ao=4,wo="[object Arguments]",ko="[object Function]",Po="[object GeneratorFunction]",Co="[object Object]",Do={};function So(r,t,e,n,o,i){var a,c=t&Oo,u=t&mo,l=t&Ao;if(e&&(a=o?e(r,n,o,i):e(r)),void 0!==a)return a;if(!Y(r))return r;var f=h(r);if(f){if(a=function(r){var t=r.length,e=new r.constructor(t);return t&&"string"==typeof r[0]&&Wn.call(r,"index")&&(e.index=r.index,e.input=r.input),e}(r),!c)return Fe(r,a)}else{var s=Ct(r),v=s==ko||s==Po;if(E(r))return Se(r,c);if(s==Co||s==wo||v&&!o){if(a=u||v?{}:Ue(r),!c)return u?function(r,t){return Ze(r,Ln(r),t)}(r,function(r,t){return r&&Ze(t,Ke(t),r)}(a,r)):function(r,t){return Ze(r,pt(r),t)}(r,function(r,t){return r&&Ze(t,ar(t),r)}(a,r))}else{if(!Do[s])return o?r:{};a=po(r,s,c)}}i||(i=new Rr);var p=i.get(r);if(p)return p;i.set(r,a),_o(r)?r.forEach(function(n){a.add(So(n,t,e,n,r,i))}):bo(r)&&r.forEach(function(n,o){a.set(o,So(n,t,e,o,r,i))});var d=l?u?Vn:ht:u?keysIn:ar,y=f?void 0:d(r);return Nn(y||r,function(n,o){y&&(n=r[o=n]),Ge(a,o,So(n,t,e,o,r,i))}),a}Do[wo]=Do["[object Array]"]=Do["[object ArrayBuffer]"]=Do["[object DataView]"]=Do["[object Boolean]"]=Do["[object Date]"]=Do["[object Float32Array]"]=Do["[object Float64Array]"]=Do["[object Int8Array]"]=Do["[object Int16Array]"]=Do["[object Int32Array]"]=Do["[object Map]"]=Do["[object Number]"]=Do[Co]=Do["[object RegExp]"]=Do["[object Set]"]=Do["[object String]"]=Do["[object Symbol]"]=Do["[object Uint8Array]"]=Do["[object Uint8ClampedArray]"]=Do["[object Uint16Array]"]=Do["[object Uint32Array]"]=!0,Do["[object Error]"]=Do[ko]=Do["[object WeakMap]"]=!1;var Io=4;function Eo(r){return So(r,Io)}var Fo={isArray:g,clone:Eo,toPath:hn,get:ce};function xo(r){return function(t,e){var n=(e=r.isArray(e)?r.clone(e):r.toPath(e)).pop(),o=e.length?r.get(t,e):t;return void 0!==o&&n in o}}var zo=xo(Fo);function Mo(r){return function(r){for(var t=[],e=0;e<r.length;e++)e in r||t.push(e);for(var n=t.length;n--;)r.splice(t[n],1);return r}}var Uo=Mo(),Ro=pn({merge:pn,isArray:g,forArray:En},{},zn);function To(r){var t=Mn(r),e=Mo(),n=r.each||r.forArray;return function(o,i){var a={checkCircular:(i=r.merge({checkCircular:!1},i||{})).checkCircular},c=[];return t(o,function(t,e,n,o){!o.isCircular&&r.isArray(t)&&c.push(t)},a),r.isArray(o)&&c.push(o),n(c,e),o}}var $o=To(Ro),Bo=1,No=4;function Lo(r){return So(r,Bo|No)}function Vo(r,t){for(var e=null==r?0:r.length;e--&&!1!==t(r[e],e,r););return r}var Wo=_(!0);var qo=ur(function(r,t){return r&&Wo(r,t,ar)},!0);var Go=Object.prototype.hasOwnProperty;function Zo(r,t){return null!=r&&Go.call(r,t)}function Ho(r,t,e){return null==r?r:function(r,t,e,n){if(!Y(r))return r;for(var o=-1,i=(t=ne(t,r)).length,a=i-1,c=r;null!=c&&++o<i;){var u=ie(t[o]),l=e;if(o!=a){var f=c[u];void 0===(l=n?n(f,u,c):void 0)&&(l=Y(f)?f:z(t[o+1])?[]:{})}Ge(c,u,l),c=c[u]}return r}(r,t,e)}function Jo(r,t,e){var n=-1,o=r.length;t<0&&(t=-t>o?0:o+t),(e=e>o?o:e)<0&&(e+=o),o=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=r[n+t];return i}function Ko(r,t){return null==(r=function(r,t){return t.length<2?r:ae(r,Jo(t,0,-1))}(r,t=ne(t,r)))||delete r[ie((e=t,n=null==e?0:e.length,n?e[n-1]:void 0))];var e,n}var Qo=1;function Xo(r){return de("function"==typeof r?r:So(r,Qo))}var Yo={get:ce},ri=pn({merge:pn,clone:Eo,cloneDeep:Lo,isArray:g,isObject:Y,each:function(r,t){return(h(r)?Nn:lr)(r,In(t))},eachRight:function(r,t){return(h(r)?Vo:qo)(r,In(t))},has:function(r,t){return null!=r&&le(r,t,Zo)},set:Ho,unset:function(r,t){return null==r||Ko(r,t)},isPlainObject:Ve,iteratee:Xo},zn,be,Yo,Ro,Fo);function ti(r){return function(t,e){return void 0===e?t:r.get(t,e)}}function ei(r){var t=Mn(r),e=_e(r),n=ti(r),o=To(r),i=xo(r);return function(a,c,u){c=r.iteratee(c),u?void 0!==(u=r.cloneDeep(u)).leafsOnly&&(u.leavesOnly=u.leafsOnly):u={},u.onTrue||(u.onTrue={}),u.onFalse||(u.onFalse={}),u.onUndefined||(u.onUndefined={}),void 0!==u.childrenPath&&(void 0===u.onTrue.skipChildren&&(u.onTrue.skipChildren=!1),void 0===u.onUndefined.skipChildren&&(u.onUndefined.skipChildren=!1),void 0===u.onFalse.skipChildren&&(u.onFalse.skipChildren=!1),void 0===u.onTrue.cloneDeep&&(u.onTrue.cloneDeep=!0),void 0===u.onUndefined.cloneDeep&&(u.onUndefined.cloneDeep=!0),void 0===u.onFalse.cloneDeep&&(u.onFalse.cloneDeep=!0));var l,f={pathFormat:(u=r.merge({checkCircular:!1,keepCircular:!0,leavesOnly:void 0===u.childrenPath,condense:!0,cloneDeep:r.cloneDeep,pathFormat:"string",onTrue:{skipChildren:!0,cloneDeep:!0,keepIfEmpty:!0},onUndefined:{skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1},onFalse:{skipChildren:!0,cloneDeep:!1,keepIfEmpty:!1}},u)).pathFormat,checkCircular:u.checkCircular,childrenPath:u.childrenPath,includeRoot:u.includeRoot,callbackAfterIterate:!0,leavesOnly:!1},s=r.isArray(a)?[]:r.isObject(a)?{}:null,v={},p=[];return t(a,function(t,n,o,i){delete i.break;var a=e(i.path);if(!i.afterIterate){if(i.isCircular)return r.unset(s,i.path),u.keepCircular&&p.push([i.path,i.circularParent.path]),!1;var f=!u.leavesOnly||i.isLeaf?c(t,n,o,i):void 0;return r.isObject(f)||(f=void 0===f?r.clone(u.onUndefined):f?r.clone(u.onTrue):r.clone(u.onFalse)),void 0===f.empty&&(f.empty=!0),void 0!==a?(v[a]=f,l||(l={skipChildren:!1,cloneDeep:!1,keepIfEmpty:!1,empty:f.empty})):l=f,!f.keepIfEmpty&&f.skipChildren||(u.cloneDeep&&f.cloneDeep?void 0!==i.path?r.set(s,i.path,u.cloneDeep(t)):s=u.cloneDeep(t):void 0!==i.path?r.set(s,i.path,r.isArray(t)?[]:r.isPlainObject(t)?{}:t):s=r.isArray(t)?[]:r.isPlainObject(t)?{}:t),!f.skipChildren}!i.afterIterate||i.isCircular||(void 0===a&&l.empty&&!l.keepIfEmpty?s=null:void 0!==a&&v[a].empty&&!v[a].keepIfEmpty?r.unset(s,i.path):(r.eachRight(i.parents,function(r){var t=e(r.path);if(void 0===t||!v[t].empty)return!1;v[t].empty=!1}),l.empty=!1))},f),l&&l.empty&&!l.keepIfEmpty&&(s=null),r.each(p,function(t){var e;(void 0===t[1]||i(s,t[1]))&&(e=r.has(u,"replaceCircularBy")?u.replaceCircularBy:n(s,t[1]),r.set(s,t[0],e))}),u.condense&&(s=o(s,{checkCircular:u.checkCircular})),!r.isArray(s)||s.length||f.includeRoot?s:null}}var ni=ei(ri);var oi=pn({isString:b,isArray:g,toPath:hn,isEqual:function(r,t){return zt(r,t)},takeRight:function(r,t,e){var n=null==r?0:r.length;return n?Jo(r,(t=n-(t=e||void 0===t?1:Dn(t)))<0?0:t,n):[]},cloneDeep:Lo},be),ii=pn({merge:pn},oi,ri);function ai(r){var t=_e(r);return function(e,n){var o,i;r.isString(e)?o=e:i=e,n=r.isArray(n)?r.cloneDeep(n):[n];for(var a=0;a<n.length;a++)if(r.isString(n[a])&&(n[a]=r.toPath(n[a])),r.isArray(n[a])){if(void 0===i&&(i=r.toPath(o)),i.length>=n[a].length&&r.isEqual(r.takeRight(i,n[a].length),n[a]))return n[a]}else{if(!(n[a]instanceof RegExp))throw new Error("To match path use only string/regex or array of them.");if(void 0===o&&(o=t(e)),n[a].test(o))return n[a]}return!1}}function ci(r){var t=ai(r),e=ei(r);return function(n,o,i){var a=!(i=r.merge({invert:!1},i||{})).invert;return(i=r.merge({onMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:!a},onNotMatch:{cloneDeep:!1,skipChildren:!1,keepIfEmpty:a}},i)).leavesOnly=!1,i.childrenPath=void 0,i.includeRoot=void 0,i.pathFormat="array",i.onTrue=i.invert?i.onMatch:i.onNotMatch,i.onFalse=i.invert?i.onNotMatch:i.onMatch,e(n,function(r,e,n,a){return!1!==t(a.path,o)?i.invert:!i.invert},i)}}var ui=ci(ii);var li=function(r){var t=ci(r);return function(e,n,o){return(o=r.merge({invert:!1},o||{})).invert=!0,t(e,n,o)}}(pn({merge:pn},ii)),fi=ti(Yo),si=ai(oi);var vi=function(r){var t=Mn(r);return function(e,n,o,i){n=r.iteratee(n);var a=void 0!==o;return t(e,function(r,t,e,i){delete i.break,a?o=n(o,r,t,e,i):(o=r,a=!0)},i),o}}(pn({iteratee:Xo},zn));var pi=function(r){var t=Mn(r);return function(e,n,o){n=r.iteratee(n);var i=r.isArray(e)?[]:r.isObject(e)?{}:r.clone(e);return t(e,function(t,e,o,a){delete a.break;var c=n(t,e,o,a);void 0===e?i=c:r.set(i,a.path,c)},o),i}}(pn({iteratee:Xo,isArray:h,isObject:Y,clone:Eo,set:Ho},zn));return r.condense=Uo,r.condenseDeep=$o,r.eachDeep=Un,r.exists=zo,r.filterDeep=ni,r.forEachDeep=Rn,r.index=Tn,r.keysDeep=Bn,r.mapDeep=pi,r.obtain=fi,r.omitDeep=ui,r.pathMatches=si,r.pathToString=Oe,r.paths=$n,r.pickDeep=li,r.reduceDeep=vi,r}({}); | ||
//# sourceMappingURL=deepdash.standalone.min.js.map |
# Change Log | ||
## v4-3-0 | ||
*(2019-12-7)* | ||
**Features added** | ||
- [eachDeep](/#eachdeep-foreachdeep) now supports break.(as context.break function passed into iteratee) | ||
**Bugs fixed** | ||
- [filterDeep](/#filterdeep) didn't use onUndefined options for parents skipped due leavesOnly mode. | ||
## v4-2-0 | ||
@@ -4,0 +13,0 @@ *(2019-04-19)* |
# Deepdash | ||
> v4.2.0 - [see changes](/changelog#v4-2-0) | ||
> v4.3.0 - [see changes](/changelog#v4-3-0) | ||
@@ -312,2 +312,3 @@ Looking for eachDeep, filterDeep, omitDeep, pickDeep, keysDeep etc? Tree traversal extension for Lodash. | ||
- `afterIterate` - this flag will be true if it's a second invocation of the `iteratee`. See `options.callbackAfterIterate` for details. | ||
- `break` - method to abort the iteration, no matter how deep is process currently. Works in eachDeep/forEachDeep only, not supported by filterDeep etc. | ||
* next three fields are available if `options.checkCircular` was `true`, otherwise they will be `undefined` | ||
@@ -314,0 +315,0 @@ - `isCircular` - true if the current value is a circular reference. |
@@ -98,2 +98,3 @@ 'use strict'; | ||
function(value, key, parent, context) { | ||
delete context.break; | ||
var curPath = pathToString(context.path); | ||
@@ -206,3 +207,2 @@ if (!context.afterIterate) { | ||
} | ||
// console.log('←', replies); | ||
@@ -217,20 +217,2 @@ return; | ||
} | ||
// else { | ||
// // console.log(replies); | ||
// // console.log(res); | ||
// _.each(replies, (reply, path) => { | ||
// if (reply.empty) { | ||
// if (!reply.keepIfEmpty) { | ||
// if (exists(res, path)) { | ||
// console.log('del empty', path); | ||
// } | ||
// // console.log('remove ' + path); | ||
// _.unset(res, path); | ||
// } | ||
// // else if (!_.has(res, path)) { | ||
// // console.log('miss empty', path); | ||
// // } | ||
// } | ||
// }); | ||
// } | ||
_.each(foundCircular, function(c) { | ||
@@ -237,0 +219,0 @@ var cv; |
@@ -14,2 +14,3 @@ 'use strict'; | ||
function(value, key, parent, context) { | ||
delete context.break; | ||
var r = iteratee(value, key, parent, context); | ||
@@ -16,0 +17,0 @@ if (key === undefined) { |
@@ -14,2 +14,3 @@ 'use strict'; | ||
function(value, key, parent, context) { | ||
delete context.break; | ||
if (!accumulatorInited) { | ||
@@ -16,0 +17,0 @@ accumulator = value; |
{ | ||
"name": "deepdash", | ||
"version": "4.2.18", | ||
"version": "4.3.0", | ||
"description": "➔ 𝐃eep standalone lib / 𝐋odash extension: ✓ eachDeep ✓ filterDeep ✓ mapDeep ✓ reduceDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parents stack ⋮ Circular check ⋮ Leaves only mode ⋮ Children mode ⋮ cherry-pick ⋮ esm", | ||
@@ -5,0 +5,0 @@ "main": "deepdash.js", |
@@ -22,2 +22,3 @@ 'use strict'; | ||
) { | ||
if (options.break) { return; } | ||
var currentObj = { | ||
@@ -68,2 +69,6 @@ value: value, | ||
isLeaf: isLeaf, | ||
"break": function () { | ||
options.break = true; | ||
return false; | ||
}, | ||
}; | ||
@@ -79,24 +84,25 @@ if (options.childrenPath !== undefined) { | ||
} | ||
function forChildren(children, cp) { | ||
if (children && _.isObject(children)) { | ||
_.forOwn(children, function(childValue, childKey) { | ||
var childPath = (path || []).concat( (cp || []), [childKey]); | ||
if (!options.break && res !== false && !isCircular && _.isObject(value)) { | ||
if (options.childrenPath !== undefined) { | ||
function forChildren(children, cp) { | ||
if (children && _.isObject(children)) { | ||
_.forOwn(children, function(childValue, childKey) { | ||
var childPath = (path || []).concat( (cp || []), [childKey]); | ||
iterate( | ||
childValue, | ||
callback, | ||
options, | ||
childKey, | ||
childPath, | ||
depth + 1, | ||
currentObj, | ||
currentParents, | ||
obj, | ||
cp | ||
); | ||
}); | ||
} | ||
} | ||
if (res !== false && !isCircular && _.isObject(value)) { | ||
if (options.childrenPath !== undefined) { | ||
iterate( | ||
childValue, | ||
callback, | ||
options, | ||
childKey, | ||
childPath, | ||
depth + 1, | ||
currentObj, | ||
currentParents, | ||
obj, | ||
cp | ||
); | ||
}); | ||
} | ||
} | ||
if (!depth && options.rootIsChildren) { | ||
@@ -103,0 +109,0 @@ forChildren(value, undefined); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1087086
68969
7716