File: es5-shim.min.js

package info (click to toggle)
node-es5-shim 4.5.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 656 kB
  • sloc: javascript: 6,824; makefile: 11; sh: 2
file content (7 lines) | stat: -rw-r--r-- 26,036 bytes parent folder | download
1
2
3
4
5
6
7
/*!
 * https://github.com/es-shims/es5-shim
 * @license es5-shim Copyright 2009-2020 by contributors, MIT License
 * see https://github.com/es-shims/es5-shim/blob/master/LICENSE
 */
(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 u=o.prototype;var f=Number;var l=f.prototype;var s=e.slice;var c=e.splice;var v=e.push;var h=e.unshift;var p=e.concat;var y=e.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 D=Math.pow;var S=n.toString;var x=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var O;var E=Function.prototype.toString,j=/^\s*class /,I=function isES6ClassFn(t){try{var e=E.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 j.test(i)}catch(a){return false}},U=function tryFunctionObject(t){try{if(I(t)){return false}E.call(t);return true}catch(e){return false}},$="[object Function]",F="[object GeneratorFunction]",O=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(x){return U(t)}if(I(t)){return false}var e=S.call(t);return e===$||e===F};var N;var M=RegExp.prototype.exec,C=function tryRegexExec(t){try{M.call(t);return true}catch(e){return false}},k="[object RegExp]";N=function isRegex(t){if(typeof t!=="object"){return false}return x?C(t):S.call(t)===k};var A;var R=String.prototype.valueOf,P=function tryStringObject(t){try{R.call(t);return true}catch(e){return false}},J="[object String]";A=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return x?P(t):S.call(t)===J};var Y=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 z=function(t){var e;if(Y){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);var Z=function isPrimitive(t){var e=typeof t;return t===null||e!=="object"&&e!=="function"};var G=f.isNaN||function isActualNaN(t){return t!==t};var H={ToInteger:function ToInteger(t){var e=+t;if(G(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(Z(t)){return t}r=t.valueOf;if(O(r)){e=r.call(t);if(Z(e)){return e}}n=t.toString;if(O(n)){e=n.call(t);if(Z(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 W=function Empty(){};z(a,{bind:function bind(t){var e=this;if(!O(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,p.call(n,s.call(arguments)));if(r(i)===i){return i}return this}else{return g.call(e,t,p.call(n,s.call(arguments)))}};var u=w(0,e.length-n.length);var f=[];for(var l=0;l<u;l++){v.call(f,"$"+l)}a=i("binder","return function ("+y.call(f,",")+"){ return binder.apply(this, arguments); }")(o);if(e.prototype){W.prototype=e.prototype;a.prototype=new W;W.prototype=null}return a}});var B=d.bind(n.hasOwnProperty);var X=d.bind(n.toString);var L=d.bind(s);var q=g.bind(s);if(typeof document==="object"&&document&&document.documentElement){try{L(document.documentElement.childNodes)}catch(K){var Q=L;var V=q;L=function arraySliceIE(t){var e=[];var r=t.length;while(r-- >0){e[r]=t[r]}return V(e,Q(arguments,1))};q=function arraySliceApplyIE(t,e){return V(L(t),e)}}}var _=d.bind(u.slice);var tt=d.bind(u.split);var et=d.bind(u.indexOf);var rt=d.bind(v);var nt=d.bind(n.propertyIsEnumerable);var it=d.bind(e.sort);var at=t.isArray||function isArray(t){return X(t)==="[object Array]"};var ot=[].unshift(0)!==1;z(e,{unshift:function(){h.apply(this,arguments);return this.length}},ot);z(t,{isArray:at});var ut=r("a");var ft=ut[0]!=="a"||!(0 in ut);var lt=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};z(e,{forEach:function forEach(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=-1;var i=H.ToUint32(r.length);var a;if(arguments.length>1){a=arguments[1]}if(!O(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)}}}}},!lt(e.forEach));z(e,{map:function map(e){var r=H.ToObject(this);var n=ft&&A(this)?tt(this,""):r;var i=H.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!O(e)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u<i;u++){if(u in n){if(typeof o==="undefined"){a[u]=e(n[u],u,r)}else{a[u]=e.call(o,n[u],u,r)}}}return a}},!lt(e.map));z(e,{filter:function filter(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=H.ToUint32(r.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!O(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u<n;u++){if(u in r){a=r[u];if(typeof o==="undefined"?t(a,u,e):t.call(o,a,u,e)){rt(i,a)}}}return i}},!lt(e.filter));z(e,{every:function every(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=H.ToUint32(r.length);var i;if(arguments.length>1){i=arguments[1]}if(!O(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}},!lt(e.every));z(e,{some:function some(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=H.ToUint32(r.length);var i;if(arguments.length>1){i=arguments[1]}if(!O(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}},!lt(e.some));var st=false;if(e.reduce){st=typeof e.reduce.call("es5",function(t,e,r,n){return n})==="object"}z(e,{reduce:function reduce(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=H.ToUint32(r.length);if(!O(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}},!st);var ct=false;if(e.reduceRight){ct=typeof e.reduceRight.call("es5",function(t,e,r,n){return n})==="object"}z(e,{reduceRight:function reduceRight(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=H.ToUint32(r.length);if(!O(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}},!ct);var vt=e.indexOf&&[0,1].indexOf(1,2)!==-1;z(e,{indexOf:function indexOf(t){var e=ft&&A(this)?tt(this,""):H.ToObject(this);var r=H.ToUint32(e.length);if(r===0){return-1}var n=0;if(arguments.length>1){n=H.ToInteger(arguments[1])}n=n>=0?n:w(0,r+n);for(;n<r;n++){if(n in e&&e[n]===t){return n}}return-1}},vt);var ht=e.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;z(e,{lastIndexOf:function lastIndexOf(t){var e=ft&&A(this)?tt(this,""):H.ToObject(this);var r=H.ToUint32(e.length);if(r===0){return-1}var n=r-1;if(arguments.length>1){n=b(n,H.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}},ht);var pt=function(){var t=[1,2];var e=t.splice();return t.length===2&&at(e)&&e.length===0}();z(e,{splice:function splice(t,e){if(arguments.length===0){return[]}else{return c.apply(this,arguments)}}},!pt);var yt=function(){var t={};e.splice.call(t,0,0,1);return t.length===1}();z(e,{splice:function splice(t,e){if(arguments.length===0){return[]}var r=arguments;this.length=w(H.ToInteger(this.length),0);if(arguments.length>0&&typeof e!=="number"){r=L(arguments);if(r.length<2){rt(r,this.length-t)}else{r[1]=H.ToInteger(e)}}return c.apply(this,r)}},!yt);var dt=function(){var e=new t(1e5);e[8]="x";e.splice(1,1);return e.indexOf("x")===7}();var gt=function(){var t=256;var e=[];e[t]="a";e.splice(t+1,0,"b");return e[t]==="a"}();z(e,{splice:function splice(t,e){var r=H.ToObject(this);var n=[];var i=H.ToUint32(r.length);var a=H.ToInteger(t);var u=a<0?w(i+a,0):b(a,i);var f=arguments.length===0?0:arguments.length===1?i-u:b(w(H.ToInteger(e),0),i-u);var l=0;var s;while(l<f){s=o(u+l);if(B(r,s)){n[l]=r[s]}l+=1}var c=L(arguments,2);var v=c.length;var h;if(v<f){l=u;var p=i-f;while(l<p){s=o(l+f);h=o(l+v);if(B(r,s)){r[h]=r[s]}else{delete r[h]}l+=1}l=i;var y=i-f+v;while(l>y){delete r[l-1];l-=1}}else if(v>f){l=i-f;while(l>u){s=o(l+f-1);h=o(l+v-1);if(B(r,s)){r[h]=r[s]}else{delete r[h]}l-=1}}l=u;for(var d=0;d<c.length;++d){r[l]=c[d];l+=1}r.length=i-f+v;return n}},!dt||!gt);var wt=e.join;var bt;try{bt=Array.prototype.join.call("123",",")!=="1,2,3"}catch(K){bt=true}if(bt){z(e,{join:function join(t){var e=typeof t==="undefined"?",":t;return wt.call(A(this)?tt(this,""):this,e)}},bt)}var Tt=[1,2].join(undefined)!=="1,2";if(Tt){z(e,{join:function join(t){var e=typeof t==="undefined"?",":t;return wt.call(this,e)}},Tt)}var mt=function push(t){var e=H.ToObject(this);var r=H.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 Dt=function(){var t={};var e=Array.prototype.push.call(t,undefined);return e!==1||t.length!==1||typeof t[0]!=="undefined"||!B(t,0)}();z(e,{push:function push(t){if(at(this)){return v.apply(this,arguments)}return mt.apply(this,arguments)}},Dt);var St=function(){var t=[];var e=t.push(undefined);return e!==1||t.length!==1||typeof t[0]!=="undefined"||!B(t,0)}();z(e,{push:mt},St);z(e,{slice:function(t,e){var r=A(this)?tt(this,""):this;return q(r,arguments)}},ft);var xt=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(e){return false}}return true}();var Ot=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var Et=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();z(e,{sort:function sort(t){if(typeof t==="undefined"){return it(this)}if(!O(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return it(this,t)}},xt||!Et||!Ot);var jt=!nt({toString:null},"toString");var It=nt(function(){},"prototype");var Ut=!B("x","0");var $t=function(t){var e=t.constructor;return e&&e.prototype===t};var Ft={$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 Nt=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!Ft["$"+t]&&B(window,t)&&window[t]!==null&&typeof window[t]==="object"){$t(window[t])}}catch(e){return true}}return false}();var Mt=function(t){if(typeof window==="undefined"||!Nt){return $t(t)}try{return $t(t)}catch(e){return false}};var Ct=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var kt=Ct.length;var At=function isArguments(t){return X(t)==="[object Arguments]"};var Rt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!at(t)&&O(t.callee)};var Pt=At(arguments)?At:Rt;z(r,{keys:function keys(t){var e=O(t);var r=Pt(t);var n=t!==null&&typeof t==="object";var i=n&&A(t);if(!n&&!e&&!r){throw new TypeError("Object.keys called on a non-object")}var a=[];var u=It&&e;if(i&&Ut||r){for(var f=0;f<t.length;++f){rt(a,o(f))}}if(!r){for(var l in t){if(!(u&&l==="prototype")&&B(t,l)){rt(a,o(l))}}}if(jt){var s=Mt(t);for(var c=0;c<kt;c++){var v=Ct[c];if(!(s&&v==="constructor")&&B(t,v)){rt(a,v)}}}return a}});var Jt=r.keys&&function(){return r.keys(arguments).length===2}(1,2);var Yt=r.keys&&function(){var t=r.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var zt=r.keys;z(r,{keys:function keys(t){if(Pt(t)){return zt(L(t))}else{return zt(t)}}},!Jt||Yt);var Zt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var Gt=new Date(-0x55d318d56a724);var Ht=new Date(14496624e5);var Wt=Gt.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var Bt;var Xt;var Lt=Gt.getTimezoneOffset();if(Lt<-720){Bt=Gt.toDateString()!=="Tue Jan 02 -45875";Xt=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Ht))}else{Bt=Gt.toDateString()!=="Mon Jan 01 -45875";Xt=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Ht))}var qt=d.bind(Date.prototype.getFullYear);var Kt=d.bind(Date.prototype.getMonth);var Qt=d.bind(Date.prototype.getDate);var Vt=d.bind(Date.prototype.getUTCFullYear);var _t=d.bind(Date.prototype.getUTCMonth);var te=d.bind(Date.prototype.getUTCDate);var ee=d.bind(Date.prototype.getUTCDay);var re=d.bind(Date.prototype.getUTCHours);var ne=d.bind(Date.prototype.getUTCMinutes);var ie=d.bind(Date.prototype.getUTCSeconds);var ae=d.bind(Date.prototype.getUTCMilliseconds);var oe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var fe=function daysInMonth(t,e){return Qt(new Date(e,t,0))};z(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=qt(this);if(t<0&&Kt(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=qt(this);var e=Kt(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=qt(this);var e=Kt(this);var r=Qt(this);if(t<0&&e>11){if(e===12){return r}var n=fe(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=Vt(this);if(t<0&&_t(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=Vt(this);var e=_t(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=Vt(this);var e=_t(this);var r=te(this);if(t<0&&e>11){if(e===12){return r}var n=fe(0,t+1);return n-r+1}return r}},Zt);z(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ee(this);var e=te(this);var r=_t(this);var n=Vt(this);var i=re(this);var a=ne(this);var o=ie(this);return oe[t]+", "+(e<10?"0"+e:e)+" "+ue[r]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Zt||Wt);z(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 oe[t]+" "+ue[r]+" "+(e<10?"0"+e:e)+" "+n}},Zt||Bt);if(Zt||Xt){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 u=this.getTimezoneOffset();var f=T(m(u)/60);var l=T(m(u)%60);return oe[t]+" "+ue[r]+" "+(e<10?"0"+e:e)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(l<10?"0"+l:l)};if(Y){r.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var le=-621987552e5;var se="-000001";var ce=Date.prototype.toISOString&&new Date(le).toISOString().indexOf(se)===-1;var ve=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var he=d.bind(Date.prototype.getTime);z(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(he(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Vt(this);var e=_t(this);t+=T(e/12);e=(e%12+12)%12;var r=[e+1,te(this),re(this),ne(this),ie(this)];t=(t<0?"-":t>9999?"+":"")+_("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<r.length;++n){r[n]=_("00"+r[n],-2)}return t+"-"+L(r,0,2).join("-")+"T"+L(r,2).join(":")+"."+_("000"+ae(this),-3)+"Z"}},ce||ve);var pe=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(le).toJSON().indexOf(se)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!pe){Date.prototype.toJSON=function toJSON(t){var e=r(this);var n=H.ToPrimitive(e);if(typeof n==="number"&&!isFinite(n)){return null}var i=e.toISOString;if(!O(i)){throw new TypeError("toISOString property is not callable")}return i.call(e)}}var ye=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var de=!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 ge=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(ge||de||!ye){var we=D(2,31)-1;var be=G(new Date(1970,0,1,0,0,0,we+1).getTime());Date=function(t){var e=function Date(r,n,i,a,u,f,l){var s=arguments.length;var c;if(this instanceof t){var v=f;var h=l;if(be&&s>=7&&l>we){var p=T(l/we)*we;var y=T(p/1e3);v+=y;h-=y*1e3}c=s===1&&o(r)===r?new t(e.parse(r)):s>=7?new t(r,n,i,a,u,v,h):s>=6?new t(r,n,i,a,u,v):s>=5?new t(r,n,i,a,u):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(!Z(c)){z(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(be&&n>we){var i=T(n/we)*we;var a=T(i/1e3);r+=a;n-=a*1e3}return f(new t(1970,0,1,0,0,r,n))};for(var u in t){if(B(t,u)){e[u]=t[u]}}z(e,{now:t.now,UTC:t.UTC},true);e.prototype=t.prototype;z(e.prototype,{constructor:e},true);var l=function parse(e){var n=r.exec(e);if(n){var o=f(n[1]),u=f(n[2]||1)-1,l=f(n[3]||1)-1,s=f(n[4]||0),c=f(n[5]||0),v=f(n[6]||0),h=T(f(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),y=n[9]==="-"?1:-1,d=f(n[10]||0),g=f(n[11]||0),w;var b=c>0||v>0||h>0;if(s<(b?24:25)&&c<60&&v<60&&h<1e3&&u>-1&&u<12&&d<24&&g<60&&l>-1&&l<i(o,u+1)-i(o,u)){w=((i(o,u)+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)};z(e,{parse:l});return e}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var Te=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(1000000000000000128).toFixed(0)!=="1000000000000000128");var me={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,e){var r=-1;var n=e;while(++r<me.size){n+=t*me.data[r];me.data[r]=n%me.base;n=T(n/me.base)}},divide:function divide(t){var e=me.size;var r=0;while(--e>=0){r+=me.data[e];me.data[e]=T(r/t);r=r%t*me.base}},numToString:function numToString(){var t=me.size;var e="";while(--t>=0){if(e!==""||t===0||me.data[t]!==0){var r=o(me.data[t]);if(e===""){e=r}else{e+=_("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 De=function toFixed(t){var e,r,n,i,a,u,l,s;e=f(t);e=G(e)?0:T(e);if(e<0||e>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}r=f(this);if(G(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=me.log(r*me.pow(2,69,1))-69;u=a<0?r*me.pow(2,-a,1):r/me.pow(2,a,1);u*=4503599627370496;a=52-a;if(a>0){me.multiply(0,u);l=e;while(l>=7){me.multiply(1e7,0);l-=7}me.multiply(me.pow(10,l,1),0);l=a-1;while(l>=23){me.divide(1<<23);l-=23}me.divide(1<<l);me.multiply(1,1);me.divide(2);i=me.numToString()}else{me.multiply(0,u);me.multiply(1<<-a,0);i=me.numToString()+_("0.00000000000000000000",2,2+e)}}if(e>0){s=i.length;if(s<=e){i=n+_("0.0000000000000000000",0,e-s+2)+i}else{i=n+_(i,0,s-e)+"."+_(i,s-e)}}else{i=n+i}return i};z(l,{toFixed:De},Te);var Se=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var xe=l.toPrecision;z(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?xe.call(this):xe.call(this,t)}},Se);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=D(2,32)-1;u.split=function split(r,n){var i=String(this);if(typeof r==="undefined"&&n===0){return[]}if(!N(r)){return tt(this,r,n)}var a=[];var o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),u=0,f,l,s,c;var h=new RegExp(r.source,o+"g");if(!t){f=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?e:H.ToUint32(n);l=h.exec(i);while(l){s=l.index+l[0].length;if(s>u){rt(a,_(i,u,l.index));if(!t&&l.length>1){l[0].replace(f,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,L(l,1))}c=l[0].length;u=s;if(a.length>=p){break}}if(h.lastIndex===l.index){h.lastIndex++}l=h.exec(i)}if(u===i.length){if(c||!h.test("")){rt(a,"")}}else{rt(a,_(i,u))}return a.length>p?L(a,0,p):a}})()}else if("0".split(void 0,0).length){u.split=function split(t,e){if(typeof t==="undefined"&&e===0){return[]}return tt(this,t,e)}}var Oe=u.replace;var Ee=function(){var t=[];"x".replace(/x(.)?/g,function(e,r){rt(t,r)});return t.length===1&&typeof t[0]==="undefined"}();if(!Ee){u.replace=function replace(t,e){var r=O(e);var n=N(t)&&/\)[*?]/.test(t.source);if(!r||!n){return Oe.call(this,t,e)}else{var i=function(r){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(r)||[];t.lastIndex=i;rt(a,arguments[n-2],arguments[n-1]);return e.apply(this,a)};return Oe.call(this,t,i)}}}var je=u.substr;var Ie="".substr&&"0b".substr(-1)!=="b";z(u,{substr:function substr(t,e){var r=t;if(t<0){r=w(this.length+t,0)}return je.call(this,r,e)}},Ie);var Ue="\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 $e="\u200b";var Fe="["+Ue+"]";var Ne=new RegExp("^"+Fe+Fe+"*");var Me=new RegExp(Fe+Fe+"*$");var Ce=u.trim&&(Ue.trim()||!$e.trim());z(u,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Ne,"").replace(Me,"")}},Ce);var ke=d.bind(String.prototype.trim);var Ae=u.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;z(u,{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?f(arguments[1]):NaN;var i=G(n)?Infinity:H.ToInteger(n);var a=b(w(i,0),e.length);var u=r.length;var l=a+u;while(l>0){l=w(0,l-u);var s=et(_(e,l,a+u),r);if(s!==-1){return l+s}}return-1}},Ae);var Re=u.lastIndexOf;z(u,{lastIndexOf:function lastIndexOf(t){return Re.apply(this,arguments)}},u.lastIndexOf.length!==1);if(parseInt(Ue+"08")!==8||parseInt(Ue+"0x16")!==22){parseInt=function(t){var e=/^[-+]?0[xX]/;return function parseInt(r,n){if(typeof r==="symbol"){""+r}var i=ke(String(r));var a=f(n)||(e.test(i)?16:10);return t(i,a)}}(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&&_(r,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Pe=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=Pe}if(Y){var Je=function(t,e){if(nt(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);if(r.configurable){r.enumerable=false;Object.defineProperty(t,e,r)}}};Je(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Je(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Ye=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=Ye}});
//# sourceMappingURL=es5-shim.map