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

es5-shim

Package Overview
Dependencies
Maintainers
3
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es5-shim - npm Package Compare versions

Comparing version 4.6.2 to 4.6.3

10

CHANGELOG.md

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

4.6.3
- [Fix] `Object.defineProperty`: Chrome <= 36 has a broken dP when setting "prototype" while changing writability
- [Fix] `toExponential`: use `thisNumberValue` instead of `Number()`
- [readme] fix badges
- [readme] add standalone shims
- [actions] reuse common workflows
- [actions] update codecov uploader
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`
- [Tests] avoid loading coverage data when running tests
4.6.2

@@ -2,0 +12,0 @@ - [Fix] IE 6-8 fails to throw on infinite fractional digits

2

es5-shim.min.js

@@ -6,3 +6,3 @@ /*!

*/
(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function;var a=i.prototype;var o=String;var f=o.prototype;var u=Number;var l=u.prototype;var s=r.slice;var c=r.splice;var v=r.push;var h=r.unshift;var p=r.concat;var y=r.join;var d=a.call;var g=a.apply;var w=Math.max;var b=Math.min;var T=Math.floor;var m=Math.abs;var S=Math.pow;var D=Math.round;var x=Math.log;var E=Math.LOG10E;var O=Math.log10||function log10(t){return x(t)*E};var j=n.toString;var I=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var U;var F=Function.prototype.toString,$=/^\s*class /,M=function isES6ClassFn(t){try{var r=F.call(t);var e=r.replace(/\/\/.*\n/g,"");var n=e.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/gm," ").replace(/ {2}/g," ");return $.test(i)}catch(a){return false}},N=function tryFunctionObject(t){try{if(M(t)){return false}F.call(t);return true}catch(r){return false}},C="[object Function]",k="[object GeneratorFunction]",U=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(I){return N(t)}if(M(t)){return false}var r=j.call(t);return r===C||r===k};var A;var R=RegExp.prototype.exec,P=function tryRegexExec(t){try{R.call(t);return true}catch(r){return false}},J="[object RegExp]";A=function isRegex(t){if(typeof t!=="object"){return false}return I?P(t):j.call(t)===J};var Y;var z=String.prototype.valueOf,Z=function tryStringObject(t){try{z.call(t);return true}catch(r){return false}},G="[object String]";Y=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return I?Z(t):j.call(t)===G};var H=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var W=function(t){var r;if(H){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);var B=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var L=u.isNaN||function isActualNaN(t){return t!==t};var X={ToInteger:function ToInteger(t){var r=+t;if(L(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*T(m(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(B(t)){return t}e=t.valueOf;if(U(e)){r=e.call(t);if(B(r)){return r}}n=t.toString;if(U(n)){r=n.call(t);if(B(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var q=function Empty(){};W(a,{bind:function bind(t){var r=this;if(!U(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=s.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=g.call(r,this,p.call(n,s.call(arguments)));if(e(i)===i){return i}return this}return g.call(r,t,p.call(n,s.call(arguments)))};var f=w(0,r.length-n.length);var u=[];for(var l=0;l<f;l++){v.call(u,"$"+l)}a=i("binder","return function ("+y.call(u,",")+"){ return binder.apply(this, arguments); }")(o);if(r.prototype){q.prototype=r.prototype;a.prototype=new q;q.prototype=null}return a}});var K=d.bind(n.hasOwnProperty);var Q=d.bind(n.toString);var V=d.bind(s);var _=g.bind(s);if(typeof document==="object"&&document&&document.documentElement){try{V(document.documentElement.childNodes)}catch(tt){var rt=V;var et=_;V=function arraySliceIE(t){var r=[];var e=t.length;while(e-- >0){r[e]=t[e]}return et(r,rt(arguments,1))};_=function arraySliceApplyIE(t,r){return et(V(t),r)}}}var nt=d.bind(f.slice);var it=d.bind(f.split);var at=d.bind(f.indexOf);var ot=d.bind(v);var ft=d.bind(n.propertyIsEnumerable);var ut=d.bind(r.sort);var lt=t.isArray||function isArray(t){return Q(t)==="[object Array]"};var st=[].unshift(0)!==1;W(r,{unshift:function(){h.apply(this,arguments);return this.length}},st);W(t,{isArray:lt});var ct=e("a");var vt=ct[0]!=="a"||!(0 in ct);var ht=function properlyBoxed(t){var r=true;var e=true;var n=false;if(t){try{t.call("foo",function(t,e,n){if(typeof n!=="object"){r=false}});t.call([1],function(){"use strict";e=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&r&&e};W(r,{forEach:function forEach(t){var r=X.ToObject(this);var e=vt&&Y(this)?it(this,""):r;var n=-1;var i=X.ToUint32(e.length);var a;if(arguments.length>1){a=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in e){if(typeof a==="undefined"){t(e[n],n,r)}else{t.call(a,e[n],n,r)}}}}},!ht(r.forEach));W(r,{map:function map(r){var e=X.ToObject(this);var n=vt&&Y(this)?it(this,""):e;var i=X.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!U(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var f=0;f<i;f++){if(f in n){if(typeof o==="undefined"){a[f]=r(n[f],f,e)}else{a[f]=r.call(o,n[f],f,e)}}}return a}},!ht(r.map));W(r,{filter:function filter(t){var r=X.ToObject(this);var e=vt&&Y(this)?it(this,""):r;var n=X.ToUint32(e.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var f=0;f<n;f++){if(f in e){a=e[f];if(typeof o==="undefined"?t(a,f,r):t.call(o,a,f,r)){ot(i,a)}}}return i}},!ht(r.filter));W(r,{every:function every(t){var r=X.ToObject(this);var e=vt&&Y(this)?it(this,""):r;var n=X.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in e&&!(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return false}}return true}},!ht(r.every));W(r,{some:function some(t){var r=X.ToObject(this);var e=vt&&Y(this)?it(this,""):r;var n=X.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in e&&(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return true}}return false}},!ht(r.some));var pt=false;if(r.reduce){pt=typeof r.reduce.call("es5",function(t,r,e,n){return n})==="object"}W(r,{reduce:function reduce(t){var r=X.ToObject(this);var e=vt&&Y(this)?it(this,""):r;var n=X.ToUint32(e.length);if(!U(t)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i<n;i++){if(i in e){a=t(a,e[i],i,r)}}return a}},!pt);var yt=false;if(r.reduceRight){yt=typeof r.reduceRight.call("es5",function(t,r,e,n){return n})==="object"}W(r,{reduceRight:function reduceRight(t){var r=X.ToObject(this);var e=vt&&Y(this)?it(this,""):r;var n=X.ToUint32(e.length);if(!U(t)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in e){i=e[a--];break}if(--a<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(a<0){return i}do{if(a in e){i=t(i,e[a],a,r)}}while(a--);return i}},!yt);var dt=r.indexOf&&[0,1].indexOf(1,2)!==-1;W(r,{indexOf:function indexOf(t){var r=vt&&Y(this)?it(this,""):X.ToObject(this);var e=X.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=X.ToInteger(arguments[1])}n=n>=0?n:w(0,e+n);for(;n<e;n++){if(n in r&&r[n]===t){return n}}return-1}},dt);var gt=r.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;W(r,{lastIndexOf:function lastIndexOf(t){var r=vt&&Y(this)?it(this,""):X.ToObject(this);var e=X.ToUint32(r.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=b(n,X.ToInteger(arguments[1]))}n=n>=0?n:e-m(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},gt);var wt=function(){var t=[1,2];var r=t.splice();return t.length===2&&lt(r)&&r.length===0}();W(r,{splice:function splice(t,r){if(arguments.length===0){return[]}return c.apply(this,arguments)}},!wt);var bt=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();W(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=w(X.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=V(arguments);if(e.length<2){ot(e,this.length-t)}else{e[1]=X.ToInteger(r)}}return c.apply(this,e)}},!bt);var Tt=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var mt=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();W(r,{splice:function splice(t,r){var e=X.ToObject(this);var n=[];var i=X.ToUint32(e.length);var a=X.ToInteger(t);var f=a<0?w(i+a,0):b(a,i);var u=arguments.length===0?0:arguments.length===1?i-f:b(w(X.ToInteger(r),0),i-f);var l=0;var s;while(l<u){s=o(f+l);if(K(e,s)){n[l]=e[s]}l+=1}var c=V(arguments,2);var v=c.length;var h;if(v<u){l=f;var p=i-u;while(l<p){s=o(l+u);h=o(l+v);if(K(e,s)){e[h]=e[s]}else{delete e[h]}l+=1}l=i;var y=i-u+v;while(l>y){delete e[l-1];l-=1}}else if(v>u){l=i-u;while(l>f){s=o(l+u-1);h=o(l+v-1);if(K(e,s)){e[h]=e[s]}else{delete e[h]}l-=1}}l=f;for(var d=0;d<c.length;++d){e[l]=c[d];l+=1}e.length=i-u+v;return n}},!Tt||!mt);var St=r.join;var Dt;try{Dt=Array.prototype.join.call("123",",")!=="1,2,3"}catch(tt){Dt=true}if(Dt){W(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return St.call(Y(this)?it(this,""):this,r)}},Dt)}var xt=[1,2].join(undefined)!=="1,2";if(xt){W(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return St.call(this,r)}},xt)}var Et=function push(t){var r=X.ToObject(this);var e=X.ToUint32(r.length);var n=0;while(n<arguments.length){r[e+n]=arguments[n];n+=1}r.length=e+n;return e+n};var Ot=function(){var t={};var r=Array.prototype.push.call(t,undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!K(t,0)}();W(r,{push:function push(t){if(lt(this)){return v.apply(this,arguments)}return Et.apply(this,arguments)}},Ot);var jt=function(){var t=[];var r=t.push(undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!K(t,0)}();W(r,{push:Et},jt);W(r,{slice:function(t,r){var e=Y(this)?it(this,""):this;return _(e,arguments)}},vt);var It=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(r){return false}}return true}();var Ut=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var Ft=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();W(r,{sort:function sort(t){if(typeof t==="undefined"){return ut(this)}if(!U(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return ut(this,t)}},It||!Ft||!Ut);var $t=!ft({toString:null},"toString");var Mt=ft(function(){},"prototype");var Nt=!K("x","0");var Ct=function(t){var r=t.constructor;return r&&r.prototype===t};var kt={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true,$width:true,$height:true,$top:true,$localStorage:true};var At=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!kt["$"+t]&&K(window,t)&&window[t]!==null&&typeof window[t]==="object"){Ct(window[t])}}catch(r){return true}}return false}();var Rt=function(t){if(typeof window==="undefined"||!At){return Ct(t)}try{return Ct(t)}catch(r){return false}};var Pt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Jt=Pt.length;var Yt=function isArguments(t){return Q(t)==="[object Arguments]"};var zt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!lt(t)&&U(t.callee)};var Zt=Yt(arguments)?Yt:zt;W(e,{keys:function keys(t){var r=U(t);var e=Zt(t);var n=t!==null&&typeof t==="object";var i=n&&Y(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var a=[];var f=Mt&&r;if(i&&Nt||e){for(var u=0;u<t.length;++u){ot(a,o(u))}}if(!e){for(var l in t){if(!(f&&l==="prototype")&&K(t,l)){ot(a,o(l))}}}if($t){var s=Rt(t);for(var c=0;c<Jt;c++){var v=Pt[c];if(!(s&&v==="constructor")&&K(t,v)){ot(a,v)}}}return a}});var Gt=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var Ht=e.keys&&function(){var t=e.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Wt=e.keys;W(e,{keys:function keys(t){if(Zt(t)){return Wt(V(t))}return Wt(t)}},!Gt||Ht);var Bt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var Lt=new Date(-0x55d318d56a724);var Xt=new Date(14496624e5);var qt=Lt.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var Kt;var Qt;var Vt=Lt.getTimezoneOffset();if(Vt<-720){Kt=Lt.toDateString()!=="Tue Jan 02 -45875";Qt=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Xt))}else{Kt=Lt.toDateString()!=="Mon Jan 01 -45875";Qt=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Xt))}var _t=d.bind(Date.prototype.getFullYear);var tr=d.bind(Date.prototype.getMonth);var rr=d.bind(Date.prototype.getDate);var er=d.bind(Date.prototype.getUTCFullYear);var nr=d.bind(Date.prototype.getUTCMonth);var ir=d.bind(Date.prototype.getUTCDate);var ar=d.bind(Date.prototype.getUTCDay);var or=d.bind(Date.prototype.getUTCHours);var fr=d.bind(Date.prototype.getUTCMinutes);var ur=d.bind(Date.prototype.getUTCSeconds);var lr=d.bind(Date.prototype.getUTCMilliseconds);var sr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var cr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var vr=function daysInMonth(t,r){return rr(new Date(r,t,0))};W(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=_t(this);if(t<0&&tr(this)>11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=_t(this);var r=tr(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=_t(this);var r=tr(this);var e=rr(this);if(t<0&&r>11){if(r===12){return e}var n=vr(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=er(this);if(t<0&&nr(this)>11){return t+1}return t},getUTCMonth:function getUTCMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=er(this);var r=nr(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=er(this);var r=nr(this);var e=ir(this);if(t<0&&r>11){if(r===12){return e}var n=vr(0,t+1);return n-e+1}return e}},Bt);W(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ar(this);var r=ir(this);var e=nr(this);var n=er(this);var i=or(this);var a=fr(this);var o=ur(this);return sr[t]+", "+(r<10?"0"+r:r)+" "+cr[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Bt||qt);W(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return sr[t]+" "+cr[e]+" "+(r<10?"0"+r:r)+" "+n}},Bt||Kt);if(Bt||Qt){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var f=this.getTimezoneOffset();var u=T(m(f)/60);var l=T(m(f)%60);return sr[t]+" "+cr[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(f>0?"-":"+")+(u<10?"0"+u:u)+(l<10?"0"+l:l)};if(H){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var hr=-621987552e5;var pr="-000001";var yr=Date.prototype.toISOString&&new Date(hr).toISOString().indexOf(pr)===-1;var dr=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var gr=d.bind(Date.prototype.getTime);W(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(gr(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=er(this);var r=nr(this);t+=T(r/12);r=(r%12+12)%12;var e=[r+1,ir(this),or(this),fr(this),ur(this)];t=(t<0?"-":t>9999?"+":"")+nt("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<e.length;++n){e[n]=nt("00"+e[n],-2)}return t+"-"+V(e,0,2).join("-")+"T"+V(e,2).join(":")+"."+nt("000"+lr(this),-3)+"Z"}},yr||dr);var wr=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(hr).toJSON().indexOf(pr)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!wr){Date.prototype.toJSON=function toJSON(t){var r=e(this);var n=X.ToPrimitive(r);if(typeof n==="number"&&!isFinite(n)){return null}var i=r.toISOString;if(!U(i)){throw new TypeError("toISOString property is not callable")}return i.call(r)}}var br=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var Tr=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var mr=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(mr||Tr||!br){var Sr=S(2,31)-1;var Dr=L(new Date(1970,0,1,0,0,0,Sr+1).getTime());Date=function(t){var r=function Date(e,n,i,a,f,u,l){var s=arguments.length;var c;if(this instanceof t){var v=u;var h=l;if(Dr&&s>=7&&l>Sr){var p=T(l/Sr)*Sr;var y=T(p/1e3);v+=y;h-=y*1e3}c=s===1&&o(e)===e?new t(r.parse(e)):s>=7?new t(e,n,i,a,f,v,h):s>=6?new t(e,n,i,a,f,v):s>=5?new t(e,n,i,a,f):s>=4?new t(e,n,i,a):s>=3?new t(e,n,i):s>=2?new t(e,n):s>=1?new t(e instanceof t?+e:e):new t}else{c=t.apply(this,arguments)}if(!B(c)){W(c,{constructor:r},true)}return c};var e=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(t,r){var e=r>1?1:0;return n[r]+T((t-1969+e)/4)-T((t-1901+e)/100)+T((t-1601+e)/400)+365*(t-1970)};var a=function toUTC(r){var e=0;var n=r;if(Dr&&n>Sr){var i=T(n/Sr)*Sr;var a=T(i/1e3);e+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,e,n))};for(var f in t){if(K(t,f)){r[f]=t[f]}}W(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;W(r.prototype,{constructor:r},true);var l=function parse(r){var n=e.exec(r);if(n){var o=u(n[1]),f=u(n[2]||1)-1,l=u(n[3]||1)-1,s=u(n[4]||0),c=u(n[5]||0),v=u(n[6]||0),h=T(u(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),y=n[9]==="-"?1:-1,d=u(n[10]||0),g=u(n[11]||0),w;var b=c>0||v>0||h>0;if(s<(b?24:25)&&c<60&&v<60&&h<1e3&&f>-1&&f<12&&d<24&&g<60&&l>-1&&l<i(o,f+1)-i(o,f)){w=((i(o,f)+l)*24+s+d*y)*60;w=((w+c+g*y)*60+v)*1e3+h;if(p){w=a(w)}if(-864e13<=w&&w<=864e13){return w}}return NaN}return t.parse.apply(this,arguments)};W(r,{parse:l});return r}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var xr=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(1000000000000000128).toFixed(0)!=="1000000000000000128");var Er={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,r){var e=-1;var n=r;while(++e<Er.size){n+=t*Er.data[e];Er.data[e]=n%Er.base;n=T(n/Er.base)}},divide:function divide(t){var r=Er.size;var e=0;while(--r>=0){e+=Er.data[r];Er.data[r]=T(e/t);e=e%t*Er.base}},numToString:function numToString(){var t=Er.size;var r="";while(--t>=0){if(r!==""||t===0||Er.data[t]!==0){var e=o(Er.data[t]);if(r===""){r=e}else{r+=nt("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var Or=function toFixed(t){var r,e,n,i,a,f,l,s;r=u(t);r=L(r)?0:T(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=u(this);if(L(e)){return"NaN"}if(e<=-1e21||e>=1e21){return o(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){a=Er.log(e*Er.pow(2,69,1))-69;f=a<0?e*Er.pow(2,-a,1):e/Er.pow(2,a,1);f*=4503599627370496;a=52-a;if(a>0){Er.multiply(0,f);l=r;while(l>=7){Er.multiply(1e7,0);l-=7}Er.multiply(Er.pow(10,l,1),0);l=a-1;while(l>=23){Er.divide(1<<23);l-=23}Er.divide(1<<l);Er.multiply(1,1);Er.divide(2);i=Er.numToString()}else{Er.multiply(0,f);Er.multiply(1<<-a,0);i=Er.numToString()+nt("0.00000000000000000000",2,2+r)}}if(r>0){s=i.length;if(s<=r){i=n+nt("0.0000000000000000000",0,r-s+2)+i}else{i=n+nt(i,0,s-r)+"."+nt(i,s-r)}}else{i=n+i}return i};W(l,{toFixed:Or},xr);var jr=function(){try{return(-6.9e-11).toExponential(4)!=="-6.9000e-11"}catch(t){return false}}();var Ir=function(){try{1..toExponential(Infinity);1..toExponential(-Infinity);return true}catch(t){return false}}();var Ur=d.bind(l.toExponential);var Fr=d.bind(l.toString);W(l,{toExponential:function toExponential(t){var r=u(this);if(typeof t==="undefined"){return Ur(r)}var e=X.ToInteger(t);if(L(r)){return"NaN"}if(e<0||e>20){return Ur(r,e)}var n="";if(r<0){n="-";r=-r}if(r===Infinity){return n+"Infinity"}if(typeof t!=="undefined"&&(e<0||e>20)){throw new RangeError("Fraction digits "+t+" out of range")}var i="";var a=0;var o="";var f="";if(r===0){a=0;e=0;i="0"}else{var l=O(r);a=T(l);var s=0;if(typeof t!=="undefined"){var c=S(10,a-e);s=D(r/c);if(2*r>=(2*s+1)*c){s+=1}if(s>=S(10,e+1)){s/=10;a+=1}}else{e=16;var v=D(S(10,l-a+e));var h=e;while(e-- >0){v=D(S(10,l-a+e));if(m(v*S(10,a-e)-r)<=m(s*S(10,a-h)-r)){h=e;s=v}}}i=Fr(s,10);if(typeof t==="undefined"){while(nt(i,-1)==="0"){i=nt(i,0,-1);f+=1}}}if(e!==0){i=nt(i,0,1)+"."+nt(i,1)}if(a===0){o="+";f="0"}else{o=a>0?"+":"-";f=Fr(m(a),10)}i+="e"+o+f;return n+i}},jr||Ir);var $r=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var Mr=d.bind(l.toPrecision);W(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?Mr(this):Mr(this,t)}},$r);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var t=typeof/()??/.exec("")[1]==="undefined";var r=S(2,32)-1;f.split=function split(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!A(e)){return it(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,u,l,s,c;var h=new RegExp(e.source,o+"g");if(!t){u=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?r:X.ToUint32(n);l=h.exec(i);while(l){s=l.index+l[0].length;if(s>f){ot(a,nt(i,f,l.index));if(!t&&l.length>1){l[0].replace(u,function(){for(var t=1;t<arguments.length-2;t++){if(typeof arguments[t]==="undefined"){l[t]=void 0}}})}if(l.length>1&&l.index<i.length){v.apply(a,V(l,1))}c=l[0].length;f=s;if(a.length>=p){break}}if(h.lastIndex===l.index){h.lastIndex++}l=h.exec(i)}if(f===i.length){if(c||!h.test("")){ot(a,"")}}else{ot(a,nt(i,f))}return a.length>p?V(a,0,p):a}})()}else if("0".split(void 0,0).length){f.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return it(this,t,r)}}var Nr=f.replace;var Cr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){ot(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!Cr){f.replace=function replace(t,r){var e=U(r);var n=A(t)&&/\)[*?]/.test(t.source);if(!e||!n){return Nr.call(this,t,r)}var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;ot(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return Nr.call(this,t,i)}}var kr=f.substr;var Ar="".substr&&"0b".substr(-1)!=="b";W(f,{substr:function substr(t,r){var e=t;if(t<0){e=w(this.length+t,0)}return kr.call(this,e,r)}},Ar);var Rr="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var Pr="\u200b";var Jr="["+Rr+"]";var Yr=new RegExp("^"+Jr+Jr+"*");var zr=new RegExp(Jr+Jr+"*$");var Zr=f.trim&&(Rr.trim()||!Pr.trim());W(f,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Yr,"").replace(zr,"")}},Zr);var Gr=d.bind(String.prototype.trim);var Hr=f.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;W(f,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=o(this);var e=o(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=L(n)?Infinity:X.ToInteger(n);var a=b(w(i,0),r.length);var f=e.length;var l=a+f;while(l>0){l=w(0,l-f);var s=at(nt(r,l,a+f),e);if(s!==-1){return l+s}}return-1}},Hr);var Wr=f.lastIndexOf;W(f,{lastIndexOf:function lastIndexOf(t){return Wr.apply(this,arguments)}},f.lastIndexOf.length!==1);var Br=/^[-+]?0[xX]/;if(parseInt(Rr+"08")!==8||parseInt(Rr+"0x16")!==22){parseInt=function(t){return function parseInt(r,e){var n=Gr(String(r));var i=u(e)||(Br.test(n)?16:10);return t(n,i)}}(parseInt)}var Lr=function(){if(typeof Symbol!=="function"){return false}try{parseInt(Object(Symbol.iterator));return true}catch(t){}try{parseInt(Symbol.iterator);return true}catch(t){}return false}();if(Lr){var Xr=Symbol.prototype.valueOf;parseInt=function(t){return function parseInt(r,e){var n=typeof r==="symbol";if(!n&&r&&typeof r==="object"){try{Xr.call(r);n=true}catch(i){}}if(n){""+r}var a=Gr(String(r));var o=u(e)||(Br.test(a)?16:10);return t(a,o)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=Gr(String(r));var n=t(e);return n===0&&nt(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var qr=function toString(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var t=this.name;if(typeof t==="undefined"){t="Error"}else if(typeof t!=="string"){t=o(t)}var r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=o(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=qr}if(H){var Kr=function(t,r){if(ft(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);if(e.configurable){e.enumerable=false;Object.defineProperty(t,r,e)}}};Kr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Kr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Qr=function toString(){var t="/"+this.source+"/";if(this.global){t+="g"}if(this.ignoreCase){t+="i"}if(this.multiline){t+="m"}return t};RegExp.prototype.toString=Qr}});
(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function;var a=i.prototype;var o=String;var f=o.prototype;var u=Number;var l=u.prototype;var s=r.slice;var c=r.splice;var v=r.push;var p=r.unshift;var h=r.concat;var y=r.join;var d=a.call;var g=a.apply;var w=Math.max;var b=Math.min;var T=Math.floor;var m=Math.abs;var S=Math.pow;var D=Math.round;var x=Math.log;var O=Math.LOG10E;var E=Math.log10||function log10(t){return x(t)*O};var j=n.toString;var I=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var U;var F=Function.prototype.toString,$=/^\s*class /,M=function isES6ClassFn(t){try{var r=F.call(t);var e=r.replace(/\/\/.*\n/g,"");var n=e.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/gm," ").replace(/ {2}/g," ");return $.test(i)}catch(a){return false}},N=function tryFunctionObject(t){try{if(M(t)){return false}F.call(t);return true}catch(r){return false}},C="[object Function]",k="[object GeneratorFunction]",U=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(I){return N(t)}if(M(t)){return false}var r=j.call(t);return r===C||r===k};var P;var A=RegExp.prototype.exec,R=function tryRegexExec(t){try{A.call(t);return true}catch(r){return false}},J="[object RegExp]";P=function isRegex(t){if(typeof t!=="object"){return false}return I?R(t):j.call(t)===J};var Y;var z=String.prototype.valueOf,Z=function tryStringObject(t){try{z.call(t);return true}catch(r){return false}},G="[object String]";Y=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return I?Z(t):j.call(t)===G};var H=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var W=function(t){var r;if(H){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);if(e.defineProperty){var B=function(){};var L={};var X={toString:L};e.defineProperty(B,"prototype",{value:X,writable:false});if((new B).toString!==L){var q=e.defineProperty;W(e,{defineProperty:function defineProperty(t,r,e){var n=o(r);if(n==="prototype"&&"writable"in e&&"value"in e){t[n]=e.value}return q(t,n,e)}},true)}}var K=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var Q=u.isNaN||function isActualNaN(t){return t!==t};var V={ToInteger:function ToInteger(t){var r=+t;if(Q(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*T(m(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(K(t)){return t}e=t.valueOf;if(U(e)){r=e.call(t);if(K(r)){return r}}n=t.toString;if(U(n)){r=n.call(t);if(K(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var _=function Empty(){};W(a,{bind:function bind(t){var r=this;if(!U(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=s.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=g.call(r,this,h.call(n,s.call(arguments)));if(e(i)===i){return i}return this}return g.call(r,t,h.call(n,s.call(arguments)))};var f=w(0,r.length-n.length);var u=[];for(var l=0;l<f;l++){v.call(u,"$"+l)}a=i("binder","return function ("+y.call(u,",")+"){ return binder.apply(this, arguments); }")(o);if(r.prototype){_.prototype=r.prototype;a.prototype=new _;_.prototype=null}return a}});var tt=d.bind(n.hasOwnProperty);var rt=d.bind(n.toString);var et=d.bind(s);var nt=g.bind(s);if(typeof document==="object"&&document&&document.documentElement){try{et(document.documentElement.childNodes)}catch(it){var at=et;var ot=nt;et=function arraySliceIE(t){var r=[];var e=t.length;while(e-- >0){r[e]=t[e]}return ot(r,at(arguments,1))};nt=function arraySliceApplyIE(t,r){return ot(et(t),r)}}}var ft=d.bind(f.slice);var ut=d.bind(f.split);var lt=d.bind(f.indexOf);var st=d.bind(v);var ct=d.bind(n.propertyIsEnumerable);var vt=d.bind(r.sort);var pt=t.isArray||function isArray(t){return rt(t)==="[object Array]"};var ht=[].unshift(0)!==1;W(r,{unshift:function(){p.apply(this,arguments);return this.length}},ht);W(t,{isArray:pt});var yt=e("a");var dt=yt[0]!=="a"||!(0 in yt);var gt=function properlyBoxed(t){var r=true;var e=true;var n=false;if(t){try{t.call("foo",function(t,e,n){if(typeof n!=="object"){r=false}});t.call([1],function(){"use strict";e=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&r&&e};W(r,{forEach:function forEach(t){var r=V.ToObject(this);var e=dt&&Y(this)?ut(this,""):r;var n=-1;var i=V.ToUint32(e.length);var a;if(arguments.length>1){a=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in e){if(typeof a==="undefined"){t(e[n],n,r)}else{t.call(a,e[n],n,r)}}}}},!gt(r.forEach));W(r,{map:function map(r){var e=V.ToObject(this);var n=dt&&Y(this)?ut(this,""):e;var i=V.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!U(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var f=0;f<i;f++){if(f in n){if(typeof o==="undefined"){a[f]=r(n[f],f,e)}else{a[f]=r.call(o,n[f],f,e)}}}return a}},!gt(r.map));W(r,{filter:function filter(t){var r=V.ToObject(this);var e=dt&&Y(this)?ut(this,""):r;var n=V.ToUint32(e.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var f=0;f<n;f++){if(f in e){a=e[f];if(typeof o==="undefined"?t(a,f,r):t.call(o,a,f,r)){st(i,a)}}}return i}},!gt(r.filter));W(r,{every:function every(t){var r=V.ToObject(this);var e=dt&&Y(this)?ut(this,""):r;var n=V.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in e&&!(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return false}}return true}},!gt(r.every));W(r,{some:function some(t){var r=V.ToObject(this);var e=dt&&Y(this)?ut(this,""):r;var n=V.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!U(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in e&&(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return true}}return false}},!gt(r.some));var wt=false;if(r.reduce){wt=typeof r.reduce.call("es5",function(t,r,e,n){return n})==="object"}W(r,{reduce:function reduce(t){var r=V.ToObject(this);var e=dt&&Y(this)?ut(this,""):r;var n=V.ToUint32(e.length);if(!U(t)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i<n;i++){if(i in e){a=t(a,e[i],i,r)}}return a}},!wt);var bt=false;if(r.reduceRight){bt=typeof r.reduceRight.call("es5",function(t,r,e,n){return n})==="object"}W(r,{reduceRight:function reduceRight(t){var r=V.ToObject(this);var e=dt&&Y(this)?ut(this,""):r;var n=V.ToUint32(e.length);if(!U(t)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in e){i=e[a--];break}if(--a<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(a<0){return i}do{if(a in e){i=t(i,e[a],a,r)}}while(a--);return i}},!bt);var Tt=r.indexOf&&[0,1].indexOf(1,2)!==-1;W(r,{indexOf:function indexOf(t){var r=dt&&Y(this)?ut(this,""):V.ToObject(this);var e=V.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=V.ToInteger(arguments[1])}n=n>=0?n:w(0,e+n);for(;n<e;n++){if(n in r&&r[n]===t){return n}}return-1}},Tt);var mt=r.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;W(r,{lastIndexOf:function lastIndexOf(t){var r=dt&&Y(this)?ut(this,""):V.ToObject(this);var e=V.ToUint32(r.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=b(n,V.ToInteger(arguments[1]))}n=n>=0?n:e-m(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},mt);var St=function(){var t=[1,2];var r=t.splice();return t.length===2&&pt(r)&&r.length===0}();W(r,{splice:function splice(t,r){if(arguments.length===0){return[]}return c.apply(this,arguments)}},!St);var Dt=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();W(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=w(V.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=et(arguments);if(e.length<2){st(e,this.length-t)}else{e[1]=V.ToInteger(r)}}return c.apply(this,e)}},!Dt);var xt=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var Ot=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();W(r,{splice:function splice(t,r){var e=V.ToObject(this);var n=[];var i=V.ToUint32(e.length);var a=V.ToInteger(t);var f=a<0?w(i+a,0):b(a,i);var u=arguments.length===0?0:arguments.length===1?i-f:b(w(V.ToInteger(r),0),i-f);var l=0;var s;while(l<u){s=o(f+l);if(tt(e,s)){n[l]=e[s]}l+=1}var c=et(arguments,2);var v=c.length;var p;if(v<u){l=f;var h=i-u;while(l<h){s=o(l+u);p=o(l+v);if(tt(e,s)){e[p]=e[s]}else{delete e[p]}l+=1}l=i;var y=i-u+v;while(l>y){delete e[l-1];l-=1}}else if(v>u){l=i-u;while(l>f){s=o(l+u-1);p=o(l+v-1);if(tt(e,s)){e[p]=e[s]}else{delete e[p]}l-=1}}l=f;for(var d=0;d<c.length;++d){e[l]=c[d];l+=1}e.length=i-u+v;return n}},!xt||!Ot);var Et=r.join;var jt;try{jt=Array.prototype.join.call("123",",")!=="1,2,3"}catch(it){jt=true}if(jt){W(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return Et.call(Y(this)?ut(this,""):this,r)}},jt)}var It=[1,2].join(undefined)!=="1,2";if(It){W(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return Et.call(this,r)}},It)}var Ut=function push(t){var r=V.ToObject(this);var e=V.ToUint32(r.length);var n=0;while(n<arguments.length){r[e+n]=arguments[n];n+=1}r.length=e+n;return e+n};var Ft=function(){var t={};var r=Array.prototype.push.call(t,undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!tt(t,0)}();W(r,{push:function push(t){if(pt(this)){return v.apply(this,arguments)}return Ut.apply(this,arguments)}},Ft);var $t=function(){var t=[];var r=t.push(undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!tt(t,0)}();W(r,{push:Ut},$t);W(r,{slice:function(t,r){var e=Y(this)?ut(this,""):this;return nt(e,arguments)}},dt);var Mt=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(r){return false}}return true}();var Nt=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var Ct=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();W(r,{sort:function sort(t){if(typeof t==="undefined"){return vt(this)}if(!U(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return vt(this,t)}},Mt||!Ct||!Nt);var kt=!ct({toString:null},"toString");var Pt=ct(function(){},"prototype");var At=!tt("x","0");var Rt=function(t){var r=t.constructor;return r&&r.prototype===t};var Jt={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true,$width:true,$height:true,$top:true,$localStorage:true};var Yt=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!Jt["$"+t]&&tt(window,t)&&window[t]!==null&&typeof window[t]==="object"){Rt(window[t])}}catch(r){return true}}return false}();var zt=function(t){if(typeof window==="undefined"||!Yt){return Rt(t)}try{return Rt(t)}catch(r){return false}};var Zt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Gt=Zt.length;var Ht=function isArguments(t){return rt(t)==="[object Arguments]"};var Wt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!pt(t)&&U(t.callee)};var Bt=Ht(arguments)?Ht:Wt;W(e,{keys:function keys(t){var r=U(t);var e=Bt(t);var n=t!==null&&typeof t==="object";var i=n&&Y(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var a=[];var f=Pt&&r;if(i&&At||e){for(var u=0;u<t.length;++u){st(a,o(u))}}if(!e){for(var l in t){if(!(f&&l==="prototype")&&tt(t,l)){st(a,o(l))}}}if(kt){var s=zt(t);for(var c=0;c<Gt;c++){var v=Zt[c];if(!(s&&v==="constructor")&&tt(t,v)){st(a,v)}}}return a}});var Lt=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var Xt=e.keys&&function(){var t=e.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var qt=e.keys;W(e,{keys:function keys(t){if(Bt(t)){return qt(et(t))}return qt(t)}},!Lt||Xt);var Kt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var Qt=new Date(-0x55d318d56a724);var Vt=new Date(14496624e5);var _t=Qt.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var tr;var rr;var er=Qt.getTimezoneOffset();if(er<-720){tr=Qt.toDateString()!=="Tue Jan 02 -45875";rr=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Vt))}else{tr=Qt.toDateString()!=="Mon Jan 01 -45875";rr=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Vt))}var nr=d.bind(Date.prototype.getFullYear);var ir=d.bind(Date.prototype.getMonth);var ar=d.bind(Date.prototype.getDate);var or=d.bind(Date.prototype.getUTCFullYear);var fr=d.bind(Date.prototype.getUTCMonth);var ur=d.bind(Date.prototype.getUTCDate);var lr=d.bind(Date.prototype.getUTCDay);var sr=d.bind(Date.prototype.getUTCHours);var cr=d.bind(Date.prototype.getUTCMinutes);var vr=d.bind(Date.prototype.getUTCSeconds);var pr=d.bind(Date.prototype.getUTCMilliseconds);var hr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var yr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var dr=function daysInMonth(t,r){return ar(new Date(r,t,0))};W(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=nr(this);if(t<0&&ir(this)>11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=nr(this);var r=ir(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=nr(this);var r=ir(this);var e=ar(this);if(t<0&&r>11){if(r===12){return e}var n=dr(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=or(this);if(t<0&&fr(this)>11){return t+1}return t},getUTCMonth:function getUTCMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=or(this);var r=fr(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=or(this);var r=fr(this);var e=ur(this);if(t<0&&r>11){if(r===12){return e}var n=dr(0,t+1);return n-e+1}return e}},Kt);W(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=lr(this);var r=ur(this);var e=fr(this);var n=or(this);var i=sr(this);var a=cr(this);var o=vr(this);return hr[t]+", "+(r<10?"0"+r:r)+" "+yr[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Kt||_t);W(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return hr[t]+" "+yr[e]+" "+(r<10?"0"+r:r)+" "+n}},Kt||tr);if(Kt||rr){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var f=this.getTimezoneOffset();var u=T(m(f)/60);var l=T(m(f)%60);return hr[t]+" "+yr[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(f>0?"-":"+")+(u<10?"0"+u:u)+(l<10?"0"+l:l)};if(H){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var gr=-621987552e5;var wr="-000001";var br=Date.prototype.toISOString&&new Date(gr).toISOString().indexOf(wr)===-1;var Tr=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var mr=d.bind(Date.prototype.getTime);W(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(mr(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=or(this);var r=fr(this);t+=T(r/12);r=(r%12+12)%12;var e=[r+1,ur(this),sr(this),cr(this),vr(this)];t=(t<0?"-":t>9999?"+":"")+ft("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<e.length;++n){e[n]=ft("00"+e[n],-2)}return t+"-"+et(e,0,2).join("-")+"T"+et(e,2).join(":")+"."+ft("000"+pr(this),-3)+"Z"}},br||Tr);var Sr=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(gr).toJSON().indexOf(wr)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!Sr){Date.prototype.toJSON=function toJSON(t){var r=e(this);var n=V.ToPrimitive(r);if(typeof n==="number"&&!isFinite(n)){return null}var i=r.toISOString;if(!U(i)){throw new TypeError("toISOString property is not callable")}return i.call(r)}}var Dr=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var xr=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var Or=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(Or||xr||!Dr){var Er=S(2,31)-1;var jr=Q(new Date(1970,0,1,0,0,0,Er+1).getTime());Date=function(t){var r=function Date(e,n,i,a,f,u,l){var s=arguments.length;var c;if(this instanceof t){var v=u;var p=l;if(jr&&s>=7&&l>Er){var h=T(l/Er)*Er;var y=T(h/1e3);v+=y;p-=y*1e3}c=s===1&&o(e)===e?new t(r.parse(e)):s>=7?new t(e,n,i,a,f,v,p):s>=6?new t(e,n,i,a,f,v):s>=5?new t(e,n,i,a,f):s>=4?new t(e,n,i,a):s>=3?new t(e,n,i):s>=2?new t(e,n):s>=1?new t(e instanceof t?+e:e):new t}else{c=t.apply(this,arguments)}if(!K(c)){W(c,{constructor:r},true)}return c};var e=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(t,r){var e=r>1?1:0;return n[r]+T((t-1969+e)/4)-T((t-1901+e)/100)+T((t-1601+e)/400)+365*(t-1970)};var a=function toUTC(r){var e=0;var n=r;if(jr&&n>Er){var i=T(n/Er)*Er;var a=T(i/1e3);e+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,e,n))};for(var f in t){if(tt(t,f)){r[f]=t[f]}}W(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;W(r.prototype,{constructor:r},true);var l=function parse(r){var n=e.exec(r);if(n){var o=u(n[1]),f=u(n[2]||1)-1,l=u(n[3]||1)-1,s=u(n[4]||0),c=u(n[5]||0),v=u(n[6]||0),p=T(u(n[7]||0)*1e3),h=Boolean(n[4]&&!n[8]),y=n[9]==="-"?1:-1,d=u(n[10]||0),g=u(n[11]||0),w;var b=c>0||v>0||p>0;if(s<(b?24:25)&&c<60&&v<60&&p<1e3&&f>-1&&f<12&&d<24&&g<60&&l>-1&&l<i(o,f+1)-i(o,f)){w=((i(o,f)+l)*24+s+d*y)*60;w=((w+c+g*y)*60+v)*1e3+p;if(h){w=a(w)}if(-864e13<=w&&w<=864e13){return w}}return NaN}return t.parse.apply(this,arguments)};W(r,{parse:l});return r}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var Ir=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(1000000000000000128).toFixed(0)!=="1000000000000000128");var Ur={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,r){var e=-1;var n=r;while(++e<Ur.size){n+=t*Ur.data[e];Ur.data[e]=n%Ur.base;n=T(n/Ur.base)}},divide:function divide(t){var r=Ur.size;var e=0;while(--r>=0){e+=Ur.data[r];Ur.data[r]=T(e/t);e=e%t*Ur.base}},numToString:function numToString(){var t=Ur.size;var r="";while(--t>=0){if(r!==""||t===0||Ur.data[t]!==0){var e=o(Ur.data[t]);if(r===""){r=e}else{r+=ft("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var Fr=function toFixed(t){var r,e,n,i,a,f,l,s;r=u(t);r=Q(r)?0:T(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=u(this);if(Q(e)){return"NaN"}if(e<=-1e21||e>=1e21){return o(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){a=Ur.log(e*Ur.pow(2,69,1))-69;f=a<0?e*Ur.pow(2,-a,1):e/Ur.pow(2,a,1);f*=4503599627370496;a=52-a;if(a>0){Ur.multiply(0,f);l=r;while(l>=7){Ur.multiply(1e7,0);l-=7}Ur.multiply(Ur.pow(10,l,1),0);l=a-1;while(l>=23){Ur.divide(1<<23);l-=23}Ur.divide(1<<l);Ur.multiply(1,1);Ur.divide(2);i=Ur.numToString()}else{Ur.multiply(0,f);Ur.multiply(1<<-a,0);i=Ur.numToString()+ft("0.00000000000000000000",2,2+r)}}if(r>0){s=i.length;if(s<=r){i=n+ft("0.0000000000000000000",0,r-s+2)+i}else{i=n+ft(i,0,s-r)+"."+ft(i,s-r)}}else{i=n+i}return i};W(l,{toFixed:Fr},Ir);var $r=function(){try{return(-6.9e-11).toExponential(4)!=="-6.9000e-11"}catch(t){return false}}();var Mr=function(){try{1..toExponential(Infinity);1..toExponential(-Infinity);return true}catch(t){return false}}();var Nr=d.bind(l.toExponential);var Cr=d.bind(l.toString);var kr=d.bind(l.valueOf);W(l,{toExponential:function toExponential(t){var r=kr(this);if(typeof t==="undefined"){return Nr(r)}var e=V.ToInteger(t);if(Q(r)){return"NaN"}if(e<0||e>20){return Nr(r,e)}var n="";if(r<0){n="-";r=-r}if(r===Infinity){return n+"Infinity"}if(typeof t!=="undefined"&&(e<0||e>20)){throw new RangeError("Fraction digits "+t+" out of range")}var i="";var a=0;var o="";var f="";if(r===0){a=0;e=0;i="0"}else{var u=E(r);a=T(u);var l=0;if(typeof t!=="undefined"){var s=S(10,a-e);l=D(r/s);if(2*r>=(2*l+1)*s){l+=1}if(l>=S(10,e+1)){l/=10;a+=1}}else{e=16;var c=D(S(10,u-a+e));var v=e;while(e-- >0){c=D(S(10,u-a+e));if(m(c*S(10,a-e)-r)<=m(l*S(10,a-v)-r)){v=e;l=c}}}i=Cr(l,10);if(typeof t==="undefined"){while(ft(i,-1)==="0"){i=ft(i,0,-1);f+=1}}}if(e!==0){i=ft(i,0,1)+"."+ft(i,1)}if(a===0){o="+";f="0"}else{o=a>0?"+":"-";f=Cr(m(a),10)}i+="e"+o+f;return n+i}},$r||Mr);var Pr=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var Ar=d.bind(l.toPrecision);W(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?Ar(this):Ar(this,t)}},Pr);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var t=typeof/()??/.exec("")[1]==="undefined";var r=S(2,32)-1;f.split=function split(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!P(e)){return ut(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,u,l,s,c;var p=new RegExp(e.source,o+"g");if(!t){u=new RegExp("^"+p.source+"$(?!\\s)",o)}var h=typeof n==="undefined"?r:V.ToUint32(n);l=p.exec(i);while(l){s=l.index+l[0].length;if(s>f){st(a,ft(i,f,l.index));if(!t&&l.length>1){l[0].replace(u,function(){for(var t=1;t<arguments.length-2;t++){if(typeof arguments[t]==="undefined"){l[t]=void 0}}})}if(l.length>1&&l.index<i.length){v.apply(a,et(l,1))}c=l[0].length;f=s;if(a.length>=h){break}}if(p.lastIndex===l.index){p.lastIndex++}l=p.exec(i)}if(f===i.length){if(c||!p.test("")){st(a,"")}}else{st(a,ft(i,f))}return a.length>h?et(a,0,h):a}})()}else if("0".split(void 0,0).length){f.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return ut(this,t,r)}}var Rr=f.replace;var Jr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){st(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!Jr){f.replace=function replace(t,r){var e=U(r);var n=P(t)&&/\)[*?]/.test(t.source);if(!e||!n){return Rr.call(this,t,r)}var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;st(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return Rr.call(this,t,i)}}var Yr=f.substr;var zr="".substr&&"0b".substr(-1)!=="b";W(f,{substr:function substr(t,r){var e=t;if(t<0){e=w(this.length+t,0)}return Yr.call(this,e,r)}},zr);var Zr="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var Gr="\u200b";var Hr="["+Zr+"]";var Wr=new RegExp("^"+Hr+Hr+"*");var Br=new RegExp(Hr+Hr+"*$");var Lr=f.trim&&(Zr.trim()||!Gr.trim());W(f,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Wr,"").replace(Br,"")}},Lr);var Xr=d.bind(String.prototype.trim);var qr=f.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;W(f,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=o(this);var e=o(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=Q(n)?Infinity:V.ToInteger(n);var a=b(w(i,0),r.length);var f=e.length;var l=a+f;while(l>0){l=w(0,l-f);var s=lt(ft(r,l,a+f),e);if(s!==-1){return l+s}}return-1}},qr);var Kr=f.lastIndexOf;W(f,{lastIndexOf:function lastIndexOf(t){return Kr.apply(this,arguments)}},f.lastIndexOf.length!==1);var Qr=/^[-+]?0[xX]/;if(parseInt(Zr+"08")!==8||parseInt(Zr+"0x16")!==22){parseInt=function(t){return function parseInt(r,e){var n=Xr(String(r));var i=u(e)||(Qr.test(n)?16:10);return t(n,i)}}(parseInt)}var Vr=function(){if(typeof Symbol!=="function"){return false}try{parseInt(Object(Symbol.iterator));return true}catch(t){}try{parseInt(Symbol.iterator);return true}catch(t){}return false}();if(Vr){var _r=Symbol.prototype.valueOf;parseInt=function(t){return function parseInt(r,e){var n=typeof r==="symbol";if(!n&&r&&typeof r==="object"){try{_r.call(r);n=true}catch(i){}}if(n){""+r}var a=Xr(String(r));var o=u(e)||(Qr.test(a)?16:10);return t(a,o)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=Xr(String(r));var n=t(e);return n===0&&ft(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var te=function toString(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var t=this.name;if(typeof t==="undefined"){t="Error"}else if(typeof t!=="string"){t=o(t)}var r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=o(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=te}if(H){var re=function(t,r){if(ct(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);if(e.configurable){e.enumerable=false;Object.defineProperty(t,r,e)}}};re(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}re(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var ee=function toString(){var t="/"+this.source+"/";if(this.global){t+="g"}if(this.ignoreCase){t+="i"}if(this.multiline){t+="m"}return t};RegExp.prototype.toString=ee}});
//# sourceMappingURL=es5-shim.map
{
"name": "es5-shim",
"version": "4.6.2",
"version": "4.6.3",
"description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",

@@ -33,14 +33,14 @@ "homepage": "http://github.com/es-shims/es5-shim/",

"posttest": "aud --production",
"tests-only": "nyc jasmine-node --matchall ./ tests/spec/",
"tests-native": "jasmine-node --matchall tests/spec/",
"tests-only": "nyc jasmine-node --matchall *.js tests/helpers/ tests/spec/",
"tests-native": "jasmine-node --matchall tests/helpers/ tests/spec/",
"lint": "eslint ."
},
"devDependencies": {
"@ljharb/eslint-config": "^18.0.0",
"@ljharb/eslint-config": "^20.1.0",
"aud": "^1.1.5",
"eslint": "^7.32.0",
"eslint": "^8.5.0",
"in-publish": "^2.0.1",
"jasmine-node": "^1.16.2",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"safe-publish-latest": "^2.0.0",
"uglify-js": "2.7.3"

@@ -47,0 +47,0 @@ },

@@ -1,8 +0,12 @@

# es5-shim <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
# es5-shim <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![npm badge][npm-badge-png]][npm-url]
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
`es5-shim.js` and `es5-shim.min.js` monkey-patch a JavaScript context to

@@ -34,3 +38,3 @@ contain all EcmaScript 5 methods that can be faithfully emulated with a

* Array.prototype.filter
* Array.prototype.forEach
* Array.prototype.forEach ([standalone shim](https://www.npmjs.com/package/array.prototype.foreach))
* Array.prototype.indexOf ([standalone shim](https://www.npmjs.com/package/array.prototype.indexof))

@@ -55,3 +59,3 @@ * Array.prototype.lastIndexOf ([standalone shim](https://www.npmjs.com/package/array.prototype.lastindexof))

``apply`` to avoid executing as a constructor.
* Number.prototype.toExponential
* Number.prototype.toExponential ([standalone shim](https://www.npmjs.com/package/number.prototype.toexponential))
* Number.prototype.toFixed

@@ -62,3 +66,3 @@ * Number.prototype.toPrecision

* String.prototype.trim ([standalone shim](https://www.npmjs.com/package/string.prototype.trim))
* String.prototype.lastIndexOf
* String.prototype.lastIndexOf ([standalone shim](https://string.prototype.lastindexof))
* String.prototype.replace

@@ -183,3 +187,4 @@ * Firefox (through v29) natively handles capturing groups incorrectly.

```
[npm-url]: https://npmjs.org/package/es5-shim
[package-url]: https://npmjs.org/package/es5-shim
[npm-version-svg]: https://versionbadg.es/es-shims/es5-shim.svg

@@ -191,1 +196,9 @@ [deps-svg]: https://david-dm.org/es-shims/es5-shim.svg

[npm-badge-png]: https://nodei.co/npm/es5-shim.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/es5-shim.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/es5-shim.svg
[downloads-url]: https://npm-stat.com/charts.html?package=es5-shim
[codecov-image]: https://codecov.io/gh/es-shims/es5-shim/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/es5-shim/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/es5-shim
[actions-url]: https://github.com/es-shims/es5-shim/actions

@@ -250,2 +250,16 @@ /* global window */

});
(supportsDescriptors ? it : xit)('allows setting a nonwritable prototype', function () {
var F = function () {};
expect((new F()).toString).toEqual(Object.prototype.toString);
F.prototype = Number.prototype;
expect((new F()).toString).toEqual(Number.prototype.toString);
var toStringSentinel = {};
var sentinel = { toString: toStringSentinel };
Object.defineProperty(F, 'prototype', { value: sentinel, writable: false });
expect((new F()).toString).toEqual(toStringSentinel);
});
});

@@ -252,0 +266,0 @@

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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