Socket
Socket
Sign inDemoInstall

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.5 to 4.6.6

11

CHANGELOG.md

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

4.6.6
- [Fix] `splice`: IE 8: upgrade ES5 impls to ES6 default argument behavior
- [Fix] `toExponential`: IE 6 native toExponential does not throw with infinite fractionDigits
- [Fix] `Date`: fix a bug in modern Safari (#481)
- [Fix] ensure `parseInt` replacements are not constructible
- [readme] add standalone shims
- [readme] add `Array.prototype.splice` and standalone shim
- [Tests] fix a test failure with a custom matcher in IE 6
- [Tests] pave over Firefox’s increased getMinutes precision
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`
4.6.5

@@ -2,0 +13,0 @@ - [Fix] IE 8 has a broken `Object.defineProperty`

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 p=r.unshift;var h=r.concat;var y=r.join;var d=a.call;var g=a.apply;var b=Math.max;var w=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]",P="[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===P};var k;var A=RegExp.prototype.exec,R=function tryRegexExec(t){try{A.call(t);return true}catch(r){return false}},J="[object RegExp]";k=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&&H){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;var K=e.getOwnPropertyDescriptor;W(e,{defineProperty:function defineProperty(t,r,e){var n=o(r);if(typeof t==="function"&&n==="prototype"){var i=K(t,n);if(i.writable&&!e.writable&&"value"in e){try{t[n]=e.value}catch(a){}}return q(t,n,{configurable:"configurable"in e?e.configurable:i.configurable,enumerable:"enumerable"in e?e.enumerable:i.enumerable,writable:e.writable})}return q(t,n,e)}},true)}}var Q=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var V=u.isNaN||function isActualNaN(t){return t!==t};var _={ToInteger:function ToInteger(t){var r=+t;if(V(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(Q(t)){return t}e=t.valueOf;if(U(e)){r=e.call(t);if(Q(r)){return r}}n=t.toString;if(U(n)){r=n.call(t);if(Q(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 tt=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=b(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){tt.prototype=r.prototype;a.prototype=new tt;tt.prototype=null}return a}});var rt=d.bind(n.hasOwnProperty);var et=d.bind(n.toString);var nt=d.bind(s);var it=g.bind(s);if(typeof document==="object"&&document&&document.documentElement){try{nt(document.documentElement.childNodes)}catch(at){var ot=nt;var ft=it;nt=function arraySliceIE(t){var r=[];var e=t.length;while(e-- >0){r[e]=t[e]}return ft(r,ot(arguments,1))};it=function arraySliceApplyIE(t,r){return ft(nt(t),r)}}}var ut=d.bind(f.slice);var lt=d.bind(f.split);var st=d.bind(f.indexOf);var ct=d.bind(v);var vt=d.bind(n.propertyIsEnumerable);var pt=d.bind(r.sort);var ht=t.isArray||function isArray(t){return et(t)==="[object Array]"};var yt=[].unshift(0)!==1;W(r,{unshift:function(){p.apply(this,arguments);return this.length}},yt);W(t,{isArray:ht});var dt=e("a");var gt=dt[0]!=="a"||!(0 in dt);var bt=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=_.ToObject(this);var e=gt&&Y(this)?lt(this,""):r;var n=-1;var i=_.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)}}}}},!bt(r.forEach));W(r,{map:function map(r){var e=_.ToObject(this);var n=gt&&Y(this)?lt(this,""):e;var i=_.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}},!bt(r.map));W(r,{filter:function filter(t){var r=_.ToObject(this);var e=gt&&Y(this)?lt(this,""):r;var n=_.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)){ct(i,a)}}}return i}},!bt(r.filter));W(r,{every:function every(t){var r=_.ToObject(this);var e=gt&&Y(this)?lt(this,""):r;var n=_.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}},!bt(r.every));W(r,{some:function some(t){var r=_.ToObject(this);var e=gt&&Y(this)?lt(this,""):r;var n=_.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}},!bt(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=_.ToObject(this);var e=gt&&Y(this)?lt(this,""):r;var n=_.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 Tt=false;if(r.reduceRight){Tt=typeof r.reduceRight.call("es5",function(t,r,e,n){return n})==="object"}W(r,{reduceRight:function reduceRight(t){var r=_.ToObject(this);var e=gt&&Y(this)?lt(this,""):r;var n=_.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}},!Tt);var mt=r.indexOf&&[0,1].indexOf(1,2)!==-1;W(r,{indexOf:function indexOf(t){var r=gt&&Y(this)?lt(this,""):_.ToObject(this);var e=_.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=_.ToInteger(arguments[1])}n=n>=0?n:b(0,e+n);for(;n<e;n++){if(n in r&&r[n]===t){return n}}return-1}},mt);var St=r.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;W(r,{lastIndexOf:function lastIndexOf(t){var r=gt&&Y(this)?lt(this,""):_.ToObject(this);var e=_.ToUint32(r.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=w(n,_.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}},St);var Dt=function(){var t=[1,2];var r=t.splice();return t.length===2&&ht(r)&&r.length===0}();W(r,{splice:function splice(t,r){if(arguments.length===0){return[]}return c.apply(this,arguments)}},!Dt);var xt=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=b(_.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=nt(arguments);if(e.length<2){ct(e,this.length-t)}else{e[1]=_.ToInteger(r)}}return c.apply(this,e)}},!xt);var Ot=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var Et=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=_.ToObject(this);var n=[];var i=_.ToUint32(e.length);var a=_.ToInteger(t);var f=a<0?b(i+a,0):w(a,i);var u=arguments.length===0?0:arguments.length===1?i-f:w(b(_.ToInteger(r),0),i-f);var l=0;var s;while(l<u){s=o(f+l);if(rt(e,s)){n[l]=e[s]}l+=1}var c=nt(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(rt(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(rt(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}},!Ot||!Et);var jt=r.join;var It;try{It=Array.prototype.join.call("123",",")!=="1,2,3"}catch(at){It=true}if(It){W(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return jt.call(Y(this)?lt(this,""):this,r)}},It)}var Ut=[1,2].join(undefined)!=="1,2";if(Ut){W(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return jt.call(this,r)}},Ut)}var Ft=function push(t){var r=_.ToObject(this);var e=_.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 $t=function(){var t={};var r=Array.prototype.push.call(t,undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!rt(t,0)}();W(r,{push:function push(t){if(ht(this)){return v.apply(this,arguments)}return Ft.apply(this,arguments)}},$t);var Mt=function(){var t=[];var r=t.push(undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!rt(t,0)}();W(r,{push:Ft},Mt);W(r,{slice:function(t,r){var e=Y(this)?lt(this,""):this;return it(e,arguments)}},gt);var Nt=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(r){return false}}return true}();var Ct=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var Pt=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();W(r,{sort:function sort(t){if(typeof t==="undefined"){return pt(this)}if(!U(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return pt(this,t)}},Nt||!Pt||!Ct);var kt=!vt({toString:null},"toString");var At=vt(function(){},"prototype");var Rt=!rt("x","0");var Jt=function(t){var r=t.constructor;return r&&r.prototype===t};var Yt={$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 zt=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!Yt["$"+t]&&rt(window,t)&&window[t]!==null&&typeof window[t]==="object"){Jt(window[t])}}catch(r){return true}}return false}();var Zt=function(t){if(typeof window==="undefined"||!zt){return Jt(t)}try{return Jt(t)}catch(r){return false}};var Gt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Ht=Gt.length;var Wt=function isArguments(t){return et(t)==="[object Arguments]"};var Bt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!ht(t)&&U(t.callee)};var Lt=Wt(arguments)?Wt:Bt;W(e,{keys:function keys(t){var r=U(t);var e=Lt(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=At&&r;if(i&&Rt||e){for(var u=0;u<t.length;++u){ct(a,o(u))}}if(!e){for(var l in t){if(!(f&&l==="prototype")&&rt(t,l)){ct(a,o(l))}}}if(kt){var s=Zt(t);for(var c=0;c<Ht;c++){var v=Gt[c];if(!(s&&v==="constructor")&&rt(t,v)){ct(a,v)}}}return a}});var Xt=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var qt=e.keys&&function(){var t=e.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Kt=e.keys;W(e,{keys:function keys(t){if(Lt(t)){return Kt(nt(t))}return Kt(t)}},!Xt||qt);var Qt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var Vt=new Date(-0x55d318d56a724);var _t=new Date(14496624e5);var tr=Vt.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var rr;var er;var nr=Vt.getTimezoneOffset();if(nr<-720){rr=Vt.toDateString()!=="Tue Jan 02 -45875";er=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(_t))}else{rr=Vt.toDateString()!=="Mon Jan 01 -45875";er=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(_t))}var ir=d.bind(Date.prototype.getFullYear);var ar=d.bind(Date.prototype.getMonth);var or=d.bind(Date.prototype.getDate);var fr=d.bind(Date.prototype.getUTCFullYear);var ur=d.bind(Date.prototype.getUTCMonth);var lr=d.bind(Date.prototype.getUTCDate);var sr=d.bind(Date.prototype.getUTCDay);var cr=d.bind(Date.prototype.getUTCHours);var vr=d.bind(Date.prototype.getUTCMinutes);var pr=d.bind(Date.prototype.getUTCSeconds);var hr=d.bind(Date.prototype.getUTCMilliseconds);var yr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var dr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var gr=function daysInMonth(t,r){return or(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=ir(this);if(t<0&&ar(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=ir(this);var r=ar(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=ir(this);var r=ar(this);var e=or(this);if(t<0&&r>11){if(r===12){return e}var n=gr(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=fr(this);if(t<0&&ur(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=fr(this);var r=ur(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=fr(this);var r=ur(this);var e=lr(this);if(t<0&&r>11){if(r===12){return e}var n=gr(0,t+1);return n-e+1}return e}},Qt);W(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=sr(this);var r=lr(this);var e=ur(this);var n=fr(this);var i=cr(this);var a=vr(this);var o=pr(this);return yr[t]+", "+(r<10?"0"+r:r)+" "+dr[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Qt||tr);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 yr[t]+" "+dr[e]+" "+(r<10?"0"+r:r)+" "+n}},Qt||rr);if(Qt||er){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 yr[t]+" "+dr[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 br=-621987552e5;var wr="-000001";var Tr=Date.prototype.toISOString&&new Date(br).toISOString().indexOf(wr)===-1;var mr=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var Sr=d.bind(Date.prototype.getTime);W(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(Sr(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=fr(this);var r=ur(this);t+=T(r/12);r=(r%12+12)%12;var e=[r+1,lr(this),cr(this),vr(this),pr(this)];t=(t<0?"-":t>9999?"+":"")+ut("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<e.length;++n){e[n]=ut("00"+e[n],-2)}return t+"-"+nt(e,0,2).join("-")+"T"+nt(e,2).join(":")+"."+ut("000"+hr(this),-3)+"Z"}},Tr||mr);var Dr=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(br).toJSON().indexOf(wr)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!Dr){Date.prototype.toJSON=function toJSON(t){var r=e(this);var n=_.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 xr=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var Or=!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 Er=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(Er||Or||!xr){var jr=S(2,31)-1;var Ir=V(new Date(1970,0,1,0,0,0,jr+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(Ir&&s>=7&&l>jr){var h=T(l/jr)*jr;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(!Q(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(Ir&&n>jr){var i=T(n/jr)*jr;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(rt(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),b;var w=c>0||v>0||p>0;if(s<(w?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)){b=((i(o,f)+l)*24+s+d*y)*60;b=((b+c+g*y)*60+v)*1e3+p;if(h){b=a(b)}if(-864e13<=b&&b<=864e13){return b}}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 Ur=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(1000000000000000128).toFixed(0)!=="1000000000000000128");var Fr={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,r){var e=-1;var n=r;while(++e<Fr.size){n+=t*Fr.data[e];Fr.data[e]=n%Fr.base;n=T(n/Fr.base)}},divide:function divide(t){var r=Fr.size;var e=0;while(--r>=0){e+=Fr.data[r];Fr.data[r]=T(e/t);e=e%t*Fr.base}},numToString:function numToString(){var t=Fr.size;var r="";while(--t>=0){if(r!==""||t===0||Fr.data[t]!==0){var e=o(Fr.data[t]);if(r===""){r=e}else{r+=ut("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 $r=function toFixed(t){var r,e,n,i,a,f,l,s;r=u(t);r=V(r)?0:T(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=u(this);if(V(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=Fr.log(e*Fr.pow(2,69,1))-69;f=a<0?e*Fr.pow(2,-a,1):e/Fr.pow(2,a,1);f*=4503599627370496;a=52-a;if(a>0){Fr.multiply(0,f);l=r;while(l>=7){Fr.multiply(1e7,0);l-=7}Fr.multiply(Fr.pow(10,l,1),0);l=a-1;while(l>=23){Fr.divide(1<<23);l-=23}Fr.divide(1<<l);Fr.multiply(1,1);Fr.divide(2);i=Fr.numToString()}else{Fr.multiply(0,f);Fr.multiply(1<<-a,0);i=Fr.numToString()+ut("0.00000000000000000000",2,2+r)}}if(r>0){s=i.length;if(s<=r){i=n+ut("0.0000000000000000000",0,r-s+2)+i}else{i=n+ut(i,0,s-r)+"."+ut(i,s-r)}}else{i=n+i}return i};W(l,{toFixed:$r},Ur);var Mr=function(){try{return(-6.9e-11).toExponential(4)!=="-6.9000e-11"}catch(t){return false}}();var Nr=function(){try{1..toExponential(Infinity);1..toExponential(-Infinity);return true}catch(t){return false}}();var Cr=d.bind(l.toExponential);var Pr=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 Cr(r)}var e=_.ToInteger(t);if(V(r)){return"NaN"}if(e<0||e>20){return Cr(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=Pr(l,10);if(typeof t==="undefined"){while(ut(i,-1)==="0"){i=ut(i,0,-1);f+=1}}}if(e!==0){i=ut(i,0,1)+"."+ut(i,1)}if(a===0){o="+";f="0"}else{o=a>0?"+":"-";f=Pr(m(a),10)}i+="e"+o+f;return n+i}},Mr||Nr);var Ar=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var Rr=d.bind(l.toPrecision);W(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?Rr(this):Rr(this,t)}},Ar);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(!k(e)){return lt(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:_.ToUint32(n);l=p.exec(i);while(l){s=l.index+l[0].length;if(s>f){ct(a,ut(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,nt(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("")){ct(a,"")}}else{ct(a,ut(i,f))}return a.length>h?nt(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 lt(this,t,r)}}var Jr=f.replace;var Yr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){ct(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!Yr){f.replace=function replace(t,r){var e=U(r);var n=k(t)&&/\)[*?]/.test(t.source);if(!e||!n){return Jr.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;ct(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return Jr.call(this,t,i)}}var zr=f.substr;var Zr="".substr&&"0b".substr(-1)!=="b";W(f,{substr:function substr(t,r){var e=t;if(t<0){e=b(this.length+t,0)}return zr.call(this,e,r)}},Zr);var Gr="\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 Hr="\u200b";var Wr="["+Gr+"]";var Br=new RegExp("^"+Wr+Wr+"*");var Lr=new RegExp(Wr+Wr+"*$");var Xr=f.trim&&(Gr.trim()||!Hr.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(Br,"").replace(Lr,"")}},Xr);var qr=d.bind(String.prototype.trim);var Kr=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=V(n)?Infinity:_.ToInteger(n);var a=w(b(i,0),r.length);var f=e.length;var l=a+f;while(l>0){l=b(0,l-f);var s=st(ut(r,l,a+f),e);if(s!==-1){return l+s}}return-1}},Kr);var Qr=f.lastIndexOf;W(f,{lastIndexOf:function lastIndexOf(t){return Qr.apply(this,arguments)}},f.lastIndexOf.length!==1);var Vr=/^[-+]?0[xX]/;if(parseInt(Gr+"08")!==8||parseInt(Gr+"0x16")!==22){parseInt=function(t){return function parseInt(r,e){var n=qr(String(r));var i=u(e)||(Vr.test(n)?16:10);return t(n,i)}}(parseInt)}var _r=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(_r){var te=Symbol.prototype.valueOf;parseInt=function(t){return function parseInt(r,e){var n=typeof r==="symbol";if(!n&&r&&typeof r==="object"){try{te.call(r);n=true}catch(i){}}if(n){""+r}var a=qr(String(r));var o=u(e)||(Vr.test(a)?16:10);return t(a,o)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=qr(String(r));var n=t(e);return n===0&&ut(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var re=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=re}if(H){var ee=function(t,r){if(vt(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);if(e.configurable){e.enumerable=false;Object.defineProperty(t,r,e)}}};ee(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}ee(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var ne=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=ne}});
(function(t,e){"use strict";if(typeof define==="function"&&define.amd){define(e)}else if(typeof exports==="object"){module.exports=e()}else{t.returnExports=e()}})(this,function(){var t=Array;var e=t.prototype;var r=Object;var n=r.prototype;var i=Function;var a=i.prototype;var o=String;var f=o.prototype;var u=Number;var l=u.prototype;var s=e.slice;var c=e.splice;var v=e.push;var p=e.unshift;var h=e.concat;var y=e.join;var d=a.call;var g=a.apply;var b=Math.max;var w=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 F;var U=Function.prototype.toString,N=/^\s*class /,$=function isES6ClassFn(t){try{var e=U.call(t);var r=e.replace(/\/\/.*\n/g,"");var n=r.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/gm," ").replace(/ {2}/g," ");return N.test(i)}catch(a){return false}},M=function tryFunctionObject(t){try{if($(t)){return false}U.call(t);return true}catch(e){return false}},C="[object Function]",P="[object GeneratorFunction]",F=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(I){return M(t)}if($(t)){return false}var e=j.call(t);return e===C||e===P};var k;var R=RegExp.prototype.exec,A=function tryRegexExec(t){try{R.call(t);return true}catch(e){return false}},J="[object RegExp]";k=function isRegex(t){if(typeof t!=="object"){return false}return I?A(t):j.call(t)===J};var Y;var z=String.prototype.valueOf,Z=function tryStringObject(t){try{z.call(t);return true}catch(e){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=r.defineProperty&&function(){try{var t={};r.defineProperty(t,"x",{enumerable:false,value:t});for(var e in t){return false}return t.x===t}catch(n){return false}}();var W=function(t){var e;if(H){e=function(t,e,n,i){if(!i&&e in t){return}r.defineProperty(t,e,{configurable:true,enumerable:false,writable:true,value:n})}}else{e=function(t,e,r,n){if(!n&&e in t){return}t[e]=r}}return function defineProperties(r,n,i){for(var a in n){if(t.call(n,a)){e(r,a,n[a],i)}}}}(n.hasOwnProperty);if(r.defineProperty&&H){var B=function(){};var L={};var X={toString:L};r.defineProperty(B,"prototype",{value:X,writable:false});if((new B).toString!==L){var q=r.defineProperty;var K=r.getOwnPropertyDescriptor;W(r,{defineProperty:function defineProperty(t,e,r){var n=o(e);if(typeof t==="function"&&n==="prototype"){var i=K(t,n);if(i.writable&&!r.writable&&"value"in r){try{t[n]=r.value}catch(a){}}return q(t,n,{configurable:"configurable"in r?r.configurable:i.configurable,enumerable:"enumerable"in r?r.enumerable:i.enumerable,writable:r.writable})}return q(t,n,r)}},true)}}var Q=function isPrimitive(t){var e=typeof t;return t===null||e!=="object"&&e!=="function"};var V=u.isNaN||function isActualNaN(t){return t!==t};var _={ToInteger:function ToInteger(t){var e=+t;if(V(e)){e=0}else if(e!==0&&e!==1/0&&e!==-(1/0)){e=(e>0||-1)*T(m(e))}return e},ToPrimitive:function ToPrimitive(t){var e,r,n;if(Q(t)){return t}r=t.valueOf;if(F(r)){e=r.call(t);if(Q(e)){return e}}n=t.toString;if(F(n)){e=n.call(t);if(Q(e)){return e}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return r(t)},ToUint32:function ToUint32(t){return t>>>0}};var tt=function Empty(){};W(a,{bind:function bind(t){var e=this;if(!F(e)){throw new TypeError("Function.prototype.bind called on incompatible "+e)}var n=s.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=g.call(e,this,h.call(n,s.call(arguments)));if(r(i)===i){return i}return this}return g.call(e,t,h.call(n,s.call(arguments)))};var f=b(0,e.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(e.prototype){tt.prototype=e.prototype;a.prototype=new tt;tt.prototype=null}return a}});var et=d.bind(n.hasOwnProperty);var rt=d.bind(n.toString);var nt=d.bind(s);var it=g.bind(s);if(typeof document==="object"&&document&&document.documentElement){try{nt(document.documentElement.childNodes)}catch(at){var ot=nt;var ft=it;nt=function arraySliceIE(t){var e=[];var r=t.length;while(r-- >0){e[r]=t[r]}return ft(e,ot(arguments,1))};it=function arraySliceApplyIE(t,e){return ft(nt(t),e)}}}var ut=d.bind(f.slice);var lt=d.bind(f.split);var st=d.bind(f.indexOf);var ct=d.bind(v);var vt=d.bind(n.propertyIsEnumerable);var pt=d.bind(e.sort);var ht=t.isArray||function isArray(t){return rt(t)==="[object Array]"};var yt=[].unshift(0)!==1;W(e,{unshift:function(){p.apply(this,arguments);return this.length}},yt);W(t,{isArray:ht});var dt=r("a");var gt=dt[0]!=="a"||!(0 in dt);var bt=function properlyBoxed(t){var e=true;var r=true;var n=false;if(t){try{t.call("foo",function(t,r,n){if(typeof n!=="object"){e=false}});t.call([1],function(){"use strict";r=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&e&&r};W(e,{forEach:function forEach(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=-1;var i=_.ToUint32(r.length);var a;if(arguments.length>1){a=arguments[1]}if(!F(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in r){if(typeof a==="undefined"){t(r[n],n,e)}else{t.call(a,r[n],n,e)}}}}},!bt(e.forEach));W(e,{map:function map(e){var r=_.ToObject(this);var n=gt&&Y(this)?lt(this,""):r;var i=_.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!F(e)){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]=e(n[f],f,r)}else{a[f]=e.call(o,n[f],f,r)}}}return a}},!bt(e.map));W(e,{filter:function filter(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!F(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var f=0;f<n;f++){if(f in r){a=r[f];if(typeof o==="undefined"?t(a,f,e):t.call(o,a,f,e)){ct(i,a)}}}return i}},!bt(e.filter));W(e,{every:function every(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);var i;if(arguments.length>1){i=arguments[1]}if(!F(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in r&&!(typeof i==="undefined"?t(r[a],a,e):t.call(i,r[a],a,e))){return false}}return true}},!bt(e.every));W(e,{some:function some(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);var i;if(arguments.length>1){i=arguments[1]}if(!F(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in r&&(typeof i==="undefined"?t(r[a],a,e):t.call(i,r[a],a,e))){return true}}return false}},!bt(e.some));var wt=false;if(e.reduce){wt=typeof e.reduce.call("es5",function(t,e,r,n){return n})==="object"}W(e,{reduce:function reduce(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);if(!F(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 r){a=r[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 r){a=t(a,r[i],i,e)}}return a}},!wt);var Tt=false;if(e.reduceRight){Tt=typeof e.reduceRight.call("es5",function(t,e,r,n){return n})==="object"}W(e,{reduceRight:function reduceRight(t){var e=_.ToObject(this);var r=gt&&Y(this)?lt(this,""):e;var n=_.ToUint32(r.length);if(!F(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 r){i=r[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 r){i=t(i,r[a],a,e)}}while(a--);return i}},!Tt);var mt=e.indexOf&&[0,1].indexOf(1,2)!==-1;W(e,{indexOf:function indexOf(t){var e=gt&&Y(this)?lt(this,""):_.ToObject(this);var r=_.ToUint32(e.length);if(r===0){return-1}var n=0;if(arguments.length>1){n=_.ToInteger(arguments[1])}n=n>=0?n:b(0,r+n);for(;n<r;n++){if(n in e&&e[n]===t){return n}}return-1}},mt);var St=e.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;W(e,{lastIndexOf:function lastIndexOf(t){var e=gt&&Y(this)?lt(this,""):_.ToObject(this);var r=_.ToUint32(e.length);if(r===0){return-1}var n=r-1;if(arguments.length>1){n=w(n,_.ToInteger(arguments[1]))}n=n>=0?n:r-m(n);for(;n>=0;n--){if(n in e&&t===e[n]){return n}}return-1}},St);var Dt=function(){var t=[1,2];var e=t.splice();return t.length===2&&ht(e)&&e.length===0}();W(e,{splice:function splice(t,e){if(arguments.length===0){return[]}return c.apply(this,arguments)}},!Dt);var xt=function(){var t={};e.splice.call(t,0,0,1);return t.length===1}();var Et=[0,1,2].splice(0).length===3;W(e,{splice:function splice(t,e){if(arguments.length===0){return[]}var r=arguments;this.length=b(_.ToInteger(this.length),0);if(arguments.length>0&&typeof e!=="number"){r=nt(arguments);if(r.length<2){ct(r,this.length-t)}else{r[1]=_.ToInteger(e)}}return c.apply(this,r)}},!xt||!Et);var Ot=function(){var e=new t(1e5);e[8]="x";e.splice(1,1);return e.indexOf("x")===7}();var jt=function(){var t=256;var e=[];e[t]="a";e.splice(t+1,0,"b");return e[t]==="a"}();W(e,{splice:function splice(t,e){var r=_.ToObject(this);var n=[];var i=_.ToUint32(r.length);var a=_.ToInteger(t);var f=a<0?b(i+a,0):w(a,i);var u=arguments.length===0?0:arguments.length===1?i-f:w(b(_.ToInteger(e),0),i-f);var l=0;var s;while(l<u){s=o(f+l);if(et(r,s)){n[l]=r[s]}l+=1}var c=nt(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(et(r,s)){r[p]=r[s]}else{delete r[p]}l+=1}l=i;var y=i-u+v;while(l>y){delete r[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(et(r,s)){r[p]=r[s]}else{delete r[p]}l-=1}}l=f;for(var d=0;d<c.length;++d){r[l]=c[d];l+=1}r.length=i-u+v;return n}},!Ot||!jt);var It=e.join;var Ft;try{Ft=Array.prototype.join.call("123",",")!=="1,2,3"}catch(at){Ft=true}if(Ft){W(e,{join:function join(t){var e=typeof t==="undefined"?",":t;return It.call(Y(this)?lt(this,""):this,e)}},Ft)}var Ut=[1,2].join(undefined)!=="1,2";if(Ut){W(e,{join:function join(t){var e=typeof t==="undefined"?",":t;return It.call(this,e)}},Ut)}var Nt=function push(t){var e=_.ToObject(this);var r=_.ToUint32(e.length);var n=0;while(n<arguments.length){e[r+n]=arguments[n];n+=1}e.length=r+n;return r+n};var $t=function(){var t={};var e=Array.prototype.push.call(t,undefined);return e!==1||t.length!==1||typeof t[0]!=="undefined"||!et(t,0)}();W(e,{push:function push(t){if(ht(this)){return v.apply(this,arguments)}return Nt.apply(this,arguments)}},$t);var Mt=function(){var t=[];var e=t.push(undefined);return e!==1||t.length!==1||typeof t[0]!=="undefined"||!et(t,0)}();W(e,{push:Nt},Mt);W(e,{slice:function(t,e){var r=Y(this)?lt(this,""):this;return it(r,arguments)}},gt);var Ct=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(e){return false}}return true}();var Pt=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var kt=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();W(e,{sort:function sort(t){if(typeof t==="undefined"){return pt(this)}if(!F(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return pt(this,t)}},Ct||!kt||!Pt);var Rt=!vt({toString:null},"toString");var At=vt(function(){},"prototype");var Jt=!et("x","0");var Yt=function(t){var e=t.constructor;return e&&e.prototype===t};var zt={$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 Zt=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!zt["$"+t]&&et(window,t)&&window[t]!==null&&typeof window[t]==="object"){Yt(window[t])}}catch(e){return true}}return false}();var Gt=function(t){if(typeof window==="undefined"||!Zt){return Yt(t)}try{return Yt(t)}catch(e){return false}};var Ht=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Wt=Ht.length;var Bt=function isArguments(t){return rt(t)==="[object Arguments]"};var Lt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!ht(t)&&F(t.callee)};var Xt=Bt(arguments)?Bt:Lt;W(r,{keys:function keys(t){var e=F(t);var r=Xt(t);var n=t!==null&&typeof t==="object";var i=n&&Y(t);if(!n&&!e&&!r){throw new TypeError("Object.keys called on a non-object")}var a=[];var f=At&&e;if(i&&Jt||r){for(var u=0;u<t.length;++u){ct(a,o(u))}}if(!r){for(var l in t){if(!(f&&l==="prototype")&&et(t,l)){ct(a,o(l))}}}if(Rt){var s=Gt(t);for(var c=0;c<Wt;c++){var v=Ht[c];if(!(s&&v==="constructor")&&et(t,v)){ct(a,v)}}}return a}});var qt=r.keys&&function(){return r.keys(arguments).length===2}(1,2);var Kt=r.keys&&function(){var t=r.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Qt=r.keys;W(r,{keys:function keys(t){if(Xt(t)){return Qt(nt(t))}return Qt(t)}},!qt||Kt);var Vt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var _t=new Date(-0x55d318d56a724);var te=new Date(14496624e5);var ee=_t.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var re;var ne;var ie=_t.getTimezoneOffset();if(ie<-720){re=_t.toDateString()!=="Tue Jan 02 -45875";ne=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(te))}else{re=_t.toDateString()!=="Mon Jan 01 -45875";ne=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(te))}var ae=d.bind(Date.prototype.getFullYear);var oe=d.bind(Date.prototype.getMonth);var fe=d.bind(Date.prototype.getDate);var ue=d.bind(Date.prototype.getUTCFullYear);var le=d.bind(Date.prototype.getUTCMonth);var se=d.bind(Date.prototype.getUTCDate);var ce=d.bind(Date.prototype.getUTCDay);var ve=d.bind(Date.prototype.getUTCHours);var pe=d.bind(Date.prototype.getUTCMinutes);var he=d.bind(Date.prototype.getUTCSeconds);var ye=d.bind(Date.prototype.getUTCMilliseconds);var de=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var be=function daysInMonth(t,e){return fe(new Date(e,t,0))};W(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ae(this);if(t<0&&oe(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=ae(this);var e=oe(this);if(t<0&&e>11){return 0}return e},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ae(this);var e=oe(this);var r=fe(this);if(t<0&&e>11){if(e===12){return r}var n=be(0,t+1);return n-r+1}return r},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ue(this);if(t<0&&le(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=ue(this);var e=le(this);if(t<0&&e>11){return 0}return e},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ue(this);var e=le(this);var r=se(this);if(t<0&&e>11){if(e===12){return r}var n=be(0,t+1);return n-r+1}return r}},Vt);W(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ce(this);var e=se(this);var r=le(this);var n=ue(this);var i=ve(this);var a=pe(this);var o=he(this);return de[t]+", "+(e<10?"0"+e:e)+" "+ge[r]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Vt||ee);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 e=this.getDate();var r=this.getMonth();var n=this.getFullYear();return de[t]+" "+ge[r]+" "+(e<10?"0"+e:e)+" "+n}},Vt||re);if(Vt||ne){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var e=this.getDate();var r=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 de[t]+" "+ge[r]+" "+(e<10?"0"+e:e)+" "+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){r.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var we=-621987552e5;var Te="-000001";var me=Date.prototype.toISOString&&new Date(we).toISOString().indexOf(Te)===-1;var Se=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var De=d.bind(Date.prototype.getTime);W(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(De(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=ue(this);var e=le(this);t+=T(e/12);e=(e%12+12)%12;var r=[e+1,se(this),ve(this),pe(this),he(this)];t=(t<0?"-":t>9999?"+":"")+ut("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<r.length;++n){r[n]=ut("00"+r[n],-2)}return t+"-"+nt(r,0,2).join("-")+"T"+nt(r,2).join(":")+"."+ut("000"+ye(this),-3)+"Z"}},me||Se);var xe=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(we).toJSON().indexOf(Te)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!xe){Date.prototype.toJSON=function toJSON(t){var e=r(this);var n=_.ToPrimitive(e);if(typeof n==="number"&&!isFinite(n)){return null}var i=e.toISOString;if(!F(i)){throw new TypeError("toISOString property is not callable")}return i.call(e)}}var Ee=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var Oe=!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 je=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(je||Oe||!Ee){var Ie=S(2,31)-1;var Fe=V(new Date(1970,0,1,0,0,0,Ie+1).getTime());Date=function(t){var e=function Date(r,n,i,a,f,u,l){var s=arguments.length;var c;if(this instanceof t){var v=u;var p=l;if(Fe&&s>=7&&l>Ie){var h=T(l/Ie)*Ie;var y=T(h/1e3);v+=y;p-=y*1e3}var d=e.parse(r);var g=isNaN(d);c=s===1&&o(r)===r&&!g?new t(d):s>=7?new t(r,n,i,a,f,v,p):s>=6?new t(r,n,i,a,f,v):s>=5?new t(r,n,i,a,f):s>=4?new t(r,n,i,a):s>=3?new t(r,n,i):s>=2?new t(r,n):s>=1?new t(r instanceof t?+r:r):new t}else{c=t.apply(this,arguments)}if(!Q(c)){W(c,{constructor:e},true)}return c};var r=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,e){var r=e>1?1:0;return n[e]+T((t-1969+r)/4)-T((t-1901+r)/100)+T((t-1601+r)/400)+365*(t-1970)};var a=function toUTC(e){var r=0;var n=e;if(Fe&&n>Ie){var i=T(n/Ie)*Ie;var a=T(i/1e3);r+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,r,n))};for(var f in t){if(et(t,f)){e[f]=t[f]}}W(e,{now:t.now,UTC:t.UTC},true);e.prototype=t.prototype;W(e.prototype,{constructor:e},true);var l=function parse(e){var n=r.exec(e);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),b;var w=c>0||v>0||p>0;if(s<(w?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)){b=((i(o,f)+l)*24+s+d*y)*60;b=((b+c+g*y)*60+v)*1e3+p;if(h){b=a(b)}if(-864e13<=b&&b<=864e13){return b}}return NaN}return t.parse.apply(this,arguments)};W(e,{parse:l});return e}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var Ue=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(1000000000000000128).toFixed(0)!=="1000000000000000128");var Ne={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,e){var r=-1;var n=e;while(++r<Ne.size){n+=t*Ne.data[r];Ne.data[r]=n%Ne.base;n=T(n/Ne.base)}},divide:function divide(t){var e=Ne.size;var r=0;while(--e>=0){r+=Ne.data[e];Ne.data[e]=T(r/t);r=r%t*Ne.base}},numToString:function numToString(){var t=Ne.size;var e="";while(--t>=0){if(e!==""||t===0||Ne.data[t]!==0){var r=o(Ne.data[t]);if(e===""){e=r}else{e+=ut("0000000",0,7-r.length)+r}}}return e},pow:function pow(t,e,r){return e===0?r:e%2===1?pow(t,e-1,r*t):pow(t*t,e/2,r)},log:function log(t){var e=0;var r=t;while(r>=4096){e+=12;r/=4096}while(r>=2){e+=1;r/=2}return e}};var $e=function toFixed(t){var e,r,n,i,a,f,l,s;e=u(t);e=V(e)?0:T(e);if(e<0||e>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}r=u(this);if(V(r)){return"NaN"}if(r<=-1e21||r>=1e21){return o(r)}n="";if(r<0){n="-";r=-r}i="0";if(r>1e-21){a=Ne.log(r*Ne.pow(2,69,1))-69;f=a<0?r*Ne.pow(2,-a,1):r/Ne.pow(2,a,1);f*=4503599627370496;a=52-a;if(a>0){Ne.multiply(0,f);l=e;while(l>=7){Ne.multiply(1e7,0);l-=7}Ne.multiply(Ne.pow(10,l,1),0);l=a-1;while(l>=23){Ne.divide(1<<23);l-=23}Ne.divide(1<<l);Ne.multiply(1,1);Ne.divide(2);i=Ne.numToString()}else{Ne.multiply(0,f);Ne.multiply(1<<-a,0);i=Ne.numToString()+ut("0.00000000000000000000",2,2+e)}}if(e>0){s=i.length;if(s<=e){i=n+ut("0.0000000000000000000",0,e-s+2)+i}else{i=n+ut(i,0,s-e)+"."+ut(i,s-e)}}else{i=n+i}return i};W(l,{toFixed:$e},Ue);var Me=function(){try{return(-6.9e-11).toExponential(4)!=="-6.9000e-11"}catch(t){return false}}();var Ce=function(){try{1..toExponential(Infinity);1..toExponential(-Infinity);return true}catch(t){return false}}();var Pe=d.bind(l.toExponential);var ke=d.bind(l.toString);var Re=d.bind(l.valueOf);W(l,{toExponential:function toExponential(t){var e=Re(this);if(typeof t==="undefined"){return Pe(e)}var r=_.ToInteger(t);if(V(e)){return"NaN"}if(r<0||r>20){if(!isFinite(r)){throw new RangeError("toExponential() argument must be between 0 and 20")}return Pe(e,r)}var n="";if(e<0){n="-";e=-e}if(e===Infinity){return n+"Infinity"}if(typeof t!=="undefined"&&(r<0||r>20)){throw new RangeError("Fraction digits "+t+" out of range")}var i="";var a=0;var o="";var f="";if(e===0){a=0;r=0;i="0"}else{var u=O(e);a=T(u);var l=0;if(typeof t!=="undefined"){var s=S(10,a-r);l=D(e/s);if(2*e>=(2*l+1)*s){l+=1}if(l>=S(10,r+1)){l/=10;a+=1}}else{r=16;var c=D(S(10,u-a+r));var v=r;while(r-- >0){c=D(S(10,u-a+r));if(m(c*S(10,a-r)-e)<=m(l*S(10,a-v)-e)){v=r;l=c}}}i=ke(l,10);if(typeof t==="undefined"){while(ut(i,-1)==="0"){i=ut(i,0,-1);f+=1}}}if(r!==0){i=ut(i,0,1)+"."+ut(i,1)}if(a===0){o="+";f="0"}else{o=a>0?"+":"-";f=ke(m(a),10)}i+="e"+o+f;return n+i}},Me||Ce);var Ae=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var Je=d.bind(l.toPrecision);W(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?Je(this):Je(this,t)}},Ae);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 e=S(2,32)-1;f.split=function split(r,n){var i=String(this);if(typeof r==="undefined"&&n===0){return[]}if(!k(r)){return lt(this,r,n)}var a=[];var o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),f=0,u,l,s,c;var p=new RegExp(r.source,o+"g");if(!t){u=new RegExp("^"+p.source+"$(?!\\s)",o)}var h=typeof n==="undefined"?e:_.ToUint32(n);l=p.exec(i);while(l){s=l.index+l[0].length;if(s>f){ct(a,ut(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,nt(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("")){ct(a,"")}}else{ct(a,ut(i,f))}return a.length>h?nt(a,0,h):a}})()}else if("0".split(void 0,0).length){f.split=function split(t,e){if(typeof t==="undefined"&&e===0){return[]}return lt(this,t,e)}}var Ye=f.replace;var ze=function(){var t=[];"x".replace(/x(.)?/g,function(e,r){ct(t,r)});return t.length===1&&typeof t[0]==="undefined"}();if(!ze){f.replace=function replace(t,e){var r=F(e);var n=k(t)&&/\)[*?]/.test(t.source);if(!r||!n){return Ye.call(this,t,e)}var i=function(r){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(r)||[];t.lastIndex=i;ct(a,arguments[n-2],arguments[n-1]);return e.apply(this,a)};return Ye.call(this,t,i)}}var Ze=f.substr;var Ge="".substr&&"0b".substr(-1)!=="b";W(f,{substr:function substr(t,e){var r=t;if(t<0){r=b(this.length+t,0)}return Ze.call(this,r,e)}},Ge);var He="\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 We="\u200b";var Be="["+He+"]";var Le=new RegExp("^"+Be+Be+"*");var Xe=new RegExp(Be+Be+"*$");var qe=f.trim&&(He.trim()||!We.trim());W(f,{trim:function trim(){"use strict";if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Le,"").replace(Xe,"")}},qe);var Ke=d.bind(String.prototype.trim);var Qe=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 e=o(this);var r=o(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=V(n)?Infinity:_.ToInteger(n);var a=w(b(i,0),e.length);var f=r.length;var l=a+f;while(l>0){l=b(0,l-f);var s=st(ut(e,l,a+f),r);if(s!==-1){return l+s}}return-1}},Qe);var Ve=f.lastIndexOf;W(f,{lastIndexOf:function lastIndexOf(t){return Ve.apply(this,arguments)}},f.lastIndexOf.length!==1);var _e=/^[-+]?0[xX]/;if(parseInt(He+"08")!==8||parseInt(He+"0x16")!==22){parseInt=function(t){return function parseInt(e,r){if(this instanceof parseInt){new t}var n=Ke(String(e));var i=u(r)||(_e.test(n)?16:10);return t(n,i)}}(parseInt)}var tr=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(tr){var er=Symbol.prototype.valueOf;parseInt=function(t){return function parseInt(e,r){if(this instanceof parseInt){new t}var n=typeof e==="symbol";if(!n&&e&&typeof e==="object"){try{er.call(e);n=true}catch(i){}}if(n){""+e}var a=Ke(String(e));var o=u(r)||(_e.test(a)?16:10);return t(a,o)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(e){var r=Ke(String(e));var n=t(r);return n===0&&ut(r,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var rr=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 e=this.message;if(typeof e==="undefined"){e=""}else if(typeof e!=="string"){e=o(e)}if(!t){return e}if(!e){return t}return t+": "+e};Error.prototype.toString=rr}if(H){var nr=function(t,e){if(vt(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);if(r.configurable){r.enumerable=false;Object.defineProperty(t,e,r)}}};nr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}nr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var ir=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=ir}});
//# sourceMappingURL=es5-shim.map
{
"name": "es5-shim",
"version": "4.6.5",
"version": "4.6.6",
"description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",

@@ -38,5 +38,5 @@ "homepage": "https://github.com/es-shims/es5-shim/",

"devDependencies": {
"@ljharb/eslint-config": "^20.2.0",
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.0",
"eslint": "^8.8.0",
"eslint": "=8.8.0",
"in-publish": "^2.0.1",

@@ -43,0 +43,0 @@ "jasmine-node": "^1.16.2",

@@ -37,3 +37,3 @@ # es5-shim <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

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

@@ -48,4 +48,5 @@ * Array.prototype.indexOf ([standalone shim](https://www.npmjs.com/package/array.prototype.indexof))

* Array.prototype.reduceRight ([standalone shim](https://www.npmjs.com/package/array.prototype.reduceright))
* Array.prototype.push
* Array.prototype.push ([standalone shim](https://www.npmjs.com/package/array.prototype.push))
* Array.prototype.join
* Array.prototype.splice ([standalone shim](https://www.npmjs.com/package/array.prototype.splice))
* Array.isArray

@@ -52,0 +53,0 @@ * Date.now

@@ -12,2 +12,3 @@ var has = Object.prototype.hasOwnProperty;

}
a.sort();
return a;

@@ -14,0 +15,0 @@ };

@@ -274,2 +274,13 @@ describe('Date', function () {

it('matches web reality', function () {
var actual = Number(new Date('1900-01-01T00:00:00.000'));
var upperBound = -2208988800000; // safari 6.2 - 13.1
var expected = -2208960000000;
expect(actual).toBeDefined();
expect(actual).toBeGreaterThan(upperBound - 1);
expect(actual).toBeLessThan(expected + 1);
// expect(actual).toBe(expected); // TODO: figure out if `upperBound` is a bug or just a difference
expect(isNaN(actual)).toBeFalsy();
});
});

@@ -459,3 +470,5 @@

var offMins = off - (offHours * 60);
expect(date.getMinutes() + offMins).toBe(59);
var result = date.getMinutes() + offMins;
// ceil/floor is for Firefox
expect(result < 0 ? Math.ceil(result) : Math.floor(result)).toBe(59);
});

@@ -462,0 +475,0 @@ });

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

Sorry, the diff of this file is not supported yet

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

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