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

object-keys-x

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-keys-x - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

78

dist/object-keys-x.esm.js

@@ -21,7 +21,7 @@ import toObject from 'to-object-x';

if (nativeKeys) {
var isCorrectRes = function _isCorrectRes(r, length) {
var isCorrectRes = function isCorrectRes(r, length) {
return r.threw === false && isArray(r.value) && r.value.length === length;
};
var either = function _either(r, a, b) {
var either = function either(r, a, b) {
var x = r.value[0];

@@ -59,12 +59,29 @@ var y = r.value[1];

}
/**
* This method returns an array of a given object's own enumerable properties,
* in the same order as that provided by a for...in loop (the difference being
* that a for-in loop enumerates properties in the prototype chain as well).
*
* @param {*} obj - The object of which the enumerable own properties are to be returned.
* @returns {Array} An array of strings that represent all the enumerable properties of the given object.
*/
export var patched = function keys(object) {
var obj = toObject ? toObject(object) : object;
if (worksWithArgs !== true && isArguments(obj)) {
obj = arraySlice(obj);
} else if (worksWithStr !== true && isString(obj)) {
obj = splitIfBoxed(obj);
} else if (worksWithRegex !== true && isRegexp(obj)) {
var regexKeys = [];
/* eslint-disable-next-line no-restricted-syntax */
for (var key in obj) {
// noinspection JSUnfilteredForInLoop
if (has(obj, key)) {
regexKeys[regexKeys.length] = key;
}
}
return regexKeys;
}
return nativeKeys(obj);
};
export var implementation = function keys(object) {
return objKeys(toObject(object));
};
var objectKeys;

@@ -76,35 +93,18 @@

} else {
objectKeys = function keys(object) {
var obj = toObject ? toObject(object) : object;
if (worksWithArgs !== true && isArguments(obj)) {
obj = arraySlice(obj);
} else if (worksWithStr !== true && isString(obj)) {
obj = splitIfBoxed(obj);
} else if (worksWithRegex !== true && isRegexp(obj)) {
var regexKeys = [];
/* eslint-disable-next-line no-restricted-syntax */
for (var key in obj) {
// noinspection JSUnfilteredForInLoop
if (has(obj, key)) {
regexKeys[regexKeys.length] = key;
}
}
return regexKeys;
}
return nativeKeys(obj);
};
objectKeys = patched;
}
} else {
objectKeys = function keys(object) {
return objKeys(toObject(object));
};
}
/**
* This method returns an array of a given object's own enumerable properties,
* in the same order as that provided by a for...in loop (the difference being
* that a for-in loop enumerates properties in the prototype chain as well).
*
* @param {*} obj - The object of which the enumerable own properties are to be returned.
* @returns {Array} An array of strings that represent all the enumerable properties of the given object.
*/
var ok = objectKeys;
export default ok;
var $objectKeys = isWorking ? objectKeys : implementation;
export default $objectKeys;
//# sourceMappingURL=object-keys-x.esm.js.map

@@ -5,18 +5,12 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-08-14T15:25:51.944Z",
"date": "2019-08-20T19:52:43.338Z",
"describe": "",
"description": "An ES6 Object.keys shim.",
"file": "object-keys-x.min.js",
"hash": "e5f1660f2315bf59cc8f",
"hash": "b4f8332e3a394314c659",
"license": "MIT",
"version": "3.1.0"
"version": "3.1.1"
}
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.objectKeysX=t():e.objectKeysX=t()}(function(){"use strict";var e,t={}.constructor,r=t.prototype,n=t.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return n?n(r,"$$globalThis$$",{get:i,configurable:!0}):r.__defineGetter__("$$globalThis$$",i),e="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,e}catch(e){return o()}}(),function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(e,t,r){"use strict";var n=Object.prototype.toString;if(r(7)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,r){"use strict";
/*!
* is-primitive <https://github.com/jonschlinkert/is-primitive>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,r){"use strict";var n=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},function(e,t,r){"use strict";var n=Object.prototype.toString;e.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.prototype.toString,i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o.call(e)},c=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o.call(e)&&"[object Function]"===o.call(e.callee)},u=function(){return i(arguments)}();i.isLegacyArguments=c,e.exports=u?i:c},function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,r){"use strict";var n=Array.prototype.slice,o=r(3),i=Object.keys,c=i?function(e){return i(e)}:r(10),u=Object.keys;c.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?u(n.call(e)):u(e)}):Object.keys=c;return Object.keys||c},e.exports=c},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(9);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(8))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,c=r(3),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),a=u.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=c(e),u=t&&"[object String]"===i.call(e),p=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var b=a&&r;if(u&&e.length>0&&!o.call(e,0))for(var g=0;g<e.length;++g)p.push(String(g));if(n&&e.length>0)for(var d=0;d<e.length;++d)p.push(String(d));else for(var v in e)b&&"prototype"===v||!o.call(e,v)||p.push(String(v));if(s)for(var m=function(e){if("undefined"==typeof window||!y)return f(e);try{return f(e)}catch(e){return!1}}(e),h=0;h<l.length;++h)m&&"constructor"===l[h]||!o.call(e,l[h])||p.push(l[h]);return p}}e.exports=n},function(e,t,r){"use strict";r.r(t);var n=function(e){return null==e},o=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},i={}.constructor,c=function(e){return i(o(e))},u=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{threw:!1,value:e.apply(this,r)}}catch(e){return{threw:!0,value:e}}},s={}.toString,a=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":s.call(e)},l=[].isArray,f="function"==typeof l&&l,p=u(function(){return!0===f([])&&!1===f({length:0})}),y=!1===p.threw&&!0===p.value?f:function(e){return"[object Array]"===a(e)},b=r(4),g=r.n(b),d=r(0),v=r.n(d);for(var m=u(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&v()(Symbol(""))}.bind(void 0)),h=!1===m.threw&&!0===m.value,w=r(1),j=r.n(w),S=r(5),_=r.n(S),O=function(e){return!!e},$=h&&v()(Symbol.toStringTag),x="Cannot convert a Symbol value to a string",T=x.constructor,E=function(e){if(v()(e))throw new TypeError(x);return T(e)},k=function(e){return E(o(e))},P=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],A="",F=P.length,I=0;I<F;I+=1)P[I].es2016&&P[I].string,P[I].es2018&&(A+=P[I].string);var M=A,N=new(0,/none/.constructor)("^[".concat(M,"]+")),C="".replace,D=function(e){return C.call(k(e),N,"")},G=new(0,/none/.constructor)("[".concat(M,"]+$")),L="".replace,X=function(e){return L.call(k(e),G,"")},H=function(e){return D(X(e))},R=new(0,/none/.constructor)("[".concat(M,"]+"),"g"),q=" ".replace,z=function(e){return q.call(H(e),R," ")},B=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,K="".replace,W=function(e,t){return K.call(k(e),B,arguments.length>1?E(t):"")},Y=u.constructor,U=u.toString,V=/^class /,J=V.test,Q=!1===u(function(){return Y('"use strict"; return class My {};')()}).threw,Z=function(e){return J.call(V,z(W(U.call(e)," ")))},ee=function(e){var t=u(Z,e);return!1===t.threw&&t.value},te=function(e,t){return!j()(e)&&($?function(e,t){return!(Q&&!1===t&&ee(e)||!1!==u.call(e,U).threw)}(e,O(t)):(!Q||!1!==O(t)||!ee(e))&&function(e){var t=a(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t}(e))},re="string".constructor,ne=(0).constructor,oe=h&&Symbol.toPrimitive,ie=h&&Symbol.prototype.valueOf,ce=["toString","valueOf"],ue=["valueOf","toString"],se=function(e,t){o(e),function(e){if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"')}(t);for(var r,n,i="string"===t?ce:ue,c=0;c<2;c+=1)if(r=e[i[c]],te(r)&&(n=r.call(e),j()(n)))return n;throw new TypeError("No default value")},ae=function(e,t){if(t){if(e===re)return"string";if(e===ne)return"number"}return"default"},le=function(e){if(h){if(oe)return function(e,t){var r=e[t];if(!1===n(r)){if(!1===te(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,oe);if(v()(e))return ie}},fe=function(e){var t=e.exoticToPrim,r=e.input,n=e.hint,o=t.call(r,n);if(j()(o))return o;throw new TypeError("unable to convert exotic object to primitive")},pe=function(e,t){var r="default"===t&&(_()(e)||v()(e))?"string":t;return se(e,"default"===r?"number":r)},ye=function(e,t){if(j()(e))return e;var r=ae(t,arguments.length>1),n=le(e);return void 0===n?pe(e,r):fe({exoticToPrim:n,input:e,hint:r})},be=parseInt,ge=(0).constructor,de="".charAt,ve=/^[-+]?0[xX]/,me=ve.test,he=function(e,t){var r=D(E(e));return"᠎"===de.call(r,0)?NaN:be(r,ge(t)||(me.call(ve,r)?16:10))},we=2..constructor,je="Cannot convert a Symbol value to a number".slice,Se=/^0b[01]+$/i,_e=Se.test,Oe=/^0o[0-7]+$/i,$e=new(0,Se.constructor)("[…᠎​￾]","g"),xe=/^[-+]0x[0-9a-f]+$/i,Te=function(e,t){return he(je.call(e,2),t)},Ee=function(e,t){return function(e){return _e.call(Se,e)}(t)?e(Te(t,2)):function(e){return _e.call(Oe,e)}(t)?e(Te(t,8)):null},ke=function(e,t){var r=Ee(e,t);if(null!==r)return r;if(function(e){return _e.call($e,e)}(t)||function(e){return _e.call(xe,e)}(t))return NaN;var n=H(t);return n!==t?e(n):null},Pe=function e(t){var r=function(e){if(v()(e))throw new TypeError("Cannot convert a Symbol value to a number");return e}(ye(t,we));if("string"==typeof r){var n=ke(e,r);if(null!==n)return n}return we(r)},Ae=function(e){return e!=e},Fe=function(e){return"number"==typeof e&&!1===Ae(e)&&e!==1/0&&e!==-1/0},Ie=function(e){var t=Pe(e);return 0===t||Ae(t)?t:t>0?1:-1},Me=Math.abs,Ne=Math.floor,Ce=function(e){var t=Pe(e);return Ae(t)?0:0===t||!1===Fe(t)?t:Ie(t)*Ne(Me(t))},De=function(e){var t=Ce(e);return t<=0?0:t>9007199254740991?9007199254740991:t},Ge={}.constructor("a"),Le="a"===Ge[0]&&0 in Ge,Xe=r(2),He=r.n(Xe),Re="".split,qe=!1===Le&&"function"==typeof Re&&He.a,ze=function(e){return qe&&qe(e)?Re.call(e,""):e},Be=function(e,t){return e>=t?e:t},Ke=function(e,t){return e<0?Be(t+e,0):(r=e)<=(n=t)?r:n;var r,n},We=function(e,t,r){var n=ze(c(e)),o=De(n.length),i=Ke(Ce(t),o),u=void 0===r?o:Ce(r),s=Ke(u,o),a=[];a.length=Be(s-i,0);for(var l=0;i<s;)i in n&&(a[l]=n[i]),l+=1,i+=1;return a},Ye=function(e){return!1===j()(e)&&!1===te(e,!0)};function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ve,Je,Qe,Ze=function(e){var t=ye(e,String);return h&&"symbol"===Ue(t)?t:E(t)},et={}.hasOwnProperty,tt=function(e,t){return et.call(c(e),Ze(t))},rt=h&&Symbol.prototype.toString,nt="function"==typeof rt&&v.a,ot="".constructor,it=function(e){return nt&&nt(e)?rt.call(e):ot(e)},ct=function(e){var t=Pe(e[1]),r=e.length<3?{max:t,min:0}:{max:Pe(e[2]),min:t};if(r.min>r.max)throw new RangeError('"min" must be less than "max"');return r},ut=function(e){var t=Pe(e);if(arguments.length<2)return t;var r=ct(arguments),n=r.max,o=r.min;return t<o?o:t>n?n:t},st=/^(?:0|[1-9]\d*)$/,at=st.test,lt=function(e,t){var r=it(e);if(!1===at.call(st,r))return!1;var n=Pe(r);return arguments.length>1?n<ut(Ce(t),9007199254740991):n<9007199254740991},ft={}.propertyIsEnumerable,pt=function(e,t){return ft.call(c(e),Ze(t))},yt="".charAt,bt={}.constructor,gt=bt.getOwnPropertyDescriptor,dt="function"==typeof gt&&gt,vt=function(e,t){e[Ze(t)]=0;var r=u(dt,e,t);return!1===r.threw&&0===r.value.value};if(dt){var mt="undefined"!=typeof document&&document;if(!mt||vt(mt.createElement("div"),"sentinel")){var ht=u(dt,c("abc"),1);if(!1===ht.threw&&ht.value&&"b"===ht.value.value)if(vt({},"sentinel")){var wt=!1===u(dt,42,"name").threw;Qe=h&&vt({},c(Symbol("")))?wt?dt:function(e,t){return dt(c(e),t)}:wt?function(e,t){return dt(e,Ze(t))}:function(e,t){return dt(c(e),Ze(t))}}else Ve=dt;else Je=dt}}if(!1===O(Qe)||Ve||Je){var jt,St,_t=bt.prototype,Ot=tt(_t,"__defineGetter__");if(Ot){var $t=_t.__lookupGetter__,xt=_t.__lookupSetter__;jt=function(e,t){return $t.call(e,t)},St=function(e,t){return xt.call(e,t)}}Qe=function(e,t){var r,n=c(e),o=Ze(t);if(Ve&&!1===(r=u.call(c,Ve,n,o)).threw)return r.value;var i=He()(n)&&lt(o,n.length);if(Je&&!1===i&&!1===(r=u.call(c,Je,n,o)).threw)return r.value;var s=void 0;if(!1===i&&!1===tt(n,o))return s;if(s={configurable:!1===j()(e)&&!1===i,enumerable:pt(n,o)},Ot){var a=n.__proto__,l=n!==_t;l&&(n.__proto__=_t);var f=jt(n,o),p=St(n,o);if(l&&(n.__proto__=a),f||p)return f&&(s.get=f),p&&(s.set=p),s}return i?(s.value=yt.call(n,o),s.writable=!1):(s.value=n[o],s.writable=!0),s}}var Tt,Et,kt=Qe,Pt=function(e,t){if(j()(e)){var r=arguments.length>1?it(t):"".concat(it(e)," is not an object");throw new TypeError(r)}return e},At={}.constructor,Ft=At.defineProperty,It="function"==typeof Ft&&Ft,Mt=function(e){var t=c(e),r={};if(tt(t,"enumerable")&&(r.enumerable=O(t.enumerable)),tt(t,"configurable")&&(r.configurable=O(t.configurable)),tt(t,"value")&&(r.value=t.value),tt(t,"writable")&&(r.writable=O(t.writable)),tt(t,"get")){var n=t.get;if(void 0!==n&&!1===te(n))throw new TypeError("getter must be a function");r.get=n}if(tt(t,"set")){var o=t.set;if(void 0!==o&&!1===te(o))throw new TypeError("setter must be a function");r.set=o}if((tt(r,"get")||tt(r,"set"))&&(tt(r,"value")||tt(r,"writable")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r};if(It){var Nt=function(e){var t=u(It,e,"sentinel",{});return!1===t.threw&&t.value===e&&"sentinel"in e},Ct="undefined"!=typeof document&&document;Nt({})&&(!1===O(Ct)||Nt(Ct.createElement("div")))?Et=function(e,t,r){return It(Pt(e),Ze(t),Mt(r))}:Tt=It}if(!1===O(It)||Tt){var Dt=At.prototype,Gt=tt(Dt,"__defineGetter__"),Lt=Gt&&Dt.__defineGetter_,Xt=Gt&&Dt.__defineSetter__,Ht=Gt&&Dt.__lookupGetter__,Rt=Gt&&Dt.__lookupSetter__;Et=function(e,t,r){Pt(e);var n=Ze(t),o=Mt(r);if(Tt){var i=u.call(At,Tt,e,n,o);if(!1===i.threw)return i.value}if(tt(o,"value"))if(Gt&&(Ht.call(e,n)||Rt.call(e,n))){var c=e.__proto__;e.__proto__=Dt,delete e[n],e[n]=o.value,e.__proto__=c}else e[n]=o.value;else{if(!1===Gt&&(o.get||o.set))throw new TypeError("getters & setters can not be defined on this javascript engine");o.get&&Lt.call(e,n,o.get),o.set&&Xt.call(e,n,o.set)}return e}}var qt,zt,Bt,Kt,Wt,Yt,Ut=Et,Vt=/none/.exec,Jt=function(e){if(!1===Ye(e))return!1;if(!1===$)return"[object RegExp]"===a(e);var t=kt(e,"lastIndex");return!0===(t&&tt(t,"value"))&&function(e,t){try{return e.lastIndex=0,Vt.call(e),!0}catch(e){return!1}finally{Ut(e,"lastIndex",t)}}(e,t)},Qt=r(6),Zt=r.n(Qt),er={}.constructor,tr="function"==typeof er.keys&&er.keys;if(tr){var rr=function(e,t){return!1===e.threw&&y(e.value)&&e.value.length===t},nr=function(e,t,r){var n=e.value[0],o=e.value[1];return n===t&&o===r||n===r&&o===t},or={a:1,b:2},ir=u(tr,or);(qt=rr(ir,2)&&nr(ir,"a","b"))&&((or=Object("a")).y=1,qt=rr(ir=u(tr,or),2)&&nr(ir,"0","y")),qt&&(zt=u(tr,null).threw,Bt=rr(u(tr,42),0),Kt=!1===u(tr,/a/g).threw,ir=u(tr,function(){return arguments}(1,2)),Wt=rr(ir,2)&&nr(ir,"0","1"),ir=u(tr,Object("ab")),Yt=rr(ir,2)&&nr(ir,"0","1"))}var cr=qt?zt&&Bt&&Kt&&Wt&&Yt?tr:function(e){var t=c?c(e):e;if(!0!==Wt&&g()(t))t=We(t);else if(!0!==Yt&&He()(t))t=ze(t);else if(!0!==Kt&&Jt(t)){var r=[];for(var n in t)tt(t,n)&&(r[r.length]=n);return r}return tr(t)}:function(e){return Zt()(c(e))};t.default=cr}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.objectKeysX=e():t.objectKeysX=e()}(function(){"use strict";var t,e={}.constructor,n=e.prototype,r=e.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return r?r(n,"$$globalThis$$",{get:i,configurable:!0}):n.__defineGetter__("$$globalThis$$",i),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete n.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}([function(t,e,n){"use strict";var r=Object.prototype.toString;if(n(6)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&i.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,n){"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.prototype.toString,i=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o.call(t)},u=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o.call(t)&&"[object Function]"===o.call(t.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=u,t.exports=c?i:u},function(t,e,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"==typeof t&&null!==t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object Date]"===o.call(t))}},function(t,e,n){"use strict";var r=Array.prototype.slice,o=n(2),i=Object.keys,u=i?function(t){return i(t)}:n(9),c=Object.keys;u.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return o(t)?c(r.call(t)):c(t)}):Object.keys=u;return Object.keys||u},t.exports=u},function(t,e,n){"use strict";(function(e){var r=e.Symbol,o=n(8);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(7))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,u=n(2),c=Object.prototype.propertyIsEnumerable,f=!c.call({toString:null},"toString"),s=c.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),r=u(t),c=e&&"[object String]"===i.call(t),p=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var b=s&&n;if(c&&t.length>0&&!o.call(t,0))for(var g=0;g<t.length;++g)p.push(String(g));if(r&&t.length>0)for(var v=0;v<t.length;++v)p.push(String(v));else for(var d in t)b&&"prototype"===d||!o.call(t,d)||p.push(String(d));if(f)for(var h=function(t){if("undefined"==typeof window||!y)return l(t);try{return l(t)}catch(t){return!1}}(t),m=0;m<a.length;++m)h&&"constructor"===a[m]||!o.call(t,a[m])||p.push(a[m]);return p}}t.exports=r},function(t,e,n){"use strict";n.r(e);var r=function(t){return null==t},o=function(t){if(r(t))throw new TypeError("Cannot call method on ".concat(t));return t},i={}.constructor,u=function(t){return i(o(t))};function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=function(t){return"object"===c(t)?null===t:"function"!=typeof t},s=n(1),a=n.n(s),l={}.constructor("a"),p="a"===l[0]&&0 in l,y=function(){}.bind,b="function"==typeof y&&function(){var t=null,e=null,n=null,r=[];try{var o=y.apply(function(r,o){return n=this,t=r,e=o,arguments},[r,1]),i=o(2);return 1===o.length&&2===i.length&&1===t&&2===e&&n===r}catch(t){return!1}}()&&function(){var t=null,e=null,n=null,r=[1,2,3],o=function(o,i){return t=o,e=i,n=this,r};try{var i=y.apply(o,[null]),u=new i(1,2);return i.length===o.length&&u===r&&1===t&&2===e&&n!==r}catch(t){return!1}}(),g="".split,v=Math.max,d=f.bind,h=f.call,m=b?d.call(h,g):function(t,e){return g.call(t,e)},w=function(t){return a()(t)?m(t,""):t},S=function(t,e){var n=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&f(t))return n;for(var r=p?t:w(t),o=r.length,i=v(0,e)||0;i<o;i+=1)n[n.length]=t[i];return n};function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _=S.bind,O=S.call,$={},x=$.constructor,T=$.toString,E=function(t,e){return t>=e?t:e},k=function(t){if("function"!=typeof t&&"[object Function]"!==T.apply(t))throw new TypeError("bind called on incompatible "+t)},P=[function(t){return function(){return t.apply(this,S(arguments))}},function(t,e){return function(n){return t.apply(this,S(arguments,e,[n]))}},function(t,e){return function(n,r){return t.apply(this,S(arguments,e,[n,r]))}},function(t,e){return function(n,r,o){return t.apply(this,S(arguments,e,[n,r,o]))}},function(t,e){return function(n,r,o,i){return t.apply(this,S(arguments,e,[n,r,o,i]))}},function(t,e){return function(n,r,o,i,u){return t.apply(this,S(arguments,e,[n,r,o,i,u]))}},function(t,e){return function(n,r,o,i,u,c){return t.apply(this,S(arguments,e,[n,r,o,i,u,c]))}},function(t,e){return function(n,r,o,i,u,c,f){return t.apply(this,S(arguments,e,[n,r,o,i,u,c,f]))}},function(t,e){return function(n,r,o,i,u,c,f,s){return t.apply(this,S(arguments,e,[n,r,o,i,u,c,f,s]))}}],F=function(t){var e=j(t,3),n=e[0],r=e[1],o=e[2],i=E(0,r.length-E(0,o.length-2)),u=P[i],c=u?u(n,i):P[0](n);if(r.prototype){var f=function(){};f.prototype=r.prototype,c.prototype=new f,f.prototype=null}return c},A=function(t,e){var n=t.apply(this,e);return x(n)===n?n:this},I=b?O.bind(_):function(t,e){k(t);var n,r=arguments,o=function(){var o=S(arguments,0,S(r,2));return this instanceof n?A.apply(this,[t,o]):t.apply(e,o)};return n=F([o,t,r])},M=TypeError,N=I.apply,C=I(I.call,N),D=I(N,{}.toString),G=function(t){if("function"!=typeof t&&"[object Function]"!==D(t))throw new M(t+" is not a function");return t},L=function(t,e){return C(G(t),e,S(arguments[2]))},X=function(t){try{return{threw:!1,value:L(t,this,S(arguments,1))}}catch(t){return{threw:!0,value:t}}},z={}.toString,H=function(t){return function(t){if("function"!=typeof t&&"[object Function]"!==L(z,t))throw new TypeError("methodize called on incompatible "+t)}(t),function(){return L(t,arguments[0],S(arguments,1))}},R=H({}.toString),q=function(t){return null===t?"[object Null]":void 0===t?"[object Undefined]":R(t)},B=[].isArray,K="function"==typeof B&&B,W=X(function(){return!0===K([])&&!1===K({length:0})}),Y=!1===W.threw&&!0===W.value?K:function(t){return"[object Array]"===q(t)},U=n(3),V=n.n(U),J=n(0),Q=n.n(J);for(var Z=X(function(){return function(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&Q()(Symbol(""))}.bind(void 0)),tt=!1===Z.threw&&!0===Z.value,et=n(4),nt=n.n(et),rt=function(t){return!!t},ot=tt&&Q()(Symbol.toStringTag),it="Cannot convert a Symbol value to a string".constructor,ut=function(t){if(Q()(t))throw new TypeError("Cannot convert a Symbol value to a string");return it(t)},ct=function(t){return ut(o(t))},ft=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],st="",at=ft.length,lt=0;lt<at;lt+=1)ft[lt].es2016&&ft[lt].string,ft[lt].es2018&&(st+=ft[lt].string);var pt=st,yt=new(0,/none/.constructor)("^[".concat(pt,"]+")),bt=H("".replace),gt=function(t){return bt(ct(t),yt,"")},vt=new(0,/none/.constructor)("[".concat(pt,"]+$")),dt=H("".replace),ht=function(t){return dt(ct(t),vt,"")},mt=function(t){return gt(ht(t))},wt=new(0,/none/.constructor)("[".concat(pt,"]+"),"g"),St=H(" ".replace),jt=function(t){return St(mt(t),wt," ")},_t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ot=H("".replace),$t=function(t,e){return Ot(ct(t),_t,arguments.length>1?ut(e):"")},xt=X.constructor,Tt=H(X.toString),Et=/^class /,kt=H(Et.test),Pt=!1===X(function(){return xt('"use strict"; return class My {};')()}).threw,Ft=function(t){return kt(Et,jt($t(Tt(t)," ")))},At=function(t){var e=X(Ft,t);return!1===e.threw&&e.value},It=function(t,e){return!f(t)&&(ot?function(t,e){return!(Pt&&!1===e&&At(t)||!1!==X(function(){return Tt(t)}).threw)}(t,rt(e)):(!Pt||!1!==rt(e)||!At(t))&&function(t){var e=q(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e}(t))},Mt="string".constructor,Nt=(0).constructor,Ct=tt&&Symbol.toPrimitive,Dt=tt&&Symbol.prototype.valueOf,Gt=["toString","valueOf"],Lt=["valueOf","toString"],Xt=function(t,e){o(t),function(t){if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"')}(e);for(var n="string"===e?Gt:Lt,r=0;r<2;r+=1){var i=t[n[r]];if(It(i)){var u=L(i,t);if(f(u))return u}}throw new TypeError("No default value")},zt=function(t,e){if(e){if(t===Mt)return"string";if(t===Nt)return"number"}return"default"},Ht=function(t){if(tt){if(Ct)return function(t,e){var n=t[e];if(!1===r(n)){if(!1===It(n))throw new TypeError("".concat(n," returned for property ").concat(e," of object ").concat(t," is not a function"));return n}}(t,Ct);if(Q()(t))return Dt}},Rt=function(t){var e=t.exoticToPrim,n=t.input,r=t.hint,o=L(e,n,[r]);if(f(o))return o;throw new TypeError("unable to convert exotic object to primitive")},qt=function(t,e){var n="default"===e&&(nt()(t)||Q()(t))?"string":e;return Xt(t,"default"===n?"number":n)},Bt=function(t,e){if(f(t))return t;var n=zt(e,arguments.length>1),r=Ht(t);return void 0===r?qt(t,n):Rt({exoticToPrim:r,input:t,hint:n})},Kt=parseInt,Wt=(0).constructor,Yt=H("᠎".charAt),Ut=/^[-+]?0[xX]/,Vt=H(Ut.test),Jt=function(t,e){var n=gt(ut(t));return"᠎"===Yt(n,0)?NaN:Kt(n,Wt(e)||(Vt(Ut,n)?16:10))},Qt=2..constructor,Zt=H("Cannot convert a Symbol value to a number".slice),te=/^0b[01]+$/i,ee=te.constructor,ne=H(te.test),re=/^0o[0-7]+$/i,oe=new ee("[…᠎​￾]","g"),ie=/^[-+]0x[0-9a-f]+$/i,ue=function(t,e){return Jt(Zt(t,2),e)},ce=function(t,e){return function(t){return ne(te,t)}(e)?t(ue(e,2)):function(t){return ne(re,t)}(e)?t(ue(e,8)):null},fe=function(t,e){var n=ce(t,e);if(null!==n)return n;if(function(t){return ne(oe,t)}(e)||function(t){return ne(ie,t)}(e))return NaN;var r=mt(e);return r!==e?t(r):null},se=function t(e){var n=function(t){if(Q()(t))throw new TypeError("Cannot convert a Symbol value to a number");return t}(Bt(e,Qt));if("string"==typeof n){var r=fe(t,n);if(null!==r)return r}return Qt(n)},ae=function(t){return t!=t},le=function(t){return"number"==typeof t&&!1===ae(t)&&t!==1/0&&t!==-1/0},pe=function(t){var e=se(t);return 0===e||ae(e)?e:e>0?1:-1},ye=Math.abs,be=Math.floor,ge=function(t){var e=se(t);return ae(e)?0:0===e||!1===le(e)?e:pe(e)*be(ye(e))},ve=function(t){var e=ge(t);return e<=0?0:e>9007199254740991?9007199254740991:e},de=H("".split),he=function(t){return t},me=p?he:function(t){return a()(t)?de(t,""):he(t)},we=function(t,e){return t>=e?t:e},Se=function(t,e){return t<0?we(e+t,0):(n=t)<=(r=e)?n:r;var n,r},je=function(t,e,n){var r=me(u(t)),o=ve(r.length),i=Se(ge(e),o),c=void 0===n?o:ge(n),f=Se(c,o),s=[];s.length=we(f-i,0);for(var a=0;i<f;)i in r&&(s[a]=r[i]),a+=1,i+=1;return s},_e=function(t){return!1===f(t)&&!1===It(t,!0)};function Oe(t){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $e,xe,Te,Ee=function(t){var e=Bt(t,String);return tt&&"symbol"===Oe(e)?e:ut(e)},ke=H({}.hasOwnProperty),Pe=function(t,e){return ke(u(t),Ee(e))},Fe=tt&&Symbol.prototype.toString,Ae="function"==typeof Fe&&Q.a,Ie="".constructor,Me=function(t){return Ae&&Ae(t)?Fe.call(t):Ie(t)},Ne=function(t){var e=se(t[1]),n=t.length<3?{max:e,min:0}:{max:se(t[2]),min:e};if(n.min>n.max)throw new RangeError('"min" must be less than "max"');return n},Ce=function(t){var e=se(t);if(arguments.length<2)return e;var n=Ne(arguments),r=n.max,o=n.min;return e<o?o:e>r?r:e},De=/^(?:0|[1-9]\d*)$/,Ge=De.test,Le=function(t,e){var n=Me(t);if(!1===Ge.call(De,n))return!1;var r=se(n);return arguments.length>1?r<Ce(ge(e),9007199254740991):r<9007199254740991},Xe=H({}.propertyIsEnumerable),ze=function(t,e){return Xe(u(t),Ee(e))},He=H("".charAt),Re={}.constructor,qe=Re.getOwnPropertyDescriptor,Be="function"==typeof qe&&qe,Ke=function(t,e){t[Ee(e)]=0;var n=X(Be,t,e);return!1===n.threw&&0===n.value.value},We=Re.prototype,Ye=Pe(We,"__defineGetter__"),Ue=Ye&&H(We.__lookupGetter__),Ve=Ye&&H(We.__lookupSetter__);if(Be){var Je="undefined"!=typeof document&&document;if(!Je||Ke(Je.createElement("div"),"sentinel")){var Qe=X(Be,u("abc"),1);if(!1===Qe.threw&&Qe.value&&"b"===Qe.value.value)if(Ke({},"sentinel")){var Ze=!1===X(Be,42,"name").threw;Te=tt&&Ke({},u(Symbol("")))?Ze?Be:function(t,e){return Be(u(t),e)}:Ze?function(t,e){return Be(t,Ee(e))}:function(t,e){return Be(u(t),Ee(e))}}else $e=Be;else xe=Be}}(!1===rt(Te)||$e||xe)&&(Te=function(t,e){var n,r=u(t),o=Ee(e);if($e&&!1===(n=X(function(){return $e(u(r),o)})).threw)return n.value;var i=a()(r)&&Le(o,r.length);if(xe&&!1===i&&!1===(n=X(function(){return xe(u(r),o)})).threw)return n.value;var c=void 0;if(!1===i&&!1===Pe(r,o))return c;if(c={configurable:!1===f(t)&&!1===i,enumerable:ze(r,o)},Ye){var s=r.__proto__,l=r!==We;l&&(r.__proto__=We);var p=Ue(r,o),y=Ve(r,o);if(l&&(r.__proto__=s),p||y)return p&&(c.get=p),y&&(c.set=y),c}return i?(c.value=He(r,o),c.writable=!1):(c.value=r[o],c.writable=!0),c});var tn,en,nn=Te,rn=function(t,e){if(f(t)){var n=arguments.length>1?Me(e):"".concat(Me(t)," is not an object");throw new TypeError(n)}return t},on={}.constructor,un=on.defineProperty,cn="function"==typeof un&&un,fn=function(t){var e=u(t),n={};if(Pe(e,"enumerable")&&(n.enumerable=rt(e.enumerable)),Pe(e,"configurable")&&(n.configurable=rt(e.configurable)),Pe(e,"value")&&(n.value=e.value),Pe(e,"writable")&&(n.writable=rt(e.writable)),Pe(e,"get")){var r=e.get;if(void 0!==r&&!1===It(r))throw new TypeError("getter must be a function");n.get=r}if(Pe(e,"set")){var o=e.set;if(void 0!==o&&!1===It(o))throw new TypeError("setter must be a function");n.set=o}if((Pe(n,"get")||Pe(n,"set"))&&(Pe(n,"value")||Pe(n,"writable")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return n},sn=on.prototype,an=Pe(sn,"__defineGetter__"),ln=an&&H(sn.__defineGetter__),pn=an&&H(sn.__defineSetter__),yn=an&&H(sn.__lookupGetter__),bn=an&&H(sn.__lookupSetter__);if(cn){var gn=function(t){var e=X(cn,t,"sentinel",{});return!1===e.threw&&e.value===t&&"sentinel"in t},vn="undefined"!=typeof document&&document;gn({})&&(!1===rt(vn)||gn(vn.createElement("div")))?en=function(t,e,n){return cn(rn(t),Ee(e),fn(n))}:tn=cn}(!1===rt(cn)||tn)&&(en=function(t,e,n){rn(t);var r=Ee(e),o=fn(n);if(tn){var i=X(function(){return tn(on,t,r,o)});if(!1===i.threw)return i.value}if(Pe(o,"value"))if(an&&(yn(t,r)||bn(t,r))){var u=t.__proto__;t.__proto__=sn,delete t[r],t[r]=o.value,t.__proto__=u}else t[r]=o.value;else{if(!1===an&&(o.get||o.set))throw new TypeError("getters & setters can not be defined on this javascript engine");o.get&&ln(t,r,o.get),o.set&&pn(t,r,o.set)}return t});var dn=en,hn=H(/none/.exec),mn=function(t){if(!1===_e(t))return!1;if(!1===ot)return"[object RegExp]"===q(t);var e=nn(t,"lastIndex");return!0===(e&&Pe(e,"value"))&&function(t,e){try{return t.lastIndex=0,hn(t),!0}catch(t){return!1}finally{dn(t,"lastIndex",e)}}(t,e)},wn=n(5),Sn=n.n(wn);n.d(e,"patched",function(){return Nn}),n.d(e,"implementation",function(){return Cn});var jn,_n,On,$n,xn,Tn,En={}.constructor,kn="function"==typeof En.keys&&En.keys;if(kn){var Pn=function(t,e){return!1===t.threw&&Y(t.value)&&t.value.length===e},Fn=function(t,e,n){var r=t.value[0],o=t.value[1];return r===e&&o===n||r===n&&o===e},An={a:1,b:2},In=X(kn,An);(jn=Pn(In,2)&&Fn(In,"a","b"))&&((An=Object("a")).y=1,jn=Pn(In=X(kn,An),2)&&Fn(In,"0","y")),jn&&(_n=X(kn,null).threw,On=Pn(X(kn,42),0),$n=!1===X(kn,/a/g).threw,In=X(kn,function(){return arguments}(1,2)),xn=Pn(In,2)&&Fn(In,"0","1"),In=X(kn,Object("ab")),Tn=Pn(In,2)&&Fn(In,"0","1"))}var Mn,Nn=function(t){var e=u?u(t):t;if(!0!==xn&&V()(e))e=je(e);else if(!0!==Tn&&a()(e))e=me(e);else if(!0!==$n&&mn(e)){var n=[];for(var r in e)Pe(e,r)&&(n[n.length]=r);return n}return kn(e)},Cn=function(t){return Sn()(u(t))};jn&&(Mn=_n&&On&&$n&&xn&&Tn?kn:Nn);var Dn=jn?Mn:Cn;e.default=Dn}])});
//# sourceMappingURL=object-keys-x.min.js.map
{
"name": "object-keys-x",
"version": "3.1.0",
"version": "3.1.1",
"description": "An ES6 Object.keys shim.",

@@ -55,11 +55,11 @@ "homepage": "https://github.com/Xotic750/object-keys-x",

"dependencies": {
"array-like-slice-x": "^2.2.0",
"attempt-x": "^2.1.0",
"has-own-property-x": "^4.1.0",
"array-like-slice-x": "^2.2.1",
"attempt-x": "^2.1.1",
"has-own-property-x": "^4.1.1",
"is-arguments": "^1.0.4",
"is-array-x": "^2.1.0",
"is-regexp-x": "^3.1.0",
"is-array-x": "^2.1.1",
"is-regexp-x": "^3.1.1",
"is-string": "^1.0.4",
"object-keys": "^1.1.1",
"split-if-boxed-bug-x": "^2.1.0",
"split-if-boxed-bug-x": "^2.1.1",
"to-object-x": "^2.2.0"

@@ -75,6 +75,6 @@ },

"@babel/runtime": "^7.5.5",
"@types/jest": "^24.0.17",
"@types/node": "^12.7.1",
"@types/webpack": "^4.32.1",
"@xotic750/eslint-config-recommended": "^1.1.2",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.2",
"@types/webpack": "^4.39.0",
"@xotic750/eslint-config-recommended": "^1.1.5",
"babel-core": "^7.0.0-0",

@@ -87,3 +87,3 @@ "babel-eslint": "^10.0.2",

"cross-env": "^5.2.0",
"eslint": "^6.1.0",
"eslint": "^6.2.1",
"eslint-friendly-formatter": "^4.0.1",

@@ -99,3 +99,3 @@ "eslint-import-resolver-webpack": "^0.11.1",

"eslint-plugin-jest": "^22.15.1",
"eslint-plugin-jsdoc": "^15.8.0",
"eslint-plugin-jsdoc": "^15.8.3",
"eslint-plugin-json": "^1.4.0",

@@ -109,4 +109,4 @@ "eslint-plugin-lodash": "^6.0.0",

"eslint-plugin-switch-case": "^1.1.2",
"jest": "^24.8.0",
"jest-cli": "^24.8.0",
"jest": "^24.9.0",
"jest-cli": "^24.9.0",
"jest-file": "^1.0.0",

@@ -118,3 +118,3 @@ "lodash": "^4.17.15",

"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"rimraf": "^3.0.0",
"source-map-loader": "^0.2.4",

@@ -124,5 +124,5 @@ "strip-ansi": "^5.2.0",

"typescript": "^3.5.3",
"webpack": "^4.39.1",
"webpack": "^4.39.2",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-cli": "^3.3.6",
"webpack-cli": "^3.3.7",
"webpack-global-object-x": "^1.0.0",

@@ -129,0 +129,0 @@ "webpack-merge": "^4.2.1"

@@ -23,7 +23,7 @@ import toObject from 'to-object-x';

if (nativeKeys) {
const isCorrectRes = function _isCorrectRes(r, length) {
const isCorrectRes = function isCorrectRes(r, length) {
return r.threw === false && isArray(r.value) && r.value.length === length;
};
const either = function _either(r, a, b) {
const either = function either(r, a, b) {
const x = r.value[0];

@@ -66,10 +66,29 @@ const y = r.value[1];

/**
* This method returns an array of a given object's own enumerable properties,
* in the same order as that provided by a for...in loop (the difference being
* that a for-in loop enumerates properties in the prototype chain as well).
*
* @param {*} obj - The object of which the enumerable own properties are to be returned.
* @returns {Array} An array of strings that represent all the enumerable properties of the given object.
*/
export const patched = function keys(object) {
let obj = toObject ? toObject(object) : object;
if (worksWithArgs !== true && isArguments(obj)) {
obj = arraySlice(obj);
} else if (worksWithStr !== true && isString(obj)) {
obj = splitIfBoxed(obj);
} else if (worksWithRegex !== true && isRegexp(obj)) {
const regexKeys = [];
/* eslint-disable-next-line no-restricted-syntax */
for (const key in obj) {
// noinspection JSUnfilteredForInLoop
if (has(obj, key)) {
regexKeys[regexKeys.length] = key;
}
}
return regexKeys;
}
return nativeKeys(obj);
};
export const implementation = function keys(object) {
return objKeys(toObject(object));
};
let objectKeys;

@@ -81,33 +100,16 @@

} else {
objectKeys = function keys(object) {
let obj = toObject ? toObject(object) : object;
if (worksWithArgs !== true && isArguments(obj)) {
obj = arraySlice(obj);
} else if (worksWithStr !== true && isString(obj)) {
obj = splitIfBoxed(obj);
} else if (worksWithRegex !== true && isRegexp(obj)) {
const regexKeys = [];
/* eslint-disable-next-line no-restricted-syntax */
for (const key in obj) {
// noinspection JSUnfilteredForInLoop
if (has(obj, key)) {
regexKeys[regexKeys.length] = key;
}
}
return regexKeys;
}
return nativeKeys(obj);
};
objectKeys = patched;
}
} else {
objectKeys = function keys(object) {
return objKeys(toObject(object));
};
}
const ok = objectKeys;
/**
* This method returns an array of a given object's own enumerable properties,
* in the same order as that provided by a for...in loop (the difference being
* that a for-in loop enumerates properties in the prototype chain as well).
*
* @param {*} obj - The object of which the enumerable own properties are to be returned.
* @returns {Array} An array of strings that represent all the enumerable properties of the given object.
*/
const $objectKeys = isWorking ? objectKeys : implementation;
export default ok;
export default $objectKeys;

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc