-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
90 lines (79 loc) · 86.4 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
var wikihub=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var r={};return n.m=t,n.c=r,n.p="/dist",n(0)}([function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return Array.from(t)}function i(t){return p["default"](t.token).contents(t).then(function(t){var n=t.content;return v["default"](n)})}function u(t){var n=p["default"](t.token),r=t.owner+"/"+t.repo;return t=h({},d,t),Promise.all([b(n),S(n,t)]).then(x(r)).then(_(n,t)).then(c(t)).then(s(n,t)).then(A(n,t)).then(a(n,t))}function c(t){return function(n){var r=n.split("/"),e=f(r,2),o=e[0],i=e[1];return h({},t,{owner:o,repo:i,branch:t.forkBranch})}}function s(t,n){return function(r){var e=h({},r,{oldBranch:n.branch,newBranch:r.branch});return t.listBranches(r).then(function(n){return n.includes(r.branch)||t.branch(e)}).then(y(r))}}function a(t,n){return function(r){var e=r.owner+":"+r.branch;return t.listPulls(n).then(function(r){return P(r,e)||t.pullRequest(h({},n,{head:e}))})}}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function t(t,n){var r=[],e=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(e=(u=c.next()).done)&&(r.push(u.value),!n||r.length!==n);e=!0);}catch(s){o=!0,i=s}finally{try{!e&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(n,r){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return t(n,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t};n.load=i,n.save=u,r(1);var l=r(186),p=e(l),g=r(196),v=e(g),d={title:"Wikihub Changes",body:"Automatically generated by wikihub",forkBranch:"wikihub",message:"Wikihub changes..."},y=function(t){return function(){return t}},w=function(t,n){return t.find(function(t){return n.includes(t)})},m=function(t){return t.full_name},E=function(t){return t.map(m)},b=function(t){return t.repos().then(E)},S=function(t,n){return t.forks(n).then(E)},x=function(t){return function(n){var r=f(n,2),e=r[0],i=r[1];return w([t].concat(o(i)),e)}},_=function(t,n){return function(r){return r||t.fork(n).then(m)}},A=function(t,n){return function(n){return t.write(n).then(y(n))}},P=function(t,n){return t.find(function(t){return t.head.label===n})}},function(t,n,r){t.exports=r(2)},function(t,n,r){t.exports=r(3)},function(t,n,r){(function(t){"use strict";if(r(4),r(184),t._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");t._babelPolyfill=!0}).call(n,function(){return this}())},function(t,n,r){r(5),r(34),r(42),r(44),r(46),r(48),r(50),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(68),r(69),r(70),r(71),r(72),r(73),r(74),r(76),r(77),r(78),r(80),r(81),r(82),r(84),r(85),r(86),r(87),r(88),r(89),r(90),r(91),r(92),r(93),r(94),r(95),r(96),r(98),r(104),r(105),r(107),r(108),r(110),r(111),r(116),r(117),r(120),r(122),r(123),r(124),r(125),r(126),r(128),r(129),r(131),r(132),r(133),r(134),r(140),r(143),r(144),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(159),r(160),r(161),r(162),r(163),r(164),r(166),r(167),r(168),r(169),r(171),r(172),r(174),r(175),r(177),r(178),r(179),r(182),r(183),t.exports=r(17)},function(t,n,r){"use strict";var e,o=r(6),i=r(7),u=r(9),c=r(10),s=r(12),a=r(14),f=r(15),h=r(16),l=r(21),p=r(22),g=r(20)("__proto__"),v=r(13),d=r(30),y=r(24),w=r(26),m=r(31),E=r(29),b=r(32),S=r(28),x=r(25),_=r(8),A=Object.prototype,P=[],T=P.slice,I=P.join,R=o.setDesc,O=o.getDesc,M=o.setDescs,L=r(33)(!1),U={};i||(e=!_(function(){return 7!=R(s("div"),"a",{get:function(){return 7}}).a}),o.setDesc=function(t,n,r){if(e)try{return R(t,n,r)}catch(o){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(d(t)[n]=r.value),t},o.getDesc=function(t,n){if(e)try{return O(t,n)}catch(r){}return a(t,n)?u(!A.propertyIsEnumerable.call(t,n),t[n]):void 0},o.setDescs=M=function(t,n){d(t);for(var r,e=o.getKeys(n),i=e.length,u=0;i>u;)o.setDesc(t,r=e[u++],n[r]);return t}),h(h.S+h.F*!i,"Object",{getOwnPropertyDescriptor:o.getDesc,defineProperty:o.setDesc,defineProperties:M});var B="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),D=B.concat("length","prototype"),j=B.length,k=function(){var t,n=s("iframe"),r=j,e=">";for(n.style.display="none",c.appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+e),t.close(),k=t.F;r--;)delete k.prototype[B[r]];return k()},N=function(t,n){return function(r){var e,o=m(r),i=0,u=[];for(e in o)e!=g&&a(o,e)&&u.push(e);for(;n>i;)a(o,e=t[i++])&&(~L(u,e)||u.push(e));return u}},F=function(){};h(h.S,"Object",{getPrototypeOf:o.getProto=o.getProto||function(t){return t=w(t),a(t,g)?t[g]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?A:null},getOwnPropertyNames:o.getNames=o.getNames||N(D,D.length,!0),create:o.create=o.create||function(t,n){var r;return null!==t?(F.prototype=d(t),r=new F,F.prototype=null,r[g]=t):r=k(),void 0===n?r:M(r,n)},keys:o.getKeys=o.getKeys||N(B,j,!1)});var C=function(t,n,r){if(!(n in U)){for(var e=[],o=0;n>o;o++)e[o]="a["+o+"]";U[n]=Function("F,a","return new F("+e.join(",")+")")}return U[n](t,r)};h(h.P,"Function",{bind:function(t){var n=y(this),r=T.call(arguments,1),e=function(){var o=r.concat(T.call(arguments));return this instanceof e?C(n,o.length,o):l(n,o,t)};return v(n.prototype)&&(e.prototype=n.prototype),e}});var G=_(function(){c&&T.call(c)});h(h.P+h.F*G,"Array",{slice:function(t,n){var r=S(this.length),e=f(this);if(n=void 0===n?r:n,"Array"==e)return T.call(this,t,n);for(var o=b(t,r),i=b(n,r),u=S(i-o),c=Array(u),s=0;u>s;s++)c[s]="String"==e?this.charAt(o+s):this[o+s];return c}}),h(h.P+h.F*(x!=Object),"Array",{join:function(){return I.apply(x(this),arguments)}}),h(h.S,"Array",{isArray:function(t){return"Array"==f(t)}});var Y=function(t){return function(n,r){y(n);var e=x(this),o=S(e.length),i=t?o-1:0,u=t?-1:1;if(arguments.length<2)for(;;){if(i in e){r=e[i],i+=u;break}if(i+=u,t?0>i:i>=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?i>=0:o>i;i+=u)i in e&&(r=n(r,e[i],i,this));return r}},H=function(t){return function(n){return t(this,n,arguments[1])}};h(h.P,"Array",{forEach:o.each=o.each||H(p(0)),map:H(p(1)),filter:H(p(2)),some:H(p(3)),every:H(p(4)),reduce:Y(!1),reduceRight:Y(!0),indexOf:H(L),lastIndexOf:function(t,n){var r=m(this),e=S(r.length),o=e-1;for(arguments.length>1&&(o=Math.min(o,E(n))),0>o&&(o=S(e+o));o>=0;o--)if(o in r&&r[o]===t)return o;return-1}}),h(h.S,"Date",{now:function(){return+new Date}});var W=function(t){return t>9?t:"0"+t},q=new Date(-5e13-1),z=!(q.toISOString&&"0385-07-25T07:06:39.999Z"==q.toISOString()&&_(function(){new Date(NaN).toISOString()}));h(h.P+h.F*z,"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=0>n?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+W(t.getUTCMonth()+1)+"-"+W(t.getUTCDate())+"T"+W(t.getUTCHours())+":"+W(t.getUTCMinutes())+":"+W(t.getUTCSeconds())+"."+(r>99?r:"0"+W(r))+"Z"}})},function(t,n){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,n,r){t.exports=!r(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){t.exports=r(11).document&&document.documentElement},function(t,n){var r="undefined",e=t.exports=typeof window!=r&&window.Math==Math?window:typeof self!=r&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,r){var e=r(13),o=r(11).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(11),o=r(17),i=r(18),u=r(19),c="prototype",s=function(t,n){return function(){return t.apply(n,arguments)}},a=function(t,n,r){var f,h,l,p,g=t&a.G,v=t&a.P,d=g?e:t&a.S?e[n]||(e[n]={}):(e[n]||{})[c],y=g?o:o[n]||(o[n]={});g&&(r=n);for(f in r)h=!(t&a.F)&&d&&f in d,l=(h?d:r)[f],p=t&a.B&&h?s(l,e):v&&"function"==typeof l?s(Function.call,l):l,d&&!h&&u(d,f,l),y[f]!=l&&i(y,f,p),v&&((y[c]||(y[c]={}))[f]=l)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,t.exports=a},function(t,n){var r=t.exports={};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(6),o=r(9);t.exports=r(7)?function(t,n,r){return e.setDesc(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(11),o=r(18),i=r(20)("src"),u="toString",c=Function[u],s=(""+c).split(u);r(17).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,u){"function"==typeof r&&(o(r,i,t[n]?""+t[n]:s.join(String(n))),"name"in r||(r.name=n)),t===e?t[n]=r:(u||delete t[n],o(t,n,r))})(Function.prototype,u,function(){return"function"==typeof this&&this[i]||c.call(this)})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(23),o=r(25),i=r(26),u=r(28);t.exports=function(t){var n=1==t,r=2==t,c=3==t,s=4==t,a=6==t,f=5==t||a;return function(h,l,p){for(var g,v,d=i(h),y=o(d),w=e(l,p,3),m=u(y.length),E=0,b=n?Array(m):r?[]:void 0;m>E;E++)if((f||E in y)&&(g=y[E],v=w(g,E,d),t))if(n)b[E]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:b.push(g)}else if(s)return!1;return a?-1:c||s?s:b}}},function(t,n,r){var e=r(24);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(15);t.exports=0 in Object("z")?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(27);t.exports=function(t){return Object(e(t))}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(29),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(13);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){var e=r(25),o=r(27);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(29),o=Math.max,i=Math.min;t.exports=function(t,n){return t=e(t),0>t?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(31),o=r(28),i=r(32);t.exports=function(t){return function(n,r,u){var c,s=e(n),a=o(s.length),f=i(u,a);if(t&&r!=r){for(;a>f;)if(c=s[f++],c!=c)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===r)return t||f;return!t&&-1}}},function(t,n,r){"use strict";var e=r(6),o=r(11),i=r(14),u=r(7),c=r(16),s=r(19),a=r(35),f=r(36),h=r(20),l=r(37),p=r(38),g=r(39),v=r(40),d=r(30),y=r(31),w=r(9),m=e.getDesc,E=e.setDesc,b=e.create,S=g.get,x=o.Symbol,_=!1,A=l("_hidden"),P=e.isEnum,T=a("symbol-registry"),I=a("symbols"),R="function"==typeof x,O=Object.prototype,M=u?function(){try{return b(E({},A,{get:function(){return E(this,A,{value:!1})[A]}}))[A]||E}catch(t){return function(t,n,r){var e=m(O,n);e&&delete O[n],E(t,n,r),e&&t!==O&&E(O,n,e)}}}():E,L=function(t){var n=I[t]=b(x.prototype);return n._k=t,u&&_&&M(O,t,{configurable:!0,set:function(n){i(this,A)&&i(this[A],t)&&(this[A][t]=!1),M(this,t,w(1,n))}}),n},U=function(t,n,r){return r&&i(I,n)?(r.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),r=b(r,{enumerable:w(0,!1)})):(i(t,A)||E(t,A,w(1,{})),t[A][n]=!0),M(t,n,r)):E(t,n,r)},B=function(t,n){d(t);for(var r,e=v(n=y(n)),o=0,i=e.length;i>o;)U(t,r=e[o++],n[r]);return t},D=function(t,n){return void 0===n?b(t):B(b(t),n)},j=function(t){var n=P.call(this,t);return n||!i(this,t)||!i(I,t)||i(this,A)&&this[A][t]?n:!0},k=function(t,n){var r=m(t=y(t),n);return!r||!i(I,n)||i(t,A)&&t[A][n]||(r.enumerable=!0),r},N=function(t){for(var n,r=S(y(t)),e=[],o=0;r.length>o;)i(I,n=r[o++])||n==A||e.push(n);return e},F=function(t){for(var n,r=S(y(t)),e=[],o=0;r.length>o;)i(I,n=r[o++])&&e.push(I[n]);return e};R||(x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor");return L(h(arguments[0]))},s(x.prototype,"toString",function(){return this._k}),e.create=D,e.isEnum=j,e.getDesc=k,e.setDesc=U,e.setDescs=B,e.getNames=g.get=N,e.getSymbols=F,u&&!r(41)&&s(O,"propertyIsEnumerable",j,!0)),(!R||r(8)(function(){return"[null]"!=JSON.stringify([x()])}))&&s(x.prototype,"toJSON",function(){});var C={"for":function(t){return i(T,t+="")?T[t]:T[t]=x(t)},keyFor:function(t){return p(T,t)},useSetter:function(){_=!0},useSimple:function(){_=!1}};e.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var n=l(t);C[t]=R?n:L(n)}),_=!0,c(c.G+c.W,{Symbol:x}),c(c.S,"Symbol",C),c(c.S+c.F*!R,"Object",{create:D,defineProperty:U,defineProperties:B,getOwnPropertyDescriptor:k,getOwnPropertyNames:N,getOwnPropertySymbols:F}),f(x,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,n,r){var e=r(11),o="__core-js_shared__",i=e[o]||(e[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n,r){var e=r(14),o=r(18),i=r(37)("toStringTag");t.exports=function(t,n,r){t&&!e(t=r?t:t.prototype,i)&&o(t,i,n)}},function(t,n,r){var e=r(35)("wks"),o=r(11).Symbol;t.exports=function(t){return e[t]||(e[t]=o&&o[t]||(o||r(20))("Symbol."+t))}},function(t,n,r){var e=r(6),o=r(31);t.exports=function(t,n){for(var r,i=o(t),u=e.getKeys(i),c=u.length,s=0;c>s;)if(i[r=u[s++]]===n)return r}},function(t,n,r){var e={}.toString,o=r(31),i=r(6).getNames,u="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(n){return u.slice()}};t.exports.get=function(t){return u&&"[object Window]"==e.call(t)?c(t):i(o(t))}},function(t,n,r){var e=r(6);t.exports=function(t){var n=e.getKeys(t),r=e.getSymbols;if(r)for(var o,i=r(t),u=e.isEnum,c=0;i.length>c;)u.call(t,o=i[c++])&&n.push(o);return n}},function(t,n){t.exports=!1},function(t,n,r){var e=r(16);e(e.S,"Object",{assign:r(43)})},function(t,n,r){var e=r(26),o=r(25),i=r(40);t.exports=Object.assign||function(t,n){for(var r=e(t),u=arguments.length,c=1;u>c;)for(var s,a=o(arguments[c++]),f=i(a),h=f.length,l=0;h>l;)r[s=f[l++]]=a[s];return r}},function(t,n,r){var e=r(16);e(e.S,"Object",{is:r(45)})},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},function(t,n,r){var e=r(16);e(e.S,"Object",{setPrototypeOf:r(47).set})},function(t,n,r){var e=r(6).getDesc,o=r(13),i=r(30),u=function(t,n){if(i(t),!o(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n){try{n=r(23)(Function.call,e(Object.prototype,"__proto__").set,2),n({},[])}catch(o){t=!0}return function(r,e){return u(r,e),t?r.__proto__=e:n(r,e),r}}():void 0),check:u}},function(t,n,r){"use strict";var e=r(49),o={};o[r(37)("toStringTag")]="z",o+""!="[object z]"&&r(19)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(15),o=r(37)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=(n=Object(t))[o])?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(13);r(51)("freeze",function(t){return function(n){return t&&e(n)?t(n):n}})},function(t,n,r){t.exports=function(t,n){var e=r(16),o=(r(17).Object||{})[t]||Object[t],i={};i[t]=n(o),e(e.S+e.F*r(8)(function(){o(1)}),"Object",i)}},function(t,n,r){var e=r(13);r(51)("seal",function(t){return function(n){return t&&e(n)?t(n):n}})},function(t,n,r){var e=r(13);r(51)("preventExtensions",function(t){return function(n){return t&&e(n)?t(n):n}})},function(t,n,r){var e=r(13);r(51)("isFrozen",function(t){return function(n){return e(n)?t?t(n):!1:!0}})},function(t,n,r){var e=r(13);r(51)("isSealed",function(t){return function(n){return e(n)?t?t(n):!1:!0}})},function(t,n,r){var e=r(13);r(51)("isExtensible",function(t){return function(n){return e(n)?t?t(n):!0:!1}})},function(t,n,r){var e=r(31);r(51)("getOwnPropertyDescriptor",function(t){return function(n,r){return t(e(n),r)}})},function(t,n,r){var e=r(26);r(51)("getPrototypeOf",function(t){return function(n){return t(e(n))}})},function(t,n,r){var e=r(26);r(51)("keys",function(t){return function(n){return t(e(n))}})},function(t,n,r){r(51)("getOwnPropertyNames",function(){return r(39).get})},function(t,n,r){var e=r(6).setDesc,o=r(9),i=r(14),u=Function.prototype,c=/^\s*function ([^ (]*)/,s="name";s in u||r(7)&&e(u,s,{configurable:!0,get:function(){var t=(""+this).match(c),n=t?t[1]:"";return i(this,s)||e(this,s,o(5,n)),n}})},function(t,n,r){"use strict";var e=r(6),o=r(13),i=r(37)("hasInstance"),u=Function.prototype;i in u||e.setDesc(u,i,{value:function(t){if("function"!=typeof this||!o(t))return!1;if(!o(this.prototype))return t instanceof this;for(;t=e.getProto(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){"use strict";var e=r(6),o=r(11),i=r(14),u=r(15),c=r(13),s=r(8),a="Number",f=o[a],h=f,l=f.prototype,p=u(e.create(l))==a,g=function(t){var n,r;if("function"==typeof(n=t.valueOf)&&!c(r=n.call(t)))return r;if("function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;throw TypeError("Can't convert object to number")},v=function(t){if(c(t)&&(t=g(t)),"string"==typeof t&&t.length>2&&48==t.charCodeAt(0)){var n=!1;switch(t.charCodeAt(1)){case 66:case 98:n=!0;case 79:case 111:return parseInt(t.slice(2),n?2:8)}}return+t};f("0o1")&&f("0b1")||(f=function(t){var n=this;return n instanceof f&&(p?s(function(){l.valueOf.call(n)}):u(n)!=a)?new h(v(t)):v(t)},e.each.call(r(7)?e.getNames(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){i(h,t)&&!i(f,t)&&e.setDesc(f,t,e.getDesc(h,t))}),f.prototype=l,l.constructor=f,r(19)(o,a,f))},function(t,n,r){var e=r(16);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(16),o=r(11).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,n,r){var e=r(16);e(e.S,"Number",{isInteger:r(67)})},function(t,n,r){var e=r(13),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,n,r){var e=r(16);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(16),o=r(67),i=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,n,r){var e=r(16);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(16);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(16);e(e.S,"Number",{parseFloat:parseFloat})},function(t,n,r){var e=r(16);e(e.S,"Number",{parseInt:parseInt})},function(t,n,r){var e=r(16),o=r(75),i=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},function(t,n,r){function e(t){return isFinite(t=+t)&&0!=t?0>t?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=r(16);o(o.S,"Math",{asinh:e})},function(t,n,r){var e=r(16);e(e.S,"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(16),o=r(79);e(e.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t,n,r){var e=r(16);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(16),o=Math.exp;e(e.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,r){var e=r(16);e(e.S,"Math",{expm1:r(83)})},function(t,n){t.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}},function(t,n,r){var e=r(16),o=r(79),i=Math.pow,u=i(2,-52),c=i(2,-23),s=i(2,127)*(2-c),a=i(2,-126),f=function(t){return t+1/u-1/u};e(e.S,"Math",{fround:function(t){var n,r,e=Math.abs(t),i=o(t);return a>e?i*f(e/a/c)*a*c:(n=(1+c/u)*e,r=n-(n-e),r>s||r!=r?i*(1/0):i*r)}})},function(t,n,r){var e=r(16),o=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,i=0,u=0,c=arguments.length,s=0;c>u;)r=o(arguments[u++]),r>s?(e=s/r,i=i*e*e+1,s=r):r>0?(e=r/s,i+=e*e):i+=r;return s===1/0?1/0:s*Math.sqrt(i)}})},function(t,n,r){var e=r(16);e(e.S+e.F*r(8)(function(){return-5!=Math.imul(4294967295,5)}),"Math",{imul:function(t,n){var r=65535,e=+t,o=+n,i=r&e,u=r&o;return 0|i*u+((r&e>>>16)*u+i*(r&o>>>16)<<16>>>0)}})},function(t,n,r){var e=r(16);e(e.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,n,r){var e=r(16);e(e.S,"Math",{log1p:r(75)})},function(t,n,r){var e=r(16);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(16);e(e.S,"Math",{sign:r(79)})},function(t,n,r){var e=r(16),o=r(83),i=Math.exp;e(e.S,"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(16),o=r(83),i=Math.exp;e(e.S,"Math",{tanh:function(t){var n=o(t=+t),r=o(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},function(t,n,r){var e=r(16);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(16),o=r(32),i=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(65536>n?i(n):i(((n-=65536)>>10)+55296,n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(16),o=r(31),i=r(28);e(e.S,"String",{raw:function(t){for(var n=o(t.raw),r=i(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),e>c&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){"use strict";r(97)("trim",function(t){return function(){return t(this,3)}})},function(t,n,r){var e=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(f,"")),t},o=r(16),i=r(27),u=" \n\f\r \u2028\u2029\ufeff",c="["+u+"]",s="
",a=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$");t.exports=function(t,n){var i={};i[t]=n(e),o(o.P+o.F*r(8)(function(){return!!u[t]()||s[t]()!=s}),"String",i)}},function(t,n,r){"use strict";var e=r(99)(!0);r(100)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){var e=r(29),o=r(27);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),s=e(r),a=c.length;return 0>s||s>=a?t?"":void 0:(i=c.charCodeAt(s),55296>i||i>56319||s+1===a||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):i:t?c.slice(s,s+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,r){"use strict";var e=r(41),o=r(16),i=r(19),u=r(18),c=r(14),s=r(37)("iterator"),a=r(101),f="@@iterator",h="keys",l="values",p=function(){return this};t.exports=function(t,n,g,v,d,y,w){r(102)(g,n,v);var m,E,b=function(t){switch(t){case h:return function(){return new g(this,t)};case l:return function(){return new g(this,t)}}return function(){return new g(this,t)}},S=n+" Iterator",x=t.prototype,_=x[s]||x[f]||d&&x[d],A=_||b(d);if(_){var P=r(6).getProto(A.call(new t));r(36)(P,S,!0),!e&&c(x,f)&&u(P,s,p)}if((!e||w)&&u(x,s,A),a[n]=A,a[S]=p,d)if(m={keys:y?A:b(h),values:d==l?A:b(l),entries:d!=l?A:b("entries")},w)for(E in m)E in x||i(x,E,m[E]);else o(o.P+o.F*r(103),n,m)}},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(6),o={};r(18)(o,r(37)("iterator"),function(){return this}),t.exports=function(t,n,i){t.prototype=e.create(o,{next:r(9)(1,i)}),r(36)(t,n+" Iterator")}},function(t,n){t.exports="keys"in[]&&!("next"in[].keys())},function(t,n,r){"use strict";var e=r(16),o=r(99)(!1);e(e.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,r){"use strict";var e=r(16),o=r(28),i=r(106);e(e.P+e.F*!r(8)(function(){"q".endsWith(/./)}),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),r=arguments[1],e=o(n.length),u=void 0===r?e:Math.min(o(r),e),c=String(t);return n.slice(u-c.length,u)===c}})},function(t,n,r){var e=r(27),o=r(15);t.exports=function(t,n,r){if("RegExp"==o(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(e(t))}},function(t,n,r){"use strict";var e=r(16),o=r(106);e(e.P,"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments[1])}})},function(t,n,r){var e=r(16);e(e.P,"String",{repeat:r(109)})},function(t,n,r){"use strict";var e=r(29),o=r(27);t.exports=function(t){var n=String(o(this)),r="",i=e(t);if(0>i||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(r+=n);return r}},function(t,n,r){"use strict";var e=r(16),o=r(28),i=r(106);e(e.P+e.F*!r(8)(function(){"q".startsWith(/./)}),"String",{startsWith:function(t){var n=i(this,t,"startsWith"),r=o(Math.min(arguments[1],n.length)),e=String(t);return n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";var e=r(23),o=r(16),i=r(26),u=r(112),c=r(113),s=r(28),a=r(114);o(o.S+o.F*!r(115)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,o,f,h=i(t),l="function"==typeof this?this:Array,p=arguments[1],g=void 0!==p,v=0,d=a(h);if(g&&(p=e(p,arguments[2],2)),void 0==d||l==Array&&c(d))for(r=new l(n=s(h.length));n>v;v++)r[v]=g?p(h[v],v):h[v];else for(f=d.call(h),r=new l;!(o=f.next()).done;v++)r[v]=g?u(f,p,[o.value,v],!0):o.value;return r.length=v,r}})},function(t,n,r){var e=r(30);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(i){var u=t["return"];throw void 0!==u&&e(u.call(t)),i}}},function(t,n,r){var e=r(101),o=r(37)("iterator");t.exports=function(t){return(e.Array||Array.prototype[o])===t}},function(t,n,r){var e=r(49),o=r(37)("iterator"),i=r(101);t.exports=r(17).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[e(t)]:void 0}},function(t,n,r){var e=r(37)("iterator"),o=!1;try{var i=[7][e]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(u){}t.exports=function(t){if(!o)return!1;var n=!1;try{var r=[7],i=r[e]();i.next=function(){n=!0},r[e]=function(){return i},t(r)}catch(u){}return n}},function(t,n,r){"use strict";var e=r(16);e(e.S,"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)r[t]=arguments[t++];return r.length=n,r}})},function(t,n,r){"use strict";var e=r(118),o=r(119),i=r(101),u=r(31);r(100)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,r):"values"==n?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){var e=r(37)("unscopables");e in[]||r(18)(Array.prototype,e,{}),t.exports=function(t){[][e][t]=!0}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){r(121)(Array)},function(t,n,r){"use strict";var e=r(6),o=r(37)("species");t.exports=function(t){!r(7)||o in t||e.setDesc(t,o,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(16),o=r(26),i=r(32),u=r(28);e(e.P,"Array",{copyWithin:function(t,n){var r=o(this),e=u(r.length),c=i(t,e),s=i(n,e),a=arguments[2],f=void 0===a?e:i(a,e),h=Math.min(f-s,e-c),l=1;for(c>s&&s+h>c&&(l=-1,s=s+h-1,c=c+h-1);h-->0;)s in r?r[c]=r[s]:delete r[c],c+=l,s+=l;return r}}),r(118)("copyWithin")},function(t,n,r){"use strict";var e=r(16),o=r(26),i=r(32),u=r(28);e(e.P,"Array",{fill:function(t){for(var n=o(this,!0),r=u(n.length),e=i(arguments[1],r),c=arguments[2],s=void 0===c?r:i(c,r);s>e;)n[e++]=t;return n}}),r(118)("fill")},function(t,n,r){"use strict";var e="find",o=r(16),i=!0,u=r(22)(5);e in[]&&Array(1)[e](function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(t){return u(this,t,arguments[1])}}),r(118)(e)},function(t,n,r){"use strict";var e="findIndex",o=r(16),i=!0,u=r(22)(6);e in[]&&Array(1)[e](function(){i=!1}),o(o.P+o.F*i,"Array",{findIndex:function(t){return u(this,t,arguments[1])}}),r(118)(e)},function(t,n,r){var e=r(6),o=r(11),i=r(15),u=r(127),c=o.RegExp,s=c,a=c.prototype,f=/a/g,h=new c(f)!==f,l=function(){try{return"/a/i"==c(f,"i")}catch(t){}}();r(7)&&(h&&l||(c=function(t,n){var r="RegExp"==i(t),e=void 0===n;return this instanceof c||!r||!e?h?new s(r&&!e?t.source:t,n):new s(r?t.source:t,r&&e?u.call(t):n):t},e.each.call(e.getNames(s),function(t){t in c||e.setDesc(c,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}),a.constructor=c,c.prototype=a,r(19)(o,"RegExp",c))),r(121)(c)},function(t,n,r){"use strict";var e=r(30);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){var e=r(6);r(7)&&"g"!=/./g.flags&&e.setDesc(RegExp.prototype,"flags",{configurable:!0,get:r(127)})},function(t,n,r){r(130)("match",1,function(t,n){return function(r){"use strict";var e=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,e):new RegExp(r)[n](String(e))}})},function(t,n,r){"use strict";t.exports=function(t,n,e){var o=r(27),i=r(37)(t),u=""[t];r(8)(function(){var n={};return n[i]=function(){return 7},7!=""[t](n)})&&(r(19)(String.prototype,t,e(o,i,u)),r(18)(RegExp.prototype,i,2==n?function(t,n){return u.call(t,this,n)}:function(t){return u.call(t,this)}))}},function(t,n,r){r(130)("replace",2,function(t,n,r){return function(e,o){"use strict";var i=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,i,o):r.call(String(i),e,o)}})},function(t,n,r){r(130)("search",1,function(t,n){return function(r){"use strict";var e=t(this),o=void 0==r?void 0:r[n];return void 0!==o?o.call(r,e):new RegExp(r)[n](String(e))}})},function(t,n,r){r(130)("split",2,function(t,n,r){return function(e,o){"use strict";var i=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,i,o):r.call(String(i),e,o)}})},function(t,n,r){"use strict";var e,o=r(6),i=r(41),u=r(11),c=r(23),s=r(49),a=r(16),f=r(13),h=r(30),l=r(24),p=r(135),g=r(136),v=r(47).set,d=r(45),y=r(121),w=r(37)("species"),m=r(20)("record"),E=r(137),b="Promise",S=u.process,x="process"==s(S),_=u[b],A=function(t){var n=new _(function(){});return t&&(n.constructor=Object),_.resolve(n)===n},P=function(){function t(n){var r=new _(n);return v(r,t.prototype),r}var n=!1;try{if(n=_&&_.resolve&&A(),v(t,_),t.prototype=o.create(_.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(n=!1),
n&&r(7)){var e=!1;_.resolve(o.setDesc({},"then",{get:function(){e=!0}})),n=e}}catch(i){n=!1}return n}(),T=function(t){return f(t)&&(P?"Promise"==s(t):m in t)},I=function(t,n){return i&&t===_&&n===e?!0:d(t,n)},R=function(t){var n=h(t)[w];return void 0!=n?n:t},O=function(t){var n;return f(t)&&"function"==typeof(n=t.then)?n:!1},M=function(t,n){if(!t.n){t.n=!0;var r=t.c;E(function(){for(var e=t.v,o=1==t.s,i=0,c=function(n){var r,i,u=o?n.ok:n.fail;try{u?(o||(t.h=!0),r=u===!0?e:u(e),r===n.P?n.rej(TypeError("Promise-chain cycle")):(i=O(r))?i.call(r,n.res,n.rej):n.res(r)):n.rej(e)}catch(c){n.rej(c)}};r.length>i;)c(r[i++]);r.length=0,t.n=!1,n&&setTimeout(function(){E(function(){L(t.p)&&(x?S.emit("unhandledRejection",e,t.p):u.console&&console.error&&console.error("Unhandled promise rejection",e)),t.a=void 0})},1)})}},L=function(t){var n,r=t[m],e=r.a||r.c,o=0;if(r.h)return!1;for(;e.length>o;)if(n=e[o++],n.fail||!L(n.P))return!1;return!0},U=function(t){var n=this;n.d||(n.d=!0,n=n.r||n,n.v=t,n.s=2,n.a=n.c.slice(),M(n,!0))},B=function(t){var n,r=this;if(!r.d){r.d=!0,r=r.r||r;try{(n=O(t))?E(function(){var e={r:r,d:!1};try{n.call(t,c(B,e,1),c(U,e,1))}catch(o){U.call(e,o)}}):(r.v=t,r.s=1,M(r,!1))}catch(e){U.call({r:r,d:!1},e)}}};P||(_=function(t){l(t);var n={p:p(this,_,b),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};this[m]=n;try{t(c(B,n,1),c(U,n,1))}catch(r){U.call(n,r)}},r(139)(_.prototype,{then:function(t,n){var r=h(h(this).constructor)[w],e={ok:"function"==typeof t?t:!0,fail:"function"==typeof n?n:!1},o=e.P=new(void 0!=r?r:_)(function(t,n){e.res=l(t),e.rej=l(n)}),i=this[m];return i.c.push(e),i.a&&i.a.push(e),i.s&&M(i,!1),o},"catch":function(t){return this.then(void 0,t)}})),a(a.G+a.W+a.F*!P,{Promise:_}),r(36)(_,b),y(_),y(e=r(17)[b]),a(a.S+a.F*!P,b,{reject:function(t){return new this(function(n,r){r(t)})}}),a(a.S+a.F*(!P||A(!0)),b,{resolve:function(t){return T(t)&&I(t.constructor,this)?t:new this(function(n){n(t)})}}),a(a.S+a.F*!(P&&r(115)(function(t){_.all(t)["catch"](function(){})})),b,{all:function(t){var n=R(this),r=[];return new n(function(e,i){g(t,!1,r.push,r);var u=r.length,c=Array(u);u?o.each.call(r,function(t,r){n.resolve(t).then(function(t){c[r]=t,--u||e(c)},i)}):e(c)})},race:function(t){var n=R(this);return new n(function(r,e){g(t,!1,function(t){n.resolve(t).then(r,e)})})}})},function(t,n){t.exports=function(t,n,r){if(!(t instanceof n))throw TypeError(r+": use the 'new' operator!");return t}},function(t,n,r){var e=r(23),o=r(112),i=r(113),u=r(30),c=r(28),s=r(114);t.exports=function(t,n,r,a){var f,h,l,p=s(t),g=e(r,a,n?2:1),v=0;if("function"!=typeof p)throw TypeError(t+" is not iterable!");if(i(p))for(f=c(t.length);f>v;v++)n?g(u(h=t[v])[0],h[1]):g(t[v]);else for(l=p.call(t);!(h=l.next()).done;)o(l,g,h.value,n)}},function(t,n,r){var e,o,i,u=r(11),c=r(138).set,s=u.MutationObserver||u.WebKitMutationObserver,a=u.process,f="process"==r(15)(a),h=function(){var t,n;for(f&&(t=a.domain)&&(a.domain=null,t.exit());e;)n=e.domain,n&&n.enter(),e.fn.call(),n&&n.exit(),e=e.next;o=void 0,t&&t.enter()};if(f)i=function(){a.nextTick(h)};else if(s){var l=1,p=document.createTextNode("");new s(h).observe(p,{characterData:!0}),i=function(){p.data=l=-l}}else i=function(){c.call(u,h)};t.exports=function(t){var n={fn:t,next:void 0,domain:f&&a.domain};o&&(o.next=n),e||(e=n,i()),o=n}},function(t,n,r){"use strict";var e,o,i,u=r(23),c=r(21),s=r(10),a=r(12),f=r(11),h=f.process,l=f.setImmediate,p=f.clearImmediate,g=f.MessageChannel,v=0,d={},y="onreadystatechange",w=function(){var t=+this;if(d.hasOwnProperty(t)){var n=d[t];delete d[t],n()}},m=function(t){w.call(t.data)};l&&p||(l=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return d[++v]=function(){c("function"==typeof t?t:Function(t),n)},e(v),v},p=function(t){delete d[t]},"process"==r(15)(h)?e=function(t){h.nextTick(u(w,t,1))}:g?(o=new g,i=o.port2,o.port1.onmessage=m,e=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScript?(e=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):e=y in a("script")?function(t){s.appendChild(a("script"))[y]=function(){s.removeChild(this),w.call(t)}}:function(t){setTimeout(u(w,t,1),0)}),t.exports={set:l,clear:p}},function(t,n,r){var e=r(19);t.exports=function(t,n){for(var r in n)e(t,r,n[r]);return t}},function(t,n,r){"use strict";var e=r(141);r(142)("Map",function(t){return function(){return t(this,arguments[0])}},{get:function(t){var n=e.getEntry(this,t);return n&&n.v},set:function(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(6),o=r(18),i=r(23),u=r(121),c=r(135),s=r(27),a=r(136),f=r(119),h=r(20)("id"),l=r(14),p=r(13),g=Object.isExtensible||p,v=r(7),d=v?"_s":"size",y=0,w=function(t,n){if(!p(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!l(t,h)){if(!g(t))return"F";if(!n)return"E";o(t,h,++y)}return"O"+t[h]},m=function(t,n){var r,e=w(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,o,u){var f=t(function(t,r){c(t,f,n),t._i=e.create(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=r&&a(r,o,t[u],t)});return r(139)(f.prototype,{clear:function(){for(var t=this,n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},"delete":function(t){var n=this,r=m(n,t);if(r){var e=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=e),e&&(e.p=o),n._f==r&&(n._f=e),n._l==r&&(n._l=o),n[d]--}return!!r},forEach:function(t){for(var n,r=i(t,arguments[1],3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(this,t)}}),v&&e.setDesc(f.prototype,"size",{get:function(){return s(this[d])}}),f},def:function(t,n,r){var e,o,i=m(t,n);return i?i.v=r:(t._l=i={i:o=w(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=i),e&&(e.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:m,setStrong:function(t,n,e){r(100)(t,n,function(t,n){this._t=t,this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?f(0,r.k):"values"==n?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},e?"entries":"values",!e,!0),u(t),u(r(17)[n])}}},function(t,n,r){"use strict";var e=r(11),o=r(16),i=r(103),u=r(136),c=r(135);t.exports=function(t,n,s,a,f,h){var l=e[t],p=l,g=f?"set":"add",v=p&&p.prototype,d={},y=function(t){var n=v[t];r(19)(v,t,"delete"==t?function(t){return n.call(this,0===t?0:t)}:"has"==t?function(t){return n.call(this,0===t?0:t)}:"get"==t?function(t){return n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof p&&(h||!i&&v.forEach&&v.entries)){var w,m=new p,E=m[g](h?{}:-0,1);r(115)(function(t){new p(t)})||(p=n(function(n,r){c(n,p,t);var e=new l;return void 0!=r&&u(r,f,e[g],e),e}),p.prototype=v,v.constructor=p),h||m.forEach(function(t,n){w=1/n===-(1/0)}),w&&(y("delete"),y("has"),f&&y("get")),(w||E!==m)&&y(g),h&&v.clear&&delete v.clear}else p=a.getConstructor(n,t,f,g),r(139)(p.prototype,s);return r(36)(p,t),d[t]=p,o(o.G+o.W+o.F*(p!=l),d),h||a.setStrong(p,t,f),p}},function(t,n,r){"use strict";var e=r(141);r(142)("Set",function(t){return function(){return t(this,arguments[0])}},{add:function(t){return e.def(this,t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e=r(6),o=r(145),i=r(13),u=r(14),c=o.frozenStore,s=o.WEAK,a=Object.isExtensible||i,f={},h=r(142)("WeakMap",function(t){return function(){return t(this,arguments[0])}},{get:function(t){if(i(t)){if(!a(t))return c(this).get(t);if(u(t,s))return t[s][this._i]}},set:function(t,n){return o.def(this,t,n)}},o,!0,!0);7!=(new h).set((Object.freeze||Object)(f),7).get(f)&&e.each.call(["delete","has","get","set"],function(t){var n=h.prototype,e=n[t];r(19)(n,t,function(n,r){if(i(n)&&!a(n)){var o=c(this)[t](n,r);return"set"==t?this:o}return e.call(this,n,r)})})},function(t,n,r){"use strict";var e=r(18),o=r(30),i=r(135),u=r(136),c=r(22),s=r(20)("weak"),a=r(13),f=r(14),h=Object.isExtensible||a,l=c(5),p=c(6),g=0,v=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},y=function(t,n){return l(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=y(this,t);return n?n[1]:void 0},has:function(t){return!!y(this,t)},set:function(t,n){var r=y(this,t);r?r[1]=n:this.a.push([t,n])},"delete":function(t){var n=p(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,o){var c=t(function(t,r){i(t,c,n),t._i=g++,t._l=void 0,void 0!=r&&u(r,e,t[o],t)});return r(139)(c.prototype,{"delete":function(t){return a(t)?h(t)?f(t,s)&&f(t[s],this._i)&&delete t[s][this._i]:v(this)["delete"](t):!1},has:function(t){return a(t)?h(t)?f(t,s)&&f(t[s],this._i):v(this).has(t):!1}}),c},def:function(t,n,r){return h(o(n))?(f(n,s)||e(n,s,{}),n[s][t._i]=r):v(t).set(n,r),t},frozenStore:v,WEAK:s}},function(t,n,r){"use strict";var e=r(145);r(142)("WeakSet",function(t){return function(){return t(this,arguments[0])}},{add:function(t){return e.def(this,t,!0)}},e,!1,!0)},function(t,n,r){var e=r(16),o=Function.apply;e(e.S,"Reflect",{apply:function(t,n,r){return o.call(t,n,r)}})},function(t,n,r){var e=r(6),o=r(16),i=r(24),u=r(30),c=r(13),s=Function.bind||r(17).Function.prototype.bind;o(o.S+o.F*r(8)(function(){function t(){}return!(Reflect.construct(function(){},[],t)instanceof t)}),"Reflect",{construct:function(t,n){if(i(t),arguments.length<3){if(void 0!=n)switch(u(n).length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(s.apply(t,r))}var o=i(arguments[2]).prototype,a=e.create(c(o)?o:Object.prototype),f=Function.apply.call(t,a,n);return c(f)?f:a}})},function(t,n,r){var e=r(6),o=r(16),i=r(30);o(o.S+o.F*r(8)(function(){Reflect.defineProperty(e.setDesc({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){i(t);try{return e.setDesc(t,n,r),!0}catch(o){return!1}}})},function(t,n,r){var e=r(16),o=r(6).getDesc,i=r(30);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=o(i(t),n);return r&&!r.configurable?!1:delete t[n]}})},function(t,n,r){"use strict";var e=r(16),o=r(30),i=function(t){this._t=o(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};r(102)(i,"Object",function(){var t,n=this,r=n._k;do if(n._i>=r.length)return{value:void 0,done:!0};while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,r){function e(t,n){var r,u,a=arguments.length<3?t:arguments[2];return s(t)===a?t[n]:(r=o.getDesc(t,n))?i(r,"value")?r.value:void 0!==r.get?r.get.call(a):void 0:c(u=o.getProto(t))?e(u,n,a):void 0}var o=r(6),i=r(14),u=r(16),c=r(13),s=r(30);u(u.S,"Reflect",{get:e})},function(t,n,r){var e=r(6),o=r(16),i=r(30);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.getDesc(i(t),n)}})},function(t,n,r){var e=r(16),o=r(6).getProto,i=r(30);e(e.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,r){var e=r(16);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(16),o=r(30),i=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return o(t),i?i(t):!0}})},function(t,n,r){var e=r(16);e(e.S,"Reflect",{ownKeys:r(158)})},function(t,n,r){var e=r(6),o=r(30),i=r(11).Reflect;t.exports=i&&i.ownKeys||function(t){var n=e.getNames(o(t)),r=e.getSymbols;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(16),o=r(30),i=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(n){return!1}}})},function(t,n,r){function e(t,n,r){var u,f,h=arguments.length<4?t:arguments[3],l=o.getDesc(s(t),n);if(!l){if(a(f=o.getProto(t)))return e(f,n,r,h);l=c(0)}return i(l,"value")?l.writable!==!1&&a(h)?(u=o.getDesc(h,n)||c(0),u.value=r,o.setDesc(h,n,u),!0):!1:void 0===l.set?!1:(l.set.call(h,r),!0)}var o=r(6),i=r(14),u=r(16),c=r(9),s=r(30),a=r(13);u(u.S,"Reflect",{set:e})},function(t,n,r){var e=r(16),o=r(47);o&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(r){return!1}}})},function(t,n,r){"use strict";var e=r(16),o=r(33)(!0);e(e.P,"Array",{includes:function(t){return o(this,t,arguments[1])}}),r(118)("includes")},function(t,n,r){"use strict";var e=r(16),o=r(99)(!0);e(e.P,"String",{at:function(t){return o(this,t)}})},function(t,n,r){"use strict";var e=r(16),o=r(165);e(e.P,"String",{padLeft:function(t){return o(this,t,arguments[1],!0)}})},function(t,n,r){var e=r(28),o=r(109),i=r(27);t.exports=function(t,n,r,u){var c=String(i(t)),s=c.length,a=void 0===r?" ":String(r),f=e(n);if(s>=f)return c;""==a&&(a=" ");var h=f-s,l=o.call(a,Math.ceil(h/a.length));return l.length>h&&(l=u?l.slice(l.length-h):l.slice(0,h)),u?l+c:c+l}},function(t,n,r){"use strict";var e=r(16),o=r(165);e(e.P,"String",{padRight:function(t){return o(this,t,arguments[1],!1)}})},function(t,n,r){"use strict";r(97)("trimLeft",function(t){return function(){return t(this,1)}})},function(t,n,r){"use strict";r(97)("trimRight",function(t){return function(){return t(this,2)}})},function(t,n,r){var e=r(16),o=r(170)(/[\\^$*+?.()|[\]{}]/g,"\\$&");e(e.S,"RegExp",{escape:function(t){return o(t)}})},function(t,n){t.exports=function(t,n){var r=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,r)}}},function(t,n,r){var e=r(6),o=r(16),i=r(158),u=r(31),c=r(9);o(o.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,o=u(t),s=e.setDesc,a=e.getDesc,f=i(o),h={},l=0;f.length>l;)r=a(o,n=f[l++]),n in h?s(h,n,c(0,r)):h[n]=r;return h}})},function(t,n,r){var e=r(16),o=r(173)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n,r){var e=r(6),o=r(31);t.exports=function(t){return function(n){var r,i=o(n),u=e.getKeys(i),c=u.length,s=0,a=Array(c);if(t)for(;c>s;)a[s]=[r=u[s++],i[r]];else for(;c>s;)a[s]=i[u[s++]];return a}}},function(t,n,r){var e=r(16),o=r(173)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){var e=r(16);e(e.P,"Map",{toJSON:r(176)("Map")})},function(t,n,r){var e=r(136),o=r(49);t.exports=function(t){return function(){if(o(this)!=t)throw TypeError(t+"#toJSON isn't generic");var n=[];return e(this,!1,n.push,n),n}}},function(t,n,r){var e=r(16);e(e.P,"Set",{toJSON:r(176)("Set")})},function(t,n,r){var e=r(6),o=r(16),i=r(17).Array||Array,u={},c=function(t,n){e.each.call(t.split(","),function(t){void 0==n&&t in i?u[t]=i[t]:t in[]&&(u[t]=r(23)(Function.call,[][t],n))})};c("pop,reverse,shift,keys,values,entries",1),c("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),c("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),o(o.S,"Array",u)},function(t,n,r){var e=r(11),o=r(16),i=r(21),u=r(180),c=e.navigator,s=!!c&&/MSIE .\./.test(c.userAgent),a=function(t){return s?function(n,r){return t(i(u,[].slice.call(arguments,2),"function"==typeof n?n:Function(n)),r)}:t};o(o.G+o.B+o.F*s,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},function(t,n,r){"use strict";var e=r(181),o=r(21),i=r(24);t.exports=function(){for(var t=i(this),n=arguments.length,r=Array(n),u=0,c=e._,s=!1;n>u;)(r[u]=arguments[u++])===c&&(s=!0);return function(){var e,i=this,u=arguments.length,a=0,f=0;if(!s&&!u)return o(t,r,i);if(e=r.slice(),s)for(;n>a;a++)e[a]===c&&(e[a]=arguments[f++]);for(;u>f;)e.push(arguments[f++]);return o(t,e,i)}}},function(t,n,r){t.exports=r(11)},function(t,n,r){var e=r(16),o=r(138);e(e.G+e.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,n,r){r(117);var e=r(11),o=r(18),i=r(101),u=r(37)("iterator"),c=e.NodeList,s=e.HTMLCollection,a=c&&c.prototype,f=s&&s.prototype,h=i.NodeList=i.HTMLCollection=i.Array;!c||u in a||o(a,u,h),!s||u in f||o(f,u,h)},function(t,n,r){(function(n,r){!function(n){"use strict";function e(t,n,r,e){var o=Object.create((n||i).prototype);return o._invoke=h(t,r||null,new g(e||[])),o}function o(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function u(){}function c(){}function s(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function a(t){this.arg=t}function f(t){function n(n,r){var e=t[n](r),o=e.value;return o instanceof a?Promise.resolve(o.arg).then(i,u):Promise.resolve(o).then(function(t){return e.value=t,e})}function e(t,r){var e=o?o.then(function(){return n(t,r)}):new Promise(function(e){e(n(t,r))});return o=e["catch"](function(t){}),e}"object"==typeof r&&r.domain&&(n=r.domain.bind(n));var o,i=n.bind(t,"next"),u=n.bind(t,"throw");n.bind(t,"return");this._invoke=e}function h(t,n,r){var e=S;return function(i,u){if(e===_)throw new Error("Generator is already running");if(e===A){if("throw"===i)throw u;return d()}for(;;){var c=r.delegate;if(c){if("return"===i||"throw"===i&&c.iterator[i]===y){r.delegate=null;var s=c.iterator["return"];if(s){var a=o(s,c.iterator,u);if("throw"===a.type){i="throw",u=a.arg;continue}}if("return"===i)continue}var a=o(c.iterator[i],c.iterator,u);if("throw"===a.type){r.delegate=null,i="throw",u=a.arg;continue}i="next",u=y;var f=a.arg;if(!f.done)return e=x,f;r[c.resultName]=f.value,r.next=c.nextLoc,r.delegate=null}if("next"===i)e===x?r.sent=u:r.sent=y;else if("throw"===i){if(e===S)throw e=A,u;r.dispatchException(u)&&(i="next",u=y)}else"return"===i&&r.abrupt("return",u);e=_;var a=o(t,n,r);if("normal"===a.type){e=r.done?A:x;var f={value:a.arg,done:r.done};if(a.arg!==P)return f;r.delegate&&"next"===i&&(u=y)}else"throw"===a.type&&(e=A,i="throw",u=a.arg)}}}function l(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function p(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function g(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function v(t){if(t){var n=t[m];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function o(){for(;++r<t.length;)if(w.call(t,r))return o.value=t[r],o.done=!1,o;return o.value=y,o.done=!0,o};return e.next=e}}return{next:d}}function d(){return{value:y,done:!0}}var y,w=Object.prototype.hasOwnProperty,m="function"==typeof Symbol&&Symbol.iterator||"@@iterator",E="object"==typeof t,b=n.regeneratorRuntime;if(b)return void(E&&(t.exports=b));b=n.regeneratorRuntime=E?t.exports:{},b.wrap=e;var S="suspendedStart",x="suspendedYield",_="executing",A="completed",P={},T=c.prototype=i.prototype;u.prototype=T.constructor=c,c.constructor=u,u.displayName="GeneratorFunction",b.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return n?n===u||"GeneratorFunction"===(n.displayName||n.name):!1},b.mark=function(t){return t.__proto__=c,t.prototype=Object.create(T),t},b.awrap=function(t){return new a(t)},s(f.prototype),b.async=function(t,n,r,o){var i=new f(e(t,n,r,o));return b.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},s(T),T[m]=function(){return this},T.toString=function(){return"[object Generator]"},b.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},b.values=v,g.prototype={constructor:g,reset:function(t){if(this.prev=0,this.next=0,this.sent=y,this.done=!1,this.delegate=null,this.tryEntries.forEach(p),!t)for(var n in this)"t"===n.charAt(0)&&w.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],n=t.completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(t){function n(n,e){return i.type="throw",i.arg=t,r.next=n,!!e}if(this.done)throw t;for(var r=this,e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=w.call(o,"catchLoc"),c=w.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&w.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var o=e;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=n,o?this.next=o.finallyLoc:this.complete(i),P},complete:function(t,n){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&n&&(this.next=n)},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),p(r),P}},"catch":function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;p(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:v(t),resultName:n,nextLoc:r},P}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this)}).call(n,function(){return this}(),r(185))},function(t,n){function r(){a=!1,u.length?s=u.concat(s):f=-1,s.length&&e()}function e(){if(!a){var t=setTimeout(r);a=!0;for(var n=s.length;n;){for(u=s,s=[];++f<n;)u[f].run();f=-1,n=s.length}u=null,a=!1,clearTimeout(t)}}function o(t,n){this.fun=t,this.array=n}function i(){}var u,c=t.exports={},s=[],a=!1,f=-1;c.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];s.push(new o(t,n)),1!==s.length||a||setTimeout(e,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=i,c.addListener=i,c.once=i,c.off=i,c.removeListener=i,c.removeAllListeners=i,c.emit=i,c.binding=function(t){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(t){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function o(t){var n=arguments.length<=1||void 0===arguments[1]?u["default"]:arguments[1],r=new n({token:t,auth:"OAUTH_TOKEN"});return{contents:s["default"](function(t,n){var e=t.owner,o=t.repo,i=t.branch,u=t.path;r.getRepo(e,o).contents(i,u,n)}),branch:s["default"](function(t,n){var e=t.owner,o=t.repo,i=t.oldBranch,u=t.newBranch;r.getRepo(e,o).branch(i,u,n)}),fork:s["default"](function(t,n){var e=t.owner,o=t.repo;r.getRepo(e,o).fork(n)}),forks:s["default"](function(t,n){var e=t.owner,o=t.repo;r.getRepo(e,o).listForks(n)}),listBranches:s["default"](function(t,n){var e=t.owner,o=t.repo;r.getRepo(e,o).listBranches(n)}),listPulls:s["default"](function(t,n){var e=t.owner,o=t.repo;r.getRepo(e,o).listPulls("open",n)}),repos:s["default"](r.getUser().repos),pullRequest:s["default"](function(t,n){var e=t.owner,o=t.repo,i=t.branch,u=(t.message,t.head),c=t.title,s=t.body,a={base:i,head:u,title:c,body:s};r.getRepo(e,o).createPullRequest(a,n)}),write:s["default"](function(t,n){var e=t.owner,o=t.repo,i=t.branch,u=t.path,c=t.text,s=t.message;r.getRepo(e,o).write(i,u,c,s,n)})}}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=o;var i=r(187),u=e(i),c=r(194),s=e(c);t.exports=n["default"]},function(t,n,r){/*!
* @overview Github.js
*
* @copyright (c) 2013 Michael Aufreiter, Development Seed
* Github.js is freely distributable.
*
* @license Licensed under MIT license
*
* For all details and documentation:
* http://substance.io/michael/github
*/
(function(){"use strict";var n,e;n=r(188).XMLHttpRequest,"undefined"==typeof e&&(e=r(189)),"undefined"!=typeof window&&"undefined"!=typeof window.XMLHttpRequest&&(n=window.XMLHttpRequest);var o=function(t){function r(r,o,i,c,s,a){function f(){var t=o.indexOf("//")>=0?o:u+o;return t+=/\?/.test(t)?"&":"?",i&&"object"==typeof i&&["GET","HEAD"].indexOf(r)>-1&&(t+="&"+Object.keys(i).map(function(t){return t+"="+i[t]}).join("&")),t+"&"+(new Date).getTime()}var h=new n;if(h.open(r,f(),!a),a||(h.onreadystatechange=function(){4===this.readyState&&(this.status>=200&&this.status<300||304===this.status?c(null,s?this.responseText:this.responseText?JSON.parse(this.responseText):!0,this):c({path:o,request:this,error:this.status}))}),s?h.setRequestHeader("Accept","application/vnd.github.v3.raw+json"):(h.dataType="json",h.setRequestHeader("Accept","application/vnd.github.v3+json")),h.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.token||t.username&&t.password){var l=t.token?"token "+t.token:"Basic "+e(t.username+":"+t.password);h.setRequestHeader("Authorization",l)}return i?h.send(JSON.stringify(i)):h.send(),a?h.response:void 0}function i(t,n){var e=[];!function o(){r("GET",t,null,function(r,i,u){if(r)return n(r);e.push.apply(e,i);var c=(u.getResponseHeader("link")||"").split(/\s*,\s*/g),s=null;c.forEach(function(t){s=/rel="next"/.test(t)?t:s}),s&&(s=(/<(.*)>/.exec(s)||[])[1]),s?(t=s,o()):n(r,e)})}()}var u=t.apiUrl||"https://api.github.com";o.User=function(){this.repos=function(t){i("/user/repos?type=all&per_page=1000&sort=updated",function(n,r){t(n,r)})},this.orgs=function(t){r("GET","/user/orgs",null,function(n,r){t(n,r)})},this.gists=function(t){r("GET","/gists",null,function(n,r){t(n,r)})},this.notifications=function(t){r("GET","/notifications",null,function(n,r){t(n,r)})},this.show=function(t,n){var e=t?"/users/"+t:"/user";r("GET",e,null,function(t,r){n(t,r)})},this.userRepos=function(t,n){i("/users/"+t+"/repos?type=all&per_page=1000&sort=updated",function(t,r){n(t,r)})},this.userGists=function(t,n){r("GET","/users/"+t+"/gists",null,function(t,r){n(t,r)})},this.orgRepos=function(t,n){i("/orgs/"+t+"/repos?type=all&&page_num=1000&sort=updated&direction=desc",function(t,r){n(t,r)})},this.follow=function(t,n){r("PUT","/user/following/"+t,null,function(t,r){n(t,r)})},this.unfollow=function(t,n){r("DELETE","/user/following/"+t,null,function(t,r){n(t,r)})},this.createRepo=function(t,n){r("POST","/user/repos",t,n)}},o.Repository=function(t){function n(t,n){return t===a.branch&&a.sha?n(null,a.sha):void c.getRef("heads/"+t,function(r,e){a.branch=t,a.sha=e,n(r,e)})}var i=t.name,u=t.user,c=this,s="/repos/"+u+"/"+i,a={branch:null,sha:null};this.deleteRepo=function(n){r("DELETE",s,t,n)},this.getRef=function(t,n){r("GET",s+"/git/refs/"+t,null,function(t,r){return t?n(t):void n(null,r.object.sha)})},this.createRef=function(t,n){r("POST",s+"/git/refs",t,n)},this.deleteRef=function(n,e){r("DELETE",s+"/git/refs/"+n,t,e)},this.createRepo=function(t,n){r("POST","/user/repos",t,n)},this.deleteRepo=function(n){r("DELETE",s,t,n)},this.listTags=function(t){r("GET",s+"/tags",null,function(n,r){return n?t(n):void t(null,r)})},this.listPulls=function(t,n){r("GET",s+"/pulls"+(t?"?state="+t:""),null,function(t,r){return t?n(t):void n(null,r)})},this.getPull=function(t,n){r("GET",s+"/pulls/"+t,null,function(t,r){return t?n(t):void n(null,r)})},this.compare=function(t,n,e){r("GET",s+"/compare/"+t+"..."+n,null,function(t,n){return t?e(t):void e(null,n)})},this.listBranches=function(t){r("GET",s+"/git/refs/heads",null,function(n,r){return n?t(n):void t(null,r.map(function(t){var n=t.ref.split("/");return n[n.length-1]}))})},this.getBlob=function(t,n){r("GET",s+"/git/blobs/"+t,null,n,"raw")},this.getCommit=function(t,n,e){r("GET",s+"/git/commits/"+n,null,function(t,n){return t?e(t):void e(null,n)})},this.getSha=function(t,n,e){return n&&""!==n?void r("GET",s+"/contents/"+n+(t?"?ref="+t:""),null,function(t,n){return t?e(t):void e(null,n.sha)}):c.getRef("heads/"+t,e)},this.getTree=function(t,n){r("GET",s+"/git/trees/"+t,null,function(t,r){return t?n(t):void n(null,r.tree)})},this.postBlob=function(t,n){t="string"==typeof t?{content:t,encoding:"utf-8"}:{content:e(String.fromCharCode.apply(null,new Uint8Array(t))),encoding:"base64"},r("POST",s+"/git/blobs",t,function(t,r){return t?n(t):void n(null,r.sha)})},this.updateTree=function(t,n,e,o){var i={base_tree:t,tree:[{path:n,mode:"100644",type:"blob",sha:e}]};r("POST",s+"/git/trees",i,function(t,n){return t?o(t):void o(null,n.sha)})},this.postTree=function(t,n){r("POST",s+"/git/trees",{tree:t},function(t,r){return t?n(t):void n(null,r.sha)})},this.commit=function(n,e,i,u){var c=new o.User;c.show(null,function(o,c){if(o)return u(o);var f={message:i,author:{name:t.user,email:c.email},parents:[n],tree:e};r("POST",s+"/git/commits",f,function(t,n){return t?u(t):(a.sha=n.sha,void u(null,n.sha))})})},this.updateHead=function(t,n,e){r("PATCH",s+"/git/refs/heads/"+t,{sha:n},function(t){e(t)})},this.show=function(t){r("GET",s,null,t)},this.contributors=function(t,n){n=n||1e3;var e=this;r("GET",s+"/stats/contributors",null,function(r,o,i){return r?t(r):void(202===i.status?setTimeout(function(){e.contributors(t,n)},n):t(r,o))})},this.contents=function(t,n,e){n=encodeURI(n),r("GET",s+"/contents"+(n?"/"+n:""),{ref:t},e)},this.fork=function(t){r("POST",s+"/forks",null,t)},this.listForks=function(t){r("GET",s+"/forks",null,t)},this.branch=function(t,n,r){2===arguments.length&&"function"==typeof arguments[1]&&(r=n,n=t,t="master"),this.getRef("heads/"+t,function(t,e){return t&&r?r(t):void c.createRef({ref:"refs/heads/"+n,sha:e},r)})},this.createPullRequest=function(t,n){r("POST",s+"/pulls",t,n)},this.listHooks=function(t){r("GET",s+"/hooks",null,t)},this.getHook=function(t,n){r("GET",s+"/hooks/"+t,null,n)},this.createHook=function(t,n){r("POST",s+"/hooks",t,n)},this.editHook=function(t,n,e){r("PATCH",s+"/hooks/"+t,n,e)},this.deleteHook=function(t,n){r("DELETE",s+"/hooks/"+t,null,n)},this.read=function(t,n,e){r("GET",s+"/contents/"+encodeURI(n)+(t?"?ref="+t:""),null,function(t,n){return t&&404===t.error?e("not found",null,null):t?e(t):void e(null,n)},!0)},this.remove=function(t,n,e){c.getSha(t,n,function(o,i){return o?e(o):void r("DELETE",s+"/contents/"+n,{message:n+" is removed",sha:i,branch:t},e)})},this["delete"]=function(t,n,e){c.getSha(t,n,function(o,i){if(!i)return e("not found",null);var u=s+"/contents/"+n,c={message:"Deleted "+n,sha:i};u+="?message="+encodeURIComponent(c.message),u+="&sha="+encodeURIComponent(c.sha),u+="&branch="+encodeURIComponent(t),r("DELETE",u,null,e)})},this.move=function(t,r,e,o){n(t,function(n,i){c.getTree(i+"?recursive=true",function(n,u){u=u.filter(function(t){return t.path===r&&(t.path=e),"tree"!==t.type}),c.postTree(u,function(n,e){c.commit(i,e,"Deleted "+r,function(n,r){c.updateHead(t,r,function(t){o(t)})})})})})},this.write=function(t,n,o,i,u){c.getSha(t,encodeURI(n),function(c,a){return c&&404!==c.error?u(c):void r("PUT",s+"/contents/"+encodeURI(n),{message:i,content:e(o),branch:t,sha:a},u)})},this.getCommits=function(t,n){t=t||{};var e=s+"/commits",o=[];if(t.sha&&o.push("sha="+encodeURIComponent(t.sha)),t.path&&o.push("path="+encodeURIComponent(t.path)),t.since){var i=t.since;i.constructor===Date&&(i=i.toISOString()),o.push("since="+encodeURIComponent(i))}if(t.until){var u=t.until;u.constructor===Date&&(u=u.toISOString()),o.push("until="+encodeURIComponent(u))}t.page&&o.push("page="+t.page),t.perpage&&o.push("per_page="+t.perpage),o.length>0&&(e+="?"+o.join("&")),r("GET",e,null,n)}},o.Gist=function(t){var n=t.id,e="/gists/"+n;this.read=function(t){r("GET",e,null,function(n,r){t(n,r)})},this.create=function(t,n){r("POST","/gists",t,n)},this["delete"]=function(t){r("DELETE",e,null,function(n,r){t(n,r)})},this.fork=function(t){r("POST",e+"/fork",null,function(n,r){t(n,r)})},this.update=function(t,n){r("PATCH",e,t,function(t,r){n(t,r)})},this.star=function(t){r("PUT",e+"/star",null,function(n,r){t(n,r)})},this.unstar=function(t){r("DELETE",e+"/star",null,function(n,r){t(n,r)})},this.isStarred=function(t){r("GET",e+"/star",null,function(n,r){t(n,r)})}},o.Issue=function(t){var n="/repos/"+t.user+"/"+t.repo+"/issues";this.list=function(t,r){var e=[];for(var o in t)t.hasOwnProperty(o)&&e.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));i(n+"?"+e.join("&"),r)}},this.getIssues=function(t,n){return new o.Issue({user:t,repo:n})},this.getRepo=function(t,n){return new o.Repository({user:t,name:n})},this.getUser=function(){return new o.User},this.getGist=function(t){return new o.Gist({id:t})}};t.exports=o}).call(this)},function(t,n){},function(t,n,r){(function(n){!function(){"use strict";function r(t){var r;return r=t instanceof n?t:new n(t.toString(),"binary"),r.toString("base64")}t.exports=r}()}).call(n,r(190).Buffer)},function(t,n,r){(function(t){function e(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(n){return this instanceof t?(this.length=0,this.parent=void 0,"number"==typeof n?o(this,n):"string"==typeof n?i(this,n,arguments.length>1?arguments[1]:"utf8"):u(this,n)):arguments.length>1?new t(n,arguments[1]):new t(n)}function o(n,r){if(n=p(n,0>r?0:0|g(r)),!t.TYPED_ARRAY_SUPPORT)for(var e=0;r>e;e++)n[e]=0;return n}function i(t,n,r){("string"!=typeof r||""===r)&&(r="utf8");var e=0|d(n,r);return t=p(t,e),t.write(n,r),t}function u(n,r){if(t.isBuffer(r))return c(n,r);if(J(r))return s(n,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return a(n,r);if(r instanceof ArrayBuffer)return f(n,r)}return r.length?h(n,r):l(n,r)}function c(t,n){var r=0|g(n.length);return t=p(t,r),n.copy(t,0,0,r),t}function s(t,n){var r=0|g(n.length);t=p(t,r);for(var e=0;r>e;e+=1)t[e]=255&n[e];return t}function a(t,n){var r=0|g(n.length);t=p(t,r);for(var e=0;r>e;e+=1)t[e]=255&n[e];return t}function f(n,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,n=t._augment(new Uint8Array(r))):n=a(n,new Uint8Array(r)),n}function h(t,n){var r=0|g(n.length);t=p(t,r);for(var e=0;r>e;e+=1)t[e]=255&n[e];return t}function l(t,n){var r,e=0;"Buffer"===n.type&&J(n.data)&&(r=n.data,e=0|g(r.length)),t=p(t,e);for(var o=0;e>o;o+=1)t[o]=255&r[o];return t}function p(n,r){t.TYPED_ARRAY_SUPPORT?n=t._augment(new Uint8Array(r)):(n.length=r,n._isBuffer=!0);var e=0!==r&&r<=t.poolSize>>>1;return e&&(n.parent=X),n}function g(t){if(t>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|t}function v(n,r){if(!(this instanceof v))return new v(n,r);var e=new t(n,r);return delete e.parent,e}function d(t,n){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var e=!1;;)switch(n){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(e)return G(t).length;n=(""+n).toLowerCase(),e=!0}}function y(t,n,r){var e=!1;if(n=0|n,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>n&&(n=0),r>this.length&&(r=this.length),n>=r)return"";for(;;)switch(t){case"hex":return R(this,n,r);case"utf8":case"utf-8":return A(this,n,r);case"ascii":return T(this,n,r);case"binary":return I(this,n,r);case"base64":return _(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,n,r);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function w(t,n,r,e){r=Number(r)||0;var o=t.length-r;e?(e=Number(e),e>o&&(e=o)):e=o;var i=n.length;if(i%2!==0)throw new Error("Invalid hex string");e>i/2&&(e=i/2);for(var u=0;e>u;u++){var c=parseInt(n.substr(2*u,2),16);if(isNaN(c))throw new Error("Invalid hex string");t[r+u]=c}return u}function m(t,n,r,e){return q(G(n,t.length-r),t,r,e)}function E(t,n,r,e){return q(Y(n),t,r,e)}function b(t,n,r,e){return E(t,n,r,e)}function S(t,n,r,e){return q(W(n),t,r,e)}function x(t,n,r,e){return q(H(n,t.length-r),t,r,e)}function _(t,n,r){return 0===n&&r===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(n,r))}function A(t,n,r){r=Math.min(t.length,r);for(var e=[],o=n;r>o;){var i=t[o],u=null,c=i>239?4:i>223?3:i>191?2:1;if(r>=o+c){var s,a,f,h;switch(c){case 1:128>i&&(u=i);break;case 2:s=t[o+1],128===(192&s)&&(h=(31&i)<<6|63&s,h>127&&(u=h));break;case 3:s=t[o+1],a=t[o+2],128===(192&s)&&128===(192&a)&&(h=(15&i)<<12|(63&s)<<6|63&a,h>2047&&(55296>h||h>57343)&&(u=h));break;case 4:s=t[o+1],a=t[o+2],f=t[o+3],128===(192&s)&&128===(192&a)&&128===(192&f)&&(h=(15&i)<<18|(63&s)<<12|(63&a)<<6|63&f,h>65535&&1114112>h&&(u=h))}}null===u?(u=65533,c=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|1023&u),e.push(u),o+=c}return P(e)}function P(t){var n=t.length;if(V>=n)return String.fromCharCode.apply(String,t);for(var r="",e=0;n>e;)r+=String.fromCharCode.apply(String,t.slice(e,e+=V));return r}function T(t,n,r){var e="";r=Math.min(t.length,r);for(var o=n;r>o;o++)e+=String.fromCharCode(127&t[o]);return e}function I(t,n,r){var e="";r=Math.min(t.length,r);for(var o=n;r>o;o++)e+=String.fromCharCode(t[o]);return e}function R(t,n,r){var e=t.length;(!n||0>n)&&(n=0),(!r||0>r||r>e)&&(r=e);for(var o="",i=n;r>i;i++)o+=C(t[i]);return o}function O(t,n,r){for(var e=t.slice(n,r),o="",i=0;i<e.length;i+=2)o+=String.fromCharCode(e[i]+256*e[i+1]);return o}function M(t,n,r){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+n>r)throw new RangeError("Trying to access beyond buffer length")}function L(n,r,e,o,i,u){if(!t.isBuffer(n))throw new TypeError("buffer must be a Buffer instance");if(r>i||u>r)throw new RangeError("value is out of bounds");if(e+o>n.length)throw new RangeError("index out of range")}function U(t,n,r,e){0>n&&(n=65535+n+1);for(var o=0,i=Math.min(t.length-r,2);i>o;o++)t[r+o]=(n&255<<8*(e?o:1-o))>>>8*(e?o:1-o)}function B(t,n,r,e){0>n&&(n=4294967295+n+1);for(var o=0,i=Math.min(t.length-r,4);i>o;o++)t[r+o]=n>>>8*(e?o:3-o)&255}function D(t,n,r,e,o,i){if(n>o||i>n)throw new RangeError("value is out of bounds");if(r+e>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function j(t,n,r,e,o){return o||D(t,n,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,n,r,e,23,4),r+4}function k(t,n,r,e,o){return o||D(t,n,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,n,r,e,52,8),r+8}function N(t){if(t=F(t).replace($,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function C(t){return 16>t?"0"+t.toString(16):t.toString(16)}function G(t,n){n=n||1/0;for(var r,e=t.length,o=null,i=[],u=0;e>u;u++){if(r=t.charCodeAt(u),r>55295&&57344>r){if(!o){if(r>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(u+1===e){(n-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(56320>r){(n-=3)>-1&&i.push(239,191,189),o=r;continue}r=o-55296<<10|r-56320|65536}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,128>r){if((n-=1)<0)break;i.push(r)}else if(2048>r){if((n-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(65536>r){if((n-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((n-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){for(var n=[],r=0;r<t.length;r++)n.push(255&t.charCodeAt(r));return n}function H(t,n){for(var r,e,o,i=[],u=0;u<t.length&&!((n-=2)<0);u++)r=t.charCodeAt(u),e=r>>8,o=r%256,i.push(o),i.push(e);return i}function W(t){return z.toByteArray(N(t))}function q(t,n,r,e){for(var o=0;e>o&&!(o+r>=n.length||o>=t.length);o++)n[o+r]=t[o];return o}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var z=r(191),K=r(192),J=r(193);n.Buffer=t,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,t.poolSize=8192;var X={};t.TYPED_ARRAY_SUPPORT=function(){function t(){}try{var n=new Uint8Array(1);return n.foo=function(){return 42},n.constructor=t,42===n.foo()&&n.constructor===t&&"function"==typeof n.subarray&&0===n.subarray(1,1).byteLength}catch(r){return!1}}(),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(n,r){if(!t.isBuffer(n)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(n===r)return 0;for(var e=n.length,o=r.length,i=0,u=Math.min(e,o);u>i&&n[i]===r[i];)++i;return i!==u&&(e=n[i],o=r[i]),o>e?-1:e>o?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(n,r){if(!J(n))throw new TypeError("list argument must be an Array of Buffers.");if(0===n.length)return new t(0);var e;if(void 0===r)for(r=0,e=0;e<n.length;e++)r+=n[e].length;var o=new t(r),i=0;for(e=0;e<n.length;e++){var u=n[e];u.copy(o,i),i+=u.length}return o},t.byteLength=d,t.prototype.length=void 0,t.prototype.parent=void 0,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):y.apply(this,arguments)},t.prototype.equals=function(n){if(!t.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:0===t.compare(this,n)},t.prototype.inspect=function(){var t="",r=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(n){if(!t.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?0:t.compare(this,n)},t.prototype.indexOf=function(n,r){function e(t,n,r){for(var e=-1,o=0;r+o<t.length;o++)if(t[r+o]===n[-1===e?0:o-e]){if(-1===e&&(e=o),o-e+1===n.length)return r+e}else e=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof n)return 0===n.length?-1:String.prototype.indexOf.call(this,n,r);if(t.isBuffer(n))return e(this,n,r);if("number"==typeof n)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,n,r):e(this,[n],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,n){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,n)},t.prototype.write=function(t,n,r,e){if(void 0===n)e="utf8",r=this.length,n=0;else if(void 0===r&&"string"==typeof n)e=n,r=this.length,n=0;else if(isFinite(n))n=0|n,isFinite(r)?(r=0|r,void 0===e&&(e="utf8")):(e=r,r=void 0);else{var o=e;e=n,n=0|r,r=o}var i=this.length-n;if((void 0===r||r>i)&&(r=i),t.length>0&&(0>r||0>n)||n>this.length)throw new RangeError("attempt to write outside buffer bounds");e||(e="utf8");for(var u=!1;;)switch(e){case"hex":return w(this,t,n,r);case"utf8":case"utf-8":return m(this,t,n,r);case"ascii":return E(this,t,n,r);case"binary":return b(this,t,n,r);case"base64":return S(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n,r);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),u=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;t.prototype.slice=function(n,r){var e=this.length;n=~~n,r=void 0===r?e:~~r,0>n?(n+=e,0>n&&(n=0)):n>e&&(n=e),0>r?(r+=e,0>r&&(r=0)):r>e&&(r=e),n>r&&(r=n);var o;if(t.TYPED_ARRAY_SUPPORT)o=t._augment(this.subarray(n,r));else{var i=r-n;o=new t(i,void 0);for(var u=0;i>u;u++)o[u]=this[u+n]}return o.length&&(o.parent=this.parent||this),o},t.prototype.readUIntLE=function(t,n,r){t=0|t,n=0|n,r||M(t,n,this.length);for(var e=this[t],o=1,i=0;++i<n&&(o*=256);)e+=this[t+i]*o;return e},t.prototype.readUIntBE=function(t,n,r){t=0|t,n=0|n,r||M(t,n,this.length);for(var e=this[t+--n],o=1;n>0&&(o*=256);)e+=this[t+--n]*o;return e},t.prototype.readUInt8=function(t,n){return n||M(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,n){return n||M(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,n){return n||M(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,n){return n||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,n){return n||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,n,r){t=0|t,n=0|n,r||M(t,n,this.length);for(var e=this[t],o=1,i=0;++i<n&&(o*=256);)e+=this[t+i]*o;return o*=128,e>=o&&(e-=Math.pow(2,8*n)),e},t.prototype.readIntBE=function(t,n,r){t=0|t,n=0|n,r||M(t,n,this.length);for(var e=n,o=1,i=this[t+--e];e>0&&(o*=256);)i+=this[t+--e]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i},t.prototype.readInt8=function(t,n){return n||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,n){n||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,n){n||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,n){return n||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,n){return n||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,n){return n||M(t,4,this.length),K.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,n){return n||M(t,4,this.length),K.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,n){return n||M(t,8,this.length),K.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,n){return n||M(t,8,this.length),K.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,n,r,e){t=+t,n=0|n,r=0|r,e||L(this,t,n,r,Math.pow(2,8*r),0);var o=1,i=0;for(this[n]=255&t;++i<r&&(o*=256);)this[n+i]=t/o&255;return n+r},t.prototype.writeUIntBE=function(t,n,r,e){t=+t,n=0|n,r=0|r,e||L(this,t,n,r,Math.pow(2,8*r),0);var o=r-1,i=1;for(this[n+o]=255&t;--o>=0&&(i*=256);)this[n+o]=t/i&255;return n+r},t.prototype.writeUInt8=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[r]=n,r+1},t.prototype.writeUInt16LE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=n,this[r+1]=n>>>8):U(this,n,r,!0),r+2},t.prototype.writeUInt16BE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>8,this[r+1]=n):U(this,n,r,!1),r+2},t.prototype.writeUInt32LE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=n>>>24,this[r+2]=n>>>16,this[r+1]=n>>>8,this[r]=n):B(this,n,r,!0),r+4},t.prototype.writeUInt32BE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=n):B(this,n,r,!1),r+4},t.prototype.writeIntLE=function(t,n,r,e){if(t=+t,n=0|n,!e){var o=Math.pow(2,8*r-1);L(this,t,n,r,o-1,-o)}var i=0,u=1,c=0>t?1:0;for(this[n]=255&t;++i<r&&(u*=256);)this[n+i]=(t/u>>0)-c&255;return n+r},t.prototype.writeIntBE=function(t,n,r,e){if(t=+t,n=0|n,!e){var o=Math.pow(2,8*r-1);L(this,t,n,r,o-1,-o)}var i=r-1,u=1,c=0>t?1:0;for(this[n+i]=255&t;--i>=0&&(u*=256);)this[n+i]=(t/u>>0)-c&255;return n+r},t.prototype.writeInt8=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),0>n&&(n=255+n+1),this[r]=n,r+1},t.prototype.writeInt16LE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=n,this[r+1]=n>>>8):U(this,n,r,!0),r+2},t.prototype.writeInt16BE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>8,this[r+1]=n):U(this,n,r,!1),r+2},t.prototype.writeInt32LE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=n,this[r+1]=n>>>8,this[r+2]=n>>>16,this[r+3]=n>>>24):B(this,n,r,!0),r+4},t.prototype.writeInt32BE=function(n,r,e){return n=+n,r=0|r,e||L(this,n,r,4,2147483647,-2147483648),0>n&&(n=4294967295+n+1),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=n):B(this,n,r,!1),r+4},t.prototype.writeFloatLE=function(t,n,r){return j(this,t,n,!0,r)},t.prototype.writeFloatBE=function(t,n,r){return j(this,t,n,!1,r)},t.prototype.writeDoubleLE=function(t,n,r){return k(this,t,n,!0,r)},t.prototype.writeDoubleBE=function(t,n,r){return k(this,t,n,!1,r)},t.prototype.copy=function(n,r,e,o){if(e||(e=0),o||0===o||(o=this.length),r>=n.length&&(r=n.length),r||(r=0),o>0&&e>o&&(o=e),o===e)return 0;if(0===n.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>e||e>=this.length)throw new RangeError("sourceStart out of bounds");if(0>o)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),n.length-r<o-e&&(o=n.length-r+e);var i,u=o-e;if(this===n&&r>e&&o>r)for(i=u-1;i>=0;i--)n[i+r]=this[i+e];else if(1e3>u||!t.TYPED_ARRAY_SUPPORT)for(i=0;u>i;i++)n[i+r]=this[i+e];else n._set(this.subarray(e,e+u),r);return u},t.prototype.fill=function(t,n,r){if(t||(t=0),n||(n=0),r||(r=this.length),n>r)throw new RangeError("end < start");if(r!==n&&0!==this.length){if(0>n||n>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var e;if("number"==typeof t)for(e=n;r>e;e++)this[e]=t;else{var o=G(t.toString()),i=o.length;for(e=n;r>e;e++)this[e]=o[e%i]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var n=new Uint8Array(this.length),r=0,e=n.length;e>r;r+=1)n[r]=this[r];return n.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Z=t.prototype;t._augment=function(n){return n.constructor=t,n._isBuffer=!0,n._set=n.set,n.get=Z.get,n.set=Z.set,n.write=Z.write,n.toString=Z.toString,n.toLocaleString=Z.toString,n.toJSON=Z.toJSON,n.equals=Z.equals,n.compare=Z.compare,n.indexOf=Z.indexOf,n.copy=Z.copy,n.slice=Z.slice,n.readUIntLE=Z.readUIntLE,n.readUIntBE=Z.readUIntBE,n.readUInt8=Z.readUInt8,n.readUInt16LE=Z.readUInt16LE,n.readUInt16BE=Z.readUInt16BE,n.readUInt32LE=Z.readUInt32LE,n.readUInt32BE=Z.readUInt32BE,n.readIntLE=Z.readIntLE,n.readIntBE=Z.readIntBE,n.readInt8=Z.readInt8,n.readInt16LE=Z.readInt16LE,n.readInt16BE=Z.readInt16BE,n.readInt32LE=Z.readInt32LE,n.readInt32BE=Z.readInt32BE,n.readFloatLE=Z.readFloatLE,n.readFloatBE=Z.readFloatBE,n.readDoubleLE=Z.readDoubleLE,n.readDoubleBE=Z.readDoubleBE,n.writeUInt8=Z.writeUInt8,n.writeUIntLE=Z.writeUIntLE,n.writeUIntBE=Z.writeUIntBE,n.writeUInt16LE=Z.writeUInt16LE,n.writeUInt16BE=Z.writeUInt16BE,n.writeUInt32LE=Z.writeUInt32LE,n.writeUInt32BE=Z.writeUInt32BE,n.writeIntLE=Z.writeIntLE,n.writeIntBE=Z.writeIntBE,n.writeInt8=Z.writeInt8,n.writeInt16LE=Z.writeInt16LE,n.writeInt16BE=Z.writeInt16BE,n.writeInt32LE=Z.writeInt32LE,n.writeInt32BE=Z.writeInt32BE,n.writeFloatLE=Z.writeFloatLE,n.writeFloatBE=Z.writeFloatBE,n.writeDoubleLE=Z.writeDoubleLE,n.writeDoubleBE=Z.writeDoubleBE,n.fill=Z.fill,n.inspect=Z.inspect,n.toArrayBuffer=Z.toArrayBuffer,n};var $=/[^+\/0-9A-Za-z-_]/g}).call(n,r(190).Buffer)},function(t,n,r){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function n(t){var n=t.charCodeAt(0);return n===u||n===h?62:n===c||n===l?63:s>n?-1:s+10>n?n-s+26+26:f+26>n?n-f:a+26>n?n-a+26:void 0}function r(t){function r(t){a[h++]=t}var e,o,u,c,s,a;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,a=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var h=0;for(e=0,o=0;u>e;e+=4,o+=3)c=n(t.charAt(e))<<18|n(t.charAt(e+1))<<12|n(t.charAt(e+2))<<6|n(t.charAt(e+3)),r((16711680&c)>>16),r((65280&c)>>8),r(255&c);return 2===s?(c=n(t.charAt(e))<<2|n(t.charAt(e+1))>>4,r(255&c)):1===s&&(c=n(t.charAt(e))<<10|n(t.charAt(e+1))<<4|n(t.charAt(e+2))>>2,r(c>>8&255),r(255&c)),a}function o(t){function n(t){return e.charAt(t)}function r(t){return n(t>>18&63)+n(t>>12&63)+n(t>>6&63)+n(63&t)}var o,i,u,c=t.length%3,s="";for(o=0,u=t.length-c;u>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s+=r(i);switch(c){case 1:i=t[t.length-1],s+=n(i>>2),s+=n(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=n(i>>10),s+=n(i>>4&63),s+=n(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),c="/".charCodeAt(0),s="0".charCodeAt(0),a="a".charCodeAt(0),f="A".charCodeAt(0),h="-".charCodeAt(0),l="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=o}(n)},function(t,n){n.read=function(t,n,r,e,o){var i,u,c=8*o-e-1,s=(1<<c)-1,a=s>>1,f=-7,h=r?o-1:0,l=r?-1:1,p=t[n+h];for(h+=l,i=p&(1<<-f)-1,p>>=-f,f+=c;f>0;i=256*i+t[n+h],h+=l,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=e;f>0;u=256*u+t[n+h],h+=l,f-=8);if(0===i)i=1-a;else{if(i===s)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,e),i-=a}return(p?-1:1)*u*Math.pow(2,i-e)},n.write=function(t,n,r,e,o,i){var u,c,s,a=8*i-o-1,f=(1<<a)-1,h=f>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:i-1,g=e?1:-1,v=0>n||0===n&&0>1/n?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(c=isNaN(n)?1:0,u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(s=Math.pow(2,-u))<1&&(u--,s*=2),n+=u+h>=1?l/s:l*Math.pow(2,1-h),n*s>=2&&(u++,s/=2),u+h>=f?(c=0,u=f):u+h>=1?(c=(n*s-1)*Math.pow(2,o),u+=h):(c=n*Math.pow(2,h-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&c,p+=g,c/=256,o-=8);for(u=u<<o|c,a+=o;a>0;t[r+p]=255&u,p+=g,u/=256,a-=8);t[r+p-g]|=128*v}},function(t,n){var r=Array.isArray,e=Object.prototype.toString;t.exports=r||function(t){return!!t&&"[object Array]"==e.call(t)}},function(t,n,r){var e;!function(o){e=function(t,n,r){function e(t,n){"use strict";return function(){function r(r,i){function u(){for(var t=new Array(arguments.length),o=0;o<t.length;o+=1)t[o]=arguments[o];n&&(t=n.apply(e,t));var u=t[0],c=t[1];return u?i(u):r(c)}o[o.length-1]=u,t.apply(e,o)}for(var e=this,o=new Array(arguments.length+1),i=0;i<arguments.length;i+=1)o[i]=arguments[i];return new Promise(r)}}r.exports=e}.call(n,r,n,t),!(void 0!==e&&(t.exports=e))}(r(195))},function(t,n){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,n,r){(function(r){"use strict";function e(t){return t=t.replace(/\s/g,""),t=window?window.atob(t):o(t),decodeURIComponent(escape(t))}function o(t){return new r(t,"base64").toString("binary")}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=e,t.exports=n["default"]}).call(n,r(190).Buffer)}]);
(function() {
var opts = {
token: 'e55739ffd3573de5dea482fab8fa7c191839f0ab',
owner: 'mvaneijgen',
repo: 'iOS-URL-Schemes',
branch: 'gh-pages',
forkBranch: localStorage.getItem('forkBranch')
}
if(!opts.forkBranch) {
opts.forkBranch = (Math.random().toString(36) + '00000000000000000').slice(2, 9);
localStorage.setItem('forkBranch', opts.forkBranch);
}
var showSection = document.getElementById('show-section');
var errorSection = document.getElementById('error-section');
var successSection = document.getElementById('success-section');
var editSection = document.getElementById('edit-section');
var pullLink = document.getElementById('pull-link');
var textElem = document.getElementsByName('text')[0];
var messageElem = document.getElementsByName('message')[0];
var sections = [showSection, errorSection, editSection, successSection];
function show(elem) { elem.className = elem.className.replace('hide', ''); }
function hideAll() { sections.forEach(hide); }
function hide(elem) {
show(elem);
elem.className += ' hide';
}
function displayError(err) {
var message = !err.request ? err.message :
err.request.statusText + ': ' + JSON.parse(err.request.response).message;
errorSection.innerHTML = message;
show(errorSection);
}
window.load = function(path) {
opts.path = path;
wikihub.load(opts)
.then(function(text) {
textElem.value = text;
hideAll();
show(editSection);
})
.catch(displayError);
};
window.cancel = function() {
hideAll();
show(showSection);
};
window.save = function() {
opts.text = textElem.value;
opts.message = messageElem.value;
if(opts.message) { opts.title = opts.message; }
wikihub.save(opts)
.then(function(pull) {
hideAll();
pullLink.setAttribute('href', pull.html_url);
show(successSection);
show(showSection);
})
.catch(displayError);
};
})();