UNPKG

28.1 kBJavaScriptView Raw
1/*!
2 * https://github.com/es-shims/es5-shim
3 * @license es5-shim Copyright 2009-2020 by contributors, MIT License
4 * see https://github.com/es-shims/es5-shim/blob/master/LICENSE
5 */
6(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}});
7//# sourceMappingURL=es5-shim.map