UNPKG

ttk-app-core

Version:
1 lines 43.5 kB
var shim_lib=function(r){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=r,o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,r){r(1),r(2),r(3),r(4),r(5),r(6)},function(t,e){!function(t){"use strict";t.console||(t.console={});for(var e,r,n=t.console,o=function(){},i=["memory"],a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)n[e]||(n[e]={});for(;r=a.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?this:window)},function(r,n,o){var i,a;!function(t,e){"use strict";void 0===(a="function"==typeof(i=e)?i.call(n,o,n,r):i)||(r.exports=a)}(0,function(){var h,p,s=Array,t=s.prototype,c=Object,e=c.prototype,l=Function,r=l.prototype,b=String,n=b.prototype,g=Number,o=g.prototype,u=t.slice,i=t.splice,d=t.push,a=t.unshift,f=t.concat,y=t.join,v=r.call,w=r.apply,m=Math.max,O=Math.min,T=e.toString,x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,E=Function.prototype.toString,j=/^\s*class /,_=function(t){try{var e=E.call(t).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return j.test(e)}catch(t){return!1}},S=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(x)return function(t){try{return!_(t)&&(E.call(t),!0)}catch(t){return!1}}(t);if(_(t))return!1;var e=T.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e},D=RegExp.prototype.exec;h=function(t){return"object"==typeof t&&(x?function(t){try{return D.call(t),!0}catch(t){return!1}}(t):"[object RegExp]"===T.call(t))};var P=String.prototype.valueOf;p=function(t){return"string"==typeof t||"object"==typeof t&&(x?function(t){try{return P.call(t),!0}catch(t){return!1}}(t):"[object String]"===T.call(t))};var C,I,M=c.defineProperty&&function(){try{var t={};for(var e in c.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),N=(C=e.hasOwnProperty,I=M?function(t,e,r,n){!n&&e in t||c.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r})}:function(t,e,r,n){!n&&e in t||(t[e]=r)},function(t,e,r){for(var n in e)C.call(e,n)&&I(t,n,e[n],r)}),A=function(t){var e=typeof t;return null===t||"object"!==e&&"function"!==e},R=g.isNaN||function(t){return t!=t},F=function(t){var e=+t;return R(e)?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(0<e||-1)*Math.floor(Math.abs(e))),e},k=function(t){var e,r,n;if(A(t))return t;if(r=t.valueOf,S(r)&&(e=r.call(t),A(e)))return e;if(n=t.toString,S(n)&&(e=n.call(t),A(e)))return e;throw new TypeError},U=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return c(t)},z=function(t){return t>>>0},$=function(){};N(r,{bind:function(e){var r=this;if(!S(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var n,o=u.call(arguments,1),t=m(0,r.length-o.length),i=[],a=0;a<t;a++)d.call(i,"$"+a);return n=l("binder","return function ("+y.call(i,",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof n){var t=w.call(r,this,f.call(o,u.call(arguments)));return c(t)===t?t:this}return w.call(r,e,f.call(o,u.call(arguments)))}),r.prototype&&($.prototype=r.prototype,n.prototype=new $,$.prototype=null),n}});var B=v.bind(e.hasOwnProperty),H=v.bind(e.toString),q=v.bind(u),L=w.bind(u);if("object"==typeof document&&document&&document.documentElement)try{q(document.documentElement.childNodes)}catch(t){var G=q,J=L;q=function(t){for(var e=[],r=t.length;0<r--;)e[r]=t[r];return J(e,G(arguments,1))},L=function(t,e){return J(q(t),e)}}var X=v.bind(n.slice),Z=v.bind(n.split),W=v.bind(n.indexOf),Y=v.bind(d),K=v.bind(e.propertyIsEnumerable),Q=v.bind(t.sort),V=s.isArray||function(t){return"[object Array]"===H(t)},tt=1!==[].unshift(0);N(t,{unshift:function(){return a.apply(this,arguments),this.length}},tt),N(s,{isArray:V});var et=c("a"),rt="a"!==et[0]||!(0 in et),nt=function(t){var n=!0,e=!0,r=!1;if(t)try{t.call("foo",function(t,e,r){"object"!=typeof r&&(n=!1)}),t.call([1],function(){"use strict";e="string"==typeof this},"x")}catch(t){r=!0}return!!t&&!r&&n&&e};N(t,{forEach:function(t){var e,r=U(this),n=rt&&p(this)?Z(this,""):r,o=-1,i=z(n.length);if(1<arguments.length&&(e=arguments[1]),!S(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++o<i;)o in n&&(void 0===e?t(n[o],o,r):t.call(e,n[o],o,r))}},!nt(t.forEach)),N(t,{map:function(t){var e,r=U(this),n=rt&&p(this)?Z(this,""):r,o=z(n.length),i=s(o);if(1<arguments.length&&(e=arguments[1]),!S(t))throw new TypeError("Array.prototype.map callback must be a function");for(var a=0;a<o;a++)a in n&&(i[a]=void 0===e?t(n[a],a,r):t.call(e,n[a],a,r));return i}},!nt(t.map)),N(t,{filter:function(t){var e,r,n=U(this),o=rt&&p(this)?Z(this,""):n,i=z(o.length),a=[];if(1<arguments.length&&(r=arguments[1]),!S(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var s=0;s<i;s++)s in o&&(e=o[s],(void 0===r?t(e,s,n):t.call(r,e,s,n))&&Y(a,e));return a}},!nt(t.filter)),N(t,{every:function(t){var e,r=U(this),n=rt&&p(this)?Z(this,""):r,o=z(n.length);if(1<arguments.length&&(e=arguments[1]),!S(t))throw new TypeError("Array.prototype.every callback must be a function");for(var i=0;i<o;i++)if(i in n&&!(void 0===e?t(n[i],i,r):t.call(e,n[i],i,r)))return!1;return!0}},!nt(t.every)),N(t,{some:function(t){var e,r=U(this),n=rt&&p(this)?Z(this,""):r,o=z(n.length);if(1<arguments.length&&(e=arguments[1]),!S(t))throw new TypeError("Array.prototype.some callback must be a function");for(var i=0;i<o;i++)if(i in n&&(void 0===e?t(n[i],i,r):t.call(e,n[i],i,r)))return!0;return!1}},!nt(t.some));var ot=!1;t.reduce&&(ot="object"==typeof t.reduce.call("es5",function(t,e,r,n){return n})),N(t,{reduce:function(t){var e=U(this),r=rt&&p(this)?Z(this,""):e,n=z(r.length);if(!S(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===n&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,i=0;if(2<=arguments.length)o=arguments[1];else for(;;){if(i in r){o=r[i++];break}if(++i>=n)throw new TypeError("reduce of empty array with no initial value")}for(;i<n;i++)i in r&&(o=t(o,r[i],i,e));return o}},!ot);var it=!1;t.reduceRight&&(it="object"==typeof t.reduceRight.call("es5",function(t,e,r,n){return n})),N(t,{reduceRight:function(t){var e,r=U(this),n=rt&&p(this)?Z(this,""):r,o=z(n.length);if(!S(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i=o-1;if(2<=arguments.length)e=arguments[1];else for(;;){if(i in n){e=n[i--];break}if(--i<0)throw new TypeError("reduceRight of empty array with no initial value")}if(i<0)return e;for(;i in n&&(e=t(e,n[i],i,r)),i--;);return e}},!it);var at=t.indexOf&&-1!==[0,1].indexOf(1,2);N(t,{indexOf:function(t){var e=rt&&p(this)?Z(this,""):U(this),r=z(e.length);if(0===r)return-1;var n=0;for(1<arguments.length&&(n=F(arguments[1])),n=0<=n?n:m(0,r+n);n<r;n++)if(n in e&&e[n]===t)return n;return-1}},at);var st=t.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);N(t,{lastIndexOf:function(t){var e=rt&&p(this)?Z(this,""):U(this),r=z(e.length);if(0===r)return-1;var n=r-1;for(1<arguments.length&&(n=O(n,F(arguments[1]))),n=0<=n?n:r-Math.abs(n);0<=n;n--)if(n in e&&t===e[n])return n;return-1}},st);var ct,lt,ut=(lt=(ct=[1,2]).splice(),2===ct.length&&V(lt)&&0===lt.length);N(t,{splice:function(t,e){return 0===arguments.length?[]:i.apply(this,arguments)}},!ut);var ft,ht=(ft={},t.splice.call(ft,0,0,1),1===ft.length);N(t,{splice:function(t,e){if(0===arguments.length)return[];var r=arguments;return this.length=m(F(this.length),0),0<arguments.length&&"number"!=typeof e&&((r=q(arguments)).length<2?Y(r,this.length-t):r[1]=F(e)),i.apply(this,r)}},!ht);var pt,dt,yt=((pt=new s(1e5))[8]="x",pt.splice(1,1),7===pt.indexOf("x")),vt=((dt=[])[256]="a",dt.splice(257,0,"b"),"a"===dt[256]);N(t,{splice:function(t,e){for(var r,n=U(this),o=[],i=z(n.length),a=F(t),s=a<0?m(i+a,0):O(a,i),c=O(m(F(e),0),i-s),l=0;l<c;)r=b(s+l),B(n,r)&&(o[l]=n[r]),l+=1;var u,f=q(arguments,2),h=f.length;if(h<c){l=s;for(var p=i-c;l<p;)r=b(l+c),u=b(l+h),B(n,r)?n[u]=n[r]:delete n[u],l+=1;for(var d=(l=i)-c+h;d<l;)delete n[l-1],l-=1}else if(c<h)for(l=i-c;s<l;)r=b(l+c-1),u=b(l+h-1),B(n,r)?n[u]=n[r]:delete n[u],l-=1;l=s;for(var y=0;y<f.length;++y)n[l]=f[y],l+=1;return n.length=i-c+h,o}},!yt||!vt);var bt,gt=t.join;try{bt="1,2,3"!==Array.prototype.join.call("123",",")}catch(t){bt=!0}bt&&N(t,{join:function(t){var e=void 0===t?",":t;return gt.call(p(this)?Z(this,""):this,e)}},bt);var wt="1,2"!==[1,2].join(void 0);wt&&N(t,{join:function(t){var e=void 0===t?",":t;return gt.call(this,e)}},wt);var mt,Ot=function(t){for(var e=U(this),r=z(e.length),n=0;n<arguments.length;)e[r+n]=arguments[n],n+=1;return e.length=r+n,r+n},Tt=(mt={},1!==Array.prototype.push.call(mt,void 0)||1!==mt.length||void 0!==mt[0]||!B(mt,0));N(t,{push:function(t){return V(this)?d.apply(this,arguments):Ot.apply(this,arguments)}},Tt);var xt,Et=1!==(xt=[]).push(void 0)||1!==xt.length||void 0!==xt[0]||!B(xt,0);N(t,{push:Ot},Et),N(t,{slice:function(t,e){var r=p(this)?Z(this,""):this;return L(r,arguments)}},rt);var jt=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(t){return!1}}return!0}(),_t=function(){try{return[1,2].sort(/a/),!1}catch(t){}return!0}(),St=function(){try{return[1,2].sort(void 0),!0}catch(t){}return!1}();N(t,{sort:function(t){if(void 0===t)return Q(this);if(!S(t))throw new TypeError("Array.prototype.sort callback must be a function");return Q(this,t)}},jt||!St||!_t);var Dt=!K({toString:null},"toString"),Pt=K(function(){},"prototype"),Ct=!B("x","0"),It=function(t){var e=t.constructor;return e&&e.prototype===t},Mt={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},Nt=function(){if("undefined"==typeof window)return!1;for(var t in window)try{!Mt["$"+t]&&B(window,t)&&null!==window[t]&&"object"==typeof window[t]&&It(window[t])}catch(t){return!0}return!1}(),At=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Rt=At.length,Ft=function(t){return"[object Arguments]"===H(t)},kt=Ft(arguments)?Ft:function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&!V(t)&&S(t.callee)};N(c,{keys:function(t){var e=S(t),r=kt(t),n=null!==t&&"object"==typeof t,o=n&&p(t);if(!n&&!e&&!r)throw new TypeError("Object.keys called on a non-object");var i=[],a=Pt&&e;if(o&&Ct||r)for(var s=0;s<t.length;++s)Y(i,b(s));if(!r)for(var c in t)a&&"prototype"===c||!B(t,c)||Y(i,b(c));if(Dt)for(var l=function(t){if("undefined"==typeof window||!Nt)return It(t);try{return It(t)}catch(t){return!1}}(t),u=0;u<Rt;u++){var f=At[u];l&&"constructor"===f||!B(t,f)||Y(i,f)}return i}});var Ut=c.keys&&function(){return 2===c.keys(arguments).length}(1,2),zt=c.keys&&function(){var t=c.keys(arguments);return 1!==arguments.length||1!==t.length||1!==t[0]}(1),$t=c.keys;N(c,{keys:function(t){return kt(t)?$t(q(t)):$t(t)}},!Ut||zt);var Bt,Ht,qt=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Lt=new Date(-0x55d318d56a724),Gt=new Date(14496624e5),Jt="Mon, 01 Jan -45875 11:59:59 GMT"!==Lt.toUTCString();Lt.getTimezoneOffset()<-720?(Bt="Tue Jan 02 -45875"!==Lt.toDateString(),Ht=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Gt))):(Bt="Mon Jan 01 -45875"!==Lt.toDateString(),Ht=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Gt)));var Xt=v.bind(Date.prototype.getFullYear),Zt=v.bind(Date.prototype.getMonth),Wt=v.bind(Date.prototype.getDate),Yt=v.bind(Date.prototype.getUTCFullYear),Kt=v.bind(Date.prototype.getUTCMonth),Qt=v.bind(Date.prototype.getUTCDate),Vt=v.bind(Date.prototype.getUTCDay),te=v.bind(Date.prototype.getUTCHours),ee=v.bind(Date.prototype.getUTCMinutes),re=v.bind(Date.prototype.getUTCSeconds),ne=v.bind(Date.prototype.getUTCMilliseconds),oe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ae=function(t,e){return Wt(new Date(e,t,0))};N(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Xt(this);return t<0&&11<Zt(this)?t+1:t},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Xt(this),e=Zt(this);return t<0&&11<e?0:e},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Xt(this),e=Zt(this),r=Wt(this);return t<0&&11<e?12===e?r:ae(0,t+1)-r+1:r},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Yt(this);return t<0&&11<Kt(this)?t+1:t},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Yt(this),e=Kt(this);return t<0&&11<e?0:e},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Yt(this),e=Kt(this),r=Qt(this);return t<0&&11<e?12===e?r:ae(0,t+1)-r+1:r}},qt),N(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Vt(this),e=Qt(this),r=Kt(this),n=Yt(this),o=te(this),i=ee(this),a=re(this);return oe[t]+", "+(e<10?"0"+e:e)+" "+ie[r]+" "+n+" "+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+" GMT"}},qt||Jt),N(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),e=this.getDate(),r=this.getMonth(),n=this.getFullYear();return oe[t]+" "+ie[r]+" "+(e<10?"0"+e:e)+" "+n}},qt||Bt),(qt||Ht)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),e=this.getDate(),r=this.getMonth(),n=this.getFullYear(),o=this.getHours(),i=this.getMinutes(),a=this.getSeconds(),s=this.getTimezoneOffset(),c=Math.floor(Math.abs(s)/60),l=Math.floor(Math.abs(s)%60);return oe[t]+" "+ie[r]+" "+(e<10?"0"+e:e)+" "+n+" "+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+" GMT"+(0<s?"-":"+")+(c<10?"0"+c:c)+(l<10?"0"+l:l)},M&&c.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var se=-621987552e5,ce="-000001",le=Date.prototype.toISOString&&-1===new Date(se).toISOString().indexOf(ce),ue=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),fe=v.bind(Date.prototype.getTime);N(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(fe(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var t=Yt(this),e=Kt(this);t+=Math.floor(e/12);var r=[(e=(e%12+12)%12)+1,Qt(this),te(this),ee(this),re(this)];t=(t<0?"-":9999<t?"+":"")+X("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<r.length;++n)r[n]=X("00"+r[n],-2);return t+"-"+q(r,0,2).join("-")+"T"+q(r,2).join(":")+"."+X("000"+ne(this),-3)+"Z"}},le||ue),function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(se).toJSON().indexOf(ce)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(t){return!1}}()||(Date.prototype.toJSON=function(t){var e=c(this),r=k(e);if("number"==typeof r&&!isFinite(r))return null;var n=e.toISOString;if(!S(n))throw new TypeError("toISOString property is not callable");return n.call(e)});var he=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),pe=!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"));if(isNaN(Date.parse("2000-01-01T00:00:00.000Z"))||pe||!he){var de=Math.pow(2,31)-1,ye=R(new Date(1970,0,1,0,0,0,de+1).getTime());Date=function(d){var p=function(t,e,r,n,o,i,a){var s,c=arguments.length;if(this instanceof d){var l=i,u=a;if(ye&&7<=c&&de<a){var f=Math.floor(a/de)*de,h=Math.floor(f/1e3);l+=h,u-=1e3*h}s=1===c&&b(t)===t?new d(p.parse(t)):7<=c?new d(t,e,r,n,o,l,u):6<=c?new d(t,e,r,n,o,l):5<=c?new d(t,e,r,n,o):4<=c?new d(t,e,r,n):3<=c?new d(t,e,r):2<=c?new d(t,e):1<=c?new d(t instanceof d?+t:t):new d}else s=d.apply(this,arguments);return A(s)||N(s,{constructor:p},!0),s},y=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),n=[0,31,59,90,120,151,181,212,243,273,304,334,365],v=function(t,e){var r=1<e?1:0;return n[e]+Math.floor((t-1969+r)/4)-Math.floor((t-1901+r)/100)+Math.floor((t-1601+r)/400)+365*(t-1970)};for(var t in d)B(d,t)&&(p[t]=d[t]);N(p,{now:d.now,UTC:d.UTC},!0),p.prototype=d.prototype,N(p.prototype,{constructor:p},!0);return N(p,{parse:function(t){var e=y.exec(t);if(e){var r,n=g(e[1]),o=g(e[2]||1)-1,i=g(e[3]||1)-1,a=g(e[4]||0),s=g(e[5]||0),c=g(e[6]||0),l=Math.floor(1e3*g(e[7]||0)),u=Boolean(e[4]&&!e[8]),f="-"===e[9]?1:-1,h=g(e[10]||0),p=g(e[11]||0);return a<(0<s||0<c||0<l?24:25)&&s<60&&c<60&&l<1e3&&-1<o&&o<12&&h<24&&p<60&&-1<i&&i<v(n,o+1)-v(n,o)&&(r=1e3*(60*((r=60*(24*(v(n,o)+i)+a+h*f))+s+p*f)+c)+l,u&&(r=function(t){var e=0,r=t;if(ye&&de<r){var n=Math.floor(r/de)*de,o=Math.floor(n/1e3);e+=o,r-=1e3*o}return g(new d(1970,0,1,0,0,e,r))}(r)),-864e13<=r&&r<=864e13)?r:NaN}return d.parse.apply(this,arguments)}}),p}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var ve=o.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),be={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,e){for(var r=-1,n=e;++r<be.size;)n+=t*be.data[r],be.data[r]=n%be.base,n=Math.floor(n/be.base)},divide:function(t){for(var e=be.size,r=0;0<=--e;)r+=be.data[e],be.data[e]=Math.floor(r/t),r=r%t*be.base},numToString:function(){for(var t=be.size,e="";0<=--t;)if(""!==e||0===t||0!==be.data[t]){var r=b(be.data[t]);""===e?e=r:e+=X("0000000",0,7-r.length)+r}return e},pow:function t(e,r,n){return 0===r?n:r%2==1?t(e,r-1,n*e):t(e*e,r/2,n)},log:function(t){for(var e=0,r=t;4096<=r;)e+=12,r/=4096;for(;2<=r;)e+=1,r/=2;return e}};N(o,{toFixed:function(t){var e,r,n,o,i,a,s,c;if(e=g(t),(e=R(e)?0:Math.floor(e))<0||20<e)throw new RangeError("Number.toFixed called with invalid number of decimals");if(r=g(this),R(r))return"NaN";if(r<=-1e21||1e21<=r)return b(r);if(n="",r<0&&(n="-",r=-r),o="0",1e-21<r)if(a=(i=be.log(r*be.pow(2,69,1))-69)<0?r*be.pow(2,-i,1):r/be.pow(2,i,1),a*=4503599627370496,0<(i=52-i)){for(be.multiply(0,a),s=e;7<=s;)be.multiply(1e7,0),s-=7;for(be.multiply(be.pow(10,s,1),0),s=i-1;23<=s;)be.divide(1<<23),s-=23;be.divide(1<<s),be.multiply(1,1),be.divide(2),o=be.numToString()}else be.multiply(0,a),be.multiply(1<<-i,0),o=be.numToString()+X("0.00000000000000000000",2,2+e);return o=0<e?(c=o.length)<=e?n+X("0.0000000000000000000",0,e-c+2)+o:n+X(o,0,c-e)+"."+X(o,c-e):n+o}},ve);var ge,we,me=function(){try{return"1"===1..toPrecision(void 0)}catch(t){return!0}}(),Oe=o.toPrecision;N(o,{toPrecision:function(t){return void 0===t?Oe.call(this):Oe.call(this,t)}},me),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||1<".".split(/()()/).length?(ge=void 0===/()??/.exec("")[1],we=Math.pow(2,32)-1,n.split=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!h(t))return Z(this,t,e);var n,o,i,a,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,u=new RegExp(t.source,c+"g");ge||(n=new RegExp("^"+u.source+"$(?!\\s)",c));var f=void 0===e?we:z(e);for(o=u.exec(r);o&&!(l<(i=o.index+o[0].length)&&(Y(s,X(r,l,o.index)),!ge&&1<o.length&&o[0].replace(n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(o[t]=void 0)}),1<o.length&&o.index<r.length&&d.apply(s,q(o,1)),a=o[0].length,l=i,f<=s.length));)u.lastIndex===o.index&&u.lastIndex++,o=u.exec(r);return l===r.length?!a&&u.test("")||Y(s,""):Y(s,X(r,l)),f<s.length?q(s,0,f):s}):"0".split(void 0,0).length&&(n.split=function(t,e){return void 0===t&&0===e?[]:Z(this,t,e)});var Te,xe=n.replace;(Te=[],"x".replace(/x(.)?/g,function(t,e){Y(Te,e)}),1===Te.length&&void 0===Te[0])||(n.replace=function(o,i){var t=S(i),e=h(o)&&/\)[*?]/.test(o.source);if(t&&e){return xe.call(this,o,function(t){var e=arguments.length,r=o.lastIndex;o.lastIndex=0;var n=o.exec(t)||[];return o.lastIndex=r,Y(n,arguments[e-2],arguments[e-1]),i.apply(this,n)})}return xe.call(this,o,i)});var Ee=n.substr,je="".substr&&"b"!=="0b".substr(-1);N(n,{substr:function(t,e){var r=t;return t<0&&(r=m(this.length+t,0)),Ee.call(this,r,e)}},je);var _e="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Se="["+_e+"]",De=new RegExp("^"+Se+Se+"*"),Pe=new RegExp(Se+Se+"*$"),Ce=n.trim&&(_e.trim()||!"​".trim());N(n,{trim:function(){if(null==this)throw new TypeError("can't convert "+this+" to object");return b(this).replace(De,"").replace(Pe,"")}},Ce);var Ie=v.bind(String.prototype.trim),Me=n.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);N(n,{lastIndexOf:function(t){if(null==this)throw new TypeError("can't convert "+this+" to object");for(var e=b(this),r=b(t),n=1<arguments.length?g(arguments[1]):NaN,o=R(n)?1/0:F(n),i=O(m(o,0),e.length),a=r.length,s=i+a;0<s;){s=m(0,s-a);var c=W(X(e,s,i+a),r);if(-1!==c)return s+c}return-1}},Me);var Ne,Ae,Re,Fe=n.lastIndexOf;if(N(n,{lastIndexOf:function(t){return Fe.apply(this,arguments)}},1!==n.lastIndexOf.length),8===parseInt(_e+"08")&&22===parseInt(_e+"0x16")||(parseInt=(Ne=parseInt,Ae=/^[-+]?0[xX]/,function(t,e){var r=Ie(String(t)),n=g(e)||(Ae.test(r)?16:10);return Ne(r,n)})),1/parseFloat("-0")!=-1/0&&(parseFloat=(Re=parseFloat,function(t){var e=Ie(String(t)),r=Re(e);return 0===r&&"-"===X(e,0,1)?-0:r})),"RangeError: test"!==String(new RangeError("test"))){Error.prototype.toString=function(){if(null==this)throw new TypeError("can't convert "+this+" to object");var t=this.name;void 0===t?t="Error":"string"!=typeof t&&(t=b(t));var e=this.message;return void 0===e?e="":"string"!=typeof e&&(e=b(e)),t?e?t+": "+e:t:e}}if(M){var ke=function(t,e){if(K(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);r.configurable&&(r.enumerable=!1,Object.defineProperty(t,e,r))}};ke(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),ke(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){RegExp.prototype.toString=function(){var t="/"+this.source+"/";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),t}}})},function(r,n,o){var i,a;!function(t,e){"use strict";void 0===(a="function"==typeof(i=e)?i.call(n,o,n,r):i)||(r.exports=a)}(0,function(){var a,s,c,l,t=Function.call,u=Object.prototype,f=t.bind(u.hasOwnProperty),h=t.bind(u.propertyIsEnumerable),r=t.bind(u.toString),p=f(u,"__defineGetter__");p&&(a=t.bind(u.__defineGetter__),s=t.bind(u.__defineSetter__),c=t.bind(u.__lookupGetter__),l=t.bind(u.__lookupSetter__));var d=function(t){return null==t||"object"!=typeof t&&"function"!=typeof t};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){var e=t.__proto__;return e||null===e?e:"[object Function]"===r(t.constructor)?t.constructor.prototype:t instanceof Object?u:null});var e=function(t){try{return(t.sentinel=0)===Object.getOwnPropertyDescriptor(t,"sentinel").value}catch(t){return!1}};if(Object.defineProperty){var n=e({});if(!("undefined"==typeof document||e(document.createElement("div")))||!n)var y=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||y){Object.getOwnPropertyDescriptor=function(t,e){if(d(t))throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(y)try{return y.call(Object,t,e)}catch(t){}var r;if(!f(t,e))return r;if(r={enumerable:h(t,e),configurable:!0},p){var n=t.__proto__,o=t!==u;o&&(t.__proto__=u);var i=c(t,e),a=l(t,e);if(o&&(t.__proto__=n),i||a)return i&&(r.get=i),a&&(r.set=a),r}return r.value=t[e],r.writable=!0,r}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),!Object.create){var v,o=!({__proto__:null}instanceof Object);v=o||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var t,e,r,n,o,i=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(t){return!1}}()?((o=new ActiveXObject("htmlfile")).write("<script><\/script>"),o.close(),n=o.parentWindow.Object.prototype,o=null,n):(e=document.createElement("iframe"),r=document.body||document.documentElement,e.style.display="none",r.appendChild(e),e.src="javascript:",t=e.contentWindow.Object.prototype,r.removeChild(e),e=null,t);delete i.constructor,delete i.hasOwnProperty,delete i.propertyIsEnumerable,delete i.isPrototypeOf,delete i.toLocaleString,delete i.toString,delete i.valueOf;var a=function(){};return a.prototype=i,v=function(){return new a},new a},Object.create=function(t,e){var r,n=function(){};if(null===t)r=v();else{if(null!==t&&d(t))throw new TypeError("Object prototype may only be an Object or null");n.prototype=t,(r=new n).__proto__=t}return void 0!==e&&Object.defineProperties(r,e),r}}var i,b=function(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(t){return!1}};if(Object.defineProperty){var g=b({}),w="undefined"==typeof document||b(document.createElement("div"));if(!g||!w)var m=Object.defineProperty,O=Object.defineProperties}if(!Object.defineProperty||m){Object.defineProperty=function(t,e,r){if(d(t))throw new TypeError("Object.defineProperty called on non-object: "+t);if(d(r))throw new TypeError("Property description must be an object: "+r);if(m)try{return m.call(Object,t,e,r)}catch(t){}if("value"in r)if(p&&(c(t,e)||l(t,e))){var n=t.__proto__;t.__proto__=u,delete t[e],t[e]=r.value,t.__proto__=n}else t[e]=r.value;else{var o="get"in r,i="set"in r;if(!p&&(o||i))throw new TypeError("getters & setters can not be defined on this javascript engine");o&&a(t,e,r.get),i&&s(t,e,r.set)}return t}}Object.defineProperties&&!O||(Object.defineProperties=function(e,r){if(O)try{return O.call(Object,e,r)}catch(t){}return Object.keys(r).forEach(function(t){"__proto__"!==t&&Object.defineProperty(e,t,r[t])}),e}),Object.seal||(Object.seal=function(t){if(Object(t)!==t)throw new TypeError("Object.seal can only be called on Objects.");return t}),Object.freeze||(Object.freeze=function(t){if(Object(t)!==t)throw new TypeError("Object.freeze can only be called on Objects.");return t});try{Object.freeze(function(){})}catch(t){Object.freeze=(i=Object.freeze,function(t){return"function"==typeof t?t:i(t)})}Object.preventExtensions||(Object.preventExtensions=function(t){if(Object(t)!==t)throw new TypeError("Object.preventExtensions can only be called on Objects.");return t}),Object.isSealed||(Object.isSealed=function(t){if(Object(t)!==t)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(t){if(Object(t)!==t)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)!==t)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var e="";f(t,e);)e+="?";t[e]=!0;var r=f(t,e);return delete t[e],r})})},function(t,e){!function(t){"use strict";var S=t.setTimeout,D=t.clearTimeout,P=t.XMLHttpRequest,r=t.XDomainRequest,e=t.EventSource,n=t.document;null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e});var u=function(){};function o(t){this.withCredentials=!1,this.responseType="",this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onreadystatechange=u,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=u}function C(t){this._xhr=new o(t)}function i(){this._listeners=Object.create(null)}function I(t){S(function(){throw t},0)}function M(t){this.type=t,this.target=void 0}function N(t,e){M.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}o.prototype.open=function(t,e){this._abort(!0);var o=this,i=this._xhr,a=1,r=0;this._abort=function(t){0!==o._sendTimeout&&(D(o._sendTimeout),o._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,i.onload=u,i.onerror=u,i.onabort=u,i.onprogress=u,i.onreadystatechange=u,i.abort(),0!==r&&(D(r),r=0),t||(o.readyState=4,o.onreadystatechange())),a=0};var n=function(){if(1===a){var e=0,r="",n=void 0;if("contentType"in i)e=200,r="OK",n=i.contentType;else try{e=i.status,r=i.statusText,n=i.getResponseHeader("Content-Type")}catch(t){r="",n=void(e=0)}0!==e&&(a=2,o.readyState=2,o.status=e,o.statusText=r,o._contentType=n,o.onreadystatechange())}},s=function(){if(n(),2===a||3===a){a=3;var t="";try{t=i.responseText}catch(t){}o.readyState=3,o.responseText=t,o.onprogress()}},c=function(){s(),1!==a&&2!==a&&3!==a||(a=4,0!==r&&(D(r),r=0),o.readyState=4,o.onreadystatechange())},l=function(){r=S(function(){l()},500),3===i.readyState&&s()};i.onload=c,i.onerror=c,i.onabort=c,"sendAsBinary"in P.prototype||"mozAnon"in P.prototype||(i.onprogress=s),i.onreadystatechange=function(){null!=i&&(4===i.readyState?c():3===i.readyState?s():2===i.readyState&&n())},"contentType"in i&&(e+=(-1===e.indexOf("?",0)?"?":"&")+"padding=true"),i.open(t,e,!0),"readyState"in i&&(r=S(function(){l()},0))},o.prototype.abort=function(){this._abort(!1)},o.prototype.getResponseHeader=function(t){return this._contentType},o.prototype.setRequestHeader=function(t,e){var r=this._xhr;"setRequestHeader"in r&&r.setRequestHeader(t,e)},o.prototype.send=function(){if("ontimeout"in P.prototype||null==n||null==n.readyState||"complete"===n.readyState){var t=this._xhr;t.withCredentials=this.withCredentials,t.responseType=this.responseType;try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=S(function(){e._sendTimeout=0,e.send()},4)}},C.prototype.open=function(n,e,o,t,r,i){var a=this._xhr;a.open("GET",t);var s=0;for(var c in a.onprogress=function(){var t=a.responseText.slice(s);s+=t.length,e(t)},a.onreadystatechange=function(){if(2===a.readyState){var t=a.status,e=a.statusText,r=a.getResponseHeader("Content-Type");n(t,e,r)}else 4===a.readyState&&o()},a.withCredentials=r,a.responseType="text",i)Object.prototype.hasOwnProperty.call(i,c)&&a.setRequestHeader(c,i[c]);a.send()},C.prototype.cancel=function(){this._xhr.abort()},i.prototype.dispatchEvent=function(t){var e=(t.target=this)._listeners[t.type];if(null!=e)for(var r=e.length,n=0;n<r;n+=1){var o=e[n];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){I(t)}}},i.prototype.addEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];null==n&&(n=[],r[t]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===e&&(o=!0);o||n.push(e)},i.prototype.removeEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==e&&o.push(n[i]);0===o.length?delete r[t]:r[t]=o}},N.prototype=Object.create(M.prototype);var A=-1,R=0,F=1,k=2,U=-1,z=0,$=1,B=2,H=3,q=/^text\/event\-stream;?(\s*charset\=utf\-8)?$/i,L=function(t,e){var r=parseInt(t,10);return r!=r&&(r=e),G(r)},G=function(t){return Math.min(Math.max(t,1e3),18e6)},J=function(t,e,r){try{"function"==typeof e&&e.call(t,r)}catch(t){I(t)}};function a(t,e){i.call(this),this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this._close=void 0,function(l,n,t){n=String(n);var o=null!=t&&Boolean(t.withCredentials),u=G(1e3),f=null!=t&&null!=t.heartbeatTimeout?L(t.heartbeatTimeout,45e3):G(45e3),h="",p=u,d=!1,i=null!=t&&null!=t.headers?JSON.parse(JSON.stringify(t.headers)):void 0,a=new C(new(null!=t&&null!=t.Transport?t.Transport:null!=r?r:P)),y=0,v=A,b="",g="",w="",m="",O=z,T=0,x=0,s=function(t,e,r){if(v===R)if(200===t&&null!=r&&q.test(r)){v=F,d=!0,p=u,l.readyState=F;var n=new M("open");l.dispatchEvent(n),J(l,l.onopen,n)}else{var o="";200!==t?(e&&(e=e.replace(/\s+/g," ")),o="EventSource's response has a status "+t+" "+e+" that is not 200. Aborting the connection."):o="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",I(new Error(o)),j();var n=new M("error");l.dispatchEvent(n),J(l,l.onerror,n)}},c=function(t){if(v===F){for(var e=-1,r=0;r<t.length;r+=1){var n=t.charCodeAt(r);n!=="\n".charCodeAt(0)&&n!=="\r".charCodeAt(0)||(e=r)}var o=(-1!==e?m:"")+t.slice(0,e+1);m=(-1===e?m:"")+t.slice(e+1),""!==o&&(d=!0);for(var i=0;i<o.length;i+=1){var n=o.charCodeAt(i);if(O===U&&n==="\n".charCodeAt(0))O=z;else if(O===U&&(O=z),n==="\r".charCodeAt(0)||n==="\n".charCodeAt(0)){if(O!==z){O===$&&(x=i+1);var a=o.slice(T,x-1),s=o.slice(x+(x<i&&o.charCodeAt(x)===" ".charCodeAt(0)?1:0),i);"data"===a?(b+="\n",b+=s):"id"===a?g=s:"event"===a?w=s:"retry"===a?(u=L(s,u),p=u):"heartbeatTimeout"===a&&(f=L(s,f),0!==y&&(D(y),y=S(function(){_()},f)))}if(O===z){if(""!==b){h=g,""===w&&(w="message");var c=new N(w,{data:b.slice(1),lastEventId:g});if(l.dispatchEvent(c),"message"===w&&J(l,l.onmessage,c),v===k)return}w=b=""}O=n==="\r".charCodeAt(0)?U:z}else O===z&&(T=i,O=$),O===$?n===":".charCodeAt(0)&&(x=i+1,O=B):O===B&&(O=H)}}},E=function(){if(v===F||v===R){v=A,0!==y&&(D(y),y=0),y=S(function(){_()},p),p=G(Math.min(16*u,2*p)),l.readyState=R;var t=new M("error");l.dispatchEvent(t),J(l,l.onerror,t)}},j=function(){v=k,a.cancel(),0!==y&&(D(y),y=0),l.readyState=k},_=function(){if(y=0,v===A){d=!1,y=S(function(){_()},f),v=R,g=h,m=w=b="",x=T=0,O=z;var t=n;"data:"!==n.slice(0,5)&&"blob:"!==n.slice(0,5)&&(t=n+(-1===n.indexOf("?",0)?"?":"&")+"lastEventId="+encodeURIComponent(h));var e={Accept:"text/event-stream"};if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);try{a.open(s,c,E,t,o,e)}catch(t){throw j(),t}}else d?(d=!1,y=S(function(){_()},f)):(I(new Error("No activity within "+f+" milliseconds. Reconnecting.")),a.cancel())};l.url=n,l.readyState=R,l.withCredentials=o,l._close=j,_()}(this,t,e)}(a.prototype=Object.create(i.prototype)).CONNECTING=R,a.prototype.OPEN=F,a.prototype.CLOSED=k,a.prototype.close=function(){this._close()},a.CONNECTING=R,a.OPEN=F,a.CLOSED=k,a.prototype.withCredentials=void 0,t.EventSourcePolyfill=a,t.NativeEventSource=e,null==P||null!=e&&"withCredentials"in e.prototype||(t.EventSource=a)}("undefined"!=typeof window?window:this)},function(v,t){!function(t){"use strict";if(t.__disableNativeFetch||!t.fetch){l.prototype.append=function(t,e){t=s(t),e=c(e);var r=this.map[t];r||(r=[],this.map[t]=r),r.push(e)},l.prototype.delete=function(t){delete this.map[s(t)]},l.prototype.get=function(t){var e=this.map[s(t)];return e?e[0]:null},l.prototype.getAll=function(t){return this.map[s(t)]||[]},l.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},l.prototype.set=function(t,e){this.map[s(t)]=[c(e)]},l.prototype.forEach=function(r,n){Object.getOwnPropertyNames(this.map).forEach(function(e){this.map[e].forEach(function(t){r.call(n,t,e,this)},this)},this)};var o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),r="FormData"in t,n="ArrayBuffer"in t,i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this)},h.call(p.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var a=[301,302,303,307,308];y.redirect=function(t,e){if(-1===a.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=l,t.Request=p,t.Response=y,t.fetch=function(r,n){return new Promise(function(i,a){var t;t=p.prototype.isPrototypeOf(r)&&!n?r:new p(r,n);var s=new XMLHttpRequest;var c=!1;function e(){if(4===s.readyState){var t=1223===s.status?204:s.status;if(t<100||599<t){if(c)return;return c=!0,void a(new TypeError("Network request failed"))}var e,o,r={status:t,statusText:s.statusText,headers:(e=s,o=new l,e.getAllResponseHeaders().trim().split("\n").forEach(function(t){var e=t.trim().split(":"),r=e.shift().trim(),n=e.join(":").trim();o.append(r,n)}),o),url:"responseURL"in s?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):void 0},n="response"in s?s.response:s.responseText;c||(c=!0,i(new y(n,r)))}}s.onreadystatechange=e,s.onload=e,s.onerror=function(){c||(c=!0,a(new TypeError("Network request failed")))},s.open(t.method,t.url,!0);try{"include"===t.credentials&&("withCredentials"in s?s.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(t){console&&console.warn&&console.warn("set withCredentials error:"+t)}"responseType"in s&&o&&(s.responseType="blob"),t.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})},t.fetch.polyfill=!0,void 0!==v&&v.exports&&(v.exports=t.fetch)}function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function l(e){this.map={},e instanceof l?e.forEach(function(t,e){this.append(e,t)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function e(t){var e=new FileReader;return e.readAsArrayBuffer(t),f(e)}function h(){return this.bodyUsed=!1,this._initBody=function(t,e){if("string"==typeof(this._bodyInit=t))this._bodyText=t;else if(o&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t,this._options=e;else if(r&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!n||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText=""},o?(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(e)},this.text=function(){var t,e,r,n,o,i,a,s=u(this);if(s)return s;if(this._bodyBlob)return t=this._bodyBlob,e=this._options,r=new FileReader,n=e.headers.map["content-type"]?e.headers.map["content-type"].toString():"",o=/charset\=[0-9a-zA-Z\-\_]*;?/,i=t.type.match(o)||n.match(o),a=[t],i&&a.push(i[0].replace(/^charset\=/,"").replace(/;$/,"")),r.readAsText.apply(r,a),f(r);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=u(this);return t||Promise.resolve(this._bodyText)},r&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(t,e){var r,n,o=(e=e||{}).body;if(p.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,o||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),-1<i.indexOf(n)?n:r),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o,e)}function d(t){var o=new FormData;return t.trim().split("&").forEach(function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(n))}}),o}function y(t,e){e||(e={}),this._initBody(t,e),this.type="default",this.status=e.status,this.ok=200<=this.status&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof l?e.headers:new l(e.headers),this.url=e.url||""}}("undefined"!=typeof self?self:this)},function(t,e){window.matchMedia||(window.matchMedia=function(l){"use strict";var u=l.document,a=u.documentElement,s=[],c=0,m="",O={},T=/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,x=/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/,t=0,f=function(t){var e=-1!==t.indexOf(",")&&t.split(",")||[t],r=e.length-1,n=r,o=null,i=null,a="",s=0,c=!1,l="",u="",f=null,h=0,p=null,d="",y="",v="",b="",g="",w=!1;if(""===t)return!0;do{if(c=!1,(i=(o=e[n-r]).match(T))&&(a=i[0],s=i.index),!i||-1===o.substring(0,s).indexOf("(")&&(s||!i[3]&&a!==i.input))w=!1;else{if(u=o,c="not"===i[1],s||(l=i[2],u=o.substring(a.length)),w=l===m||"all"===l||""===l,h=(f=-1!==u.indexOf(" and ")&&u.split(" and ")||[u]).length-1,w&&0<=h&&""!==u)do{if(!(p=f[h].match(x))||!O[p[3]]){w=!1;break}if(d=p[2],b=y=p[5],v=p[7],g=O[p[3]],v&&(b="px"===v?Number(y):"em"===v||"rem"===v?16*y:p[8]?(y/p[8]).toFixed(2):"dppx"===v?96*y:"dpcm"===v?.3937*y:Number(y)),!(w="min-"===d&&b?b<=g:"max-"===d&&b?g<=b:b?g===b:!!g))break}while(h--);if(w)break}}while(r--);return c?!w:w},h=function(){var t=l.innerWidth||a.clientWidth,e=l.innerHeight||a.clientHeight,r=l.screen.width,n=l.screen.height,o=l.screen.colorDepth,i=l.devicePixelRatio;O.width=t,O.height=e,O["aspect-ratio"]=(t/e).toFixed(2),O["device-width"]=r,O["device-height"]=n,O["device-aspect-ratio"]=(r/n).toFixed(2),O.color=o,O["color-index"]=Math.pow(2,o),O.orientation=t<=e?"portrait":"landscape",O.resolution=i&&96*i||l.screen.deviceXDPI||96,O["device-pixel-ratio"]=i||1},p=function(){clearTimeout(t),t=setTimeout(function(){var t=null,e=c-1,r=e,n=!1;if(0<=e){h();do{if((t=s[r-e])&&((n=f(t.mql.media))&&!t.mql.matches||!n&&t.mql.matches)&&(t.mql.matches=n,t.listeners))for(var o=0,i=t.listeners.length;o<i;o++)t.listeners[o]&&t.listeners[o].call(l,t.mql)}while(e--)}},10)};return function(){var t,e=u.getElementsByTagName("head")[0],r=u.createElement("style"),n=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],o=0,i=n.length,a="#mediamatchjs { position: relative; z-index: 0; }",s="",c=l.addEventListener||(s="on")&&l.attachEvent;for(r.type="text/css",r.id="mediamatchjs",e.appendChild(r),t=l.getComputedStyle&&l.getComputedStyle(r)||r.currentStyle;o<i;o++)a+="@media "+n[o]+" { #mediamatchjs { position: relative; z-index: "+o+" } }";r.styleSheet?r.styleSheet.cssText=a:r.textContent=a,m=n[1*t.zIndex||0],e.removeChild(r),h(),c(s+"resize",p,!1),c(s+"orientationchange",p,!1)}(),function(t){var o=c,e={matches:!1,media:t,addListener:function(t){s[o].listeners||(s[o].listeners=[]),t&&s[o].listeners.push(t)},removeListener:function(t){var e,r=s[o],n=0;if(r)for(e=r.listeners.length;n<e;n++)r.listeners[n]===t&&r.listeners.splice(n,1)}};return""===t?e.matches=!0:(e.matches=f(t),c=s.push({mql:e,listeners:null})),e}}(window))}]);