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

expect

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

LICENSE.md

8

CHANGES.md

@@ -1,5 +0,11 @@

## HEAD
## [HEAD]
- Fix comparisons of ES6 iterables Map and Set ([#47])
- Fix comparisons of objects with circular references ([#50])
- Better error messages in `toThrow`/`toNotThrow`
[HEAD]: https://github.com/mjackson/expect/compare/latest...HEAD
[#47]: https://github.com/mjackson/expect/issues/47
[#50]: https://github.com/mjackson/expect/issues/50
## [v1.12.2]

@@ -6,0 +12,0 @@ > Oct 13, 2015

18

lib/Expectation.js

@@ -9,9 +9,9 @@ 'use strict';

var _deepEqual = require('deep-equal');
var _isEqual = require('is-equal');
var _deepEqual2 = _interopRequireDefault(_deepEqual);
var _isEqual2 = _interopRequireDefault(_isEqual);
var _isRegexp = require('is-regexp');
var _isRegex = require('is-regex');
var _isRegexp2 = _interopRequireDefault(_isRegexp);
var _isRegex2 = _interopRequireDefault(_isRegex);

@@ -70,3 +70,3 @@ var _assert = require('./assert');

try {
_assert2['default'](_deepEqual2['default'](this.actual, value), message || 'Expected %s to equal %s', this.actual, value);
_assert2['default'](_isEqual2['default'](this.actual, value), message || 'Expected %s to equal %s', this.actual, value);
} catch (e) {

@@ -84,3 +84,3 @@ // These attributes are consumed by Mocha to produce a diff output.

Expectation.prototype.toNotEqual = function toNotEqual(value, message) {
_assert2['default'](!_deepEqual2['default'](this.actual, value), message || 'Expected %s to not equal %s', this.actual, value);
_assert2['default'](!_isEqual2['default'](this.actual, value), message || 'Expected %s to not equal %s', this.actual, value);

@@ -125,3 +125,3 @@ return this;

_assert2['default'](_isRegexp2['default'](pattern), 'The "value" argument in toMatch(value) must be a RegExp');
_assert2['default'](_isRegex2['default'](pattern), 'The "value" argument in toMatch(value) must be a RegExp');

@@ -136,3 +136,3 @@ _assert2['default'](pattern.test(this.actual), message || 'Expected %s to match %s', this.actual, pattern);

_assert2['default'](_isRegexp2['default'](pattern), 'The "value" argument in toNotMatch(value) must be a RegExp');
_assert2['default'](_isRegex2['default'](pattern), 'The "value" argument in toNotMatch(value) must be a RegExp');

@@ -220,3 +220,3 @@ _assert2['default'](!pattern.test(this.actual), message || 'Expected %s to not match %s', this.actual, pattern);

_assert2['default'](spy.calls.some(function (call) {
return _deepEqual2['default'](call.arguments, expectedArgs);
return _isEqual2['default'](call.arguments, expectedArgs);
}), 'spy was never called with %s', expectedArgs);

@@ -223,0 +223,0 @@

@@ -13,9 +13,9 @@ 'use strict';

var _deepEqual = require('deep-equal');
var _isEqual = require('is-equal');
var _deepEqual2 = _interopRequireDefault(_deepEqual);
var _isEqual2 = _interopRequireDefault(_isEqual);
var _isRegexp = require('is-regexp');
var _isRegex = require('is-regex');
var _isRegexp2 = _interopRequireDefault(_isRegexp);
var _isRegex2 = _interopRequireDefault(_isRegex);

@@ -43,3 +43,3 @@ /**

if (typeof message === 'string') {
if (_isRegexp2['default'](value) && value.test(error.message)) return true;
if (_isRegex2['default'](value) && value.test(error.message)) return true;

@@ -60,3 +60,3 @@ if (typeof value === 'string' && message.indexOf(value) !== -1) return true;

function arrayContains(array, value, comparator) {
if (comparator == null) comparator = _deepEqual2['default'];
if (comparator == null) comparator = _isEqual2['default'];

@@ -63,0 +63,0 @@ return array.some(function (item) {

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

import deepEqual from 'deep-equal'
import isRegExp from 'is-regexp'
import isEqual from 'is-equal'
import isRegExp from 'is-regex'
import assert from './assert'

@@ -68,3 +68,3 @@ import { isSpy } from './SpyUtils'

assert(
deepEqual(this.actual, value),
isEqual(this.actual, value),
(message || 'Expected %s to equal %s'),

@@ -87,3 +87,3 @@ this.actual,

assert(
!deepEqual(this.actual, value),
!isEqual(this.actual, value),
(message || 'Expected %s to not equal %s'),

@@ -339,3 +339,3 @@ this.actual,

spy.calls.some(function (call) {
return deepEqual(call.arguments, expectedArgs)
return isEqual(call.arguments, expectedArgs)
}),

@@ -342,0 +342,0 @@ 'spy was never called with %s',

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

import deepEqual from 'deep-equal'
import isRegExp from 'is-regexp'
import isEqual from 'is-equal'
import isRegExp from 'is-regex'

@@ -44,3 +44,3 @@ /**

if (comparator == null)
comparator = deepEqual
comparator = isEqual

@@ -47,0 +47,0 @@ return array.some(function (item) {

{
"name": "expect",
"version": "1.13.0",
"version": "1.13.1",
"description": "Write better assertions",
"main": "lib/index",
"dependencies": {
"deep-equal": "^1.0.1",
"is-regexp": "^1.0.0",
"is-equal": "^1.3.0",
"is-regex": "^1.0.3",
"object-inspect": "^1.0.2"

@@ -10,0 +10,0 @@ },

@@ -1,6 +0,3 @@

# expect
# expect [![Travis][build-badge]][build] [![npm package][npm-badge]][npm]
[![build status](https://img.shields.io/travis/mjackson/expect/master.svg?style=flat-square)](https://travis-ci.org/mjackson/expect)
[![npm package](https://img.shields.io/npm/v/expect.svg?style=flat-square)](https://www.npmjs.org/package/expect)
[expect](https://github.com/mjackson/expect) lets you write better assertions.

@@ -416,1 +413,7 @@

Please file issues on the [issue tracker on GitHub](https://github.com/mjackson/expect/issues).
[build-badge]: https://img.shields.io/travis/mjackson/expect/master.svg?style=flat-square
[build]: https://travis-ci.org/mjackson/expect)
[npm-badge]: https://img.shields.io/npm/v/expect.svg?style=flat-square
[npm]: https://www.npmjs.org/package/expect

@@ -67,9 +67,9 @@ (function webpackUniversalModuleDefinition(root, factory) {

var _SpyUtils = __webpack_require__(8);
var _SpyUtils = __webpack_require__(35);
var _assert = __webpack_require__(6);
var _assert = __webpack_require__(33);
var _assert2 = _interopRequireDefault(_assert);
var _extend = __webpack_require__(10);
var _extend = __webpack_require__(37);

@@ -104,17 +104,17 @@ var _extend2 = _interopRequireDefault(_extend);

var _deepEqual = __webpack_require__(2);
var _isEqual = __webpack_require__(2);
var _deepEqual2 = _interopRequireDefault(_deepEqual);
var _isEqual2 = _interopRequireDefault(_isEqual);
var _isRegexp = __webpack_require__(5);
var _isRegex = __webpack_require__(9);
var _isRegexp2 = _interopRequireDefault(_isRegexp);
var _isRegex2 = _interopRequireDefault(_isRegex);
var _assert = __webpack_require__(6);
var _assert = __webpack_require__(33);
var _assert2 = _interopRequireDefault(_assert);
var _SpyUtils = __webpack_require__(8);
var _SpyUtils = __webpack_require__(35);
var _TestUtils = __webpack_require__(9);
var _TestUtils = __webpack_require__(36);

@@ -165,3 +165,3 @@ /**

try {
_assert2['default'](_deepEqual2['default'](this.actual, value), message || 'Expected %s to equal %s', this.actual, value);
_assert2['default'](_isEqual2['default'](this.actual, value), message || 'Expected %s to equal %s', this.actual, value);
} catch (e) {

@@ -179,3 +179,3 @@ // These attributes are consumed by Mocha to produce a diff output.

Expectation.prototype.toNotEqual = function toNotEqual(value, message) {
_assert2['default'](!_deepEqual2['default'](this.actual, value), message || 'Expected %s to not equal %s', this.actual, value);
_assert2['default'](!_isEqual2['default'](this.actual, value), message || 'Expected %s to not equal %s', this.actual, value);

@@ -220,3 +220,3 @@ return this;

_assert2['default'](_isRegexp2['default'](pattern), 'The "value" argument in toMatch(value) must be a RegExp');
_assert2['default'](_isRegex2['default'](pattern), 'The "value" argument in toMatch(value) must be a RegExp');

@@ -231,3 +231,3 @@ _assert2['default'](pattern.test(this.actual), message || 'Expected %s to match %s', this.actual, pattern);

_assert2['default'](_isRegexp2['default'](pattern), 'The "value" argument in toNotMatch(value) must be a RegExp');
_assert2['default'](_isRegex2['default'](pattern), 'The "value" argument in toNotMatch(value) must be a RegExp');

@@ -315,3 +315,3 @@ _assert2['default'](!pattern.test(this.actual), message || 'Expected %s to not match %s', this.actual, pattern);

_assert2['default'](spy.calls.some(function (call) {
return _deepEqual2['default'](call.arguments, expectedArgs);
return _isEqual2['default'](call.arguments, expectedArgs);
}), 'spy was never called with %s', expectedArgs);

@@ -371,113 +371,191 @@

var pSlice = Array.prototype.slice;
var objectKeys = __webpack_require__(3);
var isArguments = __webpack_require__(4);
'use strict';
var deepEqual = module.exports = function (actual, expected, opts) {
if (!opts) opts = {};
// 7.1. All identical values are equivalent, as determined by ===.
if (actual === expected) {
return true;
var ObjectPrototype = Object.prototype;
var toStr = ObjectPrototype.toString;
var booleanValue = Boolean.prototype.valueOf;
var has = ObjectPrototype.hasOwnProperty;
var isArrowFunction = __webpack_require__(3);
var isBoolean = __webpack_require__(5);
var isDate = __webpack_require__(6);
var isGenerator = __webpack_require__(7);
var isNumber = __webpack_require__(8);
var isRegex = __webpack_require__(9);
var isString = __webpack_require__(10);
var isSymbol = __webpack_require__(11);
var isCallable = __webpack_require__(4);
var entries = __webpack_require__(12);
} else if (actual instanceof Date && expected instanceof Date) {
return actual.getTime() === expected.getTime();
// 7.3. Other pairs that do not both pass typeof value == 'object',
// equivalence is determined by ==.
} else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {
return opts.strict ? actual === expected : actual == expected;
// 7.4. For all other Object pairs, including Array objects, equivalence is
// determined by having the same number of owned properties (as verified
// with Object.prototype.hasOwnProperty.call), the same set of keys
// (although not necessarily the same order), equivalent values for every
// corresponding key, and an identical 'prototype' property. Note: this
// accounts for both named and indexed properties on Arrays.
} else {
return objEquiv(actual, expected, opts);
}
var symbolValue = typeof Symbol === 'function' ? Symbol.prototype.valueOf : null;
var symbolIterator = typeof Symbol === 'function' && isSymbol(Symbol.iterator) ? Symbol.iterator : null;
if (typeof Object.getOwnPropertyNames === 'function' && typeof Map === 'function' && typeof Map.prototype.entries === 'function') {
Object.getOwnPropertyNames(Map.prototype).forEach(function (name) {
if (name !== 'entries' && name !== 'size' && Map.prototype[name] === Map.prototype.entries) {
symbolIterator = name;
}
});
}
function isUndefinedOrNull(value) {
return value === null || value === undefined;
var getPrototypeOf = Object.getPrototypeOf;
if (!getPrototypeOf) {
/* eslint-disable no-proto */
if (typeof 'test'.__proto__ === 'object') {
getPrototypeOf = function (obj) {
return obj.__proto__;
};
} else {
getPrototypeOf = function (obj) {
var constructor = obj.constructor,
oldConstructor;
if (has.call(obj, 'constructor')) {
oldConstructor = constructor;
if (!(delete obj.constructor)) { // reset constructor
return null; // can't delete obj.constructor, return null
}
constructor = obj.constructor; // get real constructor
obj.constructor = oldConstructor; // restore constructor
}
return constructor ? constructor.prototype : ObjectPrototype; // needed for IE
};
}
/* eslint-enable no-proto */
}
function isBuffer (x) {
if (!x || typeof x !== 'object' || typeof x.length !== 'number') return false;
if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {
return false;
}
if (x.length > 0 && typeof x[0] !== 'number') return false;
return true;
}
var isArray = Array.isArray || function (value) {
return toStr.call(value) === '[object Array]';
};
function objEquiv(a, b, opts) {
var i, key;
if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
return false;
// an identical 'prototype' property.
if (a.prototype !== b.prototype) return false;
//~~~I've managed to break Object.keys through screwy arguments passing.
// Converting to array solves the problem.
if (isArguments(a)) {
if (!isArguments(b)) {
return false;
}
a = pSlice.call(a);
b = pSlice.call(b);
return deepEqual(a, b, opts);
}
if (isBuffer(a)) {
if (!isBuffer(b)) {
return false;
}
if (a.length !== b.length) return false;
for (i = 0; i < a.length; i++) {
if (a[i] !== b[i]) return false;
}
return true;
}
try {
var ka = objectKeys(a),
kb = objectKeys(b);
} catch (e) {//happens when one is a string literal and the other isn't
return false;
}
// having the same number of owned properties (keys incorporates
// hasOwnProperty)
if (ka.length != kb.length)
return false;
//the same set of keys (although not necessarily the same order),
ka.sort();
kb.sort();
//~~~cheap key test
for (i = ka.length - 1; i >= 0; i--) {
if (ka[i] != kb[i])
return false;
}
//equivalent values for every corresponding key, and
//~~~possibly expensive deep test
for (i = ka.length - 1; i >= 0; i--) {
key = ka[i];
if (!deepEqual(a[key], b[key], opts)) return false;
}
return typeof a === typeof b;
}
module.exports = function isEqual(value, other) {
if (value === other) { return true; }
if (value == null || other == null) { return value === other; }
if (toStr.call(value) !== toStr.call(other)) { return false; }
var valIsBool = isBoolean(value);
var otherIsBool = isBoolean(other);
if (valIsBool || otherIsBool) {
return valIsBool && otherIsBool && booleanValue.call(value) === booleanValue.call(other);
}
var valIsNumber = isNumber(value);
var otherIsNumber = isNumber(value);
if (valIsNumber || otherIsNumber) {
return valIsNumber && otherIsNumber && (Number(value) === Number(other) || (isNaN(value) && isNaN(other)));
}
var valIsString = isString(value);
var otherIsString = isString(other);
if (valIsString || otherIsString) {
return valIsString && otherIsString && String(value) === String(other);
}
var valIsDate = isDate(value);
var otherIsDate = isDate(other);
if (valIsDate || otherIsDate) {
return valIsDate && otherIsDate && +value === +other;
}
var valIsRegex = isRegex(value);
var otherIsRegex = isRegex(other);
if (valIsRegex || otherIsRegex) {
return valIsRegex && otherIsRegex && String(value) === String(other);
}
var valIsArray = isArray(value);
var otherIsArray = isArray(other);
if (valIsArray || otherIsArray) {
if (!valIsArray || !otherIsArray) { return false; }
if (value.length !== other.length) { return false; }
if (String(value) !== String(other)) { return false; }
var index = value.length;
do {
index -= 1;
} while (index > 0 && has.call(value, index) && has.call(other, index) && isEqual(value[index], other[index]));
return index <= 0;
}
var valueIsSym = isSymbol(value);
var otherIsSym = isSymbol(other);
if (valueIsSym !== otherIsSym) { return false; }
if (valueIsSym && otherIsSym) {
return symbolValue.call(value) === symbolValue.call(other);
}
var valueIsGen = isGenerator(value);
var otherIsGen = isGenerator(other);
if (valueIsGen !== otherIsGen) { return false; }
var valueIsArrow = isArrowFunction(value);
var otherIsArrow = isArrowFunction(other);
if (valueIsArrow !== otherIsArrow) { return false; }
if (isCallable(value) || isCallable(other)) {
if (!isEqual(value.name, other.name)) { return false; }
if (!isEqual(value.length, other.length)) { return false; }
var valueStr = String(value);
var otherStr = String(other);
if (isEqual(valueStr, otherStr)) { return true; }
if (!valueIsGen && !valueIsArrow) {
return isEqual(valueStr.replace(/\)\s*\{/, '){'), otherStr.replace(/\)\s*\{/, '){'));
}
return isEqual(valueStr, otherStr);
}
if (typeof value === 'object' || typeof other === 'object') {
if (typeof value !== typeof other) { return false; }
if (value.isPrototypeOf(other) || other.isPrototypeOf(value)) { return false; }
if (getPrototypeOf(value) !== getPrototypeOf(other)) { return false; }
var valueIteratorFn = value[symbolIterator];
var valueIsIterable = isCallable(valueIteratorFn);
var otherIteratorFn = other[symbolIterator];
var otherIsIterable = isCallable(otherIteratorFn);
if (valueIsIterable !== otherIsIterable) {
return false;
}
if (valueIsIterable && otherIsIterable) {
var valueIterator = valueIteratorFn.call(value);
var otherIterator = otherIteratorFn.call(other);
var valueNext, otherNext;
do {
valueNext = valueIterator.next();
otherNext = otherIterator.next();
if (!valueNext.done && !otherNext.done && !isEqual(valueNext, otherNext)) {
return false;
}
} while (!valueNext.done && !otherNext.done);
return valueNext.done === otherNext.done;
}
return isEqual(entries(value), entries(other));
}
return false;
};
/***/ },
/* 3 */
/***/ function(module, exports) {
/***/ function(module, exports, __webpack_require__) {
exports = module.exports = typeof Object.keys === 'function'
? Object.keys : shim;
'use strict';
exports.shim = shim;
function shim (obj) {
var keys = [];
for (var key in obj) keys.push(key);
return keys;
}
var isCallable = __webpack_require__(4);
var fnToStr = Function.prototype.toString;
var isNonArrowFnRegex = /^\s*function/;
var isArrowFnWithParensRegex = /^\([^\)]*\) *=>/;
var isArrowFnWithoutParensRegex = /^[^=]*=>/;
module.exports = function isArrowFunction(fn) {
if (!isCallable(fn)) { return false; }
var fnStr = fnToStr.call(fn);
return fnStr.length > 0 &&
!isNonArrowFnRegex.test(fnStr) &&
(isArrowFnWithParensRegex.test(fnStr) || isArrowFnWithoutParensRegex.test(fnStr));
};
/***/ },

@@ -487,21 +565,35 @@ /* 4 */

var supportsArgumentsClass = (function(){
return Object.prototype.toString.call(arguments)
})() == '[object Arguments]';
'use strict';
exports = module.exports = supportsArgumentsClass ? supported : unsupported;
var constructorRegex = /\s*class /;
var isNonES6ClassFn = function isNonES6ClassFn(value) {
try {
return !constructorRegex.test(value);
} catch (e) {
return false; // not a function
}
};
exports.supported = supported;
function supported(object) {
return Object.prototype.toString.call(object) == '[object Arguments]';
var fnToStr = Function.prototype.toString;
var tryFunctionObject = function tryFunctionObject(value) {
try {
if (constructorRegex.test(value)) { return false; }
fnToStr.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var fnClass = '[object Function]';
var genClass = '[object GeneratorFunction]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
exports.unsupported = unsupported;
function unsupported(object){
return object &&
typeof object == 'object' &&
typeof object.length == 'number' &&
Object.prototype.hasOwnProperty.call(object, 'callee') &&
!Object.prototype.propertyIsEnumerable.call(object, 'callee') ||
false;
module.exports = function isCallable(value) {
if (!value) { return false; }
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
if (hasToStringTag) { return tryFunctionObject(value); }
if (!isNonES6ClassFn(value)) { return false; }
var strClass = toStr.call(value);
return strClass === fnClass || strClass === genClass;
};

@@ -515,9 +607,180 @@

'use strict';
module.exports = function (re) {
return Object.prototype.toString.call(re) === '[object RegExp]';
var boolToStr = Boolean.prototype.toString;
var tryBooleanObject = function tryBooleanObject(value) {
try {
boolToStr.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var boolClass = '[object Boolean]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isBoolean(value) {
if (typeof value === 'boolean') { return true; }
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryBooleanObject(value) : toStr.call(value) === boolClass;
};
/***/ },
/* 6 */
/***/ function(module, exports) {
'use strict';
var getDay = Date.prototype.getDay;
var tryDateObject = function tryDateObject(value) {
try {
getDay.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var dateClass = '[object Date]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isDateObject(value) {
if (typeof value !== 'object' || value === null) { return false; }
return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;
};
/***/ },
/* 7 */
/***/ function(module, exports) {
'use strict';
var toStr = Object.prototype.toString;
var fnToStr = Function.prototype.toString;
var isFnRegex = /^\s*function\*/;
module.exports = function isGeneratorFunction(fn) {
if (typeof fn !== 'function') { return false; }
var fnStr = toStr.call(fn);
return (fnStr === '[object Function]' || fnStr === '[object GeneratorFunction]') && isFnRegex.test(fnToStr.call(fn));
};
/***/ },
/* 8 */
/***/ function(module, exports) {
'use strict';
var numToStr = Number.prototype.toString;
var tryNumberObject = function tryNumberObject(value) {
try {
numToStr.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var numClass = '[object Number]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isNumberObject(value) {
if (typeof value === 'number') { return true; }
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryNumberObject(value) : toStr.call(value) === numClass;
};
/***/ },
/* 9 */
/***/ function(module, exports) {
'use strict';
var regexExec = RegExp.prototype.exec;
var tryRegexExec = function tryRegexExec(value) {
try {
regexExec.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var regexClass = '[object RegExp]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isRegex(value) {
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryRegexExec(value) : toStr.call(value) === regexClass;
};
/***/ },
/* 10 */
/***/ function(module, exports) {
'use strict';
var strValue = String.prototype.valueOf;
var tryStringObject = function tryStringObject(value) {
try {
strValue.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var strClass = '[object String]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isString(value) {
if (typeof value === 'string') { return true; }
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;
};
/***/ },
/* 11 */
/***/ function(module, exports) {
'use strict';
var toStr = Object.prototype.toString;
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
if (hasSymbols) {
var symToStr = Symbol.prototype.toString;
var symStringRegex = /^Symbol\(.*\)$/;
var isSymbolObject = function isSymbolObject(value) {
if (typeof value.valueOf() !== 'symbol') { return false; }
return symStringRegex.test(symToStr.call(value));
};
module.exports = function isSymbol(value) {
if (typeof value === 'symbol') { return true; }
if (toStr.call(value) !== '[object Symbol]') { return false; }
try {
return isSymbolObject(value);
} catch (e) {
return false;
}
};
} else {
module.exports = function isSymbol(value) {
// this environment does not support Symbols.
return false;
};
}
/***/ },
/* 12 */
/***/ function(module, exports, __webpack_require__) {

@@ -527,2 +790,901 @@

var define = __webpack_require__(13);
var implementation = __webpack_require__(17);
var getPolyfill = __webpack_require__(31);
var shim = __webpack_require__(32);
define(implementation, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = implementation;
/***/ },
/* 13 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var keys = __webpack_require__(14);
var foreach = __webpack_require__(16);
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
var toStr = Object.prototype.toString;
var isFunction = function (fn) {
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
};
var arePropertyDescriptorsSupported = function () {
var obj = {};
try {
Object.defineProperty(obj, 'x', { enumerable: false, value: obj });
/* eslint-disable no-unused-vars, no-restricted-syntax */
for (var _ in obj) { return false; }
/* eslint-enable no-unused-vars, no-restricted-syntax */
return obj.x === obj;
} catch (e) { /* this is IE 8. */
return false;
}
};
var supportsDescriptors = Object.defineProperty && arePropertyDescriptorsSupported();
var defineProperty = function (object, name, value, predicate) {
if (name in object && (!isFunction(predicate) || !predicate())) {
return;
}
if (supportsDescriptors) {
Object.defineProperty(object, name, {
configurable: true,
enumerable: false,
value: value,
writable: true
});
} else {
object[name] = value;
}
};
var defineProperties = function (object, map) {
var predicates = arguments.length > 2 ? arguments[2] : {};
var props = keys(map);
if (hasSymbols) {
props = props.concat(Object.getOwnPropertySymbols(map));
}
foreach(props, function (name) {
defineProperty(object, name, map[name], predicates[name]);
});
};
defineProperties.supportsDescriptors = !!supportsDescriptors;
module.exports = defineProperties;
/***/ },
/* 14 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
// modified from https://github.com/es-shims/es5-shim
var has = Object.prototype.hasOwnProperty;
var toStr = Object.prototype.toString;
var slice = Array.prototype.slice;
var isArgs = __webpack_require__(15);
var hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString');
var hasProtoEnumBug = function () {}.propertyIsEnumerable('prototype');
var dontEnums = [
'toString',
'toLocaleString',
'valueOf',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'constructor'
];
var equalsConstructorPrototype = function (o) {
var ctor = o.constructor;
return ctor && ctor.prototype === o;
};
var blacklistedKeys = {
$console: true,
$frame: true,
$frameElement: true,
$frames: true,
$parent: true,
$self: true,
$webkitIndexedDB: true,
$webkitStorageInfo: true,
$window: true
};
var hasAutomationEqualityBug = (function () {
/* global window */
if (typeof window === 'undefined') { return false; }
for (var k in window) {
try {
if (!blacklistedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
try {
equalsConstructorPrototype(window[k]);
} catch (e) {
return true;
}
}
} catch (e) {
return true;
}
}
return false;
}());
var equalsConstructorPrototypeIfNotBuggy = function (o) {
/* global window */
if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
return equalsConstructorPrototype(o);
}
try {
return equalsConstructorPrototype(o);
} catch (e) {
return false;
}
};
var keysShim = function keys(object) {
var isObject = object !== null && typeof object === 'object';
var isFunction = toStr.call(object) === '[object Function]';
var isArguments = isArgs(object);
var isString = isObject && toStr.call(object) === '[object String]';
var theKeys = [];
if (!isObject && !isFunction && !isArguments) {
throw new TypeError('Object.keys called on a non-object');
}
var skipProto = hasProtoEnumBug && isFunction;
if (isString && object.length > 0 && !has.call(object, 0)) {
for (var i = 0; i < object.length; ++i) {
theKeys.push(String(i));
}
}
if (isArguments && object.length > 0) {
for (var j = 0; j < object.length; ++j) {
theKeys.push(String(j));
}
} else {
for (var name in object) {
if (!(skipProto && name === 'prototype') && has.call(object, name)) {
theKeys.push(String(name));
}
}
}
if (hasDontEnumBug) {
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
for (var k = 0; k < dontEnums.length; ++k) {
if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
theKeys.push(dontEnums[k]);
}
}
}
return theKeys;
};
keysShim.shim = function shimObjectKeys() {
if (Object.keys) {
var keysWorksWithArguments = (function () {
// Safari 5.0 bug
return (Object.keys(arguments) || '').length === 2;
}(1, 2));
if (!keysWorksWithArguments) {
var originalKeys = Object.keys;
Object.keys = function keys(object) {
if (isArgs(object)) {
return originalKeys(slice.call(object));
} else {
return originalKeys(object);
}
};
}
} else {
Object.keys = keysShim;
}
return Object.keys || keysShim;
};
module.exports = keysShim;
/***/ },
/* 15 */
/***/ function(module, exports) {
'use strict';
var toStr = Object.prototype.toString;
module.exports = function isArguments(value) {
var str = toStr.call(value);
var isArgs = str === '[object Arguments]';
if (!isArgs) {
isArgs = str !== '[object Array]' &&
value !== null &&
typeof value === 'object' &&
typeof value.length === 'number' &&
value.length >= 0 &&
toStr.call(value.callee) === '[object Function]';
}
return isArgs;
};
/***/ },
/* 16 */
/***/ function(module, exports) {
var hasOwn = Object.prototype.hasOwnProperty;
var toString = Object.prototype.toString;
module.exports = function forEach (obj, fn, ctx) {
if (toString.call(fn) !== '[object Function]') {
throw new TypeError('iterator must be a function');
}
var l = obj.length;
if (l === +l) {
for (var i = 0; i < l; i++) {
fn.call(ctx, obj[i], i, obj);
}
} else {
for (var k in obj) {
if (hasOwn.call(obj, k)) {
fn.call(ctx, obj[k], k, obj);
}
}
}
};
/***/ },
/* 17 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var ES = __webpack_require__(18);
var has = __webpack_require__(30);
var bind = __webpack_require__(27);
var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);
module.exports = function entries(O) {
var obj = ES.RequireObjectCoercible(O);
var entrys = [];
for (var key in obj) {
if (has(obj, key) && isEnumerable(obj, key)) {
entrys.push([key, obj[key]]);
}
}
return entrys;
};
/***/ },
/* 18 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var ES6 = __webpack_require__(19);
var assign = __webpack_require__(21);
var ES7 = assign(ES6, {
// https://github.com/tc39/ecma262/pull/60
SameValueNonNumber: function SameValueNonNumber(x, y) {
if (typeof x === 'number' || typeof x !== typeof y) {
throw new TypeError('SameValueNonNumber requires two non-number values of the same type.');
}
return this.SameValue(x, y);
}
});
module.exports = ES7;
/***/ },
/* 19 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var toStr = Object.prototype.toString;
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
var symbolToStr = hasSymbols ? Symbol.prototype.toString : toStr;
var $isNaN = Number.isNaN || function (a) { return a !== a; };
var $isFinite = __webpack_require__(20);
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
var assign = __webpack_require__(21);
var sign = __webpack_require__(22);
var mod = __webpack_require__(23);
var isPrimitive = __webpack_require__(24);
var toPrimitive = __webpack_require__(25);
var parseInteger = parseInt;
var bind = __webpack_require__(27);
var strSlice = bind.call(Function.call, String.prototype.slice);
var isBinary = bind.call(Function.call, RegExp.prototype.test, /^0b[01]+$/i);
var isOctal = bind.call(Function.call, RegExp.prototype.test, /^0o[0-7]+$/i);
var nonWS = ['\u0085', '\u200b', '\ufffe'].join('');
var nonWSregex = new RegExp('[' + nonWS + ']', 'g');
var hasNonWS = bind.call(Function.call, RegExp.prototype.test, nonWSregex);
var invalidHexLiteral = /^[\-\+]0x[0-9a-f]+$/i;
var isInvalidHexLiteral = bind.call(Function.call, RegExp.prototype.test, invalidHexLiteral);
// whitespace from: http://es5.github.io/#x15.5.4.20
// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324
var ws = [
'\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003',
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028',
'\u2029\uFEFF'
].join('');
var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g');
var replace = bind.call(Function.call, String.prototype.replace);
var trim = function (value) {
return replace(value, trimRegex, '');
};
var ES5 = __webpack_require__(28);
var hasRegExpMatcher = __webpack_require__(9);
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations
var ES6 = assign(assign({}, ES5), {
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-call-f-v-args
Call: function Call(F, V) {
var args = arguments.length > 2 ? arguments[2] : [];
if (!this.IsCallable(F)) {
throw new TypeError(F + ' is not a function');
}
return F.apply(V, args);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toprimitive
ToPrimitive: toPrimitive,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toboolean
// ToBoolean: ES5.ToBoolean,
// http://www.ecma-international.org/ecma-262/6.0/#sec-tonumber
ToNumber: function ToNumber(argument) {
var value = isPrimitive(argument) ? argument : toPrimitive(argument, 'number');
if (typeof value === 'symbol') {
throw new TypeError('Cannot convert a Symbol value to a number');
}
if (typeof value === 'string') {
if (isBinary(value)) {
return this.ToNumber(parseInteger(strSlice(value, 2), 2));
} else if (isOctal(value)) {
return this.ToNumber(parseInteger(strSlice(value, 2), 8));
} else if (hasNonWS(value) || isInvalidHexLiteral(value)) {
return NaN;
} else {
var trimmed = trim(value);
if (trimmed !== value) {
return this.ToNumber(trimmed);
}
}
}
return Number(value);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tointeger
// ToInteger: ES5.ToNumber,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint32
// ToInt32: ES5.ToInt32,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint32
// ToUint32: ES5.ToUint32,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint16
ToInt16: function ToInt16(argument) {
var int16bit = this.ToUint16(argument);
return int16bit >= 0x8000 ? int16bit - 0x10000 : int16bit;
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint16
// ToUint16: ES5.ToUint16,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint8
ToInt8: function ToInt8(argument) {
var int8bit = this.ToUint8(argument);
return int8bit >= 0x80 ? int8bit - 0x100 : int8bit;
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint8
ToUint8: function ToUint8(argument) {
var number = this.ToNumber(argument);
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
var posInt = sign(number) * Math.floor(Math.abs(number));
return mod(posInt, 0x100);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint8clamp
ToUint8Clamp: function ToUint8Clamp(argument) {
var number = this.ToNumber(argument);
if ($isNaN(number) || number <= 0) { return 0; }
if (number >= 0xFF) { return 0xFF; }
var f = Math.floor(argument);
if (f + 0.5 < number) { return f + 1; }
if (number < f + 0.5) { return f; }
if (f % 2 !== 0) { return f + 1; }
return f;
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tostring
ToString: function ToString(argument) {
if (typeof argument === 'symbol') {
throw new TypeError('Cannot convert a Symbol value to a string');
}
return String(argument);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject
ToObject: function ToObject(value) {
this.RequireObjectCoercible(value);
return Object(value);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
ToPropertyKey: function ToPropertyKey(argument) {
var key = this.ToPrimitive(argument, String);
return typeof key === 'symbol' ? symbolToStr.call(key) : this.ToString(key);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
ToLength: function ToLength(argument) {
var len = this.ToInteger(argument);
if (len <= 0) { return 0; } // includes converting -0 to +0
if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; }
return len;
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-canonicalnumericindexstring
CanonicalNumericIndexString: function CanonicalNumericIndexString(argument) {
if (toStr.call(argument) !== '[object String]') {
throw new TypeError('must be a string');
}
if (argument === '-0') { return -0; }
var n = this.ToNumber(argument);
if (this.SameValue(this.ToString(n), argument)) { return n; }
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-requireobjectcoercible
RequireObjectCoercible: ES5.CheckObjectCoercible,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
IsArray: Array.isArray || function IsArray(argument) {
return toStr.call(argument) === '[object Array]';
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-iscallable
// IsCallable: ES5.IsCallable,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
IsConstructor: function IsConstructor(argument) {
return this.IsCallable(argument); // unfortunately there's no way to truly check this without try/catch `new argument`
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isextensible-o
IsExtensible: function IsExtensible(obj) {
if (!Object.preventExtensions) { return true; }
if (isPrimitive(obj)) {
return false;
}
return Object.isExtensible(obj);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isinteger
IsInteger: function IsInteger(argument) {
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
return false;
}
var abs = Math.abs(argument);
return Math.floor(abs) === abs;
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ispropertykey
IsPropertyKey: function IsPropertyKey(argument) {
return typeof argument === 'string' || typeof argument === 'symbol';
},
// http://www.ecma-international.org/ecma-262/6.0/#sec-isregexp
IsRegExp: function IsRegExp(argument) {
if (!argument || typeof argument !== 'object') {
return false;
}
if (hasSymbols) {
var isRegExp = RegExp[Symbol.match];
if (typeof isRegExp !== 'undefined') {
return ES5.ToBoolean(isRegExp);
}
}
return hasRegExpMatcher(argument);
},
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevalue
// SameValue: ES5.SameValue,
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero
SameValueZero: function SameValueZero(x, y) {
return (x === y) || ($isNaN(x) && $isNaN(y));
}
});
delete ES6.CheckObjectCoercible; // renamed in ES6 to RequireObjectCoercible
module.exports = ES6;
/***/ },
/* 20 */
/***/ function(module, exports) {
var $isNaN = Number.isNaN || function (a) { return a !== a; };
module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; };
/***/ },
/* 21 */
/***/ function(module, exports) {
var has = Object.prototype.hasOwnProperty;
module.exports = Object.assign || function assign(target, source) {
for (var key in source) {
if (has.call(source, key)) {
target[key] = source[key];
}
}
return target;
};
/***/ },
/* 22 */
/***/ function(module, exports) {
module.exports = function sign(number) {
return number >= 0 ? 1 : -1;
};
/***/ },
/* 23 */
/***/ function(module, exports) {
module.exports = function mod(number, modulo) {
var remain = number % modulo;
return Math.floor(remain >= 0 ? remain : remain + modulo);
};
/***/ },
/* 24 */
/***/ function(module, exports) {
module.exports = function isPrimitive(value) {
return value === null || (typeof value !== 'function' && typeof value !== 'object');
};
/***/ },
/* 25 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
var isPrimitive = __webpack_require__(26);
var isCallable = __webpack_require__(4);
var isDate = __webpack_require__(6);
var isSymbol = __webpack_require__(11);
var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) {
if (O == null) {
throw new TypeError('Cannot call method on ' + O);
}
if (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) {
throw new TypeError('hint must be "string" or "number"');
}
var methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString'];
var method, result, i;
for (i = 0; i < methodNames.length; ++i) {
method = O[methodNames[i]];
if (isCallable(method)) {
result = method.call(O);
if (isPrimitive(result)) {
return result;
}
}
}
throw new TypeError('No default value');
};
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toprimitive
module.exports = function ToPrimitive(input, PreferredType) {
if (isPrimitive(input)) {
return input;
}
var hint = 'default';
if (arguments.length > 1) {
if (PreferredType === String) {
hint = 'string';
} else if (PreferredType === Number) {
hint = 'number';
}
}
var exoticToPrim;
if (hasSymbols) {
if (Symbol.toPrimitive) {
throw new TypeError('Symbol.toPrimitive not supported yet');
// exoticToPrim = this.GetMethod(input, Symbol.toPrimitive);
} else if (isSymbol(input)) {
exoticToPrim = Symbol.prototype.valueOf;
}
}
if (typeof exoticToPrim !== 'undefined') {
var result = exoticToPrim.call(input, hint);
if (isPrimitive(result)) {
return result;
}
throw new TypeError('unable to convert exotic object to primitive');
}
if (hint === 'default' && (isDate(input) || isSymbol(input))) {
hint = 'string';
}
return ordinaryToPrimitive(input, hint === 'default' ? 'number' : hint);
};
/***/ },
/* 26 */
/***/ function(module, exports) {
module.exports = function isPrimitive(value) {
return value === null || (typeof value !== 'function' && typeof value !== 'object');
};
/***/ },
/* 27 */
/***/ function(module, exports) {
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
var slice = Array.prototype.slice;
var toStr = Object.prototype.toString;
var funcType = '[object Function]';
module.exports = function bind(that) {
var target = this;
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
throw new TypeError(ERROR_MESSAGE + target);
}
var args = slice.call(arguments, 1);
var binder = function () {
if (this instanceof bound) {
var result = target.apply(
this,
args.concat(slice.call(arguments))
);
if (Object(result) === result) {
return result;
}
return this;
} else {
return target.apply(
that,
args.concat(slice.call(arguments))
);
}
};
var boundLength = Math.max(0, target.length - args.length);
var boundArgs = [];
for (var i = 0; i < boundLength; i++) {
boundArgs.push('$' + i);
}
var bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
if (target.prototype) {
var Empty = function Empty() {};
Empty.prototype = target.prototype;
bound.prototype = new Empty();
Empty.prototype = null;
}
return bound;
};
/***/ },
/* 28 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var $isNaN = Number.isNaN || function (a) { return a !== a; };
var $isFinite = __webpack_require__(20);
var sign = __webpack_require__(22);
var mod = __webpack_require__(23);
var IsCallable = __webpack_require__(4);
var toPrimitive = __webpack_require__(29);
// https://es5.github.io/#x9
var ES5 = {
ToPrimitive: toPrimitive,
ToBoolean: function ToBoolean(value) {
return Boolean(value);
},
ToNumber: function ToNumber(value) {
return Number(value);
},
ToInteger: function ToInteger(value) {
var number = this.ToNumber(value);
if ($isNaN(number)) { return 0; }
if (number === 0 || !$isFinite(number)) { return number; }
return sign(number) * Math.floor(Math.abs(number));
},
ToInt32: function ToInt32(x) {
return this.ToNumber(x) >> 0;
},
ToUint32: function ToUint32(x) {
return this.ToNumber(x) >>> 0;
},
ToUint16: function ToUint16(value) {
var number = this.ToNumber(value);
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
var posInt = sign(number) * Math.floor(Math.abs(number));
return mod(posInt, 0x10000);
},
ToString: function ToString(value) {
return String(value);
},
ToObject: function ToObject(value) {
this.CheckObjectCoercible(value);
return Object(value);
},
CheckObjectCoercible: function CheckObjectCoercible(value, optMessage) {
/* jshint eqnull:true */
if (value == null) {
throw new TypeError(optMessage || 'Cannot call method on ' + value);
}
return value;
},
IsCallable: IsCallable,
SameValue: function SameValue(x, y) {
if (x === y) { // 0 === -0, but they are not identical.
if (x === 0) { return 1 / x === 1 / y; }
return true;
}
return $isNaN(x) && $isNaN(y);
}
};
module.exports = ES5;
/***/ },
/* 29 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var toStr = Object.prototype.toString;
var isPrimitive = __webpack_require__(26);
var isCallable = __webpack_require__(4);
// https://es5.github.io/#x8.12
var ES5internalSlots = {
'[[DefaultValue]]': function (O, hint) {
if (!hint) {
hint = toStr.call(O) === '[object Date]' ? String : Number;
}
if (hint === String || hint === Number) {
var methods = hint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString'];
var value, i;
for (i = 0; i < methods.length; ++i) {
if (isCallable(O[methods[i]])) {
value = O[methods[i]]();
if (isPrimitive(value)) {
return value;
}
}
}
throw new TypeError('No default value');
}
throw new TypeError('invalid [[DefaultValue]] hint supplied');
}
};
// https://es5.github.io/#x9
module.exports = function ToPrimitive(input, PreferredType) {
if (isPrimitive(input)) {
return input;
}
if (arguments.length < 2) {
PreferredType = toStr.call(input) === '[object Date]' ? String : Number;
}
if (PreferredType === String) {
return String(input);
} else if (PreferredType === Number) {
return Number(input);
} else {
throw new TypeError('invalid PreferredType supplied');
}
return ES5internalSlots['[[DefaultValue]]'](input, PreferredType);
};
/***/ },
/* 30 */
/***/ function(module, exports, __webpack_require__) {
var bind = __webpack_require__(27);
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
/***/ },
/* 31 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var implementation = __webpack_require__(17);
module.exports = function getPolyfill() {
return typeof Object.entries === 'function' ? Object.entries : implementation;
};
/***/ },
/* 32 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var getPolyfill = __webpack_require__(31);
var define = __webpack_require__(13);
module.exports = function shimEntries() {
var polyfill = getPolyfill();
define(Object, { entries: polyfill }, { entries: function () { return Object.entries !== polyfill; } });
return polyfill;
};
/***/ },
/* 33 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;

@@ -532,3 +1694,3 @@

var _objectInspect = __webpack_require__(7);
var _objectInspect = __webpack_require__(34);

@@ -555,3 +1717,3 @@ var _objectInspect2 = _interopRequireDefault(_objectInspect);

/***/ },
/* 7 */
/* 34 */
/***/ function(module, exports) {

@@ -709,3 +1871,3 @@

/***/ },
/* 8 */
/* 35 */
/***/ function(module, exports, __webpack_require__) {

@@ -723,7 +1885,7 @@

var _assert = __webpack_require__(6);
var _assert = __webpack_require__(33);
var _assert2 = _interopRequireDefault(_assert);
var _TestUtils = __webpack_require__(9);
var _TestUtils = __webpack_require__(36);

@@ -817,3 +1979,3 @@ function noop() {}

/***/ },
/* 9 */
/* 36 */
/***/ function(module, exports, __webpack_require__) {

@@ -833,9 +1995,9 @@

var _deepEqual = __webpack_require__(2);
var _isEqual = __webpack_require__(2);
var _deepEqual2 = _interopRequireDefault(_deepEqual);
var _isEqual2 = _interopRequireDefault(_isEqual);
var _isRegexp = __webpack_require__(5);
var _isRegex = __webpack_require__(9);
var _isRegexp2 = _interopRequireDefault(_isRegexp);
var _isRegex2 = _interopRequireDefault(_isRegex);

@@ -863,3 +2025,3 @@ /**

if (typeof message === 'string') {
if (_isRegexp2['default'](value) && value.test(error.message)) return true;
if (_isRegex2['default'](value) && value.test(error.message)) return true;

@@ -880,3 +2042,3 @@ if (typeof value === 'string' && message.indexOf(value) !== -1) return true;

function arrayContains(array, value, comparator) {
if (comparator == null) comparator = _deepEqual2['default'];
if (comparator == null) comparator = _isEqual2['default'];

@@ -926,3 +2088,3 @@ return array.some(function (item) {

/***/ },
/* 10 */
/* 37 */
/***/ function(module, exports, __webpack_require__) {

@@ -929,0 +2091,0 @@

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return t[r].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function a(t){return new o["default"](t)}e.__esModule=!0;var u=n(2),o=r(u),i=n(3),s=n(1),c=r(s),l=n(7),f=r(l);a.createSpy=i.createSpy,a.spyOn=i.spyOn,a.isSpy=i.isSpy,a.restoreSpies=i.restoreSpies,a.assert=c["default"],a.extend=f["default"],e["default"]=a,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;n>a;a++)r[a-2]=arguments[a];if(!t){var u=0;throw new Error(e.replace(/%s/g,function(){return o["default"](r[u++])}))}}e.__esModule=!0;var u=n(10),o=r(u);e["default"]=a,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var u=n(5),o=r(u),i=n(6),s=r(i),c=n(1),l=r(c),f=n(3),p=n(4),h=function(){function t(e){a(this,t),this.actual=e,p.isFunction(e)&&(this.context=null,this.args=[])}return t.prototype.toExist=function(t){return l["default"](this.actual,t||"Expected %s to exist",this.actual),this},t.prototype.toNotExist=function(t){return l["default"](!this.actual,t||"Expected %s to not exist",this.actual),this},t.prototype.toBe=function(t,e){return l["default"](this.actual===t,e||"Expected %s to be %s",this.actual,t),this},t.prototype.toNotBe=function(t,e){return l["default"](this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this},t.prototype.toEqual=function(t,e){try{l["default"](o["default"](this.actual,t),e||"Expected %s to equal %s",this.actual,t)}catch(n){throw n.showDiff=!0,n.actual=this.actual,n.expected=t,n}return this},t.prototype.toNotEqual=function(t,e){return l["default"](!o["default"](this.actual,t),e||"Expected %s to not equal %s",this.actual,t),this},t.prototype.toThrow=function(t,e){return l["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),l["default"](p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this},t.prototype.toNotThrow=function(t,e){return l["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),l["default"](!p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this},t.prototype.toBeA=function(t,e){return l["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),l["default"](p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toNotBeA=function(t,e){return l["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),l["default"](!p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toMatch=function(t,e){return l["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toMatch() must be a string'),l["default"](s["default"](t),'The "value" argument in toMatch(value) must be a RegExp'),l["default"](t.test(this.actual),e||"Expected %s to match %s",this.actual,t),this},t.prototype.toNotMatch=function(t,e){return l["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toNotMatch() must be a string'),l["default"](s["default"](t),'The "value" argument in toNotMatch(value) must be a RegExp'),l["default"](!t.test(this.actual),e||"Expected %s to not match %s",this.actual,t),this},t.prototype.toBeLessThan=function(t,e){return l["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),l["default"]("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),l["default"](this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this},t.prototype.toBeGreaterThan=function(t,e){return l["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),l["default"]("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),l["default"](this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this},t.prototype.toInclude=function(t,e,n){return l["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toInclude() must be an array or a string'),"string"==typeof e&&(n=e,e=null),n=n||"Expected %s to include %s",p.isArray(this.actual)?l["default"](p.arrayContains(this.actual,t,e),n,this.actual,t):l["default"](p.stringContains(this.actual,t),n,this.actual,t),this},t.prototype.toExclude=function(t,e,n){return l["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toExclude() must be an array or a string'),"string"==typeof e&&(n=e,e=null),n=n||"Expected %s to exclude %s",p.isArray(this.actual)?l["default"](!p.arrayContains(this.actual,t,e),n,this.actual,t):l["default"](!p.stringContains(this.actual,t),n,this.actual,t),this},t.prototype.toHaveBeenCalled=function(t){var e=this.actual;return l["default"](f.isSpy(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),l["default"](e.calls.length>0,t||"spy was not called"),this},t.prototype.toHaveBeenCalledWith=function(){var t=this.actual;l["default"](f.isSpy(t),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy');var e=Array.prototype.slice.call(arguments,0);return l["default"](t.calls.some(function(t){return o["default"](t.arguments,e)}),"spy was never called with %s",e),this},t.prototype.toNotHaveBeenCalled=function(t){var e=this.actual;return l["default"](f.isSpy(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),l["default"](0===e.calls.length,t||"spy was not supposed to be called"),this},t.prototype.withContext=function(t){return l["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},t.prototype.withArgs=function(){return l["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=this.args.concat(Array.prototype.slice.call(arguments,0))),this},t}(),d={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude"};for(var y in d)h.prototype[y]=h.prototype[d[y]];e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function a(){}function u(t){var e=arguments.length<=1||void 0===arguments[1]?a:arguments[1];null==t&&(t=a),l["default"](f.isFunction(t),"createSpy needs a function");var n=void 0,r=void 0,u=void 0,o=function i(){if(i.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(r)throw r;return u};return o.calls=[],o.andCall=function(t){return n=t,o},o.andCallThrough=function(){return o.andCall(t)},o.andThrow=function(t){return r=t,o},o.andReturn=function(t){return u=t,o},o.getLastCall=function(){return o.calls[o.calls.length-1]},o.restore=o.destroy=e,o.__isSpy=!0,p.push(o),o}function o(t,e){var n=t[e];return i(n)||(l["default"](f.isFunction(n),"Cannot spyOn the %s property; it is not a function",e),t[e]=u(n,function(){t[e]=n})),t[e]}function i(t){return t&&t.__isSpy===!0}function s(){for(var t=p.length-1;t>=0;t--)p[t].restore();p=[]}e.__esModule=!0,e.createSpy=u,e.spyOn=o,e.isSpy=i,e.restoreSpies=s;var c=n(1),l=r(c),f=n(4),p=[]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function a(t,e,n,r){try{t.apply(e,n)}catch(a){if(null==r)return!0;if(s(r)&&a instanceof r)return!0;var u=a.message||a;if("string"==typeof u){if(h["default"](r)&&r.test(a.message))return!0;if("string"==typeof r&&-1!==u.indexOf(r))return!0}}return!1}function u(t,e,n){return null==n&&(n=f["default"]),t.some(function(t){return n(t,e)!==!1})}function o(t,e){return-1!==t.indexOf(e)}function i(t){return Array.isArray(t)}function s(t){return"function"==typeof t}function c(t,e){return s(e)?t instanceof e:"array"===e?Array.isArray(t):typeof t===e}e.__esModule=!0,e.functionThrows=a,e.arrayContains=u,e.stringContains=o,e.isArray=i,e.isFunction=s,e.isA=c;var l=n(5),f=r(l),p=n(6),h=r(p)},function(t,e,n){function r(t){return null===t||void 0===t}function a(t){return t&&"object"==typeof t&&"number"==typeof t.length?"function"!=typeof t.copy||"function"!=typeof t.slice?!1:t.length>0&&"number"!=typeof t[0]?!1:!0:!1}function u(t,e,n){var u,l;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return s(e)?(t=o.call(t),e=o.call(e),c(t,e,n)):!1;if(a(t)){if(!a(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var f=i(t),p=i(e)}catch(h){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),u=f.length-1;u>=0;u--)if(f[u]!=p[u])return!1;for(u=f.length-1;u>=0;u--)if(l=f[u],!c(t[l],e[l],n))return!1;return typeof t==typeof e}var o=Array.prototype.slice,i=n(9),s=n(8),c=t.exports=function(t,e,n){return n||(n={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:u(t,e,n)}},function(t,e){"use strict";t.exports=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function a(t){if(-1===i.indexOf(t)){i.push(t);for(var e in t)t.hasOwnProperty(e)&&(o["default"].prototype[e]=t[e])}}e.__esModule=!0;var u=n(2),o=r(u),i=[];e["default"]=a,t.exports=e["default"]},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=a?n:r,e.supported=n,e.unsupported=r},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return String(t).replace(/"/g,"&quot;")}function r(t){return"[object Array]"===c(t)}function a(t){return"[object Date]"===c(t)}function u(t){return"[object RegExp]"===c(t)}function o(t){return"[object Error]"===c(t)}function i(t){return"[object Symbol]"===c(t)}function s(t,e){return d.call(t,e)}function c(t){return Object.prototype.toString.call(t)}function l(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function f(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1}function p(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function h(t){function e(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(16>e?"0":"")+e.toString(16)}var n=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+n+"'"}t.exports=function y(t,e,c,d){function g(t,n){return n&&(d=d.slice(),d.push(n)),y(t,e,c+1,d)}e||(e={});var m=void 0===e.depth?5:e.depth;if(void 0===c&&(c=0),c>=m&&m>0&&t&&"object"==typeof t)return"[Object]";if(void 0===d)d=[];else if(f(d,t)>=0)return"[Circular]";if("string"==typeof t)return h(t);if("function"==typeof t){var x=l(t);return"[Function"+(x?": "+x:"")+"]"}if(null===t)return"null";if(i(t)){var b=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+b+")":b}if(p(t)){for(var v="<"+String(t.nodeName).toLowerCase(),T=t.attributes||[],w=0;w<T.length;w++)v+=" "+T[w].name+'="'+n(T[w].value)+'"';return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+String(t.nodeName).toLowerCase()+">"}if(r(t)){if(0===t.length)return"[]";for(var E=Array(t.length),w=0;w<t.length;w++)E[w]=s(t,w)?g(t[w],t):"";return"[ "+E.join(", ")+" ]"}if(o(t)){var j=[];for(var A in t)s(t,A)&&(/[^\w$]/.test(A)?j.push(g(A)+": "+g(t[A])):j.push(A+": "+g(t[A])));return 0===j.length?"["+t+"]":"{ ["+t+"] "+j.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if("object"!=typeof t||a(t)||u(t))return String(t);var E=[],B=[];for(var A in t)s(t,A)&&B.push(A);B.sort();for(var w=0;w<B.length;w++){var A=B[w];/[^\w$]/.test(A)?E.push(g(A)+": "+g(t[A],t)):E.push(A+": "+g(t[A],t))}return 0===E.length?"{}":"{ "+E.join(", ")+" }"};var d=Object.prototype.hasOwnProperty||function(t){return t in this}}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.expect=e():t.expect=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new i["default"](t)}e.__esModule=!0;var u=r(5),i=n(u),a=r(6),c=r(3),l=n(c),s=r(19),f=n(s);o.createSpy=a.createSpy,o.spyOn=a.spyOn,o.isSpy=a.isSpy,o.restoreSpies=a.restoreSpies,o.assert=l["default"],o.extend=f["default"],e["default"]=o,t.exports=e["default"]},function(t,e){"use strict";var r=/\s*class /,n=function(t){try{return!r.test(t)}catch(e){return!1}},o=Function.prototype.toString,u=function(t){try{return r.test(t)?!1:(o.call(t),!0)}catch(e){return!1}},i=Object.prototype.toString,a="[object Function]",c="[object GeneratorFunction]",l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return u(t);if(!n(t))return!1;var e=i.call(t);return e===a||e===c}},function(t,e){"use strict";var r=RegExp.prototype.exec,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object RegExp]",i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t?!1:i?n(t):o.call(t)===u}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];if(!t){var u=0;throw new Error(e.replace(/%s/g,function(){return i["default"](n[u++])}))}}e.__esModule=!0;var u=r(33),i=n(u);e["default"]=o,t.exports=e["default"]},function(t,e){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,u="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==u)throw new TypeError(r+e);for(var i=n.call(arguments,1),a=function(){if(this instanceof f){var r=e.apply(this,i.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,i.concat(n.call(arguments)))},c=Math.max(0,e.length-i.length),l=[],s=0;c>s;s++)l.push("$"+s);var f=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a);if(e.prototype){var p=function(){};p.prototype=e.prototype,f.prototype=new p,p.prototype=null}return f}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var u=r(15),i=n(u),a=r(2),c=n(a),l=r(3),s=n(l),f=r(6),p=r(7),y=function(){function t(e){o(this,t),this.actual=e,p.isFunction(e)&&(this.context=null,this.args=[])}return t.prototype.toExist=function(t){return s["default"](this.actual,t||"Expected %s to exist",this.actual),this},t.prototype.toNotExist=function(t){return s["default"](!this.actual,t||"Expected %s to not exist",this.actual),this},t.prototype.toBe=function(t,e){return s["default"](this.actual===t,e||"Expected %s to be %s",this.actual,t),this},t.prototype.toNotBe=function(t,e){return s["default"](this.actual!==t,e||"Expected %s to not be %s",this.actual,t),this},t.prototype.toEqual=function(t,e){try{s["default"](i["default"](this.actual,t),e||"Expected %s to equal %s",this.actual,t)}catch(r){throw r.showDiff=!0,r.actual=this.actual,r.expected=t,r}return this},t.prototype.toNotEqual=function(t,e){return s["default"](!i["default"](this.actual,t),e||"Expected %s to not equal %s",this.actual,t),this},t.prototype.toThrow=function(t,e){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toThrow() must be a function, %s was given',this.actual),s["default"](p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to throw %s",this.actual,t||"an error"),this},t.prototype.toNotThrow=function(t,e){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).toNotThrow() must be a function, %s was given',this.actual),s["default"](!p.functionThrows(this.actual,this.context,this.args,t),e||"Expected %s to not throw %s",this.actual,t||"an error"),this},t.prototype.toBeA=function(t,e){return s["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toBeA(value) must be a function or a string'),s["default"](p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toNotBeA=function(t,e){return s["default"](p.isFunction(t)||"string"==typeof t,'The "value" argument in toNotBeA(value) must be a function or a string'),s["default"](!p.isA(this.actual,t),e||"Expected %s to be a %s",this.actual,t),this},t.prototype.toMatch=function(t,e){return s["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toMatch() must be a string'),s["default"](c["default"](t),'The "value" argument in toMatch(value) must be a RegExp'),s["default"](t.test(this.actual),e||"Expected %s to match %s",this.actual,t),this},t.prototype.toNotMatch=function(t,e){return s["default"]("string"==typeof this.actual,'The "actual" argument in expect(actual).toNotMatch() must be a string'),s["default"](c["default"](t),'The "value" argument in toNotMatch(value) must be a RegExp'),s["default"](!t.test(this.actual),e||"Expected %s to not match %s",this.actual,t),this},t.prototype.toBeLessThan=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeLessThan() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeLessThan(value) must be a number'),s["default"](this.actual<t,e||"Expected %s to be less than %s",this.actual,t),this},t.prototype.toBeGreaterThan=function(t,e){return s["default"]("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThan() must be a number'),s["default"]("number"==typeof t,'The "value" argument in toBeGreaterThan(value) must be a number'),s["default"](this.actual>t,e||"Expected %s to be greater than %s",this.actual,t),this},t.prototype.toInclude=function(t,e,r){return s["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toInclude() must be an array or a string'),"string"==typeof e&&(r=e,e=null),r=r||"Expected %s to include %s",p.isArray(this.actual)?s["default"](p.arrayContains(this.actual,t,e),r,this.actual,t):s["default"](p.stringContains(this.actual,t),r,this.actual,t),this},t.prototype.toExclude=function(t,e,r){return s["default"](p.isArray(this.actual)||"string"==typeof this.actual,'The "actual" argument in expect(actual).toExclude() must be an array or a string'),"string"==typeof e&&(r=e,e=null),r=r||"Expected %s to exclude %s",p.isArray(this.actual)?s["default"](!p.arrayContains(this.actual,t,e),r,this.actual,t):s["default"](!p.stringContains(this.actual,t),r,this.actual,t),this},t.prototype.toHaveBeenCalled=function(t){var e=this.actual;return s["default"](f.isSpy(e),'The "actual" argument in expect(actual).toHaveBeenCalled() must be a spy'),s["default"](e.calls.length>0,t||"spy was not called"),this},t.prototype.toHaveBeenCalledWith=function(){var t=this.actual;s["default"](f.isSpy(t),'The "actual" argument in expect(actual).toHaveBeenCalledWith() must be a spy');var e=Array.prototype.slice.call(arguments,0);return s["default"](t.calls.some(function(t){return i["default"](t.arguments,e)}),"spy was never called with %s",e),this},t.prototype.toNotHaveBeenCalled=function(t){var e=this.actual;return s["default"](f.isSpy(e),'The "actual" argument in expect(actual).toNotHaveBeenCalled() must be a spy'),s["default"](0===e.calls.length,t||"spy was not supposed to be called"),this},t.prototype.withContext=function(t){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withContext() must be a function'),this.context=t,this},t.prototype.withArgs=function(){return s["default"](p.isFunction(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=this.args.concat(Array.prototype.slice.call(arguments,0))),this},t}(),h={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude"};for(var b in h)y.prototype[b]=y.prototype[h[b]];e["default"]=y,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){}function u(t){var e=arguments.length<=1||void 0===arguments[1]?o:arguments[1];null==t&&(t=o),s["default"](f.isFunction(t),"createSpy needs a function");var r=void 0,n=void 0,u=void 0,i=function a(){if(a.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),r)return r.apply(this,arguments);if(n)throw n;return u};return i.calls=[],i.andCall=function(t){return r=t,i},i.andCallThrough=function(){return i.andCall(t)},i.andThrow=function(t){return n=t,i},i.andReturn=function(t){return u=t,i},i.getLastCall=function(){return i.calls[i.calls.length-1]},i.restore=i.destroy=e,i.__isSpy=!0,p.push(i),i}function i(t,e){var r=t[e];return a(r)||(s["default"](f.isFunction(r),"Cannot spyOn the %s property; it is not a function",e),t[e]=u(r,function(){t[e]=r})),t[e]}function a(t){return t&&t.__isSpy===!0}function c(){for(var t=p.length-1;t>=0;t--)p[t].restore();p=[]}e.__esModule=!0,e.createSpy=u,e.spyOn=i,e.isSpy=a,e.restoreSpies=c;var l=r(3),s=n(l),f=r(7),p=[]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r,n){try{t.apply(e,r)}catch(o){if(null==n)return!0;if(c(n)&&o instanceof n)return!0;var u=o.message||o;if("string"==typeof u){if(y["default"](n)&&n.test(o.message))return!0;if("string"==typeof n&&-1!==u.indexOf(n))return!0}}return!1}function u(t,e,r){return null==r&&(r=f["default"]),t.some(function(t){return r(t,e)!==!1})}function i(t,e){return-1!==t.indexOf(e)}function a(t){return Array.isArray(t)}function c(t){return"function"==typeof t}function l(t,e){return c(e)?t instanceof e:"array"===e?Array.isArray(t):typeof t===e}e.__esModule=!0,e.functionThrows=o,e.arrayContains=u,e.stringContains=i,e.isArray=a,e.isFunction=c,e.isA=l;var s=r(15),f=n(s),p=r(2),y=n(p)},function(t,e,r){"use strict";var n=r(34),o=r(26),u="function"==typeof Symbol&&"symbol"==typeof Symbol(),i=Object.prototype.toString,a=function(t){return"function"==typeof t&&"[object Function]"===i.call(t)},c=function(){var t={};try{Object.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}},l=Object.defineProperty&&c(),s=function(t,e,r,n){(!(e in t)||a(n)&&n())&&(l?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);u&&(i=i.concat(Object.getOwnPropertySymbols(e))),o(i,function(n){s(t,n,e[n],r[n])})};f.supportsDescriptors=!!l,t.exports=f},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=Object.assign||function(t,e){for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}},function(t,e){var r=Number.isNaN||function(t){return t!==t};t.exports=Number.isFinite||function(t){return"number"==typeof t&&!r(t)&&t!==1/0&&t!==-(1/0)}},function(t,e){t.exports=function(t,e){var r=t%e;return Math.floor(r>=0?r:r+e)}},function(t,e){t.exports=function(t){return t>=0?1:-1}},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e){"use strict";var r=Date.prototype.getDay,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Date]",i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"!=typeof t||null===t?!1:i?n(t):o.call(t)===u}},function(t,e,r){"use strict";var n=Object.prototype,o=n.toString,u=Boolean.prototype.valueOf,i=n.hasOwnProperty,a=r(28),c=r(29),l=r(14),s=r(30),f=r(31),p=r(2),y=r(32),h=r(16),b=r(1),g=r(36),m="function"==typeof Symbol?Symbol.prototype.valueOf:null,d="function"==typeof Symbol&&h(Symbol.iterator)?Symbol.iterator:null;"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach(function(t){"entries"!==t&&"size"!==t&&Map.prototype[t]===Map.prototype.entries&&(d=t)});var v=Object.getPrototypeOf;v||(v="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){var e,r=t.constructor;if(i.call(t,"constructor")){if(e=r,!delete t.constructor)return null;r=t.constructor,t.constructor=e}return r?r.prototype:n});var S=Array.isArray||function(t){return"[object Array]"===o.call(t)};t.exports=function x(t,e){if(t===e)return!0;if(null==t||null==e)return t===e;if(o.call(t)!==o.call(e))return!1;var r=c(t),n=c(e);if(r||n)return r&&n&&u.call(t)===u.call(e);var j=f(t),w=f(t);if(j||w)return j&&w&&(Number(t)===Number(e)||isNaN(t)&&isNaN(e));var T=y(t),O=y(e);if(T||O)return T&&O&&String(t)===String(e);var E=l(t),N=l(e);if(E||N)return E&&N&&+t===+e;var C=p(t),A=p(e);if(C||A)return C&&A&&String(t)===String(e);var M=S(t),_=S(e);if(M||_){if(!M||!_)return!1;if(t.length!==e.length)return!1;if(String(t)!==String(e))return!1;var F=t.length;do F-=1;while(F>0&&i.call(t,F)&&i.call(e,F)&&x(t[F],e[F]));return 0>=F}var B=h(t),I=h(e);if(B!==I)return!1;if(B&&I)return m.call(t)===m.call(e);var P=s(t),$=s(e);if(P!==$)return!1;var R=a(t),k=a(e);if(R!==k)return!1;if(b(t)||b(e)){if(!x(t.name,e.name))return!1;if(!x(t.length,e.length))return!1;var L=String(t),q=String(e);return x(L,q)?!0:P||R?x(L,q):x(L.replace(/\)\s*\{/,"){"),q.replace(/\)\s*\{/,"){"))}if("object"==typeof t||"object"==typeof e){if(typeof t!=typeof e)return!1;if(t.isPrototypeOf(e)||e.isPrototypeOf(t))return!1;if(v(t)!==v(e))return!1;var D=t[d],H=b(D),G=e[d],U=b(G);if(H!==U)return!1;if(H&&U){var V,K,W=D.call(t),z=G.call(e);do if(V=W.next(),K=z.next(),!V.done&&!K.done&&!x(V,K))return!1;while(!V.done&&!K.done);return V.done===K.done}return x(g(t),g(e))}return!1}},function(t,e){"use strict";var r=Object.prototype.toString,n="function"==typeof Symbol&&"symbol"==typeof Symbol();if(n){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,i=function(t){return"symbol"!=typeof t.valueOf()?!1:u.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return i(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";var n=r(22),o=r(27),u=r(4),i=u.call(Function.call,Object.prototype.propertyIsEnumerable);t.exports=function(t){var e=n.RequireObjectCoercible(t),r=[];for(var u in e)o(e,u)&&i(e,u)&&r.push([u,e[u]]);return r}},function(t,e,r){"use strict";var n=r(17);t.exports=function(){return"function"==typeof Object.entries?Object.entries:n}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(-1===a.indexOf(t)){a.push(t);for(var e in t)t.hasOwnProperty(e)&&(i["default"].prototype[e]=t[e])}}e.__esModule=!0;var u=r(5),i=n(u),a=[];e["default"]=o,t.exports=e["default"]},function(t,e,r){"use strict";var n=Number.isNaN||function(t){return t!==t},o=r(10),u=r(12),i=r(11),a=r(1),c=r(24),l={ToPrimitive:c,ToBoolean:function(t){return Boolean(t)},ToNumber:function(t){return Number(t)},ToInteger:function(t){var e=this.ToNumber(t);return n(e)?0:0!==e&&o(e)?u(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(n(e)||0===e||!o(e))return 0;var r=u(e)*Math.floor(Math.abs(e));return i(r,65536)},ToString:function(t){return String(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Object(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new TypeError(e||"Cannot call method on "+t);return t},IsCallable:a,SameValue:function(t,e){return t===e?0===t?1/t===1/e:!0:n(t)&&n(e)}};t.exports=l},function(t,e,r){"use strict";var n=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,u=o?Symbol.prototype.toString:n,i=Number.isNaN||function(t){return t!==t},a=r(10),c=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,l=r(9),s=r(12),f=r(11),p=r(23),y=r(25),h=parseInt,b=r(4),g=b.call(Function.call,String.prototype.slice),m=b.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),d=b.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),v=["…","​","￾"].join(""),S=new RegExp("["+v+"]","g"),x=b.call(Function.call,RegExp.prototype.test,S),j=/^[\-\+]0x[0-9a-f]+$/i,w=b.call(Function.call,RegExp.prototype.test,j),T=[" \n \f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),O=new RegExp("(^["+T+"]+)|(["+T+"]+$)","g"),E=b.call(Function.call,String.prototype.replace),N=function(t){return E(t,O,"")},C=r(20),A=r(2),M=l(l({},C),{Call:function(t,e){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(t))throw new TypeError(t+" is not a function");return t.apply(e,r)},ToPrimitive:y,ToNumber:function(t){var e=p(t)?t:y(t,"number");if("symbol"==typeof e)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof e){if(m(e))return this.ToNumber(h(g(e,2),2));if(d(e))return this.ToNumber(h(g(e,2),8));if(x(e)||w(e))return NaN;var r=N(e);if(r!==e)return this.ToNumber(r)}return Number(e)},ToInt16:function(t){var e=this.ToUint16(t);return e>=32768?e-65536:e},ToInt8:function(t){var e=this.ToUint8(t);return e>=128?e-256:e},ToUint8:function(t){var e=this.ToNumber(t);if(i(e)||0===e||!a(e))return 0;var r=s(e)*Math.floor(Math.abs(e));return f(r,256)},ToUint8Clamp:function(t){var e=this.ToNumber(t);if(i(e)||0>=e)return 0;if(e>=255)return 255;var r=Math.floor(t);return e>r+.5?r+1:r+.5>e?r:r%2!==0?r+1:r},ToString:function(t){if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a string");return String(t)},ToObject:function(t){return this.RequireObjectCoercible(t),Object(t)},ToPropertyKey:function(t){var e=this.ToPrimitive(t,String);return"symbol"==typeof e?u.call(e):this.ToString(e)},ToLength:function(t){var e=this.ToInteger(t);return 0>=e?0:e>c?c:e},CanonicalNumericIndexString:function(t){if("[object String]"!==n.call(t))throw new TypeError("must be a string");if("-0"===t)return-0;var e=this.ToNumber(t);return this.SameValue(this.ToString(e),t)?e:void 0},RequireObjectCoercible:C.CheckObjectCoercible,IsArray:Array.isArray||function(t){return"[object Array]"===n.call(t)},IsConstructor:function(t){return this.IsCallable(t)},IsExtensible:function(t){return Object.preventExtensions?p(t)?!1:Object.isExtensible(t):!0},IsInteger:function(t){if("number"!=typeof t||i(t)||!a(t))return!1;var e=Math.abs(t);return Math.floor(e)===e},IsPropertyKey:function(t){return"string"==typeof t||"symbol"==typeof t},IsRegExp:function(t){if(!t||"object"!=typeof t)return!1;if(o){var e=RegExp[Symbol.match];if("undefined"!=typeof e)return C.ToBoolean(e)}return A(t)},SameValueZero:function(t,e){return t===e||i(t)&&i(e)}});delete M.CheckObjectCoercible,t.exports=M},function(t,e,r){"use strict";var n=r(21),o=r(9),u=o(n,{SameValueNonNumber:function(t,e){if("number"==typeof t||typeof t!=typeof e)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(t,e)}});t.exports=u},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";var n=Object.prototype.toString,o=r(13);r(1);t.exports=function(t,e){if(o(t))return t;if(arguments.length<2&&(e="[object Date]"===n.call(t)?String:Number),e===String)return String(t);if(e===Number)return Number(t);throw new TypeError("invalid PreferredType supplied")}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=r(13),u=r(1),i=r(14),a=r(16),c=function(t,e){if(null==t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"');var r,n,i,a="string"===e?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<a.length;++i)if(r=t[a[i]],u(r)&&(n=r.call(t),o(n)))return n;throw new TypeError("No default value")};t.exports=function(t,e){if(o(t))return t;var r="default";arguments.length>1&&(e===String?r="string":e===Number&&(r="number"));var u;if(n){if(Symbol.toPrimitive)throw new TypeError("Symbol.toPrimitive not supported yet");a(t)&&(u=Symbol.prototype.valueOf)}if("undefined"!=typeof u){var l=u.call(t,r);if(o(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(i(t)||a(t))&&(r="string"),c(t,"default"===r?"number":r)}},function(t,e){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,e,o){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var u=t.length;if(u===+u)for(var i=0;u>i;i++)e.call(o,t[i],i,t);else for(var a in t)r.call(t,a)&&e.call(o,t[a],a,t)}},function(t,e,r){var n=r(4);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var n=r(1),o=Function.prototype.toString,u=/^\s*function/,i=/^\([^\)]*\) *=>/,a=/^[^=]*=>/;t.exports=function(t){if(!n(t))return!1;var e=o.call(t);return e.length>0&&!u.test(e)&&(i.test(e)||a.test(e))}},function(t,e){"use strict";var r=Boolean.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Boolean]",i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"boolean"==typeof t?!0:"object"!=typeof t?!1:i?n(t):o.call(t)===u}},function(t,e){"use strict";var r=Object.prototype.toString,n=Function.prototype.toString,o=/^\s*function\*/;t.exports=function(t){if("function"!=typeof t)return!1;var e=r.call(t);return("[object Function]"===e||"[object GeneratorFunction]"===e)&&o.test(n.call(t))}},function(t,e){"use strict";var r=Number.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Number]",i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"number"==typeof t?!0:"object"!=typeof t?!1:i?n(t):o.call(t)===u}},function(t,e){"use strict";var r=String.prototype.valueOf,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object String]",i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t?!0:"object"!=typeof t?!1:i?n(t):o.call(t)===u}},function(t,e){function r(t){return String(t).replace(/"/g,"&quot;")}function n(t){return"[object Array]"===l(t)}function o(t){return"[object Date]"===l(t)}function u(t){return"[object RegExp]"===l(t)}function i(t){return"[object Error]"===l(t)}function a(t){return"[object Symbol]"===l(t)}function c(t,e){return h.call(t,e)}function l(t){return Object.prototype.toString.call(t)}function s(t){if(t.name)return t.name;var e=t.toString().match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function f(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1}function p(t){return t&&"object"==typeof t?"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?!0:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute:!1}function y(t){function e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(16>e?"0":"")+e.toString(16)}var r=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,e);return"'"+r+"'"}t.exports=function b(t,e,l,h){function g(t,r){return r&&(h=h.slice(),h.push(r)),b(t,e,l+1,h)}e||(e={});var m=void 0===e.depth?5:e.depth;if(void 0===l&&(l=0),l>=m&&m>0&&t&&"object"==typeof t)return"[Object]";if(void 0===h)h=[];else if(f(h,t)>=0)return"[Circular]";if("string"==typeof t)return y(t);if("function"==typeof t){var d=s(t);return"[Function"+(d?": "+d:"")+"]"}if(null===t)return"null";if(a(t)){var v=Symbol.prototype.toString.call(t);return"object"==typeof t?"Object("+v+")":v}if(p(t)){for(var S="<"+String(t.nodeName).toLowerCase(),x=t.attributes||[],j=0;j<x.length;j++)S+=" "+x[j].name+'="'+r(x[j].value)+'"';return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="</"+String(t.nodeName).toLowerCase()+">"}if(n(t)){if(0===t.length)return"[]";for(var w=Array(t.length),j=0;j<t.length;j++)w[j]=c(t,j)?g(t[j],t):"";return"[ "+w.join(", ")+" ]"}if(i(t)){var T=[];for(var O in t)c(t,O)&&(/[^\w$]/.test(O)?T.push(g(O)+": "+g(t[O])):T.push(O+": "+g(t[O])));return 0===T.length?"["+t+"]":"{ ["+t+"] "+T.join(", ")+" }"}if("object"==typeof t&&"function"==typeof t.inspect)return t.inspect();if("object"!=typeof t||o(t)||u(t))return String(t);var w=[],E=[];for(var O in t)c(t,O)&&E.push(O);E.sort();for(var j=0;j<E.length;j++){var O=E[j];/[^\w$]/.test(O)?w.push(g(O)+": "+g(t[O],t)):w.push(O+": "+g(t[O],t))}return 0===w.length?"{}":"{ "+w.join(", ")+" }"};var h=Object.prototype.hasOwnProperty||function(t){return t in this}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,u=Array.prototype.slice,i=r(35),a=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(t){var e=t.constructor;return e&&e.prototype===t},f={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{s(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),y=function(t){if("undefined"==typeof window||!p)return s(t);try{return s(t)}catch(e){return!1}},h=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),u=i(t),s=e&&"[object String]"===o.call(t),f=[];if(!e&&!r&&!u)throw new TypeError("Object.keys called on a non-object");var p=c&&r;if(s&&t.length>0&&!n.call(t,0))for(var h=0;h<t.length;++h)f.push(String(h));if(u&&t.length>0)for(var b=0;b<t.length;++b)f.push(String(b));else for(var g in t)p&&"prototype"===g||!n.call(t,g)||f.push(String(g));if(a)for(var m=y(t),d=0;d<l.length;++d)m&&"constructor"===l[d]||!n.call(t,l[d])||f.push(l[d]);return f};h.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return e(i(t)?u.call(t):t)}}}else Object.keys=h;return Object.keys||h},t.exports=h},function(t,e){"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,r){"use strict";var n=r(8),o=r(17),u=r(18),i=r(37);n(o,{getPolyfill:u,implementation:o,shim:i}),t.exports=o},function(t,e,r){"use strict";var n=r(18),o=r(8);t.exports=function(){var t=n();return o(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t}}])});
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