node-query/node_modules/es6-shim/es6-shim.min.js

11 lines
29 KiB
JavaScript
Raw Normal View History

2014-10-28 14:36:39 -04:00
/*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
2015-01-28 15:33:44 -05:00
* es6-shim: v0.23.0
* see https://github.com/paulmillr/es6-shim/blob/0.22.2/LICENSE
2014-10-28 14:36:39 -04:00
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
2015-01-28 15:33:44 -05:00
(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=function(e){try{e()}catch(t){return false}return true};var t=function(e,t){try{var r=function(){e.apply(this,arguments)};if(!r.__proto__){return false}Object.setPrototypeOf(r,e);r.prototype=Object.create(e.prototype,{constructor:{value:e}});return t(r)}catch(n){return false}};var r=function(){try{Object.defineProperty({},"x",{});return true}catch(e){return false}};var n=function(){var e=false;if(String.prototype.startsWith){try{"/a/".startsWith(/a/)}catch(t){e=true}}return e};var i=new Function("return this;");var o=i();var a=o.isFinite;var u=!!Object.defineProperty&&r();var s=n();var f=Function.call.bind(String.prototype.indexOf);var l=Function.call.bind(Object.prototype.toString);var c=Function.call.bind(Object.prototype.hasOwnProperty);var h;var p=function(){};var v=o.Symbol||{};var y=v.species||"@@species";var b={string:function(e){return l(e)==="[object String]"},regex:function(e){return l(e)==="[object RegExp]"},symbol:function(e){return typeof o.Symbol==="function"&&typeof e==="symbol"}};var d=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var g={getter:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function i(){return e[t]},set:function o(r){e[t]=r}})},redefine:function(e,t,r){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}}};var m=function(e,t){Object.keys(t).forEach(function(r){var n=t[r];d(e,r,n,false)})};var w=Object.create||function(e,t){function r(){}r.prototype=e;var n=new r;if(typeof t!=="undefined"){m(n,t)}return n};var I=b.symbol(v.iterator)?v.iterator:"_es6-shim iterator_";if(o.Set&&typeof(new o.Set)["@@iterator"]==="function"){I="@@iterator"}var j=function(e,t){if(!t){t=function n(){return this}}var r={};r[I]=t;m(e,r);if(!e[I]&&b.symbol(I)){e[I]=t}};var O=function rt(e){var t=l(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&l(e.callee)==="[object Function]"}return r};var _={RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){_.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&l(e)==="[object Function]"},ToInt32:function(e){return _.ToNumber(e)>>0},ToUint32:function(e){return _.ToNumber(e)>>>0},ToNumber:function(e){if(l(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=_.ToNumber(e);if(Number.isNaN(t)){return 0}if(t===0||!Number.isFinite(t)){return t}return(t>0?1:-1)*Math.floor(Math.abs(t))},ToLength:function(e){var t=_.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return Number.isNaN(e)&&Number.isNaN(t)},SameValueZero:function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)},IsIterable:function(e){return _.TypeIsObject(e)&&(typeof e[I]!=="undefined"||O(e))},GetIterator:function(e){if(O(e)){return new h(e,"value")}var t=e[I];if(!_.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=t.call(e);if(!_.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!_.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},Construct:function(e,t){var r;if(_.IsCallable(e[y])){r=e[y]()}else{r=w(e.
2014-10-28 14:36:39 -04:00
//# sourceMappingURL=es6-shim.map