_setup.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Object.defineProperty(exports, '__esModule', { value: true });
  2. // Current version.
  3. var VERSION = '1.13.3';
  4. // Establish the root object, `window` (`self`) in the browser, `global`
  5. // on the server, or `this` in some virtual machines. We use `self`
  6. // instead of `window` for `WebWorker` support.
  7. var root = (typeof self == 'object' && self.self === self && self) ||
  8. (typeof global == 'object' && global.global === global && global) ||
  9. Function('return this')() ||
  10. {};
  11. // Save bytes in the minified (but not gzipped) version:
  12. var ArrayProto = Array.prototype, ObjProto = Object.prototype;
  13. var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
  14. // Create quick reference variables for speed access to core prototypes.
  15. var push = ArrayProto.push,
  16. slice = ArrayProto.slice,
  17. toString = ObjProto.toString,
  18. hasOwnProperty = ObjProto.hasOwnProperty;
  19. // Modern feature detection.
  20. var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',
  21. supportsDataView = typeof DataView !== 'undefined';
  22. // All **ECMAScript 5+** native function implementations that we hope to use
  23. // are declared here.
  24. var nativeIsArray = Array.isArray,
  25. nativeKeys = Object.keys,
  26. nativeCreate = Object.create,
  27. nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;
  28. // Create references to these builtin functions because we override them.
  29. var _isNaN = isNaN,
  30. _isFinite = isFinite;
  31. // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
  32. var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
  33. var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
  34. 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
  35. // The largest integer that can be represented exactly.
  36. var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
  37. exports.ArrayProto = ArrayProto;
  38. exports.MAX_ARRAY_INDEX = MAX_ARRAY_INDEX;
  39. exports.ObjProto = ObjProto;
  40. exports.SymbolProto = SymbolProto;
  41. exports.VERSION = VERSION;
  42. exports._isFinite = _isFinite;
  43. exports._isNaN = _isNaN;
  44. exports.hasEnumBug = hasEnumBug;
  45. exports.hasOwnProperty = hasOwnProperty;
  46. exports.nativeCreate = nativeCreate;
  47. exports.nativeIsArray = nativeIsArray;
  48. exports.nativeIsView = nativeIsView;
  49. exports.nativeKeys = nativeKeys;
  50. exports.nonEnumerableProps = nonEnumerableProps;
  51. exports.push = push;
  52. exports.root = root;
  53. exports.slice = slice;
  54. exports.supportsArrayBuffer = supportsArrayBuffer;
  55. exports.supportsDataView = supportsDataView;
  56. exports.toString = toString;