!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Gitalk=t():e.Gitalk=t()}(this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=191)}([function(e,t,n){"use strict";function a(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}t.a=a},function(e,t,n){"use strict";function a(e){i.a(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}t.a=a;var i=n(0)},function(e,t,n){"use strict";function a(e){return function(t){var n=t||{},a=n.width?String(n.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}t.a=a},function(e,t,n){"use strict";function a(e){return function(t,n){var a,i=n||{},r=i.context?String(i.context):"standalone";if("formatting"===r&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,u=i.width?String(i.width):o;a=e.formattingValues[u]||e.formattingValues[o]}else{var s=e.defaultWidth,d=i.width?String(i.width):e.defaultWidth;a=e.values[d]||e.values[s]}return a[e.argumentCallback?e.argumentCallback(t):t]}}t.a=a},function(e,t,n){"use strict";function a(e){return function(t,n){var a=String(t),i=n||{},r=a.match(e.matchPattern);if(!r)return null;var o=r[0],u=a.match(e.parsePattern);if(!u)return null;var s=e.valueCallback?e.valueCallback(u[0]):u[0];return s=i.valueCallback?i.valueCallback(s):s,{value:s,rest:a.slice(o.length)}}}t.a=a},function(e,t,n){"use strict";function a(e){return function(t,n){var a=String(t),o=n||{},u=o.width,s=u&&e.matchPatterns[u]||e.matchPatterns[e.defaultMatchWidth],d=a.match(s);if(!d)return null;var c,l=d[0],m=u&&e.parsePatterns[u]||e.parsePatterns[e.defaultParseWidth];return c="[object Array]"===Object.prototype.toString.call(m)?r(m,function(e){return e.test(l)}):i(m,function(e){return e.test(l)}),c=e.valueCallback?e.valueCallback(c):c,c=o.valueCallback?o.valueCallback(c):c,{value:c,rest:a.slice(l.length)}}}function i(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function r(e,t){for(var n=0;n0;)n[a]=arguments[a+2];if(!v(e))return e;var i=e.attributes||e.props,r=I.h(e.nodeName||e.type,i,e.children||i&&i.children),o=[r,t];return n&&n.length?o.push(n):t&&t.children&&o.push(t.children),p(I.cloneElement.apply(void 0,o))}function v(e){return e&&(e instanceof J||e.$$typeof===L)}function w(e,t){return t._refProxies[e]||(t._refProxies[e]=function(n){t&&t.refs&&(t.refs[e]=n,null===n&&(delete t._refProxies[e],t=null))})}function b(e){var t=e.nodeName,n=e.attributes;if(n&&"string"==typeof t){var a={};for(var i in n)a[i.toLowerCase()]=i;if(a.ondoubleclick&&(n.ondblclick=n[a.ondoubleclick],delete n[a.ondoubleclick]),a.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var r=a.oninput||"oninput";n[r]||(n[r]=z([n[r],n[a.onchange]]),delete n[a.onchange])}}}function y(e){var t=e.attributes;if(t){var n=t.className||t.class;n&&(t.className=n)}}function M(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function k(e,t){for(var n in e)if(!(n in t))return!0;for(var a in t)if(e[a]!==t[a])return!0;return!1}function P(e){return e&&e.base||e}function W(){}function x(e){function t(e,t){S(this),A.call(this,e,t,U),N.call(this,e,t)}return e=M({constructor:t},e),e.mixins&&T(e,j(e.mixins)),e.statics&&M(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps()),W.prototype=A.prototype,t.prototype=M(new W,e),t.displayName=e.displayName||"Component",t}function j(e){for(var t={},n=0;n1)for(var n=1;n0,o=i?(r+a(t))%r:a(t);return n*r+o}t.a=i;var r=6e4},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function a(e,t){o.a(2,arguments);var n=r.a(e),a=i.a(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}t.a=a;var i=n(6),r=n(1),o=n(0)},function(e,t,n){"use strict";function a(e,t){o.a(1,arguments);var n=t||{},a=n.locale,u=a&&a.options&&a.options.weekStartsOn,s=null==u?0:r.a(u),d=null==n.weekStartsOn?s:r.a(n.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=i.a(e),l=c.getDay(),m=(l0?1:o}t.a=a;var i=n(1),r=n(0)},function(e,t,n){"use strict";var a=n(48),i=n(339),r=n(35),o=n(36),u=n(37),s={code:"en-US",formatDistance:a.a,formatLong:i.a,formatRelative:r.a,localize:o.a,match:u.a,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=s},function(e,t,n){var a=n(51);e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,i){return e.call(t,n,a,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t,n){var a=n(104),i=n(70);e.exports=function(e){return a(i(e))}},function(e,t,n){var a=n(70);e.exports=function(e){return Object(a(e))}},function(e,t,n){"use strict";function a(e){o.a(1,arguments);var t=i.a(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var u=r.a(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var d=r.a(s);return t.getTime()>=u.getTime()?n+1:t.getTime()>=d.getTime()?n:n-1}t.a=a;var i=n(1),r=n(25),o=n(0)},function(e,t,n){"use strict";function a(e,t,n,a){return i[e]}t.a=a;var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"}},function(e,t,n){"use strict";function a(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var i=n(3),r={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},l={ordinalNumber:a,era:i.a({values:r,defaultWidth:"wide"}),quarter:i.a({values:o,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:i.a({values:u,defaultWidth:"wide"}),day:i.a({values:s,defaultWidth:"wide"}),dayPeriod:i.a({values:d,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})};t.a=l},function(e,t,n){"use strict";var a=n(4),i=n(5),r=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},l={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},v={ordinalNumber:a.a({matchPattern:r,parsePattern:o,valueCallback:function(e){return parseInt(e,10)}}),era:i.a({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:i.a({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:i.a({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any"}),day:i.a({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),dayPeriod:i.a({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:g,defaultParseWidth:"any"})};t.a=v},function(e,t,n){"use strict";function a(e,t){for(var n=e<0?"-":"",a=Math.abs(e).toString();a.length=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=!0},function(e,t,n){var a=n(103),i=n(75);e.exports=Object.keys||function(e){return a(e,i)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";function a(e,t){o.a(2,arguments);var n=r.a(e),a=i.a(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var u=n.getDate(),s=new Date(n.getTime());return s.setMonth(n.getMonth()+a+1,0),u>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),u),n)}t.a=a;var i=n(6),r=n(1),o=n(0)},function(e,t,n){"use strict";function a(e,t){o.a(2,arguments);var n=r.a(e).getTime(),a=i.a(t);return new Date(n+a)}t.a=a;var i=n(6),r=n(1),o=n(0)},function(e,t,n){"use strict";function a(e){o.a(1,arguments);var t=i.a(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),r.a(n)}t.a=a;var i=n(34),r=n(25),o=n(0)},function(e,t,n){"use strict";function a(e,t){r.a(2,arguments);var n=i.a(e),a=i.a(t);return n.getTime()===a.getTime()}t.a=a;var i=n(57),r=n(0)},function(e,t,n){"use strict";function a(e,t,n){n=n||{};var a;return a="string"==typeof i[e]?i[e]:1===t?i[e].one:i[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+a:a+" ago":a}t.a=a;var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}}},function(e,t,n){"use strict";function a(e,t){o.a(2,arguments);var n=i.a(t);return r.a(e,-n)}t.a=a;var i=n(6),r=n(45),o=n(0)},function(e,t,n){"use strict";function a(e,t){o.a(1,arguments);var n=t||{},a=n.locale,u=a&&a.options&&a.options.weekStartsOn,s=null==u?0:i.a(u),d=null==n.weekStartsOn?s:i.a(n.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=r.a(e),l=c.getUTCDay(),m=(l0?Math.floor(n):Math.ceil(n)}t.a=a;var i=n(59),r=n(0)},function(e,t,n){"use strict";function a(e){r.a(1,arguments);var t=i.a(e);return t.setDate(1),t.setHours(0,0,0,0),t}t.a=a;var i=n(1),r=n(0)},function(e,t,n){"use strict";function a(e){r.a(1,arguments);var t=i.a(e),n=t.getUTCDay(),a=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}t.a=a;var i=n(1),r=n(0)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var a=n(192),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=function(){function e(e,t){for(var n=0;n0?a:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(14),i=n(212),r=n(75),o=n(73)("IE_PROTO"),u=function(){},s=function(){var e,t=n(66)("iframe"),a=r.length;for(t.style.display="none",n(105).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("