New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es6-shim

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-shim - npm Package Compare versions

Comparing version 0.32.1 to 0.32.2

2

bower.json
{
"name": "es6-shim",
"version": "0.32.1",
"version": "0.32.2",
"repo": "paulmillr/es6-shim",

@@ -5,0 +5,0 @@ "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

# es6-shim x.x.x (not yet released)
# es6-shim 0.32.2 (17 Jun 2015)
* [Fix] `Object.assign` with no sources should coerce to an object (#348)
* [Fix] `String#includes` should throw when given a `RegExp` (#349)
* [Fix] `RegExp()` should not throw (#350)
* [Fix] Create `Value.defineByDescriptor`, fix `create` when `Object.create` is unavailable.
* [Compliance] Update `Promise.reject` to match official ECMA-262 spec.
* [Dev Deps] Update `es5-shim`
# es6-shim 0.32.1 (13 Jun 2015)

@@ -4,0 +12,0 @@ * [Fix] Make sure that all `Map`/`Set` shim forms properly add an iterable to the collection instance.

{
"name": "es6-shim",
"version": "0.32.1",
"version": "0.32.2",
"repo": "paulmillr/es6-shim",

@@ -5,0 +5,0 @@ "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

@@ -5,4 +5,4 @@ /*!

* and contributors, MIT License
* es6-sham: v0.32.1
* see https://github.com/paulmillr/es6-shim/blob/0.32.0/LICENSE
* es6-sham: v0.32.2
* see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE
* Details and documentation:

@@ -9,0 +9,0 @@ * https://github.com/paulmillr/es6-shim/

@@ -5,4 +5,4 @@ /*!

* and contributors, MIT License
* es6-sham: v0.32.1
* see https://github.com/paulmillr/es6-shim/blob/0.32.0/LICENSE
* es6-sham: v0.32.2
* see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE
* Details and documentation:

@@ -9,0 +9,0 @@ * https://github.com/paulmillr/es6-shim/

@@ -5,9 +5,9 @@ /*!

* and contributors, MIT License
* es6-shim: v0.32.1
* see https://github.com/paulmillr/es6-shim/blob/0.32.0/LICENSE
* es6-shim: v0.32.2
* see https://github.com/paulmillr/es6-shim/blob/0.32.2/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
(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.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=function pr(t){return function r(){return!e(t,this,arguments)}};var n=function(e){try{e();return false}catch(t){return true}};var o=function lr(e){try{return e()}catch(t){return false}};var i=r(n);var a=function(){return!n(function(){Object.defineProperty({},"x",{})})};var u=!!Object.defineProperty&&a();var s=Function.call.bind(Array.prototype.forEach);var f=Function.call.bind(Array.prototype.reduce);var c=Function.call.bind(Array.prototype.filter);var p=Function.call.bind(Array.prototype.every);var l=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 v=function(e,t){s(Object.keys(t),function(r){var n=t[r];l(e,r,n,false)})};var h=Object.create||function(e,t){var r=function o(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){v(n,t)}return n};var y=function(e,t){if(!Object.setPrototypeOf){return false}return o(function(){var r=function n(t){var r=new e(t);Object.setPrototypeOf(r,n.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=h(e.prototype,{constructor:{value:r}});return t(r)})};var b=function(){return String.prototype.startsWith&&n(function(){"/a/".startsWith(/a/)})};var g=function(){return String.prototype.startsWith&&"abc".startsWith("a",Infinity)===false}();var d=new Function("return this;");var m=d();var w=m.isFinite;var O=function(){return this===null}.call(null);var j=b()&&g;var T=Function.call.bind(String.prototype.indexOf);var S=Function.call.bind(Object.prototype.toString);var I=Function.call.bind(Array.prototype.concat);var E=Function.call.bind(String.prototype.slice);var M=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var P=Function.call.bind(Array.prototype.shift);var C=Math.max;var N=Math.min;var A=Math.floor;var _=Math.abs;var k=Math.log;var R=Math.sqrt;var F=Function.call.bind(Object.prototype.hasOwnProperty);var L;var z=function(){};var D=m.Symbol||{};var q=D.species||"@@species";var G=function(){return this};var H=function(e){if(u&&!F(e,q)){B.getter(e,q,G)}};var W={object:function(e){return e!==null&&typeof e==="object"},string:function(e){return S(e)==="[object String]"},regex:function(e){return S(e)==="[object RegExp]"},symbol:function(e){return typeof m.Symbol==="function"&&typeof e==="symbol"}};var V=Number.isNaN||function vr(e){return e!==e};var $=Number.isFinite||function hr(e){return typeof e==="number"&&w(e)};var B={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 o(){return e[t]},set:function i(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}},preserveToString:function(e,t){l(e,"toString",t.toString.bind(t),true)}};var U=function yr(e,t,r){var n=e[t];l(e,t,r,true);B.preserveToString(e[t],n)};var X=W.symbol(D.iterator)?D.iterator:"_es6-shim iterator_";if(m.Set&&typeof(new m.Set)["@@iterator"]==="function"){X="@@iterator"}var Z=function(e,t){var r=t||function o(){return this};var n={};n[X]=r;v(e,n);if(!e[X]&&W.symbol(X)){e[X]=r}};var K=function br(e){var t=S(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&S(e.callee)==="[object Function]"}return r};var J={Call:function gr(t,r){var n=arguments.length>2?arguments[2]:[];if(!J.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},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){J.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&S(e)==="[object Function]"},IsConstructor:function(e){return J.IsCallable(e)},ToInt32:function(e){return J.ToNumber(e)>>0},ToUint32:function(e){return J.ToNumber(e)>>>0},ToNumber:function(e){if(S(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=J.ToNumber(e);if(V(t)){return 0}if(t===0||!$(t)){return t}return(t>0?1:-1)*A(_(t))},ToLength:function(e){var t=J.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 V(e)&&V(t)},SameValueZero:function(e,t){return e===t||V(e)&&V(t)},IsIterable:function(e){return J.TypeIsObject(e)&&(typeof e[X]!=="undefined"||K(e))},GetIterator:function(e){if(K(e)){return new L(e,"value")}var r=J.GetMethod(e,X);if(!J.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!J.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=J.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!J.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=J.GetMethod(e,"return");if(n===void 0){return}var o,i;try{o=t(n,e)}catch(a){i=a}if(r){return}if(i){throw i}if(!J.TypeIsObject(o)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!J.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=J.IteratorNext(e);var r=J.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return tr.construct(e,t,r)}var o=r.prototype;if(!J.TypeIsObject(o)){o=Object.prototype}var i=h(o);var a=J.Call(e,i,t);return J.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!J.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[q];if(n===void 0||n===null){return t}if(!J.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},CreateHTML:function(e,t,r,n){var o=String(e);var i="<"+t;if(r!==""){var a=String(n);var u=a.replace(/"/g,"&quot;");i+=" "+r+'="'+u+'"'}var s=i+">";var f=s+o;return f+"</"+t+">"}};var Q=function(e,t,r,n){if(!J.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!J.TypeIsObject(o)){o=r}e=h(o);for(var i in n){if(F(n,i)){var a=n[i];l(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var Y=String.fromCodePoint;U(String,"fromCodePoint",function dr(t){return e(Y,this,arguments)})}var ee={fromCodePoint:function mr(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n++){r=Number(arguments[n]);if(!J.SameValue(r,J.ToInteger(r))||r<0||r>1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){M(t,String.fromCharCode(r))}else{r-=65536;M(t,String.fromCharCode((r>>10)+55296));M(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function wr(e){var t=J.ToObject(e,"bad callSite");var r=J.ToObject(t.raw,"bad raw value");var n=r.length;var o=J.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,s,f,c;while(a<o){u=String(a);f=String(r[u]);M(i,f);if(a+1>=o){break}s=a+1<arguments.length?arguments[a+1]:"";c=String(s);M(i,c);a++}return i.join("")}};v(String,ee);if(String.raw({raw:{0:"x",1:"y",length:2}})!=="xy"){U(String,"raw",ee.raw)}var te=function Or(e,t){if(t<1){return""}if(t%2){return Or(e,t-1)+e}var r=Or(e,t/2);return r+r};var re=Infinity;var ne={repeat:function jr(e){J.RequireObjectCoercible(this);var t=String(this);var r=J.ToInteger(e);if(r<0||r>=re){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return te(t,r)},startsWith:function Tr(e){J.RequireObjectCoercible(this);var t=String(this);if(W.regex(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=String(e);var n=arguments.length>1?arguments[1]:void 0;var o=C(J.ToInteger(n),0);return E(t,o,o+r.length)===r},endsWith:function Sr(e){J.RequireObjectCoercible(this);var t=String(this);if(W.regex(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=String(e);var n=t.length;var o=arguments.length>1?arguments[1]:void 0;var i=typeof o==="undefined"?n:J.ToInteger(o);var a=N(C(i,0),n);return E(t,a-r.length,a)===r},includes:function Ir(e){var t=arguments.length>1?arguments[1]:void 0;return T(this,e,t)!==-1},codePointAt:function Er(e){J.RequireObjectCoercible(this);var t=String(this);var r=J.ToInteger(e);var n=t.length;if(r>=0&&r<n){var o=t.charCodeAt(r);var i=r+1===n;if(o<55296||o>56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};v(String.prototype,ne);if("a".includes("a",Infinity)!==false){U(String.prototype,"includes",ne.includes)}var oe="\x85".trim().length!==1;if(oe){delete String.prototype.trim;var ie=[" \n \f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var ae=new RegExp("(^["+ie+"]+)|(["+ie+"]+$)","g");v(String.prototype,{trim:function Mr(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(ae,"")}})}var ue=function(e){J.RequireObjectCoercible(e);this._s=String(e);this._i=0};ue.prototype.next=function(){var e=this._s,t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return{value:e.substr(t,o),done:false}};Z(ue.prototype);Z(String.prototype,function(){return new ue(this)});if(!j){U(String.prototype,"startsWith",ne.startsWith);U(String.prototype,"endsWith",ne.endsWith)}var se={from:function xr(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!J.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}i=arguments.length>2?arguments[2]:void 0;o=true}var a=K(e)||J.GetMethod(e,X);var u,s,f;if(a!==void 0){s=J.IsConstructor(r)?Object(new r):[];var c=J.GetIterator(e);var p,l;for(f=0;;++f){p=J.IteratorStep(c);if(p===false){break}l=p.value;try{if(o){l=i!==undefined?t(n,i,l,f):n(l,f)}s[f]=l}catch(v){J.IteratorClose(c,true);throw v}}u=f}else{var h=J.ToObject(e);u=J.ToLength(h.length);s=J.IsConstructor(r)?Object(new r(u)):new Array(u);var y;for(f=0;f<u;++f){y=h[f];if(o){y=i!==undefined?t(n,i,y,f):n(y,f)}s[f]=y}}s.length=u;return s},of:function Pr(){return t(Array.from,this,arguments)}};v(Array,se);H(Array);var fe=function(e){return{value:e,done:arguments.length===0}};L=function(e,t){this.i=0;this.array=e;this.kind=t};v(L.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof L)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=J.ToLength(t.length);for(;e<r;e++){var n=this.kind;var o;if(n==="key"){o=e}else if(n==="value"){o=t[e]}else if(n==="entry"){o=[e,t[e]]}this.i=e+1;return{value:o,done:false}}}this.array=void 0;return{value:void 0,done:true}}});Z(L.prototype);var ce=function(e,t){this.object=e;this.array=null;this.kind=t};var pe=function Cr(e){var t=[];for(var r in e){M(t,r)}return t};v(ce.prototype,{next:function(){var e,t=this.array;if(!(this instanceof ce)){throw new TypeError("Not an ObjectIterator")}if(t===null){t=this.array=pe(this.object)}while(J.ToLength(t.length)>0){e=P(t);if(!(e in this.object)){continue}if(this.kind==="key"){return fe(e)}else if(this.kind==="value"){return fe(this.object[e])}else{return fe([e,this.object[e]])}}return fe()}});Z(ce.prototype);var le=function(){var e=function r(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!le){U(Array,"of",se.of)}var ve={copyWithin:function Nr(e,t){var r=arguments[2];var n=J.ToObject(this);var o=J.ToLength(n.length);var i=J.ToInteger(e);var a=J.ToInteger(t);var u=i<0?C(o+i,0):N(i,o);var s=a<0?C(o+a,0):N(a,o);r=typeof r==="undefined"?o:J.ToInteger(r);var f=r<0?C(o+r,0):N(r,o);var c=N(f-s,o-u);var p=1;if(s<u&&u<s+c){p=-1;s+=c-1;u+=c-1}while(c>0){if(F(n,s)){n[u]=n[s]}else{delete n[s]}s+=p;u+=p;c-=1}return n},fill:function Ar(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=J.ToObject(this);var o=J.ToLength(n.length);t=J.ToInteger(typeof t==="undefined"?0:t);r=J.ToInteger(typeof r==="undefined"?o:r);var i=t<0?C(o+t,0):N(t,o);var a=r<0?o+r:r;for(var u=i;u<o&&u<a;++u){n[u]=e}return n},find:function _r(e){var r=J.ToObject(this);var n=J.ToLength(r.length);if(!J.IsCallable(e)){throw new TypeError("Array#find: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0,a;i<n;i++){a=r[i];if(o){if(t(e,o,a,i,r)){return a}}else if(e(a,i,r)){return a}}},findIndex:function kr(e){var r=J.ToObject(this);var n=J.ToLength(r.length);if(!J.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0;i<n;i++){if(o){if(t(e,o,r[i],i,r)){return i}}else if(e(r[i],i,r)){return i}}return-1},keys:function Rr(){return new L(this,"key")},values:function Fr(){return new L(this,"value")},entries:function Lr(){return new L(this,"entry")}};if(Array.prototype.keys&&!J.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!J.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[X]){v(Array.prototype,{values:Array.prototype[X]});if(W.symbol(D.unscopables)){Array.prototype[D.unscopables].values=true}}if(Array.prototype.values&&Array.prototype.values.name!=="values"){var he=Array.prototype.values;U(Array.prototype,"values",function zr(){return t(he,this)});l(Array.prototype,X,Array.prototype.values,true)}v(Array.prototype,ve);Z(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){Z(Object.getPrototypeOf([].values()))}var ye=function(){return o(function(){return Array.from({length:-1}).length===0})}();var be=function(){var e=Array.from([0].entries());return e.length===1&&e[0][0]===0&&e[0][1]===1}();if(!ye||!be){U(Array,"from",se.from)}var ge=function(e,r){var n={length:-1};n[r?(-1>>>0)-1:0]=true;return o(function(){t(e,n,function(){throw new RangeError("should not reach here")},[])})};if(!ge(Array.prototype.forEach)){var de=Array.prototype.forEach;U(Array.prototype,"forEach",function Dr(t){return e(de,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.map)){var me=Array.prototype.map;U(Array.prototype,"map",function qr(t){return e(me,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.filter)){var we=Array.prototype.filter;U(Array.prototype,"filter",function Gr(t){return e(we,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.some)){var Oe=Array.prototype.some;U(Array.prototype,"some",function Hr(t){return e(Oe,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.every)){var je=Array.prototype.every;U(Array.prototype,"every",function Wr(t){return e(je,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.reduce)){var Te=Array.prototype.reduce;U(Array.prototype,"reduce",function Vr(t){return e(Te,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.reduceRight,true)){var Se=Array.prototype.reduceRight;U(Array.prototype,"reduceRight",function $r(t){return e(Se,this.length>=0?this:[],arguments)},true)}var Ie=Math.pow(2,53)-1;v(Number,{MAX_SAFE_INTEGER:Ie,MIN_SAFE_INTEGER:-Ie,EPSILON:2.220446049250313e-16,parseInt:m.parseInt,parseFloat:m.parseFloat,isFinite:$,isInteger:function Br(e){return $(e)&&J.ToInteger(e)===e},isSafeInteger:function Ur(e){return Number.isInteger(e)&&_(e)<=Number.MAX_SAFE_INTEGER},isNaN:V});l(Number,"parseInt",m.parseInt,Number.parseInt!==m.parseInt);if(![,1].find(function(e,t){return t===0})){U(Array.prototype,"find",ve.find)}if([,1].findIndex(function(e,t){return t===0})!==0){U(Array.prototype,"findIndex",ve.findIndex)}var Ee=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var Me=function Xr(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o<t;++o){n[o-e]=arguments[o]}return n};var xe=function Zr(e){return function t(r,n){r[n]=e[n];return r}};var Pe=function(e,t){var r=Object.keys(Object(t));var n;if(J.IsCallable(Object.getOwnPropertySymbols)){n=c(Object.getOwnPropertySymbols(Object(t)),Ee(t))}return f(I(r,n||[]),xe(t),e)};var Ce={assign:function(t,r){if(!J.TypeIsObject(t)){throw new TypeError("target must be an object")}return f(e(Me,0,arguments),Pe)},is:function Kr(e,t){return J.SameValue(e,t)}};var Ne=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return e[1]==="y"}}();if(Ne){U(Object,"assign",Ce.assign)}v(Object,Ce);if(u){var Ae={setPrototypeOf:function(e,r){var n;var o=function(e,t){if(!J.TypeIsObject(e)){throw new TypeError("cannot set prototype on a non-object")}if(!(t===null||J.TypeIsObject(t))){throw new TypeError("can only set prototype to an object or null"+t)}};var i=function(e,r){o(e,r);t(n,e,r);return e};try{n=e.getOwnPropertyDescriptor(e.prototype,r).set;t(n,{},null)}catch(a){if(e.prototype!=={}[r]){return}n=function(e){this[r]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,"__proto__")};v(Object,Ae)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);return n===e?null:n};Object.setPrototypeOf=function(t,n){var o=n===null?e:n;return r(t,o)};Object.setPrototypeOf.polyfill=false})()}var _e=!n(function(){Object.keys("foo")});if(!_e){var ke=Object.keys;U(Object,"keys",function Jr(e){return ke(J.ToObject(e))})}if(Object.getOwnPropertyNames){var Re=!n(function(){Object.getOwnPropertyNames("foo")});if(!Re){var Fe=typeof window==="object"?Object.getOwnPropertyNames(window):[];var Le=Object.getOwnPropertyNames;U(Object,"getOwnPropertyNames",function Qr(e){var t=J.ToObject(e);if(S(t)==="[object Window]"){try{return Le(t)}catch(r){return I([],Fe)}}return Le(t)})}}if(Object.getOwnPropertyDescriptor){var ze=!n(function(){Object.getOwnPropertyDescriptor("foo","bar")});if(!ze){var De=Object.getOwnPropertyDescriptor;U(Object,"getOwnPropertyDescriptor",function Yr(e,t){return De(J.ToObject(e),t)})}}if(Object.seal){var qe=!n(function(){Object.seal("foo")});if(!qe){var Ge=Object.seal;U(Object,"seal",function en(e){if(!W.object(e)){return e}return Ge(e)})}}if(Object.isSealed){var He=!n(function(){Object.isSealed("foo")});if(!He){var We=Object.isSealed;U(Object,"isSealed",function tn(e){if(!W.object(e)){return true}return We(e)})}}if(Object.freeze){var Ve=!n(function(){Object.freeze("foo")});if(!Ve){var $e=Object.freeze;U(Object,"freeze",function rn(e){if(!W.object(e)){return e}return $e(e)})}}if(Object.isFrozen){var Be=!n(function(){Object.isFrozen("foo")});if(!Be){var Ue=Object.isFrozen;U(Object,"isFrozen",function nn(e){if(!W.object(e)){return true}return Ue(e)})}}if(Object.preventExtensions){var Xe=!n(function(){Object.preventExtensions("foo")});if(!Xe){var Ze=Object.preventExtensions;U(Object,"preventExtensions",function on(e){if(!W.object(e)){return e}return Ze(e)})}}if(Object.isExtensible){var Ke=!n(function(){Object.isExtensible("foo")});if(!Ke){var Je=Object.isExtensible;U(Object,"isExtensible",function an(e){if(!W.object(e)){return false}return Je(e)})}}if(Object.getPrototypeOf){var Qe=!n(function(){Object.getPrototypeOf("foo")});if(!Qe){var Ye=Object.getPrototypeOf;U(Object,"getPrototypeOf",function un(e){return Ye(J.ToObject(e))})}}if(!RegExp.prototype.flags&&u){var et=function sn(){if(!J.TypeIsObject(this)){throw new TypeError("Method called on incompatible type: must be an object.")}var e="";if(this.global){e+="g"}if(this.ignoreCase){e+="i"}if(this.multiline){e+="m"}if(this.unicode){e+="u"}if(this.sticky){e+="y"}return e};B.getter(RegExp.prototype,"flags",et)}var tt=o(function(){return String(new RegExp(/a/g,"i"))==="/a/i"});if(!tt&&u){var rt=RegExp;var nt=function fn(e,t){var r=this instanceof fn;if(!r&&(W.regex(e)||e.constructor===fn)){return e}if(W.regex(e)&&W.string(t)){return new fn(e.source,t)}return new rt(e,t)};B.preserveToString(nt,rt);if(Object.setPrototypeOf){Object.setPrototypeOf(rt,nt)}s(Object.getOwnPropertyNames(rt),function(e){if(e==="$input"){return}if(e in z){return}B.proxy(rt,e,nt)});nt.prototype=rt.prototype;B.redefine(rt.prototype,"constructor",nt);RegExp=nt;B.redefine(m,"RegExp",nt)}if(u){var ot={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};s(Object.keys(ot),function(e){if(e in RegExp&&!(ot[e]in RegExp)){B.getter(RegExp,ot[e],function t(){return RegExp[e]})}})}H(RegExp);var it=1/Number.EPSILON;var at=function cn(e){return e+it-it};var ut=Math.pow(2,-23);var st=Math.pow(2,127)*(2-ut);var ft=Math.pow(2,-126);var ct=Number.prototype.clz;delete Number.prototype.clz;var pt={acosh:function pn(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return k(t/Math.E+R(t+1)*R(t-1)/Math.E)+1},asinh:function ln(e){var t=Number(e);if(t===0||!w(t)){return t}return t<0?-Math.asinh(-t):k(t+R(t*t+1))},atanh:function vn(e){var t=Number(e);if(Number.isNaN(t)||t<-1||t>1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*k((1+t)/(1-t))},cbrt:function hn(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(k(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function yn(e){var r=Number(e);var n=J.ToUint32(r);if(n===0){return 32}return ct?t(ct,n):31-A(k(n+.5)*Math.LOG2E)},cosh:function bn(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!w(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function gn(e){var t=Number(e);if(t===-Infinity){return-1}if(!w(t)||t===0){return t}if(_(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function dn(e,t){var r=0;var n=0;for(var o=0;o<arguments.length;++o){var i=_(Number(arguments[o]));if(n<i){r*=n/i*(n/i);r+=1;n=i}else{r+=i>0?i/n*(i/n):i}}return n===Infinity?Infinity:n*R(r)},log2:function mn(e){return k(e)*Math.LOG2E},log10:function wn(e){return k(e)*Math.LOG10E},log1p:function On(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(k(1+t)/(1+t-1))},sign:function jn(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function Tn(e){var t=Number(e);if(!w(t)||t===0){return t}if(_(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function Sn(e){var t=Number(e);if(Number.isNaN(t)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function In(e){var t=Number(e);return t<0?-A(-t):A(t)},imul:function En(e,t){var r=J.ToUint32(e);var n=J.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function Mn(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||V(t)){return t}var r=Math.sign(t);var n=_(t);if(n<ft){return r*at(n/ft/ut)*ft*ut}var o=(1+ut/Number.EPSILON)*n;var i=o-(o-n);if(i>st||V(i)){return r*Infinity}return r*i}};v(Math,pt);l(Math,"log1p",pt.log1p,Math.log1p(-1e-17)!==-1e-17);l(Math,"asinh",pt.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));l(Math,"tanh",pt.tanh,Math.tanh(-2e-17)!==-2e-17);l(Math,"acosh",pt.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);l(Math,"cbrt",pt.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);l(Math,"sinh",pt.sinh,Math.sinh(-2e-17)!==-2e-17);var lt=Math.expm1(10);l(Math,"expm1",pt.expm1,lt>22025.465794806718||lt<22025.465794806718);var vt=Math.round;var ht=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var yt=it+1;var bt=2*it-1;var gt=[yt,bt].every(function(e){return Math.round(e)===e});l(Math,"round",function xn(e){var t=A(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!ht||!gt);B.preserveToString(Math.round,vt);var dt=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=pt.imul;B.preserveToString(Math.imul,dt)}if(Math.imul.length!==2){U(Math,"imul",function Pn(t,r){return e(dt,Math,arguments)})}var mt=function(){J.IsPromise=function(e){if(!J.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var e=function(e){if(!J.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.promise=new e(r);if(!(J.IsCallable(t.resolve)&&J.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var r=m.setTimeout;var n;if(typeof window!=="undefined"&&J.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){M(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=P(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=m.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=J.IsCallable(m.setImmediate)?m.setImmediate.bind(m):typeof process==="object"&&process.nextTick?process.nextTick:o()||(J.IsCallable(n)?n():function(e){r(e,0)});var a=1;var u=2;var f=3;var c=4;var p=5;var l=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,s;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(f){o=f;i=true}}s=i?r.reject:r.resolve;s(o)};var h=function(e,t){s(e,function(e){i(function(){l(e,t)})})};var y=function(e,t){var r=e._promise;var n=r.fulfillReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=c;h(n,t)};var b=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=p;h(n,t)};var g=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return b(e,new TypeError("Self resolution"))}if(!J.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return b(e,o)}if(!J.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return b(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=g(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var w=function(e){if(!J.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[q];if(t!==void 0&&t!==null){return t}return e};var O=function E(e){if(!(this instanceof E)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!J.IsCallable(e)){throw new TypeError("not a valid resolver")}var t=Q(this,E,j,{_promise:{result:void 0,state:f,fulfillReactions:[],rejectReactions:[]}});var r=g(t);var n=r.reject;try{e(r.resolve,n)}catch(o){n(o)}return t};var j=O.prototype;var T=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var S=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;for(var s=0;;s++){try{a=J.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(f){e.done=true;throw f}o[s]=void 0;var c=t.resolve(u);var p=T(s,o,r,i);i.count++;c.then(p,r.reject)}if(--i.count===0){var l=r.resolve;l(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=J.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);a.then(r.resolve,r.reject)}return r.promise};v(O,{all:function x(t){var r=w(this);var n=new e(r);var o,i;try{o=J.GetIterator(t);i={iterator:o,done:false};return S(i,r,n)}catch(a){if(i&&!i.done){try{J.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},race:function C(t){var r=w(this);var n=new e(r);var o,i;try{o=J.GetIterator(t);i={iterator:o,done:false};return I(i,r,n)}catch(a){if(i&&!i.done){try{J.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},reject:function N(t){var r=w(this);var n=new e(r);var o=n.reject;o(t);return n.promise},resolve:function A(t){var r=this;if(J.IsPromise(t)){var n=t.constructor;if(n===r){return t}}var o=new e(r);var i=o.resolve;i(t);return o.promise}});v(j,{"catch":function(e){return this.then(void 0,e)},then:function _(t,r){var n=this;if(!J.IsPromise(n)){throw new TypeError("not a promise")}var o=J.SpeciesConstructor(n,O);var s=new e(o);if(!J.IsCallable(t)){t=a}if(!J.IsCallable(r)){r=u}var v={capabilities:s,handler:t};var h={capabilities:s,handler:r};var y=n._promise,b;switch(y.state){case f:M(y.fulfillReactions,v);M(y.rejectReactions,h);break;case c:b=y.result;i(function(){l(v,b)});break;case p:b=y.result;i(function(){l(h,b)});break;default:throw new TypeError("unexpected")}return s.promise}});return O}();if(m.Promise){delete m.Promise.accept;delete m.Promise.defer;delete m.Promise.prototype.chain}v(m,{Promise:mt});var wt=y(m.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Ot=!n(function(){m.Promise.reject(42).then(null,5).then(null,z)});var jt=n(function(){m.Promise.call(3,z)});var Tt=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(m.Promise);if(!wt||!Ot||!jt||Tt){Promise=mt;U(m,"Promise",mt)}H(Promise);var St=function(e){var t=Object.keys(f(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var It=St(["z","a","bb"]);var Et=St(["z",1,"a","3",2]);if(u){var Mt=function Cn(e){if(!It){return null}var t=typeof e;if(t==="undefined"||e===null){return"^"+String(e)}else if(t==="string"){return"$"+e}else if(t==="number"){if(!Et){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var xt=function Nn(){return Object.create?Object.create(null):{}};var Pt=function An(e,r,n){if(Array.isArray(n)||W.string(n)){s(n,function(e){r.set(e[0],e[1])})}else if(n instanceof e){t(e.prototype.forEach,n,function(e,t){r.set(t,e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.set;if(!J.IsCallable(i)){throw new TypeError("bad map")}o=J.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=J.IteratorStep(o);if(a===false){break}var u=a.value;try{if(!J.TypeIsObject(u)){throw new TypeError("expected iterable of pairs")}t(i,r,u[0],u[1])}catch(f){J.IteratorClose(o,true);throw f}}}}};var Ct=function _n(e,r,n){if(Array.isArray(n)||W.string(n)){s(n,function(e){r.add(e)})}else if(n instanceof e){t(e.prototype.forEach,n,function(e){r.add(e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.add;if(!J.IsCallable(i)){throw new TypeError("bad set")}o=J.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=J.IteratorStep(o);if(a===false){break}var u=a.value;try{t(i,r,u)}catch(f){J.IteratorClose(o,true);throw f}}}}};var Nt={Map:function(){var e={};var r=function s(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function f(){return this.key===e};var n=function c(e){return!!e._es6map};var o=function p(e,t){if(!J.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function l(e,t){o(e,"[[MapIterator]]");this.head=e._head;
this.i=this.head;this.kind=t};i.prototype={next:function h(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i==="undefined"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t==="key"){n=e.key}else if(t==="value"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};Z(i.prototype);var a=function y(){if(!(this instanceof y)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=Q(this,y,u,{_es6map:true,_head:null,_storage:xt(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Pt(y,e,arguments[0])}return e};var u=a.prototype;B.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});v(u,{get:function b(e){o(this,"get");var t=Mt(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(J.SameValueZero(i.key,e)){return i.value}}},has:function g(e){o(this,"has");var t=Mt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(J.SameValueZero(n.key,e)){return true}}return false},set:function d(e,t){o(this,"set");var n=this._head,i=n,a;var u=Mt(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(J.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(J.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head,n=r;var i=Mt(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(J.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function m(){o(this,"clear");this._size=0;this._storage=xt();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function w(){o(this,"keys");return new i(this,"key")},values:function O(){o(this,"values");return new i(this,"value")},entries:function j(){o(this,"entries");return new i(this,"key+value")},forEach:function T(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});Z(u,u.entries);return a}(),Set:function(){var e=function a(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function u(t,r){if(!J.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+String(t))}};var n=function f(){if(!(this instanceof f)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=Q(this,f,o,{_es6set:true,"[[SetData]]":null,_storage:xt()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){Ct(f,e,arguments[0])}return e};var o=n.prototype;var i=function c(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Nt.Map;s(Object.keys(e._storage),function(e){if(e==="^null"){e=null}else if(e==="^undefined"){e=void 0}else{var r=e.charAt(0);if(r==="$"){e=E(e,1)}else if(r==="n"){e=+E(e,1)}else if(r==="b"){e=e==="btrue"}else{e=+e}}t.set(e,e)});e._storage=null}};B.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});v(n.prototype,{has:function p(e){r(this,"has");var t;if(this._storage&&(t=Mt(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function h(e){r(this,"add");var t;if(this._storage&&(t=Mt(e))!==null){this._storage[t]=true;return this}i(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Mt(e))!==null){var n=F(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function y(){r(this,"clear");if(this._storage){this._storage=xt()}else{this["[[SetData]]"].clear()}},values:function b(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function g(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function d(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;i(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});l(n.prototype,"keys",n.prototype.values,true);Z(n.prototype,n.prototype.values);return n}()};v(m,Nt);if(m.Map||m.Set){var At=o(function(){return new Map([[1,2]]).get(1)===2});if(!At){var _t=m.Map;m.Map=function kn(){if(!(this instanceof kn)){throw new TypeError('Constructor Map requires "new"')}var e=new _t;if(arguments.length>0){Pt(kn,e,arguments[0])}Object.setPrototypeOf(e,m.Map.prototype);l(e,"constructor",kn,true);return e};m.Map.prototype=h(_t.prototype);B.preserveToString(m.Map,_t)}var kt=new Map;var Rt=function(e){e["delete"](0);e["delete"](-0);e.set(0,3);e.get(-0,4);return e.get(0)===3&&e.get(-0)===4}(kt);var Ft=kt.set(1,2)===kt;if(!Rt||!Ft){var Lt=Map.prototype.set;U(Map.prototype,"set",function Rn(e,r){t(Lt,this,e===0?0:e,r);return this})}if(!Rt){var zt=Map.prototype.get;var Dt=Map.prototype.has;v(Map.prototype,{get:function Fn(e){return t(zt,this,e===0?0:e)},has:function Ln(e){return t(Dt,this,e===0?0:e)}},true);B.preserveToString(Map.prototype.get,zt);B.preserveToString(Map.prototype.has,Dt)}var qt=new Set;var Gt=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(qt);var Ht=qt.add(1)===qt;if(!Gt||!Ht){var Wt=Set.prototype.add;Set.prototype.add=function zn(e){t(Wt,this,e===0?0:e);return this};B.preserveToString(Set.prototype.add,Wt)}if(!Gt){var Vt=Set.prototype.has;Set.prototype.has=function Dn(e){return t(Vt,this,e===0?0:e)};B.preserveToString(Set.prototype.has,Vt);var $t=Set.prototype["delete"];Set.prototype["delete"]=function qn(e){return t($t,this,e===0?0:e)};B.preserveToString(Set.prototype["delete"],$t)}var Bt=y(m.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Ut=Object.setPrototypeOf&&!Bt;var Xt=function(){try{return!(m.Map()instanceof m.Map)}catch(e){return e instanceof TypeError}}();if(m.Map.length!==0||Ut||!Xt){var Zt=m.Map;m.Map=function Gn(){if(!(this instanceof Gn)){throw new TypeError('Constructor Map requires "new"')}var e=new Zt;if(arguments.length>0){Pt(Gn,e,arguments[0])}Object.setPrototypeOf(e,Gn.prototype);l(e,"constructor",Gn,true);return e};m.Map.prototype=Zt.prototype;B.preserveToString(m.Map,Zt)}var Kt=y(m.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var Jt=Object.setPrototypeOf&&!Kt;var Qt=function(){try{return!(m.Set()instanceof m.Set)}catch(e){return e instanceof TypeError}}();if(m.Set.length!==0||Jt||!Qt){var Yt=m.Set;m.Set=function Hn(){if(!(this instanceof Hn)){throw new TypeError('Constructor Set requires "new"')}var e=new Yt;if(arguments.length>0){Ct(Hn,e,arguments[0])}Object.setPrototypeOf(e,Hn.prototype);l(e,"constructor",Hn,true);return e};m.Set.prototype=Yt.prototype;B.preserveToString(m.Set,Yt)}var er=!o(function(){return(new Map).keys().next().done});if(typeof m.Map.prototype.clear!=="function"||(new m.Set).size!==0||(new m.Map).size!==0||typeof m.Map.prototype.keys!=="function"||typeof m.Set.prototype.keys!=="function"||typeof m.Map.prototype.forEach!=="function"||typeof m.Set.prototype.forEach!=="function"||i(m.Map)||i(m.Set)||typeof(new m.Map).keys().next!=="function"||er||!Bt){delete m.Map;delete m.Set;v(m,{Map:Nt.Map,Set:Nt.Set},true)}}if(m.Set.prototype.keys!==m.Set.prototype.values){l(m.Set.prototype,"keys",m.Set.prototype.values,true)}Z(Object.getPrototypeOf((new m.Map).keys()));Z(Object.getPrototypeOf((new m.Set).keys()))}H(Map);H(Set);if(!m.Reflect){l(m,"Reflect",{})}var tr=m.Reflect;var rr=function Wn(e){if(!J.TypeIsObject(e)){throw new TypeError("target must be an object")}};v(m.Reflect,{apply:function Vn(){return e(J.Call,null,arguments)},construct:function $n(e,t){if(!J.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!J.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return J.Construct(e,t,r,"internal")},deleteProperty:function Bn(e,t){rr(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function Un(e){rr(e);return new ce(e,"key")},has:function Xn(e,t){rr(e);return t in e}});if(Object.getOwnPropertyNames){v(m.Reflect,{ownKeys:function Zn(e){rr(e);var t=Object.getOwnPropertyNames(e);if(J.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var nr=function Kn(e){return!n(e)};if(Object.preventExtensions){v(m.Reflect,{isExtensible:function Jn(e){rr(e);return Object.isExtensible(e)},preventExtensions:function Qn(e){rr(e);return nr(function(){Object.preventExtensions(e)})}})}if(u){var or=function Yn(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return or(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var ir=function eo(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return ir(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!J.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return tr.defineProperty(o,r,{value:n})}else{return tr.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};v(m.Reflect,{defineProperty:function to(e,t,r){rr(e);return nr(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function ro(e,t){rr(e);return Object.getOwnPropertyDescriptor(e,t)},get:function no(e,t){rr(e);var r=arguments.length>2?arguments[2]:e;return or(e,t,r)},set:function oo(e,t,r){rr(e);var n=arguments.length>3?arguments[3]:e;return ir(e,t,r,n)}})}if(Object.getPrototypeOf){var ar=Object.getPrototypeOf;v(m.Reflect,{getPrototypeOf:function io(e){rr(e);return ar(e)}})}if(Object.setPrototypeOf){var ur=function(e,t){while(t){if(e===t){return true}t=tr.getPrototypeOf(t)}return false};v(m.Reflect,{setPrototypeOf:function ao(e,t){rr(e);if(t!==null&&!J.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===tr.getPrototypeOf(e)){return true}if(tr.isExtensible&&!tr.isExtensible(e)){return false}if(ur(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}if(String(new Date(NaN))!=="Invalid Date"){var sr=Date.prototype.toString;var fr=function uo(){var e=+this;if(e!==e){return"Invalid Date"}return t(sr,this)};U(Date.prototype,"toString",fr)}var cr={anchor:function so(e){return J.CreateHTML(this,"a","name",e)},big:function fo(){return J.CreateHTML(this,"big","","")},blink:function co(){return J.CreateHTML(this,"blink","","")},bold:function po(){return J.CreateHTML(this,"b","","")},fixed:function lo(){return J.CreateHTML(this,"tt","","")},fontcolor:function vo(e){return J.CreateHTML(this,"font","color",e)},fontsize:function ho(e){return J.CreateHTML(this,"font","size",e)},italics:function yo(){return J.CreateHTML(this,"i","","")},link:function bo(e){return J.CreateHTML(this,"a","href",e)},small:function go(){return J.CreateHTML(this,"small","","")},strike:function mo(){return J.CreateHTML(this,"strike","","")},sub:function wo(){return J.CreateHTML(this,"sub","","")},sup:function Oo(){return J.CreateHTML(this,"sup","","")}};s(Object.keys(cr),function(e){var r=String.prototype[e];var n=false;if(J.IsCallable(r)){var o=t(r,"",' " ');var i=I([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){l(String.prototype,e,cr[e],true)}});return m});
(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.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=function pr(t){return function r(){return!e(t,this,arguments)}};var n=function(e){try{e();return false}catch(t){return true}};var o=function lr(e){try{return e()}catch(t){return false}};var i=r(n);var a=function(){return!n(function(){Object.defineProperty({},"x",{})})};var u=!!Object.defineProperty&&a();var s=Function.call.bind(Array.prototype.forEach);var f=Function.call.bind(Array.prototype.reduce);var c=Function.call.bind(Array.prototype.filter);var p=Function.call.bind(Array.prototype.every);var l=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 v=function(e,t){s(Object.keys(t),function(r){var n=t[r];l(e,r,n,false)})};var h=Object.create||function(e,t){var r=function o(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){Object.keys(t).forEach(function(e){$.defineByDescriptor(n,e,t[e])})}return n};var y=function(e,t){if(!Object.setPrototypeOf){return false}return o(function(){var r=function n(t){var r=new e(t);Object.setPrototypeOf(r,n.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=h(e.prototype,{constructor:{value:r}});return t(r)})};var b=function(){return String.prototype.startsWith&&n(function(){"/a/".startsWith(/a/)})};var g=function(){return String.prototype.startsWith&&"abc".startsWith("a",Infinity)===false}();var d=new Function("return this;");var m=d();var w=m.isFinite;var O=function(){return this===null}.call(null);var j=b()&&g;var T=Function.call.bind(String.prototype.indexOf);var S=Function.call.bind(Object.prototype.toString);var I=Function.call.bind(Array.prototype.concat);var E=Function.call.bind(String.prototype.slice);var M=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var P=Function.call.bind(Array.prototype.shift);var C=Math.max;var N=Math.min;var A=Math.floor;var _=Math.abs;var k=Math.log;var R=Math.sqrt;var F=Function.call.bind(Object.prototype.hasOwnProperty);var L;var D=function(){};var z=m.Symbol||{};var q=z.species||"@@species";var G=function(){return this};var H=function(e){if(u&&!F(e,q)){$.getter(e,q,G)}};var W={object:function(e){return e!==null&&typeof e==="object"},string:function(e){return S(e)==="[object String]"},regex:function(e){return S(e)==="[object RegExp]"},symbol:function(e){return typeof m.Symbol==="function"&&typeof e==="symbol"}};var B=Number.isNaN||function vr(e){return e!==e};var V=Number.isFinite||function hr(e){return typeof e==="number"&&w(e)};var $={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 o(){return e[t]},set:function i(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}},defineByDescriptor:function(e,t,r){if(u){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){l(e,"toString",t.toString.bind(t),true)}};var U=function yr(e,t,r){var n=e[t];l(e,t,r,true);$.preserveToString(e[t],n)};var X=W.symbol(z.iterator)?z.iterator:"_es6-shim iterator_";if(m.Set&&typeof(new m.Set)["@@iterator"]==="function"){X="@@iterator"}var Z=function(e,t){var r=t||function o(){return this};var n={};n[X]=r;v(e,n);if(!e[X]&&W.symbol(X)){e[X]=r}};var K=function br(e){var t=S(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&S(e.callee)==="[object Function]"}return r};var J={Call:function gr(t,r){var n=arguments.length>2?arguments[2]:[];if(!J.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},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){J.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&S(e)==="[object Function]"},IsConstructor:function(e){return J.IsCallable(e)},ToInt32:function(e){return J.ToNumber(e)>>0},ToUint32:function(e){return J.ToNumber(e)>>>0},ToNumber:function(e){if(S(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=J.ToNumber(e);if(B(t)){return 0}if(t===0||!V(t)){return t}return(t>0?1:-1)*A(_(t))},ToLength:function(e){var t=J.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 B(e)&&B(t)},SameValueZero:function(e,t){return e===t||B(e)&&B(t)},IsIterable:function(e){return J.TypeIsObject(e)&&(typeof e[X]!=="undefined"||K(e))},GetIterator:function(e){if(K(e)){return new L(e,"value")}var r=J.GetMethod(e,X);if(!J.IsCallable(r)){throw new TypeError("value is not an iterable")}var n=t(r,e);if(!J.TypeIsObject(n)){throw new TypeError("bad iterator")}return n},GetMethod:function(e,t){var r=J.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!J.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,r){var n=J.GetMethod(e,"return");if(n===void 0){return}var o,i;try{o=t(n,e)}catch(a){i=a}if(r){return}if(i){throw i}if(!J.TypeIsObject(o)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!J.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=J.IteratorNext(e);var r=J.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){if(r===void 0){r=e}if(!n){return tr.construct(e,t,r)}var o=r.prototype;if(!J.TypeIsObject(o)){o=Object.prototype}var i=h(o);var a=J.Call(e,i,t);return J.TypeIsObject(a)?a:i},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!J.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[q];if(n===void 0||n===null){return t}if(!J.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},CreateHTML:function(e,t,r,n){var o=String(e);var i="<"+t;if(r!==""){var a=String(n);var u=a.replace(/"/g,"&quot;");i+=" "+r+'="'+u+'"'}var s=i+">";var f=s+o;return f+"</"+t+">"}};var Q=function(e,t,r,n){if(!J.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!J.TypeIsObject(o)){o=r}e=h(o);for(var i in n){if(F(n,i)){var a=n[i];l(e,i,a,true)}}return e};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var Y=String.fromCodePoint;U(String,"fromCodePoint",function dr(t){return e(Y,this,arguments)})}var ee={fromCodePoint:function mr(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n++){r=Number(arguments[n]);if(!J.SameValue(r,J.ToInteger(r))||r<0||r>1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){M(t,String.fromCharCode(r))}else{r-=65536;M(t,String.fromCharCode((r>>10)+55296));M(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function wr(e){var t=J.ToObject(e,"bad callSite");var r=J.ToObject(t.raw,"bad raw value");var n=r.length;var o=J.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,s,f,c;while(a<o){u=String(a);f=String(r[u]);M(i,f);if(a+1>=o){break}s=a+1<arguments.length?arguments[a+1]:"";c=String(s);M(i,c);a++}return i.join("")}};v(String,ee);if(String.raw({raw:{0:"x",1:"y",length:2}})!=="xy"){U(String,"raw",ee.raw)}var te=function Or(e,t){if(t<1){return""}if(t%2){return Or(e,t-1)+e}var r=Or(e,t/2);return r+r};var re=Infinity;var ne={repeat:function jr(e){J.RequireObjectCoercible(this);var t=String(this);var r=J.ToInteger(e);if(r<0||r>=re){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return te(t,r)},startsWith:function Tr(e){J.RequireObjectCoercible(this);var t=String(this);if(W.regex(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=String(e);var n=arguments.length>1?arguments[1]:void 0;var o=C(J.ToInteger(n),0);return E(t,o,o+r.length)===r},endsWith:function Sr(e){J.RequireObjectCoercible(this);var t=String(this);if(W.regex(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=String(e);var n=t.length;var o=arguments.length>1?arguments[1]:void 0;var i=typeof o==="undefined"?n:J.ToInteger(o);var a=N(C(i,0),n);return E(t,a-r.length,a)===r},includes:function Ir(e){if(W.regex(e)){throw new TypeError('"includes" does not accept a RegExp')}var t;if(arguments.length>1){t=arguments[1]}return T(this,e,t)!==-1},codePointAt:function Er(e){J.RequireObjectCoercible(this);var t=String(this);var r=J.ToInteger(e);var n=t.length;if(r>=0&&r<n){var o=t.charCodeAt(r);var i=r+1===n;if(o<55296||o>56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};v(String.prototype,ne);if("a".includes("a",Infinity)!==false){U(String.prototype,"includes",ne.includes)}var oe="\x85".trim().length!==1;if(oe){delete String.prototype.trim;var ie=[" \n \f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var ae=new RegExp("(^["+ie+"]+)|(["+ie+"]+$)","g");v(String.prototype,{trim:function Mr(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return String(this).replace(ae,"")}})}var ue=function(e){J.RequireObjectCoercible(e);this._s=String(e);this._i=0};ue.prototype.next=function(){var e=this._s,t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return{value:e.substr(t,o),done:false}};Z(ue.prototype);Z(String.prototype,function(){return new ue(this)});if(!j){U(String.prototype,"startsWith",ne.startsWith);U(String.prototype,"endsWith",ne.endsWith)}var se={from:function xr(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!J.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}i=arguments.length>2?arguments[2]:void 0;o=true}var a=K(e)||J.GetMethod(e,X);var u,s,f;if(a!==void 0){s=J.IsConstructor(r)?Object(new r):[];var c=J.GetIterator(e);var p,l;for(f=0;;++f){p=J.IteratorStep(c);if(p===false){break}l=p.value;try{if(o){l=i!==undefined?t(n,i,l,f):n(l,f)}s[f]=l}catch(v){J.IteratorClose(c,true);throw v}}u=f}else{var h=J.ToObject(e);u=J.ToLength(h.length);s=J.IsConstructor(r)?Object(new r(u)):new Array(u);var y;for(f=0;f<u;++f){y=h[f];if(o){y=i!==undefined?t(n,i,y,f):n(y,f)}s[f]=y}}s.length=u;return s},of:function Pr(){return t(Array.from,this,arguments)}};v(Array,se);H(Array);var fe=function(e){return{value:e,done:arguments.length===0}};L=function(e,t){this.i=0;this.array=e;this.kind=t};v(L.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof L)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=J.ToLength(t.length);for(;e<r;e++){var n=this.kind;var o;if(n==="key"){o=e}else if(n==="value"){o=t[e]}else if(n==="entry"){o=[e,t[e]]}this.i=e+1;return{value:o,done:false}}}this.array=void 0;return{value:void 0,done:true}}});Z(L.prototype);var ce=function(e,t){this.object=e;this.array=null;this.kind=t};var pe=function Cr(e){var t=[];for(var r in e){M(t,r)}return t};v(ce.prototype,{next:function(){var e,t=this.array;if(!(this instanceof ce)){throw new TypeError("Not an ObjectIterator")}if(t===null){t=this.array=pe(this.object)}while(J.ToLength(t.length)>0){e=P(t);if(!(e in this.object)){continue}if(this.kind==="key"){return fe(e)}else if(this.kind==="value"){return fe(this.object[e])}else{return fe([e,this.object[e]])}}return fe()}});Z(ce.prototype);var le=function(){var e=function r(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!le){U(Array,"of",se.of)}var ve={copyWithin:function Nr(e,t){var r=arguments[2];var n=J.ToObject(this);var o=J.ToLength(n.length);var i=J.ToInteger(e);var a=J.ToInteger(t);var u=i<0?C(o+i,0):N(i,o);var s=a<0?C(o+a,0):N(a,o);r=typeof r==="undefined"?o:J.ToInteger(r);var f=r<0?C(o+r,0):N(r,o);var c=N(f-s,o-u);var p=1;if(s<u&&u<s+c){p=-1;s+=c-1;u+=c-1}while(c>0){if(F(n,s)){n[u]=n[s]}else{delete n[s]}s+=p;u+=p;c-=1}return n},fill:function Ar(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=J.ToObject(this);var o=J.ToLength(n.length);t=J.ToInteger(typeof t==="undefined"?0:t);r=J.ToInteger(typeof r==="undefined"?o:r);var i=t<0?C(o+t,0):N(t,o);var a=r<0?o+r:r;for(var u=i;u<o&&u<a;++u){n[u]=e}return n},find:function _r(e){var r=J.ToObject(this);var n=J.ToLength(r.length);if(!J.IsCallable(e)){throw new TypeError("Array#find: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0,a;i<n;i++){a=r[i];if(o){if(t(e,o,a,i,r)){return a}}else if(e(a,i,r)){return a}}},findIndex:function kr(e){var r=J.ToObject(this);var n=J.ToLength(r.length);if(!J.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0;i<n;i++){if(o){if(t(e,o,r[i],i,r)){return i}}else if(e(r[i],i,r)){return i}}return-1},keys:function Rr(){return new L(this,"key")},values:function Fr(){return new L(this,"value")},entries:function Lr(){return new L(this,"entry")}};if(Array.prototype.keys&&!J.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!J.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[X]){v(Array.prototype,{values:Array.prototype[X]});if(W.symbol(z.unscopables)){Array.prototype[z.unscopables].values=true}}if(Array.prototype.values&&Array.prototype.values.name!=="values"){var he=Array.prototype.values;U(Array.prototype,"values",function Dr(){return t(he,this)});l(Array.prototype,X,Array.prototype.values,true)}v(Array.prototype,ve);Z(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){Z(Object.getPrototypeOf([].values()))}var ye=function(){return o(function(){return Array.from({length:-1}).length===0})}();var be=function(){var e=Array.from([0].entries());return e.length===1&&e[0][0]===0&&e[0][1]===1}();if(!ye||!be){U(Array,"from",se.from)}var ge=function(e,r){var n={length:-1};n[r?(-1>>>0)-1:0]=true;return o(function(){t(e,n,function(){throw new RangeError("should not reach here")},[])})};if(!ge(Array.prototype.forEach)){var de=Array.prototype.forEach;U(Array.prototype,"forEach",function zr(t){return e(de,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.map)){var me=Array.prototype.map;U(Array.prototype,"map",function qr(t){return e(me,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.filter)){var we=Array.prototype.filter;U(Array.prototype,"filter",function Gr(t){return e(we,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.some)){var Oe=Array.prototype.some;U(Array.prototype,"some",function Hr(t){return e(Oe,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.every)){var je=Array.prototype.every;U(Array.prototype,"every",function Wr(t){return e(je,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.reduce)){var Te=Array.prototype.reduce;U(Array.prototype,"reduce",function Br(t){return e(Te,this.length>=0?this:[],arguments)},true)}if(!ge(Array.prototype.reduceRight,true)){var Se=Array.prototype.reduceRight;U(Array.prototype,"reduceRight",function Vr(t){return e(Se,this.length>=0?this:[],arguments)},true)}var Ie=Math.pow(2,53)-1;v(Number,{MAX_SAFE_INTEGER:Ie,MIN_SAFE_INTEGER:-Ie,EPSILON:2.220446049250313e-16,parseInt:m.parseInt,parseFloat:m.parseFloat,isFinite:V,isInteger:function $r(e){return V(e)&&J.ToInteger(e)===e},isSafeInteger:function Ur(e){return Number.isInteger(e)&&_(e)<=Number.MAX_SAFE_INTEGER},isNaN:B});l(Number,"parseInt",m.parseInt,Number.parseInt!==m.parseInt);if(![,1].find(function(e,t){return t===0})){U(Array.prototype,"find",ve.find)}if([,1].findIndex(function(e,t){return t===0})!==0){U(Array.prototype,"findIndex",ve.findIndex)}var Ee=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var Me=function Xr(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o<t;++o){n[o-e]=arguments[o]}return n};var xe=function Zr(e){return function t(r,n){r[n]=e[n];return r}};var Pe=function(e,t){var r=Object.keys(Object(t));var n;if(J.IsCallable(Object.getOwnPropertySymbols)){n=c(Object.getOwnPropertySymbols(Object(t)),Ee(t))}return f(I(r,n||[]),xe(t),e)};var Ce={assign:function(t,r){var n=J.ToObject(t,"Cannot convert undefined or null to object");return f(e(Me,1,arguments),Pe,n)},is:function Kr(e,t){return J.SameValue(e,t)}};var Ne=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return e[1]==="y"}}();if(Ne){U(Object,"assign",Ce.assign)}v(Object,Ce);if(u){var Ae={setPrototypeOf:function(e,r){var n;var o=function(e,t){if(!J.TypeIsObject(e)){throw new TypeError("cannot set prototype on a non-object")}if(!(t===null||J.TypeIsObject(t))){throw new TypeError("can only set prototype to an object or null"+t)}};var i=function(e,r){o(e,r);t(n,e,r);return e};try{n=e.getOwnPropertyDescriptor(e.prototype,r).set;t(n,{},null)}catch(a){if(e.prototype!=={}[r]){return}n=function(e){this[r]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,"__proto__")};v(Object,Ae)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);return n===e?null:n};Object.setPrototypeOf=function(t,n){var o=n===null?e:n;return r(t,o)};Object.setPrototypeOf.polyfill=false})()}var _e=!n(function(){Object.keys("foo")});if(!_e){var ke=Object.keys;U(Object,"keys",function Jr(e){return ke(J.ToObject(e))})}if(Object.getOwnPropertyNames){var Re=!n(function(){Object.getOwnPropertyNames("foo")});if(!Re){var Fe=typeof window==="object"?Object.getOwnPropertyNames(window):[];var Le=Object.getOwnPropertyNames;U(Object,"getOwnPropertyNames",function Qr(e){var t=J.ToObject(e);if(S(t)==="[object Window]"){try{return Le(t)}catch(r){return I([],Fe)}}return Le(t)})}}if(Object.getOwnPropertyDescriptor){var De=!n(function(){Object.getOwnPropertyDescriptor("foo","bar")});if(!De){var ze=Object.getOwnPropertyDescriptor;U(Object,"getOwnPropertyDescriptor",function Yr(e,t){return ze(J.ToObject(e),t)})}}if(Object.seal){var qe=!n(function(){Object.seal("foo")});if(!qe){var Ge=Object.seal;U(Object,"seal",function en(e){if(!W.object(e)){return e}return Ge(e)})}}if(Object.isSealed){var He=!n(function(){Object.isSealed("foo")});if(!He){var We=Object.isSealed;U(Object,"isSealed",function tn(e){if(!W.object(e)){return true}return We(e)})}}if(Object.freeze){var Be=!n(function(){Object.freeze("foo")});if(!Be){var Ve=Object.freeze;U(Object,"freeze",function rn(e){if(!W.object(e)){return e}return Ve(e)})}}if(Object.isFrozen){var $e=!n(function(){Object.isFrozen("foo")});if(!$e){var Ue=Object.isFrozen;U(Object,"isFrozen",function nn(e){if(!W.object(e)){return true}return Ue(e)})}}if(Object.preventExtensions){var Xe=!n(function(){Object.preventExtensions("foo")});if(!Xe){var Ze=Object.preventExtensions;U(Object,"preventExtensions",function on(e){if(!W.object(e)){return e}return Ze(e)})}}if(Object.isExtensible){var Ke=!n(function(){Object.isExtensible("foo")});if(!Ke){var Je=Object.isExtensible;U(Object,"isExtensible",function an(e){if(!W.object(e)){return false}return Je(e)})}}if(Object.getPrototypeOf){var Qe=!n(function(){Object.getPrototypeOf("foo")});if(!Qe){var Ye=Object.getPrototypeOf;U(Object,"getPrototypeOf",function un(e){return Ye(J.ToObject(e))})}}if(!RegExp.prototype.flags&&u){var et=function sn(){if(!J.TypeIsObject(this)){throw new TypeError("Method called on incompatible type: must be an object.")}var e="";if(this.global){e+="g"}if(this.ignoreCase){e+="i"}if(this.multiline){e+="m"}if(this.unicode){e+="u"}if(this.sticky){e+="y"}return e};$.getter(RegExp.prototype,"flags",et)}var tt=o(function(){return String(new RegExp(/a/g,"i"))==="/a/i"});if(!tt&&u){var rt=RegExp;var nt=function fn(e,t){var r=this instanceof fn;if(!r&&(W.regex(e)||e&&e.constructor===fn)){return e}if(W.regex(e)&&W.string(t)){return new fn(e.source,t)}return new rt(e,t)};$.preserveToString(nt,rt);if(Object.setPrototypeOf){Object.setPrototypeOf(rt,nt)}s(Object.getOwnPropertyNames(rt),function(e){if(e==="$input"){return}if(e in D){return}$.proxy(rt,e,nt)});nt.prototype=rt.prototype;$.redefine(rt.prototype,"constructor",nt);RegExp=nt;$.redefine(m,"RegExp",nt)}if(u){var ot={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};s(Object.keys(ot),function(e){if(e in RegExp&&!(ot[e]in RegExp)){$.getter(RegExp,ot[e],function t(){return RegExp[e]})}})}H(RegExp);var it=1/Number.EPSILON;var at=function cn(e){return e+it-it};var ut=Math.pow(2,-23);var st=Math.pow(2,127)*(2-ut);var ft=Math.pow(2,-126);var ct=Number.prototype.clz;delete Number.prototype.clz;var pt={acosh:function pn(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return k(t/Math.E+R(t+1)*R(t-1)/Math.E)+1},asinh:function ln(e){var t=Number(e);if(t===0||!w(t)){return t}return t<0?-Math.asinh(-t):k(t+R(t*t+1))},atanh:function vn(e){var t=Number(e);if(Number.isNaN(t)||t<-1||t>1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*k((1+t)/(1-t))},cbrt:function hn(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(k(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function yn(e){var r=Number(e);var n=J.ToUint32(r);if(n===0){return 32}return ct?t(ct,n):31-A(k(n+.5)*Math.LOG2E)},cosh:function bn(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!w(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function gn(e){var t=Number(e);if(t===-Infinity){return-1}if(!w(t)||t===0){return t}if(_(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function dn(e,t){var r=0;var n=0;for(var o=0;o<arguments.length;++o){var i=_(Number(arguments[o]));if(n<i){r*=n/i*(n/i);r+=1;n=i}else{r+=i>0?i/n*(i/n):i}}return n===Infinity?Infinity:n*R(r)},log2:function mn(e){return k(e)*Math.LOG2E},log10:function wn(e){return k(e)*Math.LOG10E},log1p:function On(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(k(1+t)/(1+t-1))},sign:function jn(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function Tn(e){var t=Number(e);if(!w(t)||t===0){return t}if(_(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function Sn(e){var t=Number(e);if(Number.isNaN(t)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function In(e){var t=Number(e);return t<0?-A(-t):A(t)},imul:function En(e,t){var r=J.ToUint32(e);var n=J.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function Mn(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||B(t)){return t}var r=Math.sign(t);var n=_(t);if(n<ft){return r*at(n/ft/ut)*ft*ut}var o=(1+ut/Number.EPSILON)*n;var i=o-(o-n);if(i>st||B(i)){return r*Infinity}return r*i}};v(Math,pt);l(Math,"log1p",pt.log1p,Math.log1p(-1e-17)!==-1e-17);l(Math,"asinh",pt.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));l(Math,"tanh",pt.tanh,Math.tanh(-2e-17)!==-2e-17);l(Math,"acosh",pt.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);l(Math,"cbrt",pt.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);l(Math,"sinh",pt.sinh,Math.sinh(-2e-17)!==-2e-17);var lt=Math.expm1(10);l(Math,"expm1",pt.expm1,lt>22025.465794806718||lt<22025.465794806718);var vt=Math.round;var ht=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var yt=it+1;var bt=2*it-1;var gt=[yt,bt].every(function(e){return Math.round(e)===e});l(Math,"round",function xn(e){var t=A(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!ht||!gt);$.preserveToString(Math.round,vt);var dt=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=pt.imul;$.preserveToString(Math.imul,dt)}if(Math.imul.length!==2){U(Math,"imul",function Pn(t,r){return e(dt,Math,arguments)})}var mt=function(){J.IsPromise=function(e){if(!J.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var e=function(e){if(!J.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.promise=new e(r);if(!(J.IsCallable(t.resolve)&&J.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var r=m.setTimeout;var n;if(typeof window!=="undefined"&&J.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){M(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=P(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=m.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=J.IsCallable(m.setImmediate)?m.setImmediate.bind(m):typeof process==="object"&&process.nextTick?process.nextTick:o()||(J.IsCallable(n)?n():function(e){r(e,0)});var a=1;var u=2;var f=3;var c=4;var p=5;var l=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,s;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(f){o=f;i=true}}s=i?r.reject:r.resolve;s(o)};var h=function(e,t){s(e,function(e){i(function(){l(e,t)})})};var y=function(e,t){var r=e._promise;var n=r.fulfillReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=c;h(n,t)};var b=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=p;h(n,t)};var g=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return b(e,new TypeError("Self resolution"))}if(!J.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return b(e,o)}if(!J.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return b(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=g(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var w=function(e){if(!J.TypeIsObject(e)){throw new TypeError("Promise is not object")}var t=e[q];if(t!==void 0&&t!==null){return t}return e};var O=function E(e){if(!(this instanceof E)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!J.IsCallable(e)){throw new TypeError("not a valid resolver")}var t=Q(this,E,j,{_promise:{result:void 0,state:f,fulfillReactions:[],rejectReactions:[]}});var r=g(t);var n=r.reject;try{e(r.resolve,n)}catch(o){n(o)}return t};var j=O.prototype;var T=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var S=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;for(var s=0;;s++){try{a=J.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(f){e.done=true;throw f}o[s]=void 0;var c=t.resolve(u);var p=T(s,o,r,i);i.count++;c.then(p,r.reject)}if(--i.count===0){var l=r.resolve;l(o)}return r.promise};var I=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=J.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);a.then(r.resolve,r.reject)}return r.promise};v(O,{all:function x(t){var r=w(this);var n=new e(r);var o,i;try{o=J.GetIterator(t);i={iterator:o,done:false};return S(i,r,n)}catch(a){if(i&&!i.done){try{J.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},race:function C(t){var r=w(this);var n=new e(r);var o,i;try{o=J.GetIterator(t);i={iterator:o,done:false};return I(i,r,n)}catch(a){if(i&&!i.done){try{J.IteratorClose(o,true)}catch(u){a=u}}var s=n.reject;s(a);return n.promise}},reject:function N(t){var r=this;var n=new e(r);var o=n.reject;o(t);return n.promise},resolve:function A(t){var r=this;if(J.IsPromise(t)){var n=t.constructor;if(n===r){return t}}var o=new e(r);var i=o.resolve;i(t);return o.promise}});v(j,{"catch":function(e){return this.then(void 0,e)},then:function _(t,r){var n=this;if(!J.IsPromise(n)){throw new TypeError("not a promise")}var o=J.SpeciesConstructor(n,O);var s=new e(o);if(!J.IsCallable(t)){t=a}if(!J.IsCallable(r)){r=u}var v={capabilities:s,handler:t};var h={capabilities:s,handler:r};var y=n._promise,b;switch(y.state){case f:M(y.fulfillReactions,v);M(y.rejectReactions,h);break;case c:b=y.result;i(function(){l(v,b)});break;case p:b=y.result;i(function(){l(h,b)});break;default:throw new TypeError("unexpected")}return s.promise}});return O}();if(m.Promise){delete m.Promise.accept;delete m.Promise.defer;delete m.Promise.prototype.chain}v(m,{Promise:mt});var wt=y(m.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Ot=!n(function(){m.Promise.reject(42).then(null,5).then(null,D)});var jt=n(function(){m.Promise.call(3,D)});var Tt=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(m.Promise);if(!wt||!Ot||!jt||Tt){Promise=mt;U(m,"Promise",mt)}H(Promise);var St=function(e){var t=Object.keys(f(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var It=St(["z","a","bb"]);var Et=St(["z",1,"a","3",2]);if(u){var Mt=function Cn(e){if(!It){return null}var t=typeof e;if(t==="undefined"||e===null){return"^"+String(e)}else if(t==="string"){return"$"+e}else if(t==="number"){if(!Et){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var xt=function Nn(){return Object.create?Object.create(null):{}};var Pt=function An(e,r,n){if(Array.isArray(n)||W.string(n)){s(n,function(e){r.set(e[0],e[1])})}else if(n instanceof e){t(e.prototype.forEach,n,function(e,t){r.set(t,e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.set;if(!J.IsCallable(i)){throw new TypeError("bad map")}o=J.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=J.IteratorStep(o);if(a===false){break}var u=a.value;try{if(!J.TypeIsObject(u)){throw new TypeError("expected iterable of pairs")}t(i,r,u[0],u[1])}catch(f){J.IteratorClose(o,true);throw f}}}}};var Ct=function _n(e,r,n){if(Array.isArray(n)||W.string(n)){s(n,function(e){r.add(e)})}else if(n instanceof e){t(e.prototype.forEach,n,function(e){r.add(e)})}else{var o,i;if(n!==null&&typeof n!=="undefined"){i=r.add;if(!J.IsCallable(i)){throw new TypeError("bad set")}o=J.GetIterator(n)}if(typeof o!=="undefined"){while(true){var a=J.IteratorStep(o);if(a===false){break}var u=a.value;try{t(i,r,u)}catch(f){J.IteratorClose(o,true);throw f}}}}};var Nt={Map:function(){var e={};var r=function s(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function f(){return this.key===e;
};var n=function c(e){return!!e._es6map};var o=function p(e,t){if(!J.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+String(e))}};var i=function l(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function h(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i==="undefined"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t==="key"){n=e.key}else if(t==="value"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};Z(i.prototype);var a=function y(){if(!(this instanceof y)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=Q(this,y,u,{_es6map:true,_head:null,_storage:xt(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Pt(y,e,arguments[0])}return e};var u=a.prototype;$.getter(u,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});v(u,{get:function b(e){o(this,"get");var t=Mt(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(J.SameValueZero(i.key,e)){return i.value}}},has:function g(e){o(this,"has");var t=Mt(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(J.SameValueZero(n.key,e)){return true}}return false},set:function d(e,t){o(this,"set");var n=this._head,i=n,a;var u=Mt(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(J.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(J.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head,n=r;var i=Mt(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(J.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function m(){o(this,"clear");this._size=0;this._storage=xt();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function w(){o(this,"keys");return new i(this,"key")},values:function O(){o(this,"values");return new i(this,"value")},entries:function j(){o(this,"entries");return new i(this,"key+value")},forEach:function T(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});Z(u,u.entries);return a}(),Set:function(){var e=function a(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function u(t,r){if(!J.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+String(t))}};var n=function f(){if(!(this instanceof f)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=Q(this,f,o,{_es6set:true,"[[SetData]]":null,_storage:xt()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){Ct(f,e,arguments[0])}return e};var o=n.prototype;var i=function c(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Nt.Map;s(Object.keys(e._storage),function(e){if(e==="^null"){e=null}else if(e==="^undefined"){e=void 0}else{var r=e.charAt(0);if(r==="$"){e=E(e,1)}else if(r==="n"){e=+E(e,1)}else if(r==="b"){e=e==="btrue"}else{e=+e}}t.set(e,e)});e._storage=null}};$.getter(n.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});v(n.prototype,{has:function p(e){r(this,"has");var t;if(this._storage&&(t=Mt(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function h(e){r(this,"add");var t;if(this._storage&&(t=Mt(e))!==null){this._storage[t]=true;return this}i(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Mt(e))!==null){var n=F(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function y(){r(this,"clear");if(this._storage){this._storage=xt()}else{this["[[SetData]]"].clear()}},values:function b(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function g(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function d(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;i(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});l(n.prototype,"keys",n.prototype.values,true);Z(n.prototype,n.prototype.values);return n}()};v(m,Nt);if(m.Map||m.Set){var At=o(function(){return new Map([[1,2]]).get(1)===2});if(!At){var _t=m.Map;m.Map=function kn(){if(!(this instanceof kn)){throw new TypeError('Constructor Map requires "new"')}var e=new _t;if(arguments.length>0){Pt(kn,e,arguments[0])}Object.setPrototypeOf(e,m.Map.prototype);l(e,"constructor",kn,true);return e};m.Map.prototype=h(_t.prototype);$.preserveToString(m.Map,_t)}var kt=new Map;var Rt=function(e){e["delete"](0);e["delete"](-0);e.set(0,3);e.get(-0,4);return e.get(0)===3&&e.get(-0)===4}(kt);var Ft=kt.set(1,2)===kt;if(!Rt||!Ft){var Lt=Map.prototype.set;U(Map.prototype,"set",function Rn(e,r){t(Lt,this,e===0?0:e,r);return this})}if(!Rt){var Dt=Map.prototype.get;var zt=Map.prototype.has;v(Map.prototype,{get:function Fn(e){return t(Dt,this,e===0?0:e)},has:function Ln(e){return t(zt,this,e===0?0:e)}},true);$.preserveToString(Map.prototype.get,Dt);$.preserveToString(Map.prototype.has,zt)}var qt=new Set;var Gt=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(qt);var Ht=qt.add(1)===qt;if(!Gt||!Ht){var Wt=Set.prototype.add;Set.prototype.add=function Dn(e){t(Wt,this,e===0?0:e);return this};$.preserveToString(Set.prototype.add,Wt)}if(!Gt){var Bt=Set.prototype.has;Set.prototype.has=function zn(e){return t(Bt,this,e===0?0:e)};$.preserveToString(Set.prototype.has,Bt);var Vt=Set.prototype["delete"];Set.prototype["delete"]=function qn(e){return t(Vt,this,e===0?0:e)};$.preserveToString(Set.prototype["delete"],Vt)}var $t=y(m.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Ut=Object.setPrototypeOf&&!$t;var Xt=function(){try{return!(m.Map()instanceof m.Map)}catch(e){return e instanceof TypeError}}();if(m.Map.length!==0||Ut||!Xt){var Zt=m.Map;m.Map=function Gn(){if(!(this instanceof Gn)){throw new TypeError('Constructor Map requires "new"')}var e=new Zt;if(arguments.length>0){Pt(Gn,e,arguments[0])}Object.setPrototypeOf(e,Gn.prototype);l(e,"constructor",Gn,true);return e};m.Map.prototype=Zt.prototype;$.preserveToString(m.Map,Zt)}var Kt=y(m.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var Jt=Object.setPrototypeOf&&!Kt;var Qt=function(){try{return!(m.Set()instanceof m.Set)}catch(e){return e instanceof TypeError}}();if(m.Set.length!==0||Jt||!Qt){var Yt=m.Set;m.Set=function Hn(){if(!(this instanceof Hn)){throw new TypeError('Constructor Set requires "new"')}var e=new Yt;if(arguments.length>0){Ct(Hn,e,arguments[0])}Object.setPrototypeOf(e,Hn.prototype);l(e,"constructor",Hn,true);return e};m.Set.prototype=Yt.prototype;$.preserveToString(m.Set,Yt)}var er=!o(function(){return(new Map).keys().next().done});if(typeof m.Map.prototype.clear!=="function"||(new m.Set).size!==0||(new m.Map).size!==0||typeof m.Map.prototype.keys!=="function"||typeof m.Set.prototype.keys!=="function"||typeof m.Map.prototype.forEach!=="function"||typeof m.Set.prototype.forEach!=="function"||i(m.Map)||i(m.Set)||typeof(new m.Map).keys().next!=="function"||er||!$t){delete m.Map;delete m.Set;v(m,{Map:Nt.Map,Set:Nt.Set},true)}}if(m.Set.prototype.keys!==m.Set.prototype.values){l(m.Set.prototype,"keys",m.Set.prototype.values,true)}Z(Object.getPrototypeOf((new m.Map).keys()));Z(Object.getPrototypeOf((new m.Set).keys()))}H(Map);H(Set);if(!m.Reflect){l(m,"Reflect",{})}var tr=m.Reflect;var rr=function Wn(e){if(!J.TypeIsObject(e)){throw new TypeError("target must be an object")}};v(m.Reflect,{apply:function Bn(){return e(J.Call,null,arguments)},construct:function Vn(e,t){if(!J.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!J.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return J.Construct(e,t,r,"internal")},deleteProperty:function $n(e,t){rr(e);if(u){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function Un(e){rr(e);return new ce(e,"key")},has:function Xn(e,t){rr(e);return t in e}});if(Object.getOwnPropertyNames){v(m.Reflect,{ownKeys:function Zn(e){rr(e);var t=Object.getOwnPropertyNames(e);if(J.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var nr=function Kn(e){return!n(e)};if(Object.preventExtensions){v(m.Reflect,{isExtensible:function Jn(e){rr(e);return Object.isExtensible(e)},preventExtensions:function Qn(e){rr(e);return nr(function(){Object.preventExtensions(e)})}})}if(u){var or=function Yn(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(!o){var i=Object.getPrototypeOf(e);if(i===null){return undefined}return or(i,r,n)}if("value"in o){return o.value}if(o.get){return t(o.get,n)}return undefined};var ir=function eo(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return ir(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!J.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return tr.defineProperty(o,r,{value:n})}else{return tr.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};v(m.Reflect,{defineProperty:function to(e,t,r){rr(e);return nr(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function ro(e,t){rr(e);return Object.getOwnPropertyDescriptor(e,t)},get:function no(e,t){rr(e);var r=arguments.length>2?arguments[2]:e;return or(e,t,r)},set:function oo(e,t,r){rr(e);var n=arguments.length>3?arguments[3]:e;return ir(e,t,r,n)}})}if(Object.getPrototypeOf){var ar=Object.getPrototypeOf;v(m.Reflect,{getPrototypeOf:function io(e){rr(e);return ar(e)}})}if(Object.setPrototypeOf){var ur=function(e,t){while(t){if(e===t){return true}t=tr.getPrototypeOf(t)}return false};v(m.Reflect,{setPrototypeOf:function ao(e,t){rr(e);if(t!==null&&!J.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===tr.getPrototypeOf(e)){return true}if(tr.isExtensible&&!tr.isExtensible(e)){return false}if(ur(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}if(String(new Date(NaN))!=="Invalid Date"){var sr=Date.prototype.toString;var fr=function uo(){var e=+this;if(e!==e){return"Invalid Date"}return t(sr,this)};U(Date.prototype,"toString",fr)}var cr={anchor:function so(e){return J.CreateHTML(this,"a","name",e)},big:function fo(){return J.CreateHTML(this,"big","","")},blink:function co(){return J.CreateHTML(this,"blink","","")},bold:function po(){return J.CreateHTML(this,"b","","")},fixed:function lo(){return J.CreateHTML(this,"tt","","")},fontcolor:function vo(e){return J.CreateHTML(this,"font","color",e)},fontsize:function ho(e){return J.CreateHTML(this,"font","size",e)},italics:function yo(){return J.CreateHTML(this,"i","","")},link:function bo(e){return J.CreateHTML(this,"a","href",e)},small:function go(){return J.CreateHTML(this,"small","","")},strike:function mo(){return J.CreateHTML(this,"strike","","")},sub:function wo(){return J.CreateHTML(this,"sub","","")},sup:function Oo(){return J.CreateHTML(this,"sup","","")}};s(Object.keys(cr),function(e){var r=String.prototype[e];var n=false;if(J.IsCallable(r)){var o=t(r,"",' " ');var i=I([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){l(String.prototype,e,cr[e],true)}});return m});
//# sourceMappingURL=es6-shim.map
{
"name": "es6-shim",
"version": "0.32.1",
"version": "0.32.2",
"author": "Paul Miller (http://paulmillr.com)",

@@ -67,3 +67,3 @@ "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

"chai": "^3.0.0",
"es5-shim": "^4.1.5",
"es5-shim": "^4.1.6",
"grunt": "^0.4.5",

@@ -70,0 +70,0 @@ "grunt-contrib-connect": "^0.10.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc